ChangeLog 572 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190
  1. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed compiler warnings on netbsd
  3. * src/DHTConnectionImpl.cc
  4. * src/PeerListenCommand.cc
  5. * src/PeerSessionResource.cc
  6. * src/SegmentMan.cc
  7. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Updated Ukrainian translation. Thanks to all translators.
  9. * po/uk.po
  10. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Bump up version number to 1.4.1.
  12. * configure.ac
  13. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Added unit tests for strjoin, strconcat and strappend.
  15. * test/a2functionalTest.cc
  16. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Rewritten strconcat and strappend using operator+ instead of
  18. append().
  19. * src/a2functional.h
  20. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  22. is enabled.
  23. * src/Makefile.am
  24. * test/Makefile.am
  25. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Added countSeeder() function which counts seeder in the given
  27. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  28. * src/ConsoleStatCalc.cc
  29. * src/Peer.h
  30. * src/XmlRpcMethodImpl.cc
  31. * test/PeerTest.cc
  32. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Documented missing seeder in getPeers xml-rpc method.
  34. Documented uploadLength and numSeeders.
  35. * doc/aria2c.1.txt
  36. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Added uploadLength and numSeeders to the response of tellStatus
  38. xml-rpc method. Assert that PeerStorage instance is not null
  39. instead of checking if statement. It should be non-null in this
  40. context.
  41. * src/XmlRpcMethodImpl.cc
  42. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  44. * src/XmlRpcResponse.cc
  45. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Avoid intermediate object during string concatenation.
  47. * src/HttpRequest.cc
  48. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Added strjoin function template. Use it in pathJoin()
  50. * src/Util.h
  51. * src/a2functional.h
  52. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Avoid intermediate object during string concatenation. Replaced
  54. post-increment unary operator with pre-increment one in for loop.
  55. * src/AdaptiveURISelector.cc
  56. * src/AnnounceList.cc
  57. * src/AuthConfig.h
  58. * src/BtBitfieldMessage.cc
  59. * src/BtExtendedMessage.cc
  60. * src/BtHandshakeMessage.cc
  61. * src/BtPieceMessage.cc
  62. * src/BtPortMessage.cc
  63. * src/Cookie.cc
  64. * src/DHTAnnouncePeerMessage.cc
  65. * src/DHTAutoSaveCommand.cc
  66. * src/DHTGetPeersReplyMessage.cc
  67. * src/DHTNode.cc
  68. * src/DHTQueryMessage.cc
  69. * src/DHTResponseMessage.cc
  70. * src/DHTUnknownMessage.cc
  71. * src/DefaultBtAnnounce.cc
  72. * src/DefaultBtContext.cc
  73. * src/DefaultBtInteractive.cc
  74. * src/DefaultBtProgressInfoFile.cc
  75. * src/DefaultPeerStorage.cc
  76. * src/DownloadEngine.cc
  77. * src/FeatureConfig.cc
  78. * src/File.cc
  79. * src/FtpConnection.cc
  80. * src/FtpNegotiationCommand.cc
  81. * src/HandshakeExtensionMessage.cc
  82. * src/HttpConnection.cc
  83. * src/HttpRequest.cc
  84. * src/HttpResponseCommand.cc
  85. * src/HttpServer.cc
  86. * src/IndexBtMessage.cc
  87. * src/Metalink2RequestGroup.cc
  88. * src/OptionHandlerImpl.h
  89. * src/PStringBuildVisitor.cc
  90. * src/Peer.cc
  91. * src/PeerListenCommand.cc
  92. * src/Piece.cc
  93. * src/RangeBtMessage.cc
  94. * src/Request.cc
  95. * src/Request.h
  96. * src/RequestGroup.cc
  97. * src/RequestGroupMan.cc
  98. * src/ServerStat.cc
  99. * src/ServerStatMan.cc
  100. * src/UTPexExtensionMessage.cc
  101. * src/Util.cc
  102. * src/a2functional.h
  103. * src/download_helper.cc
  104. * src/messageDigest.cc
  105. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Unchoke a peer randomly at first and second choke round in seed
  107. state.
  108. * src/BtSeederStateChoke.cc
  109. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  110. Added (sock_t) to quiet compiler warnings in MinGW
  111. * src/SocketCore.cc
  112. * src/SocketCore.h
  113. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  115. * src/EpollEventPoll.h
  116. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  117. Added fork() emulation using CreateProcess() in MinGW
  118. * src/RequestGroupMan.cc
  119. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. * Release 1.4.0
  121. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Added utf8.torrent to EXTRA_DIST
  123. * test/Makefile.am
  124. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Fixed docs of aria2.addMetalink xml-rpc method.
  126. * doc/aria2c.1.txt
  127. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Added Slovak translation. Updated Ukrainian and Brazilian
  129. Portuguese translation. Thanks to all translators.
  130. * po/sk.po
  131. * po/uk.po
  132. * po/pt_BR.po
  133. * po/LINGUAS
  134. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Added test case for XmlRpcProcessor to fail to parse malformed
  136. document.
  137. * test/XmlRpcRequestProcessorTest.cc
  138. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Removed *.gmo files in po because they are generated on 'make
  140. dist'
  141. * po/*.gmo
  142. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Documented max-concurrent-downloads of changeGlobalOption method
  144. in man page.
  145. * doc/aria2c.1.txt
  146. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Added max-concurrent-downloads option to changeGlobalOption
  148. xml-rpc method. Rewritten loop conditional in
  149. RequestGroupMan::fillRequestGroupFromReserver().
  150. * src/RequestGroupMan.cc
  151. * src/RequestGroupMan.h
  152. * src/XmlRpcMethod.cc
  153. * src/XmlRpcMethodImpl.cc
  154. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Documented position parameter in man page.
  156. * doc/aria2c.1.txt
  157. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Added 'position' parameter to addUri, addTorrent and addMetalink
  159. xml-rpc method.
  160. * src/RequestGroupMan.cc
  161. * src/RequestGroupMan.h
  162. * src/XmlRpcMethodImpl.cc
  163. * test/XmlRpcMethodTest.cc
  164. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Removed Peer.cc from compile source list when --disable-bittorrent
  166. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  167. takes Peer.
  168. * src/DefaultPieceStorage.cc
  169. * src/DefaultPieceStorage.h
  170. * src/Makefile.am
  171. * src/PieceStorage.h
  172. * src/UnknownLengthPieceStorage.cc
  173. * src/UnknownLengthPieceStorage.h
  174. * test/MockPieceStorage.h
  175. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Implemented getter methods in header files to give them more
  177. chance of optimization.
  178. Return const reference for SharadHandle if possible.
  179. * src/AbstractAuthResolver.cc
  180. * src/AbstractAuthResolver.h
  181. * src/AbstractBtMessage.cc
  182. * src/AbstractBtMessage.h
  183. * src/AbstractSingleDiskAdaptor.cc
  184. * src/AbstractSingleDiskAdaptor.h
  185. * src/AsyncNameResolver.cc
  186. * src/AsyncNameResolver.h
  187. * src/BNode.cc
  188. * src/BNode.h
  189. * src/BitfieldMan.cc
  190. * src/BitfieldMan.h
  191. * src/BtAbortOutstandingRequestEvent.h
  192. * src/BtExtendedMessage.cc
  193. * src/BtExtendedMessage.h
  194. * src/BtSeederStateChoke.cc
  195. * src/BtSeederStateChoke.h
  196. * src/Cookie.cc
  197. * src/Cookie.h
  198. * src/DHTBucket.cc
  199. * src/DHTBucket.h
  200. * src/DHTConnectionImpl.cc
  201. * src/DHTConnectionImpl.h
  202. * src/DHTFindNodeReplyMessage.cc
  203. * src/DHTFindNodeReplyMessage.h
  204. * src/DHTGetPeersReplyMessage.cc
  205. * src/DHTGetPeersReplyMessage.h
  206. * src/DHTInteractionCommand.cc
  207. * src/DHTMessage.cc
  208. * src/DHTMessage.h
  209. * src/DHTMessageDispatcherImpl.cc
  210. * src/DHTMessageEntry.cc
  211. * src/DHTMessageReceiver.cc
  212. * src/DHTMessageReceiver.h
  213. * src/DHTMessageTrackerEntry.cc
  214. * src/DHTMessageTrackerEntry.h
  215. * src/DHTPeerAnnounceEntry.cc
  216. * src/DHTPeerAnnounceEntry.h
  217. * src/DHTPeerLookupTask.cc
  218. * src/DHTPeerLookupTask.h
  219. * src/DHTRoutingTableDeserializer.cc
  220. * src/DHTRoutingTableDeserializer.h
  221. * src/DefaultBtAnnounce.cc
  222. * src/DefaultBtAnnounce.h
  223. * src/DefaultBtMessageDispatcher.cc
  224. * src/DefaultBtMessageDispatcher.h
  225. * src/DefaultBtRequestFactory.cc
  226. * src/DefaultBtRequestFactory.h
  227. * src/DiskAdaptor.cc
  228. * src/DiskAdaptor.h
  229. * src/DownloadContext.cc
  230. * src/DownloadContext.h
  231. * src/DownloadEngine.cc
  232. * src/DownloadEngine.h
  233. * src/EpollEventPoll.cc
  234. * src/EpollEventPoll.h
  235. * src/FtpConnection.cc
  236. * src/FtpConnection.h
  237. * src/HttpConnection.cc
  238. * src/HttpConnection.h
  239. * src/HttpHeader.cc
  240. * src/HttpHeader.h
  241. * src/HttpRequest.cc
  242. * src/HttpRequest.h
  243. * src/HttpResponse.cc
  244. * src/HttpResponse.h
  245. * src/LibsslTLSContext.cc
  246. * src/LibsslTLSContext.h
  247. * src/MSEHandshake.cc
  248. * src/MSEHandshake.h
  249. * src/MetalinkEntry.cc
  250. * src/MetalinkEntry.h
  251. * src/MetalinkParserController.cc
  252. * src/MetalinkParserController.h
  253. * src/MetalinkParserStateMachine.cc
  254. * src/MetalinkParserStateMachine.h
  255. * src/MultiDiskAdaptor.cc
  256. * src/MultiDiskAdaptor.h
  257. * src/NetrcAuthResolver.cc
  258. * src/NetrcAuthResolver.h
  259. * src/Peer.cc
  260. * src/Peer.h
  261. * src/PeerSessionResource.cc
  262. * src/PeerSessionResource.h
  263. * src/Piece.cc
  264. * src/Piece.h
  265. * src/PieceStatMan.cc
  266. * src/PieceStatMan.h
  267. * src/Request.cc
  268. * src/Request.h
  269. * src/RequestGroup.cc
  270. * src/RequestGroup.h
  271. * src/RequestGroupMan.cc
  272. * src/RequestGroupMan.h
  273. * src/RequestSlot.cc
  274. * src/RequestSlot.h
  275. * src/SegmentMan.cc
  276. * src/SegmentMan.h
  277. * src/SelectEventPoll.cc
  278. * src/SelectEventPoll.h
  279. * src/ServerStat.cc
  280. * src/ServerStat.h
  281. * src/Signature.cc
  282. * src/Signature.h
  283. * src/URIResult.cc
  284. * src/URIResult.h
  285. * src/UTPexExtensionMessage.cc
  286. * src/UTPexExtensionMessage.h
  287. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Fixed compile error without BitTorrent and Metalink support.
  289. * src/XmlRpcMethod.cc
  290. * src/XmlRpcMethodFactory.cc
  291. * src/XmlRpcMethodImpl.cc
  292. * src/XmlRpcMethodImpl.h
  293. * test/XmlRpcMethodTest.cc
  294. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Rewritten the help message for --allow-overwrite option.
  296. * doc/aria2c.1.txt
  297. * src/usage_text.h
  298. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Fixed typo
  300. * doc/aria2c.1.txt
  301. * src/usage_text.h
  302. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Updated README for 1.4.0 release. Use new table syntax of
  304. asciidoc.
  305. * README
  306. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Documented --xml-rpc-max-request-size option in man page.
  308. * doc/aria2c.1.txt
  309. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Moved C_* constants from BtContext to DefaultBtContext.
  311. * src/BtContext.cc: Removed.
  312. * src/BtContext.h
  313. * src/DefaultBtContext.cc
  314. * src/DefaultBtContext.h
  315. * src/Makefile.am
  316. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Use name.utf-8 and path.utf-8 key in higher priority than name and
  318. path key respectively when persing .torrent file.
  319. * src/BtContext.cc
  320. * src/BtContext.h
  321. * src/DefaultBtContext.cc
  322. * test/DefaultBtContextTest.cc
  323. * test/utf8.torrent
  324. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Added --xml-rpc-max-request-size option to limit the size of
  326. XML-RPC request.
  327. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Documented XML-RPC API in man page.
  329. * doc/aria2c.1.txt
  330. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  332. will break strict-aliasing rules
  333. * src/PeerConnection.cc
  334. * test/DHTRoutingTableSerializerTest.cc
  335. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  337. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  338. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  339. PKG_CHECK_MODULES macro uses latter name.
  340. * m4/sqlite3.m4
  341. * src/Makefile.am
  342. * test/Makefile.am
  343. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Fixed typo
  345. * configure.ac
  346. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  348. presence of libgnutls using pkg-config first. If it fails, fall
  349. back to old macro libgnutls.m4.
  350. * configure.ac
  351. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Use s itself instead of !s.bad()
  353. * src/CookieStorage.cc
  354. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Documented --on-download-* option and --save-cookies option in man
  356. page.
  357. * doc/aria2c.1.txt
  358. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Set possible values for --load-cookie option to "/path/to/file".
  360. * src/OptionHandlerFactory.cc
  361. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Added --save-cookies option.
  363. * src/Cookie.cc
  364. * src/Cookie.h
  365. * src/CookieStorage.cc
  366. * src/CookieStorage.h
  367. * src/MultiUrlRequestInfo.cc
  368. * src/OptionHandlerFactory.cc
  369. * src/prefs.cc
  370. * src/prefs.h
  371. * src/usage_text.h
  372. * test/CookieStorageTest.cc
  373. * test/CookieTest.cc
  374. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Removed tellAll XML-RPC command because its reponse tends to be
  376. big if stopped/waiting downloads pile up.
  377. * src/XmlRpcMethodFactory.cc
  378. * src/XmlRpcMethodImpl.cc
  379. * src/XmlRpcMethodImpl.h
  380. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added the ability to execute command when download starts and
  382. stops. You can also specify command for particular cases such as
  383. complete/error download. Added --on-download-start,
  384. --on-download-stop, --on-download-complete and --on-download-error
  385. option.
  386. * src/OptionHandlerFactory.cc
  387. * src/RequestGroupMan.cc
  388. * src/prefs.cc
  389. * src/prefs.h
  390. * src/usage_text.h
  391. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Fixed test error
  393. * test/BencodeTest.cc
  394. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Added unit tests.
  396. * test/XmlRpcMethodTest.cc
  397. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Made exception message more verbose.
  399. * src/bencode.cc
  400. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  402. space in console readout. Also they are now shown in MiB/s if
  403. speed > 1024KiB/s.
  404. * src/ConsoleStatCalc.cc
  405. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added SEED to console output, which represents the number of
  407. seeders currently the client is connecting to.
  408. * src/ConsoleStatCalc.cc
  409. * src/ConsoleStatCalc.h
  410. * src/DownloadEngine.cc
  411. * src/NullStatCalc.h
  412. * src/StatCalc.h
  413. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Added source filename(__FILE__) and line number(__LINE__) to
  415. exception message.
  416. * src/AbstractCommand.cc
  417. * src/AbstractDiskWriter.cc
  418. * src/AbstractProxyResponseCommand.cc
  419. * src/BDE.h
  420. * src/BtAllowedFastMessage.cc
  421. * src/BtHandshakeMessageValidator.h
  422. * src/BtHaveAllMessage.cc
  423. * src/BtHaveNoneMessage.cc
  424. * src/BtPieceMessage.cc
  425. * src/BtRejectMessage.cc
  426. * src/ChunkedDecoder.cc
  427. * src/CookieStorage.cc
  428. * src/DHTAnnouncePeerMessage.cc
  429. * src/DHTEntryPointNameResolveCommand.cc
  430. * src/DHTMessageFactoryImpl.cc
  431. * src/DHTMessageTracker.cc
  432. * src/DHTRoutingTableDeserializer.cc
  433. * src/DHTRoutingTableSerializer.cc
  434. * src/DHTSetup.cc
  435. * src/DHTTokenTracker.cc
  436. * src/DefaultBtAnnounce.cc
  437. * src/DefaultBtContext.cc
  438. * src/DefaultBtInteractive.cc
  439. * src/DefaultBtMessageFactory.cc
  440. * src/DefaultBtProgressInfoFile.cc
  441. * src/DefaultExtensionMessageFactory.cc
  442. * src/DlAbortEx.h
  443. * src/DlRetryEx.h
  444. * src/DownloadCommand.cc
  445. * src/DownloadEngineFactory.cc
  446. * src/DownloadFailureException.h
  447. * src/Exception.cc
  448. * src/Exception.h
  449. * src/ExpatMetalinkProcessor.cc
  450. * src/ExpatXmlRpcRequestProcessor.cc
  451. * src/FallocFileAllocationIterator.cc
  452. * src/FatalException.h
  453. * src/FtpConnection.cc
  454. * src/FtpFinishDownloadCommand.cc
  455. * src/FtpInitiateConnectionCommand.cc
  456. * src/FtpNegotiationCommand.cc
  457. * src/GZipDecoder.cc
  458. * src/HandshakeExtensionMessage.cc
  459. * src/HttpConnection.cc
  460. * src/HttpHeaderProcessor.cc
  461. * src/HttpInitiateConnectionCommand.cc
  462. * src/HttpResponse.cc
  463. * src/HttpResponseCommand.cc
  464. * src/HttpServer.cc
  465. * src/HttpSkipResponseCommand.cc
  466. * src/InitiateConnectionCommandFactory.cc
  467. * src/IteratableChunkChecksumValidator.cc
  468. * src/LibgcryptARC4Context.h
  469. * src/LibgcryptARC4Decryptor.h
  470. * src/LibgcryptARC4Encryptor.h
  471. * src/LibgcryptDHKeyExchange.h
  472. * src/LibgnutlsTLSContext.cc
  473. * src/LibsslARC4Context.h
  474. * src/LibsslARC4Decryptor.h
  475. * src/LibsslARC4Encryptor.h
  476. * src/LibsslDHKeyExchange.h
  477. * src/LibsslTLSContext.cc
  478. * src/MSEHandshake.cc
  479. * src/MessageDigestHelper.cc
  480. * src/MetalinkHelper.cc
  481. * src/MultiDiskAdaptor.cc
  482. * src/NameMatchOptionHandler.h
  483. * src/NameResolver.cc
  484. * src/Netrc.cc
  485. * src/NsCookieParser.cc
  486. * src/OptionHandlerException.cc
  487. * src/OptionHandlerException.h
  488. * src/OptionHandlerImpl.h
  489. * src/OptionParser.cc
  490. * src/ParameterizedStringParser.cc
  491. * src/PeerAbstractCommand.cc
  492. * src/PeerConnection.cc
  493. * src/PeerMessageUtil.cc
  494. * src/PeerReceiveHandshakeCommand.cc
  495. * src/Platform.cc
  496. * src/ReceiverMSEHandshakeCommand.cc
  497. * src/RecoverableException.h
  498. * src/RequestGroup.cc
  499. * src/SimpleLogger.cc
  500. * src/SocketCore.cc
  501. * src/Sqlite3MozCookieParser.cc
  502. * src/UTPexExtensionMessage.cc
  503. * src/Util.cc
  504. * src/XML2SAXMetalinkProcessor.cc
  505. * src/Xml2XmlRpcRequestProcessor.cc
  506. * src/XmlRpcMethodImpl.cc
  507. * src/bencode.cc
  508. * src/download_helper.cc
  509. * src/messageDigest.h
  510. * test/ExceptionTest.cc
  511. * test/TestUtil.cc
  512. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Bump up version number to 1.4.0
  514. * configure.ac
  515. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Added 2files.metalink to EXTRA_DIST
  517. * test/Makefile.am
  518. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Added missing 2files.metalink
  520. * test/2files.metalink
  521. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Show "[MEMORY]" prefix before filename in download summary if it
  523. is downloaded into memory.
  524. * src/DownloadResult.h
  525. * src/RequestGroup.cc
  526. * src/RequestGroupMan.cc
  527. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  529. * src/ExpatXmlRpcRequestProcessor.cc
  530. * src/Xml2XmlRpcRequestProcessor.cc
  531. * src/message.h
  532. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Defined const BDEs to avoid duplicate instantiation.
  534. Defined MSG_GID_NOT_PROVIDED.
  535. * src/XmlRpcMethodImpl.cc
  536. * src/message.h
  537. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Code cleanup
  539. * src/Xml2XmlRpcRequestProcessor.cc
  540. * src/Xml2XmlRpcRequestProcessor.h
  541. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Defined ENABLE_XML_RPC
  543. * configure.ac
  544. * configure
  545. * config.h.in
  546. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Added ExpatXmlRpcRequestProcessor
  548. * src/ExpatXmlRpcRequestProcessor.cc
  549. * src/ExpatXmlRpcRequestProcessor.h
  550. * src/Makefile.am
  551. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Added tests for addTorrent and addMetalink command.
  553. * test/TestUtil.cc
  554. * test/TestUtil.h
  555. * test/XmlRpcMethodTest.cc
  556. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Corrected the description of --file-allocation option.
  558. * doc/aria2c.1.txt
  559. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Added tellAll command.
  561. * src/XmlRpcMethodFactory.cc
  562. * src/XmlRpcMethodImpl.cc
  563. * src/XmlRpcMethodImpl.h
  564. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  566. * src/XmlRpcMethodImpl.cc
  567. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Added changeGlobalOption command. Currently,
  569. max-overall-download-limit and max-overall-upload-limit option are
  570. available.
  571. * src/RequestGroupMan.h
  572. * src/XmlRpcMethod.cc
  573. * src/XmlRpcMethod.h
  574. * src/XmlRpcMethodFactory.cc
  575. * src/XmlRpcMethodImpl.cc
  576. * src/XmlRpcMethodImpl.h
  577. * test/XmlRpcMethodTest.cc
  578. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Added changeOption command. Currently, max-download-limit,
  580. max-upload-limit option are available in this command.
  581. * src/RequestGroup.h
  582. * src/XmlRpcMethod.cc
  583. * src/XmlRpcMethod.h
  584. * src/XmlRpcMethodFactory.cc
  585. * src/XmlRpcMethodImpl.cc
  586. * src/XmlRpcMethodImpl.h
  587. * test/XmlRpcMethodTest.cc
  588. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Added purgeDownloadResult command.
  590. * src/RequestGroupMan.cc
  591. * src/RequestGroupMan.h
  592. * src/XmlRpcMethodFactory.cc
  593. * src/XmlRpcMethodImpl.cc
  594. * src/XmlRpcMethodImpl.h
  595. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Refactored.
  597. * src/XmlRpcMethod.cc
  598. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  600. XmlRpcResponse.
  601. * src/HttpServerBodyCommand.cc
  602. * src/Makefile.am
  603. * src/XmlRpcMethod.cc
  604. * src/XmlRpcMethod.h
  605. * src/XmlRpcMethodImpl.cc
  606. * src/XmlRpcResponse.cc
  607. * src/XmlRpcResponse.h
  608. * test/XmlRpcMethodTest.cc
  609. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. In XML-RPC option struct, header and index-out option can take
  611. array as value.
  612. * src/XmlRpcMethod.cc
  613. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Removed unused option member from PeerConnection.
  615. * src/InitiatorMSEHandshakeCommand.cc
  616. * src/PeerConnection.cc
  617. * src/PeerConnection.h
  618. * src/PeerInteractionCommand.cc
  619. * src/PeerReceiveHandshakeCommand.cc
  620. * src/ReceiverMSEHandshakeCommand.cc
  621. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Added "seeder" key to getPeers response.
  623. * src/XmlRpcMethodImpl.cc
  624. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Added addMetalink XML-RPC command.
  626. * src/XmlRpcMethodFactory.cc
  627. * src/XmlRpcMethodImpl.cc
  628. * src/XmlRpcMethodImpl.h
  629. * src/download_helper.cc
  630. * src/download_helper.h
  631. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Fixed the bug that POU peers are never choked in seeding.
  633. * src/BtSeederStateChoke.cc
  634. * src/BtSeederStateChoke.h
  635. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Added web-seeding URI handling in addTorrent command.
  637. * src/XmlRpcMethodImpl.cc
  638. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Added "length" key to getFiles response.
  640. * src/XmlRpcMethodImpl.cc
  641. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Moved --no-netrc option from ftp option section to http/ftp option
  643. section.
  644. * doc/aria2c.1.txt
  645. * src/OptionHandlerFactory.cc
  646. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Removed garbage "\" character before '
  648. * doc/aria2c.1.txt
  649. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Removed garbage "\" character before http.
  651. * doc/aria2c.1.txt
  652. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Documented additional options that can be specified in -i list.
  654. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  655. and --xml-rpc-passwd. Removed --enable-http-server and
  656. --http-server-listen-port.
  657. * doc/aria2c.1.txt
  658. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  660. * src/DefaultPeerStorage.cc
  661. * src/DefaultPeerStorage.h
  662. * src/PeerStorage.h
  663. * src/XmlRpcMethodImpl.cc
  664. * test/MockPeerStorage.h
  665. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Put a call to Socket::isReadable() in try block.
  667. * src/HttpServerBodyCommand.cc
  668. * src/HttpServerCommand.cc
  669. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  671. exception , so it is now in try block.
  672. * src/HttpServerResponseCommand.cc
  673. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Added "amChoking" and "peerChoking" key in getPeers response.
  675. * src/XmlRpcMethodImpl.cc
  676. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Added test case for zero-length filter.
  678. * test/BitfieldManTest.cc
  679. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. getFiles command now returns file data for finished/stopped
  681. downloads.
  682. * src/XmlRpcMethodImpl.cc
  683. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. DownloadResult now has the list of FileEntry. The download
  685. summary displays the path of first selected file and the number of
  686. remaining files for multi-file torrent.
  687. * src/DownloadResult.h
  688. * src/RequestGroup.cc
  689. * src/RequestGroupMan.cc
  690. * test/RequestGroupTest.cc
  691. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Fixed segmentation fault error when no file is selected in
  693. multi-file torrent.
  694. * src/BitfieldMan.cc
  695. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Escaped <,>,& character in XML-RPC response.
  697. * src/XmlRpcMethod.cc
  698. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Throw DlAbortEx instead of FatalException during parsing options
  700. because we don't want for aria2 to quit when bad option is passed
  701. via XML-RPC.
  702. * src/OptionHandlerException.cc
  703. * src/OptionHandlerException.h
  704. * src/OptionHandlerImpl.h
  705. * src/OptionParser.cc
  706. * src/OptionParser.h
  707. * src/PStringSegment.cc
  708. * src/ParameterizedStringParser.cc
  709. * src/download_helper.cc
  710. * test/ParameterizedStringParserTest.cc
  711. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Selecting files are now done in
  713. DefaultBtContext::setFileFileter().
  714. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  715. functions are removed because they are no longer used. Creating
  716. filter in BitfieldMan is done in new funtion
  717. PieceStorage::setupFileFilter()
  718. * src/BtContext.cc
  719. * src/BtContext.h
  720. * src/DefaultBtContext.cc
  721. * src/DefaultBtContext.h
  722. * src/DefaultPieceStorage.cc
  723. * src/DefaultPieceStorage.h
  724. * src/DiskAdaptor.cc
  725. * src/DiskAdaptor.h
  726. * src/PieceStorage.h
  727. * src/RequestGroup.cc
  728. * src/UnknownLengthPieceStorage.h
  729. * src/XmlRpcMethodImpl.cc
  730. * test/DefaultBtContextTest.cc
  731. * test/MockBtContext.h
  732. * test/MockPieceStorage.h
  733. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  734. Fixed compile error on Mac OS X
  735. * src/HttpServer.cc
  736. * src/XmlRpcMethod.h
  737. * src/XmlRpcMethodImpl.cc
  738. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Use std::binary_search instead of std::find
  740. * src/DefaultPieceStorage.cc
  741. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Removed unnecessary BDE() call; leave them to implicit conversion.
  743. * src/XmlRpcMethodImpl.cc
  744. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Return connections and gid in string
  746. * src/XmlRpcMethodImpl.cc
  747. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Renamed addURI as addUri
  749. * src/XmlRpcMethodFactory.cc
  750. * src/XmlRpcMethodImpl.cc
  751. * src/XmlRpcMethodImpl.h
  752. * test/XmlRpcMethodTest.cc
  753. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Renamed addTorrentFile as addTorrent
  755. * src/XmlRpcMethodFactory.cc
  756. * src/XmlRpcMethodImpl.cc
  757. * src/XmlRpcMethodImpl.h
  758. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. The information for files, URIs, peers are removed from the
  760. reponse of TellaActive, TellStatus command because they tend to be
  761. large. Instead they can be retrieved by the dedicated commands:
  762. getFiles, getUris and getPeers respectively.
  763. * src/XmlRpcMethodFactory.cc
  764. * src/XmlRpcMethodImpl.cc
  765. * src/XmlRpcMethodImpl.h
  766. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Removed --max-overall-upload-limit and
  768. --max-overall-download-limit option from listRequestOptions.
  769. * src/download_helper.cc
  770. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Log incoming host in HttpListenCommand.
  772. * src/HttpListenCommand.cc
  773. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  775. --xml-rpc-passwd option.
  776. * src/HttpServer.cc
  777. * src/HttpServer.h
  778. * src/HttpServerCommand.cc
  779. * src/OptionHandlerFactory.cc
  780. * src/prefs.cc
  781. * src/prefs.h
  782. * src/usage_text.h
  783. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  785. processing 0 length request.
  786. * src/HttpServerBodyCommand.cc
  787. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Removed --enable-http-server and --http-server-listen-port
  789. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  790. instead. The original feature for --enable-http-server that
  791. reports download progress in HTML was officially removed. Persist
  792. XML-RPC connection if client supports keep-alive.
  793. * src/DownloadEngineFactory.cc
  794. * src/HttpServerCommand.cc
  795. * src/HttpServerResponseCommand.cc
  796. * src/Makefile.am
  797. * src/Makefile.in
  798. * src/OptionHandlerFactory.cc
  799. * src/RequestGroupMan.cc
  800. * src/main.cc
  801. * src/option_processing.cc
  802. * src/prefs.cc
  803. * src/prefs.h
  804. * src/usage_text.h
  805. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Added "uris" key to the response of tellStatus command. Added
  807. "connections" key to the response of tellStatus and tellActive
  808. command.
  809. * src/XmlRpcMethodImpl.cc
  810. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  812. Added TellStatusXmlRpcMethod. Remove command can now remove
  813. waiting RequestGroup.
  814. * src/RequestGroupMan.cc
  815. * src/RequestGroupMan.h
  816. * src/XmlRpcMethodFactory.cc
  817. * src/XmlRpcMethodImpl.cc
  818. * src/XmlRpcMethodImpl.h
  819. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Initialized _peerId
  821. * src/Peer.cc
  822. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Return fault structure for error. FailXmlRpcMethod is renamed as
  824. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  825. in non-torrent download. Return single param value.
  826. * src/XmlRpcMethod.cc
  827. * src/XmlRpcMethodFactory.cc
  828. * src/XmlRpcMethodImpl.cc
  829. * src/XmlRpcMethodImpl.h
  830. * test/XmlRpcMethodTest.cc
  831. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  833. command.
  834. * src/RequestGroup.cc
  835. * src/RequestGroup.h
  836. * src/RequestGroupMan.cc
  837. * src/XmlRpcMethodImpl.cc
  838. * test/RequestGroupTest.cc
  839. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Added more options that can be specified in -i list and xml-rpc
  841. add* command.
  842. * src/download_helper.h
  843. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. The available options in -i list should be listed in
  845. listRequestOptions().
  846. * src/download_helper.cc
  847. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  849. command.
  850. * src/XmlRpcMethodImpl.cc
  851. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Now RequestGroup has its own copy of Option object. This will help
  853. to give custom option for each RequestGroup.
  854. addTorrentFile command now takes options.
  855. * src/AbstractCommand.cc
  856. * src/AbstractCommand.h
  857. * src/AbstractProxyRequestCommand.cc
  858. * src/ActivePeerConnectionCommand.cc
  859. * src/ActivePeerConnectionCommand.h
  860. * src/AdaptiveURISelector.cc
  861. * src/BtCheckIntegrityEntry.cc
  862. * src/BtDependency.cc
  863. * src/BtDependency.h
  864. * src/BtFileAllocationEntry.cc
  865. * src/BtPostDownloadHandler.cc
  866. * src/CheckIntegrityEntry.cc
  867. * src/DownloadCommand.cc
  868. * src/FtpDownloadCommand.cc
  869. * src/FtpFinishDownloadCommand.cc
  870. * src/FtpInitiateConnectionCommand.cc
  871. * src/FtpNegotiationCommand.cc
  872. * src/HttpInitiateConnectionCommand.cc
  873. * src/HttpRequestCommand.cc
  874. * src/HttpResponseCommand.cc
  875. * src/HttpSkipResponseCommand.cc
  876. * src/InitiateConnectionCommand.cc
  877. * src/InitiateConnectionCommandFactory.cc
  878. * src/InitiatorMSEHandshakeCommand.cc
  879. * src/InitiatorMSEHandshakeCommand.h
  880. * src/Metalink2RequestGroup.cc
  881. * src/Metalink2RequestGroup.h
  882. * src/MetalinkPostDownloadHandler.cc
  883. * src/MultiUrlRequestInfo.cc
  884. * src/MultiUrlRequestInfo.h
  885. * src/PeerAbstractCommand.cc
  886. * src/PeerInteractionCommand.cc
  887. * src/PeerInteractionCommand.h
  888. * src/PeerReceiveHandshakeCommand.cc
  889. * src/PeerReceiveHandshakeCommand.h
  890. * src/RequestGroup.cc
  891. * src/RequestGroup.h
  892. * src/TrackerWatcherCommand.cc
  893. * src/TrackerWatcherCommand.h
  894. * src/XmlRpcMethod.cc
  895. * src/XmlRpcMethod.h
  896. * src/XmlRpcMethodImpl.cc
  897. * src/download_helper.cc
  898. * src/download_helper.h
  899. * src/main.cc
  900. * test/BtDependencyTest.cc
  901. * test/BtPostDownloadHandlerTest.cc
  902. * test/DefaultBtMessageDispatcherTest.cc
  903. * test/DownloadHandlerFactoryTest.cc
  904. * test/DownloadHelperTest.cc
  905. * test/Metalink2RequestGroupTest.cc
  906. * test/MetalinkPostDownloadHandlerTest.cc
  907. * test/RequestGroupManTest.cc
  908. * test/RequestGroupTest.cc
  909. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Added tellActiveStatus xml-rpc command which reports download
  911. status of active downloads.
  912. * src/XmlRpcMethodFactory.cc
  913. * src/XmlRpcMethodImpl.cc
  914. * src/XmlRpcMethodImpl.h
  915. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Added addTorrentFile xml-rpc command which receives uploaded
  917. torrent file and add download for it.
  918. * src/RequestGroupMan.cc
  919. * src/XmlRpcMethodFactory.cc
  920. * src/XmlRpcMethodImpl.cc
  921. * src/XmlRpcMethodImpl.h
  922. * src/download_helper.cc
  923. * src/download_helper.h
  924. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Added remove xml-rpc command which removes specified download.
  926. There is a known issue: the removed unfinished downloads are
  927. reported ERR when aria2 exits. They should be reported as INPR.
  928. * src/RequestGroupMan.cc
  929. * src/RequestGroupMan.h
  930. * src/XmlRpcMethodFactory.cc
  931. * src/XmlRpcMethodImpl.cc
  932. * src/XmlRpcMethodImpl.h
  933. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. If --enable-http-server is enabled, don't stop aria2 when all
  935. download finished and don't quit when no files to download at
  936. start up.
  937. * src/RequestGroupMan.cc
  938. * src/main.cc
  939. * src/option_processing.cc
  940. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Added missing AM_CONDITIONAL
  942. * configure.ac
  943. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Added xml-rpc functionality. Currently only addURI commad is
  945. supported. To enable xml-rpc, run aria2 with
  946. --enable-http-server. This option name is temporal and will be
  947. changed. The feature that reports download progress in html format
  948. is temporarily disabled.
  949. * src/HttpServer.cc
  950. * src/HttpServer.h
  951. * src/HttpServerBodyCommand.cc
  952. * src/HttpServerBodyCommand.h
  953. * src/HttpServerCommand.cc
  954. * src/HttpServerResponseCommand.cc
  955. * src/Makefile.am
  956. * src/OptionParser.cc
  957. * src/OptionParser.h
  958. * src/RequestGroupMan.cc
  959. * src/RequestGroupMan.h
  960. * src/XmlRpcMethod.cc
  961. * src/XmlRpcMethod.h
  962. * src/XmlRpcMethodFactory.cc
  963. * src/XmlRpcMethodFactory.h
  964. * src/XmlRpcMethodImpl.cc
  965. * src/XmlRpcMethodImpl.h
  966. * src/download_helper.cc
  967. * src/download_helper.h
  968. * test/Makefile.am
  969. * test/XmlRpcMethodTest.cc
  970. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Added xml-rpc request parser. The supported value types are:
  972. i4/int, string, double, struct, array, base64. Currently only
  973. libxml2 version is provided.
  974. * src/Xml2XmlRpcRequestProcessor.cc
  975. * src/Xml2XmlRpcRequestProcessor.h
  976. * src/XmlRpcElements.cc
  977. * src/XmlRpcElements.h
  978. * src/XmlRpcRequest.h
  979. * src/XmlRpcRequestParserController.cc
  980. * src/XmlRpcRequestParserController.h
  981. * src/XmlRpcRequestParserState.h
  982. * src/XmlRpcRequestParserStateImpl.cc
  983. * src/XmlRpcRequestParserStateImpl.h
  984. * src/XmlRpcRequestParserStateMachine.cc
  985. * src/XmlRpcRequestParserStateMachine.h
  986. * src/XmlRpcRequestProcessor.h
  987. * test/XmlRpcRequestParserControllerTest.cc
  988. * test/XmlRpcRequestProcessorTest.cc
  989. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. * Release 1.3.3
  991. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Fixed compile error since r1202.
  993. * src/ExpatMetalinkProcessor.cc
  994. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Updated Ukrainian, Russian and Simplified Chinese
  996. translations. Thanks to all translators.
  997. * po/ru.po
  998. * po/uk.po
  999. * po/zh_CN.po
  1000. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Pass reference of Option object instead of pointer.
  1002. * src/download_helper.cc
  1003. * src/download_helper.h
  1004. * src/main.cc
  1005. * test/DownloadHelperTest.cc
  1006. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1008. from option directly. Instead, get them from RequestGroup.
  1009. * src/ActivePeerConnectionCommand.cc
  1010. * src/ActivePeerConnectionCommand.h
  1011. * src/PeerReceiveHandshakeCommand.cc
  1012. * src/RequestGroup.h
  1013. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Removed unused uploadLimitCheck and uploadLimit from
  1015. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1016. PeerInteractionCommand.
  1017. * src/PeerAbstractCommand.cc
  1018. * src/PeerAbstractCommand.h
  1019. * src/PeerInteractionCommand.cc
  1020. * src/PeerInteractionCommand.h
  1021. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Fixed broken file renaming feature since r1202.
  1023. * src/FtpNegotiationCommand.cc
  1024. * src/FtpNegotiationCommand.h
  1025. * src/HttpResponseCommand.cc
  1026. * src/RequestGroup.cc
  1027. * src/RequestGroup.h
  1028. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Removed unused debug log
  1030. * src/SocketCore.cc
  1031. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Generated configure and Makefile.in using autoconf 2.63 and
  1033. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1034. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1035. * configure.ac
  1036. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Moved piece statistics stuff to new PieceStatMan class.
  1038. Refactored PieceSelector interface.
  1039. * src/DefaultPieceStorage.cc
  1040. * src/DefaultPieceStorage.h
  1041. * src/LongestSequencePieceSelector.cc
  1042. * src/LongestSequencePieceSelector.h
  1043. * src/Makefile.am
  1044. * src/PieceSelector.h
  1045. * src/PieceStatMan.cc
  1046. * src/PieceStatMan.h
  1047. * src/RarestPieceSelector.cc
  1048. * src/RarestPieceSelector.h
  1049. * src/RequestGroup.cc
  1050. * test/DefaultPieceStorageTest.cc
  1051. * test/InOrderPieceSelector.h
  1052. * test/Makefile.am
  1053. * test/PieceStatManTest.cc
  1054. * test/RarestPieceSelectorTest.cc
  1055. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Added static member _protocolFamily to SocketCore. By default,
  1057. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1058. address. Sometime SocketCore::bind() and
  1059. SocketCore::establishConnection() use difference protocl family
  1060. and latter cannot connect to former. To avoid this situation, we
  1061. limit protocol family to AF_INET for unit tests.
  1062. * src/SocketCore.cc
  1063. * src/SocketCore.h
  1064. * test/AllTest.cc
  1065. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1066. Avoid std::bad_alloc for negative bencode string length.
  1067. * src/bencode.cc
  1068. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Supported segmented downloading with chunked transfer encoding and
  1070. content-length.
  1071. * src/DownloadCommand.cc
  1072. * src/HttpResponseCommand.cc
  1073. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Bump up version number to 1.3.3
  1075. * configure.ac
  1076. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1078. from 4096 to 65536 (for insanely large ftp login banners)
  1079. * src/FtpConnection.h
  1080. * test/FtpConnectionTest.cc
  1081. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. In DefaultBtContext::getActualBasePath(), return first
  1083. FileEntry::getPath() for single file torrent.
  1084. * src/DefaultBtContext.cc
  1085. * test/DefaultBtContextTest.cc
  1086. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1088. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1089. Removed _directIOAllowed member from DiskWriter.
  1090. * src/AbstractDiskWriter.cc
  1091. * src/AbstractDiskWriter.h
  1092. * src/AbstractSingleDiskAdaptor.cc
  1093. * src/AbstractSingleDiskAdaptor.h
  1094. * src/BinaryStream.h
  1095. * src/ByteArrayDiskWriter.h
  1096. * src/DefaultPieceStorage.cc
  1097. * src/DiskWriter.h
  1098. * src/MultiDiskAdaptor.cc
  1099. * src/MultiDiskAdaptor.h
  1100. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Now the constructor of AbstractDiskWriter takes filename as an
  1102. argument and filename argument is removed from openFile(),
  1103. initAndOpenFile(), openExistingFile() interface. storeDir member
  1104. and its accessor functions are removed from DiskAdaptor because it
  1105. is not used anymore. size() member function of DefaultDiskWriter,
  1106. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1107. opening file.
  1108. * src/AbstractDiskWriter.cc
  1109. * src/AbstractDiskWriter.h
  1110. * src/AbstractSingleDiskAdaptor.cc
  1111. * src/AbstractSingleDiskAdaptor.h
  1112. * src/ByteArrayDiskWriter.cc
  1113. * src/ByteArrayDiskWriter.h
  1114. * src/ByteArrayDiskWriterFactory.cc
  1115. * src/ByteArrayDiskWriterFactory.h
  1116. * src/DefaultDiskWriter.cc
  1117. * src/DefaultDiskWriter.h
  1118. * src/DefaultDiskWriterFactory.cc
  1119. * src/DefaultDiskWriterFactory.h
  1120. * src/DefaultPieceStorage.cc
  1121. * src/DirectDiskAdaptor.cc
  1122. * src/DirectDiskAdaptor.h
  1123. * src/DiskAdaptor.h
  1124. * src/DiskWriter.h
  1125. * src/DiskWriterFactory.h
  1126. * src/MessageDigestHelper.cc
  1127. * src/MultiDiskAdaptor.cc
  1128. * src/RequestGroup.cc
  1129. * src/UnknownLengthPieceStorage.cc
  1130. * src/Util.cc
  1131. * test/DefaultDiskWriterTest.cc
  1132. * test/DirectDiskAdaptorTest.cc
  1133. * test/FallocFileAllocationIteratorTest.cc
  1134. * test/MessageDigestHelperTest.cc
  1135. * test/MetalinkProcessorTest.cc
  1136. * test/MultiDiskAdaptorTest.cc
  1137. * test/MultiFileAllocationIteratorTest.cc
  1138. * test/SingleFileAllocationIteratorTest.cc
  1139. * test/UtilTest.cc
  1140. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Fixed the bug that aria2 aborts when --select-file is used. This
  1142. bug was introduced in r1199.
  1143. * src/MultiDiskAdaptor.cc
  1144. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Code cleanup
  1146. * test/MockPieceStorage.cc
  1147. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Fixed the bug that read-only file with wrong file size will cause
  1149. error because it cannot be truncated to the correct size. Now if
  1150. file size is different than the expected one, re-open file in
  1151. writable mode.
  1152. * src/AbstractSingleDiskAdaptor.cc
  1153. * src/AbstractSingleDiskAdaptor.h
  1154. * src/BtCheckIntegrityEntry.cc
  1155. * src/DiskAdaptor.h
  1156. * src/MultiDiskAdaptor.h
  1157. * src/RequestGroup.cc
  1158. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Fixed the bug that with --check-integrity option aria2 reports
  1160. downloaded file size is 0 even if some parts of file is correctly
  1161. downloaded. This bug is reproducible for the download that a file
  1162. includes last piece is missing. This bug doesn't reveal for
  1163. single-torrent with file allocation on.
  1164. * src/IteratableChecksumValidator.cc
  1165. * test/IteratableChecksumValidatorTest.cc
  1166. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1168. * src/RequestGroupMan.cc
  1169. * src/AdaptiveURISelector.cc
  1170. * src/AdaptiveURISelector.h
  1171. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. * Release 1.3.2
  1173. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Updated README
  1175. * README
  1176. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Updated Ukrainian translations. Thanks to Alexander10.
  1178. * po/uk.po
  1179. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Code cleanup
  1181. * src/MetalinkParserStateMachine.cc
  1182. * src/MetalinkParserStateMachine.h
  1183. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1185. and expat simultaneously, MetalinkProcessor is now not base class
  1186. and it is directly implemented in XML2SAXMetalinkProcessor and
  1187. ExpatMetalinkProcessor.
  1188. * src/ExpatMetalinkProcessor.cc
  1189. * src/ExpatMetalinkProcessor.h
  1190. * src/Makefile.am
  1191. * src/MetalinkHelper.cc
  1192. * src/MetalinkProcessor.h
  1193. * src/MetalinkProcessorFactory.cc: Removed.
  1194. * src/MetalinkProcessorFactory.h: Removed
  1195. * src/XML2SAXMetalinkProcessor.cc
  1196. * src/XML2SAXMetalinkProcessor.h
  1197. * test/MetalinkProcessorTest.cc
  1198. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Bump up version number to 1.3.2
  1200. * configure.ac
  1201. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Added missing file.
  1203. * test/Makefile.am
  1204. * test/url-list-singleFileEndsWithSlash.torrent
  1205. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1207. request.
  1208. * src/AnnounceList.cc
  1209. * src/AnnounceList.h
  1210. * src/BDE.cc: Added
  1211. * src/BDE.h: Added
  1212. * src/DHTAbstractMessage.cc
  1213. * src/DHTAbstractMessage.h
  1214. * src/DHTAnnouncePeerMessage.cc
  1215. * src/DHTAnnouncePeerMessage.h
  1216. * src/DHTAnnouncePeerReplyMessage.cc
  1217. * src/DHTAnnouncePeerReplyMessage.h
  1218. * src/DHTFindNodeMessage.cc
  1219. * src/DHTFindNodeMessage.h
  1220. * src/DHTFindNodeReplyMessage.cc
  1221. * src/DHTFindNodeReplyMessage.h
  1222. * src/DHTGetPeersMessage.cc
  1223. * src/DHTGetPeersMessage.h
  1224. * src/DHTGetPeersReplyMessage.cc
  1225. * src/DHTGetPeersReplyMessage.h
  1226. * src/DHTMessageFactory.h
  1227. * src/DHTMessageFactoryImpl.cc
  1228. * src/DHTMessageFactoryImpl.h
  1229. * src/DHTMessageReceiver.cc
  1230. * src/DHTMessageTracker.cc
  1231. * src/DHTMessageTracker.h
  1232. * src/DHTPingMessage.cc
  1233. * src/DHTPingMessage.h
  1234. * src/DHTPingReplyMessage.cc
  1235. * src/DHTPingReplyMessage.h
  1236. * src/DHTQueryMessage.cc
  1237. * src/DHTQueryMessage.h
  1238. * src/DHTResponseMessage.cc
  1239. * src/DHTResponseMessage.h
  1240. * src/DefaultBtAnnounce.cc
  1241. * src/DefaultBtContext.cc
  1242. * src/DefaultBtContext.h
  1243. * src/HandshakeExtensionMessage.cc
  1244. * src/Makefile.am
  1245. * src/PeerListProcessor.h
  1246. * src/UTPexExtensionMessage.cc
  1247. * src/bencode.cc
  1248. * src/bencode.h
  1249. * test/AnnounceListTest.cc
  1250. * test/BDETest.cc: Added
  1251. * test/BencodeTest.cc
  1252. * test/DHTAnnouncePeerMessageTest.cc
  1253. * test/DHTAnnouncePeerReplyMessageTest.cc
  1254. * test/DHTFindNodeMessageTest.cc
  1255. * test/DHTFindNodeReplyMessageTest.cc
  1256. * test/DHTGetPeersMessageTest.cc
  1257. * test/DHTGetPeersReplyMessageTest.cc
  1258. * test/DHTMessageFactoryImplTest.cc
  1259. * test/DHTMessageTrackerTest.cc
  1260. * test/DHTPingMessageTest.cc
  1261. * test/DHTPingReplyMessageTest.cc
  1262. * test/Makefile.am
  1263. * test/MockDHTMessageFactory.h
  1264. * test/PeerListProcessorTest.cc
  1265. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Use url-list (web-seeding) only for single-file torrent. This is
  1267. basically the same behavior with Metalink file with torrent and
  1268. URIs.
  1269. * src/RequestGroup.cc
  1270. * src/DefaultBtContext.cc
  1271. * test/DefaultBtContextTest.cc
  1272. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Rewritten expr
  1274. * src/array_fun.h
  1275. * test/array_funTest.cc
  1276. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1278. * src/DefaultBtMessageDispatcher.cc
  1279. * src/a2algo.h
  1280. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Removed ExtendedMessagingAware. Instead of using inheritance,
  1282. added ExtensionMessageRegistry and it is passed to
  1283. DefaultExtensionMessageFactory.
  1284. * src/DefaultBtInteractive.cc
  1285. * src/DefaultBtInteractive.h
  1286. * src/DefaultExtensionMessageFactory.cc
  1287. * src/DefaultExtensionMessageFactory.h
  1288. * src/ExtendedMessagingAware.h: Removed.
  1289. * src/ExtensionMessageFactory.h
  1290. * src/ExtensionMessageRegistry.h: Added.
  1291. * src/Makefile.am
  1292. * src/PeerInteractionCommand.cc
  1293. * test/DefaultExtensionMessageFactoryTest.cc
  1294. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Fixed typo in log messages
  1296. * src/MSEHandshake.cc
  1297. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Fixed the bug that prevents torrent download from finishing. The
  1299. bug doesn't reveal for all torrents. The torrents affected this
  1300. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1301. of pieces.
  1302. * src/bitfield.h
  1303. * test/bitfieldTest.cc
  1304. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Code cleanup
  1306. * src/PeerListProcessor.h
  1307. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Removed RequestGroupAware
  1309. * src/AbstractCommand.cc
  1310. * src/AbstractCommand.h
  1311. * src/ActivePeerConnectionCommand.cc
  1312. * src/ActivePeerConnectionCommand.h
  1313. * src/DHTGetPeersCommand.cc
  1314. * src/DHTGetPeersCommand.h
  1315. * src/InitiatorMSEHandshakeCommand.cc
  1316. * src/InitiatorMSEHandshakeCommand.h
  1317. * src/Makefile.am
  1318. * src/PeerInitiateConnectionCommand.cc
  1319. * src/PeerInitiateConnectionCommand.h
  1320. * src/PeerInteractionCommand.cc
  1321. * src/PeerInteractionCommand.h
  1322. * src/RealtimeCommand.cc
  1323. * src/RealtimeCommand.h
  1324. * src/RequestGroupAware.cc: Removed
  1325. * src/RequestGroupAware.h: Removed
  1326. * src/SeedCheckCommand.cc
  1327. * src/SeedCheckCommand.h
  1328. * src/SleepCommand.cc
  1329. * src/TrackerWatcherCommand.cc
  1330. * src/TrackerWatcherCommand.h
  1331. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Rewritten PeerListProcessor
  1333. * src/PeerListProcessor.h
  1334. * src/CompactPeerListProcessor.h: Removed
  1335. * src/CompactPeerListProcessor.cc: Removed
  1336. * src/DelegatingPeerListProcessor.cc: Removed.
  1337. * src/DefaultBtAnnounce.cc
  1338. * src/Makefile.am
  1339. * src/UTPexExtensionMessage.cc
  1340. * src/DefaultPeerListProcessor.h: Removed.
  1341. * src/DefaultPeerListProcessor.cc: Removed.
  1342. * src/DelegatingPeerListProcessor.h: Removed.
  1343. * test/Makefile.am
  1344. * test/PeerListProcessorTest.cc
  1345. * test/DefaultPeerListProcessorTest.cc: Removed.
  1346. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Rewritten RequestGroupMan::calculateStat()
  1348. * src/RequestGroupMan.cc
  1349. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Removed unnecessary virtual destructor for Request class.
  1351. * src/Request.cc
  1352. * src/Request.h
  1353. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Avoid dynamic_pointer_cast.
  1355. * src/DHTGetPeersCommand.cc
  1356. * src/DHTGetPeersCommand.h
  1357. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1359. BtEvent.
  1360. * src/AbstractBtEventListener.h: Removed.
  1361. * src/AbstractBtMessage.cc
  1362. * src/AbstractBtMessage.h
  1363. * src/BtAbortOutstandingRequestEvent.h
  1364. * src/BtCancelSendingPieceEvent.h
  1365. * src/BtChokedEvent.h: Removed.
  1366. * src/BtChokingEvent.h
  1367. * src/BtEvent.h: Removed
  1368. * src/BtEventListener.h: Removed.
  1369. * src/BtMessage.h
  1370. * src/BtPieceMessage.cc
  1371. * src/BtPieceMessage.h
  1372. * src/BtRequestMessage.cc
  1373. * src/BtRequestMessage.h
  1374. * src/DefaultBtMessageDispatcher.cc
  1375. * src/Makefile.am
  1376. * src/a2functional.h
  1377. * test/BtPieceMessageTest.cc
  1378. * test/BtRequestMessageTest.cc
  1379. * test/DefaultBtMessageDispatcherTest.cc
  1380. * test/MockBtMessage.h
  1381. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Code cleanup
  1383. * src/RequestGroupMan.cc
  1384. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Code cleanup
  1386. * src/DownloadCommand.cc
  1387. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1389. byte.
  1390. * src/DownloadCommand.cc
  1391. * src/bitfield.h
  1392. * test/bitfieldTest.cc
  1393. Fixed the bug that causes infinite loop if broken web server
  1394. returns chunked response without last "0" chunk-size marker and
  1395. closes connection.
  1396. * src/DownloadCommand.cc
  1397. Instantiate properly configured HttpDownloadCommand for
  1398. non-resumable downlaods.
  1399. * src/HttpResponseCommand.cc
  1400. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Rewritten array operation functions.
  1402. * src/BitfieldMan.cc
  1403. * src/array_fun.h
  1404. * test/array_funTest.cc
  1405. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Removed unused variable 'query'
  1407. * src/Request.cc
  1408. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1410. accidentally set to false in r1162.
  1411. * configure.ac
  1412. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Code cleanup
  1414. * src/BNode.cc
  1415. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Increase prefixLength for the bucket which doesn't own local node
  1417. ID when splitting bucket.
  1418. * src/DHTBucket.cc
  1419. * test/DHTBucketTest.cc
  1420. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. * Release 1.3.1
  1422. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Bump up version number to 1.3.1
  1424. * configure.ac
  1425. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Removed unused variable checkPoint. Also removed include directive
  1427. for TimeA2.h.
  1428. * src/SeedCheckCommand.h
  1429. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Fixed the bug that upload limit exceeds the value specified in
  1431. --seed-ratio option depending on the timing of the execution of
  1432. SeedCheckCommand.
  1433. * src/SeedCheckCommand.cc
  1434. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Fixed the bug that removed peer's session upload/download length
  1436. are counted twice in _cachedTransferStat before it is
  1437. re-calculated. This affected the calculation of shara ratio,
  1438. resulting aria2 wrongly determines that specified share ratio is
  1439. reached. Also fixed the typo in calculateStatFor function name.
  1440. * src/BtSetup.cc
  1441. * src/DefaultPeerStorage.cc
  1442. * src/ShareRatioSeedCriteria.h
  1443. * test/ShareRatioSeedCriteriaTest.cc
  1444. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. * Release 1.3.0
  1446. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1448. Nynorsk translations. Thanks to all translators.
  1449. * po/es.po
  1450. * po/ja.po
  1451. * po/nn.po
  1452. * po/ru.po
  1453. * po/uk.po
  1454. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Rewritten isInRange()
  1456. * src/DHTBucket.cc
  1457. * test/DHTBucketTest.cc
  1458. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Fixed typo
  1460. * doc/aria2c.1.txt
  1461. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1463. malloc/realloc is not used.
  1464. * src/configure.ac
  1465. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1467. char* bitfield instead of stl container for efficiency.
  1468. PieceSelector::select now takes this
  1469. bitfield. RarestPieceSelector::select now also performs
  1470. efficiently for this change. bitfield namespace is introduced and
  1471. it has several helper functions to handle basic bitfield
  1472. operations such as test, count set bits, etc.
  1473. * src/BitfieldMan.cc
  1474. * src/BitfieldMan.h
  1475. * src/DefaultBtRequestFactory.cc
  1476. * src/DefaultPieceStorage.cc
  1477. * src/DefaultPieceStorage.h
  1478. * src/LongestSequencePieceSelector.cc
  1479. * src/LongestSequencePieceSelector.h
  1480. * src/Makefile.am
  1481. * src/Piece.cc
  1482. * src/Piece.h
  1483. * src/PieceSelector.h
  1484. * src/RarestPieceSelector.cc
  1485. * src/RarestPieceSelector.h
  1486. * src/Util.cc
  1487. * src/Util.h
  1488. * src/bitfield.h
  1489. * test/BitfieldManTest.cc
  1490. * test/LongestSequencePieceSelectorTest.cc
  1491. * test/Makefile.am
  1492. * test/RarestPieceSelectorTest.cc
  1493. * test/UtilTest.cc
  1494. * test/bitfieldTest.cc
  1495. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Made accepted socket non-block.
  1497. * src/FtpNegotiationCommand.cc
  1498. * src/HttpListenCommand.cc
  1499. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1501. * src/AbstractSingleDiskAdaptor.cc
  1502. * src/DefaultPieceStorage.cc
  1503. * src/DiskAdaptor.h
  1504. * src/DiskAdaptor.h
  1505. * src/MultiFileAllocationIterator.cc
  1506. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Run
  1508. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1509. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1510. it doesn't need to be called every time when
  1511. DefaultBtInteractive::doInteractionProcessing() is called.
  1512. * src/DefaultBtInteractive.cc
  1513. * src/DefaultBtInteractive.h
  1514. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Documented 'falloc' in man page.
  1516. * doc/aria2c.1.txt
  1517. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Updated doc
  1519. * src/usage_text.h
  1520. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1522. allocation mode uses posix_fallocate() system call to allocate
  1523. file on disk. If you are using newer file systems such as ext4
  1524. (with extents support), btrfs or xfs, 'falloc' is your best
  1525. choice. It allocates large(few GiB) files almost instantly. Don't
  1526. use 'falloc' with legacy file systems such as ext3 because it
  1527. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1528. until allocation finishes. 'falloc' may not be available if your
  1529. system doesn't have posix_fallocate() system call.
  1530. * configure.ac
  1531. * src/AbstractDiskWriter.cc
  1532. * src/AbstractDiskWriter.h
  1533. * src/AbstractSingleDiskAdaptor.cc
  1534. * src/BinaryStream.h
  1535. * src/BtCheckIntegrityEntry.cc
  1536. * src/ByteArrayDiskWriter.h
  1537. * src/CheckIntegrityEntry.cc
  1538. * src/CheckIntegrityEntry.h
  1539. * src/DefaultPieceStorage.cc
  1540. * src/DiskAdaptor.cc
  1541. * src/DiskAdaptor.h
  1542. * src/DiskWriter.h
  1543. * src/FallocFileAllocationIterator.cc
  1544. * src/FallocFileAllocationIterator.h
  1545. * src/FileAllocationEntry.cc
  1546. * src/FileAllocationEntry.h
  1547. * src/Makefile.am
  1548. * src/MultiFileAllocationIterator.cc
  1549. * src/MultiFileAllocationIterator.h
  1550. * src/OptionHandlerFactory.cc
  1551. * src/RequestGroup.cc
  1552. * src/StreamCheckIntegrityEntry.cc
  1553. * src/prefs.cc
  1554. * src/prefs.h
  1555. * src/usage_text.h
  1556. * test/FallocFileAllocationIteratorTest.cc
  1557. * test/Makefile.am
  1558. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Removed duplicate enableDirectIO() call.
  1560. * src/MultiFileAllocationIterator.cc
  1561. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1563. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1564. cost of std::rotate().
  1565. * src/RarestPieceSelector.cc
  1566. * src/RarestPieceSelector.h
  1567. * test/RarestPieceSelectorTest.cc
  1568. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Updated usage doc for --bt-tracker-interval option.
  1570. * src/usage_text.h
  1571. * doc/aria2c.1.txt
  1572. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Documented --bt-tracker-interval option in man page.
  1574. * doc/aria2c.1.txt
  1575. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Added an option to specify the interval between tracker requests.
  1577. If non-zero value is specified, aria2 uses it and ignores the
  1578. interval value in the response of tracker. If zero is specified,
  1579. aria2 determines the inteval value based on the tarcker response
  1580. and download progress.
  1581. * src/DefaultBtAnnounce.cc
  1582. * src/DefaultBtAnnounce.h
  1583. * src/OptionHandlerFactory.cc
  1584. * src/RequestGroup.cc
  1585. * src/prefs.cc
  1586. * src/prefs.h
  1587. * src/usage_text.h
  1588. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Added operator+=, operator-=, operator-
  1590. * src/TransferStat.cc
  1591. * src/TransferStat.h
  1592. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Refactored RarestPieceSelector to reduce CPU load, especially for
  1594. addPieceStats.
  1595. * src/RarestPieceSelector.cc
  1596. * src/RarestPieceSelector.h
  1597. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1599. getAllMissingBlockIndexes to reduce a call to
  1600. array_function_base::operator[].
  1601. * src/BitfieldMan.cc
  1602. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Cached TransferStat/download speed to avoid to sum them up in each
  1604. call.
  1605. * src/DefaultPeerStorage.cc
  1606. * src/DefaultPeerStorage.h
  1607. * src/SegmentMan.cc
  1608. * src/SegmentMan.h
  1609. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Typedefed cuid_t as int32_t in Command.h
  1611. * src/CUIDCounter.h
  1612. * src/Command.cc
  1613. * src/Command.h
  1614. * src/DownloadEngine.cc
  1615. * src/DownloadEngine.h
  1616. * src/PeerStat.h
  1617. * src/SegmentMan.cc
  1618. * src/SegmentMan.h
  1619. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Reduced the number of calls to PeerStorage::calculateStat() and
  1621. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1622. transfer rate.
  1623. * src/DefaultBtInteractive.cc
  1624. * src/DefaultBtMessageDispatcher.cc
  1625. * src/DefaultPeerStorage.cc
  1626. * src/DefaultPeerStorage.h
  1627. * src/DownloadCommand.cc
  1628. * src/DownloadEngine.cc
  1629. * src/PeerStorage.h
  1630. * src/SegmentMan.cc
  1631. * src/SegmentMan.h
  1632. * test/MockPeerStorage.h
  1633. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Prepended _dir+"/" after joining path elements in torrent file.
  1635. * src/DefaultBtContext.cc
  1636. * test/DefaultBtContextTest.cc
  1637. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Added missing IndexBtMessageValidator.h
  1639. * src/Makefile.am
  1640. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1642. Chinese translations. Thank you for contributing our project.
  1643. * po/id.po
  1644. * po/it.po
  1645. * po/ru.po
  1646. * po/uk.po
  1647. * po/zh_CN.po
  1648. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Updated README
  1650. * README
  1651. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Bump up version number to 1.3.0
  1653. * configure.ac
  1654. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Updated doc
  1656. * src/DefaultBtContext.h
  1657. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Slice/joinPath for name of single torrent.
  1659. * src/DefaultBtContext.cc
  1660. * test/DefaultBtContextTest.cc
  1661. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Updated man page: Documented --dry-run and --index-out
  1663. options. Changed the default value of --uri-selector and
  1664. --http-auth-challenge options. Removed --direct-file-mapping
  1665. option. Added example for --index-out
  1666. * doc/aria2c.1.txt
  1667. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Updated TEXT_DRY_RUN
  1669. * src/usage_text.h
  1670. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Changed the default value of --uri-selector option from 'inorder'
  1672. to 'feedback'
  1673. * src/OptionHandlerFactory.cc
  1674. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Included current URI in exception message.
  1676. * src/AbstractCommand.cc
  1677. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Renamed ServerStatURISelector as FeedbackURISelector.
  1679. * src/FeedbackURISelector.cc
  1680. * src/FeedbackURISelector.h
  1681. * src/Makefile.am
  1682. * src/RequestGroupMan.cc
  1683. * src/ServerStatURISelector.cc
  1684. * src/ServerStatURISelector.h
  1685. * test/FeedbackURISelectorTest.cc
  1686. * test/Makefile.am
  1687. * test/ServerStatURISelectorTest.cc
  1688. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1690. all URIs are tested and their timeout is not reached.
  1691. * src/AdaptiveURISelector.cc
  1692. * src/AdaptiveURISelector.h
  1693. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Changed the default value of --http-auth-challenge option to false.
  1695. * src/OptionHandlerFactory.cc
  1696. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Reuse URIs when all unused URIs run out.
  1698. * src/OptionHandlerFactory.cc
  1699. * src/RequestGroup.cc
  1700. * src/prefs.cc
  1701. * src/prefs.h
  1702. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1704. and BtRejectMessage are derived from RangeBtMessage class.
  1705. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1706. derived from IndexBtMessage class. BtChokeMessage,
  1707. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1708. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1709. ZeroBtMessage class.
  1710. * src/AbstractBtMessage.cc
  1711. * src/AbstractBtMessage.h
  1712. * src/BtAllowedFastMessage.cc
  1713. * src/BtAllowedFastMessage.h
  1714. * src/BtAllowedFastMessageValidator.h: Removed
  1715. * src/BtBitfieldMessage.cc
  1716. * src/BtBitfieldMessage.h
  1717. * src/BtCancelMessage.cc
  1718. * src/BtCancelMessage.h
  1719. * src/BtCancelMessageValidator.h: Removed
  1720. * src/BtChokeMessage.cc
  1721. * src/BtChokeMessage.h
  1722. * src/BtExtendedMessage.cc
  1723. * src/BtExtendedMessage.h
  1724. * src/BtHandshakeMessage.cc
  1725. * src/BtHandshakeMessage.h
  1726. * src/BtHaveAllMessage.cc
  1727. * src/BtHaveAllMessage.h
  1728. * src/BtHaveMessage.cc
  1729. * src/BtHaveMessage.h
  1730. * src/BtHaveMessageValidator.h: Removed
  1731. * src/BtHaveNoneMessage.cc
  1732. * src/BtHaveNoneMessage.h
  1733. * src/BtInterestedMessage.cc
  1734. * src/BtInterestedMessage.h
  1735. * src/BtKeepAliveMessage.cc
  1736. * src/BtKeepAliveMessage.h
  1737. * src/BtNotInterestedMessage.cc
  1738. * src/BtNotInterestedMessage.h
  1739. * src/BtPieceMessage.cc
  1740. * src/BtPieceMessage.h
  1741. * src/BtPortMessage.cc
  1742. * src/BtPortMessage.h
  1743. * src/BtRejectMessage.cc
  1744. * src/BtRejectMessage.h
  1745. * src/BtRejectMessageValidator.h: Removed
  1746. * src/BtRequestMessage.cc
  1747. * src/BtRequestMessage.h
  1748. * src/BtRequestMessageValidator.h: Removed
  1749. * src/BtSuggestPieceMessage.cc
  1750. * src/BtSuggestPieceMessage.h
  1751. * src/BtSuggestPieceMessageValidator.h: Removed
  1752. * src/BtUnchokeMessage.cc
  1753. * src/BtUnchokeMessage.h
  1754. * src/DefaultBtMessageFactory.cc
  1755. * src/IndexBtMessage.cc
  1756. * src/IndexBtMessage.h
  1757. * src/IndexBtMessageValidator.h
  1758. * src/Makefile.am
  1759. * src/PeerMessageUtil.cc
  1760. * src/PeerMessageUtil.h
  1761. * src/RangeBtMessage.cc
  1762. * src/RangeBtMessage.h
  1763. * src/RangeBtMessageValidator.h
  1764. * src/SimpleBtMessage.cc
  1765. * src/SimpleBtMessage.h
  1766. * src/ZeroBtMessage.cc
  1767. * src/ZeroBtMessage.h
  1768. * test/BtRequestMessageTest.cc
  1769. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Reverted usage_text.h to r1093 to avoid to lose translated
  1771. messages.
  1772. * src/usage_text.h
  1773. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1775. declared as non-const previously is now const and defined in class
  1776. definition.
  1777. * src/AbstractBtMessage.cc
  1778. * src/AbstractBtMessage.h
  1779. * src/BtAllowedFastMessage.cc
  1780. * src/BtAllowedFastMessage.h
  1781. * src/BtBitfieldMessage.h
  1782. * src/BtCancelMessage.cc
  1783. * src/BtCancelMessage.h
  1784. * src/BtChokeMessage.cc
  1785. * src/BtChokeMessage.h
  1786. * src/BtExtendedMessage.cc
  1787. * src/BtExtendedMessage.h
  1788. * src/BtHandshakeMessage.cc
  1789. * src/BtHandshakeMessage.h
  1790. * src/BtHaveAllMessage.cc
  1791. * src/BtHaveAllMessage.h
  1792. * src/BtHaveMessage.cc
  1793. * src/BtHaveMessage.h
  1794. * src/BtHaveNoneMessage.cc
  1795. * src/BtHaveNoneMessage.h
  1796. * src/BtInterestedMessage.cc
  1797. * src/BtInterestedMessage.h
  1798. * src/BtKeepAliveMessage.cc
  1799. * src/BtKeepAliveMessage.h
  1800. * src/BtMessage.h
  1801. * src/BtNotInterestedMessage.cc
  1802. * src/BtNotInterestedMessage.h
  1803. * src/BtPieceMessage.h
  1804. * src/BtPortMessage.cc
  1805. * src/BtPortMessage.h
  1806. * src/BtRejectMessage.cc
  1807. * src/BtRejectMessage.h
  1808. * src/BtRequestMessage.cc
  1809. * src/BtRequestMessage.h
  1810. * src/BtSuggestPieceMessage.cc
  1811. * src/BtSuggestPieceMessage.h
  1812. * src/BtUnchokeMessage.cc
  1813. * src/BtUnchokeMessage.h
  1814. * src/SimpleBtMessage.cc
  1815. * src/SimpleBtMessage.h
  1816. * test/MockBtMessage.h
  1817. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Use FileEntry::exists()
  1819. * src/MultiDiskAdaptor.cc
  1820. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Added exists()
  1822. * src/FileEntry.cc
  1823. * src/FileEntry.h
  1824. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Added missing prefix dir.
  1826. * src/download_helper.cc
  1827. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1829. * src/CopyDiskAdaptor.cc: Removed
  1830. * src/CopyDiskAdaptor.h: Removed
  1831. * src/DefaultPieceStorage.cc
  1832. * src/Makefile.am
  1833. * src/OptionHandlerFactory.cc
  1834. * src/prefs.cc
  1835. * src/prefs.h
  1836. * src/usage_text.h
  1837. * test/CopyDiskAdaptorTest.cc: Removed
  1838. * test/Makefile.am
  1839. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Rewritten isSameFileBeingDownloaded()
  1841. * src/RequestGroupMan.cc
  1842. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Removed getName() from DownloadContext. getName() is declared in
  1844. BtContext.
  1845. * src/BtContext.h
  1846. * src/DownloadContext.h
  1847. * src/SingleFileDownloadContext.cc
  1848. * src/SingleFileDownloadContext.h
  1849. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1850. in AbstractSingleDiskAdaptor.
  1851. * src/AbstractSingleDiskAdaptor.h
  1852. * src/DiskAdaptor.h
  1853. * src/MultiDiskAdaptor.h
  1854. * src/RequestGroup.cc
  1855. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1856. MultiDiskAdaptor.
  1857. * src/DefaultPieceStorage.cc
  1858. * src/MultiDiskAdaptor.cc
  1859. * src/MultiDiskAdaptor.h
  1860. * test/MultiDiskAdaptorTest.cc
  1861. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. FileEntry::getPath() contains store(top level) directory to
  1863. simplify path handling operation. In the previous implementation,
  1864. store directory is concatenated to FileEntry::getPath() in
  1865. DownloadContext.
  1866. * src/BtDependency.cc
  1867. * src/BtPostDownloadHandler.cc
  1868. * src/CopyDiskAdaptor.cc
  1869. * src/DefaultBtContext.cc
  1870. * src/DirectDiskAdaptor.cc
  1871. * src/FileEntry.cc
  1872. * src/FileEntry.h
  1873. * src/FtpNegotiationCommand.cc
  1874. * src/HttpResponse.cc
  1875. * src/HttpResponseCommand.cc
  1876. * src/Metalink2RequestGroup.cc
  1877. * src/MultiDiskAdaptor.cc
  1878. * src/MultiDiskAdaptor.h
  1879. * src/MultiFileAllocationIterator.cc
  1880. * src/RequestGroup.cc
  1881. * src/SingleFileDownloadContext.cc
  1882. * src/SingleFileDownloadContext.h
  1883. * src/download_helper.cc
  1884. * test/BtDependencyTest.cc
  1885. * test/CopyDiskAdaptorTest.cc
  1886. * test/DefaultBtContextTest.cc
  1887. * test/DefaultBtProgressInfoFileTest.cc
  1888. * test/DirectDiskAdaptorTest.cc
  1889. * test/DownloadHelperTest.cc
  1890. * test/FileEntryTest.cc
  1891. * test/MultiDiskAdaptorTest.cc
  1892. * test/MultiFileAllocationIteratorTest.cc
  1893. * test/RequestGroupTest.cc
  1894. * test/SingleFileDownloadContextTest.cc
  1895. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Fixed compiler warning
  1897. * src/download_helper.cc
  1898. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Throw exception if same infohash torrent is now downloading.
  1900. * src/RequestGroup.cc
  1901. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Added --dry-run option. In this mode, aria2 just checks whether
  1903. the remote file is available and doesn't download data. This
  1904. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1905. are canceled in this mode.
  1906. * src/FtpNegotiationCommand.cc
  1907. * src/HttpResponseCommand.cc
  1908. * src/HttpResponseCommand.h
  1909. * src/OptionHandlerFactory.cc
  1910. * src/RequestGroup.cc
  1911. * src/RequestGroupMan.cc
  1912. * src/prefs.cc
  1913. * src/prefs.h
  1914. * src/usage_text.h
  1915. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Fixed compiler waring
  1917. * test/UriListParserTest.cc
  1918. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Parse options in -i list using OptionParser.
  1920. * src/UriListParser.cc
  1921. * src/UriListParser.h
  1922. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Don't reset URI in retry to avoid additional round trips because
  1924. of redirects.
  1925. * src/AbstractCommand.cc
  1926. * src/OptionHandlerFactory.cc
  1927. * src/prefs.cc
  1928. * src/prefs.h
  1929. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Declared hide() in OptionHandler.
  1931. * src/NameMatchOptionHandler.h
  1932. * src/OptionHandler.h
  1933. * src/OptionHandlerImpl.h
  1934. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Updated doc
  1936. * src/Peer.h
  1937. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Added log message in setStatusInternal()
  1939. * src/ServerStat.cc
  1940. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1942. effectively exclude failed server.
  1943. * src/AbstractCommand.cc
  1944. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Added --index-out option to specify each file path for torrent.
  1946. Here index shown in --show-files option is used to specify which
  1947. file path should be altered. For example, to change the file path
  1948. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1949. option multiple times: --index-out=1=aria2.tar.bz2
  1950. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1951. available. This option can be specified in -i list.
  1952. * src/DefaultBtContext.cc
  1953. * src/DefaultBtContext.h
  1954. * src/MultiDiskAdaptor.cc
  1955. * src/MultiDiskAdaptor.h
  1956. * src/MultiFileAllocationIterator.cc
  1957. * src/OptionHandlerFactory.cc
  1958. * src/OptionHandlerImpl.h
  1959. * src/Util.cc
  1960. * src/Util.h
  1961. * src/download_helper.cc
  1962. * src/prefs.cc
  1963. * src/prefs.h
  1964. * src/usage_text.h
  1965. * test/DefaultBtContextTest.cc
  1966. * test/MultiDiskAdaptorTest.cc
  1967. * test/MultiFileAllocationIteratorTest.cc
  1968. * test/UtilTest.cc
  1969. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Use Util::pathJoin()
  1971. * src/MetalinkParserController.cc
  1972. * test/test.xml
  1973. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Use Util::pathJoin()
  1975. * src/DefaultBtContext.cc
  1976. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Added Util::pathJoin()
  1978. * src/Util.h
  1979. * test/UtilTest.cc
  1980. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Applied basename function to remove directory element in
  1982. content-disposition value.
  1983. Return empty string if content-disposition value is ".." or ".".
  1984. * src/Util.cc
  1985. * test/UtilTest.cc
  1986. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Added --max-overall-download-limit in man page.
  1988. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1989. * doc/aria2c.1.txt
  1990. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Added --max-overall-download-limit option. Now --max-upload-limit
  1992. option is not ignored when --max-overall-upload-limit option has
  1993. non-zero value. aria2 checks download(upload) speed in the order:
  1994. first checks overall speed limit and if it is not exceeded, then
  1995. checks speed limit per download. Thus you can specify both
  1996. value. For example, set --max-overall-download-limit=1M and
  1997. --max-download-limit=500K to prevent from one download from eating
  1998. all overall speed limit.
  1999. * src/DefaultBtInteractive.cc
  2000. * src/DefaultBtInteractive.h
  2001. * src/DefaultBtMessageDispatcher.cc
  2002. * src/DefaultBtMessageDispatcher.h
  2003. * src/DownloadCommand.cc
  2004. * src/DownloadCommand.h
  2005. * src/FtpNegotiationCommand.cc
  2006. * src/HttpResponseCommand.cc
  2007. * src/OptionHandlerFactory.cc
  2008. * src/PeerInteractionCommand.cc
  2009. * src/RequestGroup.cc
  2010. * src/RequestGroup.h
  2011. * src/RequestGroupMan.cc
  2012. * src/RequestGroupMan.h
  2013. * src/prefs.cc
  2014. * src/prefs.h
  2015. * src/usage_text.h
  2016. * test/DefaultBtMessageDispatcherTest.cc
  2017. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Documented select-file option in Input File section.
  2019. Documented --http-auth-challenge option.
  2020. * doc/aria2c.1.txt
  2021. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Now select-file can be specified in the uri list(-i list).
  2023. * src/BtContext.cc
  2024. * src/BtContext.h
  2025. * src/RequestGroup.cc
  2026. * src/Sequence.h
  2027. * src/download_helper.cc
  2028. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Made the upper value of --max-concurrent-downloads options unlimited.
  2030. * src/OptionHandlerFactory.cc
  2031. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Fixed the bug that disk writer is not created even if it shares
  2033. same piece with the preceding file if the length of previous file
  2034. is 0.
  2035. * src/MultiDiskAdaptor.cc
  2036. * test/MultiDiskAdaptorTest.cc
  2037. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. In BitTorrent, Open files in read-only mode for hash check. After
  2039. that, re-open file in read/write mode only when the download is
  2040. not finished.
  2041. * src/AbstractDiskWriter.cc
  2042. * src/AbstractDiskWriter.h
  2043. * src/AbstractSingleDiskAdaptor.cc
  2044. * src/AbstractSingleDiskAdaptor.h
  2045. * src/BtCheckIntegrityEntry.cc
  2046. * src/DiskAdaptor.h
  2047. * src/DiskWriter.h
  2048. * src/MultiDiskAdaptor.cc
  2049. * src/MultiDiskAdaptor.h
  2050. * src/RequestGroup.cc
  2051. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Added --http-auth-challenge option. If it is set to true(by
  2053. default), aria2 sends HTTP authorization header only when it is
  2054. requested by the server. If false is set, then authorization
  2055. header is always sent to the server. This is useful for servers
  2056. that don't respond 401 code when authentication is required.
  2057. There is an exception: if username and password are embedded in
  2058. URI, authorization header is always sent to the server regardless
  2059. of this option.
  2060. * src/AuthConfigFactory.cc
  2061. * src/HttpSkipResponseCommand.cc
  2062. * src/OptionHandlerFactory.cc
  2063. * src/prefs.cc
  2064. * src/prefs.h
  2065. * src/usage_text.h
  2066. * test/AuthConfigFactoryTest.cc
  2067. * test/HttpRequestTest.cc
  2068. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. * Release 1.2.0
  2070. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2072. Thanks to all translators.
  2073. * po/es.po
  2074. * po/ja.po
  2075. * po/ru.po
  2076. * po/uk.po
  2077. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Call deleteSocketForReadCheck() before socket is closed.
  2079. * src/HttpListenCommand.cc
  2080. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Defined virtual destructor for BObject.
  2082. * src/bencode.h
  2083. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Rewritten BDE to make it efficient.
  2085. * src/bencode.cc
  2086. * src/bencode.h
  2087. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Removed function throw list.
  2089. * src/bencode.cc
  2090. * src/bencode.h
  2091. * test/BencodeTest.cc
  2092. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Enclosed all URLs in double quotes in command-line examples.
  2094. * doc/aria2c.1.txt
  2095. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Updated reference/see also section.
  2097. * README
  2098. * doc/aria2c.1.txt
  2099. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Reorganized man page based on man man-pages.
  2101. * doc/aria2c.1.txt
  2102. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2104. because same documents are available in man page. Added
  2105. References section.
  2106. * README
  2107. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2109. PERFORMANCE PROFILE section.
  2110. * doc/aria2c.1.txt
  2111. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Rewritten the section for configuration file.
  2113. * README
  2114. * doc/aria2c.1.txt
  2115. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Fixed the segmentation fault during execution of choking algorithm
  2117. in leecher state because of broken compare operator
  2118. implementation.
  2119. * src/BtLeecherStateChoke.cc
  2120. * src/BtLeecherStateChoke.h
  2121. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Open file in binary mode.
  2123. * src/CookieStorage.cc
  2124. * src/DHTSetup.cc
  2125. * src/DHTUtil.cc
  2126. * src/Netrc.cc
  2127. * src/NsCookieParser.cc
  2128. * src/ProtocolDetector.cc
  2129. * src/RequestGroupMan.cc
  2130. * src/Signature.cc
  2131. * src/bencode.cc
  2132. * src/download_helper.cc
  2133. * src/option_processing.cc
  2134. * test/CookieParserTest.cc
  2135. * test/DefaultBtProgressInfoFileTest.cc
  2136. * test/FileTest.cc
  2137. * test/GZipDecoderTest.cc
  2138. * test/RequestGroupManTest.cc
  2139. * test/SignatureTest.cc
  2140. * test/SingleFileAllocationIteratorTest.cc
  2141. * test/UriListParserTest.cc
  2142. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Removed operator[] because it is ambiguous with built-in []
  2144. operator.
  2145. * src/array_fun.h
  2146. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Fixed compile error
  2148. * src/OptionParser.cc
  2149. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Added missing call to arrayWrapperConst
  2151. * test/array_funTest.cc
  2152. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Use array_wrapper instead of array_ptr.
  2154. * src/DHTRoutingTableDeserializer.cc
  2155. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2157. * src/array_fun.h
  2158. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Added array_wrapper template.
  2160. * src/array_fun.h
  2161. * test/array_funTest.cc
  2162. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Use operator T* of array_ptr.
  2164. * src/OptionParser.cc
  2165. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Use localhost instead of 127.0.0.1
  2167. * test/FtpConnectionTest.cc
  2168. * test/MSEHandshakeTest.cc
  2169. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added operator T*
  2171. * src/array_fun.h
  2172. * test/array_funTest.cc
  2173. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Use dynamically allocated char array to detect memory access
  2175. violation.
  2176. * src/DHTRoutingTableDeserializer.cc
  2177. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2179. defined.
  2180. * src/PeerMessageUtil.cc
  2181. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2183. * configure.ac
  2184. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Added a check to see struct sockaddr_in has sin_len member.
  2186. * configure.ac
  2187. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Fixed buffer overrun.
  2189. * src/DHTRoutingTableDeserializer.cc
  2190. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Added LL for long long int constant.
  2192. * test/FtpConnectionTest.cc
  2193. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Casted to unsigned int to suppress compiler warning on netbsd.
  2195. * src/BtRuntime.h
  2196. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2198. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2199. type time_t.
  2200. * src/SimpleLogger.cc
  2201. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Added test for FtpConnection::receiveSizeResponse().
  2203. * test/FtpConnectionTest.cc
  2204. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Fix epoll error on the old kernel 2.6.8 or ealier.
  2206. * src/EpollEventPoll.cc
  2207. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Use Util::parseLLInt instead of sscanf for portability. The
  2209. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2210. * src/FtpConnection.cc
  2211. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2213. block. It should not filter anything.
  2214. * src/BitfieldMan.cc
  2215. * src/ConsoleStatCalc.cc
  2216. * test/BitfieldManTest.cc
  2217. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Fixed the bug that the boolean options that don't take arguments
  2219. don't work.
  2220. * src/OptionHandlerImpl.h
  2221. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Fixed broken selected file BitTorrent download.
  2223. * src/MultiDiskAdaptor.cc
  2224. * test/MultiDiskAdaptorTest.cc
  2225. * test/MultiFileAllocationIteratorTest.cc
  2226. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Fixed #define guard for EpollEventPoll
  2228. * src/EpollEventPoll.h
  2229. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Wait 2 seconds. 1 second is sometimes not enough.
  2231. * test/TimeSeedCriteriaTest.cc
  2232. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Use localhost instead of 127.0.0.1.
  2234. * test/DHTConnectionImplTest.cc
  2235. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Suppressed compiler warning.
  2237. * src/AdaptiveURISelector.cc
  2238. * src/DefaultPieceStorage.cc
  2239. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Defined virtual destructor.
  2241. * src/MetalinkParserState.h
  2242. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Give NULL for second argument of getaddrinfo instead of "0".
  2244. * src/NameResolver.cc
  2245. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2247. included strptime doesn't parse data for this format.
  2248. * src/FtpConnection.cc
  2249. * test/FtpConnectionTest.cc
  2250. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Removed tests giving -1 for unsigned argument.
  2252. * test/SingleFileDownloadContextTest.cc
  2253. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Don't use sha256 in tests because it might not be supported by the
  2255. SSL library.
  2256. * test/MetalinkProcessorTest.cc
  2257. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Removed tests giving -1 for unsigned argument.
  2259. * test/AlphaNumberDecoratorTest
  2260. * test/BitfieldManTest.cc
  2261. * test/DefaultBtContextTest.cc
  2262. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Fixed compile error without libcares when epoll is available.
  2264. * src/EpollEventPoll.cc
  2265. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Included fstream instead of iostream.
  2267. * test/SignatureTest.cc
  2268. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Removed #include <algorithm>
  2270. * test/RequestGroupTest.cc
  2271. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2273. using RequestGroup::extractURIResult().
  2274. * src/AdaptiveURISelector.cc
  2275. * src/RequestGroup.cc
  2276. * src/RequestGroup.h
  2277. * test/RequestGroupTest.cc
  2278. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Added tests for array_ptr.
  2280. * test/array_funTest.cc
  2281. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Don't send ip parameter to a tracker if ip parameter is empty
  2283. string.
  2284. * src/DefaultBtAnnounce.cc
  2285. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Adjusted line feed.
  2287. * src/version_usage.cc
  2288. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Print tags, possible values when OptionHandlerException is caught.
  2290. * src/option_processing.cc
  2291. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Changed the message for FatalException.
  2293. * src/OptionParser.cc
  2294. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Documented --bt-external-ip option in man page. Updated man pages
  2296. for --proxy-method option.
  2297. * doc/aria2c.1.txt
  2298. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Use GET method for FTP via HTTP proxy.
  2300. * src/FtpInitiateConnectionCommand.cc
  2301. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Changed the default value of --proxy-method option from 'tunnel'
  2303. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2304. option.
  2305. * src/AbstractCommand.cc
  2306. * src/AbstractCommand.h
  2307. * src/FtpInitiateConnectionCommand.cc
  2308. * src/HttpDownloadCommand.cc
  2309. * src/HttpInitiateConnectionCommand.cc
  2310. * src/HttpInitiateConnectionCommand.h
  2311. * src/OptionHandlerFactory.cc
  2312. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Initialized _logger
  2314. * src/SelectEventPoll.cc
  2315. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Defined a copy constructor for the same type.
  2317. * src/SharedHandle.h
  2318. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Added OptionParser::parseArg() which internally uses getopt_long
  2320. to parse command-line options. All command-line options are now
  2321. configured by OptionHandler. No manual editing of struct option*
  2322. is required any more.
  2323. * src/NameMatchOptionHandler.h
  2324. * src/OptionHandler.h
  2325. * src/OptionHandlerFactory.cc
  2326. * src/OptionHandlerImpl.h
  2327. * src/OptionParser.cc
  2328. * src/OptionParser.h
  2329. * src/array_fun.h
  2330. * src/main.cc
  2331. * src/option_processing.cc
  2332. * test/OptionHandlerTest.cc
  2333. * test/OptionParserTest.cc
  2334. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Fixed configure error with --disable-epoll
  2336. * configure.ac
  2337. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Fixed compile error when HAVE_EPOLL is not defined.
  2339. Fixed linker error on bigendian systems.
  2340. * src/SocketCore.cc
  2341. * src/SocketCore.h
  2342. * test/DefaultBtProgressInfoFileTest.cc
  2343. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Added --bt-external-ip option. You can specify the external IP
  2345. address to report to a BitTorrent tracker. Although this function
  2346. is named 'external', it can accept any kind of IP addresses.
  2347. * src/DefaultBtAnnounce.cc
  2348. * src/OptionHandlerFactory.cc
  2349. * src/option_processing.cc
  2350. * src/prefs.cc
  2351. * src/prefs.h
  2352. * src/usage_text.h
  2353. * test/DefaultBtAnnounceTest.cc
  2354. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Extracted the algorithm to find the longest incremental sequence
  2356. as max_sequence template.
  2357. * src/LongestSequencePieceSelector.cc
  2358. * src/a2algo.h
  2359. * test/Makefile.am
  2360. * test/a2algoTest.cc
  2361. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2363. * src/usage_text.h
  2364. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Updated doc for --uri-selector, --http-server-listen-port and
  2366. --enable-http-server option. Documented --event-poll option.
  2367. * doc/aria2c.1.txt
  2368. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Updated doc for --enable-http-server.
  2370. * src/usage_text.h
  2371. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Documented --http-server-listen-port and --enable-http-server in
  2373. man page.
  2374. * doc/aria2c.1.txt
  2375. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2377. translations. Thanks to all translators.
  2378. * po/es.po
  2379. * po/id.po
  2380. * po/it.po
  2381. * po/ru.po
  2382. * po/uk.po
  2383. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Bump up version number to 1.2.0
  2385. * configure.ac
  2386. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. BtContext::getAnnounceTiers() now returns const reference.
  2388. * src/BtContext.h
  2389. * src/DefaultBtContext.cc
  2390. * src/DefaultBtContext.h
  2391. * test/MockBtContext.h
  2392. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Change the number of retries for tracker request based on the
  2394. number of available tracker in a torrent file.
  2395. * src/TrackerWatcherCommand.cc
  2396. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Added _maxTries property to RequestGroup and assign the option
  2398. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2399. RequestGroup::getMaxTries() instead of
  2400. Option::getAsInt(PREF_MAX_TRIES).
  2401. * src/AbstractCommand.cc
  2402. * src/RequestGroup.cc
  2403. * src/RequestGroup.h
  2404. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2406. Mandriva. I modified the patch: make RequestGroup have the
  2407. timeout value and AdaptiveURISelector directly modifies that
  2408. value.
  2409. * src/AbstractCommand.cc
  2410. * src/AdaptiveURISelector.cc
  2411. * src/AdaptiveURISelector.h
  2412. * src/FtpNegotiationCommand.cc
  2413. * src/RequestGroup.cc
  2414. * src/RequestGroup.h
  2415. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Fixed compiler warning
  2417. * test/IteratableChecksumValidatorTest.cc
  2418. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2420. integrated downloads. This PieceSelector subclass finds the
  2421. longest continuous sequence in the available missing pieces and
  2422. selects the last index of such sequence. This makes HTTP/FTP
  2423. connections less interrupted by the pieces obtained by BitTorrent
  2424. peers.
  2425. * src/DefaultPieceStorage.cc
  2426. * src/DefaultPieceStorage.h
  2427. * src/LongestSequencePieceSelector.cc
  2428. * src/LongestSequencePieceSelector.h
  2429. * src/Makefile.am
  2430. * src/PieceSelector.h
  2431. * src/RarestPieceSelector.h
  2432. * src/RequestGroup.cc
  2433. * test/BtDependencyTest.cc
  2434. * test/DefaultPieceStorageTest.cc
  2435. * test/IteratableChecksumValidatorTest.cc
  2436. * test/LongestSequencePieceSelectorTest.cc
  2437. * test/Makefile.am
  2438. * test/SegmentManTest.cc
  2439. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Fixed the bug that the average speed is wrong in
  2441. http/ftp/BitTorrent integrated download. Only the download bytes
  2442. in BitTorrent were considered.
  2443. * src/RequestGroup.cc
  2444. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Choose port for BitTorrent/DHT randomly from the specified range.
  2446. * src/DHTConnectionImpl.cc
  2447. * src/PeerListenCommand.cc
  2448. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Send HTTP Authorization header only if it is requested by the
  2450. server(response 401). There are some exceptions. The authorization
  2451. header for proxy is always sent if it is available without request
  2452. by the server. If username/password is specified in the URI, it
  2453. is immediately sent to the server without request by the server.
  2454. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2455. SharedHandle<AuthConfig>().
  2456. NetrcAuthResolver::resolveAuthConfig() returns
  2457. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2458. * src/AbstractAuthResolver.cc
  2459. * src/AbstractProxyRequestCommand.cc
  2460. * src/AuthConfigFactory.cc
  2461. * src/AuthConfigFactory.h
  2462. * src/HttpConnection.cc
  2463. * src/HttpRequest.cc
  2464. * src/HttpRequest.h
  2465. * src/HttpResponse.cc
  2466. * src/HttpResponseCommand.cc
  2467. * src/HttpSkipResponseCommand.cc
  2468. * test/AuthConfigFactoryTest.cc
  2469. * test/HttpRequestTest.cc
  2470. * test/HttpResponseTest.cc
  2471. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Remove leading "--" from help keyword and a substring after "="
  2473. from help keyword, so that one can query options by '-h--max-' or
  2474. '-hmax-peers=10'.
  2475. * src/option_processing.cc
  2476. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Rewritten PStringVisitor and its implementation.
  2478. * src/PStringBuildVisitor.cc
  2479. * src/PStringBuildVisitor.h
  2480. * src/PStringDatum.h
  2481. * src/PStringNumLoop.h
  2482. * src/PStringSegment.cc
  2483. * src/PStringSegment.h
  2484. * src/PStringSelect.h
  2485. * src/PStringVisitor.h
  2486. * src/download_helper.cc
  2487. * test/PStringBuildVisitorTest.cc
  2488. * test/ParameterizedStringParserTest.cc
  2489. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Persist connection between the built-in HTTP server and a client
  2491. if a client supports keep-alive. Fixed the bug that aria2 exits
  2492. when the HTTP server receives EOF from a client.
  2493. * src/HttpServer.cc
  2494. * src/HttpServer.h
  2495. * src/HttpServerCommand.cc
  2496. * src/HttpServerCommand.h
  2497. * src/HttpServerResponseCommand.cc
  2498. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Added experimental built-in HTTP server. Currently, when a client
  2500. accesses to the server, it responds with the current download
  2501. progress. By default, it is disabled. To enable the server, give
  2502. --enable-http-server option. To change the default port number
  2503. for the server to listen to, use --http-server-listen-port option.
  2504. The response HTML is very simple and refreshes it self each 1
  2505. second. Because of this refresh, you see flicker in normal web
  2506. browser such as Firefox. I recommend to use console-based browser
  2507. such as elinks, w3m. To connect to the server, run 'elinks
  2508. http://localhost:6800/' while running aria2. Please replace port
  2509. number '6800'(which is default) with your preference.
  2510. * src/DownloadEngineFactory.cc
  2511. * src/HttpHeader.cc
  2512. * src/HttpHeader.h
  2513. * src/HttpHeaderProcessor.cc
  2514. * src/HttpHeaderProcessor.h
  2515. * src/HttpListenCommand.cc
  2516. * src/HttpListenCommand.h
  2517. * src/HttpServer.cc
  2518. * src/HttpServer.h
  2519. * src/HttpServerCommand.cc
  2520. * src/HttpServerCommand.h
  2521. * src/HttpServerResponseCommand.cc
  2522. * src/HttpServerResponseCommand.h
  2523. * src/Makefile.am
  2524. * src/OptionHandlerFactory.cc
  2525. * src/Util.cc
  2526. * src/Util.h
  2527. * src/help_tags.h
  2528. * src/option_processing.cc
  2529. * src/prefs.cc
  2530. * src/prefs.h
  2531. * src/usage_text.h
  2532. * test/HttpHeaderProcessorTest.cc
  2533. * test/UtilTest.cc
  2534. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Removed.
  2536. * src/CheckIntegrityMan.cc
  2537. * src/FileAllocationMan.cc
  2538. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Made (piece) hash check sequential for each RequestGroup because
  2540. simultaneous hash check is slower than sequential execution.
  2541. * src/CheckIntegrityCommand.cc
  2542. * src/CheckIntegrityDispatcherCommand.cc
  2543. * src/CheckIntegrityDispatcherCommand.h
  2544. * src/CheckIntegrityMan.h
  2545. * src/ConsoleStatCalc.cc
  2546. * src/DownloadCommand.cc
  2547. * src/DownloadEngine.cc
  2548. * src/DownloadEngine.h
  2549. * src/DownloadEngineFactory.cc
  2550. * src/Makefile.am
  2551. * src/Makefile.in
  2552. * src/RequestGroup.cc
  2553. * src/StatCalc.h
  2554. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2556. SequentialDispatcherCommand.
  2557. * src/FileAllocationDispatcherCommand.cc
  2558. * src/SequentialDispatcherCommand.h
  2559. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Rewritten FileAllocationDispatcherCommand using brand new
  2561. SequentialDispatcherCommand.
  2562. * src/DownloadEngineFactory.cc
  2563. * src/FileAllocationCommand.cc
  2564. * src/FileAllocationDispatcherCommand.cc
  2565. * src/FileAllocationDispatcherCommand.h
  2566. * src/Makefile.am
  2567. * src/SequentialDispatcherCommand.h
  2568. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Replaced FileAllocationMan with
  2570. SequentialPicker<FileAllocationEntry>.
  2571. * src/BtCheckIntegrityEntry.cc
  2572. * src/ConsoleStatCalc.cc
  2573. * src/DownloadEngine.cc
  2574. * src/DownloadEngine.h
  2575. * src/DownloadEngineFactory.cc
  2576. * src/FileAllocationCommand.cc
  2577. * src/FileAllocationDispatcherCommand.cc
  2578. * src/FileAllocationMan.h
  2579. * src/Makefile.am
  2580. * src/SequentialPicker.h
  2581. * src/StatCalc.h
  2582. * src/StreamCheckIntegrityEntry.cc
  2583. * test/Makefile.am
  2584. * test/SequentialPickerTest.cc
  2585. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Added doc for adaptive URI selector.
  2587. * doc/aria2c.1.txt
  2588. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Added doc for adaptive URI selector.
  2590. * src/usage_text.h
  2591. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Added doc for --bt-max-peers option.
  2593. * doc/aria2c.1.txt
  2594. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Added doc for --bt-hash-check-seed option.
  2596. * doc/aria2c.1.txt
  2597. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Documented exit codes.
  2599. * doc/aria2c.1.txt
  2600. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Added --bt-max-peers option to specify the maximum number of peers
  2602. per torrent. 0 means unlimited number of peers.
  2603. * src/ActivePeerConnectionCommand.cc
  2604. * src/BtRuntime.h
  2605. * src/DefaultPeerStorage.cc
  2606. * src/DefaultPeerStorage.h
  2607. * src/OptionHandlerFactory.cc
  2608. * src/RequestGroup.cc
  2609. * src/option_processing.cc
  2610. * src/prefs.cc
  2611. * src/prefs.h
  2612. * src/usage_text.h
  2613. * test/DefaultPeerStorageTest.cc
  2614. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Added --bt-hash-check-seed option. If true is given to this
  2616. option, after hash check using --check-integrity option and file
  2617. is complete, continue to seed file. If you want to check file and
  2618. download it only when it is damaged or incomplete, set this option
  2619. to false. This option has effect only on BitTorrent download.
  2620. The default value is true(This is the same behavior with the
  2621. previous release).
  2622. * src/BtCheckIntegrityEntry.cc
  2623. * src/OptionHandlerFactory.cc
  2624. * src/option_processing.cc
  2625. * src/prefs.cc
  2626. * src/prefs.h
  2627. * src/usage_text.h
  2628. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Updated copyright year.
  2630. * src/version_usage.cc
  2631. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2633. * doc/aria2c.1.txt
  2634. * src/usage_text.h
  2635. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Made the max value of split option unlimited.
  2637. * doc/aria2c.1.txt
  2638. * src/OptionHandlerFactory.cc
  2639. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Fixed compile warning/error.
  2641. * src/DownloadResult.h
  2642. * src/HttpDownloadCommand.cc
  2643. * src/ServerStat.cc
  2644. * test/RequestGroupTest.cc
  2645. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Added --event-poll option to select the method for polling events.
  2647. The available methods are "select" and "epoll". "epoll" is
  2648. available on Linux only. The earlier release has the compile
  2649. option to choose from these methods.
  2650. * configure.ac
  2651. * src/RequestGroupMan.cc
  2652. * src/OptionHandlerFactory.cc
  2653. * src/EpollEventPoll.h
  2654. * src/StreamFileAllocationEntry.cc
  2655. * src/a2io.h
  2656. * src/SelectEventPoll.h
  2657. * src/option_processing.cc
  2658. * src/prefs.h
  2659. * src/EpollEventPoll.cc
  2660. * src/EventPoll.h
  2661. * src/SocketCore.h
  2662. * src/Makefile.am
  2663. * src/main.cc
  2664. * src/DownloadEngine.h
  2665. * src/SelectEventPoll.cc
  2666. * src/DownloadEngine.cc
  2667. * src/SocketCore.cc
  2668. * src/DownloadEngineFactory.cc
  2669. * src/Makefile.in
  2670. * src/prefs.cc
  2671. * src/usage_text.h
  2672. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Included RecoverableException.h from main.cc
  2674. * src/main.cc
  2675. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2677. now returns last error encountered in the HTTP/FTP downloads as a
  2678. exit status value. If all downloads finished successfully, aria2
  2679. returns 0. The error code is defined in src/DownloadResult.h.
  2680. The error occurred in the download currently in progress is not
  2681. reported as a last error. If no error has encountered but there
  2682. are in progress or waiting downloads, aria2 returns 7.
  2683. * src/AbstractCommand.cc
  2684. * src/DlAbortEx.h
  2685. * src/DlRetryEx.h
  2686. * src/DownloadCommand.cc
  2687. * src/DownloadFailureException.h
  2688. * src/DownloadResult.h
  2689. * src/FtpNegotiationCommand.cc
  2690. * src/HttpSkipResponseCommand.cc
  2691. * src/Makefile.am
  2692. * src/MultiUrlRequestInfo.cc
  2693. * src/MultiUrlRequestInfo.h
  2694. * src/RecoverableException.h
  2695. * src/RequestGroup.cc
  2696. * src/RequestGroup.h
  2697. * src/RequestGroupMan.cc
  2698. * src/RequestGroupMan.h
  2699. * src/URIResult.cc
  2700. * src/URIResult.h
  2701. * src/main.cc
  2702. * src/option_processing.cc
  2703. * test/RequestGroupTest.cc
  2704. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2706. patch adds AdaptiveURISelector, which selects one of the bests
  2707. mirrors for first and reserved connections. For supplementary
  2708. ones, it returns mirrors which has not been tested yet, and if
  2709. each of them already tested, returns mirrors which has to be
  2710. tested again. Otherwise, it doesn't return anymore mirrors.
  2711. * src/AdaptiveURISelector.cc
  2712. * src/AdaptiveURISelector.h
  2713. * src/FtpNegotiationCommand.cc
  2714. * src/HttpResponseCommand.cc
  2715. * src/Makefile.am
  2716. * src/Makefile.in
  2717. * src/OptionHandlerFactory.cc
  2718. * src/RequestGroup.cc
  2719. * src/RequestGroup.h
  2720. * src/RequestGroupMan.cc
  2721. * src/ServerStat.cc
  2722. * src/ServerStat.h
  2723. * src/ServerStatMan.cc
  2724. * src/SpeedCalc.cc
  2725. * src/URISelector.h
  2726. * src/prefs.cc
  2727. * src/prefs.h
  2728. * test/RequestGroupManTest.cc
  2729. * test/ServerStatManTest.cc
  2730. * test/ServerStatTest.cc
  2731. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Fixed unit test error.
  2733. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2734. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. * Release 1.1.2
  2736. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Updated Russian translation. Thanks to the translators.
  2738. * po/ru.po
  2739. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Added the description of --use-head option to man page.
  2741. * doc/aria2c.1.txt
  2742. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Bump up version number to 1.1.2
  2744. * configure.ac
  2745. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Added --use-head option to toggle whether HEAD method should be
  2747. used in the first HTTP request. By default aria2 uses HEAD method
  2748. as the first request. When the server doesn't recognize HEAD, then
  2749. give aria2 --use-head=false to force aria2 to use GET method
  2750. instead.
  2751. * src/OptionHandlerFactory.cc
  2752. * src/RequestGroupMan.cc
  2753. * src/option_processing.cc
  2754. * src/prefs.cc
  2755. * src/prefs.h
  2756. * src/usage_text.h
  2757. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2759. message is received before CHOKE message. The old implementation
  2760. doen't clear the use-bit of the piece when recieved REJECT
  2761. message.
  2762. * src/DefaultBtMessageDispatcher.cc
  2763. * test/DefaultBtMessageDispatcherTest.cc
  2764. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. * Release 1.1.1
  2766. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Bump up version number to 1.1.1.
  2768. * configure.ac
  2769. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2771. is printed repeatedly.
  2772. * src/ConsoleStatCalc.cc
  2773. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. * Release 1.1.0
  2775. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Added ifdef clause for conditional compilation.
  2777. * src/main.cc
  2778. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2780. translations. Thanks to all translators.
  2781. * po/ja.po
  2782. * po/ru.po
  2783. * po/uk.po
  2784. * po/zh_CN.po
  2785. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Added the preceding ">>> " before the message "Printing the
  2787. contents of file..." to make the output more readable.
  2788. * src/main.cc
  2789. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Added try-catch block in the loop in showFiles() to continue the
  2791. operation even if the exception occurred in one file.
  2792. * src/main.cc (showFiles)
  2793. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Made messages in showFiles() translatable.
  2795. * po/aria2.pot
  2796. * src/main.cc
  2797. * src/message.h
  2798. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Print the contents of Torrent/Metalink files are printed without
  2800. -T/-M options.
  2801. * src/main.cc
  2802. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Escaped '--' with '\--'
  2804. * README
  2805. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Updated "How to build" section in README. Mentioned about
  2807. --with-ca-bundle compile option.
  2808. * README
  2809. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Bump up version number to 1.1.0.
  2811. * configure.ac
  2812. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Added a note for --dht-listen-port option.
  2814. * doc/aria2c.1.txt
  2815. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Update doc for --realtime-chunk-checksum option.
  2817. * doc/aria2c.1.txt
  2818. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Update doc for --realtime-chunk-checksum option.
  2820. * src/usage_text.h
  2821. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Updated French, Japanese, Russian and Ukrainian translations.
  2823. Thanks to all translators.
  2824. * po/fr.po
  2825. * po/ja.po
  2826. * po/ru.po
  2827. * po/uk.po
  2828. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Renamed aria2c.pot to aria2.pot
  2830. * po/aria2.pot
  2831. * po/aria2c.pot: Removed.
  2832. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Removed MetaEntry.h
  2834. * src/Makefile.am
  2835. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Rename file by appending digits if a local file exists and its
  2837. file size is larger than that of remote file with --continue
  2838. option. The old implementation just throws exception in such case.
  2839. * src/RequestGroup.cc
  2840. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Fixed the bug that download progress summary is not printed in the
  2842. interval specified by the option.
  2843. * src/ConsoleStatCalc.cc
  2844. * src/ConsoleStatCalc.h
  2845. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Fixed compiler warning
  2847. * src/Cookie.cc
  2848. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Fixed the cookie implementation based on RFC2965.
  2850. Now if a value in domain field is not started with dot, then
  2851. prepend dot. That means a cookie with domain=sf.net is sent to
  2852. wiki.sf.net.
  2853. * src/Cookie.cc
  2854. * test/CookieParserTest.cc
  2855. * test/CookieStorageTest.cc
  2856. * test/CookieTest.cc
  2857. * test/NsCookieParserTest.cc
  2858. * test/Sqlite3MozCookieParserTest.cc
  2859. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2861. is enabled and the server doesn't support keep-alive.
  2862. * src/AbstractCommand.cc
  2863. * src/DownloadCommand.cc
  2864. * src/HttpDownloadCommand.cc
  2865. * src/HttpDownloadCommand.h
  2866. * src/HttpResponseCommand.cc
  2867. * src/Request.cc
  2868. * src/Request.h
  2869. * test/RequestTest.cc
  2870. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Removed Dictionary/List/Data and its related classes.
  2872. * src/BencodeVisitor.cc: Removed.
  2873. * src/BencodeVisitor.h: Removed.
  2874. * src/Data.cc: Removed.
  2875. * src/Data.h: Removed.
  2876. * src/Dictionary.cc: Removed.
  2877. * src/Dictionary.h: Removed.
  2878. * src/List.cc: Removed.
  2879. * src/List.h: Removed.
  2880. * src/Makefile.am
  2881. * src/MetaEntry.h: Removed.
  2882. * src/MetaEntryVisitor.h: Removed.
  2883. * src/MetaFileUtil.cc: Removed.
  2884. * src/MetaFileUtil.h: Removed.
  2885. * test/BencodeVisitorTest.cc: Removed.
  2886. * test/DataTest.cc: Removed.
  2887. * test/DictionaryTest.cc: Removed.
  2888. * test/ListTest.cc: Removed.
  2889. * test/Makefile.am
  2890. * test/MetaFileUtilTest.cc: Removed.
  2891. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Removed include of MetaEntry.h
  2893. * test/DHTMessageTrackerEntryTest.cc
  2894. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Use BDE instead of Dictionary/List/Data.
  2896. * src/AnnounceList.cc
  2897. * src/AnnounceList.h
  2898. * test/AnnounceListTest.cc
  2899. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Use BDE instead of Dictionary/List/Data.
  2901. * src/DHTAbstractMessage.cc
  2902. * src/DHTAbstractMessage.h
  2903. * src/DHTAnnouncePeerMessage.cc
  2904. * src/DHTAnnouncePeerMessage.h
  2905. * src/DHTAnnouncePeerReplyMessage.cc
  2906. * src/DHTAnnouncePeerReplyMessage.h
  2907. * src/DHTFindNodeMessage.cc
  2908. * src/DHTFindNodeMessage.h
  2909. * src/DHTFindNodeReplyMessage.cc
  2910. * src/DHTFindNodeReplyMessage.h
  2911. * src/DHTGetPeersMessage.cc
  2912. * src/DHTGetPeersMessage.h
  2913. * src/DHTGetPeersReplyMessage.cc
  2914. * src/DHTGetPeersReplyMessage.h
  2915. * src/DHTMessageFactory.h
  2916. * src/DHTMessageFactoryImpl.cc
  2917. * src/DHTMessageFactoryImpl.h
  2918. * src/DHTMessageReceiver.cc
  2919. * src/DHTMessageTracker.cc
  2920. * src/DHTMessageTracker.h
  2921. * src/DHTPingMessage.cc
  2922. * src/DHTPingMessage.h
  2923. * src/DHTPingReplyMessage.cc
  2924. * src/DHTPingReplyMessage.h
  2925. * src/DHTQueryMessage.cc
  2926. * src/DHTQueryMessage.h
  2927. * src/DHTResponseMessage.cc
  2928. * src/DHTResponseMessage.h
  2929. * test/DHTAnnouncePeerMessageTest.cc
  2930. * test/DHTAnnouncePeerReplyMessageTest.cc
  2931. * test/DHTFindNodeMessageTest.cc
  2932. * test/DHTFindNodeReplyMessageTest.cc
  2933. * test/DHTGetPeersMessageTest.cc
  2934. * test/DHTGetPeersReplyMessageTest.cc
  2935. * test/DHTMessageFactoryImplTest.cc
  2936. * test/DHTMessageTrackerTest.cc
  2937. * test/DHTPingMessageTest.cc
  2938. * test/DHTPingReplyMessageTest.cc
  2939. * test/MockDHTMessageFactory.h
  2940. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Added tests the case where length < 0 is specified.
  2942. * test/BencodeTest.cc
  2943. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Fixed memory leak in decoderawstring()
  2945. * src/bencode.cc
  2946. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Added missing #ifdef guard. Added uc() function for String and
  2948. removeKey() for Dict.
  2949. * src/bencode.cc
  2950. * src/bencode.h
  2951. * test/BencodeTest.cc
  2952. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Use BDE instead of Dictionary/List/Data.
  2954. * src/HandshakeExtensionMessage.cc
  2955. * src/HandshakeExtensionMessage.h
  2956. * test/HandshakeExtensionMessageTest.cc
  2957. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2958. Added --max-overall-upload-limit option. This option limits the
  2959. overall upload speed. Stated in help message that the existing
  2960. --max-upload-limit option limits the upload speed per each
  2961. torrent. Man page is also updated.
  2962. * doc/aria2c.1.txt
  2963. * src/DefaultBtMessageDispatcher.cc
  2964. * src/DefaultBtMessageDispatcher.h
  2965. * src/OptionHandlerFactory.cc
  2966. * src/PeerInteractionCommand.cc
  2967. * src/option_processing.cc
  2968. * src/prefs.cc
  2969. * src/prefs.h
  2970. * src/usage_text.h
  2971. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Use BDE instead of Dictionary/List/Data classes.
  2973. * src/CompactPeerListProcessor.cc
  2974. * src/CompactPeerListProcessor.h
  2975. * src/DefaultBtAnnounce.cc
  2976. * src/DefaultBtContext.cc
  2977. * src/DefaultBtContext.h
  2978. * src/DefaultPeerListProcessor.cc
  2979. * src/DefaultPeerListProcessor.h
  2980. * src/DelegatingPeerListProcessor.cc
  2981. * src/DelegatingPeerListProcessor.h
  2982. * src/PeerListProcessor.h
  2983. * src/UTPexExtensionMessage.cc
  2984. * src/Util.h
  2985. * src/message.h
  2986. * test/DefaultBtContextTest.cc
  2987. * test/DefaultPeerListProcessorTest.cc
  2988. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Added bencode helper functions and BDE class.
  2990. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2991. * src/Makefile.am
  2992. * src/bencode.cc
  2993. * src/bencode.h
  2994. * test/BencodeTest.cc
  2995. * test/Makefile.am
  2996. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Fixed the bug that bad URI is sent to the tracker when the announe
  2998. URI in torrent file includes query.
  2999. * src/DefaultBtAnnounce.cc
  3000. * test/DefaultBtAnnounceTest.cc
  3001. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Added Option::blank().
  3003. Use !Option::blank(name) instead of Option::defined(name) for
  3004. the options that take filename.
  3005. * src/MultiUrlRequestInfo.cc
  3006. * src/Option.cc
  3007. * src/Option.h
  3008. * src/main.cc
  3009. * src/option_processing.cc
  3010. * test/OptionTest.cc
  3011. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Documented the default value of --check-certificate option in man
  3013. page.
  3014. * doc/aria2c.1.txt
  3015. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Enabled --check-certificate by default. Added compile
  3017. time(configure) option --with-ca-bundle to specify CA bundle.
  3018. Warn if --check-certificate=true and --ca-certificate is not
  3019. specified or loading CA certificate is failed.
  3020. * configure.ac
  3021. * src/MultiUrlRequestInfo.cc
  3022. * src/OptionHandlerFactory.cc
  3023. * src/message.h
  3024. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Mentioned https tag in help option.
  3026. * doc/aria2c.1.txt
  3027. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Added `https' tag to help option category. Added https tag to
  3029. --ca-certificate, --certificate, --check-certificate and
  3030. --private-key option.
  3031. * src/OptionHandlerFactory.cc
  3032. * src/help_tags.h
  3033. * src/option_processing.cc
  3034. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Changed the package name from `aria2c' to `aria2' in order to fix
  3036. the packaging issue in Debian and Fedora. The name of the
  3037. executable is not changed.
  3038. * configure.ac
  3039. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3040. Fixed typos
  3041. * src/usage_text.h
  3042. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Fixed typos and updated doc.
  3044. * README
  3045. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Fixed typos
  3047. * doc/aria2c.1.txt
  3048. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Fixed typos
  3050. * src/usage_text.h
  3051. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Print a message when no files to download.
  3053. * src/download_helper.cc
  3054. * src/main.cc
  3055. * src/message.h
  3056. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3057. RFC3986 complied Percent-Encoding(urlencode).
  3058. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3059. ones.
  3060. * src/Request.cc
  3061. * src/Util.cc
  3062. * src/Util.h
  3063. * test/BtHandshakeMessageTest.cc
  3064. * test/DefaultBtAnnounceTest.cc
  3065. * test/DefaultBtContextTest.cc
  3066. * test/RequestTest.cc
  3067. * test/UtilTest.cc
  3068. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Fixed the bug that prevents aria2 from downloading 0-length files
  3070. via HTTP/FTP.
  3071. * src/DefaultBtContext.cc
  3072. * src/DefaultBtContext.h
  3073. * src/DownloadContext.h
  3074. * src/FtpNegotiationCommand.cc
  3075. * src/HttpResponseCommand.cc
  3076. * src/HttpResponseCommand.h
  3077. * src/RequestGroup.cc
  3078. * src/SingleFileDownloadContext.cc
  3079. * src/SingleFileDownloadContext.h
  3080. * test/BtPostDownloadHandlerTest.cc
  3081. * test/MetalinkPostDownloadHandlerTest.cc
  3082. * test/MockBtContext.h
  3083. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3085. * src/option_processing.cc
  3086. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Applied aria2-1.0.1-mingw.patch.
  3088. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3089. mingw.
  3090. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3091. * src/SocketCore.cc
  3092. * src/a2netcompat.h
  3093. * test/SocketCoreTest.cc
  3094. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. * Release 1.0.1
  3096. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Updated Ukrainian and Norwegian Nynorsk translations.
  3098. Thanks to all translators.
  3099. * po/nn.po
  3100. * po/uk.po
  3101. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3102. Don't show download result when -S option is used.
  3103. * src/main.cc
  3104. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Bump up version number to 1.0.1
  3106. * configure.ac
  3107. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Closed files after the test cases in MultiDiskWriterTest::
  3109. testResetDiskWriterEntries(). This will fix the unit test error
  3110. in mingw32 build.
  3111. * test/MultiDiskWriterTest.cc
  3112. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Use HEAD method to get file size from HTTP server for segmented
  3114. downloading.
  3115. The request to the BitTorrent Tracker always uses GET method because
  3116. the response of the tracker is small and it doesn't need segmented
  3117. download.
  3118. * src/FtpNegotiationCommand.cc
  3119. * src/HttpRequest.cc
  3120. * src/HttpResponseCommand.cc
  3121. * src/HttpSkipResponseCommand.cc
  3122. * src/RequestGroup.cc
  3123. * src/RequestGroup.h
  3124. * src/TrackerWatcherCommand.cc
  3125. * test/HttpRequestTest.cc
  3126. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Fixed the bug that causes floating exception when -T option is used and
  3128. no URIs are given.
  3129. * src/download_helper.cc
  3130. * test/DownloadHelperTest.cc
  3131. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3132. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3133. errors in MinGW:
  3134. Closed file after saving server stats (RequestGroupMan.cc)
  3135. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3136. Ignored case & handled 2-digit years (strptime.c)
  3137. Added missing suseconds_t definition (a2time.h)
  3138. Fixed socket CLOSE() define (SocketCore.cc)
  3139. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3140. Changed utime() test values from x000 to x00000 as MinGW failed on
  3141. values less than timezone offset from Unix epoch
  3142. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3143. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3144. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3145. handle negative dates (CookieParserTest.cc)
  3146. * src/a2time.h
  3147. * src/FtpConnection.cc
  3148. * src/RequestGroupMan.cc
  3149. * src/SocketCore.cc
  3150. * src/strptime.c
  3151. * test/CookieParserTest.cc
  3152. * test/CopyDiskAdaptorTest.cc
  3153. * test/FileTest.cc
  3154. * test/FtpConnectionTest.cc
  3155. * test/MultiDiskAdaptorTest.cc
  3156. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3158. * doc/aria2c.1.txt
  3159. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. * Release 1.0.0
  3161. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Added '~' to reserved characters.
  3163. * src/Util.cc
  3164. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Do not urlencode Request::url in setUrl() because we want unmodified
  3166. URL using Request::getUrl()
  3167. * src/Request.cc
  3168. * src/Request.h
  3169. * test/RequestTest.cc
  3170. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3172. Thanks to all translators.
  3173. * po/bg.po
  3174. * po/fr.po
  3175. * po/ja.po
  3176. * po/ru.po
  3177. * po/uk.po
  3178. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Bump up version number to 1.0.0
  3180. * configure.ac
  3181. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Added nosqlite3 build to build_test.sh.
  3183. Renamed noxml as expat.
  3184. * build_test.sh
  3185. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Updated INPUT FILE section.
  3187. * doc/aria2c.1.txt
  3188. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3189. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3190. on big endian systems because test .aria2 files are made for little
  3191. endian systems.
  3192. * test/DefaultBtProgressInfoFileTest.cc
  3193. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Dropped ares support.
  3195. * README
  3196. * configure.ac
  3197. * m4/libares.m4: Removed.
  3198. * src/AsyncNameResolver.cc
  3199. * src/Makefile.am
  3200. * test/Makefile.am
  3201. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3203. Removed const qualifier from DiskWriter::size().
  3204. * src/AbstractDiskWriter.cc
  3205. * src/AbstractDiskWriter.h
  3206. * src/ByteArrayDiskWriter.cc
  3207. * src/ByteArrayDiskWriter.h
  3208. * src/DiskWriter.h
  3209. * test/ByteArrayDiskWriterTest.cc
  3210. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Fixed the bug that causes segmentation fault/bus error during executing
  3212. choking algorithm while seeding. This is caused by improper
  3213. implementation of compare function which returns inconsistent results
  3214. depending on the timing of last unchoke.
  3215. * src/BtSeederStateChoke.cc
  3216. * src/BtSeederStateChoke.h
  3217. * src/DefaultPeerStorage.cc
  3218. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Removed TODO
  3220. * TODO
  3221. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3222. Added a section that explains how to pass argument to options that
  3223. takes optional arguments with its short form.
  3224. * doc/aria2c.1.txt
  3225. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Added -u for the short form of --max-upload-limit option.
  3227. * doc/aria2c.1.txt
  3228. * src/option_processing.cc
  3229. * src/usage_text.h
  3230. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. Added -V for the short form of --check-integrity option.
  3232. Now the argument of --check-integrity option is optional:
  3233. if it is omitted, it is evaluated as true.
  3234. * doc/aria2c.1.txt
  3235. * src/option_processing.cc
  3236. * src/usage_text.h
  3237. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Made the default value of --ftp-pasv option set to true and it can take
  3239. true/false values.
  3240. * src/OptionHandlerFactory.cc
  3241. * src/option_processing.cc
  3242. * src/usage_text.h
  3243. * doc/aria2c.1.txt
  3244. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Given custom random number generator to std::random_shuffle.
  3246. * src/AnnounceList.cc
  3247. * src/BtLeecherStateChoke.cc
  3248. * src/BtSeederStateChoke.cc
  3249. * src/DefaultBtRequestFactory.cc
  3250. * src/MetalinkEntry.cc
  3251. * src/RarestPieceSelector.cc
  3252. * src/SimpleRandomizer.cc
  3253. * src/SimpleRandomizer.h
  3254. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Now the default value of --enable-direct-io is true.
  3256. * src/OptionHandlerFactory.cc
  3257. * doc/aria2c.1.txt
  3258. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Erase peer before executing onReturningPeer and onErasingPeer
  3260. because choking algorithm called from onReturningPeer doesn't
  3261. like erasing peer in the active peer list.
  3262. * src/DefaultPeerStorage.cc
  3263. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Instead of creating special filename in createDownloadResult() if
  3265. inMemoryDownload() is true, now it is done in getFilePath().
  3266. * src/RequestGroup.cc
  3267. * test/RequestGroupTest.cc
  3268. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3270. processed in memory. This is the fix for previous comment out.
  3271. * src/MemoryBufferPreDownloadHandler.cc
  3272. * src/RequestGroup.cc
  3273. * src/RequestGroup.h
  3274. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Commented out the code which sets virtual directory path "[MEMORY]"
  3276. propagate directory to store to following RequestGroup.
  3277. * src/MemoryBufferPreDownloadHandler.cc
  3278. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Bump up version number to 1.0.0b
  3280. * configure.ac
  3281. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Added input_uris.txt to EXTRA_DIST
  3283. * test/Makefile.am
  3284. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Removed PeerObject.h from Makefile.am
  3286. * src/Makefile.am
  3287. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Avoid slow seeding
  3289. * src/PeerInteractionCommand.cc
  3290. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Updated usage for -i option.
  3292. * src/usage_text.h (TEXT_INPUT_FILE)
  3293. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. Added INPUT FILE section to man page.
  3295. Escaped fake URLs.
  3296. * doc/aria2c.1.txt
  3297. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Fixed wrong note position for -o option.
  3299. * doc/aria2c.1.txt
  3300. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Fixed compile error without SSL/XML library.
  3302. * src/DefaultBtProgressInfoFile.cc
  3303. * src/DefaultBtProgressInfoFile.h
  3304. * src/FileMetalinkParserState.cc
  3305. * src/RequestGroup.h
  3306. * src/SocketCore.cc
  3307. * src/SocketCore.h
  3308. * src/VerificationMetalinkParserState.cc
  3309. * src/download_helper.h
  3310. * src/main.cc
  3311. * test/DefaultBtProgressInfoFileTest.cc
  3312. * test/DownloadHelperTest.cc
  3313. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Rewritten URI handling functions. They are now provided as a testable
  3315. functions.
  3316. * src/Makefile.am
  3317. * src/RequestGroup.cc
  3318. * src/RequestGroup.h
  3319. * src/download_helper.cc
  3320. * src/download_helper.h
  3321. * src/main.cc
  3322. * test/DownloadHelperTest.cc
  3323. * test/Makefile.am
  3324. * test/input_uris.txt
  3325. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3326. Quickly terminate commands when ctrl-c is pressed.
  3327. * src/DownloadEngine.cc
  3328. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Quickly terminate idle commands when download finished.
  3330. * src/AbstractCommand.cc
  3331. * src/DownloadCommand.cc
  3332. * src/DownloadEngine.cc
  3333. * src/DownloadEngine.h
  3334. * src/SleepCommand.cc
  3335. * src/SleepCommand.h
  3336. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Added the ability to specify output filename and directory in input
  3338. file.
  3339. Additional parameters are added in the following line of URIs
  3340. with proceeding white space(s), 1 parameter in 1 line.
  3341. The parameter names are the same with the command-line option name
  3342. without proceeding "--". Not all the options are available here:
  3343. at the moment, 'dir' and 'out' options are avialable.
  3344. Please note that out option has no effect against Metalink or BitTorrent
  3345. downloads.
  3346. Example input file:
  3347. http://host/foo-1.1.tar.bz2
  3348. out=foo.tar.bz2
  3349. dir=/tmp/downloads
  3350. http://host/thundermonkey-2.0.tar.bz2
  3351. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3352. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3353. thundermonkey-2.0.tar.bz2 is saved as
  3354. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3355. * src/BtPostDownloadHandler.cc
  3356. * src/Metalink2RequestGroup.cc
  3357. * src/Metalink2RequestGroup.h
  3358. * src/MetalinkPostDownloadHandler.cc
  3359. * src/UriListParser.cc
  3360. * src/UriListParser.h
  3361. * src/main.cc
  3362. * test/Metalink2RequestGroupTest.cc
  3363. * test/UriListParserTest.cc
  3364. * test/filelist1.txt
  3365. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Fixed error when SSL library is not found.
  3367. * configure.ac
  3368. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3369. Cross referenced among -s, -C and -j options.
  3370. Updated usage of -C and -s options.
  3371. * src/usage_text.h
  3372. * doc/aria2c.1.txt
  3373. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Fixed bad cast in 32bit platforms.
  3375. * test/DefaultPieceStorageTest.cc
  3376. (DefaultPieceStorageTest::testGetCompletedLength)
  3377. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Fixed unit test fails on 32bit platforms.
  3379. * test/CookieParserTest.cc
  3380. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Show an average download speed in Download results.
  3382. * src/BtFileAllocationEntry.cc
  3383. * src/DefaultPieceStorage.cc
  3384. * src/DownloadContext.cc
  3385. * src/DownloadContext.h
  3386. * src/DownloadResult.h
  3387. * src/RequestGroup.cc
  3388. * src/RequestGroupMan.cc
  3389. * src/StreamFileAllocationEntry.cc
  3390. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Fixed the bug that metalink file is not processed if Content-Type
  3392. field has a paramter.
  3393. * src/HttpResponse.cc
  3394. * src/HttpResponse.h
  3395. * test/HttpResponseTest.cc
  3396. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Removed unused code.
  3398. * src/DefaultBtAnnounce.cc
  3399. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3400. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3401. the value larger than DefaultPieceStorage::getTotalLength() when
  3402. in flight pieces are involved.
  3403. * src/DefaultPieceStorage.cc
  3404. * test/DefaultPieceStorageTest.cc
  3405. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Bump up version number to 1.0.0a.
  3407. * configure.ac
  3408. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Updated configure.ac
  3410. * configure.ac
  3411. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Added usege for proxy.
  3413. * doc/aria2c.1.txt
  3414. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Added usage for --ca-certificate, --certificate, --private-key and
  3416. --check-certificate options.
  3417. * doc/aria2c.1.txt
  3418. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Updated man page
  3420. * doc/aria2c.1.txt
  3421. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3422. Added --no-proxy option. It receives comman separated hostname or
  3423. domains to which proxy should not be used.
  3424. aria2 honors the environment variable no_proxy to override no-proxy
  3425. value in configuration file. The user can override the environment
  3426. variable no_proxy with --no-proxy command-line option.
  3427. * src/AbstractCommand.cc
  3428. * src/OptionHandlerFactory.cc
  3429. * src/option_processing.cc
  3430. * src/prefs.cc
  3431. * src/prefs.h
  3432. * src/usage_text.h
  3433. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3434. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3435. The CA certificates are specified in --ca-certificate option.
  3436. By default, the verification is disabled. Use --check-certificate
  3437. option to enable it.
  3438. * src/HttpRequestCommand.cc
  3439. * src/LibgnutlsTLSContext.cc
  3440. * src/LibgnutlsTLSContext.h
  3441. * src/LibsslTLSContext.cc
  3442. * src/LibsslTLSContext.h
  3443. * src/MultiUrlRequestInfo.cc
  3444. * src/OptionHandlerFactory.cc
  3445. * src/SocketCore.cc
  3446. * src/SocketCore.h
  3447. * src/a2functional.h
  3448. * src/message.h
  3449. * src/option_processing.cc
  3450. * src/prefs.cc
  3451. * src/prefs.h
  3452. * src/usage_text.h
  3453. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Added client certificate authentication for SSL/TLS.
  3455. Currently a private key must be decrypted for use with aria2.
  3456. If a user accidentally gives encrypted file to aria2 then following
  3457. thing happens:
  3458. If encrypted private key is given to aria2, it behaves differently
  3459. depending on the ssl library it uses. If aria2 built with openssl then
  3460. openssl prompts the user for password. If aria2 build with gnutls then
  3461. aria2 exists with error at start up.
  3462. * src/DownloadEngineFactory.cc
  3463. * src/MultiUrlRequestInfo.cc
  3464. * src/OptionHandlerFactory.cc
  3465. * src/option_processing.cc
  3466. * src/prefs.cc
  3467. * src/prefs.h
  3468. * src/usage_text.h
  3469. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Introduced TLSContext that holds TLS related data that can be shared
  3471. with multiple SSL connections.
  3472. * src/DownloadEngineFactory.cc
  3473. * src/LibgnutlsTLSContext.cc
  3474. * src/LibgnutlsTLSContext.h
  3475. * src/LibsslTLSContext.cc
  3476. * src/LibsslTLSContext.h
  3477. * src/Makefile.am
  3478. * src/SocketCore.cc
  3479. * src/SocketCore.h
  3480. * src/TLSContext.h
  3481. * src/message.h
  3482. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Fixed the bug that the DiskWriter of the first FileEntry whose
  3484. `needsFileAllocation' property is false is not created
  3485. even if it shares a piece with next FileEntry which `requested' property
  3486. is true.
  3487. Fixed the bug that zero-length file is not created if pre file
  3488. allocation is not done.
  3489. * src/MultiDiskAdaptor.cc
  3490. * src/MultiDiskAdaptor.h
  3491. * test/MultiDiskAdaptorTest.cc
  3492. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Added the ability to pool proxy connection.
  3494. The conneciton in FTP with proxy-method=GET is not pooled.
  3495. Proxy-Connection header will not be sent when sending CONNECT method.
  3496. * src/DownloadEngine.cc
  3497. * src/DownloadEngine.h
  3498. * src/FtpFinishDownloadCommand.cc
  3499. * src/FtpInitiateConnectionCommand.cc
  3500. * src/FtpNegotiationCommand.cc
  3501. * src/HttpDownloadCommand.cc
  3502. * src/HttpInitiateConnectionCommand.cc
  3503. * src/HttpRequest.cc
  3504. * src/HttpRequest.h
  3505. * src/HttpResponse.cc
  3506. * src/HttpSkipResponseCommand.cc
  3507. * test/HttpRequestTest.cc
  3508. * test/HttpResponseTest.cc
  3509. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Handle date before epoch.
  3511. To create *bad* Time object, call Time::null().
  3512. * src/CookieParser.cc
  3513. * src/FtpConnection.cc
  3514. * src/FtpConnection.h
  3515. * src/FtpNegotiationCommand.cc
  3516. * src/RequestGroup.cc
  3517. * src/TimeA2.cc
  3518. * src/TimeA2.h
  3519. * test/CookieParserTest.cc
  3520. * test/FtpConnectionTest.cc
  3521. * test/TimeTest.cc
  3522. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Added support for following envrionment variables: http_proxy,
  3524. https_proxy, ftp_proxy and all_proxy.
  3525. Each variable is equivalent to the aria2 option whose name is the
  3526. variable name with '_' replaced with '-'.
  3527. They overrides options specified in aria2.conf file.
  3528. The envrionment variables can be overrode using command-line option.
  3529. * src/option_processing.cc
  3530. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. Renamed --http-proxy-method as --proxy-method.
  3532. * src/AbstractCommand.cc
  3533. * src/FtpInitiateConnectionCommand.cc
  3534. * src/HttpInitiateConnectionCommand.cc
  3535. * src/OptionHandlerFactory.cc
  3536. * src/option_processing.cc
  3537. * src/prefs.cc
  3538. * src/prefs.h
  3539. * src/usage_text.h
  3540. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3541. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3542. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3543. Above 3 options and --http-proxy option can handle proxy in URL format
  3544. like: http://user:passwd@host:port.
  3545. If a proxy requires user/password, they must be specified in a URL.
  3546. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3547. instead.
  3548. * src/AbstractCommand.cc
  3549. * src/AbstractCommand.h
  3550. * src/AbstractProxyRequestCommand.cc
  3551. * src/AbstractProxyRequestCommand.h
  3552. * src/AuthConfigFactory.cc
  3553. * src/AuthConfigFactory.h
  3554. * src/FtpFinishDownloadCommand.cc
  3555. * src/FtpInitiateConnectionCommand.cc
  3556. * src/FtpInitiateConnectionCommand.h
  3557. * src/FtpNegotiationCommand.cc
  3558. * src/FtpTunnelRequestCommand.cc
  3559. * src/FtpTunnelRequestCommand.h
  3560. * src/HttpDownloadCommand.cc
  3561. * src/HttpInitiateConnectionCommand.cc
  3562. * src/HttpInitiateConnectionCommand.h
  3563. * src/HttpProxyRequestCommand.cc
  3564. * src/HttpProxyRequestCommand.h
  3565. * src/HttpRequest.cc
  3566. * src/HttpRequest.h
  3567. * src/HttpRequestCommand.cc
  3568. * src/HttpRequestCommand.h
  3569. * src/HttpSkipResponseCommand.cc
  3570. * src/InitiateConnectionCommand.cc
  3571. * src/InitiateConnectionCommand.h
  3572. * src/OptionHandlerFactory.cc
  3573. * src/OptionHandlerImpl.h
  3574. * src/Request.cc
  3575. * src/option_processing.cc
  3576. * src/prefs.cc
  3577. * src/prefs.h
  3578. * src/usage_text.h
  3579. * test/AuthConfigFactoryTest.cc
  3580. * test/HttpRequestTest.cc
  3581. * test/OptionHandlerTest.cc
  3582. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. Execute choking algorithm when unchoked and interested peer is
  3584. disconected.
  3585. * src/DefaultPeerStorage.cc
  3586. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3587. Added testcase for BtNotInterestedMessage from unchoked peer.
  3588. * test/BtNotInterestedMessageTest.cc
  3589. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Execute choking algorithm when BtInterestedMessage arrives from
  3591. unchoked peer.
  3592. * src/BtInterestedMessage.cc
  3593. * src/BtInterestedMessage.h
  3594. * src/DefaultBtMessageFactory.cc
  3595. * test/BtInterestedMessageTest.cc
  3596. * test/MockPeerStorage.h
  3597. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. AuthConfigFactory is now part of DownloadEngine.
  3599. * src/AbstractProxyRequestCommand.cc
  3600. * src/AuthConfigFactory.h
  3601. * src/DownloadEngine.cc
  3602. * src/DownloadEngine.h
  3603. * src/FtpConnection.cc
  3604. * src/FtpConnection.h
  3605. * src/FtpNegotiationCommand.cc
  3606. * src/HttpConnection.cc
  3607. * src/HttpRequest.cc
  3608. * src/HttpRequest.h
  3609. * src/HttpRequestCommand.cc
  3610. * src/HttpResponse.cc
  3611. * src/HttpResponseCommand.cc
  3612. * src/HttpSkipResponseCommand.cc
  3613. * src/MultiUrlRequestInfo.cc
  3614. * src/main.cc
  3615. * test/FtpConnectionTest.cc
  3616. * test/HttpRequestTest.cc
  3617. * test/HttpResponseTest.cc
  3618. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Corrected catched exception type.
  3620. * src/ServerStatMan.cc
  3621. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. DNSCache is now part of DownloadEngine.
  3623. * src/DNSCache.h
  3624. * src/DownloadEngine.cc
  3625. * src/DownloadEngine.h
  3626. * src/InitiateConnectionCommand.cc
  3627. * src/MultiUrlRequestInfo.cc
  3628. * test/Makefile.am
  3629. * test/Makefile.in
  3630. * test/SimpleDNSCacheTest.cc
  3631. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3633. DownloadEngine.
  3634. * src/ActivePeerConnectionCommand.cc
  3635. * src/BtSetup.cc
  3636. * src/CUIDCounter.h
  3637. * src/DHTSetup.cc
  3638. * src/DownloadCommand.cc
  3639. * src/DownloadEngine.cc
  3640. * src/DownloadEngine.h
  3641. * src/DownloadEngineFactory.cc
  3642. * src/FileAllocationDispatcherCommand.cc
  3643. * src/InitiatorMSEHandshakeCommand.cc
  3644. * src/PeerInitiateConnectionCommand.cc
  3645. * src/PeerInteractionCommand.cc
  3646. * src/PeerListenCommand.cc
  3647. * src/RequestGroup.cc
  3648. * src/StreamFileAllocationEntry.cc
  3649. * src/TrackerWatcherCommand.cc
  3650. * src/main.cc
  3651. * test/RequestGroupManTest.cc
  3652. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3653. Implemented commented code in BtSeederStateChoke
  3654. * src/BtSeederStateChoke.cc
  3655. * src/Peer.cc
  3656. * src/Peer.h
  3657. * src/PeerInteractionCommand.cc
  3658. * src/PeerSessionResource.cc
  3659. * src/PeerSessionResource.h
  3660. * test/MockBtMessageDispatcher.h
  3661. * test/PeerSessionResourceTest.cc
  3662. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3663. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3664. its object.
  3665. * src/AbstractBtMessage.cc
  3666. * src/ActivePeerConnectionCommand.cc
  3667. * src/ActivePeerConnectionCommand.h
  3668. * src/BtContextAwareCommand.cc
  3669. * src/BtContextAwareCommand.h
  3670. * src/BtExtendedMessage.cc
  3671. * src/BtExtendedMessage.h
  3672. * src/BtInterestedMessage.cc
  3673. * src/BtInterestedMessage.h
  3674. * src/BtNotInterestedMessage.cc
  3675. * src/BtNotInterestedMessage.h
  3676. * src/BtRegistry.cc
  3677. * src/BtRegistry.h
  3678. * src/BtSeederStateChoke.cc
  3679. * src/BtSetup.cc
  3680. * src/DHTGetPeersCommand.cc
  3681. * src/DHTGetPeersCommand.h
  3682. * src/DHTPeerAnnounceEntry.cc
  3683. * src/DHTPeerAnnounceEntry.h
  3684. * src/DHTPeerAnnounceStorage.cc
  3685. * src/DHTPeerAnnounceStorage.h
  3686. * src/DHTPeerLookupTask.cc
  3687. * src/DHTPeerLookupTask.h
  3688. * src/DHTSetup.cc
  3689. * src/DHTSetup.h
  3690. * src/DHTTaskFactory.h
  3691. * src/DHTTaskFactoryImpl.cc
  3692. * src/DHTTaskFactoryImpl.h
  3693. * src/DefaultBtAnnounce.cc
  3694. * src/DefaultBtInteractive.cc
  3695. * src/DefaultBtInteractive.h
  3696. * src/DefaultBtMessageDispatcher.cc
  3697. * src/DefaultBtMessageDispatcher.h
  3698. * src/DefaultBtMessageFactory.cc
  3699. * src/DefaultBtMessageFactory.h
  3700. * src/DefaultBtMessageReceiver.cc
  3701. * src/DefaultBtProgressInfoFile.cc
  3702. * src/DefaultBtProgressInfoFile.h
  3703. * src/DefaultBtRequestFactory.cc
  3704. * src/DefaultBtRequestFactory.h
  3705. * src/DefaultExtensionMessageFactory.cc
  3706. * src/DefaultExtensionMessageFactory.h
  3707. * src/DefaultPeerStorage.cc
  3708. * src/DefaultPeerStorage.h
  3709. * src/DownloadEngine.cc
  3710. * src/DownloadEngine.h
  3711. * src/InitiatorMSEHandshakeCommand.cc
  3712. * src/InitiatorMSEHandshakeCommand.h
  3713. * src/MSEHandshake.cc
  3714. * src/MSEHandshake.h
  3715. * src/Makefile.am
  3716. * src/Makefile.in
  3717. * src/PeerChokeCommand.cc
  3718. * src/PeerChokeCommand.h
  3719. * src/PeerInitiateConnectionCommand.cc
  3720. * src/PeerInitiateConnectionCommand.h
  3721. * src/PeerInteractionCommand.cc
  3722. * src/PeerInteractionCommand.h
  3723. * src/PeerObject.h
  3724. * src/PeerReceiveHandshakeCommand.cc
  3725. * src/PeerReceiveHandshakeCommand.h
  3726. * src/ReceiverMSEHandshakeCommand.cc
  3727. * src/RequestGroup.cc
  3728. * src/RequestGroup.h
  3729. * src/RequestGroupMan.cc
  3730. * src/RequestGroupMan.h
  3731. * src/SeedCheckCommand.cc
  3732. * src/SeedCheckCommand.h
  3733. * src/ShareRatioSeedCriteria.h
  3734. * src/SimpleBtMessage.cc
  3735. * src/TrackerWatcherCommand.cc
  3736. * src/TrackerWatcherCommand.h
  3737. * src/UTPexExtensionMessage.cc
  3738. * src/UTPexExtensionMessage.h
  3739. * test/BtCancelMessageTest.cc
  3740. * test/BtChokeMessageTest.cc
  3741. * test/BtExtendedMessageTest.cc
  3742. * test/BtInterestedMessageTest.cc
  3743. * test/BtNotInterestedMessageTest.cc
  3744. * test/BtPieceMessageTest.cc
  3745. * test/BtPortMessageTest.cc
  3746. * test/BtRegistryTest.cc
  3747. * test/BtRejectMessageTest.cc
  3748. * test/BtRequestMessageTest.cc
  3749. * test/DHTPeerAnnounceEntryTest.cc
  3750. * test/DHTPeerAnnounceStorageTest.cc
  3751. * test/DefaultBtMessageDispatcherTest.cc
  3752. * test/DefaultBtMessageFactoryTest.cc
  3753. * test/DefaultBtProgressInfoFileTest.cc
  3754. * test/DefaultBtRequestFactoryTest.cc
  3755. * test/DefaultExtensionMessageFactoryTest.cc
  3756. * test/MSEHandshakeTest.cc
  3757. * test/MockDHTTaskFactory.h
  3758. * test/ShareRatioSeedCriteriaTest.cc
  3759. * test/UTPexExtensionMessageTest.cc
  3760. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3761. Fixed compiler warning.
  3762. * test/UtilTest.cc
  3763. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Treat Cookie object as session cookie if expiry = 0 is given.
  3765. With this change, you can specify session scoped cookies in an external
  3766. file setting expiry value to 0.
  3767. * src/Cookie.cc
  3768. * src/Cookie.h
  3769. * test/CookieParserTest.cc
  3770. * test/CookieStorageTest.cc
  3771. * test/CookieTest.cc
  3772. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Changed signature of DHTMessageFactory::createResponseMessage().
  3774. Removed unused validateIDMatch.
  3775. * src/DHTMessageFactory.h
  3776. * src/DHTMessageFactoryImpl.cc
  3777. * src/DHTMessageFactoryImpl.h
  3778. * src/DHTMessageTracker.cc
  3779. * test/DHTMessageFactoryImplTest.cc
  3780. * test/MockDHTMessageFactory.h
  3781. Dropped DHT message coming from same ID of localhost.
  3782. * src/DHTMessageReceiver.cc
  3783. Rejected adding node whose ID is the same as localhost's.
  3784. * src/DHTRoutingTable.cc
  3785. * test/BtPortMessageTest.cc
  3786. * test/DHTRoutingTableTest.cc
  3787. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3788. Pool connection when redirection occurs with Content-Length = 0.
  3789. * src/HttpSkipResponseCommand.cc
  3790. * src/HttpSkipResponseCommand.h
  3791. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Fixed the bug that causes time out when redirection occurs with
  3793. content-length 0.
  3794. * src/HttpResponseCommand.cc
  3795. * src/HttpSkipResponseCommand.cc
  3796. * src/HttpSkipResponseCommand.h
  3797. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3798. Now each status legends is shown only when it appears in Download
  3799. Result. If Download Result has no item, then status legend will not
  3800. be printed.
  3801. * src/RequestGroupMan.cc
  3802. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. Removed duplicate creation of OptionHandlers.
  3804. * src/option_processing.cc
  3805. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Fixed the bug that causes segmentation fault when accessing files which
  3807. don't exist or are not included in --select-file option while
  3808. validating chunk checksum.
  3809. * src/MultiDiskAdaptor.cc
  3810. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Fixed compiler warning.
  3812. * test/UtilTest.cc
  3813. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3815. * src/IteratableChecksumValidator.cc
  3816. * src/IteratableChunkChecksumValidator.cc
  3817. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. * Release 0.16.2
  3819. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3820. Added Serbian translation. Updated Ukrainian translation.
  3821. Thanks to all translators.
  3822. * po/sr.po
  3823. * po/uk.po
  3824. * po/LINGUAS
  3825. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Bump up version number to 0.16.2
  3827. * configure.ac
  3828. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3829. Added length equality test to operator== to drop a piece message
  3830. whose length does not match to the requested one.
  3831. * src/RequestSlot.cc
  3832. * test/DefaultBtMessageDispatcherTest.cc
  3833. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3835. recieved.
  3836. In this fix, if a request larger than 16KiB length is received, aria2
  3837. disconnects the peer.
  3838. * src/BtConstants.h
  3839. * src/PeerMessageUtil.cc
  3840. * src/PeerMessageUtil.h
  3841. * test/BtRequestMessageTest.cc
  3842. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. * Release 0.16.1
  3844. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3846. * doc/aria2c.1.txt
  3847. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3849. Updated French, Simplified Chinese and Japanese translations.
  3850. Thanks to all translators.
  3851. en@quot and en@boldquot are also added.
  3852. * po/LINGUAS
  3853. * po/fr.po
  3854. * po/ja.po
  3855. * po/uk.po
  3856. * po/vi.po
  3857. * po/zh_CN.po
  3858. * po/zh_TW.po
  3859. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3860. Bump up version number to 0.16.1.
  3861. * configure.ac
  3862. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Updated README.
  3864. * README
  3865. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3867. not to replace '--' with em dash character.
  3868. * doc/aria2c.1.txt
  3869. * doc/makeman
  3870. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3872. every SEC seconds.
  3873. * src/DownloadEngineFactory.cc
  3874. * src/OptionHandlerFactory.cc
  3875. * src/option_processing.cc
  3876. * src/usage_text.h
  3877. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Fixed compile warning on linux-amd64
  3879. * src/FtpConnection.cc
  3880. * src/IteratableChunkChecksumValidator.cc
  3881. * src/MultiDiskAdaptor.cc
  3882. Fixed the bug that unit test fails on linux-amd64
  3883. * test/UtilTest.cc
  3884. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3885. Added --dht-file-path option to change the path to dht.dat, which is a
  3886. serialized DHT routing table.
  3887. * src/OptionHandlerFactory.cc
  3888. * src/option_processing.cc
  3889. * src/usage_text.h
  3890. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3891. Fixed possible underflow.
  3892. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3893. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. Fixed the bug that last character in URI is not encoded.
  3895. * src/Request.cc
  3896. * test/RequestTest.cc
  3897. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Fixed the bug that referer header field contains fragment.
  3899. Now Request class removes fragment part of URI and encodes it
  3900. in Request::setUri() and setReferer().
  3901. * src/Request.h
  3902. * src/Request.cc
  3903. * test/RequestTest.cc
  3904. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Added missing m4 macros.
  3906. * m4/cppunit.m4
  3907. * m4/libgcrypt.m4
  3908. * m4/libgnutls-extra.m4
  3909. * m4/libgnutls.m4
  3910. * m4/libxml2.m4
  3911. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Fixed compile error with gcc-4.4(snapshot)
  3913. * src/File.cc
  3914. * src/FtpConnection.cc
  3915. * src/OptionHandlerImpl.h
  3916. * src/Util.cc
  3917. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Removed assert()
  3919. * src/SocketBuffer.cc (SocketBuffer::send)
  3920. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Changed the type of _numNewConnection to unsigned int.
  3922. * src/ActivePeerConnectionCommand.cc
  3923. * src/ActivePeerConnectionCommand.h
  3924. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. * Release 0.16.0
  3926. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Updated doc
  3928. * README
  3929. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3931. translations. Thanks to all translators.
  3932. * po/bg.po
  3933. * po/de.po
  3934. * po/fr.po
  3935. * po/ja.po
  3936. * po/zh_CN.po
  3937. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. Bump up version number to 0.16.0.
  3939. * configure.ac
  3940. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3942. int32_t.
  3943. Changed the type of count to int32_t.
  3944. * src/Metalink2RequestGroup.cc
  3945. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Added test for Time::elapsed(time_t).
  3947. * test/TimeTest.cc
  3948. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3950. Util::difftv() should be used instead.
  3951. * src/TimeA2.cc
  3952. * src/TimeA2.h
  3953. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Made socket for dht connections non-blocking
  3955. * src/DHTAbstractMessage.cc
  3956. * src/DHTAbstractMessage.h
  3957. * src/DHTConnection.h
  3958. * src/DHTConnectionImpl.cc
  3959. * src/DHTConnectionImpl.h
  3960. * src/DHTMessage.h
  3961. * src/DHTMessageDispatcherImpl.cc
  3962. * src/DHTMessageDispatcherImpl.h
  3963. * src/DHTUnknownMessage.cc
  3964. * src/DHTUnknownMessage.h
  3965. * src/SocketCore.cc
  3966. * src/SocketCore.h
  3967. * test/MockDHTMessage.h
  3968. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Changed the type of offset to int.
  3970. * src/ParameterizedStringParser.cc
  3971. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3972. Made getAsInt() return int32_t
  3973. * src/Option.h
  3974. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3976. build.
  3977. * configure.ac
  3978. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Use sqlite3_open if sqlite3_open_v2 is not available.
  3980. * src/Sqlite3MozCookieParser.cc
  3981. * src/Sqlite3MozCookieParser.h
  3982. * m4/sqlite3.m4
  3983. * test/Sqlite3MozCookieParserTest.cc
  3984. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3986. * src/BtPieceMessage.cc
  3987. * src/DHTPeerAnnounceStorage.cc
  3988. * src/DefaultPieceStorage.cc
  3989. * src/DownloadCommand.cc
  3990. * src/DownloadEngine.cc
  3991. * src/FtpConnection.cc
  3992. * src/PeerConnection.cc
  3993. * src/PeerMessageUtil.cc
  3994. * src/RequestGroup.cc
  3995. * src/RequestGroupMan.cc
  3996. * src/SimpleBtMessage.cc
  3997. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3999. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4000. * src/AbstractDiskWriter.cc
  4001. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4002. Don't set Request::supportsPersistentConnection() in HttpConnection
  4003. since this code is also used in AbstractProxyResponseCommand.
  4004. Moved those code to HttpResponse.
  4005. * src/HttpResponse.cc
  4006. * src/HttpResponse.h
  4007. * src/HttpConnection.cc
  4008. * src/HttpConnection.h
  4009. * src/HttpResponseCommand.cc
  4010. * test/HttpResponseTest.cc
  4011. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4012. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4013. The configuration is minimum: no torrent, no metalink, so there may be
  4014. other compile error on their code.
  4015. * src/a2netcompat.h
  4016. * src/File.cc
  4017. * src/File.h
  4018. * src/SocketCore.cc
  4019. * src/SocketCore.h
  4020. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Made a socket of incoming peer non-blocking.
  4022. * src/PeerListenCommand.cc
  4023. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4024. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4025. whole message data is not sent in one send() call.
  4026. * src/BtPieceMessage.cc
  4027. * src/BtPieceMessage.h
  4028. * src/PeerConnection.cc
  4029. * src/PeerConnection.h
  4030. * src/SimpleBtMessage.cc
  4031. * src/SimpleBtMessage.h
  4032. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Fixed the bug that aria2 downloads faster than max-download-limit when
  4034. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4035. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4036. , instead of sum of them.
  4037. * src/ActivePeerConnectionCommand.cc
  4038. * src/DefaultBtInteractive.cc
  4039. * src/DownloadCommand.cc
  4040. * src/PeerInteractionCommand.cc
  4041. * src/PeerReceiveHandshakeCommand.cc
  4042. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Fixed the bug that HTTPS download fails.
  4044. * src/AbstractCommand.cc
  4045. * src/AbstractCommand.h
  4046. * src/DownloadCommand.cc
  4047. * src/FtpConnection.cc
  4048. * src/HttpConnection.cc
  4049. * src/HttpRequestCommand.cc
  4050. * src/HttpResponseCommand.cc
  4051. * src/HttpSkipResponseCommand.cc
  4052. * src/MSEHandshake.cc
  4053. * src/PeerConnection.cc
  4054. * src/SocketCore.cc
  4055. * src/SocketCore.h
  4056. Fixed the bug that aria2 doesn't download whole content body and cannot
  4057. reuse connection if chunked transfer encoding and gzip content encoding
  4058. are set.
  4059. * src/DownloadCommand.cc
  4060. * src/HttpSkipResponseCommand.cc
  4061. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Updated man page.
  4063. * doc/aria2c.1.txt
  4064. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. When error occurred while aria2 was parsing an .aria2.conf file, print
  4066. the usage of the option that caused error.
  4067. * src/option_processing.cc
  4068. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Fixed compile error on OptionHandlerException
  4070. * src/Makefile.am
  4071. * src/OptionHandlerException.cc
  4072. * src/OptionHandlerException.h
  4073. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Moved message of the error to OptionHandlerException.h
  4075. * src/NameMatchOptionHandler.h
  4076. * src/OptionHandlerException.h
  4077. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. When error occurs while aria2 is parsing an command-line option, print
  4079. the usage of the option.
  4080. * src/Makefile.am
  4081. * src/NameMatchOptionHandler.h
  4082. * src/OptionHandlerException.h
  4083. * src/option_processing.cc
  4084. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Reverted previous change.
  4086. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4087. username is not in URI.
  4088. * src/HttpRequest.cc
  4089. * src/Request.cc
  4090. * test/HttpRequestTest.cc
  4091. * test/RequestTest.cc
  4092. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4093. Now colon is required for username and password in FTP URL, like:
  4094. ftp://username:password@host.
  4095. If colon is not there, aria2 don't parse it as a username. For example,
  4096. aria2 don't retrieve username from ftp://username@host.
  4097. This fix was made in order to login FTP server via non-transparent ftp
  4098. proxy.
  4099. * src/Request.cc
  4100. * test/RequestTest.cc
  4101. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4102. Use netrc for HTTP.
  4103. Now FTP user/password is sent in Authorization header when
  4104. --ftp-via-http-proxy=get is given.
  4105. * src/AuthConfigFactory.cc
  4106. * src/HttpRequest.cc
  4107. * src/HttpRequest.h
  4108. * src/NetrcAuthResolver.cc
  4109. * src/NetrcAuthResolver.h
  4110. * src/OptionHandlerFactory.cc
  4111. * src/option_processing.cc
  4112. * src/prefs.cc
  4113. * src/prefs.h
  4114. * test/AuthConfigFactoryTest.cc
  4115. * test/HttpRequestTest.cc
  4116. * test/NetrcAuthResolverTest.cc
  4117. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Issue PWD command first and get working directory and use it as a prefix
  4119. for CWD command.
  4120. * src/DownloadEngine.cc
  4121. * src/DownloadEngine.h
  4122. * src/FtpConnection.cc
  4123. * src/FtpConnection.h
  4124. * src/FtpFinishDownloadCommand.cc
  4125. * src/FtpInitiateConnectionCommand.cc
  4126. * src/FtpNegotiationCommand.cc
  4127. * src/FtpNegotiationCommand.h
  4128. * test/FtpConnectionTest.cc
  4129. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Removed default user/pass for FTP user/pass, since it should not have
  4131. precedence over netrc configuration by default.
  4132. * src/OptionHandlerFactory.cc
  4133. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4134. Added debug log for socket event.
  4135. * src/AbstractCommand.cc
  4136. * src/PeerAbstractCommand.cc
  4137. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Log microseconds.
  4139. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4140. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Replaced HelpItem.cc with OptionHandler.cc.
  4142. * po/POTFILES.in
  4143. Updated po files with 'make update-po'
  4144. * po/aria2c.pot
  4145. * po/*.po
  4146. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Removed possible values from the text.
  4148. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4149. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Removed unused preferences:
  4151. PREF_NO_PREALLOCATION
  4152. PREF_STDOUT_LOG
  4153. PREF_TRACKER_MAX_TRIES
  4154. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4155. PREF_MIN_SEGMENT_SIZE
  4156. * src/option_processing.cc
  4157. * src/prefs.cc
  4158. * src/prefs.h
  4159. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. Integrated HelpItem into OptionParser to ease the workload for adding
  4161. new options. Removed default value from usage text.
  4162. * src/HelpItem.cc: Removed.
  4163. * src/HelpItem.h: Removed.
  4164. * src/HelpItemFactory.cc: Removed.
  4165. * src/HelpItemFactory.h: Removed.
  4166. * src/Makefile.am
  4167. * src/Makefile.in
  4168. * src/NameMatchOptionHandler.h
  4169. * src/OptionHandler.cc
  4170. * src/OptionHandler.h
  4171. * src/OptionHandlerFactory.cc
  4172. * src/OptionHandlerImpl.h
  4173. * src/OptionParser.cc
  4174. * src/OptionParser.h
  4175. * src/TagContainer.cc: Removed.
  4176. * src/TagContainer.h: Removed.
  4177. * src/TaggedItem.cc: Removed.
  4178. * src/TaggedItem.h: Removed.
  4179. * src/main.cc
  4180. * src/option_processing.cc
  4181. * src/usage_text.h
  4182. * src/version_usage.cc
  4183. * test/HelpItemTest.cc: Removed.
  4184. * test/Makefile.am
  4185. * test/Makefile.in
  4186. * test/OptionHandlerTest.cc
  4187. * test/OptionParserTest.cc
  4188. * test/TagContainerTest.cc: Removed.
  4189. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Moved `TransferStat stat = ...' to inside the `if' clause.
  4191. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4192. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Fixed the bug that a block in a piece is requested when same block is
  4194. already requested to the same peer in end game mode.
  4195. * src/BtRequestFactory.h
  4196. * src/DefaultBtInteractive.cc
  4197. * src/DefaultBtRequestFactory.cc
  4198. * src/DefaultBtRequestFactory.h
  4199. * src/DefaultPieceStorage.cc
  4200. * src/DefaultPieceStorage.h
  4201. * src/PieceStorage.h
  4202. * src/UnknownLengthPieceStorage.cc
  4203. * src/UnknownLengthPieceStorage.h
  4204. * test/DefaultBtRequestFactoryTest.cc
  4205. * test/DefaultPieceStorageTest.cc
  4206. * test/MockBtRequestFactory.h
  4207. * test/MockPieceStorage.h
  4208. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Removed _uploadLength and _downloadLength from PeerSessionResource
  4210. and use PeerStat::_sessionUploadLength and
  4211. PeerStat::_sessionDownloadLength.
  4212. * src/PeerSessionResource.cc
  4213. * src/PeerSessionResource.h
  4214. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Fixed the bug that prefixLength of split bucket which doesn't include
  4216. local node ID is incremented.
  4217. * src/DHTBucket.cc
  4218. * src/DHTBucket.h
  4219. * test/DHTBucketTest.cc
  4220. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4221. Added cookies.sqlite to EXTRA_DIST
  4222. * test/Makefile.am
  4223. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. Added Turkish translation. Updated French, German, Russian and
  4225. Simplified Chinese translations. Thanks to all translators.
  4226. * po/LINGUAS
  4227. * po/de.po
  4228. * po/fr.po
  4229. * po/ru.po
  4230. * po/tr.po
  4231. * po/zh_CN.po
  4232. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Added deliminating text to the beginning of the log so that one can find
  4234. where the log starts easily.
  4235. * src/main.cc
  4236. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4237. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4238. to fix compile error when async DNS is not enabled by configuration.
  4239. * src/AbstractCommand.cc
  4240. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. If establishing conneciton to a server is failed, then mark error on
  4242. its ServerStat.
  4243. Added the cause of error to log when error event occurred.
  4244. Moved message string to message.h for translation.
  4245. * src/AbstractCommand.cc
  4246. * src/AbstractCommand.h
  4247. * src/FtpNegotiationCommand.cc
  4248. * src/HttpRequestCommand.cc
  4249. * src/PeerAbstractCommand.cc
  4250. * src/message.h
  4251. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Added the function to get error message from socket.
  4253. * src/SocketCore.cc
  4254. * src/SocketCore.h
  4255. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4257. * src/RequestGroupMan.cc
  4258. * src/RequestGroupMan.h
  4259. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. If error event is received in epoll, then abort download immediately.
  4261. * src/AbstractCommand.cc
  4262. * src/Command.cc
  4263. * src/Command.h
  4264. * src/DownloadEngine.cc
  4265. * src/PeerAbstractCommand.cc
  4266. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Added usage message for --uri-selector, --server-stat-of,
  4268. --server-stat-in, --server-stat-timeout options.
  4269. * src/HelpItemFactory.cc
  4270. * src/usage_text.h
  4271. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Added upper limit of FTP response buffer. The current implementation
  4273. uses 4096bytes as a limit.
  4274. * src/FtpConnection.cc
  4275. * src/FtpConnection.h
  4276. * test/FtpConnectionTest.cc
  4277. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Use non-blocking socket for TCP communication to avoid possible
  4279. blocking due to buffer full.
  4280. * src/AbstractProxyRequestCommand.cc
  4281. * src/FtpConnection.cc
  4282. * src/FtpConnection.h
  4283. * src/FtpNegotiationCommand.cc
  4284. * src/FtpNegotiationCommand.h
  4285. * src/HttpConnection.cc
  4286. * src/HttpConnection.h
  4287. * src/HttpRequestCommand.cc
  4288. * src/InitiatorMSEHandshakeCommand.cc
  4289. * src/InitiatorMSEHandshakeCommand.h
  4290. * src/MSEHandshake.cc
  4291. * src/MSEHandshake.h
  4292. * src/Makefile.am
  4293. * src/PeerConnection.cc
  4294. * src/PeerConnection.h
  4295. * src/PeerInteractionCommand.cc
  4296. * src/PeerListenCommand.cc
  4297. * src/ReceiverMSEHandshakeCommand.cc
  4298. * src/ReceiverMSEHandshakeCommand.h
  4299. * src/SocketBuffer.cc
  4300. * src/SocketBuffer.h
  4301. * src/SocketCore.cc
  4302. * src/SocketCore.h
  4303. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Call setStatusRealtime() in constructor.
  4305. * src/RealtimeCommand.cc
  4306. * src/RealtimeCommand.h
  4307. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4308. Call Download::setNoWait(true) to execute newly created command without
  4309. a pause.
  4310. * src/AbstractCommand.cc
  4311. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4313. found' error from HTTP/FTP server NUM times without getting single
  4314. bytes of data, then force the download to fail.
  4315. Basically aria2 tris all URIs available. So if long list of URIs are
  4316. specified in Metalink, then aria2 will take a long time to fail
  4317. eventually if all URIs are outdated. This option eases this situation
  4318. to limit the number of servers to try.
  4319. * src/FtpNegotiationCommand.cc
  4320. * src/HelpItemFactory.cc
  4321. * src/HttpResponseCommand.cc
  4322. * src/OptionHandlerFactory.cc
  4323. * src/PeerStat.h
  4324. * src/RequestGroup.cc
  4325. * src/RequestGroup.h
  4326. * src/SegmentMan.cc
  4327. * src/SegmentMan.h
  4328. * src/option_processing.cc
  4329. * src/prefs.cc
  4330. * src/prefs.h
  4331. * src/usage_text.h
  4332. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4333. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4334. response even if more than one response is in it.
  4335. * src/FtpConnection.cc
  4336. * src/FtpConnection.h
  4337. * test/FtpConnectionTest.cc
  4338. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Merged from stable-0.15
  4340. * m4/libcares.m4
  4341. Use pkg-config
  4342. * m4/sqlite3.m4
  4343. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4344. Removed unnecessary if statement.
  4345. * src/DefaultPieceStorage.cc (initPieceStorage)
  4346. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Added --connect-timeout option to specify connect timeout in seconds.
  4348. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4349. connecting to BitTorrent peer is not controlled by this option.
  4350. * src/AbstractProxyRequestCommand.cc
  4351. * src/FtpNegotiationCommand.cc
  4352. * src/HelpItemFactory.cc
  4353. * src/HttpRequestCommand.cc
  4354. * src/OptionHandlerFactory.cc
  4355. * src/option_processing.cc
  4356. * src/prefs.cc
  4357. * src/prefs.h
  4358. * src/usage_text.h
  4359. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Added help message for -R option.
  4361. * src/HelpItemFactory.cc
  4362. * src/usage_text.h
  4363. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Added the message that the time is in local time zone.
  4365. * src/RequestGroup.cc
  4366. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4367. Implemented the ability to get timestamp from remote FTP server using
  4368. MDTM command described in RFC3659.
  4369. * src/FtpConnection.cc
  4370. * src/FtpConnection.h
  4371. * src/FtpNegotiationCommand.cc
  4372. * src/FtpNegotiationCommand.h
  4373. * test/FtpConnectionTest.cc
  4374. * test/Makefile.am
  4375. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4376. Implemented the ability to get timestamp from remote HTTP server and
  4377. apply it to local file. To enable this feature, --remote-time option
  4378. is added. No usage text has been written yet.
  4379. If several servers returns difference timestamp, then aria2 uses latest
  4380. one.
  4381. * src/CopyDiskAdaptor.cc
  4382. * src/CopyDiskAdaptor.h
  4383. * src/DirectDiskAdaptor.cc
  4384. * src/DirectDiskAdaptor.h
  4385. * src/DiskAdaptor.h
  4386. * src/File.cc
  4387. * src/File.h
  4388. * src/HttpHeader.cc
  4389. * src/HttpHeader.h
  4390. * src/HttpResponse.cc
  4391. * src/HttpResponse.h
  4392. * src/HttpResponseCommand.cc
  4393. * src/HttpResponseCommand.h
  4394. * src/MultiDiskAdaptor.cc
  4395. * src/MultiDiskAdaptor.h
  4396. * src/OptionHandlerFactory.cc
  4397. * src/RequestGroup.cc
  4398. * src/RequestGroup.h
  4399. * src/RequestGroupMan.cc
  4400. * src/option_processing.cc
  4401. * src/prefs.cc
  4402. * src/prefs.h
  4403. * test/CopyDiskAdaptorTest.cc
  4404. * test/FileTest.cc
  4405. * test/Makefile.am
  4406. * test/Makefile.in
  4407. * test/MultiDiskAdaptorTest.cc
  4408. * test/TestUtil.cc
  4409. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Fixed the bug that DiskWriterEntry is not created when its
  4411. FileEntry.isRequested() is false and it doesn't share a piece with
  4412. other FileEntries that are requested. This bug causes segmentation fault
  4413. in the end.
  4414. * src/MultiDiskAdaptor.cc
  4415. * src/MultiDiskAdaptor.h
  4416. * src/MultiFileAllocationIterator.cc
  4417. * test/MultiDiskAdaptorTest.cc
  4418. * test/MultiFileAllocationIteratorTest.cc
  4419. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4420. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4421. called if the number of file entries are greater than max open files.
  4422. * src/AbstractSingleDiskAdaptor.cc
  4423. * src/AbstractSingleDiskAdaptor.h
  4424. * src/DiskAdaptor.h
  4425. * src/MultiDiskAdaptor.cc
  4426. * src/MultiDiskAdaptor.h
  4427. * test/MultiDiskAdaptorTest.cc
  4428. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4429. Added a constuctor that receives struct timeval.
  4430. Added operator<.
  4431. * src/TimeA2.cc
  4432. * src/TimeA2.h
  4433. * test/TimeTest.cc
  4434. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4436. * src/CookieParser.cc
  4437. * test/CookieParserTest.cc
  4438. * test/HttpResponseTest.cc
  4439. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Implmented the functions to parse date.
  4441. * src/TimeA2.cc
  4442. * src/TimeA2.h
  4443. * test/TimeTest.cc
  4444. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Added "Firefox3 Cookie" feature to FeatureConfig
  4446. * src/FeatureConfig.cc
  4447. * src/FeatureConfig.h
  4448. * test/FeatureConfigTest.cc
  4449. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Bump up version number to 0.16.0b
  4451. * configure.ac
  4452. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Use pkg-config if is is available.
  4454. * m4/openssl.m4
  4455. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4457. * src/BtAnnounce.h
  4458. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. If an error occurred with a URI, remove identical URI from remaining
  4460. URI list because it is likely that same error occurred in the end and it
  4461. is waste of time.
  4462. * src/AbstractCommand.cc
  4463. * src/RequestGroup.cc
  4464. * src/RequestGroup.h
  4465. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Removed wrong comment.
  4467. * src/DefaultPeerStorage.cc
  4468. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4470. Added return value of getpid() to argument of srand() to achieve more
  4471. randomized value.
  4472. * src/SimpleRandomizer.cc
  4473. * src/SimpleRandomizer.h
  4474. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Contact tracker frequently when the number of connections are 0 and
  4476. download is not finished yet.
  4477. * src/ActivePeerConnectionCommand.cc
  4478. * src/BtAnnounce.h
  4479. * src/DefaultBtAnnounce.cc
  4480. * src/DefaultBtAnnounce.h
  4481. * test/MockBtAnnounce.h
  4482. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Moved threshold values to UTPexExtensionMessage.
  4484. * src/DefaultBtInteractive.cc
  4485. * src/Peer.cc
  4486. * src/Peer.h
  4487. * src/UTPexExtensionMessage.cc
  4488. * src/UTPexExtensionMessage.h
  4489. * test/UTPexExtensionMessageTest.cc
  4490. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Added _incoming member to Peer class and made it true if the peer
  4492. initiated connection. Don't add those peer to UTPex message.
  4493. If extended handshake is received, assign _incoming to false.
  4494. * src/DefaultBtInteractive.cc
  4495. * src/HandshakeExtensionMessage.cc
  4496. * src/Peer.cc
  4497. * src/Peer.h
  4498. * src/PeerListenCommand.cc
  4499. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4501. Encoding Decoder. Removed size threshold for turning off on the fly
  4502. inflation because resulting file may or may not be inflated depending
  4503. on the file size and I think it is not expected by users.
  4504. This change fixes segmentation fault when Metalink file contains gzipped
  4505. file and its filesize is provided.
  4506. * src/HttpResponseCommand.cc
  4507. * src/HttpResponseCommand.h
  4508. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Made Cookie immutable.
  4510. * src/Cookie.cc
  4511. * src/Cookie.h
  4512. * src/CookieParser.cc
  4513. * src/CookieParser.h
  4514. * src/CookieStorage.cc
  4515. * test/CookieParserTest.cc
  4516. * test/CookieStorageTest.cc
  4517. * test/NsCookieParserTest.cc
  4518. * test/Sqlite3MozCookieParserTest.cc
  4519. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Removed CookieBox, CookieBoxFactory.
  4521. * src/CookieBox.cc
  4522. * src/CookieBox.h
  4523. * src/CookieBoxFactory.cc
  4524. * src/CookieBoxFactory.h
  4525. * src/Makefile.am
  4526. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4527. Use CookieStorage class instead of CookieBox class.
  4528. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4529. * src/AbstractProxyRequestCommand.cc
  4530. * src/CookieStorage.cc
  4531. * src/DownloadEngine.cc
  4532. * src/DownloadEngine.h
  4533. * src/HttpConnection.cc
  4534. * src/HttpConnection.h
  4535. * src/HttpRequest.cc
  4536. * src/HttpRequest.h
  4537. * src/HttpRequestCommand.cc
  4538. * src/HttpResponse.cc
  4539. * src/HttpResponseCommand.cc
  4540. * src/HttpSkipResponseCommand.cc
  4541. * src/Makefile.am
  4542. * src/MultiUrlRequestInfo.cc
  4543. * src/Request.cc
  4544. * src/Request.h
  4545. * src/main.cc
  4546. * test/AllTest.cc
  4547. * test/CookieStorageTest.cc
  4548. * test/CookieTest.cc
  4549. * test/HttpRequestTest.cc
  4550. * test/HttpResponseTest.cc
  4551. * test/Makefile.am
  4552. * test/NsCookieParserTest.cc
  4553. * test/Sqlite3MozCookieParserTest.cc
  4554. * test/nscookietest.txt
  4555. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Updated
  4557. * test/Cookies.sqlite
  4558. * test/nscookietest.txt
  4559. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Added tests for CookieStorage::load()
  4561. * test/CookieStorageTest.cc
  4562. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Added CookieStorage class which is based on RFC2109 and manages cookies
  4564. more strictly than CookieBox and CookieBoxFactory class.
  4565. * src/CookieStorage.cc
  4566. * src/CookieStorage.h
  4567. * src/Cookie.cc
  4568. * src/Cookie.h
  4569. * test/CookieStorageTest.cc
  4570. * test/CookieTest.cc
  4571. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Fixed the bug that commands are created more than the number of pieces.
  4573. * src/RequestGroup.cc
  4574. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Fixed infinite loop bug in FTP when SIZE command failed.
  4576. * src/FtpNegotiationCommand.cc
  4577. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Removed DirectDiskAdaptorTest.h
  4579. * test/Makefile.am
  4580. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Fixed chunk checksum validation cannot detect trailing garbage data.
  4582. BUG#2074141
  4583. * src/AbstractSingleDiskAdaptor.cc
  4584. * src/AbstractSingleDiskAdaptor.h
  4585. * src/CheckIntegrityEntry.cc
  4586. * src/CheckIntegrityEntry.h
  4587. * src/DiskAdaptor.h
  4588. * src/MultiDiskAdaptor.cc
  4589. * src/MultiDiskAdaptor.h
  4590. * src/RequestGroup.cc
  4591. * test/DirectDiskAdaptorTest.cc
  4592. * test/MultiDiskAdaptorTest.cc
  4593. * test/TestUtil.cc
  4594. * test/TestUtil.h
  4595. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Bump up version number of dht.dat file to 3. In version 3 format, time
  4597. is stored in 64bit, network byte order.
  4598. New build can load old format(version 2) but it saves the file in new
  4599. format. It means once you used new build, your dht.dat becomes
  4600. incompatible with older build.
  4601. * src/DHTRoutingTableDeserializer.cc
  4602. * src/DHTRoutingTableSerializer.cc
  4603. * test/DHTRoutingTableSerializerTest.cc
  4604. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4606. * test/Makefile.am
  4607. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Bump up version number of .aria2 control file to 0001.
  4609. New aria2 can still load version 0000 file but it saves the file in
  4610. version 0001 format. It means that new aria2 can resume download
  4611. started by old aria2 but the opposite is not true.
  4612. * src/DefaultBtProgressInfoFile.cc
  4613. * src/DefaultBtProgressInfoFile.h
  4614. * test/DefaultBtProgressInfoFileTest.cc
  4615. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. Added ntoh64 and hton64 as inline functions.
  4617. * src/Util.cc
  4618. * test/UtilTest.cc
  4619. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Added sqlite3 depenency and Firefox3 cookie support.
  4621. * README
  4622. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. State that firefox3 cookie is supported explicitly in the usage.
  4624. * src/usage_text.h
  4625. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Externalized message.
  4627. * src/RequestGroupMan.cc
  4628. * src/message.h
  4629. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Save temporary file first and rename to the destination on success.
  4631. Added test cases.
  4632. * src/RequestGroupMan.cc
  4633. * test/RequestGroupManTest.cc
  4634. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Fixed the bug that the number of connected peer is exceeding the limit
  4636. (55 by default) in seeding mode.
  4637. Multiplied 0.8 to _maxUploadSpeedLimit.
  4638. * src/ActivePeerConnectionCommand.cc
  4639. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4640. Clear table item.
  4641. * src/Dictionary.cc
  4642. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Fixed error handling of lseek.
  4644. * src/AbstractDiskWriter.cc
  4645. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4647. style cookie file.
  4648. * src/usage_text.h
  4649. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4651. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4652. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4653. * src/Util.cc
  4654. * src/Util.h
  4655. * src/CookieParser.cc
  4656. * test/UtilTest.cc
  4657. * test/CookieParserTest.cc
  4658. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Separate the implementation to load old mozilla format of cookie to
  4660. NsCookieParser class.
  4661. * src/CookieBoxFactory.cc
  4662. * src/CookieBoxFactory.h
  4663. * src/NsCookieParser.cc
  4664. * src/NsCookieParser.h
  4665. * test/NsCookieParserTest.cc
  4666. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Made parse() const
  4668. * src/Sqlite3MozCookieParser.cc
  4669. * src/Sqlite3MozCookieParser.h
  4670. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Added firefox3 cookie support based on the patch submitted by
  4672. tizianomueller.
  4673. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4674. this functionality.
  4675. * configure.ac
  4676. * m4/sqlite3.m4
  4677. * src/CookieBoxFactory.cc
  4678. * src/CookieBoxFactory.h
  4679. * src/Makefile.am
  4680. * src/Makefile.in
  4681. * src/Sqlite3MozCookieParser.cc
  4682. * src/Sqlite3MozCookieParser.h
  4683. * src/main.cc
  4684. * test/CookieBoxFactoryTest.cc
  4685. * test/Makefile.am
  4686. * test/Makefile.in
  4687. * test/Sqlite3MozCookieParserTest.cc
  4688. * test/badcookies.sqlite
  4689. * test/cookies.sqlite
  4690. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Added Danish and Greek translations.
  4692. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4693. Great thanks to all translators.
  4694. * po/LINGUAS
  4695. * po/el.po
  4696. * po/da.po
  4697. * po/es.po
  4698. * po/ca.po
  4699. * po/nn.po
  4700. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. Fixed man page: --follow-bittorrent should be --follow-torrent
  4702. * doc/aria2c.1.txt
  4703. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Fixed: numCommand is less than the value specified in -C option.
  4705. * src/RequestGroup.cc
  4706. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4707. Fixed occasional assertion failure in PieceSegment.
  4708. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4709. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4710. creation of duplicate segments and one of the segment was finished then
  4711. assertion failure was caused.
  4712. * src/SegmentMan.cc
  4713. * test/SegmentManTest.cc
  4714. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Added options to load/save the server's performance/status to a file
  4716. and the timeout to drop their data.
  4717. --server-stat-of=FILE specifies the file to which performance data
  4718. is saved.
  4719. --server-stat-if=FILE specifies the file to read previously saved
  4720. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4721. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4722. TIMEOUT is specified in seconds and the default value is 24hours.
  4723. * src/MultiUrlRequestInfo.cc
  4724. * src/OptionHandlerFactory.cc
  4725. * src/RequestGroupMan.cc
  4726. * src/RequestGroupMan.h
  4727. * src/ServerStatMan.cc
  4728. * src/ServerStatMan.h
  4729. * src/option_processing.cc
  4730. * src/prefs.cc
  4731. * src/prefs.h
  4732. * test/ServerStatManTest.cc
  4733. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4735. * src/ServerStatMan.cc
  4736. * src/ServerStatMan.h
  4737. * test/ServerStatManTest.cc
  4738. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Implemented ServerStatMan::load(...) function and its test case.
  4740. * src/ServerStat.cc
  4741. * src/ServerStat.h
  4742. * src/ServerStatMan.cc
  4743. * test/ServerStatManTest.cc
  4744. * test/ServerStatTest.cc
  4745. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Use time_t instead of int32_t. Use int64_t where milli second is
  4747. expected.
  4748. * src/TimeA2.cc
  4749. * src/TimeA2.h
  4750. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Implemented ServerStatMan::save(...) function and its test case.
  4752. * src/ServerStat.cc
  4753. * src/ServerStat.h
  4754. * src/ServerStatMan.cc
  4755. * src/ServerStatMan.h
  4756. * test/ServerStatManTest.cc
  4757. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Now aria2 uses name attribute in Metalink as local filename in
  4759. BitTorrent downloads. BUG#2033999
  4760. * src/BtContext.h
  4761. * src/BtDependency.cc
  4762. * src/DefaultBtContext.cc
  4763. * src/DefaultBtContext.h
  4764. * src/SingleFileDownloadContext.cc
  4765. * src/SingleFileDownloadContext.h
  4766. * test/BtDependencyTest.cc
  4767. * test/DefaultBtContextTest.cc
  4768. * test/MockBtContext.h
  4769. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Added AC_C_BIGENDIAN
  4771. * src/configure.ac
  4772. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Limited numCommand less than or equal to the number of piece.
  4774. * src/RequestGroup.cc
  4775. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4777. directive.
  4778. * test/DefaultPieceStorageTest.cc
  4779. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Fixed memory leak in test code
  4781. * test/AnnounceListTest.cc
  4782. * test/DefaultPeerListProcessorTest.cc
  4783. * test/DefaultPeerStorageTest.cc
  4784. * test/MetaFileUtilTest.cc
  4785. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4787. * src/DefaultPieceStorage.cc
  4788. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Initialized _directIOAllowed
  4790. * src/MultiDiskAdaptor.cc
  4791. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Fixed memory leak
  4793. * src/GZipDecoder.cc
  4794. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Fixed memory leak
  4796. * src/MetalinkParserStateMachine.cc
  4797. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Fixed memory leak
  4799. * src/Dictionary.cc
  4800. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Fixed memory leak
  4802. * src/IteratableChunkChecksumValidator.h
  4803. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Fixed unmatched malloc/free.
  4805. * src/IteratableChunkChecksumValidator.cc
  4806. * src/IteratableChecksumValidator.cc
  4807. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Removed max chunk size check. This change fixes BUG#2040169
  4809. * src/ChunkedDecoder.cc
  4810. * src/ChunkedDecoder.h
  4811. * test/ChunkedDecoderTest.cc
  4812. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Implemented download speed based URI selection algorithm.
  4814. Introduced new option --uri-selector.
  4815. If --uri-selector=feedback is given, aria2 uses download speed observed
  4816. in the previous downloads and chooses fastest server in the URI list.
  4817. Currently at most 10 URIs are considered to introduce randomeness for
  4818. finding better servers. The speed is average download speed in the
  4819. downloads.
  4820. On the other hand, if --uri-selector=inorder is given, which is default,
  4821. URI is tried in order in URI list.
  4822. The usage text for the new option has not been written yet.
  4823. * src/AbstractCommand.cc
  4824. * src/DownloadCommand.cc
  4825. * src/DownloadEngine.cc
  4826. * src/DownloadEngineFactory.cc
  4827. * src/InOrderURISelector.cc
  4828. * src/InOrderURISelector.h
  4829. * src/OptionHandlerFactory.cc
  4830. * src/PeerStat.h
  4831. * src/RequestGroup.cc
  4832. * src/RequestGroup.h
  4833. * src/RequestGroupMan.cc
  4834. * src/RequestGroupMan.h
  4835. * src/SegmentMan.cc
  4836. * src/SegmentMan.h
  4837. * src/ServerStat.cc
  4838. * src/ServerStat.h
  4839. * src/ServerStatMan.cc
  4840. * src/ServerStatMan.h
  4841. * src/ServerStatURISelector.cc
  4842. * src/ServerStatURISelector.h
  4843. * src/URISelector.h
  4844. * src/option_processing.cc
  4845. * src/prefs.cc
  4846. * src/prefs.h
  4847. * test/InOrderURISelectorTest.cc
  4848. * test/RequestGroupManTest.cc
  4849. * test/ServerStatManTest.cc
  4850. * test/ServerStatURISelectorTest.cc
  4851. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. * Release 0.15.1+2
  4853. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Bump up version number to 0.15.1+2
  4855. * configure.ac
  4856. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4858. * m4/aria2_arg.m4
  4859. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. * Release 0.15.1+1
  4861. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Bump up version number to 0.15.1+1
  4863. * configure.ac
  4864. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Fixed the bug that causes segmentaion fault when resuming download
  4866. using metalink without size tag. Reproducible only using HTTP URI.
  4867. * src/HttpResponseCommand.cc
  4868. * src/FtpNegotiationCommand.cc
  4869. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. * Release 0.15.1
  4871. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Updated Bulgarian and French translations, thanks to all translators.
  4873. * po/bg.po
  4874. * po/fr.po
  4875. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Bump up version number to 0.15.1
  4877. * configure.ac
  4878. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. Avoid repeated call of gettimeofday() when calculating speed.
  4880. * src/SpeedCalc.cc
  4881. * src/SpeedCalc.h
  4882. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4883. Removed writable check when socket's send buffer is full in BitTorrent
  4884. downloads to lower CPU usage.
  4885. * src/PeerInteractionCommand.cc
  4886. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4887. Fixed broken gzip inflation.
  4888. Turn off segmented downloading if gzip content is smaller than or equal
  4889. to 1MiB and inflate the data on the fly, because HTTP response header
  4890. doesn't contain the length of inflated file we can't determin where
  4891. the chunk of data should be written.
  4892. On the other hand, if gzip content is larger than 1MB, then turn off
  4893. on the fly inflation, because some servers returns "content-type: gzip"
  4894. for *.tgz, *.gz files.
  4895. * src/DownloadCommand.cc
  4896. * src/HttpResponseCommand.cc
  4897. * src/HttpResponseCommand.h
  4898. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Applied tizianomueller's patch to fix compile error.
  4900. * test/BitfieldManTest.cc
  4901. * test/BtRequestMessageTest.cc
  4902. * test/DefaultBtContextTest.cc
  4903. * test/DefaultDiskWriterTest.cc
  4904. * test/DefaultPieceStorageTest.cc
  4905. * test/HttpHeaderProcessorTest.cc
  4906. * test/HttpResponseTest.cc
  4907. * test/Metalink2RequestGroupTest.cc
  4908. * test/MetalinkParserControllerTest.cc
  4909. * test/MetalinkProcessorTest.cc
  4910. * test/PeerSessionResourceTest.cc
  4911. * test/UtilTest.cc
  4912. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. * Release 0.15.0
  4914. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Reordered src files in POTFILES.in so that usage text appears first.
  4916. * po/POTFILES.in
  4917. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Bump up version number to 0.15.0
  4919. * configure.ac
  4920. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4921. Added Bulgarian translation.
  4922. Updated Catalan, Spanish, French and Japanese translations.
  4923. Thanks to all translators.
  4924. * po/LINGUAS
  4925. * po/bg.po
  4926. * po/ca.po
  4927. * po/es.po
  4928. * po/fr.po
  4929. * po/ja.po
  4930. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Updated feature list. Added libz for dependency section.
  4932. Added a description about unit testing using CppUnit.
  4933. * README
  4934. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Added a test for libz. Quoted where it is necessary.
  4936. * build_test.sh
  4937. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Added GZip to `Enabled Features' list.
  4939. * src/FeatureConfig.cc
  4940. * src/FeatureConfig.h
  4941. * test/FeatureConfigTest.cc
  4942. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4944. the transfer has not yet started.
  4945. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4946. * src/SegmentMan.cc
  4947. * src/SegmentMan.h
  4948. * test/SegmentManTest.cc
  4949. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Cache last calculated average download/upload speed.
  4951. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4952. cached value.
  4953. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4954. * src/PeerStat.h
  4955. * src/SpeedCalc.cc
  4956. * src/SpeedCalc.h
  4957. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4958. Call parseUrl directly.
  4959. * src/Request.cc (resetUrl)
  4960. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4961. Supported absolute/relative path in Location header field.
  4962. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4963. * src/HttpHeader.cc
  4964. * src/HttpHeader.h
  4965. * src/HttpResponse.cc
  4966. * src/HttpSkipResponseCommand.cc
  4967. * src/Request.cc
  4968. * test/HttpHeaderTest.cc
  4969. * test/HttpResponseTest.cc
  4970. * test/RequestTest.cc
  4971. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Changed help text for --load-cookie option.
  4973. * doc/aria2c.1.txt
  4974. * src/usage_text.h
  4975. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Regenerated test/Makefile.in to remove stale ChangeLog.
  4977. * test/Makefile.in
  4978. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Updated po files.
  4980. * po/aria2c.pot
  4981. * po/*.po
  4982. * po/*.gmo
  4983. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Bump up version number to 0.15.0b
  4985. * configure.ac
  4986. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Externalize messages.
  4988. * src/RequestGroupMan.cc
  4989. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4990. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4991. Use File::exists() instead of File::isFile() to allow non-regular file
  4992. such as block special files.
  4993. * src/AbstractDiskWriter.cc
  4994. * src/MultiDiskWriter.cc
  4995. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4997. * src/gai_strerror.h
  4998. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Fixed compile error. Thanks gknauf for the patch.
  5000. * src/asctime_r.c
  5001. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Included asctime_r.h from a2time.h.
  5003. * src/a2time.h
  5004. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Added a message "aria2 doesn't verify signature" to log message when
  5006. signature file is saved.
  5007. * src/RequestGroupMan.cc
  5008. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Added the ability to save signature when download is completed if
  5010. signature is available. The filename of signature file is the path to
  5011. download file followed by ".sig". If it already exists, then signature
  5012. will not be saved.
  5013. * src/RequestGroupMan.cc
  5014. * src/Signature.cc
  5015. * test/SignatureTest.cc
  5016. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Updated the descriptions for --bt-seed-unverified.
  5018. * doc/aria2c.1
  5019. * doc/aria2c.1.html
  5020. * doc/aria2c.1.txt
  5021. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5023. that this is not going to verify files using piece hashes.
  5024. * src/HelpItemFactory.cc
  5025. * src/OptionHandlerFactory.cc
  5026. * src/RequestGroup.cc
  5027. * src/option_processing.cc
  5028. * src/prefs.cc
  5029. * src/prefs.h
  5030. * src/usage_text.h
  5031. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5032. Added the ability to retrieve signature from Metalink file.
  5033. A retrieved signature is stored in Signature class and it is held by
  5034. DownloadContext class. Note that aria2 doesn't verify signature.
  5035. * src/DownloadContext.cc
  5036. * src/DownloadContext.h
  5037. * src/Makefile.am
  5038. * src/Makefile.in
  5039. * src/Metalink2RequestGroup.cc
  5040. * src/MetalinkEntry.cc
  5041. * src/MetalinkEntry.h
  5042. * src/MetalinkParserController.cc
  5043. * src/MetalinkParserController.h
  5044. * src/MetalinkParserStateMachine.cc
  5045. * src/MetalinkParserStateMachine.h
  5046. * src/Signature.cc
  5047. * src/Signature.h
  5048. * src/SignatureMetalinkParserState.cc
  5049. * src/SignatureMetalinkParserState.h
  5050. * src/VerificationMetalinkParserState.cc
  5051. * src/VerificationMetalinkParserState.h
  5052. * test/Metalink2RequestGroupTest.cc
  5053. * test/MetalinkParserControllerTest.cc
  5054. * test/MetalinkProcessorTest.cc
  5055. * test/test.xml
  5056. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Close DiskAdaptor after renaming file.
  5058. * src/RequestGroup.cc
  5059. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Corrected indentation
  5061. * src/DefaultBtProgressInfoFile.cc
  5062. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Moved the calls of std::ios::exceptions() inside of try-catch block
  5064. because if an error occurred in constructor of std::fstream, then
  5065. exception is thrown immediately when std::ios::exceptions() is called
  5066. which results unhandled exception and aria2c aborts.
  5067. * src/DefaultBtProgressInfoFile.cc
  5068. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Added the test for the previous change in DefaultBtContext.cc
  5070. * test/DefaultBtContextTest.cc
  5071. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Fixed the bug that causes infinite loop when the number of pieces are
  5073. fewer than allowed fast set size which is 10 by default.
  5074. * src/DefaultBtContext.cc
  5075. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Updated the descriptions for -j, -s. Added --bt-seed.
  5077. * doc/aria2c.1
  5078. * doc/aria2c.1.html
  5079. * doc/aria2c.1.txt
  5080. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5082. aria2 seeds previously downloaded files without validating piece hashs.
  5083. * src/HelpItemFactory.cc
  5084. * src/OptionHandlerFactory.cc
  5085. * src/RequestGroup.cc
  5086. * src/option_processing.cc
  5087. * src/prefs.cc
  5088. * src/prefs.h
  5089. * src/usage_text.h
  5090. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Updated DESCRIPTION of man page.
  5092. * doc/aria2c.1
  5093. * doc/aria2c.1.html
  5094. * doc/aria2c.1.txt
  5095. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5097. Don't define `struct addrinfo' when __sun is defined.
  5098. * src/getaddrinfo.h
  5099. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5101. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5102. second argument is of type `struct _stati64'. Otherwise it is defined as
  5103. `struct stat'.
  5104. * src/AbstractDiskWriter.cc
  5105. * src/File.cc
  5106. * src/File.h
  5107. * src/a2io.h
  5108. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Fixed the compile error in hurd-i386
  5110. See the original bug report:
  5111. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5112. * src/a2io.h
  5113. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Code cleanup.
  5115. * src/PeerAbstractCommand.cc
  5116. * src/PeerAbstractCommand.h
  5117. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Removed TransferEncoding.
  5119. * src/DownloadCommand.cc
  5120. * src/DownloadCommand.h
  5121. * src/HttpResponseCommand.cc
  5122. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5123. Updated po files.
  5124. * po/aria2c.pot
  5125. * po/*.po
  5126. * po/*.gmo
  5127. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5129. * src/A2STR.cc
  5130. * src/A2STR.h
  5131. * src/ChunkedDecoder.cc
  5132. * src/ChunkedDecoder.h
  5133. * src/ChunkedEncoding.cc: Removed
  5134. * src/ChunkedEncoding.h: Removed
  5135. * src/DownloadCommand.cc
  5136. * src/DownloadCommand.h
  5137. * src/HttpDownloadCommand.cc
  5138. * src/HttpResponse.cc
  5139. * src/HttpResponse.h
  5140. * src/HttpResponseCommand.cc
  5141. * src/HttpSkipResponseCommand.cc
  5142. * src/HttpSkipResponseCommand.h
  5143. * src/Makefile.am
  5144. * src/TransferEncoding.h: Removed
  5145. * test/ChunkedDecoderTest.cc
  5146. * test/ChunkedEncodingTest.cc: Removed
  5147. * test/HttpResponseTest.cc
  5148. * test/Makefile.am
  5149. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Use append instead of insert.
  5151. * src/GZipDecoder.cc
  5152. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Updated doc
  5154. * src/Decoder.h
  5155. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Updated usage text for -s option.
  5157. * src/usage_text.h
  5158. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5160. * src/Request.cc
  5161. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Cleaned up configure.ac.
  5163. * configure.ac
  5164. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5166. AC_ARG_ENABLE.
  5167. * configure.ac
  5168. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5170. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5171. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5172. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5173. fly and writes decoded data to a local disk.
  5174. * README
  5175. * README.html
  5176. * configure.ac
  5177. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5178. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5179. * m4/libz.m4
  5180. * src/Decoder.h
  5181. * src/DownloadCommand.cc
  5182. * src/DownloadCommand.h
  5183. * src/Exception.h
  5184. * src/GZipDecoder.cc
  5185. * src/GZipDecoder.h
  5186. * src/HttpHeader.cc
  5187. * src/HttpHeader.h
  5188. * src/HttpRequest.cc
  5189. * src/HttpRequest.h
  5190. * src/HttpResponse.cc
  5191. * src/HttpResponse.h
  5192. * src/HttpResponseCommand.cc
  5193. * src/Makefile.am
  5194. * test/GZipDecoderTest.cc
  5195. * test/HttpRequestTest.cc
  5196. * test/HttpResponseTest.cc
  5197. * test/Makefile.am
  5198. * test/Makefile.in
  5199. * test/gzip_decode_test.gz
  5200. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. Clarified usage of -j option.
  5202. * src/usage_text.h
  5203. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Disabled getting size from the response of RETR.
  5205. If SIZE command failed, then disable resuming and segmented downloading.
  5206. * src/FtpConnection.cc
  5207. * src/FtpConnection.h
  5208. * src/FtpNegotiationCommand.cc
  5209. * src/FtpNegotiationCommand.h
  5210. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Use digits to find first byte of file size, which makes the intention
  5212. of the code clearer.
  5213. * src/FtpConnection.cc
  5214. Don't call validateTotalLength() when size is 0.
  5215. * src/FtpNegotiationCommand.cc
  5216. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5217. Updated po files.
  5218. * po/aria2c.pot
  5219. * po/*.gmo
  5220. * po/*.po
  5221. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Clarified usage text for --split option.
  5223. * src/usage_text.h
  5224. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Bump up version number to 0.15.0dev. "dev" means "development"
  5226. version, which means I started the development of the next release!
  5227. * src/configure.ac
  5228. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. If FTP server returns negative response with REST raw command and
  5230. requested range is not 0, throw exception. If requested range is 0,
  5231. continue download a file from 0 byte.
  5232. * src/FtpNegotiationCommand.cc
  5233. * src/FtpNegotiationCommand.h
  5234. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5235. Supported FTP server which don't recognize SIZE raw command.
  5236. If SIZE raw command is failed, aria2 will try to get file size
  5237. from the response of RETR raw command. If both attempts are failed,
  5238. then resuming and segmented downloading are disabled.
  5239. * src/FtpConnection.cc
  5240. * src/FtpConnection.h
  5241. * src/FtpNegotiationCommand.cc
  5242. * src/FtpNegotiationCommand.h
  5243. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. * Release 0.14.0+1
  5245. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. Bump up version number to 0.14.0+1
  5247. * src/configure.ac
  5248. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Fixed the code that refers static member variable from non-static
  5250. context.
  5251. * src/DefaultPeerStorage.cc
  5252. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. * Release 0.14.0
  5254. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Added build test script
  5256. * build_test.sh
  5257. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Updated ja.po
  5259. * src/ja.po
  5260. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Bump up version number to 0.14.0
  5262. * src/configure.ac
  5263. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Updated ja.po and fr.po. Great thanks for french translators and
  5265. Sebastien WILLEMIJNS.
  5266. * po/fr.po
  5267. * po/ja.po
  5268. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. Added configure option to enable/disable epoll support.
  5270. * configure.ac
  5271. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Updated man page.
  5273. * doc/aria2c.1.txt
  5274. * doc/aria2c.1
  5275. * doc/aria2c.1.html
  5276. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Added missing default value '5' to the usage of --split option.
  5278. * src/HelpItemFactory.cc
  5279. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Filled up pieces based on the number of missing blocks, rather than
  5281. simplay the number of piece * block length.
  5282. * src/BtRequestFactory.h
  5283. * src/DefaultBtInteractive.cc
  5284. * src/DefaultBtInteractive.h
  5285. * src/DefaultBtRequestFactory.cc
  5286. * src/DefaultBtRequestFactory.h
  5287. * src/Piece.cc
  5288. * src/Piece.h
  5289. * test/BitfieldManTest.cc
  5290. * test/DefaultBtRequestFactoryTest.cc
  5291. * test/MockBtRequestFactory.h
  5292. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Made _epEvents a member variable.
  5294. * src/DownloadEngine.cc
  5295. * src/DownloadEngine.h
  5296. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Cancel download if http redirect is bounded more than 20 times.
  5298. * src/AbstractCommand.cc
  5299. * src/HttpSkipResponseCommand.cc
  5300. * src/Request.cc
  5301. * src/Request.h
  5302. * test/RequestTest.cc
  5303. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Fixed unhandled exception(removed keyword `new').
  5305. * src/SocketCore.cc (initEPOLL)
  5306. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Removed visit(const MetaEntry*)
  5308. * src/MetaEntryVisitor.h:
  5309. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5310. and made them virtual.
  5311. * src/BencodeVisitor.h
  5312. * src/BencodeVisitor.cc
  5313. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5314. Updated po files.
  5315. * po/aria2c.pot
  5316. * po/*.po
  5317. * po/*.gmo
  5318. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5320. the number of socket to watch out.
  5321. * src/PeerInteractionCommand.cc
  5322. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. When there is not enough space in disk when writing a chunk of data,
  5324. aria2 now prints the message to the console to warn user and aborts
  5325. its download. Not all downloads are canceled because some downloads
  5326. may use another disk or partition. BUG#1640332
  5327. * src/AbstractDiskWriter.cc
  5328. * src/PeerAbstractCommand.cc
  5329. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5330. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5331. setHaltRequested(true) to cancel download.
  5332. * src/PeerInteractionCommand.h
  5333. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5335. socket from int to sock_t as sockets are unsigned in Windows.
  5336. For AsyncNameResolver, DownloadEngine, I did additional modification
  5337. for the portion of the code changed according to epoll support.
  5338. I defined sock_t in a2netcompat.h to use sock_t without including
  5339. SocketCore.h.
  5340. * src/AsyncNameResolver.cc
  5341. * src/AsyncNameResolver.h
  5342. * src/DownloadEngine.cc
  5343. * src/DownloadEngine.h
  5344. * src/SocketCore.cc
  5345. * src/SocketCore.h
  5346. * src/a2netcompat.h
  5347. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5349. changes in the patch were applied.
  5350. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5351. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5352. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5353. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5354. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5355. a2io.h and common.h were modified.
  5356. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5357. MinGW.
  5358. * src/common.h: Changed off_t to 64 bit in MinGW.
  5359. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5360. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5361. only a2netcompat.h is modified.
  5362. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5363. directives.
  5364. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5366. only gai_strerror.h is modified.
  5367. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5368. winsock errors in MinGW.
  5369. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5371. follow sources are applied.
  5372. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5373. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5374. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5375. I included locale.h from Platform.cc.
  5376. * src/main.cc: Moved common setup/teardown code to Platform class.
  5377. * test/AllTest.cc: Use Platform class.
  5378. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5379. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5381. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5382. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5383. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5385. aria2-0.13.2+1-mingw-2.patch.
  5386. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5387. systems which don't have termious.h. I moved the directive inside of
  5388. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5389. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5390. anyway.
  5391. * src/asctime_r.h
  5392. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5393. I added 2nd argument to the prototype declaration.
  5394. * src/StringFormat.cc: Get rid of vasprintf.
  5395. * src/getaddrinfo.h: Fixed constants.
  5396. * configure.ac: Added the check for asctime_r function.
  5397. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5398. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Added writable test for Socket when the sending message is in progress.
  5400. Usually the sending message is piece message. Without wriable check,
  5401. upload latency is dropped to more than 1sec.
  5402. * src/PeerInteractionCommand.cc
  5403. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Create only requested files and files which shares a piece with
  5405. requested file in multi-torrent downloads. Directory structures are
  5406. also created in the same rule.
  5407. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5408. DiskWriterEntry as in the previous implementation.
  5409. * src/MultiDiskWriter.cc
  5410. * src/MultiFileAllocationIterator.cc
  5411. * src/MultiFileAllocationIterator.h
  5412. * test/MultiFileAllocationIteratorTest.cc
  5413. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Commented out -lprofiler
  5415. * src/Makefile.am
  5416. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Bump up version number to 0.14.0b.
  5418. * src/configure.ac
  5419. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Actively establish connection to peers in seeding, when peer cache
  5421. is not full and max upload speed limit is not reached.
  5422. * src/ActivePeerConnectionCommand.cc
  5423. * src/ActivePeerConnectionCommand.h
  5424. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5426. to make room more fleshy, recently found peers.
  5427. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5428. it.
  5429. * src/DefaultPeerStorage.cc
  5430. * test/DefaultPeerStorageTest.cc
  5431. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Returns cached data only when the previous receiveHandshake() is called
  5433. with peek = true.
  5434. * src/PeerConnection.cc (receiveHandshake)
  5435. * src/PeerConnection.h (receiveHandshake)
  5436. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Changed default value of -s option from 1 to 5.
  5438. Also max value of -s option is changed from 5 to 16.
  5439. * src/HelpItemFactory.cc
  5440. * src/OptionHandlerFactory.cc
  5441. * src/option_processing.cc
  5442. * src/usage_text.h
  5443. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Changed -s options behavior. Now it means the number of connections
  5445. made simultaneously in each http/ftp download.
  5446. If 1 URL is specified, the behavior is the same with old implementation.
  5447. If -s N is given and more than N URLs are specified, first N URLs are
  5448. used and remaining URLs are used for backup. If less than N URLs are
  5449. specified, some of URLs are used more than once so that totally N
  5450. connections are made simultaneously.
  5451. * src/main.cc
  5452. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Included missing iosfwd or ostream header.
  5454. * src/RequestGroupMan.cc
  5455. * src/TaggedItem.cc
  5456. * src/TaggedItem.h
  5457. * src/Util.cc
  5458. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5460. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5461. * src/HttpConnection.cc: Included missing sstream.
  5462. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Added --bt-max-open-files option.
  5464. * src/DefaultPieceStorage.cc
  5465. * src/HelpItemFactory.cc
  5466. * src/MultiDiskAdaptor.cc
  5467. * src/MultiDiskAdaptor.h
  5468. * src/OptionHandlerFactory.cc
  5469. * src/option_processing.cc
  5470. * src/prefs.cc
  5471. * src/prefs.h
  5472. * src/usage_text.h
  5473. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Fixed the bug that aria2 aborts when a path to a directory is given
  5475. in command-line.
  5476. * src/ProtocolDetector.cc
  5477. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Limited the number files opened in each BitTorrent download. The default
  5479. value is 100. The option to change this value will be added.
  5480. * src/MultiDiskAdaptor.cc
  5481. * src/MultiDiskAdaptor.h
  5482. * src/MultiFileAllocationIterator.cc
  5483. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5484. Fixed the bug that HTTP downloads don't start with old libraries.
  5485. * src/HttpHeaderProcessor.cc
  5486. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. Use empty() instead of size() > 0.
  5488. * src/HttpConnection.cc
  5489. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Drop connection if the incoming peer ID is the same with localhost's
  5491. one. The previous implementation drops connection when incoming peer's
  5492. IP address is the same with localhost's one.
  5493. * src/PeerListenCommand.cc
  5494. * src/DefaultBtInteractive.cc
  5495. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Returns cached data without checking whether socket is readable
  5497. if the cache is available.
  5498. * src/PeerConnection.cc (receiveHandshake)
  5499. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Included stdint.h
  5501. * src/common.h
  5502. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Removed duplicate HAVE_GETTIMEOFDAY
  5504. * src/Makefile.am
  5505. * src/Makefile.in
  5506. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Use interval as a minInterval when minInterval is not supplied.
  5508. * src/DefaultBtAnnounce.cc
  5509. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5510. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5511. attempt is failed, then 2nd attempt get kicked out more quickly.
  5512. And it is now static const member of DefaultBtAnnounce.
  5513. * src/DefaultBtAnnounce.h
  5514. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5516. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5517. * src/ActivePeerConnectionCommand.cc
  5518. * src/BtConstants.h
  5519. * src/BtRuntime.h
  5520. * src/DHTGetPeersCommand.cc
  5521. * src/DefaultBtAnnounce.cc
  5522. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5523. BtRuntime::MAX_PEERS.
  5524. * src/DefaultPeerStorage.h
  5525. * src/InitiatorMSEHandshakeCommand.cc
  5526. * src/PeerInitiateConnectionCommand.cc
  5527. * src/PeerInteractionCommand.cc
  5528. * src/PeerReceiveHandshakeCommand.cc
  5529. * src/TrackerWatcherCommand.cc
  5530. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Always Connect to _numNewConnection
  5532. * src/ActivePeerConnectionCommand.cc
  5533. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Made `begin' unsigned int.
  5535. * src/GrowSegment.h
  5536. * src/Piece.cc
  5537. * src/Piece.h
  5538. * src/PiecedSegment.cc
  5539. * src/PiecedSegment.h
  5540. * src/Segment.h
  5541. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Calculate piece hash when data is arrived if the data is arrived in
  5543. order. This removes additional read operation for hash calculation.
  5544. If the data is arrived in out of order, the hash is calucated when the
  5545. piece is completed. This is the same behavior as the old implementation.
  5546. * src/BtPieceMessage.cc
  5547. * src/DefaultBtProgressInfoFile.cc
  5548. * src/DefaultPieceStorage.cc
  5549. * src/DownloadCommand.cc
  5550. * src/DownloadCommand.h
  5551. * src/DownloadEngine.cc
  5552. * src/GrowSegment.cc
  5553. * src/GrowSegment.h
  5554. * src/Piece.cc
  5555. * src/Piece.h
  5556. * src/PiecedSegment.cc
  5557. * src/PiecedSegment.h
  5558. * src/Segment.h
  5559. * test/PieceTest.cc
  5560. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Try to keep the ordering of outgoing piece message.
  5562. * src/DefaultBtMessageDispatcher.cc
  5563. (DefaultBtMessageDispatcher::sendMessages)
  5564. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Fixed busy loop when error/hup epoll events occur.
  5566. * src/AbstractCommand.cc
  5567. * src/PeerAbstractCommand.cc
  5568. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Added --bt-request-peer-speed-limit option, which was a constant
  5570. SLOW_SPEED_THRESHOLD.
  5571. * src/ActivePeerConnectionCommand.cc
  5572. * src/ActivePeerConnectionCommand.h
  5573. * src/BtConstants.h
  5574. * src/HelpItemFactory.cc
  5575. * src/OptionHandlerFactory.cc
  5576. * src/PeerReceiveHandshakeCommand.cc
  5577. * src/option_processing.cc
  5578. * src/prefs.cc
  5579. * src/prefs.h
  5580. * src/usage_text.h
  5581. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Removed repeated call of getTopDirPath(). Instead, call it once and
  5583. cache the result.
  5584. * src/MultiDiskAdaptor.cc
  5585. * src/MultiDiskAdaptor.h
  5586. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5587. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Fixed compile error on debian etch.
  5589. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5590. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5591. it is undefined.
  5592. * src/Util.cc (ULLONG_MAX)
  5593. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Added epoll support. Use epoll if it is available. If not, use select.
  5595. When async dns is enabled in compile time, epoll support is enabled
  5596. only when aria2 is built with c-ares. This condition statement is
  5597. defined in a2io.h.
  5598. Currently aria2 supports both c-ares and ares, but ares is maintained
  5599. for quite a while and debian already has c-ares package, ares support
  5600. will be dropped in the future version.
  5601. * configure.ac
  5602. * src/AbstractCommand.cc
  5603. * src/AsyncNameResolver.cc
  5604. * src/AsyncNameResolver.h
  5605. * src/Command.cc
  5606. * src/Command.h
  5607. * src/DownloadEngine.cc
  5608. * src/DownloadEngine.h
  5609. * src/PeerAbstractCommand.cc
  5610. * src/SocketCore.cc
  5611. * src/SocketCore.h
  5612. * src/a2io.h
  5613. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5614. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5615. directive.
  5616. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Do not do write operation to /dev/null file.
  5618. * src/LogFactory.cc
  5619. * src/SimpleLogger.cc
  5620. Replaced vasprintf with vsnprintf
  5621. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5622. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. * src/BtRequestMessage.cc
  5624. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5625. for segmentation fault caused by previous commit.
  5626. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Reduced the usage of gettimeofday().
  5628. * src/DefaultBtMessageDispatcher.cc
  5629. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5630. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5631. * src/RequestSlot.cc
  5632. * src/RequestSlot.h
  5633. (RequestSlot::isTimeout)
  5634. Made RequestSlot have a reference to Piece object to avoid find
  5635. Piece repeatedly.
  5636. * src/DefaultBtMessageDispatcher.cc
  5637. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5638. * src/RequestSlot.cc
  5639. * src/RequestSlot.h
  5640. (RequestSlot::getPiece)
  5641. * test/DefaultBtMessageDispatcherTest.cc
  5642. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. * src/TimeA2.cc
  5644. * src/TimeA2.h
  5645. (Time::difference): New function.
  5646. (Time::elapsed): Done optimization.
  5647. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5649. directive.
  5650. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. * src/option_processing.cc: Added missing `defined' keyword to #if
  5652. directive.
  5653. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Bump up version number to 0.13.2+1
  5655. * src/configure.ac
  5656. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Refactored broken outstanding piece handling.
  5658. * src/DefaultPieceStorage.cc
  5659. * src/DefaultPieceStorage.h
  5660. * src/Piece.cc
  5661. * src/Piece.h
  5662. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5664. name collision of static variable and predefined macro.
  5665. * src/BtContext.cc
  5666. * src/BtContext.h
  5667. * src/CookieBoxFactory.cc
  5668. * src/CookieBoxFactory.h
  5669. * src/CookieParser.cc
  5670. * src/CookieParser.h
  5671. * src/DefaultBtContext.cc
  5672. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. * src/RequestGroup.cc
  5674. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5675. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5676. * Release 0.13.2
  5677. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5679. * po/fr.po
  5680. * po/ja.po
  5681. * po/aria2c.pot
  5682. * po/*.po
  5683. * po/*.gmo
  5684. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Bump up version number to 0.13.2
  5686. * src/configure.ac
  5687. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Refactord.
  5689. * src/RequestGroupMan.cc
  5690. (removeStoppedGroup)
  5691. (fillRequestGroupFromReserver)
  5692. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Fixed compile error on Ubuntu.
  5694. * src/BtPieceMessage.cc
  5695. * src/MessageDigestHelper.cc
  5696. * src/Util.cc
  5697. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5698. Fixed compile error when configured with --disable-bittorrent
  5699. * test/DownloadHandlerFactoryTest.cc
  5700. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Done make update-po
  5702. * po/aria2c.pot
  5703. * po/*.po
  5704. * po/*.gmo
  5705. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Bump up version number to 0.13.2rc.
  5707. * src/configure.ac
  5708. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Made option name bold. Updated SYNOPSIS to make it more readable.
  5710. * doc/aria2c.1.txt
  5711. * doc/aria2c.1
  5712. * doc/aria2c.1.html
  5713. * src/version_usage.cc
  5714. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Refactored. Use std::string instead of size and char*.
  5716. * Data.cc
  5717. * Data.h
  5718. * test/Data.cc
  5719. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. Added trimSelf(). Rewritten trim() to use trimSelf().
  5721. * Util.cc
  5722. * Util.h
  5723. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5725. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5726. Fixed compile error when configured with --disable-metalink.
  5727. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5728. * test/FeatureConfigTest.cc
  5729. * test/DownloadHandlerFactoryTest.cc
  5730. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Fixed compile error when configured with --without-gnutls
  5732. --without-openssl
  5733. * src/main.cc
  5734. * test/DefaultBtProgressInfoFileTest.cc
  5735. * test/SegmentManTest.cc
  5736. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Fixed compile error with OpenSSL.
  5738. * src/IteratableChunkChecksumValidator.cc
  5739. * src/LibsslDHKeyExchange.h
  5740. * src/MessageDigestHelper.cc
  5741. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Revert the default value of --max-concurrent-downloads to 5.
  5743. Revert the default value of --metalink-servers to 5.
  5744. Man pages was also updated.
  5745. * src/option_processing.cc
  5746. * doc/aria2c.1.txt
  5747. * doc/aria2c.1.html
  5748. * doc/aria2c.1
  5749. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Returns const reference:
  5751. DownloadContext::getPieceHash, DownloadContext::getName,
  5752. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5753. BtContext::getInfoHashAsString,
  5754. * src/BtContext.h
  5755. * src/DefaultBtContext.cc
  5756. * src/DefaultBtContext.h
  5757. * src/DownloadContext.h
  5758. * src/SingleFileDownloadContext.h
  5759. * test/MockBtContext.h
  5760. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. * src/RequestGroup.h (getDir): Removed.
  5762. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Returns const reference. The internal urlencode function was optimized
  5764. a little bit.
  5765. * src/Request.cc
  5766. * src/Request.h
  5767. * src/HttpRequest.cc
  5768. * src/HttpRequest.h
  5769. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Defined option name and possible values as std::string to reduce
  5771. temporary string object creation in runtime.
  5772. * src/HelpItemFactory.cc
  5773. * src/LogFactory.cc
  5774. * src/Option.cc
  5775. * src/OptionHandlerFactory.cc
  5776. * src/option_processing.cc
  5777. * src/prefs.cc
  5778. * src/prefs.h
  5779. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Return const reference.
  5781. * src/DownloadHandlerConstants.cc
  5782. * src/DownloadHandlerConstants.h
  5783. (getMetalinkExtensions)
  5784. (getMetalinkContentTypes)
  5785. (getBtExtensions)
  5786. (getBtContentTypes)
  5787. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. * src/HttpHeader.cc (get): Rewritten.
  5789. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Make HttpHeader::getFirst(...) return const reference.
  5791. * src/HttpHeader.cc
  5792. * src/HttpHeader.h
  5793. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5795. it with V_TRUE.
  5796. * src/DefaultPieceStorage.cc
  5797. * src/DownloadCommand.cc
  5798. * src/FtpNegotiationCommand.cc
  5799. * src/HttpRequest.cc
  5800. * src/InitiateConnectionCommand.cc
  5801. * src/RequestGroup.cc
  5802. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Made Option::get(...) return const reference of std::string.
  5804. * src/Option.cc
  5805. * src/Option.h
  5806. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Replaced std:copy with insert.
  5808. * src/DefaultBtMessageDispatcher.cc
  5809. * src/DefaultPieceStorage.cc
  5810. * src/DownloadEngineFactory.cc
  5811. * src/RequestGroup.cc
  5812. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Included SocketCore.h to fix compiler warning.
  5814. * src/InitiateConnectionCommand.cc
  5815. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Put piece selection strategy algorithm to RarestPieceSelector class,
  5817. Added a switch to choose whether randomized selection so that unit
  5818. tests emit same results in, possibly, win32.
  5819. * src/DefaultPieceStorage.cc
  5820. * src/DefaultPieceStorage.h
  5821. * src/RarestPieceSelector.cc
  5822. * src/RarestPieceSelector.h
  5823. * test/DefaultPieceStorageTest.cc
  5824. * test/RarestPieceSelectorTest.cc
  5825. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Don't pool connection if HTTP proxy is enabled.
  5827. * src/FtpFinishDownloadCommand.cc
  5828. * src/FtpNegotiationCommand.cc
  5829. * src/HttpSkipResponseCommand.cc
  5830. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5832. * src/AbstractCommand.cc
  5833. * src/AbstractCommand.h
  5834. * src/ActivePeerConnectionCommand.cc
  5835. * src/FtpInitiateConnectionCommand.cc
  5836. * src/HttpInitiateConnectionCommand.cc
  5837. * src/InitiateConnectionCommandFactory.cc
  5838. * src/PeerAbstractCommand.cc
  5839. * src/PeerAbstractCommand.h
  5840. * src/PeerInitiateConnectionCommand.cc
  5841. * src/TrackerWatcherCommand.cc
  5842. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Sort RequestSlot in ascending order and manipulate them using
  5844. lower_bound.
  5845. * src/DefaultBtMessageDispatcher.cc
  5846. * src/DefaultBtMessageDispatcher.h
  5847. (getMessageQueue): Added const qualifier.
  5848. (getRequestSlots): Added const qualifier.
  5849. (sendMessages): Use empty() instead of size().
  5850. (doCancelSendingPieceAction): Use HandleEvent object.
  5851. (doAbortOutstandingRequestAction): Rewritten.
  5852. (doChokedAction): Rewritten.
  5853. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5854. (isOutstandingRequest): Rewritten.
  5855. (getOutstandingRequest): Rewritten.
  5856. (removeOutstandingRequest): Rewritten.
  5857. (addOutstandingRequest): Rewritten.
  5858. * src/RequestSlot.cc
  5859. * src/RequestSlot.h
  5860. (operator=): Rewritten.
  5861. (operator!=): New function.
  5862. (operator<): New function.
  5863. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. * src/DefaultBtRequestFactory.cc
  5865. (doChokedAction): Rewritten.
  5866. (removeCompletedPiece): Rewritten.
  5867. (removeTargetPiece): Rewritten.
  5868. (createRequestMessages): Added the debug log.
  5869. (createRequestMessagesOnEndGame: Added the debug log.
  5870. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Added the debug log message.
  5872. * src/BtPieceMessage.cc (doReceivedAction)
  5873. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5875. used lower_bound to process them rather than linear search.
  5876. * src/DHTPeerAnnounceStorage.cc
  5877. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5879. peer has at least one completed piece.
  5880. * src/Peer.cc
  5881. * src/Peer.h
  5882. * src/PeerInteractionCommand.cc
  5883. * src/PeerSessionResource.cc
  5884. * src/PeerSessionResource.h
  5885. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Removed unnecessary sorting
  5887. * src/DefaultPieceStorage (DefaultPieceStorage)
  5888. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Rewritten the portion of the code that mangaes allowed fast indexes.
  5890. * src/PeerSessionResource.cc
  5891. * src/PeerSessionResource.h
  5892. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Removed the invalid string including '\r' from ru.po and
  5894. did make update-po.
  5895. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Added --log-level and --summary-interval to man page.
  5897. * doc/aria2c.1.txt
  5898. * doc/aria2c.1.html
  5899. * doc/aria2c.1
  5900. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5901. Added --log-level option to specify log level. Log messages under
  5902. the specified level are not output. Default value is `debug'.
  5903. * src/HelpItemFactory.cc
  5904. * src/LogFactory.cc
  5905. * src/LogFactory.h
  5906. * src/Logger.h
  5907. * src/OptionHandlerFactory.cc
  5908. * src/SimpleLogger.cc
  5909. * src/SimpleLogger.h
  5910. * src/main.cc
  5911. * src/option_processing.cc
  5912. * src/prefs.h
  5913. * src/usage_text.h
  5914. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. Print download progress summary of all parallel downloads in specified
  5916. interval, default 60 secs. While aria2 could download several files
  5917. in parallel (see -j option), it displayed just first download progress,
  5918. and the other downloads are hidden from the users. This new feature
  5919. prints all downloads currently in-progress to the console so that you
  5920. can check the status of all downloads. The interval can be adjusted
  5921. by --summary-interval option.
  5922. The progress readout is now cut so that all fits in the one line of
  5923. console.
  5924. * src/ConsoleStatCalc.cc
  5925. * src/ConsoleStatCalc.h
  5926. * src/HelpItemFactory.cc
  5927. * src/OptionHandlerFactory.cc
  5928. * src/RequestGroupMan.cc
  5929. * src/RequestGroupMan.h
  5930. * src/main.cc
  5931. * src/option_processing.cc
  5932. * src/prefs.h
  5933. * src/usage_text.h
  5934. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5936. * src/DownloadEngine.cc (DownloadEngine)
  5937. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5939. defined.
  5940. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5941. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Use erase+lower_bound+insert instead of sort.
  5943. * src/DefaultPieceStorage.cc (addPieceStats)
  5944. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5946. * src/A2STR.cc
  5947. * src/A2STR.h
  5948. * src/OptionParser.cc (parse)
  5949. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Defined fake filename `[tracker.announce]' as static const std::string.
  5951. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5952. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5953. Defined default filename `index.html' as static const std::string
  5954. * src/SingleFileDownloadContext.cc
  5955. * src/SingleFileDownloadContext.h
  5956. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Defined "[MEMORY]" as static const std::string.
  5958. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5959. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Defined control file's version number as static const std::string.
  5961. * src/DefaultBtProgressInfoFile.cc
  5962. * src/DefaultBtProgressInfoFile.h
  5963. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. Use Request::METHOD_GET
  5965. * src/RequestGroup.cc (createNextCommandWithAdj)
  5966. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. Defined "OK", "ERR", "INPR" as static const std::string
  5968. * src/RequestGroupMan.cc (showDownloadResults)
  5969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Defined default client used in extended handshake as static const
  5971. std::string
  5972. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5973. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5975. * src/HttpConnection.cc (eraseConfidentialInfo)
  5976. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. Defined default ftp user and password as static const std::string
  5978. * src/AuthConfigFactory.cc
  5979. * src/AuthConfigFactory.h
  5980. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Defined strings used in netrc as static const std::string
  5982. * src/Netrc.cc
  5983. * src/Netrc.h
  5984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Defined HTTP status as static const std::string
  5986. * src/AbstractProxyResponseCommand.cc
  5987. * src/HttpHeader.cc
  5988. * src/HttpHeader.h
  5989. * src/HttpResponse.cc
  5990. * src/HttpResponseCommand.cc
  5991. * src/HttpSkipResponseCommand.cc
  5992. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Defined "\r\n", "A", "I" as static const std::string
  5994. * src/A2STR.cc
  5995. * src/A2STR.h
  5996. * src/FtpConnection.cc
  5997. * src/FtpConnection.h
  5998. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Added COLON_C(".") and used it in Request::parseUrl()
  6000. * src/A2STR.cc
  6001. * src/A2STR.h
  6002. * src/Request.cc (parseUrl)
  6003. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Changed the type of padName from `const std::string&' to `const char*'.
  6005. * src/MSEHandshake.cc (verifyPadLength)
  6006. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Defined "sha1" as static const std::string.
  6008. * src/MetalinkParserController.cc
  6009. * src/MetalinkParserController.h
  6010. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6011. Defined message digest algorithm name as static const std::string
  6012. * src/DHTTokenTracker.cc
  6013. * src/DHTUtil.cc
  6014. * src/DefaultBtContext.cc
  6015. * src/MSEHandshake.cc
  6016. * src/MessageDigestHelper.cc
  6017. * src/Peer.cc
  6018. * src/messageDigest.cc
  6019. * src/messageDigest.h
  6020. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Made string literals used in SAX parser static const std::string.
  6022. * src/FileMetalinkParserState.cc
  6023. * src/FileMetalinkParserState.h
  6024. * src/FilesMetalinkParserState.cc
  6025. * src/FilesMetalinkParserState.h
  6026. * src/InitialMetalinkParserState.cc
  6027. * src/InitialMetalinkParserState.h
  6028. * src/MetalinkMetalinkParserState.cc
  6029. * src/MetalinkMetalinkParserState.h
  6030. * src/PiecesMetalinkParserState.cc
  6031. * src/PiecesMetalinkParserState.h
  6032. * src/ResourcesMetalinkParserState.cc
  6033. * src/ResourcesMetalinkParserState.h
  6034. * src/VerificationMetalinkParserState.cc
  6035. * src/VerificationMetalinkParserState.h
  6036. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6038. * src/A2STR.cc
  6039. * src/A2STR.h
  6040. * src/File.cc
  6041. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Defined static const std::string IP("ip"), PORT("port") and use them
  6043. instead of string literals.
  6044. * src/DefaultPeerListProcessor.cc
  6045. * src/DefaultPeerListProcessor.h
  6046. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Made string literals for torrent file processing static const
  6048. std::string.
  6049. * src/BtContext.cc
  6050. * src/BtContext.h
  6051. * src/DefaultBtContext.cc
  6052. * src/DefaultBtContext.h
  6053. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Made string literal for tracker response static const std::string
  6055. * src/BtAnnounce.cc
  6056. * src/BtAnnounce.h
  6057. * src/DefaultBtAnnounce.cc
  6058. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Use DHTMessage::T instead of "t".
  6060. * src/DHTMessageTracker.cc (messageArrived)
  6061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Made keyName static const. Made trimmed charset static const
  6063. std::string.
  6064. * src/Util.cc (getContentDispositionFilename)
  6065. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Made USER_AGENT const. Made "/" static const std::string.
  6067. * src/A2STR.cc
  6068. * src/A2STR.h
  6069. * src/HttpRequest.cc
  6070. * src/HttpRequest.h
  6071. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6072. Made string listeral to static const std::string:
  6073. "Content-Range", "Content-Length"
  6074. * src/HttpHeader.cc
  6075. * src/HttpHeader.h
  6076. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Made string listeral to static const std::string.
  6078. * src/HttpConnection.cc
  6079. * src/HttpHeader.cc
  6080. * src/HttpHeader.h
  6081. * src/HttpResponse.cc
  6082. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Made string listeral to static const std::string.
  6084. * src/A2STR.cc
  6085. * src/A2STR.h
  6086. * src/SimpleLogger.cc
  6087. * src/SimpleLogger.h
  6088. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Made string literal to static const std::string.
  6090. Rewritten CookieParser::setField.
  6091. * src/A2STR.cc
  6092. * src/A2STR.h
  6093. * src/CookieBoxFactory.cc
  6094. * src/CookieBoxFactory.h
  6095. * src/CookieParser.cc
  6096. * src/CookieParser.h
  6097. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Made string literal to static const std::string
  6099. * src/DHTAbstractMessage.cc
  6100. * src/DHTAnnouncePeerMessage.cc
  6101. * src/DHTAnnouncePeerMessage.h
  6102. * src/DHTAnnouncePeerReplyMessage.cc
  6103. * src/DHTAnnouncePeerReplyMessage.h
  6104. * src/DHTFindNodeMessage.cc
  6105. * src/DHTFindNodeMessage.h
  6106. * src/DHTFindNodeReplyMessage.cc
  6107. * src/DHTFindNodeReplyMessage.h
  6108. * src/DHTGetPeersMessage.cc
  6109. * src/DHTGetPeersMessage.h
  6110. * src/DHTGetPeersReplyMessage.cc
  6111. * src/DHTGetPeersReplyMessage.h
  6112. * src/DHTMessage.cc
  6113. * src/DHTMessage.h
  6114. * src/DHTMessageFactoryImpl.cc
  6115. * src/DHTMessageReceiver.cc
  6116. * src/DHTPingMessage.cc
  6117. * src/DHTPingMessage.h
  6118. * src/DHTPingReplyMessage.cc
  6119. * src/DHTPingReplyMessage.h
  6120. * src/DHTQueryMessage.cc
  6121. * src/DHTQueryMessage.h
  6122. * src/DHTResponseMessage.cc
  6123. * src/DHTResponseMessage.h
  6124. * src/DHTUnknownMessage.cc
  6125. * src/DHTUnknownMessage.h
  6126. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Made string literal to static const std::string
  6128. * src/BtChokeMessage.cc (toString)
  6129. * src/BtHaveAllMessage.cc (toString)
  6130. * src/BtHaveNoneMessage.cc (toString)
  6131. * src/BtInterestedMessage.cc (toString)
  6132. * src/BtNotInterestedMessage.cc (toString)
  6133. * src/BtUnchokeMessage.cc (toString)
  6134. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Replaced "" with static const variable A2STR::NIL.
  6136. Replaced string comparison against "" with std::string::empty().
  6137. Added PROTO_* to Request class and use them as a protocol string
  6138. constant.
  6139. Made "started", "stopped", "completed" static const variable in
  6140. AnnounceList class.
  6141. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Updated translations. Great thanks to translators.
  6143. * po/ca.po
  6144. * po/de.po
  6145. * po/fr.po
  6146. * po/it.po
  6147. * po/ja.po
  6148. * po/ru.po
  6149. * po/zh_CN.po
  6150. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Updated man page; categorized options and fixed typo.
  6152. * doc/aria2c.1.txt
  6153. * doc/aria2c.1.html
  6154. * doc/aria2c.1
  6155. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Removed const ref
  6157. * src/MetalinkEntry.cc (AddProtocolPreference)
  6158. * src/RequestGroup.cc (FindServerHostByHostname)
  6159. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Rewritten Accept-Features handling.
  6161. * src/HttpRequestCommand.cc (createHttpRequest)
  6162. * src/a2functional.h
  6163. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Changed method signature:
  6165. DHTAbstractNodeLookupTask::toEntries
  6166. * src/DHTAbstractNodeLookupTask.cc
  6167. * src/DHTAbstractNodeLookupTask.h
  6168. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Changed method signature:
  6170. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6171. * src/BtContext.h
  6172. * src/DefaultBtContext.cc
  6173. * src/DefaultBtContext.h
  6174. * src/DefaultBtInteractive.cc
  6175. * test/DefaultBtContextTest.cc
  6176. * test/MockBtContext.h
  6177. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Changed method signature:
  6179. MultiFileAllocationIterator::makeDiskWriterEntries
  6180. * src/MultiFileAllocationIterator.cc
  6181. * src/MultiFileAllocationIterator.h
  6182. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Changed method sinature:
  6184. MetalinkEntry::toFileEntry,
  6185. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6186. Metalinker::queryEntry
  6187. * src/Metalink2RequestGroup.cc
  6188. * src/MetalinkEntry.cc
  6189. * src/MetalinkEntry.h
  6190. * src/MetalinkHelper.cc
  6191. * src/MetalinkHelper.h
  6192. * src/Metalinker.cc
  6193. * src/Metalinker.h
  6194. * src/main.cc
  6195. * test/MetalinkHelperTest.cc
  6196. * test/MetalinkerTest.cc
  6197. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Changed method sinature:
  6199. RequestGroup::getURIs
  6200. * src/RequestGroup.cc
  6201. * src/RequestGroup.h
  6202. * test/Metalink2RequestGroupTest.cc
  6203. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. Changed method signature:
  6205. PeerListProcessor::extractPeer
  6206. * src/CompactPeerListProcessor.cc
  6207. * src/CompactPeerListProcessor.h
  6208. * src/DefaultBtAnnounce.cc
  6209. * src/DefaultPeerListProcessor.cc
  6210. * src/DefaultPeerListProcessor.h
  6211. * src/DelegatingPeerListProcessor.cc
  6212. * src/DelegatingPeerListProcessor.h
  6213. * src/PeerListProcessor.h
  6214. * src/UTPexExtensionMessage.cc
  6215. * test/DefaultPeerListProcessorTest.cc
  6216. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Changed method signature:
  6218. BtRequestFactory::createRequestMessages,
  6219. BtRequestFactory::createRequestMessagesOnEndGame
  6220. * src/BtRequestFactory.h
  6221. * src/DefaultBtInteractive.cc
  6222. * src/DefaultBtRequestFactory.cc
  6223. * src/DefaultBtRequestFactory.h
  6224. * test/DefaultBtRequestFactoryTest.cc
  6225. * test/MockBtRequestFactory.h
  6226. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Changed method signature:
  6228. PieceStorage::getInFlightPieces
  6229. * src/DefaultBtProgressInfoFile.cc
  6230. * src/DefaultPieceStorage.cc
  6231. * src/DefaultPieceStorage.h
  6232. * src/PieceStorage.h
  6233. * src/UnknownLengthPieceStorage.cc
  6234. * src/UnknownLengthPieceStorage.h
  6235. * test/DefaultBtProgressInfoFileTest.cc
  6236. * test/MockPieceStorage.h
  6237. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Changed method signature:
  6239. PostDownloadHandler::getNextRequestGroups
  6240. Metalink2RequestGroup::generate
  6241. RequestGroup::postDownloadProcessing
  6242. * src/BtPostDownloadHandler.cc
  6243. * src/BtPostDownloadHandler.h
  6244. * src/Metalink2RequestGroup.cc
  6245. * src/Metalink2RequestGroup.h
  6246. * src/MetalinkPostDownloadHandler.cc
  6247. * src/MetalinkPostDownloadHandler.h
  6248. * src/PostDownloadHandler.h
  6249. * src/RequestGroup.cc
  6250. * src/RequestGroup.h
  6251. * src/RequestGroupMan.cc
  6252. * src/main.cc
  6253. * test/BtPostDownloadHandlerTest.cc
  6254. * test/Metalink2RequestGroupTest.cc
  6255. * test/MetalinkPostDownloadHandlerTest.cc
  6256. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Rewritten AccRequestGroup
  6258. * src/main.cc
  6259. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Rewritten.
  6261. * src/TaggedItem.cc (toTagString)
  6262. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Rewritten Accept-Features handling.
  6264. * src/HttpRequestCommand.cc (createHttpRequest)
  6265. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Rewritten accept types handling.
  6267. * HttpRequest.cc (createRequest)
  6268. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Rewritten
  6270. * src/FeatureConfig.cc (featureSummary)
  6271. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Changed method signature:
  6273. PeerStorage::getActivePeers
  6274. * src/DHTPeerAnnounceEntry.cc
  6275. * src/DefaultPeerStorage.cc
  6276. * src/DefaultPeerStorage.h
  6277. * src/PeerStorage.h
  6278. * test/DefaultPeerStorageTest.cc
  6279. * test/MockPeerStorage.h
  6280. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Changed method signature:
  6282. DHTPeerAnnounceStorage::getPeers,
  6283. DHTPeerAnnounceEntry::getPeers
  6284. * src/DHTGetPeersMessage.cc
  6285. * src/DHTPeerAnnounceEntry.cc
  6286. * src/DHTPeerAnnounceEntry.h
  6287. * src/DHTPeerAnnounceStorage.cc
  6288. * src/DHTPeerAnnounceStorage.h
  6289. * test/DHTAnnouncePeerMessageTest.cc
  6290. * test/DHTPeerAnnounceEntryTest.cc
  6291. * test/DHTPeerAnnounceStorageTest.cc
  6292. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Changed method signature:
  6294. NameResolver::resolve
  6295. * src/DHTEntryPointNameResolveCommand.cc
  6296. * src/InitiateConnectionCommand.cc
  6297. * src/NameResolver.cc
  6298. * src/NameResolver.h
  6299. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Changed method signature:
  6301. PieceStorage::getAdvertisedPieceIndexes
  6302. * src/DefaultBtInteractive.cc
  6303. * src/DefaultPieceStorage.cc
  6304. * src/DefaultPieceStorage.h
  6305. * src/PieceStorage.h
  6306. * src/UnknownLengthPieceStorage.h
  6307. * test/MockPieceStorage.h
  6308. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Changed method signature:
  6310. SegmentMan::getInFlightSegment
  6311. * src/AbstractCommand.cc
  6312. * src/SegmentMan.cc
  6313. * src/SegmentMan.h
  6314. * test/SegmentManTest.cc
  6315. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Changed method signature:
  6317. DHTAbstractNodeLookupTask::getNodesFromMessage
  6318. * src/DHTAbstractNodeLookupTask.cc
  6319. * src/DHTAbstractNodeLookupTask.h
  6320. * src/DHTNodeLookupTask.cc
  6321. * src/DHTNodeLookupTask.h
  6322. * src/DHTPeerLookupTask.cc
  6323. * src/DHTPeerLookupTask.h
  6324. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6326. * src/AbstractCommand.cc
  6327. * src/BtCheckIntegrityEntry.cc
  6328. * src/BtCheckIntegrityEntry.h
  6329. * src/BtFileAllocationEntry.cc
  6330. * src/BtFileAllocationEntry.h
  6331. * src/BtSetup.cc
  6332. * src/BtSetup.h
  6333. * src/CheckIntegrityCommand.cc
  6334. * src/CheckIntegrityEntry.h
  6335. * src/ChecksumCheckIntegrityEntry.cc
  6336. * src/ChecksumCheckIntegrityEntry.h
  6337. * src/DHTSetup.cc
  6338. * src/DHTSetup.h
  6339. * src/DownloadEngine.cc
  6340. * src/FileAllocationCommand.cc
  6341. * src/FileAllocationEntry.h
  6342. * src/RequestGroup.cc
  6343. * src/RequestGroup.h
  6344. * src/RequestGroupMan.cc
  6345. * src/RequestGroupMan.h
  6346. * src/StreamCheckIntegrityEntry.cc
  6347. * src/StreamCheckIntegrityEntry.h
  6348. * src/StreamFileAllocationEntry.cc
  6349. * src/StreamFileAllocationEntry.h
  6350. * src/TrackerWatcherCommand.cc
  6351. * src/a2functional.h
  6352. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Changed method signature:
  6354. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6355. DHTBucket::getGoodNodes,
  6356. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6357. * src/BNode.cc
  6358. * src/BNode.h
  6359. * src/DHTAbstractNodeLookupTask.cc
  6360. * src/DHTAutoSaveCommand.cc
  6361. * src/DHTBucket.cc
  6362. * src/DHTBucket.h
  6363. * src/DHTBucketRefreshTask.cc
  6364. * src/DHTFindNodeMessage.cc
  6365. * src/DHTGetPeersMessage.cc
  6366. * src/DHTRoutingTable.cc
  6367. * src/DHTRoutingTable.h
  6368. * test/BNodeTest.cc
  6369. * test/DHTBucketTest.cc
  6370. * test/DHTRoutingTableTest.cc
  6371. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. In piece selection functions, Pass std::deque<...> by reference rather
  6373. than returning it.
  6374. * src/BitfieldMan.cc
  6375. * src/BitfieldMan.h
  6376. * src/DefaultBtRequestFactory.cc
  6377. * src/DefaultPieceStorage.cc
  6378. * src/Piece.cc
  6379. * src/Piece.h
  6380. * test/BitfieldManTest.cc
  6381. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Implemented rarest piece first piece selection strategy.
  6383. * src/AbstractBtMessage.cc
  6384. * src/AbstractBtMessage.h
  6385. * src/BitfieldMan.cc
  6386. * src/BitfieldMan.h
  6387. * src/BtBitfieldMessage.cc
  6388. * src/BtHaveAllMessage.cc
  6389. * src/BtHaveMessage.cc
  6390. * src/DefaultPieceStorage.cc
  6391. * src/DefaultPieceStorage.h
  6392. * src/PeerInteractionCommand.cc
  6393. * src/PieceStorage.h
  6394. * src/UnknownLengthPieceStorage.h
  6395. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Rewritten readData and writeData.
  6397. * src/MultiDiskAdaptor.cc
  6398. * src/MultiDiskAdaptor.h
  6399. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Move \n out of the message "Usage: ...".
  6401. * src/version_usage.cc
  6402. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Bump up version number to 0.13.2b.
  6404. * configure.ac
  6405. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6406. Added const qualifier to argument Exception& e.
  6407. * src/Logger.h
  6408. * src/SimpleLogger.cc
  6409. * src/SimpleLogger.h
  6410. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Pool connection when CWD, SIZE command fails.
  6412. * src/FtpNegotiationCommand.cc
  6413. * src/FtpNegotiationCommand.h
  6414. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6416. * src/HttpResponseCommand.cc
  6417. * src/HttpSkipResponseCommand.cc
  6418. * src/HttpSkipResponseCommand.h
  6419. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Pool connection when a server returns 4xx, 5xx responses.
  6421. * src/HttpNullDownloadCommand.cc
  6422. * src/HttpNullDownloadCommand.h
  6423. * src/HttpResponse.cc
  6424. * src/HttpResponse.h
  6425. * src/HttpResponseCommand.cc
  6426. * src/HttpResponseCommand.h
  6427. * test/HttpResponseTest.cc
  6428. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Print usage when no URL is specifed or bad command-line option is
  6430. specified.
  6431. * src/HelpItemFactory.cc
  6432. * src/help_tags.h
  6433. * src/option_processing.cc
  6434. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Removed duplicate log message.
  6436. * src/AbstractCommand.cc (asyncResolveHostname)
  6437. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6439. Changed -j option's default value from 5 to 1.
  6440. Added new examples using protocol auto detection feature.
  6441. Removed -T, -M usage where it can be omitted.
  6442. * doc/aria2c.1.txt
  6443. * doc/aria2c.1.html
  6444. * doc/aria2c.1.txt
  6445. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Updated command-line usage text, so that it tells users that they
  6447. can specify any number of torrent files and metalink files in
  6448. command-line.
  6449. * src/version_usage.cc
  6450. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Changed the default value of -j option to 1.
  6452. * src/HelpItemFactory.cc
  6453. * src/option_processing.cc
  6454. * src/usage_text.h
  6455. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Added the ability to reuse connection in FTP and it is enabled by
  6457. default. It can be disabled by --ftp-reuse-connection=false option.
  6458. * src/Command.cc
  6459. * src/DownloadCommand.cc
  6460. * src/FtpDownloadCommand.cc
  6461. * src/FtpDownloadCommand.h
  6462. * src/FtpFinishDownloadCommand.cc
  6463. * src/FtpFinishDownloadCommand.h
  6464. * src/FtpInitiateConnectionCommand.cc
  6465. * src/FtpNegotiationCommand.cc
  6466. * src/FtpNegotiationCommand.h
  6467. * src/HelpItemFactory.cc
  6468. * src/Makefile.am
  6469. * src/Makefile.in
  6470. * src/OptionHandlerFactory.cc
  6471. * src/option_processing.cc
  6472. * src/prefs.h
  6473. * src/usage_text.h
  6474. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Call Command::transitStatus() before calling Command::execute(),
  6476. so that the status change made in execute() is not cleared.
  6477. * src/DownloadEngine.cc
  6478. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Removed forward declaration of SocketCore class.
  6480. * src/HttpDownloadCommand.h
  6481. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6483. in InitiateConnectionCommandFactory. They should be set only when
  6484. the protocol is HTTP or HTTPS.
  6485. * src/InitiateConnectionCommandFactory.cc
  6486. * src/RequestGroup.cc
  6487. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Fixed infinite loop in checksum checking.
  6489. * src/IteratableChecksumValidator.cc
  6490. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Set _supportsPersistentConnection to true by default.
  6492. * src/Request.cc
  6493. * src/RequestGroup.cc
  6494. * test/HttpRequestTest.cc
  6495. * test/RequestTest.cc
  6496. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. Added timeout to socket pool. The default timeout is 15 seconds,
  6498. which is the same value Apache uses.
  6499. * src/DownloadEngine.cc
  6500. * src/DownloadEngine.h
  6501. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Fixed misuse of multimap::find()
  6503. * src/HttpHeader.cc
  6504. * test/HttpHeaderTest.cc
  6505. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6507. option.
  6508. The asynchronous DNS is not capable of IPv6 yet.
  6509. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6510. least for HTTP download.
  6511. * src/AbstractCommand.cc
  6512. * src/AbstractCommand.h
  6513. * src/AsyncNameResolver.cc
  6514. * src/AsyncNameResolver.h
  6515. * src/DHTEntryPointNameResolveCommand.cc
  6516. * src/DHTEntryPointNameResolveCommand.h
  6517. * src/DownloadEngine.cc
  6518. * src/DownloadEngine.h
  6519. * src/FtpInitiateConnectionCommand.cc
  6520. * src/FtpInitiateConnectionCommand.h
  6521. * src/HelpItemFactory.cc
  6522. * src/HttpInitiateConnectionCommand.cc
  6523. * src/HttpInitiateConnectionCommand.h
  6524. * src/InitiateConnectionCommand.cc
  6525. * src/InitiateConnectionCommand.h
  6526. * src/Makefile.am
  6527. * src/Makefile.in
  6528. * src/NameResolver.cc
  6529. * src/NameResolver.h
  6530. * src/OptionHandlerFactory.cc
  6531. * src/SocketCore.cc
  6532. * src/SocketCore.h
  6533. * src/Util.cc
  6534. * src/Util.h
  6535. * src/option_processing.cc
  6536. * src/prefs.h
  6537. * src/usage_text.h
  6538. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6539. Updated man page: --quiet, --header were added.
  6540. --metalink-servers and --enable-http-keep-alive option were updated.
  6541. * doc/aria2c.1
  6542. * doc/aria2c.1.html
  6543. * doc/aria2c.1.txt
  6544. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Enable HTTP keep-alive by default.
  6546. * src/HelpItemFactory.cc
  6547. * src/option_processing.cc
  6548. * src/usage_text.h
  6549. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Disable http keep-alive if the remote server is not HTTP/1.1.
  6551. * src/HttpConnection.cc
  6552. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Receive content body of 302 response so that the connection can be
  6554. reused later when http keep-alive is enabled.
  6555. * src/HttpNullDownloadCommand.cc
  6556. * src/HttpNullDownloadCommand.h
  6557. * src/HttpResponseCommand.cc
  6558. * src/HttpResponseCommand.h
  6559. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. const SharedHandle<Request> -> const SharedHandle<Request>&
  6561. * src/FtpDowndloadCommand.cc
  6562. * src/FtpDowndloadCommand.h
  6563. * src/HttpDownloadCommand.cc
  6564. * src/HttpDownloadCommand.h
  6565. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Fixed the bug that the control file(.aria2 file) is not renamed
  6567. according to tryAutoFileRenaming().
  6568. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6569. its control file exist, use them and continue download.
  6570. The old implementation didn't take into account of control file's
  6571. existence, so basically you couldn't continue download of renamed file.
  6572. * src/BtProgressInfoFile.h
  6573. * src/DefaultBtProgressInfoFile.cc
  6574. * src/DefaultBtProgressInfoFile.h
  6575. * src/NullProgressInfoFile.h
  6576. * src/RequestGroup.cc
  6577. * test/DefaultBtProgressInfoFileTest.cc
  6578. * test/MockBtProgressInfoFile.h
  6579. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. Change the default value of --metalink-servers option from `5' to `1'.
  6581. * src/HelpItemFactory.cc
  6582. * src/option_processing.cc
  6583. * src/usage_text.h
  6584. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Reimplemented transparent metalink using Accept request header.
  6586. * src/HttpRequest.cc
  6587. * src/HttpRequest.h
  6588. * src/HttpRequestCommand.cc
  6589. * src/Metalink2RequestGroup.cc
  6590. * src/RequestGroup.cc
  6591. * src/RequestGroup.h
  6592. * test/HttpRequestTest.cc
  6593. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Bump up version number to 0.13.2a
  6595. * configure.ac
  6596. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Updated configure.ac using the result of autoscan.
  6598. * configure.ac
  6599. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Fixed compilation error without gcrypt/openssl.
  6601. * src/DownloadCommand.cc
  6602. * src/DownloadCommand.h
  6603. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Reorganized version information so that it can be displayed in a
  6605. standard terminal screen without scrolling.
  6606. Removed http, ftp from Configuration section, because they are always
  6607. enabled.
  6608. * src/FeatureConfig.cc
  6609. * src/FeatureConfig.h
  6610. * src/main.cc
  6611. * src/messageDigest.cc
  6612. * src/messageDigest.h
  6613. * src/version_usage.cc
  6614. * test/FeatureConfigTest.cc
  6615. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Masked user ID in log.
  6617. * src/FtpConnection.cc (sendUser)
  6618. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Removed query part from filename in HTTP download. The query part means
  6620. the substring after "?" in URL. Firefox seems do the same thing.
  6621. A query part is sometimes very long and not suitable to filename,
  6622. so I think it is better to remove it from filename.
  6623. * src/HttpRequest.cc
  6624. * src/HttpRequest.h
  6625. * src/Request.cc
  6626. * src/Request.h
  6627. * test/HttpRequestTest.cc
  6628. * test/RequestTest.cc
  6629. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Rewritten Exception class. Throw exception object, not its pointer and
  6631. catch by reference, so that remove problematic delete operator for
  6632. catched exception.
  6633. * src/Exception.cc
  6634. * src/Exception.h
  6635. * test/ExceptionTest.cc
  6636. * src/*: All files throwing/catching exception.
  6637. * test/*: All files throwing/catching exception.
  6638. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Now auto protocol detection is enabled without -Z option.
  6640. But there is a important difference between with/without -Z optoin.
  6641. For example, if you type:
  6642. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6643. then, aria2 interprets there are 3 request groups:
  6644. (1) http://host/file, http://mirror/file <-- multi-source download
  6645. (2) file1.torrent
  6646. (3) file2.metalink
  6647. On the other hand, if you invoke above command with -Z option, it is
  6648. interpreted as 4 request groups:
  6649. (1) http://host/file
  6650. (2) file1.torrent
  6651. (3) file2.metalink
  6652. (4) http://mirror/file
  6653. I think usually user don't mix multi-source URLs and torrent files, so
  6654. there is no big problem here.
  6655. * src/main.cc
  6656. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Fixed the bug that causes segmentaion fault when reading XML containing
  6658. unescapsed character like '&'.
  6659. Also a modification was made which avoids adding unnecessary
  6660. characters stack and appending unused string.
  6661. * src/ExpatMetalinkProcessor.cc
  6662. * src/FileMetalinkParserState.h
  6663. * src/FilesMetalinkParserState.h
  6664. * src/FinMetalinkParserState.h
  6665. * src/HashMetalinkParserState.h
  6666. * src/InitialMetalinkParserState.h
  6667. * src/LanguageMetalinkParserState.h
  6668. * src/MetalinkMetalinkParserState.h
  6669. * src/MetalinkParserState.h
  6670. * src/MetalinkParserStateMachine.cc
  6671. * src/MetalinkParserStateMachine.h
  6672. * src/OSMetalinkParserState.h
  6673. * src/PieceHashMetalinkParserState.h
  6674. * src/PiecesMetalinkParserState.h
  6675. * src/ResourcesMetalinkParserState.h
  6676. * src/SizeMetalinkParserState.h
  6677. * src/SkipTagMetalinkParserState.h
  6678. * src/URLMetalinkParserState.h
  6679. * src/VerificationMetalinkParserState.h
  6680. * src/VersionMetalinkParserState.h
  6681. * src/XML2SAXMetalinkProcessor.cc
  6682. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Added StringFormat class, which internally calls vasprintf.
  6684. operator<< is defined for this class, so it can be used with iostream
  6685. classes nicely. SimpleLogger and following functions are rewritten
  6686. using StringFormat class.
  6687. Besides, now Logger class's methods are non-const, many classes
  6688. that has a const Logger* as a member variable are modified to remove
  6689. const qualifier from the variable declaration.
  6690. * src/HelpItemFactory.cc
  6691. * src/Request.cc
  6692. * src/SimpleLogger.cc
  6693. * src/StringFormat.cc
  6694. * src/StringFormat.h
  6695. * src/Util.cc
  6696. * src/option_processing.cc
  6697. * src/version_usage.cc
  6698. * test/StringFormatTest.cc
  6699. * src/*.h: The classes that has const Logger* as a member variable.
  6700. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6702. failed. Also fixed memory link when exception is thrown there.
  6703. * src/main.cc (AccRequestGroup)
  6704. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Added build-in "Accept-Features" support. For now only "metalink" is
  6706. used in this header field.
  6707. This "metalink" value is removed from the list when connecting URLs
  6708. fed by metalink file to avoid loop in "transparent" metlaink.
  6709. * src/HttpRequest.cc
  6710. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6711. header is also held in this variable. Also renamed setUserHeaders as
  6712. addHeader and it was rewritten to add header not just to clear the old
  6713. value.
  6714. * src/HttpRequestCommand.cc
  6715. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6716. from "Accept-Features" list.
  6717. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6718. default.
  6719. * src/RequestGroup.h
  6720. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6721. * src/a2functional.h: Included <string> because Concat class depends on
  6722. it.
  6723. * test/HttpRequestTest.cc
  6724. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Added comment
  6726. * src/RequestGroup.cc (createNextCommand)
  6727. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Capitalized METHOD_GET and METHOD_HEAD
  6729. * src/Request.cc
  6730. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Added getDownloadResults() method
  6732. * src/RequestGroupMan.cc
  6733. * src/RequestGroupMan.h
  6734. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Fixed the bug that aria2 exits when commands is empty() but
  6736. _routineCommands are not.
  6737. * src/DownloadEngine.cc
  6738. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Use the default value pulled from Option object in HelpItemFactory.
  6740. except options whose defualt value is embedded in a usage text.
  6741. * src/HelpItemFactory.cc
  6742. * src/HelpItemFactory.h
  6743. * src/option_processing.cc
  6744. * src/version_usage.cc
  6745. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Added --quiet option to make aria2 quiet (no console output).
  6747. --quiet option is tagged with ADVANCED.
  6748. * src/HelpItemFactory.cc
  6749. * src/LogFactory.cc
  6750. * src/LogFactory.h
  6751. * src/MultiUrlRequestInfo.cc
  6752. * src/MultiUrlRequestInfo.h
  6753. * src/NullStatCalc.h: New class. This class prints nothing.
  6754. * src/OptionHandlerFactory.cc
  6755. * src/main.cc
  6756. * src/option_processing.cc
  6757. * src/prefs.h
  6758. * src/usage_text.h
  6759. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6761. * src/HelpItemFactory.cc (createHelpItems):
  6762. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Fixed compilation error in ExpatMetalinkProcessor.cc
  6764. * src/ExpatMetalinkProcessor.cc
  6765. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Reuse socket if the origin server supports HTTP keep-alive and
  6767. --enable-http-keep-alive or --enable-http-pipelining is given.
  6768. The current implementation doesn't reuse the connections established
  6769. against proxy server.
  6770. * src/AbstractCommand.cc
  6771. * src/DownloadEngine.cc
  6772. * src/DownloadEngine.h
  6773. * src/HttpDownloadCommand.cc
  6774. * src/HttpInitiateConnectionCommand.cc
  6775. * src/HttpResponseCommand.cc
  6776. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6777. Rewritten HTTP keep-alive and pipelining routine.
  6778. * src/AbstractCommand.cc
  6779. * src/HttpConnection.cc
  6780. * src/HttpDownloadCommand.cc
  6781. * src/HttpRequest.cc
  6782. * src/HttpRequestCommand.cc
  6783. * src/HttpResponseCommand.cc
  6784. * src/Request.cc
  6785. * src/Request.h
  6786. * src/RequestGroup.cc
  6787. * test/HttpRequestTest.cc
  6788. * test/HttpResponseTest.cc
  6789. * test/RequestTest.cc
  6790. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Added missing setUserHeaders call
  6792. * src/HttpRequestCommand.cc
  6793. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6795. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6796. waste of time because it is more likey false.
  6797. * src/FileAllocationDispatcherCommand.cc (execute)
  6798. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Now HTTP status and version are a member variable of HttpHeader.
  6800. HTTP status is processed as a string, not integer.
  6801. * src/AbstractProxyResponseCommand.cc
  6802. * src/HttpConnection.cc
  6803. * src/HttpHeader.cc
  6804. * src/HttpHeader.h
  6805. * src/HttpHeaderProcessor.cc
  6806. * src/HttpHeaderProcessor.h
  6807. * src/HttpResponse.cc
  6808. * src/HttpResponse.h
  6809. * test/HttpHeaderProcessorTest.cc
  6810. * test/HttpResponseTest.cc
  6811. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Added --header option. You can specify any number of additional HTTP headers
  6813. like:
  6814. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6815. Unlike other commad-line option, you can use --header option multiple times.
  6816. * src/HelpItemFactory.cc
  6817. * src/HttpRequest.{cc, h}
  6818. * src/HttpRequestCommand.cc
  6819. * src/OptionHandlerFactory.cc
  6820. * src/OptionHandlerImpl.h
  6821. * src/option_processing.cc
  6822. * src/prefs.h
  6823. * src/usage_text.h
  6824. * test/HttpRequestTest.cc (testUserHeaders)
  6825. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Eliminates the time lag between sequential downloads and commands in
  6827. the same RequestGroup.
  6828. In old implementation, aria2 occasionally waits 1 seconds before
  6829. executing next command or RequestGroup.
  6830. This is really a waste of time, and new implementation eliminates
  6831. this unnecessary time lag.
  6832. * src/AbstractCommand.cc
  6833. * src/AutoSaveCommand.cc
  6834. * src/CheckIntegrityCommand.cc
  6835. * src/Command.{cc, h}
  6836. * src/DownloadEngine.{cc, h}
  6837. * src/DownloadEngineFactory.cc
  6838. * src/FileAllocationCommand.cc
  6839. * src/FileAllocationDispatcherCommand.cc
  6840. * src/FillRequestGroupCommand.cc
  6841. * src/FtpInitiateConnectionCommand.cc
  6842. * src/HaveEraseCommand.cc
  6843. * src/HttpInitiateConnectionCommand.cc
  6844. * src/HttpResponseCommand.cc
  6845. * src/RealtimeCommand.cc
  6846. * src/RequestGroup.cc
  6847. * src/RequestGroupMan.cc
  6848. * src/StreamFileAllocationEntry.cc
  6849. * src/TimeBasedCommand.{cc, h}
  6850. * src/TimedHaltCommand.cc
  6851. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6853. keyword explicit and SharedHandle's default constructor initializes
  6854. its internal obj to null, old implementation initializes it using
  6855. obj's default constructor.
  6856. To assign null, write SharedHandle<T> x(...); x.reset();
  6857. TODO: test/SharedHandleTest.cc needs more tests.
  6858. * src/SharedHandle.h
  6859. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Fixed type in man page.
  6861. * doc/aria2c.1.txt
  6862. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6864. * src/SimpleLogger.{cc, h}
  6865. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Implemented auto protocol detection.
  6867. Now you can do:
  6868. aria2c -Z http://host/file file1.torrent file2.metalink
  6869. (Note: -Z option is required for auto protcol detection.)
  6870. Then aria2c downloads 3 files simultaneously:
  6871. 1. http://host/file
  6872. 2. file1.torrent <-- read local torrent file
  6873. 3. file2.metalink <-- read local Metalink file.
  6874. Same thing goes with -i option. Assume your uris.txt contans:
  6875. http://host/file
  6876. file1.torrent
  6877. file2.metalink
  6878. Then you can do: aria2c -i uris.txt
  6879. (Note: -Z option is not needed if -i option is given.)
  6880. * src/main.cc
  6881. * src/ProtocolDetector.{cc, h}
  6882. * test/ProtocolDetectorTest.cc
  6883. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6885. installed
  6886. * src/ARC4Encryptor.h
  6887. * src/ARC4Decryptor.h
  6888. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Renamed argument from 'errno' to 'err', since errno is confused with
  6890. errno defined in errno.h.
  6891. * src/LibgcryptARC4Decryptor.h
  6892. * src/LibgcryptARC4Context.h
  6893. * src/LibgcryptDHKeyExchange.h
  6894. * src/LibgcryptARC4Encryptor.h
  6895. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Rewritten choking algorithm.
  6897. * src/PeerChokeCommand.{cc, h}
  6898. * src/BtInterestedMessage.cc
  6899. * src/PeerSessionResource.{cc, h}
  6900. * src/DefaultPeerStorage.{cc, h}
  6901. * src/BtNotInterestedMessage.cc
  6902. * src/DefaultBtMessageDispatcher.{cc, h}
  6903. * src/BtMessageDispatcher.h
  6904. * src/Peer.{cc, h}
  6905. * src/BtLeecherStateChoke.{cc, h}
  6906. * src/BtSetup.cc
  6907. * src/BtSeederStateChoke.{cc, h}
  6908. * src/PeerStorage.h
  6909. * test/MockPeerStorage.h
  6910. * test/MockBtMessageDispatcher.h
  6911. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Fixed compilation error on x84-64 platform.
  6913. * src/AuthConfig.cc: Included ostream.
  6914. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Rewritten getBasename() and getDirname(), without standard library
  6916. basename(), dirname().
  6917. * src/File.cc
  6918. * test/FileTest.cc
  6919. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Added Simplified Chinese translation. Also updated the following
  6921. translations: Polish, Dutch, German. Great thanks to all translators.
  6922. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Suppress content-range error when 'Content-Range' response header
  6924. doesn't contains bytes-unit specifier 'bytes'
  6925. * src/HttpHeader.cc (getRange)
  6926. * test/HttpHeaderTest.cc
  6927. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Fixed compilation error with g++-4.3
  6929. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Added missing include files for MinGW
  6931. * test/HttpHeaderProcessorTest.cc
  6932. * test/DHTRoutingTableSerializerTest.cc
  6933. * test/DHTRoutingTableDeserializerTest.cc
  6934. * test/UriListParserTest.cc
  6935. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Now download line is printed nicely with no garbage at the end of
  6937. line. I use ioctl to get the columns of terminal.
  6938. If stdout is redirected to another device, instead of carriage return,
  6939. end of line '\n' character is used. This is feature request#1909659
  6940. * src/ConsoleStatCalc.cc (calculateStat)
  6941. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. Included a2time.h
  6943. * src/DHTMessageDispatcher.h
  6944. * src/DHTMessageEntry.h
  6945. * src/DHTReplaceNodeTask.h
  6946. * src/DHTMessageTracker.h
  6947. * src/Util.h
  6948. * src/CookieBox.h
  6949. * src/SocketCore.h
  6950. * src/DefaultBtMessageDispatcher.h
  6951. * src/SocketCore.cc
  6952. * src/Util.cc
  6953. * src/DHTPingTask.h
  6954. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Fixed high memory footprint when DHT is enabled.
  6956. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6957. queued than it is processed and the queue is getting longer. As a
  6958. consequence, momory usage is increased.
  6959. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6960. replacement cache in DHTBucket which is described in Kademlia paper.
  6961. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6962. DHTReplaceNodeTask.
  6963. * src/DHTBucket.{h, cc}
  6964. (cacheNode): New function.
  6965. (getCachedNodes): New function.
  6966. (dropNode): Push back cached node to _nodes.
  6967. * test/DHTBucketTest.cc
  6968. (testCacheNode): New test
  6969. (testDropNode): New test
  6970. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6972. the unused 4KB memory when ssl is not used.
  6973. * src/SocketCore.cc
  6974. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Added summary log for peer announce storage.
  6976. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6977. Removed cast
  6978. * src/DefaultPeerStorage.cc (addPeer)
  6979. Log exception message
  6980. * src/DHTMessageTracker.cc (handleTimeout)
  6981. Fixed casting
  6982. * test/HttpRequestTest.cc
  6983. * test/MetalinkProcessorTest.cc
  6984. * test/PieceTest.cc
  6985. * test/MetalinkEntryTest.cc
  6986. * test/SequenceTest.cc
  6987. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. * src/ParameterizedStringParser.cc (createLoop):
  6989. Removed unused variable sstep.
  6990. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6991. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. * src/Util.{h, cc}
  6993. (parseUInt): New function.
  6994. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6995. The actual range is uint32_t.
  6996. * test/UtilTest.cc
  6997. * src/ParameterizedStringParser.cc:
  6998. Use Util::parseUInt() for loop variables.
  6999. * test/ParameterizedStringParserTest.cc
  7000. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7001. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Rewritten the functions for binding port.
  7003. * src/DHTConnectionImpl.{h, cc}
  7004. * src/PeerListenCommand.{h, cc}
  7005. * src/DHTSetup.cc
  7006. * src/BtSetup.cc
  7007. * test/DHTConnectionImplTest.cc
  7008. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. type cleanup for allmost all remaining files.
  7010. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7011. Type clarification
  7012. * src/PeerSessionResource.{h, cc}
  7013. * src/DefaultPieceStorage.{h, cc}
  7014. * src/Peer.{h, cc}
  7015. * test/PeerSessionResourceTest.cc
  7016. Use div function
  7017. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7018. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Type clarification
  7020. * src/DefaultPeerStorage.{h, cc}
  7021. * test/DefaultPeerStorageTest.cc
  7022. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Type clarification: size_t for length or size, uint64_t for file
  7024. length, off_t for file offset.
  7025. * src/DefaultBtProgressInfoFile.cc
  7026. * src/DefaultBtContext.{h, cc}
  7027. * src/DefaultBtInteractive.cc
  7028. * src/DownloadCommand.{h, cc}
  7029. * src/IteratableChunkChecksumValidator.{h, cc}
  7030. * src/SegmentMan.{h, cc}
  7031. * src/SingleFileDownloadContext.{h, cc}
  7032. * src/IteratableChecksumValidator.{h, cc}
  7033. * src/BtContext.h
  7034. * src/IteratableValidator.h
  7035. * src/DownloadContext.h
  7036. * test/SingleFileDownloadContextTest.cc
  7037. * test/DefaultBtContextTest.cc
  7038. * test/MockBtContext.h
  7039. * test/Metalink2RequestGroupTest.cc
  7040. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Type clarification: size_t for length or size, uint64_t for file
  7042. length, off_t for file offset.
  7043. * src/PiecedSegment.cc
  7044. * src/GrowSegment.h
  7045. * src/DefaultBtRequestFactory.h
  7046. * src/DefaultBtProgressInfoFile.cc
  7047. * src/UnknownLengthPieceStorage.h
  7048. * src/DefaultPieceStorage.cc
  7049. * src/UnknownLengthPieceStorage.cc
  7050. * src/DefaultBtInteractive.cc
  7051. * src/GrowSegment.cc
  7052. * src/BitfieldMan.h
  7053. * src/DownloadCommand.cc
  7054. * src/BtRequestFactory.h
  7055. * src/PiecedSegment.h
  7056. * src/DefaultPieceStorage.h
  7057. * src/Piece.cc
  7058. * src/DefaultBtRequestFactory.cc
  7059. * src/PieceStorage.h
  7060. * src/Segment.h
  7061. * src/Piece.h
  7062. * src/BitfieldMan.cc
  7063. * src/Util.cc
  7064. * test/DefaultBtProgressInfoFileTest.cc
  7065. * test/DefaultPieceStorageTest.cc
  7066. * test/MockPieceStorage.h
  7067. * test/BtRequestMessageTest.cc
  7068. * test/DefaultBtMessageDispatcherTest.cc
  7069. * test/BitfieldManTest.cc
  7070. * test/GrowSegmentTest.cc
  7071. * test/PieceTest.cc
  7072. * test/SegmentTest.cc
  7073. * test/SegmentManTest.cc
  7074. * test/DefaultBtRequestFactoryTest.cc
  7075. * test/MockBtRequestFactory.h
  7076. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Fixed compilation error with --disable-nls
  7078. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7079. in gettext.h causes the problem.
  7080. * src/common.h
  7081. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Removed subPiece related functions.
  7083. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7084. * src/DefaultPieceStorage.{h, cc}
  7085. * test/PieceTest.cc
  7086. * test/DefaultPieceStorageTest.cc
  7087. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Use unsigned char for data store.
  7089. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7090. Bump up version number to 0.13.0+1
  7091. * configure.ac
  7092. * Release 0.13.0+1
  7093. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Changed inactive connection timeout to 120.
  7095. To accept more mulually interested peers, disconnect peer when there
  7096. is no interest between us after certain time passed.
  7097. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7098. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7100. when compiled with async DNS support.
  7101. * src/DownloadEngine.cc
  7102. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7103. value '10' will be a little bit short when some DNS servers are
  7104. offline and several DNS servers are tried. It should be configured
  7105. by command-line option.
  7106. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Merged Ross's mingw patch.
  7108. * src/DHTRoutingTableDeserializer.cc
  7109. * src/DHTRoutingTableSerializer.cc
  7110. * src/Platform.{h, cc}
  7111. * src/timegm.h
  7112. * src/gettimeofday.h
  7113. * src/getaddrinfo.h
  7114. * src/SocketCore.h
  7115. * src/common.h
  7116. * src/inet_aton.h
  7117. * src/DownloadEngine.h
  7118. * src/gai_strerror.h
  7119. * src/a2netcompat.h
  7120. * configure.ac
  7121. * configure
  7122. * aclocal.m4
  7123. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. Included missing iostream.
  7125. * test/AllTest.cc
  7126. * test/BtDependencyTest.cc
  7127. * test/BtExtendedMessageTest.cc
  7128. * test/DHTConnectionImplTest.cc
  7129. * test/DHTMessageFactoryImplTest.cc
  7130. * test/DHTMessageTrackerEntryTest.cc
  7131. * test/DHTNodeTest.cc
  7132. * test/DHTRoutingTableSerializerTest.cc
  7133. * test/DefaultBtAnnounceTest.cc
  7134. * test/DefaultBtContextTest.cc
  7135. * test/DefaultBtMessageFactoryTest.cc
  7136. * test/DefaultExtensionMessageFactoryTest.cc
  7137. * test/HandshakeExtensionMessageTest.cc
  7138. * test/HttpResponseTest.cc
  7139. * test/MetalinkProcessorTest.cc
  7140. * test/MultiFileAllocationIteratorTest.cc
  7141. * test/SocketCoreTest.cc
  7142. * test/UTPexExtensionMessageTest.cc
  7143. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Reorganized includes.
  7145. * src/NameResolver.cc
  7146. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Fixed compilation error without ares/c-ares
  7148. * src/NameResolver.h:
  7149. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Added a test for large file.
  7151. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7152. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Fixed the bug that file size is ignored if size > INT32_MAX
  7154. * src/SizeMetalinkParserState.cc (endElement):
  7155. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Bump up version number to 0.13.0
  7157. * configure.ac
  7158. * Release 0.13.0
  7159. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Updated Makfefile.am to make 'make dist' work.
  7161. Now packaged filename is aria2c-VERSION.tar.bz2.
  7162. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7163. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7164. Large file support is now configured by configure script.
  7165. * configure.ac
  7166. Removed unsused source files
  7167. * src/
  7168. * test/
  7169. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7170. Peer.h and BtContext.h respectively.
  7171. * src/Peer.h
  7172. * src/BtContext.h
  7173. Updated translations.
  7174. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7175. translations. Great thanks to all translators!;)
  7176. * po/*.{po, gmo}
  7177. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7179. statically declared sha1 MessageDigestContext.
  7180. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7181. initialization of short-lived MessageDigestContext.
  7182. * src/MessageDigestHelper.{h, cc}
  7183. * src/main.cc
  7184. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7185. the initialization of MessageDigestContext every time in validating
  7186. chunk checksum.
  7187. * src/DownloadCommand.{h, cc}
  7188. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Add a file descriptor which connected to fast peer(latency<1500) to
  7190. select(). This change reduced CPU load.
  7191. * src/PeerInteractionCommand.cc
  7192. * src/DefaultBtInteractive.{h, cc}
  7193. * src/BtInteractive.h
  7194. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Fixed the previous insufficient fix for possible busy loop.
  7196. * src/MSEHandshake.cc (identifyHandshakeType)
  7197. Removed unused functions.
  7198. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7199. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Fixed possible busy loop if first 20 bytes are not received for a few
  7201. minutes.
  7202. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7203. * src/ReceiverMSEHandshakeCommand.cc
  7204. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Fixed compilation error
  7206. * src/ExpatMetalinkProcessor.cc
  7207. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7209. * src/DHTBucket.cc
  7210. Removed unnecessary cast.
  7211. * src/HandshakeExtensionMessage.cc
  7212. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7214. is missing.
  7215. * src/OptionHandlerFactory.cc
  7216. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Fixed the bug that HAVE message is not sent for a piece they are
  7218. downloaded fom http/ftp server before any BitTorrent handshake is done
  7219. with peers.
  7220. * src/DefaultBtInteractive.cc
  7221. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7223. * src/Makefile.am
  7224. * src/Makefile.in
  7225. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Updated README. Added html version of README and man page.
  7227. * README
  7228. * README.html
  7229. * readme2html: Shell script to generate README.html from README using
  7230. asciidoc.
  7231. * doc/aria2c.1.html
  7232. * doc/makeman: Added the line to generate aria2c.1.html
  7233. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Fixed offset calculation.
  7235. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7236. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Rewritten itos and uitos using template. llitos and ullitos are
  7238. replaced with itos and uitos respectively.
  7239. * src/Util.{h, cc}
  7240. * test/UtilTest.cc
  7241. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7243. of the number of bytes required for storing public key and shared
  7244. secret.
  7245. * src/LibgcryptDHKeyExchange.h
  7246. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7247. * src/MSEHandshake.cc
  7248. * test/DHKeyExchangeTest.cc
  7249. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Removed since they are not used.
  7251. * src/Xml2MetalinkProcessor.{h, cc}
  7252. * src/Socket.cc
  7253. * src/SegmentSplitter.{h, cc}
  7254. * test/Xml2MetalinkProcessorTest.cc
  7255. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Fixed the bug that prevents aria2 from stopping other than by pressing
  7257. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7258. option. aria2 doesn't stop even after --seed-time is satisfied and
  7259. continues to output blank lines in the console.
  7260. * src/ReceiverMSEHandshakeCommand.cc
  7261. * src/PeerReceiveHandshakeCommand.cc
  7262. * src/PeerListenCommand.cc
  7263. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Bump up version number to 0.13.0rc
  7265. * configure.ac
  7266. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Updated man page and some usage text.
  7268. * doc/aria2c.1.txt
  7269. * src/usage_text.h
  7270. * po/*.{po, gmo}
  7271. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Updated translations. Added Finnish and Hebrew translations.
  7273. Great thanks to all translators!
  7274. * po/*.{po, gmo}
  7275. * po/LINGUAS
  7276. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Log more detailed information about each message.
  7278. * src/DHTQueryMessage.{h, cc}
  7279. * src/DHTGetPeersMessage.{h, cc}
  7280. * src/DHTFindNodeReplyMessage.{h, cc}
  7281. * src/DHTGetPeersReplyMessage.{h, cc}
  7282. * src/DHTAnnouncePeerMessage.{h, cc}
  7283. * src/DHTResponseMessage.{h, cc}
  7284. * src/DHTFindNodeMessage.{h, cc}
  7285. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Use constants defined in prefs.h
  7287. * src/option_processing.cc
  7288. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7290. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Make room for future enchancements for IPv6 addresses.
  7292. Bump up version number of dht.dat file format to 2.
  7293. Not compatible with previous version.
  7294. * src/DHTRoutingTableSerializer.cc
  7295. * src/DHTRoutingTableDeserializer.cc
  7296. * test/DHTRoutingTableSerializerTest.cc
  7297. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Added handling for the return values from
  7299. PeerMessageUtil::createcompact().
  7300. * src/DefaultBtContext.cc (computeFastSet):
  7301. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Fixed abort when peer's ip address is IPv4-mapped address.
  7303. * src/DefaultBtContext.cc (computeFastSet)
  7304. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7305. cannot handle IPv4-mapped addresses.
  7306. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7307. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Proper return value handling for OpenSSL functions.
  7309. * src/LibsslDHKeyExchange.h
  7310. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Random bytes generation using libgcrypt and OpenSSL.
  7312. * src/DHTUtil.{h, cc}
  7313. * test/DHTUtilTest.cc
  7314. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7316. received.
  7317. * src/DHTMessageReceiver.cc (receiveMessage)
  7318. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Fixed the bug that a return code is always 0. BUG#1897704
  7320. If error occurred during the download or there exist unfinished
  7321. downloads, aria2 returns with code 1.
  7322. * src/RequestGroupMan.{h, cc}
  7323. * src/MultiUrlRequestInfo.{h, cc}
  7324. * src/main.cc
  7325. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. IPv6 support for SocketCore class.
  7327. TODO: In SocketCore::establishConnection(), this is insufficient to
  7328. determin the failure of connect() here because the socket is
  7329. non-blocking state. The next addresses should be tried after select().
  7330. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7331. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7332. instead which address family independent.
  7333. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7334. information in a compact peer format which is for IPv4 only.
  7335. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7336. this is a spec of BitTorrent protocol.
  7337. * src/SocketCore.{h, cc}
  7338. * src/PeerMessageUtil.cc
  7339. * test/SocketCoreTest.cc
  7340. * test/PeerMessageUtilTest.cc
  7341. * test/DHTConnectionImplTest.cc
  7342. Handle IPv4-mapped addresses.
  7343. * src/DHTNode.cc: Now identity is determined by node id.
  7344. * src/DHTMessageTrackerEntry.cc
  7345. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7346. should handle it.
  7347. * src/DHTRoutingTableDeserializer.cc
  7348. * src/DHTMessageFactoryImpl.cc
  7349. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. Change the unit of --stop option from a minute to a second.
  7351. * src/usage_text.h
  7352. * src/DownloadEngineFactory.cc
  7353. * src/OptionHandlerFactory.cc
  7354. * src/message.h
  7355. * src/TimedHaltCommand.cc
  7356. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Make listening socket non-block mode.
  7358. * src/FtpConnection.cc
  7359. * src/FtpNegotiationCommand.{h, cc}
  7360. * src/PeerListenCommand.cc
  7361. Fixed the bug that cause slow ftp negotiation.
  7362. * src/FtpNegotiationCommand.{h, cc}
  7363. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7364. Added basic tag to --enable-dht, --dht-listen-port option.
  7365. * src/HelpItemFactory.cc (createHelpItems)
  7366. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Updated text.
  7368. * src/usage_text.h
  7369. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7371. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Determin _threadtholdSpeed in each constructor for
  7373. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7374. * src/ActivePeerConnectionCommand.{h, cc}
  7375. * src/PeerReceiveHandshakeCommand.{h, cc}
  7376. * src/BtSetup.cc
  7377. * src/BtConstants.h
  7378. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Added --bt-min-crypto-level and --bt-require-crypto options.
  7380. * src/OptionHandlerFactory.cc
  7381. * src/MSEHandshake.cc
  7382. * src/HelpItemFactory.cc
  7383. * src/option_processing.cc
  7384. * src/ReceiverMSEHandshakeCommand.cc
  7385. * src/prefs.h
  7386. * src/DefaultBtAnnounce.cc
  7387. * src/InitiatorMSEHandshakeCommand.cc
  7388. * src/usage_text.h
  7389. * test/MSEHandshakeTest.cc
  7390. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Bump version number to 0.13.0b
  7392. * configure.ac
  7393. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Updated doc.
  7395. * src/MessageDigestHelper.h:
  7396. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Use raw message digest as a token instead of its hexadecimal
  7398. representation.
  7399. * src/DHTTokenTracker.cc (generateToken)
  7400. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Added Message Stream Encryption(MSE) support.
  7402. Currently, aria2 accepts incoming connections with Obfuscation Header
  7403. and legacy BitTorrent Header and establishes connections with
  7404. Obfuscation Header first and if failed then retry with legacy
  7405. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7406. choose ARC4. The new option to change the default behavior is planned.
  7407. For tracker extension, "supportcrypto=1" is added statically.
  7408. * src/PeerInitiateConnectionCommand.{h, cc}
  7409. * src/PeerConnection.{h, cc}
  7410. * src/HandleRegistry.h
  7411. * src/SocketCore.h
  7412. * src/PeerReceiveHandshakeCommand.{h, cc}
  7413. * src/BtRegistry.{h, cc}
  7414. * src/PeerListenCommand.cc
  7415. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7416. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7417. * src/MSEHandshake.{h, cc}
  7418. * src/ARC4Encryptor.h
  7419. * src/ARC4Decryptor.h
  7420. * src/LibgcryptARC4Encryptor.h
  7421. * src/LibgcryptARC4Decryptor.h
  7422. * src/LibgcryptARC4Context.h
  7423. * src/LibsslARC4Encryptor.h
  7424. * src/LibsslARC4Decryptor.h
  7425. * src/LibsslARC4Context.h
  7426. * src/DHKeyExchange.h
  7427. * src/LibgcryptDHKeyExchange.h
  7428. * src/LibsslDHKeyExchange.h
  7429. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7430. * test/DefaultBtAnnounceTest.cc
  7431. * test/ARC4Test.cc
  7432. * test/DHKeyExchangeTest.cc
  7433. Removed prepareForRetry() because it is not used.
  7434. * src/PeerAbstractCommand.{h, cc}
  7435. * src/PeerInteractionCommand.{h, cc}
  7436. * src/PeerInitiateConnectionCommand.{h, cc}
  7437. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Added the ability to load nodes from torrent file. These nodes are
  7439. added to the routing table when downloading that torrent.
  7440. * src/BtContext.h
  7441. * src/DefaultBtContext.{h, cc}
  7442. * src/DHTSetup.cc
  7443. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7444. hostname and port pair, and resolves all of them.
  7445. * src/NameResolver.{h, cc}: Added reset().
  7446. * src/RequestGroup.cc
  7447. * test/DefaultBtContextTest.cc
  7448. * test/MockBtContext.h
  7449. Removed assert() from DefaultBtContext and throw exception instead.
  7450. * src/DefaultBtContext.cc
  7451. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Fixed segmentation fault bug when exiting if dht is disabled.
  7453. * src/RequestGroup.cc
  7454. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Fixed typo in log message and define the message in message.h
  7456. * src/TimedHaltCommand.cc
  7457. * src/message.h
  7458. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Included RecoverableException.h to fix compilation error.
  7460. * test/DHTMessageFactoryImplTest.cc
  7461. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7463. * test/DHTPingMessageTest.cc
  7464. * test/DHTGetPeersMessageTest.cc
  7465. * test/DHTFindNodeMessageTest.cc
  7466. * test/DHTAnnouncePeerMessageTest.cc
  7467. * test/MockDHTMessage.h
  7468. * test/MockDHTMessageFactory.h
  7469. * test/MockDHTMessageDispatcher.h: New class.
  7470. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7472. virtual.
  7473. * src/DHTMessageDispatcher.h
  7474. * src/DHTMessageDispatcherImpl.{h, cc}
  7475. * src/DHTSetup.cc
  7476. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Adding handling of DHT error message. Just log error message and
  7478. throw exception.
  7479. * src/DHTMessageFactoryImpl.cc
  7480. * test/DHTMessageFactoryImplTest.cc
  7481. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Added handling of dynamic cast failure.
  7483. * src/DHTNodeLookupTask.cc
  7484. * src/DHTPeerLookupTask.cc
  7485. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Added the ability to stop aria2 itself when given time has passed
  7487. from start. Use --stop option to specify time in minutes.
  7488. When 0 is given, this feature is disabled.
  7489. * src/OptionHandlerFactory.cc
  7490. * src/TimeBasedCommand.h: Make _interval protected scope.
  7491. * src/HelpItemFactory.cc
  7492. * src/option_processing.cc
  7493. * src/prefs.h
  7494. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7495. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7496. Without this modification, the result list shows "ERR" when aria2 is
  7497. stopped by --stop option. It should be "INPR".
  7498. * src/DownloadEngine.{h, cc}
  7499. * src/DownloadEngineFactory.cc
  7500. * src/usage_text.h
  7501. * src/TimedHaltCommand.{h, cc}: New class.
  7502. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Bootstrap through node added by port message.
  7504. Currently bootstrap is executed if the number of buckets in routing
  7505. table is 1.
  7506. * src/BtPortMessage.{h, cc}
  7507. * src/DefaultBtMessageFactory.{h, cc}
  7508. * src/PeerInteractionCommand.cc
  7509. * test/BtPortMessageTest.cc
  7510. * test/MockDHTTask.h
  7511. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Extract the Peer class's member variables, which are only needed after
  7513. PeerInteractionCommand, into PeerSessionResource class.
  7514. This class is instantiated in PeerInteractionCommand class's ctor and
  7515. released in its dtor.
  7516. This will make Peer class lightweight and uses less memory for peers
  7517. which are not connected and wait in the queue.
  7518. * src/PeerChokeCommand.cc
  7519. * src/PeerSessionResource.{h, cc}
  7520. * src/PeerInteractionCommand.cc
  7521. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7522. * src/DefaultBtInteractive.cc
  7523. * src/BtPieceMessage.cc
  7524. * src/BtInterestedMessage.cc
  7525. * src/BtUnchokeMessage.cc
  7526. * src/DefaultPeerStorage.{h, cc}
  7527. * src/PeerInitiateConnectionCommand.cc
  7528. * src/ActivePeerConnectionCommand.cc
  7529. * src/BtNotInterestedMessage.cc
  7530. * src/DefaultBtMessageDispatcher.cc
  7531. * src/BtChokeMessage.cc
  7532. * src/BtRequestMessage.cc
  7533. * src/Peer.{h, cc}
  7534. * src/BtRegistry.h
  7535. * src/TrackerWatcherCommand.cc
  7536. * src/PeerReceiveHandshakeCommand.cc
  7537. * test/BtExtendedMessageTest.cc
  7538. * test/BtAllowedFastMessageTest.cc
  7539. * test/BtCancelMessageTest.cc
  7540. * test/DefaultPieceStorageTest.cc
  7541. * test/BtBitfieldMessageTest.cc
  7542. * test/BtHaveMessageTest.cc
  7543. * test/BtNotInterestedMessageTest.cc
  7544. * test/BtRequestMessageTest.cc
  7545. * test/PeerSessionResourceTest.cc
  7546. * test/DefaultBtMessageDispatcherTest.cc
  7547. * test/PeerTest.cc
  7548. * test/BtInterestedMessageTest.cc
  7549. * test/BtRejectMessageTest.cc
  7550. * test/BtChokeMessageTest.cc
  7551. * test/DefaultPeerStorageTest.cc
  7552. * test/BtHaveNoneMessageTest.cc
  7553. * test/BtHaveAllMessageTest.cc
  7554. * test/DefaultExtensionMessageFactoryTest.cc
  7555. * test/BtUnchokeMessageTest.cc
  7556. * test/DefaultBtMessageFactoryTest.cc
  7557. * test/HandshakeExtensionMessageTest.cc
  7558. * test/UTPexExtensionMessageTest.cc
  7559. * test/DefaultBtRequestFactoryTest.cc
  7560. * test/BtPieceMessageTest.cc
  7561. Removed typedef PeerStats.
  7562. * src/PeerStat.h
  7563. * src/SegmentMan.cc
  7564. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Added std namespace to copy, remove_copy, back_inserter,
  7566. front_inserter.
  7567. * src/RequestGroupMan.cc
  7568. * src/DefaultPieceStorage.cc
  7569. * src/StreamFileAllocationEntry.cc
  7570. * src/BtFileAllocationEntry.cc
  7571. * src/RequestGroup.cc
  7572. * src/MetalinkEntry.cc
  7573. * src/DelegatingPeerListProcessor.cc
  7574. * src/DefaultBtRequestFactory.cc
  7575. * src/DefaultBtMessageDispatcher.cc
  7576. * src/version_usage.cc: Included <algorithm>
  7577. * src/main.cc
  7578. * src/MetalinkParserController.cc
  7579. * src/DefaultBtContext.cc
  7580. * src/DownloadEngineFactory.cc
  7581. * src/a2algo.h
  7582. Removed.
  7583. * test/StreamUriListParserTest.cc
  7584. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7585. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7586. ActivePeerConnectionCommand when it is given and
  7587. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7588. * src/ActivePeerConnectionCommand.{h, cc}
  7589. * src/BtSetup.cc
  7590. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Only add socket to DownloadEngine's select routine when peer or
  7592. localhost is unchoked and interested. This lowers CPU usage a
  7593. little bit.
  7594. * src/PeerInteractionCommand.cc
  7595. * src/PeerAbstractCommand.{h, cc}
  7596. * src/BtInteractive.h
  7597. * src/DefaultBtInteractive.{h, cc}
  7598. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7599. Revert previous change because get_peers message is needed for
  7600. announce_peer anyway.
  7601. * src/DHTGetPeersCommand.cc
  7602. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Request peers thought DHT only when download hasn't finished.
  7604. * src/DHTGetPeersCommand.cc
  7605. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7607. * src/DHTBucketRefreshTask.{h, cc}
  7608. * src/DHTSetup.cc
  7609. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7611. standard classes.
  7612. Included string.h where mem* function are used.
  7613. Added namespace aria2.
  7614. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Create directory before saving DHT routing table.
  7616. Now ios::failure is now handled properly.
  7617. * src/DHTAutoSaveCommand.cc
  7618. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Removed unnecessary cerr.
  7620. * src/DownloadEngine.cc
  7621. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Catch exception inside DHTMessageReceiver::receiveMessage().
  7623. Log unknown message.
  7624. * src/DHTMessageReceiver.{h, cc}
  7625. * src/DHTMessageFactory.h
  7626. * src/DHTMessageFactoryImpl.{h, cc}
  7627. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7628. * src/DHTInteractionCommand.cc
  7629. * src/DHTUnknownMessage.{h, cc}
  7630. * test/DHTUnknownMessageTest.cc
  7631. * test/MockDHTMessageFactory.h
  7632. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Commented out ip address comparison because a host can have multiple
  7634. ip addresses and it is hard to predict the hostname is resolved into
  7635. which one.
  7636. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7637. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. * po/Makefile.in: Removed since this is generated by configure.
  7639. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Fixed compiler warning about redefinition of SIZE_MAX.
  7641. Use common.h instead of config.h directly here.
  7642. * src/Platform.{h, cc}
  7643. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7644. here.
  7645. * common.h
  7646. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7647. Updated gettext related files.
  7648. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7649. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7650. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Added DHT functionality, compatible with mainline.
  7652. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7653. You may need to specify entry point to DHT network using
  7654. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7655. Use --dht-listen-port to specify port number. Make sure that your
  7656. firewall configuration can pass through UDP traffic to the port.
  7657. The routing table is saved in $HOME/.aria2/dht.dat.
  7658. * src/DHT*
  7659. * src/BNode.{h, cc}
  7660. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7661. particular torrent.
  7662. * src/Data.cc: Rewritten ctor.
  7663. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7664. --dht-entry-point.
  7665. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7666. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7667. ends, remove BtContext from DHTPeerAnnounceStorage.
  7668. * src/BtPortMessage.{h, cc}: Rewritten.
  7669. * src/message.h
  7670. * src/OptionHandlerImpl.cc
  7671. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7672. --dht-entry-point.
  7673. * src/Dictionary.{h, cc} (remove): New function.
  7674. * src/prefs.h
  7675. * src/DefaultBtMessageFactory.h
  7676. * src/BtHandshakeMessage.cc
  7677. * src/ActivePeerConnectionCommand.cc
  7678. * src/SocketCore.{h, cc}: Added datagram socket support.
  7679. * src/DefaultBtMessageFactory.cc
  7680. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7681. Create DHT commands.
  7682. * src/BtMessageFactory.h
  7683. * src/PeerMessageUtil.{h, cc}
  7684. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Fixed the bug that log file is not written when configuration file doesn't exist.
  7686. This is caused by using Logger class before LogFactory is not configured.
  7687. BUG #1875079
  7688. * src/option_processing.cc
  7689. Warning message "configuration doesn't exist" is only printed when --conf is
  7690. given.
  7691. * src/option_processing.cc
  7692. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7694. ShaVisitor is now deprecated and slated to be removed.
  7695. * src/DefaultBtContext.cc
  7696. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Externalize message to message.h
  7698. * src/Platform.cc
  7699. * src/message.h
  7700. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Set default domain and default path to cookie.
  7702. * src/HttpResponse.cc
  7703. * src/CookieBox.{h, cc}
  7704. * src/CookieParser.{h, cc}
  7705. * test/CookieParserTest.cc
  7706. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Added --no-conf and --conf-path command-line option.
  7708. --no-conf option disables loading aria2.conf file.
  7709. --conf-path option changes the configuration file path. The default
  7710. file path is $HOME/.aria2/aria2.conf
  7711. Added a warning message when the configuration file is not found.
  7712. * src/HelpItemFactory.cc
  7713. * src/option_processing.cc
  7714. * src/prefs.h
  7715. * src/usage_text.h
  7716. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Added the message to inform users that other help categories are
  7718. available in -h option.
  7719. * src/version_usage.cc
  7720. * src/TagContainer.{h, cc}
  7721. * test/TagContainerTest.cc
  7722. * src/TaggedItem.{h, cc}
  7723. * test/TaggedItemTest.cc
  7724. * src/HelpItem.h
  7725. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7727. from PiecedSegment's ctor.
  7728. Previously Piece::getAllMissingBlockIndexes() is called from
  7729. PiecedSegment() but it is rather expensive since only first element is
  7730. used.
  7731. * src/PiecedSegment.cc
  7732. * src/Piece.{h, cc}
  7733. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7735. each time these functions are called.
  7736. * src/BitfieldMan.{h, cc}
  7737. * test/BitfieldManTest.cc
  7738. * src/array_fun.h
  7739. * test/array_funTest.cc
  7740. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7741. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7742. filtered. Removed unnecessary cast to int32_t.
  7743. * src/BitfieldMan.{h, cc}
  7744. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7746. payload length(4bytes) are received. This happens because lenbufLength
  7747. is not updated in this particular case and successive call of
  7748. receiveMessage() overwrites payload length with bytes recieved which
  7749. are payload body.
  7750. * src/PeerConnection.{h, cc}
  7751. * src/message.h
  7752. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7754. peer if there are peers that have same ipaddr and port.
  7755. I've experiened segmentation fault and "pure virtual function was
  7756. called" error.
  7757. * src/Peer.h
  7758. * test/PeerTest.cc
  7759. * src/DefaultPeerStorage.cc
  7760. * test/DefaultPeerStorageTest.cc
  7761. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Removed a call to isPowerOf() because it is no longer necessary here
  7763. and a request block is not always power of 2.
  7764. BUG#1866924
  7765. * src/PeerMessageUtil.cc (checkLength)
  7766. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Fixed the bug that always first found Segment is removed from
  7768. usedSegmentEntries. Removed unused functions.
  7769. * src/SegmentMan.{h, cc}
  7770. * test/SegmentManTest.cc
  7771. Fixed the bug that ServerHost is not removed.
  7772. * src/RequestGroup.cc
  7773. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7774. Fixed the bug that SegmentMan::completeSegment() is not called
  7775. even if Segment is complete when --lowest-speed-limit is enabled.
  7776. BUG#1864525
  7777. * src/DownloadCommand.{h, cc}
  7778. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Fixed: hash algorithm 'sha1' is always used.
  7780. * src/DownloadCommand.cc (validatePieceHash)
  7781. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Added --enable-peer-exchange command-line option.
  7783. * src/OptionHandlerFactory.cc
  7784. * src/HelpItemFactory.cc
  7785. * src/option_processing.cc
  7786. * src/usage_text.h
  7787. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Move extension from BtRuntime to ExtensionMessageFactory, because
  7789. extension can be specified per peer, not per torrent.
  7790. * src/DefaultBtInteractive.cc
  7791. * src/BtRuntime.h
  7792. * src/ExtendedMessagingAware.h
  7793. * src/ExtensionMessageFactory.h
  7794. * src/DefaultExtensionMessageFactory.cc
  7795. * test/DefaultExtensionMessageFactoryTest.cc
  7796. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Added categorized option help. Specify category using --help option.
  7798. Also added the ability to search options in forward match.
  7799. * src/HelpItem.{h, cc}
  7800. * test/HelpItemTest.cc
  7801. * src/HelpItemFactory.{h, cc}
  7802. * src/TagContainer.{h, cc}
  7803. * test/TagContainerTest.cc
  7804. * src/option_processing.cc
  7805. * src/prefs.h
  7806. * src/TaggedItem.{h, cc}
  7807. * test/TaggedItemTest.cc
  7808. * src/version_usage.cc
  7809. * src/help_tags.h
  7810. * src/usage_text.h
  7811. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Fixed segmentation fault when bad torrent metainfo is parsed.
  7813. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7814. and then throw exception or skip it.
  7815. * src/DefaultBtContext.{h, cc}
  7816. * test/DefaultBtContextTest.cc
  7817. * src/AnnounceList.cc
  7818. * src/CompactPeerListProcessor.cc
  7819. * src/message.h
  7820. * src/DefaultBtAnnounce.{h, cc}
  7821. * test/DefaultBtAnnounceTest.cc
  7822. * src/BencodeVisitor.cc
  7823. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Added missing "B"(=Byte). So now the message looks like this:
  7825. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7826. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7827. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Show the seed ratio after torrent downloads.
  7829. For example, after torrent download completed and --seed-time and
  7830. --seed-ratio conditions are fulfilled, following message is printed
  7831. right after "Download complete: .....":
  7832. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7833. * src/RequestGroupMan.cc
  7834. * src/RequestGroup.{h, cc}
  7835. * src/message.h
  7836. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Remove a defunct control file. A defunct control file means that while
  7838. it exists, but the corresponding download file is missing.
  7839. After its removal, a download restarts from the beginning.
  7840. * src/RequestGroup.cc
  7841. * src/message.h
  7842. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7843. Allocate bitfield in Peer when it is really used. More specifically,
  7844. bitfield in Peer is allocated after the connection is established and
  7845. deallocated when the connection is dropped.
  7846. Since 2 parameters(piece length and total length) was removed from the
  7847. constructor of Peer class, many test classes were modified accordingly.
  7848. See svn log for more detailed information.
  7849. * src/PeerInteractionCommand.cc
  7850. * src/CompactPeerListProcessor.cc
  7851. * src/Peer.cc
  7852. * src/DefaultPeerListProcessor.cc
  7853. * src/PeerListenCommand.cc
  7854. * src/PeerReceiveHandshakeCommand.cc
  7855. Fixed memory leak
  7856. * src/Piece.cc
  7857. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7859. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7860. command-line options.
  7861. * src/option_processing.cc
  7862. * src/ActivePeerConnectionCommand.cc
  7863. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Send have message to peer if it already has the piece.
  7865. * src/BtHaveMessage.{h, cc}
  7866. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7868. port.
  7869. * src/DefaultPeerStorage.{h, cc}
  7870. * test/DefaultPeerStorageTest.cc
  7871. * src/HandshakeExtensionMessage.cc
  7872. * test/HandshakeExtensionMessageTest.cc
  7873. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7874. * src/PeerStorage.h
  7875. * test/MockPeerStorage.h
  7876. * src/PeerListenCommand.cc
  7877. * src/PeerReceiveHandshakeCommand.cc
  7878. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Added --metalink-enable-unique-protocol option.
  7880. * src/Metalink2RequestGroup.cc
  7881. * src/option_processing.cc
  7882. * src/prefs.h
  7883. * src/version_usage.cc
  7884. * doc/aria2c.1.txt
  7885. * doc/aria2c.1
  7886. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Allow a peer in incomingPeer to be added peers.
  7888. * src/DefaultPeerStorage.cc
  7889. * test/DefaultPeerStorageTest.cc
  7890. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7892. I could reproduce this bug in following procedure:
  7893. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7894. 2. Restart aria2.
  7895. 3. You see the download stopped around 99%.
  7896. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7897. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7898. If timeout is reached, then _nextCommand is unused and it may contains
  7899. segments and they won't be canceled. Actually, timeout is not needed
  7900. here because if the server dropped connection, then retry is made.
  7901. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Added uTorrent compatible Peer Exchange.
  7903. * src/BencodeVisitor.{h, cc}
  7904. * test/BencodeVisitorTest.cc
  7905. * src/BtConstants.h
  7906. * src/BtContext.h: Added 'private' flag.
  7907. * src/BtExtendedMessage.{h, cc}
  7908. * test/BtExtendedMessageTest.cc
  7909. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7910. reserved field.
  7911. * test/BtHandshakeMessageTest.cc
  7912. * src/BtMessageFactory.h
  7913. * src/BtRegistry.h
  7914. * src/BtRuntime.h: This class holds default extension message IDs for
  7915. aria2. By default, aria2 uses ID 8 for ut_pex.
  7916. * src/DefaultBtContext.cc
  7917. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7918. When it is true, aria2 enables ut_pex. This value is set by
  7919. PeerInteractionCommand.
  7920. * src/DefaultBtMessageFactory.{h, cc}
  7921. * test/DefaultBtMessageFactoryTest.cc
  7922. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7923. handling to DefaultBtInteractive class.
  7924. * src/DefaultExtensionMessageFactory.{h, cc}
  7925. * test/DefaultExtensionMessageFactoryTest.cc
  7926. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7927. the container(peers and incomingPeers. The equality is determined by
  7928. Peer::id).
  7929. * test/DefaultPeerStorageTest.cc
  7930. * src/ExtensionMessage.h
  7931. * test/MockExtensionMessage.h
  7932. * src/ExtensionMessageFactory.h
  7933. * test/MockExtensionMessageFactory.h
  7934. * src/HandshakeExtensionMessage.{h, cc}
  7935. * test/HandshakeExtensionMessageTest.cc
  7936. * src/MetaEntry.h
  7937. * src/Peer.{h, cc}
  7938. * src/PeerInteractionCommand.cc
  7939. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7940. addIncomingPeer.
  7941. * src/PeerMessageUtil.{h, cc}
  7942. * src/PeerObject.h
  7943. * src/UTPexExtensionMessage.{h, cc}
  7944. * test/UTPexExtensionMessageTest.cc
  7945. * src/message.h
  7946. * src/prefs.h
  7947. Fixed the bug that returns incomplete data when it contains null
  7948. character. A convenient constructor was also added.
  7949. * src/Data.{h, cc}
  7950. Rewritten.
  7951. * src/CompactPeerListProcessor.cc
  7952. Fixed typos.
  7953. * src/message.h
  7954. * src/MetaFileUtil.cc
  7955. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Added "Status Legend" label to the explanation text of 'stat' in
  7957. download result and moved it to the last. BUG#1848214
  7958. * src/RequestGroupMan.cc
  7959. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7961. * src/Makefie.am
  7962. * test/Makefile.am
  7963. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7964. Fixed the bug that prevents aria2 from loading cookie file when expire
  7965. value is greater than 2^31-1. BUG#1851066
  7966. * src/CookieBoxFactory.cc
  7967. * test/CookieBoxFactoryTest.cc
  7968. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Fixed possible memory leak when an exception is thrown.
  7970. * src/XML2SAXMetalinkProcessor.cc
  7971. Added Expat support. If both libxml2 and Expat are installed, then
  7972. libxml2 is used by default.
  7973. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7974. ExpatMetalinkProcessor according to the configuration.
  7975. * src/ExpatMetalinkProcessor.{h, cc}
  7976. * src/main.cc: Removed libxml2 specific header and init/free function.
  7977. * src/MetalinkProcessorFactory.{h, cc}
  7978. * src/MetalinkHelper.cc
  7979. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7980. * src/MetalinkProcessor.h
  7981. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7982. MetalinkProcessorTest is used instead.
  7983. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7984. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7985. MetalinkProcessorFactory::newInstance().
  7986. * m4/libexpat.m4
  7987. * configure.ac: Added configuration options for libexpat.
  7988. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Disabled -s option in metalink download.
  7990. * src/Metalink2RequestGroup.cc
  7991. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. If several protocols are available for a mirror in metalink file,
  7993. aria2 now use one of them. --metalink-preferred-protocol option was
  7994. added to specify the preference of protocol.
  7995. * src/AbstractCommand.cc
  7996. * src/OptionHandlerFactory.cc
  7997. * src/ServerHost.{h, cc}
  7998. * src/Metalink2RequestGroup.cc
  7999. * src/RequestGroup.{h, cc}
  8000. * test/RequestGroupTest.cc
  8001. * src/option_processing.cc
  8002. * src/prefs.h
  8003. * src/HttpResponseCommand.cc
  8004. * src/MetalinkResource.{h, cc}
  8005. * src/FtpNegotiationCommand.cc
  8006. * src/MetalinkEntry.{h, cc}
  8007. * src/MetalinkEntryTest.cc
  8008. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Code cleanup and added debug log.
  8010. * src/PeerConnection.cc
  8011. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Compiler error fix: applied the patch by Tiziano Mueller
  8013. * src/RequestGroup.cc
  8014. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8016. in stopped and completed event.
  8017. * src/AnnounceList.{h, cc}
  8018. * test/AnnounceListTest.cc
  8019. * src/DefaultBtAnnounce.cc
  8020. * test/DefaultBtAnnounceTest.cc
  8021. Sorted URLs.
  8022. * test/Metalink2RequestGroupTest.cc
  8023. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Removed unnecessary string copy. Updated doc and corrected indentation.
  8025. * src/Base64.cc
  8026. Fixed compilation warnings
  8027. * test/DataTest.cc
  8028. * test/HttpRequestTest.cc
  8029. * test/MetaFileUtilTest.cc
  8030. * test/RequestTest.cc
  8031. * Release 0.12.0
  8032. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Updated translations
  8034. * po/{de,fr,ja,nl,ru}.po
  8035. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8036. translations. Many thanks to translators.
  8037. * po/{ca,es,it,pt_BR,sv}.po
  8038. * po/LINGUAS
  8039. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Added a notice about URL
  8041. * src/version_usage.cc
  8042. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8043. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8044. aria2 repeatedly sends stopped request when tracker returns error code.
  8045. * src/AnnounceList.cc
  8046. * test/AnnounceListTest.cc
  8047. * src/AnnounceTier.h
  8048. Added a message when ctrl-c is hit.
  8049. Now second ctrl-c is also handled in signal handler.
  8050. * src/RequestGroupMan.{h, cc}
  8051. * src/RequestGroup.{h, cc}
  8052. * src/MultiUrlRequestInfo.cc
  8053. * src/DownloadEngine.cc
  8054. * src/TrackerWatcherCommand.cc
  8055. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Code cleanup
  8057. * src/Base64.cc (encode)
  8058. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Changed Direct/IO enable/disable procesure in file allocation routine.
  8060. * src/SingleFileAllocationIterator.cc
  8061. (SingleFileAllocationIterator):
  8062. Disable directIO if offset is not multiple of 512.
  8063. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8064. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8065. Enable created SingleFileAllocationIterator's directIO.
  8066. * src/FileAllocationEntry.cc
  8067. (FileAllocationEntry): Enable directIO here.
  8068. (~FileAllocationEntry): Disable directIO here.
  8069. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8071. * src/Peer.{h, cc}
  8072. * src/DefaultPieceStorage.cc
  8073. * test/DefaultPieceStorageTest.cc
  8074. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Rewritten direct I/O support routine
  8076. * src/SingleFileAllocationIterator.cc
  8077. * src/MultiDiskAdaptor.{h, cc}
  8078. * src/ByteArrayDiskWriter.h
  8079. * src/AbstractSingleDiskAdaptor.h
  8080. * src/AbstractDiskWriter.cc
  8081. * src/DefaultPieceStorage.cc
  8082. * src/DiskWriter.h
  8083. * src/BinaryStream.h
  8084. * src/IteratableChunkChecksumValidator.cc
  8085. * src/IteratableChecksumValidator.cc
  8086. * src/CheckIntegrityEntry.cc
  8087. * src/FileAllocationEntry.cc
  8088. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Fixed typo
  8090. * src/version_usage.cc
  8091. Updated doc
  8092. * doc/aria2c.1.txt
  8093. * doc/aria2c.1
  8094. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Fixed compile error without message digest support.
  8096. * src/FileMetalinkParserState.cc
  8097. * src/MetalinkParserController.{h, cc}
  8098. * test/XML2SAXMetalinkProcessorTest.cc
  8099. * test/MetalinkParserControllerTest.cc
  8100. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Enable direct I/O support in checksum checking.
  8102. * src/IteratableChunkChecksumValidator.{h, cc}
  8103. * test/IteratableChunkChecksumValidatorTest.cc
  8104. * src/CheckIntegrityEntry.cc
  8105. * src/PieceHashCheckIntegrityEntry.cc
  8106. * src/IteratableChecksumValidator.{h, cc}
  8107. * src/BtCheckIntegrityEntry.cc: Added doc.
  8108. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Added --allow-piece-length-change option.
  8110. * src/DefaultBtProgressInfoFile.cc
  8111. * test/DefaultBtProgressInfoFileTest.cc
  8112. * src/OptionHandlerFactory.cc
  8113. * src/option_processing.cc
  8114. * src/prefs.h
  8115. * src/version_usage.cc
  8116. * doc/aria2c.1.txt
  8117. * doc/aria2c.1
  8118. Fixed: duplicated result entry appears when exception is thrown in
  8119. RequestGroup::createInitiateConnectionCommand().
  8120. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8121. Add RequestGroup to _requestGroup after RequetGroup::
  8122. createInitiateConnectionCommand() succeeds.
  8123. Externalized message
  8124. * src/XML2SAXMetalinkProcessor.cc
  8125. * src/message.h
  8126. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Forced download abort when received negative response from http/ftp
  8128. server.
  8129. * src/HttpResponseCommand.cc
  8130. * src/FtpNegotiationCommand.cc
  8131. * src/HttpResponse.cc
  8132. * src/FtpConnection.cc
  8133. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8135. the predecessor, Xml2MetalinkParser class.
  8136. I tested them against 94KB metalink file with 1234 chunk checksums.
  8137. The new one parsed it in 22msec, while it took 6000msec with old one.
  8138. * src/XML2SAXMetalinkProcessor.{h, cc}
  8139. * test/XML2SAXMetalinkProcessorTest.cc
  8140. * src/MetalinkParserController.{h, cc}
  8141. * test/MetalinkParserControllerTest.cc
  8142. * src/MetalinkParserState.h: Also added 16 subclasses.
  8143. * src/main.cc
  8144. * src/Metalink2RequestGroup.cc
  8145. * src/MetalinkHelper.cc
  8146. * src/MetalinkEntry.cc
  8147. * src/ChunkChecksum.h
  8148. Rewritten Base64 class for better performance.
  8149. * src/Base64.{h, cc}
  8150. * test/Base64Test.cc
  8151. * src/HttpRequest.cc
  8152. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Fixed the bug#1841757: aria2 will connect to server to only get
  8154. file size.
  8155. * src/StreamFileAllocationEntry.cc
  8156. * src/option_processing.cc
  8157. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8158. downloads.
  8159. * src/FtpNegotiationCommand.cc
  8160. Suppressed wrong message when finding PreDownloadHandler
  8161. * src/RequestGroup.cc
  8162. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Updated usage
  8164. * src/version_usage.cc
  8165. Updated man page
  8166. * doc/aria2c.1.txt
  8167. * doc/aria2c.1
  8168. Updated po files
  8169. * po/aria2c.pot
  8170. * po/*.po
  8171. * po/*.gmo
  8172. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8173. Eliminated g++-4.2 warning
  8174. * src/DownloadHandlerConstants.{h, cc}
  8175. * src/Util.cc
  8176. * test/MetaFileUtilTest.cc
  8177. * test/PStringBuildVisitorTest.cc
  8178. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8179. * src/RequestGroup.cc
  8180. * src/BtCheckIntegrityEntry.cc
  8181. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Fixed a2io.h
  8183. * src/a2io.h
  8184. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Added direct I/O support. The current implementation uses O_DIRECT,
  8186. which is not posix standard and is tested on linux 2.6.21.
  8187. Currently only file allocation uses direct I/O.
  8188. * src/SingleFileAllocationIterator.{h, cc}
  8189. * test/SingleFileAllocationIteratorTest.cc
  8190. * src/MultiFileAllocationIterator.{h, cc}
  8191. * test/MultiFileAllocationIteratorTest.cc
  8192. * src/BinaryStream.h
  8193. * src/DiskWriter.h
  8194. * src/AbstractDiskWriter.{h, cc}
  8195. * src/ByteArrayDiskWriter.h
  8196. * src/DiskAdaptor.h
  8197. * src/AbstractSingleDiskAdaptor.{h, cc}
  8198. * src/MultiDiskAdaptor.{h, cc}
  8199. * src/FileAllocationEntry.cc
  8200. * src/Util.{h, cc}
  8201. * src/OptionHandlerFactory.cc
  8202. * src/prefs.h
  8203. * src/version_usage.cc
  8204. * src/option_processing.cc
  8205. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8206. handleException.
  8207. * src/MultiFileAllocationIterator.cc
  8208. Added EINTR handling
  8209. * src/SocketCore.cc
  8210. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Updated usage
  8212. * src/version_usage.cc
  8213. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Applied Ross's patch for MinGW port.
  8215. * src/DownloadEngine.h
  8216. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Set Content-Type to SingleFileDownloadContext when http response is
  8218. received.
  8219. * src/HttpResponseCommand.cc
  8220. * src/HttpResponse.{h, cc}
  8221. * test/HttpResponseTest.cc
  8222. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Rewritten to add content-type support.
  8224. * src/DownloadHandler.{h, cc}
  8225. * src/BtPostDownloadHandler.{h, cc}
  8226. * test/BtPostDownloadHandlerTest.cc
  8227. * src/MetalinkPostDownloadHandler.{h, cc}
  8228. * test/MetalinkPostDownloadHandlerTest.cc
  8229. * src/PostDownloadHandler.{h, cc}
  8230. * src/DownloadHandlerConstants.{h, cc}
  8231. * src/RequestGroup.cc
  8232. * src/HttpResponseCommand.cc
  8233. * src/FtpNegotiationCommand.cc
  8234. * src/SingleFileDownloadContext.{h, cc}
  8235. * src/RequestGroup.h
  8236. * src/RequestGroupCriteria.h
  8237. * src/ContentTypeRequestGroupCriteria.h
  8238. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8239. If it is give, metalink/torrent file is not written to the disk, but
  8240. just is kept in memory. Parsing is occurred on memory.
  8241. * src/MetalinkHelper.{h, cc}
  8242. * src/MetalinkProcessor.h
  8243. * src/Xml2MetalinkProcessor.{h, cc}
  8244. * test/Xml2MetalinkProcessorTest.cc
  8245. * src/DownloadHandlerFactory.{h, cc}
  8246. * test/DownloadHandlerFactoryTest.cc
  8247. * src/PreDownloadHandler.{h, cc}
  8248. * src/OptionHandlerFactory.cc
  8249. * src/DefaultBtContext.{h, cc}
  8250. * test/DefaultBtContextTest.cc
  8251. * src/version_usage.cc
  8252. * src/Metalink2RequestGroup.{h, cc}
  8253. * src/RequestGroup.{h, cc}
  8254. * src/a2functional.h
  8255. * test/a2functionalTest.cc
  8256. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8257. * src/OptionHandlerImpl.h
  8258. * src/prefs.h
  8259. * src/Util.{h, cc}
  8260. * test/UtilTest.cc
  8261. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8262. memory usage.
  8263. * src/RequestGroupMan.{h, cc}
  8264. * src/DownloadEngine.cc
  8265. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8266. WeakHandle to SharedHandle because WeakHandle could be null.
  8267. * src/RequestGroup.{h, cc}
  8268. * src/DownloadEngineFactory.cc
  8269. * src/DownloadResult.h
  8270. Set totalLength after download finished
  8271. * src/UnknownLengthPieceStorage.{h, cc}
  8272. Keep torrent file specified in metalink in memory.
  8273. * src/Metalink2RequestGroup.cc
  8274. * src/BtDependency.cc
  8275. * src/TrueRequestGroupCriteria.h
  8276. Fixed the bug: seekg is used where seekp should be used.
  8277. * src/ByteArrayDiskWriter.cc
  8278. * test/ByteArraydiskWriterTest.cc
  8279. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Fixed syntax error
  8281. * test/SequenceTest.cc
  8282. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8284. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8285. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8286. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8287. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Added the check to see whether ares_host_callback accepts timeouts
  8289. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8290. * src/NameResolver.{h, cc}
  8291. * m4/libcares.m4
  8292. * configure.ac: Set C++ for language choice.
  8293. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Fixed: compilation fails without c-ares/ares
  8295. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8296. Generate http/ftp commands only when download is incomplete.
  8297. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8298. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Corrected typo. Examples are removed since they are available in man
  8300. page.
  8301. * src/version_usage.cc
  8302. Updated man page.
  8303. * doc/aria2c.1
  8304. * doc/aria2c.1.txt
  8305. * doc/makeman: Commented out sed command.
  8306. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Throw DlAbortEx when a remote file is not found.
  8308. * src/HttpResponse.cc
  8309. * src/FtpNegotiationCommand.cc
  8310. * src/message.h
  8311. Overwrite an existing file if --allow-overwrite=true is given.
  8312. * src/RequestGroup.cc
  8313. Removed unused functions
  8314. * src/AbstractCommand.h
  8315. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Removed 'extern' from 'extern typedef ...' in src/*.h
  8317. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. Updated usage
  8319. * src/version_usage.cc
  8320. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Trim announce URL
  8322. * src/DefaultBtContext.cc
  8323. * test/ShaVisitorTest.cc
  8324. Trim argument s. Give trimed s to exception constructor.
  8325. * src/Util.cc (parseInt)(parseLLInt)
  8326. * test/UtilTest.cc
  8327. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Set precision back to 1.
  8329. * src/ConsoleStatCalc.cc (calculateStat)
  8330. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Replaced strtol with Util::parseInt
  8332. * src/ChunkedEncoding.cc
  8333. * src/HttpConnection.cc
  8334. * src/CookieBoxFactory.cc
  8335. * src/ParameterizedStringParser.cc
  8336. * src/Util.cc
  8337. * test/UtilTest.cc
  8338. * test/OptionHandlerTest.cc
  8339. * src/Request.cc
  8340. Throw exception when empty string is given. The message for exception
  8341. changed.
  8342. * src/Util.cc (parseInt)(parseLLInt)
  8343. * src/message.h
  8344. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8346. set to 1.
  8347. * src/ConsoleStatCalc.cc (calculateStat)
  8348. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Preallocate non-requested file which is adjacent forward to requested
  8350. file('requested' files means the files given in --select-file option)
  8351. if they share a same piece.
  8352. This fixes long pause in the file system which doesn't support sparse
  8353. files like FAT32 while downloading.
  8354. * src/MultiFileAllocationIterator.{h, cc}
  8355. * test/MultiFileAllocationIteratorTest.cc
  8356. * src/FileEntry.{h, cc}
  8357. Removed unused _option.
  8358. * src/MultiDiskAdaptor.h
  8359. * test/MultiDiskAdaptorTest.cc
  8360. * src/DefaultPieceStorage.cc
  8361. Set the default value of --seed-ratio to 1.0.
  8362. If 0.0 is given, then seeding continues regardless of share ratio.
  8363. * src/version_usage.cc
  8364. * src/option_processing.cc
  8365. * src/BtSetup.cc
  8366. * doc/aria2c.1.txt
  8367. * doc/aria2c.1
  8368. Fixed: Selective download is not working in BitTorrent
  8369. * src/RequestGroup.cc
  8370. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8371. * src/PieceStorage.h
  8372. * test/MockPieceStorage.h
  8373. * src/UnknownLengthPieceStorage.h
  8374. * src/DefaultPieceStorage.{h, cc}
  8375. * src/Metalink2RequestGroup.cc
  8376. * src/RequestGroup.cc
  8377. * src/Sequence.h
  8378. * test/SequenceTest.cc
  8379. * src/IntSequence.h
  8380. * src/message.h
  8381. * src/Util.{h, cc}
  8382. * test/UtilTest.cc
  8383. Added new function 'parse' to catch exception thrown by subclass's
  8384. parseArg
  8385. * src/OptionHandler.h
  8386. * src/OptionParser.cc
  8387. * src/NameMatchOptionHandler.h
  8388. * src/OptionHandlerImpl.h
  8389. * test/OptionHandlerTest.cc
  8390. Added IntegerRangeOptionHandler. Used for --listen-port and
  8391. --select-file. Now --listen-port accepts range of port.
  8392. * src/OptionHandlerFactory.cc
  8393. * src/version_usage.cc
  8394. * src/OptionHandlerImpl.h
  8395. * src/option_processing.cc
  8396. * src/BtSetup.cc
  8397. * src/PeerListenCommand.{h, cc}
  8398. * doc/aria2c.1.txt
  8399. * doc/aria2c.1
  8400. Implemented operator< for Exception class to provide easy way to print
  8401. exception stack trace.
  8402. * src/Exception.{h, cc}
  8403. * src/main.cc
  8404. * src/option_processing.cc
  8405. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. * src/version_usage.cc
  8407. (showVersion): Reworked.
  8408. (showUsage): Added examples.
  8409. Removed Hint for total length and file name.
  8410. * src/Metalink2RequestGroup.cc
  8411. * src/RequestGroup.{h, cc}
  8412. * src/HttpResponseCommand.cc
  8413. * src/FtpNegotiationCommand.cc
  8414. Now --follow-torrent and --follow-metalink option work properly.
  8415. * src/RequestGroup.cc
  8416. Updated man page
  8417. * doc/aria2c.1.txt
  8418. * doc/aria2c.1
  8419. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Removed.
  8421. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8422. Use Segment::operator==()
  8423. * src/HttpConnection.cc
  8424. * src/Segment.h
  8425. Updated usage
  8426. * src/version_usage.cc
  8427. Added EINTR treatment.
  8428. * src/SocketCore.cc
  8429. * src/AbstractDiskWriter.cc
  8430. Rewritten.
  8431. * src/Util.cc (rangedFileCopy)
  8432. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Fixed typo.
  8434. * src/version_usage.cc
  8435. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Implemented. Now -c option works fine.
  8437. * src/DefaultPieceStorage.cc (markPiecesDone)
  8438. * test/DefaultPieceStorageTest.cc
  8439. Removed.
  8440. * src/SegmentMan.{h, cc}
  8441. (markAllPiecesDone)
  8442. (markPieceDone)
  8443. Synchronized po files with
  8444. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8445. * src/fr.po
  8446. * src/ru.po
  8447. * src/de.po
  8448. * src/ja.po
  8449. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Added ifdef and some modifications to compile without BitTorrent,
  8451. Metalink, MessageDigest
  8452. support.
  8453. * src/PieceHashCheckIntegrityEntry.cc
  8454. * src/MetalinkEntry.h
  8455. * src/version_usage.cc
  8456. * src/main.cc
  8457. * src/DownloadEngine.{h, cc}
  8458. * src/Metalink2RequestGroup.cc
  8459. * src/Peer.cc
  8460. * src/RequestGroup.cc
  8461. * src/MetalinkHelper.cc
  8462. * test/DefaultPieceStorageTest.cc
  8463. * test/MetalinkPostDownloadHandlerTest.cc
  8464. * test/Metalink2RequestGroupTest.cc
  8465. Hide TOTAL SPD when all downloads complete.
  8466. * src/ConsoleStatCalc.cc
  8467. Log target system information.
  8468. * src/main.cc
  8469. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Now --metalink-location accepts a comma-deliminated list of locations.
  8471. * src/MetalinkEntry.{h, cc}
  8472. * test/MetalinkEntryTest.cc
  8473. * src/version_usage.cc
  8474. * src/Metalink2RequestGroup.cc
  8475. * src/Xml2MetalinkProcessor.cc
  8476. * test/Xml2MetalinkProcessorTest.cc
  8477. * doc/aria2c.1.txt
  8478. * doc/aria2c.1
  8479. * src/Util.cc (toUpper)(toLower): Rewritten.
  8480. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Added the ability to detect duplicate download entry which is about to
  8482. download the same file other RequestGroup is downloading.
  8483. * src/RequestGroup.cc
  8484. * src/HttpResponseCommand.cc
  8485. * src/FtpNegotiationCommand.cc
  8486. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Recalculates download progress when loading a control file,
  8488. if the piece length of DownloadContext is different from the one saved
  8489. in the control file. Currently in-flight pieces are ignored.
  8490. * src/DefaultBtProgressInfoFile.cc
  8491. * test/DefaultBtProgressInfoFileTest.cc
  8492. * src/Util.{h, cc}
  8493. * test/UtilTest.cc
  8494. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Do not rotate tiers in announce-list.
  8496. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8497. AnnounceList::allTiersFailed() used instead to detect whether all
  8498. tiers are tried and failed.
  8499. * test/DefaultBtAnnounceTest.cc
  8500. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8501. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8502. * test/AnnounceListTest.cc
  8503. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8504. clause. Catch RecoverableException instead of DlRetryEx instead.
  8505. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Implemented checksum validation feature(1 checksum for each file)
  8507. The validation takes place after the download.
  8508. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8509. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8510. * src/CheckIntegrityCommand.cc: Changed log message.
  8511. * src/Metalink2RequestGroup.cc: Set checksum to
  8512. SingleFileDownloadContext.
  8513. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8514. PieceHashCheckIntegrity class.
  8515. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8516. PieceHashCheckIntegrity class.
  8517. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8518. * src/IteratableValidator.h: New class.
  8519. * src/message.h
  8520. * src/CheckIntegrityEntry.{h, cc}
  8521. * src/IteratableChunkChecksumValidator.{h, cc}
  8522. * src/SingleFileDownloadContext.h
  8523. * src/DownloadCommand.cc
  8524. --allow-overwrite=true is no longer needed to check file integrity
  8525. before download in BitTorrent download.
  8526. * src/RequestGroup.cc (getInitialCommand)
  8527. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8528. throws exception.
  8529. * src/RequestGroupMan.cc (getInitialCommands)
  8530. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. urlencode the given url inside Request::parseUrl(...)
  8532. * src/Request.{h, cc}
  8533. * src/Util.{h, cc}
  8534. * test/RequestTest.cc
  8535. Removed #!metalink3! notation support because it is deleted from
  8536. the metalink specification.
  8537. * src/Request.{h, cc}
  8538. * test/RequestTest.cc
  8539. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Don't connect server before checking file integrity at startup, if
  8541. filesize and output file path are known.
  8542. * src/AbstractCommand.cc
  8543. * src/StreamFileAllocationEntry.cc
  8544. * src/Metalink2RequestGroup.cc
  8545. * src/RequestGroup.{h, cc}
  8546. * src/HttpResponseCommand.cc
  8547. * src/FtpNegotiationCommand.cc
  8548. Added DownloadFailureException. If it is thrown, RequestGroup should
  8549. halt.
  8550. * src/AbstractCommand.cc
  8551. * src/DownloadFailureException.h
  8552. * src/RequestGroup.cc
  8553. Catch RecoverableException, instead of DlAbortEx.
  8554. * src/RequestGroupMan.cc
  8555. * src/FillRequestGroupCommand.cc
  8556. * src/MetaFileUtil.cc
  8557. * src/IteratableChunkChecksumValidator.cc
  8558. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8559. getGID())
  8560. * src/CheckIntegrityCommand.cc
  8561. * src/message.h
  8562. Print gid instead of idx.
  8563. * src/RequestGroupMan.cc
  8564. Removed exception throwers declaration.
  8565. * src/DirectDiskAdaptor.{h, cc}
  8566. * src/SocketCore.{h, cc}
  8567. * src/MultiDiskAdaptor.{h, cc}
  8568. * src/HttpConnection.{h, cc}
  8569. * src/HttpResponse.{h, cc}
  8570. * src/DiskAdaptor.{h, cc}
  8571. * src/CopyDiskAdaptor.{h, cc}
  8572. * src/MultiDiskAdaptor.{h, cc}
  8573. * src/HttpHeaderProcessor.{h, cc}
  8574. * src/AbstractSingleDiskAdaptor.{h, cc}
  8575. * src/Util.{h, cc}
  8576. * test/UtilTest.cc
  8577. * src/DefaultDiskWriter.{h, cc}
  8578. * src/FtpConnection.{h, cc}
  8579. * src/AbstractDiskWriter.{h, cc}
  8580. Removed duplicate code.
  8581. * src/StreamCheckIntegrityEntry.cc
  8582. Removed unnecessary include.
  8583. * src/DiskWriter.h
  8584. Included Exception.h
  8585. * src/option_processing.cc
  8586. Included 2 files and added doc
  8587. * src/TrackerWatcherCommand.cc
  8588. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8589. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Changed CheckIntegrityEntry interface so that it can define
  8591. the action when all the chunk checksums are valid.
  8592. * src/CheckIntegrityEntry.h
  8593. * src/StreamCheckIntegrityEntry.{h, cc}
  8594. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8595. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8596. to exit rather than doing seeding. So, it would be good to toggle this
  8597. behavior.
  8598. * src/CheckIntegrityCommand.cc
  8599. * src/AbstractCommand.cc
  8600. * src/RequestGroup.cc
  8601. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Reflect the download length of in-flight pieces.
  8603. It makes the download length readout more precise.
  8604. * src/DefaultPieceStorage.{h, cc}
  8605. * test/DefaultPieceStorageTest.cc
  8606. * src/a2functional.h
  8607. * test/a2functionalTest.cc
  8608. Lower CPU load when --max-download-limit is used.
  8609. There is up and down in speed indicator when enabling
  8610. http-pipelining but a download goes well. I think the problem is that
  8611. because http-pipelining is enabled, DownloadCommand is created for
  8612. each segment and in its constructor, PeerStat::downloadStart() is
  8613. called. In PeerStat::downloadStart(), speed calculation object is
  8614. reseted, which makes download speed zero.
  8615. * src/DownloadCommand.cc
  8616. Rewritten using accumulate.
  8617. * src/RequestGroupMan.cc (calculateStat)
  8618. Code clearnup.
  8619. * src/FtpNegotiationCommand.cc
  8620. * src/HttpResponseCommand.cc
  8621. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Fixed: Can not resume: aria2 reports download already finished.
  8623. * src/AbstractCommand.{h, cc}
  8624. * src/HttpResponseCommand.cc
  8625. * src/FtpNegotiateCommand.cc
  8626. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Now a file is stored in the directory specified in .metalnk file
  8628. (file[@name]).
  8629. * src/Metalink2RequestGroup.cc
  8630. Create the directory structure when opening the file if it doesn't
  8631. exist.
  8632. * src/AbstractDiskWriter.cc
  8633. * src/Util.{h, cc}
  8634. * src/File.h
  8635. * test/UtilTest.cc
  8636. Removed file name comparison
  8637. * src/Metalink2RequestGroup.cc
  8638. * src/HttpResponseCommand.cc
  8639. Rewritten using Util::mkdirs()
  8640. * src/FileEntry.cc (setupDir)
  8641. * test/FileEntryTest.cc
  8642. Updated doc
  8643. * src/SingleFileDownloadContext.h
  8644. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Now SleepCommand dispatches nextCommand when halt is requested.
  8646. It avoids a possible long wait after hitting CTRL-C.
  8647. * src/SleepCommand.{h, cc}
  8648. * src/RequestGroupAware.{h, cc}
  8649. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8651. to open listen port, then remove the port number from the tracker
  8652. request.
  8653. * src/DefaultBtAnnounce.cc
  8654. * test/DefaultBtAnnounceTest.cc
  8655. * test/MockPieceStorage.h
  8656. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8657. them more testable.
  8658. * src/DefaultBtAnnounce.{h, cc}
  8659. * src/DefaultBtContext.{h, cc}
  8660. * src/Util.{h, cc}
  8661. * test/DefaultBtAnnounceTest.cc
  8662. * test/DefaultBtContextTest.cc
  8663. * test/UtilTest.cc
  8664. Added 'B' to upload bytes readout.
  8665. * src/ConsoleStatCalc.cc
  8666. Now the listen port for BitTorrent download is opened when it is
  8667. needed.
  8668. * src/DownloadEngineFactory.cc
  8669. * src/BtSetup.{h, cc}
  8670. * src/PeerListenCommand.{h, cc}
  8671. Now an exception thrown while parsing tracker response is now logged.
  8672. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8673. called, which means no retry is made in this case, assuming a tracker
  8674. has a problem.
  8675. * src/TrackerWatcherCommand.cc
  8676. Fixed: downloading a file whose length is unkown fails.
  8677. * src/DownloadCommand.cc
  8678. Simplified prepareForNextSegment()
  8679. * src/DownloadCommand.cc
  8680. Updated
  8681. * po/POTFILES.in
  8682. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Re-implemented a file listing for Metalink, which was dropped while
  8684. http/ftp/torrent integration was being implemented.
  8685. * src/MetalinkHelper.{h, cc}: New class.
  8686. * test/MetalinkHelperTest.cc
  8687. * src/main.cc
  8688. * src/Metalink2RequestGroup.cc
  8689. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. Added the ability to display the detailed torrent file information.
  8691. Now -S option gives not only a file listing, but also total download
  8692. length, info hash, announce URI, piece length, the number of pieces,
  8693. and mode(single or multi-torrent).
  8694. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8695. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8696. KiB)
  8697. * test/UtilTest.cc
  8698. * src/main.cc
  8699. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Added ftp://USER:PASSWD@Servername automatic parsing.
  8701. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8702. _password. Recognize username and password in URI.
  8703. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8704. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8705. * src/RequestFactory.{h, cc}: Removed.
  8706. * src/AuthConfigFactory.{h, cc}: New class.
  8707. * src/FtpConnection.cc: Use AuthConfigFactory.
  8708. * src/HttpRequest.cc: Use AuthConfigFactory.
  8709. * test/HttpRequestTest.cc: Updated.
  8710. * test/RequestTest.cc: Updated.
  8711. * test/AuthConfigFactoryTest.cc: New class.
  8712. * test/RequestFactoryTest.cc: Removed.
  8713. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Use RequestGroup::allDownloadFinished() to decide whether the control
  8715. file should be removed or saved.
  8716. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8717. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8718. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Use File::renameTo()
  8720. * src/DefaultBtProgressInfoFile.cc
  8721. Added --no-file-allocation-limit command-line option.
  8722. * src/version_usage.cc
  8723. * src/option_processing.cc
  8724. * src/OptionHandlerFactory.cc
  8725. * src/RequestGroup.{h, cc}
  8726. * src/BtCheckIntegrityEntry.cc
  8727. * src/StreamCheckIntegrityEntry.cc
  8728. * src/prefs.h
  8729. * doc/aria2c.1.txt
  8730. * doc/aria2c.1
  8731. Now prealloc is the default value for --file-allocation option.
  8732. * src/version_usage.cc
  8733. * src/option_processing.cc
  8734. * doc/aria2c.1.txt
  8735. * doc/aria2c.1
  8736. Don't URL-encode user-agent.
  8737. * src/HttpRequest.cc
  8738. Updated translations
  8739. * po/LINGUAS: Added nl for Dutch translation.
  8740. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8741. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8742. * po/POTFILES.in: Updated.
  8743. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Added the ability to recognize url-list in a torrent file.
  8745. The retrieved URLs are attached to the corresponding FileEntry.
  8746. * src/DefaultBtContext.{h, cc}
  8747. * src/FileEntry.{h, cc}
  8748. * test/DefaultBtContextTest.cc
  8749. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8751. after the download finishes.
  8752. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8754. the data smaller than block length.
  8755. A block length can be specified by constructor's argument.
  8756. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8757. Get a missing piece in the range of given FileEntry. This function is
  8758. not used in the program yet.
  8759. * src/Util.h: Added some macros.
  8760. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Added HTTP/1.1 keep alive and pipelining support.
  8762. See --enable-http-keep-alive and --enable-http-pipelining option.
  8763. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8764. Segment.
  8765. * src/HttpDownloadCommand.{h, cc}
  8766. * src/OptionHandlerFactory.cc
  8767. * src/HttpConnection.{h, cc}
  8768. * src/version_usage.cc
  8769. * src/HttpInitiateConnectionCommand.cc
  8770. * src/FtpInitiateConnectionCommand.cc
  8771. * src/Segment.h
  8772. * src/HttpRequestCommand.{h, cc}
  8773. * src/option_processing.cc
  8774. * src/prefs.h
  8775. * src/HttpResponseCommand.cc
  8776. * src/SegmentMan.{h, cc}
  8777. * src/FtpNegotiateCommand.cc
  8778. * src/HttpProxyResponseCommand.cc
  8779. * src/Request.cc
  8780. * src/HttpRequest.cc
  8781. * src/DownloadCommand.cc
  8782. * test/HttpRequestTest.cc
  8783. * test/RequestTest.cc
  8784. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8786. finished.
  8787. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8789. catching it inside the method.
  8790. When no file entry is found in a metalink without querying user
  8791. preferences, throw the exception with the error message that suggests
  8792. metalink file is probably broken.
  8793. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8794. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8796. processed.
  8797. * src/RequestGroupMan.cc (removeStoppedGroup)
  8798. Added debug message.
  8799. * src/BtPostDownloadHandler.cc
  8800. * src/MetalinkPostDownloadHandler.cc
  8801. * src/PostDownloadHandler.{h, cc}
  8802. * src/RequestGroup.cc
  8803. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8805. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8807. stops and there are any unfinished or in-progress downloads.
  8808. Added the legend of "stat".
  8809. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Throw exception when chunck checksum verification fails.
  8811. * src/DownloadCommand.cc (validatePieceHash): New function.
  8812. * src/PiecedSegment.{h, cc} (clear): New function.
  8813. * src/GrowSegment.{h, cc} (clear): New function.
  8814. * src/Segment.h (clear): New function.
  8815. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8816. * test/SegmentTest.cc
  8817. * test/GrowSegmentTest.cc
  8818. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Do not send referer when redirected.
  8820. * src/Request.cc (redirectUrl)
  8821. * test/RequestTest.cc
  8822. * test/HttpRequestTest.cc
  8823. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Implemented BitTorrent/http/ftp integrated download.
  8825. I've rewritten lots of files and now some headers have forward
  8826. class declarations to reduce compile time.
  8827. The implementation is extremely alpha stage, I recommend to use this
  8828. for testing purpose only.
  8829. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Fixed the compilation error on 64bit platform.
  8831. * test/HttpHeaderProcessorTest.cc
  8832. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. Merged Ross's patch that fixes compilation problem in MinGW
  8834. * test/DefaultBtProgressInfoFileTest.cc
  8835. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Updated fr.po by sebone
  8837. * po/fr.po
  8838. Updated man page.
  8839. * doc/aria2c.1.txt
  8840. * Release 0.11.3
  8841. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8843. failure in Metalink.
  8844. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Automatically save *.aria2 control file of http/ftp download in every
  8846. 60 seconds.
  8847. * src/AutoSaveCommand.{h, cc}: New class.
  8848. * src/TimeBasedCommand.{h, cc}: New class.
  8849. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8850. Disable parameterized URI support by default. Added -P option to
  8851. enable the feature.
  8852. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8853. * src/OptionHandlerFactory.cc
  8854. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8855. Updated Japanese translation.
  8856. * po/ja.po
  8857. Updated man page.
  8858. * doc/aria2c.1.txt
  8859. * Release 0.11.3-rc
  8860. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8862. it is successful, then renamed to *.aria2.
  8863. This prevents *.aria2 file from being truncated or corrupted when
  8864. file system becomes out of space.
  8865. * src/DefaultBtProgressInfoFile.cc (save)
  8866. * src/SegmentMan.cc (save)
  8867. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8868. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Reduced the fragmentation of bitfield in http/ftp download.
  8870. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8871. * test/BitfieldManTest.cc
  8872. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8873. Added the ability to disable segmented download in .metalink.
  8874. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8875. 'url' tag.
  8876. * src/MetalinkEntry.{h, cc}
  8877. * src/RequestResource.{h, cc}
  8878. * src/MetalinkRequestInfo.cc
  8879. * src/Xml2MetalinkProcessor.cc
  8880. * test/Xml2MetalinkProcessorTest.cc
  8881. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Added parameterized URI support.
  8883. * src/main.cc: -Z option added.
  8884. * src/OptionHandlerFactory.cc
  8885. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8886. * src/PStringDatum.h: New class.
  8887. * src/PStringSegment.{h,cc}: New class.
  8888. * src/PStringNumLoop.h: New class.
  8889. * src/PStringSelect.h: New class.
  8890. * src/NumberDecorator.h: New class.
  8891. * src/FixedWidthNumberDecorator.h: New class.
  8892. * src/AlphaNumberDecorator.h: New class.
  8893. * src/PStringVisitor.h: New class.
  8894. * src/PStringBuildVisitor.{h,cc}: New class.
  8895. * src/ParameterizedStringParser.{h,cc}: New class.
  8896. * src/Util.{h,cc}
  8897. (isNumber): New function.
  8898. (isLowercase): New function.
  8899. (isUppercase): New function.
  8900. (alphaToNum): New function.
  8901. * test/ParameterizedStringParserTest.cc: New class.
  8902. * test/AlphaNumberDecoratorTest.cc: New class.
  8903. * test/PStringBuildVisitorTest.cc: New class.
  8904. * test/UtilTest.cc
  8905. (testIsNumber): New function.
  8906. (testIsLowercase): New function.
  8907. (testIsUppercase): New function.
  8908. (testAlphaToNum): New function.
  8909. Added '\n' after the error message
  8910. * src/RequestInfo.h (printDownloadAbortMessage)
  8911. Added auto file renaming feature in http(s)/ftp download.
  8912. * src/main.cc: Added --auto-file-renaming command-line option.
  8913. * src/OptionHandlerFactory.cc
  8914. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8915. * src/RequestGroup.{h, cc}
  8916. (shouldCancelDownloadForSafety): Rewritten
  8917. (tryAutoFileRenaming): New function.
  8918. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8919. * src/HttpResponseCommand.cc
  8920. (executeInternal): Removed the call to RequestGroupMan::
  8921. isSameFileBeingDownloaded()
  8922. * src/FtpNegotiateCommand.cc
  8923. (recvSize): Removed the call to RequestGroupMan::
  8924. isSameFileBeingDownloaded()
  8925. * test/RequestGroupTest.cc: New class.
  8926. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8928. IO.
  8929. * src/DefaultBtProgressInfoFile.cc
  8930. * src/MetaFileUtil.cc
  8931. * src/SimpleLogger.cc
  8932. * src/SegmentMan.cc
  8933. * src/Util.cc
  8934. * src/Platform.cc
  8935. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8937. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8939. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8940. Fixed the bug that prevents file allocation is not done when
  8941. dowloading multi-torrent file.
  8942. * src/AbstractDiskWriter.cc (openFile)
  8943. Increase the maximum number of -j option from 15 to 45.
  8944. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8945. Added fr.po, thanks to Charles Landemaine.
  8946. * po/fr.po
  8947. * po/LINGUAS
  8948. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8949. gcc 3.4.4 support:
  8950. * src/DefaultBtContext.cc: int32_t -> int
  8951. * src/main.cc: int -> int32_t, int32_t -> int
  8952. * src/messageDigest.h: uint32_t -> unsigned int
  8953. * src/NameResolver.h: int32_t -> int
  8954. * src/PeerConnection.cc: int -> int32_t
  8955. * src/SpeedCalc.cc: int32_t -> int
  8956. * src/TrackerUpdateCommand.h: int -> int32_t
  8957. * src/Util.cc: int32_t -> int
  8958. * src/Util.h: int32_t -> int
  8959. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8960. * test/AnnounceListTest.cc: int -> int32_t
  8961. * test/ChunkedEncodingTest.cc: int -> int32_t
  8962. * test/DataTest.cc: int -> int32_t
  8963. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8964. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8965. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8966. * test/FeatureConfigTest.cc: int -> int32_t
  8967. * test/MetalinkEntryTest.cc: int -> int32_t
  8968. * test/MockBtRequestFactory.h: int -> int32_t
  8969. * test/MockPieceStorage.h: int -> int32_t
  8970. * test/OptionTest.cc: int -> int32_t
  8971. * test/RequestTest.cc: int -> int32_t
  8972. * test/SegmentManTest.cc: int -> int32_t
  8973. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8974. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8975. Move sleep functions to Util class:
  8976. * src/Util.cc
  8977. (sleep): New function.
  8978. (usleep): New function.
  8979. * src/DownloadCommand.cc: sleep -> Util::sleep
  8980. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8981. MinGW build enhancements. The following files are added:
  8982. * src/timegm.{c,h}
  8983. Changes to support the above new files:
  8984. * configure.ac
  8985. * src/Makefile.am
  8986. * src/a2time.h
  8987. * src/Util.cc:
  8988. * src/strptime.c: Added support for %Z option.
  8989. Fixed MinGW non-blocking bug.
  8990. * src/SocketCore.cc
  8991. * src/HttpRequestCommand.cc
  8992. Miscellenous build fixes/enhancements.
  8993. * configure.ac: Added summary report.
  8994. * src/Platform.h: Tweaked #include's.
  8995. * src/a2netcompat.h: Tweaked #include's.
  8996. * src/strptime.h: Tweaked #include's.
  8997. * src/gai_strerror.c: Tweaked #include's.
  8998. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8999. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9000. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9001. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. Increased the initial connection size in BitTorrent download to 40.
  9003. * src/BtRuntime.h
  9004. Added the usage message of --peer-id-prefix option.
  9005. * src/main.cc
  9006. * Release 0.11.2
  9007. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. MessageDigestHelper is introduced in order to simplify the use
  9009. of message digest. Removed repeated code.
  9010. The message digest algorithm is now specified by string, like "sha1",
  9011. "md5".
  9012. * src/messageDigest.{h, cc}
  9013. * src/MessageDigestHelper.{h, cc}: New class.
  9014. * src/DefaultPieceStorage.cc
  9015. * src/DefaultBtContext.{h, cc}
  9016. (computeFastSet): New function.
  9017. (setInfoHash): Added for unit testing.
  9018. (setNumPieces): Added for unit testing.
  9019. * src/DefaultBtInteractive.cc
  9020. * src/BtPieceMessage.cc
  9021. * src/Peer.cc
  9022. * src/Checksum.h
  9023. * src/message.h
  9024. * src/IteratableChecksumValidator.h
  9025. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9026. inside it.
  9027. * src/SegmentMan.{h, cc}
  9028. (checkIntegrity): Removed.
  9029. * src/IteratableChunkChecksumValidator.{h, cc}
  9030. * src/Util.h
  9031. (sha1Sum): Removed.
  9032. (simpleMessageDigest): Removed.
  9033. (fileChecksum): Removed.
  9034. (computeFastSet): Removed.
  9035. * src/ShaVisitor.cc
  9036. * src/ChunkChecksum.h
  9037. * src/DownloadCommand.cc
  9038. Removed messageDigest virtual functions.
  9039. * src/MultiDiskAdaptor.{h, cc}
  9040. * src/DiskAdaptor.h
  9041. * src/ByteArrayDiskWriter.h
  9042. * src/DiskWriter.h
  9043. * src/DiskAdaptorWriter.h
  9044. * src/AbstractSingleDiskAdaptor.{h, cc}
  9045. * src/AbstractDiskWriter.{h, cc}
  9046. Fixed comilation error when message digest is disabled.
  9047. * src/MetalinkEntry.{h, cc}
  9048. * src/MetalinkRequestInfo.cc
  9049. Removed srandom and random.
  9050. * src/SimpleRandomizer.h
  9051. Added size() virtual function to DiskAdaptor
  9052. * src/MultiDiskAdaptor.h
  9053. Fixed the bug that causes that files are not opened correctly in
  9054. multi-file torrent.
  9055. * src/TorrentRequestInfo.cc
  9056. * src/MultiDiskAdaptor.cc
  9057. Added SHA256 support
  9058. * src/messageDigest.cc
  9059. * src/Xml2MetalinkProcessor.cc
  9060. Show supported message digest algorithms
  9061. * src/main.cc
  9062. Updated contact info.
  9063. * src/main.cc
  9064. Applied Ross's patch
  9065. * src/a2netcompat.h
  9066. * src/main.cc
  9067. Fixed the bug that prevents a remote metalink from not being processed
  9068. even if '-o foo.metalink' is specified.
  9069. * src/MetalinkRequestInfo.cc
  9070. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Merged Dan's patch:
  9072. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9073. Use va_copy to avoid core dump on amd64:
  9074. * src/SimpleLogger.cc
  9075. Updated contact info.
  9076. * src/main.cc
  9077. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9078. digest is not available.
  9079. * src/MetalinkEntry.h
  9080. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Make a2netcompat.h include a2io.h to fix compilation error:
  9082. * src/a2netcompat.h
  9083. * src/SocketCore.cc: Removed include of a2io.h
  9084. * src/Util.cc: Removed include of a2io.h
  9085. Gather time related functions to a2time.h:
  9086. * src/a2time.h: New file.
  9087. * src/DefaultPeerStorage.cc
  9088. * src/SimpleLogger.cc
  9089. * src/Util.{h, cc}
  9090. * src/SimpleRandomizer.h
  9091. * src/TimeA2.{h,cc}
  9092. * src/DownloadCommand.cc
  9093. * src/main.cc
  9094. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9095. a2netcompat.h:
  9096. * src/NameResolver.cc
  9097. Fixed compilation error without openssl:
  9098. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9099. Added default block to suppress compiler warnings:
  9100. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9101. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9102. MinGW build enhancements. The following files are added:
  9103. * src/gai_strerror.{c,h}
  9104. * src/gettimeofday.{c,h}
  9105. Changes to support the above new files:
  9106. * configure.ac
  9107. * src/Makefile.am
  9108. * src/a2netcompat.h
  9109. * src/TimeA2.cc
  9110. * src/DefaultPeerStorage.cc
  9111. * src/NameResolver.cc: removed mingw_strerror() function.
  9112. * src/SocketCore.cc: removed mingw_strerror() function.
  9113. Miscellaneous MinGW build fixes.
  9114. * src/a2io.h: Use _lseeki64() instead of lseek()
  9115. * src/common.h
  9116. * src/DefaultFileAllocator.cc
  9117. * src/GlowFileAllocator.cc
  9118. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9119. * src/NameResolver.cc
  9120. (callback): Changed int32_t to int.
  9121. (resolve): Changed int32_t to int.
  9122. * src/Platform.cc
  9123. * src/Platform.h
  9124. * test/MultiDiskWriterTest.cc
  9125. * test/PeerMessageUtilTest.cc
  9126. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9127. Other enhancements and fixes.
  9128. * src/HttpRequestCommand.cc
  9129. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9130. * src/SocketCore.cc:
  9131. (error): New function to abstract errno/WSAGetLastError().
  9132. (errorMsg): New function to abstract errno/WSAGetLastError().
  9133. (initiateSecureConnection): Added more detailed error reporting.
  9134. * src/SocketCore.h: Added private variable blocking, to allow
  9135. proper handling of OpenSSL psuedo-errors.
  9136. * src/message.h
  9137. (EX_SSL_INIT_FAILURE)
  9138. (EX_SSL_IO_ERROR)
  9139. (EX_SSL_PROTOCOL_ERROR)
  9140. (EX_SSL_UNKNOWN_ERROR)
  9141. (EX_SSL_CONNECT_ERROR)
  9142. (EX_SOCKET_BLOCKING)
  9143. (EX_SOCKET_NONBLOCKING)
  9144. (EX_SOCKET_UNKNOWN_ERROR)
  9145. * src/Util.cc
  9146. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9147. reserved name.
  9148. (httpGMT): Fixed typo.
  9149. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. Merged Ross's win32 patch(manually)
  9151. In the course of merging, following files are added.
  9152. * src/strptime.{h,c}
  9153. * src/libgen.{h,c}
  9154. * src/inet_aton.{h,c}
  9155. * src/Platform.{h,cc}
  9156. * src/localtime_r.{h,c}
  9157. * src/getaddrinfo.{h,c}
  9158. I've gethered network related things, and put them to following file:
  9159. * src/a2netcompat.h
  9160. Also io related things are put to following file:
  9161. * src/a2io.h
  9162. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9163. * src/message.h
  9164. (MSG_ALLOCATION_COMPLETED)
  9165. (EX_TOO_LARGE_FILE)
  9166. (EX_SIZE_MISMATCH)
  9167. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9168. (EX_INVALID_CHUNK_CHECKSUM)
  9169. (EX_INVALID_RANGE_HEADER)
  9170. * src/FileAllocationCommand.cc
  9171. * src/HttpResponse.cc
  9172. * src/RequestGroup.cc
  9173. * src/MultiDiskAdaptor.cc
  9174. * src/OptionHandlerImpl.h
  9175. * src/HttpResponseCommand.cc
  9176. * src/FtpNegotiateCommand.cc
  9177. * src/IteratableChecksumValidator.cc
  9178. * src/SegmentMan.cc
  9179. * src/ChunkChecksumValidator.cc
  9180. Added Randomizer::getRandomNumber(long int)
  9181. * src/Randomizer.h (getRandomNumber)
  9182. * src/SimpleRandomizer.h (getRandomNumber)
  9183. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9184. * src/Util.cc (randomAlpha): Use this new function.
  9185. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Converted int's to in32_t. long long int's are also converted to
  9187. int64_t
  9188. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Fixed the bug that prevents cookies from being sent to the server
  9190. if the domain of cookie is FQDN and starts with ".".
  9191. * src/Cookie.cc (match)
  9192. To add the ability to change peer id.
  9193. * src/DefaultBtContext.h
  9194. (_peerIdPrefix): New variable
  9195. (setPeerIdPrefix): New function.
  9196. * src/torrentRequestInfo.cc
  9197. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9198. DefaultBtContext.
  9199. * src/main.cc (main): Added peer-id-prefix command-line option.
  9200. The usage message is not added yet.
  9201. * src/DefaultBtContext.cc
  9202. (generatePeerId): Use _peerIdPrefix.
  9203. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9204. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Fixed the bug that prevents filename in content-disposition from
  9206. being retrieved when filename is not quoted.
  9207. * src/Util.cc (getContentDispositionFilename)
  9208. Fixed the bug that causes infinate loop and memory leak when file open
  9209. operation failed.
  9210. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9211. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Fixed the bug that causes segfault when all URIs specified are
  9213. unsupported.
  9214. * src/RequestGroupMan.cc (getInitialCommands)
  9215. Check if RequestGroup::createNextCommand() returns empty list of
  9216. commands.
  9217. * src/RequestGroup.cc (createNextCommand)
  9218. Change log level from info to error so that users can notice that
  9219. an error occurred.
  9220. Fixed the bug that causes segfault when a zero-sized file is
  9221. downloaded.
  9222. * src/BitfieldMan.cc (isAllBitSet)
  9223. Return true if bitfieldLength is 0.
  9224. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. * src/main.cc
  9226. (showUsage): Added 3 usage examples for metalink download.
  9227. Replace MetalinkChunkChecksum with ChunkChecksum.
  9228. * src/MetalinkChunkChecksum.h: Removed.
  9229. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9230. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9231. * src/Xml2MetalinkProcessor.cc
  9232. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9233. * src/MetalinkRequestInfo.cc (execute)
  9234. * Release 0.11.1
  9235. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Reads URIs from stdin when "-i -" is specified.
  9237. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9238. * src/UriListParser.h, src/UriListParser.cc: New class.
  9239. * src/StreamUriListParser.h: New class.
  9240. * src/FileUriListParser.h: New class.
  9241. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9242. instead of UriFileListParser.
  9243. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Made console readout more readable.
  9245. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9246. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Fix the bug that causes -s option not to work.
  9248. * src/main.cc (main)
  9249. * src/a2algo.h: New file.
  9250. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Create directory structure specified in metalink file.
  9252. * src/RequestGroup.h, src/RequestGroup.cc
  9253. (initAndOpenFile): Create a directory to store files if it does not
  9254. exist.
  9255. (getDir): New function.
  9256. Added ETA and download speed for an individual file to readout.
  9257. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9258. * src/RequestGroup.h
  9259. (calculateDownloadSpeed): New function.
  9260. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Made -S option work with metalink file and provided selective download
  9262. to metalink.
  9263. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9264. (filename): Removed.
  9265. (file): New variable.
  9266. (size): Removed.
  9267. (operator=): Updated.
  9268. (getPath): New function.
  9269. (getLength): New function.
  9270. (toFileEntry): New function.
  9271. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9272. (execute): Use toStream.
  9273. (showFileEntry): Removed.
  9274. * src/MetalinkRequestInfo.h
  9275. (targetFiles): New variable.
  9276. (setTargetFiles): New variable.
  9277. * src/MetalinkRequestInfo.cc
  9278. (execute): Added the ability to print file information included in
  9279. a metalink file.
  9280. Added selective download mode to metalink.
  9281. * src/main.cc
  9282. (showUsage): Updated to denote that -S and --select-file options are
  9283. applicable to metalink.
  9284. * src/FileEntry.h
  9285. (operator=): New function.
  9286. (getBasename): New function.
  9287. (getDirname): New function.
  9288. * src/Util.h, src/Util.cc
  9289. (toStream): New function.
  9290. * src/Xml2MetalinkProcessor.cc: Updated.
  9291. Made aria2 work with metalink with directory structure.
  9292. * src/File.h, src/File.cc
  9293. (getBasename): New function.
  9294. (getDirname): New function.
  9295. * src/RequestGroup.h, src/RequestGroup.cc
  9296. (_topDir): New variable.
  9297. (setTopDir): New function.
  9298. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9299. Rewrote HTTP header parsing with stringstream.
  9300. * src/HttpConnection.h, src/HttpConnection.cc
  9301. (HttpRequestEntry): New class.
  9302. (headerBuf): Removed.
  9303. (headerBufLength): Removed.
  9304. (outstandingHttpRequests): Now its element type is
  9305. HttpRequestEntryHandle.
  9306. (findEndOfHeader): Removed.
  9307. (receiveResponse): Rewritten.
  9308. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9309. Updated doc for -j option to notice that it should be used with -i
  9310. option.
  9311. * src/main.cc (showUsage)
  9312. Removed unused classes.
  9313. * src/RequestInfo.h
  9314. (FileInfo): Removed.
  9315. (checksum): Removed.
  9316. (fileInfo): Removed.
  9317. (setChecksum): Removed.
  9318. (getChecksum): Removed.
  9319. (getFileInfo): Removed.
  9320. Use ISO units.
  9321. * src/ConsoleDownloadEngine.cc
  9322. * src/TorrentConsoleDownloadEngine.cc
  9323. * src/Util.cc (abbrevSize)
  9324. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Added the default listening ports to the help message.
  9326. * src/main.cc (showUsage)
  9327. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Reduce the number of calls to gettimeofday to lower CPU load.
  9329. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9330. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9331. * src/Peer.h (calculateUploadSpeed): New function.
  9332. (calculateDownloadSpeed): New function.
  9333. * src/DefaultPeerStorage.cc
  9334. (CalculateStat): Added _now variable.
  9335. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9336. and Peer::calculateUploadSpeed(const struct timeval&)
  9337. Drop connection if no request or piece message is exchanged in
  9338. a certain interval.
  9339. * src/DefaultBtInteractive.h
  9340. (btRuntime): New variable.
  9341. (inactiveCheckPoint): New variable.
  9342. (checkActiveInteraction): New function.
  9343. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9344. request or piece message is received.
  9345. (checkActiveInteraction): New function.
  9346. (doInteractionProcessing): Call checkActiveInteraction.
  9347. Fixed the bug that causes remote Metalink and Torrent files are not
  9348. processed.
  9349. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9350. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Changed format of log file.
  9352. * src/SimpleLogger.cc
  9353. * Release 0.11.0
  9354. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. * src/AbstractCommand.cc
  9356. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9357. MSG_MAX_TRY from error to info.
  9358. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9359. * src/message.h
  9360. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9361. (MSG_DOWNLOAD_ABORTED): Added %s.
  9362. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9363. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9364. * src/PeerAbstractCommand.cc
  9365. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9366. * src/Request.h
  9367. (cookieBox): Made ShardHandle.
  9368. * src/RequestGroup.h, src/RequestGroup.cc
  9369. (createNextCommandWithAdj): New function.
  9370. * src/FileAllocationCommand.cc
  9371. (executeInternal): Use createNextCommandWithAdj().
  9372. * src/CheckIntegrityCommand.cc
  9373. (executeInternal): Use createNextCommandWithAdj().
  9374. Added --load-cookies command-option.
  9375. * src/OptionHandlerFactory.cc
  9376. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9377. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9378. Now aria2 can handle cookie's expiration date.
  9379. * src/Cookie.h (expires): Changed its type to time_t.
  9380. * src/main.cc: Added --load-cookies command-line option.
  9381. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9382. * src/Util.h, src/Util.cc (httpGMT): New function.
  9383. * src/Request.cc (Request): Initialize cookieBox using
  9384. CookieBoxFactory.
  9385. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9386. * src/CookieParser.h, src/CookieParser.cc: New class.
  9387. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9388. * src/HttpResponseCommand.cc
  9389. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9390. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9391. download.
  9392. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Added -j command-line option.
  9394. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9395. * src/main.cc
  9396. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9397. Rewritten using stringstream.
  9398. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9399. Rewritten using stringstream.
  9400. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Make download size shown in MB, KB.
  9402. * src/ConsoleDownloadEngine.h (sendStatistics)
  9403. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9404. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Accept incoming connections if download rate is low.
  9406. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9407. (_lowestSpeedLimit): New variable.
  9408. (setLowestSpeedLimit): New function.
  9409. (execute): Accept incoming connections if download rate is low.
  9410. MAX_PEERS is ignored in this case.
  9411. Disable PREF_OUT in multiple concurrent download:
  9412. * src/RequestGroup.h, src/RequestGroup.cc
  9413. (setUserDefinedFilename): New function.
  9414. * src/DownloadEngineFactory.cc
  9415. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9416. concurrent download.
  9417. * src/DefaultSegmentManFactory.cc
  9418. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9419. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9421. Added its overloaded method.
  9422. * src/RequestGroup.h
  9423. (_numConcurrentCommand): New variable.
  9424. (setNumConcurrentCommand): New function.
  9425. * src/RequestGroup.cc
  9426. Abort download if same file is being downloaded concurrently.
  9427. * src/RequestGroup.h, src/RequestGroupMan.cc
  9428. (isSameFileBeingDownloaded): New function.
  9429. * src/HttpResponseCommand.cc (executeInternal)
  9430. * src/FtpNegotiateCommand.cc (recvSize)
  9431. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9432. * main.cc: Added help message for -i option.
  9433. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9435. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9436. * src/MetalinkEntry.h
  9437. (checksum): Changed to ChecksumHandle
  9438. * src/MetalinkRequestInfo.cc
  9439. (checksum): Changed to ChecksumHandle
  9440. * src/File.cc
  9441. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9442. * src/common.h
  9443. (DIR_OPEN_MODE): New definition
  9444. * src/RequestGroup.cc
  9445. (prepareForNextAction): Added an argument.
  9446. * src/message.h
  9447. (MSG_GOOD_CHECKSUM): New definition
  9448. (MSG_BAD_CHECKSUM): New definition
  9449. * src/HttpResponseCommand.cc
  9450. (handleDefaultEncoding): Continue download sequence in new
  9451. non-segmented download.
  9452. * src/FileAllocationEntry.h
  9453. (_nextDownloadCommand): New variable.
  9454. * src/DownloadCommand.cc
  9455. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9456. available.
  9457. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9458. * src/IteratableChecksumValidator.h,
  9459. src/IteratableChecksumValidator.cc: New class.
  9460. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9461. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Change file mode to 666:
  9463. * src/common.h (OPEN_MODE): New definition.
  9464. * src/File.cc
  9465. * src/Util.cc
  9466. * src/Directry.cc
  9467. * src/AbstractDiskWriter.cc
  9468. Change the level of log message "download aborted" to debug:
  9469. * src/PeerAbstractCommand.cc (execute)
  9470. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9471. * src/TrackerWatcherCommand.cc
  9472. (createCommand): Sleep some seconds after request failed.
  9473. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9474. then abort tracker request.
  9475. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. * Added the simultaneous download feature.
  9477. * src/main.cc: Print "Exception caught: " when exception is caught.
  9478. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9479. * src/ActivePeerConnectionCommand.cc
  9480. * src/PeerInteractionCommand.cc
  9481. * src/BtRuntime.h
  9482. (cuidCounter): Removed.
  9483. (getNewCuid): Removed.
  9484. * src/DownloadEngineFactory.cc
  9485. * src/PeerListenCommand.cc
  9486. * src/TrackerUpdateCommand.cc
  9487. * src/PeerInitiateConnectionCommand.cc
  9488. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. * src/PeerAbstractCommand.cc
  9490. (onAbort): Call PeerStorage::returnPeer()
  9491. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9492. (incomingPeers): New variable.
  9493. (addIncomingPeer): New function.
  9494. (returnPeer): New function.
  9495. (onErasingPeer): New function.
  9496. (addPeer): push_back -> push_front
  9497. (getActivePeers): Rewritten.
  9498. (calculateStat): Rewritten.
  9499. * src/PeerStorage.h
  9500. (TransferStat::copy): New function.
  9501. (TransferStat::TransferStat): New function.
  9502. (TransferStat::operator=): New function.
  9503. (addIncomingPeer): New function.
  9504. (returnPeer): New function.
  9505. * src/PeerListenCommand.cc
  9506. (execute): Use PeerStorage::addIncomingPeer() instead of
  9507. Peer::addPeer().
  9508. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Connect to a peer actively when download speed is lower than specified
  9510. speed in torrent download:
  9511. * src/ActivePeerConnectionCommand.h: New class.
  9512. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9514. * src/main.cc: Fixed the bug that prevents download if .netrc
  9515. doesn't exist.
  9516. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. To cache resolved hostname:
  9518. * src/AbstractCommand.h, src/AbstractCommand.cc
  9519. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9520. Added dns cache.
  9521. * src/FtpInitiateConnectionCommand.cc
  9522. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9523. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9524. NameResolver working without ares.
  9525. * src/TorrentRequestInfo.cc
  9526. (execute): Don't cache dns in torrent download.
  9527. * src/HttpInitiateConnectionCommand.cc
  9528. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9529. * src/DNSCache.h: New class.
  9530. * src/UrlRequestInfo.cc
  9531. (execute): Use dns cache.
  9532. In http request, suppress port number in http request header if port
  9533. is 80 or 443:
  9534. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9535. request header if port is 80 or 443.
  9536. (createProxyRequest): Allways send port number.
  9537. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. To add the command-line option which disables netrc support:
  9539. * src/OptionHandlerFactory.cc
  9540. (createOptionHandlers): Added PREF_NO_NETRC.
  9541. * src/main.cc: Added -n option.
  9542. * src/prefs.h (PREF_NO_NETRC): New definition.
  9543. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9544. V_TRUE.
  9545. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9546. is V_FALSE. This may get configurable in the future release.
  9547. To clear peer's error status by time basis:
  9548. * src/PeerAbstractCommand.cc
  9549. (onAbort): Call Peer::startBadCondition().
  9550. * src/Peer.h, src/Peer.cc
  9551. (error): Removed.
  9552. (_badConditionStartTime): New variable.
  9553. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9554. (startBadCondition): New function.
  9555. (isGood): New function.
  9556. * src/DefaultPeerStorage.cc
  9557. (addPeer): Use Peer::isGood().
  9558. (FindFinePeer): Use Peer::isGood().
  9559. Always include port number in http request header:
  9560. * src/HttpRequest.cc (getHostText): Always include port number in
  9561. http request header.
  9562. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. To the ability to read options from a config file:
  9564. * src/main.cc: Command-line parameter validation is delegated to
  9565. OptionHandler class.
  9566. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9567. * src/Option.h, src/Option.cc (clear): New function.
  9568. * src/OptionParser.h, src/OptionParser.cc: New class.
  9569. * src/OptionHandler.h: New class.
  9570. * src/NameMatchOptionHandler.h: New class.
  9571. * src/OptionHandlerImpl.h: New classes.
  9572. * src/prefs.h: '_' -> '-'
  9573. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9574. (FTP_PASV): New definition.
  9575. * src/Util.h, src/Util.cc (getRealSize): New function.
  9576. To disable netrc support if .netrc file does not have correct
  9577. permissions:
  9578. * src/File.h, src/File.cc (mode): New function.
  9579. To prevent confidential information to be logged:
  9580. * src/HttpConnection.h, src/HttpConnection.cc
  9581. (eraseConfidentialInfo): New function.
  9582. (sendRequest): Call eraseConfidentialInfo().
  9583. (sendProxyRequest): Call eraseConfidentialInfo().
  9584. * src/main.cc: Validate permissions of .netrc file.
  9585. To add --user-agent command-line option:
  9586. * src/main.cc: Added new command line option: --user-agent
  9587. * src/prefs.h (PREF_USER_AGENT): New definition.
  9588. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9589. parameter to HttpRequest object.
  9590. * src/AbstractProxyRequestCommand.cc
  9591. (executeInternal): Set user-agent option parameter to HttpRequest
  9592. object.
  9593. Marged the patches from Dan Fandrich.
  9594. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Use filename and size from Metalink file instead of sending HEAD
  9596. request:
  9597. * src/UrlRequestInfo.h
  9598. (_filename): New variable.
  9599. (_totalLength): New variable.
  9600. (setTotalLength): New variable.
  9601. (setFilename): New variable.
  9602. * src/MetalinkRequestInfo.cc
  9603. (execute): Set filename and size to UrlRequestInfo
  9604. * src/UrlRequestInfo.cc
  9605. (execute): Use filename and size from Metalink instead of seding
  9606. HEAD request to servers.
  9607. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. To add the ability to resume downloading a partially downloaded file
  9609. which is downloaded from the beginning:
  9610. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9611. takes this role.
  9612. * src/main.cc: Added -c option.
  9613. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9614. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9615. * src/prefs.h (PREF_CONTINUE): New definition.
  9616. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9617. * src/DefaultDiskWriter.cc
  9618. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9619. * src/AbstractDiskWriter.h
  9620. (glowFileAllocator): New variable.
  9621. * src/AbstractDiskWriter.cc
  9622. (openExistingFile): Now preallocate file space from the end of the
  9623. existing file if totalLength argument is specified and grater than 0.
  9624. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9625. to download exists in local, continue the download of the file.
  9626. --allow-overwrite=true is assumed in this context.
  9627. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9628. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9629. Throw exception if --check-integrity=true is specified but chunk
  9630. checksums are not provided:
  9631. * src/UrlRequestInfo.cc
  9632. Do not print URLs to stdout:
  9633. * src/UrlRequestInfo.cc
  9634. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. * src/Request.h: Use AuthResolver to get authentication information.
  9636. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9637. set to RequestFactory object.
  9638. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9639. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9640. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9641. create Request object.
  9642. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9643. To integrate Netrc into exsiting classes:
  9644. * src/Request.h
  9645. (_userDefinedAuthConfig): New variable.
  9646. (findNetrcAuthenticator): New function.
  9647. (segment): Removed.
  9648. (setUserDefinedAuthConfig): New function.
  9649. (resolveHttpAuthConfigItem): New function.
  9650. (resolveFtpAuthConfigItem): New function.
  9651. (resolveHttpProxyAuthConfigItem): New function.
  9652. * src/HttpRequest.h
  9653. (authConfig): Removed.
  9654. (proxyAuthConfig): Removed.
  9655. (setAuthConfig): Removed.
  9656. (setProxyAuthConfig): Removed.
  9657. * src/UrlRequest.h
  9658. (getHeadResult): Added a parameter: authConfigHandle
  9659. * src/common.h
  9660. (SingletonHolder.h): New include.
  9661. * src/main.cc
  9662. (Netrc.h): New include.
  9663. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9664. Added initial value of PREF_NETRC_PATH.
  9665. Added the initialization of netrc.
  9666. * src/AuthConfig.h: New class.
  9667. * src/prefs.h
  9668. (PREF_NETRC_PATH): New definition.
  9669. * src/HttpAuthConfig.h: Removed.
  9670. * src/Netrc.cc
  9671. (getRequiredNextToken): New function.
  9672. (skipMacdef): New function.
  9673. (parse): Rewritten.
  9674. * src/Netrc.h
  9675. (getRequiredNextToken): New function.
  9676. (skipMacdef): New function.
  9677. * src/Util.h, src/Util.cc
  9678. (getHomeDir): New function.
  9679. * src/TrackerWatcherComand.cc
  9680. (createRequestCommand): Use AuthConfig.
  9681. * src/FtpConnection.cc
  9682. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9683. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9684. * src/Request.cc
  9685. (findNetrcAuthenticator): New function.
  9686. (resolveHttpAuthConfigItem): New function.
  9687. (resolveFtpAuthConfigItem): New function.
  9688. (resolveHttpProxyAuthConfigItem): New function.
  9689. * src/UrlRequestInfo.cc: Use AuthConfig.
  9690. * src/HttpRequest.cc
  9691. (createRequest): Use authConfig.
  9692. (getProxyAuthString): Use authConfig.
  9693. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9694. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9695. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. To reduce overhead to find commands whose socket is either
  9697. readable or writable in the download engine loop:
  9698. * src/Command.h, src/Command.cc
  9699. (STATUS): New enum.
  9700. (status): New variable.
  9701. (statusMatch): New function.
  9702. (setStatusActive): New function.
  9703. (setStatusInactive): New function.
  9704. * src/DownloadEngine.h, src/DownloadEngine.cc
  9705. (executeCommand): New function.
  9706. (run): Simplified.
  9707. (waitData): Call Command::setStatusActive() when command's socket is
  9708. readable or writable.
  9709. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9710. To handle Segment as SegmentHandle:
  9711. * src/AbstractCommand.cc (execute): Rewritten.
  9712. * src/SegmentMan.h: Segment -> SegmentHandle
  9713. Introducded HttpResponse class, HttpRequest class to improve code
  9714. extensiveness and make it clear:
  9715. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9716. HttpResponse class.
  9717. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9718. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9719. * src/HttpConnection.cc: Contruction of http request were moved to
  9720. HttpRequest class.
  9721. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9722. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9723. * src/HttpAuthConfig.h: New class.
  9724. * src/Range.h: New class.
  9725. To make FtpTunnel{Request, Response}Command and
  9726. HttpProxy{Request, Response}Command derived from
  9727. AbstractProxy{Request, Response}Command:
  9728. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9729. Derived from AbstractProxyRequestCommand class.
  9730. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9731. Derived from AbstractProxyResponseCommand class.
  9732. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9733. Derived from AbstractProxyRequestCommand class.
  9734. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9735. Derived from AbstractProxyResponseCommand class.
  9736. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9737. : New class.
  9738. * src/AbstractProxyResponseCommand.h,
  9739. src/AbstractProxyResponseCommand.cc: New class.
  9740. To add netrc support:
  9741. * src/Netrc.h, src/Netrc.cc: New class.
  9742. * src/Util.h, src/Util.cc (split): New function.
  9743. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9744. "Content-Range" header instead of "Range" header.
  9745. * src/HttpHeader.h
  9746. (getStatus): Removed.
  9747. (setStatus): Removed.
  9748. * src/Segment.h
  9749. (getPositionToWrite): New function.
  9750. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. * src/HttpHeader.h
  9752. (Range.h): New include.
  9753. (status): New variable.
  9754. (HttpHeader): Initialized status with 0.
  9755. (getStatus): New function.
  9756. (setStatus): New function.
  9757. (getRange): New function.
  9758. (HttpHeaderHandle): New function.
  9759. * src/HttpHeader.cc
  9760. (getRange): New function.
  9761. * src/Request.h
  9762. (RequestWeakHandle): New definition.
  9763. * src/HttpConnection.h
  9764. (HttpConnectionHandle): New type definition.
  9765. * src/HttpConnection.cc
  9766. (receiveResponse): Set HTTP status to headers.
  9767. * src/main.cc
  9768. (showUsage): Fixed typo.
  9769. * src/Segment.h
  9770. (SegmentHandle): New type definition.
  9771. * src/BitfieldMan.h
  9772. (getMissingUnusedLength): New function.
  9773. * src/BitfieldMan.cc
  9774. (getMissingUnusedLength): New function.
  9775. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. To fix static initialization order problem:
  9777. * src/BitfieldManFactory.h
  9778. (defaultRandomizer): Removed.
  9779. (factory): New variable.
  9780. (getNewFactory): Removed.
  9781. (getFactoryInstance): New function.
  9782. (setDefaultRandomizer): Rewritten.
  9783. (getDefaultRandomizer): Rewritten.
  9784. * src/BitfieldManFactory.cc
  9785. (defaultRandomizer): Removed.
  9786. (factory): Initialized to 0.
  9787. (BitfieldManFactory): Initialized randomizer to 0.
  9788. * src/DefaultPieceStorage.cc
  9789. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9790. * src/Peer.cc
  9791. (Peer): getNewFactory() -> getFactoryInstance()
  9792. * src/SegmentMan.cc
  9793. (initBitfield): getNewFactory() -> getFactoryInstance()
  9794. * src/Piece.cc
  9795. (Piece): getNewFactory() -> getFactoryInstance()
  9796. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. To fix the bug that causes crash on Max OS X:
  9798. * src/SimpleRandomizer.h
  9799. (getInstance): Create new instance if the static variable is null.
  9800. * src/SimpleRandomizer.cc
  9801. (randomizer): Initialized to 0.
  9802. * src/BitfieldManFactory.h
  9803. (getNewFactory): Removed the call to setRandomizer().
  9804. To fix the miscalculation of the range of checksum:
  9805. * src/BitfieldMan.h
  9806. (isBitSetOffsetRange): New function.
  9807. * src/BitfieldMan.cc
  9808. (isBitSetOffsetRange): New function.
  9809. * src/SegmentMan.cc
  9810. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9811. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9812. * Release 0.10.1
  9813. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. To lower CPU usage in BitTorrent download when --max-upload-limit
  9815. command-line option specified:
  9816. * src/DefaultBtMessageDispatcher.cc
  9817. (sendMessages): Calculate uploading speed only when current message
  9818. is uploading data and is not sent yet.
  9819. * src/DefaultPeerStorage.h
  9820. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9821. * src/HttpResponseCommand.cc
  9822. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9823. This fixes compile error in Soralis 10.
  9824. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. To fix segfault in Metalink download:
  9826. * src/UrlRequestInfo.h
  9827. (filename): Removed.
  9828. (totalLength): Removed.
  9829. (setTotalLength): Removed.
  9830. (setFilename): Removed.
  9831. * src/MetalinkRequestInfo.cc
  9832. (execute): Do not set filename and totalLength to reqInfo.
  9833. Set chunk checksum to reqInfo if it is not null.
  9834. * src/HttpResponseCommand.cc
  9835. (executeInternal): Fixed filename in log.
  9836. (handleDefaultEncoding): Removed the call to initBitfield() and
  9837. markAllPiecesDone().
  9838. (handleOtherEncoding): Added HEAD method handling.
  9839. * src/FtpNegotiateCommand.cc
  9840. (executeInternal): Added SEQ_HEAD_OK handling.
  9841. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9842. return false.
  9843. * src/FtpNegotiateCommand.h
  9844. (SEQ_HEAD_OK): New definition.
  9845. * src/SegmentMan.cc
  9846. (initBitfield): Delete bitfield.
  9847. (isChunkChecksumValidationReady): Fixed the condition.
  9848. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9849. works fine.
  9850. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. * src/Xml2MetalinkProcessor.h
  9852. (xpathExists): New function.
  9853. * src/Xml2MetalinkProcessor.cc
  9854. (xpathExists): New function.
  9855. Not to send HEAD request if filename and size are available in Metalink
  9856. file:
  9857. * src/UrlRequestInfo.h
  9858. (filename): New variable.
  9859. (totalLength): New variable.
  9860. (setTotalLength): New function.
  9861. (setFilename): New function.
  9862. * src/MetalinkRequestInfo.cc
  9863. (execute): Set filename and size to UrlRequestInfo.
  9864. * src/MetalinkEntry.cc
  9865. (MetalinkEntry): Initialize size with 0.
  9866. * src/UrlRequestInfo.cc
  9867. (execute): Set filename and size to SegmentMan.
  9868. Not to download rest of the files after selected files are downloaded
  9869. in BitTorrent:
  9870. * src/PieceStorage.h
  9871. (allDownloadFinished): New function.
  9872. * src/DefaultBtAnnounce.cc
  9873. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9874. downloadFinished.
  9875. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9876. * src/DefaultPieceStorage.cc
  9877. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9878. Commented out the call to finishSelectiveDownloadingMode().
  9879. (downloadFinished): Call isFilteredAllBitSet() instead of
  9880. isAllBitSet().
  9881. (allDownloadFinished): New function.
  9882. * src/DefaultBtInteractive.cc
  9883. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9884. downloadFinished().
  9885. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9886. * src/TorrentDownloadEngine.cc
  9887. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9888. * src/BitfieldMan.h
  9889. (isFilteredAllBitSet): New function.
  9890. * src/ShareRatioSeedCriteria.h
  9891. (PieceStorage.h): New include.
  9892. (pieceStorage): New variable.
  9893. (evaluate):
  9894. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9895. * src/BitfieldMan.cc
  9896. (isFilteredAllBitSet): New function.
  9897. (isAllBitSet): Filter is not took into account.
  9898. Rename --force-truncate as --allow-overwrite:
  9899. * src/TorrentRequestInfo.cc
  9900. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9901. * src/main.cc
  9902. (showUsage): --force-truncate -> --allow-overwrite
  9903. * src/message.h
  9904. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9905. * src/prefs.h
  9906. (PREF_FORCE_TRUNCATE): Removed.
  9907. (PREF_ALLOW_OVERWRITE): New definition.
  9908. * src/SegmentMan.cc
  9909. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9910. * src/MetalinkRequestInfo.cc
  9911. (execute): Queueing message are now logged in info level.
  9912. * src/common.h
  9913. (LONG_LONG_MAX): Removed.
  9914. (LONG_LONG_MIN): Removed.
  9915. * src/HttpResponseCommand.cc
  9916. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9917. * src/FtpNegotiateCommand.cc
  9918. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9919. * src/main.cc
  9920. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9921. command-line option.
  9922. (main): Added --check-integriy and --realtime-chunk-checksum
  9923. command-line option.
  9924. --force-truncate -> --allow-overwrite
  9925. Set initial value of --check-integrity option to false.
  9926. Don't show usage when error occurs while persing command-line options.
  9927. Removed deprecated --upload-limit option.
  9928. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9930. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9931. * src/BtAllowedFastMessage.cc:
  9932. * src/BtBitfieldMessage.cc
  9933. * src/BtCancelMessage.cc
  9934. * src/BtChokeMessage.cc
  9935. * src/BtHaveAllMessage.cc
  9936. * src/BtHaveMessage.cc
  9937. * src/BtHaveNoneMessage.cc
  9938. * src/BtInterestedMessage.cc
  9939. * src/BtNotInterestedMessage.cc
  9940. * src/BtPieceMessage.cc
  9941. * src/BtPortMessage.cc
  9942. * src/BtRejectMessage.cc
  9943. * src/BtRequestMessage.cc
  9944. * src/BtSuggestPieceMessage.cc
  9945. * src/BtUnchokeMessage.cc
  9946. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9947. files are affected.
  9948. * src/ChunkChecksumValidator.cc
  9949. * src/SegmentMan.cc
  9950. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. To add chunk checksum validation:
  9952. * src/MetalinkEntry.h
  9953. (MetalinkChunkChecksum.h): New include.
  9954. (chunkChecksum): New variable.
  9955. * src/Request.h
  9956. (method): New variable.
  9957. (setMethod): New function.
  9958. (getMethod): New function.
  9959. (METHOD_GET): New static constant.
  9960. (METHOD_HEAD): New static constant.
  9961. * src/Xml2MetalinkProcessor.h
  9962. (getPieceHash): New function.
  9963. * src/PieceStorage.h
  9964. (markAllPiecesDone): New function.
  9965. (checkIntegrity): New function.
  9966. * src/FileAllocator.h
  9967. (NullFileAllocationMonitor.h): New include.
  9968. (FileAllocator): Initialize fileAllocationMonitor with new
  9969. NullFileAllocationMonitor().
  9970. * src/MultiDiskAdaptor.h
  9971. (messageDigest.h): Remove include.
  9972. (ctx): Removed.
  9973. (hashUpdate): Added ctx.
  9974. (MultiDiskAdaptor): Removed ctx.
  9975. (sha1Sum): Renamed as messageDigest.
  9976. (messageDigest): New function.
  9977. * src/UrlRequestInfo.h
  9978. (HeadResult): New class.
  9979. (digestAlgo): New variable.
  9980. (chunkChecksumLength): New variable.
  9981. (chunkChecksums): New variable.
  9982. (getHeadResult): New function.
  9983. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9984. (setDigestAlgo): New function.
  9985. (setChunkChecksumLength): New function.
  9986. (setChunkChecksums): New function.
  9987. * src/DefaultPieceStorage.cc
  9988. (DiskAdaptorWriter.h): New include.
  9989. (ChunkChecksumValidator.h): New include.
  9990. (markAllPiecesDone): New function.
  9991. (checkIntegrity): New function.
  9992. * src/DefaultBtContext.h
  9993. (getPieceHashes): New function.
  9994. * src/TorrentRequestInfo.cc
  9995. (execute): Try to validate chunk checksum if file already exists and
  9996. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9997. * src/messageDigest.h
  9998. (~MessageDigestContext): Added digestFree().
  9999. * src/MetalinkRequestInfo.cc
  10000. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10001. * src/DiskAdaptor.h
  10002. (messageDigest.h): New include.
  10003. (sha1Sum): Renamed as messageDigest.
  10004. (messageDigest): New function.
  10005. * src/DownloadCommand.h
  10006. (PeerStat.h): New include.
  10007. (maxDownloadSpeedLimit): New variable.
  10008. (startupIdleTime): New variable.
  10009. (lowestDownloadSpeedLimit): New variable.
  10010. (peerStat): New variable.
  10011. (setMaxDownloadSpeedLimit): New function.
  10012. (setStartupIdleTime): New function.
  10013. (setLowestDownloadSPeedLimit): New function.
  10014. * src/BtContext.h
  10015. (getPieceHashes): New function.
  10016. * src/main.cc
  10017. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10018. option to true for testing purpose.
  10019. * src/BtPieceMessage.cc
  10020. (checkPieceHash): Use messageDigest
  10021. * src/DownloadEngine.cc
  10022. (SetDescriptor): Removed.
  10023. (AccumulateActiveCommand): Removed.
  10024. (waitData): Rewritten.
  10025. (updateFdSet): Rewritten.
  10026. * src/MultiDiskAdaptor.cc
  10027. (hashUpdate): Added ctx.
  10028. (sha1Sum): Renamed as messageDigest.
  10029. (messageDigest): New function.
  10030. * src/BitfieldMan.h
  10031. (isBitRangeSet): New function.
  10032. (unsetBitRange): New function.
  10033. * src/ByteArrayDiskWriter.h
  10034. (sha1Sum): Renamed as messageDigest.
  10035. (messageDigest): New function.
  10036. * src/ConsoleDownloadEngine.cc
  10037. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10038. * src/DiskWriter.h
  10039. (messageDigest.h): New include.
  10040. (sha1Sum): Renamed as messageDigest.
  10041. (messageDigest): New function.
  10042. * src/ChunkChecksumValidator.h: New class.
  10043. * src/DiskAdaptorWriter.h: New class.
  10044. * src/prefs.h
  10045. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10046. (PREF_CHECK_INTEGRITY): New definition.
  10047. * src/HttpResponseCommand.cc
  10048. (handleDefaultEncoding): Added method "HEAD" handling.
  10049. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10050. (handleOtherEncoding):
  10051. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10052. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10053. startupIdleTime, lowestDownloadSpeedLimit to command.
  10054. * src/SegmentMan.h
  10055. (getSegmentEntryByIndex): New function.
  10056. (getSegmentEntryByCuid): New function.
  10057. (getSegmentEntryIteratorByCuid): New function.
  10058. (diskWriter): DiskWriter -> DiskWriterHandle
  10059. (pieceHashes): New variable.
  10060. (chunkHashLength): New variable.
  10061. (digestAlgo): New variable.
  10062. (FindPeerStat): Removed.
  10063. (getPeerStat): Rewritten.
  10064. (markAllPiecesDone): New function.
  10065. (checkIntegrity): New function.
  10066. (tryChunkChecksumValidation): New function.
  10067. (isChunkChecksumValidationReady): New function.
  10068. * src/BitfieldMan.cc
  10069. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10070. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10071. blocks to 0.
  10072. (isBitRangeSet): New function.
  10073. (unsetBitRange): New function.
  10074. * src/FtpNegotiateCommand.cc
  10075. (executeInternal): Set maxDownloadSpeedLimit,
  10076. startupIdleTime, lowestDownloadSpeedLimit to command.
  10077. (recvSize): Added method "HEAD" handling.
  10078. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10079. * src/AbstractSingleDiskAdaptor.cc
  10080. (sha1Sum): Renamed as messageDigest.
  10081. (messageDigest): New function.
  10082. * src/AbstractSingleDiskAdaptor.h
  10083. (sha1Sum): Renamed as messageDigest.
  10084. (messageDigest): New function.
  10085. * src/Util.h
  10086. (indexRange): New function.
  10087. * src/MetalinkEntry.cc
  10088. (MetalinkEntry): Initialized chunkChecksum to 0.
  10089. * src/ShaVisitor.cc
  10090. (~ShaVisitor): Removed the call to ctx.digestFree().
  10091. * src/SegmentMan.cc
  10092. (ChunkChecksumValidator.h): New include.
  10093. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10094. to DIGEST_ALGO_SHA1.
  10095. (~SegmentMan): Removed diskWriter.
  10096. (FindSegmentEntryByIndex): Removed.
  10097. (FindSegmentEntryByCuid): Removed.
  10098. (checkoutSegment): Rewritten.
  10099. (findSlowerSegmentEntry): Rewritten.
  10100. (getSegment): Rewritten.
  10101. (updateSegment): Rewritten.
  10102. (completeSegment): Rewritten.
  10103. (markAllPiecesDone): New function.
  10104. (checkIntegrity): New function.
  10105. (isChunkChecksumValidationReady): New function.
  10106. (tryChunkChecksumValidation): New function.
  10107. * src/Xml2MetalinkProcessor.cc
  10108. (getEntry): Get size and set it to entry.
  10109. Get chunk checksum and set it to entry.
  10110. (getPieceHash): New function.
  10111. * src/Util.cc
  10112. (sha1Sum): Removed ctx.digestFree()
  10113. (fileChecksum): Removed ctx.digestFree()
  10114. (indexRange): New function.
  10115. * src/Request.cc
  10116. (METHOD_GET): New variable.
  10117. (METHOD_HEAD): New variable.
  10118. (Request): Added method.
  10119. * src/UrlRequestInfo.cc
  10120. (FatalException.h): New include.
  10121. (message.h): New include.
  10122. (operator<<): Added operator<< for class HeadResult.
  10123. (getHeadResult): New function.
  10124. (execute): Get filename and size in separate download engine.
  10125. * src/ChunkChecksumValidator.cc: New class.
  10126. * src/DownloadCommand.cc:
  10127. (DownloadCommand): Added peerStat.
  10128. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10129. the value from Option.
  10130. The buffer size is now 16KB.
  10131. Use peerStat member instead of getting it from SegmentMan.
  10132. Use startupIdleTime member instead of gettingit from Option.
  10133. Added chunk checksum validation.
  10134. * src/AbstractDiskWriter.cc
  10135. (AbstractDiskWriter): Removed ctx.
  10136. (~AbstractDiskWriter): Removed ctx.digestFree()
  10137. (writeDataInternal): Returns the return value of write.
  10138. (readDataInternal): Returns the return value of read.
  10139. (sha1Sum): Renamed as messageDigest
  10140. (messageDigest): New function.
  10141. * src/AbstractDiwkWriter.h
  10142. (messageDigest.h): Removed include.
  10143. (ctx): Removed.
  10144. (sha1Sum): Renamed as messageDigest
  10145. (messageDigest): New function.
  10146. * src/DefaultPieceStorage.h
  10147. (markAllPiecesDone): New function.
  10148. (checkIntegrity): New function.
  10149. * src/NullFileAllocationMonitor.h: New class.
  10150. * src/MetalinkChunkChecksum.h: New class.
  10151. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. To decrease CPU usage in bittorrent download, calculation results in
  10153. BitfieldMan were cached and realtime fetching PeerObject was removed
  10154. with WeakHandle introduced. Option values are set to the objects
  10155. by setter before download begins.
  10156. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10157. * src/DefaultBtRequestFactory.h
  10158. (dispatcher): BtMessageDispatcherHandle ->
  10159. BtMessageDispatcherWeakHandle.
  10160. (messageFactory): New variable.
  10161. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10162. BtMessageDispatcherWeakHandle.
  10163. (setBtMessageFactory): New function.
  10164. * src/DefaultBtMessageDispatcher.cc:
  10165. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10166. from Option.
  10167. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10168. feating the value from Option.
  10169. Use messageFactory member.
  10170. * src/PeerInteractionCommand.cc
  10171. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10172. Add reverse dependencies to factory object.
  10173. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10174. dispatcher.
  10175. Set messageFactory to receiver.
  10176. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10177. btInteractive.
  10178. Set receiver to peerObject.
  10179. Set maxDownloadSpeedLimit to this.
  10180. (executeInternal): Use maxDownloadSpeedLimit member.
  10181. * src/BtChokeMessage.cc
  10182. (doReceivedAction): Use dispatcher, requestFactory member.
  10183. (onSendComplete): Use dispatcher member.
  10184. * src/PeerInteractionCommand.h
  10185. (maxDownloadSpeedLimit): New variable.
  10186. * src/DefaultBtMessageReceiver.h
  10187. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10188. (dispatcher):
  10189. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10190. (messageFactory): New variable.
  10191. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10192. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10193. (setDispatcher):
  10194. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10195. (setBtMessageFactory): New function.
  10196. * src/DefaultBtInteractive.cc
  10197. (initiateHandshake): Use messageFactory member.
  10198. (addBitfieldMessageToQueue): Use messageFactory member.
  10199. (addAllowedFastMessageToQueue): Use messageFactory member.
  10200. (decideChoking): Use messageFactory member.
  10201. (checkHave): Use messageFactory member.
  10202. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10203. (receiveMessages): Use maxDownloadSpeedLimit member.
  10204. (decideInterest): Use messageFactory member.
  10205. * src/BtRequestMessage.cc
  10206. (doReceivedAction): Use messageFactory, dispatcher member.
  10207. (onQueued): Use dispatcher member.
  10208. * src/BtPieceMessage.cc
  10209. (doReceivedAction): Use dispatcher member.
  10210. (send): Use peerConnection member.
  10211. (onWrongPiece): Use requestFactory member.
  10212. (handleChokingEvent): Use messageFactory, dispatcher member.
  10213. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10214. * src/BtMessageDispatcher.h
  10215. (BtMessageDispatcherWeakHandle): New type definition.
  10216. * src/SimpleBtMessage.cc
  10217. (send): Use peerConnection member.
  10218. * src/BtRejectMessage.cc
  10219. (doReceivedAction): Use dispatcher member.
  10220. * src/DefaultBtMessageDispatcher.h
  10221. (Option.h): Removed include.
  10222. (messageFactory): New variable.
  10223. (option): Removed.
  10224. (maxUploadSpeedLimit): New variable.
  10225. (requestTimeout): New variable.
  10226. (DefaultBtMessageDispatcher): Removed option.
  10227. Added maxUploadSpeedLimit, requestTimeout.
  10228. (setOption): Removed.
  10229. (getOption): Removed.
  10230. (setMaxUploadSpeedLimit): New function.
  10231. (setRequestTimeout): New function.
  10232. (setBtMessageFactory): New function.
  10233. * src/DefaultBtInteractive.h
  10234. (btMessageReceiver):
  10235. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10236. (dispatcher):
  10237. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10238. (btRequestFactory):
  10239. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10240. (peerConnection):
  10241. PeerConnectionHandle -> PeerConnectionWeakHandle
  10242. (messageFactory): New variable.
  10243. (option): Removed.
  10244. (keepAliveInterval): New variable.
  10245. (maxDownloadSpeedLimit): New variable.
  10246. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10247. (setBtMessageReceiver):
  10248. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10249. (setDispatcher):
  10250. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10251. (setBtRequestFactory):
  10252. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10253. (setPeerConnection):
  10254. PeerConnectionHandle -> PeerConnectionWeakHandle
  10255. (setOption): Removed.
  10256. (setKeepAliveInterval): New function.
  10257. (setMaxDownloadSpeedLimit): New function.
  10258. (setBtMessageFactory): New function.
  10259. * src/BitfieldMan.h
  10260. (cachedNumMissingBlock): New variable.
  10261. (cachedNumFilteredBlock): New variable.
  10262. (cachedCompletedLength): New variable.
  10263. (cachedFilteredComletedLength): New variable.
  10264. (cachedFilteredTotalLength): New variable.
  10265. (countMissingBlockNow): New function.
  10266. (countFilteredBlockNow): New function.
  10267. (getFilteredTotalLengthNow): New function.
  10268. (getCompletedLengthNow): New function.
  10269. (getFilteredCompletedLengthNow): New function.
  10270. (updateCache): New function.
  10271. * src/AbstractBtMessage.h
  10272. (BtMessageDispatcher.h): New include.
  10273. (PeerConnection.h): New include.
  10274. (BtRequestFactory.h): New include
  10275. (BtMessageFactory.h): New include.
  10276. (dispatcher): New variable.
  10277. (messageFactory): New variable.
  10278. (peerConnection: New variable.
  10279. (setBtMessageDispatcher): New function.
  10280. (setPeerConnection): New function.
  10281. (setBtMessageFactory): New function.
  10282. (setBtRequestFactory): New function.
  10283. * src/DefaultBtMessageFactory.cc
  10284. (setCommonProperty): Set dispatcher, requestFactory, this,
  10285. peerConnection to msg.
  10286. * src/BtRegistry.h
  10287. (BT_MESSAGE_RECEIVER): New macro.
  10288. * src/PeerConnection.h
  10289. (PeerConnectionWeakHandle): New type definition.
  10290. * src/BtMessageFactory.h
  10291. (BtMessageFactoryWeakHandle): New type definition.
  10292. * src/BitfieldMan.cc
  10293. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10294. cachedCompletedLength, cachedFilteredComletedLength,
  10295. cachedFilteredTotalLength.
  10296. Call updateCache().
  10297. (countMissingBlock): Return cachedNumMissingBlock.
  10298. (countMissingBlockNow): New function.
  10299. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10300. (countFilteredBlockNow): New function.
  10301. (setBit): Call updateCache().
  10302. (unsetBit): Call updateCache().
  10303. (setBitfield): Call updateCache().
  10304. (clearAllBit): Call updateCache().
  10305. (setAllBit): Use setBitInternal instead of setBit.
  10306. Call updateCache().
  10307. (addFilter): Call updateCache().
  10308. (enableFilter): Call updateCache().
  10309. (disableFilter): Call updateCache().
  10310. (clearFilter): Call updateCache().
  10311. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10312. (getFilteredTotalLengthNow): New function.
  10313. (getCompletedLength): Return cachedCompletedLength.
  10314. (getCompletedLengthNow): New function.
  10315. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10316. (getFilteredCompletedLengthNow): New function.
  10317. (updateCache): New function.
  10318. * src/BtMessageReceiver.h
  10319. (BtMessageReceiverWeakHandle): New type definition.
  10320. * src/DefaultBtMessageReceiver.cc
  10321. (receiveHandshake): Use messageFactory member.
  10322. (sendHandshake): Use messageFactory member.
  10323. (receiveMessage): Use messageFactory member.
  10324. * src/DefaultBtMessageFactory.h
  10325. (dispatcher): New variable.
  10326. (requestFactory): New variable.
  10327. (peerConnection): New variablle.
  10328. (setBtMessageDispatcher): New function.
  10329. (setBtRequestFactory): New function.
  10330. (setPeerConnection): New function.
  10331. * src/SharedHandle.h
  10332. (RefCount): New class.
  10333. (WeakHandle): New class.
  10334. * src/PeerObject.h
  10335. (BtMessageReceiver.h): New include.
  10336. (PeerObject): Added btMessageReceiver.
  10337. (btMessageReceiver): New variable.
  10338. * src/Util.cc
  10339. (countBit): Simplified.
  10340. * src/BtCancelMessage.cc
  10341. (doReceivedAction): Use dispatcher member.
  10342. * src/BtRequestFactory.h
  10343. (BtRequestFactoryWeakHandle): New type definition.
  10344. * src/PeerStorage.h
  10345. (downloadSpeed): int -> uint32_t
  10346. (uploadSpeed): int -> uint32_t
  10347. (sessionDownloadLength): long long int -> uint64_t
  10348. (sessionUploadLength): long long int -> uint64_t
  10349. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. To add RecoverableException, FatalException:
  10351. * src/AbstractCommand.cc
  10352. (onAbort): Exception -> RecoverableException
  10353. * src/PeerAbstractCommand.h
  10354. (RecoverableException.h): New include.
  10355. (onAbort): Exception -> RecoverableException.
  10356. * src/PeerInteractionCommand.cc
  10357. (onAbort): Exception -> RecoverableException.
  10358. * src/PeerAbstractCommand.cc
  10359. (execute): Exception -> RecoverableException.
  10360. (onAbort): Exception -> RecoverableException.
  10361. * src/TorrentRequestInfo.cc
  10362. (execute): Exception -> RecoverableException.
  10363. * src/MetalinkRequestInfo.cc
  10364. (execute): Exception -> RecoverableException.
  10365. * src/MetaFileUtil.cc: RecoverableException.
  10366. * src/AbstractCommand.h
  10367. (onAbort): Exception -> RecoverableException.
  10368. * src/DlRetryEx.h: Exception -> RecoverableException.
  10369. * src/DlAbortEx.h: Exception -> RecoverableException.
  10370. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10371. * src/Util.cc: Exception -> RecoverableException.
  10372. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10373. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10374. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10375. To make ID static const int
  10376. * src/BtInterestedMessage.h
  10377. (ID_t): Removed.
  10378. (ID): New variable.
  10379. (getId): Made non-const.
  10380. * src/BtPieceMessage.h
  10381. (ID_t): Removed.
  10382. (ID): New variable.
  10383. (getId): Made non-const.
  10384. * src/BtChokeMessage.h
  10385. (ID_t): Removed.
  10386. (ID): New variable.
  10387. (getId): Made non-const.
  10388. * src/BtHaveAllMessage.h
  10389. (ID_t): Removed.
  10390. (ID): New variable.
  10391. (getId): Made non-const.
  10392. * src/BtKeepAliveMessage.h
  10393. (ID_t): Removed.
  10394. (ID): New variable.
  10395. (getId): Made non-const.
  10396. * src/BtHandshakeMessage.h
  10397. (ID): New variable.
  10398. (getId): Made non-const.
  10399. * src/BtSuggestPieceMessage.h
  10400. (ID_t): Removed.
  10401. (ID): New variable.
  10402. (getId): Made non-const.
  10403. * src/BtPortMessage.h
  10404. (ID_t): Removed.
  10405. (ID): New variable.
  10406. (getId): Made non-const.
  10407. * src/AbstractBtMessage.h
  10408. (id): Removed.
  10409. (AbstractBtMessage): Removed id.
  10410. (getId): Removed.
  10411. * src/BtHaveMessage.h
  10412. (ID_t): Removed.
  10413. (ID): New variable.
  10414. (getId): Made non-const.
  10415. * src/BtAllowedFastMessage.h
  10416. (ID_t): Removed.
  10417. (ID): New variable.
  10418. (getId): Made non-const.
  10419. * src/BtCancelMessage.h
  10420. (ID_t): Removed.
  10421. (ID): New variable.
  10422. (getId): Made non-const.
  10423. * src/BtNotInterestedMessage.h
  10424. (ID_t): Removed.
  10425. (ID): New variable.
  10426. (getId): Made non-const.
  10427. * src/BtChokeMessage.h
  10428. (ID_t): Removed.
  10429. (ID): New variable.
  10430. (getId): Made non-const.
  10431. * src/BtRejectMessage.h
  10432. (ID_t): Removed.
  10433. (ID): New variable.
  10434. (getId): Made non-const.
  10435. * src/BtBitfieldMessage.h
  10436. (ID_t): Removed.
  10437. (ID): New variable.
  10438. (getId): Made non-const.
  10439. * src/BtUnchokeMessage.h
  10440. (ID_t): Removed.
  10441. (ID): New variable.
  10442. (getId): Made non-const.
  10443. * src/BtRequestMessage.h
  10444. (ID_t): Removed.
  10445. (ID): New variable.
  10446. (getId): Made non-const.
  10447. * src/BtHaveMessage.h
  10448. (ID_t): Removed.
  10449. (ID): New variable.
  10450. (getId): Made non-const.
  10451. To add --force-truncate command-line option and a check whether
  10452. the file already exists:
  10453. * src/DirectDiskAdaptor.h
  10454. (getFilePath): Made virtual public.
  10455. * src/MultiDiskAdaptor.h
  10456. (File.h): New include.
  10457. (DiskWriterEntry::fileEntry): Made private.
  10458. (DiskWriterEntry::fileExists): New function.
  10459. (DiskWriterEntry::getFileEntry): New function.
  10460. (fileExists): New function.
  10461. (getFilePath): New function.
  10462. * src/TorrentRequestInfo.cc
  10463. (FatalException.h): New include.
  10464. (message.h): New include.
  10465. (RecoverableException.h): New include.
  10466. (execute): Added a check whether file is already exists or not.
  10467. * src/DiskAdaptor.h
  10468. (fileExists): New function.
  10469. (getFilePath): New function.
  10470. * src/main.cc
  10471. (showUsage): Added an explanation of --force-truncate command-line
  10472. option.
  10473. (main): Added --force-truncate command-line option.
  10474. * src/Exception.h
  10475. (setMsg): buf[256] -> buf[1024]
  10476. * src/CopyDiskWriter.h
  10477. (getFilePath): Made public virtual.
  10478. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10479. (fileExists): New function.
  10480. * src/DownloadEngineFactory.cc
  10481. (newTorrentConsoleEngine): Don't open file here.
  10482. * src/message.h
  10483. (EX_FILE_ALREADY_EXISTS): New definition.
  10484. * src/prefs.h
  10485. (PREF_FOECE_TRUNCATE): New definition.
  10486. * src/HttpResponseCommand.cc
  10487. (handleDefaultEncoding): Added a check whether the file already exists.
  10488. * src/SegmentMan.h
  10489. (fileExists): New function.
  10490. (shouldCancelDownloadForSafety): New function.
  10491. * src/FtpNegotiateCommand.cc
  10492. (recvSize): Added a check whether the file already exists.
  10493. * src/AbstractSingleDiskAdaptor.cc
  10494. (File.h): New include.
  10495. (fileExists): New function.
  10496. * src/AbstractSingleDiskAdaptor.h
  10497. (getFilePath): Removed.
  10498. (fileExists): New function.
  10499. * src/SegmentMan.cc
  10500. (fileExists): New function.
  10501. (shouldCancelDownloadForSafety): New function.
  10502. To fix regression bug in torrent downloading:
  10503. * src/DefaultBtRequestFactory.cc
  10504. (doChokedAction): New function.
  10505. * src/DefaultBtRequestFactory.h
  10506. (doChokedAction): New function.
  10507. * src/DefaultBtMessageDispatcher.cc
  10508. (doChokedAction): Do not delete request if its target is in allowed
  10509. fast set.
  10510. * src/DefaultBtInteractive.cc
  10511. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10512. (sendKeepAlive): Send keep alive message even if the outgoing message
  10513. queue is not empty.
  10514. (decideInterest): Simplified the code.
  10515. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10516. it is already called when BtChokeMessage is received from a peer.
  10517. * src/BtRequestFactory.h
  10518. (doChokedAction): New function.
  10519. To clean up code:
  10520. * src/PeerInteractionCommand.h
  10521. (executeInternal): Added virtual keyword explicitly.
  10522. (prepareForRetry): Added virtual keyword explicitly.
  10523. (prepareForNextPeer): Added virtual keyword explicitly.
  10524. (onAbort): Added virtual keyword explicitly.
  10525. * src/RequestSlot.cc
  10526. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10527. * src/BtPieceMessage.cc
  10528. (doReceivedAction): Added a debug log of piece's bitfield.
  10529. * src/Piece.h
  10530. (getBitfieldLength): New function.
  10531. * src/ByteArrayDiskWriter.cc
  10532. (clear): Added buf = 0 to avoid double free corruption.
  10533. * src/FileAllocator.cc
  10534. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10535. Added cp.reset().
  10536. * src/BitfieldMan.h
  10537. (operator=): Rewritten.
  10538. * src/BitfieldMan.cc
  10539. (BitfieldMan): Initialized bitfield, useBitfield.
  10540. * src/PeerConnection.cc
  10541. (receiveMessage): Added a call to socket->readable() after getting
  10542. message length to avoid possible EOF.
  10543. * src/Util.cc
  10544. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10545. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. To add an ability to pre-allocate file space:
  10547. * src/DirectDiskAdaptor.h: Rewritten.
  10548. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10549. * src/MultiDiskAdaptor.h: Rewritten.
  10550. * src/DefaultPieceStorage.cc
  10551. (MultiDiskWriter.h): Removed include.
  10552. (PreAllocationDiskWriter.h): Removed include.
  10553. (FileAllocationMonitor.h): New include.
  10554. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10555. (initStorage): Rewritten.
  10556. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10557. * src/FileAllocator.h: New class.
  10558. * src/FileAllocator.cc: New class.
  10559. * src/FileAllocationMonitor.h: New class.
  10560. * src/FileAllocationMonitor.cc: New class.
  10561. * src/ConsoleFileAllocationMonitor.h: New class.
  10562. * src/ConsoleFileAllocationMonitor.cc: New class.
  10563. * src/AbstractSingleDiskAdaptor.h: New class.
  10564. * src/AbstractSingleDiskAdaptor.cc: New class.
  10565. * src/DiskAdaptor.h
  10566. (Directory.h): Removed include.
  10567. (DiskWriter.h): Removed include.
  10568. (FileEntry.h): Removed include.
  10569. (diskWriter): Removed.
  10570. (DiskAdaptor): Removed diskWriter.
  10571. (openFile): Made pure virtual.
  10572. (closeFile): Made pure virtual.
  10573. (openExistingFile): Made pure virtual.
  10574. (initAndOpenFile): Made pure virtual.
  10575. (writeData): Made pure virtual.
  10576. (readData): Made pure virtual.
  10577. (sha1Sum): Made pure virtual.
  10578. (getStoreDir): Returns const reference of storeDir.
  10579. (DiskAdaptorHandle): New type definition.
  10580. * src/main.cc
  10581. (ConsoleFileAllocationMonitor.h): New include.
  10582. (showUsage): Added default value description of -s option.
  10583. Added the description of --file-allocation option.
  10584. (main): Set default value of --file-allocation option to 'none'.
  10585. Added --file-allocation command-line option.
  10586. Setup FileAllocationMonitorFactory.
  10587. * src/FtpInitiateConnectionCommand.cc
  10588. (executeInternal): Removed diskWriter related processing, which was
  10589. moved to FtpNegotiationCommand.cc.
  10590. * src/DirectDiskAdaptor.cc
  10591. (getFilePath): Made non-const.
  10592. * src/CopyDiskAdaptor.h
  10593. (DiskAdaptor.h): Removed include.
  10594. (DiskWriter.h): Removed include.
  10595. (AbstractSingleDiskAdaptor.h): New include.
  10596. (getFilePath): Made non-const. Added virtual keyword.
  10597. (CopyDiskAdaptor): Removed diskWriter.
  10598. (getTempFile): Returns const reference.
  10599. (CopyDiskAdaptorHandle): New type definition.
  10600. * src/ByteArrayDiskWriter.cc
  10601. (clear): Simplified.
  10602. (initAndOpenFile): Rewritten.
  10603. (openFile): Call initAndOpenFile()
  10604. * src/MultiDiskAdaptor.cc: Rewritten.
  10605. * src/DownloadEngineFactory.cc
  10606. (FileAllocator.h): New include.
  10607. (FileAllocationMonitor.h): New include.
  10608. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10609. create DefaultDiskWriter with file allocator.
  10610. * src/DiskWriter.h
  10611. (initAndOpenFile): Added totalLength argument.
  10612. (openFile): Added totalLength argument.
  10613. * src/prefs.h
  10614. (PREF_FILE_ALLOCATION): New definition.
  10615. (V_PREALLOC): New definition.
  10616. (V_NONE): New definition.
  10617. * src/HttpResponseCommand.cc
  10618. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10619. size.
  10620. * src/FtpNegotiateCommand.cc
  10621. (Util.h): New include.
  10622. (recvSize): Open file here.
  10623. * src/Util.h
  10624. (ullitos): New function.
  10625. * src/CopyDiskWriter.h
  10626. (getFilePath): Made non-const.
  10627. * src/DefaultDiskWriter.h
  10628. (Option.h): New include.
  10629. (totalLength): Removed.
  10630. (DefaultDiskWriter): Removed totalLength.
  10631. (initAndOpenFile): Added totalLength argument.
  10632. (DefaultDiskWriterHandle): New type definition.
  10633. (createNewDiskWriter): New function.
  10634. * src/Util.cc
  10635. (ullitos): New function.
  10636. * src/DefaultDiskWriter.cc
  10637. (message.h): New include.
  10638. (FileAllocator.h): New include.
  10639. (prefs.h): New include.
  10640. (Util.h): New include.
  10641. (DefaultDiskWriter): Removed totalLength.
  10642. (initAndOpenFile): Added file allocation.
  10643. (createNewDiskWriter): New function. Just for temporary solution.
  10644. It will be rewritten later.
  10645. * src/DiskAdaptor.cc
  10646. (DiskAdaptor): Removed diskWriter.
  10647. * src/AbstractDiskWriter.cc
  10648. (LogFactory.h): New include.
  10649. (AbstractDiskWriter): Added fileAllocator, logger.
  10650. (openFile): Added totalLength argument.
  10651. * src/AbstractDiskWriter.h
  10652. (FileAllocator.h): New include.
  10653. (Logger.h): New include.
  10654. (fileAllocator): New variable.
  10655. (logger): New variable.
  10656. (openFile): Added totalLength argument. Added virtual keyword
  10657. explicitly.
  10658. (openExistingFile): Added totalLength argument. Added virtual keyword
  10659. explicitly.
  10660. (closeFile): Added virtual keyword explicitly.
  10661. (sha1Sum): Added virtual keyword explicitly.
  10662. (writeData): Added virtual keyword explicitly.
  10663. (readData): Added virtual keyword explicitly.
  10664. (setFileAllocator): New function.
  10665. * src/DefaultPieceStorage.h
  10666. (FileAllocator.h): New include.
  10667. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10668. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10669. * src/FileProgressMonitor.h: New class.
  10670. To compile aria2 on PC-BSD:
  10671. * src/DefaultBtContext.cc
  10672. (libgen.h): New include.
  10673. To fix memory leak:
  10674. * src/Exception.h
  10675. (~Exception): Delete cause. Fixed memory leak.
  10676. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. Rewritten a portion of bittorrent implementation:
  10678. * src/BtMessageValidator.h: New class.
  10679. * src/BtBitfieldMessageValidator.h: New class.
  10680. * src/BtHandshakeMessageValidator.h: New class.
  10681. * src/BtRequestMessageValidator.h: New class.
  10682. * src/BtSuggestPieceMessageValidator.h: New class.
  10683. * src/BtAllowedFastMessageValidator.h: New class.
  10684. * src/BtRejectMessageValidator.h: New class.
  10685. * src/BtCancelMessageValidator.h: New class.
  10686. * src/BtPieceMessageValidator.h: New class.
  10687. * src/BtHaveMessageValidator.h: New class.
  10688. * src/BtEventListener.h: New class.
  10689. * src/AbstractBtEventListener.h: New class.
  10690. * src/BtEvent.h: New class.
  10691. * src/BtChokingEvent.h: New class.
  10692. * src/BtChokedEvent.h: New class.
  10693. * src/BtCancelSendingPieceEvent.h: New class.
  10694. * src/BtAbortOutstandingRequestEvent.h: New class.
  10695. * src/Randomizer.h: New class.
  10696. * src/SimpleRandomizer.h: New class.
  10697. * src/BtMessage.h: New class.
  10698. * src/AbstractBtMessage.h: New class.
  10699. * src/SimpleBtMessage.h: New class.
  10700. * src/BtHaveMessage.h: New class.
  10701. * src/BtInterestedMessage.h: New class.
  10702. * src/BtAllowedFastMessage.h: New class.
  10703. * src/BtUnchokeMessage.h: New class.
  10704. * src/BtCancelMessage.h: New class.
  10705. * src/BtNotInterestedMessage.h: New class.
  10706. * src/BtChokeMessage.h: New class.
  10707. * src/BtHaveNoneMessage.h: New class.
  10708. * src/BtHandshakeMessage.h: New class.
  10709. * src/BtSuggestPieceMessage.h: New class.
  10710. * src/BtHaveMessage.h: New class.
  10711. * src/BtPieceMessage.h: New class.
  10712. * src/BtHaveAllMessage.h: New class.
  10713. * src/BtKeepAliveMessage.h: New class.
  10714. * src/BtPortMessage.h: New class.
  10715. * src/BtRejectMessage.h: New class.
  10716. * src/BtBitfieldMessage.h: New class.
  10717. * src/BtRequestMessage.h: New class.
  10718. * src/DefaultBtRequestFactory.h: New class.
  10719. * src/DefaultBtMessageReceiver.h: New class.
  10720. * src/BtInteractive.h: New class.
  10721. * src/BtMessageDispatcher.h: New class.
  10722. * src/DefaultBtMessageDispatcher.h: New class.
  10723. * src/DefaultBtInteractive.h: New class.
  10724. * src/BitfieldManFactory.h: New class.
  10725. * src/HandleRegistry.h: New class.
  10726. * src/BtMessageFactory.h: New class.
  10727. * src/BtMessageReceiver.h: New class.
  10728. * src/DefaultBtMessageFactory.h: New class.
  10729. * src/PeerObject.h: New class.
  10730. * src/BtRequestFactory.h: New class.
  10731. * src/SuggestPieceMessage.h: Removed.
  10732. * src/PortMessage.h: Removed.
  10733. * src/SuggestPieceMessage.h: Removed.
  10734. * src/KeepAliveMessage.h: Removed.
  10735. * src/HandshakeMessage.h: Removed.
  10736. * src/PeerInteraction.h: Removed.
  10737. * src/UnchokeMessage.h: Removed.
  10738. * src/PieceMessage.h: Removed.
  10739. * src/RequestMessage.h: Removed.
  10740. * src/InterestedMessage.h: Removed.
  10741. * src/HaveMessage.h: Removed.
  10742. * src/CancelMessage.h: Removed.
  10743. * src/RejectMessage.h: Removed.
  10744. * src/AllowedFastMessage.h: Removed.
  10745. * src/HaveNoneMessage.h: Removed.
  10746. * src/SimplePeerMessage.h: Removed.
  10747. * src/HaveAllMessage.h: Removed.
  10748. * src/BitfieldMessage.h: Removed.
  10749. * src/PeerMessageFactory.h: Removed.
  10750. * src/NotInterestedMessage.h: Removed.
  10751. * src/ChokeMessage.h: Removed.
  10752. * src/PeerMessage.h: Removed.
  10753. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10754. To know root cause of exception:
  10755. * src/Exception.h
  10756. (cause): New variable.
  10757. (Exception): Added a parameter.
  10758. (getMsg): Return const reference to msg.
  10759. (getCause): New function.
  10760. * src/DlRetryEx.h
  10761. (DlRetryEx): Added a parameter 'cause'.
  10762. Added an overloaded constructor.
  10763. (DlAbortEx): Added a parameter 'cause'.
  10764. Added an overloaded constructor.
  10765. * src/SimpleLogger.cc
  10766. (writeLog): Log nested exception messages recursively.
  10767. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10768. * src/DefaultBtProgressInfoFile.cc
  10769. (load): Fixed memory leak when the infohash doesn't match.
  10770. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. * src/DefaultPeerStorage.cc
  10772. (calculateStat): Simplified the code by combining 2 loops into 1.
  10773. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10775. for BitTorrent download:
  10776. * src/PeerAbstractCommand.cc
  10777. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10778. * src/main.cc:
  10779. (timeoutSpecified): Removed.
  10780. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10781. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10782. * src/TorrentRequestInfo.cc
  10783. (timeoutSpecified): Removed.
  10784. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10785. timeout value.
  10786. * src/prefs.h
  10787. (PREF_BT_TIMEOUT): New definition.
  10788. Delete unused variables:
  10789. * src/TorrentRequestInfo.cc
  10790. (requestInfo): Removed.
  10791. Move setSignalHander to Util::setGlobalSignalHandler:
  10792. * src/TorrentRequestInfo.cc:
  10793. setSignalHander -> Util::setGlobalSignalHandler
  10794. * src/main.cc
  10795. (setSignalHander): Removed.
  10796. (main): setSignalHander -> Util::setGlobalSignalHandler
  10797. * src/Util.h
  10798. (setGlobalSignalHandler): New function.
  10799. * src/Util.cc
  10800. (setGlobalSignalHandler): New function.
  10801. * src/UrlRequestInfo.cc:
  10802. setSignalHander -> Util::setGlobalSignalHandler
  10803. Reset peer status in order to exit gracefully:
  10804. * src/PeerAbstractCommand.cc
  10805. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10806. To fix the bug that causes the number of bytes uploaded is not saved
  10807. to .aria2 file:
  10808. * src/DefaultPeerStorage.h
  10809. (removedPeerSessionDownloadLength): New variable.
  10810. (removedPeerSessionUploadLength): New variable.
  10811. * src/DefaultPeerStorage.cc
  10812. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10813. removedPeerSessionUploadLength(0).
  10814. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10815. through all peers, and then add removedPeerSessionDownloadLength(
  10816. removedPeerSessionUploadLength) to it.
  10817. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10818. (to) the peer to removedPeerSessionDownloadLength
  10819. (removedPeerSessionUploadLength).
  10820. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. To add Metalink location option:
  10822. * src/MetalinkRequestInfo.cc
  10823. (execute): Call MetalinkEntry::setLocationPreference()
  10824. * src/main.cc
  10825. (showUsage): Added the help message for --metalink-location option.
  10826. (main): Added --metalink-location option.
  10827. * src/prefs.h
  10828. (PREF_METALINK_LOCATION): New definition.
  10829. * src/MetalinkEntry.cc
  10830. (AddLocationPreference): New function object.
  10831. (setLocationPreference): New function.
  10832. * src/Xml2MetalinkProcessor.cc
  10833. (getResource): Set location attribute to MetalinkResource
  10834. To show URLs to download
  10835. * src/UrlRequestInfo.h
  10836. (printUrls): New function.
  10837. To add multiple <file> Metalink support:
  10838. * src/MetalinkEntry.h
  10839. (MetalinkResources): Removed.
  10840. (setLocationPreference): New function.
  10841. (MetalinkEntryHandle): New type definition.
  10842. (MetalinkEntries): New type definition.
  10843. * src/Xml2MetalinkProcessor.h
  10844. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10845. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10846. (parseFile): Metalinker* -> MetalinkerHandle
  10847. * src/UrlRequestInfo.h
  10848. (execute): RequestInfo* -> RequestInfos
  10849. * src/MetalinkRequestInfo.cc
  10850. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10851. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10852. (execute): RequestInfo* -> RequestInfos
  10853. Added multiple <file> support. Print filename when it is queued.
  10854. * src/MetalinkRequestInfo.h
  10855. (execute): RequestInfo* -> RequestInfos
  10856. (getDownloadEngine): Removed.
  10857. * src/RequestInfo.h
  10858. (RequestInfoHandle): New type definition.
  10859. (RequestInfos): New type definition.
  10860. (execute): RequestInfo* -> RequestInfos
  10861. (getDownloadEngine): Removed.
  10862. * src/MetalinkResource.h
  10863. (MetalinkResourceHandle): New type definition.
  10864. (MetalinkResources): New type definition.
  10865. * src/MetalinkEntry.cc
  10866. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10867. because the element is now of type MetalinkResourceHandle.
  10868. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10869. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10870. (dropUnsupportedResource): Removed the deletion of the elements of
  10871. resources because the element is now of type MetalinkResourceHandle.
  10872. * src/Xml2MetalinkProcessor.cc
  10873. (parseFile): Metalinker* -> MetalinkerHandle
  10874. MetalinkEntry* -> MetalinkEntryHandle
  10875. Removed try-catch block.
  10876. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10877. MetalinkResource* -> MetalinkResourceHandle
  10878. Removed try-catch block.
  10879. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10880. Free result by using xmlXPathFreeObject()
  10881. * src/Metalinker.cc
  10882. (~Metalinker): Removed the deletion of entries.
  10883. MetalinkEntry* -> MetalinkEntryHandle
  10884. (queryEntry): Add multiple <file> Metalink support.
  10885. * src/Metalinker.h
  10886. (MetalinkEntries): Removed.
  10887. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10888. * src/MetalinkProcessor.h
  10889. (parseFile): Metalinker* -> MetalinkerHandle
  10890. Bug fixes:
  10891. * src/PeerChokeCommand.cc
  10892. (execute): cat01->cat02
  10893. * src/DefaultPieceStorage.cc
  10894. (DefaultPieceStorage): Added diskAdaptor(0)
  10895. * src/TrackerWatcherComand.cc:
  10896. (execute): Use btAnnounce->noMoreAnnounce()
  10897. to determin whether the function returns true or not.
  10898. * src/TrackerUpdateCommand.cc:
  10899. (execute): Use btAnnounce->noMoreAnnounce()
  10900. to determin whether the function returns true or not.
  10901. * src/FtpConnection.cc
  10902. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10903. This is the fix of the busy loop bug.
  10904. * src/DownloadCommand.cc
  10905. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10906. cached PeerStat.
  10907. The value of "name" entry in torrent file is now set by
  10908. *DiskAdaptor::setTopDir(...) methods.
  10909. * src/MultiDiskAdaptor.h
  10910. (topDir): New variable.
  10911. (setTopDir): New function.
  10912. (getTopDir): New function.
  10913. * src/MultiDiskAdaptor.cc
  10914. (getFilePath): Concat storDir, "/" and topDir.
  10915. (mkdir): Use getFilePath() to get the directory path for output.
  10916. * src/DefaultPieceStorage.cc
  10917. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10918. CopyDiskAdaptor.
  10919. * src/CopyDiskAdaptor.h
  10920. (topDir): New variable.
  10921. (setTopDir): New function.
  10922. (getTopDir): New function.
  10923. * src/CopyDiskAdaptor.cc
  10924. (fixFilename): Updated.
  10925. Misc
  10926. * src/UrlRequestInfo.h
  10927. (e): Removed.
  10928. (UrlRequestInfo): Removed e.
  10929. (getDownloadEngine): Removed.
  10930. * src/UrlRequestInfo.cc
  10931. (handler): Rewritten.
  10932. (printUrls): New function.
  10933. (execute): Call printUrls().
  10934. * src/HandshakeMessage.cc
  10935. (check): peerinteraction->getBtContext() -> btContext
  10936. * src/PeerInteraction.h
  10937. (getBtContext): Removed.
  10938. * src/TorrentRequestInfo.h
  10939. (execute): RequestInfo* -> RequestInfos
  10940. (getDownloadEngine): Removed.
  10941. * src/TorrentRequestInfo.cc
  10942. (haltRequested): Removed.
  10943. (btHaltRequested): New variable.
  10944. (torrentHandler): haltRequested -> btHaltRequested
  10945. (execute): RequestInfo* -> RequestInfos
  10946. * src/TorrentConsoleDownloadEngine.cc
  10947. (afterEachIteration): haltRequested -> btHaltRequested.
  10948. * src/ConsoleDownloadEngine.h
  10949. (initStatistics): Added virtual.
  10950. (calculateStatistics): Added virtual.
  10951. (onEndOfRun): Added virtual.
  10952. (afterEachIteration): Added virtual.
  10953. * src/ConsoleDownloadEngine.cc
  10954. (haltRequested): New variable.
  10955. (afterEachIteration): New function.
  10956. * src/main.cc
  10957. (requestInfo): Removed.
  10958. * src/SegmentMan.cc
  10959. (findSlowerSegmentEntry): Refactored.
  10960. * Release 0.9.0
  10961. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10962. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10963. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10964. * src/TorrentMan.h: Removed.
  10965. * src/TorrentMan.cc: Removed.
  10966. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10967. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10968. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10969. * src/PeerAbstractCommand.cc: Use btRuntime.
  10970. * src/BtContextAwareCommand.h: New class.
  10971. * src/FileEntry.h: Added accessor methods for following variables.
  10972. (path): Made private.
  10973. (length): Made private.
  10974. (offset): Made private.
  10975. (extracted): Made private.
  10976. (requested): Made private.
  10977. (FileEntries): New definition.
  10978. (FileEntryHandle): New definition.
  10979. * src/FileEntry.cc: New file.
  10980. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10981. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10982. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10983. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10984. * src/PieceStorage.h: New file.
  10985. * src/PeerInteractionCommand.h: Use btContext.
  10986. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10987. btRuntime.
  10988. * src/DefaultBtProgressInfoFile.h: New file.
  10989. * src/DefaultBtProgressInfoFile.cc: New file.
  10990. * src/File.cc
  10991. (Util.h): New include.
  10992. (mkdirs): New function.
  10993. * src/MultiDiskAdaptor.h
  10994. (mkdir): New function.
  10995. * src/PeerListProcessor.h
  10996. (Peers): Removed.
  10997. * src/PeerInteraction.h
  10998. (torrentMan): Removed.
  10999. (btContext): New variable.
  11000. (peerStorage): New variable.
  11001. (pieceStorage): New variable.
  11002. (btAnnounce): New variable.
  11003. (getTorrentMan): Removed.
  11004. (getBtContext): New function.
  11005. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11006. btAnnounce.
  11007. * src/HandshakeMessage.h
  11008. (TorrentMan.h): Removed.
  11009. * src/HandshakeMessage.cc: Use btContext.
  11010. * src/DefaultBtAnnounce.cc: New file.
  11011. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11012. * src/DefaultPieceStorage.cc: New file.
  11013. * src/DefaultBtContext.h: New file.
  11014. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11015. Use the accessor methods of FileEntry.
  11016. * src/CookieBox.cc: Updated to use Util::slice().
  11017. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11018. * src/common.h (SharedHandle.h): New include.
  11019. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11020. pieceStorage.
  11021. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11022. * src/DiskAdaptor.h
  11023. (topDir): Removed.
  11024. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11025. (setTopDir): Removed.
  11026. (getTopDir): Removed.
  11027. * src/BtContext.h: New file.
  11028. * src/DefaultPeerStorage.h: New file.
  11029. * src/PieceMessage.h (TorrentMan.h): Removed.
  11030. * src/RequestMessage.h (TorrentMan.h): Removed.
  11031. * src/TorrentDownloadEngine.h
  11032. (uploadLength): New variable.
  11033. (btContext): New variable.
  11034. (btRuntime): New variable.
  11035. (pieceStorage): New variable.
  11036. (peerStorage): New variable.
  11037. (btAnnounce): New variable.
  11038. (btProgressInfoFile): New variable.
  11039. (torrentMan): Removed.
  11040. (setBtContext): New function.
  11041. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11042. peerStorage, btAnnounce, btProgressInfoFile.
  11043. * src/Piece.h
  11044. (toString): New function.
  11045. (Pieces): New type definition.
  11046. * src/Peer.h
  11047. (active): New variable.
  11048. (Peer): Added active.
  11049. (activate): Set active to true.
  11050. (deactivate): Set active to false.
  11051. (isActive): New function.
  11052. (Peers): New type definition.
  11053. * src/DirectDiskAdaptor.cc
  11054. (getFilePath): Use the accessor methods of FileEntry.
  11055. * src/TorrentConsoleDownloadEngine.h
  11056. (afterEachIteration): New function.
  11057. * src/TorrentConsoleDownloadEngine.cc
  11058. (haltRequested): New variable.
  11059. (sendStatistics): Use pieceStorage, btRuntime.
  11060. (afterEachIteration): New function.
  11061. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11062. * src/Directry.h
  11063. (Directory): New function.
  11064. (DirectoryHandle): New type definition.
  11065. * src/BtProgressInfoFile.h: New file.
  11066. * src/RequestMessage.cc: Use pieceStorage.
  11067. * src/BtRuntime.h: New file.
  11068. * src/DefaultBtContext.cc: New file.
  11069. * src/BitfieldMan.h
  11070. (getCompletedLength): New function(private).
  11071. (getCompletedLength): New function.
  11072. (getFilteredCompletedLength): New function.
  11073. * src/BitfieldMan.h
  11074. (getCompletedLength): New function(private).
  11075. (getCompletedLength): New function.
  11076. (getFilteredCompletedLength): New function.
  11077. * src/MultiDiskAdaptor.cc
  11078. (mkdir): New function.
  11079. (openFile): Call mkdir().
  11080. (initAndOpenFile): Call mkdir().
  11081. * src/CancelMessage.h
  11082. (TorrentMan.h): Removed.
  11083. * src/RejectMessage.h
  11084. (TorrentMan.h): Removed.
  11085. * src/DownloadEngineFactory.cc
  11086. (DefaultPieceStorage.h): New include.
  11087. (DefaultPeerStorage.h): New include.
  11088. (DefaultBtAnnounce.h): New include.
  11089. (DefaultBtProgressInfoFile.h): New include.
  11090. (newTorrentConsoleEngine): Rewritten.
  11091. * src/ShareRatioSeedCriteria.h
  11092. (torrentMan): Removed.
  11093. (btContext): New variable.
  11094. (peerStorage): New variable.
  11095. (btRuntime): New variable.
  11096. (evaluate): Use btContext, btRuntime, peerStorage.
  11097. * src/AnnounceTier.h: New file.
  11098. * src/BtAnnounce.h: New file.
  11099. * src/BtRegistry.h: New file.
  11100. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11101. * src/PeerConnection.h (TorrentMan.h): Removed.
  11102. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11103. * src/Util.h
  11104. (slice): Added an argument.
  11105. * src/Util.cc
  11106. (slice): Added an argument to control whether trim is made or not.
  11107. * src/PeerStorage.h: New file.
  11108. * src/BtRegistry.cc: New file.
  11109. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11110. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11111. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11112. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11113. * src/TorrentRequestInfo.h
  11114. (e): Removed.
  11115. (showFileEntry): Added an argument.
  11116. (getDownloadEngine): Return 0.
  11117. * src/DefaultBtAnnounce.h: New file.
  11118. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11119. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11120. * src/PeerMessageFactory.h
  11121. (btContext): New variable.
  11122. (pieceStorage): New variable.
  11123. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11124. btAnnounce.
  11125. * src/DiskAdaptor.cc
  11126. (DiskAdaptor): Removed topDir.
  11127. (~DiskAdaptor): Removed topDir.
  11128. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11129. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11130. * src/File.h (mkdirs): New function.
  11131. * src/DefaultPeerStorage): New file.
  11132. * src/DownloadEngineFactory.h
  11133. (newTorrentConsoleEngine): Use btContext.
  11134. * src/BtContextAwareCommand.cc: New file.
  11135. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11136. * src/PeerMessage.h
  11137. (btContext): New variable.
  11138. (peerStorage): New variable.
  11139. (pieceStorage): New variable.
  11140. (setBtContext): New function.
  11141. * src/Directry.cc
  11142. (Directory): New function.
  11143. (createDir): Do nothing if name.size() == 0.
  11144. * src/AnnounceList.h
  11145. (AnnounceTier): Removed.
  11146. (AnnounceTiers): Removed.
  11147. * src/DefaultPieceStorage.h: New file.
  11148. * src/Piece.cc (toString): New function.
  11149. To fix typo:
  11150. * src/main.cc (showVersion): Fixed typo.
  11151. To fix compile warning:
  11152. * src/DelegatingPeerListProcessor.cc
  11153. (canHandle): Added "return false".
  11154. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11156. make the process of announce request testable.
  11157. * src/TrackerWatcherCommand.h
  11158. (TimeA2.h): Removed.
  11159. (interval): Removed.
  11160. (checkPoint): Removed.
  11161. (createRequestCommand): Added an argument 'url'.
  11162. (TrackerWatherCommand): Removed interval.
  11163. (createCommand): New function.
  11164. * src/DownloadEngineFactory.cc
  11165. (newTorrentConsoleEngine): Updated according to the changes in
  11166. TrackerWatherCommand.
  11167. * src/TorrentMan.cc
  11168. (DelegatingPeerListProcessor.h): New includes.
  11169. (TorrentMan): Added the initialization of announceInterval.
  11170. (isStoppedAnnounceReady): New function.
  11171. (isCompletedAnnounceReady): New function.
  11172. (isDefaultAnnounceReady): New function.
  11173. (isAnnounceReady): New function.
  11174. (getAnnounceUrl): New function.
  11175. (announceStart): New function.
  11176. (announceFailure): New function.
  11177. (announceSuccess): New function.
  11178. (isAllAnnounceFailed): New function.
  11179. (resetAnnounce): New function.
  11180. (processAnnounceResponse): New function.
  11181. (needMorePeerConnection): New function.
  11182. (noMoreAnnounce): New function.
  11183. * src/TrackerUpdateCommand.h
  11184. (getTrackerResponse): int->size_t
  11185. * src/TorrentMan.h
  11186. (isStoppedAnnounceReady): New function.
  11187. (isCompletedAnnounceReady): New function.
  11188. (isDefaultAnnounceReady): New function.
  11189. (announceInterval): New variable.
  11190. (isAnnounceReady): New function.
  11191. (getAnnounceUrl): New function.
  11192. (announceStart): New function.
  11193. (announceFailure): New function.
  11194. (announceSuccess): New function.
  11195. (isAllAnnounceFailed): New function.
  11196. (resetAnnounce): New function.
  11197. (processAnnounceResponse): New function.
  11198. (needMorePeerConnection): New function.
  11199. (noMoreAnnounce): New function.
  11200. * src/TrackerWatcherCommand.cc
  11201. (TrackerWatherCommand): Removed interval and checkPoint.
  11202. (execute): Rewritten.
  11203. (createCommand): New function.
  11204. (createRequestCommand): Rewritten.
  11205. * src/TrackerUpdateCommand.cc
  11206. (MetaFileUtil.h): Removed.
  11207. (DelegatingPeerListProcessor.h): Removed.
  11208. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11209. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11210. Request -> RequestHandle:
  11211. * src/HttpResponseCommand.h: Request->RequestHandle
  11212. * src/AbstractCommand.cc: Request->RequestHandle
  11213. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11214. * src/HttpRequestCommand.cc: Request->RequestHandle
  11215. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11216. * src/AbstractCommand.h: Request->RequestHandle
  11217. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11218. * src/HttpResponseCommand.cc: Request->RequestHandle
  11219. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11220. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11221. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11222. * src/HttpConnection.h: Request->RequestHandle
  11223. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11224. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11225. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11226. * src/DownloadCommand.h: Request->RequestHandle
  11227. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11228. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11229. * src/HttpRequestCommand.h: Request->RequestHandle
  11230. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11231. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11232. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11233. * src/HttpDownloadCommand.h: Request->RequestHandle
  11234. * src/FtpConnection.cc: Request->RequestHandle
  11235. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11236. * src/UrlRequestInfo.cc: Request->RequestHandle
  11237. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11238. * src/HttpConnection.h: Request->RequestHandle
  11239. * src/DownloadCommand.cc: Request->RequestHandle
  11240. * src/FtpConnection.h: Request->RequestHandle
  11241. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11242. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11243. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11244. * src/Request.h
  11245. (SharedHandle.h): New include.
  11246. (RequestHandle): New type definition.
  11247. (Requests): Redefined.
  11248. To add MULTITRACKER support:
  11249. * src/TrackerWatcherCommand.h
  11250. (createRequestCommand): New function.
  11251. * src/DownloadEngineFactory.cc
  11252. (newTorrentConsoleEngine): Removed req.
  11253. * src/prefs.h
  11254. (PREF_TRACKER_MAX_TRIES): New definition.
  11255. * src/TorrentMan.cc
  11256. (TorrentMan): Removed req. Added trackerNumTry.
  11257. (~TorrentMan): Removed req.
  11258. (setupInternal1): Added announceList.
  11259. * src/TorrentRequestInfo.cc
  11260. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11261. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11262. * src/main.cc
  11263. (main): Added PREF_TRACKER_MAX_TRIES.
  11264. * src/TorrentMan.h
  11265. (Request.h): Removed.
  11266. (AnnounceList.h): New include.
  11267. (trackerNumTry): New variable.
  11268. (req): Removed.
  11269. (announceList): New variable.
  11270. * src/TrackerWatcherCommand.cc
  11271. (execute): Rewritten.
  11272. (createRequestCommand): New function.
  11273. * src/TrackerUpdateCommand.cc
  11274. (execute): Updated with the use of AnnounceList.
  11275. * src/AnnounceList.cc: New class.
  11276. * src/AnnounceList.h: New class.
  11277. To fix typo:
  11278. * src/prefs.h
  11279. (PREF_MAX_TRIES): max_try->max_tries
  11280. To not to decode "+" as space in URL decode:
  11281. * src/Util.cc
  11282. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11283. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11284. To add timeout to async name resolution:
  11285. * src/AbstractCommand.h
  11286. (nameResolveFinished): New function. This is not elegant way. It needs
  11287. to be more refined.
  11288. (nameResolverCheck): New variable.
  11289. * src/AbstractCommand.cc
  11290. (AbstractCommand): Added nameResolverCheck.
  11291. (execute): Added the check whether the name resolution has finished.
  11292. (setNameResolverCheck): Set nameResolverCheck to true.
  11293. (disableNameResolverCheck): Set nameResolverCheck to false.
  11294. (nameResolverFinished): New function.
  11295. * src/FtpInitiateConnectionCommand.h
  11296. (nameResolverFinished): New function.
  11297. * src/FtpInitiateConnectionCommand.cc
  11298. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11299. * src/HttpInitiateConnectionCommand.h
  11300. (nameResolverFinished): New function.
  11301. * src/HttpInitiateConnectionCommand.cc
  11302. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11303. * src/prefs.h
  11304. (PREF_DNS_TIMEOUT): New definition.
  11305. * src/main.cc
  11306. (main): Added PREF_DNS_TIMEOUT.
  11307. To add the support for a non-compact response from a tracker:
  11308. * src/PeerListProcessor.h: New class.
  11309. * src/DefaultPeerListProcessor.h: New class.
  11310. * src/DefaultPeerListProcessor.cc: New class.
  11311. * src/CompactPeerListProcessor.h: New class.
  11312. * src/CompactPeerListProcessor.cc: New class.
  11313. * src/DelegatingPeerListProcessor.h: New class.
  11314. * src/DelegatingPeerListProcessor.cc: New class.
  11315. * src/TorrentMan.cc
  11316. (addPeer): New function(overload).
  11317. (addPeer): Delete unused peers only when new peer is added.
  11318. * src/TorrentMan.h
  11319. (PeerListProcessor.h): Included.
  11320. (Peers): Removed.
  11321. (addPeer): New function(overload).
  11322. * src/TrackerUpdateCommand.cc
  11323. (netinet/in.h): Removed.
  11324. (DelegatingPeerListProcessor.h): Included.
  11325. (execute): Updated to use DelegatingPeerListProcessor.
  11326. To fix the memory leak in TorrentMan::peers:
  11327. * src/PeerAbstractCommand.cc
  11328. (onAbort): Added peer->resetStatus().
  11329. * src/Peer.h
  11330. (resetStatus): Made public.
  11331. To improve the precision of the speed calculation:
  11332. * src/SpeedCalc.h
  11333. (nextInterval): New variable.
  11334. * src/SpeedCalc.cc
  11335. (reset): Added nextInterval.
  11336. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11337. (changeSw): Set nextInterval to 15 seconds relative to the current
  11338. instant time.
  11339. * src/main.cc
  11340. (showVersion): Updated.
  11341. (showUsage): Updated.
  11342. * Release 0.8.1
  11343. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. * src/main.cc
  11345. (showUsage): Commented out --min-segment-size option.
  11346. (main): Commented out --min-segment-size option.
  11347. * Release 0.8.0
  11348. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11349. * src/*.{h,cc}:
  11350. Added an exception to the license which allows linking with OpenSSL.
  11351. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. * src/AbstractCommand.cc
  11353. (execute): Check whether the download has finished before checking
  11354. socket status.
  11355. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11356. Do not exit even if no segment is available.
  11357. * src/prefs.h
  11358. (PREF_STARTUP_IDLE_TIME): New definition.
  11359. * src/PeerInteractionCommand.cc
  11360. (executeInternal): Removed max speed limit. Because it performs bad.
  11361. (receiveMessages): Added max speed limit. This was better than above,
  11362. but still a little bit to be desired. Sometimes the download speed
  11363. became much faster than I specified.
  11364. * src/SpeedCalc.h
  11365. (start): New variable.
  11366. (accumulatedLength): New variable.
  11367. (getAvgSpeed): New function.
  11368. * src/SpeedCalc.cc
  11369. (reset): Added start, accumulatedLength.
  11370. (update): Added calculation of an average speed.
  11371. (getAvgSpeed): New function.
  11372. * src/DownloadCommand.h
  11373. (sw): Removed.
  11374. * src/main.cc
  11375. (main): Added PREF_STARTUP_IDLE_TIME.
  11376. * src/PeerStat.h
  11377. (STATUS): Added REQUEST_IDLE.
  11378. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11379. (getAvgDownloadSpeed): New function
  11380. (requestIdle): New function.
  11381. * src/SegmentMan.h
  11382. (SegmentEntryHandle): New type definition.
  11383. (SegmentEntries): Now holds SegmentEntryHandle.
  11384. (findSlowerSegmentEntry): New funtion.
  11385. * src/SegmentMan.cc
  11386. (save): Updated according to the changes in SegmentEntries.
  11387. (read): Updated according to the changes in SegmentEntries.
  11388. (FindSegmentEntryByIndex): Updated according to the changes in
  11389. SegmentEntries.
  11390. (FindSegmentEntryByCuid): Updated according to the changes in
  11391. SegmentEntries.
  11392. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11393. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11394. Renamed uitr as itr.
  11395. (findSlowerSegmentEntry): New function.
  11396. (getSegment): Updated according to the changes in SegmentEntries.
  11397. Added the feature that cancels the segment with slow server and fast
  11398. one takes it over.
  11399. (cancelSegment): Updated according to the changes in SegmentEntries.
  11400. (getDownloadLength): Updated according to the changes in
  11401. SegmentEntries.
  11402. (init): Assigned 0 to bitfield after deleting it.
  11403. * src/DownloadCommand.cc
  11404. (STARTUP_IDLE_TIME): Removed.
  11405. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11406. * src/PeerChokeCommand.cc
  11407. (optUnchokingPeer): Updated according to the changes in Peer.
  11408. (ResetDelta): Removed.
  11409. (UploadFaster): Updated according to the changes in Peer.
  11410. (DownloadFaster): Updated according to the changes in Peer.
  11411. (execute): I clarify the meaning of "upload" and "download" here.
  11412. "upload" means the transfer from localhost to remote host.
  11413. "download" means the transfer from remote host to localhost.
  11414. Based on this rule, I swapped orderByUploadRate and
  11415. orderByDownloadRate.
  11416. * src/PeerInteractionCommand.cc
  11417. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11418. (executeInternal): Removed the argument of
  11419. peerInteraction->sendMessages().
  11420. (receiveMessages): Rewritten download speed limit.
  11421. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11422. * src/HttpResponseCommand.cc
  11423. (handleDefaultEncoding): If file size is unknown in torrent request,
  11424. do not call segmentMan->initBitfield() here.
  11425. Disabled persistent connection feature in torrent request.
  11426. * src/UrlRequestInfo.h
  11427. (UrlRequestInfo): Removed const qualifier from option.
  11428. * src/TorrentMan.h
  11429. (TransferStat): New class.
  11430. (deltaDownloadLength): Removed.
  11431. (deltaUploadLength): Removed.
  11432. (addDeltaDownloadLength): Removed.
  11433. (getDeltaDownloadLength): Removed.
  11434. (resetDeltaDownloadLength): Removed.
  11435. (addDeltaUploadLength): Removed.
  11436. (getDeltaUploadLength): Removed.
  11437. (resetDeltaUploadLength): Removed.
  11438. (addActivePeer): Added peer->activate().
  11439. (deleteActivePeer): Added peer->deactivate().
  11440. (calculateStat): New function.
  11441. * src/TorrentMan.cc
  11442. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11443. (calculateStat): New function.
  11444. * src/PeerInteraction.h
  11445. (uploadLimit): Removed.
  11446. (option): New variable.
  11447. (setUploadLimit): Removed.
  11448. (getUploadSpeed): Removed.
  11449. (sendMessages): Removed the argument "currentUploadSpeed".
  11450. * src/PeerInteraction.cc
  11451. (prefs.h): Included.
  11452. (PeerInteraction): Removed uploadLimit. Added option.
  11453. (sendMessages): Rewritten upload speed limit.
  11454. (sendHandshake): Removed the argument from sendMessages().
  11455. (sendBitfield): Removed the argument from sendMessages().
  11456. * src/PeerAbstractCommand.cc
  11457. (execute): Commented out the portion of upload limit.
  11458. (onAbort): Removed peer->resetStatus().
  11459. * src/TorrentRequestInfo.cc
  11460. (timeoutSpecified): Declared extern.
  11461. (execute): Set timeout to 180 if timeout is not specified by.
  11462. command-line.
  11463. * src/PieceMessage.cc
  11464. (receivedAction): Added peer->updateDownloadLength().
  11465. Removed peer->addPeerUpload().
  11466. Removed torrentMan->addDeltaDownloadLength().
  11467. (send): Added peer->updateUploadLength().
  11468. Removed peer->addPeerDownload().
  11469. Removed torrentMan->addDeltaUploadLength().
  11470. * src/main.cc
  11471. (timeoutSpecified): New variable.
  11472. (main): Set timeoutSpecified to false.
  11473. If the command-line option "--upload-limit" is specified, then
  11474. timeoutSpecified is set to true. This option will remain in the next
  11475. release, but be deprecated in the future release.
  11476. * src/TorrentRequestInfo.h
  11477. (TorrentRequestInfo): Removed const qualifier from op.
  11478. * src/PeerStat.h
  11479. (uploadSpeed): New variable.
  11480. (PeerStat): Added default value to cuid.
  11481. (calculateUploadSpeed): New function.
  11482. (updateUploadLength): New function.
  11483. (getMaxUploadSpeed): New function.
  11484. (getAvgUploadSpeed): New function.
  11485. (reset): Added uploadSpeed. Set status to IDLE.
  11486. * src/TorrentDownloadEngine.h
  11487. (cp): Declared as Time.
  11488. (sessionDownloadLengthArray): Removed.
  11489. (sessionUploadLengthArray): Removed.
  11490. (currentCp): Removed.
  11491. (lastCalcStat): New variable
  11492. (lastElapsed): Removed.
  11493. (sessionDownloadLength): Removed.
  11494. (calculateStat): New function.
  11495. * src/TorrentDownloadEngine.cc
  11496. (initStatistics): Removed lastElapsed, cp[],
  11497. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11498. currentCp, sessionDownloadLength.
  11499. Added cp.reset() and lastCalcStat.reset().
  11500. (calculateSpeed): Changed the name of the argument.
  11501. (calculateStatistics): Rewritten.
  11502. (calculateStat): New function.
  11503. * src/Peer.h
  11504. (PeerStat.h): Included.
  11505. (peerUpload): Removed.
  11506. (peerDownload): Removed.
  11507. (peerStat): New variable.
  11508. (sessionUploadLength): New variable.
  11509. (sessionDownloadLength): New variable.
  11510. (deltaUpload): Removed.
  11511. (deltaDownload): Removed.
  11512. (resetStatus): Made private.
  11513. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11514. Removed peerUpload, peerDownload.
  11515. (updateUploadLength): New function.
  11516. (addDeltaUpload): Removed.
  11517. (updateDownloadLength): New function.
  11518. (resetDeltaUpload): Removed.
  11519. (getDeltaUpload): Removed.
  11520. (addDeltaDownload): Removed.
  11521. (calculateUploadSpeed): New function.
  11522. (resetDeltaDownload): Removed.
  11523. (getDeltaDownload): Removed.
  11524. (calculateDownloadSpeed): New function.
  11525. (getSessionUploadLength): New function.
  11526. (getSessionDownloadLength): New function.
  11527. (activate): New function.
  11528. (deactivate): New function.
  11529. (addPeerUpload): Removed.
  11530. (setPeerUpload): Removed.
  11531. (getPeerUpload): Removed.
  11532. (addPeerDownload): Removed.
  11533. (setPeerDownload): Removed.
  11534. (getPeerDownload): Removed.
  11535. * src/Peer.cc
  11536. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11537. * src/MetalinkRequestInfo.h
  11538. (MetalinkRequestInfo): Removed const qualifier from op.
  11539. * src/RequestInfo.h
  11540. (op): Removed const qualifier.
  11541. (RequestInfo): Removed const qualifier from op.
  11542. * src/prefs.h
  11543. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11544. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11545. * src/PeerInteractionCommand.cc
  11546. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11547. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11548. * src/PeerInteraction.cc
  11549. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11550. * src/main.cc
  11551. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11552. Added the description of "--max-download-limit" option.
  11553. Removed the description of "--upload-limit" option.
  11554. Added the description of "--max-upload-limit" option.
  11555. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11556. Added "--max-download-limit" option and "--max-upload-limit" option.
  11557. Added the warning message if "--upload-limit" option is used.
  11558. * src/DownloadCommand.cc
  11559. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11560. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11561. To rewrite segment download mechanism for HTTP/FTP download.
  11562. Use BitfieldMan to manage segment download.
  11563. * src/HttpResponseCommand.h
  11564. (executeInternal): Pass the reference of segment.
  11565. * src/AbstractCommand.cc
  11566. (prepareForRetry): Call segmentMan->cancelSegment here.
  11567. (onAbort): Call segmentMan->cancelSegment here.
  11568. * src/HttpDownloadCommand.cc
  11569. (prepareForNextSegment): New function.
  11570. * src/DownloadEngineFactory.cc
  11571. (newConsoleEngine): Removed splitter.
  11572. (newTorrentConsoleEngine): Removed splitter.
  11573. * src/Request.h
  11574. (segment): Renamed from seg.
  11575. * src/FtpInitiateConnectionCommand.h
  11576. (executeInternal): Pass the reference of segment.
  11577. * src/AbstractCommand.h
  11578. (executeInternal): Pass the reference of segment.
  11579. * src/pref.h
  11580. (PREF_SEGMENT_SIZE): New definition.
  11581. * src/HttpProxyRequestCommand.h
  11582. (executeInternal): Pass the reference of segment.
  11583. * src/HttpResponseCommand.cc
  11584. (checkResponse): Allowed status 206 when a request range starts 0.
  11585. (handleDefaultEncoding): Rewritten the code related to Segment.
  11586. (handleOtherEncoding): Rewritten the code related to Segment.
  11587. * src/SegmentMan.h
  11588. (SegmentEntry): New class.
  11589. (SegmentEntries): New type definition.
  11590. (bitfield): New variable.
  11591. (usedSegmentEntries): New variable.
  11592. (onNullBitfield): New function.
  11593. (checkoutSegment): New function.
  11594. (segments): Removed.
  11595. (splitter): Removed.
  11596. (unregisterId): Removed.
  11597. (getSegment): New function(overload)
  11598. (getDownloadedSize): Removed.
  11599. (cancelSegment): New function.
  11600. (completeSegment): New function.
  11601. (initBitfield): New function.
  11602. (hasSegment): New function.
  11603. (getDownloadLength): New function.
  11604. * src/BitfieldMan.h
  11605. (getStartIndex): New function.
  11606. (getEndIndex): New function.
  11607. (getMissingUnusedIndex): New function(overload).
  11608. (getSparseMissingUnusedIndex): New function.
  11609. * src/BitfieldMan.cc
  11610. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11611. (getMissingUnusedIndex): New function(overload).
  11612. (Range): New class.
  11613. (getStartIndex): New function.
  11614. (getEndIndex): New function.
  11615. (getSparseMissingUnusedIndex): New function.
  11616. (isBitSetInternal): Return false if the given index is less than 0.
  11617. * src/HttpInitiateConnectionCommand.h
  11618. (executeInternal): Pass the reference of segment.
  11619. * src/FtpNegotiateCommand.h
  11620. (executeInternal): Pass the reference of segment.
  11621. * src/FtpNegotiateCommand.cc
  11622. (recvSize): Initialize bitfield here.
  11623. * src/FtpTunnelResponseCommand.h
  11624. (executeInternal): Pass the reference of segment.
  11625. * src/HttpConnection.cc
  11626. (createRequest): Rewritten range header processing.
  11627. * src/DownloadCommand.h
  11628. (executeInternal): Pass the reference of segment.
  11629. (prepareForRetry): Removed.
  11630. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11631. function.
  11632. * src/main.cc
  11633. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11634. * src/SegmentMan.cc
  11635. (SegmentMan): Added bitfield. Removed splitter.
  11636. (~SegmentMan): Added bitfield. Removed splitter.
  11637. (unregisterId): Removed.
  11638. (getSegment): Rewritten.
  11639. (updateSegment): Rewritten.
  11640. (save): Rewritten.
  11641. (read): Rewritten.
  11642. (finished): Rewritten.
  11643. (getDownloadedSize): Removed.
  11644. (initBitfield): New function.
  11645. (FindSegmentEntryByIndex): New function object.
  11646. (FindSegmentEntryByCuid): New function object.
  11647. (checkoutSegment): New function.
  11648. (onNullBitfield): New function.
  11649. (getSegment): New function(overload).
  11650. (CancelSegment): New function object.
  11651. (cancelSegment): New function.
  11652. (completeSegment): New function.
  11653. (hasSegment): New function.
  11654. (getDownloadLength): New function.
  11655. * src/FtpInitiateConnectionCommand.cc
  11656. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11657. * src/Segment.h: Rewritten.
  11658. * src/Segment.cc (operator<<): New function.
  11659. * src/HttpDownloadCommand.h
  11660. (prepareForNextSegment): New function.
  11661. * src/Request.cc
  11662. (resetUrl): Made segment null.
  11663. * src/DownloadEngine.cc
  11664. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11665. * src/HttpProxyRequestCommand.h
  11666. (executeInternal): Pass the reference of segment.
  11667. * src/DownloadCommand.cc
  11668. (executeInternal): Rewritten the code related to Segment.
  11669. (prepareForRetry): Removed.
  11670. (prepareForNextSegment): Rewritten.
  11671. * src/FtpTunnelResponseCommand.h
  11672. (executeInternal): Pass the reference of segment.
  11673. To add HTTP 1.1 persistent connection support(experimental)
  11674. * src/HttpRequestCommand.cc
  11675. (executeInternal): Disable keep alive if it is disabled by
  11676. configuration.
  11677. * src/Request.h
  11678. (keepAlive): New variable.
  11679. (isKeepAlive): New function.
  11680. (setKeepAlive): New function.
  11681. * src/pref.h
  11682. (PREF_HTTP_KEEP_ALIVE): New definition.
  11683. * src/HttpResponseCommand.cc
  11684. (executeInternal): Check the remote server supports keep alive.
  11685. * src/HttpConnection.cc
  11686. (createRequest): Send "Connection: close" only if keep alive is
  11687. disabled.
  11688. * src/main.cc
  11689. (main):
  11690. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11691. To add max download speed limit:
  11692. * src/pref.h
  11693. (PREF_MAX_SPEED_LIMIT): New definition.
  11694. * src/PeerInteractionCommand.cc
  11695. (executeInternal): Added max download speed limit. Not tested yet.
  11696. * src/SegmentMan.h
  11697. (PeerStats): New type definition.
  11698. (peerStats): New variable.
  11699. (registerPeerStat): New function.
  11700. (FindPeerStat): New function object.
  11701. (getPeerStat): New function.
  11702. (calculateDownloadSpeed): New function.
  11703. * src/SpeedCalc.h: New class.
  11704. * src/SpeedCalc.cc: New class.
  11705. * src/main.cc
  11706. (main):
  11707. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11708. download speed is not restricted).
  11709. * src/PeerStat.h: New class.
  11710. * src/SegmentMan.cc
  11711. (registerPeerStat): New function.
  11712. (calculateDownloadSpeed): New function.
  11713. * src/DownloadCommand.cc
  11714. (STARTUP_IDLE_TIME): New definition.
  11715. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11716. downloadStart.
  11717. (~DownloadCommand): Call peerStat->downloadStop.
  11718. (executeInternal): Added download speed limitter. Rewritten lowest
  11719. speed limitter.
  11720. * src/HttpConnection.cc
  11721. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11722. * src/AbstractCommand.cc
  11723. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11724. Added hostname to the error message.
  11725. * src/ConsoleDownloadEngine.cc
  11726. (calculateStatistics): Initialize psize with dlSize.
  11727. * src/PieceMessage.cc
  11728. (receivedAction): Do not call peerInteraction->abortPiece here.
  11729. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11730. * src/BitfieldMan.h
  11731. (clearAllUseBit): New function.
  11732. (setAllUseBit): New function.
  11733. * src/BitfieldMan.cc
  11734. (clearAllBit): Do not clear useBitfield here.
  11735. (clearAllUseBit): New function.
  11736. (setAllUseBit): New function.
  11737. * src/Piece.cc
  11738. (clearAllBlock): Call bitfield->clearAllUseBit().
  11739. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11740. To make filename URL-decoded:
  11741. * src/HttpResponseCommand.h: Updated doc.
  11742. * src/HttpResponseCommand.cc
  11743. (determinFilename): Made filename URL-decoded.
  11744. * src/FtpInitiateConnectionCommand.cc
  11745. (executeInternal): Made filename URL-decoded.
  11746. * src/Util.h (urldecode): New function.
  11747. * src/Util.cc (urldecode): New function.
  11748. To fix a bug that caused assertion failure in ares_strerror:
  11749. * src/NameResolver.cc (callback): Fixed the bug.
  11750. * Release 0.7.3
  11751. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. To add --seed-time and --seed-ratio command-line option:
  11753. * src/Option.h (getAsDouble): New function.
  11754. * src/Option.cc (getAsDouble): New function.
  11755. * src/SeedCheckCommand.h: New class.
  11756. * src/SeedCheckCommand.cc: New class.
  11757. * src/DownloadEngineFactory.cc
  11758. (SeedCheckCommand.h): Included.
  11759. (UnionSeedCriteria.h): Included.
  11760. (TimeSeedCriteria.h): Included.
  11761. (ShareRatioSeedCriteria.h): Included.
  11762. (newTorrentConsoleEngine): Added the processing of seed option.
  11763. * src/SeedCriteria.h: New class.
  11764. * src/ShareRatioSeedCriteria.h: New class.
  11765. * src/TimeSeedCriteria.h: New class.
  11766. * src/UnionSeedCriteria.h: New class.
  11767. * src/prefs.h
  11768. (PREF_SEED_TIME): New definition.
  11769. (PREF_SEED_RATIO): New definition.
  11770. * src/main.cc
  11771. (showUsage): Added --seed-time and --seed-ratio option.
  11772. (main): Added --seed-time and --seed-ratio option.
  11773. Made default log file name "/dev/null".
  11774. * src/SharedHandle.h
  11775. (SharedHandle): Copy constructor. Made it assignable from the
  11776. SharedHandle of the subclasses.
  11777. (operator=): Made it assignable from the SharedHandle of the
  11778. subclasses.
  11779. (getRefCount): New function.
  11780. To add notice log level and the switch to write log to stdout. This
  11781. switch is configurable per log level.
  11782. * src/Logger.h
  11783. (notice): New function.
  11784. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11785. constant.
  11786. * src/LogFactory.cc
  11787. (getInstance): The use of NullLogger was removed. A log message with
  11788. notice log level was made written to stdout along with log file.
  11789. * src/NullLogger.h
  11790. (notice): New function.
  11791. * src/SimpleLogger.h
  11792. (writeHeader): Added the 'file' argument.
  11793. (writeLog): Added the 'file' argument.
  11794. (writeFile): New function.
  11795. (stdoutField): New variable.
  11796. (SimpleLogger): Removed the default constructor.
  11797. (SimpleLogger): Made the default value of logfile 0.
  11798. (debug): Added 'virtual' keyword.
  11799. (info): Added 'virtual' keyword.
  11800. (warn): Added 'virtual' keyword.
  11801. (error): Added 'virtual' keyword.
  11802. (notice): New function.
  11803. (setStdout): New function.
  11804. * src/SimpleLogger.cc
  11805. (WRITE_LOG): Replaced writeLog with writeFile.
  11806. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11807. (SimpleLogger): Removed the default constructor.
  11808. (setStdout): New function.
  11809. (writeLog): Added the handling of NOTICE log level.
  11810. (writeFile): New function.
  11811. (notice): New function.
  11812. * src/TorrentMan.h: Updated doc.
  11813. * src/BitfieldMan.h: Updated doc.
  11814. * src/TrackerWatcherCommand.cc
  11815. (execute): Return true if error occurred in the request to the tracker
  11816. and halt is requested.
  11817. * src/TrackerUpdateCommand.cc
  11818. (execute): Return true if error occurred in the request to the tracker
  11819. and halt is requested.
  11820. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11821. DownloadEngine:
  11822. * src/TorrentConsoleDownloadEngine.h
  11823. (onSelectiveDownloadingCompletes): Removed.
  11824. * src/TorrentConsoleDownloadEngine.cc
  11825. (onSelectiveDownloadingCompletes): Removed.
  11826. * src/TorrentDownloadEngine.h
  11827. (onEndOfRun): Added 'virtual' keyword.
  11828. (afterEachIteration): Removed.
  11829. (onSelectiveDownloadingCompletes): Removed.
  11830. * src/TorrentDownloadEngine.cc
  11831. (onEndOfRun): Removed filenameFixed.
  11832. (afterEachIteration): Removed.
  11833. * src/TorrentMan.cc
  11834. (completePiece): Call onDownloadComplete here.
  11835. (onDownloadComplete): Added 2 log messages.
  11836. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11838. * src/NameResolver.h: Added the prototype declaration of callback().
  11839. To support c-ares library:
  11840. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11841. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11842. * src/FtpInitiateConnectionCommand.h:
  11843. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11844. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11845. * src/HttpInitiateConnectionCommand.h:
  11846. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11847. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11848. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11849. #1542285 by tizianomueller)
  11850. * src/HttpInitiateConnectionCommand.cc:
  11851. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11852. * src/FtpInitiateConnectionCommand.cc:
  11853. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11854. * src/DownloadEngine.h:
  11855. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11856. * src/DownloadEngine.cc:
  11857. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11858. To fix the bug that causes compilation failure with metalink-support
  11859. disabled(bug#1543587):
  11860. * src/main.cc: Fixed with the patch by tizianomueller.
  11861. * Release 0.7.2
  11862. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11863. * src/main.cc
  11864. (main): Added a message to inform users that aria2 is starting to
  11865. verify checksum.
  11866. * src/RequestInfo.cc
  11867. (printDownloadAbortMessage): Added a message to inform users that
  11868. transfer can be resumed.
  11869. * src/FeatureConfig.cc
  11870. (FEATURE_ASYNC_DNS): New definition.
  11871. (FeatureConfig): Added aysnc DNS entry.
  11872. To replace CommandUuid with Command* in SocketEntry and
  11873. NameResolverEntry:
  11874. * src/DownloadEngine.h
  11875. (CommandUuids): Removed.
  11876. (SocketEntry::commandUuid): Removed.
  11877. (SocketEntry::command): New variable.
  11878. (SocketEntry::SocketEntry): Updated.
  11879. (SocketEntry::operator==): Updated.
  11880. (NameResolverEntry::commandUuid): Removed.
  11881. (NameResolverEntry::command): New variable.
  11882. (NameResolverEntry::NameResolverEntry): Updated.
  11883. (NameResolverEntry::operator==): Updated.
  11884. (waitData): Changed the argument type.
  11885. (addSocketForReadCheck): Changed the argument type.
  11886. (deleteSocketForReadCheck): Changed the argument type.
  11887. (addSocketForWriteCheck): Changed the argument type.
  11888. (deleteSocketForWriteCheck): Changed the argument type.
  11889. (addNameResolverCheck): Changed the argument type.
  11890. (deleteNameResolverCheck): Changed the argument type.
  11891. * src/DownloadEngine.cc
  11892. (FindCommand): Removed.
  11893. (run): Removed activeUuid. Added activeCommands instead.
  11894. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11895. (AccumulateActiveCommand): New function object.
  11896. (waitData): Use AccumulateActiveCommand.
  11897. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11898. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11899. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11900. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11901. (addNameResolverCheck): Use Command instead of CommandUuid.
  11902. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11903. * src/AbstractCommand.cc
  11904. (disableReadCheckSocket): Updated according to the changes in
  11905. DownloadEngine.
  11906. (setReadCheckSocket): Updated according to the changes in
  11907. DownloadEngine.
  11908. (disableWriteCheckSocket): Updated according to the changes in
  11909. DownloadEngine.
  11910. (setWriteCheckSocket): Updated according to the changes in
  11911. DownloadEngine.
  11912. (setNameResolverCheck): Updated according to the changes in
  11913. DownloadEngine.
  11914. (disableNameResolverCheck): Updated according to the changes in
  11915. DownloadEngine.
  11916. * src/AbstractCommand.cc
  11917. (disableReadCheckSocket): Updated according to the changes in
  11918. DownloadEngine.
  11919. (setReadCheckSocket): Updated according to the changes in
  11920. DownloadEngine.
  11921. (disableWriteCheckSocket): Updated according to the changes in
  11922. DownloadEngine.
  11923. (setWriteCheckSocket): Updated according to the changes in
  11924. DownloadEngine.
  11925. * release 0.7.1
  11926. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11927. To handle the case where some BitTorrent tracker requires all letters
  11928. except for [A-Za-z0-9] is URL encoded.
  11929. * src/Util.h
  11930. (torrentUrlencode): New function.
  11931. * src/Util.cc
  11932. (ctype.h): Included.
  11933. (torrentUrlencode): New function.
  11934. * src/TrackerWatcherCommand.cc
  11935. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11936. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11937. To add asynchronous DNS support(libares):
  11938. * src/AbstractCommand.h
  11939. (setNameResolverCheck): New function.
  11940. (disableNameResolverCheck): New function
  11941. (resolveHostname): New function.
  11942. * src/AbstractCommand.cc
  11943. (setNameResolverCheck): New function.
  11944. (disableNameResolverCheck): New function
  11945. (resolveHostname): New function.
  11946. * src/FtpInitiateConnectionCommand.h
  11947. (nameResolver): New function.
  11948. * src/FtpInitiateConnectionCommand.cc
  11949. (Util.h): Included.
  11950. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11951. disableWriteCheckSocket.
  11952. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11953. (executeInternal): Added async DNS support.
  11954. * src/HttpInitiateConnectionCommand.h
  11955. (nameResolver): New function.
  11956. * src/HttpInitiateConnectionCommand.cc
  11957. (DlRetryEx.h): Included.
  11958. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11959. disableWriteCheckSocket.
  11960. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11961. (executeInternal): Added async DNS support.
  11962. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11963. by extern "C" declaration.
  11964. * src/NameResolver.cc: New class.
  11965. * src/Util.h:
  11966. (isNumberAndDotsNotation): New function
  11967. * src/Util.cc
  11968. (isNumberAndDotsNotation): New function.
  11969. * src/DownloadEngine.h
  11970. (NameResolver.h): Included.
  11971. (NameResolverEntry): New class.
  11972. (NameResolverEntries): New type definition.
  11973. (addNameResolverCheck): New function.
  11974. (deleteNameResolverCheck): New function.
  11975. * src/DownloadEngine.cc
  11976. (run): Initialize cp with 0.
  11977. (SetDescriptor::operator()): Added for NameResolverEntry.
  11978. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11979. (waitData): Check nameResolver entries.
  11980. (updateFdSet): Update fds in nameResolver entries.
  11981. (addNameResolverCheck): New function.
  11982. (deleteNameResolverCheck): new function.
  11983. * src/PeerInteractionCommand.cc
  11984. (executeInternal): Fixed wrong socket handling.
  11985. * src/main.cc
  11986. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11987. * src/Util.cc
  11988. (fileChecksum): Removed the call to ctx.digestReset().
  11989. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11990. * po/ru.po: Azamat sent me Russian translation.
  11991. * src/FtpNegotiateCommand.cc
  11992. (recvGreeting): Call disableWriteCheckSocket just after
  11993. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11994. (recvRetr): Recognized status code 125 as a acceptable response code.
  11995. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11996. case-insesitive filesystem(BUG#1531057).
  11997. * src/Time.h: Renamed as TimeA2.h.
  11998. * src/Time.cc: Renamed as TimeA2.cc.
  11999. * src/TimeA2.h: New class.
  12000. * src/TimeA2.cc: New class.
  12001. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12002. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12003. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12004. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12005. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12006. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12007. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12008. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12009. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12010. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12011. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12012. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12013. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12014. * release 0.7.0
  12015. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12016. * src/PeerChokeCommand.h
  12017. (PeerChokeCommand): Rearranged the arguments.
  12018. * src/PeerChokeCommand.cc
  12019. (PeerChokeCommand): Rearranged the arguments.
  12020. * src/MetalinkEntry.h
  12021. (Checksum.h): Included.
  12022. (md5): Removed.
  12023. (sha1): Removed.
  12024. (checksum): New variable.
  12025. (operator=): Updated.
  12026. (check): Removed.
  12027. * src/prefs.h
  12028. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12029. (PREF_FOLLOW_TORRENT): New definition.
  12030. (PREF_SELECT_FILE): New definition.
  12031. (PREF_FOLLOW_METALINK): New definition.
  12032. * src/MetalinkResource.h
  12033. (TYPE_HTTPS): Added to enum TYPE.
  12034. * src/TorrentMan.cc
  12035. (~TorrentMan): Rewritten.
  12036. * src/MultiDiskWriter.cc
  12037. (MultiDiskAdaptor): Updated according to the changes in
  12038. MessageDigestContext.
  12039. (~MultiDiskAdaptor): Updated according to the changes in
  12040. MessageDigestContext.
  12041. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12042. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12043. * src/Util.h
  12044. (fileChecksum): Updated according to the changes in
  12045. MessageDigestContext.
  12046. * src/Util.cc
  12047. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12048. (fileChecksum): Updated according to the changes in
  12049. MessageDigestContext.
  12050. * src/messageDigest.h: Rewritten.
  12051. * src/MetalinkEntry.cc
  12052. (check): Removed.
  12053. (Supported): Updated.
  12054. (dropUnsupportedResource): Fixed a memory leak.
  12055. * src/ShaVisitor.cc
  12056. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12057. (~ShaVisitor): Updated according to the changes in
  12058. MessageDigestContext.
  12059. (visit): Updated according to the changes in MessageDigestContext.
  12060. * src/main.cc
  12061. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12062. command-line option added.
  12063. * src/DownloadEngine.h
  12064. (SocketEntry): New class.
  12065. (SocketEntries): New definition.
  12066. (PairFind): Removed.
  12067. (SockCmdMap): Removed.
  12068. * src/DownloadEngine.cc
  12069. (DownloadEngine): Rewritten.
  12070. (~DownloadEngine): Rewritten.
  12071. (run): Renamed activeCommandUuids as activeUuids.
  12072. (SetDescriptor): Rewritten.
  12073. (AccumulateActiveCommandUuid): Removed.
  12074. (AccumulateActiveUuid): New function object.
  12075. (waitData): Rewritten.
  12076. (updateFdSet): Rewritten.
  12077. (addSocket): Rewritten.
  12078. (deleteSocket): Rewritten.
  12079. (addSocketForReadCheck): Rewritten.
  12080. (deleteSocketForReadCheck): Rewritten.
  12081. (addSocketForWriteCheck): Rewritten.
  12082. (deleteSocketForWriteCheck): Rewritten.
  12083. * src/Xml2MetalinkProcessor.cc
  12084. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12085. * src/DownloadCommand.cc
  12086. (executeInternal): Added the check routine for lowest speed limit.
  12087. * src/AbstractDiskWriter.cc
  12088. (AbstractDiskWriter): Updated according to the changes in
  12089. MessageDigestContext.
  12090. (~AbstractDiskWriter): Updated according to the changes in
  12091. MessageDigestContext.
  12092. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12093. * src/RequestInfo.h: New class.
  12094. * src/UrlRequestInfo.h: New class.
  12095. * src/UrlRequestInfo.cc: New class.
  12096. * src/TorrentRequestInfo.h: New class.
  12097. * src/TorrentRequestInfo.cc: New class.
  12098. * src/MetalinkRequestInfo.h: New class.
  12099. * src/MetalinkRequestInfo.cc: New class.
  12100. * src/Checksum.h: New class.
  12101. * src/DownloadEngineFactory.h: New class.
  12102. * src/DownloadEngineFactory.cc: New class.
  12103. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12104. * src/Option.h
  12105. (getAsBool): New function.
  12106. * src/Option.cc
  12107. (prefs.h): Included.
  12108. (defined): 0-length value is now recognized as undefined.
  12109. (getAsInt): Rewritten.
  12110. (getAsLLInt): Rewritten.
  12111. (getAsBool): New function.
  12112. * src/FeatureConfig.h: Rewritten.
  12113. * src/FeatureConfig.cc: Rewritten.
  12114. * src/prefs.h
  12115. (PREF_STDOUT_LOG): New definition.
  12116. (PREF_LOG): New definition.
  12117. (PREF_DIR): New definition.
  12118. (PREF_OUT): New definition.
  12119. (PREF_SPLIT): New definition.
  12120. (PREF_DAEMON): New definition.
  12121. (PREF_REFERER): New definition.
  12122. (PREF_TORRENT_FILE): New definition.
  12123. (PREF_LISTEN_PORT): New definition.
  12124. (PREF_METALINK_FILE): New definition.
  12125. (PREF_METALINK_VERSION): New definition.
  12126. (PREF_METALINK_LANGUAGE): New definition.
  12127. (PREF_METALINK_OS): New definition.
  12128. (PREF_METALINK_SERVERS): New definition.
  12129. * src/main.cc
  12130. (main): Following command-line parameters are now put into Option
  12131. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12132. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12133. metalinkLanguage, metalinkOs, metalinkServers
  12134. To fix the bug that aria2 can not handle http response header properly.
  12135. * src/HttpHeader.cc
  12136. (put): Made name lowercased.
  12137. (defined): Made name lowercased.
  12138. (getFirst): Made name lowercased.
  12139. (get): Made name lowercased.
  12140. (getFirstAsInt): Rewritten.
  12141. (getFirstAsLLInt): Rewritten.
  12142. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12143. * src/TorrentMan.h:
  12144. (advertisePiece): Updated doc.
  12145. (getAdvertisedPieceIndexes): Updated doc.
  12146. (removeAdvertisedPiece); New function.
  12147. * src/TorrentMan.cc
  12148. (FindElapsedHave): New function object.
  12149. (removeAdvertisedPiece): New function.
  12150. * src/HaveEraseCommand.h: New class.
  12151. * src/HaveEraseCommand.cc: New class.
  12152. * src/FeatureConfig.h: New class.
  12153. * src/FeatureConfig.cc: New class.
  12154. * src/Request.h
  12155. (defaultPorts): Removed.
  12156. * src/Request.cc
  12157. (FeatureConfig.h): Included.
  12158. (Request): Removed the statements related to defaultPorts.
  12159. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12160. A default port number is now retrieved from FeatureConfig.
  12161. * src/main.cc
  12162. (HaveEraseCommand.h): Included.
  12163. (showVersion): Added the output of feature list.
  12164. (main): Added HaveEraseCommand to command queue in BitTorrent
  12165. downloading.
  12166. * src/PeerInteractionCommand.h
  12167. (chokeCheckPoint): Commented out.
  12168. (periodicExecPoint): New variable.
  12169. * src/PeerInteractionCommand.cc
  12170. (executeInternal): Following methods are now called in at least every
  12171. 0.5 seconds to reduce CPU usage:
  12172. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12173. checkHave(), sendKeepAlive().
  12174. (checkLongTimePeerChoking): Commented out.
  12175. * src/BitfieldMan.h
  12176. (getNthBitIndex): Changed the method signature.
  12177. (getMissingIndexRandomly): Changed the method signature.
  12178. * src/BitfieldMan.cc
  12179. (getNthBitIndex): Rewritten
  12180. (getMissingIndexRandomly): Rewritten.
  12181. (hasMissingPiece): Rewritten.
  12182. (getMissingIndex): Refactored.
  12183. (getMissingUnusedIndex); Refactored.
  12184. (getMissingIndex): Refactored.
  12185. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12186. * src/PeerMessage.h
  12187. (Piece.h): Included.
  12188. (SharedHandle.h): Included.
  12189. (invalidate): New variable.
  12190. (uploading): New variable.
  12191. (isInvalidate): New function.
  12192. (isUploading): New function.
  12193. (onPush): New function.
  12194. (onChoked): New function.
  12195. (onCanceled): New function.
  12196. (onAbortPiece): New function.
  12197. (PeerMessageHandle): New type definition.
  12198. * src/PeerMessage.cc
  12199. (PeerMessage): Added the initialization for invalidate and uploading.
  12200. * src/CancelMessage.h
  12201. (CancelMessage): Rewritten.
  12202. * src/RejectMessage.h
  12203. (RejectMessage): Rewritten.
  12204. * src/Metalinker.h
  12205. (operator=): Defined.
  12206. * src/MetaEntry.h
  12207. (operator=): Defined.
  12208. * src/MetalinkResource.h
  12209. (operator=): Defined.
  12210. * src/AllowedFastMessage.h
  12211. (AllowedFastMessage): Rewritten.
  12212. * src/HandshakeMessage.h
  12213. (HandshakeMessage): New function(overload).
  12214. * src/HandshakeMessage.cc
  12215. (HandshakeMessage): Rewritten.
  12216. (init): New function.
  12217. * src/HaveMessage.h
  12218. (HaveMessage): Rewritten.
  12219. * src/Time.h
  12220. (operator=): Defined the function body here.
  12221. * src/Time.cc
  12222. (operator=): Removed.
  12223. * src/SocketCore.h
  12224. (operator==): Defined here.
  12225. (operator!=): Defined here.
  12226. (operator<): Defined here.
  12227. * src/SocketCore.cc
  12228. (operator==): Removed.
  12229. (operator<): Removed.
  12230. * src/BitfieldMan.h
  12231. (operator=): Defined the function body here.
  12232. * src/BitfieldMan.cc
  12233. (operator=): Removed.
  12234. * src/TorrentMan.h
  12235. (deleteErrorPeer): Removed.
  12236. (deleteUnusedPeer); New function.
  12237. * src/TorrentMan.cc
  12238. (addPeer): Call deleteUnusedPeer.
  12239. (deleteErrorPeer): Removed.
  12240. (deleteUnusedPeer): New function.
  12241. * src/PeerAbstractCommand.h
  12242. (setNoCheck): New function.
  12243. (noCheck): New variable.
  12244. * src/PeerAbstractCommand.cc
  12245. (PeerAbstractCommand): Added the initialization of noCheck.
  12246. (execute): Added a check for noCheck.
  12247. (setNoCheck): New function.
  12248. * src/Util.h
  12249. (stdio.h): Included.
  12250. * src/Util.cc
  12251. (unistd.h): Included.
  12252. * src/DefaultDiskWriter.cc
  12253. (unistd.h): Included.
  12254. * src/Peer.h
  12255. (operator==): Defined the function body here.
  12256. (operator!=): Defined the function body here.
  12257. * src/Peer.cc
  12258. (operator==): Removed.
  12259. (operator!=): Removed.
  12260. * src/Piece.h
  12261. (Piece): Defined the function body here(copy constructor).
  12262. (operator=): Defined the function body here.
  12263. (operator==): Defined the function body here.
  12264. * src/Piece.cc
  12265. (Piece): Removed(copy constructor).
  12266. (operator=): Removed.
  12267. (operator==): Removed.
  12268. * src/PeerMessageUtil.h
  12269. (ChokeMessage.h): Removed.
  12270. (UnchokeMessage.h): Removed.
  12271. (InterestedMessage.h): Removed.
  12272. (NotInterestedMessage.h): Removed.
  12273. (HaveMessage.h): Removed.
  12274. (BitfieldMessage.h): Removed.
  12275. (RequestMessage.h): Removed.
  12276. (CancelMessage.h): Removed.
  12277. (PieceMessage.h): Removed.
  12278. (HandshakeMessage.h): Removed.
  12279. (KeepAliveMessage.h): Removed.
  12280. (PortMessage.h): Removed.
  12281. (HaveAllMessage.h): Removed.
  12282. (HaveNoneMessage.h): Removed.
  12283. (PeerConnection.h): Removed.
  12284. (HandshakeMessage.h): Included.
  12285. * src/BitfieldMessage.h
  12286. (init): New function.
  12287. (BitfieldMessage): Rewritten.
  12288. (BitfieldMessage): New function(overload).
  12289. * src/RequestSlot.h
  12290. (operator=): Defined the function body here.
  12291. (operator==): Defined the function body here.
  12292. * src/RequestSlot.cc
  12293. (operator=): Removed.
  12294. (operator==): Removed.
  12295. To remove the dependency on the PeerMessage subclass from
  12296. PeerInteraction:
  12297. * src/PeerMessageFactory.h: New class.
  12298. * src/PeerMessageFactory.cc: New class.
  12299. * src/SimplePeerMessage.cc
  12300. (send): If invalidate is true then do nothing.
  12301. * src/PeerInteractionCommand.cc
  12302. (HandshakeMessage.h): Included.
  12303. (KeepAliveMessage.h): Included.
  12304. (ChokeMessage.h): Included.
  12305. (UnchokeMessage.h): Included.
  12306. (HaveMessage.h): Included.
  12307. (executeInternal): Call setNoCheck().
  12308. Removed setWriteCheckSocket(socket).
  12309. * src/PeerInteraction.h
  12310. (ChokeMessage.h): Removed.
  12311. (UnchokeMessage.h): Removed.
  12312. (InterestedMessage.h): Removed.
  12313. (NotInterestedMessage.h): Removed.
  12314. (HaveMessage.h): Removed.
  12315. (BitfieldMessage.h): Removed.
  12316. (RequestMessage.h): Removed.
  12317. (CancelMessage.h): Removed.
  12318. (PieceMessage.h): Removed.
  12319. (HandshakeMessage.h): Removed.
  12320. (KeepAliveMessage.h): Removed.
  12321. (PortMessage.h): Removed.
  12322. (HaveAllMessage.h): Removed.
  12323. (HaveNoneMessage.h): Removed.
  12324. (RejectMessage.h): Removed.
  12325. (AllowedFastMessage.h): Removed.
  12326. (SuggestPieceMessage.h): Removed.
  12327. (PeerMessageFactory.h): Included.
  12328. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12329. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12330. (PeerMessageFactory): New variable.
  12331. (createPeerMessage): Removed.
  12332. (createHandshakeMessage): Removed.
  12333. (setPeerMessageCommonProperty): Removed.
  12334. (addRequestSlot): New function.
  12335. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12336. (getPeerMessageFactory): New function.
  12337. (createRequestMessage): Removed.
  12338. (createCancelMessage): Removed.
  12339. (createPieceMessage): Removed.
  12340. (createHaveMessage): Removed.
  12341. (createChokeMessage): Removed.
  12342. (createUnchokeMessage): Removed.
  12343. (createInterestedMessage): Removed.
  12344. (createNotInterestedMessage): Removed.
  12345. (createBitfieldMessage): Removed.
  12346. (createKeepAliveMessage): Removed.
  12347. (createHaveAllMessage): Removed.
  12348. (createHaveNoneMessage): Removed.
  12349. (createRejectMessage): Removed.
  12350. (createAllowedFastMessage): Removed.
  12351. * src/PeerInteraction.cc
  12352. (PeerInteraction): Allocate PeerMessageFactory here.
  12353. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12354. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12355. PieceMessage::ID.
  12356. (addMessage): Simplified by using PeerMessage::onPush().
  12357. (addRequestSlot): New function.
  12358. (rejectAllPieceMessageInQueue): Simplified by using
  12359. PeerMessage::onChoked().
  12360. (rejectPieceMessageInQueue): Simplified by using
  12361. PeerMessage::onCanceled().
  12362. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12363. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12364. (createHandshakeMessage): Removed.
  12365. (createPeerMessage): Removed.
  12366. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12367. (setPeerMessageCommonProperty): Removed.
  12368. (createRequestMessage): Removed.
  12369. (createCancelMessage): Removed.
  12370. (createPieceMessage): Removed.
  12371. (createHaveMessage): Removed.
  12372. (createChokeMessage): Removed.
  12373. (createUnchokeMessage): Removed.
  12374. (createInterestedMessage): Removed.
  12375. (createNotInterestedMessage): Removed.
  12376. (createBitfieldMessage): Removed.
  12377. (createKeepAliveMessage): Removed.
  12378. (createHaveAllMessage): Removed.
  12379. (createHaveNoneMessage): Removed.
  12380. (createRejectMessage): Removed.
  12381. (createAllowedFastMessage): Removed.
  12382. * src/PieceMessage.h
  12383. (createRejectMessage): New function.
  12384. (PieceMessage): Rewritten.
  12385. (onChoked): New function.
  12386. (onCanceled): New function.
  12387. * src/PieceMessage.cc
  12388. (send): If invalidate is true then do nothing, just return.
  12389. (createRejectMessage): New function.
  12390. (onChoked): New function.
  12391. (onCanceled): New function.
  12392. * src/RequestMessage.h
  12393. (RequestMessage): Rewritten.
  12394. (onPush): New function.
  12395. (onAbortPiece): New function.
  12396. * src/RequestMessage.cc
  12397. (onPush): New function.
  12398. (onAbortPiece): New function.
  12399. Update fd_set when a socket is added or deleted in order to improve
  12400. performance:
  12401. * src/DownloadEngine.h
  12402. (rfdset): New variable.
  12403. (wfdset): New variable.
  12404. (updateFdSet): New function.
  12405. * src/DownloadEngine.cc
  12406. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12407. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12408. (waitData): Copy rfdset and wfdset.
  12409. (updateFdSet): New function.
  12410. (addSocket): Call updateFdSet.
  12411. (deleteSocket): Call updateFdSet.
  12412. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12413. To add the support for Metalink3.0 backward compatible links:
  12414. * src/Request.h
  12415. (SAFE_CHARS): Added '#'.
  12416. (METALINK_MARK): New definition.
  12417. * src/Request.cc
  12418. (parseUrl): Added the support for Metalink3.0 backward compatible
  12419. links.
  12420. etc
  12421. * src/PeerInteraction.cc
  12422. (MsgPushBack): Removed.
  12423. (sendMessages): Use STL copy and back_inserter.
  12424. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12425. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12426. * src/TorrentMan.h
  12427. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12428. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. * src/SharedHandle.h: New class.
  12430. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12431. * src/HttpResponseCommand.h
  12432. (HttpResponseCommand): Wrapped Socket.
  12433. * src/SocketCore.h
  12434. (operator==): New function.
  12435. (operator!=): New function.
  12436. (operator<): New function.
  12437. (getSockfd): New function.
  12438. (isOpen): New function.
  12439. (writeData): New function.
  12440. * src/SocketCore.cc
  12441. (operator==): New function.
  12442. (operator!=): New function.
  12443. (operator<): New function.
  12444. * src/AbstractCommand.h
  12445. (socket): Changed its type to SocketHandle.
  12446. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12447. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12448. (disableReadCheckSocket): New function.
  12449. (disableWriteCheckSocket): New function.
  12450. (readCheckTarget): Changed its type to SocketHandle.
  12451. (writeCheckTarget): Changed its type to SocketHandle.
  12452. (AbstractCommand): Replaced Socket with SocketHandle.
  12453. * src/AbstractCommand.cc
  12454. (AbstractCommand): Replaced Socket with SocketHandle.
  12455. (~AbstractCommand): Removed the deallocation for Socket object.
  12456. (disableReadCheckSocket): New function.
  12457. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12458. (disableWriteCheckSocket): New function.
  12459. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12460. * src/HttpDownloadCommand.cc
  12461. (DownloadCommand): Replaced Socket with SocketHandle.
  12462. * src/PeerAbstractCommand.h
  12463. (socket): Changed its type to SocketHandle.
  12464. (peer): Changed its type to PeerHandle.
  12465. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12466. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12467. (disableReadCheckSocket): New function.
  12468. (disableWriteCheckSocket): New function.
  12469. (readCheckTarget): Changed its type to SocketHandle.
  12470. (writeCheckTarget): Changed its type to SocketHandle.
  12471. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12472. Replaced Peer with PeerHandle.
  12473. * src/HttpRequestCommand.cc
  12474. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12475. Use disableReadCheckSocket.
  12476. * src/PeerInitiateConnectionCommand.h
  12477. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12478. * src/PeerChokeCommand.cc
  12479. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12480. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12481. (execute): Use PeerHandle.
  12482. * src/PeerConnection.h
  12483. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12484. (socket): Changed its type to SocketHandle.
  12485. (PeerConnection): Replaced Socket with SocketHandle.
  12486. * src/PeerConnection.cc
  12487. (PeerConnection): Replaced Socket with SocketHandle.
  12488. * src/PeerInteractionCommand.h
  12489. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12490. Replaced Peer with PeerHandle.
  12491. * src/PeerInteractionCommand.cc
  12492. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12493. Replaced Peer with PeerHandle.
  12494. (executeInternal): Use disableWriteCheckSocket.
  12495. Use HandshakeMessageHandle.
  12496. (receiveMessages): Use PeerMessageHandle.
  12497. (prepareForNextPeer): Use PeerHandle.
  12498. * src/HttpProxyRequestCommand.h
  12499. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12500. * src/HttpResponseCommand.cc
  12501. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12502. * src/TorrentMan.cc
  12503. (nullPeer): Added external reference.
  12504. (~TorrentMan): Removed the deallocation of the elements of peers.
  12505. (addPeer): Rewritten.
  12506. (isPeerAvailable): Use nullPeer.
  12507. (deleteOldpeers): Replaced with deleteErrorPeer.
  12508. (deleteErrorPeer): New function.
  12509. (getPeer): Use PeerHandle and nullPeer.
  12510. (hasMissingPiece): Replaced Peer with PeerHandle.
  12511. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12512. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12513. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12514. (getMissingPiece): Replaced Peer with PeerHandle.
  12515. * src/FtpNegotiateCommand.cc
  12516. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12517. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12518. (recvGreeting): Use disableWriteCheckSocket.
  12519. (recvPasv): Removed the allocation of Socket.
  12520. Use disableReadCheckSocket.
  12521. (sendRestPasv): Use disableWriteCheckSocket.
  12522. (recvRetr): Changed assertion.
  12523. * src/PeerInteraction.h
  12524. (SharedHandle.h): Included SharedHandle.h.
  12525. (PeerMessageHandle): New type definition.
  12526. (HandshakeMessageHandle): New type definition.
  12527. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12528. (peer): Changed its type to PeerHandle.
  12529. (createHandshakeMessage): Replaced HandshakeMessage with
  12530. HandshakeMessageHandle.
  12531. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12532. (PeerInteraction): Replaced Peer with PeerHandle.
  12533. Replaced Socket with SocketHandle.
  12534. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12535. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12536. (receiveHandshake): Replaced HandshakeMessage with
  12537. HandshakeMessageHandle.
  12538. * src/PeerInteraction.cc
  12539. (PeerInteraction): Replaced Peer with PeerHandle.
  12540. Replaced Socket with SocketHandle.
  12541. (~PeerInteraction): Removed the deallocation of the elements of
  12542. messageQueue.
  12543. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12544. (isSendingMessageInProgress): Replaced PeerMessage with
  12545. PeerMessageHandle.
  12546. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12547. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12548. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12549. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12550. (abortPiece): Use PeerMessageHandle.
  12551. (receiveHandshake): Replaced HandshakeMessage with
  12552. HandshakeMessageHandle. Removed try-catch block.
  12553. (createHandshakeMessage): Replaced HandshakeMessage with
  12554. HandshakeMessageHandle.
  12555. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12556. Removed try-catch block.
  12557. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12558. * src/HttpProxyResponseCommand.cc
  12559. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12560. * src/FtpTunnelResponseCommand.h
  12561. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12562. * src/HttpConnection.cc
  12563. (HttpConnection): Replaced Socket with SocketHandle.
  12564. * src/PeerAbstractCommand.cc
  12565. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12566. (~PeerAbstractCommand): Removed the deallocation of socket.
  12567. Use disableReadCheckSocket, disableWriteCheckSocket.
  12568. (disableReadCheckSocket): New function.
  12569. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12570. (disableWriteCheckSocket): New function.
  12571. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12572. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12573. * src/FtpTunnelRequestCommand.cc
  12574. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12575. (~FtpTunnelRequestCommand): Corrected indentation.
  12576. * src/DownloadCommand.h
  12577. (DownloadCommand): Replaced Socket with SocketHandle.
  12578. * src/PeerListenCommand.cc
  12579. (PeerListenCommand): Removed the initialization of socket.
  12580. (~PeerListenCommand): Removed the deallocation of socket.
  12581. (bindPort): Use SocketHandle.
  12582. (execute): Use SocketHandle and PeerHandle.
  12583. * src/FtpDowndloadCommand.cc
  12584. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12585. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12586. * src/main.cc
  12587. (main): Corrected indentation.
  12588. * src/HttpInitiateConnectionCommand.cc
  12589. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12590. (executeInternal): Removed the allocation of socket.
  12591. * src/HttpRequestCommand.h
  12592. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12593. * src/FtpNegotiationCommand.h
  12594. (dataSocket): Changed its type to SocketHandle.
  12595. (serverSocket): Changed its type to SocketHandle.
  12596. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12597. * src/TorrentMan.h
  12598. (MAX_PEER_UPDATE): Removed.
  12599. (MAX_PEERS): New definition.
  12600. (Peers): The element is now of type PeerHandle.
  12601. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12602. (getPeer): Replaced Peer with PeerHandle.
  12603. (deleteOldErrorPeers): Removed.
  12604. (deleteErrorPeer): New function.
  12605. (hasMissingPiece): Replaced Peer with PeerHandle.
  12606. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12607. (getMissingPiece): Replaced Peer with PeerHandle.
  12608. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12609. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12610. (addActivePeer): Replaced Peer with PeerHandle.
  12611. (deleteActivePeer): Replaced Peer with PeerHandle.
  12612. Added a check for the return value of find.
  12613. * src/FtpTunnelResponseCommand.cc
  12614. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12615. * src/FtpInitiateConnectionCommand.cc
  12616. (executeInternal): Removed the allocation of socket.
  12617. * src/DownloadEngine.h
  12618. (Sockets): An element is now of type SocketHandle.
  12619. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12620. (CommandUuids): New type definition.
  12621. (rsockets): Changed its type to SockCmdMap.
  12622. (wsockets): Changed its type to SockCmdMap.
  12623. (addSocket): Rewritten.
  12624. (deleteSocket): Rewritten.
  12625. (addSocketForReadCheck): Rewritten.
  12626. (deleteSocketForReadCheck): Rewritten.
  12627. (addSocketForWriteCheck): Rewritten.
  12628. (deleteSocketForWriteCheck): Rewritten.
  12629. (PairFind): New template class.
  12630. * src/HttpDownloadCommand.h
  12631. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12632. * src/FtpConnection.cc
  12633. (FtpConnection): Replaced Socket with SocketHandle.
  12634. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12635. block.
  12636. * src/InitiateConnectionCommandFactory.cc
  12637. (DlAbortEx.h): Included DlAbortEx.h.
  12638. (createInitiateConnectionCommand): Throw exception if the protocol of
  12639. requested URI is not supported.
  12640. * src/Peer.cc
  12641. (nullPeer): Changed its type to PeerHandle.
  12642. (operator==): New function.
  12643. (operator!=): New function.
  12644. * src/Peer.h
  12645. (SharedHandle.h): Included SharedHandle.h.
  12646. (operator==): New function.
  12647. (operator!=): New function.
  12648. (Peer): Added the default constructor.
  12649. Use resetStatus() to initialize member variables.
  12650. (nullPeer): Removed.
  12651. * src/TrackerUpdateCommand.cc
  12652. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12653. with MIN_PEERS.
  12654. * src/PeerListenCommand.h
  12655. (socket): Changed its type to SocketHandle.
  12656. * src/Command.h
  12657. (CommandUuid): New type definition.
  12658. (uuid): New variable.
  12659. (uuidGen): New variable.
  12660. (Command): Added the initialization of uuid.
  12661. (getUuid): New function.
  12662. * src/Socket.h
  12663. (Socket): Removed.
  12664. (SocketHandle): New type definition.
  12665. * src/DownloadEngine.h
  12666. (FindCommand): New function object.
  12667. (run): The portion of socket check was rewritten.
  12668. (SetDescriptor): New function object.
  12669. (AccumulateActiveCommandUuid): New function object.
  12670. (waitData): Rewritten.
  12671. (addSocket): Rewritten.
  12672. (deleteSocket): Rewritten.
  12673. (addSocketForReadCheck): Rewritten.
  12674. (addSocketForWriteCheck): Rewritten.
  12675. (deleteSocketForReadCheck): Rewritten.
  12676. (deleteSocketForWriteCheck): Rewritten.
  12677. * src/HttpProxyResponseCommand.h
  12678. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12679. * src/HttpConnection.h
  12680. (socket): Changed its type to SocketHandle.
  12681. (HttpConnection): Replaced Socket with SocketHandle.
  12682. * src/PeerInitiateConnectionCommand.cc
  12683. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12684. (executeInternal): Removed the allocation of socket.
  12685. (prepareForNextPeer): Use PeerHandle.
  12686. * src/PeerMessage.h
  12687. (peer): Changed its type to PeerHandle.
  12688. (getPeer): Replaced Peer with PeerHandle.
  12689. (setPeer): Replaced Peer with PeerHandle.
  12690. * src/DownloadCommand.cc
  12691. (DownloadCommand): Replaced Socket with SocketHandle.
  12692. * src/FtpConnection.h
  12693. (socket): Changed its type to SocketHandle.
  12694. (FtpConnection): Replaced Socket with SocketHandle.
  12695. (sendPort); Replaced Socket with SocketHandle.
  12696. * src/FtpDowndloadCommand.h
  12697. (ctrlSocket): Changed its type to SocketHandle.
  12698. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12699. * src/HttpProxyRequestCommand.cc
  12700. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12701. * src/FtpTunnelRequestCommand.h
  12702. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12703. etc
  12704. * src/PeerChokeCommand.h
  12705. (setAllPeerChoked): Removed.
  12706. (setAllPeerResetDelta): Removed.
  12707. * src/PeerChokeCommand.cc
  12708. (setAllPeerChoked): Removed.
  12709. (ChokePeer): New function object.
  12710. (setAllPeerResetDelta): Removed.
  12711. (ResetDelta): New function object.
  12712. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12713. (execute): Show download speed when the local node is a seeder.
  12714. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12715. using STL.
  12716. * src/TrackerWatcherCommand.h
  12717. (MIN_PEERS): Removed.
  12718. * src/TorrentMan.cc
  12719. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12720. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12721. To fix the bug that .aria2 file is not saved if downloading is stopped
  12722. by the errors:it results that aria2 can not resume downloading:
  12723. * src/main.cc
  12724. (normalDownload): Added the call to save().
  12725. (main): Added the deletion of the elements in 'reserved'.
  12726. To fix log:
  12727. * src/PeerInteraction.cc
  12728. (receiveHandshake): Fixed log.
  12729. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12730. To improve download performance in BitTorrent:
  12731. * src/TorrentMan.cc
  12732. (getPeer): Check the number of connections. Return nullPeer if
  12733. it is greater than MAX_PEER_UPDATE.
  12734. This code was originally here, but was removed in 0.5.1.
  12735. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12736. To improve the conditional compilation:
  12737. * src/MultiDiskWriter.h:
  12738. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12739. * src/MultiDiskWriter.cc:
  12740. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12741. * src/Util.h:
  12742. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12743. Added ENABLE_BITTORRENT around computeFastSet().
  12744. * src/Util.cc:
  12745. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12746. Added ENABLE_BITTORRENT around computeFastSet().
  12747. * src/messageDigest.h:
  12748. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12749. * src/ShaVisitor.h:
  12750. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12751. * src/ShaVisitor.cc:
  12752. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12753. * src/main.cc:
  12754. Added ENABLE_BITTORRENT around includes and blocks related to
  12755. BitTorrent.
  12756. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12757. digest support is not available.
  12758. * src/AbstractDiskWriter.h:
  12759. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12760. * src/AbstractDiskWriter.cc:
  12761. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12762. * src/MetalinkEntry.cc
  12763. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12764. support is not available.
  12765. To add command-line options for Metalink:
  12766. * src/main.cc:
  12767. Added metalink-version, metalink-language, metalink-os,
  12768. follow-metalink.
  12769. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12770. * src/main.cc: Use these definition.
  12771. * Release 0.6.0
  12772. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12773. To add Metalink support(http/ftp only):
  12774. * src/AbstractCommand.h
  12775. (tryReserved): New function.
  12776. * src/AbstractCommand.cc
  12777. (execute): Call tryReserved().
  12778. (tryReserved): New function.
  12779. * src/Request.h
  12780. (Requests): New type definition.
  12781. * src/SegmentMan.h
  12782. (reserved): New variable.
  12783. * src/Util.h
  12784. (fileChecksum): New function.
  12785. (toUpper): New function.
  12786. (toLower): New function.
  12787. * src/Util.cc
  12788. (messageDigest.h): Included.
  12789. (trim): Trim \r\n\t.
  12790. (fileChecksum): New function.
  12791. (toUpper): New function.
  12792. (toLower): New function.
  12793. * src/main.cc
  12794. (normalDownload): New function.
  12795. (main): Added 2 command-line options: metalink-file,
  12796. metalink-connection. Their usage has not been written yet.
  12797. * src/MetalinkProcessor.h: New class.
  12798. * src/Xml2MetalinkProcessor.h: New class.
  12799. * src/Xml2MetalinkProcessor.cc: New class.
  12800. * src/MetalinkEntry.h: New class.
  12801. * src/MetalinkEntry.cc: New class.
  12802. * src/MetalinkResource.h: New class.
  12803. * src/MetalinkResource.cc: New class.
  12804. To add md5 message digest checking:
  12805. * src/messageDigest.h: Rewritten.
  12806. * src/MultiDiskWriter.cc: Updated according to the changes in
  12807. messageDigest.h.
  12808. * src/ShaVisitor.cc: Updated according to the changes in
  12809. messageDigest.h.
  12810. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12811. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12812. messageDigest.h.
  12813. To fix a bug that causes segfault when the payload length in peer
  12814. message is less than 0:
  12815. * src/PeerConnection.cc:
  12816. (receiveMessage): Fixed the bug.
  12817. * src/PeerMessageUtil.cc
  12818. (checkLength): Throw an exception if length is less than or equals to
  12819. 0.
  12820. To add new interfaces to Base64 encoding/decoding:
  12821. * src/Base64.h
  12822. (part_encode): Changed the method signature.
  12823. (encode): New function(overload).
  12824. (decode): New function(overload).
  12825. * src/Base64.cc
  12826. (part_encode): Rewritten.
  12827. (encode): Rewritten.
  12828. (encode): New function(overload).
  12829. To prevent a peer to download same piece if there is an error in
  12830. checksum:
  12831. * src/PieceMessage.cc
  12832. (receivedAction): Call peerInteraction->abortPiece().
  12833. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12834. To fix the bug that causes same have message is sent many times to
  12835. a single peer.
  12836. * src/Time.cc
  12837. (isNewer): Use Util::difftv().
  12838. * src/Util.cc
  12839. (difftv): Added a cast to (long long int).
  12840. * src/TorrentMan.cc
  12841. (advertisePiece): Use push_front.
  12842. (getAdvertisedPieceIndexes): A performance improvement was made.
  12843. To fix the bug that sends tracker requests without a sleep interval
  12844. when the number of connections is less than 15.
  12845. * src/TrackerWatcherCommand.cc
  12846. (execute): Now the number of connections is not a factor to decide
  12847. whether or not a tracker request should be sent or not.
  12848. * src/Time.h
  12849. (setTimeInSec): New function.
  12850. * src/Time.cc
  12851. (setTimeInSec): New function.
  12852. etc.
  12853. * src/ChokeMessage.cc
  12854. (receivedAction): Removed peer->snubbing = false
  12855. * src/PeerConnection.h
  12856. (receiveHandshake): Updated doc.
  12857. * src/TorrentMan.h
  12858. (getAdvertisedPieceIndexes): Updated the method signature.
  12859. * src/TorrentMan.cc
  12860. (getAdvertisedPieceIndexes): Updated the method signature.
  12861. * src/Time.h
  12862. (getTimeInMicros): Added a cast to (long long int).
  12863. (getTimeInMillis): Added a cast to (long long int).
  12864. * Release 0.5.2
  12865. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12866. To make a listening socket non-block:
  12867. * src/SocketCore.h
  12868. (setNonBlockingMode): New function.
  12869. * src/SocketCore.cc
  12870. (setNonBlockingMode): New function.
  12871. (beginListen): Added a call to setNonBlockingMode().
  12872. (acceptConnection): Call setNonBlockingMode().
  12873. (setBlockingMode): Updated.
  12874. To handle tracker's NAT-checking:
  12875. * src/PeerConnection.cc
  12876. (receiveHandshake): 'msg' param is filled with received data and
  12877. its length is assigned to 'length' param, even if all handshake
  12878. message is not yet received.
  12879. * src/PeerInteractionCommand.cc
  12880. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12881. a new peer connects to localhost.
  12882. A call to peerInteraction->sendHandshake() was removed because
  12883. it is called from peerInteraction->receiveHandshake(true).
  12884. * src/PeerInteraction.h
  12885. (quickReplied): New variable.
  12886. (receiveHandshake): Added an argument.
  12887. * src/PeerInteraction.cc
  12888. (PeerInteraction): Added the initialization of quickReplied.
  12889. (receiveHandshake): Send handshake message as soon as the info hash
  12890. in a handshake message from a peer is correct.
  12891. To change the random part of peer id and key parameter:
  12892. * src/TorrentMan.h
  12893. (key): New variable.
  12894. * src/TorrentMan.cc
  12895. (setupInternal1): Use Util::randomAlpha() to generate random part
  12896. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12897. key is also generated by Util::randomAlpha() and it is now 8 character
  12898. long.
  12899. * src/Util.h
  12900. (randomAlpha): New function.
  12901. * src/Util.cc
  12902. (randomAlpha): New function.
  12903. * src/TrackerWatcherCommand.cc
  12904. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12905. Added no_peer_id=1.
  12906. Set snubbing flag to false when a choke message is received from a
  12907. snubbed peer.
  12908. * src/ChokeMessage.cc
  12909. (receivedAction): Set snubbing flag to false.
  12910. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12911. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12912. * src/SimpleLogger.h (writeHeader): New function.
  12913. * src/SimpleLogger.cc (writeHeader): New function.
  12914. (writeLog): Fixed the bug that causes segfaults if exception message
  12915. contains an unescaped "%" character.
  12916. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12917. when a tracker request fails.
  12918. * src/Request.cc (parseUrl): Query string is now handled properly.
  12919. * Release 0.5.1
  12920. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12921. To add Time class which represents a specific instant in time and
  12922. its precision is microseconds. Time checking procedures were rewritten
  12923. using this object.
  12924. * src/Time.h: New class.
  12925. * src/Time.cc: New class.
  12926. * src/AbstractCommand.h
  12927. (updateCheckPoint): Removed.
  12928. (isTimeoutDetected): Removed.
  12929. (checkPoint): Changed the type to Time.
  12930. (timeout): New variable.
  12931. (setTimeout): New function.
  12932. * src/AbstractCommand.cc
  12933. (AbstractCommand): Removed the initialization of checkPoint.
  12934. Added the initialization of timeout.
  12935. (updateCheckPoint): Removed.
  12936. (isTimeoutDetected): Removed.
  12937. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12938. * src/PeerChokeCommand.h
  12939. (checkPoint): Changed the type to Time.
  12940. * src/PeerChokeCommand.cc
  12941. (PeerChokeCommand): Removed the initialization of checkPoint.
  12942. (execute): Rewritten using Time object.
  12943. * src/TrackerWatcherCommand.h
  12944. (checkPoint): Changed the type to Time.
  12945. * src/TrackerWatcherCommand.cc
  12946. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12947. (execute): Rewritten.
  12948. * src/ConsoleDownloadEngine.h
  12949. (cp): Changed the type to Time.
  12950. (startup): Changed the type to Time.
  12951. * src/ConsoleDownloadEngine.cc
  12952. (initStatistics): Use cp.reset(), startup.reset().
  12953. (calculateStatistics): Rewritten using Time object.
  12954. * src/PeerAbstractCommand.h
  12955. (updateCheckPoint): Removed.
  12956. (isTimeoutDetected): Removed.
  12957. (checkPoint): Changed the type to Time.
  12958. * src/PeerAbstractCommand.cc
  12959. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12960. (updateCheckPoint): Removed.
  12961. (isTimeoutDetected): Removed.
  12962. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12963. * src/PeerInteractionCommand.cc
  12964. (PeerInteractionCommand): Removed the initializations of struct
  12965. timeval variables.
  12966. * src/PeerInteractionCommand.h
  12967. (keepAliveCheckPoint): Changed the type to Time.
  12968. (chokeCheckPoint): Changed the type to Time.
  12969. (freqCheckPoint): Changed the type to Time.
  12970. (haveCheckTime): Changed the type to Time.
  12971. * src/PeerInteractionCommand.cc
  12972. (executeInternal): Rewritten using Time object.
  12973. (detectMessageFlooding): Rewritten using Time object.
  12974. (checkLongTimePeerChoking): Rewritten using Time object.
  12975. (sendKeepAlive): Rewritten using Time object.
  12976. (checkHave): Rewritten using Time object.
  12977. * src/SleepCommand.h
  12978. (checkPoint): Changed the type to Time.
  12979. * src/SleepCommand.cc
  12980. (SleepCommand): Removed the initialization of checkPoint.
  12981. (execute): Rewritten using Time object.
  12982. * src/TorrentAutoSaveCommand.h
  12983. (checkPoint): Changed the type to Time.
  12984. * src/TorrentAutoSaveCommand.cc
  12985. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12986. (execute): Rewritten.
  12987. * src/DownloadCommand.h
  12988. (sw): Changed the type to Time.
  12989. * src/DownloadCommand.cc
  12990. (DownloadCommand): Removed the initialization of sw.
  12991. (executeInternal): Rewritten.
  12992. * src/RequestSlot.h
  12993. (dispatchedTime): Changed the type to Time.
  12994. * src/RequestSlot.cc
  12995. (RequestSlot): Removed the call to setDispatchedTime().
  12996. (setDispatchedTime): Rewirtten.
  12997. (isTimeout): Rewritten.
  12998. (getLatencyInMillis): Rewritten.
  12999. * src/TorrentDownloadEngine.h
  13000. (cp): Changed the type to Time[2].
  13001. (startup): Changed the type to Time.
  13002. * src/TorrentDownloadEngine.cc
  13003. (initStatistics): Rewritten.
  13004. (calculateStatistics): Rewritten.
  13005. * src/DownloadEngine.cc
  13006. (run): Rewritten.
  13007. To detect all attempts to connect to the tracker are failed:
  13008. * src/AbstractCommand.cc
  13009. (execute): Increment e->segmentMan->errors if a command aborted.
  13010. * src/SegmentMan.h
  13011. (errors): New variable.
  13012. * src/SegmentMan.cc
  13013. (SegmentMan): Added the initialization of errors.
  13014. (init): Added the initialization of errors.
  13015. * src/TrackerWatcherCommand.cc
  13016. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13017. request was failed.
  13018. To handle snubbed peers:
  13019. * src/PeerChokeCommand.cc
  13020. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13021. (execute): Snubbed peers don't get unchoked.
  13022. * src/PeerInteraction.h
  13023. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13024. * src/PeerInteraction.cc
  13025. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13026. back the requested 16k block in 60 seconds.
  13027. * src/PieceMessage.cc
  13028. (receivedAction): A peer's snubbed state is cleard if it sends
  13029. the requested 16k block in 60 seconds.
  13030. * src/Peer.h
  13031. (snubbing): New variable.
  13032. * src/Peer.cc
  13033. (resetStatus): Added snubbed = false.
  13034. To fix the bug that causes have message is not sent:
  13035. * src/PeerInteractionCommand.cc
  13036. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13037. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13038. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13039. * src/TorrentMan.h
  13040. (HaveEntry): New class.
  13041. (advertisePiece): Rewritten.
  13042. (getAdvertisedPieceIndexes): Rewritten.
  13043. (Haves): Changed the type.
  13044. (getAdvertisedPieceIndexes): Added an argument.
  13045. Others:
  13046. * src/TorrentMan.h
  13047. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13048. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13049. * src/TorrentMan.cc
  13050. (getPeer): Don't check the number of connections here.
  13051. (setupInternal1): Changed peerId.
  13052. * src/PeerInteractionCommand.h
  13053. (KEEP_ALIVE_INTERVAL): New definition.
  13054. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13055. * src/main.cc
  13056. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13057. * src/DownloadEngine.h: Removed unnecessary header includes.
  13058. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. To fix the bug that causes segfaults if a tracker returns a zero-length
  13060. list as "peers":
  13061. * src/TrackerUpdateCommand.cc
  13062. (execute): Added a check to see wether the type of peers is Data*.
  13063. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13064. * Release 0.5.0
  13065. To fix compile issue with gcc3:
  13066. * src/CancelMessage.h
  13067. (ID): Renamed as ID_t
  13068. (ID_t): New enum.
  13069. * src/RejectMessage.h
  13070. (ID): Renamed as ID_t
  13071. (ID_t): New enum.
  13072. * src/SuggestPieceMessage.h
  13073. (ID): Renamed as ID_t
  13074. (ID_t): New enum.
  13075. * src/AllowedFastMessage.h
  13076. (ID): Renamed as ID_t
  13077. (ID_t): New enum.
  13078. * src/PortMessage.h
  13079. (ID): Renamed as ID_t
  13080. (ID_t): New enum.
  13081. * src/HaveNoneMessage.h
  13082. (ID): Renamed as ID_t
  13083. (ID_t): New enum.
  13084. * src/KeepAliveMessage.h
  13085. (ID): Renamed as ID_t
  13086. (ID_t): New enum.
  13087. * src/HaveAllMessage.h
  13088. (ID): Renamed as ID_t
  13089. (ID_t): New enum.
  13090. * src/UnchokeMessage.h
  13091. (ID): Renamed as ID_t
  13092. (ID_t): New enum.
  13093. * src/BitfieldMessage.h
  13094. (ID): Renamed as ID_t
  13095. (ID_t): New enum.
  13096. * src/PieceMessage.h
  13097. (ID): Renamed as ID_t
  13098. (ID_t): New enum.
  13099. * src/RequestMessage.h
  13100. (ID): Renamed as ID_t
  13101. (ID_t): New enum.
  13102. * src/NotInterestedMessage.h
  13103. (ID): Renamed as ID_t
  13104. (ID_t): New enum.
  13105. * src/ChokeMessage.h
  13106. (ID): Renamed as ID_t
  13107. (ID_t): New enum.
  13108. * src/InterestedMessage.h
  13109. (ID): Renamed as ID_t
  13110. (ID_t): New enum.
  13111. * src/HaveMessage.h
  13112. (ID): Renamed as ID_t
  13113. (ID_t): New enum.
  13114. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13115. * src/PeerAbstractCommand.h
  13116. (beforeSocketCheck): Removed.
  13117. * src/PeerAbstractCommand.cc
  13118. Modified in order to call executeInternal() even if socket check
  13119. and upload limit check fail.
  13120. * src/PeerInteractionCommand.h
  13121. (keepAlive): Removed.
  13122. (sendKeepAlive): New function.
  13123. (checkHave): New function.
  13124. (beforeSocketCheck): Removed.
  13125. * src/PeerInteractionCommand.cc
  13126. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13127. calls to checkHave() and sendKeepAlive().
  13128. (keepAlive): Renamed to sendKeepAlive().
  13129. (sendKeepAlive): New function.
  13130. (beforeSocketCheck): Removed.
  13131. (checkHave): New function.
  13132. * src/BitfieldMan.cc
  13133. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13134. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13135. 0.
  13136. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13137. * src/TorrentMan.h
  13138. (UsedPieces): Removed.
  13139. (Pieces): New type definition.
  13140. * src/Piece.h: Updated doc.
  13141. * src/Peer.h
  13142. (totalLength): Removed.
  13143. * src/Peer.cc
  13144. (updateLatency): Fixed the latency calculation.
  13145. * src/TorrentMan.cc
  13146. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13147. than or equal to MAX_PEER_LIST_SIZE.
  13148. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13149. then return false.
  13150. (deleteOldErrorPeers): Rewritten.
  13151. (deleteUsedPiece): Fixed the miss use of STL remove.
  13152. * src/PeerInteraction.h
  13153. (Pieces): Removed.
  13154. (deleteTimeoutRequestSlot): Removed.
  13155. (deleteCompletedRequestSlot): Removed.
  13156. (checkRequestSlot): New function.
  13157. * src/PeerInteraction.cc
  13158. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13159. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13160. (checkRequestSlot): New function.
  13161. * src/DownloadEngine.cc
  13162. (run): Clear activeSockets before calling waitData().
  13163. (waitData): Removed a call to activeSockets.clear().
  13164. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13165. To attempt to handle EINTR:
  13166. * src/SocketCore.cc
  13167. (isReadable): Added EINTR handling.
  13168. (isWritable): Added EINTR handling.
  13169. To improve the performance:
  13170. * src/AbstractCommand.cc
  13171. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13172. * src/PeerInteractionCommand.h
  13173. (receiveMessage): Renamed as receiveMessages().
  13174. (receiveMessages): New function.
  13175. * src/PeerInteractionCommand.cc
  13176. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13177. () function. detectMessageFlooding() is moved here.
  13178. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13179. (). The flooding detection for have message is comment out.
  13180. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13181. Util::difftv().
  13182. (receiveMessage): Renamed as receiveMessages().
  13183. (receiveMessages): New function.
  13184. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13185. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13186. * src/SleepCommand.cc
  13187. (execute): Use Util::difftvsec() instead of Util::difftv().
  13188. * src/BitfieldMan.h
  13189. (getNthBitIndex): New function.
  13190. (hasMissingPiece): New function.
  13191. (getAllMissingIndexes): New function.
  13192. * src/BitfieldMan.cc
  13193. (countSetBit): Rewritten.
  13194. (getNthBitIndex): New function.
  13195. (getMissingIndexRandomly): Rewritten.
  13196. (hasMissingPiece): New function.
  13197. (getAllMissingIndexes): New function.
  13198. * src/TorrentMan.cc
  13199. (hasMissingPiece): New function.
  13200. (deleteUsedPiece): Rewritten using STL.
  13201. * src/PeerInteraction.cc
  13202. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13203. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13204. (addRequests): Updated the number of pending requests.
  13205. * src/PeerAbstractCommand.cc
  13206. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13207. (execute): Returns true if TorrentMan::isHalt() is true.
  13208. Corrected the condition of upload limit checking.
  13209. * src/Util.h
  13210. (countBit): New function.
  13211. * src/Util.cc
  13212. (nbits): New variable.
  13213. (countBit): New function.
  13214. * src/DownloadEngine.h
  13215. (SockCmdMap): New type definition.
  13216. (waitData): Added an argument.
  13217. (addSocket): Added an argument.
  13218. (addSocketForReadCheck): Added an argument.
  13219. (addSocketForWriteCheck): Added an argument.
  13220. * src/DownloadEngine.cc
  13221. (run): Executes only commands whose sockets are ready to read or write.
  13222. All commands are executed in every 1 second.
  13223. (waitData): Calls select() again if it returned
  13224. EINTR.
  13225. (addSocket): Saves socket and command object pair to the map.
  13226. (deleteSocket): Deletes socket and command object pair from the map.
  13227. (addSocketForReadCheck): Added an argument.
  13228. (addSocketForWriteCheck): Added an argument.
  13229. * src/DownloadCommand.cc
  13230. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13231. To send "event=stopped" to the tracker when the application finishes:
  13232. * src/PeerChokeCommand.h
  13233. (checkPoint): New variable.
  13234. * src/PeerChokeCommand.cc
  13235. (PeerChokeCommand): Added the initialization of checkPoint.
  13236. (execute): The interval check is now done by checkPoint, not
  13237. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13238. * src/TorrentMan.h
  13239. (halt): New function.
  13240. (hasMissingPiece): New function.
  13241. (isHalt): New function.
  13242. (setHalt): New function.
  13243. * src/TorrentMan.cc
  13244. (TorrentMan): Added the initialization of halt.
  13245. * src/TorrentAutoSaveCommand.h
  13246. (checkPoint): New variable.
  13247. * src/PeerListenCommand.cc
  13248. (execute): Returns true if TorrentMan::isHalt() is true.
  13249. * src/main.cc
  13250. (setSignalHander): Added flags argument.
  13251. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13252. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13253. Removed printDownloadAbortMessage() after torrent downloading loop.
  13254. * src/TorrentAutoSaveCommand.cc
  13255. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13256. (execute): Returns true if TorrentMan::isHalt() is true.
  13257. The interval check is now done by checkPoint, not SleepCommand.
  13258. * src/TrackerWatcherCommand.cc
  13259. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13260. event=stopped.
  13261. * src/TrackerUpdateCommand.cc
  13262. (prepareForRetry): Do not use SleepCommand here.
  13263. (execute): Returns true if TorrentMan::isHalt() is true.
  13264. Others:
  13265. * src/TorrentMan.cc
  13266. (getMissingPieceIndex): Updated log message.
  13267. * src/PeerInteraction.cc
  13268. (createPeerMessag): Updated log message.
  13269. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13270. To add the ability to download several pieces in mix in a command and
  13271. increase the number of request slots according to request-cancel
  13272. latency:
  13273. * src/PeerInteractionCommand.cc
  13274. (executeInternal): The number of messages to be received at a time
  13275. is increased from 10 to 50.
  13276. * src/LogFactory
  13277. (getInstance): Added NullLogger.
  13278. * src/NullLogger.h: New class.
  13279. * src/BitfieldMan.h
  13280. (getMissingIndex): New function.
  13281. * src/BitfieldMan.cc
  13282. (getMissingIndex): New function.
  13283. * src/TorrentMan.h
  13284. (checkOutPiece): New function.
  13285. (getMissingPieceIndex): New function.
  13286. (getMissingFastPieceIndex): New function.
  13287. (getMissingFastPiece): New function.
  13288. * src/TorrentMan.cc
  13289. (updatePiece): Rewritten using STL.
  13290. (syncPiece): Rewritten using STL.
  13291. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13292. checkOutPiece().
  13293. (getMissingPieceIndex): New function.
  13294. (getMissingFastPieceIndex): New function.
  13295. (getMissingFastPiece): New function.
  13296. (checkOutPiece): New function.
  13297. * src/PeerInteraction.h
  13298. (Pieces): New type definition.
  13299. (piece): Removed.
  13300. (pieces): New variable.
  13301. (getNewPieceAndSendInterest): Added the "piece" argument.
  13302. (abortPiece): Added the "piece" argument.
  13303. (abortAllPieces): New function.
  13304. (isInRequestSlot): New function.
  13305. (hasDownloadPiece): Added the "index" argument.
  13306. (setDownloadPiece): Removed.
  13307. (getDownloadPiece): Added the "index" argument.
  13308. (updatePiece): New function.
  13309. (createRequestMessage): Added the "index" argument.
  13310. * src/PeerInteraction.cc
  13311. (onChoked): Rewritten.
  13312. (abortPiece): Rewirtten.
  13313. (abortAllPieces): New function.
  13314. (deleteTimeoutRequestSlot): Rewritten.
  13315. Clarified code a little bit.
  13316. (deleteCompletedRequestSlot): Rewritten.
  13317. (isInRequestSlot): New function.
  13318. (syncPiece): Rewritten.
  13319. (updatePiece): New function.
  13320. (getNewPieceAndSendInterest): Rewritten.
  13321. (addRequests): Rewritten.
  13322. (getDownloadPiece): Rewritten.
  13323. (hasDownloadPiece): Rewritten.
  13324. (createRequestMessage): Added the "index" argument.
  13325. * src/common.h
  13326. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13327. (DIV_FLOOR): New definition.
  13328. * src/PieceMessage.cc
  13329. (receivedAction): Update request-piece latency here.
  13330. * src/RequestSlot.h
  13331. (getLatencyInMillis): New function.
  13332. * src/RequestSlot.cc
  13333. (isTimeout): Rewritten using getLatencyInMillis.
  13334. (getLatencyInMillis): New function.
  13335. * src/Piece.h
  13336. (operator==): New function.
  13337. (getMissingBlockIndex): New function.
  13338. * src/Piece.cc
  13339. (operator==): New function.
  13340. (getMissingBlockIndex): New function.
  13341. * src/Peer.h
  13342. (DEFAULT_LATENCY): New definition.
  13343. (latency): New variable.
  13344. (updateLatency): New function.
  13345. (getLatency): New function.
  13346. * src/Peer.cc
  13347. (resetStatus): Reset latecy.
  13348. (updateLatency): New function.
  13349. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13350. * src/SocketCore.cc
  13351. (isReadable): Added secure to the condition.
  13352. * src/HttpConnection.cc
  13353. (receiveResponse): Fixed a bug that causes no response header
  13354. exception.
  13355. * src/Peer.h
  13356. (getFastSet): Fixed the return value type.
  13357. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13358. To remove a wait from download loop:
  13359. * src/DownloadEngine.cc
  13360. (run): Comment out shortSleep.
  13361. To rewrite the message handling:
  13362. * src/SimplePeerMessage.h: New class.
  13363. * src/SimplePeerMessage.cc: New class.
  13364. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13365. (msg): New variable.
  13366. (create): New function.
  13367. (send): Removed.
  13368. (getMessage): New function.
  13369. (getMessageLength): New function.
  13370. * src/CancelMessage.cc
  13371. (create): New function.
  13372. (receivedAction): Replaced deleteRequestMessageInQueue with
  13373. rejectPieceMessageInQueue.
  13374. (send): Removed.
  13375. (getMessage): New function.
  13376. (getMessageLength): New function.
  13377. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13378. (msg): New variable.
  13379. (msgLength): New variable.
  13380. (~BitfieldMessage): Deleted msg.
  13381. (send): Removed.
  13382. (getMessage): New function.
  13383. (getMessageLength): New function.
  13384. * src/BitfieldMessage.cc
  13385. (create): New function.
  13386. (send): Removed.
  13387. (getMessage): New function.
  13388. (getMessageLength): New function.
  13389. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13390. (msg): New variable.
  13391. (sendPredicate): New function.
  13392. (onSendComplete): New function.
  13393. (send): Removed.
  13394. (getMessage): New function.
  13395. (getMessageLength): New function.
  13396. (create): New function.
  13397. * src/ChokeMessage.cc
  13398. (create): New function.
  13399. (send): Removed.
  13400. (sendPredicate): New function.
  13401. (getMessage): New function.
  13402. (getMessageLength): New function.
  13403. (onSendComplete): New function.
  13404. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13405. (msg): New variable.
  13406. (send): Removed.
  13407. (getMessage): New function.
  13408. (getMessageLength): New function.
  13409. * src/KeepAliveMessage.cc
  13410. (send): Removed.
  13411. (getMessage): New function.
  13412. (getMessageLength): New function.
  13413. * src/PortMessage.h
  13414. (create): New function.
  13415. (receivedAction): Updated log message.
  13416. * src/PortMessage.cc: New file.
  13417. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13418. (msg): New variable.
  13419. (sendPredicate): New function.
  13420. (onSendComplete): New function.
  13421. (create): New function.
  13422. (send): Removed.
  13423. (getMessage): New function.
  13424. (getMessageLength): New function.
  13425. * src/UnchokeMessage.cc
  13426. (create): New function.
  13427. (send): Removed.
  13428. (sendPredicate): New function.
  13429. (getMessage): New function.
  13430. (getMessageLength): New function.
  13431. (onSendComplete): New function.
  13432. * src/PieceMessage.h
  13433. (leftPieceDataLength): Removed.
  13434. (leftDataLength): New variable.
  13435. (headerSend): New variable.
  13436. (pendingCount): New variable.
  13437. (msgHeader): New variable.
  13438. (sendPieceData): New function.
  13439. (incrementPendingCount): New function.
  13440. (isPendingCountMax): New function.
  13441. (create): New function.
  13442. (getMessageHeader): New function.
  13443. (getMessageHeaderLength): New function.
  13444. * src/PieceMessage.cc
  13445. (create): New function.
  13446. (getMessageHeader): New function.
  13447. (getMessageHeaderLength): New function.
  13448. (send): Rewritten.
  13449. (sendPieceData): New function.
  13450. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13451. (msg): New variable.
  13452. (create): New function.
  13453. (getMessage): New function.
  13454. (getMessageLength): New function.
  13455. * src/HaveMessage.cc
  13456. (create): New function.
  13457. (send): Removed.
  13458. (sendPieceData): New function.
  13459. (getMessage): New function.
  13460. (getMessageLength): New function.
  13461. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13462. (msg): New variable.
  13463. (create): New function.
  13464. (send): Removed.
  13465. (getMessage): New function.
  13466. (getMessageLength): New function.
  13467. * src/RequestMessage.cc
  13468. (create): New function.
  13469. (receivedAction): Added the handling of fast extension.
  13470. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13471. (send): Removed.
  13472. (getMessage): New function.
  13473. (getMessageLength): New function.
  13474. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13475. (msg): New variable.
  13476. (sendPredicate): New function.
  13477. (onSendComplete): New function.
  13478. (create): New function.
  13479. (getMessage): New function.
  13480. (getMessageLength): New function.
  13481. * src/InterestedMessage.cc
  13482. (create): New function.
  13483. (send): Removed.
  13484. (sendPieceData): New function.
  13485. (getMessage): New function.
  13486. (getMessageLength): New function.
  13487. (onSendComplete): New function.
  13488. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13489. (msg): New variable.
  13490. (sendPieceData): New function.
  13491. (onSendComplete): New function.
  13492. (create): New function.
  13493. (send): Removed.
  13494. (getMessage): New function.
  13495. (getMessageLength): New function.
  13496. * src/NotInterestedMessage.cc
  13497. (create): New function.
  13498. (send): Removed.
  13499. (sendPredicate): New function.
  13500. (getMessage): New function.
  13501. (getMessageLength): New function.
  13502. (onSendComplete): New function.
  13503. * src/AllowedFastMessage.h: New class.
  13504. * src/AllowedFastMessage.cc: New class.
  13505. * src/RejectMessage.h: New class.
  13506. * src/RejectMessage.cc: New class.
  13507. * src/SuggestPieceMessage.h: New class.
  13508. * src/SuggestPieceMessage.cc: New class.
  13509. * src/HaveAllMessage.h: New class.
  13510. * src/HaveAllMessage.cc: New class.
  13511. * src/HaveNoneMessage.h: New class.
  13512. * src/HaveNoneMessage.cc: New class.
  13513. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13514. (msg): New variable.
  13515. (reserved): New variable.
  13516. (create): New function.
  13517. (getId): New function.
  13518. (receivedAction): New function.
  13519. (getMessage): New function.
  13520. (getMessageLength): New function.
  13521. (isFastExtensionSupported): New function.
  13522. * src/HandshakeMessage.cc
  13523. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13524. (create): New function.
  13525. (getMessage): New function.
  13526. (getMessageLength): New function.
  13527. (toString): Added the output of reserved field.
  13528. (check): Added const qualifier.
  13529. (isFastExtensionSupported): New function.
  13530. * src/PeerMessageUtil.h
  13531. (createChokeMessage): Removed.
  13532. (createUnchokeMessage): Removed.
  13533. (createInterestedMessage): Removed.
  13534. (createNotInterestedMessage): Removed.
  13535. (createHaveMessage): Removed.
  13536. (createBitfieldMessage): Removed.
  13537. (createRequestMessage): Removed.
  13538. (createCancelMessage): Removed.
  13539. (createPieceMessage): Removed.
  13540. (createPortMessage): Removed.
  13541. (createChokeMessage): Removed.
  13542. (createUnchokeMessage): Removed.
  13543. (createInterestedMessage): Removed.
  13544. (createNotInterestedMessage): Removed.
  13545. (createHaveMessage): Removed.
  13546. (createBitfieldMessage): Removed.
  13547. (createRequestMessage): Removed.
  13548. (createCancelMessage): Removed.
  13549. (createPieceMessage): Removed.
  13550. (createKeepAliveMessage): Removed.
  13551. (createHandshakeMessage): Removed.
  13552. (setIntParam): New function.
  13553. (createPeerMessageString): New function.
  13554. * src/PeerMessageUtil.cc
  13555. (createChokeMessage): Removed.
  13556. (createUnchokeMessage): Removed.
  13557. (createInterestedMessage): Removed.
  13558. (createNotInterestedMessage): Removed.
  13559. (createHaveMessage): Removed.
  13560. (createBitfieldMessage): Removed.
  13561. (createRequestMessage): Removed.
  13562. (createCancelMessage): Removed.
  13563. (createPieceMessage): Removed.
  13564. (createPortMessage): Removed.
  13565. (createRequestMessage): Removed.
  13566. (createCancelMessage): Removed.
  13567. (createPieceMessage): Removed.
  13568. (createHaveMessage): Removed.
  13569. (createChokeMessage): Removed.
  13570. (createUnchokeMessage): Removed.
  13571. (createInterestedMessage): Removed.
  13572. (createNotInterestedMessage): Removed.
  13573. (createBitfieldMessage): Removed.
  13574. (createKeepAliveMessage): Removed.
  13575. (createHandshakeMessage): Removed.
  13576. (setIntParam): New function.
  13577. (createPeerMessageString): New function.
  13578. * src/PeerConnection.h
  13579. (peer): Removed.
  13580. (torrentMan): Removed.
  13581. (createNLengthMessage): Removed.
  13582. (setIntParam): Removed.
  13583. (writeOutgoingMessageLog): Removed all overloaded functions.
  13584. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13585. (sendMessage): New function.
  13586. (sendHandshake): Removed.
  13587. (sendKeepAlive): Removed.
  13588. (sendChoke): Removed.
  13589. (sendUnchoke): Removed.
  13590. (sendInterested): Removed.
  13591. (sendNotInterested): Removed.
  13592. (sendHave): Removed.
  13593. (sendBitfield): Removed.
  13594. (sendRequest): Removed.
  13595. (sendPiece): Removed.
  13596. (sendPieceHeader): Removed.
  13597. (sendPieceData): Removed.
  13598. (sendCancel): Removed.
  13599. (getPeer): Removed.
  13600. * src/PeerConnection.cc
  13601. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13602. (sendHandshake): Removed.
  13603. (sendKeepAlive): Removed.
  13604. (createNLengthMessage): Removed.
  13605. (setIntParam): Removed.
  13606. (writeOutgoingMessageLog): Removed all overloaded functions.
  13607. (sendChoke): Removed.
  13608. (sendUnchoke): Removed.
  13609. (sendInterested): Removed.
  13610. (sendNotInterested): Removed.
  13611. (sendHave): Removed.
  13612. (sendBitfield): Removed.
  13613. (sendRequest): Removed.
  13614. (sendPiece): Removed.
  13615. (sendPieceHeader): Removed.
  13616. (sendPieceData): Removed.
  13617. (sendMessage): New function.
  13618. (sendCancel): Removed.
  13619. * src/PeerInteractionCommand.cc
  13620. (PeerInteractionCommand): Call setUploadLimit.
  13621. (executeInternal): Call setUploadLimit.
  13622. Added the handling of "inProgress" state of handshake message.
  13623. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13624. sendNow().
  13625. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13626. sendNow().
  13627. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13628. * src/TorrentMan.h
  13629. (PEER_ID_LENGTH): New definition.
  13630. (hasAllPieces): New function.
  13631. * src/TorrentMan.cc
  13632. (getMissingPiece): Added the handling of fast extension.
  13633. (cancelPiece): Call updatePiece().
  13634. (hasAllPieces): New function.
  13635. * src/PeerInteraction.h
  13636. (fastSet): New variable.
  13637. (getNewPieceAndSendInterest): Changed the return type to void.
  13638. (send): Renamed as sendMessages.
  13639. (deleteAllRequestSlot): Removed.
  13640. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13641. (cancelAllRequest): Removed all overloaded functions.
  13642. (deleteAllRequestSlot): Removed.
  13643. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13644. (rejectPieceMessageInQueue): New function.
  13645. (rejectAllPieceMessageInQueue): New function.
  13646. (onChoked): New function.
  13647. (isSendingMessageInProgress): New function.
  13648. (getCorrespondingRequestSlot): Changed its arguments.
  13649. (isInFastSet): New function.
  13650. (addFastSetIndex): New function.
  13651. (addRequests): New function.
  13652. (sendNow): Removed.
  13653. (trySendNow): Removed.
  13654. (sendBitfield): New function.
  13655. (sendAllowdFast): New function.
  13656. (createHaveAllMessage): New function.
  13657. (createHaveNoneMessage): New function.
  13658. (createRejectMessage): New function.
  13659. (createAllowedFastMessage): New function.
  13660. * src/PeerInteraction.cc
  13661. (send): Renamed as sendMessages.
  13662. (sendMessages): New function.
  13663. (MsgPushBack): New class.
  13664. (isSendingMessageInProgress): New function.
  13665. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13666. (rejectAllPieceMessageInQueue): New function.
  13667. Added the handling of fast extension.
  13668. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13669. (rejectPieceMessageInQueue): New function.
  13670. Added the handling of fast extension.
  13671. (deleteRequestSlot): Replaced for loop with std::find.
  13672. (onChoked): New function.
  13673. (deleteAllRequestSlot): Removed.
  13674. (abortPiece): Rewirtten.
  13675. (deleteTimeoutRequestSlot): Updated log messages.
  13676. (getCorrespondingRequestSlot): Changed its arguments.
  13677. (cancelAllRequest): Removed all overloaded functions.
  13678. (receiveHandshake): Added the check to see whether an incoming peer
  13679. supports fast extension.
  13680. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13681. PeerMessageUtil.
  13682. (createPeerMessage): Use create() of each message class instead of
  13683. PeerMessageUtil.
  13684. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13685. AllowedFastMessage were added.
  13686. (getNewPieceAndSendInterest): Changed its return value type to void.
  13687. Added the handling of fast extension.
  13688. (addRequests): New function.
  13689. (sendNow): Removed.
  13690. (sendHandshake): Rewritten.
  13691. (trySendNow): Removed.
  13692. (sendBitfield): New function.
  13693. (sendAllowdFast): New function.
  13694. (isInFastSet): New function.
  13695. (addFastSetIndex): New function.
  13696. (createRequestMessage): Use RequestMessage::create instead of
  13697. PeerMessageUtil.
  13698. (createCancelMessage): Use CancelMessage::create instead of
  13699. PeerMessageUtil.
  13700. (createPieceMessage): Use PieceMessage::create instead of
  13701. PeerMessageUtil.
  13702. (createHaveMessage): Use HaveMessage::create instead of
  13703. PeerMessageUtil.
  13704. (createChokeMessage): Use ChokeMessage::create instead of
  13705. PeerMessageUtil.
  13706. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13707. PeerMessageUtil.
  13708. (createInterestedMessage): Use InterestedMessage::create instead of
  13709. PeerMessageUtil.
  13710. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13711. of PeerMessageUtil.
  13712. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13713. PeerMessageUtil.
  13714. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13715. PeerMessageUtil.
  13716. (createHaveAllMessage): New function.
  13717. (createHaveNoneMessage): New function.
  13718. (createRejectMessage): New function.
  13719. (createAllowedFastMessage: New function.
  13720. * src/Util.h
  13721. (sha1Sum): New function.
  13722. (computeFastSet): New function.
  13723. * src/Util.cc
  13724. (sha1Sum): New function.
  13725. (computeFastSet): New function.
  13726. * src/Peer.h
  13727. (fastExtensionEnabled): New variable.
  13728. (fastSet): New variable.
  13729. (setAllBitfield): New function.
  13730. (setFastExtensionEnabled): New function.
  13731. (isFastExtensionEnabled): New function.
  13732. (addFastSetIndex): New function.
  13733. (getFastSet): New function.
  13734. (isInFastSet): New function.
  13735. (countFastSet): New function.
  13736. * src/Peer.cc
  13737. (isInFastSet): New function.
  13738. (addFastSetIndex): New function.
  13739. (setAllBitfield): New function.
  13740. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13741. sockets.
  13742. * src/PeerAbstractCommand.cc
  13743. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13744. and uploadLimit.
  13745. (execute): Changed the procedure of checking sockets. The upload speed
  13746. checking were added.
  13747. (setUploadLimit): New function.
  13748. (setUploadLimitCheck): New function.
  13749. * src/PeerAbstractCommand.h
  13750. (setUploadLimit): New function.
  13751. (setUploadLimitCheck): New function.
  13752. (uploadLimit): New variable.
  13753. (uploadLimitCheck): New variable.
  13754. To contact a tracker regularly:
  13755. * src/TrackerWatcherCommand.h (interval): New variable.
  13756. (checkPoint): New variable.
  13757. (TrackerWatcherCommand): Added interval argument.
  13758. * src/TrackerWatcherCommand.cc
  13759. (TrackerWatcherCommand): Initialized checkPoint.
  13760. (execute): Now a tracker is contacted in every specified period.
  13761. If peer list is not needed, send request with numwant=0.
  13762. * src/TrackerUpdateCommand.cc
  13763. (execute): Updated log messages.
  13764. * src/DownloadEngine.cc
  13765. (~DownloadEngine): Removed two asserts.
  13766. (waitData): Uncommented wfds. May be a bug fix.
  13767. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13768. * src/PeerInteractionCommand.h
  13769. (checkInactiveConnection): Removed.
  13770. * src/PeerInteractionCommand.cc
  13771. (executeInternal): Removed following function calls:
  13772. detectMessageFlooding(), checkLongTimePeerChoking and
  13773. checkInactiveConnection().
  13774. (checkInactiveConnection): Removed.
  13775. (detectMessageFlooding): Removed function call to
  13776. checkInactiveConnection().
  13777. * src/PeerMessageUtil.h
  13778. (createChokeMessage): New function. Overload.
  13779. (createUnchokeMessage): New function. Overload.
  13780. (createInterestedMessage): New function. Overload.
  13781. (createNotInterestedMessage): New function. Overload.
  13782. (createHaveMessage): New function. Overload.
  13783. (createBitfieldMessage): New function. Overload.
  13784. (createRequestMessage): New function. Overload.
  13785. (createCancelMessage): New function. Overload.
  13786. (createPieceMessage): New function. Overload.
  13787. (createKeepAliveMessage): New function. Overload.
  13788. * src/PeerMessageUtil.cc
  13789. (createChokeMessage): New function. Overload.
  13790. (createUnchokeMessage): New function. Overload.
  13791. (createInterestedMessage): New function. Overload.
  13792. (createNotInterestedMessage): New function. Overload.
  13793. (createHaveMessage): New function. Overload.
  13794. (createBitfieldMessage): New function. Overload.
  13795. (createRequestMessage): New function. Overload.
  13796. (createCancelMessage): New function. Overload.
  13797. (createPieceMessage): New function. Overload.
  13798. (createKeepAliveMessage): New function. Overload.
  13799. * src/SendMessageQueue.cc
  13800. (createRequestMessage): Use PeerMessageUtil.
  13801. (createCancelMessage): Use PeerMessageUtil.
  13802. (createPieceMessage): Use PeerMessageUtil.
  13803. (createHaveMessage): Use PeerMessageUtil.
  13804. (createChokeMessage): Use PeerMessageUtil.
  13805. (createUnchokeMessage): Use PeerMessageUtil.
  13806. (createInterestedMessage): Use PeerMessageUtil.
  13807. (createNotInterestedMessage): Use PeerMessageUtil.
  13808. (createBitfieldMessage): Use PeerMessageUtil.
  13809. (createKeepAliveMessage): Use PeerMessageUtil.
  13810. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13811. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13812. * src/PeerInteraction.h: New class.
  13813. * src/PeerInteraction.cc: New class.
  13814. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13815. Each peer message has its own class.
  13816. * src/PendingMessages.h: Removed.
  13817. * src/PendingMessages.cc: Removed. The sending process was moved to
  13818. each message class.
  13819. * src/RequestSlotMan.h: Removed.
  13820. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13821. SendMessageQueue.
  13822. * src/RequestMessage.h: New class.
  13823. * src/RequestMessage.cc: New class.
  13824. * src/CancelMessage.h: New class.
  13825. * src/CancelMessage.cc: New class.
  13826. * src/BitfieldMessage.h: New class.
  13827. * src/BitfieldMessage.cc: New class.
  13828. * src/ChokeMessage.h: New class.
  13829. * src/ChokeMessage.cc: New class.
  13830. * src/KeepAliveMessage.h: New class.
  13831. * src/KeepAliveMessage.cc: New class.
  13832. * src/PortMessage.h: New class.
  13833. * src/UnchokeMessage.h: New class.
  13834. * src/UnchokeMessage.cc: New class.
  13835. * src/PieceMessage.h: New class.
  13836. * src/PieceMessage.cc: New class.
  13837. * src/HaveMessage.h: New class.
  13838. * src/HaveMessage.cc: New class.
  13839. * src/BitfieldMessage.h: New class.
  13840. * src/BitfieldMessage.cc: New class.
  13841. * src/NotInterestedMessage.h: New class.
  13842. * src/NotInterestedMessage.cc: New class.
  13843. * src/InterestedMessage.h: New class.
  13844. * src/InterestedMessage.cc: New class.
  13845. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13846. (getSendMessageQueue): New function.
  13847. (setSendMessageQueue): New function.
  13848. * src/HandshakeMessage.cc: New class.
  13849. * src/PeerConnection.h (receiveMessage): Changed return value and
  13850. arguments.
  13851. (receiveHandshake): Changed return value and arguments.
  13852. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13853. here.
  13854. (receiveHandshake): Do not create handshake class here.
  13855. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13856. (piece): Removed.
  13857. (syncPiece): Removed.
  13858. (sendInterest): Removed.
  13859. (sendMessages): Removed.
  13860. (createRequestPendingMessage): Removed.
  13861. (checkPieceHash): Removed.
  13862. (erasePieceOnDisk): Removed.
  13863. (getNewPieceAndSendInterest): Removed.
  13864. (onGotNewPice): Removed.
  13865. (onGotWrongPiece): Removed.
  13866. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13867. Removed peerConnection, piece.
  13868. (~PeerInteractionCommand): Removed peerConnection.
  13869. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13870. (syncPiece): Moved to SendMessageQueue.
  13871. (decideChoking): Removed PendingMessage.
  13872. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13873. The action after receiving peer message was moved to each message
  13874. class.
  13875. (onGotNewPice): Moved to SendMessageQueue.
  13876. (onGotWrongPiece): Moved to SendMessageQueue.
  13877. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13878. (sendInterest): Moved to SendMessageQueue.
  13879. (createRequestPendingMessage): Removed.
  13880. (sendMessages): Moved to SendMessageQueue.
  13881. (onAbort): Use SendMessageQueue::abortPiece()
  13882. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13883. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13884. (checkPieceHash): Moved to SendMessageQueue.
  13885. (erasePieceOnDisk): Moved to SendMessageQueue.
  13886. * src/PeerMessageUtil.h
  13887. (createBitfieldMessage): Removed.
  13888. (createHaveMessage): Changed return value and arguments.
  13889. (createBitfieldMessage): Changed return value and arguments.
  13890. (createRequestCancelMessage): Removed.
  13891. (createPieceMessage): Changed return value and arguments.
  13892. (getShortIntParam): New function.
  13893. (checkIndex): Changed arguments.
  13894. (checkBegin): Changed arguments.
  13895. (checkLength): Changed arguments.
  13896. (checkPieceOffset): Removed.
  13897. (checkRange): New function.
  13898. (checkBitfield): Changed arguments.
  13899. (createPeerMessage): Removed.
  13900. (checkIntegrity): Removed.
  13901. (createHandshakeMessage): Changed arguments.
  13902. (createChokeMessage): New function.
  13903. (createUnchokeMessage): New function.
  13904. (createInterestedMessage): New function.
  13905. (createNotInterestedMessage): New function.
  13906. (createRequestMessage): New function.
  13907. (createCancelMessage): New function.
  13908. (createPortMessage): New function.
  13909. * src/PeerMessageUtil.cc
  13910. (createBitfieldMessage): Removed.
  13911. (createHaveMessage): Changed return value and arguments.
  13912. (createBitfieldMessage): Changed return value and arguments.
  13913. (createRequestCancelMessage): Removed.
  13914. (createPieceMessage): Changed return value and arguments.
  13915. (getShortIntParam): New function.
  13916. (checkIndex): Changed arguments.
  13917. (checkBegin): Changed arguments.
  13918. (checkLength): Changed arguments.
  13919. (checkPieceOffset): Removed.
  13920. (checkRange): New function.
  13921. (checkBitfield): Changed arguments.
  13922. (createPeerMessage): Removed.
  13923. (checkIntegrity): Removed.
  13924. (createHandshakeMessage): Changed arguments.
  13925. (createChokeMessage): New function.
  13926. (createUnchokeMessage): New function.
  13927. (createInterestedMessage): New function.
  13928. (createNotInterestedMessage): New function.
  13929. (createRequestMessage): New function.
  13930. (createCancelMessage): New function.
  13931. (createPortMessage): New function.
  13932. * src/PeerMessage.h
  13933. (id): Removed.
  13934. (index): Removed.
  13935. (begin): Removed.
  13936. (length): Removed.
  13937. (bitfield): Removed.
  13938. (bitfieldLength): Removed.
  13939. (block): Removed.
  13940. (blockLength): Removed.
  13941. (inProgress): New variable.
  13942. (cuid): New variable.
  13943. (peer): New variable.
  13944. (sendMessageQueue): New variable.
  13945. (logger): New variable.
  13946. (setBitfield): Removed.
  13947. (getBitfield): Removed.
  13948. (setBlock): Removed.
  13949. (getBlock): Removed.
  13950. (getBitfieldLength): Removed.
  13951. (getBlockLength): Removed.
  13952. (isInProgress): New function.
  13953. (toString): Made pure virtual.
  13954. (check): New function.
  13955. (send): New function.
  13956. (receivedAction): New function.
  13957. (getId): Made pure virtual.
  13958. (setId): Removed.
  13959. (getIndex): Removed.
  13960. (setIndex): Removed.
  13961. (getBegin): Removed.
  13962. (setBegin): Removed.
  13963. (getLength): Removed.
  13964. (setLength): Removed.
  13965. (getCuid): New function.
  13966. (setCuid): New function.
  13967. (getPeer): New function.
  13968. (setPeer): New function.
  13969. (getSendMessageQueue): New function.
  13970. (setSendMessageQueue): New function.
  13971. (ID): Removed.
  13972. * src/PeerMessage.cc
  13973. (setBitfield): Removed.
  13974. (setBlock): Removed.
  13975. (toString): Removed.
  13976. * src/TorrentMan.h
  13977. (getPieceLength): New function.
  13978. (getPieceLength): New function.
  13979. * src/SendMessageQueue.h
  13980. (REQUEST_TIME_OUT): New definition.
  13981. (RequestSlots): New definition.
  13982. (MessageQueue): New definition.
  13983. (requestSlotMan): Removed.
  13984. (pendingMessages): Removed.
  13985. (requestSlots): New variable.
  13986. (messageQueue): New variable.
  13987. (torrentMan): New variable.
  13988. (peerConnection): New variable.
  13989. (peer): New variable.
  13990. (piece): New variable.
  13991. (getNewPieceAndSendInterest): New function.
  13992. (createPeerMessage): New function.
  13993. (createHandshakeMessage): New function.
  13994. (send): Made private.
  13995. (setPeerMessageCommonProperty): New function.
  13996. (deleteAllRequestSlot): New function.
  13997. (deleteRequestMessageInQueue): New function.
  13998. (cancelAllRequest): Made private.
  13999. (cancelAllRequest): Made private.
  14000. (countRequestSlot): Made private.
  14001. (addPendingMessage): Removed.
  14002. (deletePendingPieceMessage): Removed.
  14003. (deletePendingRequestMessage): Removed.
  14004. (addMessage): New function.
  14005. (deletePieceMessageInQueue): New function.
  14006. (deleteTimeoutRequestSlot): Changed argument.
  14007. (deleteCompletedRequestSlot): Changed argument.
  14008. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14009. (getCorrespondingRequestSlot): New function.
  14010. (countPendingMessage): Removed.
  14011. (countMessageInQueue): New function.
  14012. (getTorrentMan): New function.
  14013. (getPeerConnection): New function.
  14014. (hasDownloadPiece): New function.
  14015. (getDownloadPiece): New function.
  14016. (setDownloadPiece): New function.
  14017. (syncPiece): New function.
  14018. (sendMessages): New function.
  14019. (sendNow): New function.
  14020. (trySendNow): New function.
  14021. (abortPiece): New function.
  14022. (sendHandshake): New function.
  14023. (receiveMessage): New function.
  14024. (receiveHandshake): New function.
  14025. (createRequestMessage): New function.
  14026. (createCancelMessage): New function.
  14027. (createPieceMessage): New function.
  14028. (createHaveMessage): New function.
  14029. (createChokeMessage): New function.
  14030. (createUnchokeMessage): New function.
  14031. (createInterestedMessage): New function.
  14032. (createNotInterestedMessage): New function.
  14033. (createBitfieldMessage): New function.
  14034. (createKeepAliveMessage): New function.
  14035. * src/SendMessageQueue.cc
  14036. (SendMessageQueue): Removed requestSlotMan.
  14037. Instantiated peerConnection here.
  14038. (~SendMessageQueue): Removed requestSlotMan.
  14039. Added deletion of peerConnection and the contents of messageQueue.
  14040. (send): Updated according to the change of messageQueue.
  14041. (addPendingMessage): Renamed to addMessage.
  14042. (addMessage): New function.
  14043. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14044. (deletePieceMessageInQueue): New function.
  14045. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14046. (deleteRequestMessageInQueue): New function.
  14047. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14048. here.
  14049. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14050. (...) was moved here.
  14051. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14052. moved here.
  14053. (deleteCompletedRequestSlot):
  14054. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14055. (getCorrespondingRequestSlot):
  14056. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14057. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14058. (countPendingMessage): Renamed to countMessageInQueue.
  14059. (countMessageInQueue): New function.
  14060. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14061. (receiveHandshake): New function.
  14062. (createHandshakeMessage): New function.
  14063. (receiveMessage): New function.
  14064. (createPeerMessage): New function.
  14065. (syncPiece): New function.
  14066. (getNewPieceAndSendInterest): New function.
  14067. (sendMessages): New function.
  14068. (sendNow): New function.
  14069. (trySendNow): New function.
  14070. (sendHandshake): New function.
  14071. (abortPiece): New function.
  14072. (getDownloadPiece): New function.
  14073. (getPeerMessageCommonProperty): New function.
  14074. (createRequestMessage): New function.
  14075. (createCancelMessage): New function.
  14076. (createPieceMessage): New function.
  14077. (createHaveMessage): New function.
  14078. (createChokeMessage): New function.
  14079. (createUnchokeMessage): New function.
  14080. (createInterestedMessage): New function.
  14081. (createNotInterestedMessage): New function.
  14082. (createBitfieldMessage): New function.
  14083. (createKeepAliveMessage): New function.
  14084. To add simple Content-Disposition support:
  14085. * src/HttpResponseCommand.h (determinFilename): New function.
  14086. * src/HttpResponseCommand.cc (executeInternal):
  14087. Use determinFilename(headers) instead of req->getFile() when comparing
  14088. filename.
  14089. (determinFilename): New function.
  14090. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14091. req->getFile().
  14092. (handleOtherEncoding): Use determinFilename(headers) instead of
  14093. req->getFile().
  14094. * src/Util.h (getContentDispositionFilename): New function.
  14095. * src/Util.cc (getContentDispositionFilename): New function.
  14096. * src/LogFactory.h (release): New function.
  14097. * src/LogFactory.cc (release): New function.
  14098. To fix a bug that causes out-of-bound exception when HTTP status
  14099. line is wrong:
  14100. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14101. size.
  14102. * src/common.h (Deleter): New class.
  14103. * src/SegmentMan.cc
  14104. (~SegmentMan): Added deletion of splitter and diskWriter.
  14105. * src/DownloadEngine.h
  14106. (Commands): Use deque.
  14107. (clearQueue): New function.
  14108. * src/DownloadEngine.cc
  14109. (~DownloadEngine): Added deletion of segmentMan.
  14110. (cleanQueue): New function.
  14111. * src/TorrentDownloadEngine.h
  14112. (TorrentDownloadEngine): The implementation was moved to
  14113. TorrentDownloadEngine.cc.
  14114. (~TorrentDownloadEngine): The implementation was moved to
  14115. TorrentDownloadEngine.cc.
  14116. * src/TorrentDownloadEngine.cc
  14117. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14118. * src/main.cc
  14119. (clearRequest): Removed.
  14120. (handler): Added deletion of e.
  14121. (torrentHandler): Added deletion of te.
  14122. (main): Do not share splitter.
  14123. Use Deleter instead of clearRequest.
  14124. Deletion of classes were updated.
  14125. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14126. * src/main.cc (main): Fixed typo.
  14127. * src/message.h: Fixed typo.
  14128. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14129. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14130. To add --select-file command-line option:
  14131. * src/Util.cc
  14132. (unfoldRange): New function.
  14133. (getNum): New function.
  14134. (unfoldSubRange): New function
  14135. * src/main.cc
  14136. (showUsage): Added help message.
  14137. (main): Added --select-file command-line option. Updated the layout of
  14138. file listing.
  14139. * src/common.h
  14140. (Integers): New definition.
  14141. * src/SocketCore.cc
  14142. (writeData): Removed timeout argument.
  14143. (readData): Removed timeout argument.
  14144. (peekData): Removed timeout argument.
  14145. * src/Socket.cc
  14146. (writeData): Removed timeout argument.
  14147. (readData): Removed timeout argument.
  14148. (peekData): Removed timeout argument.
  14149. * Release 0.4.1
  14150. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14151. To deploy upload rate based choking algorithm:
  14152. * src/PeerInteractionCommand.cc
  14153. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14154. peer currently used.
  14155. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14156. download completes. Simplified.
  14157. (receiveMessage): Updated.
  14158. * src/TorrentMan.h
  14159. (activePeers): New variable.
  14160. (addActivePeer): New function.
  14161. (getActivePeers): New function.
  14162. (deleteActivePeer): New function.
  14163. * src/TorrentMan.cc
  14164. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14165. * src/PeerAbstractCommand.cc
  14166. (onAbort): Use peer->resetStatus().
  14167. * src/main.cc
  14168. (PeerChokeCommand.h): Included.
  14169. (main): Added the instance of ChokingCommand to the command queue.
  14170. * src/Peer.h
  14171. (amChoking): Renamed from amChocking
  14172. (chokingRequired): New variable.
  14173. (optUnchoking): New variable.
  14174. (deltaUpload): New variable.
  14175. (deltaDownload): New variable.
  14176. (addDeltaUpload): New function.
  14177. (resetDeltaUpload): New function.
  14178. (addDeltaDownload): New function.
  14179. (resetDeltaDownload): New function.
  14180. (addPeerUpload): Added a call to addDeltaUpload.
  14181. (addPeerDownload): Added a call to addDeltaDownload.
  14182. * src/Peer.cc
  14183. (shouldBeChoking): Renamed from shouldChoke.
  14184. (resetStatus): New function.
  14185. * src/PeerChokeCommand.h: New class.
  14186. * src/PeerChokeCommand.cc: New class.
  14187. To add lazy upload speed limiter:
  14188. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14189. statistics calculation to TorrentDownloadEngine.
  14190. * src/TorrentConsoleDownloadEngine.cc
  14191. (sendStatistics): Renamed from printStatistics.
  14192. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14193. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14194. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14195. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14196. calculation.
  14197. (sendStatistics): New function as pure virtual function.
  14198. (getUploadSpeed): New function.
  14199. * src/TorrentDownloadEngine.cc
  14200. (initStatistics): New function.
  14201. (calculateSpeed): New function.
  14202. (calculateStatistics): New function.
  14203. * src/SendMessageQueue.h
  14204. (uploadLength): New variable.
  14205. (send): Added an argument.
  14206. (setUploadLimit): New function.
  14207. (getUploadLimit): New function.
  14208. * src/SendMessageQueue.cc
  14209. (send): Added upload speed limiter.
  14210. * src/prefs.h
  14211. (PREF_UPLOAD_LIMIT): New definition.
  14212. * src/PeerInteractionCommand.cc
  14213. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14214. * src/main.cc
  14215. (main): Added --upload-limit option
  14216. For bug fixes:
  14217. * src/main.cc
  14218. (showUsage): Corrected --listen-port help
  14219. Other changes:
  14220. * src/TorrentMan.cc
  14221. (getPeer): Return nullPeer if connection is grather than
  14222. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14223. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14224. To add some useful information to the exception message:
  14225. * src/SocketCore.cc : Updated messages.
  14226. * src/SegmentMan.cc :
  14227. * src/TorrentMan.cc : Updated messages.
  14228. * src/MultiDiskWriter.cc : Updated messages.
  14229. * src/Util.cc : Updated messages.
  14230. * src/AbstractDiskWriter.cc : Updated messages.
  14231. * src/PreAllocationDiskWriter.cc : Updated messages.
  14232. * src/message.cc : Added new messages. Updated some messages.
  14233. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14234. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14235. Updated threshold from 30 to 15.
  14236. * src/AbstractDiskWriter.h (filename): New variable.
  14237. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14238. (createFile): Assigned filename.
  14239. * src/main.cc: Updated the help message for http-auth-scheme.
  14240. * Release 0.4.0
  14241. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14242. To add TrackerUpdateCommand with which replaces
  14243. CompactTrackerResponseProcessor:
  14244. * src/TrackerWatcherCommand.h (req): Removed.
  14245. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14246. if the number of peer connections are less than 30.
  14247. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14248. * src/SegmentMan.h (diskWriter): New function.
  14249. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14250. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14251. (main): Use TrackerUpdateCommand.
  14252. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14253. (req): New variable.
  14254. (setTrackerResponseProcessor): Removed.
  14255. (getTrackerResponseProcessor): Removed.
  14256. (processTrackerResponse): Removed.
  14257. * src/DownloadEngine.h (diskWriter): Removed.
  14258. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14259. to torrentMan->processTrackerResponse().
  14260. To add Util::expandBuffer:
  14261. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14262. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14263. * src/Util.h (expandBuffer): New function.
  14264. To fix the bug that causes segmentation fault when "-l ." is specified
  14265. in command-line option:
  14266. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14267. (openFile): New function.
  14268. (closeFile): New function.
  14269. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14270. (~SimpleLogger): Call closeFile();
  14271. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14272. * src/main.cc (main): Added a check to see logger is configured
  14273. properly.
  14274. To enable HTTP authentication without specifying "--http-auth-scheme"
  14275. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14276. * src/HttpConnection.cc (createRequest): Send Authorization header
  14277. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14278. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14279. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14280. * src/Peer.cc (shouldChoke): Updated algorithm.
  14281. * src/message.h (EX_AUTH_FAILED): New definition.
  14282. (EX_FILE_OPEN): New definition.
  14283. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14284. if status == 401.
  14285. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14286. if req->isTorrent == true.
  14287. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14288. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14289. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14290. (createFile): Updated message.
  14291. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14292. To add a readout of estimated remaining time to normal HTTP/FTP
  14293. downloads:
  14294. * src/ConsoleDownloadEngine.h (startup): New variable.
  14295. (startupLength): New variable.
  14296. (isStartupLengthSet): New variable.
  14297. (avgSpeed): New variable.
  14298. (eta): New variable.
  14299. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14300. estimated remaining time.
  14301. (initStatistics): Initialized newly added variables.
  14302. (calculateStatistics): Calculate average speed and estimated remaining
  14303. time.
  14304. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14305. * src/TrackerDownloadCommand.h: Removed.
  14306. * src/TrackerDownloadCommand.cc: Removed.
  14307. * src/TrackerInitCommand.h: Removed.
  14308. * src/TrackerInitCommand.cc: Removed.
  14309. * src/TrackerUpdateCommand.h: Removed.
  14310. * src/TrackerUpdateCommand.cc: Removed.
  14311. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14312. url written in TrackerInitCommand was moved here. Do not create
  14313. tracker request command if torrentMan->trackers != 0.
  14314. * src/CompactTrackerResponseProcessor.h: New class.
  14315. * src/CompactTrackerResponseProcessor.cc: New class.
  14316. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14317. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14318. Decoupled TorrentDownloadEngine from this.
  14319. * src/SegmentMan.h (init): New function.
  14320. * src/SegmentMan.cc (init): New function.
  14321. * src/TorrentMan.h (responseProcessor): New variable.
  14322. (trackers): New variable.
  14323. (setTrackerResponseProcessor): New function.
  14324. (getTrackerResponseProcessor): New function.
  14325. (processTrackerResponse): New function.
  14326. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14327. (processTrackerResponse): New function.
  14328. * src/main.cc (main): Use ByteArrayDiskWriter and
  14329. CompactTrackerResponseProcessor.
  14330. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14331. processTrackerResponse().
  14332. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14333. readout.
  14334. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14335. which indicates download has completed.
  14336. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14337. (closeFile): fd >= 0, not fd > 0
  14338. * src/main.cc (main): Added short cut for show-files.
  14339. Added short cut for torrent-file.
  14340. Added new command-line option listen-port.
  14341. Updated i18n messages.
  14342. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14343. To add LogFactory which creates singleton logger:
  14344. * src/LogFactory.h: New class.
  14345. * src/LogFactory.cc: New class.
  14346. * src/Command.h (logger): New variable.
  14347. (Constructor): Use LogFactory.
  14348. * src/AbstractCommand.cc: Use Command::logger
  14349. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14350. Use LogFactory.
  14351. * src/SegmentSplitter.h : Made logger protected.
  14352. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14353. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14354. * src/DownloadEngine.h : Made logger protected.
  14355. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14356. * src/PeerInteractionCommand.cc : Use Command::logger.
  14357. * src/HttpResponseCommand.cc : Use Command::logger.
  14358. * src/SegmentMan.h : Made logger private.
  14359. * src/TorrentMan.h : Made logger private.
  14360. * src/TorrentMan.cc : Use LogFactory.
  14361. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14362. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14363. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14364. Use LogFactory.
  14365. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14366. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14367. Use LogFactory.
  14368. * src/DownloadCommand.cc : Use Command::logger.
  14369. * src/PeerAbstractCommand.cc : Use Command::logger.
  14370. * src/PeerListenCommand.cc : Use Command::logger.
  14371. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14372. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14373. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14374. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14375. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14376. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14377. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14378. Use LogFactory.
  14379. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14380. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14381. Use LogFactory.
  14382. * src/main.cc (main): Use LogFactory.
  14383. * src/DiskAdaptor.h (logger): New variable.
  14384. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14385. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14386. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14387. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14388. parameter to a tracker request.
  14389. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14390. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14391. * src/main.cc (setSignalHander): New function.
  14392. (main): Added a handler for SIGTERM.
  14393. (handler): Updated message.
  14394. (torrentHandler): Updated message.
  14395. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14396. * src/TorrentConsoleDownloadEngine.cc
  14397. (onPartialDownloadingCompletes): Renamed as
  14398. onSelectiveDownloadingCompletes.
  14399. (onSelectiveDownloadingCompletes): Updated message.
  14400. To add DiskAdaptor which abstract DiskWriter family:
  14401. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14402. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14403. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14404. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14405. MultiDiskAdaptor.h.
  14406. (readFileEntry): Changed its arguments.
  14407. (setup): setupDiskWriter is merged into this function.
  14408. (setupDiskWriter): Removed.
  14409. (setFileFilter): New function.
  14410. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14411. made in readFileEntry.
  14412. (getFilePath): Removed.
  14413. (getTempFilePath): Removed.
  14414. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14415. (fixFilename): Removed.
  14416. (copySingleFile): Removed.
  14417. (splitMultiFile): Removed.
  14418. (deleteTempFile): Removed.
  14419. (setFileEntriesToDownload): Removed.
  14420. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14421. (isSelectiveDownloadingMode): New function.
  14422. (setAllMultiFileRequestedState): Removed.
  14423. (finishPartialDownloadingMode): Renamed as
  14424. finishSelectiveDownloadingMode.
  14425. (finishSelectiveDownloadingMode): New function.
  14426. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14427. (getSelectedTotalLength): New function.
  14428. (onDownloadComplete): Use diskAdaptor.
  14429. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14430. (Range): Removed.
  14431. (setMultiFileEntries): Renamed as setFileEntries.
  14432. (setFileEntries): New function.
  14433. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14434. (pieceLength): New variable.
  14435. * src/main.cc (printDownloadCompeleteMessage): New function.
  14436. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14437. (main): Renamed torrent-show-files to show-files.
  14438. Rewritten file contents listing.
  14439. * src/TorrentMan.h (FileEntry): Removed.
  14440. (multiFileTopDir): Removed.
  14441. (multiFileEntries): Removed.
  14442. (diskWriter): Removed.
  14443. (diskAdaptor): New variable.
  14444. * src/DefaultDiskWriter.h (totalLength): New variable.
  14445. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14446. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14447. diskWriter.
  14448. * src/TorrentConsoleDownloadEngine.h
  14449. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14450. (partialTotalLength): Renamed as selectedTotalLength.
  14451. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14452. openExistingFile, otherwise call initAndOpenFile.
  14453. (closeFile): fd > 0, not fd != 0.
  14454. * src/DirectDiskAdaptor.h: New class.
  14455. * src/DirectDiskAdaptor.cc: New class.
  14456. * src/MultiDiskAdaptor.h: New class.
  14457. * src/MultiDiskAdaptor.cc: New class.
  14458. * src/CopyDiskAdaptor.h: New class.
  14459. * src/CopyDiskAdaptor.cc: New class.
  14460. * src/DiskAdaptor.h: New class.
  14461. * src/DiskAdaptor.cc: New class.
  14462. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14463. (PREF_SHOW_FILES): New definition.
  14464. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14465. To add the ability to download multi torrent into respective files
  14466. directly:
  14467. * src/DiskWriter.h (openFile): New function.
  14468. (seek): Removed.
  14469. * src/MultiDiskWriter.h: New class.
  14470. * src/MultiDiskWriter.cc: New class.
  14471. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14472. protected.
  14473. (openFile): New function.
  14474. * src/AbstractDiskWriter.cc (openFile): New function.
  14475. * src/prefs.h (V_FALSE): New definition.
  14476. (PREF_DIRECT_FILE_MAPPING): New definition.
  14477. * src/TorrentMan.h (setupDiskWriter): New function.
  14478. (setAllMultiFileRequestedState): New function.
  14479. (onDownloadComplete): New function.
  14480. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14481. (setupDiskWriter): New function.
  14482. (getFilePath): Updated.
  14483. (getTempFilePath): Updated.
  14484. (getSegmentFilePath): Updated.
  14485. (fixFilename): Updated.
  14486. (deleteTempFile): Updated.
  14487. (setAllMultiFileRequestedState): New function.
  14488. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14489. (finishPartialDownloadingMode): Reset requested flags.
  14490. (onDownloadComplete): New function.
  14491. * src/main.cc: Added --direct-file-mapping option.
  14492. Use TorrentMan::setupDiskWriter().
  14493. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14494. onDownloadComplete().
  14495. To fix ETA bug:
  14496. * src/Util.h (difftvsec): New function.
  14497. * src/Util.cc (difftvsec): New function.
  14498. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14499. type of "elapsed" instead of long long int.
  14500. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14501. The updates of statistics takes place every 1 seconds.
  14502. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14503. (calculateSpeed): Changed its argument signature.
  14504. * src/PeerMessage.cc (toString): Fixed message.
  14505. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14506. To print ETA:
  14507. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14508. completion handling when dealing with
  14509. TorrentMan::isPartialDownloadingMode() == true.
  14510. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14511. New function.
  14512. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14513. (sessionDownloadLength): New variable.
  14514. (avgSpeed): New variable.
  14515. (eta): New variable.
  14516. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14517. new variables: eta, avgSpeed, startup.
  14518. (calculateSpeed): Calculate average speed and ETA.
  14519. (printStatistics): Added ETA.
  14520. * src/Util.h (secfmt): New function.
  14521. * src/Util.cc (secfmt): New function.
  14522. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14523. To detect "keep alive" flooding:
  14524. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14525. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14526. variable: keepAliveCount.
  14527. (detectMessageFlooding): Added "keep alive" flooding detection.
  14528. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14529. received.
  14530. To add the ability to download only specified files in multi-file
  14531. torrent:
  14532. * src/BitfieldMan.h (filterBitfield): New variable.
  14533. (filterEnabled): New variable.
  14534. (setFilterBit): New function.
  14535. (enableFilter): New function.
  14536. (disableFilter): New function.
  14537. (isFilterEnabled): New function.
  14538. (getFilteredTotalLength): New function.
  14539. (getCompletedLength): New function.
  14540. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14541. filterBitfield, filterEnabled.
  14542. (CopyConstructor): Added filterBitfield and filterEnabled.
  14543. (operator==): Added filterBitfield and filterEnabled.
  14544. (Destructor): Added filterBitfield.
  14545. (getMissingIndex): Use filterBitfield.
  14546. (getMissingUnusedIndex): Use filterBitfield.
  14547. (getFirstMissingUnusedIndex): Use filterBitfield.
  14548. (getFirstMissingUnusedIndex): Use filterBitfield.
  14549. (getAllMissingIndexes): Use filterBitfield.
  14550. (countMissingBlock): Use filterBitfield.
  14551. (countBlock): Use filterBitfield.
  14552. (setBitInternal): Added new argument on.
  14553. (setUseBit): Use setBitInternal.
  14554. (unsetUseBit): Use setBitInternal.
  14555. (setBit): Use setBitInternal.
  14556. (unsetBit): Use setBitInternal.
  14557. (isAllBitSet): Use filterBitfield.
  14558. (setFilterBit): New function.
  14559. (addFilter): New function.
  14560. (enableFilter): New function.
  14561. (disableFilter): New function.
  14562. (clearFilter): New function.
  14563. (isFilterEnabled): New function.
  14564. (getFilteredTotalLength): New function.
  14565. (getCompletedLength): New function.
  14566. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14567. Initalized newly added variables.
  14568. [FileEntry](offset): New variable.
  14569. [FileEntry](extracted): New variable.
  14570. [FileEntry](requested): New variable.
  14571. (readFileEntry): New function.
  14572. (option): New variable.
  14573. (splitMultiFile): Removed const qualifier.
  14574. (fixFilename): Removed const qualifier.
  14575. (readFileEntryFromMetaInfoFile): New function.
  14576. (finishPartialDownloadingMode): New function.
  14577. (isPartialDownloadingMode): New function.
  14578. (setFileEntriesToDownload): New function.
  14579. (getCompletedLength): New function.
  14580. (getPartialTotalLength): New function.
  14581. * src/TorrentMan.cc (readFileEntry): New function.
  14582. (setup): Use readFileEntry. If no-preallocation option is specified,
  14583. use DefaultDiskWriter.
  14584. (readFileEntryFromMetaInfoFile): New function.
  14585. (fixFilename): Removed const qualifier.
  14586. (splitMultiFile): Removed const qualifier.
  14587. (setFileEntriesToDownload): New function.
  14588. (isPartialDownloadingMode): New function.
  14589. (finishPartialDownloadingMode): New function.
  14590. (getCompletedLength): New function.
  14591. (getPartialTotalLength): New function.
  14592. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14593. New variable.
  14594. (partialTotalLength): New variable.
  14595. (downloadLength): New variable.
  14596. (totalLength): New variable.
  14597. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14598. Added log.
  14599. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14600. partialTotalLength, downloadLength, totalLength.
  14601. (calculate): Calculate downloadLength and totalLength.
  14602. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14603. * src/main.cc (addCommand): Changed argument signature.
  14604. (main): Added new variable: args. Added new option "torrent-show-files"
  14605. "no-preallocation". Usage is not updated yet.
  14606. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14607. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14608. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14609. Attempt to add the ability to listing file entries in a .torrent file.
  14610. This feature is not yet complete.
  14611. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14612. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14613. (getName): New function.
  14614. * src/TorrentMan.h (getMultiFileEntries): New function.
  14615. (getName): New function.
  14616. * src/main.cc (main): Use above 2 funtion.
  14617. * Release 0.3.2
  14618. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14619. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14620. (detectMessageFlooding): Updated threshold value.
  14621. (checkLongTimePeerChoking): Updated timeout value.
  14622. (getNewPieceAndSendInterest): Added debug log.
  14623. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14624. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14625. (getPeer): Updated.
  14626. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14627. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14628. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14629. is localhost.
  14630. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14631. * src/PendingMessage.cc (processMessage): Not to send piece message
  14632. if peer is not interested in the pieces localhost has.
  14633. * src/Peer.cc (shouldChoke): Updated.
  14634. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14635. * src/Util.cc (isPowerOf): New function.
  14636. * src/Util.h (isPowerOf): New function.
  14637. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14638. whether or not it is power of 2.
  14639. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14640. Added new class SendMessageQueue that includes PendingMessages and
  14641. RequestSlotMan.
  14642. * src/SendMessageQueue.h: New class.
  14643. * src/SendMessageQueue.cc: New class.
  14644. * src/PendingMessage.h: Added new member variable blockIndex and its
  14645. accessors.
  14646. (createRequestMessage): Updated.
  14647. * src/PendingMessage.cc (createRequestMessage): Updated.
  14648. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14649. SendMessageQueue.
  14650. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14651. (receiveMessage): Updated with SendMessageQueue.
  14652. (deletePendingPieceMessage): Removed.
  14653. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14654. (sendInterest): Updated with SendMessageQueue.
  14655. (createRequestPendingMessage): Updated with SendMessageQueue.
  14656. (sendMessages): Updated with SendMessageQueue.
  14657. (onAbort): Updated with SendMessageQueue.
  14658. (keepAlive): Updated with SendMessageQueue.
  14659. (beforeSocketCheck): Updated SendMessageQueue.
  14660. * src/PeerInteractionCommand (sendMessages): Shuffle
  14661. missingBLockIndexes before using it.
  14662. Added its own timeout for peer connection.
  14663. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14664. setter.
  14665. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14666. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14667. Added setTimeout() call.
  14668. (executeInternal): Added setTimeout() call.
  14669. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14670. Added timeout.
  14671. (isTimeoutDetected): Updated.
  14672. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14673. option.
  14674. Added *simple* message flooding checker.
  14675. * src/PeerInteractionCommand.cc (executeInternal):
  14676. Added detectMessageFlooding() call.
  14677. (detectMessageFlooding): New function.
  14678. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14679. (beforeSocketCheck): Added detectMessageFlooding() call.
  14680. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14681. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14682. Removed deletePendingPieceMessage(), getRequestSlot(),
  14683. deleteRequestSlot(), deleteAllRequestSlot().
  14684. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14685. Added checkLongTimePeerChoking() call.
  14686. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14687. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14688. if duplicate == false.
  14689. The parameter "uploaded" and "downloaded" in the tracker request are
  14690. the size since the client sent the "started" event to the tracker.
  14691. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14692. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14693. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14694. getSessionDownloadedSize(), getSessionUploadedSize().
  14695. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14696. getSessionUploadedSize() instead of getDownloadedSize(),
  14697. getUploadedSize().
  14698. * src/PendingMessage.cc (processMessage): Do not send request message
  14699. if the peer is choking the client.
  14700. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14701. less than interval.
  14702. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14703. * configure.in: Added gnutls support. Added several CPP macros.
  14704. * m4/openssl.m4: Added.
  14705. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14706. readData(), peekData(). Added gnutls support.
  14707. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14708. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14709. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14710. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14711. Instead, added a check for whether setup method has executed
  14712. successfully.
  14713. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14714. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14715. * src/Makefile.am: Updated.
  14716. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14717. using whether OpenSSL or gcrypt, depending on the result of configure
  14718. script.
  14719. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14720. messageDigest.h.
  14721. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14722. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14723. Fixed memory leak.
  14724. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14725. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14726. Removed instantiation of TrackerInitCommand. Instead,
  14727. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14728. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14729. ENABLE_SSL.
  14730. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14731. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14732. If a piece is already acquired by another command, delete the request
  14733. slots for the piece.
  14734. * src/TrackerUpdateCommand.cc (execute):
  14735. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14736. Added a check whether peer list is null.
  14737. Fixed the bug that causes sending completed event to the tracker
  14738. several times.
  14739. * src/TrackerInitCommand.cc (execute):
  14740. Fixed the bug that causes sending completed event to the tracker
  14741. several times.
  14742. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14743. by using messageDigest.h.
  14744. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14745. * PeerConnection.cc: Replaced log message "keep-alive" with
  14746. "keep alive".
  14747. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14748. localhost long time.
  14749. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14750. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14751. at most 100 failure entry from the list. If with duplicate = false,
  14752. MAX_PEER_LIST is not checked.
  14753. * PeerListenCommand.cc: Fixed the argument order of log message.
  14754. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14755. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14756. Added warn().
  14757. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14758. Implemented warn().
  14759. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14760. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14761. * Request.h: Added AFTER_COMPLETED event.
  14762. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14763. instead of downloaded size and progress(%) after download completes.
  14764. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14765. message to the peer if it is interested in what localhost has
  14766. downloaded.
  14767. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14768. destination instead of just renaming it.
  14769. * TorrentMan.cc: Added deleteTempFile().
  14770. * PeerAbstractCommand.cc: do not stop execution after download
  14771. completes. This makes localhost a seeder.
  14772. * Util.{h,cc}: Added fileCopy().
  14773. * PeerListenCommand.cc: do not stop execution after download completes.
  14774. This makes localhost a seeder.
  14775. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14776. Added TorrentMan::deleteTempFile() to torrentHandler.
  14777. Initialized the variable dir as ".".
  14778. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14779. Deleted renameSingleFile().
  14780. Added copySingleFile(), deleteTempFile().
  14781. * DownloadEngine.h: Added virtual function afterEachIteration().
  14782. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14783. in onEndOfRun() to afterEachIteration().
  14784. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14785. true.
  14786. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14787. In rangedFileCopy(), added try-catch block to properly close file
  14788. descriptors.
  14789. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14790. Added afterEachIteration(), isFilenameFixed().
  14791. * Peer.cc: Changed choking strategy.
  14792. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14793. * TrackerInitCommand.cc: Send completed event only once.
  14794. * DownloadEngine.cc: Added a call to afterEachIteration().
  14795. * TrackerUpdateCommand.cc: Do not stop execution after download
  14796. completes.
  14797. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14798. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14799. received from a tracker.
  14800. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14801. Decreased the number of failure peers to delete to 0(just comment out
  14802. the line).
  14803. * Release 0.3.1
  14804. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14805. * PeerInteractionCommand.cc: added a call to
  14806. TorrentMan::unadvertisePiece in Destructor.
  14807. * PeerInteractionCommand.cc: make have message sent immediately
  14808. if the size of pending message queue is zero.
  14809. * TorrentMan.cc: set the maximum size of peer list to 250.
  14810. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14811. to deque.
  14812. * Util.cc: fixed rangedFileCopy.
  14813. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14814. to Constructor. Also, moved digest cleanup to Destructor.
  14815. * MetaFileUtil.cc: fixed memory leak
  14816. * replaced std::vector with std::deque.
  14817. * AbstractCommand.cc: casted timeout value to long long int.
  14818. * ChunkedEncoding.cc: fixed memory leak.
  14819. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14820. * SleepCommand.cc: casted timeout value to long long int.
  14821. * Data.cc: fixed memory leak.
  14822. * Data.cc: fixed toLLInt().
  14823. * BitfieldMan.cc: fixed memory leak.
  14824. * TorrentMan.cc: initialized storeDir to ".".
  14825. * TorrentMan.cc: fixed memory leak.
  14826. * TorrentMan.cc: corrected file paths of splitted files.
  14827. * PeerAbstractCommand.cc: casted timeout to long long int.
  14828. * main.cc: added delete(req) and delete(te->diskWriter).
  14829. * RequestSlot.cc: casted timeout value to long long int.
  14830. * Request.cc: fixed memory leak.
  14831. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14832. have the piece.
  14833. * Peer.{h,cc}: added hasPiece(int index).
  14834. * main.cc: corrected addCommand.
  14835. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14836. * BitTorrent protocol support added.
  14837. * Release 0.3.0
  14838. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14839. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14840. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14841. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14842. decoding did not work properly.
  14843. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14844. * DownloadEngine.h: included sys/time.h
  14845. * DownloadEngine.cc: remove sys/time.h
  14846. * Makefile.am (SUBDIRS): Add intl.
  14847. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14848. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14849. * main.cc: correct help message for --http-auth-scheme.
  14850. * main.cc: changed e-mail address for bug reports.
  14851. * ja.po: added japanese translation.
  14852. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14853. * SimpleLogger.cc: flush log file instead of stdout.
  14854. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14855. * main.cc: Fixed command-line option: max-tries
  14856. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14857. does not equal to seg.sp.
  14858. * DownloadCommand.cc: If EOF is got from the server and the total size
  14859. of file is not zero, then throw DlRetryEx.
  14860. * main.cc: Set the minium value of min-segment-size to 1024.
  14861. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14862. fails because of a regression since 0.2.0 release.
  14863. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14864. * HttpConnection.cc:
  14865. * common.h: defined the user agent name as macro
  14866. * DownloadEngine.{h, cc}:
  14867. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14868. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14869. * main.cc: Download complete/abort message is now generated by main.
  14870. * Makefile.am (SUBDIRS): Add m4.
  14871. (ACLOCAL_AMFLAGS): New variable.
  14872. (EXTRA_DIST): New variable.
  14873. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14874. * gettext: added gettext functionality
  14875. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14876. * AbstractCommand.cc:
  14877. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14878. unregister its cuid from SegmentMan.
  14879. * DownloadEngine.cc: .aria2 file was written when a downloading
  14880. failed with errors.
  14881. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14882. Added "User-Agent" header to CONNECT proxy request.
  14883. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14884. properly.
  14885. * Logger.h:
  14886. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14887. * ChunkedEncoding.cc: Added #include directive for strings.h
  14888. * Release 0.2.1
  14889. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14890. * Util.{h,cc}: added startsWith().
  14891. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14892. Util::endsWith().
  14893. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14894. * common.h: added #include directive of limit.h.
  14895. * DownloadEngine.cc: added #include directive of sys/time.h and
  14896. algorithm.
  14897. * Exception.h: added #include directive of stdio.h.
  14898. * AbstractCommand.h: added #include directive of sys/time.h.
  14899. * DownloadCommand.h: added #include directive of sys/time.h.
  14900. * *.h: added #include directive of common.h to all base classes.
  14901. subclasses' one was removed.
  14902. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14903. does not define these macros.
  14904. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14905. * Release 0.2.0
  14906. * main.cc:
  14907. * HttpInitiateConnectionCommand.{h,cc}:
  14908. * prefs.h:
  14909. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14910. We can now use GET command in http proxy.
  14911. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14912. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14913. that splits slowest segment of SegmentMan::commands vector.
  14914. This is the default split algorithm of aria2.
  14915. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14916. that splits first segment of SegmentMan::commands vector.
  14917. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14918. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14919. * Segment.h:
  14920. * SegmentMan.cc: Added speed field to Segment.h
  14921. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14922. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14923. * message.h: Change file size related %d to %lld.
  14924. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14925. * FtpInitiateConnectionCommand.{h,cc}:
  14926. * FtpNegotiationCommand.{h,cc}:
  14927. * FtpDownloadCommand.{h,cc}:
  14928. * FtpConnection.{h,cc}: Added FTP support
  14929. * SimpleLogger.cc: Log message now includes time information.
  14930. * main.cc: The value of --http-auth-scheme option is chagned from
  14931. 'BASIC' to 'basic'
  14932. * main.cc: Added --timeout command-line option.
  14933. * main.cc: Added --min-segment-size command-line option.
  14934. * main.cc: Added --max-retries command-line option.
  14935. * prefs.h: option string constants are now defined in prefs.h
  14936. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14937. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14938. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14939. with version 0.1.0's one.
  14940. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14941. * configure.in: Added --enable-ssl option to configure script.
  14942. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14943. cannot permit absoluteURI as Request-URI.
  14944. * HttpConnection.cc: Added Referer support.
  14945. * main.cc: Added referer command-line option.
  14946. * main.cc: Added rety-wait command-line option.
  14947. * Exception.h: Fixed formating bug in Exception::setMsg()
  14948. * SocketCore.{h,cc}:
  14949. * Socket.{h, cc}:
  14950. * Request.cc:
  14951. * InitiateConnectionCommandFactory.cc:
  14952. * HttpRequestCommand.cc: Added HTTPS support.
  14953. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14954. for SocketCore.
  14955. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14956. size is wrong
  14957. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14958. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14959. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14960. * Release 0.1.0