ChangeLog 571 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161
  1. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3. is enabled.
  4. * src/Makefile.am
  5. * test/Makefile.am
  6. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Added countSeeder() function which counts seeder in the given
  8. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  9. * src/ConsoleStatCalc.cc
  10. * src/Peer.h
  11. * src/XmlRpcMethodImpl.cc
  12. * test/PeerTest.cc
  13. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Documented missing seeder in getPeers xml-rpc method.
  15. Documented uploadLength and numSeeders.
  16. * doc/aria2c.1.txt
  17. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Added uploadLength and numSeeders to the response of tellStatus
  19. xml-rpc method. Assert that PeerStorage instance is not null
  20. instead of checking if statement. It should be non-null in this
  21. context.
  22. * src/XmlRpcMethodImpl.cc
  23. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  25. * src/XmlRpcResponse.cc
  26. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Avoid intermediate object during string concatenation.
  28. * src/HttpRequest.cc
  29. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Added strjoin function template. Use it in pathJoin()
  31. * src/Util.h
  32. * src/a2functional.h
  33. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Avoid intermediate object during string concatenation. Replaced
  35. post-increment unary operator with pre-increment one in for loop.
  36. * src/AdaptiveURISelector.cc
  37. * src/AnnounceList.cc
  38. * src/AuthConfig.h
  39. * src/BtBitfieldMessage.cc
  40. * src/BtExtendedMessage.cc
  41. * src/BtHandshakeMessage.cc
  42. * src/BtPieceMessage.cc
  43. * src/BtPortMessage.cc
  44. * src/Cookie.cc
  45. * src/DHTAnnouncePeerMessage.cc
  46. * src/DHTAutoSaveCommand.cc
  47. * src/DHTGetPeersReplyMessage.cc
  48. * src/DHTNode.cc
  49. * src/DHTQueryMessage.cc
  50. * src/DHTResponseMessage.cc
  51. * src/DHTUnknownMessage.cc
  52. * src/DefaultBtAnnounce.cc
  53. * src/DefaultBtContext.cc
  54. * src/DefaultBtInteractive.cc
  55. * src/DefaultBtProgressInfoFile.cc
  56. * src/DefaultPeerStorage.cc
  57. * src/DownloadEngine.cc
  58. * src/FeatureConfig.cc
  59. * src/File.cc
  60. * src/FtpConnection.cc
  61. * src/FtpNegotiationCommand.cc
  62. * src/HandshakeExtensionMessage.cc
  63. * src/HttpConnection.cc
  64. * src/HttpRequest.cc
  65. * src/HttpResponseCommand.cc
  66. * src/HttpServer.cc
  67. * src/IndexBtMessage.cc
  68. * src/Metalink2RequestGroup.cc
  69. * src/OptionHandlerImpl.h
  70. * src/PStringBuildVisitor.cc
  71. * src/Peer.cc
  72. * src/PeerListenCommand.cc
  73. * src/Piece.cc
  74. * src/RangeBtMessage.cc
  75. * src/Request.cc
  76. * src/Request.h
  77. * src/RequestGroup.cc
  78. * src/RequestGroupMan.cc
  79. * src/ServerStat.cc
  80. * src/ServerStatMan.cc
  81. * src/UTPexExtensionMessage.cc
  82. * src/Util.cc
  83. * src/a2functional.h
  84. * src/download_helper.cc
  85. * src/messageDigest.cc
  86. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Unchoke a peer randomly at first and second choke round in seed
  88. state.
  89. * src/BtSeederStateChoke.cc
  90. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  91. Added (sock_t) to quiet compiler warnings in MinGW
  92. * src/SocketCore.cc
  93. * src/SocketCore.h
  94. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  96. * src/EpollEventPoll.h
  97. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  98. Added fork() emulation using CreateProcess() in MinGW
  99. * src/RequestGroupMan.cc
  100. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. * Release 1.4.0
  102. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Added utf8.torrent to EXTRA_DIST
  104. * test/Makefile.am
  105. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Fixed docs of aria2.addMetalink xml-rpc method.
  107. * doc/aria2c.1.txt
  108. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Added Slovak translation. Updated Ukrainian and Brazilian
  110. Portuguese translation. Thanks to all translators.
  111. * po/sk.po
  112. * po/uk.po
  113. * po/pt_BR.po
  114. * po/LINGUAS
  115. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Added test case for XmlRpcProcessor to fail to parse malformed
  117. document.
  118. * test/XmlRpcRequestProcessorTest.cc
  119. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Removed *.gmo files in po because they are generated on 'make
  121. dist'
  122. * po/*.gmo
  123. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Documented max-concurrent-downloads of changeGlobalOption method
  125. in man page.
  126. * doc/aria2c.1.txt
  127. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Added max-concurrent-downloads option to changeGlobalOption
  129. xml-rpc method. Rewritten loop conditional in
  130. RequestGroupMan::fillRequestGroupFromReserver().
  131. * src/RequestGroupMan.cc
  132. * src/RequestGroupMan.h
  133. * src/XmlRpcMethod.cc
  134. * src/XmlRpcMethodImpl.cc
  135. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Documented position parameter in man page.
  137. * doc/aria2c.1.txt
  138. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Added 'position' parameter to addUri, addTorrent and addMetalink
  140. xml-rpc method.
  141. * src/RequestGroupMan.cc
  142. * src/RequestGroupMan.h
  143. * src/XmlRpcMethodImpl.cc
  144. * test/XmlRpcMethodTest.cc
  145. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Removed Peer.cc from compile source list when --disable-bittorrent
  147. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  148. takes Peer.
  149. * src/DefaultPieceStorage.cc
  150. * src/DefaultPieceStorage.h
  151. * src/Makefile.am
  152. * src/PieceStorage.h
  153. * src/UnknownLengthPieceStorage.cc
  154. * src/UnknownLengthPieceStorage.h
  155. * test/MockPieceStorage.h
  156. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Implemented getter methods in header files to give them more
  158. chance of optimization.
  159. Return const reference for SharadHandle if possible.
  160. * src/AbstractAuthResolver.cc
  161. * src/AbstractAuthResolver.h
  162. * src/AbstractBtMessage.cc
  163. * src/AbstractBtMessage.h
  164. * src/AbstractSingleDiskAdaptor.cc
  165. * src/AbstractSingleDiskAdaptor.h
  166. * src/AsyncNameResolver.cc
  167. * src/AsyncNameResolver.h
  168. * src/BNode.cc
  169. * src/BNode.h
  170. * src/BitfieldMan.cc
  171. * src/BitfieldMan.h
  172. * src/BtAbortOutstandingRequestEvent.h
  173. * src/BtExtendedMessage.cc
  174. * src/BtExtendedMessage.h
  175. * src/BtSeederStateChoke.cc
  176. * src/BtSeederStateChoke.h
  177. * src/Cookie.cc
  178. * src/Cookie.h
  179. * src/DHTBucket.cc
  180. * src/DHTBucket.h
  181. * src/DHTConnectionImpl.cc
  182. * src/DHTConnectionImpl.h
  183. * src/DHTFindNodeReplyMessage.cc
  184. * src/DHTFindNodeReplyMessage.h
  185. * src/DHTGetPeersReplyMessage.cc
  186. * src/DHTGetPeersReplyMessage.h
  187. * src/DHTInteractionCommand.cc
  188. * src/DHTMessage.cc
  189. * src/DHTMessage.h
  190. * src/DHTMessageDispatcherImpl.cc
  191. * src/DHTMessageEntry.cc
  192. * src/DHTMessageReceiver.cc
  193. * src/DHTMessageReceiver.h
  194. * src/DHTMessageTrackerEntry.cc
  195. * src/DHTMessageTrackerEntry.h
  196. * src/DHTPeerAnnounceEntry.cc
  197. * src/DHTPeerAnnounceEntry.h
  198. * src/DHTPeerLookupTask.cc
  199. * src/DHTPeerLookupTask.h
  200. * src/DHTRoutingTableDeserializer.cc
  201. * src/DHTRoutingTableDeserializer.h
  202. * src/DefaultBtAnnounce.cc
  203. * src/DefaultBtAnnounce.h
  204. * src/DefaultBtMessageDispatcher.cc
  205. * src/DefaultBtMessageDispatcher.h
  206. * src/DefaultBtRequestFactory.cc
  207. * src/DefaultBtRequestFactory.h
  208. * src/DiskAdaptor.cc
  209. * src/DiskAdaptor.h
  210. * src/DownloadContext.cc
  211. * src/DownloadContext.h
  212. * src/DownloadEngine.cc
  213. * src/DownloadEngine.h
  214. * src/EpollEventPoll.cc
  215. * src/EpollEventPoll.h
  216. * src/FtpConnection.cc
  217. * src/FtpConnection.h
  218. * src/HttpConnection.cc
  219. * src/HttpConnection.h
  220. * src/HttpHeader.cc
  221. * src/HttpHeader.h
  222. * src/HttpRequest.cc
  223. * src/HttpRequest.h
  224. * src/HttpResponse.cc
  225. * src/HttpResponse.h
  226. * src/LibsslTLSContext.cc
  227. * src/LibsslTLSContext.h
  228. * src/MSEHandshake.cc
  229. * src/MSEHandshake.h
  230. * src/MetalinkEntry.cc
  231. * src/MetalinkEntry.h
  232. * src/MetalinkParserController.cc
  233. * src/MetalinkParserController.h
  234. * src/MetalinkParserStateMachine.cc
  235. * src/MetalinkParserStateMachine.h
  236. * src/MultiDiskAdaptor.cc
  237. * src/MultiDiskAdaptor.h
  238. * src/NetrcAuthResolver.cc
  239. * src/NetrcAuthResolver.h
  240. * src/Peer.cc
  241. * src/Peer.h
  242. * src/PeerSessionResource.cc
  243. * src/PeerSessionResource.h
  244. * src/Piece.cc
  245. * src/Piece.h
  246. * src/PieceStatMan.cc
  247. * src/PieceStatMan.h
  248. * src/Request.cc
  249. * src/Request.h
  250. * src/RequestGroup.cc
  251. * src/RequestGroup.h
  252. * src/RequestGroupMan.cc
  253. * src/RequestGroupMan.h
  254. * src/RequestSlot.cc
  255. * src/RequestSlot.h
  256. * src/SegmentMan.cc
  257. * src/SegmentMan.h
  258. * src/SelectEventPoll.cc
  259. * src/SelectEventPoll.h
  260. * src/ServerStat.cc
  261. * src/ServerStat.h
  262. * src/Signature.cc
  263. * src/Signature.h
  264. * src/URIResult.cc
  265. * src/URIResult.h
  266. * src/UTPexExtensionMessage.cc
  267. * src/UTPexExtensionMessage.h
  268. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Fixed compile error without BitTorrent and Metalink support.
  270. * src/XmlRpcMethod.cc
  271. * src/XmlRpcMethodFactory.cc
  272. * src/XmlRpcMethodImpl.cc
  273. * src/XmlRpcMethodImpl.h
  274. * test/XmlRpcMethodTest.cc
  275. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Rewritten the help message for --allow-overwrite option.
  277. * doc/aria2c.1.txt
  278. * src/usage_text.h
  279. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Fixed typo
  281. * doc/aria2c.1.txt
  282. * src/usage_text.h
  283. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Updated README for 1.4.0 release. Use new table syntax of
  285. asciidoc.
  286. * README
  287. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Documented --xml-rpc-max-request-size option in man page.
  289. * doc/aria2c.1.txt
  290. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Moved C_* constants from BtContext to DefaultBtContext.
  292. * src/BtContext.cc: Removed.
  293. * src/BtContext.h
  294. * src/DefaultBtContext.cc
  295. * src/DefaultBtContext.h
  296. * src/Makefile.am
  297. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Use name.utf-8 and path.utf-8 key in higher priority than name and
  299. path key respectively when persing .torrent file.
  300. * src/BtContext.cc
  301. * src/BtContext.h
  302. * src/DefaultBtContext.cc
  303. * test/DefaultBtContextTest.cc
  304. * test/utf8.torrent
  305. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Added --xml-rpc-max-request-size option to limit the size of
  307. XML-RPC request.
  308. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Documented XML-RPC API in man page.
  310. * doc/aria2c.1.txt
  311. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  313. will break strict-aliasing rules
  314. * src/PeerConnection.cc
  315. * test/DHTRoutingTableSerializerTest.cc
  316. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  318. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  319. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  320. PKG_CHECK_MODULES macro uses latter name.
  321. * m4/sqlite3.m4
  322. * src/Makefile.am
  323. * test/Makefile.am
  324. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Fixed typo
  326. * configure.ac
  327. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  329. presence of libgnutls using pkg-config first. If it fails, fall
  330. back to old macro libgnutls.m4.
  331. * configure.ac
  332. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Use s itself instead of !s.bad()
  334. * src/CookieStorage.cc
  335. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Documented --on-download-* option and --save-cookies option in man
  337. page.
  338. * doc/aria2c.1.txt
  339. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Set possible values for --load-cookie option to "/path/to/file".
  341. * src/OptionHandlerFactory.cc
  342. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Added --save-cookies option.
  344. * src/Cookie.cc
  345. * src/Cookie.h
  346. * src/CookieStorage.cc
  347. * src/CookieStorage.h
  348. * src/MultiUrlRequestInfo.cc
  349. * src/OptionHandlerFactory.cc
  350. * src/prefs.cc
  351. * src/prefs.h
  352. * src/usage_text.h
  353. * test/CookieStorageTest.cc
  354. * test/CookieTest.cc
  355. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Removed tellAll XML-RPC command because its reponse tends to be
  357. big if stopped/waiting downloads pile up.
  358. * src/XmlRpcMethodFactory.cc
  359. * src/XmlRpcMethodImpl.cc
  360. * src/XmlRpcMethodImpl.h
  361. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Added the ability to execute command when download starts and
  363. stops. You can also specify command for particular cases such as
  364. complete/error download. Added --on-download-start,
  365. --on-download-stop, --on-download-complete and --on-download-error
  366. option.
  367. * src/OptionHandlerFactory.cc
  368. * src/RequestGroupMan.cc
  369. * src/prefs.cc
  370. * src/prefs.h
  371. * src/usage_text.h
  372. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Fixed test error
  374. * test/BencodeTest.cc
  375. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Added unit tests.
  377. * test/XmlRpcMethodTest.cc
  378. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Made exception message more verbose.
  380. * src/bencode.cc
  381. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  383. space in console readout. Also they are now shown in MiB/s if
  384. speed > 1024KiB/s.
  385. * src/ConsoleStatCalc.cc
  386. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Added SEED to console output, which represents the number of
  388. seeders currently the client is connecting to.
  389. * src/ConsoleStatCalc.cc
  390. * src/ConsoleStatCalc.h
  391. * src/DownloadEngine.cc
  392. * src/NullStatCalc.h
  393. * src/StatCalc.h
  394. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Added source filename(__FILE__) and line number(__LINE__) to
  396. exception message.
  397. * src/AbstractCommand.cc
  398. * src/AbstractDiskWriter.cc
  399. * src/AbstractProxyResponseCommand.cc
  400. * src/BDE.h
  401. * src/BtAllowedFastMessage.cc
  402. * src/BtHandshakeMessageValidator.h
  403. * src/BtHaveAllMessage.cc
  404. * src/BtHaveNoneMessage.cc
  405. * src/BtPieceMessage.cc
  406. * src/BtRejectMessage.cc
  407. * src/ChunkedDecoder.cc
  408. * src/CookieStorage.cc
  409. * src/DHTAnnouncePeerMessage.cc
  410. * src/DHTEntryPointNameResolveCommand.cc
  411. * src/DHTMessageFactoryImpl.cc
  412. * src/DHTMessageTracker.cc
  413. * src/DHTRoutingTableDeserializer.cc
  414. * src/DHTRoutingTableSerializer.cc
  415. * src/DHTSetup.cc
  416. * src/DHTTokenTracker.cc
  417. * src/DefaultBtAnnounce.cc
  418. * src/DefaultBtContext.cc
  419. * src/DefaultBtInteractive.cc
  420. * src/DefaultBtMessageFactory.cc
  421. * src/DefaultBtProgressInfoFile.cc
  422. * src/DefaultExtensionMessageFactory.cc
  423. * src/DlAbortEx.h
  424. * src/DlRetryEx.h
  425. * src/DownloadCommand.cc
  426. * src/DownloadEngineFactory.cc
  427. * src/DownloadFailureException.h
  428. * src/Exception.cc
  429. * src/Exception.h
  430. * src/ExpatMetalinkProcessor.cc
  431. * src/ExpatXmlRpcRequestProcessor.cc
  432. * src/FallocFileAllocationIterator.cc
  433. * src/FatalException.h
  434. * src/FtpConnection.cc
  435. * src/FtpFinishDownloadCommand.cc
  436. * src/FtpInitiateConnectionCommand.cc
  437. * src/FtpNegotiationCommand.cc
  438. * src/GZipDecoder.cc
  439. * src/HandshakeExtensionMessage.cc
  440. * src/HttpConnection.cc
  441. * src/HttpHeaderProcessor.cc
  442. * src/HttpInitiateConnectionCommand.cc
  443. * src/HttpResponse.cc
  444. * src/HttpResponseCommand.cc
  445. * src/HttpServer.cc
  446. * src/HttpSkipResponseCommand.cc
  447. * src/InitiateConnectionCommandFactory.cc
  448. * src/IteratableChunkChecksumValidator.cc
  449. * src/LibgcryptARC4Context.h
  450. * src/LibgcryptARC4Decryptor.h
  451. * src/LibgcryptARC4Encryptor.h
  452. * src/LibgcryptDHKeyExchange.h
  453. * src/LibgnutlsTLSContext.cc
  454. * src/LibsslARC4Context.h
  455. * src/LibsslARC4Decryptor.h
  456. * src/LibsslARC4Encryptor.h
  457. * src/LibsslDHKeyExchange.h
  458. * src/LibsslTLSContext.cc
  459. * src/MSEHandshake.cc
  460. * src/MessageDigestHelper.cc
  461. * src/MetalinkHelper.cc
  462. * src/MultiDiskAdaptor.cc
  463. * src/NameMatchOptionHandler.h
  464. * src/NameResolver.cc
  465. * src/Netrc.cc
  466. * src/NsCookieParser.cc
  467. * src/OptionHandlerException.cc
  468. * src/OptionHandlerException.h
  469. * src/OptionHandlerImpl.h
  470. * src/OptionParser.cc
  471. * src/ParameterizedStringParser.cc
  472. * src/PeerAbstractCommand.cc
  473. * src/PeerConnection.cc
  474. * src/PeerMessageUtil.cc
  475. * src/PeerReceiveHandshakeCommand.cc
  476. * src/Platform.cc
  477. * src/ReceiverMSEHandshakeCommand.cc
  478. * src/RecoverableException.h
  479. * src/RequestGroup.cc
  480. * src/SimpleLogger.cc
  481. * src/SocketCore.cc
  482. * src/Sqlite3MozCookieParser.cc
  483. * src/UTPexExtensionMessage.cc
  484. * src/Util.cc
  485. * src/XML2SAXMetalinkProcessor.cc
  486. * src/Xml2XmlRpcRequestProcessor.cc
  487. * src/XmlRpcMethodImpl.cc
  488. * src/bencode.cc
  489. * src/download_helper.cc
  490. * src/messageDigest.h
  491. * test/ExceptionTest.cc
  492. * test/TestUtil.cc
  493. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Bump up version number to 1.4.0
  495. * configure.ac
  496. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Added 2files.metalink to EXTRA_DIST
  498. * test/Makefile.am
  499. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Added missing 2files.metalink
  501. * test/2files.metalink
  502. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Show "[MEMORY]" prefix before filename in download summary if it
  504. is downloaded into memory.
  505. * src/DownloadResult.h
  506. * src/RequestGroup.cc
  507. * src/RequestGroupMan.cc
  508. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  510. * src/ExpatXmlRpcRequestProcessor.cc
  511. * src/Xml2XmlRpcRequestProcessor.cc
  512. * src/message.h
  513. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Defined const BDEs to avoid duplicate instantiation.
  515. Defined MSG_GID_NOT_PROVIDED.
  516. * src/XmlRpcMethodImpl.cc
  517. * src/message.h
  518. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Code cleanup
  520. * src/Xml2XmlRpcRequestProcessor.cc
  521. * src/Xml2XmlRpcRequestProcessor.h
  522. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Defined ENABLE_XML_RPC
  524. * configure.ac
  525. * configure
  526. * config.h.in
  527. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Added ExpatXmlRpcRequestProcessor
  529. * src/ExpatXmlRpcRequestProcessor.cc
  530. * src/ExpatXmlRpcRequestProcessor.h
  531. * src/Makefile.am
  532. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Added tests for addTorrent and addMetalink command.
  534. * test/TestUtil.cc
  535. * test/TestUtil.h
  536. * test/XmlRpcMethodTest.cc
  537. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Corrected the description of --file-allocation option.
  539. * doc/aria2c.1.txt
  540. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Added tellAll command.
  542. * src/XmlRpcMethodFactory.cc
  543. * src/XmlRpcMethodImpl.cc
  544. * src/XmlRpcMethodImpl.h
  545. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  547. * src/XmlRpcMethodImpl.cc
  548. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Added changeGlobalOption command. Currently,
  550. max-overall-download-limit and max-overall-upload-limit option are
  551. available.
  552. * src/RequestGroupMan.h
  553. * src/XmlRpcMethod.cc
  554. * src/XmlRpcMethod.h
  555. * src/XmlRpcMethodFactory.cc
  556. * src/XmlRpcMethodImpl.cc
  557. * src/XmlRpcMethodImpl.h
  558. * test/XmlRpcMethodTest.cc
  559. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Added changeOption command. Currently, max-download-limit,
  561. max-upload-limit option are available in this command.
  562. * src/RequestGroup.h
  563. * src/XmlRpcMethod.cc
  564. * src/XmlRpcMethod.h
  565. * src/XmlRpcMethodFactory.cc
  566. * src/XmlRpcMethodImpl.cc
  567. * src/XmlRpcMethodImpl.h
  568. * test/XmlRpcMethodTest.cc
  569. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Added purgeDownloadResult command.
  571. * src/RequestGroupMan.cc
  572. * src/RequestGroupMan.h
  573. * src/XmlRpcMethodFactory.cc
  574. * src/XmlRpcMethodImpl.cc
  575. * src/XmlRpcMethodImpl.h
  576. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Refactored.
  578. * src/XmlRpcMethod.cc
  579. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  581. XmlRpcResponse.
  582. * src/HttpServerBodyCommand.cc
  583. * src/Makefile.am
  584. * src/XmlRpcMethod.cc
  585. * src/XmlRpcMethod.h
  586. * src/XmlRpcMethodImpl.cc
  587. * src/XmlRpcResponse.cc
  588. * src/XmlRpcResponse.h
  589. * test/XmlRpcMethodTest.cc
  590. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. In XML-RPC option struct, header and index-out option can take
  592. array as value.
  593. * src/XmlRpcMethod.cc
  594. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Removed unused option member from PeerConnection.
  596. * src/InitiatorMSEHandshakeCommand.cc
  597. * src/PeerConnection.cc
  598. * src/PeerConnection.h
  599. * src/PeerInteractionCommand.cc
  600. * src/PeerReceiveHandshakeCommand.cc
  601. * src/ReceiverMSEHandshakeCommand.cc
  602. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Added "seeder" key to getPeers response.
  604. * src/XmlRpcMethodImpl.cc
  605. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Added addMetalink XML-RPC command.
  607. * src/XmlRpcMethodFactory.cc
  608. * src/XmlRpcMethodImpl.cc
  609. * src/XmlRpcMethodImpl.h
  610. * src/download_helper.cc
  611. * src/download_helper.h
  612. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Fixed the bug that POU peers are never choked in seeding.
  614. * src/BtSeederStateChoke.cc
  615. * src/BtSeederStateChoke.h
  616. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Added web-seeding URI handling in addTorrent command.
  618. * src/XmlRpcMethodImpl.cc
  619. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Added "length" key to getFiles response.
  621. * src/XmlRpcMethodImpl.cc
  622. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Moved --no-netrc option from ftp option section to http/ftp option
  624. section.
  625. * doc/aria2c.1.txt
  626. * src/OptionHandlerFactory.cc
  627. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Removed garbage "\" character before '
  629. * doc/aria2c.1.txt
  630. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Removed garbage "\" character before http.
  632. * doc/aria2c.1.txt
  633. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Documented additional options that can be specified in -i list.
  635. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  636. and --xml-rpc-passwd. Removed --enable-http-server and
  637. --http-server-listen-port.
  638. * doc/aria2c.1.txt
  639. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  641. * src/DefaultPeerStorage.cc
  642. * src/DefaultPeerStorage.h
  643. * src/PeerStorage.h
  644. * src/XmlRpcMethodImpl.cc
  645. * test/MockPeerStorage.h
  646. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Put a call to Socket::isReadable() in try block.
  648. * src/HttpServerBodyCommand.cc
  649. * src/HttpServerCommand.cc
  650. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  652. exception , so it is now in try block.
  653. * src/HttpServerResponseCommand.cc
  654. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Added "amChoking" and "peerChoking" key in getPeers response.
  656. * src/XmlRpcMethodImpl.cc
  657. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Added test case for zero-length filter.
  659. * test/BitfieldManTest.cc
  660. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. getFiles command now returns file data for finished/stopped
  662. downloads.
  663. * src/XmlRpcMethodImpl.cc
  664. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. DownloadResult now has the list of FileEntry. The download
  666. summary displays the path of first selected file and the number of
  667. remaining files for multi-file torrent.
  668. * src/DownloadResult.h
  669. * src/RequestGroup.cc
  670. * src/RequestGroupMan.cc
  671. * test/RequestGroupTest.cc
  672. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Fixed segmentation fault error when no file is selected in
  674. multi-file torrent.
  675. * src/BitfieldMan.cc
  676. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Escaped <,>,& character in XML-RPC response.
  678. * src/XmlRpcMethod.cc
  679. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Throw DlAbortEx instead of FatalException during parsing options
  681. because we don't want for aria2 to quit when bad option is passed
  682. via XML-RPC.
  683. * src/OptionHandlerException.cc
  684. * src/OptionHandlerException.h
  685. * src/OptionHandlerImpl.h
  686. * src/OptionParser.cc
  687. * src/OptionParser.h
  688. * src/PStringSegment.cc
  689. * src/ParameterizedStringParser.cc
  690. * src/download_helper.cc
  691. * test/ParameterizedStringParserTest.cc
  692. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Selecting files are now done in
  694. DefaultBtContext::setFileFileter().
  695. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  696. functions are removed because they are no longer used. Creating
  697. filter in BitfieldMan is done in new funtion
  698. PieceStorage::setupFileFilter()
  699. * src/BtContext.cc
  700. * src/BtContext.h
  701. * src/DefaultBtContext.cc
  702. * src/DefaultBtContext.h
  703. * src/DefaultPieceStorage.cc
  704. * src/DefaultPieceStorage.h
  705. * src/DiskAdaptor.cc
  706. * src/DiskAdaptor.h
  707. * src/PieceStorage.h
  708. * src/RequestGroup.cc
  709. * src/UnknownLengthPieceStorage.h
  710. * src/XmlRpcMethodImpl.cc
  711. * test/DefaultBtContextTest.cc
  712. * test/MockBtContext.h
  713. * test/MockPieceStorage.h
  714. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Fixed compile error on Mac OS X
  716. * src/HttpServer.cc
  717. * src/XmlRpcMethod.h
  718. * src/XmlRpcMethodImpl.cc
  719. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Use std::binary_search instead of std::find
  721. * src/DefaultPieceStorage.cc
  722. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Removed unnecessary BDE() call; leave them to implicit conversion.
  724. * src/XmlRpcMethodImpl.cc
  725. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Return connections and gid in string
  727. * src/XmlRpcMethodImpl.cc
  728. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Renamed addURI as addUri
  730. * src/XmlRpcMethodFactory.cc
  731. * src/XmlRpcMethodImpl.cc
  732. * src/XmlRpcMethodImpl.h
  733. * test/XmlRpcMethodTest.cc
  734. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Renamed addTorrentFile as addTorrent
  736. * src/XmlRpcMethodFactory.cc
  737. * src/XmlRpcMethodImpl.cc
  738. * src/XmlRpcMethodImpl.h
  739. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. The information for files, URIs, peers are removed from the
  741. reponse of TellaActive, TellStatus command because they tend to be
  742. large. Instead they can be retrieved by the dedicated commands:
  743. getFiles, getUris and getPeers respectively.
  744. * src/XmlRpcMethodFactory.cc
  745. * src/XmlRpcMethodImpl.cc
  746. * src/XmlRpcMethodImpl.h
  747. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Removed --max-overall-upload-limit and
  749. --max-overall-download-limit option from listRequestOptions.
  750. * src/download_helper.cc
  751. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Log incoming host in HttpListenCommand.
  753. * src/HttpListenCommand.cc
  754. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  756. --xml-rpc-passwd option.
  757. * src/HttpServer.cc
  758. * src/HttpServer.h
  759. * src/HttpServerCommand.cc
  760. * src/OptionHandlerFactory.cc
  761. * src/prefs.cc
  762. * src/prefs.h
  763. * src/usage_text.h
  764. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  766. processing 0 length request.
  767. * src/HttpServerBodyCommand.cc
  768. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Removed --enable-http-server and --http-server-listen-port
  770. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  771. instead. The original feature for --enable-http-server that
  772. reports download progress in HTML was officially removed. Persist
  773. XML-RPC connection if client supports keep-alive.
  774. * src/DownloadEngineFactory.cc
  775. * src/HttpServerCommand.cc
  776. * src/HttpServerResponseCommand.cc
  777. * src/Makefile.am
  778. * src/Makefile.in
  779. * src/OptionHandlerFactory.cc
  780. * src/RequestGroupMan.cc
  781. * src/main.cc
  782. * src/option_processing.cc
  783. * src/prefs.cc
  784. * src/prefs.h
  785. * src/usage_text.h
  786. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added "uris" key to the response of tellStatus command. Added
  788. "connections" key to the response of tellStatus and tellActive
  789. command.
  790. * src/XmlRpcMethodImpl.cc
  791. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  793. Added TellStatusXmlRpcMethod. Remove command can now remove
  794. waiting RequestGroup.
  795. * src/RequestGroupMan.cc
  796. * src/RequestGroupMan.h
  797. * src/XmlRpcMethodFactory.cc
  798. * src/XmlRpcMethodImpl.cc
  799. * src/XmlRpcMethodImpl.h
  800. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Initialized _peerId
  802. * src/Peer.cc
  803. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Return fault structure for error. FailXmlRpcMethod is renamed as
  805. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  806. in non-torrent download. Return single param value.
  807. * src/XmlRpcMethod.cc
  808. * src/XmlRpcMethodFactory.cc
  809. * src/XmlRpcMethodImpl.cc
  810. * src/XmlRpcMethodImpl.h
  811. * test/XmlRpcMethodTest.cc
  812. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  814. command.
  815. * src/RequestGroup.cc
  816. * src/RequestGroup.h
  817. * src/RequestGroupMan.cc
  818. * src/XmlRpcMethodImpl.cc
  819. * test/RequestGroupTest.cc
  820. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Added more options that can be specified in -i list and xml-rpc
  822. add* command.
  823. * src/download_helper.h
  824. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. The available options in -i list should be listed in
  826. listRequestOptions().
  827. * src/download_helper.cc
  828. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  830. command.
  831. * src/XmlRpcMethodImpl.cc
  832. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Now RequestGroup has its own copy of Option object. This will help
  834. to give custom option for each RequestGroup.
  835. addTorrentFile command now takes options.
  836. * src/AbstractCommand.cc
  837. * src/AbstractCommand.h
  838. * src/AbstractProxyRequestCommand.cc
  839. * src/ActivePeerConnectionCommand.cc
  840. * src/ActivePeerConnectionCommand.h
  841. * src/AdaptiveURISelector.cc
  842. * src/BtCheckIntegrityEntry.cc
  843. * src/BtDependency.cc
  844. * src/BtDependency.h
  845. * src/BtFileAllocationEntry.cc
  846. * src/BtPostDownloadHandler.cc
  847. * src/CheckIntegrityEntry.cc
  848. * src/DownloadCommand.cc
  849. * src/FtpDownloadCommand.cc
  850. * src/FtpFinishDownloadCommand.cc
  851. * src/FtpInitiateConnectionCommand.cc
  852. * src/FtpNegotiationCommand.cc
  853. * src/HttpInitiateConnectionCommand.cc
  854. * src/HttpRequestCommand.cc
  855. * src/HttpResponseCommand.cc
  856. * src/HttpSkipResponseCommand.cc
  857. * src/InitiateConnectionCommand.cc
  858. * src/InitiateConnectionCommandFactory.cc
  859. * src/InitiatorMSEHandshakeCommand.cc
  860. * src/InitiatorMSEHandshakeCommand.h
  861. * src/Metalink2RequestGroup.cc
  862. * src/Metalink2RequestGroup.h
  863. * src/MetalinkPostDownloadHandler.cc
  864. * src/MultiUrlRequestInfo.cc
  865. * src/MultiUrlRequestInfo.h
  866. * src/PeerAbstractCommand.cc
  867. * src/PeerInteractionCommand.cc
  868. * src/PeerInteractionCommand.h
  869. * src/PeerReceiveHandshakeCommand.cc
  870. * src/PeerReceiveHandshakeCommand.h
  871. * src/RequestGroup.cc
  872. * src/RequestGroup.h
  873. * src/TrackerWatcherCommand.cc
  874. * src/TrackerWatcherCommand.h
  875. * src/XmlRpcMethod.cc
  876. * src/XmlRpcMethod.h
  877. * src/XmlRpcMethodImpl.cc
  878. * src/download_helper.cc
  879. * src/download_helper.h
  880. * src/main.cc
  881. * test/BtDependencyTest.cc
  882. * test/BtPostDownloadHandlerTest.cc
  883. * test/DefaultBtMessageDispatcherTest.cc
  884. * test/DownloadHandlerFactoryTest.cc
  885. * test/DownloadHelperTest.cc
  886. * test/Metalink2RequestGroupTest.cc
  887. * test/MetalinkPostDownloadHandlerTest.cc
  888. * test/RequestGroupManTest.cc
  889. * test/RequestGroupTest.cc
  890. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added tellActiveStatus xml-rpc command which reports download
  892. status of active downloads.
  893. * src/XmlRpcMethodFactory.cc
  894. * src/XmlRpcMethodImpl.cc
  895. * src/XmlRpcMethodImpl.h
  896. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Added addTorrentFile xml-rpc command which receives uploaded
  898. torrent file and add download for it.
  899. * src/RequestGroupMan.cc
  900. * src/XmlRpcMethodFactory.cc
  901. * src/XmlRpcMethodImpl.cc
  902. * src/XmlRpcMethodImpl.h
  903. * src/download_helper.cc
  904. * src/download_helper.h
  905. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Added remove xml-rpc command which removes specified download.
  907. There is a known issue: the removed unfinished downloads are
  908. reported ERR when aria2 exits. They should be reported as INPR.
  909. * src/RequestGroupMan.cc
  910. * src/RequestGroupMan.h
  911. * src/XmlRpcMethodFactory.cc
  912. * src/XmlRpcMethodImpl.cc
  913. * src/XmlRpcMethodImpl.h
  914. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. If --enable-http-server is enabled, don't stop aria2 when all
  916. download finished and don't quit when no files to download at
  917. start up.
  918. * src/RequestGroupMan.cc
  919. * src/main.cc
  920. * src/option_processing.cc
  921. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Added missing AM_CONDITIONAL
  923. * configure.ac
  924. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Added xml-rpc functionality. Currently only addURI commad is
  926. supported. To enable xml-rpc, run aria2 with
  927. --enable-http-server. This option name is temporal and will be
  928. changed. The feature that reports download progress in html format
  929. is temporarily disabled.
  930. * src/HttpServer.cc
  931. * src/HttpServer.h
  932. * src/HttpServerBodyCommand.cc
  933. * src/HttpServerBodyCommand.h
  934. * src/HttpServerCommand.cc
  935. * src/HttpServerResponseCommand.cc
  936. * src/Makefile.am
  937. * src/OptionParser.cc
  938. * src/OptionParser.h
  939. * src/RequestGroupMan.cc
  940. * src/RequestGroupMan.h
  941. * src/XmlRpcMethod.cc
  942. * src/XmlRpcMethod.h
  943. * src/XmlRpcMethodFactory.cc
  944. * src/XmlRpcMethodFactory.h
  945. * src/XmlRpcMethodImpl.cc
  946. * src/XmlRpcMethodImpl.h
  947. * src/download_helper.cc
  948. * src/download_helper.h
  949. * test/Makefile.am
  950. * test/XmlRpcMethodTest.cc
  951. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Added xml-rpc request parser. The supported value types are:
  953. i4/int, string, double, struct, array, base64. Currently only
  954. libxml2 version is provided.
  955. * src/Xml2XmlRpcRequestProcessor.cc
  956. * src/Xml2XmlRpcRequestProcessor.h
  957. * src/XmlRpcElements.cc
  958. * src/XmlRpcElements.h
  959. * src/XmlRpcRequest.h
  960. * src/XmlRpcRequestParserController.cc
  961. * src/XmlRpcRequestParserController.h
  962. * src/XmlRpcRequestParserState.h
  963. * src/XmlRpcRequestParserStateImpl.cc
  964. * src/XmlRpcRequestParserStateImpl.h
  965. * src/XmlRpcRequestParserStateMachine.cc
  966. * src/XmlRpcRequestParserStateMachine.h
  967. * src/XmlRpcRequestProcessor.h
  968. * test/XmlRpcRequestParserControllerTest.cc
  969. * test/XmlRpcRequestProcessorTest.cc
  970. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. * Release 1.3.3
  972. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Fixed compile error since r1202.
  974. * src/ExpatMetalinkProcessor.cc
  975. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Updated Ukrainian, Russian and Simplified Chinese
  977. translations. Thanks to all translators.
  978. * po/ru.po
  979. * po/uk.po
  980. * po/zh_CN.po
  981. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Pass reference of Option object instead of pointer.
  983. * src/download_helper.cc
  984. * src/download_helper.h
  985. * src/main.cc
  986. * test/DownloadHelperTest.cc
  987. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  989. from option directly. Instead, get them from RequestGroup.
  990. * src/ActivePeerConnectionCommand.cc
  991. * src/ActivePeerConnectionCommand.h
  992. * src/PeerReceiveHandshakeCommand.cc
  993. * src/RequestGroup.h
  994. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Removed unused uploadLimitCheck and uploadLimit from
  996. PeerAbstractCommand. Removed unused maxDownloadLimit from
  997. PeerInteractionCommand.
  998. * src/PeerAbstractCommand.cc
  999. * src/PeerAbstractCommand.h
  1000. * src/PeerInteractionCommand.cc
  1001. * src/PeerInteractionCommand.h
  1002. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Fixed broken file renaming feature since r1202.
  1004. * src/FtpNegotiationCommand.cc
  1005. * src/FtpNegotiationCommand.h
  1006. * src/HttpResponseCommand.cc
  1007. * src/RequestGroup.cc
  1008. * src/RequestGroup.h
  1009. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Removed unused debug log
  1011. * src/SocketCore.cc
  1012. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Generated configure and Makefile.in using autoconf 2.63 and
  1014. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1015. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1016. * configure.ac
  1017. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Moved piece statistics stuff to new PieceStatMan class.
  1019. Refactored PieceSelector interface.
  1020. * src/DefaultPieceStorage.cc
  1021. * src/DefaultPieceStorage.h
  1022. * src/LongestSequencePieceSelector.cc
  1023. * src/LongestSequencePieceSelector.h
  1024. * src/Makefile.am
  1025. * src/PieceSelector.h
  1026. * src/PieceStatMan.cc
  1027. * src/PieceStatMan.h
  1028. * src/RarestPieceSelector.cc
  1029. * src/RarestPieceSelector.h
  1030. * src/RequestGroup.cc
  1031. * test/DefaultPieceStorageTest.cc
  1032. * test/InOrderPieceSelector.h
  1033. * test/Makefile.am
  1034. * test/PieceStatManTest.cc
  1035. * test/RarestPieceSelectorTest.cc
  1036. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Added static member _protocolFamily to SocketCore. By default,
  1038. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1039. address. Sometime SocketCore::bind() and
  1040. SocketCore::establishConnection() use difference protocl family
  1041. and latter cannot connect to former. To avoid this situation, we
  1042. limit protocol family to AF_INET for unit tests.
  1043. * src/SocketCore.cc
  1044. * src/SocketCore.h
  1045. * test/AllTest.cc
  1046. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Avoid std::bad_alloc for negative bencode string length.
  1048. * src/bencode.cc
  1049. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Supported segmented downloading with chunked transfer encoding and
  1051. content-length.
  1052. * src/DownloadCommand.cc
  1053. * src/HttpResponseCommand.cc
  1054. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Bump up version number to 1.3.3
  1056. * configure.ac
  1057. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1059. from 4096 to 65536 (for insanely large ftp login banners)
  1060. * src/FtpConnection.h
  1061. * test/FtpConnectionTest.cc
  1062. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. In DefaultBtContext::getActualBasePath(), return first
  1064. FileEntry::getPath() for single file torrent.
  1065. * src/DefaultBtContext.cc
  1066. * test/DefaultBtContextTest.cc
  1067. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1069. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1070. Removed _directIOAllowed member from DiskWriter.
  1071. * src/AbstractDiskWriter.cc
  1072. * src/AbstractDiskWriter.h
  1073. * src/AbstractSingleDiskAdaptor.cc
  1074. * src/AbstractSingleDiskAdaptor.h
  1075. * src/BinaryStream.h
  1076. * src/ByteArrayDiskWriter.h
  1077. * src/DefaultPieceStorage.cc
  1078. * src/DiskWriter.h
  1079. * src/MultiDiskAdaptor.cc
  1080. * src/MultiDiskAdaptor.h
  1081. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Now the constructor of AbstractDiskWriter takes filename as an
  1083. argument and filename argument is removed from openFile(),
  1084. initAndOpenFile(), openExistingFile() interface. storeDir member
  1085. and its accessor functions are removed from DiskAdaptor because it
  1086. is not used anymore. size() member function of DefaultDiskWriter,
  1087. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1088. opening file.
  1089. * src/AbstractDiskWriter.cc
  1090. * src/AbstractDiskWriter.h
  1091. * src/AbstractSingleDiskAdaptor.cc
  1092. * src/AbstractSingleDiskAdaptor.h
  1093. * src/ByteArrayDiskWriter.cc
  1094. * src/ByteArrayDiskWriter.h
  1095. * src/ByteArrayDiskWriterFactory.cc
  1096. * src/ByteArrayDiskWriterFactory.h
  1097. * src/DefaultDiskWriter.cc
  1098. * src/DefaultDiskWriter.h
  1099. * src/DefaultDiskWriterFactory.cc
  1100. * src/DefaultDiskWriterFactory.h
  1101. * src/DefaultPieceStorage.cc
  1102. * src/DirectDiskAdaptor.cc
  1103. * src/DirectDiskAdaptor.h
  1104. * src/DiskAdaptor.h
  1105. * src/DiskWriter.h
  1106. * src/DiskWriterFactory.h
  1107. * src/MessageDigestHelper.cc
  1108. * src/MultiDiskAdaptor.cc
  1109. * src/RequestGroup.cc
  1110. * src/UnknownLengthPieceStorage.cc
  1111. * src/Util.cc
  1112. * test/DefaultDiskWriterTest.cc
  1113. * test/DirectDiskAdaptorTest.cc
  1114. * test/FallocFileAllocationIteratorTest.cc
  1115. * test/MessageDigestHelperTest.cc
  1116. * test/MetalinkProcessorTest.cc
  1117. * test/MultiDiskAdaptorTest.cc
  1118. * test/MultiFileAllocationIteratorTest.cc
  1119. * test/SingleFileAllocationIteratorTest.cc
  1120. * test/UtilTest.cc
  1121. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Fixed the bug that aria2 aborts when --select-file is used. This
  1123. bug was introduced in r1199.
  1124. * src/MultiDiskAdaptor.cc
  1125. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Code cleanup
  1127. * test/MockPieceStorage.cc
  1128. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Fixed the bug that read-only file with wrong file size will cause
  1130. error because it cannot be truncated to the correct size. Now if
  1131. file size is different than the expected one, re-open file in
  1132. writable mode.
  1133. * src/AbstractSingleDiskAdaptor.cc
  1134. * src/AbstractSingleDiskAdaptor.h
  1135. * src/BtCheckIntegrityEntry.cc
  1136. * src/DiskAdaptor.h
  1137. * src/MultiDiskAdaptor.h
  1138. * src/RequestGroup.cc
  1139. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Fixed the bug that with --check-integrity option aria2 reports
  1141. downloaded file size is 0 even if some parts of file is correctly
  1142. downloaded. This bug is reproducible for the download that a file
  1143. includes last piece is missing. This bug doesn't reveal for
  1144. single-torrent with file allocation on.
  1145. * src/IteratableChecksumValidator.cc
  1146. * test/IteratableChecksumValidatorTest.cc
  1147. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1149. * src/RequestGroupMan.cc
  1150. * src/AdaptiveURISelector.cc
  1151. * src/AdaptiveURISelector.h
  1152. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. * Release 1.3.2
  1154. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Updated README
  1156. * README
  1157. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Updated Ukrainian translations. Thanks to Alexander10.
  1159. * po/uk.po
  1160. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Code cleanup
  1162. * src/MetalinkParserStateMachine.cc
  1163. * src/MetalinkParserStateMachine.h
  1164. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1166. and expat simultaneously, MetalinkProcessor is now not base class
  1167. and it is directly implemented in XML2SAXMetalinkProcessor and
  1168. ExpatMetalinkProcessor.
  1169. * src/ExpatMetalinkProcessor.cc
  1170. * src/ExpatMetalinkProcessor.h
  1171. * src/Makefile.am
  1172. * src/MetalinkHelper.cc
  1173. * src/MetalinkProcessor.h
  1174. * src/MetalinkProcessorFactory.cc: Removed.
  1175. * src/MetalinkProcessorFactory.h: Removed
  1176. * src/XML2SAXMetalinkProcessor.cc
  1177. * src/XML2SAXMetalinkProcessor.h
  1178. * test/MetalinkProcessorTest.cc
  1179. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Bump up version number to 1.3.2
  1181. * configure.ac
  1182. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Added missing file.
  1184. * test/Makefile.am
  1185. * test/url-list-singleFileEndsWithSlash.torrent
  1186. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1188. request.
  1189. * src/AnnounceList.cc
  1190. * src/AnnounceList.h
  1191. * src/BDE.cc: Added
  1192. * src/BDE.h: Added
  1193. * src/DHTAbstractMessage.cc
  1194. * src/DHTAbstractMessage.h
  1195. * src/DHTAnnouncePeerMessage.cc
  1196. * src/DHTAnnouncePeerMessage.h
  1197. * src/DHTAnnouncePeerReplyMessage.cc
  1198. * src/DHTAnnouncePeerReplyMessage.h
  1199. * src/DHTFindNodeMessage.cc
  1200. * src/DHTFindNodeMessage.h
  1201. * src/DHTFindNodeReplyMessage.cc
  1202. * src/DHTFindNodeReplyMessage.h
  1203. * src/DHTGetPeersMessage.cc
  1204. * src/DHTGetPeersMessage.h
  1205. * src/DHTGetPeersReplyMessage.cc
  1206. * src/DHTGetPeersReplyMessage.h
  1207. * src/DHTMessageFactory.h
  1208. * src/DHTMessageFactoryImpl.cc
  1209. * src/DHTMessageFactoryImpl.h
  1210. * src/DHTMessageReceiver.cc
  1211. * src/DHTMessageTracker.cc
  1212. * src/DHTMessageTracker.h
  1213. * src/DHTPingMessage.cc
  1214. * src/DHTPingMessage.h
  1215. * src/DHTPingReplyMessage.cc
  1216. * src/DHTPingReplyMessage.h
  1217. * src/DHTQueryMessage.cc
  1218. * src/DHTQueryMessage.h
  1219. * src/DHTResponseMessage.cc
  1220. * src/DHTResponseMessage.h
  1221. * src/DefaultBtAnnounce.cc
  1222. * src/DefaultBtContext.cc
  1223. * src/DefaultBtContext.h
  1224. * src/HandshakeExtensionMessage.cc
  1225. * src/Makefile.am
  1226. * src/PeerListProcessor.h
  1227. * src/UTPexExtensionMessage.cc
  1228. * src/bencode.cc
  1229. * src/bencode.h
  1230. * test/AnnounceListTest.cc
  1231. * test/BDETest.cc: Added
  1232. * test/BencodeTest.cc
  1233. * test/DHTAnnouncePeerMessageTest.cc
  1234. * test/DHTAnnouncePeerReplyMessageTest.cc
  1235. * test/DHTFindNodeMessageTest.cc
  1236. * test/DHTFindNodeReplyMessageTest.cc
  1237. * test/DHTGetPeersMessageTest.cc
  1238. * test/DHTGetPeersReplyMessageTest.cc
  1239. * test/DHTMessageFactoryImplTest.cc
  1240. * test/DHTMessageTrackerTest.cc
  1241. * test/DHTPingMessageTest.cc
  1242. * test/DHTPingReplyMessageTest.cc
  1243. * test/Makefile.am
  1244. * test/MockDHTMessageFactory.h
  1245. * test/PeerListProcessorTest.cc
  1246. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Use url-list (web-seeding) only for single-file torrent. This is
  1248. basically the same behavior with Metalink file with torrent and
  1249. URIs.
  1250. * src/RequestGroup.cc
  1251. * src/DefaultBtContext.cc
  1252. * test/DefaultBtContextTest.cc
  1253. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Rewritten expr
  1255. * src/array_fun.h
  1256. * test/array_funTest.cc
  1257. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1259. * src/DefaultBtMessageDispatcher.cc
  1260. * src/a2algo.h
  1261. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Removed ExtendedMessagingAware. Instead of using inheritance,
  1263. added ExtensionMessageRegistry and it is passed to
  1264. DefaultExtensionMessageFactory.
  1265. * src/DefaultBtInteractive.cc
  1266. * src/DefaultBtInteractive.h
  1267. * src/DefaultExtensionMessageFactory.cc
  1268. * src/DefaultExtensionMessageFactory.h
  1269. * src/ExtendedMessagingAware.h: Removed.
  1270. * src/ExtensionMessageFactory.h
  1271. * src/ExtensionMessageRegistry.h: Added.
  1272. * src/Makefile.am
  1273. * src/PeerInteractionCommand.cc
  1274. * test/DefaultExtensionMessageFactoryTest.cc
  1275. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Fixed typo in log messages
  1277. * src/MSEHandshake.cc
  1278. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Fixed the bug that prevents torrent download from finishing. The
  1280. bug doesn't reveal for all torrents. The torrents affected this
  1281. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1282. of pieces.
  1283. * src/bitfield.h
  1284. * test/bitfieldTest.cc
  1285. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Code cleanup
  1287. * src/PeerListProcessor.h
  1288. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Removed RequestGroupAware
  1290. * src/AbstractCommand.cc
  1291. * src/AbstractCommand.h
  1292. * src/ActivePeerConnectionCommand.cc
  1293. * src/ActivePeerConnectionCommand.h
  1294. * src/DHTGetPeersCommand.cc
  1295. * src/DHTGetPeersCommand.h
  1296. * src/InitiatorMSEHandshakeCommand.cc
  1297. * src/InitiatorMSEHandshakeCommand.h
  1298. * src/Makefile.am
  1299. * src/PeerInitiateConnectionCommand.cc
  1300. * src/PeerInitiateConnectionCommand.h
  1301. * src/PeerInteractionCommand.cc
  1302. * src/PeerInteractionCommand.h
  1303. * src/RealtimeCommand.cc
  1304. * src/RealtimeCommand.h
  1305. * src/RequestGroupAware.cc: Removed
  1306. * src/RequestGroupAware.h: Removed
  1307. * src/SeedCheckCommand.cc
  1308. * src/SeedCheckCommand.h
  1309. * src/SleepCommand.cc
  1310. * src/TrackerWatcherCommand.cc
  1311. * src/TrackerWatcherCommand.h
  1312. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Rewritten PeerListProcessor
  1314. * src/PeerListProcessor.h
  1315. * src/CompactPeerListProcessor.h: Removed
  1316. * src/CompactPeerListProcessor.cc: Removed
  1317. * src/DelegatingPeerListProcessor.cc: Removed.
  1318. * src/DefaultBtAnnounce.cc
  1319. * src/Makefile.am
  1320. * src/UTPexExtensionMessage.cc
  1321. * src/DefaultPeerListProcessor.h: Removed.
  1322. * src/DefaultPeerListProcessor.cc: Removed.
  1323. * src/DelegatingPeerListProcessor.h: Removed.
  1324. * test/Makefile.am
  1325. * test/PeerListProcessorTest.cc
  1326. * test/DefaultPeerListProcessorTest.cc: Removed.
  1327. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Rewritten RequestGroupMan::calculateStat()
  1329. * src/RequestGroupMan.cc
  1330. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Removed unnecessary virtual destructor for Request class.
  1332. * src/Request.cc
  1333. * src/Request.h
  1334. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Avoid dynamic_pointer_cast.
  1336. * src/DHTGetPeersCommand.cc
  1337. * src/DHTGetPeersCommand.h
  1338. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1340. BtEvent.
  1341. * src/AbstractBtEventListener.h: Removed.
  1342. * src/AbstractBtMessage.cc
  1343. * src/AbstractBtMessage.h
  1344. * src/BtAbortOutstandingRequestEvent.h
  1345. * src/BtCancelSendingPieceEvent.h
  1346. * src/BtChokedEvent.h: Removed.
  1347. * src/BtChokingEvent.h
  1348. * src/BtEvent.h: Removed
  1349. * src/BtEventListener.h: Removed.
  1350. * src/BtMessage.h
  1351. * src/BtPieceMessage.cc
  1352. * src/BtPieceMessage.h
  1353. * src/BtRequestMessage.cc
  1354. * src/BtRequestMessage.h
  1355. * src/DefaultBtMessageDispatcher.cc
  1356. * src/Makefile.am
  1357. * src/a2functional.h
  1358. * test/BtPieceMessageTest.cc
  1359. * test/BtRequestMessageTest.cc
  1360. * test/DefaultBtMessageDispatcherTest.cc
  1361. * test/MockBtMessage.h
  1362. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Code cleanup
  1364. * src/RequestGroupMan.cc
  1365. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Code cleanup
  1367. * src/DownloadCommand.cc
  1368. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1370. byte.
  1371. * src/DownloadCommand.cc
  1372. * src/bitfield.h
  1373. * test/bitfieldTest.cc
  1374. Fixed the bug that causes infinite loop if broken web server
  1375. returns chunked response without last "0" chunk-size marker and
  1376. closes connection.
  1377. * src/DownloadCommand.cc
  1378. Instantiate properly configured HttpDownloadCommand for
  1379. non-resumable downlaods.
  1380. * src/HttpResponseCommand.cc
  1381. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Rewritten array operation functions.
  1383. * src/BitfieldMan.cc
  1384. * src/array_fun.h
  1385. * test/array_funTest.cc
  1386. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Removed unused variable 'query'
  1388. * src/Request.cc
  1389. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1391. accidentally set to false in r1162.
  1392. * configure.ac
  1393. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Code cleanup
  1395. * src/BNode.cc
  1396. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Increase prefixLength for the bucket which doesn't own local node
  1398. ID when splitting bucket.
  1399. * src/DHTBucket.cc
  1400. * test/DHTBucketTest.cc
  1401. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. * Release 1.3.1
  1403. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Bump up version number to 1.3.1
  1405. * configure.ac
  1406. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Removed unused variable checkPoint. Also removed include directive
  1408. for TimeA2.h.
  1409. * src/SeedCheckCommand.h
  1410. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Fixed the bug that upload limit exceeds the value specified in
  1412. --seed-ratio option depending on the timing of the execution of
  1413. SeedCheckCommand.
  1414. * src/SeedCheckCommand.cc
  1415. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Fixed the bug that removed peer's session upload/download length
  1417. are counted twice in _cachedTransferStat before it is
  1418. re-calculated. This affected the calculation of shara ratio,
  1419. resulting aria2 wrongly determines that specified share ratio is
  1420. reached. Also fixed the typo in calculateStatFor function name.
  1421. * src/BtSetup.cc
  1422. * src/DefaultPeerStorage.cc
  1423. * src/ShareRatioSeedCriteria.h
  1424. * test/ShareRatioSeedCriteriaTest.cc
  1425. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. * Release 1.3.0
  1427. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1429. Nynorsk translations. Thanks to all translators.
  1430. * po/es.po
  1431. * po/ja.po
  1432. * po/nn.po
  1433. * po/ru.po
  1434. * po/uk.po
  1435. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Rewritten isInRange()
  1437. * src/DHTBucket.cc
  1438. * test/DHTBucketTest.cc
  1439. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Fixed typo
  1441. * doc/aria2c.1.txt
  1442. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1444. malloc/realloc is not used.
  1445. * src/configure.ac
  1446. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1448. char* bitfield instead of stl container for efficiency.
  1449. PieceSelector::select now takes this
  1450. bitfield. RarestPieceSelector::select now also performs
  1451. efficiently for this change. bitfield namespace is introduced and
  1452. it has several helper functions to handle basic bitfield
  1453. operations such as test, count set bits, etc.
  1454. * src/BitfieldMan.cc
  1455. * src/BitfieldMan.h
  1456. * src/DefaultBtRequestFactory.cc
  1457. * src/DefaultPieceStorage.cc
  1458. * src/DefaultPieceStorage.h
  1459. * src/LongestSequencePieceSelector.cc
  1460. * src/LongestSequencePieceSelector.h
  1461. * src/Makefile.am
  1462. * src/Piece.cc
  1463. * src/Piece.h
  1464. * src/PieceSelector.h
  1465. * src/RarestPieceSelector.cc
  1466. * src/RarestPieceSelector.h
  1467. * src/Util.cc
  1468. * src/Util.h
  1469. * src/bitfield.h
  1470. * test/BitfieldManTest.cc
  1471. * test/LongestSequencePieceSelectorTest.cc
  1472. * test/Makefile.am
  1473. * test/RarestPieceSelectorTest.cc
  1474. * test/UtilTest.cc
  1475. * test/bitfieldTest.cc
  1476. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Made accepted socket non-block.
  1478. * src/FtpNegotiationCommand.cc
  1479. * src/HttpListenCommand.cc
  1480. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1482. * src/AbstractSingleDiskAdaptor.cc
  1483. * src/DefaultPieceStorage.cc
  1484. * src/DiskAdaptor.h
  1485. * src/DiskAdaptor.h
  1486. * src/MultiFileAllocationIterator.cc
  1487. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Run
  1489. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1490. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1491. it doesn't need to be called every time when
  1492. DefaultBtInteractive::doInteractionProcessing() is called.
  1493. * src/DefaultBtInteractive.cc
  1494. * src/DefaultBtInteractive.h
  1495. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Documented 'falloc' in man page.
  1497. * doc/aria2c.1.txt
  1498. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Updated doc
  1500. * src/usage_text.h
  1501. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1503. allocation mode uses posix_fallocate() system call to allocate
  1504. file on disk. If you are using newer file systems such as ext4
  1505. (with extents support), btrfs or xfs, 'falloc' is your best
  1506. choice. It allocates large(few GiB) files almost instantly. Don't
  1507. use 'falloc' with legacy file systems such as ext3 because it
  1508. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1509. until allocation finishes. 'falloc' may not be available if your
  1510. system doesn't have posix_fallocate() system call.
  1511. * configure.ac
  1512. * src/AbstractDiskWriter.cc
  1513. * src/AbstractDiskWriter.h
  1514. * src/AbstractSingleDiskAdaptor.cc
  1515. * src/BinaryStream.h
  1516. * src/BtCheckIntegrityEntry.cc
  1517. * src/ByteArrayDiskWriter.h
  1518. * src/CheckIntegrityEntry.cc
  1519. * src/CheckIntegrityEntry.h
  1520. * src/DefaultPieceStorage.cc
  1521. * src/DiskAdaptor.cc
  1522. * src/DiskAdaptor.h
  1523. * src/DiskWriter.h
  1524. * src/FallocFileAllocationIterator.cc
  1525. * src/FallocFileAllocationIterator.h
  1526. * src/FileAllocationEntry.cc
  1527. * src/FileAllocationEntry.h
  1528. * src/Makefile.am
  1529. * src/MultiFileAllocationIterator.cc
  1530. * src/MultiFileAllocationIterator.h
  1531. * src/OptionHandlerFactory.cc
  1532. * src/RequestGroup.cc
  1533. * src/StreamCheckIntegrityEntry.cc
  1534. * src/prefs.cc
  1535. * src/prefs.h
  1536. * src/usage_text.h
  1537. * test/FallocFileAllocationIteratorTest.cc
  1538. * test/Makefile.am
  1539. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Removed duplicate enableDirectIO() call.
  1541. * src/MultiFileAllocationIterator.cc
  1542. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1544. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1545. cost of std::rotate().
  1546. * src/RarestPieceSelector.cc
  1547. * src/RarestPieceSelector.h
  1548. * test/RarestPieceSelectorTest.cc
  1549. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Updated usage doc for --bt-tracker-interval option.
  1551. * src/usage_text.h
  1552. * doc/aria2c.1.txt
  1553. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Documented --bt-tracker-interval option in man page.
  1555. * doc/aria2c.1.txt
  1556. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added an option to specify the interval between tracker requests.
  1558. If non-zero value is specified, aria2 uses it and ignores the
  1559. interval value in the response of tracker. If zero is specified,
  1560. aria2 determines the inteval value based on the tarcker response
  1561. and download progress.
  1562. * src/DefaultBtAnnounce.cc
  1563. * src/DefaultBtAnnounce.h
  1564. * src/OptionHandlerFactory.cc
  1565. * src/RequestGroup.cc
  1566. * src/prefs.cc
  1567. * src/prefs.h
  1568. * src/usage_text.h
  1569. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Added operator+=, operator-=, operator-
  1571. * src/TransferStat.cc
  1572. * src/TransferStat.h
  1573. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Refactored RarestPieceSelector to reduce CPU load, especially for
  1575. addPieceStats.
  1576. * src/RarestPieceSelector.cc
  1577. * src/RarestPieceSelector.h
  1578. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1580. getAllMissingBlockIndexes to reduce a call to
  1581. array_function_base::operator[].
  1582. * src/BitfieldMan.cc
  1583. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Cached TransferStat/download speed to avoid to sum them up in each
  1585. call.
  1586. * src/DefaultPeerStorage.cc
  1587. * src/DefaultPeerStorage.h
  1588. * src/SegmentMan.cc
  1589. * src/SegmentMan.h
  1590. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Typedefed cuid_t as int32_t in Command.h
  1592. * src/CUIDCounter.h
  1593. * src/Command.cc
  1594. * src/Command.h
  1595. * src/DownloadEngine.cc
  1596. * src/DownloadEngine.h
  1597. * src/PeerStat.h
  1598. * src/SegmentMan.cc
  1599. * src/SegmentMan.h
  1600. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1601. Reduced the number of calls to PeerStorage::calculateStat() and
  1602. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1603. transfer rate.
  1604. * src/DefaultBtInteractive.cc
  1605. * src/DefaultBtMessageDispatcher.cc
  1606. * src/DefaultPeerStorage.cc
  1607. * src/DefaultPeerStorage.h
  1608. * src/DownloadCommand.cc
  1609. * src/DownloadEngine.cc
  1610. * src/PeerStorage.h
  1611. * src/SegmentMan.cc
  1612. * src/SegmentMan.h
  1613. * test/MockPeerStorage.h
  1614. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Prepended _dir+"/" after joining path elements in torrent file.
  1616. * src/DefaultBtContext.cc
  1617. * test/DefaultBtContextTest.cc
  1618. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Added missing IndexBtMessageValidator.h
  1620. * src/Makefile.am
  1621. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1623. Chinese translations. Thank you for contributing our project.
  1624. * po/id.po
  1625. * po/it.po
  1626. * po/ru.po
  1627. * po/uk.po
  1628. * po/zh_CN.po
  1629. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Updated README
  1631. * README
  1632. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Bump up version number to 1.3.0
  1634. * configure.ac
  1635. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Updated doc
  1637. * src/DefaultBtContext.h
  1638. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Slice/joinPath for name of single torrent.
  1640. * src/DefaultBtContext.cc
  1641. * test/DefaultBtContextTest.cc
  1642. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Updated man page: Documented --dry-run and --index-out
  1644. options. Changed the default value of --uri-selector and
  1645. --http-auth-challenge options. Removed --direct-file-mapping
  1646. option. Added example for --index-out
  1647. * doc/aria2c.1.txt
  1648. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Updated TEXT_DRY_RUN
  1650. * src/usage_text.h
  1651. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Changed the default value of --uri-selector option from 'inorder'
  1653. to 'feedback'
  1654. * src/OptionHandlerFactory.cc
  1655. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Included current URI in exception message.
  1657. * src/AbstractCommand.cc
  1658. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Renamed ServerStatURISelector as FeedbackURISelector.
  1660. * src/FeedbackURISelector.cc
  1661. * src/FeedbackURISelector.h
  1662. * src/Makefile.am
  1663. * src/RequestGroupMan.cc
  1664. * src/ServerStatURISelector.cc
  1665. * src/ServerStatURISelector.h
  1666. * test/FeedbackURISelectorTest.cc
  1667. * test/Makefile.am
  1668. * test/ServerStatURISelectorTest.cc
  1669. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1671. all URIs are tested and their timeout is not reached.
  1672. * src/AdaptiveURISelector.cc
  1673. * src/AdaptiveURISelector.h
  1674. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Changed the default value of --http-auth-challenge option to false.
  1676. * src/OptionHandlerFactory.cc
  1677. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Reuse URIs when all unused URIs run out.
  1679. * src/OptionHandlerFactory.cc
  1680. * src/RequestGroup.cc
  1681. * src/prefs.cc
  1682. * src/prefs.h
  1683. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1685. and BtRejectMessage are derived from RangeBtMessage class.
  1686. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1687. derived from IndexBtMessage class. BtChokeMessage,
  1688. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1689. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1690. ZeroBtMessage class.
  1691. * src/AbstractBtMessage.cc
  1692. * src/AbstractBtMessage.h
  1693. * src/BtAllowedFastMessage.cc
  1694. * src/BtAllowedFastMessage.h
  1695. * src/BtAllowedFastMessageValidator.h: Removed
  1696. * src/BtBitfieldMessage.cc
  1697. * src/BtBitfieldMessage.h
  1698. * src/BtCancelMessage.cc
  1699. * src/BtCancelMessage.h
  1700. * src/BtCancelMessageValidator.h: Removed
  1701. * src/BtChokeMessage.cc
  1702. * src/BtChokeMessage.h
  1703. * src/BtExtendedMessage.cc
  1704. * src/BtExtendedMessage.h
  1705. * src/BtHandshakeMessage.cc
  1706. * src/BtHandshakeMessage.h
  1707. * src/BtHaveAllMessage.cc
  1708. * src/BtHaveAllMessage.h
  1709. * src/BtHaveMessage.cc
  1710. * src/BtHaveMessage.h
  1711. * src/BtHaveMessageValidator.h: Removed
  1712. * src/BtHaveNoneMessage.cc
  1713. * src/BtHaveNoneMessage.h
  1714. * src/BtInterestedMessage.cc
  1715. * src/BtInterestedMessage.h
  1716. * src/BtKeepAliveMessage.cc
  1717. * src/BtKeepAliveMessage.h
  1718. * src/BtNotInterestedMessage.cc
  1719. * src/BtNotInterestedMessage.h
  1720. * src/BtPieceMessage.cc
  1721. * src/BtPieceMessage.h
  1722. * src/BtPortMessage.cc
  1723. * src/BtPortMessage.h
  1724. * src/BtRejectMessage.cc
  1725. * src/BtRejectMessage.h
  1726. * src/BtRejectMessageValidator.h: Removed
  1727. * src/BtRequestMessage.cc
  1728. * src/BtRequestMessage.h
  1729. * src/BtRequestMessageValidator.h: Removed
  1730. * src/BtSuggestPieceMessage.cc
  1731. * src/BtSuggestPieceMessage.h
  1732. * src/BtSuggestPieceMessageValidator.h: Removed
  1733. * src/BtUnchokeMessage.cc
  1734. * src/BtUnchokeMessage.h
  1735. * src/DefaultBtMessageFactory.cc
  1736. * src/IndexBtMessage.cc
  1737. * src/IndexBtMessage.h
  1738. * src/IndexBtMessageValidator.h
  1739. * src/Makefile.am
  1740. * src/PeerMessageUtil.cc
  1741. * src/PeerMessageUtil.h
  1742. * src/RangeBtMessage.cc
  1743. * src/RangeBtMessage.h
  1744. * src/RangeBtMessageValidator.h
  1745. * src/SimpleBtMessage.cc
  1746. * src/SimpleBtMessage.h
  1747. * src/ZeroBtMessage.cc
  1748. * src/ZeroBtMessage.h
  1749. * test/BtRequestMessageTest.cc
  1750. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Reverted usage_text.h to r1093 to avoid to lose translated
  1752. messages.
  1753. * src/usage_text.h
  1754. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1756. declared as non-const previously is now const and defined in class
  1757. definition.
  1758. * src/AbstractBtMessage.cc
  1759. * src/AbstractBtMessage.h
  1760. * src/BtAllowedFastMessage.cc
  1761. * src/BtAllowedFastMessage.h
  1762. * src/BtBitfieldMessage.h
  1763. * src/BtCancelMessage.cc
  1764. * src/BtCancelMessage.h
  1765. * src/BtChokeMessage.cc
  1766. * src/BtChokeMessage.h
  1767. * src/BtExtendedMessage.cc
  1768. * src/BtExtendedMessage.h
  1769. * src/BtHandshakeMessage.cc
  1770. * src/BtHandshakeMessage.h
  1771. * src/BtHaveAllMessage.cc
  1772. * src/BtHaveAllMessage.h
  1773. * src/BtHaveMessage.cc
  1774. * src/BtHaveMessage.h
  1775. * src/BtHaveNoneMessage.cc
  1776. * src/BtHaveNoneMessage.h
  1777. * src/BtInterestedMessage.cc
  1778. * src/BtInterestedMessage.h
  1779. * src/BtKeepAliveMessage.cc
  1780. * src/BtKeepAliveMessage.h
  1781. * src/BtMessage.h
  1782. * src/BtNotInterestedMessage.cc
  1783. * src/BtNotInterestedMessage.h
  1784. * src/BtPieceMessage.h
  1785. * src/BtPortMessage.cc
  1786. * src/BtPortMessage.h
  1787. * src/BtRejectMessage.cc
  1788. * src/BtRejectMessage.h
  1789. * src/BtRequestMessage.cc
  1790. * src/BtRequestMessage.h
  1791. * src/BtSuggestPieceMessage.cc
  1792. * src/BtSuggestPieceMessage.h
  1793. * src/BtUnchokeMessage.cc
  1794. * src/BtUnchokeMessage.h
  1795. * src/SimpleBtMessage.cc
  1796. * src/SimpleBtMessage.h
  1797. * test/MockBtMessage.h
  1798. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Use FileEntry::exists()
  1800. * src/MultiDiskAdaptor.cc
  1801. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Added exists()
  1803. * src/FileEntry.cc
  1804. * src/FileEntry.h
  1805. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Added missing prefix dir.
  1807. * src/download_helper.cc
  1808. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1810. * src/CopyDiskAdaptor.cc: Removed
  1811. * src/CopyDiskAdaptor.h: Removed
  1812. * src/DefaultPieceStorage.cc
  1813. * src/Makefile.am
  1814. * src/OptionHandlerFactory.cc
  1815. * src/prefs.cc
  1816. * src/prefs.h
  1817. * src/usage_text.h
  1818. * test/CopyDiskAdaptorTest.cc: Removed
  1819. * test/Makefile.am
  1820. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Rewritten isSameFileBeingDownloaded()
  1822. * src/RequestGroupMan.cc
  1823. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Removed getName() from DownloadContext. getName() is declared in
  1825. BtContext.
  1826. * src/BtContext.h
  1827. * src/DownloadContext.h
  1828. * src/SingleFileDownloadContext.cc
  1829. * src/SingleFileDownloadContext.h
  1830. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1831. in AbstractSingleDiskAdaptor.
  1832. * src/AbstractSingleDiskAdaptor.h
  1833. * src/DiskAdaptor.h
  1834. * src/MultiDiskAdaptor.h
  1835. * src/RequestGroup.cc
  1836. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1837. MultiDiskAdaptor.
  1838. * src/DefaultPieceStorage.cc
  1839. * src/MultiDiskAdaptor.cc
  1840. * src/MultiDiskAdaptor.h
  1841. * test/MultiDiskAdaptorTest.cc
  1842. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. FileEntry::getPath() contains store(top level) directory to
  1844. simplify path handling operation. In the previous implementation,
  1845. store directory is concatenated to FileEntry::getPath() in
  1846. DownloadContext.
  1847. * src/BtDependency.cc
  1848. * src/BtPostDownloadHandler.cc
  1849. * src/CopyDiskAdaptor.cc
  1850. * src/DefaultBtContext.cc
  1851. * src/DirectDiskAdaptor.cc
  1852. * src/FileEntry.cc
  1853. * src/FileEntry.h
  1854. * src/FtpNegotiationCommand.cc
  1855. * src/HttpResponse.cc
  1856. * src/HttpResponseCommand.cc
  1857. * src/Metalink2RequestGroup.cc
  1858. * src/MultiDiskAdaptor.cc
  1859. * src/MultiDiskAdaptor.h
  1860. * src/MultiFileAllocationIterator.cc
  1861. * src/RequestGroup.cc
  1862. * src/SingleFileDownloadContext.cc
  1863. * src/SingleFileDownloadContext.h
  1864. * src/download_helper.cc
  1865. * test/BtDependencyTest.cc
  1866. * test/CopyDiskAdaptorTest.cc
  1867. * test/DefaultBtContextTest.cc
  1868. * test/DefaultBtProgressInfoFileTest.cc
  1869. * test/DirectDiskAdaptorTest.cc
  1870. * test/DownloadHelperTest.cc
  1871. * test/FileEntryTest.cc
  1872. * test/MultiDiskAdaptorTest.cc
  1873. * test/MultiFileAllocationIteratorTest.cc
  1874. * test/RequestGroupTest.cc
  1875. * test/SingleFileDownloadContextTest.cc
  1876. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Fixed compiler warning
  1878. * src/download_helper.cc
  1879. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Throw exception if same infohash torrent is now downloading.
  1881. * src/RequestGroup.cc
  1882. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Added --dry-run option. In this mode, aria2 just checks whether
  1884. the remote file is available and doesn't download data. This
  1885. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1886. are canceled in this mode.
  1887. * src/FtpNegotiationCommand.cc
  1888. * src/HttpResponseCommand.cc
  1889. * src/HttpResponseCommand.h
  1890. * src/OptionHandlerFactory.cc
  1891. * src/RequestGroup.cc
  1892. * src/RequestGroupMan.cc
  1893. * src/prefs.cc
  1894. * src/prefs.h
  1895. * src/usage_text.h
  1896. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Fixed compiler waring
  1898. * test/UriListParserTest.cc
  1899. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Parse options in -i list using OptionParser.
  1901. * src/UriListParser.cc
  1902. * src/UriListParser.h
  1903. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Don't reset URI in retry to avoid additional round trips because
  1905. of redirects.
  1906. * src/AbstractCommand.cc
  1907. * src/OptionHandlerFactory.cc
  1908. * src/prefs.cc
  1909. * src/prefs.h
  1910. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Declared hide() in OptionHandler.
  1912. * src/NameMatchOptionHandler.h
  1913. * src/OptionHandler.h
  1914. * src/OptionHandlerImpl.h
  1915. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Updated doc
  1917. * src/Peer.h
  1918. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Added log message in setStatusInternal()
  1920. * src/ServerStat.cc
  1921. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1923. effectively exclude failed server.
  1924. * src/AbstractCommand.cc
  1925. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Added --index-out option to specify each file path for torrent.
  1927. Here index shown in --show-files option is used to specify which
  1928. file path should be altered. For example, to change the file path
  1929. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1930. option multiple times: --index-out=1=aria2.tar.bz2
  1931. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1932. available. This option can be specified in -i list.
  1933. * src/DefaultBtContext.cc
  1934. * src/DefaultBtContext.h
  1935. * src/MultiDiskAdaptor.cc
  1936. * src/MultiDiskAdaptor.h
  1937. * src/MultiFileAllocationIterator.cc
  1938. * src/OptionHandlerFactory.cc
  1939. * src/OptionHandlerImpl.h
  1940. * src/Util.cc
  1941. * src/Util.h
  1942. * src/download_helper.cc
  1943. * src/prefs.cc
  1944. * src/prefs.h
  1945. * src/usage_text.h
  1946. * test/DefaultBtContextTest.cc
  1947. * test/MultiDiskAdaptorTest.cc
  1948. * test/MultiFileAllocationIteratorTest.cc
  1949. * test/UtilTest.cc
  1950. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Use Util::pathJoin()
  1952. * src/MetalinkParserController.cc
  1953. * test/test.xml
  1954. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Use Util::pathJoin()
  1956. * src/DefaultBtContext.cc
  1957. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Added Util::pathJoin()
  1959. * src/Util.h
  1960. * test/UtilTest.cc
  1961. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Applied basename function to remove directory element in
  1963. content-disposition value.
  1964. Return empty string if content-disposition value is ".." or ".".
  1965. * src/Util.cc
  1966. * test/UtilTest.cc
  1967. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Added --max-overall-download-limit in man page.
  1969. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1970. * doc/aria2c.1.txt
  1971. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Added --max-overall-download-limit option. Now --max-upload-limit
  1973. option is not ignored when --max-overall-upload-limit option has
  1974. non-zero value. aria2 checks download(upload) speed in the order:
  1975. first checks overall speed limit and if it is not exceeded, then
  1976. checks speed limit per download. Thus you can specify both
  1977. value. For example, set --max-overall-download-limit=1M and
  1978. --max-download-limit=500K to prevent from one download from eating
  1979. all overall speed limit.
  1980. * src/DefaultBtInteractive.cc
  1981. * src/DefaultBtInteractive.h
  1982. * src/DefaultBtMessageDispatcher.cc
  1983. * src/DefaultBtMessageDispatcher.h
  1984. * src/DownloadCommand.cc
  1985. * src/DownloadCommand.h
  1986. * src/FtpNegotiationCommand.cc
  1987. * src/HttpResponseCommand.cc
  1988. * src/OptionHandlerFactory.cc
  1989. * src/PeerInteractionCommand.cc
  1990. * src/RequestGroup.cc
  1991. * src/RequestGroup.h
  1992. * src/RequestGroupMan.cc
  1993. * src/RequestGroupMan.h
  1994. * src/prefs.cc
  1995. * src/prefs.h
  1996. * src/usage_text.h
  1997. * test/DefaultBtMessageDispatcherTest.cc
  1998. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Documented select-file option in Input File section.
  2000. Documented --http-auth-challenge option.
  2001. * doc/aria2c.1.txt
  2002. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Now select-file can be specified in the uri list(-i list).
  2004. * src/BtContext.cc
  2005. * src/BtContext.h
  2006. * src/RequestGroup.cc
  2007. * src/Sequence.h
  2008. * src/download_helper.cc
  2009. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Made the upper value of --max-concurrent-downloads options unlimited.
  2011. * src/OptionHandlerFactory.cc
  2012. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Fixed the bug that disk writer is not created even if it shares
  2014. same piece with the preceding file if the length of previous file
  2015. is 0.
  2016. * src/MultiDiskAdaptor.cc
  2017. * test/MultiDiskAdaptorTest.cc
  2018. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. In BitTorrent, Open files in read-only mode for hash check. After
  2020. that, re-open file in read/write mode only when the download is
  2021. not finished.
  2022. * src/AbstractDiskWriter.cc
  2023. * src/AbstractDiskWriter.h
  2024. * src/AbstractSingleDiskAdaptor.cc
  2025. * src/AbstractSingleDiskAdaptor.h
  2026. * src/BtCheckIntegrityEntry.cc
  2027. * src/DiskAdaptor.h
  2028. * src/DiskWriter.h
  2029. * src/MultiDiskAdaptor.cc
  2030. * src/MultiDiskAdaptor.h
  2031. * src/RequestGroup.cc
  2032. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Added --http-auth-challenge option. If it is set to true(by
  2034. default), aria2 sends HTTP authorization header only when it is
  2035. requested by the server. If false is set, then authorization
  2036. header is always sent to the server. This is useful for servers
  2037. that don't respond 401 code when authentication is required.
  2038. There is an exception: if username and password are embedded in
  2039. URI, authorization header is always sent to the server regardless
  2040. of this option.
  2041. * src/AuthConfigFactory.cc
  2042. * src/HttpSkipResponseCommand.cc
  2043. * src/OptionHandlerFactory.cc
  2044. * src/prefs.cc
  2045. * src/prefs.h
  2046. * src/usage_text.h
  2047. * test/AuthConfigFactoryTest.cc
  2048. * test/HttpRequestTest.cc
  2049. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. * Release 1.2.0
  2051. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2053. Thanks to all translators.
  2054. * po/es.po
  2055. * po/ja.po
  2056. * po/ru.po
  2057. * po/uk.po
  2058. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Call deleteSocketForReadCheck() before socket is closed.
  2060. * src/HttpListenCommand.cc
  2061. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Defined virtual destructor for BObject.
  2063. * src/bencode.h
  2064. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Rewritten BDE to make it efficient.
  2066. * src/bencode.cc
  2067. * src/bencode.h
  2068. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Removed function throw list.
  2070. * src/bencode.cc
  2071. * src/bencode.h
  2072. * test/BencodeTest.cc
  2073. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Enclosed all URLs in double quotes in command-line examples.
  2075. * doc/aria2c.1.txt
  2076. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Updated reference/see also section.
  2078. * README
  2079. * doc/aria2c.1.txt
  2080. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Reorganized man page based on man man-pages.
  2082. * doc/aria2c.1.txt
  2083. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2085. because same documents are available in man page. Added
  2086. References section.
  2087. * README
  2088. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2090. PERFORMANCE PROFILE section.
  2091. * doc/aria2c.1.txt
  2092. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Rewritten the section for configuration file.
  2094. * README
  2095. * doc/aria2c.1.txt
  2096. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Fixed the segmentation fault during execution of choking algorithm
  2098. in leecher state because of broken compare operator
  2099. implementation.
  2100. * src/BtLeecherStateChoke.cc
  2101. * src/BtLeecherStateChoke.h
  2102. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Open file in binary mode.
  2104. * src/CookieStorage.cc
  2105. * src/DHTSetup.cc
  2106. * src/DHTUtil.cc
  2107. * src/Netrc.cc
  2108. * src/NsCookieParser.cc
  2109. * src/ProtocolDetector.cc
  2110. * src/RequestGroupMan.cc
  2111. * src/Signature.cc
  2112. * src/bencode.cc
  2113. * src/download_helper.cc
  2114. * src/option_processing.cc
  2115. * test/CookieParserTest.cc
  2116. * test/DefaultBtProgressInfoFileTest.cc
  2117. * test/FileTest.cc
  2118. * test/GZipDecoderTest.cc
  2119. * test/RequestGroupManTest.cc
  2120. * test/SignatureTest.cc
  2121. * test/SingleFileAllocationIteratorTest.cc
  2122. * test/UriListParserTest.cc
  2123. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Removed operator[] because it is ambiguous with built-in []
  2125. operator.
  2126. * src/array_fun.h
  2127. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Fixed compile error
  2129. * src/OptionParser.cc
  2130. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Added missing call to arrayWrapperConst
  2132. * test/array_funTest.cc
  2133. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Use array_wrapper instead of array_ptr.
  2135. * src/DHTRoutingTableDeserializer.cc
  2136. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2138. * src/array_fun.h
  2139. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Added array_wrapper template.
  2141. * src/array_fun.h
  2142. * test/array_funTest.cc
  2143. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Use operator T* of array_ptr.
  2145. * src/OptionParser.cc
  2146. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Use localhost instead of 127.0.0.1
  2148. * test/FtpConnectionTest.cc
  2149. * test/MSEHandshakeTest.cc
  2150. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Added operator T*
  2152. * src/array_fun.h
  2153. * test/array_funTest.cc
  2154. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Use dynamically allocated char array to detect memory access
  2156. violation.
  2157. * src/DHTRoutingTableDeserializer.cc
  2158. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2160. defined.
  2161. * src/PeerMessageUtil.cc
  2162. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2164. * configure.ac
  2165. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Added a check to see struct sockaddr_in has sin_len member.
  2167. * configure.ac
  2168. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Fixed buffer overrun.
  2170. * src/DHTRoutingTableDeserializer.cc
  2171. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Added LL for long long int constant.
  2173. * test/FtpConnectionTest.cc
  2174. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Casted to unsigned int to suppress compiler warning on netbsd.
  2176. * src/BtRuntime.h
  2177. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2179. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2180. type time_t.
  2181. * src/SimpleLogger.cc
  2182. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Added test for FtpConnection::receiveSizeResponse().
  2184. * test/FtpConnectionTest.cc
  2185. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Fix epoll error on the old kernel 2.6.8 or ealier.
  2187. * src/EpollEventPoll.cc
  2188. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Use Util::parseLLInt instead of sscanf for portability. The
  2190. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2191. * src/FtpConnection.cc
  2192. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2194. block. It should not filter anything.
  2195. * src/BitfieldMan.cc
  2196. * src/ConsoleStatCalc.cc
  2197. * test/BitfieldManTest.cc
  2198. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Fixed the bug that the boolean options that don't take arguments
  2200. don't work.
  2201. * src/OptionHandlerImpl.h
  2202. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Fixed broken selected file BitTorrent download.
  2204. * src/MultiDiskAdaptor.cc
  2205. * test/MultiDiskAdaptorTest.cc
  2206. * test/MultiFileAllocationIteratorTest.cc
  2207. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Fixed #define guard for EpollEventPoll
  2209. * src/EpollEventPoll.h
  2210. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Wait 2 seconds. 1 second is sometimes not enough.
  2212. * test/TimeSeedCriteriaTest.cc
  2213. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Use localhost instead of 127.0.0.1.
  2215. * test/DHTConnectionImplTest.cc
  2216. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. Suppressed compiler warning.
  2218. * src/AdaptiveURISelector.cc
  2219. * src/DefaultPieceStorage.cc
  2220. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Defined virtual destructor.
  2222. * src/MetalinkParserState.h
  2223. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Give NULL for second argument of getaddrinfo instead of "0".
  2225. * src/NameResolver.cc
  2226. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2228. included strptime doesn't parse data for this format.
  2229. * src/FtpConnection.cc
  2230. * test/FtpConnectionTest.cc
  2231. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2232. Removed tests giving -1 for unsigned argument.
  2233. * test/SingleFileDownloadContextTest.cc
  2234. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Don't use sha256 in tests because it might not be supported by the
  2236. SSL library.
  2237. * test/MetalinkProcessorTest.cc
  2238. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Removed tests giving -1 for unsigned argument.
  2240. * test/AlphaNumberDecoratorTest
  2241. * test/BitfieldManTest.cc
  2242. * test/DefaultBtContextTest.cc
  2243. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Fixed compile error without libcares when epoll is available.
  2245. * src/EpollEventPoll.cc
  2246. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Included fstream instead of iostream.
  2248. * test/SignatureTest.cc
  2249. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Removed #include <algorithm>
  2251. * test/RequestGroupTest.cc
  2252. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2254. using RequestGroup::extractURIResult().
  2255. * src/AdaptiveURISelector.cc
  2256. * src/RequestGroup.cc
  2257. * src/RequestGroup.h
  2258. * test/RequestGroupTest.cc
  2259. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Added tests for array_ptr.
  2261. * test/array_funTest.cc
  2262. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Don't send ip parameter to a tracker if ip parameter is empty
  2264. string.
  2265. * src/DefaultBtAnnounce.cc
  2266. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Adjusted line feed.
  2268. * src/version_usage.cc
  2269. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Print tags, possible values when OptionHandlerException is caught.
  2271. * src/option_processing.cc
  2272. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Changed the message for FatalException.
  2274. * src/OptionParser.cc
  2275. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Documented --bt-external-ip option in man page. Updated man pages
  2277. for --proxy-method option.
  2278. * doc/aria2c.1.txt
  2279. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Use GET method for FTP via HTTP proxy.
  2281. * src/FtpInitiateConnectionCommand.cc
  2282. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Changed the default value of --proxy-method option from 'tunnel'
  2284. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2285. option.
  2286. * src/AbstractCommand.cc
  2287. * src/AbstractCommand.h
  2288. * src/FtpInitiateConnectionCommand.cc
  2289. * src/HttpDownloadCommand.cc
  2290. * src/HttpInitiateConnectionCommand.cc
  2291. * src/HttpInitiateConnectionCommand.h
  2292. * src/OptionHandlerFactory.cc
  2293. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Initialized _logger
  2295. * src/SelectEventPoll.cc
  2296. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Defined a copy constructor for the same type.
  2298. * src/SharedHandle.h
  2299. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Added OptionParser::parseArg() which internally uses getopt_long
  2301. to parse command-line options. All command-line options are now
  2302. configured by OptionHandler. No manual editing of struct option*
  2303. is required any more.
  2304. * src/NameMatchOptionHandler.h
  2305. * src/OptionHandler.h
  2306. * src/OptionHandlerFactory.cc
  2307. * src/OptionHandlerImpl.h
  2308. * src/OptionParser.cc
  2309. * src/OptionParser.h
  2310. * src/array_fun.h
  2311. * src/main.cc
  2312. * src/option_processing.cc
  2313. * test/OptionHandlerTest.cc
  2314. * test/OptionParserTest.cc
  2315. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Fixed configure error with --disable-epoll
  2317. * configure.ac
  2318. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Fixed compile error when HAVE_EPOLL is not defined.
  2320. Fixed linker error on bigendian systems.
  2321. * src/SocketCore.cc
  2322. * src/SocketCore.h
  2323. * test/DefaultBtProgressInfoFileTest.cc
  2324. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Added --bt-external-ip option. You can specify the external IP
  2326. address to report to a BitTorrent tracker. Although this function
  2327. is named 'external', it can accept any kind of IP addresses.
  2328. * src/DefaultBtAnnounce.cc
  2329. * src/OptionHandlerFactory.cc
  2330. * src/option_processing.cc
  2331. * src/prefs.cc
  2332. * src/prefs.h
  2333. * src/usage_text.h
  2334. * test/DefaultBtAnnounceTest.cc
  2335. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Extracted the algorithm to find the longest incremental sequence
  2337. as max_sequence template.
  2338. * src/LongestSequencePieceSelector.cc
  2339. * src/a2algo.h
  2340. * test/Makefile.am
  2341. * test/a2algoTest.cc
  2342. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2344. * src/usage_text.h
  2345. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Updated doc for --uri-selector, --http-server-listen-port and
  2347. --enable-http-server option. Documented --event-poll option.
  2348. * doc/aria2c.1.txt
  2349. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated doc for --enable-http-server.
  2351. * src/usage_text.h
  2352. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Documented --http-server-listen-port and --enable-http-server in
  2354. man page.
  2355. * doc/aria2c.1.txt
  2356. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2358. translations. Thanks to all translators.
  2359. * po/es.po
  2360. * po/id.po
  2361. * po/it.po
  2362. * po/ru.po
  2363. * po/uk.po
  2364. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Bump up version number to 1.2.0
  2366. * configure.ac
  2367. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. BtContext::getAnnounceTiers() now returns const reference.
  2369. * src/BtContext.h
  2370. * src/DefaultBtContext.cc
  2371. * src/DefaultBtContext.h
  2372. * test/MockBtContext.h
  2373. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Change the number of retries for tracker request based on the
  2375. number of available tracker in a torrent file.
  2376. * src/TrackerWatcherCommand.cc
  2377. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Added _maxTries property to RequestGroup and assign the option
  2379. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2380. RequestGroup::getMaxTries() instead of
  2381. Option::getAsInt(PREF_MAX_TRIES).
  2382. * src/AbstractCommand.cc
  2383. * src/RequestGroup.cc
  2384. * src/RequestGroup.h
  2385. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2387. Mandriva. I modified the patch: make RequestGroup have the
  2388. timeout value and AdaptiveURISelector directly modifies that
  2389. value.
  2390. * src/AbstractCommand.cc
  2391. * src/AdaptiveURISelector.cc
  2392. * src/AdaptiveURISelector.h
  2393. * src/FtpNegotiationCommand.cc
  2394. * src/RequestGroup.cc
  2395. * src/RequestGroup.h
  2396. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Fixed compiler warning
  2398. * test/IteratableChecksumValidatorTest.cc
  2399. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2401. integrated downloads. This PieceSelector subclass finds the
  2402. longest continuous sequence in the available missing pieces and
  2403. selects the last index of such sequence. This makes HTTP/FTP
  2404. connections less interrupted by the pieces obtained by BitTorrent
  2405. peers.
  2406. * src/DefaultPieceStorage.cc
  2407. * src/DefaultPieceStorage.h
  2408. * src/LongestSequencePieceSelector.cc
  2409. * src/LongestSequencePieceSelector.h
  2410. * src/Makefile.am
  2411. * src/PieceSelector.h
  2412. * src/RarestPieceSelector.h
  2413. * src/RequestGroup.cc
  2414. * test/BtDependencyTest.cc
  2415. * test/DefaultPieceStorageTest.cc
  2416. * test/IteratableChecksumValidatorTest.cc
  2417. * test/LongestSequencePieceSelectorTest.cc
  2418. * test/Makefile.am
  2419. * test/SegmentManTest.cc
  2420. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Fixed the bug that the average speed is wrong in
  2422. http/ftp/BitTorrent integrated download. Only the download bytes
  2423. in BitTorrent were considered.
  2424. * src/RequestGroup.cc
  2425. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2426. Choose port for BitTorrent/DHT randomly from the specified range.
  2427. * src/DHTConnectionImpl.cc
  2428. * src/PeerListenCommand.cc
  2429. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Send HTTP Authorization header only if it is requested by the
  2431. server(response 401). There are some exceptions. The authorization
  2432. header for proxy is always sent if it is available without request
  2433. by the server. If username/password is specified in the URI, it
  2434. is immediately sent to the server without request by the server.
  2435. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2436. SharedHandle<AuthConfig>().
  2437. NetrcAuthResolver::resolveAuthConfig() returns
  2438. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2439. * src/AbstractAuthResolver.cc
  2440. * src/AbstractProxyRequestCommand.cc
  2441. * src/AuthConfigFactory.cc
  2442. * src/AuthConfigFactory.h
  2443. * src/HttpConnection.cc
  2444. * src/HttpRequest.cc
  2445. * src/HttpRequest.h
  2446. * src/HttpResponse.cc
  2447. * src/HttpResponseCommand.cc
  2448. * src/HttpSkipResponseCommand.cc
  2449. * test/AuthConfigFactoryTest.cc
  2450. * test/HttpRequestTest.cc
  2451. * test/HttpResponseTest.cc
  2452. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Remove leading "--" from help keyword and a substring after "="
  2454. from help keyword, so that one can query options by '-h--max-' or
  2455. '-hmax-peers=10'.
  2456. * src/option_processing.cc
  2457. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Rewritten PStringVisitor and its implementation.
  2459. * src/PStringBuildVisitor.cc
  2460. * src/PStringBuildVisitor.h
  2461. * src/PStringDatum.h
  2462. * src/PStringNumLoop.h
  2463. * src/PStringSegment.cc
  2464. * src/PStringSegment.h
  2465. * src/PStringSelect.h
  2466. * src/PStringVisitor.h
  2467. * src/download_helper.cc
  2468. * test/PStringBuildVisitorTest.cc
  2469. * test/ParameterizedStringParserTest.cc
  2470. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2471. Persist connection between the built-in HTTP server and a client
  2472. if a client supports keep-alive. Fixed the bug that aria2 exits
  2473. when the HTTP server receives EOF from a client.
  2474. * src/HttpServer.cc
  2475. * src/HttpServer.h
  2476. * src/HttpServerCommand.cc
  2477. * src/HttpServerCommand.h
  2478. * src/HttpServerResponseCommand.cc
  2479. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Added experimental built-in HTTP server. Currently, when a client
  2481. accesses to the server, it responds with the current download
  2482. progress. By default, it is disabled. To enable the server, give
  2483. --enable-http-server option. To change the default port number
  2484. for the server to listen to, use --http-server-listen-port option.
  2485. The response HTML is very simple and refreshes it self each 1
  2486. second. Because of this refresh, you see flicker in normal web
  2487. browser such as Firefox. I recommend to use console-based browser
  2488. such as elinks, w3m. To connect to the server, run 'elinks
  2489. http://localhost:6800/' while running aria2. Please replace port
  2490. number '6800'(which is default) with your preference.
  2491. * src/DownloadEngineFactory.cc
  2492. * src/HttpHeader.cc
  2493. * src/HttpHeader.h
  2494. * src/HttpHeaderProcessor.cc
  2495. * src/HttpHeaderProcessor.h
  2496. * src/HttpListenCommand.cc
  2497. * src/HttpListenCommand.h
  2498. * src/HttpServer.cc
  2499. * src/HttpServer.h
  2500. * src/HttpServerCommand.cc
  2501. * src/HttpServerCommand.h
  2502. * src/HttpServerResponseCommand.cc
  2503. * src/HttpServerResponseCommand.h
  2504. * src/Makefile.am
  2505. * src/OptionHandlerFactory.cc
  2506. * src/Util.cc
  2507. * src/Util.h
  2508. * src/help_tags.h
  2509. * src/option_processing.cc
  2510. * src/prefs.cc
  2511. * src/prefs.h
  2512. * src/usage_text.h
  2513. * test/HttpHeaderProcessorTest.cc
  2514. * test/UtilTest.cc
  2515. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Removed.
  2517. * src/CheckIntegrityMan.cc
  2518. * src/FileAllocationMan.cc
  2519. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Made (piece) hash check sequential for each RequestGroup because
  2521. simultaneous hash check is slower than sequential execution.
  2522. * src/CheckIntegrityCommand.cc
  2523. * src/CheckIntegrityDispatcherCommand.cc
  2524. * src/CheckIntegrityDispatcherCommand.h
  2525. * src/CheckIntegrityMan.h
  2526. * src/ConsoleStatCalc.cc
  2527. * src/DownloadCommand.cc
  2528. * src/DownloadEngine.cc
  2529. * src/DownloadEngine.h
  2530. * src/DownloadEngineFactory.cc
  2531. * src/Makefile.am
  2532. * src/Makefile.in
  2533. * src/RequestGroup.cc
  2534. * src/StatCalc.h
  2535. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2537. SequentialDispatcherCommand.
  2538. * src/FileAllocationDispatcherCommand.cc
  2539. * src/SequentialDispatcherCommand.h
  2540. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Rewritten FileAllocationDispatcherCommand using brand new
  2542. SequentialDispatcherCommand.
  2543. * src/DownloadEngineFactory.cc
  2544. * src/FileAllocationCommand.cc
  2545. * src/FileAllocationDispatcherCommand.cc
  2546. * src/FileAllocationDispatcherCommand.h
  2547. * src/Makefile.am
  2548. * src/SequentialDispatcherCommand.h
  2549. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Replaced FileAllocationMan with
  2551. SequentialPicker<FileAllocationEntry>.
  2552. * src/BtCheckIntegrityEntry.cc
  2553. * src/ConsoleStatCalc.cc
  2554. * src/DownloadEngine.cc
  2555. * src/DownloadEngine.h
  2556. * src/DownloadEngineFactory.cc
  2557. * src/FileAllocationCommand.cc
  2558. * src/FileAllocationDispatcherCommand.cc
  2559. * src/FileAllocationMan.h
  2560. * src/Makefile.am
  2561. * src/SequentialPicker.h
  2562. * src/StatCalc.h
  2563. * src/StreamCheckIntegrityEntry.cc
  2564. * test/Makefile.am
  2565. * test/SequentialPickerTest.cc
  2566. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Added doc for adaptive URI selector.
  2568. * doc/aria2c.1.txt
  2569. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Added doc for adaptive URI selector.
  2571. * src/usage_text.h
  2572. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Added doc for --bt-max-peers option.
  2574. * doc/aria2c.1.txt
  2575. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Added doc for --bt-hash-check-seed option.
  2577. * doc/aria2c.1.txt
  2578. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Documented exit codes.
  2580. * doc/aria2c.1.txt
  2581. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Added --bt-max-peers option to specify the maximum number of peers
  2583. per torrent. 0 means unlimited number of peers.
  2584. * src/ActivePeerConnectionCommand.cc
  2585. * src/BtRuntime.h
  2586. * src/DefaultPeerStorage.cc
  2587. * src/DefaultPeerStorage.h
  2588. * src/OptionHandlerFactory.cc
  2589. * src/RequestGroup.cc
  2590. * src/option_processing.cc
  2591. * src/prefs.cc
  2592. * src/prefs.h
  2593. * src/usage_text.h
  2594. * test/DefaultPeerStorageTest.cc
  2595. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Added --bt-hash-check-seed option. If true is given to this
  2597. option, after hash check using --check-integrity option and file
  2598. is complete, continue to seed file. If you want to check file and
  2599. download it only when it is damaged or incomplete, set this option
  2600. to false. This option has effect only on BitTorrent download.
  2601. The default value is true(This is the same behavior with the
  2602. previous release).
  2603. * src/BtCheckIntegrityEntry.cc
  2604. * src/OptionHandlerFactory.cc
  2605. * src/option_processing.cc
  2606. * src/prefs.cc
  2607. * src/prefs.h
  2608. * src/usage_text.h
  2609. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Updated copyright year.
  2611. * src/version_usage.cc
  2612. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2614. * doc/aria2c.1.txt
  2615. * src/usage_text.h
  2616. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Made the max value of split option unlimited.
  2618. * doc/aria2c.1.txt
  2619. * src/OptionHandlerFactory.cc
  2620. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Fixed compile warning/error.
  2622. * src/DownloadResult.h
  2623. * src/HttpDownloadCommand.cc
  2624. * src/ServerStat.cc
  2625. * test/RequestGroupTest.cc
  2626. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Added --event-poll option to select the method for polling events.
  2628. The available methods are "select" and "epoll". "epoll" is
  2629. available on Linux only. The earlier release has the compile
  2630. option to choose from these methods.
  2631. * configure.ac
  2632. * src/RequestGroupMan.cc
  2633. * src/OptionHandlerFactory.cc
  2634. * src/EpollEventPoll.h
  2635. * src/StreamFileAllocationEntry.cc
  2636. * src/a2io.h
  2637. * src/SelectEventPoll.h
  2638. * src/option_processing.cc
  2639. * src/prefs.h
  2640. * src/EpollEventPoll.cc
  2641. * src/EventPoll.h
  2642. * src/SocketCore.h
  2643. * src/Makefile.am
  2644. * src/main.cc
  2645. * src/DownloadEngine.h
  2646. * src/SelectEventPoll.cc
  2647. * src/DownloadEngine.cc
  2648. * src/SocketCore.cc
  2649. * src/DownloadEngineFactory.cc
  2650. * src/Makefile.in
  2651. * src/prefs.cc
  2652. * src/usage_text.h
  2653. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Included RecoverableException.h from main.cc
  2655. * src/main.cc
  2656. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2658. now returns last error encountered in the HTTP/FTP downloads as a
  2659. exit status value. If all downloads finished successfully, aria2
  2660. returns 0. The error code is defined in src/DownloadResult.h.
  2661. The error occurred in the download currently in progress is not
  2662. reported as a last error. If no error has encountered but there
  2663. are in progress or waiting downloads, aria2 returns 7.
  2664. * src/AbstractCommand.cc
  2665. * src/DlAbortEx.h
  2666. * src/DlRetryEx.h
  2667. * src/DownloadCommand.cc
  2668. * src/DownloadFailureException.h
  2669. * src/DownloadResult.h
  2670. * src/FtpNegotiationCommand.cc
  2671. * src/HttpSkipResponseCommand.cc
  2672. * src/Makefile.am
  2673. * src/MultiUrlRequestInfo.cc
  2674. * src/MultiUrlRequestInfo.h
  2675. * src/RecoverableException.h
  2676. * src/RequestGroup.cc
  2677. * src/RequestGroup.h
  2678. * src/RequestGroupMan.cc
  2679. * src/RequestGroupMan.h
  2680. * src/URIResult.cc
  2681. * src/URIResult.h
  2682. * src/main.cc
  2683. * src/option_processing.cc
  2684. * test/RequestGroupTest.cc
  2685. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2687. patch adds AdaptiveURISelector, which selects one of the bests
  2688. mirrors for first and reserved connections. For supplementary
  2689. ones, it returns mirrors which has not been tested yet, and if
  2690. each of them already tested, returns mirrors which has to be
  2691. tested again. Otherwise, it doesn't return anymore mirrors.
  2692. * src/AdaptiveURISelector.cc
  2693. * src/AdaptiveURISelector.h
  2694. * src/FtpNegotiationCommand.cc
  2695. * src/HttpResponseCommand.cc
  2696. * src/Makefile.am
  2697. * src/Makefile.in
  2698. * src/OptionHandlerFactory.cc
  2699. * src/RequestGroup.cc
  2700. * src/RequestGroup.h
  2701. * src/RequestGroupMan.cc
  2702. * src/ServerStat.cc
  2703. * src/ServerStat.h
  2704. * src/ServerStatMan.cc
  2705. * src/SpeedCalc.cc
  2706. * src/URISelector.h
  2707. * src/prefs.cc
  2708. * src/prefs.h
  2709. * test/RequestGroupManTest.cc
  2710. * test/ServerStatManTest.cc
  2711. * test/ServerStatTest.cc
  2712. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Fixed unit test error.
  2714. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2715. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. * Release 1.1.2
  2717. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Updated Russian translation. Thanks to the translators.
  2719. * po/ru.po
  2720. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Added the description of --use-head option to man page.
  2722. * doc/aria2c.1.txt
  2723. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Bump up version number to 1.1.2
  2725. * configure.ac
  2726. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Added --use-head option to toggle whether HEAD method should be
  2728. used in the first HTTP request. By default aria2 uses HEAD method
  2729. as the first request. When the server doesn't recognize HEAD, then
  2730. give aria2 --use-head=false to force aria2 to use GET method
  2731. instead.
  2732. * src/OptionHandlerFactory.cc
  2733. * src/RequestGroupMan.cc
  2734. * src/option_processing.cc
  2735. * src/prefs.cc
  2736. * src/prefs.h
  2737. * src/usage_text.h
  2738. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2740. message is received before CHOKE message. The old implementation
  2741. doen't clear the use-bit of the piece when recieved REJECT
  2742. message.
  2743. * src/DefaultBtMessageDispatcher.cc
  2744. * test/DefaultBtMessageDispatcherTest.cc
  2745. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. * Release 1.1.1
  2747. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Bump up version number to 1.1.1.
  2749. * configure.ac
  2750. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2752. is printed repeatedly.
  2753. * src/ConsoleStatCalc.cc
  2754. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. * Release 1.1.0
  2756. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Added ifdef clause for conditional compilation.
  2758. * src/main.cc
  2759. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2761. translations. Thanks to all translators.
  2762. * po/ja.po
  2763. * po/ru.po
  2764. * po/uk.po
  2765. * po/zh_CN.po
  2766. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Added the preceding ">>> " before the message "Printing the
  2768. contents of file..." to make the output more readable.
  2769. * src/main.cc
  2770. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Added try-catch block in the loop in showFiles() to continue the
  2772. operation even if the exception occurred in one file.
  2773. * src/main.cc (showFiles)
  2774. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Made messages in showFiles() translatable.
  2776. * po/aria2.pot
  2777. * src/main.cc
  2778. * src/message.h
  2779. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Print the contents of Torrent/Metalink files are printed without
  2781. -T/-M options.
  2782. * src/main.cc
  2783. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Escaped '--' with '\--'
  2785. * README
  2786. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Updated "How to build" section in README. Mentioned about
  2788. --with-ca-bundle compile option.
  2789. * README
  2790. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Bump up version number to 1.1.0.
  2792. * configure.ac
  2793. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Added a note for --dht-listen-port option.
  2795. * doc/aria2c.1.txt
  2796. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Update doc for --realtime-chunk-checksum option.
  2798. * doc/aria2c.1.txt
  2799. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Update doc for --realtime-chunk-checksum option.
  2801. * src/usage_text.h
  2802. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Updated French, Japanese, Russian and Ukrainian translations.
  2804. Thanks to all translators.
  2805. * po/fr.po
  2806. * po/ja.po
  2807. * po/ru.po
  2808. * po/uk.po
  2809. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Renamed aria2c.pot to aria2.pot
  2811. * po/aria2.pot
  2812. * po/aria2c.pot: Removed.
  2813. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Removed MetaEntry.h
  2815. * src/Makefile.am
  2816. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Rename file by appending digits if a local file exists and its
  2818. file size is larger than that of remote file with --continue
  2819. option. The old implementation just throws exception in such case.
  2820. * src/RequestGroup.cc
  2821. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Fixed the bug that download progress summary is not printed in the
  2823. interval specified by the option.
  2824. * src/ConsoleStatCalc.cc
  2825. * src/ConsoleStatCalc.h
  2826. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Fixed compiler warning
  2828. * src/Cookie.cc
  2829. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Fixed the cookie implementation based on RFC2965.
  2831. Now if a value in domain field is not started with dot, then
  2832. prepend dot. That means a cookie with domain=sf.net is sent to
  2833. wiki.sf.net.
  2834. * src/Cookie.cc
  2835. * test/CookieParserTest.cc
  2836. * test/CookieStorageTest.cc
  2837. * test/CookieTest.cc
  2838. * test/NsCookieParserTest.cc
  2839. * test/Sqlite3MozCookieParserTest.cc
  2840. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2842. is enabled and the server doesn't support keep-alive.
  2843. * src/AbstractCommand.cc
  2844. * src/DownloadCommand.cc
  2845. * src/HttpDownloadCommand.cc
  2846. * src/HttpDownloadCommand.h
  2847. * src/HttpResponseCommand.cc
  2848. * src/Request.cc
  2849. * src/Request.h
  2850. * test/RequestTest.cc
  2851. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Removed Dictionary/List/Data and its related classes.
  2853. * src/BencodeVisitor.cc: Removed.
  2854. * src/BencodeVisitor.h: Removed.
  2855. * src/Data.cc: Removed.
  2856. * src/Data.h: Removed.
  2857. * src/Dictionary.cc: Removed.
  2858. * src/Dictionary.h: Removed.
  2859. * src/List.cc: Removed.
  2860. * src/List.h: Removed.
  2861. * src/Makefile.am
  2862. * src/MetaEntry.h: Removed.
  2863. * src/MetaEntryVisitor.h: Removed.
  2864. * src/MetaFileUtil.cc: Removed.
  2865. * src/MetaFileUtil.h: Removed.
  2866. * test/BencodeVisitorTest.cc: Removed.
  2867. * test/DataTest.cc: Removed.
  2868. * test/DictionaryTest.cc: Removed.
  2869. * test/ListTest.cc: Removed.
  2870. * test/Makefile.am
  2871. * test/MetaFileUtilTest.cc: Removed.
  2872. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Removed include of MetaEntry.h
  2874. * test/DHTMessageTrackerEntryTest.cc
  2875. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Use BDE instead of Dictionary/List/Data.
  2877. * src/AnnounceList.cc
  2878. * src/AnnounceList.h
  2879. * test/AnnounceListTest.cc
  2880. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Use BDE instead of Dictionary/List/Data.
  2882. * src/DHTAbstractMessage.cc
  2883. * src/DHTAbstractMessage.h
  2884. * src/DHTAnnouncePeerMessage.cc
  2885. * src/DHTAnnouncePeerMessage.h
  2886. * src/DHTAnnouncePeerReplyMessage.cc
  2887. * src/DHTAnnouncePeerReplyMessage.h
  2888. * src/DHTFindNodeMessage.cc
  2889. * src/DHTFindNodeMessage.h
  2890. * src/DHTFindNodeReplyMessage.cc
  2891. * src/DHTFindNodeReplyMessage.h
  2892. * src/DHTGetPeersMessage.cc
  2893. * src/DHTGetPeersMessage.h
  2894. * src/DHTGetPeersReplyMessage.cc
  2895. * src/DHTGetPeersReplyMessage.h
  2896. * src/DHTMessageFactory.h
  2897. * src/DHTMessageFactoryImpl.cc
  2898. * src/DHTMessageFactoryImpl.h
  2899. * src/DHTMessageReceiver.cc
  2900. * src/DHTMessageTracker.cc
  2901. * src/DHTMessageTracker.h
  2902. * src/DHTPingMessage.cc
  2903. * src/DHTPingMessage.h
  2904. * src/DHTPingReplyMessage.cc
  2905. * src/DHTPingReplyMessage.h
  2906. * src/DHTQueryMessage.cc
  2907. * src/DHTQueryMessage.h
  2908. * src/DHTResponseMessage.cc
  2909. * src/DHTResponseMessage.h
  2910. * test/DHTAnnouncePeerMessageTest.cc
  2911. * test/DHTAnnouncePeerReplyMessageTest.cc
  2912. * test/DHTFindNodeMessageTest.cc
  2913. * test/DHTFindNodeReplyMessageTest.cc
  2914. * test/DHTGetPeersMessageTest.cc
  2915. * test/DHTGetPeersReplyMessageTest.cc
  2916. * test/DHTMessageFactoryImplTest.cc
  2917. * test/DHTMessageTrackerTest.cc
  2918. * test/DHTPingMessageTest.cc
  2919. * test/DHTPingReplyMessageTest.cc
  2920. * test/MockDHTMessageFactory.h
  2921. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Added tests the case where length < 0 is specified.
  2923. * test/BencodeTest.cc
  2924. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Fixed memory leak in decoderawstring()
  2926. * src/bencode.cc
  2927. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Added missing #ifdef guard. Added uc() function for String and
  2929. removeKey() for Dict.
  2930. * src/bencode.cc
  2931. * src/bencode.h
  2932. * test/BencodeTest.cc
  2933. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Use BDE instead of Dictionary/List/Data.
  2935. * src/HandshakeExtensionMessage.cc
  2936. * src/HandshakeExtensionMessage.h
  2937. * test/HandshakeExtensionMessageTest.cc
  2938. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Added --max-overall-upload-limit option. This option limits the
  2940. overall upload speed. Stated in help message that the existing
  2941. --max-upload-limit option limits the upload speed per each
  2942. torrent. Man page is also updated.
  2943. * doc/aria2c.1.txt
  2944. * src/DefaultBtMessageDispatcher.cc
  2945. * src/DefaultBtMessageDispatcher.h
  2946. * src/OptionHandlerFactory.cc
  2947. * src/PeerInteractionCommand.cc
  2948. * src/option_processing.cc
  2949. * src/prefs.cc
  2950. * src/prefs.h
  2951. * src/usage_text.h
  2952. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Use BDE instead of Dictionary/List/Data classes.
  2954. * src/CompactPeerListProcessor.cc
  2955. * src/CompactPeerListProcessor.h
  2956. * src/DefaultBtAnnounce.cc
  2957. * src/DefaultBtContext.cc
  2958. * src/DefaultBtContext.h
  2959. * src/DefaultPeerListProcessor.cc
  2960. * src/DefaultPeerListProcessor.h
  2961. * src/DelegatingPeerListProcessor.cc
  2962. * src/DelegatingPeerListProcessor.h
  2963. * src/PeerListProcessor.h
  2964. * src/UTPexExtensionMessage.cc
  2965. * src/Util.h
  2966. * src/message.h
  2967. * test/DefaultBtContextTest.cc
  2968. * test/DefaultPeerListProcessorTest.cc
  2969. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Added bencode helper functions and BDE class.
  2971. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2972. * src/Makefile.am
  2973. * src/bencode.cc
  2974. * src/bencode.h
  2975. * test/BencodeTest.cc
  2976. * test/Makefile.am
  2977. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Fixed the bug that bad URI is sent to the tracker when the announe
  2979. URI in torrent file includes query.
  2980. * src/DefaultBtAnnounce.cc
  2981. * test/DefaultBtAnnounceTest.cc
  2982. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Added Option::blank().
  2984. Use !Option::blank(name) instead of Option::defined(name) for
  2985. the options that take filename.
  2986. * src/MultiUrlRequestInfo.cc
  2987. * src/Option.cc
  2988. * src/Option.h
  2989. * src/main.cc
  2990. * src/option_processing.cc
  2991. * test/OptionTest.cc
  2992. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Documented the default value of --check-certificate option in man
  2994. page.
  2995. * doc/aria2c.1.txt
  2996. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Enabled --check-certificate by default. Added compile
  2998. time(configure) option --with-ca-bundle to specify CA bundle.
  2999. Warn if --check-certificate=true and --ca-certificate is not
  3000. specified or loading CA certificate is failed.
  3001. * configure.ac
  3002. * src/MultiUrlRequestInfo.cc
  3003. * src/OptionHandlerFactory.cc
  3004. * src/message.h
  3005. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Mentioned https tag in help option.
  3007. * doc/aria2c.1.txt
  3008. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Added `https' tag to help option category. Added https tag to
  3010. --ca-certificate, --certificate, --check-certificate and
  3011. --private-key option.
  3012. * src/OptionHandlerFactory.cc
  3013. * src/help_tags.h
  3014. * src/option_processing.cc
  3015. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Changed the package name from `aria2c' to `aria2' in order to fix
  3017. the packaging issue in Debian and Fedora. The name of the
  3018. executable is not changed.
  3019. * configure.ac
  3020. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Fixed typos
  3022. * src/usage_text.h
  3023. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Fixed typos and updated doc.
  3025. * README
  3026. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Fixed typos
  3028. * doc/aria2c.1.txt
  3029. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Fixed typos
  3031. * src/usage_text.h
  3032. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Print a message when no files to download.
  3034. * src/download_helper.cc
  3035. * src/main.cc
  3036. * src/message.h
  3037. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. RFC3986 complied Percent-Encoding(urlencode).
  3039. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3040. ones.
  3041. * src/Request.cc
  3042. * src/Util.cc
  3043. * src/Util.h
  3044. * test/BtHandshakeMessageTest.cc
  3045. * test/DefaultBtAnnounceTest.cc
  3046. * test/DefaultBtContextTest.cc
  3047. * test/RequestTest.cc
  3048. * test/UtilTest.cc
  3049. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Fixed the bug that prevents aria2 from downloading 0-length files
  3051. via HTTP/FTP.
  3052. * src/DefaultBtContext.cc
  3053. * src/DefaultBtContext.h
  3054. * src/DownloadContext.h
  3055. * src/FtpNegotiationCommand.cc
  3056. * src/HttpResponseCommand.cc
  3057. * src/HttpResponseCommand.h
  3058. * src/RequestGroup.cc
  3059. * src/SingleFileDownloadContext.cc
  3060. * src/SingleFileDownloadContext.h
  3061. * test/BtPostDownloadHandlerTest.cc
  3062. * test/MetalinkPostDownloadHandlerTest.cc
  3063. * test/MockBtContext.h
  3064. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3065. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3066. * src/option_processing.cc
  3067. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3068. Applied aria2-1.0.1-mingw.patch.
  3069. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3070. mingw.
  3071. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3072. * src/SocketCore.cc
  3073. * src/a2netcompat.h
  3074. * test/SocketCoreTest.cc
  3075. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. * Release 1.0.1
  3077. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Updated Ukrainian and Norwegian Nynorsk translations.
  3079. Thanks to all translators.
  3080. * po/nn.po
  3081. * po/uk.po
  3082. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3083. Don't show download result when -S option is used.
  3084. * src/main.cc
  3085. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3086. Bump up version number to 1.0.1
  3087. * configure.ac
  3088. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Closed files after the test cases in MultiDiskWriterTest::
  3090. testResetDiskWriterEntries(). This will fix the unit test error
  3091. in mingw32 build.
  3092. * test/MultiDiskWriterTest.cc
  3093. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Use HEAD method to get file size from HTTP server for segmented
  3095. downloading.
  3096. The request to the BitTorrent Tracker always uses GET method because
  3097. the response of the tracker is small and it doesn't need segmented
  3098. download.
  3099. * src/FtpNegotiationCommand.cc
  3100. * src/HttpRequest.cc
  3101. * src/HttpResponseCommand.cc
  3102. * src/HttpSkipResponseCommand.cc
  3103. * src/RequestGroup.cc
  3104. * src/RequestGroup.h
  3105. * src/TrackerWatcherCommand.cc
  3106. * test/HttpRequestTest.cc
  3107. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Fixed the bug that causes floating exception when -T option is used and
  3109. no URIs are given.
  3110. * src/download_helper.cc
  3111. * test/DownloadHelperTest.cc
  3112. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3113. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3114. errors in MinGW:
  3115. Closed file after saving server stats (RequestGroupMan.cc)
  3116. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3117. Ignored case & handled 2-digit years (strptime.c)
  3118. Added missing suseconds_t definition (a2time.h)
  3119. Fixed socket CLOSE() define (SocketCore.cc)
  3120. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3121. Changed utime() test values from x000 to x00000 as MinGW failed on
  3122. values less than timezone offset from Unix epoch
  3123. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3124. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3125. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3126. handle negative dates (CookieParserTest.cc)
  3127. * src/a2time.h
  3128. * src/FtpConnection.cc
  3129. * src/RequestGroupMan.cc
  3130. * src/SocketCore.cc
  3131. * src/strptime.c
  3132. * test/CookieParserTest.cc
  3133. * test/CopyDiskAdaptorTest.cc
  3134. * test/FileTest.cc
  3135. * test/FtpConnectionTest.cc
  3136. * test/MultiDiskAdaptorTest.cc
  3137. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3139. * doc/aria2c.1.txt
  3140. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. * Release 1.0.0
  3142. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. Added '~' to reserved characters.
  3144. * src/Util.cc
  3145. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Do not urlencode Request::url in setUrl() because we want unmodified
  3147. URL using Request::getUrl()
  3148. * src/Request.cc
  3149. * src/Request.h
  3150. * test/RequestTest.cc
  3151. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3153. Thanks to all translators.
  3154. * po/bg.po
  3155. * po/fr.po
  3156. * po/ja.po
  3157. * po/ru.po
  3158. * po/uk.po
  3159. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Bump up version number to 1.0.0
  3161. * configure.ac
  3162. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Added nosqlite3 build to build_test.sh.
  3164. Renamed noxml as expat.
  3165. * build_test.sh
  3166. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Updated INPUT FILE section.
  3168. * doc/aria2c.1.txt
  3169. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3171. on big endian systems because test .aria2 files are made for little
  3172. endian systems.
  3173. * test/DefaultBtProgressInfoFileTest.cc
  3174. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Dropped ares support.
  3176. * README
  3177. * configure.ac
  3178. * m4/libares.m4: Removed.
  3179. * src/AsyncNameResolver.cc
  3180. * src/Makefile.am
  3181. * test/Makefile.am
  3182. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3184. Removed const qualifier from DiskWriter::size().
  3185. * src/AbstractDiskWriter.cc
  3186. * src/AbstractDiskWriter.h
  3187. * src/ByteArrayDiskWriter.cc
  3188. * src/ByteArrayDiskWriter.h
  3189. * src/DiskWriter.h
  3190. * test/ByteArrayDiskWriterTest.cc
  3191. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Fixed the bug that causes segmentation fault/bus error during executing
  3193. choking algorithm while seeding. This is caused by improper
  3194. implementation of compare function which returns inconsistent results
  3195. depending on the timing of last unchoke.
  3196. * src/BtSeederStateChoke.cc
  3197. * src/BtSeederStateChoke.h
  3198. * src/DefaultPeerStorage.cc
  3199. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Removed TODO
  3201. * TODO
  3202. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Added a section that explains how to pass argument to options that
  3204. takes optional arguments with its short form.
  3205. * doc/aria2c.1.txt
  3206. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Added -u for the short form of --max-upload-limit option.
  3208. * doc/aria2c.1.txt
  3209. * src/option_processing.cc
  3210. * src/usage_text.h
  3211. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3212. Added -V for the short form of --check-integrity option.
  3213. Now the argument of --check-integrity option is optional:
  3214. if it is omitted, it is evaluated as true.
  3215. * doc/aria2c.1.txt
  3216. * src/option_processing.cc
  3217. * src/usage_text.h
  3218. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Made the default value of --ftp-pasv option set to true and it can take
  3220. true/false values.
  3221. * src/OptionHandlerFactory.cc
  3222. * src/option_processing.cc
  3223. * src/usage_text.h
  3224. * doc/aria2c.1.txt
  3225. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Given custom random number generator to std::random_shuffle.
  3227. * src/AnnounceList.cc
  3228. * src/BtLeecherStateChoke.cc
  3229. * src/BtSeederStateChoke.cc
  3230. * src/DefaultBtRequestFactory.cc
  3231. * src/MetalinkEntry.cc
  3232. * src/RarestPieceSelector.cc
  3233. * src/SimpleRandomizer.cc
  3234. * src/SimpleRandomizer.h
  3235. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Now the default value of --enable-direct-io is true.
  3237. * src/OptionHandlerFactory.cc
  3238. * doc/aria2c.1.txt
  3239. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Erase peer before executing onReturningPeer and onErasingPeer
  3241. because choking algorithm called from onReturningPeer doesn't
  3242. like erasing peer in the active peer list.
  3243. * src/DefaultPeerStorage.cc
  3244. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Instead of creating special filename in createDownloadResult() if
  3246. inMemoryDownload() is true, now it is done in getFilePath().
  3247. * src/RequestGroup.cc
  3248. * test/RequestGroupTest.cc
  3249. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3251. processed in memory. This is the fix for previous comment out.
  3252. * src/MemoryBufferPreDownloadHandler.cc
  3253. * src/RequestGroup.cc
  3254. * src/RequestGroup.h
  3255. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Commented out the code which sets virtual directory path "[MEMORY]"
  3257. propagate directory to store to following RequestGroup.
  3258. * src/MemoryBufferPreDownloadHandler.cc
  3259. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Bump up version number to 1.0.0b
  3261. * configure.ac
  3262. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Added input_uris.txt to EXTRA_DIST
  3264. * test/Makefile.am
  3265. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Removed PeerObject.h from Makefile.am
  3267. * src/Makefile.am
  3268. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Avoid slow seeding
  3270. * src/PeerInteractionCommand.cc
  3271. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Updated usage for -i option.
  3273. * src/usage_text.h (TEXT_INPUT_FILE)
  3274. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Added INPUT FILE section to man page.
  3276. Escaped fake URLs.
  3277. * doc/aria2c.1.txt
  3278. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Fixed wrong note position for -o option.
  3280. * doc/aria2c.1.txt
  3281. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Fixed compile error without SSL/XML library.
  3283. * src/DefaultBtProgressInfoFile.cc
  3284. * src/DefaultBtProgressInfoFile.h
  3285. * src/FileMetalinkParserState.cc
  3286. * src/RequestGroup.h
  3287. * src/SocketCore.cc
  3288. * src/SocketCore.h
  3289. * src/VerificationMetalinkParserState.cc
  3290. * src/download_helper.h
  3291. * src/main.cc
  3292. * test/DefaultBtProgressInfoFileTest.cc
  3293. * test/DownloadHelperTest.cc
  3294. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Rewritten URI handling functions. They are now provided as a testable
  3296. functions.
  3297. * src/Makefile.am
  3298. * src/RequestGroup.cc
  3299. * src/RequestGroup.h
  3300. * src/download_helper.cc
  3301. * src/download_helper.h
  3302. * src/main.cc
  3303. * test/DownloadHelperTest.cc
  3304. * test/Makefile.am
  3305. * test/input_uris.txt
  3306. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3307. Quickly terminate commands when ctrl-c is pressed.
  3308. * src/DownloadEngine.cc
  3309. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3310. Quickly terminate idle commands when download finished.
  3311. * src/AbstractCommand.cc
  3312. * src/DownloadCommand.cc
  3313. * src/DownloadEngine.cc
  3314. * src/DownloadEngine.h
  3315. * src/SleepCommand.cc
  3316. * src/SleepCommand.h
  3317. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Added the ability to specify output filename and directory in input
  3319. file.
  3320. Additional parameters are added in the following line of URIs
  3321. with proceeding white space(s), 1 parameter in 1 line.
  3322. The parameter names are the same with the command-line option name
  3323. without proceeding "--". Not all the options are available here:
  3324. at the moment, 'dir' and 'out' options are avialable.
  3325. Please note that out option has no effect against Metalink or BitTorrent
  3326. downloads.
  3327. Example input file:
  3328. http://host/foo-1.1.tar.bz2
  3329. out=foo.tar.bz2
  3330. dir=/tmp/downloads
  3331. http://host/thundermonkey-2.0.tar.bz2
  3332. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3333. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3334. thundermonkey-2.0.tar.bz2 is saved as
  3335. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3336. * src/BtPostDownloadHandler.cc
  3337. * src/Metalink2RequestGroup.cc
  3338. * src/Metalink2RequestGroup.h
  3339. * src/MetalinkPostDownloadHandler.cc
  3340. * src/UriListParser.cc
  3341. * src/UriListParser.h
  3342. * src/main.cc
  3343. * test/Metalink2RequestGroupTest.cc
  3344. * test/UriListParserTest.cc
  3345. * test/filelist1.txt
  3346. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Fixed error when SSL library is not found.
  3348. * configure.ac
  3349. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Cross referenced among -s, -C and -j options.
  3351. Updated usage of -C and -s options.
  3352. * src/usage_text.h
  3353. * doc/aria2c.1.txt
  3354. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. Fixed bad cast in 32bit platforms.
  3356. * test/DefaultPieceStorageTest.cc
  3357. (DefaultPieceStorageTest::testGetCompletedLength)
  3358. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Fixed unit test fails on 32bit platforms.
  3360. * test/CookieParserTest.cc
  3361. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Show an average download speed in Download results.
  3363. * src/BtFileAllocationEntry.cc
  3364. * src/DefaultPieceStorage.cc
  3365. * src/DownloadContext.cc
  3366. * src/DownloadContext.h
  3367. * src/DownloadResult.h
  3368. * src/RequestGroup.cc
  3369. * src/RequestGroupMan.cc
  3370. * src/StreamFileAllocationEntry.cc
  3371. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Fixed the bug that metalink file is not processed if Content-Type
  3373. field has a paramter.
  3374. * src/HttpResponse.cc
  3375. * src/HttpResponse.h
  3376. * test/HttpResponseTest.cc
  3377. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Removed unused code.
  3379. * src/DefaultBtAnnounce.cc
  3380. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3382. the value larger than DefaultPieceStorage::getTotalLength() when
  3383. in flight pieces are involved.
  3384. * src/DefaultPieceStorage.cc
  3385. * test/DefaultPieceStorageTest.cc
  3386. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Bump up version number to 1.0.0a.
  3388. * configure.ac
  3389. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3390. Updated configure.ac
  3391. * configure.ac
  3392. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Added usege for proxy.
  3394. * doc/aria2c.1.txt
  3395. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Added usage for --ca-certificate, --certificate, --private-key and
  3397. --check-certificate options.
  3398. * doc/aria2c.1.txt
  3399. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3400. Updated man page
  3401. * doc/aria2c.1.txt
  3402. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Added --no-proxy option. It receives comman separated hostname or
  3404. domains to which proxy should not be used.
  3405. aria2 honors the environment variable no_proxy to override no-proxy
  3406. value in configuration file. The user can override the environment
  3407. variable no_proxy with --no-proxy command-line option.
  3408. * src/AbstractCommand.cc
  3409. * src/OptionHandlerFactory.cc
  3410. * src/option_processing.cc
  3411. * src/prefs.cc
  3412. * src/prefs.h
  3413. * src/usage_text.h
  3414. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3416. The CA certificates are specified in --ca-certificate option.
  3417. By default, the verification is disabled. Use --check-certificate
  3418. option to enable it.
  3419. * src/HttpRequestCommand.cc
  3420. * src/LibgnutlsTLSContext.cc
  3421. * src/LibgnutlsTLSContext.h
  3422. * src/LibsslTLSContext.cc
  3423. * src/LibsslTLSContext.h
  3424. * src/MultiUrlRequestInfo.cc
  3425. * src/OptionHandlerFactory.cc
  3426. * src/SocketCore.cc
  3427. * src/SocketCore.h
  3428. * src/a2functional.h
  3429. * src/message.h
  3430. * src/option_processing.cc
  3431. * src/prefs.cc
  3432. * src/prefs.h
  3433. * src/usage_text.h
  3434. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Added client certificate authentication for SSL/TLS.
  3436. Currently a private key must be decrypted for use with aria2.
  3437. If a user accidentally gives encrypted file to aria2 then following
  3438. thing happens:
  3439. If encrypted private key is given to aria2, it behaves differently
  3440. depending on the ssl library it uses. If aria2 built with openssl then
  3441. openssl prompts the user for password. If aria2 build with gnutls then
  3442. aria2 exists with error at start up.
  3443. * src/DownloadEngineFactory.cc
  3444. * src/MultiUrlRequestInfo.cc
  3445. * src/OptionHandlerFactory.cc
  3446. * src/option_processing.cc
  3447. * src/prefs.cc
  3448. * src/prefs.h
  3449. * src/usage_text.h
  3450. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. Introduced TLSContext that holds TLS related data that can be shared
  3452. with multiple SSL connections.
  3453. * src/DownloadEngineFactory.cc
  3454. * src/LibgnutlsTLSContext.cc
  3455. * src/LibgnutlsTLSContext.h
  3456. * src/LibsslTLSContext.cc
  3457. * src/LibsslTLSContext.h
  3458. * src/Makefile.am
  3459. * src/SocketCore.cc
  3460. * src/SocketCore.h
  3461. * src/TLSContext.h
  3462. * src/message.h
  3463. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Fixed the bug that the DiskWriter of the first FileEntry whose
  3465. `needsFileAllocation' property is false is not created
  3466. even if it shares a piece with next FileEntry which `requested' property
  3467. is true.
  3468. Fixed the bug that zero-length file is not created if pre file
  3469. allocation is not done.
  3470. * src/MultiDiskAdaptor.cc
  3471. * src/MultiDiskAdaptor.h
  3472. * test/MultiDiskAdaptorTest.cc
  3473. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. Added the ability to pool proxy connection.
  3475. The conneciton in FTP with proxy-method=GET is not pooled.
  3476. Proxy-Connection header will not be sent when sending CONNECT method.
  3477. * src/DownloadEngine.cc
  3478. * src/DownloadEngine.h
  3479. * src/FtpFinishDownloadCommand.cc
  3480. * src/FtpInitiateConnectionCommand.cc
  3481. * src/FtpNegotiationCommand.cc
  3482. * src/HttpDownloadCommand.cc
  3483. * src/HttpInitiateConnectionCommand.cc
  3484. * src/HttpRequest.cc
  3485. * src/HttpRequest.h
  3486. * src/HttpResponse.cc
  3487. * src/HttpSkipResponseCommand.cc
  3488. * test/HttpRequestTest.cc
  3489. * test/HttpResponseTest.cc
  3490. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Handle date before epoch.
  3492. To create *bad* Time object, call Time::null().
  3493. * src/CookieParser.cc
  3494. * src/FtpConnection.cc
  3495. * src/FtpConnection.h
  3496. * src/FtpNegotiationCommand.cc
  3497. * src/RequestGroup.cc
  3498. * src/TimeA2.cc
  3499. * src/TimeA2.h
  3500. * test/CookieParserTest.cc
  3501. * test/FtpConnectionTest.cc
  3502. * test/TimeTest.cc
  3503. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Added support for following envrionment variables: http_proxy,
  3505. https_proxy, ftp_proxy and all_proxy.
  3506. Each variable is equivalent to the aria2 option whose name is the
  3507. variable name with '_' replaced with '-'.
  3508. They overrides options specified in aria2.conf file.
  3509. The envrionment variables can be overrode using command-line option.
  3510. * src/option_processing.cc
  3511. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Renamed --http-proxy-method as --proxy-method.
  3513. * src/AbstractCommand.cc
  3514. * src/FtpInitiateConnectionCommand.cc
  3515. * src/HttpInitiateConnectionCommand.cc
  3516. * src/OptionHandlerFactory.cc
  3517. * src/option_processing.cc
  3518. * src/prefs.cc
  3519. * src/prefs.h
  3520. * src/usage_text.h
  3521. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3523. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3524. Above 3 options and --http-proxy option can handle proxy in URL format
  3525. like: http://user:passwd@host:port.
  3526. If a proxy requires user/password, they must be specified in a URL.
  3527. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3528. instead.
  3529. * src/AbstractCommand.cc
  3530. * src/AbstractCommand.h
  3531. * src/AbstractProxyRequestCommand.cc
  3532. * src/AbstractProxyRequestCommand.h
  3533. * src/AuthConfigFactory.cc
  3534. * src/AuthConfigFactory.h
  3535. * src/FtpFinishDownloadCommand.cc
  3536. * src/FtpInitiateConnectionCommand.cc
  3537. * src/FtpInitiateConnectionCommand.h
  3538. * src/FtpNegotiationCommand.cc
  3539. * src/FtpTunnelRequestCommand.cc
  3540. * src/FtpTunnelRequestCommand.h
  3541. * src/HttpDownloadCommand.cc
  3542. * src/HttpInitiateConnectionCommand.cc
  3543. * src/HttpInitiateConnectionCommand.h
  3544. * src/HttpProxyRequestCommand.cc
  3545. * src/HttpProxyRequestCommand.h
  3546. * src/HttpRequest.cc
  3547. * src/HttpRequest.h
  3548. * src/HttpRequestCommand.cc
  3549. * src/HttpRequestCommand.h
  3550. * src/HttpSkipResponseCommand.cc
  3551. * src/InitiateConnectionCommand.cc
  3552. * src/InitiateConnectionCommand.h
  3553. * src/OptionHandlerFactory.cc
  3554. * src/OptionHandlerImpl.h
  3555. * src/Request.cc
  3556. * src/option_processing.cc
  3557. * src/prefs.cc
  3558. * src/prefs.h
  3559. * src/usage_text.h
  3560. * test/AuthConfigFactoryTest.cc
  3561. * test/HttpRequestTest.cc
  3562. * test/OptionHandlerTest.cc
  3563. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3564. Execute choking algorithm when unchoked and interested peer is
  3565. disconected.
  3566. * src/DefaultPeerStorage.cc
  3567. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Added testcase for BtNotInterestedMessage from unchoked peer.
  3569. * test/BtNotInterestedMessageTest.cc
  3570. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3571. Execute choking algorithm when BtInterestedMessage arrives from
  3572. unchoked peer.
  3573. * src/BtInterestedMessage.cc
  3574. * src/BtInterestedMessage.h
  3575. * src/DefaultBtMessageFactory.cc
  3576. * test/BtInterestedMessageTest.cc
  3577. * test/MockPeerStorage.h
  3578. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. AuthConfigFactory is now part of DownloadEngine.
  3580. * src/AbstractProxyRequestCommand.cc
  3581. * src/AuthConfigFactory.h
  3582. * src/DownloadEngine.cc
  3583. * src/DownloadEngine.h
  3584. * src/FtpConnection.cc
  3585. * src/FtpConnection.h
  3586. * src/FtpNegotiationCommand.cc
  3587. * src/HttpConnection.cc
  3588. * src/HttpRequest.cc
  3589. * src/HttpRequest.h
  3590. * src/HttpRequestCommand.cc
  3591. * src/HttpResponse.cc
  3592. * src/HttpResponseCommand.cc
  3593. * src/HttpSkipResponseCommand.cc
  3594. * src/MultiUrlRequestInfo.cc
  3595. * src/main.cc
  3596. * test/FtpConnectionTest.cc
  3597. * test/HttpRequestTest.cc
  3598. * test/HttpResponseTest.cc
  3599. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3600. Corrected catched exception type.
  3601. * src/ServerStatMan.cc
  3602. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. DNSCache is now part of DownloadEngine.
  3604. * src/DNSCache.h
  3605. * src/DownloadEngine.cc
  3606. * src/DownloadEngine.h
  3607. * src/InitiateConnectionCommand.cc
  3608. * src/MultiUrlRequestInfo.cc
  3609. * test/Makefile.am
  3610. * test/Makefile.in
  3611. * test/SimpleDNSCacheTest.cc
  3612. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3613. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3614. DownloadEngine.
  3615. * src/ActivePeerConnectionCommand.cc
  3616. * src/BtSetup.cc
  3617. * src/CUIDCounter.h
  3618. * src/DHTSetup.cc
  3619. * src/DownloadCommand.cc
  3620. * src/DownloadEngine.cc
  3621. * src/DownloadEngine.h
  3622. * src/DownloadEngineFactory.cc
  3623. * src/FileAllocationDispatcherCommand.cc
  3624. * src/InitiatorMSEHandshakeCommand.cc
  3625. * src/PeerInitiateConnectionCommand.cc
  3626. * src/PeerInteractionCommand.cc
  3627. * src/PeerListenCommand.cc
  3628. * src/RequestGroup.cc
  3629. * src/StreamFileAllocationEntry.cc
  3630. * src/TrackerWatcherCommand.cc
  3631. * src/main.cc
  3632. * test/RequestGroupManTest.cc
  3633. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. Implemented commented code in BtSeederStateChoke
  3635. * src/BtSeederStateChoke.cc
  3636. * src/Peer.cc
  3637. * src/Peer.h
  3638. * src/PeerInteractionCommand.cc
  3639. * src/PeerSessionResource.cc
  3640. * src/PeerSessionResource.h
  3641. * test/MockBtMessageDispatcher.h
  3642. * test/PeerSessionResourceTest.cc
  3643. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3644. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3645. its object.
  3646. * src/AbstractBtMessage.cc
  3647. * src/ActivePeerConnectionCommand.cc
  3648. * src/ActivePeerConnectionCommand.h
  3649. * src/BtContextAwareCommand.cc
  3650. * src/BtContextAwareCommand.h
  3651. * src/BtExtendedMessage.cc
  3652. * src/BtExtendedMessage.h
  3653. * src/BtInterestedMessage.cc
  3654. * src/BtInterestedMessage.h
  3655. * src/BtNotInterestedMessage.cc
  3656. * src/BtNotInterestedMessage.h
  3657. * src/BtRegistry.cc
  3658. * src/BtRegistry.h
  3659. * src/BtSeederStateChoke.cc
  3660. * src/BtSetup.cc
  3661. * src/DHTGetPeersCommand.cc
  3662. * src/DHTGetPeersCommand.h
  3663. * src/DHTPeerAnnounceEntry.cc
  3664. * src/DHTPeerAnnounceEntry.h
  3665. * src/DHTPeerAnnounceStorage.cc
  3666. * src/DHTPeerAnnounceStorage.h
  3667. * src/DHTPeerLookupTask.cc
  3668. * src/DHTPeerLookupTask.h
  3669. * src/DHTSetup.cc
  3670. * src/DHTSetup.h
  3671. * src/DHTTaskFactory.h
  3672. * src/DHTTaskFactoryImpl.cc
  3673. * src/DHTTaskFactoryImpl.h
  3674. * src/DefaultBtAnnounce.cc
  3675. * src/DefaultBtInteractive.cc
  3676. * src/DefaultBtInteractive.h
  3677. * src/DefaultBtMessageDispatcher.cc
  3678. * src/DefaultBtMessageDispatcher.h
  3679. * src/DefaultBtMessageFactory.cc
  3680. * src/DefaultBtMessageFactory.h
  3681. * src/DefaultBtMessageReceiver.cc
  3682. * src/DefaultBtProgressInfoFile.cc
  3683. * src/DefaultBtProgressInfoFile.h
  3684. * src/DefaultBtRequestFactory.cc
  3685. * src/DefaultBtRequestFactory.h
  3686. * src/DefaultExtensionMessageFactory.cc
  3687. * src/DefaultExtensionMessageFactory.h
  3688. * src/DefaultPeerStorage.cc
  3689. * src/DefaultPeerStorage.h
  3690. * src/DownloadEngine.cc
  3691. * src/DownloadEngine.h
  3692. * src/InitiatorMSEHandshakeCommand.cc
  3693. * src/InitiatorMSEHandshakeCommand.h
  3694. * src/MSEHandshake.cc
  3695. * src/MSEHandshake.h
  3696. * src/Makefile.am
  3697. * src/Makefile.in
  3698. * src/PeerChokeCommand.cc
  3699. * src/PeerChokeCommand.h
  3700. * src/PeerInitiateConnectionCommand.cc
  3701. * src/PeerInitiateConnectionCommand.h
  3702. * src/PeerInteractionCommand.cc
  3703. * src/PeerInteractionCommand.h
  3704. * src/PeerObject.h
  3705. * src/PeerReceiveHandshakeCommand.cc
  3706. * src/PeerReceiveHandshakeCommand.h
  3707. * src/ReceiverMSEHandshakeCommand.cc
  3708. * src/RequestGroup.cc
  3709. * src/RequestGroup.h
  3710. * src/RequestGroupMan.cc
  3711. * src/RequestGroupMan.h
  3712. * src/SeedCheckCommand.cc
  3713. * src/SeedCheckCommand.h
  3714. * src/ShareRatioSeedCriteria.h
  3715. * src/SimpleBtMessage.cc
  3716. * src/TrackerWatcherCommand.cc
  3717. * src/TrackerWatcherCommand.h
  3718. * src/UTPexExtensionMessage.cc
  3719. * src/UTPexExtensionMessage.h
  3720. * test/BtCancelMessageTest.cc
  3721. * test/BtChokeMessageTest.cc
  3722. * test/BtExtendedMessageTest.cc
  3723. * test/BtInterestedMessageTest.cc
  3724. * test/BtNotInterestedMessageTest.cc
  3725. * test/BtPieceMessageTest.cc
  3726. * test/BtPortMessageTest.cc
  3727. * test/BtRegistryTest.cc
  3728. * test/BtRejectMessageTest.cc
  3729. * test/BtRequestMessageTest.cc
  3730. * test/DHTPeerAnnounceEntryTest.cc
  3731. * test/DHTPeerAnnounceStorageTest.cc
  3732. * test/DefaultBtMessageDispatcherTest.cc
  3733. * test/DefaultBtMessageFactoryTest.cc
  3734. * test/DefaultBtProgressInfoFileTest.cc
  3735. * test/DefaultBtRequestFactoryTest.cc
  3736. * test/DefaultExtensionMessageFactoryTest.cc
  3737. * test/MSEHandshakeTest.cc
  3738. * test/MockDHTTaskFactory.h
  3739. * test/ShareRatioSeedCriteriaTest.cc
  3740. * test/UTPexExtensionMessageTest.cc
  3741. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. Fixed compiler warning.
  3743. * test/UtilTest.cc
  3744. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Treat Cookie object as session cookie if expiry = 0 is given.
  3746. With this change, you can specify session scoped cookies in an external
  3747. file setting expiry value to 0.
  3748. * src/Cookie.cc
  3749. * src/Cookie.h
  3750. * test/CookieParserTest.cc
  3751. * test/CookieStorageTest.cc
  3752. * test/CookieTest.cc
  3753. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Changed signature of DHTMessageFactory::createResponseMessage().
  3755. Removed unused validateIDMatch.
  3756. * src/DHTMessageFactory.h
  3757. * src/DHTMessageFactoryImpl.cc
  3758. * src/DHTMessageFactoryImpl.h
  3759. * src/DHTMessageTracker.cc
  3760. * test/DHTMessageFactoryImplTest.cc
  3761. * test/MockDHTMessageFactory.h
  3762. Dropped DHT message coming from same ID of localhost.
  3763. * src/DHTMessageReceiver.cc
  3764. Rejected adding node whose ID is the same as localhost's.
  3765. * src/DHTRoutingTable.cc
  3766. * test/BtPortMessageTest.cc
  3767. * test/DHTRoutingTableTest.cc
  3768. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Pool connection when redirection occurs with Content-Length = 0.
  3770. * src/HttpSkipResponseCommand.cc
  3771. * src/HttpSkipResponseCommand.h
  3772. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Fixed the bug that causes time out when redirection occurs with
  3774. content-length 0.
  3775. * src/HttpResponseCommand.cc
  3776. * src/HttpSkipResponseCommand.cc
  3777. * src/HttpSkipResponseCommand.h
  3778. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3779. Now each status legends is shown only when it appears in Download
  3780. Result. If Download Result has no item, then status legend will not
  3781. be printed.
  3782. * src/RequestGroupMan.cc
  3783. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Removed duplicate creation of OptionHandlers.
  3785. * src/option_processing.cc
  3786. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3787. Fixed the bug that causes segmentation fault when accessing files which
  3788. don't exist or are not included in --select-file option while
  3789. validating chunk checksum.
  3790. * src/MultiDiskAdaptor.cc
  3791. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Fixed compiler warning.
  3793. * test/UtilTest.cc
  3794. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3795. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3796. * src/IteratableChecksumValidator.cc
  3797. * src/IteratableChunkChecksumValidator.cc
  3798. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. * Release 0.16.2
  3800. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Added Serbian translation. Updated Ukrainian translation.
  3802. Thanks to all translators.
  3803. * po/sr.po
  3804. * po/uk.po
  3805. * po/LINGUAS
  3806. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3807. Bump up version number to 0.16.2
  3808. * configure.ac
  3809. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Added length equality test to operator== to drop a piece message
  3811. whose length does not match to the requested one.
  3812. * src/RequestSlot.cc
  3813. * test/DefaultBtMessageDispatcherTest.cc
  3814. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3815. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3816. recieved.
  3817. In this fix, if a request larger than 16KiB length is received, aria2
  3818. disconnects the peer.
  3819. * src/BtConstants.h
  3820. * src/PeerMessageUtil.cc
  3821. * src/PeerMessageUtil.h
  3822. * test/BtRequestMessageTest.cc
  3823. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. * Release 0.16.1
  3825. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3827. * doc/aria2c.1.txt
  3828. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3829. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3830. Updated French, Simplified Chinese and Japanese translations.
  3831. Thanks to all translators.
  3832. en@quot and en@boldquot are also added.
  3833. * po/LINGUAS
  3834. * po/fr.po
  3835. * po/ja.po
  3836. * po/uk.po
  3837. * po/vi.po
  3838. * po/zh_CN.po
  3839. * po/zh_TW.po
  3840. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Bump up version number to 0.16.1.
  3842. * configure.ac
  3843. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Updated README.
  3845. * README
  3846. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3847. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3848. not to replace '--' with em dash character.
  3849. * doc/aria2c.1.txt
  3850. * doc/makeman
  3851. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3852. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3853. every SEC seconds.
  3854. * src/DownloadEngineFactory.cc
  3855. * src/OptionHandlerFactory.cc
  3856. * src/option_processing.cc
  3857. * src/usage_text.h
  3858. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Fixed compile warning on linux-amd64
  3860. * src/FtpConnection.cc
  3861. * src/IteratableChunkChecksumValidator.cc
  3862. * src/MultiDiskAdaptor.cc
  3863. Fixed the bug that unit test fails on linux-amd64
  3864. * test/UtilTest.cc
  3865. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Added --dht-file-path option to change the path to dht.dat, which is a
  3867. serialized DHT routing table.
  3868. * src/OptionHandlerFactory.cc
  3869. * src/option_processing.cc
  3870. * src/usage_text.h
  3871. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3872. Fixed possible underflow.
  3873. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3874. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. Fixed the bug that last character in URI is not encoded.
  3876. * src/Request.cc
  3877. * test/RequestTest.cc
  3878. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Fixed the bug that referer header field contains fragment.
  3880. Now Request class removes fragment part of URI and encodes it
  3881. in Request::setUri() and setReferer().
  3882. * src/Request.h
  3883. * src/Request.cc
  3884. * test/RequestTest.cc
  3885. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Added missing m4 macros.
  3887. * m4/cppunit.m4
  3888. * m4/libgcrypt.m4
  3889. * m4/libgnutls-extra.m4
  3890. * m4/libgnutls.m4
  3891. * m4/libxml2.m4
  3892. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Fixed compile error with gcc-4.4(snapshot)
  3894. * src/File.cc
  3895. * src/FtpConnection.cc
  3896. * src/OptionHandlerImpl.h
  3897. * src/Util.cc
  3898. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Removed assert()
  3900. * src/SocketBuffer.cc (SocketBuffer::send)
  3901. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. Changed the type of _numNewConnection to unsigned int.
  3903. * src/ActivePeerConnectionCommand.cc
  3904. * src/ActivePeerConnectionCommand.h
  3905. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. * Release 0.16.0
  3907. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3908. Updated doc
  3909. * README
  3910. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3912. translations. Thanks to all translators.
  3913. * po/bg.po
  3914. * po/de.po
  3915. * po/fr.po
  3916. * po/ja.po
  3917. * po/zh_CN.po
  3918. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3919. Bump up version number to 0.16.0.
  3920. * configure.ac
  3921. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3923. int32_t.
  3924. Changed the type of count to int32_t.
  3925. * src/Metalink2RequestGroup.cc
  3926. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Added test for Time::elapsed(time_t).
  3928. * test/TimeTest.cc
  3929. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3931. Util::difftv() should be used instead.
  3932. * src/TimeA2.cc
  3933. * src/TimeA2.h
  3934. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Made socket for dht connections non-blocking
  3936. * src/DHTAbstractMessage.cc
  3937. * src/DHTAbstractMessage.h
  3938. * src/DHTConnection.h
  3939. * src/DHTConnectionImpl.cc
  3940. * src/DHTConnectionImpl.h
  3941. * src/DHTMessage.h
  3942. * src/DHTMessageDispatcherImpl.cc
  3943. * src/DHTMessageDispatcherImpl.h
  3944. * src/DHTUnknownMessage.cc
  3945. * src/DHTUnknownMessage.h
  3946. * src/SocketCore.cc
  3947. * src/SocketCore.h
  3948. * test/MockDHTMessage.h
  3949. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3950. Changed the type of offset to int.
  3951. * src/ParameterizedStringParser.cc
  3952. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Made getAsInt() return int32_t
  3954. * src/Option.h
  3955. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3957. build.
  3958. * configure.ac
  3959. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Use sqlite3_open if sqlite3_open_v2 is not available.
  3961. * src/Sqlite3MozCookieParser.cc
  3962. * src/Sqlite3MozCookieParser.h
  3963. * m4/sqlite3.m4
  3964. * test/Sqlite3MozCookieParserTest.cc
  3965. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3966. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3967. * src/BtPieceMessage.cc
  3968. * src/DHTPeerAnnounceStorage.cc
  3969. * src/DefaultPieceStorage.cc
  3970. * src/DownloadCommand.cc
  3971. * src/DownloadEngine.cc
  3972. * src/FtpConnection.cc
  3973. * src/PeerConnection.cc
  3974. * src/PeerMessageUtil.cc
  3975. * src/RequestGroup.cc
  3976. * src/RequestGroupMan.cc
  3977. * src/SimpleBtMessage.cc
  3978. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3980. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3981. * src/AbstractDiskWriter.cc
  3982. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3983. Don't set Request::supportsPersistentConnection() in HttpConnection
  3984. since this code is also used in AbstractProxyResponseCommand.
  3985. Moved those code to HttpResponse.
  3986. * src/HttpResponse.cc
  3987. * src/HttpResponse.h
  3988. * src/HttpConnection.cc
  3989. * src/HttpConnection.h
  3990. * src/HttpResponseCommand.cc
  3991. * test/HttpResponseTest.cc
  3992. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3994. The configuration is minimum: no torrent, no metalink, so there may be
  3995. other compile error on their code.
  3996. * src/a2netcompat.h
  3997. * src/File.cc
  3998. * src/File.h
  3999. * src/SocketCore.cc
  4000. * src/SocketCore.h
  4001. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4002. Made a socket of incoming peer non-blocking.
  4003. * src/PeerListenCommand.cc
  4004. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4006. whole message data is not sent in one send() call.
  4007. * src/BtPieceMessage.cc
  4008. * src/BtPieceMessage.h
  4009. * src/PeerConnection.cc
  4010. * src/PeerConnection.h
  4011. * src/SimpleBtMessage.cc
  4012. * src/SimpleBtMessage.h
  4013. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Fixed the bug that aria2 downloads faster than max-download-limit when
  4015. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4016. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4017. , instead of sum of them.
  4018. * src/ActivePeerConnectionCommand.cc
  4019. * src/DefaultBtInteractive.cc
  4020. * src/DownloadCommand.cc
  4021. * src/PeerInteractionCommand.cc
  4022. * src/PeerReceiveHandshakeCommand.cc
  4023. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4024. Fixed the bug that HTTPS download fails.
  4025. * src/AbstractCommand.cc
  4026. * src/AbstractCommand.h
  4027. * src/DownloadCommand.cc
  4028. * src/FtpConnection.cc
  4029. * src/HttpConnection.cc
  4030. * src/HttpRequestCommand.cc
  4031. * src/HttpResponseCommand.cc
  4032. * src/HttpSkipResponseCommand.cc
  4033. * src/MSEHandshake.cc
  4034. * src/PeerConnection.cc
  4035. * src/SocketCore.cc
  4036. * src/SocketCore.h
  4037. Fixed the bug that aria2 doesn't download whole content body and cannot
  4038. reuse connection if chunked transfer encoding and gzip content encoding
  4039. are set.
  4040. * src/DownloadCommand.cc
  4041. * src/HttpSkipResponseCommand.cc
  4042. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Updated man page.
  4044. * doc/aria2c.1.txt
  4045. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. When error occurred while aria2 was parsing an .aria2.conf file, print
  4047. the usage of the option that caused error.
  4048. * src/option_processing.cc
  4049. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Fixed compile error on OptionHandlerException
  4051. * src/Makefile.am
  4052. * src/OptionHandlerException.cc
  4053. * src/OptionHandlerException.h
  4054. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4055. Moved message of the error to OptionHandlerException.h
  4056. * src/NameMatchOptionHandler.h
  4057. * src/OptionHandlerException.h
  4058. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. When error occurs while aria2 is parsing an command-line option, print
  4060. the usage of the option.
  4061. * src/Makefile.am
  4062. * src/NameMatchOptionHandler.h
  4063. * src/OptionHandlerException.h
  4064. * src/option_processing.cc
  4065. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4066. Reverted previous change.
  4067. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4068. username is not in URI.
  4069. * src/HttpRequest.cc
  4070. * src/Request.cc
  4071. * test/HttpRequestTest.cc
  4072. * test/RequestTest.cc
  4073. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Now colon is required for username and password in FTP URL, like:
  4075. ftp://username:password@host.
  4076. If colon is not there, aria2 don't parse it as a username. For example,
  4077. aria2 don't retrieve username from ftp://username@host.
  4078. This fix was made in order to login FTP server via non-transparent ftp
  4079. proxy.
  4080. * src/Request.cc
  4081. * test/RequestTest.cc
  4082. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Use netrc for HTTP.
  4084. Now FTP user/password is sent in Authorization header when
  4085. --ftp-via-http-proxy=get is given.
  4086. * src/AuthConfigFactory.cc
  4087. * src/HttpRequest.cc
  4088. * src/HttpRequest.h
  4089. * src/NetrcAuthResolver.cc
  4090. * src/NetrcAuthResolver.h
  4091. * src/OptionHandlerFactory.cc
  4092. * src/option_processing.cc
  4093. * src/prefs.cc
  4094. * src/prefs.h
  4095. * test/AuthConfigFactoryTest.cc
  4096. * test/HttpRequestTest.cc
  4097. * test/NetrcAuthResolverTest.cc
  4098. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4099. Issue PWD command first and get working directory and use it as a prefix
  4100. for CWD command.
  4101. * src/DownloadEngine.cc
  4102. * src/DownloadEngine.h
  4103. * src/FtpConnection.cc
  4104. * src/FtpConnection.h
  4105. * src/FtpFinishDownloadCommand.cc
  4106. * src/FtpInitiateConnectionCommand.cc
  4107. * src/FtpNegotiationCommand.cc
  4108. * src/FtpNegotiationCommand.h
  4109. * test/FtpConnectionTest.cc
  4110. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Removed default user/pass for FTP user/pass, since it should not have
  4112. precedence over netrc configuration by default.
  4113. * src/OptionHandlerFactory.cc
  4114. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Added debug log for socket event.
  4116. * src/AbstractCommand.cc
  4117. * src/PeerAbstractCommand.cc
  4118. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Log microseconds.
  4120. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4121. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4122. Replaced HelpItem.cc with OptionHandler.cc.
  4123. * po/POTFILES.in
  4124. Updated po files with 'make update-po'
  4125. * po/aria2c.pot
  4126. * po/*.po
  4127. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Removed possible values from the text.
  4129. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4130. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4131. Removed unused preferences:
  4132. PREF_NO_PREALLOCATION
  4133. PREF_STDOUT_LOG
  4134. PREF_TRACKER_MAX_TRIES
  4135. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4136. PREF_MIN_SEGMENT_SIZE
  4137. * src/option_processing.cc
  4138. * src/prefs.cc
  4139. * src/prefs.h
  4140. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Integrated HelpItem into OptionParser to ease the workload for adding
  4142. new options. Removed default value from usage text.
  4143. * src/HelpItem.cc: Removed.
  4144. * src/HelpItem.h: Removed.
  4145. * src/HelpItemFactory.cc: Removed.
  4146. * src/HelpItemFactory.h: Removed.
  4147. * src/Makefile.am
  4148. * src/Makefile.in
  4149. * src/NameMatchOptionHandler.h
  4150. * src/OptionHandler.cc
  4151. * src/OptionHandler.h
  4152. * src/OptionHandlerFactory.cc
  4153. * src/OptionHandlerImpl.h
  4154. * src/OptionParser.cc
  4155. * src/OptionParser.h
  4156. * src/TagContainer.cc: Removed.
  4157. * src/TagContainer.h: Removed.
  4158. * src/TaggedItem.cc: Removed.
  4159. * src/TaggedItem.h: Removed.
  4160. * src/main.cc
  4161. * src/option_processing.cc
  4162. * src/usage_text.h
  4163. * src/version_usage.cc
  4164. * test/HelpItemTest.cc: Removed.
  4165. * test/Makefile.am
  4166. * test/Makefile.in
  4167. * test/OptionHandlerTest.cc
  4168. * test/OptionParserTest.cc
  4169. * test/TagContainerTest.cc: Removed.
  4170. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Moved `TransferStat stat = ...' to inside the `if' clause.
  4172. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4173. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Fixed the bug that a block in a piece is requested when same block is
  4175. already requested to the same peer in end game mode.
  4176. * src/BtRequestFactory.h
  4177. * src/DefaultBtInteractive.cc
  4178. * src/DefaultBtRequestFactory.cc
  4179. * src/DefaultBtRequestFactory.h
  4180. * src/DefaultPieceStorage.cc
  4181. * src/DefaultPieceStorage.h
  4182. * src/PieceStorage.h
  4183. * src/UnknownLengthPieceStorage.cc
  4184. * src/UnknownLengthPieceStorage.h
  4185. * test/DefaultBtRequestFactoryTest.cc
  4186. * test/DefaultPieceStorageTest.cc
  4187. * test/MockBtRequestFactory.h
  4188. * test/MockPieceStorage.h
  4189. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Removed _uploadLength and _downloadLength from PeerSessionResource
  4191. and use PeerStat::_sessionUploadLength and
  4192. PeerStat::_sessionDownloadLength.
  4193. * src/PeerSessionResource.cc
  4194. * src/PeerSessionResource.h
  4195. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4196. Fixed the bug that prefixLength of split bucket which doesn't include
  4197. local node ID is incremented.
  4198. * src/DHTBucket.cc
  4199. * src/DHTBucket.h
  4200. * test/DHTBucketTest.cc
  4201. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4202. Added cookies.sqlite to EXTRA_DIST
  4203. * test/Makefile.am
  4204. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4205. Added Turkish translation. Updated French, German, Russian and
  4206. Simplified Chinese translations. Thanks to all translators.
  4207. * po/LINGUAS
  4208. * po/de.po
  4209. * po/fr.po
  4210. * po/ru.po
  4211. * po/tr.po
  4212. * po/zh_CN.po
  4213. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Added deliminating text to the beginning of the log so that one can find
  4215. where the log starts easily.
  4216. * src/main.cc
  4217. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4219. to fix compile error when async DNS is not enabled by configuration.
  4220. * src/AbstractCommand.cc
  4221. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. If establishing conneciton to a server is failed, then mark error on
  4223. its ServerStat.
  4224. Added the cause of error to log when error event occurred.
  4225. Moved message string to message.h for translation.
  4226. * src/AbstractCommand.cc
  4227. * src/AbstractCommand.h
  4228. * src/FtpNegotiationCommand.cc
  4229. * src/HttpRequestCommand.cc
  4230. * src/PeerAbstractCommand.cc
  4231. * src/message.h
  4232. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Added the function to get error message from socket.
  4234. * src/SocketCore.cc
  4235. * src/SocketCore.h
  4236. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4237. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4238. * src/RequestGroupMan.cc
  4239. * src/RequestGroupMan.h
  4240. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. If error event is received in epoll, then abort download immediately.
  4242. * src/AbstractCommand.cc
  4243. * src/Command.cc
  4244. * src/Command.h
  4245. * src/DownloadEngine.cc
  4246. * src/PeerAbstractCommand.cc
  4247. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Added usage message for --uri-selector, --server-stat-of,
  4249. --server-stat-in, --server-stat-timeout options.
  4250. * src/HelpItemFactory.cc
  4251. * src/usage_text.h
  4252. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Added upper limit of FTP response buffer. The current implementation
  4254. uses 4096bytes as a limit.
  4255. * src/FtpConnection.cc
  4256. * src/FtpConnection.h
  4257. * test/FtpConnectionTest.cc
  4258. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Use non-blocking socket for TCP communication to avoid possible
  4260. blocking due to buffer full.
  4261. * src/AbstractProxyRequestCommand.cc
  4262. * src/FtpConnection.cc
  4263. * src/FtpConnection.h
  4264. * src/FtpNegotiationCommand.cc
  4265. * src/FtpNegotiationCommand.h
  4266. * src/HttpConnection.cc
  4267. * src/HttpConnection.h
  4268. * src/HttpRequestCommand.cc
  4269. * src/InitiatorMSEHandshakeCommand.cc
  4270. * src/InitiatorMSEHandshakeCommand.h
  4271. * src/MSEHandshake.cc
  4272. * src/MSEHandshake.h
  4273. * src/Makefile.am
  4274. * src/PeerConnection.cc
  4275. * src/PeerConnection.h
  4276. * src/PeerInteractionCommand.cc
  4277. * src/PeerListenCommand.cc
  4278. * src/ReceiverMSEHandshakeCommand.cc
  4279. * src/ReceiverMSEHandshakeCommand.h
  4280. * src/SocketBuffer.cc
  4281. * src/SocketBuffer.h
  4282. * src/SocketCore.cc
  4283. * src/SocketCore.h
  4284. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Call setStatusRealtime() in constructor.
  4286. * src/RealtimeCommand.cc
  4287. * src/RealtimeCommand.h
  4288. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Call Download::setNoWait(true) to execute newly created command without
  4290. a pause.
  4291. * src/AbstractCommand.cc
  4292. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4294. found' error from HTTP/FTP server NUM times without getting single
  4295. bytes of data, then force the download to fail.
  4296. Basically aria2 tris all URIs available. So if long list of URIs are
  4297. specified in Metalink, then aria2 will take a long time to fail
  4298. eventually if all URIs are outdated. This option eases this situation
  4299. to limit the number of servers to try.
  4300. * src/FtpNegotiationCommand.cc
  4301. * src/HelpItemFactory.cc
  4302. * src/HttpResponseCommand.cc
  4303. * src/OptionHandlerFactory.cc
  4304. * src/PeerStat.h
  4305. * src/RequestGroup.cc
  4306. * src/RequestGroup.h
  4307. * src/SegmentMan.cc
  4308. * src/SegmentMan.h
  4309. * src/option_processing.cc
  4310. * src/prefs.cc
  4311. * src/prefs.h
  4312. * src/usage_text.h
  4313. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4315. response even if more than one response is in it.
  4316. * src/FtpConnection.cc
  4317. * src/FtpConnection.h
  4318. * test/FtpConnectionTest.cc
  4319. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4320. Merged from stable-0.15
  4321. * m4/libcares.m4
  4322. Use pkg-config
  4323. * m4/sqlite3.m4
  4324. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Removed unnecessary if statement.
  4326. * src/DefaultPieceStorage.cc (initPieceStorage)
  4327. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Added --connect-timeout option to specify connect timeout in seconds.
  4329. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4330. connecting to BitTorrent peer is not controlled by this option.
  4331. * src/AbstractProxyRequestCommand.cc
  4332. * src/FtpNegotiationCommand.cc
  4333. * src/HelpItemFactory.cc
  4334. * src/HttpRequestCommand.cc
  4335. * src/OptionHandlerFactory.cc
  4336. * src/option_processing.cc
  4337. * src/prefs.cc
  4338. * src/prefs.h
  4339. * src/usage_text.h
  4340. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Added help message for -R option.
  4342. * src/HelpItemFactory.cc
  4343. * src/usage_text.h
  4344. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Added the message that the time is in local time zone.
  4346. * src/RequestGroup.cc
  4347. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4348. Implemented the ability to get timestamp from remote FTP server using
  4349. MDTM command described in RFC3659.
  4350. * src/FtpConnection.cc
  4351. * src/FtpConnection.h
  4352. * src/FtpNegotiationCommand.cc
  4353. * src/FtpNegotiationCommand.h
  4354. * test/FtpConnectionTest.cc
  4355. * test/Makefile.am
  4356. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Implemented the ability to get timestamp from remote HTTP server and
  4358. apply it to local file. To enable this feature, --remote-time option
  4359. is added. No usage text has been written yet.
  4360. If several servers returns difference timestamp, then aria2 uses latest
  4361. one.
  4362. * src/CopyDiskAdaptor.cc
  4363. * src/CopyDiskAdaptor.h
  4364. * src/DirectDiskAdaptor.cc
  4365. * src/DirectDiskAdaptor.h
  4366. * src/DiskAdaptor.h
  4367. * src/File.cc
  4368. * src/File.h
  4369. * src/HttpHeader.cc
  4370. * src/HttpHeader.h
  4371. * src/HttpResponse.cc
  4372. * src/HttpResponse.h
  4373. * src/HttpResponseCommand.cc
  4374. * src/HttpResponseCommand.h
  4375. * src/MultiDiskAdaptor.cc
  4376. * src/MultiDiskAdaptor.h
  4377. * src/OptionHandlerFactory.cc
  4378. * src/RequestGroup.cc
  4379. * src/RequestGroup.h
  4380. * src/RequestGroupMan.cc
  4381. * src/option_processing.cc
  4382. * src/prefs.cc
  4383. * src/prefs.h
  4384. * test/CopyDiskAdaptorTest.cc
  4385. * test/FileTest.cc
  4386. * test/Makefile.am
  4387. * test/Makefile.in
  4388. * test/MultiDiskAdaptorTest.cc
  4389. * test/TestUtil.cc
  4390. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. Fixed the bug that DiskWriterEntry is not created when its
  4392. FileEntry.isRequested() is false and it doesn't share a piece with
  4393. other FileEntries that are requested. This bug causes segmentation fault
  4394. in the end.
  4395. * src/MultiDiskAdaptor.cc
  4396. * src/MultiDiskAdaptor.h
  4397. * src/MultiFileAllocationIterator.cc
  4398. * test/MultiDiskAdaptorTest.cc
  4399. * test/MultiFileAllocationIteratorTest.cc
  4400. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4401. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4402. called if the number of file entries are greater than max open files.
  4403. * src/AbstractSingleDiskAdaptor.cc
  4404. * src/AbstractSingleDiskAdaptor.h
  4405. * src/DiskAdaptor.h
  4406. * src/MultiDiskAdaptor.cc
  4407. * src/MultiDiskAdaptor.h
  4408. * test/MultiDiskAdaptorTest.cc
  4409. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Added a constuctor that receives struct timeval.
  4411. Added operator<.
  4412. * src/TimeA2.cc
  4413. * src/TimeA2.h
  4414. * test/TimeTest.cc
  4415. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4416. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4417. * src/CookieParser.cc
  4418. * test/CookieParserTest.cc
  4419. * test/HttpResponseTest.cc
  4420. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Implmented the functions to parse date.
  4422. * src/TimeA2.cc
  4423. * src/TimeA2.h
  4424. * test/TimeTest.cc
  4425. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Added "Firefox3 Cookie" feature to FeatureConfig
  4427. * src/FeatureConfig.cc
  4428. * src/FeatureConfig.h
  4429. * test/FeatureConfigTest.cc
  4430. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Bump up version number to 0.16.0b
  4432. * configure.ac
  4433. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Use pkg-config if is is available.
  4435. * m4/openssl.m4
  4436. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4438. * src/BtAnnounce.h
  4439. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. If an error occurred with a URI, remove identical URI from remaining
  4441. URI list because it is likely that same error occurred in the end and it
  4442. is waste of time.
  4443. * src/AbstractCommand.cc
  4444. * src/RequestGroup.cc
  4445. * src/RequestGroup.h
  4446. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4447. Removed wrong comment.
  4448. * src/DefaultPeerStorage.cc
  4449. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4451. Added return value of getpid() to argument of srand() to achieve more
  4452. randomized value.
  4453. * src/SimpleRandomizer.cc
  4454. * src/SimpleRandomizer.h
  4455. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Contact tracker frequently when the number of connections are 0 and
  4457. download is not finished yet.
  4458. * src/ActivePeerConnectionCommand.cc
  4459. * src/BtAnnounce.h
  4460. * src/DefaultBtAnnounce.cc
  4461. * src/DefaultBtAnnounce.h
  4462. * test/MockBtAnnounce.h
  4463. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Moved threshold values to UTPexExtensionMessage.
  4465. * src/DefaultBtInteractive.cc
  4466. * src/Peer.cc
  4467. * src/Peer.h
  4468. * src/UTPexExtensionMessage.cc
  4469. * src/UTPexExtensionMessage.h
  4470. * test/UTPexExtensionMessageTest.cc
  4471. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Added _incoming member to Peer class and made it true if the peer
  4473. initiated connection. Don't add those peer to UTPex message.
  4474. If extended handshake is received, assign _incoming to false.
  4475. * src/DefaultBtInteractive.cc
  4476. * src/HandshakeExtensionMessage.cc
  4477. * src/Peer.cc
  4478. * src/Peer.h
  4479. * src/PeerListenCommand.cc
  4480. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4481. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4482. Encoding Decoder. Removed size threshold for turning off on the fly
  4483. inflation because resulting file may or may not be inflated depending
  4484. on the file size and I think it is not expected by users.
  4485. This change fixes segmentation fault when Metalink file contains gzipped
  4486. file and its filesize is provided.
  4487. * src/HttpResponseCommand.cc
  4488. * src/HttpResponseCommand.h
  4489. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Made Cookie immutable.
  4491. * src/Cookie.cc
  4492. * src/Cookie.h
  4493. * src/CookieParser.cc
  4494. * src/CookieParser.h
  4495. * src/CookieStorage.cc
  4496. * test/CookieParserTest.cc
  4497. * test/CookieStorageTest.cc
  4498. * test/NsCookieParserTest.cc
  4499. * test/Sqlite3MozCookieParserTest.cc
  4500. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Removed CookieBox, CookieBoxFactory.
  4502. * src/CookieBox.cc
  4503. * src/CookieBox.h
  4504. * src/CookieBoxFactory.cc
  4505. * src/CookieBoxFactory.h
  4506. * src/Makefile.am
  4507. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Use CookieStorage class instead of CookieBox class.
  4509. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4510. * src/AbstractProxyRequestCommand.cc
  4511. * src/CookieStorage.cc
  4512. * src/DownloadEngine.cc
  4513. * src/DownloadEngine.h
  4514. * src/HttpConnection.cc
  4515. * src/HttpConnection.h
  4516. * src/HttpRequest.cc
  4517. * src/HttpRequest.h
  4518. * src/HttpRequestCommand.cc
  4519. * src/HttpResponse.cc
  4520. * src/HttpResponseCommand.cc
  4521. * src/HttpSkipResponseCommand.cc
  4522. * src/Makefile.am
  4523. * src/MultiUrlRequestInfo.cc
  4524. * src/Request.cc
  4525. * src/Request.h
  4526. * src/main.cc
  4527. * test/AllTest.cc
  4528. * test/CookieStorageTest.cc
  4529. * test/CookieTest.cc
  4530. * test/HttpRequestTest.cc
  4531. * test/HttpResponseTest.cc
  4532. * test/Makefile.am
  4533. * test/NsCookieParserTest.cc
  4534. * test/Sqlite3MozCookieParserTest.cc
  4535. * test/nscookietest.txt
  4536. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Updated
  4538. * test/Cookies.sqlite
  4539. * test/nscookietest.txt
  4540. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4541. Added tests for CookieStorage::load()
  4542. * test/CookieStorageTest.cc
  4543. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Added CookieStorage class which is based on RFC2109 and manages cookies
  4545. more strictly than CookieBox and CookieBoxFactory class.
  4546. * src/CookieStorage.cc
  4547. * src/CookieStorage.h
  4548. * src/Cookie.cc
  4549. * src/Cookie.h
  4550. * test/CookieStorageTest.cc
  4551. * test/CookieTest.cc
  4552. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Fixed the bug that commands are created more than the number of pieces.
  4554. * src/RequestGroup.cc
  4555. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Fixed infinite loop bug in FTP when SIZE command failed.
  4557. * src/FtpNegotiationCommand.cc
  4558. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Removed DirectDiskAdaptorTest.h
  4560. * test/Makefile.am
  4561. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Fixed chunk checksum validation cannot detect trailing garbage data.
  4563. BUG#2074141
  4564. * src/AbstractSingleDiskAdaptor.cc
  4565. * src/AbstractSingleDiskAdaptor.h
  4566. * src/CheckIntegrityEntry.cc
  4567. * src/CheckIntegrityEntry.h
  4568. * src/DiskAdaptor.h
  4569. * src/MultiDiskAdaptor.cc
  4570. * src/MultiDiskAdaptor.h
  4571. * src/RequestGroup.cc
  4572. * test/DirectDiskAdaptorTest.cc
  4573. * test/MultiDiskAdaptorTest.cc
  4574. * test/TestUtil.cc
  4575. * test/TestUtil.h
  4576. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. Bump up version number of dht.dat file to 3. In version 3 format, time
  4578. is stored in 64bit, network byte order.
  4579. New build can load old format(version 2) but it saves the file in new
  4580. format. It means once you used new build, your dht.dat becomes
  4581. incompatible with older build.
  4582. * src/DHTRoutingTableDeserializer.cc
  4583. * src/DHTRoutingTableSerializer.cc
  4584. * test/DHTRoutingTableSerializerTest.cc
  4585. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4587. * test/Makefile.am
  4588. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Bump up version number of .aria2 control file to 0001.
  4590. New aria2 can still load version 0000 file but it saves the file in
  4591. version 0001 format. It means that new aria2 can resume download
  4592. started by old aria2 but the opposite is not true.
  4593. * src/DefaultBtProgressInfoFile.cc
  4594. * src/DefaultBtProgressInfoFile.h
  4595. * test/DefaultBtProgressInfoFileTest.cc
  4596. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. Added ntoh64 and hton64 as inline functions.
  4598. * src/Util.cc
  4599. * test/UtilTest.cc
  4600. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Added sqlite3 depenency and Firefox3 cookie support.
  4602. * README
  4603. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. State that firefox3 cookie is supported explicitly in the usage.
  4605. * src/usage_text.h
  4606. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Externalized message.
  4608. * src/RequestGroupMan.cc
  4609. * src/message.h
  4610. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Save temporary file first and rename to the destination on success.
  4612. Added test cases.
  4613. * src/RequestGroupMan.cc
  4614. * test/RequestGroupManTest.cc
  4615. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. Fixed the bug that the number of connected peer is exceeding the limit
  4617. (55 by default) in seeding mode.
  4618. Multiplied 0.8 to _maxUploadSpeedLimit.
  4619. * src/ActivePeerConnectionCommand.cc
  4620. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4621. Clear table item.
  4622. * src/Dictionary.cc
  4623. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Fixed error handling of lseek.
  4625. * src/AbstractDiskWriter.cc
  4626. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4628. style cookie file.
  4629. * src/usage_text.h
  4630. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4632. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4633. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4634. * src/Util.cc
  4635. * src/Util.h
  4636. * src/CookieParser.cc
  4637. * test/UtilTest.cc
  4638. * test/CookieParserTest.cc
  4639. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4640. Separate the implementation to load old mozilla format of cookie to
  4641. NsCookieParser class.
  4642. * src/CookieBoxFactory.cc
  4643. * src/CookieBoxFactory.h
  4644. * src/NsCookieParser.cc
  4645. * src/NsCookieParser.h
  4646. * test/NsCookieParserTest.cc
  4647. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. Made parse() const
  4649. * src/Sqlite3MozCookieParser.cc
  4650. * src/Sqlite3MozCookieParser.h
  4651. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Added firefox3 cookie support based on the patch submitted by
  4653. tizianomueller.
  4654. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4655. this functionality.
  4656. * configure.ac
  4657. * m4/sqlite3.m4
  4658. * src/CookieBoxFactory.cc
  4659. * src/CookieBoxFactory.h
  4660. * src/Makefile.am
  4661. * src/Makefile.in
  4662. * src/Sqlite3MozCookieParser.cc
  4663. * src/Sqlite3MozCookieParser.h
  4664. * src/main.cc
  4665. * test/CookieBoxFactoryTest.cc
  4666. * test/Makefile.am
  4667. * test/Makefile.in
  4668. * test/Sqlite3MozCookieParserTest.cc
  4669. * test/badcookies.sqlite
  4670. * test/cookies.sqlite
  4671. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Added Danish and Greek translations.
  4673. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4674. Great thanks to all translators.
  4675. * po/LINGUAS
  4676. * po/el.po
  4677. * po/da.po
  4678. * po/es.po
  4679. * po/ca.po
  4680. * po/nn.po
  4681. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4682. Fixed man page: --follow-bittorrent should be --follow-torrent
  4683. * doc/aria2c.1.txt
  4684. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Fixed: numCommand is less than the value specified in -C option.
  4686. * src/RequestGroup.cc
  4687. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4688. Fixed occasional assertion failure in PieceSegment.
  4689. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4690. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4691. creation of duplicate segments and one of the segment was finished then
  4692. assertion failure was caused.
  4693. * src/SegmentMan.cc
  4694. * test/SegmentManTest.cc
  4695. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4696. Added options to load/save the server's performance/status to a file
  4697. and the timeout to drop their data.
  4698. --server-stat-of=FILE specifies the file to which performance data
  4699. is saved.
  4700. --server-stat-if=FILE specifies the file to read previously saved
  4701. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4702. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4703. TIMEOUT is specified in seconds and the default value is 24hours.
  4704. * src/MultiUrlRequestInfo.cc
  4705. * src/OptionHandlerFactory.cc
  4706. * src/RequestGroupMan.cc
  4707. * src/RequestGroupMan.h
  4708. * src/ServerStatMan.cc
  4709. * src/ServerStatMan.h
  4710. * src/option_processing.cc
  4711. * src/prefs.cc
  4712. * src/prefs.h
  4713. * test/ServerStatManTest.cc
  4714. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4716. * src/ServerStatMan.cc
  4717. * src/ServerStatMan.h
  4718. * test/ServerStatManTest.cc
  4719. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Implemented ServerStatMan::load(...) function and its test case.
  4721. * src/ServerStat.cc
  4722. * src/ServerStat.h
  4723. * src/ServerStatMan.cc
  4724. * test/ServerStatManTest.cc
  4725. * test/ServerStatTest.cc
  4726. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4727. Use time_t instead of int32_t. Use int64_t where milli second is
  4728. expected.
  4729. * src/TimeA2.cc
  4730. * src/TimeA2.h
  4731. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4732. Implemented ServerStatMan::save(...) function and its test case.
  4733. * src/ServerStat.cc
  4734. * src/ServerStat.h
  4735. * src/ServerStatMan.cc
  4736. * src/ServerStatMan.h
  4737. * test/ServerStatManTest.cc
  4738. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Now aria2 uses name attribute in Metalink as local filename in
  4740. BitTorrent downloads. BUG#2033999
  4741. * src/BtContext.h
  4742. * src/BtDependency.cc
  4743. * src/DefaultBtContext.cc
  4744. * src/DefaultBtContext.h
  4745. * src/SingleFileDownloadContext.cc
  4746. * src/SingleFileDownloadContext.h
  4747. * test/BtDependencyTest.cc
  4748. * test/DefaultBtContextTest.cc
  4749. * test/MockBtContext.h
  4750. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Added AC_C_BIGENDIAN
  4752. * src/configure.ac
  4753. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Limited numCommand less than or equal to the number of piece.
  4755. * src/RequestGroup.cc
  4756. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4758. directive.
  4759. * test/DefaultPieceStorageTest.cc
  4760. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Fixed memory leak in test code
  4762. * test/AnnounceListTest.cc
  4763. * test/DefaultPeerListProcessorTest.cc
  4764. * test/DefaultPeerStorageTest.cc
  4765. * test/MetaFileUtilTest.cc
  4766. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4768. * src/DefaultPieceStorage.cc
  4769. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Initialized _directIOAllowed
  4771. * src/MultiDiskAdaptor.cc
  4772. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Fixed memory leak
  4774. * src/GZipDecoder.cc
  4775. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. Fixed memory leak
  4777. * src/MetalinkParserStateMachine.cc
  4778. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Fixed memory leak
  4780. * src/Dictionary.cc
  4781. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Fixed memory leak
  4783. * src/IteratableChunkChecksumValidator.h
  4784. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Fixed unmatched malloc/free.
  4786. * src/IteratableChunkChecksumValidator.cc
  4787. * src/IteratableChecksumValidator.cc
  4788. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Removed max chunk size check. This change fixes BUG#2040169
  4790. * src/ChunkedDecoder.cc
  4791. * src/ChunkedDecoder.h
  4792. * test/ChunkedDecoderTest.cc
  4793. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4794. Implemented download speed based URI selection algorithm.
  4795. Introduced new option --uri-selector.
  4796. If --uri-selector=feedback is given, aria2 uses download speed observed
  4797. in the previous downloads and chooses fastest server in the URI list.
  4798. Currently at most 10 URIs are considered to introduce randomeness for
  4799. finding better servers. The speed is average download speed in the
  4800. downloads.
  4801. On the other hand, if --uri-selector=inorder is given, which is default,
  4802. URI is tried in order in URI list.
  4803. The usage text for the new option has not been written yet.
  4804. * src/AbstractCommand.cc
  4805. * src/DownloadCommand.cc
  4806. * src/DownloadEngine.cc
  4807. * src/DownloadEngineFactory.cc
  4808. * src/InOrderURISelector.cc
  4809. * src/InOrderURISelector.h
  4810. * src/OptionHandlerFactory.cc
  4811. * src/PeerStat.h
  4812. * src/RequestGroup.cc
  4813. * src/RequestGroup.h
  4814. * src/RequestGroupMan.cc
  4815. * src/RequestGroupMan.h
  4816. * src/SegmentMan.cc
  4817. * src/SegmentMan.h
  4818. * src/ServerStat.cc
  4819. * src/ServerStat.h
  4820. * src/ServerStatMan.cc
  4821. * src/ServerStatMan.h
  4822. * src/ServerStatURISelector.cc
  4823. * src/ServerStatURISelector.h
  4824. * src/URISelector.h
  4825. * src/option_processing.cc
  4826. * src/prefs.cc
  4827. * src/prefs.h
  4828. * test/InOrderURISelectorTest.cc
  4829. * test/RequestGroupManTest.cc
  4830. * test/ServerStatManTest.cc
  4831. * test/ServerStatURISelectorTest.cc
  4832. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. * Release 0.15.1+2
  4834. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Bump up version number to 0.15.1+2
  4836. * configure.ac
  4837. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4839. * m4/aria2_arg.m4
  4840. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. * Release 0.15.1+1
  4842. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Bump up version number to 0.15.1+1
  4844. * configure.ac
  4845. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Fixed the bug that causes segmentaion fault when resuming download
  4847. using metalink without size tag. Reproducible only using HTTP URI.
  4848. * src/HttpResponseCommand.cc
  4849. * src/FtpNegotiationCommand.cc
  4850. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. * Release 0.15.1
  4852. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. Updated Bulgarian and French translations, thanks to all translators.
  4854. * po/bg.po
  4855. * po/fr.po
  4856. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Bump up version number to 0.15.1
  4858. * configure.ac
  4859. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Avoid repeated call of gettimeofday() when calculating speed.
  4861. * src/SpeedCalc.cc
  4862. * src/SpeedCalc.h
  4863. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Removed writable check when socket's send buffer is full in BitTorrent
  4865. downloads to lower CPU usage.
  4866. * src/PeerInteractionCommand.cc
  4867. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Fixed broken gzip inflation.
  4869. Turn off segmented downloading if gzip content is smaller than or equal
  4870. to 1MiB and inflate the data on the fly, because HTTP response header
  4871. doesn't contain the length of inflated file we can't determin where
  4872. the chunk of data should be written.
  4873. On the other hand, if gzip content is larger than 1MB, then turn off
  4874. on the fly inflation, because some servers returns "content-type: gzip"
  4875. for *.tgz, *.gz files.
  4876. * src/DownloadCommand.cc
  4877. * src/HttpResponseCommand.cc
  4878. * src/HttpResponseCommand.h
  4879. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Applied tizianomueller's patch to fix compile error.
  4881. * test/BitfieldManTest.cc
  4882. * test/BtRequestMessageTest.cc
  4883. * test/DefaultBtContextTest.cc
  4884. * test/DefaultDiskWriterTest.cc
  4885. * test/DefaultPieceStorageTest.cc
  4886. * test/HttpHeaderProcessorTest.cc
  4887. * test/HttpResponseTest.cc
  4888. * test/Metalink2RequestGroupTest.cc
  4889. * test/MetalinkParserControllerTest.cc
  4890. * test/MetalinkProcessorTest.cc
  4891. * test/PeerSessionResourceTest.cc
  4892. * test/UtilTest.cc
  4893. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. * Release 0.15.0
  4895. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Reordered src files in POTFILES.in so that usage text appears first.
  4897. * po/POTFILES.in
  4898. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Bump up version number to 0.15.0
  4900. * configure.ac
  4901. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Added Bulgarian translation.
  4903. Updated Catalan, Spanish, French and Japanese translations.
  4904. Thanks to all translators.
  4905. * po/LINGUAS
  4906. * po/bg.po
  4907. * po/ca.po
  4908. * po/es.po
  4909. * po/fr.po
  4910. * po/ja.po
  4911. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Updated feature list. Added libz for dependency section.
  4913. Added a description about unit testing using CppUnit.
  4914. * README
  4915. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Added a test for libz. Quoted where it is necessary.
  4917. * build_test.sh
  4918. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Added GZip to `Enabled Features' list.
  4920. * src/FeatureConfig.cc
  4921. * src/FeatureConfig.h
  4922. * test/FeatureConfigTest.cc
  4923. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4925. the transfer has not yet started.
  4926. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4927. * src/SegmentMan.cc
  4928. * src/SegmentMan.h
  4929. * test/SegmentManTest.cc
  4930. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Cache last calculated average download/upload speed.
  4932. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4933. cached value.
  4934. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4935. * src/PeerStat.h
  4936. * src/SpeedCalc.cc
  4937. * src/SpeedCalc.h
  4938. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Call parseUrl directly.
  4940. * src/Request.cc (resetUrl)
  4941. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Supported absolute/relative path in Location header field.
  4943. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4944. * src/HttpHeader.cc
  4945. * src/HttpHeader.h
  4946. * src/HttpResponse.cc
  4947. * src/HttpSkipResponseCommand.cc
  4948. * src/Request.cc
  4949. * test/HttpHeaderTest.cc
  4950. * test/HttpResponseTest.cc
  4951. * test/RequestTest.cc
  4952. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Changed help text for --load-cookie option.
  4954. * doc/aria2c.1.txt
  4955. * src/usage_text.h
  4956. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Regenerated test/Makefile.in to remove stale ChangeLog.
  4958. * test/Makefile.in
  4959. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Updated po files.
  4961. * po/aria2c.pot
  4962. * po/*.po
  4963. * po/*.gmo
  4964. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Bump up version number to 0.15.0b
  4966. * configure.ac
  4967. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Externalize messages.
  4969. * src/RequestGroupMan.cc
  4970. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4971. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Use File::exists() instead of File::isFile() to allow non-regular file
  4973. such as block special files.
  4974. * src/AbstractDiskWriter.cc
  4975. * src/MultiDiskWriter.cc
  4976. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4977. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4978. * src/gai_strerror.h
  4979. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4980. Fixed compile error. Thanks gknauf for the patch.
  4981. * src/asctime_r.c
  4982. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Included asctime_r.h from a2time.h.
  4984. * src/a2time.h
  4985. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Added a message "aria2 doesn't verify signature" to log message when
  4987. signature file is saved.
  4988. * src/RequestGroupMan.cc
  4989. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Added the ability to save signature when download is completed if
  4991. signature is available. The filename of signature file is the path to
  4992. download file followed by ".sig". If it already exists, then signature
  4993. will not be saved.
  4994. * src/RequestGroupMan.cc
  4995. * src/Signature.cc
  4996. * test/SignatureTest.cc
  4997. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Updated the descriptions for --bt-seed-unverified.
  4999. * doc/aria2c.1
  5000. * doc/aria2c.1.html
  5001. * doc/aria2c.1.txt
  5002. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5004. that this is not going to verify files using piece hashes.
  5005. * src/HelpItemFactory.cc
  5006. * src/OptionHandlerFactory.cc
  5007. * src/RequestGroup.cc
  5008. * src/option_processing.cc
  5009. * src/prefs.cc
  5010. * src/prefs.h
  5011. * src/usage_text.h
  5012. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Added the ability to retrieve signature from Metalink file.
  5014. A retrieved signature is stored in Signature class and it is held by
  5015. DownloadContext class. Note that aria2 doesn't verify signature.
  5016. * src/DownloadContext.cc
  5017. * src/DownloadContext.h
  5018. * src/Makefile.am
  5019. * src/Makefile.in
  5020. * src/Metalink2RequestGroup.cc
  5021. * src/MetalinkEntry.cc
  5022. * src/MetalinkEntry.h
  5023. * src/MetalinkParserController.cc
  5024. * src/MetalinkParserController.h
  5025. * src/MetalinkParserStateMachine.cc
  5026. * src/MetalinkParserStateMachine.h
  5027. * src/Signature.cc
  5028. * src/Signature.h
  5029. * src/SignatureMetalinkParserState.cc
  5030. * src/SignatureMetalinkParserState.h
  5031. * src/VerificationMetalinkParserState.cc
  5032. * src/VerificationMetalinkParserState.h
  5033. * test/Metalink2RequestGroupTest.cc
  5034. * test/MetalinkParserControllerTest.cc
  5035. * test/MetalinkProcessorTest.cc
  5036. * test/test.xml
  5037. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Close DiskAdaptor after renaming file.
  5039. * src/RequestGroup.cc
  5040. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5041. Corrected indentation
  5042. * src/DefaultBtProgressInfoFile.cc
  5043. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Moved the calls of std::ios::exceptions() inside of try-catch block
  5045. because if an error occurred in constructor of std::fstream, then
  5046. exception is thrown immediately when std::ios::exceptions() is called
  5047. which results unhandled exception and aria2c aborts.
  5048. * src/DefaultBtProgressInfoFile.cc
  5049. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Added the test for the previous change in DefaultBtContext.cc
  5051. * test/DefaultBtContextTest.cc
  5052. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Fixed the bug that causes infinite loop when the number of pieces are
  5054. fewer than allowed fast set size which is 10 by default.
  5055. * src/DefaultBtContext.cc
  5056. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Updated the descriptions for -j, -s. Added --bt-seed.
  5058. * doc/aria2c.1
  5059. * doc/aria2c.1.html
  5060. * doc/aria2c.1.txt
  5061. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5063. aria2 seeds previously downloaded files without validating piece hashs.
  5064. * src/HelpItemFactory.cc
  5065. * src/OptionHandlerFactory.cc
  5066. * src/RequestGroup.cc
  5067. * src/option_processing.cc
  5068. * src/prefs.cc
  5069. * src/prefs.h
  5070. * src/usage_text.h
  5071. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Updated DESCRIPTION of man page.
  5073. * doc/aria2c.1
  5074. * doc/aria2c.1.html
  5075. * doc/aria2c.1.txt
  5076. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5078. Don't define `struct addrinfo' when __sun is defined.
  5079. * src/getaddrinfo.h
  5080. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5082. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5083. second argument is of type `struct _stati64'. Otherwise it is defined as
  5084. `struct stat'.
  5085. * src/AbstractDiskWriter.cc
  5086. * src/File.cc
  5087. * src/File.h
  5088. * src/a2io.h
  5089. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Fixed the compile error in hurd-i386
  5091. See the original bug report:
  5092. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5093. * src/a2io.h
  5094. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5095. Code cleanup.
  5096. * src/PeerAbstractCommand.cc
  5097. * src/PeerAbstractCommand.h
  5098. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Removed TransferEncoding.
  5100. * src/DownloadCommand.cc
  5101. * src/DownloadCommand.h
  5102. * src/HttpResponseCommand.cc
  5103. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Updated po files.
  5105. * po/aria2c.pot
  5106. * po/*.po
  5107. * po/*.gmo
  5108. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5110. * src/A2STR.cc
  5111. * src/A2STR.h
  5112. * src/ChunkedDecoder.cc
  5113. * src/ChunkedDecoder.h
  5114. * src/ChunkedEncoding.cc: Removed
  5115. * src/ChunkedEncoding.h: Removed
  5116. * src/DownloadCommand.cc
  5117. * src/DownloadCommand.h
  5118. * src/HttpDownloadCommand.cc
  5119. * src/HttpResponse.cc
  5120. * src/HttpResponse.h
  5121. * src/HttpResponseCommand.cc
  5122. * src/HttpSkipResponseCommand.cc
  5123. * src/HttpSkipResponseCommand.h
  5124. * src/Makefile.am
  5125. * src/TransferEncoding.h: Removed
  5126. * test/ChunkedDecoderTest.cc
  5127. * test/ChunkedEncodingTest.cc: Removed
  5128. * test/HttpResponseTest.cc
  5129. * test/Makefile.am
  5130. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5131. Use append instead of insert.
  5132. * src/GZipDecoder.cc
  5133. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Updated doc
  5135. * src/Decoder.h
  5136. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5137. Updated usage text for -s option.
  5138. * src/usage_text.h
  5139. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5141. * src/Request.cc
  5142. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Cleaned up configure.ac.
  5144. * configure.ac
  5145. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5146. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5147. AC_ARG_ENABLE.
  5148. * configure.ac
  5149. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5151. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5152. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5153. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5154. fly and writes decoded data to a local disk.
  5155. * README
  5156. * README.html
  5157. * configure.ac
  5158. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5159. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5160. * m4/libz.m4
  5161. * src/Decoder.h
  5162. * src/DownloadCommand.cc
  5163. * src/DownloadCommand.h
  5164. * src/Exception.h
  5165. * src/GZipDecoder.cc
  5166. * src/GZipDecoder.h
  5167. * src/HttpHeader.cc
  5168. * src/HttpHeader.h
  5169. * src/HttpRequest.cc
  5170. * src/HttpRequest.h
  5171. * src/HttpResponse.cc
  5172. * src/HttpResponse.h
  5173. * src/HttpResponseCommand.cc
  5174. * src/Makefile.am
  5175. * test/GZipDecoderTest.cc
  5176. * test/HttpRequestTest.cc
  5177. * test/HttpResponseTest.cc
  5178. * test/Makefile.am
  5179. * test/Makefile.in
  5180. * test/gzip_decode_test.gz
  5181. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Clarified usage of -j option.
  5183. * src/usage_text.h
  5184. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Disabled getting size from the response of RETR.
  5186. If SIZE command failed, then disable resuming and segmented downloading.
  5187. * src/FtpConnection.cc
  5188. * src/FtpConnection.h
  5189. * src/FtpNegotiationCommand.cc
  5190. * src/FtpNegotiationCommand.h
  5191. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Use digits to find first byte of file size, which makes the intention
  5193. of the code clearer.
  5194. * src/FtpConnection.cc
  5195. Don't call validateTotalLength() when size is 0.
  5196. * src/FtpNegotiationCommand.cc
  5197. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Updated po files.
  5199. * po/aria2c.pot
  5200. * po/*.gmo
  5201. * po/*.po
  5202. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Clarified usage text for --split option.
  5204. * src/usage_text.h
  5205. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5206. Bump up version number to 0.15.0dev. "dev" means "development"
  5207. version, which means I started the development of the next release!
  5208. * src/configure.ac
  5209. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. If FTP server returns negative response with REST raw command and
  5211. requested range is not 0, throw exception. If requested range is 0,
  5212. continue download a file from 0 byte.
  5213. * src/FtpNegotiationCommand.cc
  5214. * src/FtpNegotiationCommand.h
  5215. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Supported FTP server which don't recognize SIZE raw command.
  5217. If SIZE raw command is failed, aria2 will try to get file size
  5218. from the response of RETR raw command. If both attempts are failed,
  5219. then resuming and segmented downloading are disabled.
  5220. * src/FtpConnection.cc
  5221. * src/FtpConnection.h
  5222. * src/FtpNegotiationCommand.cc
  5223. * src/FtpNegotiationCommand.h
  5224. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. * Release 0.14.0+1
  5226. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Bump up version number to 0.14.0+1
  5228. * src/configure.ac
  5229. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. Fixed the code that refers static member variable from non-static
  5231. context.
  5232. * src/DefaultPeerStorage.cc
  5233. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. * Release 0.14.0
  5235. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Added build test script
  5237. * build_test.sh
  5238. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Updated ja.po
  5240. * src/ja.po
  5241. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Bump up version number to 0.14.0
  5243. * src/configure.ac
  5244. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Updated ja.po and fr.po. Great thanks for french translators and
  5246. Sebastien WILLEMIJNS.
  5247. * po/fr.po
  5248. * po/ja.po
  5249. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5250. Added configure option to enable/disable epoll support.
  5251. * configure.ac
  5252. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. Updated man page.
  5254. * doc/aria2c.1.txt
  5255. * doc/aria2c.1
  5256. * doc/aria2c.1.html
  5257. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Added missing default value '5' to the usage of --split option.
  5259. * src/HelpItemFactory.cc
  5260. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Filled up pieces based on the number of missing blocks, rather than
  5262. simplay the number of piece * block length.
  5263. * src/BtRequestFactory.h
  5264. * src/DefaultBtInteractive.cc
  5265. * src/DefaultBtInteractive.h
  5266. * src/DefaultBtRequestFactory.cc
  5267. * src/DefaultBtRequestFactory.h
  5268. * src/Piece.cc
  5269. * src/Piece.h
  5270. * test/BitfieldManTest.cc
  5271. * test/DefaultBtRequestFactoryTest.cc
  5272. * test/MockBtRequestFactory.h
  5273. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. Made _epEvents a member variable.
  5275. * src/DownloadEngine.cc
  5276. * src/DownloadEngine.h
  5277. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Cancel download if http redirect is bounded more than 20 times.
  5279. * src/AbstractCommand.cc
  5280. * src/HttpSkipResponseCommand.cc
  5281. * src/Request.cc
  5282. * src/Request.h
  5283. * test/RequestTest.cc
  5284. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Fixed unhandled exception(removed keyword `new').
  5286. * src/SocketCore.cc (initEPOLL)
  5287. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Removed visit(const MetaEntry*)
  5289. * src/MetaEntryVisitor.h:
  5290. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5291. and made them virtual.
  5292. * src/BencodeVisitor.h
  5293. * src/BencodeVisitor.cc
  5294. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Updated po files.
  5296. * po/aria2c.pot
  5297. * po/*.po
  5298. * po/*.gmo
  5299. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5301. the number of socket to watch out.
  5302. * src/PeerInteractionCommand.cc
  5303. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. When there is not enough space in disk when writing a chunk of data,
  5305. aria2 now prints the message to the console to warn user and aborts
  5306. its download. Not all downloads are canceled because some downloads
  5307. may use another disk or partition. BUG#1640332
  5308. * src/AbstractDiskWriter.cc
  5309. * src/PeerAbstractCommand.cc
  5310. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5311. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5312. setHaltRequested(true) to cancel download.
  5313. * src/PeerInteractionCommand.h
  5314. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5316. socket from int to sock_t as sockets are unsigned in Windows.
  5317. For AsyncNameResolver, DownloadEngine, I did additional modification
  5318. for the portion of the code changed according to epoll support.
  5319. I defined sock_t in a2netcompat.h to use sock_t without including
  5320. SocketCore.h.
  5321. * src/AsyncNameResolver.cc
  5322. * src/AsyncNameResolver.h
  5323. * src/DownloadEngine.cc
  5324. * src/DownloadEngine.h
  5325. * src/SocketCore.cc
  5326. * src/SocketCore.h
  5327. * src/a2netcompat.h
  5328. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5330. changes in the patch were applied.
  5331. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5332. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5333. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5334. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5336. a2io.h and common.h were modified.
  5337. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5338. MinGW.
  5339. * src/common.h: Changed off_t to 64 bit in MinGW.
  5340. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5342. only a2netcompat.h is modified.
  5343. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5344. directives.
  5345. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5347. only gai_strerror.h is modified.
  5348. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5349. winsock errors in MinGW.
  5350. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5352. follow sources are applied.
  5353. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5354. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5355. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5356. I included locale.h from Platform.cc.
  5357. * src/main.cc: Moved common setup/teardown code to Platform class.
  5358. * test/AllTest.cc: Use Platform class.
  5359. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5360. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5362. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5363. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5364. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5366. aria2-0.13.2+1-mingw-2.patch.
  5367. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5368. systems which don't have termious.h. I moved the directive inside of
  5369. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5370. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5371. anyway.
  5372. * src/asctime_r.h
  5373. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5374. I added 2nd argument to the prototype declaration.
  5375. * src/StringFormat.cc: Get rid of vasprintf.
  5376. * src/getaddrinfo.h: Fixed constants.
  5377. * configure.ac: Added the check for asctime_r function.
  5378. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5379. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Added writable test for Socket when the sending message is in progress.
  5381. Usually the sending message is piece message. Without wriable check,
  5382. upload latency is dropped to more than 1sec.
  5383. * src/PeerInteractionCommand.cc
  5384. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Create only requested files and files which shares a piece with
  5386. requested file in multi-torrent downloads. Directory structures are
  5387. also created in the same rule.
  5388. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5389. DiskWriterEntry as in the previous implementation.
  5390. * src/MultiDiskWriter.cc
  5391. * src/MultiFileAllocationIterator.cc
  5392. * src/MultiFileAllocationIterator.h
  5393. * test/MultiFileAllocationIteratorTest.cc
  5394. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Commented out -lprofiler
  5396. * src/Makefile.am
  5397. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Bump up version number to 0.14.0b.
  5399. * src/configure.ac
  5400. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Actively establish connection to peers in seeding, when peer cache
  5402. is not full and max upload speed limit is not reached.
  5403. * src/ActivePeerConnectionCommand.cc
  5404. * src/ActivePeerConnectionCommand.h
  5405. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5406. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5407. to make room more fleshy, recently found peers.
  5408. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5409. it.
  5410. * src/DefaultPeerStorage.cc
  5411. * test/DefaultPeerStorageTest.cc
  5412. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Returns cached data only when the previous receiveHandshake() is called
  5414. with peek = true.
  5415. * src/PeerConnection.cc (receiveHandshake)
  5416. * src/PeerConnection.h (receiveHandshake)
  5417. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Changed default value of -s option from 1 to 5.
  5419. Also max value of -s option is changed from 5 to 16.
  5420. * src/HelpItemFactory.cc
  5421. * src/OptionHandlerFactory.cc
  5422. * src/option_processing.cc
  5423. * src/usage_text.h
  5424. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Changed -s options behavior. Now it means the number of connections
  5426. made simultaneously in each http/ftp download.
  5427. If 1 URL is specified, the behavior is the same with old implementation.
  5428. If -s N is given and more than N URLs are specified, first N URLs are
  5429. used and remaining URLs are used for backup. If less than N URLs are
  5430. specified, some of URLs are used more than once so that totally N
  5431. connections are made simultaneously.
  5432. * src/main.cc
  5433. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5434. Included missing iosfwd or ostream header.
  5435. * src/RequestGroupMan.cc
  5436. * src/TaggedItem.cc
  5437. * src/TaggedItem.h
  5438. * src/Util.cc
  5439. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5441. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5442. * src/HttpConnection.cc: Included missing sstream.
  5443. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Added --bt-max-open-files option.
  5445. * src/DefaultPieceStorage.cc
  5446. * src/HelpItemFactory.cc
  5447. * src/MultiDiskAdaptor.cc
  5448. * src/MultiDiskAdaptor.h
  5449. * src/OptionHandlerFactory.cc
  5450. * src/option_processing.cc
  5451. * src/prefs.cc
  5452. * src/prefs.h
  5453. * src/usage_text.h
  5454. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Fixed the bug that aria2 aborts when a path to a directory is given
  5456. in command-line.
  5457. * src/ProtocolDetector.cc
  5458. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Limited the number files opened in each BitTorrent download. The default
  5460. value is 100. The option to change this value will be added.
  5461. * src/MultiDiskAdaptor.cc
  5462. * src/MultiDiskAdaptor.h
  5463. * src/MultiFileAllocationIterator.cc
  5464. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Fixed the bug that HTTP downloads don't start with old libraries.
  5466. * src/HttpHeaderProcessor.cc
  5467. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Use empty() instead of size() > 0.
  5469. * src/HttpConnection.cc
  5470. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Drop connection if the incoming peer ID is the same with localhost's
  5472. one. The previous implementation drops connection when incoming peer's
  5473. IP address is the same with localhost's one.
  5474. * src/PeerListenCommand.cc
  5475. * src/DefaultBtInteractive.cc
  5476. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Returns cached data without checking whether socket is readable
  5478. if the cache is available.
  5479. * src/PeerConnection.cc (receiveHandshake)
  5480. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Included stdint.h
  5482. * src/common.h
  5483. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5484. Removed duplicate HAVE_GETTIMEOFDAY
  5485. * src/Makefile.am
  5486. * src/Makefile.in
  5487. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Use interval as a minInterval when minInterval is not supplied.
  5489. * src/DefaultBtAnnounce.cc
  5490. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5492. attempt is failed, then 2nd attempt get kicked out more quickly.
  5493. And it is now static const member of DefaultBtAnnounce.
  5494. * src/DefaultBtAnnounce.h
  5495. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5497. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5498. * src/ActivePeerConnectionCommand.cc
  5499. * src/BtConstants.h
  5500. * src/BtRuntime.h
  5501. * src/DHTGetPeersCommand.cc
  5502. * src/DefaultBtAnnounce.cc
  5503. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5504. BtRuntime::MAX_PEERS.
  5505. * src/DefaultPeerStorage.h
  5506. * src/InitiatorMSEHandshakeCommand.cc
  5507. * src/PeerInitiateConnectionCommand.cc
  5508. * src/PeerInteractionCommand.cc
  5509. * src/PeerReceiveHandshakeCommand.cc
  5510. * src/TrackerWatcherCommand.cc
  5511. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Always Connect to _numNewConnection
  5513. * src/ActivePeerConnectionCommand.cc
  5514. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Made `begin' unsigned int.
  5516. * src/GrowSegment.h
  5517. * src/Piece.cc
  5518. * src/Piece.h
  5519. * src/PiecedSegment.cc
  5520. * src/PiecedSegment.h
  5521. * src/Segment.h
  5522. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Calculate piece hash when data is arrived if the data is arrived in
  5524. order. This removes additional read operation for hash calculation.
  5525. If the data is arrived in out of order, the hash is calucated when the
  5526. piece is completed. This is the same behavior as the old implementation.
  5527. * src/BtPieceMessage.cc
  5528. * src/DefaultBtProgressInfoFile.cc
  5529. * src/DefaultPieceStorage.cc
  5530. * src/DownloadCommand.cc
  5531. * src/DownloadCommand.h
  5532. * src/DownloadEngine.cc
  5533. * src/GrowSegment.cc
  5534. * src/GrowSegment.h
  5535. * src/Piece.cc
  5536. * src/Piece.h
  5537. * src/PiecedSegment.cc
  5538. * src/PiecedSegment.h
  5539. * src/Segment.h
  5540. * test/PieceTest.cc
  5541. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Try to keep the ordering of outgoing piece message.
  5543. * src/DefaultBtMessageDispatcher.cc
  5544. (DefaultBtMessageDispatcher::sendMessages)
  5545. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Fixed busy loop when error/hup epoll events occur.
  5547. * src/AbstractCommand.cc
  5548. * src/PeerAbstractCommand.cc
  5549. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Added --bt-request-peer-speed-limit option, which was a constant
  5551. SLOW_SPEED_THRESHOLD.
  5552. * src/ActivePeerConnectionCommand.cc
  5553. * src/ActivePeerConnectionCommand.h
  5554. * src/BtConstants.h
  5555. * src/HelpItemFactory.cc
  5556. * src/OptionHandlerFactory.cc
  5557. * src/PeerReceiveHandshakeCommand.cc
  5558. * src/option_processing.cc
  5559. * src/prefs.cc
  5560. * src/prefs.h
  5561. * src/usage_text.h
  5562. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Removed repeated call of getTopDirPath(). Instead, call it once and
  5564. cache the result.
  5565. * src/MultiDiskAdaptor.cc
  5566. * src/MultiDiskAdaptor.h
  5567. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5568. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Fixed compile error on debian etch.
  5570. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5571. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5572. it is undefined.
  5573. * src/Util.cc (ULLONG_MAX)
  5574. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Added epoll support. Use epoll if it is available. If not, use select.
  5576. When async dns is enabled in compile time, epoll support is enabled
  5577. only when aria2 is built with c-ares. This condition statement is
  5578. defined in a2io.h.
  5579. Currently aria2 supports both c-ares and ares, but ares is maintained
  5580. for quite a while and debian already has c-ares package, ares support
  5581. will be dropped in the future version.
  5582. * configure.ac
  5583. * src/AbstractCommand.cc
  5584. * src/AsyncNameResolver.cc
  5585. * src/AsyncNameResolver.h
  5586. * src/Command.cc
  5587. * src/Command.h
  5588. * src/DownloadEngine.cc
  5589. * src/DownloadEngine.h
  5590. * src/PeerAbstractCommand.cc
  5591. * src/SocketCore.cc
  5592. * src/SocketCore.h
  5593. * src/a2io.h
  5594. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5596. directive.
  5597. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Do not do write operation to /dev/null file.
  5599. * src/LogFactory.cc
  5600. * src/SimpleLogger.cc
  5601. Replaced vasprintf with vsnprintf
  5602. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5603. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. * src/BtRequestMessage.cc
  5605. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5606. for segmentation fault caused by previous commit.
  5607. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. Reduced the usage of gettimeofday().
  5609. * src/DefaultBtMessageDispatcher.cc
  5610. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5611. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5612. * src/RequestSlot.cc
  5613. * src/RequestSlot.h
  5614. (RequestSlot::isTimeout)
  5615. Made RequestSlot have a reference to Piece object to avoid find
  5616. Piece repeatedly.
  5617. * src/DefaultBtMessageDispatcher.cc
  5618. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5619. * src/RequestSlot.cc
  5620. * src/RequestSlot.h
  5621. (RequestSlot::getPiece)
  5622. * test/DefaultBtMessageDispatcherTest.cc
  5623. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. * src/TimeA2.cc
  5625. * src/TimeA2.h
  5626. (Time::difference): New function.
  5627. (Time::elapsed): Done optimization.
  5628. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5630. directive.
  5631. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. * src/option_processing.cc: Added missing `defined' keyword to #if
  5633. directive.
  5634. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Bump up version number to 0.13.2+1
  5636. * src/configure.ac
  5637. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Refactored broken outstanding piece handling.
  5639. * src/DefaultPieceStorage.cc
  5640. * src/DefaultPieceStorage.h
  5641. * src/Piece.cc
  5642. * src/Piece.h
  5643. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5645. name collision of static variable and predefined macro.
  5646. * src/BtContext.cc
  5647. * src/BtContext.h
  5648. * src/CookieBoxFactory.cc
  5649. * src/CookieBoxFactory.h
  5650. * src/CookieParser.cc
  5651. * src/CookieParser.h
  5652. * src/DefaultBtContext.cc
  5653. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. * src/RequestGroup.cc
  5655. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5656. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. * Release 0.13.2
  5658. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5660. * po/fr.po
  5661. * po/ja.po
  5662. * po/aria2c.pot
  5663. * po/*.po
  5664. * po/*.gmo
  5665. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Bump up version number to 0.13.2
  5667. * src/configure.ac
  5668. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Refactord.
  5670. * src/RequestGroupMan.cc
  5671. (removeStoppedGroup)
  5672. (fillRequestGroupFromReserver)
  5673. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Fixed compile error on Ubuntu.
  5675. * src/BtPieceMessage.cc
  5676. * src/MessageDigestHelper.cc
  5677. * src/Util.cc
  5678. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. Fixed compile error when configured with --disable-bittorrent
  5680. * test/DownloadHandlerFactoryTest.cc
  5681. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Done make update-po
  5683. * po/aria2c.pot
  5684. * po/*.po
  5685. * po/*.gmo
  5686. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Bump up version number to 0.13.2rc.
  5688. * src/configure.ac
  5689. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Made option name bold. Updated SYNOPSIS to make it more readable.
  5691. * doc/aria2c.1.txt
  5692. * doc/aria2c.1
  5693. * doc/aria2c.1.html
  5694. * src/version_usage.cc
  5695. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Refactored. Use std::string instead of size and char*.
  5697. * Data.cc
  5698. * Data.h
  5699. * test/Data.cc
  5700. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Added trimSelf(). Rewritten trim() to use trimSelf().
  5702. * Util.cc
  5703. * Util.h
  5704. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5706. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Fixed compile error when configured with --disable-metalink.
  5708. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5709. * test/FeatureConfigTest.cc
  5710. * test/DownloadHandlerFactoryTest.cc
  5711. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Fixed compile error when configured with --without-gnutls
  5713. --without-openssl
  5714. * src/main.cc
  5715. * test/DefaultBtProgressInfoFileTest.cc
  5716. * test/SegmentManTest.cc
  5717. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Fixed compile error with OpenSSL.
  5719. * src/IteratableChunkChecksumValidator.cc
  5720. * src/LibsslDHKeyExchange.h
  5721. * src/MessageDigestHelper.cc
  5722. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Revert the default value of --max-concurrent-downloads to 5.
  5724. Revert the default value of --metalink-servers to 5.
  5725. Man pages was also updated.
  5726. * src/option_processing.cc
  5727. * doc/aria2c.1.txt
  5728. * doc/aria2c.1.html
  5729. * doc/aria2c.1
  5730. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Returns const reference:
  5732. DownloadContext::getPieceHash, DownloadContext::getName,
  5733. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5734. BtContext::getInfoHashAsString,
  5735. * src/BtContext.h
  5736. * src/DefaultBtContext.cc
  5737. * src/DefaultBtContext.h
  5738. * src/DownloadContext.h
  5739. * src/SingleFileDownloadContext.h
  5740. * test/MockBtContext.h
  5741. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. * src/RequestGroup.h (getDir): Removed.
  5743. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Returns const reference. The internal urlencode function was optimized
  5745. a little bit.
  5746. * src/Request.cc
  5747. * src/Request.h
  5748. * src/HttpRequest.cc
  5749. * src/HttpRequest.h
  5750. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Defined option name and possible values as std::string to reduce
  5752. temporary string object creation in runtime.
  5753. * src/HelpItemFactory.cc
  5754. * src/LogFactory.cc
  5755. * src/Option.cc
  5756. * src/OptionHandlerFactory.cc
  5757. * src/option_processing.cc
  5758. * src/prefs.cc
  5759. * src/prefs.h
  5760. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. Return const reference.
  5762. * src/DownloadHandlerConstants.cc
  5763. * src/DownloadHandlerConstants.h
  5764. (getMetalinkExtensions)
  5765. (getMetalinkContentTypes)
  5766. (getBtExtensions)
  5767. (getBtContentTypes)
  5768. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. * src/HttpHeader.cc (get): Rewritten.
  5770. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5771. Make HttpHeader::getFirst(...) return const reference.
  5772. * src/HttpHeader.cc
  5773. * src/HttpHeader.h
  5774. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5776. it with V_TRUE.
  5777. * src/DefaultPieceStorage.cc
  5778. * src/DownloadCommand.cc
  5779. * src/FtpNegotiationCommand.cc
  5780. * src/HttpRequest.cc
  5781. * src/InitiateConnectionCommand.cc
  5782. * src/RequestGroup.cc
  5783. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Made Option::get(...) return const reference of std::string.
  5785. * src/Option.cc
  5786. * src/Option.h
  5787. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. Replaced std:copy with insert.
  5789. * src/DefaultBtMessageDispatcher.cc
  5790. * src/DefaultPieceStorage.cc
  5791. * src/DownloadEngineFactory.cc
  5792. * src/RequestGroup.cc
  5793. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Included SocketCore.h to fix compiler warning.
  5795. * src/InitiateConnectionCommand.cc
  5796. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Put piece selection strategy algorithm to RarestPieceSelector class,
  5798. Added a switch to choose whether randomized selection so that unit
  5799. tests emit same results in, possibly, win32.
  5800. * src/DefaultPieceStorage.cc
  5801. * src/DefaultPieceStorage.h
  5802. * src/RarestPieceSelector.cc
  5803. * src/RarestPieceSelector.h
  5804. * test/DefaultPieceStorageTest.cc
  5805. * test/RarestPieceSelectorTest.cc
  5806. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Don't pool connection if HTTP proxy is enabled.
  5808. * src/FtpFinishDownloadCommand.cc
  5809. * src/FtpNegotiationCommand.cc
  5810. * src/HttpSkipResponseCommand.cc
  5811. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5813. * src/AbstractCommand.cc
  5814. * src/AbstractCommand.h
  5815. * src/ActivePeerConnectionCommand.cc
  5816. * src/FtpInitiateConnectionCommand.cc
  5817. * src/HttpInitiateConnectionCommand.cc
  5818. * src/InitiateConnectionCommandFactory.cc
  5819. * src/PeerAbstractCommand.cc
  5820. * src/PeerAbstractCommand.h
  5821. * src/PeerInitiateConnectionCommand.cc
  5822. * src/TrackerWatcherCommand.cc
  5823. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Sort RequestSlot in ascending order and manipulate them using
  5825. lower_bound.
  5826. * src/DefaultBtMessageDispatcher.cc
  5827. * src/DefaultBtMessageDispatcher.h
  5828. (getMessageQueue): Added const qualifier.
  5829. (getRequestSlots): Added const qualifier.
  5830. (sendMessages): Use empty() instead of size().
  5831. (doCancelSendingPieceAction): Use HandleEvent object.
  5832. (doAbortOutstandingRequestAction): Rewritten.
  5833. (doChokedAction): Rewritten.
  5834. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5835. (isOutstandingRequest): Rewritten.
  5836. (getOutstandingRequest): Rewritten.
  5837. (removeOutstandingRequest): Rewritten.
  5838. (addOutstandingRequest): Rewritten.
  5839. * src/RequestSlot.cc
  5840. * src/RequestSlot.h
  5841. (operator=): Rewritten.
  5842. (operator!=): New function.
  5843. (operator<): New function.
  5844. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. * src/DefaultBtRequestFactory.cc
  5846. (doChokedAction): Rewritten.
  5847. (removeCompletedPiece): Rewritten.
  5848. (removeTargetPiece): Rewritten.
  5849. (createRequestMessages): Added the debug log.
  5850. (createRequestMessagesOnEndGame: Added the debug log.
  5851. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Added the debug log message.
  5853. * src/BtPieceMessage.cc (doReceivedAction)
  5854. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5856. used lower_bound to process them rather than linear search.
  5857. * src/DHTPeerAnnounceStorage.cc
  5858. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5860. peer has at least one completed piece.
  5861. * src/Peer.cc
  5862. * src/Peer.h
  5863. * src/PeerInteractionCommand.cc
  5864. * src/PeerSessionResource.cc
  5865. * src/PeerSessionResource.h
  5866. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5867. Removed unnecessary sorting
  5868. * src/DefaultPieceStorage (DefaultPieceStorage)
  5869. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Rewritten the portion of the code that mangaes allowed fast indexes.
  5871. * src/PeerSessionResource.cc
  5872. * src/PeerSessionResource.h
  5873. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. Removed the invalid string including '\r' from ru.po and
  5875. did make update-po.
  5876. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Added --log-level and --summary-interval to man page.
  5878. * doc/aria2c.1.txt
  5879. * doc/aria2c.1.html
  5880. * doc/aria2c.1
  5881. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Added --log-level option to specify log level. Log messages under
  5883. the specified level are not output. Default value is `debug'.
  5884. * src/HelpItemFactory.cc
  5885. * src/LogFactory.cc
  5886. * src/LogFactory.h
  5887. * src/Logger.h
  5888. * src/OptionHandlerFactory.cc
  5889. * src/SimpleLogger.cc
  5890. * src/SimpleLogger.h
  5891. * src/main.cc
  5892. * src/option_processing.cc
  5893. * src/prefs.h
  5894. * src/usage_text.h
  5895. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Print download progress summary of all parallel downloads in specified
  5897. interval, default 60 secs. While aria2 could download several files
  5898. in parallel (see -j option), it displayed just first download progress,
  5899. and the other downloads are hidden from the users. This new feature
  5900. prints all downloads currently in-progress to the console so that you
  5901. can check the status of all downloads. The interval can be adjusted
  5902. by --summary-interval option.
  5903. The progress readout is now cut so that all fits in the one line of
  5904. console.
  5905. * src/ConsoleStatCalc.cc
  5906. * src/ConsoleStatCalc.h
  5907. * src/HelpItemFactory.cc
  5908. * src/OptionHandlerFactory.cc
  5909. * src/RequestGroupMan.cc
  5910. * src/RequestGroupMan.h
  5911. * src/main.cc
  5912. * src/option_processing.cc
  5913. * src/prefs.h
  5914. * src/usage_text.h
  5915. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5917. * src/DownloadEngine.cc (DownloadEngine)
  5918. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5920. defined.
  5921. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5922. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Use erase+lower_bound+insert instead of sort.
  5924. * src/DefaultPieceStorage.cc (addPieceStats)
  5925. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5927. * src/A2STR.cc
  5928. * src/A2STR.h
  5929. * src/OptionParser.cc (parse)
  5930. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Defined fake filename `[tracker.announce]' as static const std::string.
  5932. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5933. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. Defined default filename `index.html' as static const std::string
  5935. * src/SingleFileDownloadContext.cc
  5936. * src/SingleFileDownloadContext.h
  5937. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Defined "[MEMORY]" as static const std::string.
  5939. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5940. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Defined control file's version number as static const std::string.
  5942. * src/DefaultBtProgressInfoFile.cc
  5943. * src/DefaultBtProgressInfoFile.h
  5944. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Use Request::METHOD_GET
  5946. * src/RequestGroup.cc (createNextCommandWithAdj)
  5947. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Defined "OK", "ERR", "INPR" as static const std::string
  5949. * src/RequestGroupMan.cc (showDownloadResults)
  5950. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Defined default client used in extended handshake as static const
  5952. std::string
  5953. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5954. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5956. * src/HttpConnection.cc (eraseConfidentialInfo)
  5957. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Defined default ftp user and password as static const std::string
  5959. * src/AuthConfigFactory.cc
  5960. * src/AuthConfigFactory.h
  5961. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Defined strings used in netrc as static const std::string
  5963. * src/Netrc.cc
  5964. * src/Netrc.h
  5965. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. Defined HTTP status as static const std::string
  5967. * src/AbstractProxyResponseCommand.cc
  5968. * src/HttpHeader.cc
  5969. * src/HttpHeader.h
  5970. * src/HttpResponse.cc
  5971. * src/HttpResponseCommand.cc
  5972. * src/HttpSkipResponseCommand.cc
  5973. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Defined "\r\n", "A", "I" as static const std::string
  5975. * src/A2STR.cc
  5976. * src/A2STR.h
  5977. * src/FtpConnection.cc
  5978. * src/FtpConnection.h
  5979. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Added COLON_C(".") and used it in Request::parseUrl()
  5981. * src/A2STR.cc
  5982. * src/A2STR.h
  5983. * src/Request.cc (parseUrl)
  5984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Changed the type of padName from `const std::string&' to `const char*'.
  5986. * src/MSEHandshake.cc (verifyPadLength)
  5987. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Defined "sha1" as static const std::string.
  5989. * src/MetalinkParserController.cc
  5990. * src/MetalinkParserController.h
  5991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Defined message digest algorithm name as static const std::string
  5993. * src/DHTTokenTracker.cc
  5994. * src/DHTUtil.cc
  5995. * src/DefaultBtContext.cc
  5996. * src/MSEHandshake.cc
  5997. * src/MessageDigestHelper.cc
  5998. * src/Peer.cc
  5999. * src/messageDigest.cc
  6000. * src/messageDigest.h
  6001. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Made string literals used in SAX parser static const std::string.
  6003. * src/FileMetalinkParserState.cc
  6004. * src/FileMetalinkParserState.h
  6005. * src/FilesMetalinkParserState.cc
  6006. * src/FilesMetalinkParserState.h
  6007. * src/InitialMetalinkParserState.cc
  6008. * src/InitialMetalinkParserState.h
  6009. * src/MetalinkMetalinkParserState.cc
  6010. * src/MetalinkMetalinkParserState.h
  6011. * src/PiecesMetalinkParserState.cc
  6012. * src/PiecesMetalinkParserState.h
  6013. * src/ResourcesMetalinkParserState.cc
  6014. * src/ResourcesMetalinkParserState.h
  6015. * src/VerificationMetalinkParserState.cc
  6016. * src/VerificationMetalinkParserState.h
  6017. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6019. * src/A2STR.cc
  6020. * src/A2STR.h
  6021. * src/File.cc
  6022. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Defined static const std::string IP("ip"), PORT("port") and use them
  6024. instead of string literals.
  6025. * src/DefaultPeerListProcessor.cc
  6026. * src/DefaultPeerListProcessor.h
  6027. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Made string literals for torrent file processing static const
  6029. std::string.
  6030. * src/BtContext.cc
  6031. * src/BtContext.h
  6032. * src/DefaultBtContext.cc
  6033. * src/DefaultBtContext.h
  6034. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Made string literal for tracker response static const std::string
  6036. * src/BtAnnounce.cc
  6037. * src/BtAnnounce.h
  6038. * src/DefaultBtAnnounce.cc
  6039. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Use DHTMessage::T instead of "t".
  6041. * src/DHTMessageTracker.cc (messageArrived)
  6042. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Made keyName static const. Made trimmed charset static const
  6044. std::string.
  6045. * src/Util.cc (getContentDispositionFilename)
  6046. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Made USER_AGENT const. Made "/" static const std::string.
  6048. * src/A2STR.cc
  6049. * src/A2STR.h
  6050. * src/HttpRequest.cc
  6051. * src/HttpRequest.h
  6052. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Made string listeral to static const std::string:
  6054. "Content-Range", "Content-Length"
  6055. * src/HttpHeader.cc
  6056. * src/HttpHeader.h
  6057. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Made string listeral to static const std::string.
  6059. * src/HttpConnection.cc
  6060. * src/HttpHeader.cc
  6061. * src/HttpHeader.h
  6062. * src/HttpResponse.cc
  6063. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Made string listeral to static const std::string.
  6065. * src/A2STR.cc
  6066. * src/A2STR.h
  6067. * src/SimpleLogger.cc
  6068. * src/SimpleLogger.h
  6069. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Made string literal to static const std::string.
  6071. Rewritten CookieParser::setField.
  6072. * src/A2STR.cc
  6073. * src/A2STR.h
  6074. * src/CookieBoxFactory.cc
  6075. * src/CookieBoxFactory.h
  6076. * src/CookieParser.cc
  6077. * src/CookieParser.h
  6078. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Made string literal to static const std::string
  6080. * src/DHTAbstractMessage.cc
  6081. * src/DHTAnnouncePeerMessage.cc
  6082. * src/DHTAnnouncePeerMessage.h
  6083. * src/DHTAnnouncePeerReplyMessage.cc
  6084. * src/DHTAnnouncePeerReplyMessage.h
  6085. * src/DHTFindNodeMessage.cc
  6086. * src/DHTFindNodeMessage.h
  6087. * src/DHTFindNodeReplyMessage.cc
  6088. * src/DHTFindNodeReplyMessage.h
  6089. * src/DHTGetPeersMessage.cc
  6090. * src/DHTGetPeersMessage.h
  6091. * src/DHTGetPeersReplyMessage.cc
  6092. * src/DHTGetPeersReplyMessage.h
  6093. * src/DHTMessage.cc
  6094. * src/DHTMessage.h
  6095. * src/DHTMessageFactoryImpl.cc
  6096. * src/DHTMessageReceiver.cc
  6097. * src/DHTPingMessage.cc
  6098. * src/DHTPingMessage.h
  6099. * src/DHTPingReplyMessage.cc
  6100. * src/DHTPingReplyMessage.h
  6101. * src/DHTQueryMessage.cc
  6102. * src/DHTQueryMessage.h
  6103. * src/DHTResponseMessage.cc
  6104. * src/DHTResponseMessage.h
  6105. * src/DHTUnknownMessage.cc
  6106. * src/DHTUnknownMessage.h
  6107. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Made string literal to static const std::string
  6109. * src/BtChokeMessage.cc (toString)
  6110. * src/BtHaveAllMessage.cc (toString)
  6111. * src/BtHaveNoneMessage.cc (toString)
  6112. * src/BtInterestedMessage.cc (toString)
  6113. * src/BtNotInterestedMessage.cc (toString)
  6114. * src/BtUnchokeMessage.cc (toString)
  6115. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Replaced "" with static const variable A2STR::NIL.
  6117. Replaced string comparison against "" with std::string::empty().
  6118. Added PROTO_* to Request class and use them as a protocol string
  6119. constant.
  6120. Made "started", "stopped", "completed" static const variable in
  6121. AnnounceList class.
  6122. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Updated translations. Great thanks to translators.
  6124. * po/ca.po
  6125. * po/de.po
  6126. * po/fr.po
  6127. * po/it.po
  6128. * po/ja.po
  6129. * po/ru.po
  6130. * po/zh_CN.po
  6131. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Updated man page; categorized options and fixed typo.
  6133. * doc/aria2c.1.txt
  6134. * doc/aria2c.1.html
  6135. * doc/aria2c.1
  6136. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Removed const ref
  6138. * src/MetalinkEntry.cc (AddProtocolPreference)
  6139. * src/RequestGroup.cc (FindServerHostByHostname)
  6140. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Rewritten Accept-Features handling.
  6142. * src/HttpRequestCommand.cc (createHttpRequest)
  6143. * src/a2functional.h
  6144. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Changed method signature:
  6146. DHTAbstractNodeLookupTask::toEntries
  6147. * src/DHTAbstractNodeLookupTask.cc
  6148. * src/DHTAbstractNodeLookupTask.h
  6149. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Changed method signature:
  6151. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6152. * src/BtContext.h
  6153. * src/DefaultBtContext.cc
  6154. * src/DefaultBtContext.h
  6155. * src/DefaultBtInteractive.cc
  6156. * test/DefaultBtContextTest.cc
  6157. * test/MockBtContext.h
  6158. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Changed method signature:
  6160. MultiFileAllocationIterator::makeDiskWriterEntries
  6161. * src/MultiFileAllocationIterator.cc
  6162. * src/MultiFileAllocationIterator.h
  6163. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Changed method sinature:
  6165. MetalinkEntry::toFileEntry,
  6166. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6167. Metalinker::queryEntry
  6168. * src/Metalink2RequestGroup.cc
  6169. * src/MetalinkEntry.cc
  6170. * src/MetalinkEntry.h
  6171. * src/MetalinkHelper.cc
  6172. * src/MetalinkHelper.h
  6173. * src/Metalinker.cc
  6174. * src/Metalinker.h
  6175. * src/main.cc
  6176. * test/MetalinkHelperTest.cc
  6177. * test/MetalinkerTest.cc
  6178. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Changed method sinature:
  6180. RequestGroup::getURIs
  6181. * src/RequestGroup.cc
  6182. * src/RequestGroup.h
  6183. * test/Metalink2RequestGroupTest.cc
  6184. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Changed method signature:
  6186. PeerListProcessor::extractPeer
  6187. * src/CompactPeerListProcessor.cc
  6188. * src/CompactPeerListProcessor.h
  6189. * src/DefaultBtAnnounce.cc
  6190. * src/DefaultPeerListProcessor.cc
  6191. * src/DefaultPeerListProcessor.h
  6192. * src/DelegatingPeerListProcessor.cc
  6193. * src/DelegatingPeerListProcessor.h
  6194. * src/PeerListProcessor.h
  6195. * src/UTPexExtensionMessage.cc
  6196. * test/DefaultPeerListProcessorTest.cc
  6197. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Changed method signature:
  6199. BtRequestFactory::createRequestMessages,
  6200. BtRequestFactory::createRequestMessagesOnEndGame
  6201. * src/BtRequestFactory.h
  6202. * src/DefaultBtInteractive.cc
  6203. * src/DefaultBtRequestFactory.cc
  6204. * src/DefaultBtRequestFactory.h
  6205. * test/DefaultBtRequestFactoryTest.cc
  6206. * test/MockBtRequestFactory.h
  6207. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Changed method signature:
  6209. PieceStorage::getInFlightPieces
  6210. * src/DefaultBtProgressInfoFile.cc
  6211. * src/DefaultPieceStorage.cc
  6212. * src/DefaultPieceStorage.h
  6213. * src/PieceStorage.h
  6214. * src/UnknownLengthPieceStorage.cc
  6215. * src/UnknownLengthPieceStorage.h
  6216. * test/DefaultBtProgressInfoFileTest.cc
  6217. * test/MockPieceStorage.h
  6218. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Changed method signature:
  6220. PostDownloadHandler::getNextRequestGroups
  6221. Metalink2RequestGroup::generate
  6222. RequestGroup::postDownloadProcessing
  6223. * src/BtPostDownloadHandler.cc
  6224. * src/BtPostDownloadHandler.h
  6225. * src/Metalink2RequestGroup.cc
  6226. * src/Metalink2RequestGroup.h
  6227. * src/MetalinkPostDownloadHandler.cc
  6228. * src/MetalinkPostDownloadHandler.h
  6229. * src/PostDownloadHandler.h
  6230. * src/RequestGroup.cc
  6231. * src/RequestGroup.h
  6232. * src/RequestGroupMan.cc
  6233. * src/main.cc
  6234. * test/BtPostDownloadHandlerTest.cc
  6235. * test/Metalink2RequestGroupTest.cc
  6236. * test/MetalinkPostDownloadHandlerTest.cc
  6237. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Rewritten AccRequestGroup
  6239. * src/main.cc
  6240. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Rewritten.
  6242. * src/TaggedItem.cc (toTagString)
  6243. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Rewritten Accept-Features handling.
  6245. * src/HttpRequestCommand.cc (createHttpRequest)
  6246. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Rewritten accept types handling.
  6248. * HttpRequest.cc (createRequest)
  6249. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Rewritten
  6251. * src/FeatureConfig.cc (featureSummary)
  6252. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Changed method signature:
  6254. PeerStorage::getActivePeers
  6255. * src/DHTPeerAnnounceEntry.cc
  6256. * src/DefaultPeerStorage.cc
  6257. * src/DefaultPeerStorage.h
  6258. * src/PeerStorage.h
  6259. * test/DefaultPeerStorageTest.cc
  6260. * test/MockPeerStorage.h
  6261. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Changed method signature:
  6263. DHTPeerAnnounceStorage::getPeers,
  6264. DHTPeerAnnounceEntry::getPeers
  6265. * src/DHTGetPeersMessage.cc
  6266. * src/DHTPeerAnnounceEntry.cc
  6267. * src/DHTPeerAnnounceEntry.h
  6268. * src/DHTPeerAnnounceStorage.cc
  6269. * src/DHTPeerAnnounceStorage.h
  6270. * test/DHTAnnouncePeerMessageTest.cc
  6271. * test/DHTPeerAnnounceEntryTest.cc
  6272. * test/DHTPeerAnnounceStorageTest.cc
  6273. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. Changed method signature:
  6275. NameResolver::resolve
  6276. * src/DHTEntryPointNameResolveCommand.cc
  6277. * src/InitiateConnectionCommand.cc
  6278. * src/NameResolver.cc
  6279. * src/NameResolver.h
  6280. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Changed method signature:
  6282. PieceStorage::getAdvertisedPieceIndexes
  6283. * src/DefaultBtInteractive.cc
  6284. * src/DefaultPieceStorage.cc
  6285. * src/DefaultPieceStorage.h
  6286. * src/PieceStorage.h
  6287. * src/UnknownLengthPieceStorage.h
  6288. * test/MockPieceStorage.h
  6289. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. Changed method signature:
  6291. SegmentMan::getInFlightSegment
  6292. * src/AbstractCommand.cc
  6293. * src/SegmentMan.cc
  6294. * src/SegmentMan.h
  6295. * test/SegmentManTest.cc
  6296. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Changed method signature:
  6298. DHTAbstractNodeLookupTask::getNodesFromMessage
  6299. * src/DHTAbstractNodeLookupTask.cc
  6300. * src/DHTAbstractNodeLookupTask.h
  6301. * src/DHTNodeLookupTask.cc
  6302. * src/DHTNodeLookupTask.h
  6303. * src/DHTPeerLookupTask.cc
  6304. * src/DHTPeerLookupTask.h
  6305. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6307. * src/AbstractCommand.cc
  6308. * src/BtCheckIntegrityEntry.cc
  6309. * src/BtCheckIntegrityEntry.h
  6310. * src/BtFileAllocationEntry.cc
  6311. * src/BtFileAllocationEntry.h
  6312. * src/BtSetup.cc
  6313. * src/BtSetup.h
  6314. * src/CheckIntegrityCommand.cc
  6315. * src/CheckIntegrityEntry.h
  6316. * src/ChecksumCheckIntegrityEntry.cc
  6317. * src/ChecksumCheckIntegrityEntry.h
  6318. * src/DHTSetup.cc
  6319. * src/DHTSetup.h
  6320. * src/DownloadEngine.cc
  6321. * src/FileAllocationCommand.cc
  6322. * src/FileAllocationEntry.h
  6323. * src/RequestGroup.cc
  6324. * src/RequestGroup.h
  6325. * src/RequestGroupMan.cc
  6326. * src/RequestGroupMan.h
  6327. * src/StreamCheckIntegrityEntry.cc
  6328. * src/StreamCheckIntegrityEntry.h
  6329. * src/StreamFileAllocationEntry.cc
  6330. * src/StreamFileAllocationEntry.h
  6331. * src/TrackerWatcherCommand.cc
  6332. * src/a2functional.h
  6333. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Changed method signature:
  6335. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6336. DHTBucket::getGoodNodes,
  6337. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6338. * src/BNode.cc
  6339. * src/BNode.h
  6340. * src/DHTAbstractNodeLookupTask.cc
  6341. * src/DHTAutoSaveCommand.cc
  6342. * src/DHTBucket.cc
  6343. * src/DHTBucket.h
  6344. * src/DHTBucketRefreshTask.cc
  6345. * src/DHTFindNodeMessage.cc
  6346. * src/DHTGetPeersMessage.cc
  6347. * src/DHTRoutingTable.cc
  6348. * src/DHTRoutingTable.h
  6349. * test/BNodeTest.cc
  6350. * test/DHTBucketTest.cc
  6351. * test/DHTRoutingTableTest.cc
  6352. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. In piece selection functions, Pass std::deque<...> by reference rather
  6354. than returning it.
  6355. * src/BitfieldMan.cc
  6356. * src/BitfieldMan.h
  6357. * src/DefaultBtRequestFactory.cc
  6358. * src/DefaultPieceStorage.cc
  6359. * src/Piece.cc
  6360. * src/Piece.h
  6361. * test/BitfieldManTest.cc
  6362. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. Implemented rarest piece first piece selection strategy.
  6364. * src/AbstractBtMessage.cc
  6365. * src/AbstractBtMessage.h
  6366. * src/BitfieldMan.cc
  6367. * src/BitfieldMan.h
  6368. * src/BtBitfieldMessage.cc
  6369. * src/BtHaveAllMessage.cc
  6370. * src/BtHaveMessage.cc
  6371. * src/DefaultPieceStorage.cc
  6372. * src/DefaultPieceStorage.h
  6373. * src/PeerInteractionCommand.cc
  6374. * src/PieceStorage.h
  6375. * src/UnknownLengthPieceStorage.h
  6376. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Rewritten readData and writeData.
  6378. * src/MultiDiskAdaptor.cc
  6379. * src/MultiDiskAdaptor.h
  6380. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Move \n out of the message "Usage: ...".
  6382. * src/version_usage.cc
  6383. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Bump up version number to 0.13.2b.
  6385. * configure.ac
  6386. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Added const qualifier to argument Exception& e.
  6388. * src/Logger.h
  6389. * src/SimpleLogger.cc
  6390. * src/SimpleLogger.h
  6391. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. Pool connection when CWD, SIZE command fails.
  6393. * src/FtpNegotiationCommand.cc
  6394. * src/FtpNegotiationCommand.h
  6395. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6397. * src/HttpResponseCommand.cc
  6398. * src/HttpSkipResponseCommand.cc
  6399. * src/HttpSkipResponseCommand.h
  6400. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Pool connection when a server returns 4xx, 5xx responses.
  6402. * src/HttpNullDownloadCommand.cc
  6403. * src/HttpNullDownloadCommand.h
  6404. * src/HttpResponse.cc
  6405. * src/HttpResponse.h
  6406. * src/HttpResponseCommand.cc
  6407. * src/HttpResponseCommand.h
  6408. * test/HttpResponseTest.cc
  6409. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Print usage when no URL is specifed or bad command-line option is
  6411. specified.
  6412. * src/HelpItemFactory.cc
  6413. * src/help_tags.h
  6414. * src/option_processing.cc
  6415. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Removed duplicate log message.
  6417. * src/AbstractCommand.cc (asyncResolveHostname)
  6418. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6420. Changed -j option's default value from 5 to 1.
  6421. Added new examples using protocol auto detection feature.
  6422. Removed -T, -M usage where it can be omitted.
  6423. * doc/aria2c.1.txt
  6424. * doc/aria2c.1.html
  6425. * doc/aria2c.1.txt
  6426. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Updated command-line usage text, so that it tells users that they
  6428. can specify any number of torrent files and metalink files in
  6429. command-line.
  6430. * src/version_usage.cc
  6431. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Changed the default value of -j option to 1.
  6433. * src/HelpItemFactory.cc
  6434. * src/option_processing.cc
  6435. * src/usage_text.h
  6436. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Added the ability to reuse connection in FTP and it is enabled by
  6438. default. It can be disabled by --ftp-reuse-connection=false option.
  6439. * src/Command.cc
  6440. * src/DownloadCommand.cc
  6441. * src/FtpDownloadCommand.cc
  6442. * src/FtpDownloadCommand.h
  6443. * src/FtpFinishDownloadCommand.cc
  6444. * src/FtpFinishDownloadCommand.h
  6445. * src/FtpInitiateConnectionCommand.cc
  6446. * src/FtpNegotiationCommand.cc
  6447. * src/FtpNegotiationCommand.h
  6448. * src/HelpItemFactory.cc
  6449. * src/Makefile.am
  6450. * src/Makefile.in
  6451. * src/OptionHandlerFactory.cc
  6452. * src/option_processing.cc
  6453. * src/prefs.h
  6454. * src/usage_text.h
  6455. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Call Command::transitStatus() before calling Command::execute(),
  6457. so that the status change made in execute() is not cleared.
  6458. * src/DownloadEngine.cc
  6459. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. Removed forward declaration of SocketCore class.
  6461. * src/HttpDownloadCommand.h
  6462. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6464. in InitiateConnectionCommandFactory. They should be set only when
  6465. the protocol is HTTP or HTTPS.
  6466. * src/InitiateConnectionCommandFactory.cc
  6467. * src/RequestGroup.cc
  6468. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Fixed infinite loop in checksum checking.
  6470. * src/IteratableChecksumValidator.cc
  6471. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Set _supportsPersistentConnection to true by default.
  6473. * src/Request.cc
  6474. * src/RequestGroup.cc
  6475. * test/HttpRequestTest.cc
  6476. * test/RequestTest.cc
  6477. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Added timeout to socket pool. The default timeout is 15 seconds,
  6479. which is the same value Apache uses.
  6480. * src/DownloadEngine.cc
  6481. * src/DownloadEngine.h
  6482. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Fixed misuse of multimap::find()
  6484. * src/HttpHeader.cc
  6485. * test/HttpHeaderTest.cc
  6486. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6488. option.
  6489. The asynchronous DNS is not capable of IPv6 yet.
  6490. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6491. least for HTTP download.
  6492. * src/AbstractCommand.cc
  6493. * src/AbstractCommand.h
  6494. * src/AsyncNameResolver.cc
  6495. * src/AsyncNameResolver.h
  6496. * src/DHTEntryPointNameResolveCommand.cc
  6497. * src/DHTEntryPointNameResolveCommand.h
  6498. * src/DownloadEngine.cc
  6499. * src/DownloadEngine.h
  6500. * src/FtpInitiateConnectionCommand.cc
  6501. * src/FtpInitiateConnectionCommand.h
  6502. * src/HelpItemFactory.cc
  6503. * src/HttpInitiateConnectionCommand.cc
  6504. * src/HttpInitiateConnectionCommand.h
  6505. * src/InitiateConnectionCommand.cc
  6506. * src/InitiateConnectionCommand.h
  6507. * src/Makefile.am
  6508. * src/Makefile.in
  6509. * src/NameResolver.cc
  6510. * src/NameResolver.h
  6511. * src/OptionHandlerFactory.cc
  6512. * src/SocketCore.cc
  6513. * src/SocketCore.h
  6514. * src/Util.cc
  6515. * src/Util.h
  6516. * src/option_processing.cc
  6517. * src/prefs.h
  6518. * src/usage_text.h
  6519. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Updated man page: --quiet, --header were added.
  6521. --metalink-servers and --enable-http-keep-alive option were updated.
  6522. * doc/aria2c.1
  6523. * doc/aria2c.1.html
  6524. * doc/aria2c.1.txt
  6525. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Enable HTTP keep-alive by default.
  6527. * src/HelpItemFactory.cc
  6528. * src/option_processing.cc
  6529. * src/usage_text.h
  6530. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Disable http keep-alive if the remote server is not HTTP/1.1.
  6532. * src/HttpConnection.cc
  6533. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Receive content body of 302 response so that the connection can be
  6535. reused later when http keep-alive is enabled.
  6536. * src/HttpNullDownloadCommand.cc
  6537. * src/HttpNullDownloadCommand.h
  6538. * src/HttpResponseCommand.cc
  6539. * src/HttpResponseCommand.h
  6540. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. const SharedHandle<Request> -> const SharedHandle<Request>&
  6542. * src/FtpDowndloadCommand.cc
  6543. * src/FtpDowndloadCommand.h
  6544. * src/HttpDownloadCommand.cc
  6545. * src/HttpDownloadCommand.h
  6546. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Fixed the bug that the control file(.aria2 file) is not renamed
  6548. according to tryAutoFileRenaming().
  6549. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6550. its control file exist, use them and continue download.
  6551. The old implementation didn't take into account of control file's
  6552. existence, so basically you couldn't continue download of renamed file.
  6553. * src/BtProgressInfoFile.h
  6554. * src/DefaultBtProgressInfoFile.cc
  6555. * src/DefaultBtProgressInfoFile.h
  6556. * src/NullProgressInfoFile.h
  6557. * src/RequestGroup.cc
  6558. * test/DefaultBtProgressInfoFileTest.cc
  6559. * test/MockBtProgressInfoFile.h
  6560. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Change the default value of --metalink-servers option from `5' to `1'.
  6562. * src/HelpItemFactory.cc
  6563. * src/option_processing.cc
  6564. * src/usage_text.h
  6565. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Reimplemented transparent metalink using Accept request header.
  6567. * src/HttpRequest.cc
  6568. * src/HttpRequest.h
  6569. * src/HttpRequestCommand.cc
  6570. * src/Metalink2RequestGroup.cc
  6571. * src/RequestGroup.cc
  6572. * src/RequestGroup.h
  6573. * test/HttpRequestTest.cc
  6574. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Bump up version number to 0.13.2a
  6576. * configure.ac
  6577. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Updated configure.ac using the result of autoscan.
  6579. * configure.ac
  6580. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Fixed compilation error without gcrypt/openssl.
  6582. * src/DownloadCommand.cc
  6583. * src/DownloadCommand.h
  6584. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Reorganized version information so that it can be displayed in a
  6586. standard terminal screen without scrolling.
  6587. Removed http, ftp from Configuration section, because they are always
  6588. enabled.
  6589. * src/FeatureConfig.cc
  6590. * src/FeatureConfig.h
  6591. * src/main.cc
  6592. * src/messageDigest.cc
  6593. * src/messageDigest.h
  6594. * src/version_usage.cc
  6595. * test/FeatureConfigTest.cc
  6596. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Masked user ID in log.
  6598. * src/FtpConnection.cc (sendUser)
  6599. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Removed query part from filename in HTTP download. The query part means
  6601. the substring after "?" in URL. Firefox seems do the same thing.
  6602. A query part is sometimes very long and not suitable to filename,
  6603. so I think it is better to remove it from filename.
  6604. * src/HttpRequest.cc
  6605. * src/HttpRequest.h
  6606. * src/Request.cc
  6607. * src/Request.h
  6608. * test/HttpRequestTest.cc
  6609. * test/RequestTest.cc
  6610. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Rewritten Exception class. Throw exception object, not its pointer and
  6612. catch by reference, so that remove problematic delete operator for
  6613. catched exception.
  6614. * src/Exception.cc
  6615. * src/Exception.h
  6616. * test/ExceptionTest.cc
  6617. * src/*: All files throwing/catching exception.
  6618. * test/*: All files throwing/catching exception.
  6619. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Now auto protocol detection is enabled without -Z option.
  6621. But there is a important difference between with/without -Z optoin.
  6622. For example, if you type:
  6623. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6624. then, aria2 interprets there are 3 request groups:
  6625. (1) http://host/file, http://mirror/file <-- multi-source download
  6626. (2) file1.torrent
  6627. (3) file2.metalink
  6628. On the other hand, if you invoke above command with -Z option, it is
  6629. interpreted as 4 request groups:
  6630. (1) http://host/file
  6631. (2) file1.torrent
  6632. (3) file2.metalink
  6633. (4) http://mirror/file
  6634. I think usually user don't mix multi-source URLs and torrent files, so
  6635. there is no big problem here.
  6636. * src/main.cc
  6637. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Fixed the bug that causes segmentaion fault when reading XML containing
  6639. unescapsed character like '&'.
  6640. Also a modification was made which avoids adding unnecessary
  6641. characters stack and appending unused string.
  6642. * src/ExpatMetalinkProcessor.cc
  6643. * src/FileMetalinkParserState.h
  6644. * src/FilesMetalinkParserState.h
  6645. * src/FinMetalinkParserState.h
  6646. * src/HashMetalinkParserState.h
  6647. * src/InitialMetalinkParserState.h
  6648. * src/LanguageMetalinkParserState.h
  6649. * src/MetalinkMetalinkParserState.h
  6650. * src/MetalinkParserState.h
  6651. * src/MetalinkParserStateMachine.cc
  6652. * src/MetalinkParserStateMachine.h
  6653. * src/OSMetalinkParserState.h
  6654. * src/PieceHashMetalinkParserState.h
  6655. * src/PiecesMetalinkParserState.h
  6656. * src/ResourcesMetalinkParserState.h
  6657. * src/SizeMetalinkParserState.h
  6658. * src/SkipTagMetalinkParserState.h
  6659. * src/URLMetalinkParserState.h
  6660. * src/VerificationMetalinkParserState.h
  6661. * src/VersionMetalinkParserState.h
  6662. * src/XML2SAXMetalinkProcessor.cc
  6663. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Added StringFormat class, which internally calls vasprintf.
  6665. operator<< is defined for this class, so it can be used with iostream
  6666. classes nicely. SimpleLogger and following functions are rewritten
  6667. using StringFormat class.
  6668. Besides, now Logger class's methods are non-const, many classes
  6669. that has a const Logger* as a member variable are modified to remove
  6670. const qualifier from the variable declaration.
  6671. * src/HelpItemFactory.cc
  6672. * src/Request.cc
  6673. * src/SimpleLogger.cc
  6674. * src/StringFormat.cc
  6675. * src/StringFormat.h
  6676. * src/Util.cc
  6677. * src/option_processing.cc
  6678. * src/version_usage.cc
  6679. * test/StringFormatTest.cc
  6680. * src/*.h: The classes that has const Logger* as a member variable.
  6681. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6683. failed. Also fixed memory link when exception is thrown there.
  6684. * src/main.cc (AccRequestGroup)
  6685. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Added build-in "Accept-Features" support. For now only "metalink" is
  6687. used in this header field.
  6688. This "metalink" value is removed from the list when connecting URLs
  6689. fed by metalink file to avoid loop in "transparent" metlaink.
  6690. * src/HttpRequest.cc
  6691. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6692. header is also held in this variable. Also renamed setUserHeaders as
  6693. addHeader and it was rewritten to add header not just to clear the old
  6694. value.
  6695. * src/HttpRequestCommand.cc
  6696. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6697. from "Accept-Features" list.
  6698. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6699. default.
  6700. * src/RequestGroup.h
  6701. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6702. * src/a2functional.h: Included <string> because Concat class depends on
  6703. it.
  6704. * test/HttpRequestTest.cc
  6705. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Added comment
  6707. * src/RequestGroup.cc (createNextCommand)
  6708. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Capitalized METHOD_GET and METHOD_HEAD
  6710. * src/Request.cc
  6711. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Added getDownloadResults() method
  6713. * src/RequestGroupMan.cc
  6714. * src/RequestGroupMan.h
  6715. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Fixed the bug that aria2 exits when commands is empty() but
  6717. _routineCommands are not.
  6718. * src/DownloadEngine.cc
  6719. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Use the default value pulled from Option object in HelpItemFactory.
  6721. except options whose defualt value is embedded in a usage text.
  6722. * src/HelpItemFactory.cc
  6723. * src/HelpItemFactory.h
  6724. * src/option_processing.cc
  6725. * src/version_usage.cc
  6726. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Added --quiet option to make aria2 quiet (no console output).
  6728. --quiet option is tagged with ADVANCED.
  6729. * src/HelpItemFactory.cc
  6730. * src/LogFactory.cc
  6731. * src/LogFactory.h
  6732. * src/MultiUrlRequestInfo.cc
  6733. * src/MultiUrlRequestInfo.h
  6734. * src/NullStatCalc.h: New class. This class prints nothing.
  6735. * src/OptionHandlerFactory.cc
  6736. * src/main.cc
  6737. * src/option_processing.cc
  6738. * src/prefs.h
  6739. * src/usage_text.h
  6740. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6742. * src/HelpItemFactory.cc (createHelpItems):
  6743. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Fixed compilation error in ExpatMetalinkProcessor.cc
  6745. * src/ExpatMetalinkProcessor.cc
  6746. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Reuse socket if the origin server supports HTTP keep-alive and
  6748. --enable-http-keep-alive or --enable-http-pipelining is given.
  6749. The current implementation doesn't reuse the connections established
  6750. against proxy server.
  6751. * src/AbstractCommand.cc
  6752. * src/DownloadEngine.cc
  6753. * src/DownloadEngine.h
  6754. * src/HttpDownloadCommand.cc
  6755. * src/HttpInitiateConnectionCommand.cc
  6756. * src/HttpResponseCommand.cc
  6757. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Rewritten HTTP keep-alive and pipelining routine.
  6759. * src/AbstractCommand.cc
  6760. * src/HttpConnection.cc
  6761. * src/HttpDownloadCommand.cc
  6762. * src/HttpRequest.cc
  6763. * src/HttpRequestCommand.cc
  6764. * src/HttpResponseCommand.cc
  6765. * src/Request.cc
  6766. * src/Request.h
  6767. * src/RequestGroup.cc
  6768. * test/HttpRequestTest.cc
  6769. * test/HttpResponseTest.cc
  6770. * test/RequestTest.cc
  6771. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Added missing setUserHeaders call
  6773. * src/HttpRequestCommand.cc
  6774. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6776. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6777. waste of time because it is more likey false.
  6778. * src/FileAllocationDispatcherCommand.cc (execute)
  6779. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Now HTTP status and version are a member variable of HttpHeader.
  6781. HTTP status is processed as a string, not integer.
  6782. * src/AbstractProxyResponseCommand.cc
  6783. * src/HttpConnection.cc
  6784. * src/HttpHeader.cc
  6785. * src/HttpHeader.h
  6786. * src/HttpHeaderProcessor.cc
  6787. * src/HttpHeaderProcessor.h
  6788. * src/HttpResponse.cc
  6789. * src/HttpResponse.h
  6790. * test/HttpHeaderProcessorTest.cc
  6791. * test/HttpResponseTest.cc
  6792. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Added --header option. You can specify any number of additional HTTP headers
  6794. like:
  6795. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6796. Unlike other commad-line option, you can use --header option multiple times.
  6797. * src/HelpItemFactory.cc
  6798. * src/HttpRequest.{cc, h}
  6799. * src/HttpRequestCommand.cc
  6800. * src/OptionHandlerFactory.cc
  6801. * src/OptionHandlerImpl.h
  6802. * src/option_processing.cc
  6803. * src/prefs.h
  6804. * src/usage_text.h
  6805. * test/HttpRequestTest.cc (testUserHeaders)
  6806. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Eliminates the time lag between sequential downloads and commands in
  6808. the same RequestGroup.
  6809. In old implementation, aria2 occasionally waits 1 seconds before
  6810. executing next command or RequestGroup.
  6811. This is really a waste of time, and new implementation eliminates
  6812. this unnecessary time lag.
  6813. * src/AbstractCommand.cc
  6814. * src/AutoSaveCommand.cc
  6815. * src/CheckIntegrityCommand.cc
  6816. * src/Command.{cc, h}
  6817. * src/DownloadEngine.{cc, h}
  6818. * src/DownloadEngineFactory.cc
  6819. * src/FileAllocationCommand.cc
  6820. * src/FileAllocationDispatcherCommand.cc
  6821. * src/FillRequestGroupCommand.cc
  6822. * src/FtpInitiateConnectionCommand.cc
  6823. * src/HaveEraseCommand.cc
  6824. * src/HttpInitiateConnectionCommand.cc
  6825. * src/HttpResponseCommand.cc
  6826. * src/RealtimeCommand.cc
  6827. * src/RequestGroup.cc
  6828. * src/RequestGroupMan.cc
  6829. * src/StreamFileAllocationEntry.cc
  6830. * src/TimeBasedCommand.{cc, h}
  6831. * src/TimedHaltCommand.cc
  6832. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6834. keyword explicit and SharedHandle's default constructor initializes
  6835. its internal obj to null, old implementation initializes it using
  6836. obj's default constructor.
  6837. To assign null, write SharedHandle<T> x(...); x.reset();
  6838. TODO: test/SharedHandleTest.cc needs more tests.
  6839. * src/SharedHandle.h
  6840. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Fixed type in man page.
  6842. * doc/aria2c.1.txt
  6843. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6845. * src/SimpleLogger.{cc, h}
  6846. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Implemented auto protocol detection.
  6848. Now you can do:
  6849. aria2c -Z http://host/file file1.torrent file2.metalink
  6850. (Note: -Z option is required for auto protcol detection.)
  6851. Then aria2c downloads 3 files simultaneously:
  6852. 1. http://host/file
  6853. 2. file1.torrent <-- read local torrent file
  6854. 3. file2.metalink <-- read local Metalink file.
  6855. Same thing goes with -i option. Assume your uris.txt contans:
  6856. http://host/file
  6857. file1.torrent
  6858. file2.metalink
  6859. Then you can do: aria2c -i uris.txt
  6860. (Note: -Z option is not needed if -i option is given.)
  6861. * src/main.cc
  6862. * src/ProtocolDetector.{cc, h}
  6863. * test/ProtocolDetectorTest.cc
  6864. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6866. installed
  6867. * src/ARC4Encryptor.h
  6868. * src/ARC4Decryptor.h
  6869. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Renamed argument from 'errno' to 'err', since errno is confused with
  6871. errno defined in errno.h.
  6872. * src/LibgcryptARC4Decryptor.h
  6873. * src/LibgcryptARC4Context.h
  6874. * src/LibgcryptDHKeyExchange.h
  6875. * src/LibgcryptARC4Encryptor.h
  6876. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Rewritten choking algorithm.
  6878. * src/PeerChokeCommand.{cc, h}
  6879. * src/BtInterestedMessage.cc
  6880. * src/PeerSessionResource.{cc, h}
  6881. * src/DefaultPeerStorage.{cc, h}
  6882. * src/BtNotInterestedMessage.cc
  6883. * src/DefaultBtMessageDispatcher.{cc, h}
  6884. * src/BtMessageDispatcher.h
  6885. * src/Peer.{cc, h}
  6886. * src/BtLeecherStateChoke.{cc, h}
  6887. * src/BtSetup.cc
  6888. * src/BtSeederStateChoke.{cc, h}
  6889. * src/PeerStorage.h
  6890. * test/MockPeerStorage.h
  6891. * test/MockBtMessageDispatcher.h
  6892. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Fixed compilation error on x84-64 platform.
  6894. * src/AuthConfig.cc: Included ostream.
  6895. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Rewritten getBasename() and getDirname(), without standard library
  6897. basename(), dirname().
  6898. * src/File.cc
  6899. * test/FileTest.cc
  6900. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Added Simplified Chinese translation. Also updated the following
  6902. translations: Polish, Dutch, German. Great thanks to all translators.
  6903. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Suppress content-range error when 'Content-Range' response header
  6905. doesn't contains bytes-unit specifier 'bytes'
  6906. * src/HttpHeader.cc (getRange)
  6907. * test/HttpHeaderTest.cc
  6908. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Fixed compilation error with g++-4.3
  6910. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Added missing include files for MinGW
  6912. * test/HttpHeaderProcessorTest.cc
  6913. * test/DHTRoutingTableSerializerTest.cc
  6914. * test/DHTRoutingTableDeserializerTest.cc
  6915. * test/UriListParserTest.cc
  6916. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Now download line is printed nicely with no garbage at the end of
  6918. line. I use ioctl to get the columns of terminal.
  6919. If stdout is redirected to another device, instead of carriage return,
  6920. end of line '\n' character is used. This is feature request#1909659
  6921. * src/ConsoleStatCalc.cc (calculateStat)
  6922. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Included a2time.h
  6924. * src/DHTMessageDispatcher.h
  6925. * src/DHTMessageEntry.h
  6926. * src/DHTReplaceNodeTask.h
  6927. * src/DHTMessageTracker.h
  6928. * src/Util.h
  6929. * src/CookieBox.h
  6930. * src/SocketCore.h
  6931. * src/DefaultBtMessageDispatcher.h
  6932. * src/SocketCore.cc
  6933. * src/Util.cc
  6934. * src/DHTPingTask.h
  6935. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Fixed high memory footprint when DHT is enabled.
  6937. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6938. queued than it is processed and the queue is getting longer. As a
  6939. consequence, momory usage is increased.
  6940. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6941. replacement cache in DHTBucket which is described in Kademlia paper.
  6942. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6943. DHTReplaceNodeTask.
  6944. * src/DHTBucket.{h, cc}
  6945. (cacheNode): New function.
  6946. (getCachedNodes): New function.
  6947. (dropNode): Push back cached node to _nodes.
  6948. * test/DHTBucketTest.cc
  6949. (testCacheNode): New test
  6950. (testDropNode): New test
  6951. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6953. the unused 4KB memory when ssl is not used.
  6954. * src/SocketCore.cc
  6955. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Added summary log for peer announce storage.
  6957. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6958. Removed cast
  6959. * src/DefaultPeerStorage.cc (addPeer)
  6960. Log exception message
  6961. * src/DHTMessageTracker.cc (handleTimeout)
  6962. Fixed casting
  6963. * test/HttpRequestTest.cc
  6964. * test/MetalinkProcessorTest.cc
  6965. * test/PieceTest.cc
  6966. * test/MetalinkEntryTest.cc
  6967. * test/SequenceTest.cc
  6968. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. * src/ParameterizedStringParser.cc (createLoop):
  6970. Removed unused variable sstep.
  6971. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6972. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. * src/Util.{h, cc}
  6974. (parseUInt): New function.
  6975. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6976. The actual range is uint32_t.
  6977. * test/UtilTest.cc
  6978. * src/ParameterizedStringParser.cc:
  6979. Use Util::parseUInt() for loop variables.
  6980. * test/ParameterizedStringParserTest.cc
  6981. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6982. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Rewritten the functions for binding port.
  6984. * src/DHTConnectionImpl.{h, cc}
  6985. * src/PeerListenCommand.{h, cc}
  6986. * src/DHTSetup.cc
  6987. * src/BtSetup.cc
  6988. * test/DHTConnectionImplTest.cc
  6989. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. type cleanup for allmost all remaining files.
  6991. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Type clarification
  6993. * src/PeerSessionResource.{h, cc}
  6994. * src/DefaultPieceStorage.{h, cc}
  6995. * src/Peer.{h, cc}
  6996. * test/PeerSessionResourceTest.cc
  6997. Use div function
  6998. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6999. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. Type clarification
  7001. * src/DefaultPeerStorage.{h, cc}
  7002. * test/DefaultPeerStorageTest.cc
  7003. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Type clarification: size_t for length or size, uint64_t for file
  7005. length, off_t for file offset.
  7006. * src/DefaultBtProgressInfoFile.cc
  7007. * src/DefaultBtContext.{h, cc}
  7008. * src/DefaultBtInteractive.cc
  7009. * src/DownloadCommand.{h, cc}
  7010. * src/IteratableChunkChecksumValidator.{h, cc}
  7011. * src/SegmentMan.{h, cc}
  7012. * src/SingleFileDownloadContext.{h, cc}
  7013. * src/IteratableChecksumValidator.{h, cc}
  7014. * src/BtContext.h
  7015. * src/IteratableValidator.h
  7016. * src/DownloadContext.h
  7017. * test/SingleFileDownloadContextTest.cc
  7018. * test/DefaultBtContextTest.cc
  7019. * test/MockBtContext.h
  7020. * test/Metalink2RequestGroupTest.cc
  7021. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Type clarification: size_t for length or size, uint64_t for file
  7023. length, off_t for file offset.
  7024. * src/PiecedSegment.cc
  7025. * src/GrowSegment.h
  7026. * src/DefaultBtRequestFactory.h
  7027. * src/DefaultBtProgressInfoFile.cc
  7028. * src/UnknownLengthPieceStorage.h
  7029. * src/DefaultPieceStorage.cc
  7030. * src/UnknownLengthPieceStorage.cc
  7031. * src/DefaultBtInteractive.cc
  7032. * src/GrowSegment.cc
  7033. * src/BitfieldMan.h
  7034. * src/DownloadCommand.cc
  7035. * src/BtRequestFactory.h
  7036. * src/PiecedSegment.h
  7037. * src/DefaultPieceStorage.h
  7038. * src/Piece.cc
  7039. * src/DefaultBtRequestFactory.cc
  7040. * src/PieceStorage.h
  7041. * src/Segment.h
  7042. * src/Piece.h
  7043. * src/BitfieldMan.cc
  7044. * src/Util.cc
  7045. * test/DefaultBtProgressInfoFileTest.cc
  7046. * test/DefaultPieceStorageTest.cc
  7047. * test/MockPieceStorage.h
  7048. * test/BtRequestMessageTest.cc
  7049. * test/DefaultBtMessageDispatcherTest.cc
  7050. * test/BitfieldManTest.cc
  7051. * test/GrowSegmentTest.cc
  7052. * test/PieceTest.cc
  7053. * test/SegmentTest.cc
  7054. * test/SegmentManTest.cc
  7055. * test/DefaultBtRequestFactoryTest.cc
  7056. * test/MockBtRequestFactory.h
  7057. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Fixed compilation error with --disable-nls
  7059. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7060. in gettext.h causes the problem.
  7061. * src/common.h
  7062. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Removed subPiece related functions.
  7064. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7065. * src/DefaultPieceStorage.{h, cc}
  7066. * test/PieceTest.cc
  7067. * test/DefaultPieceStorageTest.cc
  7068. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Use unsigned char for data store.
  7070. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Bump up version number to 0.13.0+1
  7072. * configure.ac
  7073. * Release 0.13.0+1
  7074. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Changed inactive connection timeout to 120.
  7076. To accept more mulually interested peers, disconnect peer when there
  7077. is no interest between us after certain time passed.
  7078. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7079. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7081. when compiled with async DNS support.
  7082. * src/DownloadEngine.cc
  7083. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7084. value '10' will be a little bit short when some DNS servers are
  7085. offline and several DNS servers are tried. It should be configured
  7086. by command-line option.
  7087. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Merged Ross's mingw patch.
  7089. * src/DHTRoutingTableDeserializer.cc
  7090. * src/DHTRoutingTableSerializer.cc
  7091. * src/Platform.{h, cc}
  7092. * src/timegm.h
  7093. * src/gettimeofday.h
  7094. * src/getaddrinfo.h
  7095. * src/SocketCore.h
  7096. * src/common.h
  7097. * src/inet_aton.h
  7098. * src/DownloadEngine.h
  7099. * src/gai_strerror.h
  7100. * src/a2netcompat.h
  7101. * configure.ac
  7102. * configure
  7103. * aclocal.m4
  7104. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Included missing iostream.
  7106. * test/AllTest.cc
  7107. * test/BtDependencyTest.cc
  7108. * test/BtExtendedMessageTest.cc
  7109. * test/DHTConnectionImplTest.cc
  7110. * test/DHTMessageFactoryImplTest.cc
  7111. * test/DHTMessageTrackerEntryTest.cc
  7112. * test/DHTNodeTest.cc
  7113. * test/DHTRoutingTableSerializerTest.cc
  7114. * test/DefaultBtAnnounceTest.cc
  7115. * test/DefaultBtContextTest.cc
  7116. * test/DefaultBtMessageFactoryTest.cc
  7117. * test/DefaultExtensionMessageFactoryTest.cc
  7118. * test/HandshakeExtensionMessageTest.cc
  7119. * test/HttpResponseTest.cc
  7120. * test/MetalinkProcessorTest.cc
  7121. * test/MultiFileAllocationIteratorTest.cc
  7122. * test/SocketCoreTest.cc
  7123. * test/UTPexExtensionMessageTest.cc
  7124. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Reorganized includes.
  7126. * src/NameResolver.cc
  7127. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Fixed compilation error without ares/c-ares
  7129. * src/NameResolver.h:
  7130. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Added a test for large file.
  7132. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7133. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Fixed the bug that file size is ignored if size > INT32_MAX
  7135. * src/SizeMetalinkParserState.cc (endElement):
  7136. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Bump up version number to 0.13.0
  7138. * configure.ac
  7139. * Release 0.13.0
  7140. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Updated Makfefile.am to make 'make dist' work.
  7142. Now packaged filename is aria2c-VERSION.tar.bz2.
  7143. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7144. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7145. Large file support is now configured by configure script.
  7146. * configure.ac
  7147. Removed unsused source files
  7148. * src/
  7149. * test/
  7150. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7151. Peer.h and BtContext.h respectively.
  7152. * src/Peer.h
  7153. * src/BtContext.h
  7154. Updated translations.
  7155. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7156. translations. Great thanks to all translators!;)
  7157. * po/*.{po, gmo}
  7158. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7160. statically declared sha1 MessageDigestContext.
  7161. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7162. initialization of short-lived MessageDigestContext.
  7163. * src/MessageDigestHelper.{h, cc}
  7164. * src/main.cc
  7165. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7166. the initialization of MessageDigestContext every time in validating
  7167. chunk checksum.
  7168. * src/DownloadCommand.{h, cc}
  7169. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Add a file descriptor which connected to fast peer(latency<1500) to
  7171. select(). This change reduced CPU load.
  7172. * src/PeerInteractionCommand.cc
  7173. * src/DefaultBtInteractive.{h, cc}
  7174. * src/BtInteractive.h
  7175. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Fixed the previous insufficient fix for possible busy loop.
  7177. * src/MSEHandshake.cc (identifyHandshakeType)
  7178. Removed unused functions.
  7179. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7180. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Fixed possible busy loop if first 20 bytes are not received for a few
  7182. minutes.
  7183. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7184. * src/ReceiverMSEHandshakeCommand.cc
  7185. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Fixed compilation error
  7187. * src/ExpatMetalinkProcessor.cc
  7188. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7190. * src/DHTBucket.cc
  7191. Removed unnecessary cast.
  7192. * src/HandshakeExtensionMessage.cc
  7193. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7195. is missing.
  7196. * src/OptionHandlerFactory.cc
  7197. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Fixed the bug that HAVE message is not sent for a piece they are
  7199. downloaded fom http/ftp server before any BitTorrent handshake is done
  7200. with peers.
  7201. * src/DefaultBtInteractive.cc
  7202. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7204. * src/Makefile.am
  7205. * src/Makefile.in
  7206. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Updated README. Added html version of README and man page.
  7208. * README
  7209. * README.html
  7210. * readme2html: Shell script to generate README.html from README using
  7211. asciidoc.
  7212. * doc/aria2c.1.html
  7213. * doc/makeman: Added the line to generate aria2c.1.html
  7214. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Fixed offset calculation.
  7216. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7217. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Rewritten itos and uitos using template. llitos and ullitos are
  7219. replaced with itos and uitos respectively.
  7220. * src/Util.{h, cc}
  7221. * test/UtilTest.cc
  7222. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7224. of the number of bytes required for storing public key and shared
  7225. secret.
  7226. * src/LibgcryptDHKeyExchange.h
  7227. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7228. * src/MSEHandshake.cc
  7229. * test/DHKeyExchangeTest.cc
  7230. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Removed since they are not used.
  7232. * src/Xml2MetalinkProcessor.{h, cc}
  7233. * src/Socket.cc
  7234. * src/SegmentSplitter.{h, cc}
  7235. * test/Xml2MetalinkProcessorTest.cc
  7236. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Fixed the bug that prevents aria2 from stopping other than by pressing
  7238. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7239. option. aria2 doesn't stop even after --seed-time is satisfied and
  7240. continues to output blank lines in the console.
  7241. * src/ReceiverMSEHandshakeCommand.cc
  7242. * src/PeerReceiveHandshakeCommand.cc
  7243. * src/PeerListenCommand.cc
  7244. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Bump up version number to 0.13.0rc
  7246. * configure.ac
  7247. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Updated man page and some usage text.
  7249. * doc/aria2c.1.txt
  7250. * src/usage_text.h
  7251. * po/*.{po, gmo}
  7252. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Updated translations. Added Finnish and Hebrew translations.
  7254. Great thanks to all translators!
  7255. * po/*.{po, gmo}
  7256. * po/LINGUAS
  7257. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Log more detailed information about each message.
  7259. * src/DHTQueryMessage.{h, cc}
  7260. * src/DHTGetPeersMessage.{h, cc}
  7261. * src/DHTFindNodeReplyMessage.{h, cc}
  7262. * src/DHTGetPeersReplyMessage.{h, cc}
  7263. * src/DHTAnnouncePeerMessage.{h, cc}
  7264. * src/DHTResponseMessage.{h, cc}
  7265. * src/DHTFindNodeMessage.{h, cc}
  7266. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Use constants defined in prefs.h
  7268. * src/option_processing.cc
  7269. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7271. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Make room for future enchancements for IPv6 addresses.
  7273. Bump up version number of dht.dat file format to 2.
  7274. Not compatible with previous version.
  7275. * src/DHTRoutingTableSerializer.cc
  7276. * src/DHTRoutingTableDeserializer.cc
  7277. * test/DHTRoutingTableSerializerTest.cc
  7278. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Added handling for the return values from
  7280. PeerMessageUtil::createcompact().
  7281. * src/DefaultBtContext.cc (computeFastSet):
  7282. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Fixed abort when peer's ip address is IPv4-mapped address.
  7284. * src/DefaultBtContext.cc (computeFastSet)
  7285. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7286. cannot handle IPv4-mapped addresses.
  7287. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7288. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Proper return value handling for OpenSSL functions.
  7290. * src/LibsslDHKeyExchange.h
  7291. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Random bytes generation using libgcrypt and OpenSSL.
  7293. * src/DHTUtil.{h, cc}
  7294. * test/DHTUtilTest.cc
  7295. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7297. received.
  7298. * src/DHTMessageReceiver.cc (receiveMessage)
  7299. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Fixed the bug that a return code is always 0. BUG#1897704
  7301. If error occurred during the download or there exist unfinished
  7302. downloads, aria2 returns with code 1.
  7303. * src/RequestGroupMan.{h, cc}
  7304. * src/MultiUrlRequestInfo.{h, cc}
  7305. * src/main.cc
  7306. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. IPv6 support for SocketCore class.
  7308. TODO: In SocketCore::establishConnection(), this is insufficient to
  7309. determin the failure of connect() here because the socket is
  7310. non-blocking state. The next addresses should be tried after select().
  7311. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7312. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7313. instead which address family independent.
  7314. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7315. information in a compact peer format which is for IPv4 only.
  7316. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7317. this is a spec of BitTorrent protocol.
  7318. * src/SocketCore.{h, cc}
  7319. * src/PeerMessageUtil.cc
  7320. * test/SocketCoreTest.cc
  7321. * test/PeerMessageUtilTest.cc
  7322. * test/DHTConnectionImplTest.cc
  7323. Handle IPv4-mapped addresses.
  7324. * src/DHTNode.cc: Now identity is determined by node id.
  7325. * src/DHTMessageTrackerEntry.cc
  7326. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7327. should handle it.
  7328. * src/DHTRoutingTableDeserializer.cc
  7329. * src/DHTMessageFactoryImpl.cc
  7330. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Change the unit of --stop option from a minute to a second.
  7332. * src/usage_text.h
  7333. * src/DownloadEngineFactory.cc
  7334. * src/OptionHandlerFactory.cc
  7335. * src/message.h
  7336. * src/TimedHaltCommand.cc
  7337. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Make listening socket non-block mode.
  7339. * src/FtpConnection.cc
  7340. * src/FtpNegotiationCommand.{h, cc}
  7341. * src/PeerListenCommand.cc
  7342. Fixed the bug that cause slow ftp negotiation.
  7343. * src/FtpNegotiationCommand.{h, cc}
  7344. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Added basic tag to --enable-dht, --dht-listen-port option.
  7346. * src/HelpItemFactory.cc (createHelpItems)
  7347. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Updated text.
  7349. * src/usage_text.h
  7350. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7352. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Determin _threadtholdSpeed in each constructor for
  7354. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7355. * src/ActivePeerConnectionCommand.{h, cc}
  7356. * src/PeerReceiveHandshakeCommand.{h, cc}
  7357. * src/BtSetup.cc
  7358. * src/BtConstants.h
  7359. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Added --bt-min-crypto-level and --bt-require-crypto options.
  7361. * src/OptionHandlerFactory.cc
  7362. * src/MSEHandshake.cc
  7363. * src/HelpItemFactory.cc
  7364. * src/option_processing.cc
  7365. * src/ReceiverMSEHandshakeCommand.cc
  7366. * src/prefs.h
  7367. * src/DefaultBtAnnounce.cc
  7368. * src/InitiatorMSEHandshakeCommand.cc
  7369. * src/usage_text.h
  7370. * test/MSEHandshakeTest.cc
  7371. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Bump version number to 0.13.0b
  7373. * configure.ac
  7374. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Updated doc.
  7376. * src/MessageDigestHelper.h:
  7377. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Use raw message digest as a token instead of its hexadecimal
  7379. representation.
  7380. * src/DHTTokenTracker.cc (generateToken)
  7381. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Added Message Stream Encryption(MSE) support.
  7383. Currently, aria2 accepts incoming connections with Obfuscation Header
  7384. and legacy BitTorrent Header and establishes connections with
  7385. Obfuscation Header first and if failed then retry with legacy
  7386. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7387. choose ARC4. The new option to change the default behavior is planned.
  7388. For tracker extension, "supportcrypto=1" is added statically.
  7389. * src/PeerInitiateConnectionCommand.{h, cc}
  7390. * src/PeerConnection.{h, cc}
  7391. * src/HandleRegistry.h
  7392. * src/SocketCore.h
  7393. * src/PeerReceiveHandshakeCommand.{h, cc}
  7394. * src/BtRegistry.{h, cc}
  7395. * src/PeerListenCommand.cc
  7396. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7397. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7398. * src/MSEHandshake.{h, cc}
  7399. * src/ARC4Encryptor.h
  7400. * src/ARC4Decryptor.h
  7401. * src/LibgcryptARC4Encryptor.h
  7402. * src/LibgcryptARC4Decryptor.h
  7403. * src/LibgcryptARC4Context.h
  7404. * src/LibsslARC4Encryptor.h
  7405. * src/LibsslARC4Decryptor.h
  7406. * src/LibsslARC4Context.h
  7407. * src/DHKeyExchange.h
  7408. * src/LibgcryptDHKeyExchange.h
  7409. * src/LibsslDHKeyExchange.h
  7410. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7411. * test/DefaultBtAnnounceTest.cc
  7412. * test/ARC4Test.cc
  7413. * test/DHKeyExchangeTest.cc
  7414. Removed prepareForRetry() because it is not used.
  7415. * src/PeerAbstractCommand.{h, cc}
  7416. * src/PeerInteractionCommand.{h, cc}
  7417. * src/PeerInitiateConnectionCommand.{h, cc}
  7418. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Added the ability to load nodes from torrent file. These nodes are
  7420. added to the routing table when downloading that torrent.
  7421. * src/BtContext.h
  7422. * src/DefaultBtContext.{h, cc}
  7423. * src/DHTSetup.cc
  7424. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7425. hostname and port pair, and resolves all of them.
  7426. * src/NameResolver.{h, cc}: Added reset().
  7427. * src/RequestGroup.cc
  7428. * test/DefaultBtContextTest.cc
  7429. * test/MockBtContext.h
  7430. Removed assert() from DefaultBtContext and throw exception instead.
  7431. * src/DefaultBtContext.cc
  7432. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Fixed segmentation fault bug when exiting if dht is disabled.
  7434. * src/RequestGroup.cc
  7435. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Fixed typo in log message and define the message in message.h
  7437. * src/TimedHaltCommand.cc
  7438. * src/message.h
  7439. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Included RecoverableException.h to fix compilation error.
  7441. * test/DHTMessageFactoryImplTest.cc
  7442. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7444. * test/DHTPingMessageTest.cc
  7445. * test/DHTGetPeersMessageTest.cc
  7446. * test/DHTFindNodeMessageTest.cc
  7447. * test/DHTAnnouncePeerMessageTest.cc
  7448. * test/MockDHTMessage.h
  7449. * test/MockDHTMessageFactory.h
  7450. * test/MockDHTMessageDispatcher.h: New class.
  7451. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7453. virtual.
  7454. * src/DHTMessageDispatcher.h
  7455. * src/DHTMessageDispatcherImpl.{h, cc}
  7456. * src/DHTSetup.cc
  7457. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Adding handling of DHT error message. Just log error message and
  7459. throw exception.
  7460. * src/DHTMessageFactoryImpl.cc
  7461. * test/DHTMessageFactoryImplTest.cc
  7462. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Added handling of dynamic cast failure.
  7464. * src/DHTNodeLookupTask.cc
  7465. * src/DHTPeerLookupTask.cc
  7466. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Added the ability to stop aria2 itself when given time has passed
  7468. from start. Use --stop option to specify time in minutes.
  7469. When 0 is given, this feature is disabled.
  7470. * src/OptionHandlerFactory.cc
  7471. * src/TimeBasedCommand.h: Make _interval protected scope.
  7472. * src/HelpItemFactory.cc
  7473. * src/option_processing.cc
  7474. * src/prefs.h
  7475. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7476. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7477. Without this modification, the result list shows "ERR" when aria2 is
  7478. stopped by --stop option. It should be "INPR".
  7479. * src/DownloadEngine.{h, cc}
  7480. * src/DownloadEngineFactory.cc
  7481. * src/usage_text.h
  7482. * src/TimedHaltCommand.{h, cc}: New class.
  7483. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Bootstrap through node added by port message.
  7485. Currently bootstrap is executed if the number of buckets in routing
  7486. table is 1.
  7487. * src/BtPortMessage.{h, cc}
  7488. * src/DefaultBtMessageFactory.{h, cc}
  7489. * src/PeerInteractionCommand.cc
  7490. * test/BtPortMessageTest.cc
  7491. * test/MockDHTTask.h
  7492. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Extract the Peer class's member variables, which are only needed after
  7494. PeerInteractionCommand, into PeerSessionResource class.
  7495. This class is instantiated in PeerInteractionCommand class's ctor and
  7496. released in its dtor.
  7497. This will make Peer class lightweight and uses less memory for peers
  7498. which are not connected and wait in the queue.
  7499. * src/PeerChokeCommand.cc
  7500. * src/PeerSessionResource.{h, cc}
  7501. * src/PeerInteractionCommand.cc
  7502. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7503. * src/DefaultBtInteractive.cc
  7504. * src/BtPieceMessage.cc
  7505. * src/BtInterestedMessage.cc
  7506. * src/BtUnchokeMessage.cc
  7507. * src/DefaultPeerStorage.{h, cc}
  7508. * src/PeerInitiateConnectionCommand.cc
  7509. * src/ActivePeerConnectionCommand.cc
  7510. * src/BtNotInterestedMessage.cc
  7511. * src/DefaultBtMessageDispatcher.cc
  7512. * src/BtChokeMessage.cc
  7513. * src/BtRequestMessage.cc
  7514. * src/Peer.{h, cc}
  7515. * src/BtRegistry.h
  7516. * src/TrackerWatcherCommand.cc
  7517. * src/PeerReceiveHandshakeCommand.cc
  7518. * test/BtExtendedMessageTest.cc
  7519. * test/BtAllowedFastMessageTest.cc
  7520. * test/BtCancelMessageTest.cc
  7521. * test/DefaultPieceStorageTest.cc
  7522. * test/BtBitfieldMessageTest.cc
  7523. * test/BtHaveMessageTest.cc
  7524. * test/BtNotInterestedMessageTest.cc
  7525. * test/BtRequestMessageTest.cc
  7526. * test/PeerSessionResourceTest.cc
  7527. * test/DefaultBtMessageDispatcherTest.cc
  7528. * test/PeerTest.cc
  7529. * test/BtInterestedMessageTest.cc
  7530. * test/BtRejectMessageTest.cc
  7531. * test/BtChokeMessageTest.cc
  7532. * test/DefaultPeerStorageTest.cc
  7533. * test/BtHaveNoneMessageTest.cc
  7534. * test/BtHaveAllMessageTest.cc
  7535. * test/DefaultExtensionMessageFactoryTest.cc
  7536. * test/BtUnchokeMessageTest.cc
  7537. * test/DefaultBtMessageFactoryTest.cc
  7538. * test/HandshakeExtensionMessageTest.cc
  7539. * test/UTPexExtensionMessageTest.cc
  7540. * test/DefaultBtRequestFactoryTest.cc
  7541. * test/BtPieceMessageTest.cc
  7542. Removed typedef PeerStats.
  7543. * src/PeerStat.h
  7544. * src/SegmentMan.cc
  7545. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Added std namespace to copy, remove_copy, back_inserter,
  7547. front_inserter.
  7548. * src/RequestGroupMan.cc
  7549. * src/DefaultPieceStorage.cc
  7550. * src/StreamFileAllocationEntry.cc
  7551. * src/BtFileAllocationEntry.cc
  7552. * src/RequestGroup.cc
  7553. * src/MetalinkEntry.cc
  7554. * src/DelegatingPeerListProcessor.cc
  7555. * src/DefaultBtRequestFactory.cc
  7556. * src/DefaultBtMessageDispatcher.cc
  7557. * src/version_usage.cc: Included <algorithm>
  7558. * src/main.cc
  7559. * src/MetalinkParserController.cc
  7560. * src/DefaultBtContext.cc
  7561. * src/DownloadEngineFactory.cc
  7562. * src/a2algo.h
  7563. Removed.
  7564. * test/StreamUriListParserTest.cc
  7565. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7567. ActivePeerConnectionCommand when it is given and
  7568. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7569. * src/ActivePeerConnectionCommand.{h, cc}
  7570. * src/BtSetup.cc
  7571. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Only add socket to DownloadEngine's select routine when peer or
  7573. localhost is unchoked and interested. This lowers CPU usage a
  7574. little bit.
  7575. * src/PeerInteractionCommand.cc
  7576. * src/PeerAbstractCommand.{h, cc}
  7577. * src/BtInteractive.h
  7578. * src/DefaultBtInteractive.{h, cc}
  7579. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Revert previous change because get_peers message is needed for
  7581. announce_peer anyway.
  7582. * src/DHTGetPeersCommand.cc
  7583. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Request peers thought DHT only when download hasn't finished.
  7585. * src/DHTGetPeersCommand.cc
  7586. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7588. * src/DHTBucketRefreshTask.{h, cc}
  7589. * src/DHTSetup.cc
  7590. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7592. standard classes.
  7593. Included string.h where mem* function are used.
  7594. Added namespace aria2.
  7595. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Create directory before saving DHT routing table.
  7597. Now ios::failure is now handled properly.
  7598. * src/DHTAutoSaveCommand.cc
  7599. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. Removed unnecessary cerr.
  7601. * src/DownloadEngine.cc
  7602. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Catch exception inside DHTMessageReceiver::receiveMessage().
  7604. Log unknown message.
  7605. * src/DHTMessageReceiver.{h, cc}
  7606. * src/DHTMessageFactory.h
  7607. * src/DHTMessageFactoryImpl.{h, cc}
  7608. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7609. * src/DHTInteractionCommand.cc
  7610. * src/DHTUnknownMessage.{h, cc}
  7611. * test/DHTUnknownMessageTest.cc
  7612. * test/MockDHTMessageFactory.h
  7613. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Commented out ip address comparison because a host can have multiple
  7615. ip addresses and it is hard to predict the hostname is resolved into
  7616. which one.
  7617. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7618. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. * po/Makefile.in: Removed since this is generated by configure.
  7620. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Fixed compiler warning about redefinition of SIZE_MAX.
  7622. Use common.h instead of config.h directly here.
  7623. * src/Platform.{h, cc}
  7624. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7625. here.
  7626. * common.h
  7627. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7628. Updated gettext related files.
  7629. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7630. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7631. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Added DHT functionality, compatible with mainline.
  7633. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7634. You may need to specify entry point to DHT network using
  7635. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7636. Use --dht-listen-port to specify port number. Make sure that your
  7637. firewall configuration can pass through UDP traffic to the port.
  7638. The routing table is saved in $HOME/.aria2/dht.dat.
  7639. * src/DHT*
  7640. * src/BNode.{h, cc}
  7641. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7642. particular torrent.
  7643. * src/Data.cc: Rewritten ctor.
  7644. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7645. --dht-entry-point.
  7646. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7647. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7648. ends, remove BtContext from DHTPeerAnnounceStorage.
  7649. * src/BtPortMessage.{h, cc}: Rewritten.
  7650. * src/message.h
  7651. * src/OptionHandlerImpl.cc
  7652. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7653. --dht-entry-point.
  7654. * src/Dictionary.{h, cc} (remove): New function.
  7655. * src/prefs.h
  7656. * src/DefaultBtMessageFactory.h
  7657. * src/BtHandshakeMessage.cc
  7658. * src/ActivePeerConnectionCommand.cc
  7659. * src/SocketCore.{h, cc}: Added datagram socket support.
  7660. * src/DefaultBtMessageFactory.cc
  7661. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7662. Create DHT commands.
  7663. * src/BtMessageFactory.h
  7664. * src/PeerMessageUtil.{h, cc}
  7665. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Fixed the bug that log file is not written when configuration file doesn't exist.
  7667. This is caused by using Logger class before LogFactory is not configured.
  7668. BUG #1875079
  7669. * src/option_processing.cc
  7670. Warning message "configuration doesn't exist" is only printed when --conf is
  7671. given.
  7672. * src/option_processing.cc
  7673. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7675. ShaVisitor is now deprecated and slated to be removed.
  7676. * src/DefaultBtContext.cc
  7677. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Externalize message to message.h
  7679. * src/Platform.cc
  7680. * src/message.h
  7681. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Set default domain and default path to cookie.
  7683. * src/HttpResponse.cc
  7684. * src/CookieBox.{h, cc}
  7685. * src/CookieParser.{h, cc}
  7686. * test/CookieParserTest.cc
  7687. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Added --no-conf and --conf-path command-line option.
  7689. --no-conf option disables loading aria2.conf file.
  7690. --conf-path option changes the configuration file path. The default
  7691. file path is $HOME/.aria2/aria2.conf
  7692. Added a warning message when the configuration file is not found.
  7693. * src/HelpItemFactory.cc
  7694. * src/option_processing.cc
  7695. * src/prefs.h
  7696. * src/usage_text.h
  7697. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Added the message to inform users that other help categories are
  7699. available in -h option.
  7700. * src/version_usage.cc
  7701. * src/TagContainer.{h, cc}
  7702. * test/TagContainerTest.cc
  7703. * src/TaggedItem.{h, cc}
  7704. * test/TaggedItemTest.cc
  7705. * src/HelpItem.h
  7706. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7708. from PiecedSegment's ctor.
  7709. Previously Piece::getAllMissingBlockIndexes() is called from
  7710. PiecedSegment() but it is rather expensive since only first element is
  7711. used.
  7712. * src/PiecedSegment.cc
  7713. * src/Piece.{h, cc}
  7714. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7715. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7716. each time these functions are called.
  7717. * src/BitfieldMan.{h, cc}
  7718. * test/BitfieldManTest.cc
  7719. * src/array_fun.h
  7720. * test/array_funTest.cc
  7721. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7722. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7723. filtered. Removed unnecessary cast to int32_t.
  7724. * src/BitfieldMan.{h, cc}
  7725. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7727. payload length(4bytes) are received. This happens because lenbufLength
  7728. is not updated in this particular case and successive call of
  7729. receiveMessage() overwrites payload length with bytes recieved which
  7730. are payload body.
  7731. * src/PeerConnection.{h, cc}
  7732. * src/message.h
  7733. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7735. peer if there are peers that have same ipaddr and port.
  7736. I've experiened segmentation fault and "pure virtual function was
  7737. called" error.
  7738. * src/Peer.h
  7739. * test/PeerTest.cc
  7740. * src/DefaultPeerStorage.cc
  7741. * test/DefaultPeerStorageTest.cc
  7742. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7743. Removed a call to isPowerOf() because it is no longer necessary here
  7744. and a request block is not always power of 2.
  7745. BUG#1866924
  7746. * src/PeerMessageUtil.cc (checkLength)
  7747. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Fixed the bug that always first found Segment is removed from
  7749. usedSegmentEntries. Removed unused functions.
  7750. * src/SegmentMan.{h, cc}
  7751. * test/SegmentManTest.cc
  7752. Fixed the bug that ServerHost is not removed.
  7753. * src/RequestGroup.cc
  7754. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Fixed the bug that SegmentMan::completeSegment() is not called
  7756. even if Segment is complete when --lowest-speed-limit is enabled.
  7757. BUG#1864525
  7758. * src/DownloadCommand.{h, cc}
  7759. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Fixed: hash algorithm 'sha1' is always used.
  7761. * src/DownloadCommand.cc (validatePieceHash)
  7762. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Added --enable-peer-exchange command-line option.
  7764. * src/OptionHandlerFactory.cc
  7765. * src/HelpItemFactory.cc
  7766. * src/option_processing.cc
  7767. * src/usage_text.h
  7768. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Move extension from BtRuntime to ExtensionMessageFactory, because
  7770. extension can be specified per peer, not per torrent.
  7771. * src/DefaultBtInteractive.cc
  7772. * src/BtRuntime.h
  7773. * src/ExtendedMessagingAware.h
  7774. * src/ExtensionMessageFactory.h
  7775. * src/DefaultExtensionMessageFactory.cc
  7776. * test/DefaultExtensionMessageFactoryTest.cc
  7777. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Added categorized option help. Specify category using --help option.
  7779. Also added the ability to search options in forward match.
  7780. * src/HelpItem.{h, cc}
  7781. * test/HelpItemTest.cc
  7782. * src/HelpItemFactory.{h, cc}
  7783. * src/TagContainer.{h, cc}
  7784. * test/TagContainerTest.cc
  7785. * src/option_processing.cc
  7786. * src/prefs.h
  7787. * src/TaggedItem.{h, cc}
  7788. * test/TaggedItemTest.cc
  7789. * src/version_usage.cc
  7790. * src/help_tags.h
  7791. * src/usage_text.h
  7792. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Fixed segmentation fault when bad torrent metainfo is parsed.
  7794. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7795. and then throw exception or skip it.
  7796. * src/DefaultBtContext.{h, cc}
  7797. * test/DefaultBtContextTest.cc
  7798. * src/AnnounceList.cc
  7799. * src/CompactPeerListProcessor.cc
  7800. * src/message.h
  7801. * src/DefaultBtAnnounce.{h, cc}
  7802. * test/DefaultBtAnnounceTest.cc
  7803. * src/BencodeVisitor.cc
  7804. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Added missing "B"(=Byte). So now the message looks like this:
  7806. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7807. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7808. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Show the seed ratio after torrent downloads.
  7810. For example, after torrent download completed and --seed-time and
  7811. --seed-ratio conditions are fulfilled, following message is printed
  7812. right after "Download complete: .....":
  7813. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7814. * src/RequestGroupMan.cc
  7815. * src/RequestGroup.{h, cc}
  7816. * src/message.h
  7817. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7818. Remove a defunct control file. A defunct control file means that while
  7819. it exists, but the corresponding download file is missing.
  7820. After its removal, a download restarts from the beginning.
  7821. * src/RequestGroup.cc
  7822. * src/message.h
  7823. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Allocate bitfield in Peer when it is really used. More specifically,
  7825. bitfield in Peer is allocated after the connection is established and
  7826. deallocated when the connection is dropped.
  7827. Since 2 parameters(piece length and total length) was removed from the
  7828. constructor of Peer class, many test classes were modified accordingly.
  7829. See svn log for more detailed information.
  7830. * src/PeerInteractionCommand.cc
  7831. * src/CompactPeerListProcessor.cc
  7832. * src/Peer.cc
  7833. * src/DefaultPeerListProcessor.cc
  7834. * src/PeerListenCommand.cc
  7835. * src/PeerReceiveHandshakeCommand.cc
  7836. Fixed memory leak
  7837. * src/Piece.cc
  7838. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7840. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7841. command-line options.
  7842. * src/option_processing.cc
  7843. * src/ActivePeerConnectionCommand.cc
  7844. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Send have message to peer if it already has the piece.
  7846. * src/BtHaveMessage.{h, cc}
  7847. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7849. port.
  7850. * src/DefaultPeerStorage.{h, cc}
  7851. * test/DefaultPeerStorageTest.cc
  7852. * src/HandshakeExtensionMessage.cc
  7853. * test/HandshakeExtensionMessageTest.cc
  7854. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7855. * src/PeerStorage.h
  7856. * test/MockPeerStorage.h
  7857. * src/PeerListenCommand.cc
  7858. * src/PeerReceiveHandshakeCommand.cc
  7859. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Added --metalink-enable-unique-protocol option.
  7861. * src/Metalink2RequestGroup.cc
  7862. * src/option_processing.cc
  7863. * src/prefs.h
  7864. * src/version_usage.cc
  7865. * doc/aria2c.1.txt
  7866. * doc/aria2c.1
  7867. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Allow a peer in incomingPeer to be added peers.
  7869. * src/DefaultPeerStorage.cc
  7870. * test/DefaultPeerStorageTest.cc
  7871. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7873. I could reproduce this bug in following procedure:
  7874. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7875. 2. Restart aria2.
  7876. 3. You see the download stopped around 99%.
  7877. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7878. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7879. If timeout is reached, then _nextCommand is unused and it may contains
  7880. segments and they won't be canceled. Actually, timeout is not needed
  7881. here because if the server dropped connection, then retry is made.
  7882. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. Added uTorrent compatible Peer Exchange.
  7884. * src/BencodeVisitor.{h, cc}
  7885. * test/BencodeVisitorTest.cc
  7886. * src/BtConstants.h
  7887. * src/BtContext.h: Added 'private' flag.
  7888. * src/BtExtendedMessage.{h, cc}
  7889. * test/BtExtendedMessageTest.cc
  7890. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7891. reserved field.
  7892. * test/BtHandshakeMessageTest.cc
  7893. * src/BtMessageFactory.h
  7894. * src/BtRegistry.h
  7895. * src/BtRuntime.h: This class holds default extension message IDs for
  7896. aria2. By default, aria2 uses ID 8 for ut_pex.
  7897. * src/DefaultBtContext.cc
  7898. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7899. When it is true, aria2 enables ut_pex. This value is set by
  7900. PeerInteractionCommand.
  7901. * src/DefaultBtMessageFactory.{h, cc}
  7902. * test/DefaultBtMessageFactoryTest.cc
  7903. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7904. handling to DefaultBtInteractive class.
  7905. * src/DefaultExtensionMessageFactory.{h, cc}
  7906. * test/DefaultExtensionMessageFactoryTest.cc
  7907. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7908. the container(peers and incomingPeers. The equality is determined by
  7909. Peer::id).
  7910. * test/DefaultPeerStorageTest.cc
  7911. * src/ExtensionMessage.h
  7912. * test/MockExtensionMessage.h
  7913. * src/ExtensionMessageFactory.h
  7914. * test/MockExtensionMessageFactory.h
  7915. * src/HandshakeExtensionMessage.{h, cc}
  7916. * test/HandshakeExtensionMessageTest.cc
  7917. * src/MetaEntry.h
  7918. * src/Peer.{h, cc}
  7919. * src/PeerInteractionCommand.cc
  7920. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7921. addIncomingPeer.
  7922. * src/PeerMessageUtil.{h, cc}
  7923. * src/PeerObject.h
  7924. * src/UTPexExtensionMessage.{h, cc}
  7925. * test/UTPexExtensionMessageTest.cc
  7926. * src/message.h
  7927. * src/prefs.h
  7928. Fixed the bug that returns incomplete data when it contains null
  7929. character. A convenient constructor was also added.
  7930. * src/Data.{h, cc}
  7931. Rewritten.
  7932. * src/CompactPeerListProcessor.cc
  7933. Fixed typos.
  7934. * src/message.h
  7935. * src/MetaFileUtil.cc
  7936. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Added "Status Legend" label to the explanation text of 'stat' in
  7938. download result and moved it to the last. BUG#1848214
  7939. * src/RequestGroupMan.cc
  7940. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7942. * src/Makefie.am
  7943. * test/Makefile.am
  7944. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Fixed the bug that prevents aria2 from loading cookie file when expire
  7946. value is greater than 2^31-1. BUG#1851066
  7947. * src/CookieBoxFactory.cc
  7948. * test/CookieBoxFactoryTest.cc
  7949. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Fixed possible memory leak when an exception is thrown.
  7951. * src/XML2SAXMetalinkProcessor.cc
  7952. Added Expat support. If both libxml2 and Expat are installed, then
  7953. libxml2 is used by default.
  7954. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7955. ExpatMetalinkProcessor according to the configuration.
  7956. * src/ExpatMetalinkProcessor.{h, cc}
  7957. * src/main.cc: Removed libxml2 specific header and init/free function.
  7958. * src/MetalinkProcessorFactory.{h, cc}
  7959. * src/MetalinkHelper.cc
  7960. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7961. * src/MetalinkProcessor.h
  7962. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7963. MetalinkProcessorTest is used instead.
  7964. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7965. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7966. MetalinkProcessorFactory::newInstance().
  7967. * m4/libexpat.m4
  7968. * configure.ac: Added configuration options for libexpat.
  7969. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Disabled -s option in metalink download.
  7971. * src/Metalink2RequestGroup.cc
  7972. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. If several protocols are available for a mirror in metalink file,
  7974. aria2 now use one of them. --metalink-preferred-protocol option was
  7975. added to specify the preference of protocol.
  7976. * src/AbstractCommand.cc
  7977. * src/OptionHandlerFactory.cc
  7978. * src/ServerHost.{h, cc}
  7979. * src/Metalink2RequestGroup.cc
  7980. * src/RequestGroup.{h, cc}
  7981. * test/RequestGroupTest.cc
  7982. * src/option_processing.cc
  7983. * src/prefs.h
  7984. * src/HttpResponseCommand.cc
  7985. * src/MetalinkResource.{h, cc}
  7986. * src/FtpNegotiationCommand.cc
  7987. * src/MetalinkEntry.{h, cc}
  7988. * src/MetalinkEntryTest.cc
  7989. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Code cleanup and added debug log.
  7991. * src/PeerConnection.cc
  7992. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Compiler error fix: applied the patch by Tiziano Mueller
  7994. * src/RequestGroup.cc
  7995. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7997. in stopped and completed event.
  7998. * src/AnnounceList.{h, cc}
  7999. * test/AnnounceListTest.cc
  8000. * src/DefaultBtAnnounce.cc
  8001. * test/DefaultBtAnnounceTest.cc
  8002. Sorted URLs.
  8003. * test/Metalink2RequestGroupTest.cc
  8004. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Removed unnecessary string copy. Updated doc and corrected indentation.
  8006. * src/Base64.cc
  8007. Fixed compilation warnings
  8008. * test/DataTest.cc
  8009. * test/HttpRequestTest.cc
  8010. * test/MetaFileUtilTest.cc
  8011. * test/RequestTest.cc
  8012. * Release 0.12.0
  8013. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Updated translations
  8015. * po/{de,fr,ja,nl,ru}.po
  8016. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8017. translations. Many thanks to translators.
  8018. * po/{ca,es,it,pt_BR,sv}.po
  8019. * po/LINGUAS
  8020. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Added a notice about URL
  8022. * src/version_usage.cc
  8023. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8024. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8025. aria2 repeatedly sends stopped request when tracker returns error code.
  8026. * src/AnnounceList.cc
  8027. * test/AnnounceListTest.cc
  8028. * src/AnnounceTier.h
  8029. Added a message when ctrl-c is hit.
  8030. Now second ctrl-c is also handled in signal handler.
  8031. * src/RequestGroupMan.{h, cc}
  8032. * src/RequestGroup.{h, cc}
  8033. * src/MultiUrlRequestInfo.cc
  8034. * src/DownloadEngine.cc
  8035. * src/TrackerWatcherCommand.cc
  8036. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Code cleanup
  8038. * src/Base64.cc (encode)
  8039. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Changed Direct/IO enable/disable procesure in file allocation routine.
  8041. * src/SingleFileAllocationIterator.cc
  8042. (SingleFileAllocationIterator):
  8043. Disable directIO if offset is not multiple of 512.
  8044. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8045. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8046. Enable created SingleFileAllocationIterator's directIO.
  8047. * src/FileAllocationEntry.cc
  8048. (FileAllocationEntry): Enable directIO here.
  8049. (~FileAllocationEntry): Disable directIO here.
  8050. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8052. * src/Peer.{h, cc}
  8053. * src/DefaultPieceStorage.cc
  8054. * test/DefaultPieceStorageTest.cc
  8055. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Rewritten direct I/O support routine
  8057. * src/SingleFileAllocationIterator.cc
  8058. * src/MultiDiskAdaptor.{h, cc}
  8059. * src/ByteArrayDiskWriter.h
  8060. * src/AbstractSingleDiskAdaptor.h
  8061. * src/AbstractDiskWriter.cc
  8062. * src/DefaultPieceStorage.cc
  8063. * src/DiskWriter.h
  8064. * src/BinaryStream.h
  8065. * src/IteratableChunkChecksumValidator.cc
  8066. * src/IteratableChecksumValidator.cc
  8067. * src/CheckIntegrityEntry.cc
  8068. * src/FileAllocationEntry.cc
  8069. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Fixed typo
  8071. * src/version_usage.cc
  8072. Updated doc
  8073. * doc/aria2c.1.txt
  8074. * doc/aria2c.1
  8075. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Fixed compile error without message digest support.
  8077. * src/FileMetalinkParserState.cc
  8078. * src/MetalinkParserController.{h, cc}
  8079. * test/XML2SAXMetalinkProcessorTest.cc
  8080. * test/MetalinkParserControllerTest.cc
  8081. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Enable direct I/O support in checksum checking.
  8083. * src/IteratableChunkChecksumValidator.{h, cc}
  8084. * test/IteratableChunkChecksumValidatorTest.cc
  8085. * src/CheckIntegrityEntry.cc
  8086. * src/PieceHashCheckIntegrityEntry.cc
  8087. * src/IteratableChecksumValidator.{h, cc}
  8088. * src/BtCheckIntegrityEntry.cc: Added doc.
  8089. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Added --allow-piece-length-change option.
  8091. * src/DefaultBtProgressInfoFile.cc
  8092. * test/DefaultBtProgressInfoFileTest.cc
  8093. * src/OptionHandlerFactory.cc
  8094. * src/option_processing.cc
  8095. * src/prefs.h
  8096. * src/version_usage.cc
  8097. * doc/aria2c.1.txt
  8098. * doc/aria2c.1
  8099. Fixed: duplicated result entry appears when exception is thrown in
  8100. RequestGroup::createInitiateConnectionCommand().
  8101. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8102. Add RequestGroup to _requestGroup after RequetGroup::
  8103. createInitiateConnectionCommand() succeeds.
  8104. Externalized message
  8105. * src/XML2SAXMetalinkProcessor.cc
  8106. * src/message.h
  8107. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Forced download abort when received negative response from http/ftp
  8109. server.
  8110. * src/HttpResponseCommand.cc
  8111. * src/FtpNegotiationCommand.cc
  8112. * src/HttpResponse.cc
  8113. * src/FtpConnection.cc
  8114. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8116. the predecessor, Xml2MetalinkParser class.
  8117. I tested them against 94KB metalink file with 1234 chunk checksums.
  8118. The new one parsed it in 22msec, while it took 6000msec with old one.
  8119. * src/XML2SAXMetalinkProcessor.{h, cc}
  8120. * test/XML2SAXMetalinkProcessorTest.cc
  8121. * src/MetalinkParserController.{h, cc}
  8122. * test/MetalinkParserControllerTest.cc
  8123. * src/MetalinkParserState.h: Also added 16 subclasses.
  8124. * src/main.cc
  8125. * src/Metalink2RequestGroup.cc
  8126. * src/MetalinkHelper.cc
  8127. * src/MetalinkEntry.cc
  8128. * src/ChunkChecksum.h
  8129. Rewritten Base64 class for better performance.
  8130. * src/Base64.{h, cc}
  8131. * test/Base64Test.cc
  8132. * src/HttpRequest.cc
  8133. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Fixed the bug#1841757: aria2 will connect to server to only get
  8135. file size.
  8136. * src/StreamFileAllocationEntry.cc
  8137. * src/option_processing.cc
  8138. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8139. downloads.
  8140. * src/FtpNegotiationCommand.cc
  8141. Suppressed wrong message when finding PreDownloadHandler
  8142. * src/RequestGroup.cc
  8143. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Updated usage
  8145. * src/version_usage.cc
  8146. Updated man page
  8147. * doc/aria2c.1.txt
  8148. * doc/aria2c.1
  8149. Updated po files
  8150. * po/aria2c.pot
  8151. * po/*.po
  8152. * po/*.gmo
  8153. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Eliminated g++-4.2 warning
  8155. * src/DownloadHandlerConstants.{h, cc}
  8156. * src/Util.cc
  8157. * test/MetaFileUtilTest.cc
  8158. * test/PStringBuildVisitorTest.cc
  8159. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8160. * src/RequestGroup.cc
  8161. * src/BtCheckIntegrityEntry.cc
  8162. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Fixed a2io.h
  8164. * src/a2io.h
  8165. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Added direct I/O support. The current implementation uses O_DIRECT,
  8167. which is not posix standard and is tested on linux 2.6.21.
  8168. Currently only file allocation uses direct I/O.
  8169. * src/SingleFileAllocationIterator.{h, cc}
  8170. * test/SingleFileAllocationIteratorTest.cc
  8171. * src/MultiFileAllocationIterator.{h, cc}
  8172. * test/MultiFileAllocationIteratorTest.cc
  8173. * src/BinaryStream.h
  8174. * src/DiskWriter.h
  8175. * src/AbstractDiskWriter.{h, cc}
  8176. * src/ByteArrayDiskWriter.h
  8177. * src/DiskAdaptor.h
  8178. * src/AbstractSingleDiskAdaptor.{h, cc}
  8179. * src/MultiDiskAdaptor.{h, cc}
  8180. * src/FileAllocationEntry.cc
  8181. * src/Util.{h, cc}
  8182. * src/OptionHandlerFactory.cc
  8183. * src/prefs.h
  8184. * src/version_usage.cc
  8185. * src/option_processing.cc
  8186. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8187. handleException.
  8188. * src/MultiFileAllocationIterator.cc
  8189. Added EINTR handling
  8190. * src/SocketCore.cc
  8191. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Updated usage
  8193. * src/version_usage.cc
  8194. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Applied Ross's patch for MinGW port.
  8196. * src/DownloadEngine.h
  8197. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Set Content-Type to SingleFileDownloadContext when http response is
  8199. received.
  8200. * src/HttpResponseCommand.cc
  8201. * src/HttpResponse.{h, cc}
  8202. * test/HttpResponseTest.cc
  8203. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Rewritten to add content-type support.
  8205. * src/DownloadHandler.{h, cc}
  8206. * src/BtPostDownloadHandler.{h, cc}
  8207. * test/BtPostDownloadHandlerTest.cc
  8208. * src/MetalinkPostDownloadHandler.{h, cc}
  8209. * test/MetalinkPostDownloadHandlerTest.cc
  8210. * src/PostDownloadHandler.{h, cc}
  8211. * src/DownloadHandlerConstants.{h, cc}
  8212. * src/RequestGroup.cc
  8213. * src/HttpResponseCommand.cc
  8214. * src/FtpNegotiationCommand.cc
  8215. * src/SingleFileDownloadContext.{h, cc}
  8216. * src/RequestGroup.h
  8217. * src/RequestGroupCriteria.h
  8218. * src/ContentTypeRequestGroupCriteria.h
  8219. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8220. If it is give, metalink/torrent file is not written to the disk, but
  8221. just is kept in memory. Parsing is occurred on memory.
  8222. * src/MetalinkHelper.{h, cc}
  8223. * src/MetalinkProcessor.h
  8224. * src/Xml2MetalinkProcessor.{h, cc}
  8225. * test/Xml2MetalinkProcessorTest.cc
  8226. * src/DownloadHandlerFactory.{h, cc}
  8227. * test/DownloadHandlerFactoryTest.cc
  8228. * src/PreDownloadHandler.{h, cc}
  8229. * src/OptionHandlerFactory.cc
  8230. * src/DefaultBtContext.{h, cc}
  8231. * test/DefaultBtContextTest.cc
  8232. * src/version_usage.cc
  8233. * src/Metalink2RequestGroup.{h, cc}
  8234. * src/RequestGroup.{h, cc}
  8235. * src/a2functional.h
  8236. * test/a2functionalTest.cc
  8237. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8238. * src/OptionHandlerImpl.h
  8239. * src/prefs.h
  8240. * src/Util.{h, cc}
  8241. * test/UtilTest.cc
  8242. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8243. memory usage.
  8244. * src/RequestGroupMan.{h, cc}
  8245. * src/DownloadEngine.cc
  8246. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8247. WeakHandle to SharedHandle because WeakHandle could be null.
  8248. * src/RequestGroup.{h, cc}
  8249. * src/DownloadEngineFactory.cc
  8250. * src/DownloadResult.h
  8251. Set totalLength after download finished
  8252. * src/UnknownLengthPieceStorage.{h, cc}
  8253. Keep torrent file specified in metalink in memory.
  8254. * src/Metalink2RequestGroup.cc
  8255. * src/BtDependency.cc
  8256. * src/TrueRequestGroupCriteria.h
  8257. Fixed the bug: seekg is used where seekp should be used.
  8258. * src/ByteArrayDiskWriter.cc
  8259. * test/ByteArraydiskWriterTest.cc
  8260. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Fixed syntax error
  8262. * test/SequenceTest.cc
  8263. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8265. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8266. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8267. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8268. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Added the check to see whether ares_host_callback accepts timeouts
  8270. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8271. * src/NameResolver.{h, cc}
  8272. * m4/libcares.m4
  8273. * configure.ac: Set C++ for language choice.
  8274. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Fixed: compilation fails without c-ares/ares
  8276. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8277. Generate http/ftp commands only when download is incomplete.
  8278. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8279. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Corrected typo. Examples are removed since they are available in man
  8281. page.
  8282. * src/version_usage.cc
  8283. Updated man page.
  8284. * doc/aria2c.1
  8285. * doc/aria2c.1.txt
  8286. * doc/makeman: Commented out sed command.
  8287. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Throw DlAbortEx when a remote file is not found.
  8289. * src/HttpResponse.cc
  8290. * src/FtpNegotiationCommand.cc
  8291. * src/message.h
  8292. Overwrite an existing file if --allow-overwrite=true is given.
  8293. * src/RequestGroup.cc
  8294. Removed unused functions
  8295. * src/AbstractCommand.h
  8296. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Removed 'extern' from 'extern typedef ...' in src/*.h
  8298. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Updated usage
  8300. * src/version_usage.cc
  8301. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Trim announce URL
  8303. * src/DefaultBtContext.cc
  8304. * test/ShaVisitorTest.cc
  8305. Trim argument s. Give trimed s to exception constructor.
  8306. * src/Util.cc (parseInt)(parseLLInt)
  8307. * test/UtilTest.cc
  8308. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Set precision back to 1.
  8310. * src/ConsoleStatCalc.cc (calculateStat)
  8311. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Replaced strtol with Util::parseInt
  8313. * src/ChunkedEncoding.cc
  8314. * src/HttpConnection.cc
  8315. * src/CookieBoxFactory.cc
  8316. * src/ParameterizedStringParser.cc
  8317. * src/Util.cc
  8318. * test/UtilTest.cc
  8319. * test/OptionHandlerTest.cc
  8320. * src/Request.cc
  8321. Throw exception when empty string is given. The message for exception
  8322. changed.
  8323. * src/Util.cc (parseInt)(parseLLInt)
  8324. * src/message.h
  8325. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8327. set to 1.
  8328. * src/ConsoleStatCalc.cc (calculateStat)
  8329. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Preallocate non-requested file which is adjacent forward to requested
  8331. file('requested' files means the files given in --select-file option)
  8332. if they share a same piece.
  8333. This fixes long pause in the file system which doesn't support sparse
  8334. files like FAT32 while downloading.
  8335. * src/MultiFileAllocationIterator.{h, cc}
  8336. * test/MultiFileAllocationIteratorTest.cc
  8337. * src/FileEntry.{h, cc}
  8338. Removed unused _option.
  8339. * src/MultiDiskAdaptor.h
  8340. * test/MultiDiskAdaptorTest.cc
  8341. * src/DefaultPieceStorage.cc
  8342. Set the default value of --seed-ratio to 1.0.
  8343. If 0.0 is given, then seeding continues regardless of share ratio.
  8344. * src/version_usage.cc
  8345. * src/option_processing.cc
  8346. * src/BtSetup.cc
  8347. * doc/aria2c.1.txt
  8348. * doc/aria2c.1
  8349. Fixed: Selective download is not working in BitTorrent
  8350. * src/RequestGroup.cc
  8351. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8352. * src/PieceStorage.h
  8353. * test/MockPieceStorage.h
  8354. * src/UnknownLengthPieceStorage.h
  8355. * src/DefaultPieceStorage.{h, cc}
  8356. * src/Metalink2RequestGroup.cc
  8357. * src/RequestGroup.cc
  8358. * src/Sequence.h
  8359. * test/SequenceTest.cc
  8360. * src/IntSequence.h
  8361. * src/message.h
  8362. * src/Util.{h, cc}
  8363. * test/UtilTest.cc
  8364. Added new function 'parse' to catch exception thrown by subclass's
  8365. parseArg
  8366. * src/OptionHandler.h
  8367. * src/OptionParser.cc
  8368. * src/NameMatchOptionHandler.h
  8369. * src/OptionHandlerImpl.h
  8370. * test/OptionHandlerTest.cc
  8371. Added IntegerRangeOptionHandler. Used for --listen-port and
  8372. --select-file. Now --listen-port accepts range of port.
  8373. * src/OptionHandlerFactory.cc
  8374. * src/version_usage.cc
  8375. * src/OptionHandlerImpl.h
  8376. * src/option_processing.cc
  8377. * src/BtSetup.cc
  8378. * src/PeerListenCommand.{h, cc}
  8379. * doc/aria2c.1.txt
  8380. * doc/aria2c.1
  8381. Implemented operator< for Exception class to provide easy way to print
  8382. exception stack trace.
  8383. * src/Exception.{h, cc}
  8384. * src/main.cc
  8385. * src/option_processing.cc
  8386. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. * src/version_usage.cc
  8388. (showVersion): Reworked.
  8389. (showUsage): Added examples.
  8390. Removed Hint for total length and file name.
  8391. * src/Metalink2RequestGroup.cc
  8392. * src/RequestGroup.{h, cc}
  8393. * src/HttpResponseCommand.cc
  8394. * src/FtpNegotiationCommand.cc
  8395. Now --follow-torrent and --follow-metalink option work properly.
  8396. * src/RequestGroup.cc
  8397. Updated man page
  8398. * doc/aria2c.1.txt
  8399. * doc/aria2c.1
  8400. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Removed.
  8402. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8403. Use Segment::operator==()
  8404. * src/HttpConnection.cc
  8405. * src/Segment.h
  8406. Updated usage
  8407. * src/version_usage.cc
  8408. Added EINTR treatment.
  8409. * src/SocketCore.cc
  8410. * src/AbstractDiskWriter.cc
  8411. Rewritten.
  8412. * src/Util.cc (rangedFileCopy)
  8413. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Fixed typo.
  8415. * src/version_usage.cc
  8416. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Implemented. Now -c option works fine.
  8418. * src/DefaultPieceStorage.cc (markPiecesDone)
  8419. * test/DefaultPieceStorageTest.cc
  8420. Removed.
  8421. * src/SegmentMan.{h, cc}
  8422. (markAllPiecesDone)
  8423. (markPieceDone)
  8424. Synchronized po files with
  8425. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8426. * src/fr.po
  8427. * src/ru.po
  8428. * src/de.po
  8429. * src/ja.po
  8430. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Added ifdef and some modifications to compile without BitTorrent,
  8432. Metalink, MessageDigest
  8433. support.
  8434. * src/PieceHashCheckIntegrityEntry.cc
  8435. * src/MetalinkEntry.h
  8436. * src/version_usage.cc
  8437. * src/main.cc
  8438. * src/DownloadEngine.{h, cc}
  8439. * src/Metalink2RequestGroup.cc
  8440. * src/Peer.cc
  8441. * src/RequestGroup.cc
  8442. * src/MetalinkHelper.cc
  8443. * test/DefaultPieceStorageTest.cc
  8444. * test/MetalinkPostDownloadHandlerTest.cc
  8445. * test/Metalink2RequestGroupTest.cc
  8446. Hide TOTAL SPD when all downloads complete.
  8447. * src/ConsoleStatCalc.cc
  8448. Log target system information.
  8449. * src/main.cc
  8450. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Now --metalink-location accepts a comma-deliminated list of locations.
  8452. * src/MetalinkEntry.{h, cc}
  8453. * test/MetalinkEntryTest.cc
  8454. * src/version_usage.cc
  8455. * src/Metalink2RequestGroup.cc
  8456. * src/Xml2MetalinkProcessor.cc
  8457. * test/Xml2MetalinkProcessorTest.cc
  8458. * doc/aria2c.1.txt
  8459. * doc/aria2c.1
  8460. * src/Util.cc (toUpper)(toLower): Rewritten.
  8461. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. Added the ability to detect duplicate download entry which is about to
  8463. download the same file other RequestGroup is downloading.
  8464. * src/RequestGroup.cc
  8465. * src/HttpResponseCommand.cc
  8466. * src/FtpNegotiationCommand.cc
  8467. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Recalculates download progress when loading a control file,
  8469. if the piece length of DownloadContext is different from the one saved
  8470. in the control file. Currently in-flight pieces are ignored.
  8471. * src/DefaultBtProgressInfoFile.cc
  8472. * test/DefaultBtProgressInfoFileTest.cc
  8473. * src/Util.{h, cc}
  8474. * test/UtilTest.cc
  8475. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Do not rotate tiers in announce-list.
  8477. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8478. AnnounceList::allTiersFailed() used instead to detect whether all
  8479. tiers are tried and failed.
  8480. * test/DefaultBtAnnounceTest.cc
  8481. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8482. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8483. * test/AnnounceListTest.cc
  8484. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8485. clause. Catch RecoverableException instead of DlRetryEx instead.
  8486. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Implemented checksum validation feature(1 checksum for each file)
  8488. The validation takes place after the download.
  8489. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8490. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8491. * src/CheckIntegrityCommand.cc: Changed log message.
  8492. * src/Metalink2RequestGroup.cc: Set checksum to
  8493. SingleFileDownloadContext.
  8494. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8495. PieceHashCheckIntegrity class.
  8496. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8497. PieceHashCheckIntegrity class.
  8498. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8499. * src/IteratableValidator.h: New class.
  8500. * src/message.h
  8501. * src/CheckIntegrityEntry.{h, cc}
  8502. * src/IteratableChunkChecksumValidator.{h, cc}
  8503. * src/SingleFileDownloadContext.h
  8504. * src/DownloadCommand.cc
  8505. --allow-overwrite=true is no longer needed to check file integrity
  8506. before download in BitTorrent download.
  8507. * src/RequestGroup.cc (getInitialCommand)
  8508. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8509. throws exception.
  8510. * src/RequestGroupMan.cc (getInitialCommands)
  8511. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. urlencode the given url inside Request::parseUrl(...)
  8513. * src/Request.{h, cc}
  8514. * src/Util.{h, cc}
  8515. * test/RequestTest.cc
  8516. Removed #!metalink3! notation support because it is deleted from
  8517. the metalink specification.
  8518. * src/Request.{h, cc}
  8519. * test/RequestTest.cc
  8520. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Don't connect server before checking file integrity at startup, if
  8522. filesize and output file path are known.
  8523. * src/AbstractCommand.cc
  8524. * src/StreamFileAllocationEntry.cc
  8525. * src/Metalink2RequestGroup.cc
  8526. * src/RequestGroup.{h, cc}
  8527. * src/HttpResponseCommand.cc
  8528. * src/FtpNegotiationCommand.cc
  8529. Added DownloadFailureException. If it is thrown, RequestGroup should
  8530. halt.
  8531. * src/AbstractCommand.cc
  8532. * src/DownloadFailureException.h
  8533. * src/RequestGroup.cc
  8534. Catch RecoverableException, instead of DlAbortEx.
  8535. * src/RequestGroupMan.cc
  8536. * src/FillRequestGroupCommand.cc
  8537. * src/MetaFileUtil.cc
  8538. * src/IteratableChunkChecksumValidator.cc
  8539. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8540. getGID())
  8541. * src/CheckIntegrityCommand.cc
  8542. * src/message.h
  8543. Print gid instead of idx.
  8544. * src/RequestGroupMan.cc
  8545. Removed exception throwers declaration.
  8546. * src/DirectDiskAdaptor.{h, cc}
  8547. * src/SocketCore.{h, cc}
  8548. * src/MultiDiskAdaptor.{h, cc}
  8549. * src/HttpConnection.{h, cc}
  8550. * src/HttpResponse.{h, cc}
  8551. * src/DiskAdaptor.{h, cc}
  8552. * src/CopyDiskAdaptor.{h, cc}
  8553. * src/MultiDiskAdaptor.{h, cc}
  8554. * src/HttpHeaderProcessor.{h, cc}
  8555. * src/AbstractSingleDiskAdaptor.{h, cc}
  8556. * src/Util.{h, cc}
  8557. * test/UtilTest.cc
  8558. * src/DefaultDiskWriter.{h, cc}
  8559. * src/FtpConnection.{h, cc}
  8560. * src/AbstractDiskWriter.{h, cc}
  8561. Removed duplicate code.
  8562. * src/StreamCheckIntegrityEntry.cc
  8563. Removed unnecessary include.
  8564. * src/DiskWriter.h
  8565. Included Exception.h
  8566. * src/option_processing.cc
  8567. Included 2 files and added doc
  8568. * src/TrackerWatcherCommand.cc
  8569. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8570. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Changed CheckIntegrityEntry interface so that it can define
  8572. the action when all the chunk checksums are valid.
  8573. * src/CheckIntegrityEntry.h
  8574. * src/StreamCheckIntegrityEntry.{h, cc}
  8575. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8576. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8577. to exit rather than doing seeding. So, it would be good to toggle this
  8578. behavior.
  8579. * src/CheckIntegrityCommand.cc
  8580. * src/AbstractCommand.cc
  8581. * src/RequestGroup.cc
  8582. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Reflect the download length of in-flight pieces.
  8584. It makes the download length readout more precise.
  8585. * src/DefaultPieceStorage.{h, cc}
  8586. * test/DefaultPieceStorageTest.cc
  8587. * src/a2functional.h
  8588. * test/a2functionalTest.cc
  8589. Lower CPU load when --max-download-limit is used.
  8590. There is up and down in speed indicator when enabling
  8591. http-pipelining but a download goes well. I think the problem is that
  8592. because http-pipelining is enabled, DownloadCommand is created for
  8593. each segment and in its constructor, PeerStat::downloadStart() is
  8594. called. In PeerStat::downloadStart(), speed calculation object is
  8595. reseted, which makes download speed zero.
  8596. * src/DownloadCommand.cc
  8597. Rewritten using accumulate.
  8598. * src/RequestGroupMan.cc (calculateStat)
  8599. Code clearnup.
  8600. * src/FtpNegotiationCommand.cc
  8601. * src/HttpResponseCommand.cc
  8602. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Fixed: Can not resume: aria2 reports download already finished.
  8604. * src/AbstractCommand.{h, cc}
  8605. * src/HttpResponseCommand.cc
  8606. * src/FtpNegotiateCommand.cc
  8607. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Now a file is stored in the directory specified in .metalnk file
  8609. (file[@name]).
  8610. * src/Metalink2RequestGroup.cc
  8611. Create the directory structure when opening the file if it doesn't
  8612. exist.
  8613. * src/AbstractDiskWriter.cc
  8614. * src/Util.{h, cc}
  8615. * src/File.h
  8616. * test/UtilTest.cc
  8617. Removed file name comparison
  8618. * src/Metalink2RequestGroup.cc
  8619. * src/HttpResponseCommand.cc
  8620. Rewritten using Util::mkdirs()
  8621. * src/FileEntry.cc (setupDir)
  8622. * test/FileEntryTest.cc
  8623. Updated doc
  8624. * src/SingleFileDownloadContext.h
  8625. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Now SleepCommand dispatches nextCommand when halt is requested.
  8627. It avoids a possible long wait after hitting CTRL-C.
  8628. * src/SleepCommand.{h, cc}
  8629. * src/RequestGroupAware.{h, cc}
  8630. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8632. to open listen port, then remove the port number from the tracker
  8633. request.
  8634. * src/DefaultBtAnnounce.cc
  8635. * test/DefaultBtAnnounceTest.cc
  8636. * test/MockPieceStorage.h
  8637. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8638. them more testable.
  8639. * src/DefaultBtAnnounce.{h, cc}
  8640. * src/DefaultBtContext.{h, cc}
  8641. * src/Util.{h, cc}
  8642. * test/DefaultBtAnnounceTest.cc
  8643. * test/DefaultBtContextTest.cc
  8644. * test/UtilTest.cc
  8645. Added 'B' to upload bytes readout.
  8646. * src/ConsoleStatCalc.cc
  8647. Now the listen port for BitTorrent download is opened when it is
  8648. needed.
  8649. * src/DownloadEngineFactory.cc
  8650. * src/BtSetup.{h, cc}
  8651. * src/PeerListenCommand.{h, cc}
  8652. Now an exception thrown while parsing tracker response is now logged.
  8653. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8654. called, which means no retry is made in this case, assuming a tracker
  8655. has a problem.
  8656. * src/TrackerWatcherCommand.cc
  8657. Fixed: downloading a file whose length is unkown fails.
  8658. * src/DownloadCommand.cc
  8659. Simplified prepareForNextSegment()
  8660. * src/DownloadCommand.cc
  8661. Updated
  8662. * po/POTFILES.in
  8663. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Re-implemented a file listing for Metalink, which was dropped while
  8665. http/ftp/torrent integration was being implemented.
  8666. * src/MetalinkHelper.{h, cc}: New class.
  8667. * test/MetalinkHelperTest.cc
  8668. * src/main.cc
  8669. * src/Metalink2RequestGroup.cc
  8670. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Added the ability to display the detailed torrent file information.
  8672. Now -S option gives not only a file listing, but also total download
  8673. length, info hash, announce URI, piece length, the number of pieces,
  8674. and mode(single or multi-torrent).
  8675. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8676. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8677. KiB)
  8678. * test/UtilTest.cc
  8679. * src/main.cc
  8680. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Added ftp://USER:PASSWD@Servername automatic parsing.
  8682. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8683. _password. Recognize username and password in URI.
  8684. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8685. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8686. * src/RequestFactory.{h, cc}: Removed.
  8687. * src/AuthConfigFactory.{h, cc}: New class.
  8688. * src/FtpConnection.cc: Use AuthConfigFactory.
  8689. * src/HttpRequest.cc: Use AuthConfigFactory.
  8690. * test/HttpRequestTest.cc: Updated.
  8691. * test/RequestTest.cc: Updated.
  8692. * test/AuthConfigFactoryTest.cc: New class.
  8693. * test/RequestFactoryTest.cc: Removed.
  8694. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Use RequestGroup::allDownloadFinished() to decide whether the control
  8696. file should be removed or saved.
  8697. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8698. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8699. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Use File::renameTo()
  8701. * src/DefaultBtProgressInfoFile.cc
  8702. Added --no-file-allocation-limit command-line option.
  8703. * src/version_usage.cc
  8704. * src/option_processing.cc
  8705. * src/OptionHandlerFactory.cc
  8706. * src/RequestGroup.{h, cc}
  8707. * src/BtCheckIntegrityEntry.cc
  8708. * src/StreamCheckIntegrityEntry.cc
  8709. * src/prefs.h
  8710. * doc/aria2c.1.txt
  8711. * doc/aria2c.1
  8712. Now prealloc is the default value for --file-allocation option.
  8713. * src/version_usage.cc
  8714. * src/option_processing.cc
  8715. * doc/aria2c.1.txt
  8716. * doc/aria2c.1
  8717. Don't URL-encode user-agent.
  8718. * src/HttpRequest.cc
  8719. Updated translations
  8720. * po/LINGUAS: Added nl for Dutch translation.
  8721. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8722. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8723. * po/POTFILES.in: Updated.
  8724. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8725. Added the ability to recognize url-list in a torrent file.
  8726. The retrieved URLs are attached to the corresponding FileEntry.
  8727. * src/DefaultBtContext.{h, cc}
  8728. * src/FileEntry.{h, cc}
  8729. * test/DefaultBtContextTest.cc
  8730. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8732. after the download finishes.
  8733. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8735. the data smaller than block length.
  8736. A block length can be specified by constructor's argument.
  8737. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8738. Get a missing piece in the range of given FileEntry. This function is
  8739. not used in the program yet.
  8740. * src/Util.h: Added some macros.
  8741. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Added HTTP/1.1 keep alive and pipelining support.
  8743. See --enable-http-keep-alive and --enable-http-pipelining option.
  8744. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8745. Segment.
  8746. * src/HttpDownloadCommand.{h, cc}
  8747. * src/OptionHandlerFactory.cc
  8748. * src/HttpConnection.{h, cc}
  8749. * src/version_usage.cc
  8750. * src/HttpInitiateConnectionCommand.cc
  8751. * src/FtpInitiateConnectionCommand.cc
  8752. * src/Segment.h
  8753. * src/HttpRequestCommand.{h, cc}
  8754. * src/option_processing.cc
  8755. * src/prefs.h
  8756. * src/HttpResponseCommand.cc
  8757. * src/SegmentMan.{h, cc}
  8758. * src/FtpNegotiateCommand.cc
  8759. * src/HttpProxyResponseCommand.cc
  8760. * src/Request.cc
  8761. * src/HttpRequest.cc
  8762. * src/DownloadCommand.cc
  8763. * test/HttpRequestTest.cc
  8764. * test/RequestTest.cc
  8765. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8766. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8767. finished.
  8768. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8770. catching it inside the method.
  8771. When no file entry is found in a metalink without querying user
  8772. preferences, throw the exception with the error message that suggests
  8773. metalink file is probably broken.
  8774. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8775. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8777. processed.
  8778. * src/RequestGroupMan.cc (removeStoppedGroup)
  8779. Added debug message.
  8780. * src/BtPostDownloadHandler.cc
  8781. * src/MetalinkPostDownloadHandler.cc
  8782. * src/PostDownloadHandler.{h, cc}
  8783. * src/RequestGroup.cc
  8784. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8786. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8788. stops and there are any unfinished or in-progress downloads.
  8789. Added the legend of "stat".
  8790. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Throw exception when chunck checksum verification fails.
  8792. * src/DownloadCommand.cc (validatePieceHash): New function.
  8793. * src/PiecedSegment.{h, cc} (clear): New function.
  8794. * src/GrowSegment.{h, cc} (clear): New function.
  8795. * src/Segment.h (clear): New function.
  8796. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8797. * test/SegmentTest.cc
  8798. * test/GrowSegmentTest.cc
  8799. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Do not send referer when redirected.
  8801. * src/Request.cc (redirectUrl)
  8802. * test/RequestTest.cc
  8803. * test/HttpRequestTest.cc
  8804. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Implemented BitTorrent/http/ftp integrated download.
  8806. I've rewritten lots of files and now some headers have forward
  8807. class declarations to reduce compile time.
  8808. The implementation is extremely alpha stage, I recommend to use this
  8809. for testing purpose only.
  8810. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Fixed the compilation error on 64bit platform.
  8812. * test/HttpHeaderProcessorTest.cc
  8813. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Merged Ross's patch that fixes compilation problem in MinGW
  8815. * test/DefaultBtProgressInfoFileTest.cc
  8816. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Updated fr.po by sebone
  8818. * po/fr.po
  8819. Updated man page.
  8820. * doc/aria2c.1.txt
  8821. * Release 0.11.3
  8822. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8824. failure in Metalink.
  8825. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Automatically save *.aria2 control file of http/ftp download in every
  8827. 60 seconds.
  8828. * src/AutoSaveCommand.{h, cc}: New class.
  8829. * src/TimeBasedCommand.{h, cc}: New class.
  8830. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8831. Disable parameterized URI support by default. Added -P option to
  8832. enable the feature.
  8833. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8834. * src/OptionHandlerFactory.cc
  8835. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8836. Updated Japanese translation.
  8837. * po/ja.po
  8838. Updated man page.
  8839. * doc/aria2c.1.txt
  8840. * Release 0.11.3-rc
  8841. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8843. it is successful, then renamed to *.aria2.
  8844. This prevents *.aria2 file from being truncated or corrupted when
  8845. file system becomes out of space.
  8846. * src/DefaultBtProgressInfoFile.cc (save)
  8847. * src/SegmentMan.cc (save)
  8848. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8849. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Reduced the fragmentation of bitfield in http/ftp download.
  8851. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8852. * test/BitfieldManTest.cc
  8853. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Added the ability to disable segmented download in .metalink.
  8855. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8856. 'url' tag.
  8857. * src/MetalinkEntry.{h, cc}
  8858. * src/RequestResource.{h, cc}
  8859. * src/MetalinkRequestInfo.cc
  8860. * src/Xml2MetalinkProcessor.cc
  8861. * test/Xml2MetalinkProcessorTest.cc
  8862. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Added parameterized URI support.
  8864. * src/main.cc: -Z option added.
  8865. * src/OptionHandlerFactory.cc
  8866. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8867. * src/PStringDatum.h: New class.
  8868. * src/PStringSegment.{h,cc}: New class.
  8869. * src/PStringNumLoop.h: New class.
  8870. * src/PStringSelect.h: New class.
  8871. * src/NumberDecorator.h: New class.
  8872. * src/FixedWidthNumberDecorator.h: New class.
  8873. * src/AlphaNumberDecorator.h: New class.
  8874. * src/PStringVisitor.h: New class.
  8875. * src/PStringBuildVisitor.{h,cc}: New class.
  8876. * src/ParameterizedStringParser.{h,cc}: New class.
  8877. * src/Util.{h,cc}
  8878. (isNumber): New function.
  8879. (isLowercase): New function.
  8880. (isUppercase): New function.
  8881. (alphaToNum): New function.
  8882. * test/ParameterizedStringParserTest.cc: New class.
  8883. * test/AlphaNumberDecoratorTest.cc: New class.
  8884. * test/PStringBuildVisitorTest.cc: New class.
  8885. * test/UtilTest.cc
  8886. (testIsNumber): New function.
  8887. (testIsLowercase): New function.
  8888. (testIsUppercase): New function.
  8889. (testAlphaToNum): New function.
  8890. Added '\n' after the error message
  8891. * src/RequestInfo.h (printDownloadAbortMessage)
  8892. Added auto file renaming feature in http(s)/ftp download.
  8893. * src/main.cc: Added --auto-file-renaming command-line option.
  8894. * src/OptionHandlerFactory.cc
  8895. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8896. * src/RequestGroup.{h, cc}
  8897. (shouldCancelDownloadForSafety): Rewritten
  8898. (tryAutoFileRenaming): New function.
  8899. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8900. * src/HttpResponseCommand.cc
  8901. (executeInternal): Removed the call to RequestGroupMan::
  8902. isSameFileBeingDownloaded()
  8903. * src/FtpNegotiateCommand.cc
  8904. (recvSize): Removed the call to RequestGroupMan::
  8905. isSameFileBeingDownloaded()
  8906. * test/RequestGroupTest.cc: New class.
  8907. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8909. IO.
  8910. * src/DefaultBtProgressInfoFile.cc
  8911. * src/MetaFileUtil.cc
  8912. * src/SimpleLogger.cc
  8913. * src/SegmentMan.cc
  8914. * src/Util.cc
  8915. * src/Platform.cc
  8916. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8918. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8920. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8921. Fixed the bug that prevents file allocation is not done when
  8922. dowloading multi-torrent file.
  8923. * src/AbstractDiskWriter.cc (openFile)
  8924. Increase the maximum number of -j option from 15 to 45.
  8925. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8926. Added fr.po, thanks to Charles Landemaine.
  8927. * po/fr.po
  8928. * po/LINGUAS
  8929. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8930. gcc 3.4.4 support:
  8931. * src/DefaultBtContext.cc: int32_t -> int
  8932. * src/main.cc: int -> int32_t, int32_t -> int
  8933. * src/messageDigest.h: uint32_t -> unsigned int
  8934. * src/NameResolver.h: int32_t -> int
  8935. * src/PeerConnection.cc: int -> int32_t
  8936. * src/SpeedCalc.cc: int32_t -> int
  8937. * src/TrackerUpdateCommand.h: int -> int32_t
  8938. * src/Util.cc: int32_t -> int
  8939. * src/Util.h: int32_t -> int
  8940. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8941. * test/AnnounceListTest.cc: int -> int32_t
  8942. * test/ChunkedEncodingTest.cc: int -> int32_t
  8943. * test/DataTest.cc: int -> int32_t
  8944. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8945. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8946. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8947. * test/FeatureConfigTest.cc: int -> int32_t
  8948. * test/MetalinkEntryTest.cc: int -> int32_t
  8949. * test/MockBtRequestFactory.h: int -> int32_t
  8950. * test/MockPieceStorage.h: int -> int32_t
  8951. * test/OptionTest.cc: int -> int32_t
  8952. * test/RequestTest.cc: int -> int32_t
  8953. * test/SegmentManTest.cc: int -> int32_t
  8954. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8955. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8956. Move sleep functions to Util class:
  8957. * src/Util.cc
  8958. (sleep): New function.
  8959. (usleep): New function.
  8960. * src/DownloadCommand.cc: sleep -> Util::sleep
  8961. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8962. MinGW build enhancements. The following files are added:
  8963. * src/timegm.{c,h}
  8964. Changes to support the above new files:
  8965. * configure.ac
  8966. * src/Makefile.am
  8967. * src/a2time.h
  8968. * src/Util.cc:
  8969. * src/strptime.c: Added support for %Z option.
  8970. Fixed MinGW non-blocking bug.
  8971. * src/SocketCore.cc
  8972. * src/HttpRequestCommand.cc
  8973. Miscellenous build fixes/enhancements.
  8974. * configure.ac: Added summary report.
  8975. * src/Platform.h: Tweaked #include's.
  8976. * src/a2netcompat.h: Tweaked #include's.
  8977. * src/strptime.h: Tweaked #include's.
  8978. * src/gai_strerror.c: Tweaked #include's.
  8979. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8980. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8981. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8982. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Increased the initial connection size in BitTorrent download to 40.
  8984. * src/BtRuntime.h
  8985. Added the usage message of --peer-id-prefix option.
  8986. * src/main.cc
  8987. * Release 0.11.2
  8988. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. MessageDigestHelper is introduced in order to simplify the use
  8990. of message digest. Removed repeated code.
  8991. The message digest algorithm is now specified by string, like "sha1",
  8992. "md5".
  8993. * src/messageDigest.{h, cc}
  8994. * src/MessageDigestHelper.{h, cc}: New class.
  8995. * src/DefaultPieceStorage.cc
  8996. * src/DefaultBtContext.{h, cc}
  8997. (computeFastSet): New function.
  8998. (setInfoHash): Added for unit testing.
  8999. (setNumPieces): Added for unit testing.
  9000. * src/DefaultBtInteractive.cc
  9001. * src/BtPieceMessage.cc
  9002. * src/Peer.cc
  9003. * src/Checksum.h
  9004. * src/message.h
  9005. * src/IteratableChecksumValidator.h
  9006. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9007. inside it.
  9008. * src/SegmentMan.{h, cc}
  9009. (checkIntegrity): Removed.
  9010. * src/IteratableChunkChecksumValidator.{h, cc}
  9011. * src/Util.h
  9012. (sha1Sum): Removed.
  9013. (simpleMessageDigest): Removed.
  9014. (fileChecksum): Removed.
  9015. (computeFastSet): Removed.
  9016. * src/ShaVisitor.cc
  9017. * src/ChunkChecksum.h
  9018. * src/DownloadCommand.cc
  9019. Removed messageDigest virtual functions.
  9020. * src/MultiDiskAdaptor.{h, cc}
  9021. * src/DiskAdaptor.h
  9022. * src/ByteArrayDiskWriter.h
  9023. * src/DiskWriter.h
  9024. * src/DiskAdaptorWriter.h
  9025. * src/AbstractSingleDiskAdaptor.{h, cc}
  9026. * src/AbstractDiskWriter.{h, cc}
  9027. Fixed comilation error when message digest is disabled.
  9028. * src/MetalinkEntry.{h, cc}
  9029. * src/MetalinkRequestInfo.cc
  9030. Removed srandom and random.
  9031. * src/SimpleRandomizer.h
  9032. Added size() virtual function to DiskAdaptor
  9033. * src/MultiDiskAdaptor.h
  9034. Fixed the bug that causes that files are not opened correctly in
  9035. multi-file torrent.
  9036. * src/TorrentRequestInfo.cc
  9037. * src/MultiDiskAdaptor.cc
  9038. Added SHA256 support
  9039. * src/messageDigest.cc
  9040. * src/Xml2MetalinkProcessor.cc
  9041. Show supported message digest algorithms
  9042. * src/main.cc
  9043. Updated contact info.
  9044. * src/main.cc
  9045. Applied Ross's patch
  9046. * src/a2netcompat.h
  9047. * src/main.cc
  9048. Fixed the bug that prevents a remote metalink from not being processed
  9049. even if '-o foo.metalink' is specified.
  9050. * src/MetalinkRequestInfo.cc
  9051. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Merged Dan's patch:
  9053. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9054. Use va_copy to avoid core dump on amd64:
  9055. * src/SimpleLogger.cc
  9056. Updated contact info.
  9057. * src/main.cc
  9058. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9059. digest is not available.
  9060. * src/MetalinkEntry.h
  9061. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Make a2netcompat.h include a2io.h to fix compilation error:
  9063. * src/a2netcompat.h
  9064. * src/SocketCore.cc: Removed include of a2io.h
  9065. * src/Util.cc: Removed include of a2io.h
  9066. Gather time related functions to a2time.h:
  9067. * src/a2time.h: New file.
  9068. * src/DefaultPeerStorage.cc
  9069. * src/SimpleLogger.cc
  9070. * src/Util.{h, cc}
  9071. * src/SimpleRandomizer.h
  9072. * src/TimeA2.{h,cc}
  9073. * src/DownloadCommand.cc
  9074. * src/main.cc
  9075. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9076. a2netcompat.h:
  9077. * src/NameResolver.cc
  9078. Fixed compilation error without openssl:
  9079. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9080. Added default block to suppress compiler warnings:
  9081. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9082. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9083. MinGW build enhancements. The following files are added:
  9084. * src/gai_strerror.{c,h}
  9085. * src/gettimeofday.{c,h}
  9086. Changes to support the above new files:
  9087. * configure.ac
  9088. * src/Makefile.am
  9089. * src/a2netcompat.h
  9090. * src/TimeA2.cc
  9091. * src/DefaultPeerStorage.cc
  9092. * src/NameResolver.cc: removed mingw_strerror() function.
  9093. * src/SocketCore.cc: removed mingw_strerror() function.
  9094. Miscellaneous MinGW build fixes.
  9095. * src/a2io.h: Use _lseeki64() instead of lseek()
  9096. * src/common.h
  9097. * src/DefaultFileAllocator.cc
  9098. * src/GlowFileAllocator.cc
  9099. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9100. * src/NameResolver.cc
  9101. (callback): Changed int32_t to int.
  9102. (resolve): Changed int32_t to int.
  9103. * src/Platform.cc
  9104. * src/Platform.h
  9105. * test/MultiDiskWriterTest.cc
  9106. * test/PeerMessageUtilTest.cc
  9107. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9108. Other enhancements and fixes.
  9109. * src/HttpRequestCommand.cc
  9110. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9111. * src/SocketCore.cc:
  9112. (error): New function to abstract errno/WSAGetLastError().
  9113. (errorMsg): New function to abstract errno/WSAGetLastError().
  9114. (initiateSecureConnection): Added more detailed error reporting.
  9115. * src/SocketCore.h: Added private variable blocking, to allow
  9116. proper handling of OpenSSL psuedo-errors.
  9117. * src/message.h
  9118. (EX_SSL_INIT_FAILURE)
  9119. (EX_SSL_IO_ERROR)
  9120. (EX_SSL_PROTOCOL_ERROR)
  9121. (EX_SSL_UNKNOWN_ERROR)
  9122. (EX_SSL_CONNECT_ERROR)
  9123. (EX_SOCKET_BLOCKING)
  9124. (EX_SOCKET_NONBLOCKING)
  9125. (EX_SOCKET_UNKNOWN_ERROR)
  9126. * src/Util.cc
  9127. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9128. reserved name.
  9129. (httpGMT): Fixed typo.
  9130. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Merged Ross's win32 patch(manually)
  9132. In the course of merging, following files are added.
  9133. * src/strptime.{h,c}
  9134. * src/libgen.{h,c}
  9135. * src/inet_aton.{h,c}
  9136. * src/Platform.{h,cc}
  9137. * src/localtime_r.{h,c}
  9138. * src/getaddrinfo.{h,c}
  9139. I've gethered network related things, and put them to following file:
  9140. * src/a2netcompat.h
  9141. Also io related things are put to following file:
  9142. * src/a2io.h
  9143. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9144. * src/message.h
  9145. (MSG_ALLOCATION_COMPLETED)
  9146. (EX_TOO_LARGE_FILE)
  9147. (EX_SIZE_MISMATCH)
  9148. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9149. (EX_INVALID_CHUNK_CHECKSUM)
  9150. (EX_INVALID_RANGE_HEADER)
  9151. * src/FileAllocationCommand.cc
  9152. * src/HttpResponse.cc
  9153. * src/RequestGroup.cc
  9154. * src/MultiDiskAdaptor.cc
  9155. * src/OptionHandlerImpl.h
  9156. * src/HttpResponseCommand.cc
  9157. * src/FtpNegotiateCommand.cc
  9158. * src/IteratableChecksumValidator.cc
  9159. * src/SegmentMan.cc
  9160. * src/ChunkChecksumValidator.cc
  9161. Added Randomizer::getRandomNumber(long int)
  9162. * src/Randomizer.h (getRandomNumber)
  9163. * src/SimpleRandomizer.h (getRandomNumber)
  9164. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9165. * src/Util.cc (randomAlpha): Use this new function.
  9166. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Converted int's to in32_t. long long int's are also converted to
  9168. int64_t
  9169. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Fixed the bug that prevents cookies from being sent to the server
  9171. if the domain of cookie is FQDN and starts with ".".
  9172. * src/Cookie.cc (match)
  9173. To add the ability to change peer id.
  9174. * src/DefaultBtContext.h
  9175. (_peerIdPrefix): New variable
  9176. (setPeerIdPrefix): New function.
  9177. * src/torrentRequestInfo.cc
  9178. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9179. DefaultBtContext.
  9180. * src/main.cc (main): Added peer-id-prefix command-line option.
  9181. The usage message is not added yet.
  9182. * src/DefaultBtContext.cc
  9183. (generatePeerId): Use _peerIdPrefix.
  9184. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9185. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Fixed the bug that prevents filename in content-disposition from
  9187. being retrieved when filename is not quoted.
  9188. * src/Util.cc (getContentDispositionFilename)
  9189. Fixed the bug that causes infinate loop and memory leak when file open
  9190. operation failed.
  9191. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9192. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Fixed the bug that causes segfault when all URIs specified are
  9194. unsupported.
  9195. * src/RequestGroupMan.cc (getInitialCommands)
  9196. Check if RequestGroup::createNextCommand() returns empty list of
  9197. commands.
  9198. * src/RequestGroup.cc (createNextCommand)
  9199. Change log level from info to error so that users can notice that
  9200. an error occurred.
  9201. Fixed the bug that causes segfault when a zero-sized file is
  9202. downloaded.
  9203. * src/BitfieldMan.cc (isAllBitSet)
  9204. Return true if bitfieldLength is 0.
  9205. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. * src/main.cc
  9207. (showUsage): Added 3 usage examples for metalink download.
  9208. Replace MetalinkChunkChecksum with ChunkChecksum.
  9209. * src/MetalinkChunkChecksum.h: Removed.
  9210. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9211. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9212. * src/Xml2MetalinkProcessor.cc
  9213. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9214. * src/MetalinkRequestInfo.cc (execute)
  9215. * Release 0.11.1
  9216. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Reads URIs from stdin when "-i -" is specified.
  9218. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9219. * src/UriListParser.h, src/UriListParser.cc: New class.
  9220. * src/StreamUriListParser.h: New class.
  9221. * src/FileUriListParser.h: New class.
  9222. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9223. instead of UriFileListParser.
  9224. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Made console readout more readable.
  9226. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9227. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Fix the bug that causes -s option not to work.
  9229. * src/main.cc (main)
  9230. * src/a2algo.h: New file.
  9231. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Create directory structure specified in metalink file.
  9233. * src/RequestGroup.h, src/RequestGroup.cc
  9234. (initAndOpenFile): Create a directory to store files if it does not
  9235. exist.
  9236. (getDir): New function.
  9237. Added ETA and download speed for an individual file to readout.
  9238. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9239. * src/RequestGroup.h
  9240. (calculateDownloadSpeed): New function.
  9241. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Made -S option work with metalink file and provided selective download
  9243. to metalink.
  9244. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9245. (filename): Removed.
  9246. (file): New variable.
  9247. (size): Removed.
  9248. (operator=): Updated.
  9249. (getPath): New function.
  9250. (getLength): New function.
  9251. (toFileEntry): New function.
  9252. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9253. (execute): Use toStream.
  9254. (showFileEntry): Removed.
  9255. * src/MetalinkRequestInfo.h
  9256. (targetFiles): New variable.
  9257. (setTargetFiles): New variable.
  9258. * src/MetalinkRequestInfo.cc
  9259. (execute): Added the ability to print file information included in
  9260. a metalink file.
  9261. Added selective download mode to metalink.
  9262. * src/main.cc
  9263. (showUsage): Updated to denote that -S and --select-file options are
  9264. applicable to metalink.
  9265. * src/FileEntry.h
  9266. (operator=): New function.
  9267. (getBasename): New function.
  9268. (getDirname): New function.
  9269. * src/Util.h, src/Util.cc
  9270. (toStream): New function.
  9271. * src/Xml2MetalinkProcessor.cc: Updated.
  9272. Made aria2 work with metalink with directory structure.
  9273. * src/File.h, src/File.cc
  9274. (getBasename): New function.
  9275. (getDirname): New function.
  9276. * src/RequestGroup.h, src/RequestGroup.cc
  9277. (_topDir): New variable.
  9278. (setTopDir): New function.
  9279. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9280. Rewrote HTTP header parsing with stringstream.
  9281. * src/HttpConnection.h, src/HttpConnection.cc
  9282. (HttpRequestEntry): New class.
  9283. (headerBuf): Removed.
  9284. (headerBufLength): Removed.
  9285. (outstandingHttpRequests): Now its element type is
  9286. HttpRequestEntryHandle.
  9287. (findEndOfHeader): Removed.
  9288. (receiveResponse): Rewritten.
  9289. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9290. Updated doc for -j option to notice that it should be used with -i
  9291. option.
  9292. * src/main.cc (showUsage)
  9293. Removed unused classes.
  9294. * src/RequestInfo.h
  9295. (FileInfo): Removed.
  9296. (checksum): Removed.
  9297. (fileInfo): Removed.
  9298. (setChecksum): Removed.
  9299. (getChecksum): Removed.
  9300. (getFileInfo): Removed.
  9301. Use ISO units.
  9302. * src/ConsoleDownloadEngine.cc
  9303. * src/TorrentConsoleDownloadEngine.cc
  9304. * src/Util.cc (abbrevSize)
  9305. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Added the default listening ports to the help message.
  9307. * src/main.cc (showUsage)
  9308. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Reduce the number of calls to gettimeofday to lower CPU load.
  9310. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9311. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9312. * src/Peer.h (calculateUploadSpeed): New function.
  9313. (calculateDownloadSpeed): New function.
  9314. * src/DefaultPeerStorage.cc
  9315. (CalculateStat): Added _now variable.
  9316. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9317. and Peer::calculateUploadSpeed(const struct timeval&)
  9318. Drop connection if no request or piece message is exchanged in
  9319. a certain interval.
  9320. * src/DefaultBtInteractive.h
  9321. (btRuntime): New variable.
  9322. (inactiveCheckPoint): New variable.
  9323. (checkActiveInteraction): New function.
  9324. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9325. request or piece message is received.
  9326. (checkActiveInteraction): New function.
  9327. (doInteractionProcessing): Call checkActiveInteraction.
  9328. Fixed the bug that causes remote Metalink and Torrent files are not
  9329. processed.
  9330. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9331. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Changed format of log file.
  9333. * src/SimpleLogger.cc
  9334. * Release 0.11.0
  9335. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. * src/AbstractCommand.cc
  9337. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9338. MSG_MAX_TRY from error to info.
  9339. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9340. * src/message.h
  9341. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9342. (MSG_DOWNLOAD_ABORTED): Added %s.
  9343. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9344. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9345. * src/PeerAbstractCommand.cc
  9346. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9347. * src/Request.h
  9348. (cookieBox): Made ShardHandle.
  9349. * src/RequestGroup.h, src/RequestGroup.cc
  9350. (createNextCommandWithAdj): New function.
  9351. * src/FileAllocationCommand.cc
  9352. (executeInternal): Use createNextCommandWithAdj().
  9353. * src/CheckIntegrityCommand.cc
  9354. (executeInternal): Use createNextCommandWithAdj().
  9355. Added --load-cookies command-option.
  9356. * src/OptionHandlerFactory.cc
  9357. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9358. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9359. Now aria2 can handle cookie's expiration date.
  9360. * src/Cookie.h (expires): Changed its type to time_t.
  9361. * src/main.cc: Added --load-cookies command-line option.
  9362. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9363. * src/Util.h, src/Util.cc (httpGMT): New function.
  9364. * src/Request.cc (Request): Initialize cookieBox using
  9365. CookieBoxFactory.
  9366. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9367. * src/CookieParser.h, src/CookieParser.cc: New class.
  9368. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9369. * src/HttpResponseCommand.cc
  9370. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9371. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9372. download.
  9373. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Added -j command-line option.
  9375. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9376. * src/main.cc
  9377. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9378. Rewritten using stringstream.
  9379. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9380. Rewritten using stringstream.
  9381. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Make download size shown in MB, KB.
  9383. * src/ConsoleDownloadEngine.h (sendStatistics)
  9384. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9385. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Accept incoming connections if download rate is low.
  9387. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9388. (_lowestSpeedLimit): New variable.
  9389. (setLowestSpeedLimit): New function.
  9390. (execute): Accept incoming connections if download rate is low.
  9391. MAX_PEERS is ignored in this case.
  9392. Disable PREF_OUT in multiple concurrent download:
  9393. * src/RequestGroup.h, src/RequestGroup.cc
  9394. (setUserDefinedFilename): New function.
  9395. * src/DownloadEngineFactory.cc
  9396. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9397. concurrent download.
  9398. * src/DefaultSegmentManFactory.cc
  9399. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9400. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9402. Added its overloaded method.
  9403. * src/RequestGroup.h
  9404. (_numConcurrentCommand): New variable.
  9405. (setNumConcurrentCommand): New function.
  9406. * src/RequestGroup.cc
  9407. Abort download if same file is being downloaded concurrently.
  9408. * src/RequestGroup.h, src/RequestGroupMan.cc
  9409. (isSameFileBeingDownloaded): New function.
  9410. * src/HttpResponseCommand.cc (executeInternal)
  9411. * src/FtpNegotiateCommand.cc (recvSize)
  9412. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9413. * main.cc: Added help message for -i option.
  9414. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9416. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9417. * src/MetalinkEntry.h
  9418. (checksum): Changed to ChecksumHandle
  9419. * src/MetalinkRequestInfo.cc
  9420. (checksum): Changed to ChecksumHandle
  9421. * src/File.cc
  9422. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9423. * src/common.h
  9424. (DIR_OPEN_MODE): New definition
  9425. * src/RequestGroup.cc
  9426. (prepareForNextAction): Added an argument.
  9427. * src/message.h
  9428. (MSG_GOOD_CHECKSUM): New definition
  9429. (MSG_BAD_CHECKSUM): New definition
  9430. * src/HttpResponseCommand.cc
  9431. (handleDefaultEncoding): Continue download sequence in new
  9432. non-segmented download.
  9433. * src/FileAllocationEntry.h
  9434. (_nextDownloadCommand): New variable.
  9435. * src/DownloadCommand.cc
  9436. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9437. available.
  9438. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9439. * src/IteratableChecksumValidator.h,
  9440. src/IteratableChecksumValidator.cc: New class.
  9441. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9442. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Change file mode to 666:
  9444. * src/common.h (OPEN_MODE): New definition.
  9445. * src/File.cc
  9446. * src/Util.cc
  9447. * src/Directry.cc
  9448. * src/AbstractDiskWriter.cc
  9449. Change the level of log message "download aborted" to debug:
  9450. * src/PeerAbstractCommand.cc (execute)
  9451. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9452. * src/TrackerWatcherCommand.cc
  9453. (createCommand): Sleep some seconds after request failed.
  9454. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9455. then abort tracker request.
  9456. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. * Added the simultaneous download feature.
  9458. * src/main.cc: Print "Exception caught: " when exception is caught.
  9459. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9460. * src/ActivePeerConnectionCommand.cc
  9461. * src/PeerInteractionCommand.cc
  9462. * src/BtRuntime.h
  9463. (cuidCounter): Removed.
  9464. (getNewCuid): Removed.
  9465. * src/DownloadEngineFactory.cc
  9466. * src/PeerListenCommand.cc
  9467. * src/TrackerUpdateCommand.cc
  9468. * src/PeerInitiateConnectionCommand.cc
  9469. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. * src/PeerAbstractCommand.cc
  9471. (onAbort): Call PeerStorage::returnPeer()
  9472. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9473. (incomingPeers): New variable.
  9474. (addIncomingPeer): New function.
  9475. (returnPeer): New function.
  9476. (onErasingPeer): New function.
  9477. (addPeer): push_back -> push_front
  9478. (getActivePeers): Rewritten.
  9479. (calculateStat): Rewritten.
  9480. * src/PeerStorage.h
  9481. (TransferStat::copy): New function.
  9482. (TransferStat::TransferStat): New function.
  9483. (TransferStat::operator=): New function.
  9484. (addIncomingPeer): New function.
  9485. (returnPeer): New function.
  9486. * src/PeerListenCommand.cc
  9487. (execute): Use PeerStorage::addIncomingPeer() instead of
  9488. Peer::addPeer().
  9489. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Connect to a peer actively when download speed is lower than specified
  9491. speed in torrent download:
  9492. * src/ActivePeerConnectionCommand.h: New class.
  9493. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9495. * src/main.cc: Fixed the bug that prevents download if .netrc
  9496. doesn't exist.
  9497. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. To cache resolved hostname:
  9499. * src/AbstractCommand.h, src/AbstractCommand.cc
  9500. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9501. Added dns cache.
  9502. * src/FtpInitiateConnectionCommand.cc
  9503. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9504. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9505. NameResolver working without ares.
  9506. * src/TorrentRequestInfo.cc
  9507. (execute): Don't cache dns in torrent download.
  9508. * src/HttpInitiateConnectionCommand.cc
  9509. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9510. * src/DNSCache.h: New class.
  9511. * src/UrlRequestInfo.cc
  9512. (execute): Use dns cache.
  9513. In http request, suppress port number in http request header if port
  9514. is 80 or 443:
  9515. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9516. request header if port is 80 or 443.
  9517. (createProxyRequest): Allways send port number.
  9518. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. To add the command-line option which disables netrc support:
  9520. * src/OptionHandlerFactory.cc
  9521. (createOptionHandlers): Added PREF_NO_NETRC.
  9522. * src/main.cc: Added -n option.
  9523. * src/prefs.h (PREF_NO_NETRC): New definition.
  9524. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9525. V_TRUE.
  9526. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9527. is V_FALSE. This may get configurable in the future release.
  9528. To clear peer's error status by time basis:
  9529. * src/PeerAbstractCommand.cc
  9530. (onAbort): Call Peer::startBadCondition().
  9531. * src/Peer.h, src/Peer.cc
  9532. (error): Removed.
  9533. (_badConditionStartTime): New variable.
  9534. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9535. (startBadCondition): New function.
  9536. (isGood): New function.
  9537. * src/DefaultPeerStorage.cc
  9538. (addPeer): Use Peer::isGood().
  9539. (FindFinePeer): Use Peer::isGood().
  9540. Always include port number in http request header:
  9541. * src/HttpRequest.cc (getHostText): Always include port number in
  9542. http request header.
  9543. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. To the ability to read options from a config file:
  9545. * src/main.cc: Command-line parameter validation is delegated to
  9546. OptionHandler class.
  9547. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9548. * src/Option.h, src/Option.cc (clear): New function.
  9549. * src/OptionParser.h, src/OptionParser.cc: New class.
  9550. * src/OptionHandler.h: New class.
  9551. * src/NameMatchOptionHandler.h: New class.
  9552. * src/OptionHandlerImpl.h: New classes.
  9553. * src/prefs.h: '_' -> '-'
  9554. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9555. (FTP_PASV): New definition.
  9556. * src/Util.h, src/Util.cc (getRealSize): New function.
  9557. To disable netrc support if .netrc file does not have correct
  9558. permissions:
  9559. * src/File.h, src/File.cc (mode): New function.
  9560. To prevent confidential information to be logged:
  9561. * src/HttpConnection.h, src/HttpConnection.cc
  9562. (eraseConfidentialInfo): New function.
  9563. (sendRequest): Call eraseConfidentialInfo().
  9564. (sendProxyRequest): Call eraseConfidentialInfo().
  9565. * src/main.cc: Validate permissions of .netrc file.
  9566. To add --user-agent command-line option:
  9567. * src/main.cc: Added new command line option: --user-agent
  9568. * src/prefs.h (PREF_USER_AGENT): New definition.
  9569. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9570. parameter to HttpRequest object.
  9571. * src/AbstractProxyRequestCommand.cc
  9572. (executeInternal): Set user-agent option parameter to HttpRequest
  9573. object.
  9574. Marged the patches from Dan Fandrich.
  9575. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Use filename and size from Metalink file instead of sending HEAD
  9577. request:
  9578. * src/UrlRequestInfo.h
  9579. (_filename): New variable.
  9580. (_totalLength): New variable.
  9581. (setTotalLength): New variable.
  9582. (setFilename): New variable.
  9583. * src/MetalinkRequestInfo.cc
  9584. (execute): Set filename and size to UrlRequestInfo
  9585. * src/UrlRequestInfo.cc
  9586. (execute): Use filename and size from Metalink instead of seding
  9587. HEAD request to servers.
  9588. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. To add the ability to resume downloading a partially downloaded file
  9590. which is downloaded from the beginning:
  9591. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9592. takes this role.
  9593. * src/main.cc: Added -c option.
  9594. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9595. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9596. * src/prefs.h (PREF_CONTINUE): New definition.
  9597. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9598. * src/DefaultDiskWriter.cc
  9599. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9600. * src/AbstractDiskWriter.h
  9601. (glowFileAllocator): New variable.
  9602. * src/AbstractDiskWriter.cc
  9603. (openExistingFile): Now preallocate file space from the end of the
  9604. existing file if totalLength argument is specified and grater than 0.
  9605. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9606. to download exists in local, continue the download of the file.
  9607. --allow-overwrite=true is assumed in this context.
  9608. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9609. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9610. Throw exception if --check-integrity=true is specified but chunk
  9611. checksums are not provided:
  9612. * src/UrlRequestInfo.cc
  9613. Do not print URLs to stdout:
  9614. * src/UrlRequestInfo.cc
  9615. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. * src/Request.h: Use AuthResolver to get authentication information.
  9617. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9618. set to RequestFactory object.
  9619. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9620. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9621. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9622. create Request object.
  9623. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9624. To integrate Netrc into exsiting classes:
  9625. * src/Request.h
  9626. (_userDefinedAuthConfig): New variable.
  9627. (findNetrcAuthenticator): New function.
  9628. (segment): Removed.
  9629. (setUserDefinedAuthConfig): New function.
  9630. (resolveHttpAuthConfigItem): New function.
  9631. (resolveFtpAuthConfigItem): New function.
  9632. (resolveHttpProxyAuthConfigItem): New function.
  9633. * src/HttpRequest.h
  9634. (authConfig): Removed.
  9635. (proxyAuthConfig): Removed.
  9636. (setAuthConfig): Removed.
  9637. (setProxyAuthConfig): Removed.
  9638. * src/UrlRequest.h
  9639. (getHeadResult): Added a parameter: authConfigHandle
  9640. * src/common.h
  9641. (SingletonHolder.h): New include.
  9642. * src/main.cc
  9643. (Netrc.h): New include.
  9644. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9645. Added initial value of PREF_NETRC_PATH.
  9646. Added the initialization of netrc.
  9647. * src/AuthConfig.h: New class.
  9648. * src/prefs.h
  9649. (PREF_NETRC_PATH): New definition.
  9650. * src/HttpAuthConfig.h: Removed.
  9651. * src/Netrc.cc
  9652. (getRequiredNextToken): New function.
  9653. (skipMacdef): New function.
  9654. (parse): Rewritten.
  9655. * src/Netrc.h
  9656. (getRequiredNextToken): New function.
  9657. (skipMacdef): New function.
  9658. * src/Util.h, src/Util.cc
  9659. (getHomeDir): New function.
  9660. * src/TrackerWatcherComand.cc
  9661. (createRequestCommand): Use AuthConfig.
  9662. * src/FtpConnection.cc
  9663. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9664. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9665. * src/Request.cc
  9666. (findNetrcAuthenticator): New function.
  9667. (resolveHttpAuthConfigItem): New function.
  9668. (resolveFtpAuthConfigItem): New function.
  9669. (resolveHttpProxyAuthConfigItem): New function.
  9670. * src/UrlRequestInfo.cc: Use AuthConfig.
  9671. * src/HttpRequest.cc
  9672. (createRequest): Use authConfig.
  9673. (getProxyAuthString): Use authConfig.
  9674. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9675. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9676. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. To reduce overhead to find commands whose socket is either
  9678. readable or writable in the download engine loop:
  9679. * src/Command.h, src/Command.cc
  9680. (STATUS): New enum.
  9681. (status): New variable.
  9682. (statusMatch): New function.
  9683. (setStatusActive): New function.
  9684. (setStatusInactive): New function.
  9685. * src/DownloadEngine.h, src/DownloadEngine.cc
  9686. (executeCommand): New function.
  9687. (run): Simplified.
  9688. (waitData): Call Command::setStatusActive() when command's socket is
  9689. readable or writable.
  9690. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9691. To handle Segment as SegmentHandle:
  9692. * src/AbstractCommand.cc (execute): Rewritten.
  9693. * src/SegmentMan.h: Segment -> SegmentHandle
  9694. Introducded HttpResponse class, HttpRequest class to improve code
  9695. extensiveness and make it clear:
  9696. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9697. HttpResponse class.
  9698. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9699. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9700. * src/HttpConnection.cc: Contruction of http request were moved to
  9701. HttpRequest class.
  9702. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9703. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9704. * src/HttpAuthConfig.h: New class.
  9705. * src/Range.h: New class.
  9706. To make FtpTunnel{Request, Response}Command and
  9707. HttpProxy{Request, Response}Command derived from
  9708. AbstractProxy{Request, Response}Command:
  9709. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9710. Derived from AbstractProxyRequestCommand class.
  9711. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9712. Derived from AbstractProxyResponseCommand class.
  9713. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9714. Derived from AbstractProxyRequestCommand class.
  9715. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9716. Derived from AbstractProxyResponseCommand class.
  9717. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9718. : New class.
  9719. * src/AbstractProxyResponseCommand.h,
  9720. src/AbstractProxyResponseCommand.cc: New class.
  9721. To add netrc support:
  9722. * src/Netrc.h, src/Netrc.cc: New class.
  9723. * src/Util.h, src/Util.cc (split): New function.
  9724. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9725. "Content-Range" header instead of "Range" header.
  9726. * src/HttpHeader.h
  9727. (getStatus): Removed.
  9728. (setStatus): Removed.
  9729. * src/Segment.h
  9730. (getPositionToWrite): New function.
  9731. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. * src/HttpHeader.h
  9733. (Range.h): New include.
  9734. (status): New variable.
  9735. (HttpHeader): Initialized status with 0.
  9736. (getStatus): New function.
  9737. (setStatus): New function.
  9738. (getRange): New function.
  9739. (HttpHeaderHandle): New function.
  9740. * src/HttpHeader.cc
  9741. (getRange): New function.
  9742. * src/Request.h
  9743. (RequestWeakHandle): New definition.
  9744. * src/HttpConnection.h
  9745. (HttpConnectionHandle): New type definition.
  9746. * src/HttpConnection.cc
  9747. (receiveResponse): Set HTTP status to headers.
  9748. * src/main.cc
  9749. (showUsage): Fixed typo.
  9750. * src/Segment.h
  9751. (SegmentHandle): New type definition.
  9752. * src/BitfieldMan.h
  9753. (getMissingUnusedLength): New function.
  9754. * src/BitfieldMan.cc
  9755. (getMissingUnusedLength): New function.
  9756. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. To fix static initialization order problem:
  9758. * src/BitfieldManFactory.h
  9759. (defaultRandomizer): Removed.
  9760. (factory): New variable.
  9761. (getNewFactory): Removed.
  9762. (getFactoryInstance): New function.
  9763. (setDefaultRandomizer): Rewritten.
  9764. (getDefaultRandomizer): Rewritten.
  9765. * src/BitfieldManFactory.cc
  9766. (defaultRandomizer): Removed.
  9767. (factory): Initialized to 0.
  9768. (BitfieldManFactory): Initialized randomizer to 0.
  9769. * src/DefaultPieceStorage.cc
  9770. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9771. * src/Peer.cc
  9772. (Peer): getNewFactory() -> getFactoryInstance()
  9773. * src/SegmentMan.cc
  9774. (initBitfield): getNewFactory() -> getFactoryInstance()
  9775. * src/Piece.cc
  9776. (Piece): getNewFactory() -> getFactoryInstance()
  9777. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. To fix the bug that causes crash on Max OS X:
  9779. * src/SimpleRandomizer.h
  9780. (getInstance): Create new instance if the static variable is null.
  9781. * src/SimpleRandomizer.cc
  9782. (randomizer): Initialized to 0.
  9783. * src/BitfieldManFactory.h
  9784. (getNewFactory): Removed the call to setRandomizer().
  9785. To fix the miscalculation of the range of checksum:
  9786. * src/BitfieldMan.h
  9787. (isBitSetOffsetRange): New function.
  9788. * src/BitfieldMan.cc
  9789. (isBitSetOffsetRange): New function.
  9790. * src/SegmentMan.cc
  9791. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9792. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9793. * Release 0.10.1
  9794. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. To lower CPU usage in BitTorrent download when --max-upload-limit
  9796. command-line option specified:
  9797. * src/DefaultBtMessageDispatcher.cc
  9798. (sendMessages): Calculate uploading speed only when current message
  9799. is uploading data and is not sent yet.
  9800. * src/DefaultPeerStorage.h
  9801. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9802. * src/HttpResponseCommand.cc
  9803. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9804. This fixes compile error in Soralis 10.
  9805. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. To fix segfault in Metalink download:
  9807. * src/UrlRequestInfo.h
  9808. (filename): Removed.
  9809. (totalLength): Removed.
  9810. (setTotalLength): Removed.
  9811. (setFilename): Removed.
  9812. * src/MetalinkRequestInfo.cc
  9813. (execute): Do not set filename and totalLength to reqInfo.
  9814. Set chunk checksum to reqInfo if it is not null.
  9815. * src/HttpResponseCommand.cc
  9816. (executeInternal): Fixed filename in log.
  9817. (handleDefaultEncoding): Removed the call to initBitfield() and
  9818. markAllPiecesDone().
  9819. (handleOtherEncoding): Added HEAD method handling.
  9820. * src/FtpNegotiateCommand.cc
  9821. (executeInternal): Added SEQ_HEAD_OK handling.
  9822. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9823. return false.
  9824. * src/FtpNegotiateCommand.h
  9825. (SEQ_HEAD_OK): New definition.
  9826. * src/SegmentMan.cc
  9827. (initBitfield): Delete bitfield.
  9828. (isChunkChecksumValidationReady): Fixed the condition.
  9829. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9830. works fine.
  9831. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. * src/Xml2MetalinkProcessor.h
  9833. (xpathExists): New function.
  9834. * src/Xml2MetalinkProcessor.cc
  9835. (xpathExists): New function.
  9836. Not to send HEAD request if filename and size are available in Metalink
  9837. file:
  9838. * src/UrlRequestInfo.h
  9839. (filename): New variable.
  9840. (totalLength): New variable.
  9841. (setTotalLength): New function.
  9842. (setFilename): New function.
  9843. * src/MetalinkRequestInfo.cc
  9844. (execute): Set filename and size to UrlRequestInfo.
  9845. * src/MetalinkEntry.cc
  9846. (MetalinkEntry): Initialize size with 0.
  9847. * src/UrlRequestInfo.cc
  9848. (execute): Set filename and size to SegmentMan.
  9849. Not to download rest of the files after selected files are downloaded
  9850. in BitTorrent:
  9851. * src/PieceStorage.h
  9852. (allDownloadFinished): New function.
  9853. * src/DefaultBtAnnounce.cc
  9854. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9855. downloadFinished.
  9856. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9857. * src/DefaultPieceStorage.cc
  9858. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9859. Commented out the call to finishSelectiveDownloadingMode().
  9860. (downloadFinished): Call isFilteredAllBitSet() instead of
  9861. isAllBitSet().
  9862. (allDownloadFinished): New function.
  9863. * src/DefaultBtInteractive.cc
  9864. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9865. downloadFinished().
  9866. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9867. * src/TorrentDownloadEngine.cc
  9868. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9869. * src/BitfieldMan.h
  9870. (isFilteredAllBitSet): New function.
  9871. * src/ShareRatioSeedCriteria.h
  9872. (PieceStorage.h): New include.
  9873. (pieceStorage): New variable.
  9874. (evaluate):
  9875. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9876. * src/BitfieldMan.cc
  9877. (isFilteredAllBitSet): New function.
  9878. (isAllBitSet): Filter is not took into account.
  9879. Rename --force-truncate as --allow-overwrite:
  9880. * src/TorrentRequestInfo.cc
  9881. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9882. * src/main.cc
  9883. (showUsage): --force-truncate -> --allow-overwrite
  9884. * src/message.h
  9885. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9886. * src/prefs.h
  9887. (PREF_FORCE_TRUNCATE): Removed.
  9888. (PREF_ALLOW_OVERWRITE): New definition.
  9889. * src/SegmentMan.cc
  9890. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9891. * src/MetalinkRequestInfo.cc
  9892. (execute): Queueing message are now logged in info level.
  9893. * src/common.h
  9894. (LONG_LONG_MAX): Removed.
  9895. (LONG_LONG_MIN): Removed.
  9896. * src/HttpResponseCommand.cc
  9897. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9898. * src/FtpNegotiateCommand.cc
  9899. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9900. * src/main.cc
  9901. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9902. command-line option.
  9903. (main): Added --check-integriy and --realtime-chunk-checksum
  9904. command-line option.
  9905. --force-truncate -> --allow-overwrite
  9906. Set initial value of --check-integrity option to false.
  9907. Don't show usage when error occurs while persing command-line options.
  9908. Removed deprecated --upload-limit option.
  9909. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9911. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9912. * src/BtAllowedFastMessage.cc:
  9913. * src/BtBitfieldMessage.cc
  9914. * src/BtCancelMessage.cc
  9915. * src/BtChokeMessage.cc
  9916. * src/BtHaveAllMessage.cc
  9917. * src/BtHaveMessage.cc
  9918. * src/BtHaveNoneMessage.cc
  9919. * src/BtInterestedMessage.cc
  9920. * src/BtNotInterestedMessage.cc
  9921. * src/BtPieceMessage.cc
  9922. * src/BtPortMessage.cc
  9923. * src/BtRejectMessage.cc
  9924. * src/BtRequestMessage.cc
  9925. * src/BtSuggestPieceMessage.cc
  9926. * src/BtUnchokeMessage.cc
  9927. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9928. files are affected.
  9929. * src/ChunkChecksumValidator.cc
  9930. * src/SegmentMan.cc
  9931. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9932. To add chunk checksum validation:
  9933. * src/MetalinkEntry.h
  9934. (MetalinkChunkChecksum.h): New include.
  9935. (chunkChecksum): New variable.
  9936. * src/Request.h
  9937. (method): New variable.
  9938. (setMethod): New function.
  9939. (getMethod): New function.
  9940. (METHOD_GET): New static constant.
  9941. (METHOD_HEAD): New static constant.
  9942. * src/Xml2MetalinkProcessor.h
  9943. (getPieceHash): New function.
  9944. * src/PieceStorage.h
  9945. (markAllPiecesDone): New function.
  9946. (checkIntegrity): New function.
  9947. * src/FileAllocator.h
  9948. (NullFileAllocationMonitor.h): New include.
  9949. (FileAllocator): Initialize fileAllocationMonitor with new
  9950. NullFileAllocationMonitor().
  9951. * src/MultiDiskAdaptor.h
  9952. (messageDigest.h): Remove include.
  9953. (ctx): Removed.
  9954. (hashUpdate): Added ctx.
  9955. (MultiDiskAdaptor): Removed ctx.
  9956. (sha1Sum): Renamed as messageDigest.
  9957. (messageDigest): New function.
  9958. * src/UrlRequestInfo.h
  9959. (HeadResult): New class.
  9960. (digestAlgo): New variable.
  9961. (chunkChecksumLength): New variable.
  9962. (chunkChecksums): New variable.
  9963. (getHeadResult): New function.
  9964. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9965. (setDigestAlgo): New function.
  9966. (setChunkChecksumLength): New function.
  9967. (setChunkChecksums): New function.
  9968. * src/DefaultPieceStorage.cc
  9969. (DiskAdaptorWriter.h): New include.
  9970. (ChunkChecksumValidator.h): New include.
  9971. (markAllPiecesDone): New function.
  9972. (checkIntegrity): New function.
  9973. * src/DefaultBtContext.h
  9974. (getPieceHashes): New function.
  9975. * src/TorrentRequestInfo.cc
  9976. (execute): Try to validate chunk checksum if file already exists and
  9977. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9978. * src/messageDigest.h
  9979. (~MessageDigestContext): Added digestFree().
  9980. * src/MetalinkRequestInfo.cc
  9981. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9982. * src/DiskAdaptor.h
  9983. (messageDigest.h): New include.
  9984. (sha1Sum): Renamed as messageDigest.
  9985. (messageDigest): New function.
  9986. * src/DownloadCommand.h
  9987. (PeerStat.h): New include.
  9988. (maxDownloadSpeedLimit): New variable.
  9989. (startupIdleTime): New variable.
  9990. (lowestDownloadSpeedLimit): New variable.
  9991. (peerStat): New variable.
  9992. (setMaxDownloadSpeedLimit): New function.
  9993. (setStartupIdleTime): New function.
  9994. (setLowestDownloadSPeedLimit): New function.
  9995. * src/BtContext.h
  9996. (getPieceHashes): New function.
  9997. * src/main.cc
  9998. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9999. option to true for testing purpose.
  10000. * src/BtPieceMessage.cc
  10001. (checkPieceHash): Use messageDigest
  10002. * src/DownloadEngine.cc
  10003. (SetDescriptor): Removed.
  10004. (AccumulateActiveCommand): Removed.
  10005. (waitData): Rewritten.
  10006. (updateFdSet): Rewritten.
  10007. * src/MultiDiskAdaptor.cc
  10008. (hashUpdate): Added ctx.
  10009. (sha1Sum): Renamed as messageDigest.
  10010. (messageDigest): New function.
  10011. * src/BitfieldMan.h
  10012. (isBitRangeSet): New function.
  10013. (unsetBitRange): New function.
  10014. * src/ByteArrayDiskWriter.h
  10015. (sha1Sum): Renamed as messageDigest.
  10016. (messageDigest): New function.
  10017. * src/ConsoleDownloadEngine.cc
  10018. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10019. * src/DiskWriter.h
  10020. (messageDigest.h): New include.
  10021. (sha1Sum): Renamed as messageDigest.
  10022. (messageDigest): New function.
  10023. * src/ChunkChecksumValidator.h: New class.
  10024. * src/DiskAdaptorWriter.h: New class.
  10025. * src/prefs.h
  10026. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10027. (PREF_CHECK_INTEGRITY): New definition.
  10028. * src/HttpResponseCommand.cc
  10029. (handleDefaultEncoding): Added method "HEAD" handling.
  10030. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10031. (handleOtherEncoding):
  10032. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10033. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10034. startupIdleTime, lowestDownloadSpeedLimit to command.
  10035. * src/SegmentMan.h
  10036. (getSegmentEntryByIndex): New function.
  10037. (getSegmentEntryByCuid): New function.
  10038. (getSegmentEntryIteratorByCuid): New function.
  10039. (diskWriter): DiskWriter -> DiskWriterHandle
  10040. (pieceHashes): New variable.
  10041. (chunkHashLength): New variable.
  10042. (digestAlgo): New variable.
  10043. (FindPeerStat): Removed.
  10044. (getPeerStat): Rewritten.
  10045. (markAllPiecesDone): New function.
  10046. (checkIntegrity): New function.
  10047. (tryChunkChecksumValidation): New function.
  10048. (isChunkChecksumValidationReady): New function.
  10049. * src/BitfieldMan.cc
  10050. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10051. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10052. blocks to 0.
  10053. (isBitRangeSet): New function.
  10054. (unsetBitRange): New function.
  10055. * src/FtpNegotiateCommand.cc
  10056. (executeInternal): Set maxDownloadSpeedLimit,
  10057. startupIdleTime, lowestDownloadSpeedLimit to command.
  10058. (recvSize): Added method "HEAD" handling.
  10059. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10060. * src/AbstractSingleDiskAdaptor.cc
  10061. (sha1Sum): Renamed as messageDigest.
  10062. (messageDigest): New function.
  10063. * src/AbstractSingleDiskAdaptor.h
  10064. (sha1Sum): Renamed as messageDigest.
  10065. (messageDigest): New function.
  10066. * src/Util.h
  10067. (indexRange): New function.
  10068. * src/MetalinkEntry.cc
  10069. (MetalinkEntry): Initialized chunkChecksum to 0.
  10070. * src/ShaVisitor.cc
  10071. (~ShaVisitor): Removed the call to ctx.digestFree().
  10072. * src/SegmentMan.cc
  10073. (ChunkChecksumValidator.h): New include.
  10074. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10075. to DIGEST_ALGO_SHA1.
  10076. (~SegmentMan): Removed diskWriter.
  10077. (FindSegmentEntryByIndex): Removed.
  10078. (FindSegmentEntryByCuid): Removed.
  10079. (checkoutSegment): Rewritten.
  10080. (findSlowerSegmentEntry): Rewritten.
  10081. (getSegment): Rewritten.
  10082. (updateSegment): Rewritten.
  10083. (completeSegment): Rewritten.
  10084. (markAllPiecesDone): New function.
  10085. (checkIntegrity): New function.
  10086. (isChunkChecksumValidationReady): New function.
  10087. (tryChunkChecksumValidation): New function.
  10088. * src/Xml2MetalinkProcessor.cc
  10089. (getEntry): Get size and set it to entry.
  10090. Get chunk checksum and set it to entry.
  10091. (getPieceHash): New function.
  10092. * src/Util.cc
  10093. (sha1Sum): Removed ctx.digestFree()
  10094. (fileChecksum): Removed ctx.digestFree()
  10095. (indexRange): New function.
  10096. * src/Request.cc
  10097. (METHOD_GET): New variable.
  10098. (METHOD_HEAD): New variable.
  10099. (Request): Added method.
  10100. * src/UrlRequestInfo.cc
  10101. (FatalException.h): New include.
  10102. (message.h): New include.
  10103. (operator<<): Added operator<< for class HeadResult.
  10104. (getHeadResult): New function.
  10105. (execute): Get filename and size in separate download engine.
  10106. * src/ChunkChecksumValidator.cc: New class.
  10107. * src/DownloadCommand.cc:
  10108. (DownloadCommand): Added peerStat.
  10109. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10110. the value from Option.
  10111. The buffer size is now 16KB.
  10112. Use peerStat member instead of getting it from SegmentMan.
  10113. Use startupIdleTime member instead of gettingit from Option.
  10114. Added chunk checksum validation.
  10115. * src/AbstractDiskWriter.cc
  10116. (AbstractDiskWriter): Removed ctx.
  10117. (~AbstractDiskWriter): Removed ctx.digestFree()
  10118. (writeDataInternal): Returns the return value of write.
  10119. (readDataInternal): Returns the return value of read.
  10120. (sha1Sum): Renamed as messageDigest
  10121. (messageDigest): New function.
  10122. * src/AbstractDiwkWriter.h
  10123. (messageDigest.h): Removed include.
  10124. (ctx): Removed.
  10125. (sha1Sum): Renamed as messageDigest
  10126. (messageDigest): New function.
  10127. * src/DefaultPieceStorage.h
  10128. (markAllPiecesDone): New function.
  10129. (checkIntegrity): New function.
  10130. * src/NullFileAllocationMonitor.h: New class.
  10131. * src/MetalinkChunkChecksum.h: New class.
  10132. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. To decrease CPU usage in bittorrent download, calculation results in
  10134. BitfieldMan were cached and realtime fetching PeerObject was removed
  10135. with WeakHandle introduced. Option values are set to the objects
  10136. by setter before download begins.
  10137. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10138. * src/DefaultBtRequestFactory.h
  10139. (dispatcher): BtMessageDispatcherHandle ->
  10140. BtMessageDispatcherWeakHandle.
  10141. (messageFactory): New variable.
  10142. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10143. BtMessageDispatcherWeakHandle.
  10144. (setBtMessageFactory): New function.
  10145. * src/DefaultBtMessageDispatcher.cc:
  10146. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10147. from Option.
  10148. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10149. feating the value from Option.
  10150. Use messageFactory member.
  10151. * src/PeerInteractionCommand.cc
  10152. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10153. Add reverse dependencies to factory object.
  10154. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10155. dispatcher.
  10156. Set messageFactory to receiver.
  10157. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10158. btInteractive.
  10159. Set receiver to peerObject.
  10160. Set maxDownloadSpeedLimit to this.
  10161. (executeInternal): Use maxDownloadSpeedLimit member.
  10162. * src/BtChokeMessage.cc
  10163. (doReceivedAction): Use dispatcher, requestFactory member.
  10164. (onSendComplete): Use dispatcher member.
  10165. * src/PeerInteractionCommand.h
  10166. (maxDownloadSpeedLimit): New variable.
  10167. * src/DefaultBtMessageReceiver.h
  10168. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10169. (dispatcher):
  10170. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10171. (messageFactory): New variable.
  10172. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10173. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10174. (setDispatcher):
  10175. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10176. (setBtMessageFactory): New function.
  10177. * src/DefaultBtInteractive.cc
  10178. (initiateHandshake): Use messageFactory member.
  10179. (addBitfieldMessageToQueue): Use messageFactory member.
  10180. (addAllowedFastMessageToQueue): Use messageFactory member.
  10181. (decideChoking): Use messageFactory member.
  10182. (checkHave): Use messageFactory member.
  10183. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10184. (receiveMessages): Use maxDownloadSpeedLimit member.
  10185. (decideInterest): Use messageFactory member.
  10186. * src/BtRequestMessage.cc
  10187. (doReceivedAction): Use messageFactory, dispatcher member.
  10188. (onQueued): Use dispatcher member.
  10189. * src/BtPieceMessage.cc
  10190. (doReceivedAction): Use dispatcher member.
  10191. (send): Use peerConnection member.
  10192. (onWrongPiece): Use requestFactory member.
  10193. (handleChokingEvent): Use messageFactory, dispatcher member.
  10194. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10195. * src/BtMessageDispatcher.h
  10196. (BtMessageDispatcherWeakHandle): New type definition.
  10197. * src/SimpleBtMessage.cc
  10198. (send): Use peerConnection member.
  10199. * src/BtRejectMessage.cc
  10200. (doReceivedAction): Use dispatcher member.
  10201. * src/DefaultBtMessageDispatcher.h
  10202. (Option.h): Removed include.
  10203. (messageFactory): New variable.
  10204. (option): Removed.
  10205. (maxUploadSpeedLimit): New variable.
  10206. (requestTimeout): New variable.
  10207. (DefaultBtMessageDispatcher): Removed option.
  10208. Added maxUploadSpeedLimit, requestTimeout.
  10209. (setOption): Removed.
  10210. (getOption): Removed.
  10211. (setMaxUploadSpeedLimit): New function.
  10212. (setRequestTimeout): New function.
  10213. (setBtMessageFactory): New function.
  10214. * src/DefaultBtInteractive.h
  10215. (btMessageReceiver):
  10216. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10217. (dispatcher):
  10218. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10219. (btRequestFactory):
  10220. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10221. (peerConnection):
  10222. PeerConnectionHandle -> PeerConnectionWeakHandle
  10223. (messageFactory): New variable.
  10224. (option): Removed.
  10225. (keepAliveInterval): New variable.
  10226. (maxDownloadSpeedLimit): New variable.
  10227. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10228. (setBtMessageReceiver):
  10229. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10230. (setDispatcher):
  10231. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10232. (setBtRequestFactory):
  10233. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10234. (setPeerConnection):
  10235. PeerConnectionHandle -> PeerConnectionWeakHandle
  10236. (setOption): Removed.
  10237. (setKeepAliveInterval): New function.
  10238. (setMaxDownloadSpeedLimit): New function.
  10239. (setBtMessageFactory): New function.
  10240. * src/BitfieldMan.h
  10241. (cachedNumMissingBlock): New variable.
  10242. (cachedNumFilteredBlock): New variable.
  10243. (cachedCompletedLength): New variable.
  10244. (cachedFilteredComletedLength): New variable.
  10245. (cachedFilteredTotalLength): New variable.
  10246. (countMissingBlockNow): New function.
  10247. (countFilteredBlockNow): New function.
  10248. (getFilteredTotalLengthNow): New function.
  10249. (getCompletedLengthNow): New function.
  10250. (getFilteredCompletedLengthNow): New function.
  10251. (updateCache): New function.
  10252. * src/AbstractBtMessage.h
  10253. (BtMessageDispatcher.h): New include.
  10254. (PeerConnection.h): New include.
  10255. (BtRequestFactory.h): New include
  10256. (BtMessageFactory.h): New include.
  10257. (dispatcher): New variable.
  10258. (messageFactory): New variable.
  10259. (peerConnection: New variable.
  10260. (setBtMessageDispatcher): New function.
  10261. (setPeerConnection): New function.
  10262. (setBtMessageFactory): New function.
  10263. (setBtRequestFactory): New function.
  10264. * src/DefaultBtMessageFactory.cc
  10265. (setCommonProperty): Set dispatcher, requestFactory, this,
  10266. peerConnection to msg.
  10267. * src/BtRegistry.h
  10268. (BT_MESSAGE_RECEIVER): New macro.
  10269. * src/PeerConnection.h
  10270. (PeerConnectionWeakHandle): New type definition.
  10271. * src/BtMessageFactory.h
  10272. (BtMessageFactoryWeakHandle): New type definition.
  10273. * src/BitfieldMan.cc
  10274. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10275. cachedCompletedLength, cachedFilteredComletedLength,
  10276. cachedFilteredTotalLength.
  10277. Call updateCache().
  10278. (countMissingBlock): Return cachedNumMissingBlock.
  10279. (countMissingBlockNow): New function.
  10280. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10281. (countFilteredBlockNow): New function.
  10282. (setBit): Call updateCache().
  10283. (unsetBit): Call updateCache().
  10284. (setBitfield): Call updateCache().
  10285. (clearAllBit): Call updateCache().
  10286. (setAllBit): Use setBitInternal instead of setBit.
  10287. Call updateCache().
  10288. (addFilter): Call updateCache().
  10289. (enableFilter): Call updateCache().
  10290. (disableFilter): Call updateCache().
  10291. (clearFilter): Call updateCache().
  10292. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10293. (getFilteredTotalLengthNow): New function.
  10294. (getCompletedLength): Return cachedCompletedLength.
  10295. (getCompletedLengthNow): New function.
  10296. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10297. (getFilteredCompletedLengthNow): New function.
  10298. (updateCache): New function.
  10299. * src/BtMessageReceiver.h
  10300. (BtMessageReceiverWeakHandle): New type definition.
  10301. * src/DefaultBtMessageReceiver.cc
  10302. (receiveHandshake): Use messageFactory member.
  10303. (sendHandshake): Use messageFactory member.
  10304. (receiveMessage): Use messageFactory member.
  10305. * src/DefaultBtMessageFactory.h
  10306. (dispatcher): New variable.
  10307. (requestFactory): New variable.
  10308. (peerConnection): New variablle.
  10309. (setBtMessageDispatcher): New function.
  10310. (setBtRequestFactory): New function.
  10311. (setPeerConnection): New function.
  10312. * src/SharedHandle.h
  10313. (RefCount): New class.
  10314. (WeakHandle): New class.
  10315. * src/PeerObject.h
  10316. (BtMessageReceiver.h): New include.
  10317. (PeerObject): Added btMessageReceiver.
  10318. (btMessageReceiver): New variable.
  10319. * src/Util.cc
  10320. (countBit): Simplified.
  10321. * src/BtCancelMessage.cc
  10322. (doReceivedAction): Use dispatcher member.
  10323. * src/BtRequestFactory.h
  10324. (BtRequestFactoryWeakHandle): New type definition.
  10325. * src/PeerStorage.h
  10326. (downloadSpeed): int -> uint32_t
  10327. (uploadSpeed): int -> uint32_t
  10328. (sessionDownloadLength): long long int -> uint64_t
  10329. (sessionUploadLength): long long int -> uint64_t
  10330. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. To add RecoverableException, FatalException:
  10332. * src/AbstractCommand.cc
  10333. (onAbort): Exception -> RecoverableException
  10334. * src/PeerAbstractCommand.h
  10335. (RecoverableException.h): New include.
  10336. (onAbort): Exception -> RecoverableException.
  10337. * src/PeerInteractionCommand.cc
  10338. (onAbort): Exception -> RecoverableException.
  10339. * src/PeerAbstractCommand.cc
  10340. (execute): Exception -> RecoverableException.
  10341. (onAbort): Exception -> RecoverableException.
  10342. * src/TorrentRequestInfo.cc
  10343. (execute): Exception -> RecoverableException.
  10344. * src/MetalinkRequestInfo.cc
  10345. (execute): Exception -> RecoverableException.
  10346. * src/MetaFileUtil.cc: RecoverableException.
  10347. * src/AbstractCommand.h
  10348. (onAbort): Exception -> RecoverableException.
  10349. * src/DlRetryEx.h: Exception -> RecoverableException.
  10350. * src/DlAbortEx.h: Exception -> RecoverableException.
  10351. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10352. * src/Util.cc: Exception -> RecoverableException.
  10353. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10354. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10355. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10356. To make ID static const int
  10357. * src/BtInterestedMessage.h
  10358. (ID_t): Removed.
  10359. (ID): New variable.
  10360. (getId): Made non-const.
  10361. * src/BtPieceMessage.h
  10362. (ID_t): Removed.
  10363. (ID): New variable.
  10364. (getId): Made non-const.
  10365. * src/BtChokeMessage.h
  10366. (ID_t): Removed.
  10367. (ID): New variable.
  10368. (getId): Made non-const.
  10369. * src/BtHaveAllMessage.h
  10370. (ID_t): Removed.
  10371. (ID): New variable.
  10372. (getId): Made non-const.
  10373. * src/BtKeepAliveMessage.h
  10374. (ID_t): Removed.
  10375. (ID): New variable.
  10376. (getId): Made non-const.
  10377. * src/BtHandshakeMessage.h
  10378. (ID): New variable.
  10379. (getId): Made non-const.
  10380. * src/BtSuggestPieceMessage.h
  10381. (ID_t): Removed.
  10382. (ID): New variable.
  10383. (getId): Made non-const.
  10384. * src/BtPortMessage.h
  10385. (ID_t): Removed.
  10386. (ID): New variable.
  10387. (getId): Made non-const.
  10388. * src/AbstractBtMessage.h
  10389. (id): Removed.
  10390. (AbstractBtMessage): Removed id.
  10391. (getId): Removed.
  10392. * src/BtHaveMessage.h
  10393. (ID_t): Removed.
  10394. (ID): New variable.
  10395. (getId): Made non-const.
  10396. * src/BtAllowedFastMessage.h
  10397. (ID_t): Removed.
  10398. (ID): New variable.
  10399. (getId): Made non-const.
  10400. * src/BtCancelMessage.h
  10401. (ID_t): Removed.
  10402. (ID): New variable.
  10403. (getId): Made non-const.
  10404. * src/BtNotInterestedMessage.h
  10405. (ID_t): Removed.
  10406. (ID): New variable.
  10407. (getId): Made non-const.
  10408. * src/BtChokeMessage.h
  10409. (ID_t): Removed.
  10410. (ID): New variable.
  10411. (getId): Made non-const.
  10412. * src/BtRejectMessage.h
  10413. (ID_t): Removed.
  10414. (ID): New variable.
  10415. (getId): Made non-const.
  10416. * src/BtBitfieldMessage.h
  10417. (ID_t): Removed.
  10418. (ID): New variable.
  10419. (getId): Made non-const.
  10420. * src/BtUnchokeMessage.h
  10421. (ID_t): Removed.
  10422. (ID): New variable.
  10423. (getId): Made non-const.
  10424. * src/BtRequestMessage.h
  10425. (ID_t): Removed.
  10426. (ID): New variable.
  10427. (getId): Made non-const.
  10428. * src/BtHaveMessage.h
  10429. (ID_t): Removed.
  10430. (ID): New variable.
  10431. (getId): Made non-const.
  10432. To add --force-truncate command-line option and a check whether
  10433. the file already exists:
  10434. * src/DirectDiskAdaptor.h
  10435. (getFilePath): Made virtual public.
  10436. * src/MultiDiskAdaptor.h
  10437. (File.h): New include.
  10438. (DiskWriterEntry::fileEntry): Made private.
  10439. (DiskWriterEntry::fileExists): New function.
  10440. (DiskWriterEntry::getFileEntry): New function.
  10441. (fileExists): New function.
  10442. (getFilePath): New function.
  10443. * src/TorrentRequestInfo.cc
  10444. (FatalException.h): New include.
  10445. (message.h): New include.
  10446. (RecoverableException.h): New include.
  10447. (execute): Added a check whether file is already exists or not.
  10448. * src/DiskAdaptor.h
  10449. (fileExists): New function.
  10450. (getFilePath): New function.
  10451. * src/main.cc
  10452. (showUsage): Added an explanation of --force-truncate command-line
  10453. option.
  10454. (main): Added --force-truncate command-line option.
  10455. * src/Exception.h
  10456. (setMsg): buf[256] -> buf[1024]
  10457. * src/CopyDiskWriter.h
  10458. (getFilePath): Made public virtual.
  10459. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10460. (fileExists): New function.
  10461. * src/DownloadEngineFactory.cc
  10462. (newTorrentConsoleEngine): Don't open file here.
  10463. * src/message.h
  10464. (EX_FILE_ALREADY_EXISTS): New definition.
  10465. * src/prefs.h
  10466. (PREF_FOECE_TRUNCATE): New definition.
  10467. * src/HttpResponseCommand.cc
  10468. (handleDefaultEncoding): Added a check whether the file already exists.
  10469. * src/SegmentMan.h
  10470. (fileExists): New function.
  10471. (shouldCancelDownloadForSafety): New function.
  10472. * src/FtpNegotiateCommand.cc
  10473. (recvSize): Added a check whether the file already exists.
  10474. * src/AbstractSingleDiskAdaptor.cc
  10475. (File.h): New include.
  10476. (fileExists): New function.
  10477. * src/AbstractSingleDiskAdaptor.h
  10478. (getFilePath): Removed.
  10479. (fileExists): New function.
  10480. * src/SegmentMan.cc
  10481. (fileExists): New function.
  10482. (shouldCancelDownloadForSafety): New function.
  10483. To fix regression bug in torrent downloading:
  10484. * src/DefaultBtRequestFactory.cc
  10485. (doChokedAction): New function.
  10486. * src/DefaultBtRequestFactory.h
  10487. (doChokedAction): New function.
  10488. * src/DefaultBtMessageDispatcher.cc
  10489. (doChokedAction): Do not delete request if its target is in allowed
  10490. fast set.
  10491. * src/DefaultBtInteractive.cc
  10492. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10493. (sendKeepAlive): Send keep alive message even if the outgoing message
  10494. queue is not empty.
  10495. (decideInterest): Simplified the code.
  10496. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10497. it is already called when BtChokeMessage is received from a peer.
  10498. * src/BtRequestFactory.h
  10499. (doChokedAction): New function.
  10500. To clean up code:
  10501. * src/PeerInteractionCommand.h
  10502. (executeInternal): Added virtual keyword explicitly.
  10503. (prepareForRetry): Added virtual keyword explicitly.
  10504. (prepareForNextPeer): Added virtual keyword explicitly.
  10505. (onAbort): Added virtual keyword explicitly.
  10506. * src/RequestSlot.cc
  10507. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10508. * src/BtPieceMessage.cc
  10509. (doReceivedAction): Added a debug log of piece's bitfield.
  10510. * src/Piece.h
  10511. (getBitfieldLength): New function.
  10512. * src/ByteArrayDiskWriter.cc
  10513. (clear): Added buf = 0 to avoid double free corruption.
  10514. * src/FileAllocator.cc
  10515. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10516. Added cp.reset().
  10517. * src/BitfieldMan.h
  10518. (operator=): Rewritten.
  10519. * src/BitfieldMan.cc
  10520. (BitfieldMan): Initialized bitfield, useBitfield.
  10521. * src/PeerConnection.cc
  10522. (receiveMessage): Added a call to socket->readable() after getting
  10523. message length to avoid possible EOF.
  10524. * src/Util.cc
  10525. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10526. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. To add an ability to pre-allocate file space:
  10528. * src/DirectDiskAdaptor.h: Rewritten.
  10529. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10530. * src/MultiDiskAdaptor.h: Rewritten.
  10531. * src/DefaultPieceStorage.cc
  10532. (MultiDiskWriter.h): Removed include.
  10533. (PreAllocationDiskWriter.h): Removed include.
  10534. (FileAllocationMonitor.h): New include.
  10535. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10536. (initStorage): Rewritten.
  10537. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10538. * src/FileAllocator.h: New class.
  10539. * src/FileAllocator.cc: New class.
  10540. * src/FileAllocationMonitor.h: New class.
  10541. * src/FileAllocationMonitor.cc: New class.
  10542. * src/ConsoleFileAllocationMonitor.h: New class.
  10543. * src/ConsoleFileAllocationMonitor.cc: New class.
  10544. * src/AbstractSingleDiskAdaptor.h: New class.
  10545. * src/AbstractSingleDiskAdaptor.cc: New class.
  10546. * src/DiskAdaptor.h
  10547. (Directory.h): Removed include.
  10548. (DiskWriter.h): Removed include.
  10549. (FileEntry.h): Removed include.
  10550. (diskWriter): Removed.
  10551. (DiskAdaptor): Removed diskWriter.
  10552. (openFile): Made pure virtual.
  10553. (closeFile): Made pure virtual.
  10554. (openExistingFile): Made pure virtual.
  10555. (initAndOpenFile): Made pure virtual.
  10556. (writeData): Made pure virtual.
  10557. (readData): Made pure virtual.
  10558. (sha1Sum): Made pure virtual.
  10559. (getStoreDir): Returns const reference of storeDir.
  10560. (DiskAdaptorHandle): New type definition.
  10561. * src/main.cc
  10562. (ConsoleFileAllocationMonitor.h): New include.
  10563. (showUsage): Added default value description of -s option.
  10564. Added the description of --file-allocation option.
  10565. (main): Set default value of --file-allocation option to 'none'.
  10566. Added --file-allocation command-line option.
  10567. Setup FileAllocationMonitorFactory.
  10568. * src/FtpInitiateConnectionCommand.cc
  10569. (executeInternal): Removed diskWriter related processing, which was
  10570. moved to FtpNegotiationCommand.cc.
  10571. * src/DirectDiskAdaptor.cc
  10572. (getFilePath): Made non-const.
  10573. * src/CopyDiskAdaptor.h
  10574. (DiskAdaptor.h): Removed include.
  10575. (DiskWriter.h): Removed include.
  10576. (AbstractSingleDiskAdaptor.h): New include.
  10577. (getFilePath): Made non-const. Added virtual keyword.
  10578. (CopyDiskAdaptor): Removed diskWriter.
  10579. (getTempFile): Returns const reference.
  10580. (CopyDiskAdaptorHandle): New type definition.
  10581. * src/ByteArrayDiskWriter.cc
  10582. (clear): Simplified.
  10583. (initAndOpenFile): Rewritten.
  10584. (openFile): Call initAndOpenFile()
  10585. * src/MultiDiskAdaptor.cc: Rewritten.
  10586. * src/DownloadEngineFactory.cc
  10587. (FileAllocator.h): New include.
  10588. (FileAllocationMonitor.h): New include.
  10589. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10590. create DefaultDiskWriter with file allocator.
  10591. * src/DiskWriter.h
  10592. (initAndOpenFile): Added totalLength argument.
  10593. (openFile): Added totalLength argument.
  10594. * src/prefs.h
  10595. (PREF_FILE_ALLOCATION): New definition.
  10596. (V_PREALLOC): New definition.
  10597. (V_NONE): New definition.
  10598. * src/HttpResponseCommand.cc
  10599. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10600. size.
  10601. * src/FtpNegotiateCommand.cc
  10602. (Util.h): New include.
  10603. (recvSize): Open file here.
  10604. * src/Util.h
  10605. (ullitos): New function.
  10606. * src/CopyDiskWriter.h
  10607. (getFilePath): Made non-const.
  10608. * src/DefaultDiskWriter.h
  10609. (Option.h): New include.
  10610. (totalLength): Removed.
  10611. (DefaultDiskWriter): Removed totalLength.
  10612. (initAndOpenFile): Added totalLength argument.
  10613. (DefaultDiskWriterHandle): New type definition.
  10614. (createNewDiskWriter): New function.
  10615. * src/Util.cc
  10616. (ullitos): New function.
  10617. * src/DefaultDiskWriter.cc
  10618. (message.h): New include.
  10619. (FileAllocator.h): New include.
  10620. (prefs.h): New include.
  10621. (Util.h): New include.
  10622. (DefaultDiskWriter): Removed totalLength.
  10623. (initAndOpenFile): Added file allocation.
  10624. (createNewDiskWriter): New function. Just for temporary solution.
  10625. It will be rewritten later.
  10626. * src/DiskAdaptor.cc
  10627. (DiskAdaptor): Removed diskWriter.
  10628. * src/AbstractDiskWriter.cc
  10629. (LogFactory.h): New include.
  10630. (AbstractDiskWriter): Added fileAllocator, logger.
  10631. (openFile): Added totalLength argument.
  10632. * src/AbstractDiskWriter.h
  10633. (FileAllocator.h): New include.
  10634. (Logger.h): New include.
  10635. (fileAllocator): New variable.
  10636. (logger): New variable.
  10637. (openFile): Added totalLength argument. Added virtual keyword
  10638. explicitly.
  10639. (openExistingFile): Added totalLength argument. Added virtual keyword
  10640. explicitly.
  10641. (closeFile): Added virtual keyword explicitly.
  10642. (sha1Sum): Added virtual keyword explicitly.
  10643. (writeData): Added virtual keyword explicitly.
  10644. (readData): Added virtual keyword explicitly.
  10645. (setFileAllocator): New function.
  10646. * src/DefaultPieceStorage.h
  10647. (FileAllocator.h): New include.
  10648. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10649. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10650. * src/FileProgressMonitor.h: New class.
  10651. To compile aria2 on PC-BSD:
  10652. * src/DefaultBtContext.cc
  10653. (libgen.h): New include.
  10654. To fix memory leak:
  10655. * src/Exception.h
  10656. (~Exception): Delete cause. Fixed memory leak.
  10657. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Rewritten a portion of bittorrent implementation:
  10659. * src/BtMessageValidator.h: New class.
  10660. * src/BtBitfieldMessageValidator.h: New class.
  10661. * src/BtHandshakeMessageValidator.h: New class.
  10662. * src/BtRequestMessageValidator.h: New class.
  10663. * src/BtSuggestPieceMessageValidator.h: New class.
  10664. * src/BtAllowedFastMessageValidator.h: New class.
  10665. * src/BtRejectMessageValidator.h: New class.
  10666. * src/BtCancelMessageValidator.h: New class.
  10667. * src/BtPieceMessageValidator.h: New class.
  10668. * src/BtHaveMessageValidator.h: New class.
  10669. * src/BtEventListener.h: New class.
  10670. * src/AbstractBtEventListener.h: New class.
  10671. * src/BtEvent.h: New class.
  10672. * src/BtChokingEvent.h: New class.
  10673. * src/BtChokedEvent.h: New class.
  10674. * src/BtCancelSendingPieceEvent.h: New class.
  10675. * src/BtAbortOutstandingRequestEvent.h: New class.
  10676. * src/Randomizer.h: New class.
  10677. * src/SimpleRandomizer.h: New class.
  10678. * src/BtMessage.h: New class.
  10679. * src/AbstractBtMessage.h: New class.
  10680. * src/SimpleBtMessage.h: New class.
  10681. * src/BtHaveMessage.h: New class.
  10682. * src/BtInterestedMessage.h: New class.
  10683. * src/BtAllowedFastMessage.h: New class.
  10684. * src/BtUnchokeMessage.h: New class.
  10685. * src/BtCancelMessage.h: New class.
  10686. * src/BtNotInterestedMessage.h: New class.
  10687. * src/BtChokeMessage.h: New class.
  10688. * src/BtHaveNoneMessage.h: New class.
  10689. * src/BtHandshakeMessage.h: New class.
  10690. * src/BtSuggestPieceMessage.h: New class.
  10691. * src/BtHaveMessage.h: New class.
  10692. * src/BtPieceMessage.h: New class.
  10693. * src/BtHaveAllMessage.h: New class.
  10694. * src/BtKeepAliveMessage.h: New class.
  10695. * src/BtPortMessage.h: New class.
  10696. * src/BtRejectMessage.h: New class.
  10697. * src/BtBitfieldMessage.h: New class.
  10698. * src/BtRequestMessage.h: New class.
  10699. * src/DefaultBtRequestFactory.h: New class.
  10700. * src/DefaultBtMessageReceiver.h: New class.
  10701. * src/BtInteractive.h: New class.
  10702. * src/BtMessageDispatcher.h: New class.
  10703. * src/DefaultBtMessageDispatcher.h: New class.
  10704. * src/DefaultBtInteractive.h: New class.
  10705. * src/BitfieldManFactory.h: New class.
  10706. * src/HandleRegistry.h: New class.
  10707. * src/BtMessageFactory.h: New class.
  10708. * src/BtMessageReceiver.h: New class.
  10709. * src/DefaultBtMessageFactory.h: New class.
  10710. * src/PeerObject.h: New class.
  10711. * src/BtRequestFactory.h: New class.
  10712. * src/SuggestPieceMessage.h: Removed.
  10713. * src/PortMessage.h: Removed.
  10714. * src/SuggestPieceMessage.h: Removed.
  10715. * src/KeepAliveMessage.h: Removed.
  10716. * src/HandshakeMessage.h: Removed.
  10717. * src/PeerInteraction.h: Removed.
  10718. * src/UnchokeMessage.h: Removed.
  10719. * src/PieceMessage.h: Removed.
  10720. * src/RequestMessage.h: Removed.
  10721. * src/InterestedMessage.h: Removed.
  10722. * src/HaveMessage.h: Removed.
  10723. * src/CancelMessage.h: Removed.
  10724. * src/RejectMessage.h: Removed.
  10725. * src/AllowedFastMessage.h: Removed.
  10726. * src/HaveNoneMessage.h: Removed.
  10727. * src/SimplePeerMessage.h: Removed.
  10728. * src/HaveAllMessage.h: Removed.
  10729. * src/BitfieldMessage.h: Removed.
  10730. * src/PeerMessageFactory.h: Removed.
  10731. * src/NotInterestedMessage.h: Removed.
  10732. * src/ChokeMessage.h: Removed.
  10733. * src/PeerMessage.h: Removed.
  10734. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. To know root cause of exception:
  10736. * src/Exception.h
  10737. (cause): New variable.
  10738. (Exception): Added a parameter.
  10739. (getMsg): Return const reference to msg.
  10740. (getCause): New function.
  10741. * src/DlRetryEx.h
  10742. (DlRetryEx): Added a parameter 'cause'.
  10743. Added an overloaded constructor.
  10744. (DlAbortEx): Added a parameter 'cause'.
  10745. Added an overloaded constructor.
  10746. * src/SimpleLogger.cc
  10747. (writeLog): Log nested exception messages recursively.
  10748. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. * src/DefaultBtProgressInfoFile.cc
  10750. (load): Fixed memory leak when the infohash doesn't match.
  10751. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. * src/DefaultPeerStorage.cc
  10753. (calculateStat): Simplified the code by combining 2 loops into 1.
  10754. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10756. for BitTorrent download:
  10757. * src/PeerAbstractCommand.cc
  10758. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10759. * src/main.cc:
  10760. (timeoutSpecified): Removed.
  10761. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10762. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10763. * src/TorrentRequestInfo.cc
  10764. (timeoutSpecified): Removed.
  10765. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10766. timeout value.
  10767. * src/prefs.h
  10768. (PREF_BT_TIMEOUT): New definition.
  10769. Delete unused variables:
  10770. * src/TorrentRequestInfo.cc
  10771. (requestInfo): Removed.
  10772. Move setSignalHander to Util::setGlobalSignalHandler:
  10773. * src/TorrentRequestInfo.cc:
  10774. setSignalHander -> Util::setGlobalSignalHandler
  10775. * src/main.cc
  10776. (setSignalHander): Removed.
  10777. (main): setSignalHander -> Util::setGlobalSignalHandler
  10778. * src/Util.h
  10779. (setGlobalSignalHandler): New function.
  10780. * src/Util.cc
  10781. (setGlobalSignalHandler): New function.
  10782. * src/UrlRequestInfo.cc:
  10783. setSignalHander -> Util::setGlobalSignalHandler
  10784. Reset peer status in order to exit gracefully:
  10785. * src/PeerAbstractCommand.cc
  10786. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10787. To fix the bug that causes the number of bytes uploaded is not saved
  10788. to .aria2 file:
  10789. * src/DefaultPeerStorage.h
  10790. (removedPeerSessionDownloadLength): New variable.
  10791. (removedPeerSessionUploadLength): New variable.
  10792. * src/DefaultPeerStorage.cc
  10793. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10794. removedPeerSessionUploadLength(0).
  10795. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10796. through all peers, and then add removedPeerSessionDownloadLength(
  10797. removedPeerSessionUploadLength) to it.
  10798. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10799. (to) the peer to removedPeerSessionDownloadLength
  10800. (removedPeerSessionUploadLength).
  10801. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. To add Metalink location option:
  10803. * src/MetalinkRequestInfo.cc
  10804. (execute): Call MetalinkEntry::setLocationPreference()
  10805. * src/main.cc
  10806. (showUsage): Added the help message for --metalink-location option.
  10807. (main): Added --metalink-location option.
  10808. * src/prefs.h
  10809. (PREF_METALINK_LOCATION): New definition.
  10810. * src/MetalinkEntry.cc
  10811. (AddLocationPreference): New function object.
  10812. (setLocationPreference): New function.
  10813. * src/Xml2MetalinkProcessor.cc
  10814. (getResource): Set location attribute to MetalinkResource
  10815. To show URLs to download
  10816. * src/UrlRequestInfo.h
  10817. (printUrls): New function.
  10818. To add multiple <file> Metalink support:
  10819. * src/MetalinkEntry.h
  10820. (MetalinkResources): Removed.
  10821. (setLocationPreference): New function.
  10822. (MetalinkEntryHandle): New type definition.
  10823. (MetalinkEntries): New type definition.
  10824. * src/Xml2MetalinkProcessor.h
  10825. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10826. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10827. (parseFile): Metalinker* -> MetalinkerHandle
  10828. * src/UrlRequestInfo.h
  10829. (execute): RequestInfo* -> RequestInfos
  10830. * src/MetalinkRequestInfo.cc
  10831. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10832. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10833. (execute): RequestInfo* -> RequestInfos
  10834. Added multiple <file> support. Print filename when it is queued.
  10835. * src/MetalinkRequestInfo.h
  10836. (execute): RequestInfo* -> RequestInfos
  10837. (getDownloadEngine): Removed.
  10838. * src/RequestInfo.h
  10839. (RequestInfoHandle): New type definition.
  10840. (RequestInfos): New type definition.
  10841. (execute): RequestInfo* -> RequestInfos
  10842. (getDownloadEngine): Removed.
  10843. * src/MetalinkResource.h
  10844. (MetalinkResourceHandle): New type definition.
  10845. (MetalinkResources): New type definition.
  10846. * src/MetalinkEntry.cc
  10847. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10848. because the element is now of type MetalinkResourceHandle.
  10849. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10850. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10851. (dropUnsupportedResource): Removed the deletion of the elements of
  10852. resources because the element is now of type MetalinkResourceHandle.
  10853. * src/Xml2MetalinkProcessor.cc
  10854. (parseFile): Metalinker* -> MetalinkerHandle
  10855. MetalinkEntry* -> MetalinkEntryHandle
  10856. Removed try-catch block.
  10857. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10858. MetalinkResource* -> MetalinkResourceHandle
  10859. Removed try-catch block.
  10860. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10861. Free result by using xmlXPathFreeObject()
  10862. * src/Metalinker.cc
  10863. (~Metalinker): Removed the deletion of entries.
  10864. MetalinkEntry* -> MetalinkEntryHandle
  10865. (queryEntry): Add multiple <file> Metalink support.
  10866. * src/Metalinker.h
  10867. (MetalinkEntries): Removed.
  10868. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10869. * src/MetalinkProcessor.h
  10870. (parseFile): Metalinker* -> MetalinkerHandle
  10871. Bug fixes:
  10872. * src/PeerChokeCommand.cc
  10873. (execute): cat01->cat02
  10874. * src/DefaultPieceStorage.cc
  10875. (DefaultPieceStorage): Added diskAdaptor(0)
  10876. * src/TrackerWatcherComand.cc:
  10877. (execute): Use btAnnounce->noMoreAnnounce()
  10878. to determin whether the function returns true or not.
  10879. * src/TrackerUpdateCommand.cc:
  10880. (execute): Use btAnnounce->noMoreAnnounce()
  10881. to determin whether the function returns true or not.
  10882. * src/FtpConnection.cc
  10883. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10884. This is the fix of the busy loop bug.
  10885. * src/DownloadCommand.cc
  10886. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10887. cached PeerStat.
  10888. The value of "name" entry in torrent file is now set by
  10889. *DiskAdaptor::setTopDir(...) methods.
  10890. * src/MultiDiskAdaptor.h
  10891. (topDir): New variable.
  10892. (setTopDir): New function.
  10893. (getTopDir): New function.
  10894. * src/MultiDiskAdaptor.cc
  10895. (getFilePath): Concat storDir, "/" and topDir.
  10896. (mkdir): Use getFilePath() to get the directory path for output.
  10897. * src/DefaultPieceStorage.cc
  10898. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10899. CopyDiskAdaptor.
  10900. * src/CopyDiskAdaptor.h
  10901. (topDir): New variable.
  10902. (setTopDir): New function.
  10903. (getTopDir): New function.
  10904. * src/CopyDiskAdaptor.cc
  10905. (fixFilename): Updated.
  10906. Misc
  10907. * src/UrlRequestInfo.h
  10908. (e): Removed.
  10909. (UrlRequestInfo): Removed e.
  10910. (getDownloadEngine): Removed.
  10911. * src/UrlRequestInfo.cc
  10912. (handler): Rewritten.
  10913. (printUrls): New function.
  10914. (execute): Call printUrls().
  10915. * src/HandshakeMessage.cc
  10916. (check): peerinteraction->getBtContext() -> btContext
  10917. * src/PeerInteraction.h
  10918. (getBtContext): Removed.
  10919. * src/TorrentRequestInfo.h
  10920. (execute): RequestInfo* -> RequestInfos
  10921. (getDownloadEngine): Removed.
  10922. * src/TorrentRequestInfo.cc
  10923. (haltRequested): Removed.
  10924. (btHaltRequested): New variable.
  10925. (torrentHandler): haltRequested -> btHaltRequested
  10926. (execute): RequestInfo* -> RequestInfos
  10927. * src/TorrentConsoleDownloadEngine.cc
  10928. (afterEachIteration): haltRequested -> btHaltRequested.
  10929. * src/ConsoleDownloadEngine.h
  10930. (initStatistics): Added virtual.
  10931. (calculateStatistics): Added virtual.
  10932. (onEndOfRun): Added virtual.
  10933. (afterEachIteration): Added virtual.
  10934. * src/ConsoleDownloadEngine.cc
  10935. (haltRequested): New variable.
  10936. (afterEachIteration): New function.
  10937. * src/main.cc
  10938. (requestInfo): Removed.
  10939. * src/SegmentMan.cc
  10940. (findSlowerSegmentEntry): Refactored.
  10941. * Release 0.9.0
  10942. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10944. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10945. * src/TorrentMan.h: Removed.
  10946. * src/TorrentMan.cc: Removed.
  10947. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10948. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10949. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10950. * src/PeerAbstractCommand.cc: Use btRuntime.
  10951. * src/BtContextAwareCommand.h: New class.
  10952. * src/FileEntry.h: Added accessor methods for following variables.
  10953. (path): Made private.
  10954. (length): Made private.
  10955. (offset): Made private.
  10956. (extracted): Made private.
  10957. (requested): Made private.
  10958. (FileEntries): New definition.
  10959. (FileEntryHandle): New definition.
  10960. * src/FileEntry.cc: New file.
  10961. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10962. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10963. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10964. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10965. * src/PieceStorage.h: New file.
  10966. * src/PeerInteractionCommand.h: Use btContext.
  10967. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10968. btRuntime.
  10969. * src/DefaultBtProgressInfoFile.h: New file.
  10970. * src/DefaultBtProgressInfoFile.cc: New file.
  10971. * src/File.cc
  10972. (Util.h): New include.
  10973. (mkdirs): New function.
  10974. * src/MultiDiskAdaptor.h
  10975. (mkdir): New function.
  10976. * src/PeerListProcessor.h
  10977. (Peers): Removed.
  10978. * src/PeerInteraction.h
  10979. (torrentMan): Removed.
  10980. (btContext): New variable.
  10981. (peerStorage): New variable.
  10982. (pieceStorage): New variable.
  10983. (btAnnounce): New variable.
  10984. (getTorrentMan): Removed.
  10985. (getBtContext): New function.
  10986. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10987. btAnnounce.
  10988. * src/HandshakeMessage.h
  10989. (TorrentMan.h): Removed.
  10990. * src/HandshakeMessage.cc: Use btContext.
  10991. * src/DefaultBtAnnounce.cc: New file.
  10992. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10993. * src/DefaultPieceStorage.cc: New file.
  10994. * src/DefaultBtContext.h: New file.
  10995. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10996. Use the accessor methods of FileEntry.
  10997. * src/CookieBox.cc: Updated to use Util::slice().
  10998. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10999. * src/common.h (SharedHandle.h): New include.
  11000. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11001. pieceStorage.
  11002. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11003. * src/DiskAdaptor.h
  11004. (topDir): Removed.
  11005. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11006. (setTopDir): Removed.
  11007. (getTopDir): Removed.
  11008. * src/BtContext.h: New file.
  11009. * src/DefaultPeerStorage.h: New file.
  11010. * src/PieceMessage.h (TorrentMan.h): Removed.
  11011. * src/RequestMessage.h (TorrentMan.h): Removed.
  11012. * src/TorrentDownloadEngine.h
  11013. (uploadLength): New variable.
  11014. (btContext): New variable.
  11015. (btRuntime): New variable.
  11016. (pieceStorage): New variable.
  11017. (peerStorage): New variable.
  11018. (btAnnounce): New variable.
  11019. (btProgressInfoFile): New variable.
  11020. (torrentMan): Removed.
  11021. (setBtContext): New function.
  11022. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11023. peerStorage, btAnnounce, btProgressInfoFile.
  11024. * src/Piece.h
  11025. (toString): New function.
  11026. (Pieces): New type definition.
  11027. * src/Peer.h
  11028. (active): New variable.
  11029. (Peer): Added active.
  11030. (activate): Set active to true.
  11031. (deactivate): Set active to false.
  11032. (isActive): New function.
  11033. (Peers): New type definition.
  11034. * src/DirectDiskAdaptor.cc
  11035. (getFilePath): Use the accessor methods of FileEntry.
  11036. * src/TorrentConsoleDownloadEngine.h
  11037. (afterEachIteration): New function.
  11038. * src/TorrentConsoleDownloadEngine.cc
  11039. (haltRequested): New variable.
  11040. (sendStatistics): Use pieceStorage, btRuntime.
  11041. (afterEachIteration): New function.
  11042. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11043. * src/Directry.h
  11044. (Directory): New function.
  11045. (DirectoryHandle): New type definition.
  11046. * src/BtProgressInfoFile.h: New file.
  11047. * src/RequestMessage.cc: Use pieceStorage.
  11048. * src/BtRuntime.h: New file.
  11049. * src/DefaultBtContext.cc: New file.
  11050. * src/BitfieldMan.h
  11051. (getCompletedLength): New function(private).
  11052. (getCompletedLength): New function.
  11053. (getFilteredCompletedLength): New function.
  11054. * src/BitfieldMan.h
  11055. (getCompletedLength): New function(private).
  11056. (getCompletedLength): New function.
  11057. (getFilteredCompletedLength): New function.
  11058. * src/MultiDiskAdaptor.cc
  11059. (mkdir): New function.
  11060. (openFile): Call mkdir().
  11061. (initAndOpenFile): Call mkdir().
  11062. * src/CancelMessage.h
  11063. (TorrentMan.h): Removed.
  11064. * src/RejectMessage.h
  11065. (TorrentMan.h): Removed.
  11066. * src/DownloadEngineFactory.cc
  11067. (DefaultPieceStorage.h): New include.
  11068. (DefaultPeerStorage.h): New include.
  11069. (DefaultBtAnnounce.h): New include.
  11070. (DefaultBtProgressInfoFile.h): New include.
  11071. (newTorrentConsoleEngine): Rewritten.
  11072. * src/ShareRatioSeedCriteria.h
  11073. (torrentMan): Removed.
  11074. (btContext): New variable.
  11075. (peerStorage): New variable.
  11076. (btRuntime): New variable.
  11077. (evaluate): Use btContext, btRuntime, peerStorage.
  11078. * src/AnnounceTier.h: New file.
  11079. * src/BtAnnounce.h: New file.
  11080. * src/BtRegistry.h: New file.
  11081. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11082. * src/PeerConnection.h (TorrentMan.h): Removed.
  11083. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11084. * src/Util.h
  11085. (slice): Added an argument.
  11086. * src/Util.cc
  11087. (slice): Added an argument to control whether trim is made or not.
  11088. * src/PeerStorage.h: New file.
  11089. * src/BtRegistry.cc: New file.
  11090. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11091. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11092. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11093. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11094. * src/TorrentRequestInfo.h
  11095. (e): Removed.
  11096. (showFileEntry): Added an argument.
  11097. (getDownloadEngine): Return 0.
  11098. * src/DefaultBtAnnounce.h: New file.
  11099. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11100. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11101. * src/PeerMessageFactory.h
  11102. (btContext): New variable.
  11103. (pieceStorage): New variable.
  11104. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11105. btAnnounce.
  11106. * src/DiskAdaptor.cc
  11107. (DiskAdaptor): Removed topDir.
  11108. (~DiskAdaptor): Removed topDir.
  11109. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11110. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11111. * src/File.h (mkdirs): New function.
  11112. * src/DefaultPeerStorage): New file.
  11113. * src/DownloadEngineFactory.h
  11114. (newTorrentConsoleEngine): Use btContext.
  11115. * src/BtContextAwareCommand.cc: New file.
  11116. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11117. * src/PeerMessage.h
  11118. (btContext): New variable.
  11119. (peerStorage): New variable.
  11120. (pieceStorage): New variable.
  11121. (setBtContext): New function.
  11122. * src/Directry.cc
  11123. (Directory): New function.
  11124. (createDir): Do nothing if name.size() == 0.
  11125. * src/AnnounceList.h
  11126. (AnnounceTier): Removed.
  11127. (AnnounceTiers): Removed.
  11128. * src/DefaultPieceStorage.h: New file.
  11129. * src/Piece.cc (toString): New function.
  11130. To fix typo:
  11131. * src/main.cc (showVersion): Fixed typo.
  11132. To fix compile warning:
  11133. * src/DelegatingPeerListProcessor.cc
  11134. (canHandle): Added "return false".
  11135. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11137. make the process of announce request testable.
  11138. * src/TrackerWatcherCommand.h
  11139. (TimeA2.h): Removed.
  11140. (interval): Removed.
  11141. (checkPoint): Removed.
  11142. (createRequestCommand): Added an argument 'url'.
  11143. (TrackerWatherCommand): Removed interval.
  11144. (createCommand): New function.
  11145. * src/DownloadEngineFactory.cc
  11146. (newTorrentConsoleEngine): Updated according to the changes in
  11147. TrackerWatherCommand.
  11148. * src/TorrentMan.cc
  11149. (DelegatingPeerListProcessor.h): New includes.
  11150. (TorrentMan): Added the initialization of announceInterval.
  11151. (isStoppedAnnounceReady): New function.
  11152. (isCompletedAnnounceReady): New function.
  11153. (isDefaultAnnounceReady): New function.
  11154. (isAnnounceReady): New function.
  11155. (getAnnounceUrl): New function.
  11156. (announceStart): New function.
  11157. (announceFailure): New function.
  11158. (announceSuccess): New function.
  11159. (isAllAnnounceFailed): New function.
  11160. (resetAnnounce): New function.
  11161. (processAnnounceResponse): New function.
  11162. (needMorePeerConnection): New function.
  11163. (noMoreAnnounce): New function.
  11164. * src/TrackerUpdateCommand.h
  11165. (getTrackerResponse): int->size_t
  11166. * src/TorrentMan.h
  11167. (isStoppedAnnounceReady): New function.
  11168. (isCompletedAnnounceReady): New function.
  11169. (isDefaultAnnounceReady): New function.
  11170. (announceInterval): New variable.
  11171. (isAnnounceReady): New function.
  11172. (getAnnounceUrl): New function.
  11173. (announceStart): New function.
  11174. (announceFailure): New function.
  11175. (announceSuccess): New function.
  11176. (isAllAnnounceFailed): New function.
  11177. (resetAnnounce): New function.
  11178. (processAnnounceResponse): New function.
  11179. (needMorePeerConnection): New function.
  11180. (noMoreAnnounce): New function.
  11181. * src/TrackerWatcherCommand.cc
  11182. (TrackerWatherCommand): Removed interval and checkPoint.
  11183. (execute): Rewritten.
  11184. (createCommand): New function.
  11185. (createRequestCommand): Rewritten.
  11186. * src/TrackerUpdateCommand.cc
  11187. (MetaFileUtil.h): Removed.
  11188. (DelegatingPeerListProcessor.h): Removed.
  11189. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11190. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. Request -> RequestHandle:
  11192. * src/HttpResponseCommand.h: Request->RequestHandle
  11193. * src/AbstractCommand.cc: Request->RequestHandle
  11194. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11195. * src/HttpRequestCommand.cc: Request->RequestHandle
  11196. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11197. * src/AbstractCommand.h: Request->RequestHandle
  11198. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11199. * src/HttpResponseCommand.cc: Request->RequestHandle
  11200. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11201. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11202. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11203. * src/HttpConnection.h: Request->RequestHandle
  11204. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11205. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11206. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11207. * src/DownloadCommand.h: Request->RequestHandle
  11208. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11209. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11210. * src/HttpRequestCommand.h: Request->RequestHandle
  11211. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11212. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11213. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11214. * src/HttpDownloadCommand.h: Request->RequestHandle
  11215. * src/FtpConnection.cc: Request->RequestHandle
  11216. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11217. * src/UrlRequestInfo.cc: Request->RequestHandle
  11218. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11219. * src/HttpConnection.h: Request->RequestHandle
  11220. * src/DownloadCommand.cc: Request->RequestHandle
  11221. * src/FtpConnection.h: Request->RequestHandle
  11222. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11223. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11224. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11225. * src/Request.h
  11226. (SharedHandle.h): New include.
  11227. (RequestHandle): New type definition.
  11228. (Requests): Redefined.
  11229. To add MULTITRACKER support:
  11230. * src/TrackerWatcherCommand.h
  11231. (createRequestCommand): New function.
  11232. * src/DownloadEngineFactory.cc
  11233. (newTorrentConsoleEngine): Removed req.
  11234. * src/prefs.h
  11235. (PREF_TRACKER_MAX_TRIES): New definition.
  11236. * src/TorrentMan.cc
  11237. (TorrentMan): Removed req. Added trackerNumTry.
  11238. (~TorrentMan): Removed req.
  11239. (setupInternal1): Added announceList.
  11240. * src/TorrentRequestInfo.cc
  11241. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11242. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11243. * src/main.cc
  11244. (main): Added PREF_TRACKER_MAX_TRIES.
  11245. * src/TorrentMan.h
  11246. (Request.h): Removed.
  11247. (AnnounceList.h): New include.
  11248. (trackerNumTry): New variable.
  11249. (req): Removed.
  11250. (announceList): New variable.
  11251. * src/TrackerWatcherCommand.cc
  11252. (execute): Rewritten.
  11253. (createRequestCommand): New function.
  11254. * src/TrackerUpdateCommand.cc
  11255. (execute): Updated with the use of AnnounceList.
  11256. * src/AnnounceList.cc: New class.
  11257. * src/AnnounceList.h: New class.
  11258. To fix typo:
  11259. * src/prefs.h
  11260. (PREF_MAX_TRIES): max_try->max_tries
  11261. To not to decode "+" as space in URL decode:
  11262. * src/Util.cc
  11263. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11264. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. To add timeout to async name resolution:
  11266. * src/AbstractCommand.h
  11267. (nameResolveFinished): New function. This is not elegant way. It needs
  11268. to be more refined.
  11269. (nameResolverCheck): New variable.
  11270. * src/AbstractCommand.cc
  11271. (AbstractCommand): Added nameResolverCheck.
  11272. (execute): Added the check whether the name resolution has finished.
  11273. (setNameResolverCheck): Set nameResolverCheck to true.
  11274. (disableNameResolverCheck): Set nameResolverCheck to false.
  11275. (nameResolverFinished): New function.
  11276. * src/FtpInitiateConnectionCommand.h
  11277. (nameResolverFinished): New function.
  11278. * src/FtpInitiateConnectionCommand.cc
  11279. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11280. * src/HttpInitiateConnectionCommand.h
  11281. (nameResolverFinished): New function.
  11282. * src/HttpInitiateConnectionCommand.cc
  11283. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11284. * src/prefs.h
  11285. (PREF_DNS_TIMEOUT): New definition.
  11286. * src/main.cc
  11287. (main): Added PREF_DNS_TIMEOUT.
  11288. To add the support for a non-compact response from a tracker:
  11289. * src/PeerListProcessor.h: New class.
  11290. * src/DefaultPeerListProcessor.h: New class.
  11291. * src/DefaultPeerListProcessor.cc: New class.
  11292. * src/CompactPeerListProcessor.h: New class.
  11293. * src/CompactPeerListProcessor.cc: New class.
  11294. * src/DelegatingPeerListProcessor.h: New class.
  11295. * src/DelegatingPeerListProcessor.cc: New class.
  11296. * src/TorrentMan.cc
  11297. (addPeer): New function(overload).
  11298. (addPeer): Delete unused peers only when new peer is added.
  11299. * src/TorrentMan.h
  11300. (PeerListProcessor.h): Included.
  11301. (Peers): Removed.
  11302. (addPeer): New function(overload).
  11303. * src/TrackerUpdateCommand.cc
  11304. (netinet/in.h): Removed.
  11305. (DelegatingPeerListProcessor.h): Included.
  11306. (execute): Updated to use DelegatingPeerListProcessor.
  11307. To fix the memory leak in TorrentMan::peers:
  11308. * src/PeerAbstractCommand.cc
  11309. (onAbort): Added peer->resetStatus().
  11310. * src/Peer.h
  11311. (resetStatus): Made public.
  11312. To improve the precision of the speed calculation:
  11313. * src/SpeedCalc.h
  11314. (nextInterval): New variable.
  11315. * src/SpeedCalc.cc
  11316. (reset): Added nextInterval.
  11317. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11318. (changeSw): Set nextInterval to 15 seconds relative to the current
  11319. instant time.
  11320. * src/main.cc
  11321. (showVersion): Updated.
  11322. (showUsage): Updated.
  11323. * Release 0.8.1
  11324. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11325. * src/main.cc
  11326. (showUsage): Commented out --min-segment-size option.
  11327. (main): Commented out --min-segment-size option.
  11328. * Release 0.8.0
  11329. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. * src/*.{h,cc}:
  11331. Added an exception to the license which allows linking with OpenSSL.
  11332. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. * src/AbstractCommand.cc
  11334. (execute): Check whether the download has finished before checking
  11335. socket status.
  11336. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11337. Do not exit even if no segment is available.
  11338. * src/prefs.h
  11339. (PREF_STARTUP_IDLE_TIME): New definition.
  11340. * src/PeerInteractionCommand.cc
  11341. (executeInternal): Removed max speed limit. Because it performs bad.
  11342. (receiveMessages): Added max speed limit. This was better than above,
  11343. but still a little bit to be desired. Sometimes the download speed
  11344. became much faster than I specified.
  11345. * src/SpeedCalc.h
  11346. (start): New variable.
  11347. (accumulatedLength): New variable.
  11348. (getAvgSpeed): New function.
  11349. * src/SpeedCalc.cc
  11350. (reset): Added start, accumulatedLength.
  11351. (update): Added calculation of an average speed.
  11352. (getAvgSpeed): New function.
  11353. * src/DownloadCommand.h
  11354. (sw): Removed.
  11355. * src/main.cc
  11356. (main): Added PREF_STARTUP_IDLE_TIME.
  11357. * src/PeerStat.h
  11358. (STATUS): Added REQUEST_IDLE.
  11359. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11360. (getAvgDownloadSpeed): New function
  11361. (requestIdle): New function.
  11362. * src/SegmentMan.h
  11363. (SegmentEntryHandle): New type definition.
  11364. (SegmentEntries): Now holds SegmentEntryHandle.
  11365. (findSlowerSegmentEntry): New funtion.
  11366. * src/SegmentMan.cc
  11367. (save): Updated according to the changes in SegmentEntries.
  11368. (read): Updated according to the changes in SegmentEntries.
  11369. (FindSegmentEntryByIndex): Updated according to the changes in
  11370. SegmentEntries.
  11371. (FindSegmentEntryByCuid): Updated according to the changes in
  11372. SegmentEntries.
  11373. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11374. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11375. Renamed uitr as itr.
  11376. (findSlowerSegmentEntry): New function.
  11377. (getSegment): Updated according to the changes in SegmentEntries.
  11378. Added the feature that cancels the segment with slow server and fast
  11379. one takes it over.
  11380. (cancelSegment): Updated according to the changes in SegmentEntries.
  11381. (getDownloadLength): Updated according to the changes in
  11382. SegmentEntries.
  11383. (init): Assigned 0 to bitfield after deleting it.
  11384. * src/DownloadCommand.cc
  11385. (STARTUP_IDLE_TIME): Removed.
  11386. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11387. * src/PeerChokeCommand.cc
  11388. (optUnchokingPeer): Updated according to the changes in Peer.
  11389. (ResetDelta): Removed.
  11390. (UploadFaster): Updated according to the changes in Peer.
  11391. (DownloadFaster): Updated according to the changes in Peer.
  11392. (execute): I clarify the meaning of "upload" and "download" here.
  11393. "upload" means the transfer from localhost to remote host.
  11394. "download" means the transfer from remote host to localhost.
  11395. Based on this rule, I swapped orderByUploadRate and
  11396. orderByDownloadRate.
  11397. * src/PeerInteractionCommand.cc
  11398. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11399. (executeInternal): Removed the argument of
  11400. peerInteraction->sendMessages().
  11401. (receiveMessages): Rewritten download speed limit.
  11402. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11403. * src/HttpResponseCommand.cc
  11404. (handleDefaultEncoding): If file size is unknown in torrent request,
  11405. do not call segmentMan->initBitfield() here.
  11406. Disabled persistent connection feature in torrent request.
  11407. * src/UrlRequestInfo.h
  11408. (UrlRequestInfo): Removed const qualifier from option.
  11409. * src/TorrentMan.h
  11410. (TransferStat): New class.
  11411. (deltaDownloadLength): Removed.
  11412. (deltaUploadLength): Removed.
  11413. (addDeltaDownloadLength): Removed.
  11414. (getDeltaDownloadLength): Removed.
  11415. (resetDeltaDownloadLength): Removed.
  11416. (addDeltaUploadLength): Removed.
  11417. (getDeltaUploadLength): Removed.
  11418. (resetDeltaUploadLength): Removed.
  11419. (addActivePeer): Added peer->activate().
  11420. (deleteActivePeer): Added peer->deactivate().
  11421. (calculateStat): New function.
  11422. * src/TorrentMan.cc
  11423. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11424. (calculateStat): New function.
  11425. * src/PeerInteraction.h
  11426. (uploadLimit): Removed.
  11427. (option): New variable.
  11428. (setUploadLimit): Removed.
  11429. (getUploadSpeed): Removed.
  11430. (sendMessages): Removed the argument "currentUploadSpeed".
  11431. * src/PeerInteraction.cc
  11432. (prefs.h): Included.
  11433. (PeerInteraction): Removed uploadLimit. Added option.
  11434. (sendMessages): Rewritten upload speed limit.
  11435. (sendHandshake): Removed the argument from sendMessages().
  11436. (sendBitfield): Removed the argument from sendMessages().
  11437. * src/PeerAbstractCommand.cc
  11438. (execute): Commented out the portion of upload limit.
  11439. (onAbort): Removed peer->resetStatus().
  11440. * src/TorrentRequestInfo.cc
  11441. (timeoutSpecified): Declared extern.
  11442. (execute): Set timeout to 180 if timeout is not specified by.
  11443. command-line.
  11444. * src/PieceMessage.cc
  11445. (receivedAction): Added peer->updateDownloadLength().
  11446. Removed peer->addPeerUpload().
  11447. Removed torrentMan->addDeltaDownloadLength().
  11448. (send): Added peer->updateUploadLength().
  11449. Removed peer->addPeerDownload().
  11450. Removed torrentMan->addDeltaUploadLength().
  11451. * src/main.cc
  11452. (timeoutSpecified): New variable.
  11453. (main): Set timeoutSpecified to false.
  11454. If the command-line option "--upload-limit" is specified, then
  11455. timeoutSpecified is set to true. This option will remain in the next
  11456. release, but be deprecated in the future release.
  11457. * src/TorrentRequestInfo.h
  11458. (TorrentRequestInfo): Removed const qualifier from op.
  11459. * src/PeerStat.h
  11460. (uploadSpeed): New variable.
  11461. (PeerStat): Added default value to cuid.
  11462. (calculateUploadSpeed): New function.
  11463. (updateUploadLength): New function.
  11464. (getMaxUploadSpeed): New function.
  11465. (getAvgUploadSpeed): New function.
  11466. (reset): Added uploadSpeed. Set status to IDLE.
  11467. * src/TorrentDownloadEngine.h
  11468. (cp): Declared as Time.
  11469. (sessionDownloadLengthArray): Removed.
  11470. (sessionUploadLengthArray): Removed.
  11471. (currentCp): Removed.
  11472. (lastCalcStat): New variable
  11473. (lastElapsed): Removed.
  11474. (sessionDownloadLength): Removed.
  11475. (calculateStat): New function.
  11476. * src/TorrentDownloadEngine.cc
  11477. (initStatistics): Removed lastElapsed, cp[],
  11478. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11479. currentCp, sessionDownloadLength.
  11480. Added cp.reset() and lastCalcStat.reset().
  11481. (calculateSpeed): Changed the name of the argument.
  11482. (calculateStatistics): Rewritten.
  11483. (calculateStat): New function.
  11484. * src/Peer.h
  11485. (PeerStat.h): Included.
  11486. (peerUpload): Removed.
  11487. (peerDownload): Removed.
  11488. (peerStat): New variable.
  11489. (sessionUploadLength): New variable.
  11490. (sessionDownloadLength): New variable.
  11491. (deltaUpload): Removed.
  11492. (deltaDownload): Removed.
  11493. (resetStatus): Made private.
  11494. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11495. Removed peerUpload, peerDownload.
  11496. (updateUploadLength): New function.
  11497. (addDeltaUpload): Removed.
  11498. (updateDownloadLength): New function.
  11499. (resetDeltaUpload): Removed.
  11500. (getDeltaUpload): Removed.
  11501. (addDeltaDownload): Removed.
  11502. (calculateUploadSpeed): New function.
  11503. (resetDeltaDownload): Removed.
  11504. (getDeltaDownload): Removed.
  11505. (calculateDownloadSpeed): New function.
  11506. (getSessionUploadLength): New function.
  11507. (getSessionDownloadLength): New function.
  11508. (activate): New function.
  11509. (deactivate): New function.
  11510. (addPeerUpload): Removed.
  11511. (setPeerUpload): Removed.
  11512. (getPeerUpload): Removed.
  11513. (addPeerDownload): Removed.
  11514. (setPeerDownload): Removed.
  11515. (getPeerDownload): Removed.
  11516. * src/Peer.cc
  11517. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11518. * src/MetalinkRequestInfo.h
  11519. (MetalinkRequestInfo): Removed const qualifier from op.
  11520. * src/RequestInfo.h
  11521. (op): Removed const qualifier.
  11522. (RequestInfo): Removed const qualifier from op.
  11523. * src/prefs.h
  11524. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11525. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11526. * src/PeerInteractionCommand.cc
  11527. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11528. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11529. * src/PeerInteraction.cc
  11530. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11531. * src/main.cc
  11532. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11533. Added the description of "--max-download-limit" option.
  11534. Removed the description of "--upload-limit" option.
  11535. Added the description of "--max-upload-limit" option.
  11536. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11537. Added "--max-download-limit" option and "--max-upload-limit" option.
  11538. Added the warning message if "--upload-limit" option is used.
  11539. * src/DownloadCommand.cc
  11540. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11541. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. To rewrite segment download mechanism for HTTP/FTP download.
  11543. Use BitfieldMan to manage segment download.
  11544. * src/HttpResponseCommand.h
  11545. (executeInternal): Pass the reference of segment.
  11546. * src/AbstractCommand.cc
  11547. (prepareForRetry): Call segmentMan->cancelSegment here.
  11548. (onAbort): Call segmentMan->cancelSegment here.
  11549. * src/HttpDownloadCommand.cc
  11550. (prepareForNextSegment): New function.
  11551. * src/DownloadEngineFactory.cc
  11552. (newConsoleEngine): Removed splitter.
  11553. (newTorrentConsoleEngine): Removed splitter.
  11554. * src/Request.h
  11555. (segment): Renamed from seg.
  11556. * src/FtpInitiateConnectionCommand.h
  11557. (executeInternal): Pass the reference of segment.
  11558. * src/AbstractCommand.h
  11559. (executeInternal): Pass the reference of segment.
  11560. * src/pref.h
  11561. (PREF_SEGMENT_SIZE): New definition.
  11562. * src/HttpProxyRequestCommand.h
  11563. (executeInternal): Pass the reference of segment.
  11564. * src/HttpResponseCommand.cc
  11565. (checkResponse): Allowed status 206 when a request range starts 0.
  11566. (handleDefaultEncoding): Rewritten the code related to Segment.
  11567. (handleOtherEncoding): Rewritten the code related to Segment.
  11568. * src/SegmentMan.h
  11569. (SegmentEntry): New class.
  11570. (SegmentEntries): New type definition.
  11571. (bitfield): New variable.
  11572. (usedSegmentEntries): New variable.
  11573. (onNullBitfield): New function.
  11574. (checkoutSegment): New function.
  11575. (segments): Removed.
  11576. (splitter): Removed.
  11577. (unregisterId): Removed.
  11578. (getSegment): New function(overload)
  11579. (getDownloadedSize): Removed.
  11580. (cancelSegment): New function.
  11581. (completeSegment): New function.
  11582. (initBitfield): New function.
  11583. (hasSegment): New function.
  11584. (getDownloadLength): New function.
  11585. * src/BitfieldMan.h
  11586. (getStartIndex): New function.
  11587. (getEndIndex): New function.
  11588. (getMissingUnusedIndex): New function(overload).
  11589. (getSparseMissingUnusedIndex): New function.
  11590. * src/BitfieldMan.cc
  11591. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11592. (getMissingUnusedIndex): New function(overload).
  11593. (Range): New class.
  11594. (getStartIndex): New function.
  11595. (getEndIndex): New function.
  11596. (getSparseMissingUnusedIndex): New function.
  11597. (isBitSetInternal): Return false if the given index is less than 0.
  11598. * src/HttpInitiateConnectionCommand.h
  11599. (executeInternal): Pass the reference of segment.
  11600. * src/FtpNegotiateCommand.h
  11601. (executeInternal): Pass the reference of segment.
  11602. * src/FtpNegotiateCommand.cc
  11603. (recvSize): Initialize bitfield here.
  11604. * src/FtpTunnelResponseCommand.h
  11605. (executeInternal): Pass the reference of segment.
  11606. * src/HttpConnection.cc
  11607. (createRequest): Rewritten range header processing.
  11608. * src/DownloadCommand.h
  11609. (executeInternal): Pass the reference of segment.
  11610. (prepareForRetry): Removed.
  11611. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11612. function.
  11613. * src/main.cc
  11614. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11615. * src/SegmentMan.cc
  11616. (SegmentMan): Added bitfield. Removed splitter.
  11617. (~SegmentMan): Added bitfield. Removed splitter.
  11618. (unregisterId): Removed.
  11619. (getSegment): Rewritten.
  11620. (updateSegment): Rewritten.
  11621. (save): Rewritten.
  11622. (read): Rewritten.
  11623. (finished): Rewritten.
  11624. (getDownloadedSize): Removed.
  11625. (initBitfield): New function.
  11626. (FindSegmentEntryByIndex): New function object.
  11627. (FindSegmentEntryByCuid): New function object.
  11628. (checkoutSegment): New function.
  11629. (onNullBitfield): New function.
  11630. (getSegment): New function(overload).
  11631. (CancelSegment): New function object.
  11632. (cancelSegment): New function.
  11633. (completeSegment): New function.
  11634. (hasSegment): New function.
  11635. (getDownloadLength): New function.
  11636. * src/FtpInitiateConnectionCommand.cc
  11637. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11638. * src/Segment.h: Rewritten.
  11639. * src/Segment.cc (operator<<): New function.
  11640. * src/HttpDownloadCommand.h
  11641. (prepareForNextSegment): New function.
  11642. * src/Request.cc
  11643. (resetUrl): Made segment null.
  11644. * src/DownloadEngine.cc
  11645. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11646. * src/HttpProxyRequestCommand.h
  11647. (executeInternal): Pass the reference of segment.
  11648. * src/DownloadCommand.cc
  11649. (executeInternal): Rewritten the code related to Segment.
  11650. (prepareForRetry): Removed.
  11651. (prepareForNextSegment): Rewritten.
  11652. * src/FtpTunnelResponseCommand.h
  11653. (executeInternal): Pass the reference of segment.
  11654. To add HTTP 1.1 persistent connection support(experimental)
  11655. * src/HttpRequestCommand.cc
  11656. (executeInternal): Disable keep alive if it is disabled by
  11657. configuration.
  11658. * src/Request.h
  11659. (keepAlive): New variable.
  11660. (isKeepAlive): New function.
  11661. (setKeepAlive): New function.
  11662. * src/pref.h
  11663. (PREF_HTTP_KEEP_ALIVE): New definition.
  11664. * src/HttpResponseCommand.cc
  11665. (executeInternal): Check the remote server supports keep alive.
  11666. * src/HttpConnection.cc
  11667. (createRequest): Send "Connection: close" only if keep alive is
  11668. disabled.
  11669. * src/main.cc
  11670. (main):
  11671. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11672. To add max download speed limit:
  11673. * src/pref.h
  11674. (PREF_MAX_SPEED_LIMIT): New definition.
  11675. * src/PeerInteractionCommand.cc
  11676. (executeInternal): Added max download speed limit. Not tested yet.
  11677. * src/SegmentMan.h
  11678. (PeerStats): New type definition.
  11679. (peerStats): New variable.
  11680. (registerPeerStat): New function.
  11681. (FindPeerStat): New function object.
  11682. (getPeerStat): New function.
  11683. (calculateDownloadSpeed): New function.
  11684. * src/SpeedCalc.h: New class.
  11685. * src/SpeedCalc.cc: New class.
  11686. * src/main.cc
  11687. (main):
  11688. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11689. download speed is not restricted).
  11690. * src/PeerStat.h: New class.
  11691. * src/SegmentMan.cc
  11692. (registerPeerStat): New function.
  11693. (calculateDownloadSpeed): New function.
  11694. * src/DownloadCommand.cc
  11695. (STARTUP_IDLE_TIME): New definition.
  11696. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11697. downloadStart.
  11698. (~DownloadCommand): Call peerStat->downloadStop.
  11699. (executeInternal): Added download speed limitter. Rewritten lowest
  11700. speed limitter.
  11701. * src/HttpConnection.cc
  11702. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11703. * src/AbstractCommand.cc
  11704. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11705. Added hostname to the error message.
  11706. * src/ConsoleDownloadEngine.cc
  11707. (calculateStatistics): Initialize psize with dlSize.
  11708. * src/PieceMessage.cc
  11709. (receivedAction): Do not call peerInteraction->abortPiece here.
  11710. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11711. * src/BitfieldMan.h
  11712. (clearAllUseBit): New function.
  11713. (setAllUseBit): New function.
  11714. * src/BitfieldMan.cc
  11715. (clearAllBit): Do not clear useBitfield here.
  11716. (clearAllUseBit): New function.
  11717. (setAllUseBit): New function.
  11718. * src/Piece.cc
  11719. (clearAllBlock): Call bitfield->clearAllUseBit().
  11720. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. To make filename URL-decoded:
  11722. * src/HttpResponseCommand.h: Updated doc.
  11723. * src/HttpResponseCommand.cc
  11724. (determinFilename): Made filename URL-decoded.
  11725. * src/FtpInitiateConnectionCommand.cc
  11726. (executeInternal): Made filename URL-decoded.
  11727. * src/Util.h (urldecode): New function.
  11728. * src/Util.cc (urldecode): New function.
  11729. To fix a bug that caused assertion failure in ares_strerror:
  11730. * src/NameResolver.cc (callback): Fixed the bug.
  11731. * Release 0.7.3
  11732. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11733. To add --seed-time and --seed-ratio command-line option:
  11734. * src/Option.h (getAsDouble): New function.
  11735. * src/Option.cc (getAsDouble): New function.
  11736. * src/SeedCheckCommand.h: New class.
  11737. * src/SeedCheckCommand.cc: New class.
  11738. * src/DownloadEngineFactory.cc
  11739. (SeedCheckCommand.h): Included.
  11740. (UnionSeedCriteria.h): Included.
  11741. (TimeSeedCriteria.h): Included.
  11742. (ShareRatioSeedCriteria.h): Included.
  11743. (newTorrentConsoleEngine): Added the processing of seed option.
  11744. * src/SeedCriteria.h: New class.
  11745. * src/ShareRatioSeedCriteria.h: New class.
  11746. * src/TimeSeedCriteria.h: New class.
  11747. * src/UnionSeedCriteria.h: New class.
  11748. * src/prefs.h
  11749. (PREF_SEED_TIME): New definition.
  11750. (PREF_SEED_RATIO): New definition.
  11751. * src/main.cc
  11752. (showUsage): Added --seed-time and --seed-ratio option.
  11753. (main): Added --seed-time and --seed-ratio option.
  11754. Made default log file name "/dev/null".
  11755. * src/SharedHandle.h
  11756. (SharedHandle): Copy constructor. Made it assignable from the
  11757. SharedHandle of the subclasses.
  11758. (operator=): Made it assignable from the SharedHandle of the
  11759. subclasses.
  11760. (getRefCount): New function.
  11761. To add notice log level and the switch to write log to stdout. This
  11762. switch is configurable per log level.
  11763. * src/Logger.h
  11764. (notice): New function.
  11765. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11766. constant.
  11767. * src/LogFactory.cc
  11768. (getInstance): The use of NullLogger was removed. A log message with
  11769. notice log level was made written to stdout along with log file.
  11770. * src/NullLogger.h
  11771. (notice): New function.
  11772. * src/SimpleLogger.h
  11773. (writeHeader): Added the 'file' argument.
  11774. (writeLog): Added the 'file' argument.
  11775. (writeFile): New function.
  11776. (stdoutField): New variable.
  11777. (SimpleLogger): Removed the default constructor.
  11778. (SimpleLogger): Made the default value of logfile 0.
  11779. (debug): Added 'virtual' keyword.
  11780. (info): Added 'virtual' keyword.
  11781. (warn): Added 'virtual' keyword.
  11782. (error): Added 'virtual' keyword.
  11783. (notice): New function.
  11784. (setStdout): New function.
  11785. * src/SimpleLogger.cc
  11786. (WRITE_LOG): Replaced writeLog with writeFile.
  11787. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11788. (SimpleLogger): Removed the default constructor.
  11789. (setStdout): New function.
  11790. (writeLog): Added the handling of NOTICE log level.
  11791. (writeFile): New function.
  11792. (notice): New function.
  11793. * src/TorrentMan.h: Updated doc.
  11794. * src/BitfieldMan.h: Updated doc.
  11795. * src/TrackerWatcherCommand.cc
  11796. (execute): Return true if error occurred in the request to the tracker
  11797. and halt is requested.
  11798. * src/TrackerUpdateCommand.cc
  11799. (execute): Return true if error occurred in the request to the tracker
  11800. and halt is requested.
  11801. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11802. DownloadEngine:
  11803. * src/TorrentConsoleDownloadEngine.h
  11804. (onSelectiveDownloadingCompletes): Removed.
  11805. * src/TorrentConsoleDownloadEngine.cc
  11806. (onSelectiveDownloadingCompletes): Removed.
  11807. * src/TorrentDownloadEngine.h
  11808. (onEndOfRun): Added 'virtual' keyword.
  11809. (afterEachIteration): Removed.
  11810. (onSelectiveDownloadingCompletes): Removed.
  11811. * src/TorrentDownloadEngine.cc
  11812. (onEndOfRun): Removed filenameFixed.
  11813. (afterEachIteration): Removed.
  11814. * src/TorrentMan.cc
  11815. (completePiece): Call onDownloadComplete here.
  11816. (onDownloadComplete): Added 2 log messages.
  11817. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11819. * src/NameResolver.h: Added the prototype declaration of callback().
  11820. To support c-ares library:
  11821. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11822. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11823. * src/FtpInitiateConnectionCommand.h:
  11824. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11825. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11826. * src/HttpInitiateConnectionCommand.h:
  11827. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11828. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11829. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11830. #1542285 by tizianomueller)
  11831. * src/HttpInitiateConnectionCommand.cc:
  11832. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11833. * src/FtpInitiateConnectionCommand.cc:
  11834. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11835. * src/DownloadEngine.h:
  11836. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11837. * src/DownloadEngine.cc:
  11838. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11839. To fix the bug that causes compilation failure with metalink-support
  11840. disabled(bug#1543587):
  11841. * src/main.cc: Fixed with the patch by tizianomueller.
  11842. * Release 0.7.2
  11843. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. * src/main.cc
  11845. (main): Added a message to inform users that aria2 is starting to
  11846. verify checksum.
  11847. * src/RequestInfo.cc
  11848. (printDownloadAbortMessage): Added a message to inform users that
  11849. transfer can be resumed.
  11850. * src/FeatureConfig.cc
  11851. (FEATURE_ASYNC_DNS): New definition.
  11852. (FeatureConfig): Added aysnc DNS entry.
  11853. To replace CommandUuid with Command* in SocketEntry and
  11854. NameResolverEntry:
  11855. * src/DownloadEngine.h
  11856. (CommandUuids): Removed.
  11857. (SocketEntry::commandUuid): Removed.
  11858. (SocketEntry::command): New variable.
  11859. (SocketEntry::SocketEntry): Updated.
  11860. (SocketEntry::operator==): Updated.
  11861. (NameResolverEntry::commandUuid): Removed.
  11862. (NameResolverEntry::command): New variable.
  11863. (NameResolverEntry::NameResolverEntry): Updated.
  11864. (NameResolverEntry::operator==): Updated.
  11865. (waitData): Changed the argument type.
  11866. (addSocketForReadCheck): Changed the argument type.
  11867. (deleteSocketForReadCheck): Changed the argument type.
  11868. (addSocketForWriteCheck): Changed the argument type.
  11869. (deleteSocketForWriteCheck): Changed the argument type.
  11870. (addNameResolverCheck): Changed the argument type.
  11871. (deleteNameResolverCheck): Changed the argument type.
  11872. * src/DownloadEngine.cc
  11873. (FindCommand): Removed.
  11874. (run): Removed activeUuid. Added activeCommands instead.
  11875. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11876. (AccumulateActiveCommand): New function object.
  11877. (waitData): Use AccumulateActiveCommand.
  11878. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11879. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11880. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11881. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11882. (addNameResolverCheck): Use Command instead of CommandUuid.
  11883. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11884. * src/AbstractCommand.cc
  11885. (disableReadCheckSocket): Updated according to the changes in
  11886. DownloadEngine.
  11887. (setReadCheckSocket): Updated according to the changes in
  11888. DownloadEngine.
  11889. (disableWriteCheckSocket): Updated according to the changes in
  11890. DownloadEngine.
  11891. (setWriteCheckSocket): Updated according to the changes in
  11892. DownloadEngine.
  11893. (setNameResolverCheck): Updated according to the changes in
  11894. DownloadEngine.
  11895. (disableNameResolverCheck): Updated according to the changes in
  11896. DownloadEngine.
  11897. * src/AbstractCommand.cc
  11898. (disableReadCheckSocket): Updated according to the changes in
  11899. DownloadEngine.
  11900. (setReadCheckSocket): Updated according to the changes in
  11901. DownloadEngine.
  11902. (disableWriteCheckSocket): Updated according to the changes in
  11903. DownloadEngine.
  11904. (setWriteCheckSocket): Updated according to the changes in
  11905. DownloadEngine.
  11906. * release 0.7.1
  11907. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11908. To handle the case where some BitTorrent tracker requires all letters
  11909. except for [A-Za-z0-9] is URL encoded.
  11910. * src/Util.h
  11911. (torrentUrlencode): New function.
  11912. * src/Util.cc
  11913. (ctype.h): Included.
  11914. (torrentUrlencode): New function.
  11915. * src/TrackerWatcherCommand.cc
  11916. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11917. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11918. To add asynchronous DNS support(libares):
  11919. * src/AbstractCommand.h
  11920. (setNameResolverCheck): New function.
  11921. (disableNameResolverCheck): New function
  11922. (resolveHostname): New function.
  11923. * src/AbstractCommand.cc
  11924. (setNameResolverCheck): New function.
  11925. (disableNameResolverCheck): New function
  11926. (resolveHostname): New function.
  11927. * src/FtpInitiateConnectionCommand.h
  11928. (nameResolver): New function.
  11929. * src/FtpInitiateConnectionCommand.cc
  11930. (Util.h): Included.
  11931. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11932. disableWriteCheckSocket.
  11933. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11934. (executeInternal): Added async DNS support.
  11935. * src/HttpInitiateConnectionCommand.h
  11936. (nameResolver): New function.
  11937. * src/HttpInitiateConnectionCommand.cc
  11938. (DlRetryEx.h): Included.
  11939. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11940. disableWriteCheckSocket.
  11941. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11942. (executeInternal): Added async DNS support.
  11943. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11944. by extern "C" declaration.
  11945. * src/NameResolver.cc: New class.
  11946. * src/Util.h:
  11947. (isNumberAndDotsNotation): New function
  11948. * src/Util.cc
  11949. (isNumberAndDotsNotation): New function.
  11950. * src/DownloadEngine.h
  11951. (NameResolver.h): Included.
  11952. (NameResolverEntry): New class.
  11953. (NameResolverEntries): New type definition.
  11954. (addNameResolverCheck): New function.
  11955. (deleteNameResolverCheck): New function.
  11956. * src/DownloadEngine.cc
  11957. (run): Initialize cp with 0.
  11958. (SetDescriptor::operator()): Added for NameResolverEntry.
  11959. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11960. (waitData): Check nameResolver entries.
  11961. (updateFdSet): Update fds in nameResolver entries.
  11962. (addNameResolverCheck): New function.
  11963. (deleteNameResolverCheck): new function.
  11964. * src/PeerInteractionCommand.cc
  11965. (executeInternal): Fixed wrong socket handling.
  11966. * src/main.cc
  11967. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11968. * src/Util.cc
  11969. (fileChecksum): Removed the call to ctx.digestReset().
  11970. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. * po/ru.po: Azamat sent me Russian translation.
  11972. * src/FtpNegotiateCommand.cc
  11973. (recvGreeting): Call disableWriteCheckSocket just after
  11974. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11975. (recvRetr): Recognized status code 125 as a acceptable response code.
  11976. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11977. case-insesitive filesystem(BUG#1531057).
  11978. * src/Time.h: Renamed as TimeA2.h.
  11979. * src/Time.cc: Renamed as TimeA2.cc.
  11980. * src/TimeA2.h: New class.
  11981. * src/TimeA2.cc: New class.
  11982. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11983. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11984. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11985. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11986. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11987. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11988. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11989. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11990. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11991. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11992. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11993. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11994. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11995. * release 0.7.0
  11996. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. * src/PeerChokeCommand.h
  11998. (PeerChokeCommand): Rearranged the arguments.
  11999. * src/PeerChokeCommand.cc
  12000. (PeerChokeCommand): Rearranged the arguments.
  12001. * src/MetalinkEntry.h
  12002. (Checksum.h): Included.
  12003. (md5): Removed.
  12004. (sha1): Removed.
  12005. (checksum): New variable.
  12006. (operator=): Updated.
  12007. (check): Removed.
  12008. * src/prefs.h
  12009. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12010. (PREF_FOLLOW_TORRENT): New definition.
  12011. (PREF_SELECT_FILE): New definition.
  12012. (PREF_FOLLOW_METALINK): New definition.
  12013. * src/MetalinkResource.h
  12014. (TYPE_HTTPS): Added to enum TYPE.
  12015. * src/TorrentMan.cc
  12016. (~TorrentMan): Rewritten.
  12017. * src/MultiDiskWriter.cc
  12018. (MultiDiskAdaptor): Updated according to the changes in
  12019. MessageDigestContext.
  12020. (~MultiDiskAdaptor): Updated according to the changes in
  12021. MessageDigestContext.
  12022. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12023. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12024. * src/Util.h
  12025. (fileChecksum): Updated according to the changes in
  12026. MessageDigestContext.
  12027. * src/Util.cc
  12028. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12029. (fileChecksum): Updated according to the changes in
  12030. MessageDigestContext.
  12031. * src/messageDigest.h: Rewritten.
  12032. * src/MetalinkEntry.cc
  12033. (check): Removed.
  12034. (Supported): Updated.
  12035. (dropUnsupportedResource): Fixed a memory leak.
  12036. * src/ShaVisitor.cc
  12037. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12038. (~ShaVisitor): Updated according to the changes in
  12039. MessageDigestContext.
  12040. (visit): Updated according to the changes in MessageDigestContext.
  12041. * src/main.cc
  12042. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12043. command-line option added.
  12044. * src/DownloadEngine.h
  12045. (SocketEntry): New class.
  12046. (SocketEntries): New definition.
  12047. (PairFind): Removed.
  12048. (SockCmdMap): Removed.
  12049. * src/DownloadEngine.cc
  12050. (DownloadEngine): Rewritten.
  12051. (~DownloadEngine): Rewritten.
  12052. (run): Renamed activeCommandUuids as activeUuids.
  12053. (SetDescriptor): Rewritten.
  12054. (AccumulateActiveCommandUuid): Removed.
  12055. (AccumulateActiveUuid): New function object.
  12056. (waitData): Rewritten.
  12057. (updateFdSet): Rewritten.
  12058. (addSocket): Rewritten.
  12059. (deleteSocket): Rewritten.
  12060. (addSocketForReadCheck): Rewritten.
  12061. (deleteSocketForReadCheck): Rewritten.
  12062. (addSocketForWriteCheck): Rewritten.
  12063. (deleteSocketForWriteCheck): Rewritten.
  12064. * src/Xml2MetalinkProcessor.cc
  12065. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12066. * src/DownloadCommand.cc
  12067. (executeInternal): Added the check routine for lowest speed limit.
  12068. * src/AbstractDiskWriter.cc
  12069. (AbstractDiskWriter): Updated according to the changes in
  12070. MessageDigestContext.
  12071. (~AbstractDiskWriter): Updated according to the changes in
  12072. MessageDigestContext.
  12073. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12074. * src/RequestInfo.h: New class.
  12075. * src/UrlRequestInfo.h: New class.
  12076. * src/UrlRequestInfo.cc: New class.
  12077. * src/TorrentRequestInfo.h: New class.
  12078. * src/TorrentRequestInfo.cc: New class.
  12079. * src/MetalinkRequestInfo.h: New class.
  12080. * src/MetalinkRequestInfo.cc: New class.
  12081. * src/Checksum.h: New class.
  12082. * src/DownloadEngineFactory.h: New class.
  12083. * src/DownloadEngineFactory.cc: New class.
  12084. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12085. * src/Option.h
  12086. (getAsBool): New function.
  12087. * src/Option.cc
  12088. (prefs.h): Included.
  12089. (defined): 0-length value is now recognized as undefined.
  12090. (getAsInt): Rewritten.
  12091. (getAsLLInt): Rewritten.
  12092. (getAsBool): New function.
  12093. * src/FeatureConfig.h: Rewritten.
  12094. * src/FeatureConfig.cc: Rewritten.
  12095. * src/prefs.h
  12096. (PREF_STDOUT_LOG): New definition.
  12097. (PREF_LOG): New definition.
  12098. (PREF_DIR): New definition.
  12099. (PREF_OUT): New definition.
  12100. (PREF_SPLIT): New definition.
  12101. (PREF_DAEMON): New definition.
  12102. (PREF_REFERER): New definition.
  12103. (PREF_TORRENT_FILE): New definition.
  12104. (PREF_LISTEN_PORT): New definition.
  12105. (PREF_METALINK_FILE): New definition.
  12106. (PREF_METALINK_VERSION): New definition.
  12107. (PREF_METALINK_LANGUAGE): New definition.
  12108. (PREF_METALINK_OS): New definition.
  12109. (PREF_METALINK_SERVERS): New definition.
  12110. * src/main.cc
  12111. (main): Following command-line parameters are now put into Option
  12112. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12113. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12114. metalinkLanguage, metalinkOs, metalinkServers
  12115. To fix the bug that aria2 can not handle http response header properly.
  12116. * src/HttpHeader.cc
  12117. (put): Made name lowercased.
  12118. (defined): Made name lowercased.
  12119. (getFirst): Made name lowercased.
  12120. (get): Made name lowercased.
  12121. (getFirstAsInt): Rewritten.
  12122. (getFirstAsLLInt): Rewritten.
  12123. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12124. * src/TorrentMan.h:
  12125. (advertisePiece): Updated doc.
  12126. (getAdvertisedPieceIndexes): Updated doc.
  12127. (removeAdvertisedPiece); New function.
  12128. * src/TorrentMan.cc
  12129. (FindElapsedHave): New function object.
  12130. (removeAdvertisedPiece): New function.
  12131. * src/HaveEraseCommand.h: New class.
  12132. * src/HaveEraseCommand.cc: New class.
  12133. * src/FeatureConfig.h: New class.
  12134. * src/FeatureConfig.cc: New class.
  12135. * src/Request.h
  12136. (defaultPorts): Removed.
  12137. * src/Request.cc
  12138. (FeatureConfig.h): Included.
  12139. (Request): Removed the statements related to defaultPorts.
  12140. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12141. A default port number is now retrieved from FeatureConfig.
  12142. * src/main.cc
  12143. (HaveEraseCommand.h): Included.
  12144. (showVersion): Added the output of feature list.
  12145. (main): Added HaveEraseCommand to command queue in BitTorrent
  12146. downloading.
  12147. * src/PeerInteractionCommand.h
  12148. (chokeCheckPoint): Commented out.
  12149. (periodicExecPoint): New variable.
  12150. * src/PeerInteractionCommand.cc
  12151. (executeInternal): Following methods are now called in at least every
  12152. 0.5 seconds to reduce CPU usage:
  12153. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12154. checkHave(), sendKeepAlive().
  12155. (checkLongTimePeerChoking): Commented out.
  12156. * src/BitfieldMan.h
  12157. (getNthBitIndex): Changed the method signature.
  12158. (getMissingIndexRandomly): Changed the method signature.
  12159. * src/BitfieldMan.cc
  12160. (getNthBitIndex): Rewritten
  12161. (getMissingIndexRandomly): Rewritten.
  12162. (hasMissingPiece): Rewritten.
  12163. (getMissingIndex): Refactored.
  12164. (getMissingUnusedIndex); Refactored.
  12165. (getMissingIndex): Refactored.
  12166. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12167. * src/PeerMessage.h
  12168. (Piece.h): Included.
  12169. (SharedHandle.h): Included.
  12170. (invalidate): New variable.
  12171. (uploading): New variable.
  12172. (isInvalidate): New function.
  12173. (isUploading): New function.
  12174. (onPush): New function.
  12175. (onChoked): New function.
  12176. (onCanceled): New function.
  12177. (onAbortPiece): New function.
  12178. (PeerMessageHandle): New type definition.
  12179. * src/PeerMessage.cc
  12180. (PeerMessage): Added the initialization for invalidate and uploading.
  12181. * src/CancelMessage.h
  12182. (CancelMessage): Rewritten.
  12183. * src/RejectMessage.h
  12184. (RejectMessage): Rewritten.
  12185. * src/Metalinker.h
  12186. (operator=): Defined.
  12187. * src/MetaEntry.h
  12188. (operator=): Defined.
  12189. * src/MetalinkResource.h
  12190. (operator=): Defined.
  12191. * src/AllowedFastMessage.h
  12192. (AllowedFastMessage): Rewritten.
  12193. * src/HandshakeMessage.h
  12194. (HandshakeMessage): New function(overload).
  12195. * src/HandshakeMessage.cc
  12196. (HandshakeMessage): Rewritten.
  12197. (init): New function.
  12198. * src/HaveMessage.h
  12199. (HaveMessage): Rewritten.
  12200. * src/Time.h
  12201. (operator=): Defined the function body here.
  12202. * src/Time.cc
  12203. (operator=): Removed.
  12204. * src/SocketCore.h
  12205. (operator==): Defined here.
  12206. (operator!=): Defined here.
  12207. (operator<): Defined here.
  12208. * src/SocketCore.cc
  12209. (operator==): Removed.
  12210. (operator<): Removed.
  12211. * src/BitfieldMan.h
  12212. (operator=): Defined the function body here.
  12213. * src/BitfieldMan.cc
  12214. (operator=): Removed.
  12215. * src/TorrentMan.h
  12216. (deleteErrorPeer): Removed.
  12217. (deleteUnusedPeer); New function.
  12218. * src/TorrentMan.cc
  12219. (addPeer): Call deleteUnusedPeer.
  12220. (deleteErrorPeer): Removed.
  12221. (deleteUnusedPeer): New function.
  12222. * src/PeerAbstractCommand.h
  12223. (setNoCheck): New function.
  12224. (noCheck): New variable.
  12225. * src/PeerAbstractCommand.cc
  12226. (PeerAbstractCommand): Added the initialization of noCheck.
  12227. (execute): Added a check for noCheck.
  12228. (setNoCheck): New function.
  12229. * src/Util.h
  12230. (stdio.h): Included.
  12231. * src/Util.cc
  12232. (unistd.h): Included.
  12233. * src/DefaultDiskWriter.cc
  12234. (unistd.h): Included.
  12235. * src/Peer.h
  12236. (operator==): Defined the function body here.
  12237. (operator!=): Defined the function body here.
  12238. * src/Peer.cc
  12239. (operator==): Removed.
  12240. (operator!=): Removed.
  12241. * src/Piece.h
  12242. (Piece): Defined the function body here(copy constructor).
  12243. (operator=): Defined the function body here.
  12244. (operator==): Defined the function body here.
  12245. * src/Piece.cc
  12246. (Piece): Removed(copy constructor).
  12247. (operator=): Removed.
  12248. (operator==): Removed.
  12249. * src/PeerMessageUtil.h
  12250. (ChokeMessage.h): Removed.
  12251. (UnchokeMessage.h): Removed.
  12252. (InterestedMessage.h): Removed.
  12253. (NotInterestedMessage.h): Removed.
  12254. (HaveMessage.h): Removed.
  12255. (BitfieldMessage.h): Removed.
  12256. (RequestMessage.h): Removed.
  12257. (CancelMessage.h): Removed.
  12258. (PieceMessage.h): Removed.
  12259. (HandshakeMessage.h): Removed.
  12260. (KeepAliveMessage.h): Removed.
  12261. (PortMessage.h): Removed.
  12262. (HaveAllMessage.h): Removed.
  12263. (HaveNoneMessage.h): Removed.
  12264. (PeerConnection.h): Removed.
  12265. (HandshakeMessage.h): Included.
  12266. * src/BitfieldMessage.h
  12267. (init): New function.
  12268. (BitfieldMessage): Rewritten.
  12269. (BitfieldMessage): New function(overload).
  12270. * src/RequestSlot.h
  12271. (operator=): Defined the function body here.
  12272. (operator==): Defined the function body here.
  12273. * src/RequestSlot.cc
  12274. (operator=): Removed.
  12275. (operator==): Removed.
  12276. To remove the dependency on the PeerMessage subclass from
  12277. PeerInteraction:
  12278. * src/PeerMessageFactory.h: New class.
  12279. * src/PeerMessageFactory.cc: New class.
  12280. * src/SimplePeerMessage.cc
  12281. (send): If invalidate is true then do nothing.
  12282. * src/PeerInteractionCommand.cc
  12283. (HandshakeMessage.h): Included.
  12284. (KeepAliveMessage.h): Included.
  12285. (ChokeMessage.h): Included.
  12286. (UnchokeMessage.h): Included.
  12287. (HaveMessage.h): Included.
  12288. (executeInternal): Call setNoCheck().
  12289. Removed setWriteCheckSocket(socket).
  12290. * src/PeerInteraction.h
  12291. (ChokeMessage.h): Removed.
  12292. (UnchokeMessage.h): Removed.
  12293. (InterestedMessage.h): Removed.
  12294. (NotInterestedMessage.h): Removed.
  12295. (HaveMessage.h): Removed.
  12296. (BitfieldMessage.h): Removed.
  12297. (RequestMessage.h): Removed.
  12298. (CancelMessage.h): Removed.
  12299. (PieceMessage.h): Removed.
  12300. (HandshakeMessage.h): Removed.
  12301. (KeepAliveMessage.h): Removed.
  12302. (PortMessage.h): Removed.
  12303. (HaveAllMessage.h): Removed.
  12304. (HaveNoneMessage.h): Removed.
  12305. (RejectMessage.h): Removed.
  12306. (AllowedFastMessage.h): Removed.
  12307. (SuggestPieceMessage.h): Removed.
  12308. (PeerMessageFactory.h): Included.
  12309. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12310. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12311. (PeerMessageFactory): New variable.
  12312. (createPeerMessage): Removed.
  12313. (createHandshakeMessage): Removed.
  12314. (setPeerMessageCommonProperty): Removed.
  12315. (addRequestSlot): New function.
  12316. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12317. (getPeerMessageFactory): New function.
  12318. (createRequestMessage): Removed.
  12319. (createCancelMessage): Removed.
  12320. (createPieceMessage): Removed.
  12321. (createHaveMessage): Removed.
  12322. (createChokeMessage): Removed.
  12323. (createUnchokeMessage): Removed.
  12324. (createInterestedMessage): Removed.
  12325. (createNotInterestedMessage): Removed.
  12326. (createBitfieldMessage): Removed.
  12327. (createKeepAliveMessage): Removed.
  12328. (createHaveAllMessage): Removed.
  12329. (createHaveNoneMessage): Removed.
  12330. (createRejectMessage): Removed.
  12331. (createAllowedFastMessage): Removed.
  12332. * src/PeerInteraction.cc
  12333. (PeerInteraction): Allocate PeerMessageFactory here.
  12334. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12335. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12336. PieceMessage::ID.
  12337. (addMessage): Simplified by using PeerMessage::onPush().
  12338. (addRequestSlot): New function.
  12339. (rejectAllPieceMessageInQueue): Simplified by using
  12340. PeerMessage::onChoked().
  12341. (rejectPieceMessageInQueue): Simplified by using
  12342. PeerMessage::onCanceled().
  12343. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12344. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12345. (createHandshakeMessage): Removed.
  12346. (createPeerMessage): Removed.
  12347. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12348. (setPeerMessageCommonProperty): Removed.
  12349. (createRequestMessage): Removed.
  12350. (createCancelMessage): Removed.
  12351. (createPieceMessage): Removed.
  12352. (createHaveMessage): Removed.
  12353. (createChokeMessage): Removed.
  12354. (createUnchokeMessage): Removed.
  12355. (createInterestedMessage): Removed.
  12356. (createNotInterestedMessage): Removed.
  12357. (createBitfieldMessage): Removed.
  12358. (createKeepAliveMessage): Removed.
  12359. (createHaveAllMessage): Removed.
  12360. (createHaveNoneMessage): Removed.
  12361. (createRejectMessage): Removed.
  12362. (createAllowedFastMessage): Removed.
  12363. * src/PieceMessage.h
  12364. (createRejectMessage): New function.
  12365. (PieceMessage): Rewritten.
  12366. (onChoked): New function.
  12367. (onCanceled): New function.
  12368. * src/PieceMessage.cc
  12369. (send): If invalidate is true then do nothing, just return.
  12370. (createRejectMessage): New function.
  12371. (onChoked): New function.
  12372. (onCanceled): New function.
  12373. * src/RequestMessage.h
  12374. (RequestMessage): Rewritten.
  12375. (onPush): New function.
  12376. (onAbortPiece): New function.
  12377. * src/RequestMessage.cc
  12378. (onPush): New function.
  12379. (onAbortPiece): New function.
  12380. Update fd_set when a socket is added or deleted in order to improve
  12381. performance:
  12382. * src/DownloadEngine.h
  12383. (rfdset): New variable.
  12384. (wfdset): New variable.
  12385. (updateFdSet): New function.
  12386. * src/DownloadEngine.cc
  12387. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12388. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12389. (waitData): Copy rfdset and wfdset.
  12390. (updateFdSet): New function.
  12391. (addSocket): Call updateFdSet.
  12392. (deleteSocket): Call updateFdSet.
  12393. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12394. To add the support for Metalink3.0 backward compatible links:
  12395. * src/Request.h
  12396. (SAFE_CHARS): Added '#'.
  12397. (METALINK_MARK): New definition.
  12398. * src/Request.cc
  12399. (parseUrl): Added the support for Metalink3.0 backward compatible
  12400. links.
  12401. etc
  12402. * src/PeerInteraction.cc
  12403. (MsgPushBack): Removed.
  12404. (sendMessages): Use STL copy and back_inserter.
  12405. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12406. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12407. * src/TorrentMan.h
  12408. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12409. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12410. * src/SharedHandle.h: New class.
  12411. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12412. * src/HttpResponseCommand.h
  12413. (HttpResponseCommand): Wrapped Socket.
  12414. * src/SocketCore.h
  12415. (operator==): New function.
  12416. (operator!=): New function.
  12417. (operator<): New function.
  12418. (getSockfd): New function.
  12419. (isOpen): New function.
  12420. (writeData): New function.
  12421. * src/SocketCore.cc
  12422. (operator==): New function.
  12423. (operator!=): New function.
  12424. (operator<): New function.
  12425. * src/AbstractCommand.h
  12426. (socket): Changed its type to SocketHandle.
  12427. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12428. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12429. (disableReadCheckSocket): New function.
  12430. (disableWriteCheckSocket): New function.
  12431. (readCheckTarget): Changed its type to SocketHandle.
  12432. (writeCheckTarget): Changed its type to SocketHandle.
  12433. (AbstractCommand): Replaced Socket with SocketHandle.
  12434. * src/AbstractCommand.cc
  12435. (AbstractCommand): Replaced Socket with SocketHandle.
  12436. (~AbstractCommand): Removed the deallocation for Socket object.
  12437. (disableReadCheckSocket): New function.
  12438. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12439. (disableWriteCheckSocket): New function.
  12440. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12441. * src/HttpDownloadCommand.cc
  12442. (DownloadCommand): Replaced Socket with SocketHandle.
  12443. * src/PeerAbstractCommand.h
  12444. (socket): Changed its type to SocketHandle.
  12445. (peer): Changed its type to PeerHandle.
  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. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12453. Replaced Peer with PeerHandle.
  12454. * src/HttpRequestCommand.cc
  12455. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12456. Use disableReadCheckSocket.
  12457. * src/PeerInitiateConnectionCommand.h
  12458. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12459. * src/PeerChokeCommand.cc
  12460. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12461. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12462. (execute): Use PeerHandle.
  12463. * src/PeerConnection.h
  12464. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12465. (socket): Changed its type to SocketHandle.
  12466. (PeerConnection): Replaced Socket with SocketHandle.
  12467. * src/PeerConnection.cc
  12468. (PeerConnection): Replaced Socket with SocketHandle.
  12469. * src/PeerInteractionCommand.h
  12470. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12471. Replaced Peer with PeerHandle.
  12472. * src/PeerInteractionCommand.cc
  12473. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12474. Replaced Peer with PeerHandle.
  12475. (executeInternal): Use disableWriteCheckSocket.
  12476. Use HandshakeMessageHandle.
  12477. (receiveMessages): Use PeerMessageHandle.
  12478. (prepareForNextPeer): Use PeerHandle.
  12479. * src/HttpProxyRequestCommand.h
  12480. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12481. * src/HttpResponseCommand.cc
  12482. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12483. * src/TorrentMan.cc
  12484. (nullPeer): Added external reference.
  12485. (~TorrentMan): Removed the deallocation of the elements of peers.
  12486. (addPeer): Rewritten.
  12487. (isPeerAvailable): Use nullPeer.
  12488. (deleteOldpeers): Replaced with deleteErrorPeer.
  12489. (deleteErrorPeer): New function.
  12490. (getPeer): Use PeerHandle and nullPeer.
  12491. (hasMissingPiece): Replaced Peer with PeerHandle.
  12492. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12493. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12494. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12495. (getMissingPiece): Replaced Peer with PeerHandle.
  12496. * src/FtpNegotiateCommand.cc
  12497. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12498. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12499. (recvGreeting): Use disableWriteCheckSocket.
  12500. (recvPasv): Removed the allocation of Socket.
  12501. Use disableReadCheckSocket.
  12502. (sendRestPasv): Use disableWriteCheckSocket.
  12503. (recvRetr): Changed assertion.
  12504. * src/PeerInteraction.h
  12505. (SharedHandle.h): Included SharedHandle.h.
  12506. (PeerMessageHandle): New type definition.
  12507. (HandshakeMessageHandle): New type definition.
  12508. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12509. (peer): Changed its type to PeerHandle.
  12510. (createHandshakeMessage): Replaced HandshakeMessage with
  12511. HandshakeMessageHandle.
  12512. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12513. (PeerInteraction): Replaced Peer with PeerHandle.
  12514. Replaced Socket with SocketHandle.
  12515. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12516. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12517. (receiveHandshake): Replaced HandshakeMessage with
  12518. HandshakeMessageHandle.
  12519. * src/PeerInteraction.cc
  12520. (PeerInteraction): Replaced Peer with PeerHandle.
  12521. Replaced Socket with SocketHandle.
  12522. (~PeerInteraction): Removed the deallocation of the elements of
  12523. messageQueue.
  12524. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12525. (isSendingMessageInProgress): Replaced PeerMessage with
  12526. PeerMessageHandle.
  12527. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12528. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12529. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12530. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12531. (abortPiece): Use PeerMessageHandle.
  12532. (receiveHandshake): Replaced HandshakeMessage with
  12533. HandshakeMessageHandle. Removed try-catch block.
  12534. (createHandshakeMessage): Replaced HandshakeMessage with
  12535. HandshakeMessageHandle.
  12536. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12537. Removed try-catch block.
  12538. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12539. * src/HttpProxyResponseCommand.cc
  12540. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12541. * src/FtpTunnelResponseCommand.h
  12542. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12543. * src/HttpConnection.cc
  12544. (HttpConnection): Replaced Socket with SocketHandle.
  12545. * src/PeerAbstractCommand.cc
  12546. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12547. (~PeerAbstractCommand): Removed the deallocation of socket.
  12548. Use disableReadCheckSocket, disableWriteCheckSocket.
  12549. (disableReadCheckSocket): New function.
  12550. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12551. (disableWriteCheckSocket): New function.
  12552. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12553. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12554. * src/FtpTunnelRequestCommand.cc
  12555. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12556. (~FtpTunnelRequestCommand): Corrected indentation.
  12557. * src/DownloadCommand.h
  12558. (DownloadCommand): Replaced Socket with SocketHandle.
  12559. * src/PeerListenCommand.cc
  12560. (PeerListenCommand): Removed the initialization of socket.
  12561. (~PeerListenCommand): Removed the deallocation of socket.
  12562. (bindPort): Use SocketHandle.
  12563. (execute): Use SocketHandle and PeerHandle.
  12564. * src/FtpDowndloadCommand.cc
  12565. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12566. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12567. * src/main.cc
  12568. (main): Corrected indentation.
  12569. * src/HttpInitiateConnectionCommand.cc
  12570. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12571. (executeInternal): Removed the allocation of socket.
  12572. * src/HttpRequestCommand.h
  12573. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12574. * src/FtpNegotiationCommand.h
  12575. (dataSocket): Changed its type to SocketHandle.
  12576. (serverSocket): Changed its type to SocketHandle.
  12577. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12578. * src/TorrentMan.h
  12579. (MAX_PEER_UPDATE): Removed.
  12580. (MAX_PEERS): New definition.
  12581. (Peers): The element is now of type PeerHandle.
  12582. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12583. (getPeer): Replaced Peer with PeerHandle.
  12584. (deleteOldErrorPeers): Removed.
  12585. (deleteErrorPeer): New function.
  12586. (hasMissingPiece): Replaced Peer with PeerHandle.
  12587. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12588. (getMissingPiece): Replaced Peer with PeerHandle.
  12589. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12590. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12591. (addActivePeer): Replaced Peer with PeerHandle.
  12592. (deleteActivePeer): Replaced Peer with PeerHandle.
  12593. Added a check for the return value of find.
  12594. * src/FtpTunnelResponseCommand.cc
  12595. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12596. * src/FtpInitiateConnectionCommand.cc
  12597. (executeInternal): Removed the allocation of socket.
  12598. * src/DownloadEngine.h
  12599. (Sockets): An element is now of type SocketHandle.
  12600. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12601. (CommandUuids): New type definition.
  12602. (rsockets): Changed its type to SockCmdMap.
  12603. (wsockets): Changed its type to SockCmdMap.
  12604. (addSocket): Rewritten.
  12605. (deleteSocket): Rewritten.
  12606. (addSocketForReadCheck): Rewritten.
  12607. (deleteSocketForReadCheck): Rewritten.
  12608. (addSocketForWriteCheck): Rewritten.
  12609. (deleteSocketForWriteCheck): Rewritten.
  12610. (PairFind): New template class.
  12611. * src/HttpDownloadCommand.h
  12612. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12613. * src/FtpConnection.cc
  12614. (FtpConnection): Replaced Socket with SocketHandle.
  12615. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12616. block.
  12617. * src/InitiateConnectionCommandFactory.cc
  12618. (DlAbortEx.h): Included DlAbortEx.h.
  12619. (createInitiateConnectionCommand): Throw exception if the protocol of
  12620. requested URI is not supported.
  12621. * src/Peer.cc
  12622. (nullPeer): Changed its type to PeerHandle.
  12623. (operator==): New function.
  12624. (operator!=): New function.
  12625. * src/Peer.h
  12626. (SharedHandle.h): Included SharedHandle.h.
  12627. (operator==): New function.
  12628. (operator!=): New function.
  12629. (Peer): Added the default constructor.
  12630. Use resetStatus() to initialize member variables.
  12631. (nullPeer): Removed.
  12632. * src/TrackerUpdateCommand.cc
  12633. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12634. with MIN_PEERS.
  12635. * src/PeerListenCommand.h
  12636. (socket): Changed its type to SocketHandle.
  12637. * src/Command.h
  12638. (CommandUuid): New type definition.
  12639. (uuid): New variable.
  12640. (uuidGen): New variable.
  12641. (Command): Added the initialization of uuid.
  12642. (getUuid): New function.
  12643. * src/Socket.h
  12644. (Socket): Removed.
  12645. (SocketHandle): New type definition.
  12646. * src/DownloadEngine.h
  12647. (FindCommand): New function object.
  12648. (run): The portion of socket check was rewritten.
  12649. (SetDescriptor): New function object.
  12650. (AccumulateActiveCommandUuid): New function object.
  12651. (waitData): Rewritten.
  12652. (addSocket): Rewritten.
  12653. (deleteSocket): Rewritten.
  12654. (addSocketForReadCheck): Rewritten.
  12655. (addSocketForWriteCheck): Rewritten.
  12656. (deleteSocketForReadCheck): Rewritten.
  12657. (deleteSocketForWriteCheck): Rewritten.
  12658. * src/HttpProxyResponseCommand.h
  12659. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12660. * src/HttpConnection.h
  12661. (socket): Changed its type to SocketHandle.
  12662. (HttpConnection): Replaced Socket with SocketHandle.
  12663. * src/PeerInitiateConnectionCommand.cc
  12664. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12665. (executeInternal): Removed the allocation of socket.
  12666. (prepareForNextPeer): Use PeerHandle.
  12667. * src/PeerMessage.h
  12668. (peer): Changed its type to PeerHandle.
  12669. (getPeer): Replaced Peer with PeerHandle.
  12670. (setPeer): Replaced Peer with PeerHandle.
  12671. * src/DownloadCommand.cc
  12672. (DownloadCommand): Replaced Socket with SocketHandle.
  12673. * src/FtpConnection.h
  12674. (socket): Changed its type to SocketHandle.
  12675. (FtpConnection): Replaced Socket with SocketHandle.
  12676. (sendPort); Replaced Socket with SocketHandle.
  12677. * src/FtpDowndloadCommand.h
  12678. (ctrlSocket): Changed its type to SocketHandle.
  12679. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12680. * src/HttpProxyRequestCommand.cc
  12681. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12682. * src/FtpTunnelRequestCommand.h
  12683. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12684. etc
  12685. * src/PeerChokeCommand.h
  12686. (setAllPeerChoked): Removed.
  12687. (setAllPeerResetDelta): Removed.
  12688. * src/PeerChokeCommand.cc
  12689. (setAllPeerChoked): Removed.
  12690. (ChokePeer): New function object.
  12691. (setAllPeerResetDelta): Removed.
  12692. (ResetDelta): New function object.
  12693. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12694. (execute): Show download speed when the local node is a seeder.
  12695. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12696. using STL.
  12697. * src/TrackerWatcherCommand.h
  12698. (MIN_PEERS): Removed.
  12699. * src/TorrentMan.cc
  12700. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12701. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12702. To fix the bug that .aria2 file is not saved if downloading is stopped
  12703. by the errors:it results that aria2 can not resume downloading:
  12704. * src/main.cc
  12705. (normalDownload): Added the call to save().
  12706. (main): Added the deletion of the elements in 'reserved'.
  12707. To fix log:
  12708. * src/PeerInteraction.cc
  12709. (receiveHandshake): Fixed log.
  12710. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12711. To improve download performance in BitTorrent:
  12712. * src/TorrentMan.cc
  12713. (getPeer): Check the number of connections. Return nullPeer if
  12714. it is greater than MAX_PEER_UPDATE.
  12715. This code was originally here, but was removed in 0.5.1.
  12716. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12717. To improve the conditional compilation:
  12718. * src/MultiDiskWriter.h:
  12719. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12720. * src/MultiDiskWriter.cc:
  12721. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12722. * src/Util.h:
  12723. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12724. Added ENABLE_BITTORRENT around computeFastSet().
  12725. * src/Util.cc:
  12726. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12727. Added ENABLE_BITTORRENT around computeFastSet().
  12728. * src/messageDigest.h:
  12729. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12730. * src/ShaVisitor.h:
  12731. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12732. * src/ShaVisitor.cc:
  12733. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12734. * src/main.cc:
  12735. Added ENABLE_BITTORRENT around includes and blocks related to
  12736. BitTorrent.
  12737. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12738. digest support is not available.
  12739. * src/AbstractDiskWriter.h:
  12740. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12741. * src/AbstractDiskWriter.cc:
  12742. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12743. * src/MetalinkEntry.cc
  12744. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12745. support is not available.
  12746. To add command-line options for Metalink:
  12747. * src/main.cc:
  12748. Added metalink-version, metalink-language, metalink-os,
  12749. follow-metalink.
  12750. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12751. * src/main.cc: Use these definition.
  12752. * Release 0.6.0
  12753. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12754. To add Metalink support(http/ftp only):
  12755. * src/AbstractCommand.h
  12756. (tryReserved): New function.
  12757. * src/AbstractCommand.cc
  12758. (execute): Call tryReserved().
  12759. (tryReserved): New function.
  12760. * src/Request.h
  12761. (Requests): New type definition.
  12762. * src/SegmentMan.h
  12763. (reserved): New variable.
  12764. * src/Util.h
  12765. (fileChecksum): New function.
  12766. (toUpper): New function.
  12767. (toLower): New function.
  12768. * src/Util.cc
  12769. (messageDigest.h): Included.
  12770. (trim): Trim \r\n\t.
  12771. (fileChecksum): New function.
  12772. (toUpper): New function.
  12773. (toLower): New function.
  12774. * src/main.cc
  12775. (normalDownload): New function.
  12776. (main): Added 2 command-line options: metalink-file,
  12777. metalink-connection. Their usage has not been written yet.
  12778. * src/MetalinkProcessor.h: New class.
  12779. * src/Xml2MetalinkProcessor.h: New class.
  12780. * src/Xml2MetalinkProcessor.cc: New class.
  12781. * src/MetalinkEntry.h: New class.
  12782. * src/MetalinkEntry.cc: New class.
  12783. * src/MetalinkResource.h: New class.
  12784. * src/MetalinkResource.cc: New class.
  12785. To add md5 message digest checking:
  12786. * src/messageDigest.h: Rewritten.
  12787. * src/MultiDiskWriter.cc: Updated according to the changes in
  12788. messageDigest.h.
  12789. * src/ShaVisitor.cc: Updated according to the changes in
  12790. messageDigest.h.
  12791. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12792. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12793. messageDigest.h.
  12794. To fix a bug that causes segfault when the payload length in peer
  12795. message is less than 0:
  12796. * src/PeerConnection.cc:
  12797. (receiveMessage): Fixed the bug.
  12798. * src/PeerMessageUtil.cc
  12799. (checkLength): Throw an exception if length is less than or equals to
  12800. 0.
  12801. To add new interfaces to Base64 encoding/decoding:
  12802. * src/Base64.h
  12803. (part_encode): Changed the method signature.
  12804. (encode): New function(overload).
  12805. (decode): New function(overload).
  12806. * src/Base64.cc
  12807. (part_encode): Rewritten.
  12808. (encode): Rewritten.
  12809. (encode): New function(overload).
  12810. To prevent a peer to download same piece if there is an error in
  12811. checksum:
  12812. * src/PieceMessage.cc
  12813. (receivedAction): Call peerInteraction->abortPiece().
  12814. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12815. To fix the bug that causes same have message is sent many times to
  12816. a single peer.
  12817. * src/Time.cc
  12818. (isNewer): Use Util::difftv().
  12819. * src/Util.cc
  12820. (difftv): Added a cast to (long long int).
  12821. * src/TorrentMan.cc
  12822. (advertisePiece): Use push_front.
  12823. (getAdvertisedPieceIndexes): A performance improvement was made.
  12824. To fix the bug that sends tracker requests without a sleep interval
  12825. when the number of connections is less than 15.
  12826. * src/TrackerWatcherCommand.cc
  12827. (execute): Now the number of connections is not a factor to decide
  12828. whether or not a tracker request should be sent or not.
  12829. * src/Time.h
  12830. (setTimeInSec): New function.
  12831. * src/Time.cc
  12832. (setTimeInSec): New function.
  12833. etc.
  12834. * src/ChokeMessage.cc
  12835. (receivedAction): Removed peer->snubbing = false
  12836. * src/PeerConnection.h
  12837. (receiveHandshake): Updated doc.
  12838. * src/TorrentMan.h
  12839. (getAdvertisedPieceIndexes): Updated the method signature.
  12840. * src/TorrentMan.cc
  12841. (getAdvertisedPieceIndexes): Updated the method signature.
  12842. * src/Time.h
  12843. (getTimeInMicros): Added a cast to (long long int).
  12844. (getTimeInMillis): Added a cast to (long long int).
  12845. * Release 0.5.2
  12846. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12847. To make a listening socket non-block:
  12848. * src/SocketCore.h
  12849. (setNonBlockingMode): New function.
  12850. * src/SocketCore.cc
  12851. (setNonBlockingMode): New function.
  12852. (beginListen): Added a call to setNonBlockingMode().
  12853. (acceptConnection): Call setNonBlockingMode().
  12854. (setBlockingMode): Updated.
  12855. To handle tracker's NAT-checking:
  12856. * src/PeerConnection.cc
  12857. (receiveHandshake): 'msg' param is filled with received data and
  12858. its length is assigned to 'length' param, even if all handshake
  12859. message is not yet received.
  12860. * src/PeerInteractionCommand.cc
  12861. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12862. a new peer connects to localhost.
  12863. A call to peerInteraction->sendHandshake() was removed because
  12864. it is called from peerInteraction->receiveHandshake(true).
  12865. * src/PeerInteraction.h
  12866. (quickReplied): New variable.
  12867. (receiveHandshake): Added an argument.
  12868. * src/PeerInteraction.cc
  12869. (PeerInteraction): Added the initialization of quickReplied.
  12870. (receiveHandshake): Send handshake message as soon as the info hash
  12871. in a handshake message from a peer is correct.
  12872. To change the random part of peer id and key parameter:
  12873. * src/TorrentMan.h
  12874. (key): New variable.
  12875. * src/TorrentMan.cc
  12876. (setupInternal1): Use Util::randomAlpha() to generate random part
  12877. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12878. key is also generated by Util::randomAlpha() and it is now 8 character
  12879. long.
  12880. * src/Util.h
  12881. (randomAlpha): New function.
  12882. * src/Util.cc
  12883. (randomAlpha): New function.
  12884. * src/TrackerWatcherCommand.cc
  12885. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12886. Added no_peer_id=1.
  12887. Set snubbing flag to false when a choke message is received from a
  12888. snubbed peer.
  12889. * src/ChokeMessage.cc
  12890. (receivedAction): Set snubbing flag to false.
  12891. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12892. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12893. * src/SimpleLogger.h (writeHeader): New function.
  12894. * src/SimpleLogger.cc (writeHeader): New function.
  12895. (writeLog): Fixed the bug that causes segfaults if exception message
  12896. contains an unescaped "%" character.
  12897. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12898. when a tracker request fails.
  12899. * src/Request.cc (parseUrl): Query string is now handled properly.
  12900. * Release 0.5.1
  12901. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12902. To add Time class which represents a specific instant in time and
  12903. its precision is microseconds. Time checking procedures were rewritten
  12904. using this object.
  12905. * src/Time.h: New class.
  12906. * src/Time.cc: New class.
  12907. * src/AbstractCommand.h
  12908. (updateCheckPoint): Removed.
  12909. (isTimeoutDetected): Removed.
  12910. (checkPoint): Changed the type to Time.
  12911. (timeout): New variable.
  12912. (setTimeout): New function.
  12913. * src/AbstractCommand.cc
  12914. (AbstractCommand): Removed the initialization of checkPoint.
  12915. Added the initialization of timeout.
  12916. (updateCheckPoint): Removed.
  12917. (isTimeoutDetected): Removed.
  12918. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12919. * src/PeerChokeCommand.h
  12920. (checkPoint): Changed the type to Time.
  12921. * src/PeerChokeCommand.cc
  12922. (PeerChokeCommand): Removed the initialization of checkPoint.
  12923. (execute): Rewritten using Time object.
  12924. * src/TrackerWatcherCommand.h
  12925. (checkPoint): Changed the type to Time.
  12926. * src/TrackerWatcherCommand.cc
  12927. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12928. (execute): Rewritten.
  12929. * src/ConsoleDownloadEngine.h
  12930. (cp): Changed the type to Time.
  12931. (startup): Changed the type to Time.
  12932. * src/ConsoleDownloadEngine.cc
  12933. (initStatistics): Use cp.reset(), startup.reset().
  12934. (calculateStatistics): Rewritten using Time object.
  12935. * src/PeerAbstractCommand.h
  12936. (updateCheckPoint): Removed.
  12937. (isTimeoutDetected): Removed.
  12938. (checkPoint): Changed the type to Time.
  12939. * src/PeerAbstractCommand.cc
  12940. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12941. (updateCheckPoint): Removed.
  12942. (isTimeoutDetected): Removed.
  12943. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12944. * src/PeerInteractionCommand.cc
  12945. (PeerInteractionCommand): Removed the initializations of struct
  12946. timeval variables.
  12947. * src/PeerInteractionCommand.h
  12948. (keepAliveCheckPoint): Changed the type to Time.
  12949. (chokeCheckPoint): Changed the type to Time.
  12950. (freqCheckPoint): Changed the type to Time.
  12951. (haveCheckTime): Changed the type to Time.
  12952. * src/PeerInteractionCommand.cc
  12953. (executeInternal): Rewritten using Time object.
  12954. (detectMessageFlooding): Rewritten using Time object.
  12955. (checkLongTimePeerChoking): Rewritten using Time object.
  12956. (sendKeepAlive): Rewritten using Time object.
  12957. (checkHave): Rewritten using Time object.
  12958. * src/SleepCommand.h
  12959. (checkPoint): Changed the type to Time.
  12960. * src/SleepCommand.cc
  12961. (SleepCommand): Removed the initialization of checkPoint.
  12962. (execute): Rewritten using Time object.
  12963. * src/TorrentAutoSaveCommand.h
  12964. (checkPoint): Changed the type to Time.
  12965. * src/TorrentAutoSaveCommand.cc
  12966. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12967. (execute): Rewritten.
  12968. * src/DownloadCommand.h
  12969. (sw): Changed the type to Time.
  12970. * src/DownloadCommand.cc
  12971. (DownloadCommand): Removed the initialization of sw.
  12972. (executeInternal): Rewritten.
  12973. * src/RequestSlot.h
  12974. (dispatchedTime): Changed the type to Time.
  12975. * src/RequestSlot.cc
  12976. (RequestSlot): Removed the call to setDispatchedTime().
  12977. (setDispatchedTime): Rewirtten.
  12978. (isTimeout): Rewritten.
  12979. (getLatencyInMillis): Rewritten.
  12980. * src/TorrentDownloadEngine.h
  12981. (cp): Changed the type to Time[2].
  12982. (startup): Changed the type to Time.
  12983. * src/TorrentDownloadEngine.cc
  12984. (initStatistics): Rewritten.
  12985. (calculateStatistics): Rewritten.
  12986. * src/DownloadEngine.cc
  12987. (run): Rewritten.
  12988. To detect all attempts to connect to the tracker are failed:
  12989. * src/AbstractCommand.cc
  12990. (execute): Increment e->segmentMan->errors if a command aborted.
  12991. * src/SegmentMan.h
  12992. (errors): New variable.
  12993. * src/SegmentMan.cc
  12994. (SegmentMan): Added the initialization of errors.
  12995. (init): Added the initialization of errors.
  12996. * src/TrackerWatcherCommand.cc
  12997. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12998. request was failed.
  12999. To handle snubbed peers:
  13000. * src/PeerChokeCommand.cc
  13001. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13002. (execute): Snubbed peers don't get unchoked.
  13003. * src/PeerInteraction.h
  13004. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13005. * src/PeerInteraction.cc
  13006. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13007. back the requested 16k block in 60 seconds.
  13008. * src/PieceMessage.cc
  13009. (receivedAction): A peer's snubbed state is cleard if it sends
  13010. the requested 16k block in 60 seconds.
  13011. * src/Peer.h
  13012. (snubbing): New variable.
  13013. * src/Peer.cc
  13014. (resetStatus): Added snubbed = false.
  13015. To fix the bug that causes have message is not sent:
  13016. * src/PeerInteractionCommand.cc
  13017. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13018. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13019. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13020. * src/TorrentMan.h
  13021. (HaveEntry): New class.
  13022. (advertisePiece): Rewritten.
  13023. (getAdvertisedPieceIndexes): Rewritten.
  13024. (Haves): Changed the type.
  13025. (getAdvertisedPieceIndexes): Added an argument.
  13026. Others:
  13027. * src/TorrentMan.h
  13028. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13029. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13030. * src/TorrentMan.cc
  13031. (getPeer): Don't check the number of connections here.
  13032. (setupInternal1): Changed peerId.
  13033. * src/PeerInteractionCommand.h
  13034. (KEEP_ALIVE_INTERVAL): New definition.
  13035. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13036. * src/main.cc
  13037. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13038. * src/DownloadEngine.h: Removed unnecessary header includes.
  13039. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13040. To fix the bug that causes segfaults if a tracker returns a zero-length
  13041. list as "peers":
  13042. * src/TrackerUpdateCommand.cc
  13043. (execute): Added a check to see wether the type of peers is Data*.
  13044. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13045. * Release 0.5.0
  13046. To fix compile issue with gcc3:
  13047. * src/CancelMessage.h
  13048. (ID): Renamed as ID_t
  13049. (ID_t): New enum.
  13050. * src/RejectMessage.h
  13051. (ID): Renamed as ID_t
  13052. (ID_t): New enum.
  13053. * src/SuggestPieceMessage.h
  13054. (ID): Renamed as ID_t
  13055. (ID_t): New enum.
  13056. * src/AllowedFastMessage.h
  13057. (ID): Renamed as ID_t
  13058. (ID_t): New enum.
  13059. * src/PortMessage.h
  13060. (ID): Renamed as ID_t
  13061. (ID_t): New enum.
  13062. * src/HaveNoneMessage.h
  13063. (ID): Renamed as ID_t
  13064. (ID_t): New enum.
  13065. * src/KeepAliveMessage.h
  13066. (ID): Renamed as ID_t
  13067. (ID_t): New enum.
  13068. * src/HaveAllMessage.h
  13069. (ID): Renamed as ID_t
  13070. (ID_t): New enum.
  13071. * src/UnchokeMessage.h
  13072. (ID): Renamed as ID_t
  13073. (ID_t): New enum.
  13074. * src/BitfieldMessage.h
  13075. (ID): Renamed as ID_t
  13076. (ID_t): New enum.
  13077. * src/PieceMessage.h
  13078. (ID): Renamed as ID_t
  13079. (ID_t): New enum.
  13080. * src/RequestMessage.h
  13081. (ID): Renamed as ID_t
  13082. (ID_t): New enum.
  13083. * src/NotInterestedMessage.h
  13084. (ID): Renamed as ID_t
  13085. (ID_t): New enum.
  13086. * src/ChokeMessage.h
  13087. (ID): Renamed as ID_t
  13088. (ID_t): New enum.
  13089. * src/InterestedMessage.h
  13090. (ID): Renamed as ID_t
  13091. (ID_t): New enum.
  13092. * src/HaveMessage.h
  13093. (ID): Renamed as ID_t
  13094. (ID_t): New enum.
  13095. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13096. * src/PeerAbstractCommand.h
  13097. (beforeSocketCheck): Removed.
  13098. * src/PeerAbstractCommand.cc
  13099. Modified in order to call executeInternal() even if socket check
  13100. and upload limit check fail.
  13101. * src/PeerInteractionCommand.h
  13102. (keepAlive): Removed.
  13103. (sendKeepAlive): New function.
  13104. (checkHave): New function.
  13105. (beforeSocketCheck): Removed.
  13106. * src/PeerInteractionCommand.cc
  13107. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13108. calls to checkHave() and sendKeepAlive().
  13109. (keepAlive): Renamed to sendKeepAlive().
  13110. (sendKeepAlive): New function.
  13111. (beforeSocketCheck): Removed.
  13112. (checkHave): New function.
  13113. * src/BitfieldMan.cc
  13114. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13115. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13116. 0.
  13117. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13118. * src/TorrentMan.h
  13119. (UsedPieces): Removed.
  13120. (Pieces): New type definition.
  13121. * src/Piece.h: Updated doc.
  13122. * src/Peer.h
  13123. (totalLength): Removed.
  13124. * src/Peer.cc
  13125. (updateLatency): Fixed the latency calculation.
  13126. * src/TorrentMan.cc
  13127. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13128. than or equal to MAX_PEER_LIST_SIZE.
  13129. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13130. then return false.
  13131. (deleteOldErrorPeers): Rewritten.
  13132. (deleteUsedPiece): Fixed the miss use of STL remove.
  13133. * src/PeerInteraction.h
  13134. (Pieces): Removed.
  13135. (deleteTimeoutRequestSlot): Removed.
  13136. (deleteCompletedRequestSlot): Removed.
  13137. (checkRequestSlot): New function.
  13138. * src/PeerInteraction.cc
  13139. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13140. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13141. (checkRequestSlot): New function.
  13142. * src/DownloadEngine.cc
  13143. (run): Clear activeSockets before calling waitData().
  13144. (waitData): Removed a call to activeSockets.clear().
  13145. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13146. To attempt to handle EINTR:
  13147. * src/SocketCore.cc
  13148. (isReadable): Added EINTR handling.
  13149. (isWritable): Added EINTR handling.
  13150. To improve the performance:
  13151. * src/AbstractCommand.cc
  13152. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13153. * src/PeerInteractionCommand.h
  13154. (receiveMessage): Renamed as receiveMessages().
  13155. (receiveMessages): New function.
  13156. * src/PeerInteractionCommand.cc
  13157. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13158. () function. detectMessageFlooding() is moved here.
  13159. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13160. (). The flooding detection for have message is comment out.
  13161. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13162. Util::difftv().
  13163. (receiveMessage): Renamed as receiveMessages().
  13164. (receiveMessages): New function.
  13165. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13166. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13167. * src/SleepCommand.cc
  13168. (execute): Use Util::difftvsec() instead of Util::difftv().
  13169. * src/BitfieldMan.h
  13170. (getNthBitIndex): New function.
  13171. (hasMissingPiece): New function.
  13172. (getAllMissingIndexes): New function.
  13173. * src/BitfieldMan.cc
  13174. (countSetBit): Rewritten.
  13175. (getNthBitIndex): New function.
  13176. (getMissingIndexRandomly): Rewritten.
  13177. (hasMissingPiece): New function.
  13178. (getAllMissingIndexes): New function.
  13179. * src/TorrentMan.cc
  13180. (hasMissingPiece): New function.
  13181. (deleteUsedPiece): Rewritten using STL.
  13182. * src/PeerInteraction.cc
  13183. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13184. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13185. (addRequests): Updated the number of pending requests.
  13186. * src/PeerAbstractCommand.cc
  13187. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13188. (execute): Returns true if TorrentMan::isHalt() is true.
  13189. Corrected the condition of upload limit checking.
  13190. * src/Util.h
  13191. (countBit): New function.
  13192. * src/Util.cc
  13193. (nbits): New variable.
  13194. (countBit): New function.
  13195. * src/DownloadEngine.h
  13196. (SockCmdMap): New type definition.
  13197. (waitData): Added an argument.
  13198. (addSocket): Added an argument.
  13199. (addSocketForReadCheck): Added an argument.
  13200. (addSocketForWriteCheck): Added an argument.
  13201. * src/DownloadEngine.cc
  13202. (run): Executes only commands whose sockets are ready to read or write.
  13203. All commands are executed in every 1 second.
  13204. (waitData): Calls select() again if it returned
  13205. EINTR.
  13206. (addSocket): Saves socket and command object pair to the map.
  13207. (deleteSocket): Deletes socket and command object pair from the map.
  13208. (addSocketForReadCheck): Added an argument.
  13209. (addSocketForWriteCheck): Added an argument.
  13210. * src/DownloadCommand.cc
  13211. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13212. To send "event=stopped" to the tracker when the application finishes:
  13213. * src/PeerChokeCommand.h
  13214. (checkPoint): New variable.
  13215. * src/PeerChokeCommand.cc
  13216. (PeerChokeCommand): Added the initialization of checkPoint.
  13217. (execute): The interval check is now done by checkPoint, not
  13218. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13219. * src/TorrentMan.h
  13220. (halt): New function.
  13221. (hasMissingPiece): New function.
  13222. (isHalt): New function.
  13223. (setHalt): New function.
  13224. * src/TorrentMan.cc
  13225. (TorrentMan): Added the initialization of halt.
  13226. * src/TorrentAutoSaveCommand.h
  13227. (checkPoint): New variable.
  13228. * src/PeerListenCommand.cc
  13229. (execute): Returns true if TorrentMan::isHalt() is true.
  13230. * src/main.cc
  13231. (setSignalHander): Added flags argument.
  13232. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13233. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13234. Removed printDownloadAbortMessage() after torrent downloading loop.
  13235. * src/TorrentAutoSaveCommand.cc
  13236. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13237. (execute): Returns true if TorrentMan::isHalt() is true.
  13238. The interval check is now done by checkPoint, not SleepCommand.
  13239. * src/TrackerWatcherCommand.cc
  13240. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13241. event=stopped.
  13242. * src/TrackerUpdateCommand.cc
  13243. (prepareForRetry): Do not use SleepCommand here.
  13244. (execute): Returns true if TorrentMan::isHalt() is true.
  13245. Others:
  13246. * src/TorrentMan.cc
  13247. (getMissingPieceIndex): Updated log message.
  13248. * src/PeerInteraction.cc
  13249. (createPeerMessag): Updated log message.
  13250. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13251. To add the ability to download several pieces in mix in a command and
  13252. increase the number of request slots according to request-cancel
  13253. latency:
  13254. * src/PeerInteractionCommand.cc
  13255. (executeInternal): The number of messages to be received at a time
  13256. is increased from 10 to 50.
  13257. * src/LogFactory
  13258. (getInstance): Added NullLogger.
  13259. * src/NullLogger.h: New class.
  13260. * src/BitfieldMan.h
  13261. (getMissingIndex): New function.
  13262. * src/BitfieldMan.cc
  13263. (getMissingIndex): New function.
  13264. * src/TorrentMan.h
  13265. (checkOutPiece): New function.
  13266. (getMissingPieceIndex): New function.
  13267. (getMissingFastPieceIndex): New function.
  13268. (getMissingFastPiece): New function.
  13269. * src/TorrentMan.cc
  13270. (updatePiece): Rewritten using STL.
  13271. (syncPiece): Rewritten using STL.
  13272. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13273. checkOutPiece().
  13274. (getMissingPieceIndex): New function.
  13275. (getMissingFastPieceIndex): New function.
  13276. (getMissingFastPiece): New function.
  13277. (checkOutPiece): New function.
  13278. * src/PeerInteraction.h
  13279. (Pieces): New type definition.
  13280. (piece): Removed.
  13281. (pieces): New variable.
  13282. (getNewPieceAndSendInterest): Added the "piece" argument.
  13283. (abortPiece): Added the "piece" argument.
  13284. (abortAllPieces): New function.
  13285. (isInRequestSlot): New function.
  13286. (hasDownloadPiece): Added the "index" argument.
  13287. (setDownloadPiece): Removed.
  13288. (getDownloadPiece): Added the "index" argument.
  13289. (updatePiece): New function.
  13290. (createRequestMessage): Added the "index" argument.
  13291. * src/PeerInteraction.cc
  13292. (onChoked): Rewritten.
  13293. (abortPiece): Rewirtten.
  13294. (abortAllPieces): New function.
  13295. (deleteTimeoutRequestSlot): Rewritten.
  13296. Clarified code a little bit.
  13297. (deleteCompletedRequestSlot): Rewritten.
  13298. (isInRequestSlot): New function.
  13299. (syncPiece): Rewritten.
  13300. (updatePiece): New function.
  13301. (getNewPieceAndSendInterest): Rewritten.
  13302. (addRequests): Rewritten.
  13303. (getDownloadPiece): Rewritten.
  13304. (hasDownloadPiece): Rewritten.
  13305. (createRequestMessage): Added the "index" argument.
  13306. * src/common.h
  13307. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13308. (DIV_FLOOR): New definition.
  13309. * src/PieceMessage.cc
  13310. (receivedAction): Update request-piece latency here.
  13311. * src/RequestSlot.h
  13312. (getLatencyInMillis): New function.
  13313. * src/RequestSlot.cc
  13314. (isTimeout): Rewritten using getLatencyInMillis.
  13315. (getLatencyInMillis): New function.
  13316. * src/Piece.h
  13317. (operator==): New function.
  13318. (getMissingBlockIndex): New function.
  13319. * src/Piece.cc
  13320. (operator==): New function.
  13321. (getMissingBlockIndex): New function.
  13322. * src/Peer.h
  13323. (DEFAULT_LATENCY): New definition.
  13324. (latency): New variable.
  13325. (updateLatency): New function.
  13326. (getLatency): New function.
  13327. * src/Peer.cc
  13328. (resetStatus): Reset latecy.
  13329. (updateLatency): New function.
  13330. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13331. * src/SocketCore.cc
  13332. (isReadable): Added secure to the condition.
  13333. * src/HttpConnection.cc
  13334. (receiveResponse): Fixed a bug that causes no response header
  13335. exception.
  13336. * src/Peer.h
  13337. (getFastSet): Fixed the return value type.
  13338. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13339. To remove a wait from download loop:
  13340. * src/DownloadEngine.cc
  13341. (run): Comment out shortSleep.
  13342. To rewrite the message handling:
  13343. * src/SimplePeerMessage.h: New class.
  13344. * src/SimplePeerMessage.cc: New class.
  13345. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13346. (msg): New variable.
  13347. (create): New function.
  13348. (send): Removed.
  13349. (getMessage): New function.
  13350. (getMessageLength): New function.
  13351. * src/CancelMessage.cc
  13352. (create): New function.
  13353. (receivedAction): Replaced deleteRequestMessageInQueue with
  13354. rejectPieceMessageInQueue.
  13355. (send): Removed.
  13356. (getMessage): New function.
  13357. (getMessageLength): New function.
  13358. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13359. (msg): New variable.
  13360. (msgLength): New variable.
  13361. (~BitfieldMessage): Deleted msg.
  13362. (send): Removed.
  13363. (getMessage): New function.
  13364. (getMessageLength): New function.
  13365. * src/BitfieldMessage.cc
  13366. (create): New function.
  13367. (send): Removed.
  13368. (getMessage): New function.
  13369. (getMessageLength): New function.
  13370. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13371. (msg): New variable.
  13372. (sendPredicate): New function.
  13373. (onSendComplete): New function.
  13374. (send): Removed.
  13375. (getMessage): New function.
  13376. (getMessageLength): New function.
  13377. (create): New function.
  13378. * src/ChokeMessage.cc
  13379. (create): New function.
  13380. (send): Removed.
  13381. (sendPredicate): New function.
  13382. (getMessage): New function.
  13383. (getMessageLength): New function.
  13384. (onSendComplete): New function.
  13385. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13386. (msg): New variable.
  13387. (send): Removed.
  13388. (getMessage): New function.
  13389. (getMessageLength): New function.
  13390. * src/KeepAliveMessage.cc
  13391. (send): Removed.
  13392. (getMessage): New function.
  13393. (getMessageLength): New function.
  13394. * src/PortMessage.h
  13395. (create): New function.
  13396. (receivedAction): Updated log message.
  13397. * src/PortMessage.cc: New file.
  13398. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13399. (msg): New variable.
  13400. (sendPredicate): New function.
  13401. (onSendComplete): New function.
  13402. (create): New function.
  13403. (send): Removed.
  13404. (getMessage): New function.
  13405. (getMessageLength): New function.
  13406. * src/UnchokeMessage.cc
  13407. (create): New function.
  13408. (send): Removed.
  13409. (sendPredicate): New function.
  13410. (getMessage): New function.
  13411. (getMessageLength): New function.
  13412. (onSendComplete): New function.
  13413. * src/PieceMessage.h
  13414. (leftPieceDataLength): Removed.
  13415. (leftDataLength): New variable.
  13416. (headerSend): New variable.
  13417. (pendingCount): New variable.
  13418. (msgHeader): New variable.
  13419. (sendPieceData): New function.
  13420. (incrementPendingCount): New function.
  13421. (isPendingCountMax): New function.
  13422. (create): New function.
  13423. (getMessageHeader): New function.
  13424. (getMessageHeaderLength): New function.
  13425. * src/PieceMessage.cc
  13426. (create): New function.
  13427. (getMessageHeader): New function.
  13428. (getMessageHeaderLength): New function.
  13429. (send): Rewritten.
  13430. (sendPieceData): New function.
  13431. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13432. (msg): New variable.
  13433. (create): New function.
  13434. (getMessage): New function.
  13435. (getMessageLength): New function.
  13436. * src/HaveMessage.cc
  13437. (create): New function.
  13438. (send): Removed.
  13439. (sendPieceData): New function.
  13440. (getMessage): New function.
  13441. (getMessageLength): New function.
  13442. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13443. (msg): New variable.
  13444. (create): New function.
  13445. (send): Removed.
  13446. (getMessage): New function.
  13447. (getMessageLength): New function.
  13448. * src/RequestMessage.cc
  13449. (create): New function.
  13450. (receivedAction): Added the handling of fast extension.
  13451. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13452. (send): Removed.
  13453. (getMessage): New function.
  13454. (getMessageLength): New function.
  13455. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13456. (msg): New variable.
  13457. (sendPredicate): New function.
  13458. (onSendComplete): New function.
  13459. (create): New function.
  13460. (getMessage): New function.
  13461. (getMessageLength): New function.
  13462. * src/InterestedMessage.cc
  13463. (create): New function.
  13464. (send): Removed.
  13465. (sendPieceData): New function.
  13466. (getMessage): New function.
  13467. (getMessageLength): New function.
  13468. (onSendComplete): New function.
  13469. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13470. (msg): New variable.
  13471. (sendPieceData): New function.
  13472. (onSendComplete): New function.
  13473. (create): New function.
  13474. (send): Removed.
  13475. (getMessage): New function.
  13476. (getMessageLength): New function.
  13477. * src/NotInterestedMessage.cc
  13478. (create): New function.
  13479. (send): Removed.
  13480. (sendPredicate): New function.
  13481. (getMessage): New function.
  13482. (getMessageLength): New function.
  13483. (onSendComplete): New function.
  13484. * src/AllowedFastMessage.h: New class.
  13485. * src/AllowedFastMessage.cc: New class.
  13486. * src/RejectMessage.h: New class.
  13487. * src/RejectMessage.cc: New class.
  13488. * src/SuggestPieceMessage.h: New class.
  13489. * src/SuggestPieceMessage.cc: New class.
  13490. * src/HaveAllMessage.h: New class.
  13491. * src/HaveAllMessage.cc: New class.
  13492. * src/HaveNoneMessage.h: New class.
  13493. * src/HaveNoneMessage.cc: New class.
  13494. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13495. (msg): New variable.
  13496. (reserved): New variable.
  13497. (create): New function.
  13498. (getId): New function.
  13499. (receivedAction): New function.
  13500. (getMessage): New function.
  13501. (getMessageLength): New function.
  13502. (isFastExtensionSupported): New function.
  13503. * src/HandshakeMessage.cc
  13504. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13505. (create): New function.
  13506. (getMessage): New function.
  13507. (getMessageLength): New function.
  13508. (toString): Added the output of reserved field.
  13509. (check): Added const qualifier.
  13510. (isFastExtensionSupported): New function.
  13511. * src/PeerMessageUtil.h
  13512. (createChokeMessage): Removed.
  13513. (createUnchokeMessage): Removed.
  13514. (createInterestedMessage): Removed.
  13515. (createNotInterestedMessage): Removed.
  13516. (createHaveMessage): Removed.
  13517. (createBitfieldMessage): Removed.
  13518. (createRequestMessage): Removed.
  13519. (createCancelMessage): Removed.
  13520. (createPieceMessage): Removed.
  13521. (createPortMessage): Removed.
  13522. (createChokeMessage): Removed.
  13523. (createUnchokeMessage): Removed.
  13524. (createInterestedMessage): Removed.
  13525. (createNotInterestedMessage): Removed.
  13526. (createHaveMessage): Removed.
  13527. (createBitfieldMessage): Removed.
  13528. (createRequestMessage): Removed.
  13529. (createCancelMessage): Removed.
  13530. (createPieceMessage): Removed.
  13531. (createKeepAliveMessage): Removed.
  13532. (createHandshakeMessage): Removed.
  13533. (setIntParam): New function.
  13534. (createPeerMessageString): New function.
  13535. * src/PeerMessageUtil.cc
  13536. (createChokeMessage): Removed.
  13537. (createUnchokeMessage): Removed.
  13538. (createInterestedMessage): Removed.
  13539. (createNotInterestedMessage): Removed.
  13540. (createHaveMessage): Removed.
  13541. (createBitfieldMessage): Removed.
  13542. (createRequestMessage): Removed.
  13543. (createCancelMessage): Removed.
  13544. (createPieceMessage): Removed.
  13545. (createPortMessage): Removed.
  13546. (createRequestMessage): Removed.
  13547. (createCancelMessage): Removed.
  13548. (createPieceMessage): Removed.
  13549. (createHaveMessage): Removed.
  13550. (createChokeMessage): Removed.
  13551. (createUnchokeMessage): Removed.
  13552. (createInterestedMessage): Removed.
  13553. (createNotInterestedMessage): Removed.
  13554. (createBitfieldMessage): Removed.
  13555. (createKeepAliveMessage): Removed.
  13556. (createHandshakeMessage): Removed.
  13557. (setIntParam): New function.
  13558. (createPeerMessageString): New function.
  13559. * src/PeerConnection.h
  13560. (peer): Removed.
  13561. (torrentMan): Removed.
  13562. (createNLengthMessage): Removed.
  13563. (setIntParam): Removed.
  13564. (writeOutgoingMessageLog): Removed all overloaded functions.
  13565. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13566. (sendMessage): New function.
  13567. (sendHandshake): Removed.
  13568. (sendKeepAlive): Removed.
  13569. (sendChoke): Removed.
  13570. (sendUnchoke): Removed.
  13571. (sendInterested): Removed.
  13572. (sendNotInterested): Removed.
  13573. (sendHave): Removed.
  13574. (sendBitfield): Removed.
  13575. (sendRequest): Removed.
  13576. (sendPiece): Removed.
  13577. (sendPieceHeader): Removed.
  13578. (sendPieceData): Removed.
  13579. (sendCancel): Removed.
  13580. (getPeer): Removed.
  13581. * src/PeerConnection.cc
  13582. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13583. (sendHandshake): Removed.
  13584. (sendKeepAlive): Removed.
  13585. (createNLengthMessage): Removed.
  13586. (setIntParam): Removed.
  13587. (writeOutgoingMessageLog): Removed all overloaded functions.
  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. (sendMessage): New function.
  13599. (sendCancel): Removed.
  13600. * src/PeerInteractionCommand.cc
  13601. (PeerInteractionCommand): Call setUploadLimit.
  13602. (executeInternal): Call setUploadLimit.
  13603. Added the handling of "inProgress" state of handshake message.
  13604. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13605. sendNow().
  13606. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13607. sendNow().
  13608. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13609. * src/TorrentMan.h
  13610. (PEER_ID_LENGTH): New definition.
  13611. (hasAllPieces): New function.
  13612. * src/TorrentMan.cc
  13613. (getMissingPiece): Added the handling of fast extension.
  13614. (cancelPiece): Call updatePiece().
  13615. (hasAllPieces): New function.
  13616. * src/PeerInteraction.h
  13617. (fastSet): New variable.
  13618. (getNewPieceAndSendInterest): Changed the return type to void.
  13619. (send): Renamed as sendMessages.
  13620. (deleteAllRequestSlot): Removed.
  13621. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13622. (cancelAllRequest): Removed all overloaded functions.
  13623. (deleteAllRequestSlot): Removed.
  13624. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13625. (rejectPieceMessageInQueue): New function.
  13626. (rejectAllPieceMessageInQueue): New function.
  13627. (onChoked): New function.
  13628. (isSendingMessageInProgress): New function.
  13629. (getCorrespondingRequestSlot): Changed its arguments.
  13630. (isInFastSet): New function.
  13631. (addFastSetIndex): New function.
  13632. (addRequests): New function.
  13633. (sendNow): Removed.
  13634. (trySendNow): Removed.
  13635. (sendBitfield): New function.
  13636. (sendAllowdFast): New function.
  13637. (createHaveAllMessage): New function.
  13638. (createHaveNoneMessage): New function.
  13639. (createRejectMessage): New function.
  13640. (createAllowedFastMessage): New function.
  13641. * src/PeerInteraction.cc
  13642. (send): Renamed as sendMessages.
  13643. (sendMessages): New function.
  13644. (MsgPushBack): New class.
  13645. (isSendingMessageInProgress): New function.
  13646. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13647. (rejectAllPieceMessageInQueue): New function.
  13648. Added the handling of fast extension.
  13649. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13650. (rejectPieceMessageInQueue): New function.
  13651. Added the handling of fast extension.
  13652. (deleteRequestSlot): Replaced for loop with std::find.
  13653. (onChoked): New function.
  13654. (deleteAllRequestSlot): Removed.
  13655. (abortPiece): Rewirtten.
  13656. (deleteTimeoutRequestSlot): Updated log messages.
  13657. (getCorrespondingRequestSlot): Changed its arguments.
  13658. (cancelAllRequest): Removed all overloaded functions.
  13659. (receiveHandshake): Added the check to see whether an incoming peer
  13660. supports fast extension.
  13661. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13662. PeerMessageUtil.
  13663. (createPeerMessage): Use create() of each message class instead of
  13664. PeerMessageUtil.
  13665. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13666. AllowedFastMessage were added.
  13667. (getNewPieceAndSendInterest): Changed its return value type to void.
  13668. Added the handling of fast extension.
  13669. (addRequests): New function.
  13670. (sendNow): Removed.
  13671. (sendHandshake): Rewritten.
  13672. (trySendNow): Removed.
  13673. (sendBitfield): New function.
  13674. (sendAllowdFast): New function.
  13675. (isInFastSet): New function.
  13676. (addFastSetIndex): New function.
  13677. (createRequestMessage): Use RequestMessage::create instead of
  13678. PeerMessageUtil.
  13679. (createCancelMessage): Use CancelMessage::create instead of
  13680. PeerMessageUtil.
  13681. (createPieceMessage): Use PieceMessage::create instead of
  13682. PeerMessageUtil.
  13683. (createHaveMessage): Use HaveMessage::create instead of
  13684. PeerMessageUtil.
  13685. (createChokeMessage): Use ChokeMessage::create instead of
  13686. PeerMessageUtil.
  13687. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13688. PeerMessageUtil.
  13689. (createInterestedMessage): Use InterestedMessage::create instead of
  13690. PeerMessageUtil.
  13691. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13692. of PeerMessageUtil.
  13693. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13694. PeerMessageUtil.
  13695. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13696. PeerMessageUtil.
  13697. (createHaveAllMessage): New function.
  13698. (createHaveNoneMessage): New function.
  13699. (createRejectMessage): New function.
  13700. (createAllowedFastMessage: New function.
  13701. * src/Util.h
  13702. (sha1Sum): New function.
  13703. (computeFastSet): New function.
  13704. * src/Util.cc
  13705. (sha1Sum): New function.
  13706. (computeFastSet): New function.
  13707. * src/Peer.h
  13708. (fastExtensionEnabled): New variable.
  13709. (fastSet): New variable.
  13710. (setAllBitfield): New function.
  13711. (setFastExtensionEnabled): New function.
  13712. (isFastExtensionEnabled): New function.
  13713. (addFastSetIndex): New function.
  13714. (getFastSet): New function.
  13715. (isInFastSet): New function.
  13716. (countFastSet): New function.
  13717. * src/Peer.cc
  13718. (isInFastSet): New function.
  13719. (addFastSetIndex): New function.
  13720. (setAllBitfield): New function.
  13721. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13722. sockets.
  13723. * src/PeerAbstractCommand.cc
  13724. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13725. and uploadLimit.
  13726. (execute): Changed the procedure of checking sockets. The upload speed
  13727. checking were added.
  13728. (setUploadLimit): New function.
  13729. (setUploadLimitCheck): New function.
  13730. * src/PeerAbstractCommand.h
  13731. (setUploadLimit): New function.
  13732. (setUploadLimitCheck): New function.
  13733. (uploadLimit): New variable.
  13734. (uploadLimitCheck): New variable.
  13735. To contact a tracker regularly:
  13736. * src/TrackerWatcherCommand.h (interval): New variable.
  13737. (checkPoint): New variable.
  13738. (TrackerWatcherCommand): Added interval argument.
  13739. * src/TrackerWatcherCommand.cc
  13740. (TrackerWatcherCommand): Initialized checkPoint.
  13741. (execute): Now a tracker is contacted in every specified period.
  13742. If peer list is not needed, send request with numwant=0.
  13743. * src/TrackerUpdateCommand.cc
  13744. (execute): Updated log messages.
  13745. * src/DownloadEngine.cc
  13746. (~DownloadEngine): Removed two asserts.
  13747. (waitData): Uncommented wfds. May be a bug fix.
  13748. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13749. * src/PeerInteractionCommand.h
  13750. (checkInactiveConnection): Removed.
  13751. * src/PeerInteractionCommand.cc
  13752. (executeInternal): Removed following function calls:
  13753. detectMessageFlooding(), checkLongTimePeerChoking and
  13754. checkInactiveConnection().
  13755. (checkInactiveConnection): Removed.
  13756. (detectMessageFlooding): Removed function call to
  13757. checkInactiveConnection().
  13758. * src/PeerMessageUtil.h
  13759. (createChokeMessage): New function. Overload.
  13760. (createUnchokeMessage): New function. Overload.
  13761. (createInterestedMessage): New function. Overload.
  13762. (createNotInterestedMessage): New function. Overload.
  13763. (createHaveMessage): New function. Overload.
  13764. (createBitfieldMessage): New function. Overload.
  13765. (createRequestMessage): New function. Overload.
  13766. (createCancelMessage): New function. Overload.
  13767. (createPieceMessage): New function. Overload.
  13768. (createKeepAliveMessage): New function. Overload.
  13769. * src/PeerMessageUtil.cc
  13770. (createChokeMessage): New function. Overload.
  13771. (createUnchokeMessage): New function. Overload.
  13772. (createInterestedMessage): New function. Overload.
  13773. (createNotInterestedMessage): New function. Overload.
  13774. (createHaveMessage): New function. Overload.
  13775. (createBitfieldMessage): New function. Overload.
  13776. (createRequestMessage): New function. Overload.
  13777. (createCancelMessage): New function. Overload.
  13778. (createPieceMessage): New function. Overload.
  13779. (createKeepAliveMessage): New function. Overload.
  13780. * src/SendMessageQueue.cc
  13781. (createRequestMessage): Use PeerMessageUtil.
  13782. (createCancelMessage): Use PeerMessageUtil.
  13783. (createPieceMessage): Use PeerMessageUtil.
  13784. (createHaveMessage): Use PeerMessageUtil.
  13785. (createChokeMessage): Use PeerMessageUtil.
  13786. (createUnchokeMessage): Use PeerMessageUtil.
  13787. (createInterestedMessage): Use PeerMessageUtil.
  13788. (createNotInterestedMessage): Use PeerMessageUtil.
  13789. (createBitfieldMessage): Use PeerMessageUtil.
  13790. (createKeepAliveMessage): Use PeerMessageUtil.
  13791. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13792. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13793. * src/PeerInteraction.h: New class.
  13794. * src/PeerInteraction.cc: New class.
  13795. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13796. Each peer message has its own class.
  13797. * src/PendingMessages.h: Removed.
  13798. * src/PendingMessages.cc: Removed. The sending process was moved to
  13799. each message class.
  13800. * src/RequestSlotMan.h: Removed.
  13801. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13802. SendMessageQueue.
  13803. * src/RequestMessage.h: New class.
  13804. * src/RequestMessage.cc: New class.
  13805. * src/CancelMessage.h: New class.
  13806. * src/CancelMessage.cc: New class.
  13807. * src/BitfieldMessage.h: New class.
  13808. * src/BitfieldMessage.cc: New class.
  13809. * src/ChokeMessage.h: New class.
  13810. * src/ChokeMessage.cc: New class.
  13811. * src/KeepAliveMessage.h: New class.
  13812. * src/KeepAliveMessage.cc: New class.
  13813. * src/PortMessage.h: New class.
  13814. * src/UnchokeMessage.h: New class.
  13815. * src/UnchokeMessage.cc: New class.
  13816. * src/PieceMessage.h: New class.
  13817. * src/PieceMessage.cc: New class.
  13818. * src/HaveMessage.h: New class.
  13819. * src/HaveMessage.cc: New class.
  13820. * src/BitfieldMessage.h: New class.
  13821. * src/BitfieldMessage.cc: New class.
  13822. * src/NotInterestedMessage.h: New class.
  13823. * src/NotInterestedMessage.cc: New class.
  13824. * src/InterestedMessage.h: New class.
  13825. * src/InterestedMessage.cc: New class.
  13826. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13827. (getSendMessageQueue): New function.
  13828. (setSendMessageQueue): New function.
  13829. * src/HandshakeMessage.cc: New class.
  13830. * src/PeerConnection.h (receiveMessage): Changed return value and
  13831. arguments.
  13832. (receiveHandshake): Changed return value and arguments.
  13833. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13834. here.
  13835. (receiveHandshake): Do not create handshake class here.
  13836. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13837. (piece): Removed.
  13838. (syncPiece): Removed.
  13839. (sendInterest): Removed.
  13840. (sendMessages): Removed.
  13841. (createRequestPendingMessage): Removed.
  13842. (checkPieceHash): Removed.
  13843. (erasePieceOnDisk): Removed.
  13844. (getNewPieceAndSendInterest): Removed.
  13845. (onGotNewPice): Removed.
  13846. (onGotWrongPiece): Removed.
  13847. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13848. Removed peerConnection, piece.
  13849. (~PeerInteractionCommand): Removed peerConnection.
  13850. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13851. (syncPiece): Moved to SendMessageQueue.
  13852. (decideChoking): Removed PendingMessage.
  13853. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13854. The action after receiving peer message was moved to each message
  13855. class.
  13856. (onGotNewPice): Moved to SendMessageQueue.
  13857. (onGotWrongPiece): Moved to SendMessageQueue.
  13858. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13859. (sendInterest): Moved to SendMessageQueue.
  13860. (createRequestPendingMessage): Removed.
  13861. (sendMessages): Moved to SendMessageQueue.
  13862. (onAbort): Use SendMessageQueue::abortPiece()
  13863. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13864. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13865. (checkPieceHash): Moved to SendMessageQueue.
  13866. (erasePieceOnDisk): Moved to SendMessageQueue.
  13867. * src/PeerMessageUtil.h
  13868. (createBitfieldMessage): Removed.
  13869. (createHaveMessage): Changed return value and arguments.
  13870. (createBitfieldMessage): Changed return value and arguments.
  13871. (createRequestCancelMessage): Removed.
  13872. (createPieceMessage): Changed return value and arguments.
  13873. (getShortIntParam): New function.
  13874. (checkIndex): Changed arguments.
  13875. (checkBegin): Changed arguments.
  13876. (checkLength): Changed arguments.
  13877. (checkPieceOffset): Removed.
  13878. (checkRange): New function.
  13879. (checkBitfield): Changed arguments.
  13880. (createPeerMessage): Removed.
  13881. (checkIntegrity): Removed.
  13882. (createHandshakeMessage): Changed arguments.
  13883. (createChokeMessage): New function.
  13884. (createUnchokeMessage): New function.
  13885. (createInterestedMessage): New function.
  13886. (createNotInterestedMessage): New function.
  13887. (createRequestMessage): New function.
  13888. (createCancelMessage): New function.
  13889. (createPortMessage): New function.
  13890. * src/PeerMessageUtil.cc
  13891. (createBitfieldMessage): Removed.
  13892. (createHaveMessage): Changed return value and arguments.
  13893. (createBitfieldMessage): Changed return value and arguments.
  13894. (createRequestCancelMessage): Removed.
  13895. (createPieceMessage): Changed return value and arguments.
  13896. (getShortIntParam): New function.
  13897. (checkIndex): Changed arguments.
  13898. (checkBegin): Changed arguments.
  13899. (checkLength): Changed arguments.
  13900. (checkPieceOffset): Removed.
  13901. (checkRange): New function.
  13902. (checkBitfield): Changed arguments.
  13903. (createPeerMessage): Removed.
  13904. (checkIntegrity): Removed.
  13905. (createHandshakeMessage): Changed arguments.
  13906. (createChokeMessage): New function.
  13907. (createUnchokeMessage): New function.
  13908. (createInterestedMessage): New function.
  13909. (createNotInterestedMessage): New function.
  13910. (createRequestMessage): New function.
  13911. (createCancelMessage): New function.
  13912. (createPortMessage): New function.
  13913. * src/PeerMessage.h
  13914. (id): Removed.
  13915. (index): Removed.
  13916. (begin): Removed.
  13917. (length): Removed.
  13918. (bitfield): Removed.
  13919. (bitfieldLength): Removed.
  13920. (block): Removed.
  13921. (blockLength): Removed.
  13922. (inProgress): New variable.
  13923. (cuid): New variable.
  13924. (peer): New variable.
  13925. (sendMessageQueue): New variable.
  13926. (logger): New variable.
  13927. (setBitfield): Removed.
  13928. (getBitfield): Removed.
  13929. (setBlock): Removed.
  13930. (getBlock): Removed.
  13931. (getBitfieldLength): Removed.
  13932. (getBlockLength): Removed.
  13933. (isInProgress): New function.
  13934. (toString): Made pure virtual.
  13935. (check): New function.
  13936. (send): New function.
  13937. (receivedAction): New function.
  13938. (getId): Made pure virtual.
  13939. (setId): Removed.
  13940. (getIndex): Removed.
  13941. (setIndex): Removed.
  13942. (getBegin): Removed.
  13943. (setBegin): Removed.
  13944. (getLength): Removed.
  13945. (setLength): Removed.
  13946. (getCuid): New function.
  13947. (setCuid): New function.
  13948. (getPeer): New function.
  13949. (setPeer): New function.
  13950. (getSendMessageQueue): New function.
  13951. (setSendMessageQueue): New function.
  13952. (ID): Removed.
  13953. * src/PeerMessage.cc
  13954. (setBitfield): Removed.
  13955. (setBlock): Removed.
  13956. (toString): Removed.
  13957. * src/TorrentMan.h
  13958. (getPieceLength): New function.
  13959. (getPieceLength): New function.
  13960. * src/SendMessageQueue.h
  13961. (REQUEST_TIME_OUT): New definition.
  13962. (RequestSlots): New definition.
  13963. (MessageQueue): New definition.
  13964. (requestSlotMan): Removed.
  13965. (pendingMessages): Removed.
  13966. (requestSlots): New variable.
  13967. (messageQueue): New variable.
  13968. (torrentMan): New variable.
  13969. (peerConnection): New variable.
  13970. (peer): New variable.
  13971. (piece): New variable.
  13972. (getNewPieceAndSendInterest): New function.
  13973. (createPeerMessage): New function.
  13974. (createHandshakeMessage): New function.
  13975. (send): Made private.
  13976. (setPeerMessageCommonProperty): New function.
  13977. (deleteAllRequestSlot): New function.
  13978. (deleteRequestMessageInQueue): New function.
  13979. (cancelAllRequest): Made private.
  13980. (cancelAllRequest): Made private.
  13981. (countRequestSlot): Made private.
  13982. (addPendingMessage): Removed.
  13983. (deletePendingPieceMessage): Removed.
  13984. (deletePendingRequestMessage): Removed.
  13985. (addMessage): New function.
  13986. (deletePieceMessageInQueue): New function.
  13987. (deleteTimeoutRequestSlot): Changed argument.
  13988. (deleteCompletedRequestSlot): Changed argument.
  13989. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13990. (getCorrespondingRequestSlot): New function.
  13991. (countPendingMessage): Removed.
  13992. (countMessageInQueue): New function.
  13993. (getTorrentMan): New function.
  13994. (getPeerConnection): New function.
  13995. (hasDownloadPiece): New function.
  13996. (getDownloadPiece): New function.
  13997. (setDownloadPiece): New function.
  13998. (syncPiece): New function.
  13999. (sendMessages): New function.
  14000. (sendNow): New function.
  14001. (trySendNow): New function.
  14002. (abortPiece): New function.
  14003. (sendHandshake): New function.
  14004. (receiveMessage): New function.
  14005. (receiveHandshake): New function.
  14006. (createRequestMessage): New function.
  14007. (createCancelMessage): New function.
  14008. (createPieceMessage): New function.
  14009. (createHaveMessage): New function.
  14010. (createChokeMessage): New function.
  14011. (createUnchokeMessage): New function.
  14012. (createInterestedMessage): New function.
  14013. (createNotInterestedMessage): New function.
  14014. (createBitfieldMessage): New function.
  14015. (createKeepAliveMessage): New function.
  14016. * src/SendMessageQueue.cc
  14017. (SendMessageQueue): Removed requestSlotMan.
  14018. Instantiated peerConnection here.
  14019. (~SendMessageQueue): Removed requestSlotMan.
  14020. Added deletion of peerConnection and the contents of messageQueue.
  14021. (send): Updated according to the change of messageQueue.
  14022. (addPendingMessage): Renamed to addMessage.
  14023. (addMessage): New function.
  14024. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14025. (deletePieceMessageInQueue): New function.
  14026. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14027. (deleteRequestMessageInQueue): New function.
  14028. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14029. here.
  14030. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14031. (...) was moved here.
  14032. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14033. moved here.
  14034. (deleteCompletedRequestSlot):
  14035. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14036. (getCorrespondingRequestSlot):
  14037. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14038. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14039. (countPendingMessage): Renamed to countMessageInQueue.
  14040. (countMessageInQueue): New function.
  14041. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14042. (receiveHandshake): New function.
  14043. (createHandshakeMessage): New function.
  14044. (receiveMessage): New function.
  14045. (createPeerMessage): New function.
  14046. (syncPiece): New function.
  14047. (getNewPieceAndSendInterest): New function.
  14048. (sendMessages): New function.
  14049. (sendNow): New function.
  14050. (trySendNow): New function.
  14051. (sendHandshake): New function.
  14052. (abortPiece): New function.
  14053. (getDownloadPiece): New function.
  14054. (getPeerMessageCommonProperty): New function.
  14055. (createRequestMessage): New function.
  14056. (createCancelMessage): New function.
  14057. (createPieceMessage): New function.
  14058. (createHaveMessage): New function.
  14059. (createChokeMessage): New function.
  14060. (createUnchokeMessage): New function.
  14061. (createInterestedMessage): New function.
  14062. (createNotInterestedMessage): New function.
  14063. (createBitfieldMessage): New function.
  14064. (createKeepAliveMessage): New function.
  14065. To add simple Content-Disposition support:
  14066. * src/HttpResponseCommand.h (determinFilename): New function.
  14067. * src/HttpResponseCommand.cc (executeInternal):
  14068. Use determinFilename(headers) instead of req->getFile() when comparing
  14069. filename.
  14070. (determinFilename): New function.
  14071. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14072. req->getFile().
  14073. (handleOtherEncoding): Use determinFilename(headers) instead of
  14074. req->getFile().
  14075. * src/Util.h (getContentDispositionFilename): New function.
  14076. * src/Util.cc (getContentDispositionFilename): New function.
  14077. * src/LogFactory.h (release): New function.
  14078. * src/LogFactory.cc (release): New function.
  14079. To fix a bug that causes out-of-bound exception when HTTP status
  14080. line is wrong:
  14081. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14082. size.
  14083. * src/common.h (Deleter): New class.
  14084. * src/SegmentMan.cc
  14085. (~SegmentMan): Added deletion of splitter and diskWriter.
  14086. * src/DownloadEngine.h
  14087. (Commands): Use deque.
  14088. (clearQueue): New function.
  14089. * src/DownloadEngine.cc
  14090. (~DownloadEngine): Added deletion of segmentMan.
  14091. (cleanQueue): New function.
  14092. * src/TorrentDownloadEngine.h
  14093. (TorrentDownloadEngine): The implementation was moved to
  14094. TorrentDownloadEngine.cc.
  14095. (~TorrentDownloadEngine): The implementation was moved to
  14096. TorrentDownloadEngine.cc.
  14097. * src/TorrentDownloadEngine.cc
  14098. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14099. * src/main.cc
  14100. (clearRequest): Removed.
  14101. (handler): Added deletion of e.
  14102. (torrentHandler): Added deletion of te.
  14103. (main): Do not share splitter.
  14104. Use Deleter instead of clearRequest.
  14105. Deletion of classes were updated.
  14106. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14107. * src/main.cc (main): Fixed typo.
  14108. * src/message.h: Fixed typo.
  14109. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14110. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14111. To add --select-file command-line option:
  14112. * src/Util.cc
  14113. (unfoldRange): New function.
  14114. (getNum): New function.
  14115. (unfoldSubRange): New function
  14116. * src/main.cc
  14117. (showUsage): Added help message.
  14118. (main): Added --select-file command-line option. Updated the layout of
  14119. file listing.
  14120. * src/common.h
  14121. (Integers): New definition.
  14122. * src/SocketCore.cc
  14123. (writeData): Removed timeout argument.
  14124. (readData): Removed timeout argument.
  14125. (peekData): Removed timeout argument.
  14126. * src/Socket.cc
  14127. (writeData): Removed timeout argument.
  14128. (readData): Removed timeout argument.
  14129. (peekData): Removed timeout argument.
  14130. * Release 0.4.1
  14131. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14132. To deploy upload rate based choking algorithm:
  14133. * src/PeerInteractionCommand.cc
  14134. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14135. peer currently used.
  14136. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14137. download completes. Simplified.
  14138. (receiveMessage): Updated.
  14139. * src/TorrentMan.h
  14140. (activePeers): New variable.
  14141. (addActivePeer): New function.
  14142. (getActivePeers): New function.
  14143. (deleteActivePeer): New function.
  14144. * src/TorrentMan.cc
  14145. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14146. * src/PeerAbstractCommand.cc
  14147. (onAbort): Use peer->resetStatus().
  14148. * src/main.cc
  14149. (PeerChokeCommand.h): Included.
  14150. (main): Added the instance of ChokingCommand to the command queue.
  14151. * src/Peer.h
  14152. (amChoking): Renamed from amChocking
  14153. (chokingRequired): New variable.
  14154. (optUnchoking): New variable.
  14155. (deltaUpload): New variable.
  14156. (deltaDownload): New variable.
  14157. (addDeltaUpload): New function.
  14158. (resetDeltaUpload): New function.
  14159. (addDeltaDownload): New function.
  14160. (resetDeltaDownload): New function.
  14161. (addPeerUpload): Added a call to addDeltaUpload.
  14162. (addPeerDownload): Added a call to addDeltaDownload.
  14163. * src/Peer.cc
  14164. (shouldBeChoking): Renamed from shouldChoke.
  14165. (resetStatus): New function.
  14166. * src/PeerChokeCommand.h: New class.
  14167. * src/PeerChokeCommand.cc: New class.
  14168. To add lazy upload speed limiter:
  14169. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14170. statistics calculation to TorrentDownloadEngine.
  14171. * src/TorrentConsoleDownloadEngine.cc
  14172. (sendStatistics): Renamed from printStatistics.
  14173. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14174. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14175. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14176. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14177. calculation.
  14178. (sendStatistics): New function as pure virtual function.
  14179. (getUploadSpeed): New function.
  14180. * src/TorrentDownloadEngine.cc
  14181. (initStatistics): New function.
  14182. (calculateSpeed): New function.
  14183. (calculateStatistics): New function.
  14184. * src/SendMessageQueue.h
  14185. (uploadLength): New variable.
  14186. (send): Added an argument.
  14187. (setUploadLimit): New function.
  14188. (getUploadLimit): New function.
  14189. * src/SendMessageQueue.cc
  14190. (send): Added upload speed limiter.
  14191. * src/prefs.h
  14192. (PREF_UPLOAD_LIMIT): New definition.
  14193. * src/PeerInteractionCommand.cc
  14194. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14195. * src/main.cc
  14196. (main): Added --upload-limit option
  14197. For bug fixes:
  14198. * src/main.cc
  14199. (showUsage): Corrected --listen-port help
  14200. Other changes:
  14201. * src/TorrentMan.cc
  14202. (getPeer): Return nullPeer if connection is grather than
  14203. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14204. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14205. To add some useful information to the exception message:
  14206. * src/SocketCore.cc : Updated messages.
  14207. * src/SegmentMan.cc :
  14208. * src/TorrentMan.cc : Updated messages.
  14209. * src/MultiDiskWriter.cc : Updated messages.
  14210. * src/Util.cc : Updated messages.
  14211. * src/AbstractDiskWriter.cc : Updated messages.
  14212. * src/PreAllocationDiskWriter.cc : Updated messages.
  14213. * src/message.cc : Added new messages. Updated some messages.
  14214. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14215. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14216. Updated threshold from 30 to 15.
  14217. * src/AbstractDiskWriter.h (filename): New variable.
  14218. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14219. (createFile): Assigned filename.
  14220. * src/main.cc: Updated the help message for http-auth-scheme.
  14221. * Release 0.4.0
  14222. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14223. To add TrackerUpdateCommand with which replaces
  14224. CompactTrackerResponseProcessor:
  14225. * src/TrackerWatcherCommand.h (req): Removed.
  14226. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14227. if the number of peer connections are less than 30.
  14228. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14229. * src/SegmentMan.h (diskWriter): New function.
  14230. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14231. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14232. (main): Use TrackerUpdateCommand.
  14233. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14234. (req): New variable.
  14235. (setTrackerResponseProcessor): Removed.
  14236. (getTrackerResponseProcessor): Removed.
  14237. (processTrackerResponse): Removed.
  14238. * src/DownloadEngine.h (diskWriter): Removed.
  14239. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14240. to torrentMan->processTrackerResponse().
  14241. To add Util::expandBuffer:
  14242. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14243. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14244. * src/Util.h (expandBuffer): New function.
  14245. To fix the bug that causes segmentation fault when "-l ." is specified
  14246. in command-line option:
  14247. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14248. (openFile): New function.
  14249. (closeFile): New function.
  14250. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14251. (~SimpleLogger): Call closeFile();
  14252. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14253. * src/main.cc (main): Added a check to see logger is configured
  14254. properly.
  14255. To enable HTTP authentication without specifying "--http-auth-scheme"
  14256. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14257. * src/HttpConnection.cc (createRequest): Send Authorization header
  14258. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14259. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14260. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14261. * src/Peer.cc (shouldChoke): Updated algorithm.
  14262. * src/message.h (EX_AUTH_FAILED): New definition.
  14263. (EX_FILE_OPEN): New definition.
  14264. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14265. if status == 401.
  14266. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14267. if req->isTorrent == true.
  14268. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14269. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14270. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14271. (createFile): Updated message.
  14272. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14273. To add a readout of estimated remaining time to normal HTTP/FTP
  14274. downloads:
  14275. * src/ConsoleDownloadEngine.h (startup): New variable.
  14276. (startupLength): New variable.
  14277. (isStartupLengthSet): New variable.
  14278. (avgSpeed): New variable.
  14279. (eta): New variable.
  14280. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14281. estimated remaining time.
  14282. (initStatistics): Initialized newly added variables.
  14283. (calculateStatistics): Calculate average speed and estimated remaining
  14284. time.
  14285. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14286. * src/TrackerDownloadCommand.h: Removed.
  14287. * src/TrackerDownloadCommand.cc: Removed.
  14288. * src/TrackerInitCommand.h: Removed.
  14289. * src/TrackerInitCommand.cc: Removed.
  14290. * src/TrackerUpdateCommand.h: Removed.
  14291. * src/TrackerUpdateCommand.cc: Removed.
  14292. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14293. url written in TrackerInitCommand was moved here. Do not create
  14294. tracker request command if torrentMan->trackers != 0.
  14295. * src/CompactTrackerResponseProcessor.h: New class.
  14296. * src/CompactTrackerResponseProcessor.cc: New class.
  14297. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14298. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14299. Decoupled TorrentDownloadEngine from this.
  14300. * src/SegmentMan.h (init): New function.
  14301. * src/SegmentMan.cc (init): New function.
  14302. * src/TorrentMan.h (responseProcessor): New variable.
  14303. (trackers): New variable.
  14304. (setTrackerResponseProcessor): New function.
  14305. (getTrackerResponseProcessor): New function.
  14306. (processTrackerResponse): New function.
  14307. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14308. (processTrackerResponse): New function.
  14309. * src/main.cc (main): Use ByteArrayDiskWriter and
  14310. CompactTrackerResponseProcessor.
  14311. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14312. processTrackerResponse().
  14313. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14314. readout.
  14315. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14316. which indicates download has completed.
  14317. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14318. (closeFile): fd >= 0, not fd > 0
  14319. * src/main.cc (main): Added short cut for show-files.
  14320. Added short cut for torrent-file.
  14321. Added new command-line option listen-port.
  14322. Updated i18n messages.
  14323. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14324. To add LogFactory which creates singleton logger:
  14325. * src/LogFactory.h: New class.
  14326. * src/LogFactory.cc: New class.
  14327. * src/Command.h (logger): New variable.
  14328. (Constructor): Use LogFactory.
  14329. * src/AbstractCommand.cc: Use Command::logger
  14330. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14331. Use LogFactory.
  14332. * src/SegmentSplitter.h : Made logger protected.
  14333. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14334. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14335. * src/DownloadEngine.h : Made logger protected.
  14336. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14337. * src/PeerInteractionCommand.cc : Use Command::logger.
  14338. * src/HttpResponseCommand.cc : Use Command::logger.
  14339. * src/SegmentMan.h : Made logger private.
  14340. * src/TorrentMan.h : Made logger private.
  14341. * src/TorrentMan.cc : Use LogFactory.
  14342. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14343. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14344. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14345. Use LogFactory.
  14346. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14347. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14348. Use LogFactory.
  14349. * src/DownloadCommand.cc : Use Command::logger.
  14350. * src/PeerAbstractCommand.cc : Use Command::logger.
  14351. * src/PeerListenCommand.cc : Use Command::logger.
  14352. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14353. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14354. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14355. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14356. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14357. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14358. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14359. Use LogFactory.
  14360. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14361. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14362. Use LogFactory.
  14363. * src/main.cc (main): Use LogFactory.
  14364. * src/DiskAdaptor.h (logger): New variable.
  14365. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14366. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14367. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14368. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14369. parameter to a tracker request.
  14370. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14371. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14372. * src/main.cc (setSignalHander): New function.
  14373. (main): Added a handler for SIGTERM.
  14374. (handler): Updated message.
  14375. (torrentHandler): Updated message.
  14376. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14377. * src/TorrentConsoleDownloadEngine.cc
  14378. (onPartialDownloadingCompletes): Renamed as
  14379. onSelectiveDownloadingCompletes.
  14380. (onSelectiveDownloadingCompletes): Updated message.
  14381. To add DiskAdaptor which abstract DiskWriter family:
  14382. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14383. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14384. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14385. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14386. MultiDiskAdaptor.h.
  14387. (readFileEntry): Changed its arguments.
  14388. (setup): setupDiskWriter is merged into this function.
  14389. (setupDiskWriter): Removed.
  14390. (setFileFilter): New function.
  14391. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14392. made in readFileEntry.
  14393. (getFilePath): Removed.
  14394. (getTempFilePath): Removed.
  14395. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14396. (fixFilename): Removed.
  14397. (copySingleFile): Removed.
  14398. (splitMultiFile): Removed.
  14399. (deleteTempFile): Removed.
  14400. (setFileEntriesToDownload): Removed.
  14401. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14402. (isSelectiveDownloadingMode): New function.
  14403. (setAllMultiFileRequestedState): Removed.
  14404. (finishPartialDownloadingMode): Renamed as
  14405. finishSelectiveDownloadingMode.
  14406. (finishSelectiveDownloadingMode): New function.
  14407. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14408. (getSelectedTotalLength): New function.
  14409. (onDownloadComplete): Use diskAdaptor.
  14410. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14411. (Range): Removed.
  14412. (setMultiFileEntries): Renamed as setFileEntries.
  14413. (setFileEntries): New function.
  14414. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14415. (pieceLength): New variable.
  14416. * src/main.cc (printDownloadCompeleteMessage): New function.
  14417. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14418. (main): Renamed torrent-show-files to show-files.
  14419. Rewritten file contents listing.
  14420. * src/TorrentMan.h (FileEntry): Removed.
  14421. (multiFileTopDir): Removed.
  14422. (multiFileEntries): Removed.
  14423. (diskWriter): Removed.
  14424. (diskAdaptor): New variable.
  14425. * src/DefaultDiskWriter.h (totalLength): New variable.
  14426. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14427. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14428. diskWriter.
  14429. * src/TorrentConsoleDownloadEngine.h
  14430. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14431. (partialTotalLength): Renamed as selectedTotalLength.
  14432. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14433. openExistingFile, otherwise call initAndOpenFile.
  14434. (closeFile): fd > 0, not fd != 0.
  14435. * src/DirectDiskAdaptor.h: New class.
  14436. * src/DirectDiskAdaptor.cc: New class.
  14437. * src/MultiDiskAdaptor.h: New class.
  14438. * src/MultiDiskAdaptor.cc: New class.
  14439. * src/CopyDiskAdaptor.h: New class.
  14440. * src/CopyDiskAdaptor.cc: New class.
  14441. * src/DiskAdaptor.h: New class.
  14442. * src/DiskAdaptor.cc: New class.
  14443. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14444. (PREF_SHOW_FILES): New definition.
  14445. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14446. To add the ability to download multi torrent into respective files
  14447. directly:
  14448. * src/DiskWriter.h (openFile): New function.
  14449. (seek): Removed.
  14450. * src/MultiDiskWriter.h: New class.
  14451. * src/MultiDiskWriter.cc: New class.
  14452. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14453. protected.
  14454. (openFile): New function.
  14455. * src/AbstractDiskWriter.cc (openFile): New function.
  14456. * src/prefs.h (V_FALSE): New definition.
  14457. (PREF_DIRECT_FILE_MAPPING): New definition.
  14458. * src/TorrentMan.h (setupDiskWriter): New function.
  14459. (setAllMultiFileRequestedState): New function.
  14460. (onDownloadComplete): New function.
  14461. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14462. (setupDiskWriter): New function.
  14463. (getFilePath): Updated.
  14464. (getTempFilePath): Updated.
  14465. (getSegmentFilePath): Updated.
  14466. (fixFilename): Updated.
  14467. (deleteTempFile): Updated.
  14468. (setAllMultiFileRequestedState): New function.
  14469. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14470. (finishPartialDownloadingMode): Reset requested flags.
  14471. (onDownloadComplete): New function.
  14472. * src/main.cc: Added --direct-file-mapping option.
  14473. Use TorrentMan::setupDiskWriter().
  14474. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14475. onDownloadComplete().
  14476. To fix ETA bug:
  14477. * src/Util.h (difftvsec): New function.
  14478. * src/Util.cc (difftvsec): New function.
  14479. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14480. type of "elapsed" instead of long long int.
  14481. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14482. The updates of statistics takes place every 1 seconds.
  14483. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14484. (calculateSpeed): Changed its argument signature.
  14485. * src/PeerMessage.cc (toString): Fixed message.
  14486. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14487. To print ETA:
  14488. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14489. completion handling when dealing with
  14490. TorrentMan::isPartialDownloadingMode() == true.
  14491. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14492. New function.
  14493. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14494. (sessionDownloadLength): New variable.
  14495. (avgSpeed): New variable.
  14496. (eta): New variable.
  14497. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14498. new variables: eta, avgSpeed, startup.
  14499. (calculateSpeed): Calculate average speed and ETA.
  14500. (printStatistics): Added ETA.
  14501. * src/Util.h (secfmt): New function.
  14502. * src/Util.cc (secfmt): New function.
  14503. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14504. To detect "keep alive" flooding:
  14505. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14506. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14507. variable: keepAliveCount.
  14508. (detectMessageFlooding): Added "keep alive" flooding detection.
  14509. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14510. received.
  14511. To add the ability to download only specified files in multi-file
  14512. torrent:
  14513. * src/BitfieldMan.h (filterBitfield): New variable.
  14514. (filterEnabled): New variable.
  14515. (setFilterBit): New function.
  14516. (enableFilter): New function.
  14517. (disableFilter): New function.
  14518. (isFilterEnabled): New function.
  14519. (getFilteredTotalLength): New function.
  14520. (getCompletedLength): New function.
  14521. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14522. filterBitfield, filterEnabled.
  14523. (CopyConstructor): Added filterBitfield and filterEnabled.
  14524. (operator==): Added filterBitfield and filterEnabled.
  14525. (Destructor): Added filterBitfield.
  14526. (getMissingIndex): Use filterBitfield.
  14527. (getMissingUnusedIndex): Use filterBitfield.
  14528. (getFirstMissingUnusedIndex): Use filterBitfield.
  14529. (getFirstMissingUnusedIndex): Use filterBitfield.
  14530. (getAllMissingIndexes): Use filterBitfield.
  14531. (countMissingBlock): Use filterBitfield.
  14532. (countBlock): Use filterBitfield.
  14533. (setBitInternal): Added new argument on.
  14534. (setUseBit): Use setBitInternal.
  14535. (unsetUseBit): Use setBitInternal.
  14536. (setBit): Use setBitInternal.
  14537. (unsetBit): Use setBitInternal.
  14538. (isAllBitSet): Use filterBitfield.
  14539. (setFilterBit): New function.
  14540. (addFilter): New function.
  14541. (enableFilter): New function.
  14542. (disableFilter): New function.
  14543. (clearFilter): New function.
  14544. (isFilterEnabled): New function.
  14545. (getFilteredTotalLength): New function.
  14546. (getCompletedLength): New function.
  14547. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14548. Initalized newly added variables.
  14549. [FileEntry](offset): New variable.
  14550. [FileEntry](extracted): New variable.
  14551. [FileEntry](requested): New variable.
  14552. (readFileEntry): New function.
  14553. (option): New variable.
  14554. (splitMultiFile): Removed const qualifier.
  14555. (fixFilename): Removed const qualifier.
  14556. (readFileEntryFromMetaInfoFile): New function.
  14557. (finishPartialDownloadingMode): New function.
  14558. (isPartialDownloadingMode): New function.
  14559. (setFileEntriesToDownload): New function.
  14560. (getCompletedLength): New function.
  14561. (getPartialTotalLength): New function.
  14562. * src/TorrentMan.cc (readFileEntry): New function.
  14563. (setup): Use readFileEntry. If no-preallocation option is specified,
  14564. use DefaultDiskWriter.
  14565. (readFileEntryFromMetaInfoFile): New function.
  14566. (fixFilename): Removed const qualifier.
  14567. (splitMultiFile): Removed const qualifier.
  14568. (setFileEntriesToDownload): New function.
  14569. (isPartialDownloadingMode): New function.
  14570. (finishPartialDownloadingMode): New function.
  14571. (getCompletedLength): New function.
  14572. (getPartialTotalLength): New function.
  14573. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14574. New variable.
  14575. (partialTotalLength): New variable.
  14576. (downloadLength): New variable.
  14577. (totalLength): New variable.
  14578. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14579. Added log.
  14580. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14581. partialTotalLength, downloadLength, totalLength.
  14582. (calculate): Calculate downloadLength and totalLength.
  14583. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14584. * src/main.cc (addCommand): Changed argument signature.
  14585. (main): Added new variable: args. Added new option "torrent-show-files"
  14586. "no-preallocation". Usage is not updated yet.
  14587. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14588. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14589. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14590. Attempt to add the ability to listing file entries in a .torrent file.
  14591. This feature is not yet complete.
  14592. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14593. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14594. (getName): New function.
  14595. * src/TorrentMan.h (getMultiFileEntries): New function.
  14596. (getName): New function.
  14597. * src/main.cc (main): Use above 2 funtion.
  14598. * Release 0.3.2
  14599. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14600. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14601. (detectMessageFlooding): Updated threshold value.
  14602. (checkLongTimePeerChoking): Updated timeout value.
  14603. (getNewPieceAndSendInterest): Added debug log.
  14604. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14605. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14606. (getPeer): Updated.
  14607. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14608. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14609. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14610. is localhost.
  14611. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14612. * src/PendingMessage.cc (processMessage): Not to send piece message
  14613. if peer is not interested in the pieces localhost has.
  14614. * src/Peer.cc (shouldChoke): Updated.
  14615. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14616. * src/Util.cc (isPowerOf): New function.
  14617. * src/Util.h (isPowerOf): New function.
  14618. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14619. whether or not it is power of 2.
  14620. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14621. Added new class SendMessageQueue that includes PendingMessages and
  14622. RequestSlotMan.
  14623. * src/SendMessageQueue.h: New class.
  14624. * src/SendMessageQueue.cc: New class.
  14625. * src/PendingMessage.h: Added new member variable blockIndex and its
  14626. accessors.
  14627. (createRequestMessage): Updated.
  14628. * src/PendingMessage.cc (createRequestMessage): Updated.
  14629. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14630. SendMessageQueue.
  14631. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14632. (receiveMessage): Updated with SendMessageQueue.
  14633. (deletePendingPieceMessage): Removed.
  14634. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14635. (sendInterest): Updated with SendMessageQueue.
  14636. (createRequestPendingMessage): Updated with SendMessageQueue.
  14637. (sendMessages): Updated with SendMessageQueue.
  14638. (onAbort): Updated with SendMessageQueue.
  14639. (keepAlive): Updated with SendMessageQueue.
  14640. (beforeSocketCheck): Updated SendMessageQueue.
  14641. * src/PeerInteractionCommand (sendMessages): Shuffle
  14642. missingBLockIndexes before using it.
  14643. Added its own timeout for peer connection.
  14644. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14645. setter.
  14646. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14647. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14648. Added setTimeout() call.
  14649. (executeInternal): Added setTimeout() call.
  14650. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14651. Added timeout.
  14652. (isTimeoutDetected): Updated.
  14653. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14654. option.
  14655. Added *simple* message flooding checker.
  14656. * src/PeerInteractionCommand.cc (executeInternal):
  14657. Added detectMessageFlooding() call.
  14658. (detectMessageFlooding): New function.
  14659. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14660. (beforeSocketCheck): Added detectMessageFlooding() call.
  14661. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14662. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14663. Removed deletePendingPieceMessage(), getRequestSlot(),
  14664. deleteRequestSlot(), deleteAllRequestSlot().
  14665. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14666. Added checkLongTimePeerChoking() call.
  14667. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14668. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14669. if duplicate == false.
  14670. The parameter "uploaded" and "downloaded" in the tracker request are
  14671. the size since the client sent the "started" event to the tracker.
  14672. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14673. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14674. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14675. getSessionDownloadedSize(), getSessionUploadedSize().
  14676. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14677. getSessionUploadedSize() instead of getDownloadedSize(),
  14678. getUploadedSize().
  14679. * src/PendingMessage.cc (processMessage): Do not send request message
  14680. if the peer is choking the client.
  14681. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14682. less than interval.
  14683. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14684. * configure.in: Added gnutls support. Added several CPP macros.
  14685. * m4/openssl.m4: Added.
  14686. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14687. readData(), peekData(). Added gnutls support.
  14688. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14689. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14690. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14691. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14692. Instead, added a check for whether setup method has executed
  14693. successfully.
  14694. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14695. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14696. * src/Makefile.am: Updated.
  14697. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14698. using whether OpenSSL or gcrypt, depending on the result of configure
  14699. script.
  14700. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14701. messageDigest.h.
  14702. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14703. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14704. Fixed memory leak.
  14705. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14706. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14707. Removed instantiation of TrackerInitCommand. Instead,
  14708. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14709. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14710. ENABLE_SSL.
  14711. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14712. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14713. If a piece is already acquired by another command, delete the request
  14714. slots for the piece.
  14715. * src/TrackerUpdateCommand.cc (execute):
  14716. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14717. Added a check whether peer list is null.
  14718. Fixed the bug that causes sending completed event to the tracker
  14719. several times.
  14720. * src/TrackerInitCommand.cc (execute):
  14721. Fixed the bug that causes sending completed event to the tracker
  14722. several times.
  14723. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14724. by using messageDigest.h.
  14725. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14726. * PeerConnection.cc: Replaced log message "keep-alive" with
  14727. "keep alive".
  14728. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14729. localhost long time.
  14730. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14731. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14732. at most 100 failure entry from the list. If with duplicate = false,
  14733. MAX_PEER_LIST is not checked.
  14734. * PeerListenCommand.cc: Fixed the argument order of log message.
  14735. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14736. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14737. Added warn().
  14738. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14739. Implemented warn().
  14740. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14741. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14742. * Request.h: Added AFTER_COMPLETED event.
  14743. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14744. instead of downloaded size and progress(%) after download completes.
  14745. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14746. message to the peer if it is interested in what localhost has
  14747. downloaded.
  14748. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14749. destination instead of just renaming it.
  14750. * TorrentMan.cc: Added deleteTempFile().
  14751. * PeerAbstractCommand.cc: do not stop execution after download
  14752. completes. This makes localhost a seeder.
  14753. * Util.{h,cc}: Added fileCopy().
  14754. * PeerListenCommand.cc: do not stop execution after download completes.
  14755. This makes localhost a seeder.
  14756. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14757. Added TorrentMan::deleteTempFile() to torrentHandler.
  14758. Initialized the variable dir as ".".
  14759. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14760. Deleted renameSingleFile().
  14761. Added copySingleFile(), deleteTempFile().
  14762. * DownloadEngine.h: Added virtual function afterEachIteration().
  14763. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14764. in onEndOfRun() to afterEachIteration().
  14765. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14766. true.
  14767. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14768. In rangedFileCopy(), added try-catch block to properly close file
  14769. descriptors.
  14770. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14771. Added afterEachIteration(), isFilenameFixed().
  14772. * Peer.cc: Changed choking strategy.
  14773. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14774. * TrackerInitCommand.cc: Send completed event only once.
  14775. * DownloadEngine.cc: Added a call to afterEachIteration().
  14776. * TrackerUpdateCommand.cc: Do not stop execution after download
  14777. completes.
  14778. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14779. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14780. received from a tracker.
  14781. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14782. Decreased the number of failure peers to delete to 0(just comment out
  14783. the line).
  14784. * Release 0.3.1
  14785. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14786. * PeerInteractionCommand.cc: added a call to
  14787. TorrentMan::unadvertisePiece in Destructor.
  14788. * PeerInteractionCommand.cc: make have message sent immediately
  14789. if the size of pending message queue is zero.
  14790. * TorrentMan.cc: set the maximum size of peer list to 250.
  14791. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14792. to deque.
  14793. * Util.cc: fixed rangedFileCopy.
  14794. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14795. to Constructor. Also, moved digest cleanup to Destructor.
  14796. * MetaFileUtil.cc: fixed memory leak
  14797. * replaced std::vector with std::deque.
  14798. * AbstractCommand.cc: casted timeout value to long long int.
  14799. * ChunkedEncoding.cc: fixed memory leak.
  14800. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14801. * SleepCommand.cc: casted timeout value to long long int.
  14802. * Data.cc: fixed memory leak.
  14803. * Data.cc: fixed toLLInt().
  14804. * BitfieldMan.cc: fixed memory leak.
  14805. * TorrentMan.cc: initialized storeDir to ".".
  14806. * TorrentMan.cc: fixed memory leak.
  14807. * TorrentMan.cc: corrected file paths of splitted files.
  14808. * PeerAbstractCommand.cc: casted timeout to long long int.
  14809. * main.cc: added delete(req) and delete(te->diskWriter).
  14810. * RequestSlot.cc: casted timeout value to long long int.
  14811. * Request.cc: fixed memory leak.
  14812. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14813. have the piece.
  14814. * Peer.{h,cc}: added hasPiece(int index).
  14815. * main.cc: corrected addCommand.
  14816. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14817. * BitTorrent protocol support added.
  14818. * Release 0.3.0
  14819. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14820. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14821. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14822. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14823. decoding did not work properly.
  14824. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14825. * DownloadEngine.h: included sys/time.h
  14826. * DownloadEngine.cc: remove sys/time.h
  14827. * Makefile.am (SUBDIRS): Add intl.
  14828. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14829. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14830. * main.cc: correct help message for --http-auth-scheme.
  14831. * main.cc: changed e-mail address for bug reports.
  14832. * ja.po: added japanese translation.
  14833. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14834. * SimpleLogger.cc: flush log file instead of stdout.
  14835. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14836. * main.cc: Fixed command-line option: max-tries
  14837. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14838. does not equal to seg.sp.
  14839. * DownloadCommand.cc: If EOF is got from the server and the total size
  14840. of file is not zero, then throw DlRetryEx.
  14841. * main.cc: Set the minium value of min-segment-size to 1024.
  14842. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14843. fails because of a regression since 0.2.0 release.
  14844. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14845. * HttpConnection.cc:
  14846. * common.h: defined the user agent name as macro
  14847. * DownloadEngine.{h, cc}:
  14848. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14849. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14850. * main.cc: Download complete/abort message is now generated by main.
  14851. * Makefile.am (SUBDIRS): Add m4.
  14852. (ACLOCAL_AMFLAGS): New variable.
  14853. (EXTRA_DIST): New variable.
  14854. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14855. * gettext: added gettext functionality
  14856. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14857. * AbstractCommand.cc:
  14858. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14859. unregister its cuid from SegmentMan.
  14860. * DownloadEngine.cc: .aria2 file was written when a downloading
  14861. failed with errors.
  14862. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14863. Added "User-Agent" header to CONNECT proxy request.
  14864. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14865. properly.
  14866. * Logger.h:
  14867. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14868. * ChunkedEncoding.cc: Added #include directive for strings.h
  14869. * Release 0.2.1
  14870. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14871. * Util.{h,cc}: added startsWith().
  14872. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14873. Util::endsWith().
  14874. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14875. * common.h: added #include directive of limit.h.
  14876. * DownloadEngine.cc: added #include directive of sys/time.h and
  14877. algorithm.
  14878. * Exception.h: added #include directive of stdio.h.
  14879. * AbstractCommand.h: added #include directive of sys/time.h.
  14880. * DownloadCommand.h: added #include directive of sys/time.h.
  14881. * *.h: added #include directive of common.h to all base classes.
  14882. subclasses' one was removed.
  14883. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14884. does not define these macros.
  14885. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14886. * Release 0.2.0
  14887. * main.cc:
  14888. * HttpInitiateConnectionCommand.{h,cc}:
  14889. * prefs.h:
  14890. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14891. We can now use GET command in http proxy.
  14892. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14893. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14894. that splits slowest segment of SegmentMan::commands vector.
  14895. This is the default split algorithm of aria2.
  14896. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14897. that splits first segment of SegmentMan::commands vector.
  14898. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14899. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14900. * Segment.h:
  14901. * SegmentMan.cc: Added speed field to Segment.h
  14902. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14903. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14904. * message.h: Change file size related %d to %lld.
  14905. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14906. * FtpInitiateConnectionCommand.{h,cc}:
  14907. * FtpNegotiationCommand.{h,cc}:
  14908. * FtpDownloadCommand.{h,cc}:
  14909. * FtpConnection.{h,cc}: Added FTP support
  14910. * SimpleLogger.cc: Log message now includes time information.
  14911. * main.cc: The value of --http-auth-scheme option is chagned from
  14912. 'BASIC' to 'basic'
  14913. * main.cc: Added --timeout command-line option.
  14914. * main.cc: Added --min-segment-size command-line option.
  14915. * main.cc: Added --max-retries command-line option.
  14916. * prefs.h: option string constants are now defined in prefs.h
  14917. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14918. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14919. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14920. with version 0.1.0's one.
  14921. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14922. * configure.in: Added --enable-ssl option to configure script.
  14923. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14924. cannot permit absoluteURI as Request-URI.
  14925. * HttpConnection.cc: Added Referer support.
  14926. * main.cc: Added referer command-line option.
  14927. * main.cc: Added rety-wait command-line option.
  14928. * Exception.h: Fixed formating bug in Exception::setMsg()
  14929. * SocketCore.{h,cc}:
  14930. * Socket.{h, cc}:
  14931. * Request.cc:
  14932. * InitiateConnectionCommandFactory.cc:
  14933. * HttpRequestCommand.cc: Added HTTPS support.
  14934. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14935. for SocketCore.
  14936. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14937. size is wrong
  14938. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14939. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14940. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14941. * Release 0.1.0