ChangeLog 630 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190
  1. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Moved static functions in Util class to namespace util.
  3. * src
  4. * test
  5. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  7. Moved generateRandomKey to bittorrent_helper.cc.
  8. * src/DHTBucket.cc
  9. * src/DHTGetPeersMessage.cc
  10. * src/DHTGetPeersReplyMessage.cc
  11. * src/DHTMessage.cc
  12. * src/DHTNode.cc
  13. * src/DHTTokenTracker.cc
  14. * src/DHTUtil.cc: Removed.
  15. * src/DHTUtil.h: Removed.
  16. * src/Makefile.am
  17. * src/Util.cc
  18. * src/Util.h
  19. * src/bitfield.h
  20. * src/bittorrent_helper.cc
  21. * src/bittorrent_helper.h
  22. * test/ARC4Test.cc
  23. * test/BNodeTest.cc
  24. * test/DHTAnnouncePeerMessageTest.cc
  25. * test/DHTAnnouncePeerReplyMessageTest.cc
  26. * test/DHTFindNodeMessageTest.cc
  27. * test/DHTFindNodeReplyMessageTest.cc
  28. * test/DHTGetPeersMessageTest.cc
  29. * test/DHTGetPeersReplyMessageTest.cc
  30. * test/DHTPingMessageTest.cc
  31. * test/DHTPingReplyMessageTest.cc
  32. * test/DHTTokenTrackerTest.cc
  33. * test/DHTUtilTest.cc: Removed.
  34. * test/Makefile.am
  35. * test/UtilTest.cc
  36. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Removed the call to trim() because trim() is called for each
  38. element in split().
  39. * src/CookieParser.cc
  40. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Replaced Util::slice() with split()
  42. * src/AbstractCommand.cc
  43. * src/CookieParser.cc
  44. * src/File.cc
  45. * src/HttpHeaderProcessor.cc
  46. * src/HttpRequest.cc
  47. * src/Metalink2RequestGroup.cc
  48. * src/MetalinkParserController.cc
  49. * src/Netrc.cc
  50. * src/NsCookieParser.cc
  51. * src/ParameterizedStringParser.cc
  52. * src/ServerStatMan.cc
  53. * src/UriListParser.cc
  54. * src/Util.cc
  55. * src/Util.h
  56. * src/bittorrent_helper.cc
  57. * test/UtilTest.cc
  58. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Use request->getDir() instead of "/" for embedded user/pass in
  60. URI.
  61. * src/AuthConfigFactory.cc
  62. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Fixed wrong insertion point for BasicCred.
  64. * src/AuthConfigFactory.cc
  65. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Allowed non-regular file in LocalFilePathOptionHandler
  67. * src/OptionHandlerImpl.h
  68. * src/message.h
  69. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Fixed the bug that Netrc::parse() cannot recognize comment line.
  71. * src/Netrc.cc
  72. * src/Util.h
  73. * test/NetrcTest.cc
  74. * test/sample.netrc
  75. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Fixed typo
  77. * src/BtDependency.cc
  78. * src/BtRejectMessage.cc
  79. * src/FtpConnection.cc
  80. * src/HttpHeaderProcessor.h
  81. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Fixed lintian report in man page
  83. * doc/aria2c.1.txt
  84. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Release 1.6.2
  86. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Updated Ukrainian translation. Thanks to all translators.
  88. * po/uk.po
  89. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Updated translation template
  91. * po
  92. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Bump up version number to 1.6.2
  94. * configure.ac
  95. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Updated licence message in -v output.
  97. * src/version_usage.cc
  98. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Replaced aria2 with aria2c in help message.
  100. * src/version_usage.cc
  101. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  103. * src/version_usage.cc
  104. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Quoted localedir
  106. * src/Makefile.am
  107. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  109. utime. Check header for utime.h.
  110. * configure.ac
  111. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  113. * configure.ac
  114. * src/daemon.cc
  115. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Don't set localedir manually. Leave it to autoconf.
  117. * configure.ac
  118. * src/Makefile.am
  119. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Added --install to ACLOCAL_AMFLAGS.
  121. Removed m4 from SUBDIRS.
  122. Updated automake 1.11 and autoconf 2.64.
  123. Replaced some obsolute macros with new one.
  124. * Makefile.am
  125. * configure.ac
  126. * m4/aria2_arg.m4
  127. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Removed Makefile.am in m4 directory.
  129. * configure.ac
  130. * m4/ChangeLog
  131. * m4/Makefile.am
  132. * m4/Makefile.in
  133. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Removed unused m4 macros.
  135. * m4/intldir.m4
  136. * m4/inttypes.m4
  137. * m4/isc-posix.m4
  138. * m4/libgnutls-extra.m4
  139. * m4/ulonglong.m4
  140. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Fixed the bug that causes segmentation fault if
  142. req->getCurrentUrl() contains printf formatting characters such as
  143. %d. The statement that causes this bug is useless and removed.
  144. * src/AbstractCommand.cc
  145. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. * Release 1.6.1
  147. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Updated Simplified Chinese translation. Thanks to translators.
  149. * po/zh_CN.po
  150. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Updated translation template
  152. * po
  153. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Bump up version number to 1.6.1
  155. * configure.ac
  156. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Changed interval from 120 to 60 for dropping inactive peer.
  158. * src/DefaultBtInteractive.cc
  159. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Updated man page for --user-agent and --peer-id-prefix option.
  161. * doc/aria2c.1.txt
  162. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Code clean up
  164. * src/BtPostDownloadHandler.cc
  165. * src/ContentTypeRequestGroupCriteria.cc
  166. * src/ContentTypeRequestGroupCriteria.h
  167. * src/DownloadHandlerConstants.cc
  168. * src/DownloadHandlerConstants.h
  169. * src/DownloadHandlerFactory.cc
  170. * src/MetalinkPostDownloadHandler.cc
  171. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Don't save control file when aria2 exists while checking piece
  173. hash(behavior of -V option). If control file doesn't exist when
  174. aria2 launched, the completed length in saved control file will be
  175. 0 byte and this confuses user. disableSaveControlFile() is called
  176. in RequestGroup::processCheckIntegrityEntry().
  177. enableSaveControlFile() will be called after hash checking is
  178. done. See CheckIntegrityCommand.
  179. * src/CheckIntegrityCommand.cc
  180. * src/RequestGroup.cc
  181. * src/RequestGroup.h
  182. * src/RequestGroupMan.cc
  183. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Included version number in Peer ID and client version. Peer ID
  185. now starts with "aria2/VERSION-", where VERSION is
  186. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  187. * src/DefaultBtInteractive.cc
  188. * src/OptionHandlerFactory.cc
  189. * src/bittorrent_helper.cc
  190. * src/bittorrent_helper.h
  191. * src/main.cc
  192. * src/usage_text.h
  193. * test/BittorrentHelperTest.cc
  194. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Fixed memory leak.
  196. * src/DownloadCommand.cc
  197. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Removed server, port, user and passwd key from options before
  199. XMLRPC::Client.call since they are not options of aria2.
  200. * doc/xmlrpc/aria2mon
  201. * doc/xmlrpc/aria2rpc
  202. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Included version number in user-agent string.
  204. * src/OptionHandlerFactory.cc
  205. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Fixed the bug that the option values changed by XML-RPC
  207. method(changeOption and changeGlobalOption) are overwritten to the
  208. previous value by the next these request which doesn't contain
  209. that option value. Supporse max-download-limit is initially 0. You
  210. changed this value to 100K by changeOption. Then you issue
  211. changeOption request to change max-upload-limit to 50K. This
  212. second request doesn't contain xml-download-limit, so it is back
  213. to initial value, 0. Another improvement is that exception is
  214. thrown when changeOption and changeGlobalOption request contains
  215. option name which doesn't allowed in each request.
  216. * src/DownloadEngine.h
  217. * src/XmlRpcMethod.cc
  218. * src/XmlRpcMethod.h
  219. * src/XmlRpcMethodImpl.cc
  220. * src/download_helper.cc
  221. * src/download_helper.h
  222. * test/XmlRpcMethodTest.cc
  223. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Added missing MetalinkParserStateImpl.{cc,h}
  225. * src/MetalinkParserStateImpl.cc
  226. * src/MetalinkParserStateImpl.h
  227. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Put all MetalinkParserState subclasses into
  229. MetalinkParserStateImpl.cc. Use stack to track element structure.
  230. * src/FileMetalinkParserState.cc: Removed
  231. * src/FileMetalinkParserState.h: Removed
  232. * src/FilesMetalinkParserState.cc: Removed
  233. * src/FilesMetalinkParserState.h: Removed
  234. * src/FinMetalinkParserState.cc: Removed
  235. * src/FinMetalinkParserState.h: Removed
  236. * src/HashMetalinkParserState.cc: Removed
  237. * src/HashMetalinkParserState.h: Removed
  238. * src/InitialMetalinkParserState.cc: Removed
  239. * src/InitialMetalinkParserState.h: Removed
  240. * src/LanguageMetalinkParserState.cc: Removed
  241. * src/LanguageMetalinkParserState.h: Removed
  242. * src/Makefile.am
  243. * src/MetalinkMetalinkParserState.cc: Removed
  244. * src/MetalinkMetalinkParserState.h: Removed
  245. * src/MetalinkParserState.h
  246. * src/MetalinkParserStateMachine.cc
  247. * src/MetalinkParserStateMachine.h
  248. * src/OSMetalinkParserState.cc: Removed
  249. * src/OSMetalinkParserState.h: Removed
  250. * src/PieceHashMetalinkParserState.cc: Removed
  251. * src/PieceHashMetalinkParserState.h: Removed
  252. * src/PiecesMetalinkParserState.cc: Removed
  253. * src/PiecesMetalinkParserState.h: Removed
  254. * src/ResourcesMetalinkParserState.cc: Removed
  255. * src/ResourcesMetalinkParserState.h: Removed
  256. * src/SignatureMetalinkParserState.cc: Removed
  257. * src/SignatureMetalinkParserState.h: Removed
  258. * src/SizeMetalinkParserState.cc: Removed
  259. * src/SizeMetalinkParserState.h: Removed
  260. * src/SkipTagMetalinkParserState.cc: Removed
  261. * src/SkipTagMetalinkParserState.h: Removed
  262. * src/URLMetalinkParserState.cc: Removed
  263. * src/URLMetalinkParserState.h: Removed
  264. * src/VerificationMetalinkParserState.cc: Removed
  265. * src/VerificationMetalinkParserState.h: Removed
  266. * src/VersionMetalinkParserState.cc: Removed
  267. * src/VersionMetalinkParserState.h: Removed
  268. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Move all functions in PeerMessageUtil to bittorrent_helper.
  270. * src/BtBitfieldMessage.cc
  271. * src/BtBitfieldMessageValidator.h
  272. * src/BtExtendedMessage.cc
  273. * src/BtHandshakeMessage.cc
  274. * src/BtHandshakeMessageValidator.h
  275. * src/BtPieceMessage.cc
  276. * src/BtPieceMessageValidator.h
  277. * src/BtPortMessage.cc
  278. * src/DHTFindNodeReplyMessage.cc
  279. * src/DHTGetPeersReplyMessage.cc
  280. * src/DHTMessageFactoryImpl.cc
  281. * src/DHTRoutingTableDeserializer.cc
  282. * src/DHTRoutingTableSerializer.cc
  283. * src/DHTTokenTracker.cc
  284. * src/DefaultBtMessageFactory.cc
  285. * src/IndexBtMessage.cc
  286. * src/IndexBtMessage.h
  287. * src/IndexBtMessageValidator.h
  288. * src/Makefile.am
  289. * src/PeerMessageUtil.cc: Removed.
  290. * src/PeerMessageUtil.h: Removed.
  291. * src/RangeBtMessage.cc
  292. * src/RangeBtMessage.h
  293. * src/RangeBtMessageValidator.h
  294. * src/UTPexExtensionMessage.cc
  295. * src/ZeroBtMessage.cc
  296. * src/ZeroBtMessage.h
  297. * src/bittorrent_helper.cc
  298. * src/bittorrent_helper.h
  299. * test/BittorrentHelperTest.cc
  300. * test/BtAllowedFastMessageTest.cc
  301. * test/BtBitfieldMessageTest.cc
  302. * test/BtCancelMessageTest.cc
  303. * test/BtChokeMessageTest.cc
  304. * test/BtExtendedMessageTest.cc
  305. * test/BtHandshakeMessageTest.cc
  306. * test/BtHaveAllMessageTest.cc
  307. * test/BtHaveMessageTest.cc
  308. * test/BtHaveNoneMessageTest.cc
  309. * test/BtInterestedMessageTest.cc
  310. * test/BtNotInterestedMessageTest.cc
  311. * test/BtPieceMessageTest.cc
  312. * test/BtPortMessageTest.cc
  313. * test/BtRejectMessageTest.cc
  314. * test/BtRequestMessageTest.cc
  315. * test/BtSuggestPieceMessageTest.cc
  316. * test/BtUnchokeMessageTest.cc
  317. * test/DHTFindNodeReplyMessageTest.cc
  318. * test/DHTGetPeersReplyMessageTest.cc
  319. * test/DHTMessageFactoryImplTest.cc
  320. * test/DHTRoutingTableDeserializerTest.cc
  321. * test/DHTRoutingTableSerializerTest.cc
  322. * test/DefaultBtMessageFactoryTest.cc
  323. * test/DefaultExtensionMessageFactoryTest.cc
  324. * test/Makefile.am
  325. * test/PeerListProcessorTest.cc
  326. * test/PeerMessageUtilTest.cc: Removed.
  327. * test/UTPexExtensionMessageTest.cc
  328. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Limit the size of values list when sending get_peers reply.
  330. * src/DHTGetPeersReplyMessage.cc
  331. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Updated banner
  333. * doc/xmlrpc/aria2rpc
  334. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Added missing help message for remove command.
  336. * doc/xmlrpc/aria2rpc
  337. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Generated configure and config.h.in
  339. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  340. Add check for fork(), which is missing on MinGW
  341. * src/daemon.cc
  342. * configure.ac
  343. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  345. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  346. Util::httpGMT().
  347. * src/Util.cc
  348. * src/Util.h
  349. * test/UtilTest.cc
  350. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. * Release 1.6.0
  352. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Fixed a path to xmlrpc/README.txt
  354. * doc/Makefile.am
  355. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Added XML-RPC in -v Configuration output.
  357. * src/FeatureConfig.cc
  358. * src/FeatureConfig.h
  359. * test/FeatureConfigTest.cc
  360. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Updated Bulgarian, Russian, Slovak and Japanese
  362. translations. Thanks to all translators.
  363. * po/bg.po
  364. * po/ja.po
  365. * po/ru.po
  366. * po/sk.po
  367. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Removed --retry-wait option from aria2rpc
  369. * doc/xmlrpc/aria2rpc
  370. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Removed --retry-wait option from man page.
  372. * doc/aria2c.1.txt
  373. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Removed --retry-wait option since the current architecture doesn't
  375. allow sleep for particular URI.
  376. * src/AbstractCommand.cc
  377. * src/OptionHandlerFactory.cc
  378. * src/download_helper.cc
  379. * src/prefs.cc
  380. * src/prefs.h
  381. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Removed Retry-After header support. Since the current architecture
  383. doesn't allow sleep for particular URI.
  384. * src/HttpSkipResponseCommand.cc
  385. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Updated the help message for --daemon option.
  387. * doc/aria2c.1.txt
  388. * src/usage_text.h
  389. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Added our own daemon() function for systems which desn't have
  391. daemon(3).
  392. * configure.ac
  393. * src/Makefile.am
  394. * src/daemon.cc
  395. * src/daemon.h
  396. * src/option_processing.cc
  397. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Simplified File::getCurrentDir()
  399. * src/File.cc
  400. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Use exit() instead of _exit
  402. * src/RequestGroupMan.cc
  403. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Replaced "CATEGORY" with "TAGS".
  405. * src/usage_text.h
  406. * doc/aria2c.1.txt
  407. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Updated the help message for --help option.
  409. * src/usage_text.h
  410. * doc/aria2c.1.txt
  411. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Updated man page for added help tags.
  413. * doc/aria2c.1.txt
  414. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Added help category #file. Added #file tag to the options related
  416. to downloaded file.
  417. * src/OptionHandlerFactory.cc
  418. * src/help_tags.h
  419. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Added help categories: #cookie and #hook. Added #https tag to
  421. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  422. * src/OptionHandlerFactory.cc
  423. * src/help_tags.h
  424. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Made MSG_NOT_FILE translatable.
  426. * src/message.h
  427. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Updated man page for --help option.
  429. * doc/aria2c.1.txt
  430. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Updated doc.
  432. * src/XmlRpcMethod.h
  433. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Help category now starts with "#" to distinguish a category from
  435. keyword search. For example, "http" categroy is now "#http". You
  436. can type "--help=#http" to get explanation of options related to
  437. http. If '#' is omitted, then the argument is treated as a keyword
  438. and aria2 searches options whose name includes the keyword and
  439. print matched ones. For example, "--help=http" will show options
  440. whose name includes "http".
  441. * src/OptionHandlerFactory.cc
  442. * src/help_tags.h
  443. * src/usage_text.h
  444. * src/version_usage.cc
  445. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Documented missing experimental tag and newly added xml-rpc tag in
  447. man page.
  448. * doc/aria2c.1.txt
  449. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Added xml-rpc help tag. Tagged xml-rpc related options with
  451. xml-rpc tag.
  452. * src/OptionHandlerFactory.cc
  453. * src/help_tags.h
  454. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Updated message when a path is not a file. Updated common message
  456. for wrong option.
  457. * src/OptionHandlerException.cc
  458. * src/message.h
  459. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Use File::isFile() instead of File::exists(). Updated message when
  461. a path is not a file.
  462. * src/OptionHandlerImpl.cc
  463. * src/message.h
  464. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Fixed the bug that server performence profile is not updated when
  466. aria2c was terminated by emergency shutdown.
  467. * src/TrackerWatcherCommand.cc
  468. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Use LocalFilePathOptionHandler for -T and -M option.
  470. Updated message of MSG_FILE_NOT_EXIST.
  471. * src/OptionHandlerFactory.cc
  472. * src/message.h
  473. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Added LocalFilePathOptionHandler which check whether the specified
  475. file path does exist or not.
  476. * src/OptionHandlerImpl.cc
  477. * src/message.h
  478. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Updated wiki page URI.
  480. * README
  481. * doc/aria2c.1.txt
  482. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Added README.txt for xmlrpc directory.
  484. * doc/Makefile.am
  485. * doc/xmlrpc/README.txt
  486. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  487. Bump up version number to 1.6.0.
  488. * configure.ac
  489. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. Added XML-RPC client scripts written in ruby.
  491. * doc/Makefile.am
  492. * doc/xmlrpc/aria2mon
  493. * doc/xmlrpc/aria2rpc
  494. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Added support for IPv6 literal address in URI. Now aria2 can
  496. handle URI such as http://[::1]/
  497. * src/HttpRequest.cc
  498. * src/HttpRequest.h
  499. * src/Request.cc
  500. * src/Request.h
  501. * test/HttpRequestTest.cc
  502. * test/OptionHandlerTest.cc
  503. * test/RequestTest.cc
  504. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Fixed the bug that HTTP request header for XML-RPC request is not
  506. parsed properly.
  507. * src/HttpHeader.cc
  508. * src/HttpHeaderProcessor.cc
  509. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Fixed the bug that XML-RPC authorization might be done before HTTP
  511. request header is fully received.
  512. * src/HttpServerCommand.cc
  513. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Documented --xml-rpc-listen-all option in man page.
  515. * doc/aria2c.1.txt
  516. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Added --xml-rpc-listen-all option. If true is given to this
  518. option, aria2 listens incoming XML-RPC requests on all network
  519. interfaces. If false is given, listens only on local loopback
  520. interface. The default value is false.
  521. * src/HttpListenCommand.cc
  522. * src/OptionHandlerFactory.cc
  523. * src/SocketCore.cc
  524. * src/SocketCore.h
  525. * src/prefs.cc
  526. * src/prefs.h
  527. * src/usage_text.h
  528. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. * Release 1.5.2
  530. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Updated Ukrainian and Russian translations. Thanks to all
  532. translators.
  533. * po/ru.po
  534. * po/uk.po
  535. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Bump up version number to 1.5.2
  537. * configure.ac
  538. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Get comment, comment.utf-8, created by and creation date from
  540. .torrent file and print them in -S output.
  541. * src/bittorrent_helper.cc
  542. * src/bittorrent_helper.h
  543. * test/BittorrentHelperTest.cc
  544. * test/test.torrent
  545. * test/utf8.torrent
  546. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Show exact file size along in -S option output.
  548. * src/Util.h
  549. * src/bittorrent_helper.cc
  550. * test/UtilTest.cc
  551. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Avoided unnecessary memory allocation in
  553. BitfieldMan::getCompletedLength().
  554. * src/BitfieldMan.cc
  555. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Fixed the bug that download fails if
  557. SocketCore::establishConnection() throws exception and aria2
  558. doesn't try another address.
  559. * src/AbstractCommand.cc
  560. * src/InitiateConnectionCommand.cc
  561. * src/message.h
  562. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  564. detected properly.
  565. * m4/sqlite3.m4
  566. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  568. because it causes compile error if PARAMS macro is defined.
  569. * src/XmlRpcElements.cc
  570. * src/XmlRpcElements.h
  571. * src/XmlRpcRequestParserStateImpl.cc
  572. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. * Release 1.5.1
  574. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Bump up version number to 1.5.1
  576. * configure.ac
  577. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Fixed compile error without BitTorrent support
  579. * src/DefaultBtProgressInfoFile.cc
  580. * src/DownloadEngine.cc
  581. * src/DownloadEngine.h
  582. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Added missing '=' in Download Results
  584. * src/RequestGroupMan.cc
  585. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Fixed compiler warning
  587. * src/DefaultBtProgressInfoFile.cc
  588. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Fixed compiler warning on 32bit systems.
  590. * src/DownloadCommand.cc
  591. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Call flush from ServerStatMan::save()
  593. * src/ServerStatMan.cc
  594. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Check stream status after file is opened.
  596. * src/CookieStorage.cc
  597. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Rewritten Signature::save()
  599. * src/Signature.cc
  600. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Rewritten RequestGroupMan::saveServerStat()
  602. * src/RequestGroupMan.cc
  603. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Rewritten stream error handling
  605. * src/DHTAutoSaveCommand.cc
  606. * src/DHTRoutingTableDeserializer.cc
  607. * src/DHTRoutingTableSerializer.cc
  608. * src/DHTSetup.cc
  609. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Check stream status after file is opened.
  611. * src/DefaultBtProgressInfoFile.cc
  612. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Rewritten stream error handling
  614. * src/DefaultBtProgressInfoFile.cc
  615. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Make sure that stream is closed before renaming file. Unit test
  617. fails on mingw32 in the previous implementation.
  618. * src/CookieStorage.cc
  619. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Fixed the unit test error without sqlite3
  621. * test/CookieStorageTest.cc
  622. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Fixed the undefined reference error
  624. * test/HttpResponseTest.cc
  625. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. * Release 1.5.0
  627. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  629. Ukrainian translations. Thanks to all translators.
  630. * po/ru.po
  631. * po/it.po
  632. * po/da.po
  633. * po/bg.po
  634. * po/ja.po
  635. * po/uk.po
  636. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Added missing src/Logger.cc
  638. * src/Logger.cc
  639. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Rewritten Logger to avoiding constly virtual call.
  641. * src/LogFactory.cc
  642. * src/LogFactory.h
  643. * src/Logger.h
  644. * src/Makefile.am
  645. * src/Makefile.in
  646. * src/NullLogger.h: Removed.
  647. * src/SimpleLogger.cc
  648. * src/SimpleLogger.h
  649. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Updated doc
  651. * src/main.cc
  652. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Updated debug log message
  654. * src/AbstractCommand.cc
  655. * src/message.h
  656. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Avoid to create zombie process when commands specified in
  658. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  659. X and NetBSD.
  660. * src/main.cc
  661. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Fixed typo
  663. * src/usage_text.h
  664. * doc/aria2c.1.txt
  665. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Documented 'errorCode' of tellStatus in man page.
  667. * doc/aria2c.1.txt
  668. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  670. This key is only available for stopped/completed downloads and its
  671. value is the error code defined in EXIT STATUS in man page.
  672. * src/XmlRpcMethodImpl.cc
  673. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Fixed the bug that session download length is not updated when
  675. PeerStat is not fastest one.
  676. * src/SegmentMan.cc
  677. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Updated doc.
  679. * doc/aria2c.1.txt
  680. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Updated doc.
  682. * src/AbstractCommand.cc
  683. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Handle the case when DownloadContext has no FileEntry.
  685. * src/XmlRpcMethodImpl.cc
  686. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Handle the situation where struct option.name is char *.
  688. * configure.ac
  689. * src/OptionParser.cc
  690. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Code cleanup
  692. * src/AbstractCommand.cc
  693. * src/DownloadCommand.cc
  694. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Use option of each download to create AuthConfig instead of global
  696. option.
  697. * src/AuthConfigFactory.cc
  698. * src/AuthConfigFactory.h
  699. * src/FtpNegotiationCommand.cc
  700. * src/HttpRequest.cc
  701. * src/HttpRequest.h
  702. * src/HttpRequestCommand.cc
  703. * src/HttpSkipResponseCommand.cc
  704. * src/MultiUrlRequestInfo.cc
  705. * test/AuthConfigFactoryTest.cc
  706. * test/FtpConnectionTest.cc
  707. * test/HttpRequestTest.cc
  708. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Don't call prepareForRetry(1) if all segments are ignored in
  710. SegmentMan.
  711. * src/AbstractCommand.cc
  712. * src/BitfieldMan.cc
  713. * src/BitfieldMan.h
  714. * src/SegmentMan.cc
  715. * src/SegmentMan.h
  716. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Removed FileEntry::getAssociatedUris()
  718. * src/FileEntry.h
  719. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Updated doc: TODO1.5 -> TODO
  721. * src/FileEntry.cc
  722. * src/HttpResponseCommand.cc
  723. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Added assertion fileEntries.size() == 1 if BitTorrent is not
  725. involved.
  726. * src/RequestGroup.cc
  727. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Eliminated duplicated filterBitfield initialization code.
  729. * src/BitfieldMan.cc
  730. * src/BitfieldMan.h
  731. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  733. relatively naive approach, though). For DownloadFailureException,
  734. we handle the case when req is null properly.
  735. * src/AbstractCommand.cc
  736. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Added function returning suffix of control file to
  738. DefaultBtProgressInfoFile.
  739. * src/DefaultBtProgressInfoFile.cc
  740. * src/DefaultBtProgressInfoFile.h
  741. * src/RequestGroup.cc
  742. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Documented getVersion in man page.
  744. * doc/aria2c.1.txt
  745. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Documented type of offset and num for tellWaiting xml-rpc method.
  747. * doc/aria2c.1.txt
  748. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Implemented getVersion xml-rpc method. This method returns struct
  750. which has 2 key-value pairs: "version" key is associated to the
  751. version of aria2, such as "1.5.0". "enabledFeatures" key is
  752. associated to the list of enabled features, such as "Async DNS",
  753. "BitTorrent".
  754. * src/FeatureConfig.h
  755. * src/XmlRpcMethodFactory.cc
  756. * src/XmlRpcMethodImpl.cc
  757. * src/XmlRpcMethodImpl.h
  758. * test/XmlRpcMethodTest.cc
  759. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Removed TLS1.1 protocol support when aria2 is built with gnutls
  761. for compatibility issue.
  762. * src/SocketCore.cc
  763. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Fixed compile error with openSSL
  765. * src/bittorrent_helper.cc
  766. * src/messageDigest.h
  767. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Removed bad code: setting certificate type priority to key
  769. exchange priority.
  770. * src/SocketCore.cc
  771. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Disconnect seeder if client is also in seed state.
  773. * src/BtBitfieldMessage.cc
  774. * src/BtHaveAllMessage.cc
  775. * src/BtHaveMessage.cc
  776. * src/message.h
  777. * test/BtBitfieldMessageTest.cc
  778. * test/BtHaveAllMessageTest.cc
  779. * test/BtHaveMessageTest.cc
  780. * test/MockPieceStorage.h
  781. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Keep CreateRequestCommand in queue when no segment is available so
  783. that they can pick up pieces which slow BitTorrent peers are
  784. downloading.
  785. * src/AbstractCommand.cc
  786. * src/CreateRequestCommand.cc
  787. * src/CreateRequestCommand.h
  788. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. --bt-stop-timeout now only checks download speed.
  790. * src/BtStopDownloadCommand.cc
  791. * src/BtStopDownloadCommand.h
  792. * src/BtSetup.cc
  793. * src/usage_text.h
  794. * doc/aria2c.1.txt
  795. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Fixed compile error regarding BUFSIZE.
  797. * src/DownloadCommand.cc
  798. * src/DownloadCommand.h
  799. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Documented tellWaiting xml-rpc method in man page.
  801. * doc/aria2c.1.txt
  802. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Bump up version number to 1.5.0
  804. * configure.ac
  805. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Removed resolved TODO1.5
  807. * src/AbstractCommand.cc
  808. * src/DownloadCommand.cc
  809. * src/RequestGroup.cc
  810. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Release pooled and in-flight Request objectsand URIResult objects
  812. in FileEntry after download completed.
  813. * src/DownloadContext.cc
  814. * src/DownloadContext.h
  815. * src/FileEntry.cc
  816. * src/FileEntry.h
  817. * src/RequestGroup.cc
  818. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Set manual and source attribute in aria2c.1.txt
  820. * doc/aria2c.1.txt
  821. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Documented that the default value of --use-head is 'false' in man
  823. page.
  824. * doc/aria2c.1.txt
  825. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Added bt-stop-timeout option to -i list.
  827. * doc/aria2c.1.txt
  828. * src/download_helper.cc
  829. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Fixed typo
  831. * doc/aria2c.1.txt
  832. * src/usage_text.h
  833. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Removed peer-id-prefix option from -i list.
  835. * doc/aria2c.1.txt
  836. * src/download_helper.cc
  837. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Fixed typo
  839. * doc/aria2c.1.txt
  840. * src/usage_text.h
  841. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Documented --bt-stop-timeout option in man page.
  843. * doc/aria2c.1.txt
  844. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Updated README regarding multi-file torrent web-seeding.
  846. * doc/README.txt
  847. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Updated man page regarding multi-file torrent web-seeding.
  849. * doc/aria2c.1.txt
  850. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Updated doc
  852. * src/version_usage.cc
  853. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Winsock select() doesn't work if no socket is in FD_SET. To
  855. overcome this problem, a dummy socket is added to FD_SET and it is
  856. given to select().
  857. * src/SelectEventPoll.cc
  858. * src/SelectEventPoll.h
  859. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Disabled --use-head option by default because --use-head=true
  861. causes problems on some web sites.
  862. * src/OptionHandlerFactory.cc
  863. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Print URL List in -S option for torrent.
  865. * src/bittorrent_helper.cc
  866. * src/bittorrent_helper.h
  867. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Allocate buffer in ctor of DownloadCommand.
  869. * src/DownloadCommand.cc
  870. * src/DownloadCommand.h
  871. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Removed DiskAdaptor::onDownloadComplete()
  873. * src/DirectDiskAdaptor.cc
  874. * src/DirectDiskAdaptor.h
  875. * src/DiskAdaptor.h
  876. * src/MultiDiskAdaptor.cc
  877. * src/MultiDiskAdaptor.h
  878. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Committed missing BtStopDownloadCommand.{cc,h}
  880. * src/BtStopDownloadCommand.cc
  881. * src/BtStopDownloadCommand.h
  882. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  884. download if the download speed is 0 and the number of seeder is 0
  885. in consecutive SEC seconds. By default, this function is disabled.
  886. * src/BtSetup.cc
  887. * src/Makefile.am
  888. * src/OptionHandlerFactory.cc
  889. * src/prefs.cc
  890. * src/prefs.h
  891. * src/usage_text.h
  892. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Removed the call to DiskAdaptor::onDownloadComplete() from
  894. BtCheckIntegrityEntry and DefaultPieceStorage.
  895. * src/BtCheckIntegrityEntry.cc
  896. * src/DefaultPieceStorage.cc
  897. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Commented out throw statements when number of piece is 0 to
  899. download 0 length torrent.
  900. * src/bittorrent_helper.cc
  901. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Call RequestGroup::createNextCommandWithAdj() from
  903. BtFileAllocationEntry if at least one FileEntry has URI. The
  904. static function hasAssociatedUri in RequestGroup.cc is renamed as
  905. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  906. * src/BtFileAllocationEntry.cc
  907. * src/FileEntry.h
  908. * src/RequestGroup.cc
  909. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Generate peer ID after SimpleRandomizer is initialized.
  911. * src/main.cc
  912. * src/option_processing.cc
  913. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Removed unused method argument.
  915. * src/CreateRequestCommand.cc
  916. * src/RequestGroup.cc
  917. * src/RequestGroup.h
  918. * src/RequestGroupMan.cc
  919. * src/TrackerWatcherCommand.cc
  920. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Made URI reusing function work.
  922. * src/CreateRequestCommand.cc
  923. * src/FileEntry.cc
  924. * src/FileEntry.h
  925. * test/FileEntryTest.cc
  926. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Add formerly fastest PeerStat's sessionDownloadLength to new
  928. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  929. bytes in a session.
  930. * src/PeerStat.cc
  931. * src/SegmentMan.cc
  932. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. If pipelining is enabled, we can always pool socket.
  934. * src/HttpDownloadCommand.cc
  935. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. In a single file download, file size becomes known just after
  937. downloading, set total length to FileEntry object when download
  938. completed.
  939. * src/DownloadCommand.cc
  940. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Use std::vector::reserve() for fileEntries and pieceHashes in
  942. bittorrent_helper
  943. * src/bittorrent_helper.cc
  944. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  946. Removed hidden option PREF_RESET_URI.
  947. * src/AbstractCommand.cc
  948. * src/OptionHandlerFactory.cc
  949. * src/prefs.cc
  950. * src/prefs.h
  951. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Removed unused variable/function.
  953. * src/PeerStat.h
  954. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Show first URL in Download Results if file path is not available.
  956. * src/FileEntry.h
  957. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Throw exception if file path doesn't exist in FTP URL.
  959. * src/InitiateConnectionCommandFactory.cc
  960. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  962. * src/BitfieldMan.cc
  963. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  965. of PeerStat in SegmentMan. peerStats is used for calculating
  966. download speed. Therefore all active PeerStats should be in
  967. there. Another one is _fastestPeerStats and it only contains
  968. fastest PeerStat for each hostname/protocol pair. They are used
  969. for updating ServerStat.
  970. * src/DownloadCommand.cc
  971. * src/Request.h
  972. * src/RequestGroupMan.cc
  973. * src/SegmentMan.cc
  974. * src/SegmentMan.h
  975. * test/SegmentManTest.cc
  976. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Try all available addresses returned by DNS until it gets
  978. connected in HTTP(S)/FTP download
  979. * src/AbstractCommand.cc
  980. * src/AbstractCommand.h
  981. * src/AbstractProxyRequestCommand.cc
  982. * src/AbstractProxyRequestCommand.h
  983. * src/DNSCache.h
  984. * src/DownloadEngine.cc
  985. * src/DownloadEngine.h
  986. * src/FtpInitiateConnectionCommand.cc
  987. * src/FtpInitiateConnectionCommand.h
  988. * src/FtpNegotiationCommand.cc
  989. * src/FtpNegotiationCommand.h
  990. * src/HttpInitiateConnectionCommand.cc
  991. * src/HttpInitiateConnectionCommand.h
  992. * src/HttpRequestCommand.cc
  993. * src/HttpRequestCommand.h
  994. * src/InitiateConnectionCommand.cc
  995. * src/InitiateConnectionCommand.h
  996. * test/DNSCacheTest.cc
  997. * test/Makefile.am
  998. * test/SimpleDNSCacheTest.cc
  999. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Updated doc
  1001. * src/download_helper.cc
  1002. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Refactored fieldMan ctor.
  1004. * src/BitfieldMan.cc
  1005. * src/BitfieldMan.h
  1006. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Don't print "No files to download." message if -S is given.
  1008. * src/main.cc
  1009. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Set referer and method to newly created Request object.
  1011. * src/CreateRequestCommand.cc
  1012. * src/FileEntry.cc
  1013. * src/FileEntry.h
  1014. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1016. * src/AbstractCommand.cc
  1017. * src/AbstractCommand.h
  1018. * src/CreateRequestCommand.cc
  1019. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Get proxy download working
  1021. * src/AbstractProxyRequestCommand.cc
  1022. * src/AbstractProxyRequestCommand.h
  1023. * src/AbstractProxyResponseCommand.cc
  1024. * src/AbstractProxyResponseCommand.h
  1025. * src/FtpInitiateConnectionCommand.cc
  1026. * src/FtpTunnelRequestCommand.cc
  1027. * src/FtpTunnelRequestCommand.h
  1028. * src/FtpTunnelResponseCommand.cc
  1029. * src/FtpTunnelResponseCommand.h
  1030. * src/HttpInitiateConnectionCommand.cc
  1031. * src/HttpProxyRequestCommand.cc
  1032. * src/HttpProxyRequestCommand.h
  1033. * src/HttpProxyResponseCommand.cc
  1034. * src/HttpProxyResponseCommand.h
  1035. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Use SegmentMan::getSegment(cuid) for single file download.
  1037. * src/AbstractCommand.cc
  1038. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Fixed bufSize calculation
  1040. * src/DownloadCommand.cc
  1041. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Don't append "/" if base URI ends with "/".
  1043. * src/bittorrent_helper.cc
  1044. * test/url-list-multiFile.torrent
  1045. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. HTTP pipelining is now working. Fixed Segmention fault in
  1047. BitfieldMan's copy ctor.
  1048. * src/AbstractCommand.cc
  1049. * src/BitfieldMan.cc
  1050. * src/BitfieldMan.h
  1051. * src/DownloadCommand.cc
  1052. * src/HttpDownloadCommand.cc
  1053. * src/HttpRequest.cc
  1054. * src/SegmentMan.cc
  1055. * src/SegmentMan.h
  1056. * test/BitfieldManTest.cc
  1057. * test/SegmentManTest.cc
  1058. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Removed ServerHost. Same functionality is implemented using
  1060. FileEntry's in-flight Request objects.
  1061. * src/AbstractCommand.cc
  1062. * src/BtDependency.cc
  1063. * src/CreateRequestCommand.cc
  1064. * src/FileEntry.cc
  1065. * src/FileEntry.h
  1066. * src/FtpNegotiationCommand.cc
  1067. * src/HttpResponseCommand.cc
  1068. * src/Makefile.am
  1069. * src/Metalink2RequestGroup.cc
  1070. * src/RequestGroup.cc
  1071. * src/RequestGroup.h
  1072. * src/ServerHost.cc: Removed
  1073. * src/ServerHost.h: Removed
  1074. * test/BtDependencyTest.cc
  1075. * test/FileEntryTest.cc
  1076. * test/RequestGroupTest.cc
  1077. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. Rewritten PeerStat handling. In the previous implementation,
  1079. faster command tries to find slower command. In this new
  1080. implementation, slower command tries to find faster command.
  1081. PeerStat is now created in each HTTP/FTP request to get download
  1082. rate correctly. If the download range is small, the download rate
  1083. tends to small and this will occur at the later stage of download.
  1084. * src/AbstractCommand.cc
  1085. * src/DownloadCommand.cc
  1086. * src/FileEntry.cc
  1087. * src/FileEntry.h
  1088. * src/Request.cc
  1089. * src/Request.h
  1090. * src/RequestGroup.h
  1091. * src/RequestGroupMan.cc
  1092. * src/SegmentMan.cc
  1093. * src/SegmentMan.h
  1094. * test/SegmentManTest.cc
  1095. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Removed _uris from RequestGroup. All functions that refer to _uris
  1097. were moved to FileEntry. Exit status code are now defined in
  1098. DownloadResultCode.h.
  1099. * src/AbstractCommand.cc
  1100. * src/AdaptiveURISelector.cc
  1101. * src/AdaptiveURISelector.h
  1102. * src/AutoSaveCommand.cc
  1103. * src/BtPostDownloadHandler.cc
  1104. * src/CheckIntegrityDispatcherCommand.cc
  1105. * src/CookieStorage.cc
  1106. * src/DHTAutoSaveCommand.cc
  1107. * src/DHTBucketRefreshCommand.cc
  1108. * src/DHTEntryPointNameResolveCommand.cc
  1109. * src/DHTInteractionCommand.cc
  1110. * src/DHTPeerAnnounceCommand.cc
  1111. * src/DHTTokenUpdateCommand.cc
  1112. * src/DlAbortEx.h
  1113. * src/DlRetryEx.h
  1114. * src/DownloadCommand.cc
  1115. * src/DownloadContext.h
  1116. * src/DownloadFailureException.h
  1117. * src/DownloadResult.h
  1118. * src/DownloadResultCode.h
  1119. * src/FeedbackURISelector.cc
  1120. * src/FeedbackURISelector.h
  1121. * src/FileEntry.cc
  1122. * src/FileEntry.h
  1123. * src/FtpNegotiationCommand.cc
  1124. * src/HttpListenCommand.cc
  1125. * src/HttpResponseCommand.cc
  1126. * src/HttpServerResponseCommand.cc
  1127. * src/HttpSkipResponseCommand.cc
  1128. * src/InOrderURISelector.cc
  1129. * src/InOrderURISelector.h
  1130. * src/Makefile.am
  1131. * src/Makefile.in
  1132. * src/Metalink2RequestGroup.cc
  1133. * src/MultiUrlRequestInfo.cc
  1134. * src/MultiUrlRequestInfo.h
  1135. * src/OptionHandlerFactory.cc
  1136. * src/PeerListenCommand.cc
  1137. * src/RecoverableException.h
  1138. * src/RequestGroup.cc
  1139. * src/RequestGroup.h
  1140. * src/RequestGroupMan.cc
  1141. * src/RequestGroupMan.h
  1142. * src/TimedHaltCommand.cc
  1143. * src/TrackerWatcherCommand.cc
  1144. * src/URIResult.cc
  1145. * src/URIResult.h
  1146. * src/URISelector.h
  1147. * src/XmlRpcMethodImpl.cc
  1148. * src/bittorrent_helper.cc
  1149. * src/bittorrent_helper.h
  1150. * src/download_helper.cc
  1151. * src/main.cc
  1152. * src/option_processing.cc
  1153. * test/BtDependencyTest.cc
  1154. * test/BtPostDownloadHandlerTest.cc
  1155. * test/CookieStorageTest.cc
  1156. * test/DefaultBtMessageDispatcherTest.cc
  1157. * test/DownloadHandlerFactoryTest.cc
  1158. * test/DownloadHelperTest.cc
  1159. * test/FeedbackURISelectorTest.cc
  1160. * test/FileEntryTest.cc
  1161. * test/InOrderURISelectorTest.cc
  1162. * test/Metalink2RequestGroupTest.cc
  1163. * test/MetalinkPostDownloadHandlerTest.cc
  1164. * test/RequestGroupManTest.cc
  1165. * test/RequestGroupTest.cc
  1166. * test/XmlRpcMethodTest.cc
  1167. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Removed MockBtContext.h
  1169. * test/Makefile.am
  1170. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Removed _currentRequest from StreamCheckIntegrityEntry and
  1172. StreamFileAllocationEntry.
  1173. * src/AbstractCommand.cc
  1174. * src/HttpResponseCommand.cc
  1175. * src/RequestGroup.cc
  1176. * src/StreamCheckIntegrityEntry.cc
  1177. * src/StreamCheckIntegrityEntry.h
  1178. * src/StreamFileAllocationEntry.cc
  1179. * src/StreamFileAllocationEntry.h
  1180. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Rewritten DownloadContext and removed SingleFileDownloadContext
  1182. and BtContext and its derived classes. BitTorrent specific
  1183. attributes are now set by DownloadContext::setAttribute() with key
  1184. bittorrent::BITTORRENT.
  1185. * src/AbstractBtMessage.cc
  1186. * src/AbstractBtMessage.h
  1187. * src/AbstractCommand.cc
  1188. * src/AbstractCommand.h
  1189. * src/AbstractProxyRequestCommand.cc
  1190. * src/AbstractProxyResponseCommand.cc
  1191. * src/ActivePeerConnectionCommand.cc
  1192. * src/ActivePeerConnectionCommand.h
  1193. * src/AnnounceList.cc
  1194. * src/BtCheckIntegrityEntry.cc
  1195. * src/BtConstants.h
  1196. * src/BtContext.h: Removed
  1197. * src/BtDependency.cc
  1198. * src/BtExtendedMessage.cc
  1199. * src/BtPieceMessage.cc
  1200. * src/BtPieceMessage.h
  1201. * src/BtPostDownloadHandler.cc
  1202. * src/BtRegistry.cc
  1203. * src/BtRegistry.h
  1204. * src/BtSetup.cc
  1205. * src/CheckIntegrityCommand.cc
  1206. * src/CheckIntegrityEntry.cc
  1207. * src/ChecksumCheckIntegrityEntry.cc
  1208. * src/ConsoleStatCalc.cc
  1209. * src/ContentTypeRequestGroupCriteria.cc
  1210. * src/DHTGetPeersCommand.cc
  1211. * src/DHTGetPeersCommand.h
  1212. * src/DHTPeerLookupTask.cc
  1213. * src/DHTPeerLookupTask.h
  1214. * src/DHTTaskFactory.h
  1215. * src/DHTTaskFactoryImpl.cc
  1216. * src/DHTTaskFactoryImpl.h
  1217. * src/DefaultBtAnnounce.cc
  1218. * src/DefaultBtAnnounce.h
  1219. * src/DefaultBtContext.cc: Removed
  1220. * src/DefaultBtContext.h: Removed
  1221. * src/DefaultBtInteractive.cc
  1222. * src/DefaultBtInteractive.h
  1223. * src/DefaultBtMessageDispatcher.cc
  1224. * src/DefaultBtMessageDispatcher.h
  1225. * src/DefaultBtMessageFactory.cc
  1226. * src/DefaultBtMessageFactory.h
  1227. * src/DefaultBtMessageReceiver.cc
  1228. * src/DefaultBtMessageReceiver.h
  1229. * src/DefaultBtProgressInfoFile.cc
  1230. * src/DefaultBtRequestFactory.cc
  1231. * src/DefaultBtRequestFactory.h
  1232. * src/DefaultExtensionMessageFactory.cc
  1233. * src/DefaultExtensionMessageFactory.h
  1234. * src/DefaultPeerStorage.cc
  1235. * src/DefaultPeerStorage.h
  1236. * src/DefaultPieceStorage.cc
  1237. * src/DefaultSegmentManFactory.cc
  1238. * src/DiskAdaptor.cc
  1239. * src/DiskAdaptor.h
  1240. * src/DownloadContext.cc
  1241. * src/DownloadContext.h
  1242. * src/DownloadEngine.cc
  1243. * src/DownloadEngineFactory.cc
  1244. * src/DownloadHandler.cc
  1245. * src/DownloadResult.h
  1246. * src/FileAllocationCommand.cc
  1247. * src/FileAllocationDispatcherCommand.cc
  1248. * src/FileAllocationEntry.cc
  1249. * src/FileEntry.h
  1250. * src/FillRequestGroupCommand.cc
  1251. * src/FtpDownloadCommand.cc
  1252. * src/FtpFinishDownloadCommand.cc
  1253. * src/FtpInitiateConnectionCommand.cc
  1254. * src/FtpNegotiationCommand.cc
  1255. * src/FtpTunnelRequestCommand.cc
  1256. * src/FtpTunnelResponseCommand.cc
  1257. * src/HandshakeExtensionMessage.cc
  1258. * src/HandshakeExtensionMessage.h
  1259. * src/HaveEraseCommand.cc
  1260. * src/HttpDownloadCommand.cc
  1261. * src/HttpInitiateConnectionCommand.cc
  1262. * src/HttpProxyRequestCommand.cc
  1263. * src/HttpProxyResponseCommand.cc
  1264. * src/HttpRequest.cc
  1265. * src/HttpRequest.h
  1266. * src/HttpRequestCommand.cc
  1267. * src/HttpResponseCommand.cc
  1268. * src/HttpServerBodyCommand.cc
  1269. * src/HttpServerCommand.cc
  1270. * src/HttpSkipResponseCommand.cc
  1271. * src/InitiateConnectionCommandFactory.cc
  1272. * src/InitiatorMSEHandshakeCommand.cc
  1273. * src/InitiatorMSEHandshakeCommand.h
  1274. * src/IteratableChecksumValidator.cc
  1275. * src/IteratableChecksumValidator.h
  1276. * src/IteratableChunkChecksumValidator.cc
  1277. * src/MSEHandshake.cc
  1278. * src/MSEHandshake.h
  1279. * src/Makefile.am
  1280. * src/Makefile.in
  1281. * src/Metalink2RequestGroup.cc
  1282. * src/MetalinkPostDownloadHandler.cc
  1283. * src/MultiDiskAdaptor.cc
  1284. * src/MultiDiskAdaptor.h
  1285. * src/MultiFileAllocationIterator.cc
  1286. * src/MultiUrlRequestInfo.cc
  1287. * src/PeerChokeCommand.cc
  1288. * src/PeerChokeCommand.h
  1289. * src/PeerInitiateConnectionCommand.cc
  1290. * src/PeerInitiateConnectionCommand.h
  1291. * src/PeerInteractionCommand.cc
  1292. * src/PeerInteractionCommand.h
  1293. * src/PeerReceiveHandshakeCommand.cc
  1294. * src/PieceHashCheckIntegrityEntry.cc
  1295. * src/RealtimeCommand.cc
  1296. * src/ReceiverMSEHandshakeCommand.cc
  1297. * src/RequestGroup.cc
  1298. * src/RequestGroup.h
  1299. * src/RequestGroupEntry.cc
  1300. * src/RequestGroupMan.cc
  1301. * src/SeedCheckCommand.cc
  1302. * src/SeedCheckCommand.h
  1303. * src/SegmentMan.cc
  1304. * src/ShareRatioSeedCriteria.h
  1305. * src/SingleFileDownloadContext.cc: Removed
  1306. * src/SingleFileDownloadContext.h: Removed
  1307. * src/SleepCommand.cc
  1308. * src/StreamCheckIntegrityEntry.cc
  1309. * src/TrackerWatcherCommand.cc
  1310. * src/TrackerWatcherCommand.h
  1311. * src/UnknownLengthPieceStorage.cc
  1312. * src/Util.cc
  1313. * src/Util.h
  1314. * src/XmlRpcMethodImpl.cc
  1315. * src/bittorrent_helper.cc
  1316. * src/bittorrent_helper.h
  1317. * src/download_helper.cc
  1318. * src/main.cc
  1319. * src/option_processing.cc
  1320. * test/BitfieldManTest.cc
  1321. * test/BittorrentHelperTest.cc
  1322. * test/BtCancelMessageTest.cc
  1323. * test/BtChokeMessageTest.cc
  1324. * test/BtDependencyTest.cc
  1325. * test/BtPieceMessageTest.cc
  1326. * test/BtPostDownloadHandlerTest.cc
  1327. * test/BtRegistryTest.cc
  1328. * test/BtRejectMessageTest.cc
  1329. * test/BtRequestMessageTest.cc
  1330. * test/DHTPeerAnnounceStorageTest.cc
  1331. * test/DefaultBtAnnounceTest.cc
  1332. * test/DefaultBtContextTest.cc: Removed
  1333. * test/DefaultBtMessageDispatcherTest.cc
  1334. * test/DefaultBtMessageFactoryTest.cc
  1335. * test/DefaultBtProgressInfoFileTest.cc
  1336. * test/DefaultBtRequestFactoryTest.cc
  1337. * test/DefaultExtensionMessageFactoryTest.cc
  1338. * test/DefaultPeerStorageTest.cc
  1339. * test/DefaultPieceStorageTest.cc
  1340. * test/DirectDiskAdaptorTest.cc
  1341. * test/DownloadContextTest.cc
  1342. * test/DownloadHandlerFactoryTest.cc
  1343. * test/DownloadHelperTest.cc
  1344. * test/HandshakeExtensionMessageTest.cc
  1345. * test/HttpRequestTest.cc
  1346. * test/HttpResponseTest.cc
  1347. * test/IteratableChecksumValidatorTest.cc
  1348. * test/IteratableChunkChecksumValidatorTest.cc
  1349. * test/MSEHandshakeTest.cc
  1350. * test/Makefile.am
  1351. * test/Makefile.in
  1352. * test/Metalink2RequestGroupTest.cc
  1353. * test/MetalinkPostDownloadHandlerTest.cc
  1354. * test/MockBtContext.h: Removed
  1355. * test/MockDHTTaskFactory.h
  1356. * test/MockDownloadContext.h: Removed
  1357. * test/MockPieceStorage.h
  1358. * test/MultiDiskAdaptorTest.cc
  1359. * test/MultiFileAllocationIteratorTest.cc
  1360. * test/RequestGroupManTest.cc
  1361. * test/RequestGroupTest.cc
  1362. * test/SegmentManTest.cc
  1363. * test/ShareRatioSeedCriteriaTest.cc
  1364. * test/SingleFileDownloadContextTest.cc: Removed
  1365. * test/UtilTest.cc
  1366. * test/XmlRpcMethodTest.cc
  1367. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Added experimental support of WEB-Seeding for multi-file torrent.
  1369. Due to fundamental changes in file handling in HTTP/FTP code, many
  1370. functions are not working: PeerStat, ServerHost, proxy..etc
  1371. * src/AbstractCommand.cc
  1372. * src/AbstractCommand.h
  1373. * src/BitfieldMan.cc
  1374. * src/BitfieldMan.h
  1375. * src/CreateRequestCommand.cc
  1376. * src/CreateRequestCommand.h
  1377. * src/DefaultPieceStorage.cc
  1378. * src/DefaultPieceStorage.h
  1379. * src/DownloadCommand.cc
  1380. * src/DownloadCommand.h
  1381. * src/DownloadContext.cc
  1382. * src/DownloadContext.h
  1383. * src/FileEntry.cc
  1384. * src/FileEntry.h
  1385. * src/FtpDownloadCommand.cc
  1386. * src/FtpDownloadCommand.h
  1387. * src/FtpFinishDownloadCommand.cc
  1388. * src/FtpFinishDownloadCommand.h
  1389. * src/FtpInitiateConnectionCommand.cc
  1390. * src/FtpInitiateConnectionCommand.h
  1391. * src/FtpNegotiationCommand.cc
  1392. * src/FtpNegotiationCommand.h
  1393. * src/FtpTunnelResponseCommand.cc
  1394. * src/HttpDownloadCommand.cc
  1395. * src/HttpDownloadCommand.h
  1396. * src/HttpInitiateConnectionCommand.cc
  1397. * src/HttpInitiateConnectionCommand.h
  1398. * src/HttpProxyResponseCommand.cc
  1399. * src/HttpRequest.cc
  1400. * src/HttpRequest.h
  1401. * src/HttpRequestCommand.cc
  1402. * src/HttpRequestCommand.h
  1403. * src/HttpResponseCommand.cc
  1404. * src/HttpResponseCommand.h
  1405. * src/HttpSkipResponseCommand.cc
  1406. * src/HttpSkipResponseCommand.h
  1407. * src/InitiateConnectionCommand.cc
  1408. * src/InitiateConnectionCommand.h
  1409. * src/InitiateConnectionCommandFactory.cc
  1410. * src/InitiateConnectionCommandFactory.h
  1411. * src/Makefile.am
  1412. * src/PieceStorage.h
  1413. * src/RequestGroup.cc
  1414. * src/RequestGroup.h
  1415. * src/RequestGroupMan.cc
  1416. * src/SegmentMan.cc
  1417. * src/SegmentMan.h
  1418. * src/SingleFileDownloadContext.h
  1419. * src/StreamFileAllocationEntry.cc
  1420. * src/TrackerWatcherCommand.cc
  1421. * src/UnknownLengthPieceStorage.cc
  1422. * src/UnknownLengthPieceStorage.h
  1423. * src/array_fun.h
  1424. * src/bitfield.h
  1425. * src/download_helper.cc
  1426. * test/DownloadContextTest.cc
  1427. * test/Makefile.am
  1428. * test/MockDownloadContext.h
  1429. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Added tellWaiting XML-RPC method.
  1431. * src/SingleFileDownloadContext.cc
  1432. * src/XmlRpcMethodFactory.cc
  1433. * src/XmlRpcMethodImpl.cc
  1434. * src/XmlRpcMethodImpl.h
  1435. * test/XmlRpcMethodTest.cc
  1436. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Updated CookieStorageTest
  1438. * test/CookieStorageTest.cc
  1439. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1441. handle excepion inside these functions.
  1442. * src/LibgnutlsTLSContext.cc
  1443. * src/LibgnutlsTLSContext.h
  1444. * src/LibsslTLSContext.cc
  1445. * src/LibsslTLSContext.h
  1446. * src/MultiUrlRequestInfo.cc
  1447. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Added comment
  1449. * src/RequestGroup.cc
  1450. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. In CookieStorage::load() and saveNsFormat(), handle exception
  1452. inside the functions. When saving Cookies, first write temporary
  1453. file and after successful writes, then renames it to final
  1454. destination.
  1455. * src/CookieStorage.cc
  1456. * src/CookieStorage.h
  1457. * src/MultiUrlRequestInfo.cc
  1458. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. The default value of --dir option is the absolute path to the
  1460. current directory. If getcwd() is failed, then it is ".", which is
  1461. the same value with old implementation. This change is necessary
  1462. because after daemon() call, the current working directory is
  1463. changed to /.
  1464. * src/File.cc
  1465. * src/File.h
  1466. * src/OptionHandlerFactory.cc
  1467. * src/option_processing.cc
  1468. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Call daemon() with arguments(0,0), which means daemon() changes
  1470. current working directory to / and redirects stdin, stdout and
  1471. stderr to /dev/null.
  1472. * src/option_processing.cc
  1473. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Small performance optimizations.
  1475. * src/RequestGroupMan.cc
  1476. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1478. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1479. * src/RequestGroupMan.cc
  1480. * src/RequestGroupMan.h
  1481. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1483. setNoWiat(true) if newly created command calls
  1484. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1485. * src/HttpListenCommand.cc
  1486. * src/HttpServerBodyCommand.cc
  1487. * src/HttpServerCommand.cc
  1488. * src/HttpServerResponseCommand.cc
  1489. * src/InitiateConnectionCommand.cc
  1490. * src/RequestGroup.cc
  1491. * src/StreamFileAllocationEntry.cc
  1492. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Removed include vector
  1494. * src/BtRegistry.h
  1495. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Rewritten BtRegistry
  1497. * src/BtRegistry.cc
  1498. * src/BtRegistry.h
  1499. * src/BtSetup.cc
  1500. * src/ConsoleStatCalc.cc
  1501. * src/PeerInteractionCommand.cc
  1502. * src/PeerReceiveHandshakeCommand.cc
  1503. * src/ReceiverMSEHandshakeCommand.cc
  1504. * src/RequestGroup.cc
  1505. * src/XmlRpcMethodImpl.cc
  1506. * test/BtRegistryTest.cc
  1507. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1509. * src/DefaultBtProgressInfoFile.cc
  1510. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Throw an exception if position is less than 0.
  1512. * src/XmlRpcMethodImpl.cc
  1513. * test/XmlRpcMethodTest.cc
  1514. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Use writeFilePath() in ConsoleStatCalc.cc
  1516. * src/ConsoleStatCalc.cc
  1517. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Receive the return value as const reference from
  1519. DownloadContext::getFileEntries().
  1520. * src/DefaultPieceStorage.cc
  1521. * src/RequestGroupMan.cc
  1522. * src/XmlRpcMethodImpl.cc
  1523. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. DownloadContext now has _fileEntries so that
  1525. DownloadContext::getFileEntries() can returns its const reference.
  1526. * src/DefaultBtContext.cc
  1527. * src/DefaultBtContext.h
  1528. * src/DownloadContext.cc
  1529. * src/DownloadContext.h
  1530. * src/SingleFileDownloadContext.cc
  1531. * src/SingleFileDownloadContext.h
  1532. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1534. writeFilePath() function template from RequestGroupMan.cc to
  1535. FileEntry.h
  1536. * src/FileEntry.h
  1537. * src/RequestGroupMan.cc
  1538. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Documented 'position' parameter is starting from 0 in man page.
  1540. * doc/aria2c.1.txt
  1541. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Updated doc.
  1543. * src/MSEHandshake.cc
  1544. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Removed _acceptFeatures and its accessor functions from
  1546. RequestGroup since they are not used practically.
  1547. * src/HttpRequestCommand.cc
  1548. * src/RequestGroup.cc
  1549. * src/RequestGroup.h
  1550. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Removed member _maxTries from RequestGroup class to avoid
  1552. duplicate option value. Those classes who refer this variable
  1553. should use option value of PREF_MAX_TRIES directly.
  1554. * src/AbstractCommand.cc
  1555. * src/RequestGroup.cc
  1556. * src/RequestGroup.h
  1557. * src/TrackerWatcherCommand.cc
  1558. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. * Release 1.4.1
  1560. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Fixed compiler warnings on netbsd
  1562. * src/DHTConnectionImpl.cc
  1563. * src/PeerListenCommand.cc
  1564. * src/PeerSessionResource.cc
  1565. * src/SegmentMan.cc
  1566. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Updated Ukrainian translation. Thanks to all translators.
  1568. * po/uk.po
  1569. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Bump up version number to 1.4.1.
  1571. * configure.ac
  1572. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Added unit tests for strjoin, strconcat and strappend.
  1574. * test/a2functionalTest.cc
  1575. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Rewritten strconcat and strappend using operator+ instead of
  1577. append().
  1578. * src/a2functional.h
  1579. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1581. is enabled.
  1582. * src/Makefile.am
  1583. * test/Makefile.am
  1584. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Added countSeeder() function which counts seeder in the given
  1586. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1587. * src/ConsoleStatCalc.cc
  1588. * src/Peer.h
  1589. * src/XmlRpcMethodImpl.cc
  1590. * test/PeerTest.cc
  1591. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Documented missing seeder in getPeers xml-rpc method.
  1593. Documented uploadLength and numSeeders.
  1594. * doc/aria2c.1.txt
  1595. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Added uploadLength and numSeeders to the response of tellStatus
  1597. xml-rpc method. Assert that PeerStorage instance is not null
  1598. instead of checking if statement. It should be non-null in this
  1599. context.
  1600. * src/XmlRpcMethodImpl.cc
  1601. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1603. * src/XmlRpcResponse.cc
  1604. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Avoid intermediate object during string concatenation.
  1606. * src/HttpRequest.cc
  1607. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Added strjoin function template. Use it in pathJoin()
  1609. * src/Util.h
  1610. * src/a2functional.h
  1611. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Avoid intermediate object during string concatenation. Replaced
  1613. post-increment unary operator with pre-increment one in for loop.
  1614. * src/AdaptiveURISelector.cc
  1615. * src/AnnounceList.cc
  1616. * src/AuthConfig.h
  1617. * src/BtBitfieldMessage.cc
  1618. * src/BtExtendedMessage.cc
  1619. * src/BtHandshakeMessage.cc
  1620. * src/BtPieceMessage.cc
  1621. * src/BtPortMessage.cc
  1622. * src/Cookie.cc
  1623. * src/DHTAnnouncePeerMessage.cc
  1624. * src/DHTAutoSaveCommand.cc
  1625. * src/DHTGetPeersReplyMessage.cc
  1626. * src/DHTNode.cc
  1627. * src/DHTQueryMessage.cc
  1628. * src/DHTResponseMessage.cc
  1629. * src/DHTUnknownMessage.cc
  1630. * src/DefaultBtAnnounce.cc
  1631. * src/DefaultBtContext.cc
  1632. * src/DefaultBtInteractive.cc
  1633. * src/DefaultBtProgressInfoFile.cc
  1634. * src/DefaultPeerStorage.cc
  1635. * src/DownloadEngine.cc
  1636. * src/FeatureConfig.cc
  1637. * src/File.cc
  1638. * src/FtpConnection.cc
  1639. * src/FtpNegotiationCommand.cc
  1640. * src/HandshakeExtensionMessage.cc
  1641. * src/HttpConnection.cc
  1642. * src/HttpRequest.cc
  1643. * src/HttpResponseCommand.cc
  1644. * src/HttpServer.cc
  1645. * src/IndexBtMessage.cc
  1646. * src/Metalink2RequestGroup.cc
  1647. * src/OptionHandlerImpl.h
  1648. * src/PStringBuildVisitor.cc
  1649. * src/Peer.cc
  1650. * src/PeerListenCommand.cc
  1651. * src/Piece.cc
  1652. * src/RangeBtMessage.cc
  1653. * src/Request.cc
  1654. * src/Request.h
  1655. * src/RequestGroup.cc
  1656. * src/RequestGroupMan.cc
  1657. * src/ServerStat.cc
  1658. * src/ServerStatMan.cc
  1659. * src/UTPexExtensionMessage.cc
  1660. * src/Util.cc
  1661. * src/a2functional.h
  1662. * src/download_helper.cc
  1663. * src/messageDigest.cc
  1664. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Unchoke a peer randomly at first and second choke round in seed
  1666. state.
  1667. * src/BtSeederStateChoke.cc
  1668. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1669. Added (sock_t) to quiet compiler warnings in MinGW
  1670. * src/SocketCore.cc
  1671. * src/SocketCore.h
  1672. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1674. * src/EpollEventPoll.h
  1675. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1676. Added fork() emulation using CreateProcess() in MinGW
  1677. * src/RequestGroupMan.cc
  1678. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. * Release 1.4.0
  1680. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Added utf8.torrent to EXTRA_DIST
  1682. * test/Makefile.am
  1683. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Fixed docs of aria2.addMetalink xml-rpc method.
  1685. * doc/aria2c.1.txt
  1686. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Added Slovak translation. Updated Ukrainian and Brazilian
  1688. Portuguese translation. Thanks to all translators.
  1689. * po/sk.po
  1690. * po/uk.po
  1691. * po/pt_BR.po
  1692. * po/LINGUAS
  1693. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Added test case for XmlRpcProcessor to fail to parse malformed
  1695. document.
  1696. * test/XmlRpcRequestProcessorTest.cc
  1697. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Removed *.gmo files in po because they are generated on 'make
  1699. dist'
  1700. * po/*.gmo
  1701. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Documented max-concurrent-downloads of changeGlobalOption method
  1703. in man page.
  1704. * doc/aria2c.1.txt
  1705. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Added max-concurrent-downloads option to changeGlobalOption
  1707. xml-rpc method. Rewritten loop conditional in
  1708. RequestGroupMan::fillRequestGroupFromReserver().
  1709. * src/RequestGroupMan.cc
  1710. * src/RequestGroupMan.h
  1711. * src/XmlRpcMethod.cc
  1712. * src/XmlRpcMethodImpl.cc
  1713. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Documented position parameter in man page.
  1715. * doc/aria2c.1.txt
  1716. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Added 'position' parameter to addUri, addTorrent and addMetalink
  1718. xml-rpc method.
  1719. * src/RequestGroupMan.cc
  1720. * src/RequestGroupMan.h
  1721. * src/XmlRpcMethodImpl.cc
  1722. * test/XmlRpcMethodTest.cc
  1723. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Removed Peer.cc from compile source list when --disable-bittorrent
  1725. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1726. takes Peer.
  1727. * src/DefaultPieceStorage.cc
  1728. * src/DefaultPieceStorage.h
  1729. * src/Makefile.am
  1730. * src/PieceStorage.h
  1731. * src/UnknownLengthPieceStorage.cc
  1732. * src/UnknownLengthPieceStorage.h
  1733. * test/MockPieceStorage.h
  1734. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Implemented getter methods in header files to give them more
  1736. chance of optimization.
  1737. Return const reference for SharadHandle if possible.
  1738. * src/AbstractAuthResolver.cc
  1739. * src/AbstractAuthResolver.h
  1740. * src/AbstractBtMessage.cc
  1741. * src/AbstractBtMessage.h
  1742. * src/AbstractSingleDiskAdaptor.cc
  1743. * src/AbstractSingleDiskAdaptor.h
  1744. * src/AsyncNameResolver.cc
  1745. * src/AsyncNameResolver.h
  1746. * src/BNode.cc
  1747. * src/BNode.h
  1748. * src/BitfieldMan.cc
  1749. * src/BitfieldMan.h
  1750. * src/BtAbortOutstandingRequestEvent.h
  1751. * src/BtExtendedMessage.cc
  1752. * src/BtExtendedMessage.h
  1753. * src/BtSeederStateChoke.cc
  1754. * src/BtSeederStateChoke.h
  1755. * src/Cookie.cc
  1756. * src/Cookie.h
  1757. * src/DHTBucket.cc
  1758. * src/DHTBucket.h
  1759. * src/DHTConnectionImpl.cc
  1760. * src/DHTConnectionImpl.h
  1761. * src/DHTFindNodeReplyMessage.cc
  1762. * src/DHTFindNodeReplyMessage.h
  1763. * src/DHTGetPeersReplyMessage.cc
  1764. * src/DHTGetPeersReplyMessage.h
  1765. * src/DHTInteractionCommand.cc
  1766. * src/DHTMessage.cc
  1767. * src/DHTMessage.h
  1768. * src/DHTMessageDispatcherImpl.cc
  1769. * src/DHTMessageEntry.cc
  1770. * src/DHTMessageReceiver.cc
  1771. * src/DHTMessageReceiver.h
  1772. * src/DHTMessageTrackerEntry.cc
  1773. * src/DHTMessageTrackerEntry.h
  1774. * src/DHTPeerAnnounceEntry.cc
  1775. * src/DHTPeerAnnounceEntry.h
  1776. * src/DHTPeerLookupTask.cc
  1777. * src/DHTPeerLookupTask.h
  1778. * src/DHTRoutingTableDeserializer.cc
  1779. * src/DHTRoutingTableDeserializer.h
  1780. * src/DefaultBtAnnounce.cc
  1781. * src/DefaultBtAnnounce.h
  1782. * src/DefaultBtMessageDispatcher.cc
  1783. * src/DefaultBtMessageDispatcher.h
  1784. * src/DefaultBtRequestFactory.cc
  1785. * src/DefaultBtRequestFactory.h
  1786. * src/DiskAdaptor.cc
  1787. * src/DiskAdaptor.h
  1788. * src/DownloadContext.cc
  1789. * src/DownloadContext.h
  1790. * src/DownloadEngine.cc
  1791. * src/DownloadEngine.h
  1792. * src/EpollEventPoll.cc
  1793. * src/EpollEventPoll.h
  1794. * src/FtpConnection.cc
  1795. * src/FtpConnection.h
  1796. * src/HttpConnection.cc
  1797. * src/HttpConnection.h
  1798. * src/HttpHeader.cc
  1799. * src/HttpHeader.h
  1800. * src/HttpRequest.cc
  1801. * src/HttpRequest.h
  1802. * src/HttpResponse.cc
  1803. * src/HttpResponse.h
  1804. * src/LibsslTLSContext.cc
  1805. * src/LibsslTLSContext.h
  1806. * src/MSEHandshake.cc
  1807. * src/MSEHandshake.h
  1808. * src/MetalinkEntry.cc
  1809. * src/MetalinkEntry.h
  1810. * src/MetalinkParserController.cc
  1811. * src/MetalinkParserController.h
  1812. * src/MetalinkParserStateMachine.cc
  1813. * src/MetalinkParserStateMachine.h
  1814. * src/MultiDiskAdaptor.cc
  1815. * src/MultiDiskAdaptor.h
  1816. * src/NetrcAuthResolver.cc
  1817. * src/NetrcAuthResolver.h
  1818. * src/Peer.cc
  1819. * src/Peer.h
  1820. * src/PeerSessionResource.cc
  1821. * src/PeerSessionResource.h
  1822. * src/Piece.cc
  1823. * src/Piece.h
  1824. * src/PieceStatMan.cc
  1825. * src/PieceStatMan.h
  1826. * src/Request.cc
  1827. * src/Request.h
  1828. * src/RequestGroup.cc
  1829. * src/RequestGroup.h
  1830. * src/RequestGroupMan.cc
  1831. * src/RequestGroupMan.h
  1832. * src/RequestSlot.cc
  1833. * src/RequestSlot.h
  1834. * src/SegmentMan.cc
  1835. * src/SegmentMan.h
  1836. * src/SelectEventPoll.cc
  1837. * src/SelectEventPoll.h
  1838. * src/ServerStat.cc
  1839. * src/ServerStat.h
  1840. * src/Signature.cc
  1841. * src/Signature.h
  1842. * src/URIResult.cc
  1843. * src/URIResult.h
  1844. * src/UTPexExtensionMessage.cc
  1845. * src/UTPexExtensionMessage.h
  1846. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Fixed compile error without BitTorrent and Metalink support.
  1848. * src/XmlRpcMethod.cc
  1849. * src/XmlRpcMethodFactory.cc
  1850. * src/XmlRpcMethodImpl.cc
  1851. * src/XmlRpcMethodImpl.h
  1852. * test/XmlRpcMethodTest.cc
  1853. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Rewritten the help message for --allow-overwrite option.
  1855. * doc/aria2c.1.txt
  1856. * src/usage_text.h
  1857. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Fixed typo
  1859. * doc/aria2c.1.txt
  1860. * src/usage_text.h
  1861. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Updated README for 1.4.0 release. Use new table syntax of
  1863. asciidoc.
  1864. * README
  1865. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Documented --xml-rpc-max-request-size option in man page.
  1867. * doc/aria2c.1.txt
  1868. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Moved C_* constants from BtContext to DefaultBtContext.
  1870. * src/BtContext.cc: Removed.
  1871. * src/BtContext.h
  1872. * src/DefaultBtContext.cc
  1873. * src/DefaultBtContext.h
  1874. * src/Makefile.am
  1875. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1877. path key respectively when persing .torrent file.
  1878. * src/BtContext.cc
  1879. * src/BtContext.h
  1880. * src/DefaultBtContext.cc
  1881. * test/DefaultBtContextTest.cc
  1882. * test/utf8.torrent
  1883. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Added --xml-rpc-max-request-size option to limit the size of
  1885. XML-RPC request.
  1886. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Documented XML-RPC API in man page.
  1888. * doc/aria2c.1.txt
  1889. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1891. will break strict-aliasing rules
  1892. * src/PeerConnection.cc
  1893. * test/DHTRoutingTableSerializerTest.cc
  1894. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1896. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1897. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1898. PKG_CHECK_MODULES macro uses latter name.
  1899. * m4/sqlite3.m4
  1900. * src/Makefile.am
  1901. * test/Makefile.am
  1902. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Fixed typo
  1904. * configure.ac
  1905. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1907. presence of libgnutls using pkg-config first. If it fails, fall
  1908. back to old macro libgnutls.m4.
  1909. * configure.ac
  1910. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Use s itself instead of !s.bad()
  1912. * src/CookieStorage.cc
  1913. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Documented --on-download-* option and --save-cookies option in man
  1915. page.
  1916. * doc/aria2c.1.txt
  1917. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Set possible values for --load-cookie option to "/path/to/file".
  1919. * src/OptionHandlerFactory.cc
  1920. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Added --save-cookies option.
  1922. * src/Cookie.cc
  1923. * src/Cookie.h
  1924. * src/CookieStorage.cc
  1925. * src/CookieStorage.h
  1926. * src/MultiUrlRequestInfo.cc
  1927. * src/OptionHandlerFactory.cc
  1928. * src/prefs.cc
  1929. * src/prefs.h
  1930. * src/usage_text.h
  1931. * test/CookieStorageTest.cc
  1932. * test/CookieTest.cc
  1933. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Removed tellAll XML-RPC command because its reponse tends to be
  1935. big if stopped/waiting downloads pile up.
  1936. * src/XmlRpcMethodFactory.cc
  1937. * src/XmlRpcMethodImpl.cc
  1938. * src/XmlRpcMethodImpl.h
  1939. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Added the ability to execute command when download starts and
  1941. stops. You can also specify command for particular cases such as
  1942. complete/error download. Added --on-download-start,
  1943. --on-download-stop, --on-download-complete and --on-download-error
  1944. option.
  1945. * src/OptionHandlerFactory.cc
  1946. * src/RequestGroupMan.cc
  1947. * src/prefs.cc
  1948. * src/prefs.h
  1949. * src/usage_text.h
  1950. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Fixed test error
  1952. * test/BencodeTest.cc
  1953. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Added unit tests.
  1955. * test/XmlRpcMethodTest.cc
  1956. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Made exception message more verbose.
  1958. * src/bencode.cc
  1959. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1961. space in console readout. Also they are now shown in MiB/s if
  1962. speed > 1024KiB/s.
  1963. * src/ConsoleStatCalc.cc
  1964. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Added SEED to console output, which represents the number of
  1966. seeders currently the client is connecting to.
  1967. * src/ConsoleStatCalc.cc
  1968. * src/ConsoleStatCalc.h
  1969. * src/DownloadEngine.cc
  1970. * src/NullStatCalc.h
  1971. * src/StatCalc.h
  1972. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Added source filename(__FILE__) and line number(__LINE__) to
  1974. exception message.
  1975. * src/AbstractCommand.cc
  1976. * src/AbstractDiskWriter.cc
  1977. * src/AbstractProxyResponseCommand.cc
  1978. * src/BDE.h
  1979. * src/BtAllowedFastMessage.cc
  1980. * src/BtHandshakeMessageValidator.h
  1981. * src/BtHaveAllMessage.cc
  1982. * src/BtHaveNoneMessage.cc
  1983. * src/BtPieceMessage.cc
  1984. * src/BtRejectMessage.cc
  1985. * src/ChunkedDecoder.cc
  1986. * src/CookieStorage.cc
  1987. * src/DHTAnnouncePeerMessage.cc
  1988. * src/DHTEntryPointNameResolveCommand.cc
  1989. * src/DHTMessageFactoryImpl.cc
  1990. * src/DHTMessageTracker.cc
  1991. * src/DHTRoutingTableDeserializer.cc
  1992. * src/DHTRoutingTableSerializer.cc
  1993. * src/DHTSetup.cc
  1994. * src/DHTTokenTracker.cc
  1995. * src/DefaultBtAnnounce.cc
  1996. * src/DefaultBtContext.cc
  1997. * src/DefaultBtInteractive.cc
  1998. * src/DefaultBtMessageFactory.cc
  1999. * src/DefaultBtProgressInfoFile.cc
  2000. * src/DefaultExtensionMessageFactory.cc
  2001. * src/DlAbortEx.h
  2002. * src/DlRetryEx.h
  2003. * src/DownloadCommand.cc
  2004. * src/DownloadEngineFactory.cc
  2005. * src/DownloadFailureException.h
  2006. * src/Exception.cc
  2007. * src/Exception.h
  2008. * src/ExpatMetalinkProcessor.cc
  2009. * src/ExpatXmlRpcRequestProcessor.cc
  2010. * src/FallocFileAllocationIterator.cc
  2011. * src/FatalException.h
  2012. * src/FtpConnection.cc
  2013. * src/FtpFinishDownloadCommand.cc
  2014. * src/FtpInitiateConnectionCommand.cc
  2015. * src/FtpNegotiationCommand.cc
  2016. * src/GZipDecoder.cc
  2017. * src/HandshakeExtensionMessage.cc
  2018. * src/HttpConnection.cc
  2019. * src/HttpHeaderProcessor.cc
  2020. * src/HttpInitiateConnectionCommand.cc
  2021. * src/HttpResponse.cc
  2022. * src/HttpResponseCommand.cc
  2023. * src/HttpServer.cc
  2024. * src/HttpSkipResponseCommand.cc
  2025. * src/InitiateConnectionCommandFactory.cc
  2026. * src/IteratableChunkChecksumValidator.cc
  2027. * src/LibgcryptARC4Context.h
  2028. * src/LibgcryptARC4Decryptor.h
  2029. * src/LibgcryptARC4Encryptor.h
  2030. * src/LibgcryptDHKeyExchange.h
  2031. * src/LibgnutlsTLSContext.cc
  2032. * src/LibsslARC4Context.h
  2033. * src/LibsslARC4Decryptor.h
  2034. * src/LibsslARC4Encryptor.h
  2035. * src/LibsslDHKeyExchange.h
  2036. * src/LibsslTLSContext.cc
  2037. * src/MSEHandshake.cc
  2038. * src/MessageDigestHelper.cc
  2039. * src/MetalinkHelper.cc
  2040. * src/MultiDiskAdaptor.cc
  2041. * src/NameMatchOptionHandler.h
  2042. * src/NameResolver.cc
  2043. * src/Netrc.cc
  2044. * src/NsCookieParser.cc
  2045. * src/OptionHandlerException.cc
  2046. * src/OptionHandlerException.h
  2047. * src/OptionHandlerImpl.h
  2048. * src/OptionParser.cc
  2049. * src/ParameterizedStringParser.cc
  2050. * src/PeerAbstractCommand.cc
  2051. * src/PeerConnection.cc
  2052. * src/PeerMessageUtil.cc
  2053. * src/PeerReceiveHandshakeCommand.cc
  2054. * src/Platform.cc
  2055. * src/ReceiverMSEHandshakeCommand.cc
  2056. * src/RecoverableException.h
  2057. * src/RequestGroup.cc
  2058. * src/SimpleLogger.cc
  2059. * src/SocketCore.cc
  2060. * src/Sqlite3MozCookieParser.cc
  2061. * src/UTPexExtensionMessage.cc
  2062. * src/Util.cc
  2063. * src/XML2SAXMetalinkProcessor.cc
  2064. * src/Xml2XmlRpcRequestProcessor.cc
  2065. * src/XmlRpcMethodImpl.cc
  2066. * src/bencode.cc
  2067. * src/download_helper.cc
  2068. * src/messageDigest.h
  2069. * test/ExceptionTest.cc
  2070. * test/TestUtil.cc
  2071. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Bump up version number to 1.4.0
  2073. * configure.ac
  2074. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. Added 2files.metalink to EXTRA_DIST
  2076. * test/Makefile.am
  2077. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Added missing 2files.metalink
  2079. * test/2files.metalink
  2080. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Show "[MEMORY]" prefix before filename in download summary if it
  2082. is downloaded into memory.
  2083. * src/DownloadResult.h
  2084. * src/RequestGroup.cc
  2085. * src/RequestGroupMan.cc
  2086. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2088. * src/ExpatXmlRpcRequestProcessor.cc
  2089. * src/Xml2XmlRpcRequestProcessor.cc
  2090. * src/message.h
  2091. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Defined const BDEs to avoid duplicate instantiation.
  2093. Defined MSG_GID_NOT_PROVIDED.
  2094. * src/XmlRpcMethodImpl.cc
  2095. * src/message.h
  2096. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Code cleanup
  2098. * src/Xml2XmlRpcRequestProcessor.cc
  2099. * src/Xml2XmlRpcRequestProcessor.h
  2100. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Defined ENABLE_XML_RPC
  2102. * configure.ac
  2103. * configure
  2104. * config.h.in
  2105. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Added ExpatXmlRpcRequestProcessor
  2107. * src/ExpatXmlRpcRequestProcessor.cc
  2108. * src/ExpatXmlRpcRequestProcessor.h
  2109. * src/Makefile.am
  2110. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Added tests for addTorrent and addMetalink command.
  2112. * test/TestUtil.cc
  2113. * test/TestUtil.h
  2114. * test/XmlRpcMethodTest.cc
  2115. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Corrected the description of --file-allocation option.
  2117. * doc/aria2c.1.txt
  2118. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Added tellAll command.
  2120. * src/XmlRpcMethodFactory.cc
  2121. * src/XmlRpcMethodImpl.cc
  2122. * src/XmlRpcMethodImpl.h
  2123. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2125. * src/XmlRpcMethodImpl.cc
  2126. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Added changeGlobalOption command. Currently,
  2128. max-overall-download-limit and max-overall-upload-limit option are
  2129. available.
  2130. * src/RequestGroupMan.h
  2131. * src/XmlRpcMethod.cc
  2132. * src/XmlRpcMethod.h
  2133. * src/XmlRpcMethodFactory.cc
  2134. * src/XmlRpcMethodImpl.cc
  2135. * src/XmlRpcMethodImpl.h
  2136. * test/XmlRpcMethodTest.cc
  2137. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Added changeOption command. Currently, max-download-limit,
  2139. max-upload-limit option are available in this command.
  2140. * src/RequestGroup.h
  2141. * src/XmlRpcMethod.cc
  2142. * src/XmlRpcMethod.h
  2143. * src/XmlRpcMethodFactory.cc
  2144. * src/XmlRpcMethodImpl.cc
  2145. * src/XmlRpcMethodImpl.h
  2146. * test/XmlRpcMethodTest.cc
  2147. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Added purgeDownloadResult command.
  2149. * src/RequestGroupMan.cc
  2150. * src/RequestGroupMan.h
  2151. * src/XmlRpcMethodFactory.cc
  2152. * src/XmlRpcMethodImpl.cc
  2153. * src/XmlRpcMethodImpl.h
  2154. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Refactored.
  2156. * src/XmlRpcMethod.cc
  2157. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2159. XmlRpcResponse.
  2160. * src/HttpServerBodyCommand.cc
  2161. * src/Makefile.am
  2162. * src/XmlRpcMethod.cc
  2163. * src/XmlRpcMethod.h
  2164. * src/XmlRpcMethodImpl.cc
  2165. * src/XmlRpcResponse.cc
  2166. * src/XmlRpcResponse.h
  2167. * test/XmlRpcMethodTest.cc
  2168. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. In XML-RPC option struct, header and index-out option can take
  2170. array as value.
  2171. * src/XmlRpcMethod.cc
  2172. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Removed unused option member from PeerConnection.
  2174. * src/InitiatorMSEHandshakeCommand.cc
  2175. * src/PeerConnection.cc
  2176. * src/PeerConnection.h
  2177. * src/PeerInteractionCommand.cc
  2178. * src/PeerReceiveHandshakeCommand.cc
  2179. * src/ReceiverMSEHandshakeCommand.cc
  2180. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Added "seeder" key to getPeers response.
  2182. * src/XmlRpcMethodImpl.cc
  2183. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Added addMetalink XML-RPC command.
  2185. * src/XmlRpcMethodFactory.cc
  2186. * src/XmlRpcMethodImpl.cc
  2187. * src/XmlRpcMethodImpl.h
  2188. * src/download_helper.cc
  2189. * src/download_helper.h
  2190. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Fixed the bug that POU peers are never choked in seeding.
  2192. * src/BtSeederStateChoke.cc
  2193. * src/BtSeederStateChoke.h
  2194. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Added web-seeding URI handling in addTorrent command.
  2196. * src/XmlRpcMethodImpl.cc
  2197. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Added "length" key to getFiles response.
  2199. * src/XmlRpcMethodImpl.cc
  2200. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Moved --no-netrc option from ftp option section to http/ftp option
  2202. section.
  2203. * doc/aria2c.1.txt
  2204. * src/OptionHandlerFactory.cc
  2205. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Removed garbage "\" character before '
  2207. * doc/aria2c.1.txt
  2208. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Removed garbage "\" character before http.
  2210. * doc/aria2c.1.txt
  2211. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Documented additional options that can be specified in -i list.
  2213. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2214. and --xml-rpc-passwd. Removed --enable-http-server and
  2215. --http-server-listen-port.
  2216. * doc/aria2c.1.txt
  2217. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2219. * src/DefaultPeerStorage.cc
  2220. * src/DefaultPeerStorage.h
  2221. * src/PeerStorage.h
  2222. * src/XmlRpcMethodImpl.cc
  2223. * test/MockPeerStorage.h
  2224. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Put a call to Socket::isReadable() in try block.
  2226. * src/HttpServerBodyCommand.cc
  2227. * src/HttpServerCommand.cc
  2228. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2230. exception , so it is now in try block.
  2231. * src/HttpServerResponseCommand.cc
  2232. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Added "amChoking" and "peerChoking" key in getPeers response.
  2234. * src/XmlRpcMethodImpl.cc
  2235. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Added test case for zero-length filter.
  2237. * test/BitfieldManTest.cc
  2238. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. getFiles command now returns file data for finished/stopped
  2240. downloads.
  2241. * src/XmlRpcMethodImpl.cc
  2242. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. DownloadResult now has the list of FileEntry. The download
  2244. summary displays the path of first selected file and the number of
  2245. remaining files for multi-file torrent.
  2246. * src/DownloadResult.h
  2247. * src/RequestGroup.cc
  2248. * src/RequestGroupMan.cc
  2249. * test/RequestGroupTest.cc
  2250. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Fixed segmentation fault error when no file is selected in
  2252. multi-file torrent.
  2253. * src/BitfieldMan.cc
  2254. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Escaped <,>,& character in XML-RPC response.
  2256. * src/XmlRpcMethod.cc
  2257. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Throw DlAbortEx instead of FatalException during parsing options
  2259. because we don't want for aria2 to quit when bad option is passed
  2260. via XML-RPC.
  2261. * src/OptionHandlerException.cc
  2262. * src/OptionHandlerException.h
  2263. * src/OptionHandlerImpl.h
  2264. * src/OptionParser.cc
  2265. * src/OptionParser.h
  2266. * src/PStringSegment.cc
  2267. * src/ParameterizedStringParser.cc
  2268. * src/download_helper.cc
  2269. * test/ParameterizedStringParserTest.cc
  2270. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Selecting files are now done in
  2272. DefaultBtContext::setFileFileter().
  2273. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2274. functions are removed because they are no longer used. Creating
  2275. filter in BitfieldMan is done in new funtion
  2276. PieceStorage::setupFileFilter()
  2277. * src/BtContext.cc
  2278. * src/BtContext.h
  2279. * src/DefaultBtContext.cc
  2280. * src/DefaultBtContext.h
  2281. * src/DefaultPieceStorage.cc
  2282. * src/DefaultPieceStorage.h
  2283. * src/DiskAdaptor.cc
  2284. * src/DiskAdaptor.h
  2285. * src/PieceStorage.h
  2286. * src/RequestGroup.cc
  2287. * src/UnknownLengthPieceStorage.h
  2288. * src/XmlRpcMethodImpl.cc
  2289. * test/DefaultBtContextTest.cc
  2290. * test/MockBtContext.h
  2291. * test/MockPieceStorage.h
  2292. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Fixed compile error on Mac OS X
  2294. * src/HttpServer.cc
  2295. * src/XmlRpcMethod.h
  2296. * src/XmlRpcMethodImpl.cc
  2297. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Use std::binary_search instead of std::find
  2299. * src/DefaultPieceStorage.cc
  2300. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Removed unnecessary BDE() call; leave them to implicit conversion.
  2302. * src/XmlRpcMethodImpl.cc
  2303. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Return connections and gid in string
  2305. * src/XmlRpcMethodImpl.cc
  2306. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Renamed addURI as addUri
  2308. * src/XmlRpcMethodFactory.cc
  2309. * src/XmlRpcMethodImpl.cc
  2310. * src/XmlRpcMethodImpl.h
  2311. * test/XmlRpcMethodTest.cc
  2312. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Renamed addTorrentFile as addTorrent
  2314. * src/XmlRpcMethodFactory.cc
  2315. * src/XmlRpcMethodImpl.cc
  2316. * src/XmlRpcMethodImpl.h
  2317. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. The information for files, URIs, peers are removed from the
  2319. reponse of TellaActive, TellStatus command because they tend to be
  2320. large. Instead they can be retrieved by the dedicated commands:
  2321. getFiles, getUris and getPeers respectively.
  2322. * src/XmlRpcMethodFactory.cc
  2323. * src/XmlRpcMethodImpl.cc
  2324. * src/XmlRpcMethodImpl.h
  2325. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Removed --max-overall-upload-limit and
  2327. --max-overall-download-limit option from listRequestOptions.
  2328. * src/download_helper.cc
  2329. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Log incoming host in HttpListenCommand.
  2331. * src/HttpListenCommand.cc
  2332. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2334. --xml-rpc-passwd option.
  2335. * src/HttpServer.cc
  2336. * src/HttpServer.h
  2337. * src/HttpServerCommand.cc
  2338. * src/OptionHandlerFactory.cc
  2339. * src/prefs.cc
  2340. * src/prefs.h
  2341. * src/usage_text.h
  2342. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2344. processing 0 length request.
  2345. * src/HttpServerBodyCommand.cc
  2346. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Removed --enable-http-server and --http-server-listen-port
  2348. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2349. instead. The original feature for --enable-http-server that
  2350. reports download progress in HTML was officially removed. Persist
  2351. XML-RPC connection if client supports keep-alive.
  2352. * src/DownloadEngineFactory.cc
  2353. * src/HttpServerCommand.cc
  2354. * src/HttpServerResponseCommand.cc
  2355. * src/Makefile.am
  2356. * src/Makefile.in
  2357. * src/OptionHandlerFactory.cc
  2358. * src/RequestGroupMan.cc
  2359. * src/main.cc
  2360. * src/option_processing.cc
  2361. * src/prefs.cc
  2362. * src/prefs.h
  2363. * src/usage_text.h
  2364. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Added "uris" key to the response of tellStatus command. Added
  2366. "connections" key to the response of tellStatus and tellActive
  2367. command.
  2368. * src/XmlRpcMethodImpl.cc
  2369. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2371. Added TellStatusXmlRpcMethod. Remove command can now remove
  2372. waiting RequestGroup.
  2373. * src/RequestGroupMan.cc
  2374. * src/RequestGroupMan.h
  2375. * src/XmlRpcMethodFactory.cc
  2376. * src/XmlRpcMethodImpl.cc
  2377. * src/XmlRpcMethodImpl.h
  2378. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2379. Initialized _peerId
  2380. * src/Peer.cc
  2381. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Return fault structure for error. FailXmlRpcMethod is renamed as
  2383. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2384. in non-torrent download. Return single param value.
  2385. * src/XmlRpcMethod.cc
  2386. * src/XmlRpcMethodFactory.cc
  2387. * src/XmlRpcMethodImpl.cc
  2388. * src/XmlRpcMethodImpl.h
  2389. * test/XmlRpcMethodTest.cc
  2390. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2392. command.
  2393. * src/RequestGroup.cc
  2394. * src/RequestGroup.h
  2395. * src/RequestGroupMan.cc
  2396. * src/XmlRpcMethodImpl.cc
  2397. * test/RequestGroupTest.cc
  2398. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Added more options that can be specified in -i list and xml-rpc
  2400. add* command.
  2401. * src/download_helper.h
  2402. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. The available options in -i list should be listed in
  2404. listRequestOptions().
  2405. * src/download_helper.cc
  2406. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2408. command.
  2409. * src/XmlRpcMethodImpl.cc
  2410. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Now RequestGroup has its own copy of Option object. This will help
  2412. to give custom option for each RequestGroup.
  2413. addTorrentFile command now takes options.
  2414. * src/AbstractCommand.cc
  2415. * src/AbstractCommand.h
  2416. * src/AbstractProxyRequestCommand.cc
  2417. * src/ActivePeerConnectionCommand.cc
  2418. * src/ActivePeerConnectionCommand.h
  2419. * src/AdaptiveURISelector.cc
  2420. * src/BtCheckIntegrityEntry.cc
  2421. * src/BtDependency.cc
  2422. * src/BtDependency.h
  2423. * src/BtFileAllocationEntry.cc
  2424. * src/BtPostDownloadHandler.cc
  2425. * src/CheckIntegrityEntry.cc
  2426. * src/DownloadCommand.cc
  2427. * src/FtpDownloadCommand.cc
  2428. * src/FtpFinishDownloadCommand.cc
  2429. * src/FtpInitiateConnectionCommand.cc
  2430. * src/FtpNegotiationCommand.cc
  2431. * src/HttpInitiateConnectionCommand.cc
  2432. * src/HttpRequestCommand.cc
  2433. * src/HttpResponseCommand.cc
  2434. * src/HttpSkipResponseCommand.cc
  2435. * src/InitiateConnectionCommand.cc
  2436. * src/InitiateConnectionCommandFactory.cc
  2437. * src/InitiatorMSEHandshakeCommand.cc
  2438. * src/InitiatorMSEHandshakeCommand.h
  2439. * src/Metalink2RequestGroup.cc
  2440. * src/Metalink2RequestGroup.h
  2441. * src/MetalinkPostDownloadHandler.cc
  2442. * src/MultiUrlRequestInfo.cc
  2443. * src/MultiUrlRequestInfo.h
  2444. * src/PeerAbstractCommand.cc
  2445. * src/PeerInteractionCommand.cc
  2446. * src/PeerInteractionCommand.h
  2447. * src/PeerReceiveHandshakeCommand.cc
  2448. * src/PeerReceiveHandshakeCommand.h
  2449. * src/RequestGroup.cc
  2450. * src/RequestGroup.h
  2451. * src/TrackerWatcherCommand.cc
  2452. * src/TrackerWatcherCommand.h
  2453. * src/XmlRpcMethod.cc
  2454. * src/XmlRpcMethod.h
  2455. * src/XmlRpcMethodImpl.cc
  2456. * src/download_helper.cc
  2457. * src/download_helper.h
  2458. * src/main.cc
  2459. * test/BtDependencyTest.cc
  2460. * test/BtPostDownloadHandlerTest.cc
  2461. * test/DefaultBtMessageDispatcherTest.cc
  2462. * test/DownloadHandlerFactoryTest.cc
  2463. * test/DownloadHelperTest.cc
  2464. * test/Metalink2RequestGroupTest.cc
  2465. * test/MetalinkPostDownloadHandlerTest.cc
  2466. * test/RequestGroupManTest.cc
  2467. * test/RequestGroupTest.cc
  2468. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Added tellActiveStatus xml-rpc command which reports download
  2470. status of active downloads.
  2471. * src/XmlRpcMethodFactory.cc
  2472. * src/XmlRpcMethodImpl.cc
  2473. * src/XmlRpcMethodImpl.h
  2474. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Added addTorrentFile xml-rpc command which receives uploaded
  2476. torrent file and add download for it.
  2477. * src/RequestGroupMan.cc
  2478. * src/XmlRpcMethodFactory.cc
  2479. * src/XmlRpcMethodImpl.cc
  2480. * src/XmlRpcMethodImpl.h
  2481. * src/download_helper.cc
  2482. * src/download_helper.h
  2483. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added remove xml-rpc command which removes specified download.
  2485. There is a known issue: the removed unfinished downloads are
  2486. reported ERR when aria2 exits. They should be reported as INPR.
  2487. * src/RequestGroupMan.cc
  2488. * src/RequestGroupMan.h
  2489. * src/XmlRpcMethodFactory.cc
  2490. * src/XmlRpcMethodImpl.cc
  2491. * src/XmlRpcMethodImpl.h
  2492. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. If --enable-http-server is enabled, don't stop aria2 when all
  2494. download finished and don't quit when no files to download at
  2495. start up.
  2496. * src/RequestGroupMan.cc
  2497. * src/main.cc
  2498. * src/option_processing.cc
  2499. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Added missing AM_CONDITIONAL
  2501. * configure.ac
  2502. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Added xml-rpc functionality. Currently only addURI commad is
  2504. supported. To enable xml-rpc, run aria2 with
  2505. --enable-http-server. This option name is temporal and will be
  2506. changed. The feature that reports download progress in html format
  2507. is temporarily disabled.
  2508. * src/HttpServer.cc
  2509. * src/HttpServer.h
  2510. * src/HttpServerBodyCommand.cc
  2511. * src/HttpServerBodyCommand.h
  2512. * src/HttpServerCommand.cc
  2513. * src/HttpServerResponseCommand.cc
  2514. * src/Makefile.am
  2515. * src/OptionParser.cc
  2516. * src/OptionParser.h
  2517. * src/RequestGroupMan.cc
  2518. * src/RequestGroupMan.h
  2519. * src/XmlRpcMethod.cc
  2520. * src/XmlRpcMethod.h
  2521. * src/XmlRpcMethodFactory.cc
  2522. * src/XmlRpcMethodFactory.h
  2523. * src/XmlRpcMethodImpl.cc
  2524. * src/XmlRpcMethodImpl.h
  2525. * src/download_helper.cc
  2526. * src/download_helper.h
  2527. * test/Makefile.am
  2528. * test/XmlRpcMethodTest.cc
  2529. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2530. Added xml-rpc request parser. The supported value types are:
  2531. i4/int, string, double, struct, array, base64. Currently only
  2532. libxml2 version is provided.
  2533. * src/Xml2XmlRpcRequestProcessor.cc
  2534. * src/Xml2XmlRpcRequestProcessor.h
  2535. * src/XmlRpcElements.cc
  2536. * src/XmlRpcElements.h
  2537. * src/XmlRpcRequest.h
  2538. * src/XmlRpcRequestParserController.cc
  2539. * src/XmlRpcRequestParserController.h
  2540. * src/XmlRpcRequestParserState.h
  2541. * src/XmlRpcRequestParserStateImpl.cc
  2542. * src/XmlRpcRequestParserStateImpl.h
  2543. * src/XmlRpcRequestParserStateMachine.cc
  2544. * src/XmlRpcRequestParserStateMachine.h
  2545. * src/XmlRpcRequestProcessor.h
  2546. * test/XmlRpcRequestParserControllerTest.cc
  2547. * test/XmlRpcRequestProcessorTest.cc
  2548. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. * Release 1.3.3
  2550. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Fixed compile error since r1202.
  2552. * src/ExpatMetalinkProcessor.cc
  2553. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Updated Ukrainian, Russian and Simplified Chinese
  2555. translations. Thanks to all translators.
  2556. * po/ru.po
  2557. * po/uk.po
  2558. * po/zh_CN.po
  2559. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Pass reference of Option object instead of pointer.
  2561. * src/download_helper.cc
  2562. * src/download_helper.h
  2563. * src/main.cc
  2564. * test/DownloadHelperTest.cc
  2565. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2567. from option directly. Instead, get them from RequestGroup.
  2568. * src/ActivePeerConnectionCommand.cc
  2569. * src/ActivePeerConnectionCommand.h
  2570. * src/PeerReceiveHandshakeCommand.cc
  2571. * src/RequestGroup.h
  2572. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Removed unused uploadLimitCheck and uploadLimit from
  2574. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2575. PeerInteractionCommand.
  2576. * src/PeerAbstractCommand.cc
  2577. * src/PeerAbstractCommand.h
  2578. * src/PeerInteractionCommand.cc
  2579. * src/PeerInteractionCommand.h
  2580. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Fixed broken file renaming feature since r1202.
  2582. * src/FtpNegotiationCommand.cc
  2583. * src/FtpNegotiationCommand.h
  2584. * src/HttpResponseCommand.cc
  2585. * src/RequestGroup.cc
  2586. * src/RequestGroup.h
  2587. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Removed unused debug log
  2589. * src/SocketCore.cc
  2590. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Generated configure and Makefile.in using autoconf 2.63 and
  2592. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2593. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2594. * configure.ac
  2595. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Moved piece statistics stuff to new PieceStatMan class.
  2597. Refactored PieceSelector interface.
  2598. * src/DefaultPieceStorage.cc
  2599. * src/DefaultPieceStorage.h
  2600. * src/LongestSequencePieceSelector.cc
  2601. * src/LongestSequencePieceSelector.h
  2602. * src/Makefile.am
  2603. * src/PieceSelector.h
  2604. * src/PieceStatMan.cc
  2605. * src/PieceStatMan.h
  2606. * src/RarestPieceSelector.cc
  2607. * src/RarestPieceSelector.h
  2608. * src/RequestGroup.cc
  2609. * test/DefaultPieceStorageTest.cc
  2610. * test/InOrderPieceSelector.h
  2611. * test/Makefile.am
  2612. * test/PieceStatManTest.cc
  2613. * test/RarestPieceSelectorTest.cc
  2614. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Added static member _protocolFamily to SocketCore. By default,
  2616. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2617. address. Sometime SocketCore::bind() and
  2618. SocketCore::establishConnection() use difference protocl family
  2619. and latter cannot connect to former. To avoid this situation, we
  2620. limit protocol family to AF_INET for unit tests.
  2621. * src/SocketCore.cc
  2622. * src/SocketCore.h
  2623. * test/AllTest.cc
  2624. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Avoid std::bad_alloc for negative bencode string length.
  2626. * src/bencode.cc
  2627. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Supported segmented downloading with chunked transfer encoding and
  2629. content-length.
  2630. * src/DownloadCommand.cc
  2631. * src/HttpResponseCommand.cc
  2632. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Bump up version number to 1.3.3
  2634. * configure.ac
  2635. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2637. from 4096 to 65536 (for insanely large ftp login banners)
  2638. * src/FtpConnection.h
  2639. * test/FtpConnectionTest.cc
  2640. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. In DefaultBtContext::getActualBasePath(), return first
  2642. FileEntry::getPath() for single file torrent.
  2643. * src/DefaultBtContext.cc
  2644. * test/DefaultBtContextTest.cc
  2645. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2647. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2648. Removed _directIOAllowed member from DiskWriter.
  2649. * src/AbstractDiskWriter.cc
  2650. * src/AbstractDiskWriter.h
  2651. * src/AbstractSingleDiskAdaptor.cc
  2652. * src/AbstractSingleDiskAdaptor.h
  2653. * src/BinaryStream.h
  2654. * src/ByteArrayDiskWriter.h
  2655. * src/DefaultPieceStorage.cc
  2656. * src/DiskWriter.h
  2657. * src/MultiDiskAdaptor.cc
  2658. * src/MultiDiskAdaptor.h
  2659. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Now the constructor of AbstractDiskWriter takes filename as an
  2661. argument and filename argument is removed from openFile(),
  2662. initAndOpenFile(), openExistingFile() interface. storeDir member
  2663. and its accessor functions are removed from DiskAdaptor because it
  2664. is not used anymore. size() member function of DefaultDiskWriter,
  2665. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2666. opening file.
  2667. * src/AbstractDiskWriter.cc
  2668. * src/AbstractDiskWriter.h
  2669. * src/AbstractSingleDiskAdaptor.cc
  2670. * src/AbstractSingleDiskAdaptor.h
  2671. * src/ByteArrayDiskWriter.cc
  2672. * src/ByteArrayDiskWriter.h
  2673. * src/ByteArrayDiskWriterFactory.cc
  2674. * src/ByteArrayDiskWriterFactory.h
  2675. * src/DefaultDiskWriter.cc
  2676. * src/DefaultDiskWriter.h
  2677. * src/DefaultDiskWriterFactory.cc
  2678. * src/DefaultDiskWriterFactory.h
  2679. * src/DefaultPieceStorage.cc
  2680. * src/DirectDiskAdaptor.cc
  2681. * src/DirectDiskAdaptor.h
  2682. * src/DiskAdaptor.h
  2683. * src/DiskWriter.h
  2684. * src/DiskWriterFactory.h
  2685. * src/MessageDigestHelper.cc
  2686. * src/MultiDiskAdaptor.cc
  2687. * src/RequestGroup.cc
  2688. * src/UnknownLengthPieceStorage.cc
  2689. * src/Util.cc
  2690. * test/DefaultDiskWriterTest.cc
  2691. * test/DirectDiskAdaptorTest.cc
  2692. * test/FallocFileAllocationIteratorTest.cc
  2693. * test/MessageDigestHelperTest.cc
  2694. * test/MetalinkProcessorTest.cc
  2695. * test/MultiDiskAdaptorTest.cc
  2696. * test/MultiFileAllocationIteratorTest.cc
  2697. * test/SingleFileAllocationIteratorTest.cc
  2698. * test/UtilTest.cc
  2699. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. Fixed the bug that aria2 aborts when --select-file is used. This
  2701. bug was introduced in r1199.
  2702. * src/MultiDiskAdaptor.cc
  2703. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Code cleanup
  2705. * test/MockPieceStorage.cc
  2706. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Fixed the bug that read-only file with wrong file size will cause
  2708. error because it cannot be truncated to the correct size. Now if
  2709. file size is different than the expected one, re-open file in
  2710. writable mode.
  2711. * src/AbstractSingleDiskAdaptor.cc
  2712. * src/AbstractSingleDiskAdaptor.h
  2713. * src/BtCheckIntegrityEntry.cc
  2714. * src/DiskAdaptor.h
  2715. * src/MultiDiskAdaptor.h
  2716. * src/RequestGroup.cc
  2717. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Fixed the bug that with --check-integrity option aria2 reports
  2719. downloaded file size is 0 even if some parts of file is correctly
  2720. downloaded. This bug is reproducible for the download that a file
  2721. includes last piece is missing. This bug doesn't reveal for
  2722. single-torrent with file allocation on.
  2723. * src/IteratableChecksumValidator.cc
  2724. * test/IteratableChecksumValidatorTest.cc
  2725. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2727. * src/RequestGroupMan.cc
  2728. * src/AdaptiveURISelector.cc
  2729. * src/AdaptiveURISelector.h
  2730. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. * Release 1.3.2
  2732. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Updated README
  2734. * README
  2735. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Updated Ukrainian translations. Thanks to Alexander10.
  2737. * po/uk.po
  2738. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Code cleanup
  2740. * src/MetalinkParserStateMachine.cc
  2741. * src/MetalinkParserStateMachine.h
  2742. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2744. and expat simultaneously, MetalinkProcessor is now not base class
  2745. and it is directly implemented in XML2SAXMetalinkProcessor and
  2746. ExpatMetalinkProcessor.
  2747. * src/ExpatMetalinkProcessor.cc
  2748. * src/ExpatMetalinkProcessor.h
  2749. * src/Makefile.am
  2750. * src/MetalinkHelper.cc
  2751. * src/MetalinkProcessor.h
  2752. * src/MetalinkProcessorFactory.cc: Removed.
  2753. * src/MetalinkProcessorFactory.h: Removed
  2754. * src/XML2SAXMetalinkProcessor.cc
  2755. * src/XML2SAXMetalinkProcessor.h
  2756. * test/MetalinkProcessorTest.cc
  2757. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Bump up version number to 1.3.2
  2759. * configure.ac
  2760. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Added missing file.
  2762. * test/Makefile.am
  2763. * test/url-list-singleFileEndsWithSlash.torrent
  2764. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2766. request.
  2767. * src/AnnounceList.cc
  2768. * src/AnnounceList.h
  2769. * src/BDE.cc: Added
  2770. * src/BDE.h: Added
  2771. * src/DHTAbstractMessage.cc
  2772. * src/DHTAbstractMessage.h
  2773. * src/DHTAnnouncePeerMessage.cc
  2774. * src/DHTAnnouncePeerMessage.h
  2775. * src/DHTAnnouncePeerReplyMessage.cc
  2776. * src/DHTAnnouncePeerReplyMessage.h
  2777. * src/DHTFindNodeMessage.cc
  2778. * src/DHTFindNodeMessage.h
  2779. * src/DHTFindNodeReplyMessage.cc
  2780. * src/DHTFindNodeReplyMessage.h
  2781. * src/DHTGetPeersMessage.cc
  2782. * src/DHTGetPeersMessage.h
  2783. * src/DHTGetPeersReplyMessage.cc
  2784. * src/DHTGetPeersReplyMessage.h
  2785. * src/DHTMessageFactory.h
  2786. * src/DHTMessageFactoryImpl.cc
  2787. * src/DHTMessageFactoryImpl.h
  2788. * src/DHTMessageReceiver.cc
  2789. * src/DHTMessageTracker.cc
  2790. * src/DHTMessageTracker.h
  2791. * src/DHTPingMessage.cc
  2792. * src/DHTPingMessage.h
  2793. * src/DHTPingReplyMessage.cc
  2794. * src/DHTPingReplyMessage.h
  2795. * src/DHTQueryMessage.cc
  2796. * src/DHTQueryMessage.h
  2797. * src/DHTResponseMessage.cc
  2798. * src/DHTResponseMessage.h
  2799. * src/DefaultBtAnnounce.cc
  2800. * src/DefaultBtContext.cc
  2801. * src/DefaultBtContext.h
  2802. * src/HandshakeExtensionMessage.cc
  2803. * src/Makefile.am
  2804. * src/PeerListProcessor.h
  2805. * src/UTPexExtensionMessage.cc
  2806. * src/bencode.cc
  2807. * src/bencode.h
  2808. * test/AnnounceListTest.cc
  2809. * test/BDETest.cc: Added
  2810. * test/BencodeTest.cc
  2811. * test/DHTAnnouncePeerMessageTest.cc
  2812. * test/DHTAnnouncePeerReplyMessageTest.cc
  2813. * test/DHTFindNodeMessageTest.cc
  2814. * test/DHTFindNodeReplyMessageTest.cc
  2815. * test/DHTGetPeersMessageTest.cc
  2816. * test/DHTGetPeersReplyMessageTest.cc
  2817. * test/DHTMessageFactoryImplTest.cc
  2818. * test/DHTMessageTrackerTest.cc
  2819. * test/DHTPingMessageTest.cc
  2820. * test/DHTPingReplyMessageTest.cc
  2821. * test/Makefile.am
  2822. * test/MockDHTMessageFactory.h
  2823. * test/PeerListProcessorTest.cc
  2824. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Use url-list (web-seeding) only for single-file torrent. This is
  2826. basically the same behavior with Metalink file with torrent and
  2827. URIs.
  2828. * src/RequestGroup.cc
  2829. * src/DefaultBtContext.cc
  2830. * test/DefaultBtContextTest.cc
  2831. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Rewritten expr
  2833. * src/array_fun.h
  2834. * test/array_funTest.cc
  2835. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2837. * src/DefaultBtMessageDispatcher.cc
  2838. * src/a2algo.h
  2839. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Removed ExtendedMessagingAware. Instead of using inheritance,
  2841. added ExtensionMessageRegistry and it is passed to
  2842. DefaultExtensionMessageFactory.
  2843. * src/DefaultBtInteractive.cc
  2844. * src/DefaultBtInteractive.h
  2845. * src/DefaultExtensionMessageFactory.cc
  2846. * src/DefaultExtensionMessageFactory.h
  2847. * src/ExtendedMessagingAware.h: Removed.
  2848. * src/ExtensionMessageFactory.h
  2849. * src/ExtensionMessageRegistry.h: Added.
  2850. * src/Makefile.am
  2851. * src/PeerInteractionCommand.cc
  2852. * test/DefaultExtensionMessageFactoryTest.cc
  2853. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Fixed typo in log messages
  2855. * src/MSEHandshake.cc
  2856. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Fixed the bug that prevents torrent download from finishing. The
  2858. bug doesn't reveal for all torrents. The torrents affected this
  2859. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2860. of pieces.
  2861. * src/bitfield.h
  2862. * test/bitfieldTest.cc
  2863. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Code cleanup
  2865. * src/PeerListProcessor.h
  2866. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Removed RequestGroupAware
  2868. * src/AbstractCommand.cc
  2869. * src/AbstractCommand.h
  2870. * src/ActivePeerConnectionCommand.cc
  2871. * src/ActivePeerConnectionCommand.h
  2872. * src/DHTGetPeersCommand.cc
  2873. * src/DHTGetPeersCommand.h
  2874. * src/InitiatorMSEHandshakeCommand.cc
  2875. * src/InitiatorMSEHandshakeCommand.h
  2876. * src/Makefile.am
  2877. * src/PeerInitiateConnectionCommand.cc
  2878. * src/PeerInitiateConnectionCommand.h
  2879. * src/PeerInteractionCommand.cc
  2880. * src/PeerInteractionCommand.h
  2881. * src/RealtimeCommand.cc
  2882. * src/RealtimeCommand.h
  2883. * src/RequestGroupAware.cc: Removed
  2884. * src/RequestGroupAware.h: Removed
  2885. * src/SeedCheckCommand.cc
  2886. * src/SeedCheckCommand.h
  2887. * src/SleepCommand.cc
  2888. * src/TrackerWatcherCommand.cc
  2889. * src/TrackerWatcherCommand.h
  2890. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Rewritten PeerListProcessor
  2892. * src/PeerListProcessor.h
  2893. * src/CompactPeerListProcessor.h: Removed
  2894. * src/CompactPeerListProcessor.cc: Removed
  2895. * src/DelegatingPeerListProcessor.cc: Removed.
  2896. * src/DefaultBtAnnounce.cc
  2897. * src/Makefile.am
  2898. * src/UTPexExtensionMessage.cc
  2899. * src/DefaultPeerListProcessor.h: Removed.
  2900. * src/DefaultPeerListProcessor.cc: Removed.
  2901. * src/DelegatingPeerListProcessor.h: Removed.
  2902. * test/Makefile.am
  2903. * test/PeerListProcessorTest.cc
  2904. * test/DefaultPeerListProcessorTest.cc: Removed.
  2905. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Rewritten RequestGroupMan::calculateStat()
  2907. * src/RequestGroupMan.cc
  2908. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Removed unnecessary virtual destructor for Request class.
  2910. * src/Request.cc
  2911. * src/Request.h
  2912. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Avoid dynamic_pointer_cast.
  2914. * src/DHTGetPeersCommand.cc
  2915. * src/DHTGetPeersCommand.h
  2916. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2918. BtEvent.
  2919. * src/AbstractBtEventListener.h: Removed.
  2920. * src/AbstractBtMessage.cc
  2921. * src/AbstractBtMessage.h
  2922. * src/BtAbortOutstandingRequestEvent.h
  2923. * src/BtCancelSendingPieceEvent.h
  2924. * src/BtChokedEvent.h: Removed.
  2925. * src/BtChokingEvent.h
  2926. * src/BtEvent.h: Removed
  2927. * src/BtEventListener.h: Removed.
  2928. * src/BtMessage.h
  2929. * src/BtPieceMessage.cc
  2930. * src/BtPieceMessage.h
  2931. * src/BtRequestMessage.cc
  2932. * src/BtRequestMessage.h
  2933. * src/DefaultBtMessageDispatcher.cc
  2934. * src/Makefile.am
  2935. * src/a2functional.h
  2936. * test/BtPieceMessageTest.cc
  2937. * test/BtRequestMessageTest.cc
  2938. * test/DefaultBtMessageDispatcherTest.cc
  2939. * test/MockBtMessage.h
  2940. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Code cleanup
  2942. * src/RequestGroupMan.cc
  2943. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Code cleanup
  2945. * src/DownloadCommand.cc
  2946. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2948. byte.
  2949. * src/DownloadCommand.cc
  2950. * src/bitfield.h
  2951. * test/bitfieldTest.cc
  2952. Fixed the bug that causes infinite loop if broken web server
  2953. returns chunked response without last "0" chunk-size marker and
  2954. closes connection.
  2955. * src/DownloadCommand.cc
  2956. Instantiate properly configured HttpDownloadCommand for
  2957. non-resumable downlaods.
  2958. * src/HttpResponseCommand.cc
  2959. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Rewritten array operation functions.
  2961. * src/BitfieldMan.cc
  2962. * src/array_fun.h
  2963. * test/array_funTest.cc
  2964. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Removed unused variable 'query'
  2966. * src/Request.cc
  2967. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2968. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2969. accidentally set to false in r1162.
  2970. * configure.ac
  2971. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Code cleanup
  2973. * src/BNode.cc
  2974. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Increase prefixLength for the bucket which doesn't own local node
  2976. ID when splitting bucket.
  2977. * src/DHTBucket.cc
  2978. * test/DHTBucketTest.cc
  2979. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. * Release 1.3.1
  2981. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Bump up version number to 1.3.1
  2983. * configure.ac
  2984. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Removed unused variable checkPoint. Also removed include directive
  2986. for TimeA2.h.
  2987. * src/SeedCheckCommand.h
  2988. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Fixed the bug that upload limit exceeds the value specified in
  2990. --seed-ratio option depending on the timing of the execution of
  2991. SeedCheckCommand.
  2992. * src/SeedCheckCommand.cc
  2993. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Fixed the bug that removed peer's session upload/download length
  2995. are counted twice in _cachedTransferStat before it is
  2996. re-calculated. This affected the calculation of shara ratio,
  2997. resulting aria2 wrongly determines that specified share ratio is
  2998. reached. Also fixed the typo in calculateStatFor function name.
  2999. * src/BtSetup.cc
  3000. * src/DefaultPeerStorage.cc
  3001. * src/ShareRatioSeedCriteria.h
  3002. * test/ShareRatioSeedCriteriaTest.cc
  3003. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. * Release 1.3.0
  3005. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3007. Nynorsk translations. Thanks to all translators.
  3008. * po/es.po
  3009. * po/ja.po
  3010. * po/nn.po
  3011. * po/ru.po
  3012. * po/uk.po
  3013. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Rewritten isInRange()
  3015. * src/DHTBucket.cc
  3016. * test/DHTBucketTest.cc
  3017. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Fixed typo
  3019. * doc/aria2c.1.txt
  3020. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3022. malloc/realloc is not used.
  3023. * src/configure.ac
  3024. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3026. char* bitfield instead of stl container for efficiency.
  3027. PieceSelector::select now takes this
  3028. bitfield. RarestPieceSelector::select now also performs
  3029. efficiently for this change. bitfield namespace is introduced and
  3030. it has several helper functions to handle basic bitfield
  3031. operations such as test, count set bits, etc.
  3032. * src/BitfieldMan.cc
  3033. * src/BitfieldMan.h
  3034. * src/DefaultBtRequestFactory.cc
  3035. * src/DefaultPieceStorage.cc
  3036. * src/DefaultPieceStorage.h
  3037. * src/LongestSequencePieceSelector.cc
  3038. * src/LongestSequencePieceSelector.h
  3039. * src/Makefile.am
  3040. * src/Piece.cc
  3041. * src/Piece.h
  3042. * src/PieceSelector.h
  3043. * src/RarestPieceSelector.cc
  3044. * src/RarestPieceSelector.h
  3045. * src/Util.cc
  3046. * src/Util.h
  3047. * src/bitfield.h
  3048. * test/BitfieldManTest.cc
  3049. * test/LongestSequencePieceSelectorTest.cc
  3050. * test/Makefile.am
  3051. * test/RarestPieceSelectorTest.cc
  3052. * test/UtilTest.cc
  3053. * test/bitfieldTest.cc
  3054. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Made accepted socket non-block.
  3056. * src/FtpNegotiationCommand.cc
  3057. * src/HttpListenCommand.cc
  3058. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3060. * src/AbstractSingleDiskAdaptor.cc
  3061. * src/DefaultPieceStorage.cc
  3062. * src/DiskAdaptor.h
  3063. * src/DiskAdaptor.h
  3064. * src/MultiFileAllocationIterator.cc
  3065. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Run
  3067. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3068. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3069. it doesn't need to be called every time when
  3070. DefaultBtInteractive::doInteractionProcessing() is called.
  3071. * src/DefaultBtInteractive.cc
  3072. * src/DefaultBtInteractive.h
  3073. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Documented 'falloc' in man page.
  3075. * doc/aria2c.1.txt
  3076. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Updated doc
  3078. * src/usage_text.h
  3079. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3081. allocation mode uses posix_fallocate() system call to allocate
  3082. file on disk. If you are using newer file systems such as ext4
  3083. (with extents support), btrfs or xfs, 'falloc' is your best
  3084. choice. It allocates large(few GiB) files almost instantly. Don't
  3085. use 'falloc' with legacy file systems such as ext3 because it
  3086. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3087. until allocation finishes. 'falloc' may not be available if your
  3088. system doesn't have posix_fallocate() system call.
  3089. * configure.ac
  3090. * src/AbstractDiskWriter.cc
  3091. * src/AbstractDiskWriter.h
  3092. * src/AbstractSingleDiskAdaptor.cc
  3093. * src/BinaryStream.h
  3094. * src/BtCheckIntegrityEntry.cc
  3095. * src/ByteArrayDiskWriter.h
  3096. * src/CheckIntegrityEntry.cc
  3097. * src/CheckIntegrityEntry.h
  3098. * src/DefaultPieceStorage.cc
  3099. * src/DiskAdaptor.cc
  3100. * src/DiskAdaptor.h
  3101. * src/DiskWriter.h
  3102. * src/FallocFileAllocationIterator.cc
  3103. * src/FallocFileAllocationIterator.h
  3104. * src/FileAllocationEntry.cc
  3105. * src/FileAllocationEntry.h
  3106. * src/Makefile.am
  3107. * src/MultiFileAllocationIterator.cc
  3108. * src/MultiFileAllocationIterator.h
  3109. * src/OptionHandlerFactory.cc
  3110. * src/RequestGroup.cc
  3111. * src/StreamCheckIntegrityEntry.cc
  3112. * src/prefs.cc
  3113. * src/prefs.h
  3114. * src/usage_text.h
  3115. * test/FallocFileAllocationIteratorTest.cc
  3116. * test/Makefile.am
  3117. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Removed duplicate enableDirectIO() call.
  3119. * src/MultiFileAllocationIterator.cc
  3120. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3122. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3123. cost of std::rotate().
  3124. * src/RarestPieceSelector.cc
  3125. * src/RarestPieceSelector.h
  3126. * test/RarestPieceSelectorTest.cc
  3127. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Updated usage doc for --bt-tracker-interval option.
  3129. * src/usage_text.h
  3130. * doc/aria2c.1.txt
  3131. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Documented --bt-tracker-interval option in man page.
  3133. * doc/aria2c.1.txt
  3134. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Added an option to specify the interval between tracker requests.
  3136. If non-zero value is specified, aria2 uses it and ignores the
  3137. interval value in the response of tracker. If zero is specified,
  3138. aria2 determines the inteval value based on the tarcker response
  3139. and download progress.
  3140. * src/DefaultBtAnnounce.cc
  3141. * src/DefaultBtAnnounce.h
  3142. * src/OptionHandlerFactory.cc
  3143. * src/RequestGroup.cc
  3144. * src/prefs.cc
  3145. * src/prefs.h
  3146. * src/usage_text.h
  3147. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3148. Added operator+=, operator-=, operator-
  3149. * src/TransferStat.cc
  3150. * src/TransferStat.h
  3151. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Refactored RarestPieceSelector to reduce CPU load, especially for
  3153. addPieceStats.
  3154. * src/RarestPieceSelector.cc
  3155. * src/RarestPieceSelector.h
  3156. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3158. getAllMissingBlockIndexes to reduce a call to
  3159. array_function_base::operator[].
  3160. * src/BitfieldMan.cc
  3161. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Cached TransferStat/download speed to avoid to sum them up in each
  3163. call.
  3164. * src/DefaultPeerStorage.cc
  3165. * src/DefaultPeerStorage.h
  3166. * src/SegmentMan.cc
  3167. * src/SegmentMan.h
  3168. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Typedefed cuid_t as int32_t in Command.h
  3170. * src/CUIDCounter.h
  3171. * src/Command.cc
  3172. * src/Command.h
  3173. * src/DownloadEngine.cc
  3174. * src/DownloadEngine.h
  3175. * src/PeerStat.h
  3176. * src/SegmentMan.cc
  3177. * src/SegmentMan.h
  3178. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Reduced the number of calls to PeerStorage::calculateStat() and
  3180. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3181. transfer rate.
  3182. * src/DefaultBtInteractive.cc
  3183. * src/DefaultBtMessageDispatcher.cc
  3184. * src/DefaultPeerStorage.cc
  3185. * src/DefaultPeerStorage.h
  3186. * src/DownloadCommand.cc
  3187. * src/DownloadEngine.cc
  3188. * src/PeerStorage.h
  3189. * src/SegmentMan.cc
  3190. * src/SegmentMan.h
  3191. * test/MockPeerStorage.h
  3192. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Prepended _dir+"/" after joining path elements in torrent file.
  3194. * src/DefaultBtContext.cc
  3195. * test/DefaultBtContextTest.cc
  3196. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Added missing IndexBtMessageValidator.h
  3198. * src/Makefile.am
  3199. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3201. Chinese translations. Thank you for contributing our project.
  3202. * po/id.po
  3203. * po/it.po
  3204. * po/ru.po
  3205. * po/uk.po
  3206. * po/zh_CN.po
  3207. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Updated README
  3209. * README
  3210. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Bump up version number to 1.3.0
  3212. * configure.ac
  3213. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Updated doc
  3215. * src/DefaultBtContext.h
  3216. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Slice/joinPath for name of single torrent.
  3218. * src/DefaultBtContext.cc
  3219. * test/DefaultBtContextTest.cc
  3220. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Updated man page: Documented --dry-run and --index-out
  3222. options. Changed the default value of --uri-selector and
  3223. --http-auth-challenge options. Removed --direct-file-mapping
  3224. option. Added example for --index-out
  3225. * doc/aria2c.1.txt
  3226. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Updated TEXT_DRY_RUN
  3228. * src/usage_text.h
  3229. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Changed the default value of --uri-selector option from 'inorder'
  3231. to 'feedback'
  3232. * src/OptionHandlerFactory.cc
  3233. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Included current URI in exception message.
  3235. * src/AbstractCommand.cc
  3236. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Renamed ServerStatURISelector as FeedbackURISelector.
  3238. * src/FeedbackURISelector.cc
  3239. * src/FeedbackURISelector.h
  3240. * src/Makefile.am
  3241. * src/RequestGroupMan.cc
  3242. * src/ServerStatURISelector.cc
  3243. * src/ServerStatURISelector.h
  3244. * test/FeedbackURISelectorTest.cc
  3245. * test/Makefile.am
  3246. * test/ServerStatURISelectorTest.cc
  3247. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3249. all URIs are tested and their timeout is not reached.
  3250. * src/AdaptiveURISelector.cc
  3251. * src/AdaptiveURISelector.h
  3252. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Changed the default value of --http-auth-challenge option to false.
  3254. * src/OptionHandlerFactory.cc
  3255. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Reuse URIs when all unused URIs run out.
  3257. * src/OptionHandlerFactory.cc
  3258. * src/RequestGroup.cc
  3259. * src/prefs.cc
  3260. * src/prefs.h
  3261. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3263. and BtRejectMessage are derived from RangeBtMessage class.
  3264. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3265. derived from IndexBtMessage class. BtChokeMessage,
  3266. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3267. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3268. ZeroBtMessage class.
  3269. * src/AbstractBtMessage.cc
  3270. * src/AbstractBtMessage.h
  3271. * src/BtAllowedFastMessage.cc
  3272. * src/BtAllowedFastMessage.h
  3273. * src/BtAllowedFastMessageValidator.h: Removed
  3274. * src/BtBitfieldMessage.cc
  3275. * src/BtBitfieldMessage.h
  3276. * src/BtCancelMessage.cc
  3277. * src/BtCancelMessage.h
  3278. * src/BtCancelMessageValidator.h: Removed
  3279. * src/BtChokeMessage.cc
  3280. * src/BtChokeMessage.h
  3281. * src/BtExtendedMessage.cc
  3282. * src/BtExtendedMessage.h
  3283. * src/BtHandshakeMessage.cc
  3284. * src/BtHandshakeMessage.h
  3285. * src/BtHaveAllMessage.cc
  3286. * src/BtHaveAllMessage.h
  3287. * src/BtHaveMessage.cc
  3288. * src/BtHaveMessage.h
  3289. * src/BtHaveMessageValidator.h: Removed
  3290. * src/BtHaveNoneMessage.cc
  3291. * src/BtHaveNoneMessage.h
  3292. * src/BtInterestedMessage.cc
  3293. * src/BtInterestedMessage.h
  3294. * src/BtKeepAliveMessage.cc
  3295. * src/BtKeepAliveMessage.h
  3296. * src/BtNotInterestedMessage.cc
  3297. * src/BtNotInterestedMessage.h
  3298. * src/BtPieceMessage.cc
  3299. * src/BtPieceMessage.h
  3300. * src/BtPortMessage.cc
  3301. * src/BtPortMessage.h
  3302. * src/BtRejectMessage.cc
  3303. * src/BtRejectMessage.h
  3304. * src/BtRejectMessageValidator.h: Removed
  3305. * src/BtRequestMessage.cc
  3306. * src/BtRequestMessage.h
  3307. * src/BtRequestMessageValidator.h: Removed
  3308. * src/BtSuggestPieceMessage.cc
  3309. * src/BtSuggestPieceMessage.h
  3310. * src/BtSuggestPieceMessageValidator.h: Removed
  3311. * src/BtUnchokeMessage.cc
  3312. * src/BtUnchokeMessage.h
  3313. * src/DefaultBtMessageFactory.cc
  3314. * src/IndexBtMessage.cc
  3315. * src/IndexBtMessage.h
  3316. * src/IndexBtMessageValidator.h
  3317. * src/Makefile.am
  3318. * src/PeerMessageUtil.cc
  3319. * src/PeerMessageUtil.h
  3320. * src/RangeBtMessage.cc
  3321. * src/RangeBtMessage.h
  3322. * src/RangeBtMessageValidator.h
  3323. * src/SimpleBtMessage.cc
  3324. * src/SimpleBtMessage.h
  3325. * src/ZeroBtMessage.cc
  3326. * src/ZeroBtMessage.h
  3327. * test/BtRequestMessageTest.cc
  3328. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Reverted usage_text.h to r1093 to avoid to lose translated
  3330. messages.
  3331. * src/usage_text.h
  3332. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3334. declared as non-const previously is now const and defined in class
  3335. definition.
  3336. * src/AbstractBtMessage.cc
  3337. * src/AbstractBtMessage.h
  3338. * src/BtAllowedFastMessage.cc
  3339. * src/BtAllowedFastMessage.h
  3340. * src/BtBitfieldMessage.h
  3341. * src/BtCancelMessage.cc
  3342. * src/BtCancelMessage.h
  3343. * src/BtChokeMessage.cc
  3344. * src/BtChokeMessage.h
  3345. * src/BtExtendedMessage.cc
  3346. * src/BtExtendedMessage.h
  3347. * src/BtHandshakeMessage.cc
  3348. * src/BtHandshakeMessage.h
  3349. * src/BtHaveAllMessage.cc
  3350. * src/BtHaveAllMessage.h
  3351. * src/BtHaveMessage.cc
  3352. * src/BtHaveMessage.h
  3353. * src/BtHaveNoneMessage.cc
  3354. * src/BtHaveNoneMessage.h
  3355. * src/BtInterestedMessage.cc
  3356. * src/BtInterestedMessage.h
  3357. * src/BtKeepAliveMessage.cc
  3358. * src/BtKeepAliveMessage.h
  3359. * src/BtMessage.h
  3360. * src/BtNotInterestedMessage.cc
  3361. * src/BtNotInterestedMessage.h
  3362. * src/BtPieceMessage.h
  3363. * src/BtPortMessage.cc
  3364. * src/BtPortMessage.h
  3365. * src/BtRejectMessage.cc
  3366. * src/BtRejectMessage.h
  3367. * src/BtRequestMessage.cc
  3368. * src/BtRequestMessage.h
  3369. * src/BtSuggestPieceMessage.cc
  3370. * src/BtSuggestPieceMessage.h
  3371. * src/BtUnchokeMessage.cc
  3372. * src/BtUnchokeMessage.h
  3373. * src/SimpleBtMessage.cc
  3374. * src/SimpleBtMessage.h
  3375. * test/MockBtMessage.h
  3376. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Use FileEntry::exists()
  3378. * src/MultiDiskAdaptor.cc
  3379. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Added exists()
  3381. * src/FileEntry.cc
  3382. * src/FileEntry.h
  3383. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Added missing prefix dir.
  3385. * src/download_helper.cc
  3386. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3388. * src/CopyDiskAdaptor.cc: Removed
  3389. * src/CopyDiskAdaptor.h: Removed
  3390. * src/DefaultPieceStorage.cc
  3391. * src/Makefile.am
  3392. * src/OptionHandlerFactory.cc
  3393. * src/prefs.cc
  3394. * src/prefs.h
  3395. * src/usage_text.h
  3396. * test/CopyDiskAdaptorTest.cc: Removed
  3397. * test/Makefile.am
  3398. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Rewritten isSameFileBeingDownloaded()
  3400. * src/RequestGroupMan.cc
  3401. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Removed getName() from DownloadContext. getName() is declared in
  3403. BtContext.
  3404. * src/BtContext.h
  3405. * src/DownloadContext.h
  3406. * src/SingleFileDownloadContext.cc
  3407. * src/SingleFileDownloadContext.h
  3408. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3409. in AbstractSingleDiskAdaptor.
  3410. * src/AbstractSingleDiskAdaptor.h
  3411. * src/DiskAdaptor.h
  3412. * src/MultiDiskAdaptor.h
  3413. * src/RequestGroup.cc
  3414. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3415. MultiDiskAdaptor.
  3416. * src/DefaultPieceStorage.cc
  3417. * src/MultiDiskAdaptor.cc
  3418. * src/MultiDiskAdaptor.h
  3419. * test/MultiDiskAdaptorTest.cc
  3420. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. FileEntry::getPath() contains store(top level) directory to
  3422. simplify path handling operation. In the previous implementation,
  3423. store directory is concatenated to FileEntry::getPath() in
  3424. DownloadContext.
  3425. * src/BtDependency.cc
  3426. * src/BtPostDownloadHandler.cc
  3427. * src/CopyDiskAdaptor.cc
  3428. * src/DefaultBtContext.cc
  3429. * src/DirectDiskAdaptor.cc
  3430. * src/FileEntry.cc
  3431. * src/FileEntry.h
  3432. * src/FtpNegotiationCommand.cc
  3433. * src/HttpResponse.cc
  3434. * src/HttpResponseCommand.cc
  3435. * src/Metalink2RequestGroup.cc
  3436. * src/MultiDiskAdaptor.cc
  3437. * src/MultiDiskAdaptor.h
  3438. * src/MultiFileAllocationIterator.cc
  3439. * src/RequestGroup.cc
  3440. * src/SingleFileDownloadContext.cc
  3441. * src/SingleFileDownloadContext.h
  3442. * src/download_helper.cc
  3443. * test/BtDependencyTest.cc
  3444. * test/CopyDiskAdaptorTest.cc
  3445. * test/DefaultBtContextTest.cc
  3446. * test/DefaultBtProgressInfoFileTest.cc
  3447. * test/DirectDiskAdaptorTest.cc
  3448. * test/DownloadHelperTest.cc
  3449. * test/FileEntryTest.cc
  3450. * test/MultiDiskAdaptorTest.cc
  3451. * test/MultiFileAllocationIteratorTest.cc
  3452. * test/RequestGroupTest.cc
  3453. * test/SingleFileDownloadContextTest.cc
  3454. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Fixed compiler warning
  3456. * src/download_helper.cc
  3457. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Throw exception if same infohash torrent is now downloading.
  3459. * src/RequestGroup.cc
  3460. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Added --dry-run option. In this mode, aria2 just checks whether
  3462. the remote file is available and doesn't download data. This
  3463. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3464. are canceled in this mode.
  3465. * src/FtpNegotiationCommand.cc
  3466. * src/HttpResponseCommand.cc
  3467. * src/HttpResponseCommand.h
  3468. * src/OptionHandlerFactory.cc
  3469. * src/RequestGroup.cc
  3470. * src/RequestGroupMan.cc
  3471. * src/prefs.cc
  3472. * src/prefs.h
  3473. * src/usage_text.h
  3474. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3475. Fixed compiler waring
  3476. * test/UriListParserTest.cc
  3477. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Parse options in -i list using OptionParser.
  3479. * src/UriListParser.cc
  3480. * src/UriListParser.h
  3481. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Don't reset URI in retry to avoid additional round trips because
  3483. of redirects.
  3484. * src/AbstractCommand.cc
  3485. * src/OptionHandlerFactory.cc
  3486. * src/prefs.cc
  3487. * src/prefs.h
  3488. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Declared hide() in OptionHandler.
  3490. * src/NameMatchOptionHandler.h
  3491. * src/OptionHandler.h
  3492. * src/OptionHandlerImpl.h
  3493. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Updated doc
  3495. * src/Peer.h
  3496. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Added log message in setStatusInternal()
  3498. * src/ServerStat.cc
  3499. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3501. effectively exclude failed server.
  3502. * src/AbstractCommand.cc
  3503. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Added --index-out option to specify each file path for torrent.
  3505. Here index shown in --show-files option is used to specify which
  3506. file path should be altered. For example, to change the file path
  3507. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3508. option multiple times: --index-out=1=aria2.tar.bz2
  3509. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3510. available. This option can be specified in -i list.
  3511. * src/DefaultBtContext.cc
  3512. * src/DefaultBtContext.h
  3513. * src/MultiDiskAdaptor.cc
  3514. * src/MultiDiskAdaptor.h
  3515. * src/MultiFileAllocationIterator.cc
  3516. * src/OptionHandlerFactory.cc
  3517. * src/OptionHandlerImpl.h
  3518. * src/Util.cc
  3519. * src/Util.h
  3520. * src/download_helper.cc
  3521. * src/prefs.cc
  3522. * src/prefs.h
  3523. * src/usage_text.h
  3524. * test/DefaultBtContextTest.cc
  3525. * test/MultiDiskAdaptorTest.cc
  3526. * test/MultiFileAllocationIteratorTest.cc
  3527. * test/UtilTest.cc
  3528. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Use Util::pathJoin()
  3530. * src/MetalinkParserController.cc
  3531. * test/test.xml
  3532. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Use Util::pathJoin()
  3534. * src/DefaultBtContext.cc
  3535. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3536. Added Util::pathJoin()
  3537. * src/Util.h
  3538. * test/UtilTest.cc
  3539. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Applied basename function to remove directory element in
  3541. content-disposition value.
  3542. Return empty string if content-disposition value is ".." or ".".
  3543. * src/Util.cc
  3544. * test/UtilTest.cc
  3545. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Added --max-overall-download-limit in man page.
  3547. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3548. * doc/aria2c.1.txt
  3549. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Added --max-overall-download-limit option. Now --max-upload-limit
  3551. option is not ignored when --max-overall-upload-limit option has
  3552. non-zero value. aria2 checks download(upload) speed in the order:
  3553. first checks overall speed limit and if it is not exceeded, then
  3554. checks speed limit per download. Thus you can specify both
  3555. value. For example, set --max-overall-download-limit=1M and
  3556. --max-download-limit=500K to prevent from one download from eating
  3557. all overall speed limit.
  3558. * src/DefaultBtInteractive.cc
  3559. * src/DefaultBtInteractive.h
  3560. * src/DefaultBtMessageDispatcher.cc
  3561. * src/DefaultBtMessageDispatcher.h
  3562. * src/DownloadCommand.cc
  3563. * src/DownloadCommand.h
  3564. * src/FtpNegotiationCommand.cc
  3565. * src/HttpResponseCommand.cc
  3566. * src/OptionHandlerFactory.cc
  3567. * src/PeerInteractionCommand.cc
  3568. * src/RequestGroup.cc
  3569. * src/RequestGroup.h
  3570. * src/RequestGroupMan.cc
  3571. * src/RequestGroupMan.h
  3572. * src/prefs.cc
  3573. * src/prefs.h
  3574. * src/usage_text.h
  3575. * test/DefaultBtMessageDispatcherTest.cc
  3576. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Documented select-file option in Input File section.
  3578. Documented --http-auth-challenge option.
  3579. * doc/aria2c.1.txt
  3580. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Now select-file can be specified in the uri list(-i list).
  3582. * src/BtContext.cc
  3583. * src/BtContext.h
  3584. * src/RequestGroup.cc
  3585. * src/Sequence.h
  3586. * src/download_helper.cc
  3587. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. Made the upper value of --max-concurrent-downloads options unlimited.
  3589. * src/OptionHandlerFactory.cc
  3590. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Fixed the bug that disk writer is not created even if it shares
  3592. same piece with the preceding file if the length of previous file
  3593. is 0.
  3594. * src/MultiDiskAdaptor.cc
  3595. * test/MultiDiskAdaptorTest.cc
  3596. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. In BitTorrent, Open files in read-only mode for hash check. After
  3598. that, re-open file in read/write mode only when the download is
  3599. not finished.
  3600. * src/AbstractDiskWriter.cc
  3601. * src/AbstractDiskWriter.h
  3602. * src/AbstractSingleDiskAdaptor.cc
  3603. * src/AbstractSingleDiskAdaptor.h
  3604. * src/BtCheckIntegrityEntry.cc
  3605. * src/DiskAdaptor.h
  3606. * src/DiskWriter.h
  3607. * src/MultiDiskAdaptor.cc
  3608. * src/MultiDiskAdaptor.h
  3609. * src/RequestGroup.cc
  3610. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Added --http-auth-challenge option. If it is set to true(by
  3612. default), aria2 sends HTTP authorization header only when it is
  3613. requested by the server. If false is set, then authorization
  3614. header is always sent to the server. This is useful for servers
  3615. that don't respond 401 code when authentication is required.
  3616. There is an exception: if username and password are embedded in
  3617. URI, authorization header is always sent to the server regardless
  3618. of this option.
  3619. * src/AuthConfigFactory.cc
  3620. * src/HttpSkipResponseCommand.cc
  3621. * src/OptionHandlerFactory.cc
  3622. * src/prefs.cc
  3623. * src/prefs.h
  3624. * src/usage_text.h
  3625. * test/AuthConfigFactoryTest.cc
  3626. * test/HttpRequestTest.cc
  3627. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. * Release 1.2.0
  3629. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3631. Thanks to all translators.
  3632. * po/es.po
  3633. * po/ja.po
  3634. * po/ru.po
  3635. * po/uk.po
  3636. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Call deleteSocketForReadCheck() before socket is closed.
  3638. * src/HttpListenCommand.cc
  3639. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Defined virtual destructor for BObject.
  3641. * src/bencode.h
  3642. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Rewritten BDE to make it efficient.
  3644. * src/bencode.cc
  3645. * src/bencode.h
  3646. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Removed function throw list.
  3648. * src/bencode.cc
  3649. * src/bencode.h
  3650. * test/BencodeTest.cc
  3651. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Enclosed all URLs in double quotes in command-line examples.
  3653. * doc/aria2c.1.txt
  3654. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Updated reference/see also section.
  3656. * README
  3657. * doc/aria2c.1.txt
  3658. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Reorganized man page based on man man-pages.
  3660. * doc/aria2c.1.txt
  3661. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3662. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3663. because same documents are available in man page. Added
  3664. References section.
  3665. * README
  3666. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3668. PERFORMANCE PROFILE section.
  3669. * doc/aria2c.1.txt
  3670. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Rewritten the section for configuration file.
  3672. * README
  3673. * doc/aria2c.1.txt
  3674. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Fixed the segmentation fault during execution of choking algorithm
  3676. in leecher state because of broken compare operator
  3677. implementation.
  3678. * src/BtLeecherStateChoke.cc
  3679. * src/BtLeecherStateChoke.h
  3680. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Open file in binary mode.
  3682. * src/CookieStorage.cc
  3683. * src/DHTSetup.cc
  3684. * src/DHTUtil.cc
  3685. * src/Netrc.cc
  3686. * src/NsCookieParser.cc
  3687. * src/ProtocolDetector.cc
  3688. * src/RequestGroupMan.cc
  3689. * src/Signature.cc
  3690. * src/bencode.cc
  3691. * src/download_helper.cc
  3692. * src/option_processing.cc
  3693. * test/CookieParserTest.cc
  3694. * test/DefaultBtProgressInfoFileTest.cc
  3695. * test/FileTest.cc
  3696. * test/GZipDecoderTest.cc
  3697. * test/RequestGroupManTest.cc
  3698. * test/SignatureTest.cc
  3699. * test/SingleFileAllocationIteratorTest.cc
  3700. * test/UriListParserTest.cc
  3701. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Removed operator[] because it is ambiguous with built-in []
  3703. operator.
  3704. * src/array_fun.h
  3705. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Fixed compile error
  3707. * src/OptionParser.cc
  3708. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Added missing call to arrayWrapperConst
  3710. * test/array_funTest.cc
  3711. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3712. Use array_wrapper instead of array_ptr.
  3713. * src/DHTRoutingTableDeserializer.cc
  3714. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3716. * src/array_fun.h
  3717. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Added array_wrapper template.
  3719. * src/array_fun.h
  3720. * test/array_funTest.cc
  3721. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Use operator T* of array_ptr.
  3723. * src/OptionParser.cc
  3724. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Use localhost instead of 127.0.0.1
  3726. * test/FtpConnectionTest.cc
  3727. * test/MSEHandshakeTest.cc
  3728. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Added operator T*
  3730. * src/array_fun.h
  3731. * test/array_funTest.cc
  3732. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Use dynamically allocated char array to detect memory access
  3734. violation.
  3735. * src/DHTRoutingTableDeserializer.cc
  3736. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3738. defined.
  3739. * src/PeerMessageUtil.cc
  3740. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3742. * configure.ac
  3743. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Added a check to see struct sockaddr_in has sin_len member.
  3745. * configure.ac
  3746. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Fixed buffer overrun.
  3748. * src/DHTRoutingTableDeserializer.cc
  3749. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Added LL for long long int constant.
  3751. * test/FtpConnectionTest.cc
  3752. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Casted to unsigned int to suppress compiler warning on netbsd.
  3754. * src/BtRuntime.h
  3755. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3757. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3758. type time_t.
  3759. * src/SimpleLogger.cc
  3760. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Added test for FtpConnection::receiveSizeResponse().
  3762. * test/FtpConnectionTest.cc
  3763. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Fix epoll error on the old kernel 2.6.8 or ealier.
  3765. * src/EpollEventPoll.cc
  3766. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Use Util::parseLLInt instead of sscanf for portability. The
  3768. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3769. * src/FtpConnection.cc
  3770. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3772. block. It should not filter anything.
  3773. * src/BitfieldMan.cc
  3774. * src/ConsoleStatCalc.cc
  3775. * test/BitfieldManTest.cc
  3776. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3777. Fixed the bug that the boolean options that don't take arguments
  3778. don't work.
  3779. * src/OptionHandlerImpl.h
  3780. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Fixed broken selected file BitTorrent download.
  3782. * src/MultiDiskAdaptor.cc
  3783. * test/MultiDiskAdaptorTest.cc
  3784. * test/MultiFileAllocationIteratorTest.cc
  3785. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Fixed #define guard for EpollEventPoll
  3787. * src/EpollEventPoll.h
  3788. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Wait 2 seconds. 1 second is sometimes not enough.
  3790. * test/TimeSeedCriteriaTest.cc
  3791. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Use localhost instead of 127.0.0.1.
  3793. * test/DHTConnectionImplTest.cc
  3794. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Suppressed compiler warning.
  3796. * src/AdaptiveURISelector.cc
  3797. * src/DefaultPieceStorage.cc
  3798. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Defined virtual destructor.
  3800. * src/MetalinkParserState.h
  3801. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Give NULL for second argument of getaddrinfo instead of "0".
  3803. * src/NameResolver.cc
  3804. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3806. included strptime doesn't parse data for this format.
  3807. * src/FtpConnection.cc
  3808. * test/FtpConnectionTest.cc
  3809. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Removed tests giving -1 for unsigned argument.
  3811. * test/SingleFileDownloadContextTest.cc
  3812. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Don't use sha256 in tests because it might not be supported by the
  3814. SSL library.
  3815. * test/MetalinkProcessorTest.cc
  3816. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Removed tests giving -1 for unsigned argument.
  3818. * test/AlphaNumberDecoratorTest
  3819. * test/BitfieldManTest.cc
  3820. * test/DefaultBtContextTest.cc
  3821. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Fixed compile error without libcares when epoll is available.
  3823. * src/EpollEventPoll.cc
  3824. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Included fstream instead of iostream.
  3826. * test/SignatureTest.cc
  3827. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Removed #include <algorithm>
  3829. * test/RequestGroupTest.cc
  3830. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3832. using RequestGroup::extractURIResult().
  3833. * src/AdaptiveURISelector.cc
  3834. * src/RequestGroup.cc
  3835. * src/RequestGroup.h
  3836. * test/RequestGroupTest.cc
  3837. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Added tests for array_ptr.
  3839. * test/array_funTest.cc
  3840. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Don't send ip parameter to a tracker if ip parameter is empty
  3842. string.
  3843. * src/DefaultBtAnnounce.cc
  3844. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Adjusted line feed.
  3846. * src/version_usage.cc
  3847. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3848. Print tags, possible values when OptionHandlerException is caught.
  3849. * src/option_processing.cc
  3850. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Changed the message for FatalException.
  3852. * src/OptionParser.cc
  3853. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Documented --bt-external-ip option in man page. Updated man pages
  3855. for --proxy-method option.
  3856. * doc/aria2c.1.txt
  3857. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Use GET method for FTP via HTTP proxy.
  3859. * src/FtpInitiateConnectionCommand.cc
  3860. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Changed the default value of --proxy-method option from 'tunnel'
  3862. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3863. option.
  3864. * src/AbstractCommand.cc
  3865. * src/AbstractCommand.h
  3866. * src/FtpInitiateConnectionCommand.cc
  3867. * src/HttpDownloadCommand.cc
  3868. * src/HttpInitiateConnectionCommand.cc
  3869. * src/HttpInitiateConnectionCommand.h
  3870. * src/OptionHandlerFactory.cc
  3871. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Initialized _logger
  3873. * src/SelectEventPoll.cc
  3874. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Defined a copy constructor for the same type.
  3876. * src/SharedHandle.h
  3877. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Added OptionParser::parseArg() which internally uses getopt_long
  3879. to parse command-line options. All command-line options are now
  3880. configured by OptionHandler. No manual editing of struct option*
  3881. is required any more.
  3882. * src/NameMatchOptionHandler.h
  3883. * src/OptionHandler.h
  3884. * src/OptionHandlerFactory.cc
  3885. * src/OptionHandlerImpl.h
  3886. * src/OptionParser.cc
  3887. * src/OptionParser.h
  3888. * src/array_fun.h
  3889. * src/main.cc
  3890. * src/option_processing.cc
  3891. * test/OptionHandlerTest.cc
  3892. * test/OptionParserTest.cc
  3893. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Fixed configure error with --disable-epoll
  3895. * configure.ac
  3896. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Fixed compile error when HAVE_EPOLL is not defined.
  3898. Fixed linker error on bigendian systems.
  3899. * src/SocketCore.cc
  3900. * src/SocketCore.h
  3901. * test/DefaultBtProgressInfoFileTest.cc
  3902. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Added --bt-external-ip option. You can specify the external IP
  3904. address to report to a BitTorrent tracker. Although this function
  3905. is named 'external', it can accept any kind of IP addresses.
  3906. * src/DefaultBtAnnounce.cc
  3907. * src/OptionHandlerFactory.cc
  3908. * src/option_processing.cc
  3909. * src/prefs.cc
  3910. * src/prefs.h
  3911. * src/usage_text.h
  3912. * test/DefaultBtAnnounceTest.cc
  3913. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Extracted the algorithm to find the longest incremental sequence
  3915. as max_sequence template.
  3916. * src/LongestSequencePieceSelector.cc
  3917. * src/a2algo.h
  3918. * test/Makefile.am
  3919. * test/a2algoTest.cc
  3920. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3922. * src/usage_text.h
  3923. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Updated doc for --uri-selector, --http-server-listen-port and
  3925. --enable-http-server option. Documented --event-poll option.
  3926. * doc/aria2c.1.txt
  3927. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Updated doc for --enable-http-server.
  3929. * src/usage_text.h
  3930. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Documented --http-server-listen-port and --enable-http-server in
  3932. man page.
  3933. * doc/aria2c.1.txt
  3934. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3936. translations. Thanks to all translators.
  3937. * po/es.po
  3938. * po/id.po
  3939. * po/it.po
  3940. * po/ru.po
  3941. * po/uk.po
  3942. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Bump up version number to 1.2.0
  3944. * configure.ac
  3945. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. BtContext::getAnnounceTiers() now returns const reference.
  3947. * src/BtContext.h
  3948. * src/DefaultBtContext.cc
  3949. * src/DefaultBtContext.h
  3950. * test/MockBtContext.h
  3951. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Change the number of retries for tracker request based on the
  3953. number of available tracker in a torrent file.
  3954. * src/TrackerWatcherCommand.cc
  3955. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Added _maxTries property to RequestGroup and assign the option
  3957. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3958. RequestGroup::getMaxTries() instead of
  3959. Option::getAsInt(PREF_MAX_TRIES).
  3960. * src/AbstractCommand.cc
  3961. * src/RequestGroup.cc
  3962. * src/RequestGroup.h
  3963. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3964. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3965. Mandriva. I modified the patch: make RequestGroup have the
  3966. timeout value and AdaptiveURISelector directly modifies that
  3967. value.
  3968. * src/AbstractCommand.cc
  3969. * src/AdaptiveURISelector.cc
  3970. * src/AdaptiveURISelector.h
  3971. * src/FtpNegotiationCommand.cc
  3972. * src/RequestGroup.cc
  3973. * src/RequestGroup.h
  3974. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3975. Fixed compiler warning
  3976. * test/IteratableChecksumValidatorTest.cc
  3977. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3979. integrated downloads. This PieceSelector subclass finds the
  3980. longest continuous sequence in the available missing pieces and
  3981. selects the last index of such sequence. This makes HTTP/FTP
  3982. connections less interrupted by the pieces obtained by BitTorrent
  3983. peers.
  3984. * src/DefaultPieceStorage.cc
  3985. * src/DefaultPieceStorage.h
  3986. * src/LongestSequencePieceSelector.cc
  3987. * src/LongestSequencePieceSelector.h
  3988. * src/Makefile.am
  3989. * src/PieceSelector.h
  3990. * src/RarestPieceSelector.h
  3991. * src/RequestGroup.cc
  3992. * test/BtDependencyTest.cc
  3993. * test/DefaultPieceStorageTest.cc
  3994. * test/IteratableChecksumValidatorTest.cc
  3995. * test/LongestSequencePieceSelectorTest.cc
  3996. * test/Makefile.am
  3997. * test/SegmentManTest.cc
  3998. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Fixed the bug that the average speed is wrong in
  4000. http/ftp/BitTorrent integrated download. Only the download bytes
  4001. in BitTorrent were considered.
  4002. * src/RequestGroup.cc
  4003. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Choose port for BitTorrent/DHT randomly from the specified range.
  4005. * src/DHTConnectionImpl.cc
  4006. * src/PeerListenCommand.cc
  4007. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Send HTTP Authorization header only if it is requested by the
  4009. server(response 401). There are some exceptions. The authorization
  4010. header for proxy is always sent if it is available without request
  4011. by the server. If username/password is specified in the URI, it
  4012. is immediately sent to the server without request by the server.
  4013. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4014. SharedHandle<AuthConfig>().
  4015. NetrcAuthResolver::resolveAuthConfig() returns
  4016. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4017. * src/AbstractAuthResolver.cc
  4018. * src/AbstractProxyRequestCommand.cc
  4019. * src/AuthConfigFactory.cc
  4020. * src/AuthConfigFactory.h
  4021. * src/HttpConnection.cc
  4022. * src/HttpRequest.cc
  4023. * src/HttpRequest.h
  4024. * src/HttpResponse.cc
  4025. * src/HttpResponseCommand.cc
  4026. * src/HttpSkipResponseCommand.cc
  4027. * test/AuthConfigFactoryTest.cc
  4028. * test/HttpRequestTest.cc
  4029. * test/HttpResponseTest.cc
  4030. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Remove leading "--" from help keyword and a substring after "="
  4032. from help keyword, so that one can query options by '-h--max-' or
  4033. '-hmax-peers=10'.
  4034. * src/option_processing.cc
  4035. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Rewritten PStringVisitor and its implementation.
  4037. * src/PStringBuildVisitor.cc
  4038. * src/PStringBuildVisitor.h
  4039. * src/PStringDatum.h
  4040. * src/PStringNumLoop.h
  4041. * src/PStringSegment.cc
  4042. * src/PStringSegment.h
  4043. * src/PStringSelect.h
  4044. * src/PStringVisitor.h
  4045. * src/download_helper.cc
  4046. * test/PStringBuildVisitorTest.cc
  4047. * test/ParameterizedStringParserTest.cc
  4048. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Persist connection between the built-in HTTP server and a client
  4050. if a client supports keep-alive. Fixed the bug that aria2 exits
  4051. when the HTTP server receives EOF from a client.
  4052. * src/HttpServer.cc
  4053. * src/HttpServer.h
  4054. * src/HttpServerCommand.cc
  4055. * src/HttpServerCommand.h
  4056. * src/HttpServerResponseCommand.cc
  4057. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Added experimental built-in HTTP server. Currently, when a client
  4059. accesses to the server, it responds with the current download
  4060. progress. By default, it is disabled. To enable the server, give
  4061. --enable-http-server option. To change the default port number
  4062. for the server to listen to, use --http-server-listen-port option.
  4063. The response HTML is very simple and refreshes it self each 1
  4064. second. Because of this refresh, you see flicker in normal web
  4065. browser such as Firefox. I recommend to use console-based browser
  4066. such as elinks, w3m. To connect to the server, run 'elinks
  4067. http://localhost:6800/' while running aria2. Please replace port
  4068. number '6800'(which is default) with your preference.
  4069. * src/DownloadEngineFactory.cc
  4070. * src/HttpHeader.cc
  4071. * src/HttpHeader.h
  4072. * src/HttpHeaderProcessor.cc
  4073. * src/HttpHeaderProcessor.h
  4074. * src/HttpListenCommand.cc
  4075. * src/HttpListenCommand.h
  4076. * src/HttpServer.cc
  4077. * src/HttpServer.h
  4078. * src/HttpServerCommand.cc
  4079. * src/HttpServerCommand.h
  4080. * src/HttpServerResponseCommand.cc
  4081. * src/HttpServerResponseCommand.h
  4082. * src/Makefile.am
  4083. * src/OptionHandlerFactory.cc
  4084. * src/Util.cc
  4085. * src/Util.h
  4086. * src/help_tags.h
  4087. * src/option_processing.cc
  4088. * src/prefs.cc
  4089. * src/prefs.h
  4090. * src/usage_text.h
  4091. * test/HttpHeaderProcessorTest.cc
  4092. * test/UtilTest.cc
  4093. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Removed.
  4095. * src/CheckIntegrityMan.cc
  4096. * src/FileAllocationMan.cc
  4097. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Made (piece) hash check sequential for each RequestGroup because
  4099. simultaneous hash check is slower than sequential execution.
  4100. * src/CheckIntegrityCommand.cc
  4101. * src/CheckIntegrityDispatcherCommand.cc
  4102. * src/CheckIntegrityDispatcherCommand.h
  4103. * src/CheckIntegrityMan.h
  4104. * src/ConsoleStatCalc.cc
  4105. * src/DownloadCommand.cc
  4106. * src/DownloadEngine.cc
  4107. * src/DownloadEngine.h
  4108. * src/DownloadEngineFactory.cc
  4109. * src/Makefile.am
  4110. * src/Makefile.in
  4111. * src/RequestGroup.cc
  4112. * src/StatCalc.h
  4113. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4115. SequentialDispatcherCommand.
  4116. * src/FileAllocationDispatcherCommand.cc
  4117. * src/SequentialDispatcherCommand.h
  4118. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4119. Rewritten FileAllocationDispatcherCommand using brand new
  4120. SequentialDispatcherCommand.
  4121. * src/DownloadEngineFactory.cc
  4122. * src/FileAllocationCommand.cc
  4123. * src/FileAllocationDispatcherCommand.cc
  4124. * src/FileAllocationDispatcherCommand.h
  4125. * src/Makefile.am
  4126. * src/SequentialDispatcherCommand.h
  4127. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Replaced FileAllocationMan with
  4129. SequentialPicker<FileAllocationEntry>.
  4130. * src/BtCheckIntegrityEntry.cc
  4131. * src/ConsoleStatCalc.cc
  4132. * src/DownloadEngine.cc
  4133. * src/DownloadEngine.h
  4134. * src/DownloadEngineFactory.cc
  4135. * src/FileAllocationCommand.cc
  4136. * src/FileAllocationDispatcherCommand.cc
  4137. * src/FileAllocationMan.h
  4138. * src/Makefile.am
  4139. * src/SequentialPicker.h
  4140. * src/StatCalc.h
  4141. * src/StreamCheckIntegrityEntry.cc
  4142. * test/Makefile.am
  4143. * test/SequentialPickerTest.cc
  4144. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Added doc for adaptive URI selector.
  4146. * doc/aria2c.1.txt
  4147. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Added doc for adaptive URI selector.
  4149. * src/usage_text.h
  4150. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. Added doc for --bt-max-peers option.
  4152. * doc/aria2c.1.txt
  4153. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Added doc for --bt-hash-check-seed option.
  4155. * doc/aria2c.1.txt
  4156. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4157. Documented exit codes.
  4158. * doc/aria2c.1.txt
  4159. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Added --bt-max-peers option to specify the maximum number of peers
  4161. per torrent. 0 means unlimited number of peers.
  4162. * src/ActivePeerConnectionCommand.cc
  4163. * src/BtRuntime.h
  4164. * src/DefaultPeerStorage.cc
  4165. * src/DefaultPeerStorage.h
  4166. * src/OptionHandlerFactory.cc
  4167. * src/RequestGroup.cc
  4168. * src/option_processing.cc
  4169. * src/prefs.cc
  4170. * src/prefs.h
  4171. * src/usage_text.h
  4172. * test/DefaultPeerStorageTest.cc
  4173. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Added --bt-hash-check-seed option. If true is given to this
  4175. option, after hash check using --check-integrity option and file
  4176. is complete, continue to seed file. If you want to check file and
  4177. download it only when it is damaged or incomplete, set this option
  4178. to false. This option has effect only on BitTorrent download.
  4179. The default value is true(This is the same behavior with the
  4180. previous release).
  4181. * src/BtCheckIntegrityEntry.cc
  4182. * src/OptionHandlerFactory.cc
  4183. * src/option_processing.cc
  4184. * src/prefs.cc
  4185. * src/prefs.h
  4186. * src/usage_text.h
  4187. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Updated copyright year.
  4189. * src/version_usage.cc
  4190. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4192. * doc/aria2c.1.txt
  4193. * src/usage_text.h
  4194. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Made the max value of split option unlimited.
  4196. * doc/aria2c.1.txt
  4197. * src/OptionHandlerFactory.cc
  4198. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Fixed compile warning/error.
  4200. * src/DownloadResult.h
  4201. * src/HttpDownloadCommand.cc
  4202. * src/ServerStat.cc
  4203. * test/RequestGroupTest.cc
  4204. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Added --event-poll option to select the method for polling events.
  4206. The available methods are "select" and "epoll". "epoll" is
  4207. available on Linux only. The earlier release has the compile
  4208. option to choose from these methods.
  4209. * configure.ac
  4210. * src/RequestGroupMan.cc
  4211. * src/OptionHandlerFactory.cc
  4212. * src/EpollEventPoll.h
  4213. * src/StreamFileAllocationEntry.cc
  4214. * src/a2io.h
  4215. * src/SelectEventPoll.h
  4216. * src/option_processing.cc
  4217. * src/prefs.h
  4218. * src/EpollEventPoll.cc
  4219. * src/EventPoll.h
  4220. * src/SocketCore.h
  4221. * src/Makefile.am
  4222. * src/main.cc
  4223. * src/DownloadEngine.h
  4224. * src/SelectEventPoll.cc
  4225. * src/DownloadEngine.cc
  4226. * src/SocketCore.cc
  4227. * src/DownloadEngineFactory.cc
  4228. * src/Makefile.in
  4229. * src/prefs.cc
  4230. * src/usage_text.h
  4231. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Included RecoverableException.h from main.cc
  4233. * src/main.cc
  4234. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4236. now returns last error encountered in the HTTP/FTP downloads as a
  4237. exit status value. If all downloads finished successfully, aria2
  4238. returns 0. The error code is defined in src/DownloadResult.h.
  4239. The error occurred in the download currently in progress is not
  4240. reported as a last error. If no error has encountered but there
  4241. are in progress or waiting downloads, aria2 returns 7.
  4242. * src/AbstractCommand.cc
  4243. * src/DlAbortEx.h
  4244. * src/DlRetryEx.h
  4245. * src/DownloadCommand.cc
  4246. * src/DownloadFailureException.h
  4247. * src/DownloadResult.h
  4248. * src/FtpNegotiationCommand.cc
  4249. * src/HttpSkipResponseCommand.cc
  4250. * src/Makefile.am
  4251. * src/MultiUrlRequestInfo.cc
  4252. * src/MultiUrlRequestInfo.h
  4253. * src/RecoverableException.h
  4254. * src/RequestGroup.cc
  4255. * src/RequestGroup.h
  4256. * src/RequestGroupMan.cc
  4257. * src/RequestGroupMan.h
  4258. * src/URIResult.cc
  4259. * src/URIResult.h
  4260. * src/main.cc
  4261. * src/option_processing.cc
  4262. * test/RequestGroupTest.cc
  4263. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4265. patch adds AdaptiveURISelector, which selects one of the bests
  4266. mirrors for first and reserved connections. For supplementary
  4267. ones, it returns mirrors which has not been tested yet, and if
  4268. each of them already tested, returns mirrors which has to be
  4269. tested again. Otherwise, it doesn't return anymore mirrors.
  4270. * src/AdaptiveURISelector.cc
  4271. * src/AdaptiveURISelector.h
  4272. * src/FtpNegotiationCommand.cc
  4273. * src/HttpResponseCommand.cc
  4274. * src/Makefile.am
  4275. * src/Makefile.in
  4276. * src/OptionHandlerFactory.cc
  4277. * src/RequestGroup.cc
  4278. * src/RequestGroup.h
  4279. * src/RequestGroupMan.cc
  4280. * src/ServerStat.cc
  4281. * src/ServerStat.h
  4282. * src/ServerStatMan.cc
  4283. * src/SpeedCalc.cc
  4284. * src/URISelector.h
  4285. * src/prefs.cc
  4286. * src/prefs.h
  4287. * test/RequestGroupManTest.cc
  4288. * test/ServerStatManTest.cc
  4289. * test/ServerStatTest.cc
  4290. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4291. Fixed unit test error.
  4292. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4293. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4294. * Release 1.1.2
  4295. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Updated Russian translation. Thanks to the translators.
  4297. * po/ru.po
  4298. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Added the description of --use-head option to man page.
  4300. * doc/aria2c.1.txt
  4301. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Bump up version number to 1.1.2
  4303. * configure.ac
  4304. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. Added --use-head option to toggle whether HEAD method should be
  4306. used in the first HTTP request. By default aria2 uses HEAD method
  4307. as the first request. When the server doesn't recognize HEAD, then
  4308. give aria2 --use-head=false to force aria2 to use GET method
  4309. instead.
  4310. * src/OptionHandlerFactory.cc
  4311. * src/RequestGroupMan.cc
  4312. * src/option_processing.cc
  4313. * src/prefs.cc
  4314. * src/prefs.h
  4315. * src/usage_text.h
  4316. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4317. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4318. message is received before CHOKE message. The old implementation
  4319. doen't clear the use-bit of the piece when recieved REJECT
  4320. message.
  4321. * src/DefaultBtMessageDispatcher.cc
  4322. * test/DefaultBtMessageDispatcherTest.cc
  4323. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4324. * Release 1.1.1
  4325. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Bump up version number to 1.1.1.
  4327. * configure.ac
  4328. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4330. is printed repeatedly.
  4331. * src/ConsoleStatCalc.cc
  4332. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. * Release 1.1.0
  4334. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Added ifdef clause for conditional compilation.
  4336. * src/main.cc
  4337. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4339. translations. Thanks to all translators.
  4340. * po/ja.po
  4341. * po/ru.po
  4342. * po/uk.po
  4343. * po/zh_CN.po
  4344. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Added the preceding ">>> " before the message "Printing the
  4346. contents of file..." to make the output more readable.
  4347. * src/main.cc
  4348. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Added try-catch block in the loop in showFiles() to continue the
  4350. operation even if the exception occurred in one file.
  4351. * src/main.cc (showFiles)
  4352. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4353. Made messages in showFiles() translatable.
  4354. * po/aria2.pot
  4355. * src/main.cc
  4356. * src/message.h
  4357. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Print the contents of Torrent/Metalink files are printed without
  4359. -T/-M options.
  4360. * src/main.cc
  4361. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Escaped '--' with '\--'
  4363. * README
  4364. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Updated "How to build" section in README. Mentioned about
  4366. --with-ca-bundle compile option.
  4367. * README
  4368. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4369. Bump up version number to 1.1.0.
  4370. * configure.ac
  4371. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4372. Added a note for --dht-listen-port option.
  4373. * doc/aria2c.1.txt
  4374. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4375. Update doc for --realtime-chunk-checksum option.
  4376. * doc/aria2c.1.txt
  4377. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4378. Update doc for --realtime-chunk-checksum option.
  4379. * src/usage_text.h
  4380. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4381. Updated French, Japanese, Russian and Ukrainian translations.
  4382. Thanks to all translators.
  4383. * po/fr.po
  4384. * po/ja.po
  4385. * po/ru.po
  4386. * po/uk.po
  4387. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Renamed aria2c.pot to aria2.pot
  4389. * po/aria2.pot
  4390. * po/aria2c.pot: Removed.
  4391. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4392. Removed MetaEntry.h
  4393. * src/Makefile.am
  4394. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Rename file by appending digits if a local file exists and its
  4396. file size is larger than that of remote file with --continue
  4397. option. The old implementation just throws exception in such case.
  4398. * src/RequestGroup.cc
  4399. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Fixed the bug that download progress summary is not printed in the
  4401. interval specified by the option.
  4402. * src/ConsoleStatCalc.cc
  4403. * src/ConsoleStatCalc.h
  4404. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Fixed compiler warning
  4406. * src/Cookie.cc
  4407. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Fixed the cookie implementation based on RFC2965.
  4409. Now if a value in domain field is not started with dot, then
  4410. prepend dot. That means a cookie with domain=sf.net is sent to
  4411. wiki.sf.net.
  4412. * src/Cookie.cc
  4413. * test/CookieParserTest.cc
  4414. * test/CookieStorageTest.cc
  4415. * test/CookieTest.cc
  4416. * test/NsCookieParserTest.cc
  4417. * test/Sqlite3MozCookieParserTest.cc
  4418. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4419. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4420. is enabled and the server doesn't support keep-alive.
  4421. * src/AbstractCommand.cc
  4422. * src/DownloadCommand.cc
  4423. * src/HttpDownloadCommand.cc
  4424. * src/HttpDownloadCommand.h
  4425. * src/HttpResponseCommand.cc
  4426. * src/Request.cc
  4427. * src/Request.h
  4428. * test/RequestTest.cc
  4429. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Removed Dictionary/List/Data and its related classes.
  4431. * src/BencodeVisitor.cc: Removed.
  4432. * src/BencodeVisitor.h: Removed.
  4433. * src/Data.cc: Removed.
  4434. * src/Data.h: Removed.
  4435. * src/Dictionary.cc: Removed.
  4436. * src/Dictionary.h: Removed.
  4437. * src/List.cc: Removed.
  4438. * src/List.h: Removed.
  4439. * src/Makefile.am
  4440. * src/MetaEntry.h: Removed.
  4441. * src/MetaEntryVisitor.h: Removed.
  4442. * src/MetaFileUtil.cc: Removed.
  4443. * src/MetaFileUtil.h: Removed.
  4444. * test/BencodeVisitorTest.cc: Removed.
  4445. * test/DataTest.cc: Removed.
  4446. * test/DictionaryTest.cc: Removed.
  4447. * test/ListTest.cc: Removed.
  4448. * test/Makefile.am
  4449. * test/MetaFileUtilTest.cc: Removed.
  4450. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Removed include of MetaEntry.h
  4452. * test/DHTMessageTrackerEntryTest.cc
  4453. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4454. Use BDE instead of Dictionary/List/Data.
  4455. * src/AnnounceList.cc
  4456. * src/AnnounceList.h
  4457. * test/AnnounceListTest.cc
  4458. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Use BDE instead of Dictionary/List/Data.
  4460. * src/DHTAbstractMessage.cc
  4461. * src/DHTAbstractMessage.h
  4462. * src/DHTAnnouncePeerMessage.cc
  4463. * src/DHTAnnouncePeerMessage.h
  4464. * src/DHTAnnouncePeerReplyMessage.cc
  4465. * src/DHTAnnouncePeerReplyMessage.h
  4466. * src/DHTFindNodeMessage.cc
  4467. * src/DHTFindNodeMessage.h
  4468. * src/DHTFindNodeReplyMessage.cc
  4469. * src/DHTFindNodeReplyMessage.h
  4470. * src/DHTGetPeersMessage.cc
  4471. * src/DHTGetPeersMessage.h
  4472. * src/DHTGetPeersReplyMessage.cc
  4473. * src/DHTGetPeersReplyMessage.h
  4474. * src/DHTMessageFactory.h
  4475. * src/DHTMessageFactoryImpl.cc
  4476. * src/DHTMessageFactoryImpl.h
  4477. * src/DHTMessageReceiver.cc
  4478. * src/DHTMessageTracker.cc
  4479. * src/DHTMessageTracker.h
  4480. * src/DHTPingMessage.cc
  4481. * src/DHTPingMessage.h
  4482. * src/DHTPingReplyMessage.cc
  4483. * src/DHTPingReplyMessage.h
  4484. * src/DHTQueryMessage.cc
  4485. * src/DHTQueryMessage.h
  4486. * src/DHTResponseMessage.cc
  4487. * src/DHTResponseMessage.h
  4488. * test/DHTAnnouncePeerMessageTest.cc
  4489. * test/DHTAnnouncePeerReplyMessageTest.cc
  4490. * test/DHTFindNodeMessageTest.cc
  4491. * test/DHTFindNodeReplyMessageTest.cc
  4492. * test/DHTGetPeersMessageTest.cc
  4493. * test/DHTGetPeersReplyMessageTest.cc
  4494. * test/DHTMessageFactoryImplTest.cc
  4495. * test/DHTMessageTrackerTest.cc
  4496. * test/DHTPingMessageTest.cc
  4497. * test/DHTPingReplyMessageTest.cc
  4498. * test/MockDHTMessageFactory.h
  4499. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4500. Added tests the case where length < 0 is specified.
  4501. * test/BencodeTest.cc
  4502. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Fixed memory leak in decoderawstring()
  4504. * src/bencode.cc
  4505. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4506. Added missing #ifdef guard. Added uc() function for String and
  4507. removeKey() for Dict.
  4508. * src/bencode.cc
  4509. * src/bencode.h
  4510. * test/BencodeTest.cc
  4511. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Use BDE instead of Dictionary/List/Data.
  4513. * src/HandshakeExtensionMessage.cc
  4514. * src/HandshakeExtensionMessage.h
  4515. * test/HandshakeExtensionMessageTest.cc
  4516. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Added --max-overall-upload-limit option. This option limits the
  4518. overall upload speed. Stated in help message that the existing
  4519. --max-upload-limit option limits the upload speed per each
  4520. torrent. Man page is also updated.
  4521. * doc/aria2c.1.txt
  4522. * src/DefaultBtMessageDispatcher.cc
  4523. * src/DefaultBtMessageDispatcher.h
  4524. * src/OptionHandlerFactory.cc
  4525. * src/PeerInteractionCommand.cc
  4526. * src/option_processing.cc
  4527. * src/prefs.cc
  4528. * src/prefs.h
  4529. * src/usage_text.h
  4530. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Use BDE instead of Dictionary/List/Data classes.
  4532. * src/CompactPeerListProcessor.cc
  4533. * src/CompactPeerListProcessor.h
  4534. * src/DefaultBtAnnounce.cc
  4535. * src/DefaultBtContext.cc
  4536. * src/DefaultBtContext.h
  4537. * src/DefaultPeerListProcessor.cc
  4538. * src/DefaultPeerListProcessor.h
  4539. * src/DelegatingPeerListProcessor.cc
  4540. * src/DelegatingPeerListProcessor.h
  4541. * src/PeerListProcessor.h
  4542. * src/UTPexExtensionMessage.cc
  4543. * src/Util.h
  4544. * src/message.h
  4545. * test/DefaultBtContextTest.cc
  4546. * test/DefaultPeerListProcessorTest.cc
  4547. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Added bencode helper functions and BDE class.
  4549. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4550. * src/Makefile.am
  4551. * src/bencode.cc
  4552. * src/bencode.h
  4553. * test/BencodeTest.cc
  4554. * test/Makefile.am
  4555. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Fixed the bug that bad URI is sent to the tracker when the announe
  4557. URI in torrent file includes query.
  4558. * src/DefaultBtAnnounce.cc
  4559. * test/DefaultBtAnnounceTest.cc
  4560. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Added Option::blank().
  4562. Use !Option::blank(name) instead of Option::defined(name) for
  4563. the options that take filename.
  4564. * src/MultiUrlRequestInfo.cc
  4565. * src/Option.cc
  4566. * src/Option.h
  4567. * src/main.cc
  4568. * src/option_processing.cc
  4569. * test/OptionTest.cc
  4570. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Documented the default value of --check-certificate option in man
  4572. page.
  4573. * doc/aria2c.1.txt
  4574. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Enabled --check-certificate by default. Added compile
  4576. time(configure) option --with-ca-bundle to specify CA bundle.
  4577. Warn if --check-certificate=true and --ca-certificate is not
  4578. specified or loading CA certificate is failed.
  4579. * configure.ac
  4580. * src/MultiUrlRequestInfo.cc
  4581. * src/OptionHandlerFactory.cc
  4582. * src/message.h
  4583. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Mentioned https tag in help option.
  4585. * doc/aria2c.1.txt
  4586. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Added `https' tag to help option category. Added https tag to
  4588. --ca-certificate, --certificate, --check-certificate and
  4589. --private-key option.
  4590. * src/OptionHandlerFactory.cc
  4591. * src/help_tags.h
  4592. * src/option_processing.cc
  4593. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Changed the package name from `aria2c' to `aria2' in order to fix
  4595. the packaging issue in Debian and Fedora. The name of the
  4596. executable is not changed.
  4597. * configure.ac
  4598. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Fixed typos
  4600. * src/usage_text.h
  4601. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. Fixed typos and updated doc.
  4603. * README
  4604. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4605. Fixed typos
  4606. * doc/aria2c.1.txt
  4607. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4608. Fixed typos
  4609. * src/usage_text.h
  4610. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4611. Print a message when no files to download.
  4612. * src/download_helper.cc
  4613. * src/main.cc
  4614. * src/message.h
  4615. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. RFC3986 complied Percent-Encoding(urlencode).
  4617. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4618. ones.
  4619. * src/Request.cc
  4620. * src/Util.cc
  4621. * src/Util.h
  4622. * test/BtHandshakeMessageTest.cc
  4623. * test/DefaultBtAnnounceTest.cc
  4624. * test/DefaultBtContextTest.cc
  4625. * test/RequestTest.cc
  4626. * test/UtilTest.cc
  4627. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Fixed the bug that prevents aria2 from downloading 0-length files
  4629. via HTTP/FTP.
  4630. * src/DefaultBtContext.cc
  4631. * src/DefaultBtContext.h
  4632. * src/DownloadContext.h
  4633. * src/FtpNegotiationCommand.cc
  4634. * src/HttpResponseCommand.cc
  4635. * src/HttpResponseCommand.h
  4636. * src/RequestGroup.cc
  4637. * src/SingleFileDownloadContext.cc
  4638. * src/SingleFileDownloadContext.h
  4639. * test/BtPostDownloadHandlerTest.cc
  4640. * test/MetalinkPostDownloadHandlerTest.cc
  4641. * test/MockBtContext.h
  4642. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4643. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4644. * src/option_processing.cc
  4645. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4646. Applied aria2-1.0.1-mingw.patch.
  4647. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4648. mingw.
  4649. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4650. * src/SocketCore.cc
  4651. * src/a2netcompat.h
  4652. * test/SocketCoreTest.cc
  4653. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. * Release 1.0.1
  4655. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Updated Ukrainian and Norwegian Nynorsk translations.
  4657. Thanks to all translators.
  4658. * po/nn.po
  4659. * po/uk.po
  4660. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Don't show download result when -S option is used.
  4662. * src/main.cc
  4663. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. Bump up version number to 1.0.1
  4665. * configure.ac
  4666. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Closed files after the test cases in MultiDiskWriterTest::
  4668. testResetDiskWriterEntries(). This will fix the unit test error
  4669. in mingw32 build.
  4670. * test/MultiDiskWriterTest.cc
  4671. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4672. Use HEAD method to get file size from HTTP server for segmented
  4673. downloading.
  4674. The request to the BitTorrent Tracker always uses GET method because
  4675. the response of the tracker is small and it doesn't need segmented
  4676. download.
  4677. * src/FtpNegotiationCommand.cc
  4678. * src/HttpRequest.cc
  4679. * src/HttpResponseCommand.cc
  4680. * src/HttpSkipResponseCommand.cc
  4681. * src/RequestGroup.cc
  4682. * src/RequestGroup.h
  4683. * src/TrackerWatcherCommand.cc
  4684. * test/HttpRequestTest.cc
  4685. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Fixed the bug that causes floating exception when -T option is used and
  4687. no URIs are given.
  4688. * src/download_helper.cc
  4689. * test/DownloadHelperTest.cc
  4690. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4691. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4692. errors in MinGW:
  4693. Closed file after saving server stats (RequestGroupMan.cc)
  4694. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4695. Ignored case & handled 2-digit years (strptime.c)
  4696. Added missing suseconds_t definition (a2time.h)
  4697. Fixed socket CLOSE() define (SocketCore.cc)
  4698. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4699. Changed utime() test values from x000 to x00000 as MinGW failed on
  4700. values less than timezone offset from Unix epoch
  4701. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4702. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4703. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4704. handle negative dates (CookieParserTest.cc)
  4705. * src/a2time.h
  4706. * src/FtpConnection.cc
  4707. * src/RequestGroupMan.cc
  4708. * src/SocketCore.cc
  4709. * src/strptime.c
  4710. * test/CookieParserTest.cc
  4711. * test/CopyDiskAdaptorTest.cc
  4712. * test/FileTest.cc
  4713. * test/FtpConnectionTest.cc
  4714. * test/MultiDiskAdaptorTest.cc
  4715. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4717. * doc/aria2c.1.txt
  4718. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4719. * Release 1.0.0
  4720. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4721. Added '~' to reserved characters.
  4722. * src/Util.cc
  4723. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. Do not urlencode Request::url in setUrl() because we want unmodified
  4725. URL using Request::getUrl()
  4726. * src/Request.cc
  4727. * src/Request.h
  4728. * test/RequestTest.cc
  4729. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4731. Thanks to all translators.
  4732. * po/bg.po
  4733. * po/fr.po
  4734. * po/ja.po
  4735. * po/ru.po
  4736. * po/uk.po
  4737. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Bump up version number to 1.0.0
  4739. * configure.ac
  4740. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4741. Added nosqlite3 build to build_test.sh.
  4742. Renamed noxml as expat.
  4743. * build_test.sh
  4744. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4745. Updated INPUT FILE section.
  4746. * doc/aria2c.1.txt
  4747. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4748. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4749. on big endian systems because test .aria2 files are made for little
  4750. endian systems.
  4751. * test/DefaultBtProgressInfoFileTest.cc
  4752. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4753. Dropped ares support.
  4754. * README
  4755. * configure.ac
  4756. * m4/libares.m4: Removed.
  4757. * src/AsyncNameResolver.cc
  4758. * src/Makefile.am
  4759. * test/Makefile.am
  4760. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4762. Removed const qualifier from DiskWriter::size().
  4763. * src/AbstractDiskWriter.cc
  4764. * src/AbstractDiskWriter.h
  4765. * src/ByteArrayDiskWriter.cc
  4766. * src/ByteArrayDiskWriter.h
  4767. * src/DiskWriter.h
  4768. * test/ByteArrayDiskWriterTest.cc
  4769. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Fixed the bug that causes segmentation fault/bus error during executing
  4771. choking algorithm while seeding. This is caused by improper
  4772. implementation of compare function which returns inconsistent results
  4773. depending on the timing of last unchoke.
  4774. * src/BtSeederStateChoke.cc
  4775. * src/BtSeederStateChoke.h
  4776. * src/DefaultPeerStorage.cc
  4777. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Removed TODO
  4779. * TODO
  4780. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4781. Added a section that explains how to pass argument to options that
  4782. takes optional arguments with its short form.
  4783. * doc/aria2c.1.txt
  4784. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Added -u for the short form of --max-upload-limit option.
  4786. * doc/aria2c.1.txt
  4787. * src/option_processing.cc
  4788. * src/usage_text.h
  4789. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Added -V for the short form of --check-integrity option.
  4791. Now the argument of --check-integrity option is optional:
  4792. if it is omitted, it is evaluated as true.
  4793. * doc/aria2c.1.txt
  4794. * src/option_processing.cc
  4795. * src/usage_text.h
  4796. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Made the default value of --ftp-pasv option set to true and it can take
  4798. true/false values.
  4799. * src/OptionHandlerFactory.cc
  4800. * src/option_processing.cc
  4801. * src/usage_text.h
  4802. * doc/aria2c.1.txt
  4803. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Given custom random number generator to std::random_shuffle.
  4805. * src/AnnounceList.cc
  4806. * src/BtLeecherStateChoke.cc
  4807. * src/BtSeederStateChoke.cc
  4808. * src/DefaultBtRequestFactory.cc
  4809. * src/MetalinkEntry.cc
  4810. * src/RarestPieceSelector.cc
  4811. * src/SimpleRandomizer.cc
  4812. * src/SimpleRandomizer.h
  4813. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Now the default value of --enable-direct-io is true.
  4815. * src/OptionHandlerFactory.cc
  4816. * doc/aria2c.1.txt
  4817. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4818. Erase peer before executing onReturningPeer and onErasingPeer
  4819. because choking algorithm called from onReturningPeer doesn't
  4820. like erasing peer in the active peer list.
  4821. * src/DefaultPeerStorage.cc
  4822. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Instead of creating special filename in createDownloadResult() if
  4824. inMemoryDownload() is true, now it is done in getFilePath().
  4825. * src/RequestGroup.cc
  4826. * test/RequestGroupTest.cc
  4827. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4829. processed in memory. This is the fix for previous comment out.
  4830. * src/MemoryBufferPreDownloadHandler.cc
  4831. * src/RequestGroup.cc
  4832. * src/RequestGroup.h
  4833. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Commented out the code which sets virtual directory path "[MEMORY]"
  4835. propagate directory to store to following RequestGroup.
  4836. * src/MemoryBufferPreDownloadHandler.cc
  4837. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Bump up version number to 1.0.0b
  4839. * configure.ac
  4840. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Added input_uris.txt to EXTRA_DIST
  4842. * test/Makefile.am
  4843. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4844. Removed PeerObject.h from Makefile.am
  4845. * src/Makefile.am
  4846. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Avoid slow seeding
  4848. * src/PeerInteractionCommand.cc
  4849. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Updated usage for -i option.
  4851. * src/usage_text.h (TEXT_INPUT_FILE)
  4852. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Added INPUT FILE section to man page.
  4854. Escaped fake URLs.
  4855. * doc/aria2c.1.txt
  4856. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. Fixed wrong note position for -o option.
  4858. * doc/aria2c.1.txt
  4859. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Fixed compile error without SSL/XML library.
  4861. * src/DefaultBtProgressInfoFile.cc
  4862. * src/DefaultBtProgressInfoFile.h
  4863. * src/FileMetalinkParserState.cc
  4864. * src/RequestGroup.h
  4865. * src/SocketCore.cc
  4866. * src/SocketCore.h
  4867. * src/VerificationMetalinkParserState.cc
  4868. * src/download_helper.h
  4869. * src/main.cc
  4870. * test/DefaultBtProgressInfoFileTest.cc
  4871. * test/DownloadHelperTest.cc
  4872. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4873. Rewritten URI handling functions. They are now provided as a testable
  4874. functions.
  4875. * src/Makefile.am
  4876. * src/RequestGroup.cc
  4877. * src/RequestGroup.h
  4878. * src/download_helper.cc
  4879. * src/download_helper.h
  4880. * src/main.cc
  4881. * test/DownloadHelperTest.cc
  4882. * test/Makefile.am
  4883. * test/input_uris.txt
  4884. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4885. Quickly terminate commands when ctrl-c is pressed.
  4886. * src/DownloadEngine.cc
  4887. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Quickly terminate idle commands when download finished.
  4889. * src/AbstractCommand.cc
  4890. * src/DownloadCommand.cc
  4891. * src/DownloadEngine.cc
  4892. * src/DownloadEngine.h
  4893. * src/SleepCommand.cc
  4894. * src/SleepCommand.h
  4895. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Added the ability to specify output filename and directory in input
  4897. file.
  4898. Additional parameters are added in the following line of URIs
  4899. with proceeding white space(s), 1 parameter in 1 line.
  4900. The parameter names are the same with the command-line option name
  4901. without proceeding "--". Not all the options are available here:
  4902. at the moment, 'dir' and 'out' options are avialable.
  4903. Please note that out option has no effect against Metalink or BitTorrent
  4904. downloads.
  4905. Example input file:
  4906. http://host/foo-1.1.tar.bz2
  4907. out=foo.tar.bz2
  4908. dir=/tmp/downloads
  4909. http://host/thundermonkey-2.0.tar.bz2
  4910. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4911. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4912. thundermonkey-2.0.tar.bz2 is saved as
  4913. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4914. * src/BtPostDownloadHandler.cc
  4915. * src/Metalink2RequestGroup.cc
  4916. * src/Metalink2RequestGroup.h
  4917. * src/MetalinkPostDownloadHandler.cc
  4918. * src/UriListParser.cc
  4919. * src/UriListParser.h
  4920. * src/main.cc
  4921. * test/Metalink2RequestGroupTest.cc
  4922. * test/UriListParserTest.cc
  4923. * test/filelist1.txt
  4924. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Fixed error when SSL library is not found.
  4926. * configure.ac
  4927. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Cross referenced among -s, -C and -j options.
  4929. Updated usage of -C and -s options.
  4930. * src/usage_text.h
  4931. * doc/aria2c.1.txt
  4932. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Fixed bad cast in 32bit platforms.
  4934. * test/DefaultPieceStorageTest.cc
  4935. (DefaultPieceStorageTest::testGetCompletedLength)
  4936. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Fixed unit test fails on 32bit platforms.
  4938. * test/CookieParserTest.cc
  4939. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Show an average download speed in Download results.
  4941. * src/BtFileAllocationEntry.cc
  4942. * src/DefaultPieceStorage.cc
  4943. * src/DownloadContext.cc
  4944. * src/DownloadContext.h
  4945. * src/DownloadResult.h
  4946. * src/RequestGroup.cc
  4947. * src/RequestGroupMan.cc
  4948. * src/StreamFileAllocationEntry.cc
  4949. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Fixed the bug that metalink file is not processed if Content-Type
  4951. field has a paramter.
  4952. * src/HttpResponse.cc
  4953. * src/HttpResponse.h
  4954. * test/HttpResponseTest.cc
  4955. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4956. Removed unused code.
  4957. * src/DefaultBtAnnounce.cc
  4958. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4959. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4960. the value larger than DefaultPieceStorage::getTotalLength() when
  4961. in flight pieces are involved.
  4962. * src/DefaultPieceStorage.cc
  4963. * test/DefaultPieceStorageTest.cc
  4964. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4965. Bump up version number to 1.0.0a.
  4966. * configure.ac
  4967. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4968. Updated configure.ac
  4969. * configure.ac
  4970. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4971. Added usege for proxy.
  4972. * doc/aria2c.1.txt
  4973. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Added usage for --ca-certificate, --certificate, --private-key and
  4975. --check-certificate options.
  4976. * doc/aria2c.1.txt
  4977. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. Updated man page
  4979. * doc/aria2c.1.txt
  4980. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Added --no-proxy option. It receives comman separated hostname or
  4982. domains to which proxy should not be used.
  4983. aria2 honors the environment variable no_proxy to override no-proxy
  4984. value in configuration file. The user can override the environment
  4985. variable no_proxy with --no-proxy command-line option.
  4986. * src/AbstractCommand.cc
  4987. * src/OptionHandlerFactory.cc
  4988. * src/option_processing.cc
  4989. * src/prefs.cc
  4990. * src/prefs.h
  4991. * src/usage_text.h
  4992. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4994. The CA certificates are specified in --ca-certificate option.
  4995. By default, the verification is disabled. Use --check-certificate
  4996. option to enable it.
  4997. * src/HttpRequestCommand.cc
  4998. * src/LibgnutlsTLSContext.cc
  4999. * src/LibgnutlsTLSContext.h
  5000. * src/LibsslTLSContext.cc
  5001. * src/LibsslTLSContext.h
  5002. * src/MultiUrlRequestInfo.cc
  5003. * src/OptionHandlerFactory.cc
  5004. * src/SocketCore.cc
  5005. * src/SocketCore.h
  5006. * src/a2functional.h
  5007. * src/message.h
  5008. * src/option_processing.cc
  5009. * src/prefs.cc
  5010. * src/prefs.h
  5011. * src/usage_text.h
  5012. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Added client certificate authentication for SSL/TLS.
  5014. Currently a private key must be decrypted for use with aria2.
  5015. If a user accidentally gives encrypted file to aria2 then following
  5016. thing happens:
  5017. If encrypted private key is given to aria2, it behaves differently
  5018. depending on the ssl library it uses. If aria2 built with openssl then
  5019. openssl prompts the user for password. If aria2 build with gnutls then
  5020. aria2 exists with error at start up.
  5021. * src/DownloadEngineFactory.cc
  5022. * src/MultiUrlRequestInfo.cc
  5023. * src/OptionHandlerFactory.cc
  5024. * src/option_processing.cc
  5025. * src/prefs.cc
  5026. * src/prefs.h
  5027. * src/usage_text.h
  5028. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Introduced TLSContext that holds TLS related data that can be shared
  5030. with multiple SSL connections.
  5031. * src/DownloadEngineFactory.cc
  5032. * src/LibgnutlsTLSContext.cc
  5033. * src/LibgnutlsTLSContext.h
  5034. * src/LibsslTLSContext.cc
  5035. * src/LibsslTLSContext.h
  5036. * src/Makefile.am
  5037. * src/SocketCore.cc
  5038. * src/SocketCore.h
  5039. * src/TLSContext.h
  5040. * src/message.h
  5041. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Fixed the bug that the DiskWriter of the first FileEntry whose
  5043. `needsFileAllocation' property is false is not created
  5044. even if it shares a piece with next FileEntry which `requested' property
  5045. is true.
  5046. Fixed the bug that zero-length file is not created if pre file
  5047. allocation is not done.
  5048. * src/MultiDiskAdaptor.cc
  5049. * src/MultiDiskAdaptor.h
  5050. * test/MultiDiskAdaptorTest.cc
  5051. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Added the ability to pool proxy connection.
  5053. The conneciton in FTP with proxy-method=GET is not pooled.
  5054. Proxy-Connection header will not be sent when sending CONNECT method.
  5055. * src/DownloadEngine.cc
  5056. * src/DownloadEngine.h
  5057. * src/FtpFinishDownloadCommand.cc
  5058. * src/FtpInitiateConnectionCommand.cc
  5059. * src/FtpNegotiationCommand.cc
  5060. * src/HttpDownloadCommand.cc
  5061. * src/HttpInitiateConnectionCommand.cc
  5062. * src/HttpRequest.cc
  5063. * src/HttpRequest.h
  5064. * src/HttpResponse.cc
  5065. * src/HttpSkipResponseCommand.cc
  5066. * test/HttpRequestTest.cc
  5067. * test/HttpResponseTest.cc
  5068. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Handle date before epoch.
  5070. To create *bad* Time object, call Time::null().
  5071. * src/CookieParser.cc
  5072. * src/FtpConnection.cc
  5073. * src/FtpConnection.h
  5074. * src/FtpNegotiationCommand.cc
  5075. * src/RequestGroup.cc
  5076. * src/TimeA2.cc
  5077. * src/TimeA2.h
  5078. * test/CookieParserTest.cc
  5079. * test/FtpConnectionTest.cc
  5080. * test/TimeTest.cc
  5081. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5082. Added support for following envrionment variables: http_proxy,
  5083. https_proxy, ftp_proxy and all_proxy.
  5084. Each variable is equivalent to the aria2 option whose name is the
  5085. variable name with '_' replaced with '-'.
  5086. They overrides options specified in aria2.conf file.
  5087. The envrionment variables can be overrode using command-line option.
  5088. * src/option_processing.cc
  5089. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Renamed --http-proxy-method as --proxy-method.
  5091. * src/AbstractCommand.cc
  5092. * src/FtpInitiateConnectionCommand.cc
  5093. * src/HttpInitiateConnectionCommand.cc
  5094. * src/OptionHandlerFactory.cc
  5095. * src/option_processing.cc
  5096. * src/prefs.cc
  5097. * src/prefs.h
  5098. * src/usage_text.h
  5099. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5101. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5102. Above 3 options and --http-proxy option can handle proxy in URL format
  5103. like: http://user:passwd@host:port.
  5104. If a proxy requires user/password, they must be specified in a URL.
  5105. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5106. instead.
  5107. * src/AbstractCommand.cc
  5108. * src/AbstractCommand.h
  5109. * src/AbstractProxyRequestCommand.cc
  5110. * src/AbstractProxyRequestCommand.h
  5111. * src/AuthConfigFactory.cc
  5112. * src/AuthConfigFactory.h
  5113. * src/FtpFinishDownloadCommand.cc
  5114. * src/FtpInitiateConnectionCommand.cc
  5115. * src/FtpInitiateConnectionCommand.h
  5116. * src/FtpNegotiationCommand.cc
  5117. * src/FtpTunnelRequestCommand.cc
  5118. * src/FtpTunnelRequestCommand.h
  5119. * src/HttpDownloadCommand.cc
  5120. * src/HttpInitiateConnectionCommand.cc
  5121. * src/HttpInitiateConnectionCommand.h
  5122. * src/HttpProxyRequestCommand.cc
  5123. * src/HttpProxyRequestCommand.h
  5124. * src/HttpRequest.cc
  5125. * src/HttpRequest.h
  5126. * src/HttpRequestCommand.cc
  5127. * src/HttpRequestCommand.h
  5128. * src/HttpSkipResponseCommand.cc
  5129. * src/InitiateConnectionCommand.cc
  5130. * src/InitiateConnectionCommand.h
  5131. * src/OptionHandlerFactory.cc
  5132. * src/OptionHandlerImpl.h
  5133. * src/Request.cc
  5134. * src/option_processing.cc
  5135. * src/prefs.cc
  5136. * src/prefs.h
  5137. * src/usage_text.h
  5138. * test/AuthConfigFactoryTest.cc
  5139. * test/HttpRequestTest.cc
  5140. * test/OptionHandlerTest.cc
  5141. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Execute choking algorithm when unchoked and interested peer is
  5143. disconected.
  5144. * src/DefaultPeerStorage.cc
  5145. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5146. Added testcase for BtNotInterestedMessage from unchoked peer.
  5147. * test/BtNotInterestedMessageTest.cc
  5148. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5149. Execute choking algorithm when BtInterestedMessage arrives from
  5150. unchoked peer.
  5151. * src/BtInterestedMessage.cc
  5152. * src/BtInterestedMessage.h
  5153. * src/DefaultBtMessageFactory.cc
  5154. * test/BtInterestedMessageTest.cc
  5155. * test/MockPeerStorage.h
  5156. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. AuthConfigFactory is now part of DownloadEngine.
  5158. * src/AbstractProxyRequestCommand.cc
  5159. * src/AuthConfigFactory.h
  5160. * src/DownloadEngine.cc
  5161. * src/DownloadEngine.h
  5162. * src/FtpConnection.cc
  5163. * src/FtpConnection.h
  5164. * src/FtpNegotiationCommand.cc
  5165. * src/HttpConnection.cc
  5166. * src/HttpRequest.cc
  5167. * src/HttpRequest.h
  5168. * src/HttpRequestCommand.cc
  5169. * src/HttpResponse.cc
  5170. * src/HttpResponseCommand.cc
  5171. * src/HttpSkipResponseCommand.cc
  5172. * src/MultiUrlRequestInfo.cc
  5173. * src/main.cc
  5174. * test/FtpConnectionTest.cc
  5175. * test/HttpRequestTest.cc
  5176. * test/HttpResponseTest.cc
  5177. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5178. Corrected catched exception type.
  5179. * src/ServerStatMan.cc
  5180. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. DNSCache is now part of DownloadEngine.
  5182. * src/DNSCache.h
  5183. * src/DownloadEngine.cc
  5184. * src/DownloadEngine.h
  5185. * src/InitiateConnectionCommand.cc
  5186. * src/MultiUrlRequestInfo.cc
  5187. * test/Makefile.am
  5188. * test/Makefile.in
  5189. * test/SimpleDNSCacheTest.cc
  5190. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5192. DownloadEngine.
  5193. * src/ActivePeerConnectionCommand.cc
  5194. * src/BtSetup.cc
  5195. * src/CUIDCounter.h
  5196. * src/DHTSetup.cc
  5197. * src/DownloadCommand.cc
  5198. * src/DownloadEngine.cc
  5199. * src/DownloadEngine.h
  5200. * src/DownloadEngineFactory.cc
  5201. * src/FileAllocationDispatcherCommand.cc
  5202. * src/InitiatorMSEHandshakeCommand.cc
  5203. * src/PeerInitiateConnectionCommand.cc
  5204. * src/PeerInteractionCommand.cc
  5205. * src/PeerListenCommand.cc
  5206. * src/RequestGroup.cc
  5207. * src/StreamFileAllocationEntry.cc
  5208. * src/TrackerWatcherCommand.cc
  5209. * src/main.cc
  5210. * test/RequestGroupManTest.cc
  5211. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5212. Implemented commented code in BtSeederStateChoke
  5213. * src/BtSeederStateChoke.cc
  5214. * src/Peer.cc
  5215. * src/Peer.h
  5216. * src/PeerInteractionCommand.cc
  5217. * src/PeerSessionResource.cc
  5218. * src/PeerSessionResource.h
  5219. * test/MockBtMessageDispatcher.h
  5220. * test/PeerSessionResourceTest.cc
  5221. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5223. its object.
  5224. * src/AbstractBtMessage.cc
  5225. * src/ActivePeerConnectionCommand.cc
  5226. * src/ActivePeerConnectionCommand.h
  5227. * src/BtContextAwareCommand.cc
  5228. * src/BtContextAwareCommand.h
  5229. * src/BtExtendedMessage.cc
  5230. * src/BtExtendedMessage.h
  5231. * src/BtInterestedMessage.cc
  5232. * src/BtInterestedMessage.h
  5233. * src/BtNotInterestedMessage.cc
  5234. * src/BtNotInterestedMessage.h
  5235. * src/BtRegistry.cc
  5236. * src/BtRegistry.h
  5237. * src/BtSeederStateChoke.cc
  5238. * src/BtSetup.cc
  5239. * src/DHTGetPeersCommand.cc
  5240. * src/DHTGetPeersCommand.h
  5241. * src/DHTPeerAnnounceEntry.cc
  5242. * src/DHTPeerAnnounceEntry.h
  5243. * src/DHTPeerAnnounceStorage.cc
  5244. * src/DHTPeerAnnounceStorage.h
  5245. * src/DHTPeerLookupTask.cc
  5246. * src/DHTPeerLookupTask.h
  5247. * src/DHTSetup.cc
  5248. * src/DHTSetup.h
  5249. * src/DHTTaskFactory.h
  5250. * src/DHTTaskFactoryImpl.cc
  5251. * src/DHTTaskFactoryImpl.h
  5252. * src/DefaultBtAnnounce.cc
  5253. * src/DefaultBtInteractive.cc
  5254. * src/DefaultBtInteractive.h
  5255. * src/DefaultBtMessageDispatcher.cc
  5256. * src/DefaultBtMessageDispatcher.h
  5257. * src/DefaultBtMessageFactory.cc
  5258. * src/DefaultBtMessageFactory.h
  5259. * src/DefaultBtMessageReceiver.cc
  5260. * src/DefaultBtProgressInfoFile.cc
  5261. * src/DefaultBtProgressInfoFile.h
  5262. * src/DefaultBtRequestFactory.cc
  5263. * src/DefaultBtRequestFactory.h
  5264. * src/DefaultExtensionMessageFactory.cc
  5265. * src/DefaultExtensionMessageFactory.h
  5266. * src/DefaultPeerStorage.cc
  5267. * src/DefaultPeerStorage.h
  5268. * src/DownloadEngine.cc
  5269. * src/DownloadEngine.h
  5270. * src/InitiatorMSEHandshakeCommand.cc
  5271. * src/InitiatorMSEHandshakeCommand.h
  5272. * src/MSEHandshake.cc
  5273. * src/MSEHandshake.h
  5274. * src/Makefile.am
  5275. * src/Makefile.in
  5276. * src/PeerChokeCommand.cc
  5277. * src/PeerChokeCommand.h
  5278. * src/PeerInitiateConnectionCommand.cc
  5279. * src/PeerInitiateConnectionCommand.h
  5280. * src/PeerInteractionCommand.cc
  5281. * src/PeerInteractionCommand.h
  5282. * src/PeerObject.h
  5283. * src/PeerReceiveHandshakeCommand.cc
  5284. * src/PeerReceiveHandshakeCommand.h
  5285. * src/ReceiverMSEHandshakeCommand.cc
  5286. * src/RequestGroup.cc
  5287. * src/RequestGroup.h
  5288. * src/RequestGroupMan.cc
  5289. * src/RequestGroupMan.h
  5290. * src/SeedCheckCommand.cc
  5291. * src/SeedCheckCommand.h
  5292. * src/ShareRatioSeedCriteria.h
  5293. * src/SimpleBtMessage.cc
  5294. * src/TrackerWatcherCommand.cc
  5295. * src/TrackerWatcherCommand.h
  5296. * src/UTPexExtensionMessage.cc
  5297. * src/UTPexExtensionMessage.h
  5298. * test/BtCancelMessageTest.cc
  5299. * test/BtChokeMessageTest.cc
  5300. * test/BtExtendedMessageTest.cc
  5301. * test/BtInterestedMessageTest.cc
  5302. * test/BtNotInterestedMessageTest.cc
  5303. * test/BtPieceMessageTest.cc
  5304. * test/BtPortMessageTest.cc
  5305. * test/BtRegistryTest.cc
  5306. * test/BtRejectMessageTest.cc
  5307. * test/BtRequestMessageTest.cc
  5308. * test/DHTPeerAnnounceEntryTest.cc
  5309. * test/DHTPeerAnnounceStorageTest.cc
  5310. * test/DefaultBtMessageDispatcherTest.cc
  5311. * test/DefaultBtMessageFactoryTest.cc
  5312. * test/DefaultBtProgressInfoFileTest.cc
  5313. * test/DefaultBtRequestFactoryTest.cc
  5314. * test/DefaultExtensionMessageFactoryTest.cc
  5315. * test/MSEHandshakeTest.cc
  5316. * test/MockDHTTaskFactory.h
  5317. * test/ShareRatioSeedCriteriaTest.cc
  5318. * test/UTPexExtensionMessageTest.cc
  5319. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Fixed compiler warning.
  5321. * test/UtilTest.cc
  5322. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Treat Cookie object as session cookie if expiry = 0 is given.
  5324. With this change, you can specify session scoped cookies in an external
  5325. file setting expiry value to 0.
  5326. * src/Cookie.cc
  5327. * src/Cookie.h
  5328. * test/CookieParserTest.cc
  5329. * test/CookieStorageTest.cc
  5330. * test/CookieTest.cc
  5331. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Changed signature of DHTMessageFactory::createResponseMessage().
  5333. Removed unused validateIDMatch.
  5334. * src/DHTMessageFactory.h
  5335. * src/DHTMessageFactoryImpl.cc
  5336. * src/DHTMessageFactoryImpl.h
  5337. * src/DHTMessageTracker.cc
  5338. * test/DHTMessageFactoryImplTest.cc
  5339. * test/MockDHTMessageFactory.h
  5340. Dropped DHT message coming from same ID of localhost.
  5341. * src/DHTMessageReceiver.cc
  5342. Rejected adding node whose ID is the same as localhost's.
  5343. * src/DHTRoutingTable.cc
  5344. * test/BtPortMessageTest.cc
  5345. * test/DHTRoutingTableTest.cc
  5346. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Pool connection when redirection occurs with Content-Length = 0.
  5348. * src/HttpSkipResponseCommand.cc
  5349. * src/HttpSkipResponseCommand.h
  5350. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Fixed the bug that causes time out when redirection occurs with
  5352. content-length 0.
  5353. * src/HttpResponseCommand.cc
  5354. * src/HttpSkipResponseCommand.cc
  5355. * src/HttpSkipResponseCommand.h
  5356. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Now each status legends is shown only when it appears in Download
  5358. Result. If Download Result has no item, then status legend will not
  5359. be printed.
  5360. * src/RequestGroupMan.cc
  5361. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Removed duplicate creation of OptionHandlers.
  5363. * src/option_processing.cc
  5364. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Fixed the bug that causes segmentation fault when accessing files which
  5366. don't exist or are not included in --select-file option while
  5367. validating chunk checksum.
  5368. * src/MultiDiskAdaptor.cc
  5369. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Fixed compiler warning.
  5371. * test/UtilTest.cc
  5372. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5374. * src/IteratableChecksumValidator.cc
  5375. * src/IteratableChunkChecksumValidator.cc
  5376. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. * Release 0.16.2
  5378. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Added Serbian translation. Updated Ukrainian translation.
  5380. Thanks to all translators.
  5381. * po/sr.po
  5382. * po/uk.po
  5383. * po/LINGUAS
  5384. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Bump up version number to 0.16.2
  5386. * configure.ac
  5387. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Added length equality test to operator== to drop a piece message
  5389. whose length does not match to the requested one.
  5390. * src/RequestSlot.cc
  5391. * test/DefaultBtMessageDispatcherTest.cc
  5392. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5393. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5394. recieved.
  5395. In this fix, if a request larger than 16KiB length is received, aria2
  5396. disconnects the peer.
  5397. * src/BtConstants.h
  5398. * src/PeerMessageUtil.cc
  5399. * src/PeerMessageUtil.h
  5400. * test/BtRequestMessageTest.cc
  5401. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. * Release 0.16.1
  5403. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5405. * doc/aria2c.1.txt
  5406. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5407. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5408. Updated French, Simplified Chinese and Japanese translations.
  5409. Thanks to all translators.
  5410. en@quot and en@boldquot are also added.
  5411. * po/LINGUAS
  5412. * po/fr.po
  5413. * po/ja.po
  5414. * po/uk.po
  5415. * po/vi.po
  5416. * po/zh_CN.po
  5417. * po/zh_TW.po
  5418. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5419. Bump up version number to 0.16.1.
  5420. * configure.ac
  5421. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. Updated README.
  5423. * README
  5424. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5426. not to replace '--' with em dash character.
  5427. * doc/aria2c.1.txt
  5428. * doc/makeman
  5429. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5430. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5431. every SEC seconds.
  5432. * src/DownloadEngineFactory.cc
  5433. * src/OptionHandlerFactory.cc
  5434. * src/option_processing.cc
  5435. * src/usage_text.h
  5436. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Fixed compile warning on linux-amd64
  5438. * src/FtpConnection.cc
  5439. * src/IteratableChunkChecksumValidator.cc
  5440. * src/MultiDiskAdaptor.cc
  5441. Fixed the bug that unit test fails on linux-amd64
  5442. * test/UtilTest.cc
  5443. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Added --dht-file-path option to change the path to dht.dat, which is a
  5445. serialized DHT routing table.
  5446. * src/OptionHandlerFactory.cc
  5447. * src/option_processing.cc
  5448. * src/usage_text.h
  5449. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5450. Fixed possible underflow.
  5451. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5452. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Fixed the bug that last character in URI is not encoded.
  5454. * src/Request.cc
  5455. * test/RequestTest.cc
  5456. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Fixed the bug that referer header field contains fragment.
  5458. Now Request class removes fragment part of URI and encodes it
  5459. in Request::setUri() and setReferer().
  5460. * src/Request.h
  5461. * src/Request.cc
  5462. * test/RequestTest.cc
  5463. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Added missing m4 macros.
  5465. * m4/cppunit.m4
  5466. * m4/libgcrypt.m4
  5467. * m4/libgnutls-extra.m4
  5468. * m4/libgnutls.m4
  5469. * m4/libxml2.m4
  5470. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Fixed compile error with gcc-4.4(snapshot)
  5472. * src/File.cc
  5473. * src/FtpConnection.cc
  5474. * src/OptionHandlerImpl.h
  5475. * src/Util.cc
  5476. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Removed assert()
  5478. * src/SocketBuffer.cc (SocketBuffer::send)
  5479. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Changed the type of _numNewConnection to unsigned int.
  5481. * src/ActivePeerConnectionCommand.cc
  5482. * src/ActivePeerConnectionCommand.h
  5483. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5484. * Release 0.16.0
  5485. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Updated doc
  5487. * README
  5488. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5490. translations. Thanks to all translators.
  5491. * po/bg.po
  5492. * po/de.po
  5493. * po/fr.po
  5494. * po/ja.po
  5495. * po/zh_CN.po
  5496. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Bump up version number to 0.16.0.
  5498. * configure.ac
  5499. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5501. int32_t.
  5502. Changed the type of count to int32_t.
  5503. * src/Metalink2RequestGroup.cc
  5504. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Added test for Time::elapsed(time_t).
  5506. * test/TimeTest.cc
  5507. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5509. Util::difftv() should be used instead.
  5510. * src/TimeA2.cc
  5511. * src/TimeA2.h
  5512. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Made socket for dht connections non-blocking
  5514. * src/DHTAbstractMessage.cc
  5515. * src/DHTAbstractMessage.h
  5516. * src/DHTConnection.h
  5517. * src/DHTConnectionImpl.cc
  5518. * src/DHTConnectionImpl.h
  5519. * src/DHTMessage.h
  5520. * src/DHTMessageDispatcherImpl.cc
  5521. * src/DHTMessageDispatcherImpl.h
  5522. * src/DHTUnknownMessage.cc
  5523. * src/DHTUnknownMessage.h
  5524. * src/SocketCore.cc
  5525. * src/SocketCore.h
  5526. * test/MockDHTMessage.h
  5527. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Changed the type of offset to int.
  5529. * src/ParameterizedStringParser.cc
  5530. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Made getAsInt() return int32_t
  5532. * src/Option.h
  5533. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5535. build.
  5536. * configure.ac
  5537. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Use sqlite3_open if sqlite3_open_v2 is not available.
  5539. * src/Sqlite3MozCookieParser.cc
  5540. * src/Sqlite3MozCookieParser.h
  5541. * m4/sqlite3.m4
  5542. * test/Sqlite3MozCookieParserTest.cc
  5543. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5545. * src/BtPieceMessage.cc
  5546. * src/DHTPeerAnnounceStorage.cc
  5547. * src/DefaultPieceStorage.cc
  5548. * src/DownloadCommand.cc
  5549. * src/DownloadEngine.cc
  5550. * src/FtpConnection.cc
  5551. * src/PeerConnection.cc
  5552. * src/PeerMessageUtil.cc
  5553. * src/RequestGroup.cc
  5554. * src/RequestGroupMan.cc
  5555. * src/SimpleBtMessage.cc
  5556. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5558. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5559. * src/AbstractDiskWriter.cc
  5560. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Don't set Request::supportsPersistentConnection() in HttpConnection
  5562. since this code is also used in AbstractProxyResponseCommand.
  5563. Moved those code to HttpResponse.
  5564. * src/HttpResponse.cc
  5565. * src/HttpResponse.h
  5566. * src/HttpConnection.cc
  5567. * src/HttpConnection.h
  5568. * src/HttpResponseCommand.cc
  5569. * test/HttpResponseTest.cc
  5570. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5572. The configuration is minimum: no torrent, no metalink, so there may be
  5573. other compile error on their code.
  5574. * src/a2netcompat.h
  5575. * src/File.cc
  5576. * src/File.h
  5577. * src/SocketCore.cc
  5578. * src/SocketCore.h
  5579. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5580. Made a socket of incoming peer non-blocking.
  5581. * src/PeerListenCommand.cc
  5582. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5584. whole message data is not sent in one send() call.
  5585. * src/BtPieceMessage.cc
  5586. * src/BtPieceMessage.h
  5587. * src/PeerConnection.cc
  5588. * src/PeerConnection.h
  5589. * src/SimpleBtMessage.cc
  5590. * src/SimpleBtMessage.h
  5591. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Fixed the bug that aria2 downloads faster than max-download-limit when
  5593. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5594. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5595. , instead of sum of them.
  5596. * src/ActivePeerConnectionCommand.cc
  5597. * src/DefaultBtInteractive.cc
  5598. * src/DownloadCommand.cc
  5599. * src/PeerInteractionCommand.cc
  5600. * src/PeerReceiveHandshakeCommand.cc
  5601. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Fixed the bug that HTTPS download fails.
  5603. * src/AbstractCommand.cc
  5604. * src/AbstractCommand.h
  5605. * src/DownloadCommand.cc
  5606. * src/FtpConnection.cc
  5607. * src/HttpConnection.cc
  5608. * src/HttpRequestCommand.cc
  5609. * src/HttpResponseCommand.cc
  5610. * src/HttpSkipResponseCommand.cc
  5611. * src/MSEHandshake.cc
  5612. * src/PeerConnection.cc
  5613. * src/SocketCore.cc
  5614. * src/SocketCore.h
  5615. Fixed the bug that aria2 doesn't download whole content body and cannot
  5616. reuse connection if chunked transfer encoding and gzip content encoding
  5617. are set.
  5618. * src/DownloadCommand.cc
  5619. * src/HttpSkipResponseCommand.cc
  5620. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Updated man page.
  5622. * doc/aria2c.1.txt
  5623. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. When error occurred while aria2 was parsing an .aria2.conf file, print
  5625. the usage of the option that caused error.
  5626. * src/option_processing.cc
  5627. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5628. Fixed compile error on OptionHandlerException
  5629. * src/Makefile.am
  5630. * src/OptionHandlerException.cc
  5631. * src/OptionHandlerException.h
  5632. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Moved message of the error to OptionHandlerException.h
  5634. * src/NameMatchOptionHandler.h
  5635. * src/OptionHandlerException.h
  5636. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. When error occurs while aria2 is parsing an command-line option, print
  5638. the usage of the option.
  5639. * src/Makefile.am
  5640. * src/NameMatchOptionHandler.h
  5641. * src/OptionHandlerException.h
  5642. * src/option_processing.cc
  5643. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Reverted previous change.
  5645. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5646. username is not in URI.
  5647. * src/HttpRequest.cc
  5648. * src/Request.cc
  5649. * test/HttpRequestTest.cc
  5650. * test/RequestTest.cc
  5651. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. Now colon is required for username and password in FTP URL, like:
  5653. ftp://username:password@host.
  5654. If colon is not there, aria2 don't parse it as a username. For example,
  5655. aria2 don't retrieve username from ftp://username@host.
  5656. This fix was made in order to login FTP server via non-transparent ftp
  5657. proxy.
  5658. * src/Request.cc
  5659. * test/RequestTest.cc
  5660. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Use netrc for HTTP.
  5662. Now FTP user/password is sent in Authorization header when
  5663. --ftp-via-http-proxy=get is given.
  5664. * src/AuthConfigFactory.cc
  5665. * src/HttpRequest.cc
  5666. * src/HttpRequest.h
  5667. * src/NetrcAuthResolver.cc
  5668. * src/NetrcAuthResolver.h
  5669. * src/OptionHandlerFactory.cc
  5670. * src/option_processing.cc
  5671. * src/prefs.cc
  5672. * src/prefs.h
  5673. * test/AuthConfigFactoryTest.cc
  5674. * test/HttpRequestTest.cc
  5675. * test/NetrcAuthResolverTest.cc
  5676. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Issue PWD command first and get working directory and use it as a prefix
  5678. for CWD command.
  5679. * src/DownloadEngine.cc
  5680. * src/DownloadEngine.h
  5681. * src/FtpConnection.cc
  5682. * src/FtpConnection.h
  5683. * src/FtpFinishDownloadCommand.cc
  5684. * src/FtpInitiateConnectionCommand.cc
  5685. * src/FtpNegotiationCommand.cc
  5686. * src/FtpNegotiationCommand.h
  5687. * test/FtpConnectionTest.cc
  5688. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Removed default user/pass for FTP user/pass, since it should not have
  5690. precedence over netrc configuration by default.
  5691. * src/OptionHandlerFactory.cc
  5692. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Added debug log for socket event.
  5694. * src/AbstractCommand.cc
  5695. * src/PeerAbstractCommand.cc
  5696. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Log microseconds.
  5698. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5699. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Replaced HelpItem.cc with OptionHandler.cc.
  5701. * po/POTFILES.in
  5702. Updated po files with 'make update-po'
  5703. * po/aria2c.pot
  5704. * po/*.po
  5705. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Removed possible values from the text.
  5707. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5708. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Removed unused preferences:
  5710. PREF_NO_PREALLOCATION
  5711. PREF_STDOUT_LOG
  5712. PREF_TRACKER_MAX_TRIES
  5713. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5714. PREF_MIN_SEGMENT_SIZE
  5715. * src/option_processing.cc
  5716. * src/prefs.cc
  5717. * src/prefs.h
  5718. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Integrated HelpItem into OptionParser to ease the workload for adding
  5720. new options. Removed default value from usage text.
  5721. * src/HelpItem.cc: Removed.
  5722. * src/HelpItem.h: Removed.
  5723. * src/HelpItemFactory.cc: Removed.
  5724. * src/HelpItemFactory.h: Removed.
  5725. * src/Makefile.am
  5726. * src/Makefile.in
  5727. * src/NameMatchOptionHandler.h
  5728. * src/OptionHandler.cc
  5729. * src/OptionHandler.h
  5730. * src/OptionHandlerFactory.cc
  5731. * src/OptionHandlerImpl.h
  5732. * src/OptionParser.cc
  5733. * src/OptionParser.h
  5734. * src/TagContainer.cc: Removed.
  5735. * src/TagContainer.h: Removed.
  5736. * src/TaggedItem.cc: Removed.
  5737. * src/TaggedItem.h: Removed.
  5738. * src/main.cc
  5739. * src/option_processing.cc
  5740. * src/usage_text.h
  5741. * src/version_usage.cc
  5742. * test/HelpItemTest.cc: Removed.
  5743. * test/Makefile.am
  5744. * test/Makefile.in
  5745. * test/OptionHandlerTest.cc
  5746. * test/OptionParserTest.cc
  5747. * test/TagContainerTest.cc: Removed.
  5748. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Moved `TransferStat stat = ...' to inside the `if' clause.
  5750. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5751. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5752. Fixed the bug that a block in a piece is requested when same block is
  5753. already requested to the same peer in end game mode.
  5754. * src/BtRequestFactory.h
  5755. * src/DefaultBtInteractive.cc
  5756. * src/DefaultBtRequestFactory.cc
  5757. * src/DefaultBtRequestFactory.h
  5758. * src/DefaultPieceStorage.cc
  5759. * src/DefaultPieceStorage.h
  5760. * src/PieceStorage.h
  5761. * src/UnknownLengthPieceStorage.cc
  5762. * src/UnknownLengthPieceStorage.h
  5763. * test/DefaultBtRequestFactoryTest.cc
  5764. * test/DefaultPieceStorageTest.cc
  5765. * test/MockBtRequestFactory.h
  5766. * test/MockPieceStorage.h
  5767. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Removed _uploadLength and _downloadLength from PeerSessionResource
  5769. and use PeerStat::_sessionUploadLength and
  5770. PeerStat::_sessionDownloadLength.
  5771. * src/PeerSessionResource.cc
  5772. * src/PeerSessionResource.h
  5773. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Fixed the bug that prefixLength of split bucket which doesn't include
  5775. local node ID is incremented.
  5776. * src/DHTBucket.cc
  5777. * src/DHTBucket.h
  5778. * test/DHTBucketTest.cc
  5779. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Added cookies.sqlite to EXTRA_DIST
  5781. * test/Makefile.am
  5782. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Added Turkish translation. Updated French, German, Russian and
  5784. Simplified Chinese translations. Thanks to all translators.
  5785. * po/LINGUAS
  5786. * po/de.po
  5787. * po/fr.po
  5788. * po/ru.po
  5789. * po/tr.po
  5790. * po/zh_CN.po
  5791. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Added deliminating text to the beginning of the log so that one can find
  5793. where the log starts easily.
  5794. * src/main.cc
  5795. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5797. to fix compile error when async DNS is not enabled by configuration.
  5798. * src/AbstractCommand.cc
  5799. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. If establishing conneciton to a server is failed, then mark error on
  5801. its ServerStat.
  5802. Added the cause of error to log when error event occurred.
  5803. Moved message string to message.h for translation.
  5804. * src/AbstractCommand.cc
  5805. * src/AbstractCommand.h
  5806. * src/FtpNegotiationCommand.cc
  5807. * src/HttpRequestCommand.cc
  5808. * src/PeerAbstractCommand.cc
  5809. * src/message.h
  5810. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Added the function to get error message from socket.
  5812. * src/SocketCore.cc
  5813. * src/SocketCore.h
  5814. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5815. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5816. * src/RequestGroupMan.cc
  5817. * src/RequestGroupMan.h
  5818. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. If error event is received in epoll, then abort download immediately.
  5820. * src/AbstractCommand.cc
  5821. * src/Command.cc
  5822. * src/Command.h
  5823. * src/DownloadEngine.cc
  5824. * src/PeerAbstractCommand.cc
  5825. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Added usage message for --uri-selector, --server-stat-of,
  5827. --server-stat-in, --server-stat-timeout options.
  5828. * src/HelpItemFactory.cc
  5829. * src/usage_text.h
  5830. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Added upper limit of FTP response buffer. The current implementation
  5832. uses 4096bytes as a limit.
  5833. * src/FtpConnection.cc
  5834. * src/FtpConnection.h
  5835. * test/FtpConnectionTest.cc
  5836. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. Use non-blocking socket for TCP communication to avoid possible
  5838. blocking due to buffer full.
  5839. * src/AbstractProxyRequestCommand.cc
  5840. * src/FtpConnection.cc
  5841. * src/FtpConnection.h
  5842. * src/FtpNegotiationCommand.cc
  5843. * src/FtpNegotiationCommand.h
  5844. * src/HttpConnection.cc
  5845. * src/HttpConnection.h
  5846. * src/HttpRequestCommand.cc
  5847. * src/InitiatorMSEHandshakeCommand.cc
  5848. * src/InitiatorMSEHandshakeCommand.h
  5849. * src/MSEHandshake.cc
  5850. * src/MSEHandshake.h
  5851. * src/Makefile.am
  5852. * src/PeerConnection.cc
  5853. * src/PeerConnection.h
  5854. * src/PeerInteractionCommand.cc
  5855. * src/PeerListenCommand.cc
  5856. * src/ReceiverMSEHandshakeCommand.cc
  5857. * src/ReceiverMSEHandshakeCommand.h
  5858. * src/SocketBuffer.cc
  5859. * src/SocketBuffer.h
  5860. * src/SocketCore.cc
  5861. * src/SocketCore.h
  5862. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Call setStatusRealtime() in constructor.
  5864. * src/RealtimeCommand.cc
  5865. * src/RealtimeCommand.h
  5866. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5867. Call Download::setNoWait(true) to execute newly created command without
  5868. a pause.
  5869. * src/AbstractCommand.cc
  5870. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5872. found' error from HTTP/FTP server NUM times without getting single
  5873. bytes of data, then force the download to fail.
  5874. Basically aria2 tris all URIs available. So if long list of URIs are
  5875. specified in Metalink, then aria2 will take a long time to fail
  5876. eventually if all URIs are outdated. This option eases this situation
  5877. to limit the number of servers to try.
  5878. * src/FtpNegotiationCommand.cc
  5879. * src/HelpItemFactory.cc
  5880. * src/HttpResponseCommand.cc
  5881. * src/OptionHandlerFactory.cc
  5882. * src/PeerStat.h
  5883. * src/RequestGroup.cc
  5884. * src/RequestGroup.h
  5885. * src/SegmentMan.cc
  5886. * src/SegmentMan.h
  5887. * src/option_processing.cc
  5888. * src/prefs.cc
  5889. * src/prefs.h
  5890. * src/usage_text.h
  5891. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5892. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5893. response even if more than one response is in it.
  5894. * src/FtpConnection.cc
  5895. * src/FtpConnection.h
  5896. * test/FtpConnectionTest.cc
  5897. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Merged from stable-0.15
  5899. * m4/libcares.m4
  5900. Use pkg-config
  5901. * m4/sqlite3.m4
  5902. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. Removed unnecessary if statement.
  5904. * src/DefaultPieceStorage.cc (initPieceStorage)
  5905. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Added --connect-timeout option to specify connect timeout in seconds.
  5907. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5908. connecting to BitTorrent peer is not controlled by this option.
  5909. * src/AbstractProxyRequestCommand.cc
  5910. * src/FtpNegotiationCommand.cc
  5911. * src/HelpItemFactory.cc
  5912. * src/HttpRequestCommand.cc
  5913. * src/OptionHandlerFactory.cc
  5914. * src/option_processing.cc
  5915. * src/prefs.cc
  5916. * src/prefs.h
  5917. * src/usage_text.h
  5918. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Added help message for -R option.
  5920. * src/HelpItemFactory.cc
  5921. * src/usage_text.h
  5922. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Added the message that the time is in local time zone.
  5924. * src/RequestGroup.cc
  5925. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Implemented the ability to get timestamp from remote FTP server using
  5927. MDTM command described in RFC3659.
  5928. * src/FtpConnection.cc
  5929. * src/FtpConnection.h
  5930. * src/FtpNegotiationCommand.cc
  5931. * src/FtpNegotiationCommand.h
  5932. * test/FtpConnectionTest.cc
  5933. * test/Makefile.am
  5934. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Implemented the ability to get timestamp from remote HTTP server and
  5936. apply it to local file. To enable this feature, --remote-time option
  5937. is added. No usage text has been written yet.
  5938. If several servers returns difference timestamp, then aria2 uses latest
  5939. one.
  5940. * src/CopyDiskAdaptor.cc
  5941. * src/CopyDiskAdaptor.h
  5942. * src/DirectDiskAdaptor.cc
  5943. * src/DirectDiskAdaptor.h
  5944. * src/DiskAdaptor.h
  5945. * src/File.cc
  5946. * src/File.h
  5947. * src/HttpHeader.cc
  5948. * src/HttpHeader.h
  5949. * src/HttpResponse.cc
  5950. * src/HttpResponse.h
  5951. * src/HttpResponseCommand.cc
  5952. * src/HttpResponseCommand.h
  5953. * src/MultiDiskAdaptor.cc
  5954. * src/MultiDiskAdaptor.h
  5955. * src/OptionHandlerFactory.cc
  5956. * src/RequestGroup.cc
  5957. * src/RequestGroup.h
  5958. * src/RequestGroupMan.cc
  5959. * src/option_processing.cc
  5960. * src/prefs.cc
  5961. * src/prefs.h
  5962. * test/CopyDiskAdaptorTest.cc
  5963. * test/FileTest.cc
  5964. * test/Makefile.am
  5965. * test/Makefile.in
  5966. * test/MultiDiskAdaptorTest.cc
  5967. * test/TestUtil.cc
  5968. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Fixed the bug that DiskWriterEntry is not created when its
  5970. FileEntry.isRequested() is false and it doesn't share a piece with
  5971. other FileEntries that are requested. This bug causes segmentation fault
  5972. in the end.
  5973. * src/MultiDiskAdaptor.cc
  5974. * src/MultiDiskAdaptor.h
  5975. * src/MultiFileAllocationIterator.cc
  5976. * test/MultiDiskAdaptorTest.cc
  5977. * test/MultiFileAllocationIteratorTest.cc
  5978. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5980. called if the number of file entries are greater than max open files.
  5981. * src/AbstractSingleDiskAdaptor.cc
  5982. * src/AbstractSingleDiskAdaptor.h
  5983. * src/DiskAdaptor.h
  5984. * src/MultiDiskAdaptor.cc
  5985. * src/MultiDiskAdaptor.h
  5986. * test/MultiDiskAdaptorTest.cc
  5987. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Added a constuctor that receives struct timeval.
  5989. Added operator<.
  5990. * src/TimeA2.cc
  5991. * src/TimeA2.h
  5992. * test/TimeTest.cc
  5993. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5995. * src/CookieParser.cc
  5996. * test/CookieParserTest.cc
  5997. * test/HttpResponseTest.cc
  5998. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Implmented the functions to parse date.
  6000. * src/TimeA2.cc
  6001. * src/TimeA2.h
  6002. * test/TimeTest.cc
  6003. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Added "Firefox3 Cookie" feature to FeatureConfig
  6005. * src/FeatureConfig.cc
  6006. * src/FeatureConfig.h
  6007. * test/FeatureConfigTest.cc
  6008. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Bump up version number to 0.16.0b
  6010. * configure.ac
  6011. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Use pkg-config if is is available.
  6013. * m4/openssl.m4
  6014. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6016. * src/BtAnnounce.h
  6017. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. If an error occurred with a URI, remove identical URI from remaining
  6019. URI list because it is likely that same error occurred in the end and it
  6020. is waste of time.
  6021. * src/AbstractCommand.cc
  6022. * src/RequestGroup.cc
  6023. * src/RequestGroup.h
  6024. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Removed wrong comment.
  6026. * src/DefaultPeerStorage.cc
  6027. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6029. Added return value of getpid() to argument of srand() to achieve more
  6030. randomized value.
  6031. * src/SimpleRandomizer.cc
  6032. * src/SimpleRandomizer.h
  6033. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Contact tracker frequently when the number of connections are 0 and
  6035. download is not finished yet.
  6036. * src/ActivePeerConnectionCommand.cc
  6037. * src/BtAnnounce.h
  6038. * src/DefaultBtAnnounce.cc
  6039. * src/DefaultBtAnnounce.h
  6040. * test/MockBtAnnounce.h
  6041. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Moved threshold values to UTPexExtensionMessage.
  6043. * src/DefaultBtInteractive.cc
  6044. * src/Peer.cc
  6045. * src/Peer.h
  6046. * src/UTPexExtensionMessage.cc
  6047. * src/UTPexExtensionMessage.h
  6048. * test/UTPexExtensionMessageTest.cc
  6049. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Added _incoming member to Peer class and made it true if the peer
  6051. initiated connection. Don't add those peer to UTPex message.
  6052. If extended handshake is received, assign _incoming to false.
  6053. * src/DefaultBtInteractive.cc
  6054. * src/HandshakeExtensionMessage.cc
  6055. * src/Peer.cc
  6056. * src/Peer.h
  6057. * src/PeerListenCommand.cc
  6058. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6060. Encoding Decoder. Removed size threshold for turning off on the fly
  6061. inflation because resulting file may or may not be inflated depending
  6062. on the file size and I think it is not expected by users.
  6063. This change fixes segmentation fault when Metalink file contains gzipped
  6064. file and its filesize is provided.
  6065. * src/HttpResponseCommand.cc
  6066. * src/HttpResponseCommand.h
  6067. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Made Cookie immutable.
  6069. * src/Cookie.cc
  6070. * src/Cookie.h
  6071. * src/CookieParser.cc
  6072. * src/CookieParser.h
  6073. * src/CookieStorage.cc
  6074. * test/CookieParserTest.cc
  6075. * test/CookieStorageTest.cc
  6076. * test/NsCookieParserTest.cc
  6077. * test/Sqlite3MozCookieParserTest.cc
  6078. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Removed CookieBox, CookieBoxFactory.
  6080. * src/CookieBox.cc
  6081. * src/CookieBox.h
  6082. * src/CookieBoxFactory.cc
  6083. * src/CookieBoxFactory.h
  6084. * src/Makefile.am
  6085. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Use CookieStorage class instead of CookieBox class.
  6087. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6088. * src/AbstractProxyRequestCommand.cc
  6089. * src/CookieStorage.cc
  6090. * src/DownloadEngine.cc
  6091. * src/DownloadEngine.h
  6092. * src/HttpConnection.cc
  6093. * src/HttpConnection.h
  6094. * src/HttpRequest.cc
  6095. * src/HttpRequest.h
  6096. * src/HttpRequestCommand.cc
  6097. * src/HttpResponse.cc
  6098. * src/HttpResponseCommand.cc
  6099. * src/HttpSkipResponseCommand.cc
  6100. * src/Makefile.am
  6101. * src/MultiUrlRequestInfo.cc
  6102. * src/Request.cc
  6103. * src/Request.h
  6104. * src/main.cc
  6105. * test/AllTest.cc
  6106. * test/CookieStorageTest.cc
  6107. * test/CookieTest.cc
  6108. * test/HttpRequestTest.cc
  6109. * test/HttpResponseTest.cc
  6110. * test/Makefile.am
  6111. * test/NsCookieParserTest.cc
  6112. * test/Sqlite3MozCookieParserTest.cc
  6113. * test/nscookietest.txt
  6114. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Updated
  6116. * test/Cookies.sqlite
  6117. * test/nscookietest.txt
  6118. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Added tests for CookieStorage::load()
  6120. * test/CookieStorageTest.cc
  6121. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Added CookieStorage class which is based on RFC2109 and manages cookies
  6123. more strictly than CookieBox and CookieBoxFactory class.
  6124. * src/CookieStorage.cc
  6125. * src/CookieStorage.h
  6126. * src/Cookie.cc
  6127. * src/Cookie.h
  6128. * test/CookieStorageTest.cc
  6129. * test/CookieTest.cc
  6130. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Fixed the bug that commands are created more than the number of pieces.
  6132. * src/RequestGroup.cc
  6133. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Fixed infinite loop bug in FTP when SIZE command failed.
  6135. * src/FtpNegotiationCommand.cc
  6136. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Removed DirectDiskAdaptorTest.h
  6138. * test/Makefile.am
  6139. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Fixed chunk checksum validation cannot detect trailing garbage data.
  6141. BUG#2074141
  6142. * src/AbstractSingleDiskAdaptor.cc
  6143. * src/AbstractSingleDiskAdaptor.h
  6144. * src/CheckIntegrityEntry.cc
  6145. * src/CheckIntegrityEntry.h
  6146. * src/DiskAdaptor.h
  6147. * src/MultiDiskAdaptor.cc
  6148. * src/MultiDiskAdaptor.h
  6149. * src/RequestGroup.cc
  6150. * test/DirectDiskAdaptorTest.cc
  6151. * test/MultiDiskAdaptorTest.cc
  6152. * test/TestUtil.cc
  6153. * test/TestUtil.h
  6154. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Bump up version number of dht.dat file to 3. In version 3 format, time
  6156. is stored in 64bit, network byte order.
  6157. New build can load old format(version 2) but it saves the file in new
  6158. format. It means once you used new build, your dht.dat becomes
  6159. incompatible with older build.
  6160. * src/DHTRoutingTableDeserializer.cc
  6161. * src/DHTRoutingTableSerializer.cc
  6162. * test/DHTRoutingTableSerializerTest.cc
  6163. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6165. * test/Makefile.am
  6166. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Bump up version number of .aria2 control file to 0001.
  6168. New aria2 can still load version 0000 file but it saves the file in
  6169. version 0001 format. It means that new aria2 can resume download
  6170. started by old aria2 but the opposite is not true.
  6171. * src/DefaultBtProgressInfoFile.cc
  6172. * src/DefaultBtProgressInfoFile.h
  6173. * test/DefaultBtProgressInfoFileTest.cc
  6174. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Added ntoh64 and hton64 as inline functions.
  6176. * src/Util.cc
  6177. * test/UtilTest.cc
  6178. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Added sqlite3 depenency and Firefox3 cookie support.
  6180. * README
  6181. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. State that firefox3 cookie is supported explicitly in the usage.
  6183. * src/usage_text.h
  6184. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Externalized message.
  6186. * src/RequestGroupMan.cc
  6187. * src/message.h
  6188. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Save temporary file first and rename to the destination on success.
  6190. Added test cases.
  6191. * src/RequestGroupMan.cc
  6192. * test/RequestGroupManTest.cc
  6193. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Fixed the bug that the number of connected peer is exceeding the limit
  6195. (55 by default) in seeding mode.
  6196. Multiplied 0.8 to _maxUploadSpeedLimit.
  6197. * src/ActivePeerConnectionCommand.cc
  6198. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6199. Clear table item.
  6200. * src/Dictionary.cc
  6201. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Fixed error handling of lseek.
  6203. * src/AbstractDiskWriter.cc
  6204. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6206. style cookie file.
  6207. * src/usage_text.h
  6208. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6210. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6211. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6212. * src/Util.cc
  6213. * src/Util.h
  6214. * src/CookieParser.cc
  6215. * test/UtilTest.cc
  6216. * test/CookieParserTest.cc
  6217. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Separate the implementation to load old mozilla format of cookie to
  6219. NsCookieParser class.
  6220. * src/CookieBoxFactory.cc
  6221. * src/CookieBoxFactory.h
  6222. * src/NsCookieParser.cc
  6223. * src/NsCookieParser.h
  6224. * test/NsCookieParserTest.cc
  6225. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Made parse() const
  6227. * src/Sqlite3MozCookieParser.cc
  6228. * src/Sqlite3MozCookieParser.h
  6229. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Added firefox3 cookie support based on the patch submitted by
  6231. tizianomueller.
  6232. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6233. this functionality.
  6234. * configure.ac
  6235. * m4/sqlite3.m4
  6236. * src/CookieBoxFactory.cc
  6237. * src/CookieBoxFactory.h
  6238. * src/Makefile.am
  6239. * src/Makefile.in
  6240. * src/Sqlite3MozCookieParser.cc
  6241. * src/Sqlite3MozCookieParser.h
  6242. * src/main.cc
  6243. * test/CookieBoxFactoryTest.cc
  6244. * test/Makefile.am
  6245. * test/Makefile.in
  6246. * test/Sqlite3MozCookieParserTest.cc
  6247. * test/badcookies.sqlite
  6248. * test/cookies.sqlite
  6249. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Added Danish and Greek translations.
  6251. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6252. Great thanks to all translators.
  6253. * po/LINGUAS
  6254. * po/el.po
  6255. * po/da.po
  6256. * po/es.po
  6257. * po/ca.po
  6258. * po/nn.po
  6259. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Fixed man page: --follow-bittorrent should be --follow-torrent
  6261. * doc/aria2c.1.txt
  6262. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Fixed: numCommand is less than the value specified in -C option.
  6264. * src/RequestGroup.cc
  6265. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Fixed occasional assertion failure in PieceSegment.
  6267. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6268. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6269. creation of duplicate segments and one of the segment was finished then
  6270. assertion failure was caused.
  6271. * src/SegmentMan.cc
  6272. * test/SegmentManTest.cc
  6273. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. Added options to load/save the server's performance/status to a file
  6275. and the timeout to drop their data.
  6276. --server-stat-of=FILE specifies the file to which performance data
  6277. is saved.
  6278. --server-stat-if=FILE specifies the file to read previously saved
  6279. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6280. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6281. TIMEOUT is specified in seconds and the default value is 24hours.
  6282. * src/MultiUrlRequestInfo.cc
  6283. * src/OptionHandlerFactory.cc
  6284. * src/RequestGroupMan.cc
  6285. * src/RequestGroupMan.h
  6286. * src/ServerStatMan.cc
  6287. * src/ServerStatMan.h
  6288. * src/option_processing.cc
  6289. * src/prefs.cc
  6290. * src/prefs.h
  6291. * test/ServerStatManTest.cc
  6292. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6294. * src/ServerStatMan.cc
  6295. * src/ServerStatMan.h
  6296. * test/ServerStatManTest.cc
  6297. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Implemented ServerStatMan::load(...) function and its test case.
  6299. * src/ServerStat.cc
  6300. * src/ServerStat.h
  6301. * src/ServerStatMan.cc
  6302. * test/ServerStatManTest.cc
  6303. * test/ServerStatTest.cc
  6304. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Use time_t instead of int32_t. Use int64_t where milli second is
  6306. expected.
  6307. * src/TimeA2.cc
  6308. * src/TimeA2.h
  6309. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Implemented ServerStatMan::save(...) function and its test case.
  6311. * src/ServerStat.cc
  6312. * src/ServerStat.h
  6313. * src/ServerStatMan.cc
  6314. * src/ServerStatMan.h
  6315. * test/ServerStatManTest.cc
  6316. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Now aria2 uses name attribute in Metalink as local filename in
  6318. BitTorrent downloads. BUG#2033999
  6319. * src/BtContext.h
  6320. * src/BtDependency.cc
  6321. * src/DefaultBtContext.cc
  6322. * src/DefaultBtContext.h
  6323. * src/SingleFileDownloadContext.cc
  6324. * src/SingleFileDownloadContext.h
  6325. * test/BtDependencyTest.cc
  6326. * test/DefaultBtContextTest.cc
  6327. * test/MockBtContext.h
  6328. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Added AC_C_BIGENDIAN
  6330. * src/configure.ac
  6331. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Limited numCommand less than or equal to the number of piece.
  6333. * src/RequestGroup.cc
  6334. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6336. directive.
  6337. * test/DefaultPieceStorageTest.cc
  6338. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Fixed memory leak in test code
  6340. * test/AnnounceListTest.cc
  6341. * test/DefaultPeerListProcessorTest.cc
  6342. * test/DefaultPeerStorageTest.cc
  6343. * test/MetaFileUtilTest.cc
  6344. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6345. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6346. * src/DefaultPieceStorage.cc
  6347. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Initialized _directIOAllowed
  6349. * src/MultiDiskAdaptor.cc
  6350. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Fixed memory leak
  6352. * src/GZipDecoder.cc
  6353. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Fixed memory leak
  6355. * src/MetalinkParserStateMachine.cc
  6356. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Fixed memory leak
  6358. * src/Dictionary.cc
  6359. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Fixed memory leak
  6361. * src/IteratableChunkChecksumValidator.h
  6362. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. Fixed unmatched malloc/free.
  6364. * src/IteratableChunkChecksumValidator.cc
  6365. * src/IteratableChecksumValidator.cc
  6366. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Removed max chunk size check. This change fixes BUG#2040169
  6368. * src/ChunkedDecoder.cc
  6369. * src/ChunkedDecoder.h
  6370. * test/ChunkedDecoderTest.cc
  6371. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Implemented download speed based URI selection algorithm.
  6373. Introduced new option --uri-selector.
  6374. If --uri-selector=feedback is given, aria2 uses download speed observed
  6375. in the previous downloads and chooses fastest server in the URI list.
  6376. Currently at most 10 URIs are considered to introduce randomeness for
  6377. finding better servers. The speed is average download speed in the
  6378. downloads.
  6379. On the other hand, if --uri-selector=inorder is given, which is default,
  6380. URI is tried in order in URI list.
  6381. The usage text for the new option has not been written yet.
  6382. * src/AbstractCommand.cc
  6383. * src/DownloadCommand.cc
  6384. * src/DownloadEngine.cc
  6385. * src/DownloadEngineFactory.cc
  6386. * src/InOrderURISelector.cc
  6387. * src/InOrderURISelector.h
  6388. * src/OptionHandlerFactory.cc
  6389. * src/PeerStat.h
  6390. * src/RequestGroup.cc
  6391. * src/RequestGroup.h
  6392. * src/RequestGroupMan.cc
  6393. * src/RequestGroupMan.h
  6394. * src/SegmentMan.cc
  6395. * src/SegmentMan.h
  6396. * src/ServerStat.cc
  6397. * src/ServerStat.h
  6398. * src/ServerStatMan.cc
  6399. * src/ServerStatMan.h
  6400. * src/ServerStatURISelector.cc
  6401. * src/ServerStatURISelector.h
  6402. * src/URISelector.h
  6403. * src/option_processing.cc
  6404. * src/prefs.cc
  6405. * src/prefs.h
  6406. * test/InOrderURISelectorTest.cc
  6407. * test/RequestGroupManTest.cc
  6408. * test/ServerStatManTest.cc
  6409. * test/ServerStatURISelectorTest.cc
  6410. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. * Release 0.15.1+2
  6412. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Bump up version number to 0.15.1+2
  6414. * configure.ac
  6415. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6417. * m4/aria2_arg.m4
  6418. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. * Release 0.15.1+1
  6420. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Bump up version number to 0.15.1+1
  6422. * configure.ac
  6423. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Fixed the bug that causes segmentaion fault when resuming download
  6425. using metalink without size tag. Reproducible only using HTTP URI.
  6426. * src/HttpResponseCommand.cc
  6427. * src/FtpNegotiationCommand.cc
  6428. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. * Release 0.15.1
  6430. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Updated Bulgarian and French translations, thanks to all translators.
  6432. * po/bg.po
  6433. * po/fr.po
  6434. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Bump up version number to 0.15.1
  6436. * configure.ac
  6437. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Avoid repeated call of gettimeofday() when calculating speed.
  6439. * src/SpeedCalc.cc
  6440. * src/SpeedCalc.h
  6441. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Removed writable check when socket's send buffer is full in BitTorrent
  6443. downloads to lower CPU usage.
  6444. * src/PeerInteractionCommand.cc
  6445. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Fixed broken gzip inflation.
  6447. Turn off segmented downloading if gzip content is smaller than or equal
  6448. to 1MiB and inflate the data on the fly, because HTTP response header
  6449. doesn't contain the length of inflated file we can't determin where
  6450. the chunk of data should be written.
  6451. On the other hand, if gzip content is larger than 1MB, then turn off
  6452. on the fly inflation, because some servers returns "content-type: gzip"
  6453. for *.tgz, *.gz files.
  6454. * src/DownloadCommand.cc
  6455. * src/HttpResponseCommand.cc
  6456. * src/HttpResponseCommand.h
  6457. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Applied tizianomueller's patch to fix compile error.
  6459. * test/BitfieldManTest.cc
  6460. * test/BtRequestMessageTest.cc
  6461. * test/DefaultBtContextTest.cc
  6462. * test/DefaultDiskWriterTest.cc
  6463. * test/DefaultPieceStorageTest.cc
  6464. * test/HttpHeaderProcessorTest.cc
  6465. * test/HttpResponseTest.cc
  6466. * test/Metalink2RequestGroupTest.cc
  6467. * test/MetalinkParserControllerTest.cc
  6468. * test/MetalinkProcessorTest.cc
  6469. * test/PeerSessionResourceTest.cc
  6470. * test/UtilTest.cc
  6471. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. * Release 0.15.0
  6473. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6474. Reordered src files in POTFILES.in so that usage text appears first.
  6475. * po/POTFILES.in
  6476. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Bump up version number to 0.15.0
  6478. * configure.ac
  6479. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Added Bulgarian translation.
  6481. Updated Catalan, Spanish, French and Japanese translations.
  6482. Thanks to all translators.
  6483. * po/LINGUAS
  6484. * po/bg.po
  6485. * po/ca.po
  6486. * po/es.po
  6487. * po/fr.po
  6488. * po/ja.po
  6489. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Updated feature list. Added libz for dependency section.
  6491. Added a description about unit testing using CppUnit.
  6492. * README
  6493. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Added a test for libz. Quoted where it is necessary.
  6495. * build_test.sh
  6496. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. Added GZip to `Enabled Features' list.
  6498. * src/FeatureConfig.cc
  6499. * src/FeatureConfig.h
  6500. * test/FeatureConfigTest.cc
  6501. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6503. the transfer has not yet started.
  6504. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6505. * src/SegmentMan.cc
  6506. * src/SegmentMan.h
  6507. * test/SegmentManTest.cc
  6508. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Cache last calculated average download/upload speed.
  6510. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6511. cached value.
  6512. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6513. * src/PeerStat.h
  6514. * src/SpeedCalc.cc
  6515. * src/SpeedCalc.h
  6516. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Call parseUrl directly.
  6518. * src/Request.cc (resetUrl)
  6519. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Supported absolute/relative path in Location header field.
  6521. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6522. * src/HttpHeader.cc
  6523. * src/HttpHeader.h
  6524. * src/HttpResponse.cc
  6525. * src/HttpSkipResponseCommand.cc
  6526. * src/Request.cc
  6527. * test/HttpHeaderTest.cc
  6528. * test/HttpResponseTest.cc
  6529. * test/RequestTest.cc
  6530. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Changed help text for --load-cookie option.
  6532. * doc/aria2c.1.txt
  6533. * src/usage_text.h
  6534. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Regenerated test/Makefile.in to remove stale ChangeLog.
  6536. * test/Makefile.in
  6537. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Updated po files.
  6539. * po/aria2c.pot
  6540. * po/*.po
  6541. * po/*.gmo
  6542. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. Bump up version number to 0.15.0b
  6544. * configure.ac
  6545. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Externalize messages.
  6547. * src/RequestGroupMan.cc
  6548. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6549. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Use File::exists() instead of File::isFile() to allow non-regular file
  6551. such as block special files.
  6552. * src/AbstractDiskWriter.cc
  6553. * src/MultiDiskWriter.cc
  6554. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6556. * src/gai_strerror.h
  6557. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Fixed compile error. Thanks gknauf for the patch.
  6559. * src/asctime_r.c
  6560. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Included asctime_r.h from a2time.h.
  6562. * src/a2time.h
  6563. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Added a message "aria2 doesn't verify signature" to log message when
  6565. signature file is saved.
  6566. * src/RequestGroupMan.cc
  6567. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Added the ability to save signature when download is completed if
  6569. signature is available. The filename of signature file is the path to
  6570. download file followed by ".sig". If it already exists, then signature
  6571. will not be saved.
  6572. * src/RequestGroupMan.cc
  6573. * src/Signature.cc
  6574. * test/SignatureTest.cc
  6575. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Updated the descriptions for --bt-seed-unverified.
  6577. * doc/aria2c.1
  6578. * doc/aria2c.1.html
  6579. * doc/aria2c.1.txt
  6580. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6582. that this is not going to verify files using piece hashes.
  6583. * src/HelpItemFactory.cc
  6584. * src/OptionHandlerFactory.cc
  6585. * src/RequestGroup.cc
  6586. * src/option_processing.cc
  6587. * src/prefs.cc
  6588. * src/prefs.h
  6589. * src/usage_text.h
  6590. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Added the ability to retrieve signature from Metalink file.
  6592. A retrieved signature is stored in Signature class and it is held by
  6593. DownloadContext class. Note that aria2 doesn't verify signature.
  6594. * src/DownloadContext.cc
  6595. * src/DownloadContext.h
  6596. * src/Makefile.am
  6597. * src/Makefile.in
  6598. * src/Metalink2RequestGroup.cc
  6599. * src/MetalinkEntry.cc
  6600. * src/MetalinkEntry.h
  6601. * src/MetalinkParserController.cc
  6602. * src/MetalinkParserController.h
  6603. * src/MetalinkParserStateMachine.cc
  6604. * src/MetalinkParserStateMachine.h
  6605. * src/Signature.cc
  6606. * src/Signature.h
  6607. * src/SignatureMetalinkParserState.cc
  6608. * src/SignatureMetalinkParserState.h
  6609. * src/VerificationMetalinkParserState.cc
  6610. * src/VerificationMetalinkParserState.h
  6611. * test/Metalink2RequestGroupTest.cc
  6612. * test/MetalinkParserControllerTest.cc
  6613. * test/MetalinkProcessorTest.cc
  6614. * test/test.xml
  6615. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Close DiskAdaptor after renaming file.
  6617. * src/RequestGroup.cc
  6618. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Corrected indentation
  6620. * src/DefaultBtProgressInfoFile.cc
  6621. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Moved the calls of std::ios::exceptions() inside of try-catch block
  6623. because if an error occurred in constructor of std::fstream, then
  6624. exception is thrown immediately when std::ios::exceptions() is called
  6625. which results unhandled exception and aria2c aborts.
  6626. * src/DefaultBtProgressInfoFile.cc
  6627. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Added the test for the previous change in DefaultBtContext.cc
  6629. * test/DefaultBtContextTest.cc
  6630. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Fixed the bug that causes infinite loop when the number of pieces are
  6632. fewer than allowed fast set size which is 10 by default.
  6633. * src/DefaultBtContext.cc
  6634. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Updated the descriptions for -j, -s. Added --bt-seed.
  6636. * doc/aria2c.1
  6637. * doc/aria2c.1.html
  6638. * doc/aria2c.1.txt
  6639. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6641. aria2 seeds previously downloaded files without validating piece hashs.
  6642. * src/HelpItemFactory.cc
  6643. * src/OptionHandlerFactory.cc
  6644. * src/RequestGroup.cc
  6645. * src/option_processing.cc
  6646. * src/prefs.cc
  6647. * src/prefs.h
  6648. * src/usage_text.h
  6649. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6650. Updated DESCRIPTION of man page.
  6651. * doc/aria2c.1
  6652. * doc/aria2c.1.html
  6653. * doc/aria2c.1.txt
  6654. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6656. Don't define `struct addrinfo' when __sun is defined.
  6657. * src/getaddrinfo.h
  6658. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6660. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6661. second argument is of type `struct _stati64'. Otherwise it is defined as
  6662. `struct stat'.
  6663. * src/AbstractDiskWriter.cc
  6664. * src/File.cc
  6665. * src/File.h
  6666. * src/a2io.h
  6667. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Fixed the compile error in hurd-i386
  6669. See the original bug report:
  6670. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6671. * src/a2io.h
  6672. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Code cleanup.
  6674. * src/PeerAbstractCommand.cc
  6675. * src/PeerAbstractCommand.h
  6676. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Removed TransferEncoding.
  6678. * src/DownloadCommand.cc
  6679. * src/DownloadCommand.h
  6680. * src/HttpResponseCommand.cc
  6681. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Updated po files.
  6683. * po/aria2c.pot
  6684. * po/*.po
  6685. * po/*.gmo
  6686. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6688. * src/A2STR.cc
  6689. * src/A2STR.h
  6690. * src/ChunkedDecoder.cc
  6691. * src/ChunkedDecoder.h
  6692. * src/ChunkedEncoding.cc: Removed
  6693. * src/ChunkedEncoding.h: Removed
  6694. * src/DownloadCommand.cc
  6695. * src/DownloadCommand.h
  6696. * src/HttpDownloadCommand.cc
  6697. * src/HttpResponse.cc
  6698. * src/HttpResponse.h
  6699. * src/HttpResponseCommand.cc
  6700. * src/HttpSkipResponseCommand.cc
  6701. * src/HttpSkipResponseCommand.h
  6702. * src/Makefile.am
  6703. * src/TransferEncoding.h: Removed
  6704. * test/ChunkedDecoderTest.cc
  6705. * test/ChunkedEncodingTest.cc: Removed
  6706. * test/HttpResponseTest.cc
  6707. * test/Makefile.am
  6708. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Use append instead of insert.
  6710. * src/GZipDecoder.cc
  6711. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Updated doc
  6713. * src/Decoder.h
  6714. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Updated usage text for -s option.
  6716. * src/usage_text.h
  6717. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6719. * src/Request.cc
  6720. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Cleaned up configure.ac.
  6722. * configure.ac
  6723. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6725. AC_ARG_ENABLE.
  6726. * configure.ac
  6727. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6729. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6730. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6731. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6732. fly and writes decoded data to a local disk.
  6733. * README
  6734. * README.html
  6735. * configure.ac
  6736. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6737. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6738. * m4/libz.m4
  6739. * src/Decoder.h
  6740. * src/DownloadCommand.cc
  6741. * src/DownloadCommand.h
  6742. * src/Exception.h
  6743. * src/GZipDecoder.cc
  6744. * src/GZipDecoder.h
  6745. * src/HttpHeader.cc
  6746. * src/HttpHeader.h
  6747. * src/HttpRequest.cc
  6748. * src/HttpRequest.h
  6749. * src/HttpResponse.cc
  6750. * src/HttpResponse.h
  6751. * src/HttpResponseCommand.cc
  6752. * src/Makefile.am
  6753. * test/GZipDecoderTest.cc
  6754. * test/HttpRequestTest.cc
  6755. * test/HttpResponseTest.cc
  6756. * test/Makefile.am
  6757. * test/Makefile.in
  6758. * test/gzip_decode_test.gz
  6759. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Clarified usage of -j option.
  6761. * src/usage_text.h
  6762. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Disabled getting size from the response of RETR.
  6764. If SIZE command failed, then disable resuming and segmented downloading.
  6765. * src/FtpConnection.cc
  6766. * src/FtpConnection.h
  6767. * src/FtpNegotiationCommand.cc
  6768. * src/FtpNegotiationCommand.h
  6769. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Use digits to find first byte of file size, which makes the intention
  6771. of the code clearer.
  6772. * src/FtpConnection.cc
  6773. Don't call validateTotalLength() when size is 0.
  6774. * src/FtpNegotiationCommand.cc
  6775. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Updated po files.
  6777. * po/aria2c.pot
  6778. * po/*.gmo
  6779. * po/*.po
  6780. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Clarified usage text for --split option.
  6782. * src/usage_text.h
  6783. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Bump up version number to 0.15.0dev. "dev" means "development"
  6785. version, which means I started the development of the next release!
  6786. * src/configure.ac
  6787. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. If FTP server returns negative response with REST raw command and
  6789. requested range is not 0, throw exception. If requested range is 0,
  6790. continue download a file from 0 byte.
  6791. * src/FtpNegotiationCommand.cc
  6792. * src/FtpNegotiationCommand.h
  6793. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Supported FTP server which don't recognize SIZE raw command.
  6795. If SIZE raw command is failed, aria2 will try to get file size
  6796. from the response of RETR raw command. If both attempts are failed,
  6797. then resuming and segmented downloading are disabled.
  6798. * src/FtpConnection.cc
  6799. * src/FtpConnection.h
  6800. * src/FtpNegotiationCommand.cc
  6801. * src/FtpNegotiationCommand.h
  6802. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. * Release 0.14.0+1
  6804. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Bump up version number to 0.14.0+1
  6806. * src/configure.ac
  6807. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Fixed the code that refers static member variable from non-static
  6809. context.
  6810. * src/DefaultPeerStorage.cc
  6811. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. * Release 0.14.0
  6813. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Added build test script
  6815. * build_test.sh
  6816. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Updated ja.po
  6818. * src/ja.po
  6819. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Bump up version number to 0.14.0
  6821. * src/configure.ac
  6822. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Updated ja.po and fr.po. Great thanks for french translators and
  6824. Sebastien WILLEMIJNS.
  6825. * po/fr.po
  6826. * po/ja.po
  6827. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Added configure option to enable/disable epoll support.
  6829. * configure.ac
  6830. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Updated man page.
  6832. * doc/aria2c.1.txt
  6833. * doc/aria2c.1
  6834. * doc/aria2c.1.html
  6835. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Added missing default value '5' to the usage of --split option.
  6837. * src/HelpItemFactory.cc
  6838. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Filled up pieces based on the number of missing blocks, rather than
  6840. simplay the number of piece * block length.
  6841. * src/BtRequestFactory.h
  6842. * src/DefaultBtInteractive.cc
  6843. * src/DefaultBtInteractive.h
  6844. * src/DefaultBtRequestFactory.cc
  6845. * src/DefaultBtRequestFactory.h
  6846. * src/Piece.cc
  6847. * src/Piece.h
  6848. * test/BitfieldManTest.cc
  6849. * test/DefaultBtRequestFactoryTest.cc
  6850. * test/MockBtRequestFactory.h
  6851. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Made _epEvents a member variable.
  6853. * src/DownloadEngine.cc
  6854. * src/DownloadEngine.h
  6855. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6856. Cancel download if http redirect is bounded more than 20 times.
  6857. * src/AbstractCommand.cc
  6858. * src/HttpSkipResponseCommand.cc
  6859. * src/Request.cc
  6860. * src/Request.h
  6861. * test/RequestTest.cc
  6862. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Fixed unhandled exception(removed keyword `new').
  6864. * src/SocketCore.cc (initEPOLL)
  6865. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Removed visit(const MetaEntry*)
  6867. * src/MetaEntryVisitor.h:
  6868. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6869. and made them virtual.
  6870. * src/BencodeVisitor.h
  6871. * src/BencodeVisitor.cc
  6872. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Updated po files.
  6874. * po/aria2c.pot
  6875. * po/*.po
  6876. * po/*.gmo
  6877. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6879. the number of socket to watch out.
  6880. * src/PeerInteractionCommand.cc
  6881. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. When there is not enough space in disk when writing a chunk of data,
  6883. aria2 now prints the message to the console to warn user and aborts
  6884. its download. Not all downloads are canceled because some downloads
  6885. may use another disk or partition. BUG#1640332
  6886. * src/AbstractDiskWriter.cc
  6887. * src/PeerAbstractCommand.cc
  6888. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6889. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6890. setHaltRequested(true) to cancel download.
  6891. * src/PeerInteractionCommand.h
  6892. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6894. socket from int to sock_t as sockets are unsigned in Windows.
  6895. For AsyncNameResolver, DownloadEngine, I did additional modification
  6896. for the portion of the code changed according to epoll support.
  6897. I defined sock_t in a2netcompat.h to use sock_t without including
  6898. SocketCore.h.
  6899. * src/AsyncNameResolver.cc
  6900. * src/AsyncNameResolver.h
  6901. * src/DownloadEngine.cc
  6902. * src/DownloadEngine.h
  6903. * src/SocketCore.cc
  6904. * src/SocketCore.h
  6905. * src/a2netcompat.h
  6906. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6908. changes in the patch were applied.
  6909. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6910. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6911. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6912. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6914. a2io.h and common.h were modified.
  6915. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6916. MinGW.
  6917. * src/common.h: Changed off_t to 64 bit in MinGW.
  6918. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6920. only a2netcompat.h is modified.
  6921. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6922. directives.
  6923. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6925. only gai_strerror.h is modified.
  6926. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6927. winsock errors in MinGW.
  6928. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6930. follow sources are applied.
  6931. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6932. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6933. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6934. I included locale.h from Platform.cc.
  6935. * src/main.cc: Moved common setup/teardown code to Platform class.
  6936. * test/AllTest.cc: Use Platform class.
  6937. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6938. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6940. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6941. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6942. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6944. aria2-0.13.2+1-mingw-2.patch.
  6945. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6946. systems which don't have termious.h. I moved the directive inside of
  6947. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6948. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6949. anyway.
  6950. * src/asctime_r.h
  6951. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6952. I added 2nd argument to the prototype declaration.
  6953. * src/StringFormat.cc: Get rid of vasprintf.
  6954. * src/getaddrinfo.h: Fixed constants.
  6955. * configure.ac: Added the check for asctime_r function.
  6956. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6957. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Added writable test for Socket when the sending message is in progress.
  6959. Usually the sending message is piece message. Without wriable check,
  6960. upload latency is dropped to more than 1sec.
  6961. * src/PeerInteractionCommand.cc
  6962. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Create only requested files and files which shares a piece with
  6964. requested file in multi-torrent downloads. Directory structures are
  6965. also created in the same rule.
  6966. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6967. DiskWriterEntry as in the previous implementation.
  6968. * src/MultiDiskWriter.cc
  6969. * src/MultiFileAllocationIterator.cc
  6970. * src/MultiFileAllocationIterator.h
  6971. * test/MultiFileAllocationIteratorTest.cc
  6972. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Commented out -lprofiler
  6974. * src/Makefile.am
  6975. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Bump up version number to 0.14.0b.
  6977. * src/configure.ac
  6978. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Actively establish connection to peers in seeding, when peer cache
  6980. is not full and max upload speed limit is not reached.
  6981. * src/ActivePeerConnectionCommand.cc
  6982. * src/ActivePeerConnectionCommand.h
  6983. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6985. to make room more fleshy, recently found peers.
  6986. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6987. it.
  6988. * src/DefaultPeerStorage.cc
  6989. * test/DefaultPeerStorageTest.cc
  6990. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Returns cached data only when the previous receiveHandshake() is called
  6992. with peek = true.
  6993. * src/PeerConnection.cc (receiveHandshake)
  6994. * src/PeerConnection.h (receiveHandshake)
  6995. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Changed default value of -s option from 1 to 5.
  6997. Also max value of -s option is changed from 5 to 16.
  6998. * src/HelpItemFactory.cc
  6999. * src/OptionHandlerFactory.cc
  7000. * src/option_processing.cc
  7001. * src/usage_text.h
  7002. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Changed -s options behavior. Now it means the number of connections
  7004. made simultaneously in each http/ftp download.
  7005. If 1 URL is specified, the behavior is the same with old implementation.
  7006. If -s N is given and more than N URLs are specified, first N URLs are
  7007. used and remaining URLs are used for backup. If less than N URLs are
  7008. specified, some of URLs are used more than once so that totally N
  7009. connections are made simultaneously.
  7010. * src/main.cc
  7011. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Included missing iosfwd or ostream header.
  7013. * src/RequestGroupMan.cc
  7014. * src/TaggedItem.cc
  7015. * src/TaggedItem.h
  7016. * src/Util.cc
  7017. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7019. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7020. * src/HttpConnection.cc: Included missing sstream.
  7021. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Added --bt-max-open-files option.
  7023. * src/DefaultPieceStorage.cc
  7024. * src/HelpItemFactory.cc
  7025. * src/MultiDiskAdaptor.cc
  7026. * src/MultiDiskAdaptor.h
  7027. * src/OptionHandlerFactory.cc
  7028. * src/option_processing.cc
  7029. * src/prefs.cc
  7030. * src/prefs.h
  7031. * src/usage_text.h
  7032. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Fixed the bug that aria2 aborts when a path to a directory is given
  7034. in command-line.
  7035. * src/ProtocolDetector.cc
  7036. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Limited the number files opened in each BitTorrent download. The default
  7038. value is 100. The option to change this value will be added.
  7039. * src/MultiDiskAdaptor.cc
  7040. * src/MultiDiskAdaptor.h
  7041. * src/MultiFileAllocationIterator.cc
  7042. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Fixed the bug that HTTP downloads don't start with old libraries.
  7044. * src/HttpHeaderProcessor.cc
  7045. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Use empty() instead of size() > 0.
  7047. * src/HttpConnection.cc
  7048. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Drop connection if the incoming peer ID is the same with localhost's
  7050. one. The previous implementation drops connection when incoming peer's
  7051. IP address is the same with localhost's one.
  7052. * src/PeerListenCommand.cc
  7053. * src/DefaultBtInteractive.cc
  7054. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Returns cached data without checking whether socket is readable
  7056. if the cache is available.
  7057. * src/PeerConnection.cc (receiveHandshake)
  7058. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Included stdint.h
  7060. * src/common.h
  7061. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Removed duplicate HAVE_GETTIMEOFDAY
  7063. * src/Makefile.am
  7064. * src/Makefile.in
  7065. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Use interval as a minInterval when minInterval is not supplied.
  7067. * src/DefaultBtAnnounce.cc
  7068. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7070. attempt is failed, then 2nd attempt get kicked out more quickly.
  7071. And it is now static const member of DefaultBtAnnounce.
  7072. * src/DefaultBtAnnounce.h
  7073. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7075. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7076. * src/ActivePeerConnectionCommand.cc
  7077. * src/BtConstants.h
  7078. * src/BtRuntime.h
  7079. * src/DHTGetPeersCommand.cc
  7080. * src/DefaultBtAnnounce.cc
  7081. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7082. BtRuntime::MAX_PEERS.
  7083. * src/DefaultPeerStorage.h
  7084. * src/InitiatorMSEHandshakeCommand.cc
  7085. * src/PeerInitiateConnectionCommand.cc
  7086. * src/PeerInteractionCommand.cc
  7087. * src/PeerReceiveHandshakeCommand.cc
  7088. * src/TrackerWatcherCommand.cc
  7089. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7090. Always Connect to _numNewConnection
  7091. * src/ActivePeerConnectionCommand.cc
  7092. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Made `begin' unsigned int.
  7094. * src/GrowSegment.h
  7095. * src/Piece.cc
  7096. * src/Piece.h
  7097. * src/PiecedSegment.cc
  7098. * src/PiecedSegment.h
  7099. * src/Segment.h
  7100. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Calculate piece hash when data is arrived if the data is arrived in
  7102. order. This removes additional read operation for hash calculation.
  7103. If the data is arrived in out of order, the hash is calucated when the
  7104. piece is completed. This is the same behavior as the old implementation.
  7105. * src/BtPieceMessage.cc
  7106. * src/DefaultBtProgressInfoFile.cc
  7107. * src/DefaultPieceStorage.cc
  7108. * src/DownloadCommand.cc
  7109. * src/DownloadCommand.h
  7110. * src/DownloadEngine.cc
  7111. * src/GrowSegment.cc
  7112. * src/GrowSegment.h
  7113. * src/Piece.cc
  7114. * src/Piece.h
  7115. * src/PiecedSegment.cc
  7116. * src/PiecedSegment.h
  7117. * src/Segment.h
  7118. * test/PieceTest.cc
  7119. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Try to keep the ordering of outgoing piece message.
  7121. * src/DefaultBtMessageDispatcher.cc
  7122. (DefaultBtMessageDispatcher::sendMessages)
  7123. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. Fixed busy loop when error/hup epoll events occur.
  7125. * src/AbstractCommand.cc
  7126. * src/PeerAbstractCommand.cc
  7127. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Added --bt-request-peer-speed-limit option, which was a constant
  7129. SLOW_SPEED_THRESHOLD.
  7130. * src/ActivePeerConnectionCommand.cc
  7131. * src/ActivePeerConnectionCommand.h
  7132. * src/BtConstants.h
  7133. * src/HelpItemFactory.cc
  7134. * src/OptionHandlerFactory.cc
  7135. * src/PeerReceiveHandshakeCommand.cc
  7136. * src/option_processing.cc
  7137. * src/prefs.cc
  7138. * src/prefs.h
  7139. * src/usage_text.h
  7140. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Removed repeated call of getTopDirPath(). Instead, call it once and
  7142. cache the result.
  7143. * src/MultiDiskAdaptor.cc
  7144. * src/MultiDiskAdaptor.h
  7145. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7146. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Fixed compile error on debian etch.
  7148. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7149. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7150. it is undefined.
  7151. * src/Util.cc (ULLONG_MAX)
  7152. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Added epoll support. Use epoll if it is available. If not, use select.
  7154. When async dns is enabled in compile time, epoll support is enabled
  7155. only when aria2 is built with c-ares. This condition statement is
  7156. defined in a2io.h.
  7157. Currently aria2 supports both c-ares and ares, but ares is maintained
  7158. for quite a while and debian already has c-ares package, ares support
  7159. will be dropped in the future version.
  7160. * configure.ac
  7161. * src/AbstractCommand.cc
  7162. * src/AsyncNameResolver.cc
  7163. * src/AsyncNameResolver.h
  7164. * src/Command.cc
  7165. * src/Command.h
  7166. * src/DownloadEngine.cc
  7167. * src/DownloadEngine.h
  7168. * src/PeerAbstractCommand.cc
  7169. * src/SocketCore.cc
  7170. * src/SocketCore.h
  7171. * src/a2io.h
  7172. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7174. directive.
  7175. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Do not do write operation to /dev/null file.
  7177. * src/LogFactory.cc
  7178. * src/SimpleLogger.cc
  7179. Replaced vasprintf with vsnprintf
  7180. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7181. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. * src/BtRequestMessage.cc
  7183. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7184. for segmentation fault caused by previous commit.
  7185. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Reduced the usage of gettimeofday().
  7187. * src/DefaultBtMessageDispatcher.cc
  7188. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7189. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7190. * src/RequestSlot.cc
  7191. * src/RequestSlot.h
  7192. (RequestSlot::isTimeout)
  7193. Made RequestSlot have a reference to Piece object to avoid find
  7194. Piece repeatedly.
  7195. * src/DefaultBtMessageDispatcher.cc
  7196. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7197. * src/RequestSlot.cc
  7198. * src/RequestSlot.h
  7199. (RequestSlot::getPiece)
  7200. * test/DefaultBtMessageDispatcherTest.cc
  7201. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. * src/TimeA2.cc
  7203. * src/TimeA2.h
  7204. (Time::difference): New function.
  7205. (Time::elapsed): Done optimization.
  7206. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7208. directive.
  7209. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. * src/option_processing.cc: Added missing `defined' keyword to #if
  7211. directive.
  7212. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Bump up version number to 0.13.2+1
  7214. * src/configure.ac
  7215. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Refactored broken outstanding piece handling.
  7217. * src/DefaultPieceStorage.cc
  7218. * src/DefaultPieceStorage.h
  7219. * src/Piece.cc
  7220. * src/Piece.h
  7221. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7223. name collision of static variable and predefined macro.
  7224. * src/BtContext.cc
  7225. * src/BtContext.h
  7226. * src/CookieBoxFactory.cc
  7227. * src/CookieBoxFactory.h
  7228. * src/CookieParser.cc
  7229. * src/CookieParser.h
  7230. * src/DefaultBtContext.cc
  7231. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. * src/RequestGroup.cc
  7233. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7234. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. * Release 0.13.2
  7236. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7238. * po/fr.po
  7239. * po/ja.po
  7240. * po/aria2c.pot
  7241. * po/*.po
  7242. * po/*.gmo
  7243. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Bump up version number to 0.13.2
  7245. * src/configure.ac
  7246. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Refactord.
  7248. * src/RequestGroupMan.cc
  7249. (removeStoppedGroup)
  7250. (fillRequestGroupFromReserver)
  7251. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Fixed compile error on Ubuntu.
  7253. * src/BtPieceMessage.cc
  7254. * src/MessageDigestHelper.cc
  7255. * src/Util.cc
  7256. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Fixed compile error when configured with --disable-bittorrent
  7258. * test/DownloadHandlerFactoryTest.cc
  7259. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Done make update-po
  7261. * po/aria2c.pot
  7262. * po/*.po
  7263. * po/*.gmo
  7264. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Bump up version number to 0.13.2rc.
  7266. * src/configure.ac
  7267. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Made option name bold. Updated SYNOPSIS to make it more readable.
  7269. * doc/aria2c.1.txt
  7270. * doc/aria2c.1
  7271. * doc/aria2c.1.html
  7272. * src/version_usage.cc
  7273. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7274. Refactored. Use std::string instead of size and char*.
  7275. * Data.cc
  7276. * Data.h
  7277. * test/Data.cc
  7278. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Added trimSelf(). Rewritten trim() to use trimSelf().
  7280. * Util.cc
  7281. * Util.h
  7282. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7284. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Fixed compile error when configured with --disable-metalink.
  7286. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7287. * test/FeatureConfigTest.cc
  7288. * test/DownloadHandlerFactoryTest.cc
  7289. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Fixed compile error when configured with --without-gnutls
  7291. --without-openssl
  7292. * src/main.cc
  7293. * test/DefaultBtProgressInfoFileTest.cc
  7294. * test/SegmentManTest.cc
  7295. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Fixed compile error with OpenSSL.
  7297. * src/IteratableChunkChecksumValidator.cc
  7298. * src/LibsslDHKeyExchange.h
  7299. * src/MessageDigestHelper.cc
  7300. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Revert the default value of --max-concurrent-downloads to 5.
  7302. Revert the default value of --metalink-servers to 5.
  7303. Man pages was also updated.
  7304. * src/option_processing.cc
  7305. * doc/aria2c.1.txt
  7306. * doc/aria2c.1.html
  7307. * doc/aria2c.1
  7308. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Returns const reference:
  7310. DownloadContext::getPieceHash, DownloadContext::getName,
  7311. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7312. BtContext::getInfoHashAsString,
  7313. * src/BtContext.h
  7314. * src/DefaultBtContext.cc
  7315. * src/DefaultBtContext.h
  7316. * src/DownloadContext.h
  7317. * src/SingleFileDownloadContext.h
  7318. * test/MockBtContext.h
  7319. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. * src/RequestGroup.h (getDir): Removed.
  7321. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Returns const reference. The internal urlencode function was optimized
  7323. a little bit.
  7324. * src/Request.cc
  7325. * src/Request.h
  7326. * src/HttpRequest.cc
  7327. * src/HttpRequest.h
  7328. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Defined option name and possible values as std::string to reduce
  7330. temporary string object creation in runtime.
  7331. * src/HelpItemFactory.cc
  7332. * src/LogFactory.cc
  7333. * src/Option.cc
  7334. * src/OptionHandlerFactory.cc
  7335. * src/option_processing.cc
  7336. * src/prefs.cc
  7337. * src/prefs.h
  7338. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Return const reference.
  7340. * src/DownloadHandlerConstants.cc
  7341. * src/DownloadHandlerConstants.h
  7342. (getMetalinkExtensions)
  7343. (getMetalinkContentTypes)
  7344. (getBtExtensions)
  7345. (getBtContentTypes)
  7346. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. * src/HttpHeader.cc (get): Rewritten.
  7348. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Make HttpHeader::getFirst(...) return const reference.
  7350. * src/HttpHeader.cc
  7351. * src/HttpHeader.h
  7352. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7354. it with V_TRUE.
  7355. * src/DefaultPieceStorage.cc
  7356. * src/DownloadCommand.cc
  7357. * src/FtpNegotiationCommand.cc
  7358. * src/HttpRequest.cc
  7359. * src/InitiateConnectionCommand.cc
  7360. * src/RequestGroup.cc
  7361. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Made Option::get(...) return const reference of std::string.
  7363. * src/Option.cc
  7364. * src/Option.h
  7365. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Replaced std:copy with insert.
  7367. * src/DefaultBtMessageDispatcher.cc
  7368. * src/DefaultPieceStorage.cc
  7369. * src/DownloadEngineFactory.cc
  7370. * src/RequestGroup.cc
  7371. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Included SocketCore.h to fix compiler warning.
  7373. * src/InitiateConnectionCommand.cc
  7374. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Put piece selection strategy algorithm to RarestPieceSelector class,
  7376. Added a switch to choose whether randomized selection so that unit
  7377. tests emit same results in, possibly, win32.
  7378. * src/DefaultPieceStorage.cc
  7379. * src/DefaultPieceStorage.h
  7380. * src/RarestPieceSelector.cc
  7381. * src/RarestPieceSelector.h
  7382. * test/DefaultPieceStorageTest.cc
  7383. * test/RarestPieceSelectorTest.cc
  7384. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Don't pool connection if HTTP proxy is enabled.
  7386. * src/FtpFinishDownloadCommand.cc
  7387. * src/FtpNegotiationCommand.cc
  7388. * src/HttpSkipResponseCommand.cc
  7389. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7391. * src/AbstractCommand.cc
  7392. * src/AbstractCommand.h
  7393. * src/ActivePeerConnectionCommand.cc
  7394. * src/FtpInitiateConnectionCommand.cc
  7395. * src/HttpInitiateConnectionCommand.cc
  7396. * src/InitiateConnectionCommandFactory.cc
  7397. * src/PeerAbstractCommand.cc
  7398. * src/PeerAbstractCommand.h
  7399. * src/PeerInitiateConnectionCommand.cc
  7400. * src/TrackerWatcherCommand.cc
  7401. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Sort RequestSlot in ascending order and manipulate them using
  7403. lower_bound.
  7404. * src/DefaultBtMessageDispatcher.cc
  7405. * src/DefaultBtMessageDispatcher.h
  7406. (getMessageQueue): Added const qualifier.
  7407. (getRequestSlots): Added const qualifier.
  7408. (sendMessages): Use empty() instead of size().
  7409. (doCancelSendingPieceAction): Use HandleEvent object.
  7410. (doAbortOutstandingRequestAction): Rewritten.
  7411. (doChokedAction): Rewritten.
  7412. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7413. (isOutstandingRequest): Rewritten.
  7414. (getOutstandingRequest): Rewritten.
  7415. (removeOutstandingRequest): Rewritten.
  7416. (addOutstandingRequest): Rewritten.
  7417. * src/RequestSlot.cc
  7418. * src/RequestSlot.h
  7419. (operator=): Rewritten.
  7420. (operator!=): New function.
  7421. (operator<): New function.
  7422. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. * src/DefaultBtRequestFactory.cc
  7424. (doChokedAction): Rewritten.
  7425. (removeCompletedPiece): Rewritten.
  7426. (removeTargetPiece): Rewritten.
  7427. (createRequestMessages): Added the debug log.
  7428. (createRequestMessagesOnEndGame: Added the debug log.
  7429. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Added the debug log message.
  7431. * src/BtPieceMessage.cc (doReceivedAction)
  7432. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7434. used lower_bound to process them rather than linear search.
  7435. * src/DHTPeerAnnounceStorage.cc
  7436. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7438. peer has at least one completed piece.
  7439. * src/Peer.cc
  7440. * src/Peer.h
  7441. * src/PeerInteractionCommand.cc
  7442. * src/PeerSessionResource.cc
  7443. * src/PeerSessionResource.h
  7444. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Removed unnecessary sorting
  7446. * src/DefaultPieceStorage (DefaultPieceStorage)
  7447. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Rewritten the portion of the code that mangaes allowed fast indexes.
  7449. * src/PeerSessionResource.cc
  7450. * src/PeerSessionResource.h
  7451. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Removed the invalid string including '\r' from ru.po and
  7453. did make update-po.
  7454. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Added --log-level and --summary-interval to man page.
  7456. * doc/aria2c.1.txt
  7457. * doc/aria2c.1.html
  7458. * doc/aria2c.1
  7459. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Added --log-level option to specify log level. Log messages under
  7461. the specified level are not output. Default value is `debug'.
  7462. * src/HelpItemFactory.cc
  7463. * src/LogFactory.cc
  7464. * src/LogFactory.h
  7465. * src/Logger.h
  7466. * src/OptionHandlerFactory.cc
  7467. * src/SimpleLogger.cc
  7468. * src/SimpleLogger.h
  7469. * src/main.cc
  7470. * src/option_processing.cc
  7471. * src/prefs.h
  7472. * src/usage_text.h
  7473. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Print download progress summary of all parallel downloads in specified
  7475. interval, default 60 secs. While aria2 could download several files
  7476. in parallel (see -j option), it displayed just first download progress,
  7477. and the other downloads are hidden from the users. This new feature
  7478. prints all downloads currently in-progress to the console so that you
  7479. can check the status of all downloads. The interval can be adjusted
  7480. by --summary-interval option.
  7481. The progress readout is now cut so that all fits in the one line of
  7482. console.
  7483. * src/ConsoleStatCalc.cc
  7484. * src/ConsoleStatCalc.h
  7485. * src/HelpItemFactory.cc
  7486. * src/OptionHandlerFactory.cc
  7487. * src/RequestGroupMan.cc
  7488. * src/RequestGroupMan.h
  7489. * src/main.cc
  7490. * src/option_processing.cc
  7491. * src/prefs.h
  7492. * src/usage_text.h
  7493. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7495. * src/DownloadEngine.cc (DownloadEngine)
  7496. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7498. defined.
  7499. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7500. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Use erase+lower_bound+insert instead of sort.
  7502. * src/DefaultPieceStorage.cc (addPieceStats)
  7503. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7505. * src/A2STR.cc
  7506. * src/A2STR.h
  7507. * src/OptionParser.cc (parse)
  7508. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Defined fake filename `[tracker.announce]' as static const std::string.
  7510. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7511. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Defined default filename `index.html' as static const std::string
  7513. * src/SingleFileDownloadContext.cc
  7514. * src/SingleFileDownloadContext.h
  7515. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Defined "[MEMORY]" as static const std::string.
  7517. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7518. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Defined control file's version number as static const std::string.
  7520. * src/DefaultBtProgressInfoFile.cc
  7521. * src/DefaultBtProgressInfoFile.h
  7522. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. Use Request::METHOD_GET
  7524. * src/RequestGroup.cc (createNextCommandWithAdj)
  7525. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. Defined "OK", "ERR", "INPR" as static const std::string
  7527. * src/RequestGroupMan.cc (showDownloadResults)
  7528. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Defined default client used in extended handshake as static const
  7530. std::string
  7531. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7532. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7534. * src/HttpConnection.cc (eraseConfidentialInfo)
  7535. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Defined default ftp user and password as static const std::string
  7537. * src/AuthConfigFactory.cc
  7538. * src/AuthConfigFactory.h
  7539. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Defined strings used in netrc as static const std::string
  7541. * src/Netrc.cc
  7542. * src/Netrc.h
  7543. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Defined HTTP status as static const std::string
  7545. * src/AbstractProxyResponseCommand.cc
  7546. * src/HttpHeader.cc
  7547. * src/HttpHeader.h
  7548. * src/HttpResponse.cc
  7549. * src/HttpResponseCommand.cc
  7550. * src/HttpSkipResponseCommand.cc
  7551. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Defined "\r\n", "A", "I" as static const std::string
  7553. * src/A2STR.cc
  7554. * src/A2STR.h
  7555. * src/FtpConnection.cc
  7556. * src/FtpConnection.h
  7557. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Added COLON_C(".") and used it in Request::parseUrl()
  7559. * src/A2STR.cc
  7560. * src/A2STR.h
  7561. * src/Request.cc (parseUrl)
  7562. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Changed the type of padName from `const std::string&' to `const char*'.
  7564. * src/MSEHandshake.cc (verifyPadLength)
  7565. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Defined "sha1" as static const std::string.
  7567. * src/MetalinkParserController.cc
  7568. * src/MetalinkParserController.h
  7569. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Defined message digest algorithm name as static const std::string
  7571. * src/DHTTokenTracker.cc
  7572. * src/DHTUtil.cc
  7573. * src/DefaultBtContext.cc
  7574. * src/MSEHandshake.cc
  7575. * src/MessageDigestHelper.cc
  7576. * src/Peer.cc
  7577. * src/messageDigest.cc
  7578. * src/messageDigest.h
  7579. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Made string literals used in SAX parser static const std::string.
  7581. * src/FileMetalinkParserState.cc
  7582. * src/FileMetalinkParserState.h
  7583. * src/FilesMetalinkParserState.cc
  7584. * src/FilesMetalinkParserState.h
  7585. * src/InitialMetalinkParserState.cc
  7586. * src/InitialMetalinkParserState.h
  7587. * src/MetalinkMetalinkParserState.cc
  7588. * src/MetalinkMetalinkParserState.h
  7589. * src/PiecesMetalinkParserState.cc
  7590. * src/PiecesMetalinkParserState.h
  7591. * src/ResourcesMetalinkParserState.cc
  7592. * src/ResourcesMetalinkParserState.h
  7593. * src/VerificationMetalinkParserState.cc
  7594. * src/VerificationMetalinkParserState.h
  7595. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7597. * src/A2STR.cc
  7598. * src/A2STR.h
  7599. * src/File.cc
  7600. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Defined static const std::string IP("ip"), PORT("port") and use them
  7602. instead of string literals.
  7603. * src/DefaultPeerListProcessor.cc
  7604. * src/DefaultPeerListProcessor.h
  7605. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Made string literals for torrent file processing static const
  7607. std::string.
  7608. * src/BtContext.cc
  7609. * src/BtContext.h
  7610. * src/DefaultBtContext.cc
  7611. * src/DefaultBtContext.h
  7612. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Made string literal for tracker response static const std::string
  7614. * src/BtAnnounce.cc
  7615. * src/BtAnnounce.h
  7616. * src/DefaultBtAnnounce.cc
  7617. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Use DHTMessage::T instead of "t".
  7619. * src/DHTMessageTracker.cc (messageArrived)
  7620. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Made keyName static const. Made trimmed charset static const
  7622. std::string.
  7623. * src/Util.cc (getContentDispositionFilename)
  7624. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Made USER_AGENT const. Made "/" static const std::string.
  7626. * src/A2STR.cc
  7627. * src/A2STR.h
  7628. * src/HttpRequest.cc
  7629. * src/HttpRequest.h
  7630. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Made string listeral to static const std::string:
  7632. "Content-Range", "Content-Length"
  7633. * src/HttpHeader.cc
  7634. * src/HttpHeader.h
  7635. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Made string listeral to static const std::string.
  7637. * src/HttpConnection.cc
  7638. * src/HttpHeader.cc
  7639. * src/HttpHeader.h
  7640. * src/HttpResponse.cc
  7641. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Made string listeral to static const std::string.
  7643. * src/A2STR.cc
  7644. * src/A2STR.h
  7645. * src/SimpleLogger.cc
  7646. * src/SimpleLogger.h
  7647. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Made string literal to static const std::string.
  7649. Rewritten CookieParser::setField.
  7650. * src/A2STR.cc
  7651. * src/A2STR.h
  7652. * src/CookieBoxFactory.cc
  7653. * src/CookieBoxFactory.h
  7654. * src/CookieParser.cc
  7655. * src/CookieParser.h
  7656. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Made string literal to static const std::string
  7658. * src/DHTAbstractMessage.cc
  7659. * src/DHTAnnouncePeerMessage.cc
  7660. * src/DHTAnnouncePeerMessage.h
  7661. * src/DHTAnnouncePeerReplyMessage.cc
  7662. * src/DHTAnnouncePeerReplyMessage.h
  7663. * src/DHTFindNodeMessage.cc
  7664. * src/DHTFindNodeMessage.h
  7665. * src/DHTFindNodeReplyMessage.cc
  7666. * src/DHTFindNodeReplyMessage.h
  7667. * src/DHTGetPeersMessage.cc
  7668. * src/DHTGetPeersMessage.h
  7669. * src/DHTGetPeersReplyMessage.cc
  7670. * src/DHTGetPeersReplyMessage.h
  7671. * src/DHTMessage.cc
  7672. * src/DHTMessage.h
  7673. * src/DHTMessageFactoryImpl.cc
  7674. * src/DHTMessageReceiver.cc
  7675. * src/DHTPingMessage.cc
  7676. * src/DHTPingMessage.h
  7677. * src/DHTPingReplyMessage.cc
  7678. * src/DHTPingReplyMessage.h
  7679. * src/DHTQueryMessage.cc
  7680. * src/DHTQueryMessage.h
  7681. * src/DHTResponseMessage.cc
  7682. * src/DHTResponseMessage.h
  7683. * src/DHTUnknownMessage.cc
  7684. * src/DHTUnknownMessage.h
  7685. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Made string literal to static const std::string
  7687. * src/BtChokeMessage.cc (toString)
  7688. * src/BtHaveAllMessage.cc (toString)
  7689. * src/BtHaveNoneMessage.cc (toString)
  7690. * src/BtInterestedMessage.cc (toString)
  7691. * src/BtNotInterestedMessage.cc (toString)
  7692. * src/BtUnchokeMessage.cc (toString)
  7693. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Replaced "" with static const variable A2STR::NIL.
  7695. Replaced string comparison against "" with std::string::empty().
  7696. Added PROTO_* to Request class and use them as a protocol string
  7697. constant.
  7698. Made "started", "stopped", "completed" static const variable in
  7699. AnnounceList class.
  7700. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Updated translations. Great thanks to translators.
  7702. * po/ca.po
  7703. * po/de.po
  7704. * po/fr.po
  7705. * po/it.po
  7706. * po/ja.po
  7707. * po/ru.po
  7708. * po/zh_CN.po
  7709. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Updated man page; categorized options and fixed typo.
  7711. * doc/aria2c.1.txt
  7712. * doc/aria2c.1.html
  7713. * doc/aria2c.1
  7714. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7715. Removed const ref
  7716. * src/MetalinkEntry.cc (AddProtocolPreference)
  7717. * src/RequestGroup.cc (FindServerHostByHostname)
  7718. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Rewritten Accept-Features handling.
  7720. * src/HttpRequestCommand.cc (createHttpRequest)
  7721. * src/a2functional.h
  7722. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Changed method signature:
  7724. DHTAbstractNodeLookupTask::toEntries
  7725. * src/DHTAbstractNodeLookupTask.cc
  7726. * src/DHTAbstractNodeLookupTask.h
  7727. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Changed method signature:
  7729. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7730. * src/BtContext.h
  7731. * src/DefaultBtContext.cc
  7732. * src/DefaultBtContext.h
  7733. * src/DefaultBtInteractive.cc
  7734. * test/DefaultBtContextTest.cc
  7735. * test/MockBtContext.h
  7736. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Changed method signature:
  7738. MultiFileAllocationIterator::makeDiskWriterEntries
  7739. * src/MultiFileAllocationIterator.cc
  7740. * src/MultiFileAllocationIterator.h
  7741. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Changed method sinature:
  7743. MetalinkEntry::toFileEntry,
  7744. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7745. Metalinker::queryEntry
  7746. * src/Metalink2RequestGroup.cc
  7747. * src/MetalinkEntry.cc
  7748. * src/MetalinkEntry.h
  7749. * src/MetalinkHelper.cc
  7750. * src/MetalinkHelper.h
  7751. * src/Metalinker.cc
  7752. * src/Metalinker.h
  7753. * src/main.cc
  7754. * test/MetalinkHelperTest.cc
  7755. * test/MetalinkerTest.cc
  7756. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Changed method sinature:
  7758. RequestGroup::getURIs
  7759. * src/RequestGroup.cc
  7760. * src/RequestGroup.h
  7761. * test/Metalink2RequestGroupTest.cc
  7762. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Changed method signature:
  7764. PeerListProcessor::extractPeer
  7765. * src/CompactPeerListProcessor.cc
  7766. * src/CompactPeerListProcessor.h
  7767. * src/DefaultBtAnnounce.cc
  7768. * src/DefaultPeerListProcessor.cc
  7769. * src/DefaultPeerListProcessor.h
  7770. * src/DelegatingPeerListProcessor.cc
  7771. * src/DelegatingPeerListProcessor.h
  7772. * src/PeerListProcessor.h
  7773. * src/UTPexExtensionMessage.cc
  7774. * test/DefaultPeerListProcessorTest.cc
  7775. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Changed method signature:
  7777. BtRequestFactory::createRequestMessages,
  7778. BtRequestFactory::createRequestMessagesOnEndGame
  7779. * src/BtRequestFactory.h
  7780. * src/DefaultBtInteractive.cc
  7781. * src/DefaultBtRequestFactory.cc
  7782. * src/DefaultBtRequestFactory.h
  7783. * test/DefaultBtRequestFactoryTest.cc
  7784. * test/MockBtRequestFactory.h
  7785. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Changed method signature:
  7787. PieceStorage::getInFlightPieces
  7788. * src/DefaultBtProgressInfoFile.cc
  7789. * src/DefaultPieceStorage.cc
  7790. * src/DefaultPieceStorage.h
  7791. * src/PieceStorage.h
  7792. * src/UnknownLengthPieceStorage.cc
  7793. * src/UnknownLengthPieceStorage.h
  7794. * test/DefaultBtProgressInfoFileTest.cc
  7795. * test/MockPieceStorage.h
  7796. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Changed method signature:
  7798. PostDownloadHandler::getNextRequestGroups
  7799. Metalink2RequestGroup::generate
  7800. RequestGroup::postDownloadProcessing
  7801. * src/BtPostDownloadHandler.cc
  7802. * src/BtPostDownloadHandler.h
  7803. * src/Metalink2RequestGroup.cc
  7804. * src/Metalink2RequestGroup.h
  7805. * src/MetalinkPostDownloadHandler.cc
  7806. * src/MetalinkPostDownloadHandler.h
  7807. * src/PostDownloadHandler.h
  7808. * src/RequestGroup.cc
  7809. * src/RequestGroup.h
  7810. * src/RequestGroupMan.cc
  7811. * src/main.cc
  7812. * test/BtPostDownloadHandlerTest.cc
  7813. * test/Metalink2RequestGroupTest.cc
  7814. * test/MetalinkPostDownloadHandlerTest.cc
  7815. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Rewritten AccRequestGroup
  7817. * src/main.cc
  7818. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Rewritten.
  7820. * src/TaggedItem.cc (toTagString)
  7821. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Rewritten Accept-Features handling.
  7823. * src/HttpRequestCommand.cc (createHttpRequest)
  7824. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Rewritten accept types handling.
  7826. * HttpRequest.cc (createRequest)
  7827. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Rewritten
  7829. * src/FeatureConfig.cc (featureSummary)
  7830. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Changed method signature:
  7832. PeerStorage::getActivePeers
  7833. * src/DHTPeerAnnounceEntry.cc
  7834. * src/DefaultPeerStorage.cc
  7835. * src/DefaultPeerStorage.h
  7836. * src/PeerStorage.h
  7837. * test/DefaultPeerStorageTest.cc
  7838. * test/MockPeerStorage.h
  7839. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Changed method signature:
  7841. DHTPeerAnnounceStorage::getPeers,
  7842. DHTPeerAnnounceEntry::getPeers
  7843. * src/DHTGetPeersMessage.cc
  7844. * src/DHTPeerAnnounceEntry.cc
  7845. * src/DHTPeerAnnounceEntry.h
  7846. * src/DHTPeerAnnounceStorage.cc
  7847. * src/DHTPeerAnnounceStorage.h
  7848. * test/DHTAnnouncePeerMessageTest.cc
  7849. * test/DHTPeerAnnounceEntryTest.cc
  7850. * test/DHTPeerAnnounceStorageTest.cc
  7851. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Changed method signature:
  7853. NameResolver::resolve
  7854. * src/DHTEntryPointNameResolveCommand.cc
  7855. * src/InitiateConnectionCommand.cc
  7856. * src/NameResolver.cc
  7857. * src/NameResolver.h
  7858. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Changed method signature:
  7860. PieceStorage::getAdvertisedPieceIndexes
  7861. * src/DefaultBtInteractive.cc
  7862. * src/DefaultPieceStorage.cc
  7863. * src/DefaultPieceStorage.h
  7864. * src/PieceStorage.h
  7865. * src/UnknownLengthPieceStorage.h
  7866. * test/MockPieceStorage.h
  7867. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Changed method signature:
  7869. SegmentMan::getInFlightSegment
  7870. * src/AbstractCommand.cc
  7871. * src/SegmentMan.cc
  7872. * src/SegmentMan.h
  7873. * test/SegmentManTest.cc
  7874. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Changed method signature:
  7876. DHTAbstractNodeLookupTask::getNodesFromMessage
  7877. * src/DHTAbstractNodeLookupTask.cc
  7878. * src/DHTAbstractNodeLookupTask.h
  7879. * src/DHTNodeLookupTask.cc
  7880. * src/DHTNodeLookupTask.h
  7881. * src/DHTPeerLookupTask.cc
  7882. * src/DHTPeerLookupTask.h
  7883. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7884. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7885. * src/AbstractCommand.cc
  7886. * src/BtCheckIntegrityEntry.cc
  7887. * src/BtCheckIntegrityEntry.h
  7888. * src/BtFileAllocationEntry.cc
  7889. * src/BtFileAllocationEntry.h
  7890. * src/BtSetup.cc
  7891. * src/BtSetup.h
  7892. * src/CheckIntegrityCommand.cc
  7893. * src/CheckIntegrityEntry.h
  7894. * src/ChecksumCheckIntegrityEntry.cc
  7895. * src/ChecksumCheckIntegrityEntry.h
  7896. * src/DHTSetup.cc
  7897. * src/DHTSetup.h
  7898. * src/DownloadEngine.cc
  7899. * src/FileAllocationCommand.cc
  7900. * src/FileAllocationEntry.h
  7901. * src/RequestGroup.cc
  7902. * src/RequestGroup.h
  7903. * src/RequestGroupMan.cc
  7904. * src/RequestGroupMan.h
  7905. * src/StreamCheckIntegrityEntry.cc
  7906. * src/StreamCheckIntegrityEntry.h
  7907. * src/StreamFileAllocationEntry.cc
  7908. * src/StreamFileAllocationEntry.h
  7909. * src/TrackerWatcherCommand.cc
  7910. * src/a2functional.h
  7911. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Changed method signature:
  7913. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7914. DHTBucket::getGoodNodes,
  7915. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7916. * src/BNode.cc
  7917. * src/BNode.h
  7918. * src/DHTAbstractNodeLookupTask.cc
  7919. * src/DHTAutoSaveCommand.cc
  7920. * src/DHTBucket.cc
  7921. * src/DHTBucket.h
  7922. * src/DHTBucketRefreshTask.cc
  7923. * src/DHTFindNodeMessage.cc
  7924. * src/DHTGetPeersMessage.cc
  7925. * src/DHTRoutingTable.cc
  7926. * src/DHTRoutingTable.h
  7927. * test/BNodeTest.cc
  7928. * test/DHTBucketTest.cc
  7929. * test/DHTRoutingTableTest.cc
  7930. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. In piece selection functions, Pass std::deque<...> by reference rather
  7932. than returning it.
  7933. * src/BitfieldMan.cc
  7934. * src/BitfieldMan.h
  7935. * src/DefaultBtRequestFactory.cc
  7936. * src/DefaultPieceStorage.cc
  7937. * src/Piece.cc
  7938. * src/Piece.h
  7939. * test/BitfieldManTest.cc
  7940. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Implemented rarest piece first piece selection strategy.
  7942. * src/AbstractBtMessage.cc
  7943. * src/AbstractBtMessage.h
  7944. * src/BitfieldMan.cc
  7945. * src/BitfieldMan.h
  7946. * src/BtBitfieldMessage.cc
  7947. * src/BtHaveAllMessage.cc
  7948. * src/BtHaveMessage.cc
  7949. * src/DefaultPieceStorage.cc
  7950. * src/DefaultPieceStorage.h
  7951. * src/PeerInteractionCommand.cc
  7952. * src/PieceStorage.h
  7953. * src/UnknownLengthPieceStorage.h
  7954. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Rewritten readData and writeData.
  7956. * src/MultiDiskAdaptor.cc
  7957. * src/MultiDiskAdaptor.h
  7958. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Move \n out of the message "Usage: ...".
  7960. * src/version_usage.cc
  7961. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Bump up version number to 0.13.2b.
  7963. * configure.ac
  7964. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Added const qualifier to argument Exception& e.
  7966. * src/Logger.h
  7967. * src/SimpleLogger.cc
  7968. * src/SimpleLogger.h
  7969. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Pool connection when CWD, SIZE command fails.
  7971. * src/FtpNegotiationCommand.cc
  7972. * src/FtpNegotiationCommand.h
  7973. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7975. * src/HttpResponseCommand.cc
  7976. * src/HttpSkipResponseCommand.cc
  7977. * src/HttpSkipResponseCommand.h
  7978. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7979. Pool connection when a server returns 4xx, 5xx responses.
  7980. * src/HttpNullDownloadCommand.cc
  7981. * src/HttpNullDownloadCommand.h
  7982. * src/HttpResponse.cc
  7983. * src/HttpResponse.h
  7984. * src/HttpResponseCommand.cc
  7985. * src/HttpResponseCommand.h
  7986. * test/HttpResponseTest.cc
  7987. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Print usage when no URL is specifed or bad command-line option is
  7989. specified.
  7990. * src/HelpItemFactory.cc
  7991. * src/help_tags.h
  7992. * src/option_processing.cc
  7993. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Removed duplicate log message.
  7995. * src/AbstractCommand.cc (asyncResolveHostname)
  7996. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7998. Changed -j option's default value from 5 to 1.
  7999. Added new examples using protocol auto detection feature.
  8000. Removed -T, -M usage where it can be omitted.
  8001. * doc/aria2c.1.txt
  8002. * doc/aria2c.1.html
  8003. * doc/aria2c.1.txt
  8004. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Updated command-line usage text, so that it tells users that they
  8006. can specify any number of torrent files and metalink files in
  8007. command-line.
  8008. * src/version_usage.cc
  8009. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. Changed the default value of -j option to 1.
  8011. * src/HelpItemFactory.cc
  8012. * src/option_processing.cc
  8013. * src/usage_text.h
  8014. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added the ability to reuse connection in FTP and it is enabled by
  8016. default. It can be disabled by --ftp-reuse-connection=false option.
  8017. * src/Command.cc
  8018. * src/DownloadCommand.cc
  8019. * src/FtpDownloadCommand.cc
  8020. * src/FtpDownloadCommand.h
  8021. * src/FtpFinishDownloadCommand.cc
  8022. * src/FtpFinishDownloadCommand.h
  8023. * src/FtpInitiateConnectionCommand.cc
  8024. * src/FtpNegotiationCommand.cc
  8025. * src/FtpNegotiationCommand.h
  8026. * src/HelpItemFactory.cc
  8027. * src/Makefile.am
  8028. * src/Makefile.in
  8029. * src/OptionHandlerFactory.cc
  8030. * src/option_processing.cc
  8031. * src/prefs.h
  8032. * src/usage_text.h
  8033. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Call Command::transitStatus() before calling Command::execute(),
  8035. so that the status change made in execute() is not cleared.
  8036. * src/DownloadEngine.cc
  8037. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Removed forward declaration of SocketCore class.
  8039. * src/HttpDownloadCommand.h
  8040. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8042. in InitiateConnectionCommandFactory. They should be set only when
  8043. the protocol is HTTP or HTTPS.
  8044. * src/InitiateConnectionCommandFactory.cc
  8045. * src/RequestGroup.cc
  8046. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Fixed infinite loop in checksum checking.
  8048. * src/IteratableChecksumValidator.cc
  8049. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Set _supportsPersistentConnection to true by default.
  8051. * src/Request.cc
  8052. * src/RequestGroup.cc
  8053. * test/HttpRequestTest.cc
  8054. * test/RequestTest.cc
  8055. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Added timeout to socket pool. The default timeout is 15 seconds,
  8057. which is the same value Apache uses.
  8058. * src/DownloadEngine.cc
  8059. * src/DownloadEngine.h
  8060. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Fixed misuse of multimap::find()
  8062. * src/HttpHeader.cc
  8063. * test/HttpHeaderTest.cc
  8064. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8066. option.
  8067. The asynchronous DNS is not capable of IPv6 yet.
  8068. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8069. least for HTTP download.
  8070. * src/AbstractCommand.cc
  8071. * src/AbstractCommand.h
  8072. * src/AsyncNameResolver.cc
  8073. * src/AsyncNameResolver.h
  8074. * src/DHTEntryPointNameResolveCommand.cc
  8075. * src/DHTEntryPointNameResolveCommand.h
  8076. * src/DownloadEngine.cc
  8077. * src/DownloadEngine.h
  8078. * src/FtpInitiateConnectionCommand.cc
  8079. * src/FtpInitiateConnectionCommand.h
  8080. * src/HelpItemFactory.cc
  8081. * src/HttpInitiateConnectionCommand.cc
  8082. * src/HttpInitiateConnectionCommand.h
  8083. * src/InitiateConnectionCommand.cc
  8084. * src/InitiateConnectionCommand.h
  8085. * src/Makefile.am
  8086. * src/Makefile.in
  8087. * src/NameResolver.cc
  8088. * src/NameResolver.h
  8089. * src/OptionHandlerFactory.cc
  8090. * src/SocketCore.cc
  8091. * src/SocketCore.h
  8092. * src/Util.cc
  8093. * src/Util.h
  8094. * src/option_processing.cc
  8095. * src/prefs.h
  8096. * src/usage_text.h
  8097. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Updated man page: --quiet, --header were added.
  8099. --metalink-servers and --enable-http-keep-alive option were updated.
  8100. * doc/aria2c.1
  8101. * doc/aria2c.1.html
  8102. * doc/aria2c.1.txt
  8103. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Enable HTTP keep-alive by default.
  8105. * src/HelpItemFactory.cc
  8106. * src/option_processing.cc
  8107. * src/usage_text.h
  8108. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Disable http keep-alive if the remote server is not HTTP/1.1.
  8110. * src/HttpConnection.cc
  8111. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Receive content body of 302 response so that the connection can be
  8113. reused later when http keep-alive is enabled.
  8114. * src/HttpNullDownloadCommand.cc
  8115. * src/HttpNullDownloadCommand.h
  8116. * src/HttpResponseCommand.cc
  8117. * src/HttpResponseCommand.h
  8118. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. const SharedHandle<Request> -> const SharedHandle<Request>&
  8120. * src/FtpDowndloadCommand.cc
  8121. * src/FtpDowndloadCommand.h
  8122. * src/HttpDownloadCommand.cc
  8123. * src/HttpDownloadCommand.h
  8124. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Fixed the bug that the control file(.aria2 file) is not renamed
  8126. according to tryAutoFileRenaming().
  8127. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8128. its control file exist, use them and continue download.
  8129. The old implementation didn't take into account of control file's
  8130. existence, so basically you couldn't continue download of renamed file.
  8131. * src/BtProgressInfoFile.h
  8132. * src/DefaultBtProgressInfoFile.cc
  8133. * src/DefaultBtProgressInfoFile.h
  8134. * src/NullProgressInfoFile.h
  8135. * src/RequestGroup.cc
  8136. * test/DefaultBtProgressInfoFileTest.cc
  8137. * test/MockBtProgressInfoFile.h
  8138. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Change the default value of --metalink-servers option from `5' to `1'.
  8140. * src/HelpItemFactory.cc
  8141. * src/option_processing.cc
  8142. * src/usage_text.h
  8143. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Reimplemented transparent metalink using Accept request header.
  8145. * src/HttpRequest.cc
  8146. * src/HttpRequest.h
  8147. * src/HttpRequestCommand.cc
  8148. * src/Metalink2RequestGroup.cc
  8149. * src/RequestGroup.cc
  8150. * src/RequestGroup.h
  8151. * test/HttpRequestTest.cc
  8152. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Bump up version number to 0.13.2a
  8154. * configure.ac
  8155. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Updated configure.ac using the result of autoscan.
  8157. * configure.ac
  8158. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Fixed compilation error without gcrypt/openssl.
  8160. * src/DownloadCommand.cc
  8161. * src/DownloadCommand.h
  8162. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Reorganized version information so that it can be displayed in a
  8164. standard terminal screen without scrolling.
  8165. Removed http, ftp from Configuration section, because they are always
  8166. enabled.
  8167. * src/FeatureConfig.cc
  8168. * src/FeatureConfig.h
  8169. * src/main.cc
  8170. * src/messageDigest.cc
  8171. * src/messageDigest.h
  8172. * src/version_usage.cc
  8173. * test/FeatureConfigTest.cc
  8174. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Masked user ID in log.
  8176. * src/FtpConnection.cc (sendUser)
  8177. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Removed query part from filename in HTTP download. The query part means
  8179. the substring after "?" in URL. Firefox seems do the same thing.
  8180. A query part is sometimes very long and not suitable to filename,
  8181. so I think it is better to remove it from filename.
  8182. * src/HttpRequest.cc
  8183. * src/HttpRequest.h
  8184. * src/Request.cc
  8185. * src/Request.h
  8186. * test/HttpRequestTest.cc
  8187. * test/RequestTest.cc
  8188. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Rewritten Exception class. Throw exception object, not its pointer and
  8190. catch by reference, so that remove problematic delete operator for
  8191. catched exception.
  8192. * src/Exception.cc
  8193. * src/Exception.h
  8194. * test/ExceptionTest.cc
  8195. * src/*: All files throwing/catching exception.
  8196. * test/*: All files throwing/catching exception.
  8197. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Now auto protocol detection is enabled without -Z option.
  8199. But there is a important difference between with/without -Z optoin.
  8200. For example, if you type:
  8201. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8202. then, aria2 interprets there are 3 request groups:
  8203. (1) http://host/file, http://mirror/file <-- multi-source download
  8204. (2) file1.torrent
  8205. (3) file2.metalink
  8206. On the other hand, if you invoke above command with -Z option, it is
  8207. interpreted as 4 request groups:
  8208. (1) http://host/file
  8209. (2) file1.torrent
  8210. (3) file2.metalink
  8211. (4) http://mirror/file
  8212. I think usually user don't mix multi-source URLs and torrent files, so
  8213. there is no big problem here.
  8214. * src/main.cc
  8215. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Fixed the bug that causes segmentaion fault when reading XML containing
  8217. unescapsed character like '&'.
  8218. Also a modification was made which avoids adding unnecessary
  8219. characters stack and appending unused string.
  8220. * src/ExpatMetalinkProcessor.cc
  8221. * src/FileMetalinkParserState.h
  8222. * src/FilesMetalinkParserState.h
  8223. * src/FinMetalinkParserState.h
  8224. * src/HashMetalinkParserState.h
  8225. * src/InitialMetalinkParserState.h
  8226. * src/LanguageMetalinkParserState.h
  8227. * src/MetalinkMetalinkParserState.h
  8228. * src/MetalinkParserState.h
  8229. * src/MetalinkParserStateMachine.cc
  8230. * src/MetalinkParserStateMachine.h
  8231. * src/OSMetalinkParserState.h
  8232. * src/PieceHashMetalinkParserState.h
  8233. * src/PiecesMetalinkParserState.h
  8234. * src/ResourcesMetalinkParserState.h
  8235. * src/SizeMetalinkParserState.h
  8236. * src/SkipTagMetalinkParserState.h
  8237. * src/URLMetalinkParserState.h
  8238. * src/VerificationMetalinkParserState.h
  8239. * src/VersionMetalinkParserState.h
  8240. * src/XML2SAXMetalinkProcessor.cc
  8241. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Added StringFormat class, which internally calls vasprintf.
  8243. operator<< is defined for this class, so it can be used with iostream
  8244. classes nicely. SimpleLogger and following functions are rewritten
  8245. using StringFormat class.
  8246. Besides, now Logger class's methods are non-const, many classes
  8247. that has a const Logger* as a member variable are modified to remove
  8248. const qualifier from the variable declaration.
  8249. * src/HelpItemFactory.cc
  8250. * src/Request.cc
  8251. * src/SimpleLogger.cc
  8252. * src/StringFormat.cc
  8253. * src/StringFormat.h
  8254. * src/Util.cc
  8255. * src/option_processing.cc
  8256. * src/version_usage.cc
  8257. * test/StringFormatTest.cc
  8258. * src/*.h: The classes that has const Logger* as a member variable.
  8259. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8261. failed. Also fixed memory link when exception is thrown there.
  8262. * src/main.cc (AccRequestGroup)
  8263. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Added build-in "Accept-Features" support. For now only "metalink" is
  8265. used in this header field.
  8266. This "metalink" value is removed from the list when connecting URLs
  8267. fed by metalink file to avoid loop in "transparent" metlaink.
  8268. * src/HttpRequest.cc
  8269. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8270. header is also held in this variable. Also renamed setUserHeaders as
  8271. addHeader and it was rewritten to add header not just to clear the old
  8272. value.
  8273. * src/HttpRequestCommand.cc
  8274. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8275. from "Accept-Features" list.
  8276. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8277. default.
  8278. * src/RequestGroup.h
  8279. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8280. * src/a2functional.h: Included <string> because Concat class depends on
  8281. it.
  8282. * test/HttpRequestTest.cc
  8283. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Added comment
  8285. * src/RequestGroup.cc (createNextCommand)
  8286. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Capitalized METHOD_GET and METHOD_HEAD
  8288. * src/Request.cc
  8289. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Added getDownloadResults() method
  8291. * src/RequestGroupMan.cc
  8292. * src/RequestGroupMan.h
  8293. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Fixed the bug that aria2 exits when commands is empty() but
  8295. _routineCommands are not.
  8296. * src/DownloadEngine.cc
  8297. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Use the default value pulled from Option object in HelpItemFactory.
  8299. except options whose defualt value is embedded in a usage text.
  8300. * src/HelpItemFactory.cc
  8301. * src/HelpItemFactory.h
  8302. * src/option_processing.cc
  8303. * src/version_usage.cc
  8304. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. Added --quiet option to make aria2 quiet (no console output).
  8306. --quiet option is tagged with ADVANCED.
  8307. * src/HelpItemFactory.cc
  8308. * src/LogFactory.cc
  8309. * src/LogFactory.h
  8310. * src/MultiUrlRequestInfo.cc
  8311. * src/MultiUrlRequestInfo.h
  8312. * src/NullStatCalc.h: New class. This class prints nothing.
  8313. * src/OptionHandlerFactory.cc
  8314. * src/main.cc
  8315. * src/option_processing.cc
  8316. * src/prefs.h
  8317. * src/usage_text.h
  8318. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8320. * src/HelpItemFactory.cc (createHelpItems):
  8321. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Fixed compilation error in ExpatMetalinkProcessor.cc
  8323. * src/ExpatMetalinkProcessor.cc
  8324. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Reuse socket if the origin server supports HTTP keep-alive and
  8326. --enable-http-keep-alive or --enable-http-pipelining is given.
  8327. The current implementation doesn't reuse the connections established
  8328. against proxy server.
  8329. * src/AbstractCommand.cc
  8330. * src/DownloadEngine.cc
  8331. * src/DownloadEngine.h
  8332. * src/HttpDownloadCommand.cc
  8333. * src/HttpInitiateConnectionCommand.cc
  8334. * src/HttpResponseCommand.cc
  8335. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Rewritten HTTP keep-alive and pipelining routine.
  8337. * src/AbstractCommand.cc
  8338. * src/HttpConnection.cc
  8339. * src/HttpDownloadCommand.cc
  8340. * src/HttpRequest.cc
  8341. * src/HttpRequestCommand.cc
  8342. * src/HttpResponseCommand.cc
  8343. * src/Request.cc
  8344. * src/Request.h
  8345. * src/RequestGroup.cc
  8346. * test/HttpRequestTest.cc
  8347. * test/HttpResponseTest.cc
  8348. * test/RequestTest.cc
  8349. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Added missing setUserHeaders call
  8351. * src/HttpRequestCommand.cc
  8352. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8354. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8355. waste of time because it is more likey false.
  8356. * src/FileAllocationDispatcherCommand.cc (execute)
  8357. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Now HTTP status and version are a member variable of HttpHeader.
  8359. HTTP status is processed as a string, not integer.
  8360. * src/AbstractProxyResponseCommand.cc
  8361. * src/HttpConnection.cc
  8362. * src/HttpHeader.cc
  8363. * src/HttpHeader.h
  8364. * src/HttpHeaderProcessor.cc
  8365. * src/HttpHeaderProcessor.h
  8366. * src/HttpResponse.cc
  8367. * src/HttpResponse.h
  8368. * test/HttpHeaderProcessorTest.cc
  8369. * test/HttpResponseTest.cc
  8370. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Added --header option. You can specify any number of additional HTTP headers
  8372. like:
  8373. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8374. Unlike other commad-line option, you can use --header option multiple times.
  8375. * src/HelpItemFactory.cc
  8376. * src/HttpRequest.{cc, h}
  8377. * src/HttpRequestCommand.cc
  8378. * src/OptionHandlerFactory.cc
  8379. * src/OptionHandlerImpl.h
  8380. * src/option_processing.cc
  8381. * src/prefs.h
  8382. * src/usage_text.h
  8383. * test/HttpRequestTest.cc (testUserHeaders)
  8384. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Eliminates the time lag between sequential downloads and commands in
  8386. the same RequestGroup.
  8387. In old implementation, aria2 occasionally waits 1 seconds before
  8388. executing next command or RequestGroup.
  8389. This is really a waste of time, and new implementation eliminates
  8390. this unnecessary time lag.
  8391. * src/AbstractCommand.cc
  8392. * src/AutoSaveCommand.cc
  8393. * src/CheckIntegrityCommand.cc
  8394. * src/Command.{cc, h}
  8395. * src/DownloadEngine.{cc, h}
  8396. * src/DownloadEngineFactory.cc
  8397. * src/FileAllocationCommand.cc
  8398. * src/FileAllocationDispatcherCommand.cc
  8399. * src/FillRequestGroupCommand.cc
  8400. * src/FtpInitiateConnectionCommand.cc
  8401. * src/HaveEraseCommand.cc
  8402. * src/HttpInitiateConnectionCommand.cc
  8403. * src/HttpResponseCommand.cc
  8404. * src/RealtimeCommand.cc
  8405. * src/RequestGroup.cc
  8406. * src/RequestGroupMan.cc
  8407. * src/StreamFileAllocationEntry.cc
  8408. * src/TimeBasedCommand.{cc, h}
  8409. * src/TimedHaltCommand.cc
  8410. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8412. keyword explicit and SharedHandle's default constructor initializes
  8413. its internal obj to null, old implementation initializes it using
  8414. obj's default constructor.
  8415. To assign null, write SharedHandle<T> x(...); x.reset();
  8416. TODO: test/SharedHandleTest.cc needs more tests.
  8417. * src/SharedHandle.h
  8418. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Fixed type in man page.
  8420. * doc/aria2c.1.txt
  8421. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8423. * src/SimpleLogger.{cc, h}
  8424. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Implemented auto protocol detection.
  8426. Now you can do:
  8427. aria2c -Z http://host/file file1.torrent file2.metalink
  8428. (Note: -Z option is required for auto protcol detection.)
  8429. Then aria2c downloads 3 files simultaneously:
  8430. 1. http://host/file
  8431. 2. file1.torrent <-- read local torrent file
  8432. 3. file2.metalink <-- read local Metalink file.
  8433. Same thing goes with -i option. Assume your uris.txt contans:
  8434. http://host/file
  8435. file1.torrent
  8436. file2.metalink
  8437. Then you can do: aria2c -i uris.txt
  8438. (Note: -Z option is not needed if -i option is given.)
  8439. * src/main.cc
  8440. * src/ProtocolDetector.{cc, h}
  8441. * test/ProtocolDetectorTest.cc
  8442. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8444. installed
  8445. * src/ARC4Encryptor.h
  8446. * src/ARC4Decryptor.h
  8447. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Renamed argument from 'errno' to 'err', since errno is confused with
  8449. errno defined in errno.h.
  8450. * src/LibgcryptARC4Decryptor.h
  8451. * src/LibgcryptARC4Context.h
  8452. * src/LibgcryptDHKeyExchange.h
  8453. * src/LibgcryptARC4Encryptor.h
  8454. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Rewritten choking algorithm.
  8456. * src/PeerChokeCommand.{cc, h}
  8457. * src/BtInterestedMessage.cc
  8458. * src/PeerSessionResource.{cc, h}
  8459. * src/DefaultPeerStorage.{cc, h}
  8460. * src/BtNotInterestedMessage.cc
  8461. * src/DefaultBtMessageDispatcher.{cc, h}
  8462. * src/BtMessageDispatcher.h
  8463. * src/Peer.{cc, h}
  8464. * src/BtLeecherStateChoke.{cc, h}
  8465. * src/BtSetup.cc
  8466. * src/BtSeederStateChoke.{cc, h}
  8467. * src/PeerStorage.h
  8468. * test/MockPeerStorage.h
  8469. * test/MockBtMessageDispatcher.h
  8470. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Fixed compilation error on x84-64 platform.
  8472. * src/AuthConfig.cc: Included ostream.
  8473. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Rewritten getBasename() and getDirname(), without standard library
  8475. basename(), dirname().
  8476. * src/File.cc
  8477. * test/FileTest.cc
  8478. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Added Simplified Chinese translation. Also updated the following
  8480. translations: Polish, Dutch, German. Great thanks to all translators.
  8481. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Suppress content-range error when 'Content-Range' response header
  8483. doesn't contains bytes-unit specifier 'bytes'
  8484. * src/HttpHeader.cc (getRange)
  8485. * test/HttpHeaderTest.cc
  8486. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Fixed compilation error with g++-4.3
  8488. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Added missing include files for MinGW
  8490. * test/HttpHeaderProcessorTest.cc
  8491. * test/DHTRoutingTableSerializerTest.cc
  8492. * test/DHTRoutingTableDeserializerTest.cc
  8493. * test/UriListParserTest.cc
  8494. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Now download line is printed nicely with no garbage at the end of
  8496. line. I use ioctl to get the columns of terminal.
  8497. If stdout is redirected to another device, instead of carriage return,
  8498. end of line '\n' character is used. This is feature request#1909659
  8499. * src/ConsoleStatCalc.cc (calculateStat)
  8500. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Included a2time.h
  8502. * src/DHTMessageDispatcher.h
  8503. * src/DHTMessageEntry.h
  8504. * src/DHTReplaceNodeTask.h
  8505. * src/DHTMessageTracker.h
  8506. * src/Util.h
  8507. * src/CookieBox.h
  8508. * src/SocketCore.h
  8509. * src/DefaultBtMessageDispatcher.h
  8510. * src/SocketCore.cc
  8511. * src/Util.cc
  8512. * src/DHTPingTask.h
  8513. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Fixed high memory footprint when DHT is enabled.
  8515. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8516. queued than it is processed and the queue is getting longer. As a
  8517. consequence, momory usage is increased.
  8518. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8519. replacement cache in DHTBucket which is described in Kademlia paper.
  8520. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8521. DHTReplaceNodeTask.
  8522. * src/DHTBucket.{h, cc}
  8523. (cacheNode): New function.
  8524. (getCachedNodes): New function.
  8525. (dropNode): Push back cached node to _nodes.
  8526. * test/DHTBucketTest.cc
  8527. (testCacheNode): New test
  8528. (testDropNode): New test
  8529. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8531. the unused 4KB memory when ssl is not used.
  8532. * src/SocketCore.cc
  8533. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Added summary log for peer announce storage.
  8535. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8536. Removed cast
  8537. * src/DefaultPeerStorage.cc (addPeer)
  8538. Log exception message
  8539. * src/DHTMessageTracker.cc (handleTimeout)
  8540. Fixed casting
  8541. * test/HttpRequestTest.cc
  8542. * test/MetalinkProcessorTest.cc
  8543. * test/PieceTest.cc
  8544. * test/MetalinkEntryTest.cc
  8545. * test/SequenceTest.cc
  8546. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. * src/ParameterizedStringParser.cc (createLoop):
  8548. Removed unused variable sstep.
  8549. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8550. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. * src/Util.{h, cc}
  8552. (parseUInt): New function.
  8553. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8554. The actual range is uint32_t.
  8555. * test/UtilTest.cc
  8556. * src/ParameterizedStringParser.cc:
  8557. Use Util::parseUInt() for loop variables.
  8558. * test/ParameterizedStringParserTest.cc
  8559. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8560. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Rewritten the functions for binding port.
  8562. * src/DHTConnectionImpl.{h, cc}
  8563. * src/PeerListenCommand.{h, cc}
  8564. * src/DHTSetup.cc
  8565. * src/BtSetup.cc
  8566. * test/DHTConnectionImplTest.cc
  8567. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. type cleanup for allmost all remaining files.
  8569. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Type clarification
  8571. * src/PeerSessionResource.{h, cc}
  8572. * src/DefaultPieceStorage.{h, cc}
  8573. * src/Peer.{h, cc}
  8574. * test/PeerSessionResourceTest.cc
  8575. Use div function
  8576. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8577. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Type clarification
  8579. * src/DefaultPeerStorage.{h, cc}
  8580. * test/DefaultPeerStorageTest.cc
  8581. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Type clarification: size_t for length or size, uint64_t for file
  8583. length, off_t for file offset.
  8584. * src/DefaultBtProgressInfoFile.cc
  8585. * src/DefaultBtContext.{h, cc}
  8586. * src/DefaultBtInteractive.cc
  8587. * src/DownloadCommand.{h, cc}
  8588. * src/IteratableChunkChecksumValidator.{h, cc}
  8589. * src/SegmentMan.{h, cc}
  8590. * src/SingleFileDownloadContext.{h, cc}
  8591. * src/IteratableChecksumValidator.{h, cc}
  8592. * src/BtContext.h
  8593. * src/IteratableValidator.h
  8594. * src/DownloadContext.h
  8595. * test/SingleFileDownloadContextTest.cc
  8596. * test/DefaultBtContextTest.cc
  8597. * test/MockBtContext.h
  8598. * test/Metalink2RequestGroupTest.cc
  8599. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Type clarification: size_t for length or size, uint64_t for file
  8601. length, off_t for file offset.
  8602. * src/PiecedSegment.cc
  8603. * src/GrowSegment.h
  8604. * src/DefaultBtRequestFactory.h
  8605. * src/DefaultBtProgressInfoFile.cc
  8606. * src/UnknownLengthPieceStorage.h
  8607. * src/DefaultPieceStorage.cc
  8608. * src/UnknownLengthPieceStorage.cc
  8609. * src/DefaultBtInteractive.cc
  8610. * src/GrowSegment.cc
  8611. * src/BitfieldMan.h
  8612. * src/DownloadCommand.cc
  8613. * src/BtRequestFactory.h
  8614. * src/PiecedSegment.h
  8615. * src/DefaultPieceStorage.h
  8616. * src/Piece.cc
  8617. * src/DefaultBtRequestFactory.cc
  8618. * src/PieceStorage.h
  8619. * src/Segment.h
  8620. * src/Piece.h
  8621. * src/BitfieldMan.cc
  8622. * src/Util.cc
  8623. * test/DefaultBtProgressInfoFileTest.cc
  8624. * test/DefaultPieceStorageTest.cc
  8625. * test/MockPieceStorage.h
  8626. * test/BtRequestMessageTest.cc
  8627. * test/DefaultBtMessageDispatcherTest.cc
  8628. * test/BitfieldManTest.cc
  8629. * test/GrowSegmentTest.cc
  8630. * test/PieceTest.cc
  8631. * test/SegmentTest.cc
  8632. * test/SegmentManTest.cc
  8633. * test/DefaultBtRequestFactoryTest.cc
  8634. * test/MockBtRequestFactory.h
  8635. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Fixed compilation error with --disable-nls
  8637. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8638. in gettext.h causes the problem.
  8639. * src/common.h
  8640. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Removed subPiece related functions.
  8642. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8643. * src/DefaultPieceStorage.{h, cc}
  8644. * test/PieceTest.cc
  8645. * test/DefaultPieceStorageTest.cc
  8646. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Use unsigned char for data store.
  8648. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Bump up version number to 0.13.0+1
  8650. * configure.ac
  8651. * Release 0.13.0+1
  8652. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Changed inactive connection timeout to 120.
  8654. To accept more mulually interested peers, disconnect peer when there
  8655. is no interest between us after certain time passed.
  8656. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8657. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8659. when compiled with async DNS support.
  8660. * src/DownloadEngine.cc
  8661. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8662. value '10' will be a little bit short when some DNS servers are
  8663. offline and several DNS servers are tried. It should be configured
  8664. by command-line option.
  8665. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Merged Ross's mingw patch.
  8667. * src/DHTRoutingTableDeserializer.cc
  8668. * src/DHTRoutingTableSerializer.cc
  8669. * src/Platform.{h, cc}
  8670. * src/timegm.h
  8671. * src/gettimeofday.h
  8672. * src/getaddrinfo.h
  8673. * src/SocketCore.h
  8674. * src/common.h
  8675. * src/inet_aton.h
  8676. * src/DownloadEngine.h
  8677. * src/gai_strerror.h
  8678. * src/a2netcompat.h
  8679. * configure.ac
  8680. * configure
  8681. * aclocal.m4
  8682. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Included missing iostream.
  8684. * test/AllTest.cc
  8685. * test/BtDependencyTest.cc
  8686. * test/BtExtendedMessageTest.cc
  8687. * test/DHTConnectionImplTest.cc
  8688. * test/DHTMessageFactoryImplTest.cc
  8689. * test/DHTMessageTrackerEntryTest.cc
  8690. * test/DHTNodeTest.cc
  8691. * test/DHTRoutingTableSerializerTest.cc
  8692. * test/DefaultBtAnnounceTest.cc
  8693. * test/DefaultBtContextTest.cc
  8694. * test/DefaultBtMessageFactoryTest.cc
  8695. * test/DefaultExtensionMessageFactoryTest.cc
  8696. * test/HandshakeExtensionMessageTest.cc
  8697. * test/HttpResponseTest.cc
  8698. * test/MetalinkProcessorTest.cc
  8699. * test/MultiFileAllocationIteratorTest.cc
  8700. * test/SocketCoreTest.cc
  8701. * test/UTPexExtensionMessageTest.cc
  8702. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Reorganized includes.
  8704. * src/NameResolver.cc
  8705. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Fixed compilation error without ares/c-ares
  8707. * src/NameResolver.h:
  8708. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Added a test for large file.
  8710. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8711. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Fixed the bug that file size is ignored if size > INT32_MAX
  8713. * src/SizeMetalinkParserState.cc (endElement):
  8714. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Bump up version number to 0.13.0
  8716. * configure.ac
  8717. * Release 0.13.0
  8718. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Updated Makfefile.am to make 'make dist' work.
  8720. Now packaged filename is aria2c-VERSION.tar.bz2.
  8721. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8722. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8723. Large file support is now configured by configure script.
  8724. * configure.ac
  8725. Removed unsused source files
  8726. * src/
  8727. * test/
  8728. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8729. Peer.h and BtContext.h respectively.
  8730. * src/Peer.h
  8731. * src/BtContext.h
  8732. Updated translations.
  8733. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8734. translations. Great thanks to all translators!;)
  8735. * po/*.{po, gmo}
  8736. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8738. statically declared sha1 MessageDigestContext.
  8739. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8740. initialization of short-lived MessageDigestContext.
  8741. * src/MessageDigestHelper.{h, cc}
  8742. * src/main.cc
  8743. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8744. the initialization of MessageDigestContext every time in validating
  8745. chunk checksum.
  8746. * src/DownloadCommand.{h, cc}
  8747. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Add a file descriptor which connected to fast peer(latency<1500) to
  8749. select(). This change reduced CPU load.
  8750. * src/PeerInteractionCommand.cc
  8751. * src/DefaultBtInteractive.{h, cc}
  8752. * src/BtInteractive.h
  8753. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Fixed the previous insufficient fix for possible busy loop.
  8755. * src/MSEHandshake.cc (identifyHandshakeType)
  8756. Removed unused functions.
  8757. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8758. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Fixed possible busy loop if first 20 bytes are not received for a few
  8760. minutes.
  8761. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8762. * src/ReceiverMSEHandshakeCommand.cc
  8763. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Fixed compilation error
  8765. * src/ExpatMetalinkProcessor.cc
  8766. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8768. * src/DHTBucket.cc
  8769. Removed unnecessary cast.
  8770. * src/HandshakeExtensionMessage.cc
  8771. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8773. is missing.
  8774. * src/OptionHandlerFactory.cc
  8775. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Fixed the bug that HAVE message is not sent for a piece they are
  8777. downloaded fom http/ftp server before any BitTorrent handshake is done
  8778. with peers.
  8779. * src/DefaultBtInteractive.cc
  8780. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8782. * src/Makefile.am
  8783. * src/Makefile.in
  8784. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Updated README. Added html version of README and man page.
  8786. * README
  8787. * README.html
  8788. * readme2html: Shell script to generate README.html from README using
  8789. asciidoc.
  8790. * doc/aria2c.1.html
  8791. * doc/makeman: Added the line to generate aria2c.1.html
  8792. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Fixed offset calculation.
  8794. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8795. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Rewritten itos and uitos using template. llitos and ullitos are
  8797. replaced with itos and uitos respectively.
  8798. * src/Util.{h, cc}
  8799. * test/UtilTest.cc
  8800. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8802. of the number of bytes required for storing public key and shared
  8803. secret.
  8804. * src/LibgcryptDHKeyExchange.h
  8805. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8806. * src/MSEHandshake.cc
  8807. * test/DHKeyExchangeTest.cc
  8808. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Removed since they are not used.
  8810. * src/Xml2MetalinkProcessor.{h, cc}
  8811. * src/Socket.cc
  8812. * src/SegmentSplitter.{h, cc}
  8813. * test/Xml2MetalinkProcessorTest.cc
  8814. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Fixed the bug that prevents aria2 from stopping other than by pressing
  8816. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8817. option. aria2 doesn't stop even after --seed-time is satisfied and
  8818. continues to output blank lines in the console.
  8819. * src/ReceiverMSEHandshakeCommand.cc
  8820. * src/PeerReceiveHandshakeCommand.cc
  8821. * src/PeerListenCommand.cc
  8822. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Bump up version number to 0.13.0rc
  8824. * configure.ac
  8825. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Updated man page and some usage text.
  8827. * doc/aria2c.1.txt
  8828. * src/usage_text.h
  8829. * po/*.{po, gmo}
  8830. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Updated translations. Added Finnish and Hebrew translations.
  8832. Great thanks to all translators!
  8833. * po/*.{po, gmo}
  8834. * po/LINGUAS
  8835. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Log more detailed information about each message.
  8837. * src/DHTQueryMessage.{h, cc}
  8838. * src/DHTGetPeersMessage.{h, cc}
  8839. * src/DHTFindNodeReplyMessage.{h, cc}
  8840. * src/DHTGetPeersReplyMessage.{h, cc}
  8841. * src/DHTAnnouncePeerMessage.{h, cc}
  8842. * src/DHTResponseMessage.{h, cc}
  8843. * src/DHTFindNodeMessage.{h, cc}
  8844. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Use constants defined in prefs.h
  8846. * src/option_processing.cc
  8847. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8849. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Make room for future enchancements for IPv6 addresses.
  8851. Bump up version number of dht.dat file format to 2.
  8852. Not compatible with previous version.
  8853. * src/DHTRoutingTableSerializer.cc
  8854. * src/DHTRoutingTableDeserializer.cc
  8855. * test/DHTRoutingTableSerializerTest.cc
  8856. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Added handling for the return values from
  8858. PeerMessageUtil::createcompact().
  8859. * src/DefaultBtContext.cc (computeFastSet):
  8860. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Fixed abort when peer's ip address is IPv4-mapped address.
  8862. * src/DefaultBtContext.cc (computeFastSet)
  8863. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8864. cannot handle IPv4-mapped addresses.
  8865. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8866. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Proper return value handling for OpenSSL functions.
  8868. * src/LibsslDHKeyExchange.h
  8869. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Random bytes generation using libgcrypt and OpenSSL.
  8871. * src/DHTUtil.{h, cc}
  8872. * test/DHTUtilTest.cc
  8873. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8875. received.
  8876. * src/DHTMessageReceiver.cc (receiveMessage)
  8877. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Fixed the bug that a return code is always 0. BUG#1897704
  8879. If error occurred during the download or there exist unfinished
  8880. downloads, aria2 returns with code 1.
  8881. * src/RequestGroupMan.{h, cc}
  8882. * src/MultiUrlRequestInfo.{h, cc}
  8883. * src/main.cc
  8884. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. IPv6 support for SocketCore class.
  8886. TODO: In SocketCore::establishConnection(), this is insufficient to
  8887. determin the failure of connect() here because the socket is
  8888. non-blocking state. The next addresses should be tried after select().
  8889. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8890. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8891. instead which address family independent.
  8892. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8893. information in a compact peer format which is for IPv4 only.
  8894. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8895. this is a spec of BitTorrent protocol.
  8896. * src/SocketCore.{h, cc}
  8897. * src/PeerMessageUtil.cc
  8898. * test/SocketCoreTest.cc
  8899. * test/PeerMessageUtilTest.cc
  8900. * test/DHTConnectionImplTest.cc
  8901. Handle IPv4-mapped addresses.
  8902. * src/DHTNode.cc: Now identity is determined by node id.
  8903. * src/DHTMessageTrackerEntry.cc
  8904. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8905. should handle it.
  8906. * src/DHTRoutingTableDeserializer.cc
  8907. * src/DHTMessageFactoryImpl.cc
  8908. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Change the unit of --stop option from a minute to a second.
  8910. * src/usage_text.h
  8911. * src/DownloadEngineFactory.cc
  8912. * src/OptionHandlerFactory.cc
  8913. * src/message.h
  8914. * src/TimedHaltCommand.cc
  8915. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Make listening socket non-block mode.
  8917. * src/FtpConnection.cc
  8918. * src/FtpNegotiationCommand.{h, cc}
  8919. * src/PeerListenCommand.cc
  8920. Fixed the bug that cause slow ftp negotiation.
  8921. * src/FtpNegotiationCommand.{h, cc}
  8922. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Added basic tag to --enable-dht, --dht-listen-port option.
  8924. * src/HelpItemFactory.cc (createHelpItems)
  8925. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8926. Updated text.
  8927. * src/usage_text.h
  8928. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8930. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Determin _threadtholdSpeed in each constructor for
  8932. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8933. * src/ActivePeerConnectionCommand.{h, cc}
  8934. * src/PeerReceiveHandshakeCommand.{h, cc}
  8935. * src/BtSetup.cc
  8936. * src/BtConstants.h
  8937. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Added --bt-min-crypto-level and --bt-require-crypto options.
  8939. * src/OptionHandlerFactory.cc
  8940. * src/MSEHandshake.cc
  8941. * src/HelpItemFactory.cc
  8942. * src/option_processing.cc
  8943. * src/ReceiverMSEHandshakeCommand.cc
  8944. * src/prefs.h
  8945. * src/DefaultBtAnnounce.cc
  8946. * src/InitiatorMSEHandshakeCommand.cc
  8947. * src/usage_text.h
  8948. * test/MSEHandshakeTest.cc
  8949. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8950. Bump version number to 0.13.0b
  8951. * configure.ac
  8952. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Updated doc.
  8954. * src/MessageDigestHelper.h:
  8955. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Use raw message digest as a token instead of its hexadecimal
  8957. representation.
  8958. * src/DHTTokenTracker.cc (generateToken)
  8959. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Added Message Stream Encryption(MSE) support.
  8961. Currently, aria2 accepts incoming connections with Obfuscation Header
  8962. and legacy BitTorrent Header and establishes connections with
  8963. Obfuscation Header first and if failed then retry with legacy
  8964. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8965. choose ARC4. The new option to change the default behavior is planned.
  8966. For tracker extension, "supportcrypto=1" is added statically.
  8967. * src/PeerInitiateConnectionCommand.{h, cc}
  8968. * src/PeerConnection.{h, cc}
  8969. * src/HandleRegistry.h
  8970. * src/SocketCore.h
  8971. * src/PeerReceiveHandshakeCommand.{h, cc}
  8972. * src/BtRegistry.{h, cc}
  8973. * src/PeerListenCommand.cc
  8974. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8975. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8976. * src/MSEHandshake.{h, cc}
  8977. * src/ARC4Encryptor.h
  8978. * src/ARC4Decryptor.h
  8979. * src/LibgcryptARC4Encryptor.h
  8980. * src/LibgcryptARC4Decryptor.h
  8981. * src/LibgcryptARC4Context.h
  8982. * src/LibsslARC4Encryptor.h
  8983. * src/LibsslARC4Decryptor.h
  8984. * src/LibsslARC4Context.h
  8985. * src/DHKeyExchange.h
  8986. * src/LibgcryptDHKeyExchange.h
  8987. * src/LibsslDHKeyExchange.h
  8988. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8989. * test/DefaultBtAnnounceTest.cc
  8990. * test/ARC4Test.cc
  8991. * test/DHKeyExchangeTest.cc
  8992. Removed prepareForRetry() because it is not used.
  8993. * src/PeerAbstractCommand.{h, cc}
  8994. * src/PeerInteractionCommand.{h, cc}
  8995. * src/PeerInitiateConnectionCommand.{h, cc}
  8996. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Added the ability to load nodes from torrent file. These nodes are
  8998. added to the routing table when downloading that torrent.
  8999. * src/BtContext.h
  9000. * src/DefaultBtContext.{h, cc}
  9001. * src/DHTSetup.cc
  9002. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9003. hostname and port pair, and resolves all of them.
  9004. * src/NameResolver.{h, cc}: Added reset().
  9005. * src/RequestGroup.cc
  9006. * test/DefaultBtContextTest.cc
  9007. * test/MockBtContext.h
  9008. Removed assert() from DefaultBtContext and throw exception instead.
  9009. * src/DefaultBtContext.cc
  9010. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Fixed segmentation fault bug when exiting if dht is disabled.
  9012. * src/RequestGroup.cc
  9013. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Fixed typo in log message and define the message in message.h
  9015. * src/TimedHaltCommand.cc
  9016. * src/message.h
  9017. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Included RecoverableException.h to fix compilation error.
  9019. * test/DHTMessageFactoryImplTest.cc
  9020. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9022. * test/DHTPingMessageTest.cc
  9023. * test/DHTGetPeersMessageTest.cc
  9024. * test/DHTFindNodeMessageTest.cc
  9025. * test/DHTAnnouncePeerMessageTest.cc
  9026. * test/MockDHTMessage.h
  9027. * test/MockDHTMessageFactory.h
  9028. * test/MockDHTMessageDispatcher.h: New class.
  9029. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9031. virtual.
  9032. * src/DHTMessageDispatcher.h
  9033. * src/DHTMessageDispatcherImpl.{h, cc}
  9034. * src/DHTSetup.cc
  9035. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Adding handling of DHT error message. Just log error message and
  9037. throw exception.
  9038. * src/DHTMessageFactoryImpl.cc
  9039. * test/DHTMessageFactoryImplTest.cc
  9040. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Added handling of dynamic cast failure.
  9042. * src/DHTNodeLookupTask.cc
  9043. * src/DHTPeerLookupTask.cc
  9044. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Added the ability to stop aria2 itself when given time has passed
  9046. from start. Use --stop option to specify time in minutes.
  9047. When 0 is given, this feature is disabled.
  9048. * src/OptionHandlerFactory.cc
  9049. * src/TimeBasedCommand.h: Make _interval protected scope.
  9050. * src/HelpItemFactory.cc
  9051. * src/option_processing.cc
  9052. * src/prefs.h
  9053. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9054. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9055. Without this modification, the result list shows "ERR" when aria2 is
  9056. stopped by --stop option. It should be "INPR".
  9057. * src/DownloadEngine.{h, cc}
  9058. * src/DownloadEngineFactory.cc
  9059. * src/usage_text.h
  9060. * src/TimedHaltCommand.{h, cc}: New class.
  9061. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Bootstrap through node added by port message.
  9063. Currently bootstrap is executed if the number of buckets in routing
  9064. table is 1.
  9065. * src/BtPortMessage.{h, cc}
  9066. * src/DefaultBtMessageFactory.{h, cc}
  9067. * src/PeerInteractionCommand.cc
  9068. * test/BtPortMessageTest.cc
  9069. * test/MockDHTTask.h
  9070. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Extract the Peer class's member variables, which are only needed after
  9072. PeerInteractionCommand, into PeerSessionResource class.
  9073. This class is instantiated in PeerInteractionCommand class's ctor and
  9074. released in its dtor.
  9075. This will make Peer class lightweight and uses less memory for peers
  9076. which are not connected and wait in the queue.
  9077. * src/PeerChokeCommand.cc
  9078. * src/PeerSessionResource.{h, cc}
  9079. * src/PeerInteractionCommand.cc
  9080. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9081. * src/DefaultBtInteractive.cc
  9082. * src/BtPieceMessage.cc
  9083. * src/BtInterestedMessage.cc
  9084. * src/BtUnchokeMessage.cc
  9085. * src/DefaultPeerStorage.{h, cc}
  9086. * src/PeerInitiateConnectionCommand.cc
  9087. * src/ActivePeerConnectionCommand.cc
  9088. * src/BtNotInterestedMessage.cc
  9089. * src/DefaultBtMessageDispatcher.cc
  9090. * src/BtChokeMessage.cc
  9091. * src/BtRequestMessage.cc
  9092. * src/Peer.{h, cc}
  9093. * src/BtRegistry.h
  9094. * src/TrackerWatcherCommand.cc
  9095. * src/PeerReceiveHandshakeCommand.cc
  9096. * test/BtExtendedMessageTest.cc
  9097. * test/BtAllowedFastMessageTest.cc
  9098. * test/BtCancelMessageTest.cc
  9099. * test/DefaultPieceStorageTest.cc
  9100. * test/BtBitfieldMessageTest.cc
  9101. * test/BtHaveMessageTest.cc
  9102. * test/BtNotInterestedMessageTest.cc
  9103. * test/BtRequestMessageTest.cc
  9104. * test/PeerSessionResourceTest.cc
  9105. * test/DefaultBtMessageDispatcherTest.cc
  9106. * test/PeerTest.cc
  9107. * test/BtInterestedMessageTest.cc
  9108. * test/BtRejectMessageTest.cc
  9109. * test/BtChokeMessageTest.cc
  9110. * test/DefaultPeerStorageTest.cc
  9111. * test/BtHaveNoneMessageTest.cc
  9112. * test/BtHaveAllMessageTest.cc
  9113. * test/DefaultExtensionMessageFactoryTest.cc
  9114. * test/BtUnchokeMessageTest.cc
  9115. * test/DefaultBtMessageFactoryTest.cc
  9116. * test/HandshakeExtensionMessageTest.cc
  9117. * test/UTPexExtensionMessageTest.cc
  9118. * test/DefaultBtRequestFactoryTest.cc
  9119. * test/BtPieceMessageTest.cc
  9120. Removed typedef PeerStats.
  9121. * src/PeerStat.h
  9122. * src/SegmentMan.cc
  9123. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Added std namespace to copy, remove_copy, back_inserter,
  9125. front_inserter.
  9126. * src/RequestGroupMan.cc
  9127. * src/DefaultPieceStorage.cc
  9128. * src/StreamFileAllocationEntry.cc
  9129. * src/BtFileAllocationEntry.cc
  9130. * src/RequestGroup.cc
  9131. * src/MetalinkEntry.cc
  9132. * src/DelegatingPeerListProcessor.cc
  9133. * src/DefaultBtRequestFactory.cc
  9134. * src/DefaultBtMessageDispatcher.cc
  9135. * src/version_usage.cc: Included <algorithm>
  9136. * src/main.cc
  9137. * src/MetalinkParserController.cc
  9138. * src/DefaultBtContext.cc
  9139. * src/DownloadEngineFactory.cc
  9140. * src/a2algo.h
  9141. Removed.
  9142. * test/StreamUriListParserTest.cc
  9143. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9145. ActivePeerConnectionCommand when it is given and
  9146. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9147. * src/ActivePeerConnectionCommand.{h, cc}
  9148. * src/BtSetup.cc
  9149. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. Only add socket to DownloadEngine's select routine when peer or
  9151. localhost is unchoked and interested. This lowers CPU usage a
  9152. little bit.
  9153. * src/PeerInteractionCommand.cc
  9154. * src/PeerAbstractCommand.{h, cc}
  9155. * src/BtInteractive.h
  9156. * src/DefaultBtInteractive.{h, cc}
  9157. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Revert previous change because get_peers message is needed for
  9159. announce_peer anyway.
  9160. * src/DHTGetPeersCommand.cc
  9161. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Request peers thought DHT only when download hasn't finished.
  9163. * src/DHTGetPeersCommand.cc
  9164. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9166. * src/DHTBucketRefreshTask.{h, cc}
  9167. * src/DHTSetup.cc
  9168. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9170. standard classes.
  9171. Included string.h where mem* function are used.
  9172. Added namespace aria2.
  9173. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Create directory before saving DHT routing table.
  9175. Now ios::failure is now handled properly.
  9176. * src/DHTAutoSaveCommand.cc
  9177. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Removed unnecessary cerr.
  9179. * src/DownloadEngine.cc
  9180. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Catch exception inside DHTMessageReceiver::receiveMessage().
  9182. Log unknown message.
  9183. * src/DHTMessageReceiver.{h, cc}
  9184. * src/DHTMessageFactory.h
  9185. * src/DHTMessageFactoryImpl.{h, cc}
  9186. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9187. * src/DHTInteractionCommand.cc
  9188. * src/DHTUnknownMessage.{h, cc}
  9189. * test/DHTUnknownMessageTest.cc
  9190. * test/MockDHTMessageFactory.h
  9191. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Commented out ip address comparison because a host can have multiple
  9193. ip addresses and it is hard to predict the hostname is resolved into
  9194. which one.
  9195. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9196. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. * po/Makefile.in: Removed since this is generated by configure.
  9198. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Fixed compiler warning about redefinition of SIZE_MAX.
  9200. Use common.h instead of config.h directly here.
  9201. * src/Platform.{h, cc}
  9202. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9203. here.
  9204. * common.h
  9205. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9206. Updated gettext related files.
  9207. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9208. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9209. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Added DHT functionality, compatible with mainline.
  9211. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9212. You may need to specify entry point to DHT network using
  9213. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9214. Use --dht-listen-port to specify port number. Make sure that your
  9215. firewall configuration can pass through UDP traffic to the port.
  9216. The routing table is saved in $HOME/.aria2/dht.dat.
  9217. * src/DHT*
  9218. * src/BNode.{h, cc}
  9219. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9220. particular torrent.
  9221. * src/Data.cc: Rewritten ctor.
  9222. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9223. --dht-entry-point.
  9224. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9225. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9226. ends, remove BtContext from DHTPeerAnnounceStorage.
  9227. * src/BtPortMessage.{h, cc}: Rewritten.
  9228. * src/message.h
  9229. * src/OptionHandlerImpl.cc
  9230. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9231. --dht-entry-point.
  9232. * src/Dictionary.{h, cc} (remove): New function.
  9233. * src/prefs.h
  9234. * src/DefaultBtMessageFactory.h
  9235. * src/BtHandshakeMessage.cc
  9236. * src/ActivePeerConnectionCommand.cc
  9237. * src/SocketCore.{h, cc}: Added datagram socket support.
  9238. * src/DefaultBtMessageFactory.cc
  9239. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9240. Create DHT commands.
  9241. * src/BtMessageFactory.h
  9242. * src/PeerMessageUtil.{h, cc}
  9243. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Fixed the bug that log file is not written when configuration file doesn't exist.
  9245. This is caused by using Logger class before LogFactory is not configured.
  9246. BUG #1875079
  9247. * src/option_processing.cc
  9248. Warning message "configuration doesn't exist" is only printed when --conf is
  9249. given.
  9250. * src/option_processing.cc
  9251. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9253. ShaVisitor is now deprecated and slated to be removed.
  9254. * src/DefaultBtContext.cc
  9255. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Externalize message to message.h
  9257. * src/Platform.cc
  9258. * src/message.h
  9259. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Set default domain and default path to cookie.
  9261. * src/HttpResponse.cc
  9262. * src/CookieBox.{h, cc}
  9263. * src/CookieParser.{h, cc}
  9264. * test/CookieParserTest.cc
  9265. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Added --no-conf and --conf-path command-line option.
  9267. --no-conf option disables loading aria2.conf file.
  9268. --conf-path option changes the configuration file path. The default
  9269. file path is $HOME/.aria2/aria2.conf
  9270. Added a warning message when the configuration file is not found.
  9271. * src/HelpItemFactory.cc
  9272. * src/option_processing.cc
  9273. * src/prefs.h
  9274. * src/usage_text.h
  9275. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9276. Added the message to inform users that other help categories are
  9277. available in -h option.
  9278. * src/version_usage.cc
  9279. * src/TagContainer.{h, cc}
  9280. * test/TagContainerTest.cc
  9281. * src/TaggedItem.{h, cc}
  9282. * test/TaggedItemTest.cc
  9283. * src/HelpItem.h
  9284. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9286. from PiecedSegment's ctor.
  9287. Previously Piece::getAllMissingBlockIndexes() is called from
  9288. PiecedSegment() but it is rather expensive since only first element is
  9289. used.
  9290. * src/PiecedSegment.cc
  9291. * src/Piece.{h, cc}
  9292. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9294. each time these functions are called.
  9295. * src/BitfieldMan.{h, cc}
  9296. * test/BitfieldManTest.cc
  9297. * src/array_fun.h
  9298. * test/array_funTest.cc
  9299. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9300. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9301. filtered. Removed unnecessary cast to int32_t.
  9302. * src/BitfieldMan.{h, cc}
  9303. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9305. payload length(4bytes) are received. This happens because lenbufLength
  9306. is not updated in this particular case and successive call of
  9307. receiveMessage() overwrites payload length with bytes recieved which
  9308. are payload body.
  9309. * src/PeerConnection.{h, cc}
  9310. * src/message.h
  9311. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9313. peer if there are peers that have same ipaddr and port.
  9314. I've experiened segmentation fault and "pure virtual function was
  9315. called" error.
  9316. * src/Peer.h
  9317. * test/PeerTest.cc
  9318. * src/DefaultPeerStorage.cc
  9319. * test/DefaultPeerStorageTest.cc
  9320. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Removed a call to isPowerOf() because it is no longer necessary here
  9322. and a request block is not always power of 2.
  9323. BUG#1866924
  9324. * src/PeerMessageUtil.cc (checkLength)
  9325. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Fixed the bug that always first found Segment is removed from
  9327. usedSegmentEntries. Removed unused functions.
  9328. * src/SegmentMan.{h, cc}
  9329. * test/SegmentManTest.cc
  9330. Fixed the bug that ServerHost is not removed.
  9331. * src/RequestGroup.cc
  9332. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Fixed the bug that SegmentMan::completeSegment() is not called
  9334. even if Segment is complete when --lowest-speed-limit is enabled.
  9335. BUG#1864525
  9336. * src/DownloadCommand.{h, cc}
  9337. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Fixed: hash algorithm 'sha1' is always used.
  9339. * src/DownloadCommand.cc (validatePieceHash)
  9340. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Added --enable-peer-exchange command-line option.
  9342. * src/OptionHandlerFactory.cc
  9343. * src/HelpItemFactory.cc
  9344. * src/option_processing.cc
  9345. * src/usage_text.h
  9346. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Move extension from BtRuntime to ExtensionMessageFactory, because
  9348. extension can be specified per peer, not per torrent.
  9349. * src/DefaultBtInteractive.cc
  9350. * src/BtRuntime.h
  9351. * src/ExtendedMessagingAware.h
  9352. * src/ExtensionMessageFactory.h
  9353. * src/DefaultExtensionMessageFactory.cc
  9354. * test/DefaultExtensionMessageFactoryTest.cc
  9355. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Added categorized option help. Specify category using --help option.
  9357. Also added the ability to search options in forward match.
  9358. * src/HelpItem.{h, cc}
  9359. * test/HelpItemTest.cc
  9360. * src/HelpItemFactory.{h, cc}
  9361. * src/TagContainer.{h, cc}
  9362. * test/TagContainerTest.cc
  9363. * src/option_processing.cc
  9364. * src/prefs.h
  9365. * src/TaggedItem.{h, cc}
  9366. * test/TaggedItemTest.cc
  9367. * src/version_usage.cc
  9368. * src/help_tags.h
  9369. * src/usage_text.h
  9370. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Fixed segmentation fault when bad torrent metainfo is parsed.
  9372. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9373. and then throw exception or skip it.
  9374. * src/DefaultBtContext.{h, cc}
  9375. * test/DefaultBtContextTest.cc
  9376. * src/AnnounceList.cc
  9377. * src/CompactPeerListProcessor.cc
  9378. * src/message.h
  9379. * src/DefaultBtAnnounce.{h, cc}
  9380. * test/DefaultBtAnnounceTest.cc
  9381. * src/BencodeVisitor.cc
  9382. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. Added missing "B"(=Byte). So now the message looks like this:
  9384. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9385. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9386. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Show the seed ratio after torrent downloads.
  9388. For example, after torrent download completed and --seed-time and
  9389. --seed-ratio conditions are fulfilled, following message is printed
  9390. right after "Download complete: .....":
  9391. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9392. * src/RequestGroupMan.cc
  9393. * src/RequestGroup.{h, cc}
  9394. * src/message.h
  9395. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Remove a defunct control file. A defunct control file means that while
  9397. it exists, but the corresponding download file is missing.
  9398. After its removal, a download restarts from the beginning.
  9399. * src/RequestGroup.cc
  9400. * src/message.h
  9401. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Allocate bitfield in Peer when it is really used. More specifically,
  9403. bitfield in Peer is allocated after the connection is established and
  9404. deallocated when the connection is dropped.
  9405. Since 2 parameters(piece length and total length) was removed from the
  9406. constructor of Peer class, many test classes were modified accordingly.
  9407. See svn log for more detailed information.
  9408. * src/PeerInteractionCommand.cc
  9409. * src/CompactPeerListProcessor.cc
  9410. * src/Peer.cc
  9411. * src/DefaultPeerListProcessor.cc
  9412. * src/PeerListenCommand.cc
  9413. * src/PeerReceiveHandshakeCommand.cc
  9414. Fixed memory leak
  9415. * src/Piece.cc
  9416. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9418. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9419. command-line options.
  9420. * src/option_processing.cc
  9421. * src/ActivePeerConnectionCommand.cc
  9422. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Send have message to peer if it already has the piece.
  9424. * src/BtHaveMessage.{h, cc}
  9425. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9427. port.
  9428. * src/DefaultPeerStorage.{h, cc}
  9429. * test/DefaultPeerStorageTest.cc
  9430. * src/HandshakeExtensionMessage.cc
  9431. * test/HandshakeExtensionMessageTest.cc
  9432. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9433. * src/PeerStorage.h
  9434. * test/MockPeerStorage.h
  9435. * src/PeerListenCommand.cc
  9436. * src/PeerReceiveHandshakeCommand.cc
  9437. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Added --metalink-enable-unique-protocol option.
  9439. * src/Metalink2RequestGroup.cc
  9440. * src/option_processing.cc
  9441. * src/prefs.h
  9442. * src/version_usage.cc
  9443. * doc/aria2c.1.txt
  9444. * doc/aria2c.1
  9445. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Allow a peer in incomingPeer to be added peers.
  9447. * src/DefaultPeerStorage.cc
  9448. * test/DefaultPeerStorageTest.cc
  9449. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9451. I could reproduce this bug in following procedure:
  9452. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9453. 2. Restart aria2.
  9454. 3. You see the download stopped around 99%.
  9455. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9456. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9457. If timeout is reached, then _nextCommand is unused and it may contains
  9458. segments and they won't be canceled. Actually, timeout is not needed
  9459. here because if the server dropped connection, then retry is made.
  9460. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Added uTorrent compatible Peer Exchange.
  9462. * src/BencodeVisitor.{h, cc}
  9463. * test/BencodeVisitorTest.cc
  9464. * src/BtConstants.h
  9465. * src/BtContext.h: Added 'private' flag.
  9466. * src/BtExtendedMessage.{h, cc}
  9467. * test/BtExtendedMessageTest.cc
  9468. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9469. reserved field.
  9470. * test/BtHandshakeMessageTest.cc
  9471. * src/BtMessageFactory.h
  9472. * src/BtRegistry.h
  9473. * src/BtRuntime.h: This class holds default extension message IDs for
  9474. aria2. By default, aria2 uses ID 8 for ut_pex.
  9475. * src/DefaultBtContext.cc
  9476. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9477. When it is true, aria2 enables ut_pex. This value is set by
  9478. PeerInteractionCommand.
  9479. * src/DefaultBtMessageFactory.{h, cc}
  9480. * test/DefaultBtMessageFactoryTest.cc
  9481. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9482. handling to DefaultBtInteractive class.
  9483. * src/DefaultExtensionMessageFactory.{h, cc}
  9484. * test/DefaultExtensionMessageFactoryTest.cc
  9485. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9486. the container(peers and incomingPeers. The equality is determined by
  9487. Peer::id).
  9488. * test/DefaultPeerStorageTest.cc
  9489. * src/ExtensionMessage.h
  9490. * test/MockExtensionMessage.h
  9491. * src/ExtensionMessageFactory.h
  9492. * test/MockExtensionMessageFactory.h
  9493. * src/HandshakeExtensionMessage.{h, cc}
  9494. * test/HandshakeExtensionMessageTest.cc
  9495. * src/MetaEntry.h
  9496. * src/Peer.{h, cc}
  9497. * src/PeerInteractionCommand.cc
  9498. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9499. addIncomingPeer.
  9500. * src/PeerMessageUtil.{h, cc}
  9501. * src/PeerObject.h
  9502. * src/UTPexExtensionMessage.{h, cc}
  9503. * test/UTPexExtensionMessageTest.cc
  9504. * src/message.h
  9505. * src/prefs.h
  9506. Fixed the bug that returns incomplete data when it contains null
  9507. character. A convenient constructor was also added.
  9508. * src/Data.{h, cc}
  9509. Rewritten.
  9510. * src/CompactPeerListProcessor.cc
  9511. Fixed typos.
  9512. * src/message.h
  9513. * src/MetaFileUtil.cc
  9514. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Added "Status Legend" label to the explanation text of 'stat' in
  9516. download result and moved it to the last. BUG#1848214
  9517. * src/RequestGroupMan.cc
  9518. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9520. * src/Makefie.am
  9521. * test/Makefile.am
  9522. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Fixed the bug that prevents aria2 from loading cookie file when expire
  9524. value is greater than 2^31-1. BUG#1851066
  9525. * src/CookieBoxFactory.cc
  9526. * test/CookieBoxFactoryTest.cc
  9527. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Fixed possible memory leak when an exception is thrown.
  9529. * src/XML2SAXMetalinkProcessor.cc
  9530. Added Expat support. If both libxml2 and Expat are installed, then
  9531. libxml2 is used by default.
  9532. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9533. ExpatMetalinkProcessor according to the configuration.
  9534. * src/ExpatMetalinkProcessor.{h, cc}
  9535. * src/main.cc: Removed libxml2 specific header and init/free function.
  9536. * src/MetalinkProcessorFactory.{h, cc}
  9537. * src/MetalinkHelper.cc
  9538. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9539. * src/MetalinkProcessor.h
  9540. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9541. MetalinkProcessorTest is used instead.
  9542. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9543. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9544. MetalinkProcessorFactory::newInstance().
  9545. * m4/libexpat.m4
  9546. * configure.ac: Added configuration options for libexpat.
  9547. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Disabled -s option in metalink download.
  9549. * src/Metalink2RequestGroup.cc
  9550. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9551. If several protocols are available for a mirror in metalink file,
  9552. aria2 now use one of them. --metalink-preferred-protocol option was
  9553. added to specify the preference of protocol.
  9554. * src/AbstractCommand.cc
  9555. * src/OptionHandlerFactory.cc
  9556. * src/ServerHost.{h, cc}
  9557. * src/Metalink2RequestGroup.cc
  9558. * src/RequestGroup.{h, cc}
  9559. * test/RequestGroupTest.cc
  9560. * src/option_processing.cc
  9561. * src/prefs.h
  9562. * src/HttpResponseCommand.cc
  9563. * src/MetalinkResource.{h, cc}
  9564. * src/FtpNegotiationCommand.cc
  9565. * src/MetalinkEntry.{h, cc}
  9566. * src/MetalinkEntryTest.cc
  9567. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Code cleanup and added debug log.
  9569. * src/PeerConnection.cc
  9570. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Compiler error fix: applied the patch by Tiziano Mueller
  9572. * src/RequestGroup.cc
  9573. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9575. in stopped and completed event.
  9576. * src/AnnounceList.{h, cc}
  9577. * test/AnnounceListTest.cc
  9578. * src/DefaultBtAnnounce.cc
  9579. * test/DefaultBtAnnounceTest.cc
  9580. Sorted URLs.
  9581. * test/Metalink2RequestGroupTest.cc
  9582. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Removed unnecessary string copy. Updated doc and corrected indentation.
  9584. * src/Base64.cc
  9585. Fixed compilation warnings
  9586. * test/DataTest.cc
  9587. * test/HttpRequestTest.cc
  9588. * test/MetaFileUtilTest.cc
  9589. * test/RequestTest.cc
  9590. * Release 0.12.0
  9591. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Updated translations
  9593. * po/{de,fr,ja,nl,ru}.po
  9594. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9595. translations. Many thanks to translators.
  9596. * po/{ca,es,it,pt_BR,sv}.po
  9597. * po/LINGUAS
  9598. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Added a notice about URL
  9600. * src/version_usage.cc
  9601. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9602. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9603. aria2 repeatedly sends stopped request when tracker returns error code.
  9604. * src/AnnounceList.cc
  9605. * test/AnnounceListTest.cc
  9606. * src/AnnounceTier.h
  9607. Added a message when ctrl-c is hit.
  9608. Now second ctrl-c is also handled in signal handler.
  9609. * src/RequestGroupMan.{h, cc}
  9610. * src/RequestGroup.{h, cc}
  9611. * src/MultiUrlRequestInfo.cc
  9612. * src/DownloadEngine.cc
  9613. * src/TrackerWatcherCommand.cc
  9614. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Code cleanup
  9616. * src/Base64.cc (encode)
  9617. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Changed Direct/IO enable/disable procesure in file allocation routine.
  9619. * src/SingleFileAllocationIterator.cc
  9620. (SingleFileAllocationIterator):
  9621. Disable directIO if offset is not multiple of 512.
  9622. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9623. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9624. Enable created SingleFileAllocationIterator's directIO.
  9625. * src/FileAllocationEntry.cc
  9626. (FileAllocationEntry): Enable directIO here.
  9627. (~FileAllocationEntry): Disable directIO here.
  9628. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9630. * src/Peer.{h, cc}
  9631. * src/DefaultPieceStorage.cc
  9632. * test/DefaultPieceStorageTest.cc
  9633. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Rewritten direct I/O support routine
  9635. * src/SingleFileAllocationIterator.cc
  9636. * src/MultiDiskAdaptor.{h, cc}
  9637. * src/ByteArrayDiskWriter.h
  9638. * src/AbstractSingleDiskAdaptor.h
  9639. * src/AbstractDiskWriter.cc
  9640. * src/DefaultPieceStorage.cc
  9641. * src/DiskWriter.h
  9642. * src/BinaryStream.h
  9643. * src/IteratableChunkChecksumValidator.cc
  9644. * src/IteratableChecksumValidator.cc
  9645. * src/CheckIntegrityEntry.cc
  9646. * src/FileAllocationEntry.cc
  9647. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Fixed typo
  9649. * src/version_usage.cc
  9650. Updated doc
  9651. * doc/aria2c.1.txt
  9652. * doc/aria2c.1
  9653. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Fixed compile error without message digest support.
  9655. * src/FileMetalinkParserState.cc
  9656. * src/MetalinkParserController.{h, cc}
  9657. * test/XML2SAXMetalinkProcessorTest.cc
  9658. * test/MetalinkParserControllerTest.cc
  9659. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Enable direct I/O support in checksum checking.
  9661. * src/IteratableChunkChecksumValidator.{h, cc}
  9662. * test/IteratableChunkChecksumValidatorTest.cc
  9663. * src/CheckIntegrityEntry.cc
  9664. * src/PieceHashCheckIntegrityEntry.cc
  9665. * src/IteratableChecksumValidator.{h, cc}
  9666. * src/BtCheckIntegrityEntry.cc: Added doc.
  9667. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Added --allow-piece-length-change option.
  9669. * src/DefaultBtProgressInfoFile.cc
  9670. * test/DefaultBtProgressInfoFileTest.cc
  9671. * src/OptionHandlerFactory.cc
  9672. * src/option_processing.cc
  9673. * src/prefs.h
  9674. * src/version_usage.cc
  9675. * doc/aria2c.1.txt
  9676. * doc/aria2c.1
  9677. Fixed: duplicated result entry appears when exception is thrown in
  9678. RequestGroup::createInitiateConnectionCommand().
  9679. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9680. Add RequestGroup to _requestGroup after RequetGroup::
  9681. createInitiateConnectionCommand() succeeds.
  9682. Externalized message
  9683. * src/XML2SAXMetalinkProcessor.cc
  9684. * src/message.h
  9685. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Forced download abort when received negative response from http/ftp
  9687. server.
  9688. * src/HttpResponseCommand.cc
  9689. * src/FtpNegotiationCommand.cc
  9690. * src/HttpResponse.cc
  9691. * src/FtpConnection.cc
  9692. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9694. the predecessor, Xml2MetalinkParser class.
  9695. I tested them against 94KB metalink file with 1234 chunk checksums.
  9696. The new one parsed it in 22msec, while it took 6000msec with old one.
  9697. * src/XML2SAXMetalinkProcessor.{h, cc}
  9698. * test/XML2SAXMetalinkProcessorTest.cc
  9699. * src/MetalinkParserController.{h, cc}
  9700. * test/MetalinkParserControllerTest.cc
  9701. * src/MetalinkParserState.h: Also added 16 subclasses.
  9702. * src/main.cc
  9703. * src/Metalink2RequestGroup.cc
  9704. * src/MetalinkHelper.cc
  9705. * src/MetalinkEntry.cc
  9706. * src/ChunkChecksum.h
  9707. Rewritten Base64 class for better performance.
  9708. * src/Base64.{h, cc}
  9709. * test/Base64Test.cc
  9710. * src/HttpRequest.cc
  9711. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Fixed the bug#1841757: aria2 will connect to server to only get
  9713. file size.
  9714. * src/StreamFileAllocationEntry.cc
  9715. * src/option_processing.cc
  9716. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9717. downloads.
  9718. * src/FtpNegotiationCommand.cc
  9719. Suppressed wrong message when finding PreDownloadHandler
  9720. * src/RequestGroup.cc
  9721. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Updated usage
  9723. * src/version_usage.cc
  9724. Updated man page
  9725. * doc/aria2c.1.txt
  9726. * doc/aria2c.1
  9727. Updated po files
  9728. * po/aria2c.pot
  9729. * po/*.po
  9730. * po/*.gmo
  9731. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Eliminated g++-4.2 warning
  9733. * src/DownloadHandlerConstants.{h, cc}
  9734. * src/Util.cc
  9735. * test/MetaFileUtilTest.cc
  9736. * test/PStringBuildVisitorTest.cc
  9737. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9738. * src/RequestGroup.cc
  9739. * src/BtCheckIntegrityEntry.cc
  9740. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Fixed a2io.h
  9742. * src/a2io.h
  9743. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9744. Added direct I/O support. The current implementation uses O_DIRECT,
  9745. which is not posix standard and is tested on linux 2.6.21.
  9746. Currently only file allocation uses direct I/O.
  9747. * src/SingleFileAllocationIterator.{h, cc}
  9748. * test/SingleFileAllocationIteratorTest.cc
  9749. * src/MultiFileAllocationIterator.{h, cc}
  9750. * test/MultiFileAllocationIteratorTest.cc
  9751. * src/BinaryStream.h
  9752. * src/DiskWriter.h
  9753. * src/AbstractDiskWriter.{h, cc}
  9754. * src/ByteArrayDiskWriter.h
  9755. * src/DiskAdaptor.h
  9756. * src/AbstractSingleDiskAdaptor.{h, cc}
  9757. * src/MultiDiskAdaptor.{h, cc}
  9758. * src/FileAllocationEntry.cc
  9759. * src/Util.{h, cc}
  9760. * src/OptionHandlerFactory.cc
  9761. * src/prefs.h
  9762. * src/version_usage.cc
  9763. * src/option_processing.cc
  9764. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9765. handleException.
  9766. * src/MultiFileAllocationIterator.cc
  9767. Added EINTR handling
  9768. * src/SocketCore.cc
  9769. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Updated usage
  9771. * src/version_usage.cc
  9772. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Applied Ross's patch for MinGW port.
  9774. * src/DownloadEngine.h
  9775. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Set Content-Type to SingleFileDownloadContext when http response is
  9777. received.
  9778. * src/HttpResponseCommand.cc
  9779. * src/HttpResponse.{h, cc}
  9780. * test/HttpResponseTest.cc
  9781. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Rewritten to add content-type support.
  9783. * src/DownloadHandler.{h, cc}
  9784. * src/BtPostDownloadHandler.{h, cc}
  9785. * test/BtPostDownloadHandlerTest.cc
  9786. * src/MetalinkPostDownloadHandler.{h, cc}
  9787. * test/MetalinkPostDownloadHandlerTest.cc
  9788. * src/PostDownloadHandler.{h, cc}
  9789. * src/DownloadHandlerConstants.{h, cc}
  9790. * src/RequestGroup.cc
  9791. * src/HttpResponseCommand.cc
  9792. * src/FtpNegotiationCommand.cc
  9793. * src/SingleFileDownloadContext.{h, cc}
  9794. * src/RequestGroup.h
  9795. * src/RequestGroupCriteria.h
  9796. * src/ContentTypeRequestGroupCriteria.h
  9797. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9798. If it is give, metalink/torrent file is not written to the disk, but
  9799. just is kept in memory. Parsing is occurred on memory.
  9800. * src/MetalinkHelper.{h, cc}
  9801. * src/MetalinkProcessor.h
  9802. * src/Xml2MetalinkProcessor.{h, cc}
  9803. * test/Xml2MetalinkProcessorTest.cc
  9804. * src/DownloadHandlerFactory.{h, cc}
  9805. * test/DownloadHandlerFactoryTest.cc
  9806. * src/PreDownloadHandler.{h, cc}
  9807. * src/OptionHandlerFactory.cc
  9808. * src/DefaultBtContext.{h, cc}
  9809. * test/DefaultBtContextTest.cc
  9810. * src/version_usage.cc
  9811. * src/Metalink2RequestGroup.{h, cc}
  9812. * src/RequestGroup.{h, cc}
  9813. * src/a2functional.h
  9814. * test/a2functionalTest.cc
  9815. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9816. * src/OptionHandlerImpl.h
  9817. * src/prefs.h
  9818. * src/Util.{h, cc}
  9819. * test/UtilTest.cc
  9820. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9821. memory usage.
  9822. * src/RequestGroupMan.{h, cc}
  9823. * src/DownloadEngine.cc
  9824. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9825. WeakHandle to SharedHandle because WeakHandle could be null.
  9826. * src/RequestGroup.{h, cc}
  9827. * src/DownloadEngineFactory.cc
  9828. * src/DownloadResult.h
  9829. Set totalLength after download finished
  9830. * src/UnknownLengthPieceStorage.{h, cc}
  9831. Keep torrent file specified in metalink in memory.
  9832. * src/Metalink2RequestGroup.cc
  9833. * src/BtDependency.cc
  9834. * src/TrueRequestGroupCriteria.h
  9835. Fixed the bug: seekg is used where seekp should be used.
  9836. * src/ByteArrayDiskWriter.cc
  9837. * test/ByteArraydiskWriterTest.cc
  9838. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Fixed syntax error
  9840. * test/SequenceTest.cc
  9841. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9843. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9844. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9845. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9846. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Added the check to see whether ares_host_callback accepts timeouts
  9848. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9849. * src/NameResolver.{h, cc}
  9850. * m4/libcares.m4
  9851. * configure.ac: Set C++ for language choice.
  9852. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Fixed: compilation fails without c-ares/ares
  9854. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9855. Generate http/ftp commands only when download is incomplete.
  9856. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9857. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Corrected typo. Examples are removed since they are available in man
  9859. page.
  9860. * src/version_usage.cc
  9861. Updated man page.
  9862. * doc/aria2c.1
  9863. * doc/aria2c.1.txt
  9864. * doc/makeman: Commented out sed command.
  9865. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Throw DlAbortEx when a remote file is not found.
  9867. * src/HttpResponse.cc
  9868. * src/FtpNegotiationCommand.cc
  9869. * src/message.h
  9870. Overwrite an existing file if --allow-overwrite=true is given.
  9871. * src/RequestGroup.cc
  9872. Removed unused functions
  9873. * src/AbstractCommand.h
  9874. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Removed 'extern' from 'extern typedef ...' in src/*.h
  9876. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Updated usage
  9878. * src/version_usage.cc
  9879. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Trim announce URL
  9881. * src/DefaultBtContext.cc
  9882. * test/ShaVisitorTest.cc
  9883. Trim argument s. Give trimed s to exception constructor.
  9884. * src/Util.cc (parseInt)(parseLLInt)
  9885. * test/UtilTest.cc
  9886. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Set precision back to 1.
  9888. * src/ConsoleStatCalc.cc (calculateStat)
  9889. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Replaced strtol with Util::parseInt
  9891. * src/ChunkedEncoding.cc
  9892. * src/HttpConnection.cc
  9893. * src/CookieBoxFactory.cc
  9894. * src/ParameterizedStringParser.cc
  9895. * src/Util.cc
  9896. * test/UtilTest.cc
  9897. * test/OptionHandlerTest.cc
  9898. * src/Request.cc
  9899. Throw exception when empty string is given. The message for exception
  9900. changed.
  9901. * src/Util.cc (parseInt)(parseLLInt)
  9902. * src/message.h
  9903. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9905. set to 1.
  9906. * src/ConsoleStatCalc.cc (calculateStat)
  9907. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Preallocate non-requested file which is adjacent forward to requested
  9909. file('requested' files means the files given in --select-file option)
  9910. if they share a same piece.
  9911. This fixes long pause in the file system which doesn't support sparse
  9912. files like FAT32 while downloading.
  9913. * src/MultiFileAllocationIterator.{h, cc}
  9914. * test/MultiFileAllocationIteratorTest.cc
  9915. * src/FileEntry.{h, cc}
  9916. Removed unused _option.
  9917. * src/MultiDiskAdaptor.h
  9918. * test/MultiDiskAdaptorTest.cc
  9919. * src/DefaultPieceStorage.cc
  9920. Set the default value of --seed-ratio to 1.0.
  9921. If 0.0 is given, then seeding continues regardless of share ratio.
  9922. * src/version_usage.cc
  9923. * src/option_processing.cc
  9924. * src/BtSetup.cc
  9925. * doc/aria2c.1.txt
  9926. * doc/aria2c.1
  9927. Fixed: Selective download is not working in BitTorrent
  9928. * src/RequestGroup.cc
  9929. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9930. * src/PieceStorage.h
  9931. * test/MockPieceStorage.h
  9932. * src/UnknownLengthPieceStorage.h
  9933. * src/DefaultPieceStorage.{h, cc}
  9934. * src/Metalink2RequestGroup.cc
  9935. * src/RequestGroup.cc
  9936. * src/Sequence.h
  9937. * test/SequenceTest.cc
  9938. * src/IntSequence.h
  9939. * src/message.h
  9940. * src/Util.{h, cc}
  9941. * test/UtilTest.cc
  9942. Added new function 'parse' to catch exception thrown by subclass's
  9943. parseArg
  9944. * src/OptionHandler.h
  9945. * src/OptionParser.cc
  9946. * src/NameMatchOptionHandler.h
  9947. * src/OptionHandlerImpl.h
  9948. * test/OptionHandlerTest.cc
  9949. Added IntegerRangeOptionHandler. Used for --listen-port and
  9950. --select-file. Now --listen-port accepts range of port.
  9951. * src/OptionHandlerFactory.cc
  9952. * src/version_usage.cc
  9953. * src/OptionHandlerImpl.h
  9954. * src/option_processing.cc
  9955. * src/BtSetup.cc
  9956. * src/PeerListenCommand.{h, cc}
  9957. * doc/aria2c.1.txt
  9958. * doc/aria2c.1
  9959. Implemented operator< for Exception class to provide easy way to print
  9960. exception stack trace.
  9961. * src/Exception.{h, cc}
  9962. * src/main.cc
  9963. * src/option_processing.cc
  9964. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. * src/version_usage.cc
  9966. (showVersion): Reworked.
  9967. (showUsage): Added examples.
  9968. Removed Hint for total length and file name.
  9969. * src/Metalink2RequestGroup.cc
  9970. * src/RequestGroup.{h, cc}
  9971. * src/HttpResponseCommand.cc
  9972. * src/FtpNegotiationCommand.cc
  9973. Now --follow-torrent and --follow-metalink option work properly.
  9974. * src/RequestGroup.cc
  9975. Updated man page
  9976. * doc/aria2c.1.txt
  9977. * doc/aria2c.1
  9978. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Removed.
  9980. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9981. Use Segment::operator==()
  9982. * src/HttpConnection.cc
  9983. * src/Segment.h
  9984. Updated usage
  9985. * src/version_usage.cc
  9986. Added EINTR treatment.
  9987. * src/SocketCore.cc
  9988. * src/AbstractDiskWriter.cc
  9989. Rewritten.
  9990. * src/Util.cc (rangedFileCopy)
  9991. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Fixed typo.
  9993. * src/version_usage.cc
  9994. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Implemented. Now -c option works fine.
  9996. * src/DefaultPieceStorage.cc (markPiecesDone)
  9997. * test/DefaultPieceStorageTest.cc
  9998. Removed.
  9999. * src/SegmentMan.{h, cc}
  10000. (markAllPiecesDone)
  10001. (markPieceDone)
  10002. Synchronized po files with
  10003. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10004. * src/fr.po
  10005. * src/ru.po
  10006. * src/de.po
  10007. * src/ja.po
  10008. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Added ifdef and some modifications to compile without BitTorrent,
  10010. Metalink, MessageDigest
  10011. support.
  10012. * src/PieceHashCheckIntegrityEntry.cc
  10013. * src/MetalinkEntry.h
  10014. * src/version_usage.cc
  10015. * src/main.cc
  10016. * src/DownloadEngine.{h, cc}
  10017. * src/Metalink2RequestGroup.cc
  10018. * src/Peer.cc
  10019. * src/RequestGroup.cc
  10020. * src/MetalinkHelper.cc
  10021. * test/DefaultPieceStorageTest.cc
  10022. * test/MetalinkPostDownloadHandlerTest.cc
  10023. * test/Metalink2RequestGroupTest.cc
  10024. Hide TOTAL SPD when all downloads complete.
  10025. * src/ConsoleStatCalc.cc
  10026. Log target system information.
  10027. * src/main.cc
  10028. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Now --metalink-location accepts a comma-deliminated list of locations.
  10030. * src/MetalinkEntry.{h, cc}
  10031. * test/MetalinkEntryTest.cc
  10032. * src/version_usage.cc
  10033. * src/Metalink2RequestGroup.cc
  10034. * src/Xml2MetalinkProcessor.cc
  10035. * test/Xml2MetalinkProcessorTest.cc
  10036. * doc/aria2c.1.txt
  10037. * doc/aria2c.1
  10038. * src/Util.cc (toUpper)(toLower): Rewritten.
  10039. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Added the ability to detect duplicate download entry which is about to
  10041. download the same file other RequestGroup is downloading.
  10042. * src/RequestGroup.cc
  10043. * src/HttpResponseCommand.cc
  10044. * src/FtpNegotiationCommand.cc
  10045. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Recalculates download progress when loading a control file,
  10047. if the piece length of DownloadContext is different from the one saved
  10048. in the control file. Currently in-flight pieces are ignored.
  10049. * src/DefaultBtProgressInfoFile.cc
  10050. * test/DefaultBtProgressInfoFileTest.cc
  10051. * src/Util.{h, cc}
  10052. * test/UtilTest.cc
  10053. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. Do not rotate tiers in announce-list.
  10055. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10056. AnnounceList::allTiersFailed() used instead to detect whether all
  10057. tiers are tried and failed.
  10058. * test/DefaultBtAnnounceTest.cc
  10059. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10060. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10061. * test/AnnounceListTest.cc
  10062. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10063. clause. Catch RecoverableException instead of DlRetryEx instead.
  10064. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. Implemented checksum validation feature(1 checksum for each file)
  10066. The validation takes place after the download.
  10067. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10068. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10069. * src/CheckIntegrityCommand.cc: Changed log message.
  10070. * src/Metalink2RequestGroup.cc: Set checksum to
  10071. SingleFileDownloadContext.
  10072. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10073. PieceHashCheckIntegrity class.
  10074. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10075. PieceHashCheckIntegrity class.
  10076. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10077. * src/IteratableValidator.h: New class.
  10078. * src/message.h
  10079. * src/CheckIntegrityEntry.{h, cc}
  10080. * src/IteratableChunkChecksumValidator.{h, cc}
  10081. * src/SingleFileDownloadContext.h
  10082. * src/DownloadCommand.cc
  10083. --allow-overwrite=true is no longer needed to check file integrity
  10084. before download in BitTorrent download.
  10085. * src/RequestGroup.cc (getInitialCommand)
  10086. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10087. throws exception.
  10088. * src/RequestGroupMan.cc (getInitialCommands)
  10089. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. urlencode the given url inside Request::parseUrl(...)
  10091. * src/Request.{h, cc}
  10092. * src/Util.{h, cc}
  10093. * test/RequestTest.cc
  10094. Removed #!metalink3! notation support because it is deleted from
  10095. the metalink specification.
  10096. * src/Request.{h, cc}
  10097. * test/RequestTest.cc
  10098. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Don't connect server before checking file integrity at startup, if
  10100. filesize and output file path are known.
  10101. * src/AbstractCommand.cc
  10102. * src/StreamFileAllocationEntry.cc
  10103. * src/Metalink2RequestGroup.cc
  10104. * src/RequestGroup.{h, cc}
  10105. * src/HttpResponseCommand.cc
  10106. * src/FtpNegotiationCommand.cc
  10107. Added DownloadFailureException. If it is thrown, RequestGroup should
  10108. halt.
  10109. * src/AbstractCommand.cc
  10110. * src/DownloadFailureException.h
  10111. * src/RequestGroup.cc
  10112. Catch RecoverableException, instead of DlAbortEx.
  10113. * src/RequestGroupMan.cc
  10114. * src/FillRequestGroupCommand.cc
  10115. * src/MetaFileUtil.cc
  10116. * src/IteratableChunkChecksumValidator.cc
  10117. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10118. getGID())
  10119. * src/CheckIntegrityCommand.cc
  10120. * src/message.h
  10121. Print gid instead of idx.
  10122. * src/RequestGroupMan.cc
  10123. Removed exception throwers declaration.
  10124. * src/DirectDiskAdaptor.{h, cc}
  10125. * src/SocketCore.{h, cc}
  10126. * src/MultiDiskAdaptor.{h, cc}
  10127. * src/HttpConnection.{h, cc}
  10128. * src/HttpResponse.{h, cc}
  10129. * src/DiskAdaptor.{h, cc}
  10130. * src/CopyDiskAdaptor.{h, cc}
  10131. * src/MultiDiskAdaptor.{h, cc}
  10132. * src/HttpHeaderProcessor.{h, cc}
  10133. * src/AbstractSingleDiskAdaptor.{h, cc}
  10134. * src/Util.{h, cc}
  10135. * test/UtilTest.cc
  10136. * src/DefaultDiskWriter.{h, cc}
  10137. * src/FtpConnection.{h, cc}
  10138. * src/AbstractDiskWriter.{h, cc}
  10139. Removed duplicate code.
  10140. * src/StreamCheckIntegrityEntry.cc
  10141. Removed unnecessary include.
  10142. * src/DiskWriter.h
  10143. Included Exception.h
  10144. * src/option_processing.cc
  10145. Included 2 files and added doc
  10146. * src/TrackerWatcherCommand.cc
  10147. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10148. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Changed CheckIntegrityEntry interface so that it can define
  10150. the action when all the chunk checksums are valid.
  10151. * src/CheckIntegrityEntry.h
  10152. * src/StreamCheckIntegrityEntry.{h, cc}
  10153. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10154. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10155. to exit rather than doing seeding. So, it would be good to toggle this
  10156. behavior.
  10157. * src/CheckIntegrityCommand.cc
  10158. * src/AbstractCommand.cc
  10159. * src/RequestGroup.cc
  10160. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Reflect the download length of in-flight pieces.
  10162. It makes the download length readout more precise.
  10163. * src/DefaultPieceStorage.{h, cc}
  10164. * test/DefaultPieceStorageTest.cc
  10165. * src/a2functional.h
  10166. * test/a2functionalTest.cc
  10167. Lower CPU load when --max-download-limit is used.
  10168. There is up and down in speed indicator when enabling
  10169. http-pipelining but a download goes well. I think the problem is that
  10170. because http-pipelining is enabled, DownloadCommand is created for
  10171. each segment and in its constructor, PeerStat::downloadStart() is
  10172. called. In PeerStat::downloadStart(), speed calculation object is
  10173. reseted, which makes download speed zero.
  10174. * src/DownloadCommand.cc
  10175. Rewritten using accumulate.
  10176. * src/RequestGroupMan.cc (calculateStat)
  10177. Code clearnup.
  10178. * src/FtpNegotiationCommand.cc
  10179. * src/HttpResponseCommand.cc
  10180. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Fixed: Can not resume: aria2 reports download already finished.
  10182. * src/AbstractCommand.{h, cc}
  10183. * src/HttpResponseCommand.cc
  10184. * src/FtpNegotiateCommand.cc
  10185. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Now a file is stored in the directory specified in .metalnk file
  10187. (file[@name]).
  10188. * src/Metalink2RequestGroup.cc
  10189. Create the directory structure when opening the file if it doesn't
  10190. exist.
  10191. * src/AbstractDiskWriter.cc
  10192. * src/Util.{h, cc}
  10193. * src/File.h
  10194. * test/UtilTest.cc
  10195. Removed file name comparison
  10196. * src/Metalink2RequestGroup.cc
  10197. * src/HttpResponseCommand.cc
  10198. Rewritten using Util::mkdirs()
  10199. * src/FileEntry.cc (setupDir)
  10200. * test/FileEntryTest.cc
  10201. Updated doc
  10202. * src/SingleFileDownloadContext.h
  10203. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Now SleepCommand dispatches nextCommand when halt is requested.
  10205. It avoids a possible long wait after hitting CTRL-C.
  10206. * src/SleepCommand.{h, cc}
  10207. * src/RequestGroupAware.{h, cc}
  10208. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10210. to open listen port, then remove the port number from the tracker
  10211. request.
  10212. * src/DefaultBtAnnounce.cc
  10213. * test/DefaultBtAnnounceTest.cc
  10214. * test/MockPieceStorage.h
  10215. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10216. them more testable.
  10217. * src/DefaultBtAnnounce.{h, cc}
  10218. * src/DefaultBtContext.{h, cc}
  10219. * src/Util.{h, cc}
  10220. * test/DefaultBtAnnounceTest.cc
  10221. * test/DefaultBtContextTest.cc
  10222. * test/UtilTest.cc
  10223. Added 'B' to upload bytes readout.
  10224. * src/ConsoleStatCalc.cc
  10225. Now the listen port for BitTorrent download is opened when it is
  10226. needed.
  10227. * src/DownloadEngineFactory.cc
  10228. * src/BtSetup.{h, cc}
  10229. * src/PeerListenCommand.{h, cc}
  10230. Now an exception thrown while parsing tracker response is now logged.
  10231. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10232. called, which means no retry is made in this case, assuming a tracker
  10233. has a problem.
  10234. * src/TrackerWatcherCommand.cc
  10235. Fixed: downloading a file whose length is unkown fails.
  10236. * src/DownloadCommand.cc
  10237. Simplified prepareForNextSegment()
  10238. * src/DownloadCommand.cc
  10239. Updated
  10240. * po/POTFILES.in
  10241. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. Re-implemented a file listing for Metalink, which was dropped while
  10243. http/ftp/torrent integration was being implemented.
  10244. * src/MetalinkHelper.{h, cc}: New class.
  10245. * test/MetalinkHelperTest.cc
  10246. * src/main.cc
  10247. * src/Metalink2RequestGroup.cc
  10248. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Added the ability to display the detailed torrent file information.
  10250. Now -S option gives not only a file listing, but also total download
  10251. length, info hash, announce URI, piece length, the number of pieces,
  10252. and mode(single or multi-torrent).
  10253. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10254. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10255. KiB)
  10256. * test/UtilTest.cc
  10257. * src/main.cc
  10258. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Added ftp://USER:PASSWD@Servername automatic parsing.
  10260. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10261. _password. Recognize username and password in URI.
  10262. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10263. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10264. * src/RequestFactory.{h, cc}: Removed.
  10265. * src/AuthConfigFactory.{h, cc}: New class.
  10266. * src/FtpConnection.cc: Use AuthConfigFactory.
  10267. * src/HttpRequest.cc: Use AuthConfigFactory.
  10268. * test/HttpRequestTest.cc: Updated.
  10269. * test/RequestTest.cc: Updated.
  10270. * test/AuthConfigFactoryTest.cc: New class.
  10271. * test/RequestFactoryTest.cc: Removed.
  10272. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Use RequestGroup::allDownloadFinished() to decide whether the control
  10274. file should be removed or saved.
  10275. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10276. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10277. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Use File::renameTo()
  10279. * src/DefaultBtProgressInfoFile.cc
  10280. Added --no-file-allocation-limit command-line option.
  10281. * src/version_usage.cc
  10282. * src/option_processing.cc
  10283. * src/OptionHandlerFactory.cc
  10284. * src/RequestGroup.{h, cc}
  10285. * src/BtCheckIntegrityEntry.cc
  10286. * src/StreamCheckIntegrityEntry.cc
  10287. * src/prefs.h
  10288. * doc/aria2c.1.txt
  10289. * doc/aria2c.1
  10290. Now prealloc is the default value for --file-allocation option.
  10291. * src/version_usage.cc
  10292. * src/option_processing.cc
  10293. * doc/aria2c.1.txt
  10294. * doc/aria2c.1
  10295. Don't URL-encode user-agent.
  10296. * src/HttpRequest.cc
  10297. Updated translations
  10298. * po/LINGUAS: Added nl for Dutch translation.
  10299. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10300. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10301. * po/POTFILES.in: Updated.
  10302. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Added the ability to recognize url-list in a torrent file.
  10304. The retrieved URLs are attached to the corresponding FileEntry.
  10305. * src/DefaultBtContext.{h, cc}
  10306. * src/FileEntry.{h, cc}
  10307. * test/DefaultBtContextTest.cc
  10308. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10310. after the download finishes.
  10311. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10313. the data smaller than block length.
  10314. A block length can be specified by constructor's argument.
  10315. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10316. Get a missing piece in the range of given FileEntry. This function is
  10317. not used in the program yet.
  10318. * src/Util.h: Added some macros.
  10319. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10320. Added HTTP/1.1 keep alive and pipelining support.
  10321. See --enable-http-keep-alive and --enable-http-pipelining option.
  10322. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10323. Segment.
  10324. * src/HttpDownloadCommand.{h, cc}
  10325. * src/OptionHandlerFactory.cc
  10326. * src/HttpConnection.{h, cc}
  10327. * src/version_usage.cc
  10328. * src/HttpInitiateConnectionCommand.cc
  10329. * src/FtpInitiateConnectionCommand.cc
  10330. * src/Segment.h
  10331. * src/HttpRequestCommand.{h, cc}
  10332. * src/option_processing.cc
  10333. * src/prefs.h
  10334. * src/HttpResponseCommand.cc
  10335. * src/SegmentMan.{h, cc}
  10336. * src/FtpNegotiateCommand.cc
  10337. * src/HttpProxyResponseCommand.cc
  10338. * src/Request.cc
  10339. * src/HttpRequest.cc
  10340. * src/DownloadCommand.cc
  10341. * test/HttpRequestTest.cc
  10342. * test/RequestTest.cc
  10343. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10344. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10345. finished.
  10346. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10347. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10348. catching it inside the method.
  10349. When no file entry is found in a metalink without querying user
  10350. preferences, throw the exception with the error message that suggests
  10351. metalink file is probably broken.
  10352. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10353. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10355. processed.
  10356. * src/RequestGroupMan.cc (removeStoppedGroup)
  10357. Added debug message.
  10358. * src/BtPostDownloadHandler.cc
  10359. * src/MetalinkPostDownloadHandler.cc
  10360. * src/PostDownloadHandler.{h, cc}
  10361. * src/RequestGroup.cc
  10362. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10364. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10366. stops and there are any unfinished or in-progress downloads.
  10367. Added the legend of "stat".
  10368. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Throw exception when chunck checksum verification fails.
  10370. * src/DownloadCommand.cc (validatePieceHash): New function.
  10371. * src/PiecedSegment.{h, cc} (clear): New function.
  10372. * src/GrowSegment.{h, cc} (clear): New function.
  10373. * src/Segment.h (clear): New function.
  10374. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10375. * test/SegmentTest.cc
  10376. * test/GrowSegmentTest.cc
  10377. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Do not send referer when redirected.
  10379. * src/Request.cc (redirectUrl)
  10380. * test/RequestTest.cc
  10381. * test/HttpRequestTest.cc
  10382. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Implemented BitTorrent/http/ftp integrated download.
  10384. I've rewritten lots of files and now some headers have forward
  10385. class declarations to reduce compile time.
  10386. The implementation is extremely alpha stage, I recommend to use this
  10387. for testing purpose only.
  10388. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. Fixed the compilation error on 64bit platform.
  10390. * test/HttpHeaderProcessorTest.cc
  10391. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Merged Ross's patch that fixes compilation problem in MinGW
  10393. * test/DefaultBtProgressInfoFileTest.cc
  10394. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Updated fr.po by sebone
  10396. * po/fr.po
  10397. Updated man page.
  10398. * doc/aria2c.1.txt
  10399. * Release 0.11.3
  10400. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10401. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10402. failure in Metalink.
  10403. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10404. Automatically save *.aria2 control file of http/ftp download in every
  10405. 60 seconds.
  10406. * src/AutoSaveCommand.{h, cc}: New class.
  10407. * src/TimeBasedCommand.{h, cc}: New class.
  10408. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10409. Disable parameterized URI support by default. Added -P option to
  10410. enable the feature.
  10411. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10412. * src/OptionHandlerFactory.cc
  10413. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10414. Updated Japanese translation.
  10415. * po/ja.po
  10416. Updated man page.
  10417. * doc/aria2c.1.txt
  10418. * Release 0.11.3-rc
  10419. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10421. it is successful, then renamed to *.aria2.
  10422. This prevents *.aria2 file from being truncated or corrupted when
  10423. file system becomes out of space.
  10424. * src/DefaultBtProgressInfoFile.cc (save)
  10425. * src/SegmentMan.cc (save)
  10426. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10427. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Reduced the fragmentation of bitfield in http/ftp download.
  10429. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10430. * test/BitfieldManTest.cc
  10431. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Added the ability to disable segmented download in .metalink.
  10433. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10434. 'url' tag.
  10435. * src/MetalinkEntry.{h, cc}
  10436. * src/RequestResource.{h, cc}
  10437. * src/MetalinkRequestInfo.cc
  10438. * src/Xml2MetalinkProcessor.cc
  10439. * test/Xml2MetalinkProcessorTest.cc
  10440. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Added parameterized URI support.
  10442. * src/main.cc: -Z option added.
  10443. * src/OptionHandlerFactory.cc
  10444. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10445. * src/PStringDatum.h: New class.
  10446. * src/PStringSegment.{h,cc}: New class.
  10447. * src/PStringNumLoop.h: New class.
  10448. * src/PStringSelect.h: New class.
  10449. * src/NumberDecorator.h: New class.
  10450. * src/FixedWidthNumberDecorator.h: New class.
  10451. * src/AlphaNumberDecorator.h: New class.
  10452. * src/PStringVisitor.h: New class.
  10453. * src/PStringBuildVisitor.{h,cc}: New class.
  10454. * src/ParameterizedStringParser.{h,cc}: New class.
  10455. * src/Util.{h,cc}
  10456. (isNumber): New function.
  10457. (isLowercase): New function.
  10458. (isUppercase): New function.
  10459. (alphaToNum): New function.
  10460. * test/ParameterizedStringParserTest.cc: New class.
  10461. * test/AlphaNumberDecoratorTest.cc: New class.
  10462. * test/PStringBuildVisitorTest.cc: New class.
  10463. * test/UtilTest.cc
  10464. (testIsNumber): New function.
  10465. (testIsLowercase): New function.
  10466. (testIsUppercase): New function.
  10467. (testAlphaToNum): New function.
  10468. Added '\n' after the error message
  10469. * src/RequestInfo.h (printDownloadAbortMessage)
  10470. Added auto file renaming feature in http(s)/ftp download.
  10471. * src/main.cc: Added --auto-file-renaming command-line option.
  10472. * src/OptionHandlerFactory.cc
  10473. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10474. * src/RequestGroup.{h, cc}
  10475. (shouldCancelDownloadForSafety): Rewritten
  10476. (tryAutoFileRenaming): New function.
  10477. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10478. * src/HttpResponseCommand.cc
  10479. (executeInternal): Removed the call to RequestGroupMan::
  10480. isSameFileBeingDownloaded()
  10481. * src/FtpNegotiateCommand.cc
  10482. (recvSize): Removed the call to RequestGroupMan::
  10483. isSameFileBeingDownloaded()
  10484. * test/RequestGroupTest.cc: New class.
  10485. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10487. IO.
  10488. * src/DefaultBtProgressInfoFile.cc
  10489. * src/MetaFileUtil.cc
  10490. * src/SimpleLogger.cc
  10491. * src/SegmentMan.cc
  10492. * src/Util.cc
  10493. * src/Platform.cc
  10494. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10495. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10496. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10498. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10499. Fixed the bug that prevents file allocation is not done when
  10500. dowloading multi-torrent file.
  10501. * src/AbstractDiskWriter.cc (openFile)
  10502. Increase the maximum number of -j option from 15 to 45.
  10503. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10504. Added fr.po, thanks to Charles Landemaine.
  10505. * po/fr.po
  10506. * po/LINGUAS
  10507. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10508. gcc 3.4.4 support:
  10509. * src/DefaultBtContext.cc: int32_t -> int
  10510. * src/main.cc: int -> int32_t, int32_t -> int
  10511. * src/messageDigest.h: uint32_t -> unsigned int
  10512. * src/NameResolver.h: int32_t -> int
  10513. * src/PeerConnection.cc: int -> int32_t
  10514. * src/SpeedCalc.cc: int32_t -> int
  10515. * src/TrackerUpdateCommand.h: int -> int32_t
  10516. * src/Util.cc: int32_t -> int
  10517. * src/Util.h: int32_t -> int
  10518. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10519. * test/AnnounceListTest.cc: int -> int32_t
  10520. * test/ChunkedEncodingTest.cc: int -> int32_t
  10521. * test/DataTest.cc: int -> int32_t
  10522. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10523. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10524. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10525. * test/FeatureConfigTest.cc: int -> int32_t
  10526. * test/MetalinkEntryTest.cc: int -> int32_t
  10527. * test/MockBtRequestFactory.h: int -> int32_t
  10528. * test/MockPieceStorage.h: int -> int32_t
  10529. * test/OptionTest.cc: int -> int32_t
  10530. * test/RequestTest.cc: int -> int32_t
  10531. * test/SegmentManTest.cc: int -> int32_t
  10532. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10533. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10534. Move sleep functions to Util class:
  10535. * src/Util.cc
  10536. (sleep): New function.
  10537. (usleep): New function.
  10538. * src/DownloadCommand.cc: sleep -> Util::sleep
  10539. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10540. MinGW build enhancements. The following files are added:
  10541. * src/timegm.{c,h}
  10542. Changes to support the above new files:
  10543. * configure.ac
  10544. * src/Makefile.am
  10545. * src/a2time.h
  10546. * src/Util.cc:
  10547. * src/strptime.c: Added support for %Z option.
  10548. Fixed MinGW non-blocking bug.
  10549. * src/SocketCore.cc
  10550. * src/HttpRequestCommand.cc
  10551. Miscellenous build fixes/enhancements.
  10552. * configure.ac: Added summary report.
  10553. * src/Platform.h: Tweaked #include's.
  10554. * src/a2netcompat.h: Tweaked #include's.
  10555. * src/strptime.h: Tweaked #include's.
  10556. * src/gai_strerror.c: Tweaked #include's.
  10557. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10558. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10559. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10560. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10561. Increased the initial connection size in BitTorrent download to 40.
  10562. * src/BtRuntime.h
  10563. Added the usage message of --peer-id-prefix option.
  10564. * src/main.cc
  10565. * Release 0.11.2
  10566. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. MessageDigestHelper is introduced in order to simplify the use
  10568. of message digest. Removed repeated code.
  10569. The message digest algorithm is now specified by string, like "sha1",
  10570. "md5".
  10571. * src/messageDigest.{h, cc}
  10572. * src/MessageDigestHelper.{h, cc}: New class.
  10573. * src/DefaultPieceStorage.cc
  10574. * src/DefaultBtContext.{h, cc}
  10575. (computeFastSet): New function.
  10576. (setInfoHash): Added for unit testing.
  10577. (setNumPieces): Added for unit testing.
  10578. * src/DefaultBtInteractive.cc
  10579. * src/BtPieceMessage.cc
  10580. * src/Peer.cc
  10581. * src/Checksum.h
  10582. * src/message.h
  10583. * src/IteratableChecksumValidator.h
  10584. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10585. inside it.
  10586. * src/SegmentMan.{h, cc}
  10587. (checkIntegrity): Removed.
  10588. * src/IteratableChunkChecksumValidator.{h, cc}
  10589. * src/Util.h
  10590. (sha1Sum): Removed.
  10591. (simpleMessageDigest): Removed.
  10592. (fileChecksum): Removed.
  10593. (computeFastSet): Removed.
  10594. * src/ShaVisitor.cc
  10595. * src/ChunkChecksum.h
  10596. * src/DownloadCommand.cc
  10597. Removed messageDigest virtual functions.
  10598. * src/MultiDiskAdaptor.{h, cc}
  10599. * src/DiskAdaptor.h
  10600. * src/ByteArrayDiskWriter.h
  10601. * src/DiskWriter.h
  10602. * src/DiskAdaptorWriter.h
  10603. * src/AbstractSingleDiskAdaptor.{h, cc}
  10604. * src/AbstractDiskWriter.{h, cc}
  10605. Fixed comilation error when message digest is disabled.
  10606. * src/MetalinkEntry.{h, cc}
  10607. * src/MetalinkRequestInfo.cc
  10608. Removed srandom and random.
  10609. * src/SimpleRandomizer.h
  10610. Added size() virtual function to DiskAdaptor
  10611. * src/MultiDiskAdaptor.h
  10612. Fixed the bug that causes that files are not opened correctly in
  10613. multi-file torrent.
  10614. * src/TorrentRequestInfo.cc
  10615. * src/MultiDiskAdaptor.cc
  10616. Added SHA256 support
  10617. * src/messageDigest.cc
  10618. * src/Xml2MetalinkProcessor.cc
  10619. Show supported message digest algorithms
  10620. * src/main.cc
  10621. Updated contact info.
  10622. * src/main.cc
  10623. Applied Ross's patch
  10624. * src/a2netcompat.h
  10625. * src/main.cc
  10626. Fixed the bug that prevents a remote metalink from not being processed
  10627. even if '-o foo.metalink' is specified.
  10628. * src/MetalinkRequestInfo.cc
  10629. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Merged Dan's patch:
  10631. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10632. Use va_copy to avoid core dump on amd64:
  10633. * src/SimpleLogger.cc
  10634. Updated contact info.
  10635. * src/main.cc
  10636. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10637. digest is not available.
  10638. * src/MetalinkEntry.h
  10639. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Make a2netcompat.h include a2io.h to fix compilation error:
  10641. * src/a2netcompat.h
  10642. * src/SocketCore.cc: Removed include of a2io.h
  10643. * src/Util.cc: Removed include of a2io.h
  10644. Gather time related functions to a2time.h:
  10645. * src/a2time.h: New file.
  10646. * src/DefaultPeerStorage.cc
  10647. * src/SimpleLogger.cc
  10648. * src/Util.{h, cc}
  10649. * src/SimpleRandomizer.h
  10650. * src/TimeA2.{h,cc}
  10651. * src/DownloadCommand.cc
  10652. * src/main.cc
  10653. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10654. a2netcompat.h:
  10655. * src/NameResolver.cc
  10656. Fixed compilation error without openssl:
  10657. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10658. Added default block to suppress compiler warnings:
  10659. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10660. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10661. MinGW build enhancements. The following files are added:
  10662. * src/gai_strerror.{c,h}
  10663. * src/gettimeofday.{c,h}
  10664. Changes to support the above new files:
  10665. * configure.ac
  10666. * src/Makefile.am
  10667. * src/a2netcompat.h
  10668. * src/TimeA2.cc
  10669. * src/DefaultPeerStorage.cc
  10670. * src/NameResolver.cc: removed mingw_strerror() function.
  10671. * src/SocketCore.cc: removed mingw_strerror() function.
  10672. Miscellaneous MinGW build fixes.
  10673. * src/a2io.h: Use _lseeki64() instead of lseek()
  10674. * src/common.h
  10675. * src/DefaultFileAllocator.cc
  10676. * src/GlowFileAllocator.cc
  10677. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10678. * src/NameResolver.cc
  10679. (callback): Changed int32_t to int.
  10680. (resolve): Changed int32_t to int.
  10681. * src/Platform.cc
  10682. * src/Platform.h
  10683. * test/MultiDiskWriterTest.cc
  10684. * test/PeerMessageUtilTest.cc
  10685. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10686. Other enhancements and fixes.
  10687. * src/HttpRequestCommand.cc
  10688. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10689. * src/SocketCore.cc:
  10690. (error): New function to abstract errno/WSAGetLastError().
  10691. (errorMsg): New function to abstract errno/WSAGetLastError().
  10692. (initiateSecureConnection): Added more detailed error reporting.
  10693. * src/SocketCore.h: Added private variable blocking, to allow
  10694. proper handling of OpenSSL psuedo-errors.
  10695. * src/message.h
  10696. (EX_SSL_INIT_FAILURE)
  10697. (EX_SSL_IO_ERROR)
  10698. (EX_SSL_PROTOCOL_ERROR)
  10699. (EX_SSL_UNKNOWN_ERROR)
  10700. (EX_SSL_CONNECT_ERROR)
  10701. (EX_SOCKET_BLOCKING)
  10702. (EX_SOCKET_NONBLOCKING)
  10703. (EX_SOCKET_UNKNOWN_ERROR)
  10704. * src/Util.cc
  10705. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10706. reserved name.
  10707. (httpGMT): Fixed typo.
  10708. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Merged Ross's win32 patch(manually)
  10710. In the course of merging, following files are added.
  10711. * src/strptime.{h,c}
  10712. * src/libgen.{h,c}
  10713. * src/inet_aton.{h,c}
  10714. * src/Platform.{h,cc}
  10715. * src/localtime_r.{h,c}
  10716. * src/getaddrinfo.{h,c}
  10717. I've gethered network related things, and put them to following file:
  10718. * src/a2netcompat.h
  10719. Also io related things are put to following file:
  10720. * src/a2io.h
  10721. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10722. * src/message.h
  10723. (MSG_ALLOCATION_COMPLETED)
  10724. (EX_TOO_LARGE_FILE)
  10725. (EX_SIZE_MISMATCH)
  10726. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10727. (EX_INVALID_CHUNK_CHECKSUM)
  10728. (EX_INVALID_RANGE_HEADER)
  10729. * src/FileAllocationCommand.cc
  10730. * src/HttpResponse.cc
  10731. * src/RequestGroup.cc
  10732. * src/MultiDiskAdaptor.cc
  10733. * src/OptionHandlerImpl.h
  10734. * src/HttpResponseCommand.cc
  10735. * src/FtpNegotiateCommand.cc
  10736. * src/IteratableChecksumValidator.cc
  10737. * src/SegmentMan.cc
  10738. * src/ChunkChecksumValidator.cc
  10739. Added Randomizer::getRandomNumber(long int)
  10740. * src/Randomizer.h (getRandomNumber)
  10741. * src/SimpleRandomizer.h (getRandomNumber)
  10742. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10743. * src/Util.cc (randomAlpha): Use this new function.
  10744. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. Converted int's to in32_t. long long int's are also converted to
  10746. int64_t
  10747. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Fixed the bug that prevents cookies from being sent to the server
  10749. if the domain of cookie is FQDN and starts with ".".
  10750. * src/Cookie.cc (match)
  10751. To add the ability to change peer id.
  10752. * src/DefaultBtContext.h
  10753. (_peerIdPrefix): New variable
  10754. (setPeerIdPrefix): New function.
  10755. * src/torrentRequestInfo.cc
  10756. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10757. DefaultBtContext.
  10758. * src/main.cc (main): Added peer-id-prefix command-line option.
  10759. The usage message is not added yet.
  10760. * src/DefaultBtContext.cc
  10761. (generatePeerId): Use _peerIdPrefix.
  10762. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10763. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. Fixed the bug that prevents filename in content-disposition from
  10765. being retrieved when filename is not quoted.
  10766. * src/Util.cc (getContentDispositionFilename)
  10767. Fixed the bug that causes infinate loop and memory leak when file open
  10768. operation failed.
  10769. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10770. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Fixed the bug that causes segfault when all URIs specified are
  10772. unsupported.
  10773. * src/RequestGroupMan.cc (getInitialCommands)
  10774. Check if RequestGroup::createNextCommand() returns empty list of
  10775. commands.
  10776. * src/RequestGroup.cc (createNextCommand)
  10777. Change log level from info to error so that users can notice that
  10778. an error occurred.
  10779. Fixed the bug that causes segfault when a zero-sized file is
  10780. downloaded.
  10781. * src/BitfieldMan.cc (isAllBitSet)
  10782. Return true if bitfieldLength is 0.
  10783. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. * src/main.cc
  10785. (showUsage): Added 3 usage examples for metalink download.
  10786. Replace MetalinkChunkChecksum with ChunkChecksum.
  10787. * src/MetalinkChunkChecksum.h: Removed.
  10788. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10789. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10790. * src/Xml2MetalinkProcessor.cc
  10791. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10792. * src/MetalinkRequestInfo.cc (execute)
  10793. * Release 0.11.1
  10794. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10795. Reads URIs from stdin when "-i -" is specified.
  10796. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10797. * src/UriListParser.h, src/UriListParser.cc: New class.
  10798. * src/StreamUriListParser.h: New class.
  10799. * src/FileUriListParser.h: New class.
  10800. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10801. instead of UriFileListParser.
  10802. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. Made console readout more readable.
  10804. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10805. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Fix the bug that causes -s option not to work.
  10807. * src/main.cc (main)
  10808. * src/a2algo.h: New file.
  10809. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. Create directory structure specified in metalink file.
  10811. * src/RequestGroup.h, src/RequestGroup.cc
  10812. (initAndOpenFile): Create a directory to store files if it does not
  10813. exist.
  10814. (getDir): New function.
  10815. Added ETA and download speed for an individual file to readout.
  10816. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10817. * src/RequestGroup.h
  10818. (calculateDownloadSpeed): New function.
  10819. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10820. Made -S option work with metalink file and provided selective download
  10821. to metalink.
  10822. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10823. (filename): Removed.
  10824. (file): New variable.
  10825. (size): Removed.
  10826. (operator=): Updated.
  10827. (getPath): New function.
  10828. (getLength): New function.
  10829. (toFileEntry): New function.
  10830. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10831. (execute): Use toStream.
  10832. (showFileEntry): Removed.
  10833. * src/MetalinkRequestInfo.h
  10834. (targetFiles): New variable.
  10835. (setTargetFiles): New variable.
  10836. * src/MetalinkRequestInfo.cc
  10837. (execute): Added the ability to print file information included in
  10838. a metalink file.
  10839. Added selective download mode to metalink.
  10840. * src/main.cc
  10841. (showUsage): Updated to denote that -S and --select-file options are
  10842. applicable to metalink.
  10843. * src/FileEntry.h
  10844. (operator=): New function.
  10845. (getBasename): New function.
  10846. (getDirname): New function.
  10847. * src/Util.h, src/Util.cc
  10848. (toStream): New function.
  10849. * src/Xml2MetalinkProcessor.cc: Updated.
  10850. Made aria2 work with metalink with directory structure.
  10851. * src/File.h, src/File.cc
  10852. (getBasename): New function.
  10853. (getDirname): New function.
  10854. * src/RequestGroup.h, src/RequestGroup.cc
  10855. (_topDir): New variable.
  10856. (setTopDir): New function.
  10857. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10858. Rewrote HTTP header parsing with stringstream.
  10859. * src/HttpConnection.h, src/HttpConnection.cc
  10860. (HttpRequestEntry): New class.
  10861. (headerBuf): Removed.
  10862. (headerBufLength): Removed.
  10863. (outstandingHttpRequests): Now its element type is
  10864. HttpRequestEntryHandle.
  10865. (findEndOfHeader): Removed.
  10866. (receiveResponse): Rewritten.
  10867. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10868. Updated doc for -j option to notice that it should be used with -i
  10869. option.
  10870. * src/main.cc (showUsage)
  10871. Removed unused classes.
  10872. * src/RequestInfo.h
  10873. (FileInfo): Removed.
  10874. (checksum): Removed.
  10875. (fileInfo): Removed.
  10876. (setChecksum): Removed.
  10877. (getChecksum): Removed.
  10878. (getFileInfo): Removed.
  10879. Use ISO units.
  10880. * src/ConsoleDownloadEngine.cc
  10881. * src/TorrentConsoleDownloadEngine.cc
  10882. * src/Util.cc (abbrevSize)
  10883. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10884. Added the default listening ports to the help message.
  10885. * src/main.cc (showUsage)
  10886. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Reduce the number of calls to gettimeofday to lower CPU load.
  10888. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10889. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10890. * src/Peer.h (calculateUploadSpeed): New function.
  10891. (calculateDownloadSpeed): New function.
  10892. * src/DefaultPeerStorage.cc
  10893. (CalculateStat): Added _now variable.
  10894. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10895. and Peer::calculateUploadSpeed(const struct timeval&)
  10896. Drop connection if no request or piece message is exchanged in
  10897. a certain interval.
  10898. * src/DefaultBtInteractive.h
  10899. (btRuntime): New variable.
  10900. (inactiveCheckPoint): New variable.
  10901. (checkActiveInteraction): New function.
  10902. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10903. request or piece message is received.
  10904. (checkActiveInteraction): New function.
  10905. (doInteractionProcessing): Call checkActiveInteraction.
  10906. Fixed the bug that causes remote Metalink and Torrent files are not
  10907. processed.
  10908. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10909. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10910. Changed format of log file.
  10911. * src/SimpleLogger.cc
  10912. * Release 0.11.0
  10913. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. * src/AbstractCommand.cc
  10915. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10916. MSG_MAX_TRY from error to info.
  10917. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10918. * src/message.h
  10919. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10920. (MSG_DOWNLOAD_ABORTED): Added %s.
  10921. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10922. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10923. * src/PeerAbstractCommand.cc
  10924. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10925. * src/Request.h
  10926. (cookieBox): Made ShardHandle.
  10927. * src/RequestGroup.h, src/RequestGroup.cc
  10928. (createNextCommandWithAdj): New function.
  10929. * src/FileAllocationCommand.cc
  10930. (executeInternal): Use createNextCommandWithAdj().
  10931. * src/CheckIntegrityCommand.cc
  10932. (executeInternal): Use createNextCommandWithAdj().
  10933. Added --load-cookies command-option.
  10934. * src/OptionHandlerFactory.cc
  10935. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10936. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10937. Now aria2 can handle cookie's expiration date.
  10938. * src/Cookie.h (expires): Changed its type to time_t.
  10939. * src/main.cc: Added --load-cookies command-line option.
  10940. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10941. * src/Util.h, src/Util.cc (httpGMT): New function.
  10942. * src/Request.cc (Request): Initialize cookieBox using
  10943. CookieBoxFactory.
  10944. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10945. * src/CookieParser.h, src/CookieParser.cc: New class.
  10946. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10947. * src/HttpResponseCommand.cc
  10948. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10949. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10950. download.
  10951. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10952. Added -j command-line option.
  10953. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10954. * src/main.cc
  10955. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10956. Rewritten using stringstream.
  10957. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10958. Rewritten using stringstream.
  10959. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. Make download size shown in MB, KB.
  10961. * src/ConsoleDownloadEngine.h (sendStatistics)
  10962. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10963. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Accept incoming connections if download rate is low.
  10965. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10966. (_lowestSpeedLimit): New variable.
  10967. (setLowestSpeedLimit): New function.
  10968. (execute): Accept incoming connections if download rate is low.
  10969. MAX_PEERS is ignored in this case.
  10970. Disable PREF_OUT in multiple concurrent download:
  10971. * src/RequestGroup.h, src/RequestGroup.cc
  10972. (setUserDefinedFilename): New function.
  10973. * src/DownloadEngineFactory.cc
  10974. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10975. concurrent download.
  10976. * src/DefaultSegmentManFactory.cc
  10977. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10978. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10980. Added its overloaded method.
  10981. * src/RequestGroup.h
  10982. (_numConcurrentCommand): New variable.
  10983. (setNumConcurrentCommand): New function.
  10984. * src/RequestGroup.cc
  10985. Abort download if same file is being downloaded concurrently.
  10986. * src/RequestGroup.h, src/RequestGroupMan.cc
  10987. (isSameFileBeingDownloaded): New function.
  10988. * src/HttpResponseCommand.cc (executeInternal)
  10989. * src/FtpNegotiateCommand.cc (recvSize)
  10990. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10991. * main.cc: Added help message for -i option.
  10992. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10993. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10994. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10995. * src/MetalinkEntry.h
  10996. (checksum): Changed to ChecksumHandle
  10997. * src/MetalinkRequestInfo.cc
  10998. (checksum): Changed to ChecksumHandle
  10999. * src/File.cc
  11000. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11001. * src/common.h
  11002. (DIR_OPEN_MODE): New definition
  11003. * src/RequestGroup.cc
  11004. (prepareForNextAction): Added an argument.
  11005. * src/message.h
  11006. (MSG_GOOD_CHECKSUM): New definition
  11007. (MSG_BAD_CHECKSUM): New definition
  11008. * src/HttpResponseCommand.cc
  11009. (handleDefaultEncoding): Continue download sequence in new
  11010. non-segmented download.
  11011. * src/FileAllocationEntry.h
  11012. (_nextDownloadCommand): New variable.
  11013. * src/DownloadCommand.cc
  11014. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11015. available.
  11016. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11017. * src/IteratableChecksumValidator.h,
  11018. src/IteratableChecksumValidator.cc: New class.
  11019. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11020. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11021. Change file mode to 666:
  11022. * src/common.h (OPEN_MODE): New definition.
  11023. * src/File.cc
  11024. * src/Util.cc
  11025. * src/Directry.cc
  11026. * src/AbstractDiskWriter.cc
  11027. Change the level of log message "download aborted" to debug:
  11028. * src/PeerAbstractCommand.cc (execute)
  11029. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11030. * src/TrackerWatcherCommand.cc
  11031. (createCommand): Sleep some seconds after request failed.
  11032. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11033. then abort tracker request.
  11034. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. * Added the simultaneous download feature.
  11036. * src/main.cc: Print "Exception caught: " when exception is caught.
  11037. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11038. * src/ActivePeerConnectionCommand.cc
  11039. * src/PeerInteractionCommand.cc
  11040. * src/BtRuntime.h
  11041. (cuidCounter): Removed.
  11042. (getNewCuid): Removed.
  11043. * src/DownloadEngineFactory.cc
  11044. * src/PeerListenCommand.cc
  11045. * src/TrackerUpdateCommand.cc
  11046. * src/PeerInitiateConnectionCommand.cc
  11047. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. * src/PeerAbstractCommand.cc
  11049. (onAbort): Call PeerStorage::returnPeer()
  11050. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11051. (incomingPeers): New variable.
  11052. (addIncomingPeer): New function.
  11053. (returnPeer): New function.
  11054. (onErasingPeer): New function.
  11055. (addPeer): push_back -> push_front
  11056. (getActivePeers): Rewritten.
  11057. (calculateStat): Rewritten.
  11058. * src/PeerStorage.h
  11059. (TransferStat::copy): New function.
  11060. (TransferStat::TransferStat): New function.
  11061. (TransferStat::operator=): New function.
  11062. (addIncomingPeer): New function.
  11063. (returnPeer): New function.
  11064. * src/PeerListenCommand.cc
  11065. (execute): Use PeerStorage::addIncomingPeer() instead of
  11066. Peer::addPeer().
  11067. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. Connect to a peer actively when download speed is lower than specified
  11069. speed in torrent download:
  11070. * src/ActivePeerConnectionCommand.h: New class.
  11071. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11072. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11073. * src/main.cc: Fixed the bug that prevents download if .netrc
  11074. doesn't exist.
  11075. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. To cache resolved hostname:
  11077. * src/AbstractCommand.h, src/AbstractCommand.cc
  11078. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11079. Added dns cache.
  11080. * src/FtpInitiateConnectionCommand.cc
  11081. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11082. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11083. NameResolver working without ares.
  11084. * src/TorrentRequestInfo.cc
  11085. (execute): Don't cache dns in torrent download.
  11086. * src/HttpInitiateConnectionCommand.cc
  11087. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11088. * src/DNSCache.h: New class.
  11089. * src/UrlRequestInfo.cc
  11090. (execute): Use dns cache.
  11091. In http request, suppress port number in http request header if port
  11092. is 80 or 443:
  11093. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11094. request header if port is 80 or 443.
  11095. (createProxyRequest): Allways send port number.
  11096. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. To add the command-line option which disables netrc support:
  11098. * src/OptionHandlerFactory.cc
  11099. (createOptionHandlers): Added PREF_NO_NETRC.
  11100. * src/main.cc: Added -n option.
  11101. * src/prefs.h (PREF_NO_NETRC): New definition.
  11102. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11103. V_TRUE.
  11104. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11105. is V_FALSE. This may get configurable in the future release.
  11106. To clear peer's error status by time basis:
  11107. * src/PeerAbstractCommand.cc
  11108. (onAbort): Call Peer::startBadCondition().
  11109. * src/Peer.h, src/Peer.cc
  11110. (error): Removed.
  11111. (_badConditionStartTime): New variable.
  11112. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11113. (startBadCondition): New function.
  11114. (isGood): New function.
  11115. * src/DefaultPeerStorage.cc
  11116. (addPeer): Use Peer::isGood().
  11117. (FindFinePeer): Use Peer::isGood().
  11118. Always include port number in http request header:
  11119. * src/HttpRequest.cc (getHostText): Always include port number in
  11120. http request header.
  11121. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. To the ability to read options from a config file:
  11123. * src/main.cc: Command-line parameter validation is delegated to
  11124. OptionHandler class.
  11125. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11126. * src/Option.h, src/Option.cc (clear): New function.
  11127. * src/OptionParser.h, src/OptionParser.cc: New class.
  11128. * src/OptionHandler.h: New class.
  11129. * src/NameMatchOptionHandler.h: New class.
  11130. * src/OptionHandlerImpl.h: New classes.
  11131. * src/prefs.h: '_' -> '-'
  11132. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11133. (FTP_PASV): New definition.
  11134. * src/Util.h, src/Util.cc (getRealSize): New function.
  11135. To disable netrc support if .netrc file does not have correct
  11136. permissions:
  11137. * src/File.h, src/File.cc (mode): New function.
  11138. To prevent confidential information to be logged:
  11139. * src/HttpConnection.h, src/HttpConnection.cc
  11140. (eraseConfidentialInfo): New function.
  11141. (sendRequest): Call eraseConfidentialInfo().
  11142. (sendProxyRequest): Call eraseConfidentialInfo().
  11143. * src/main.cc: Validate permissions of .netrc file.
  11144. To add --user-agent command-line option:
  11145. * src/main.cc: Added new command line option: --user-agent
  11146. * src/prefs.h (PREF_USER_AGENT): New definition.
  11147. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11148. parameter to HttpRequest object.
  11149. * src/AbstractProxyRequestCommand.cc
  11150. (executeInternal): Set user-agent option parameter to HttpRequest
  11151. object.
  11152. Marged the patches from Dan Fandrich.
  11153. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Use filename and size from Metalink file instead of sending HEAD
  11155. request:
  11156. * src/UrlRequestInfo.h
  11157. (_filename): New variable.
  11158. (_totalLength): New variable.
  11159. (setTotalLength): New variable.
  11160. (setFilename): New variable.
  11161. * src/MetalinkRequestInfo.cc
  11162. (execute): Set filename and size to UrlRequestInfo
  11163. * src/UrlRequestInfo.cc
  11164. (execute): Use filename and size from Metalink instead of seding
  11165. HEAD request to servers.
  11166. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11167. To add the ability to resume downloading a partially downloaded file
  11168. which is downloaded from the beginning:
  11169. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11170. takes this role.
  11171. * src/main.cc: Added -c option.
  11172. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11173. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11174. * src/prefs.h (PREF_CONTINUE): New definition.
  11175. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11176. * src/DefaultDiskWriter.cc
  11177. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11178. * src/AbstractDiskWriter.h
  11179. (glowFileAllocator): New variable.
  11180. * src/AbstractDiskWriter.cc
  11181. (openExistingFile): Now preallocate file space from the end of the
  11182. existing file if totalLength argument is specified and grater than 0.
  11183. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11184. to download exists in local, continue the download of the file.
  11185. --allow-overwrite=true is assumed in this context.
  11186. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11187. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11188. Throw exception if --check-integrity=true is specified but chunk
  11189. checksums are not provided:
  11190. * src/UrlRequestInfo.cc
  11191. Do not print URLs to stdout:
  11192. * src/UrlRequestInfo.cc
  11193. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11194. * src/Request.h: Use AuthResolver to get authentication information.
  11195. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11196. set to RequestFactory object.
  11197. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11198. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11199. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11200. create Request object.
  11201. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11202. To integrate Netrc into exsiting classes:
  11203. * src/Request.h
  11204. (_userDefinedAuthConfig): New variable.
  11205. (findNetrcAuthenticator): New function.
  11206. (segment): Removed.
  11207. (setUserDefinedAuthConfig): New function.
  11208. (resolveHttpAuthConfigItem): New function.
  11209. (resolveFtpAuthConfigItem): New function.
  11210. (resolveHttpProxyAuthConfigItem): New function.
  11211. * src/HttpRequest.h
  11212. (authConfig): Removed.
  11213. (proxyAuthConfig): Removed.
  11214. (setAuthConfig): Removed.
  11215. (setProxyAuthConfig): Removed.
  11216. * src/UrlRequest.h
  11217. (getHeadResult): Added a parameter: authConfigHandle
  11218. * src/common.h
  11219. (SingletonHolder.h): New include.
  11220. * src/main.cc
  11221. (Netrc.h): New include.
  11222. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11223. Added initial value of PREF_NETRC_PATH.
  11224. Added the initialization of netrc.
  11225. * src/AuthConfig.h: New class.
  11226. * src/prefs.h
  11227. (PREF_NETRC_PATH): New definition.
  11228. * src/HttpAuthConfig.h: Removed.
  11229. * src/Netrc.cc
  11230. (getRequiredNextToken): New function.
  11231. (skipMacdef): New function.
  11232. (parse): Rewritten.
  11233. * src/Netrc.h
  11234. (getRequiredNextToken): New function.
  11235. (skipMacdef): New function.
  11236. * src/Util.h, src/Util.cc
  11237. (getHomeDir): New function.
  11238. * src/TrackerWatcherComand.cc
  11239. (createRequestCommand): Use AuthConfig.
  11240. * src/FtpConnection.cc
  11241. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11242. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11243. * src/Request.cc
  11244. (findNetrcAuthenticator): New function.
  11245. (resolveHttpAuthConfigItem): New function.
  11246. (resolveFtpAuthConfigItem): New function.
  11247. (resolveHttpProxyAuthConfigItem): New function.
  11248. * src/UrlRequestInfo.cc: Use AuthConfig.
  11249. * src/HttpRequest.cc
  11250. (createRequest): Use authConfig.
  11251. (getProxyAuthString): Use authConfig.
  11252. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11253. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11254. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. To reduce overhead to find commands whose socket is either
  11256. readable or writable in the download engine loop:
  11257. * src/Command.h, src/Command.cc
  11258. (STATUS): New enum.
  11259. (status): New variable.
  11260. (statusMatch): New function.
  11261. (setStatusActive): New function.
  11262. (setStatusInactive): New function.
  11263. * src/DownloadEngine.h, src/DownloadEngine.cc
  11264. (executeCommand): New function.
  11265. (run): Simplified.
  11266. (waitData): Call Command::setStatusActive() when command's socket is
  11267. readable or writable.
  11268. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11269. To handle Segment as SegmentHandle:
  11270. * src/AbstractCommand.cc (execute): Rewritten.
  11271. * src/SegmentMan.h: Segment -> SegmentHandle
  11272. Introducded HttpResponse class, HttpRequest class to improve code
  11273. extensiveness and make it clear:
  11274. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11275. HttpResponse class.
  11276. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11277. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11278. * src/HttpConnection.cc: Contruction of http request were moved to
  11279. HttpRequest class.
  11280. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11281. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11282. * src/HttpAuthConfig.h: New class.
  11283. * src/Range.h: New class.
  11284. To make FtpTunnel{Request, Response}Command and
  11285. HttpProxy{Request, Response}Command derived from
  11286. AbstractProxy{Request, Response}Command:
  11287. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11288. Derived from AbstractProxyRequestCommand class.
  11289. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11290. Derived from AbstractProxyResponseCommand class.
  11291. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11292. Derived from AbstractProxyRequestCommand class.
  11293. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11294. Derived from AbstractProxyResponseCommand class.
  11295. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11296. : New class.
  11297. * src/AbstractProxyResponseCommand.h,
  11298. src/AbstractProxyResponseCommand.cc: New class.
  11299. To add netrc support:
  11300. * src/Netrc.h, src/Netrc.cc: New class.
  11301. * src/Util.h, src/Util.cc (split): New function.
  11302. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11303. "Content-Range" header instead of "Range" header.
  11304. * src/HttpHeader.h
  11305. (getStatus): Removed.
  11306. (setStatus): Removed.
  11307. * src/Segment.h
  11308. (getPositionToWrite): New function.
  11309. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. * src/HttpHeader.h
  11311. (Range.h): New include.
  11312. (status): New variable.
  11313. (HttpHeader): Initialized status with 0.
  11314. (getStatus): New function.
  11315. (setStatus): New function.
  11316. (getRange): New function.
  11317. (HttpHeaderHandle): New function.
  11318. * src/HttpHeader.cc
  11319. (getRange): New function.
  11320. * src/Request.h
  11321. (RequestWeakHandle): New definition.
  11322. * src/HttpConnection.h
  11323. (HttpConnectionHandle): New type definition.
  11324. * src/HttpConnection.cc
  11325. (receiveResponse): Set HTTP status to headers.
  11326. * src/main.cc
  11327. (showUsage): Fixed typo.
  11328. * src/Segment.h
  11329. (SegmentHandle): New type definition.
  11330. * src/BitfieldMan.h
  11331. (getMissingUnusedLength): New function.
  11332. * src/BitfieldMan.cc
  11333. (getMissingUnusedLength): New function.
  11334. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11335. To fix static initialization order problem:
  11336. * src/BitfieldManFactory.h
  11337. (defaultRandomizer): Removed.
  11338. (factory): New variable.
  11339. (getNewFactory): Removed.
  11340. (getFactoryInstance): New function.
  11341. (setDefaultRandomizer): Rewritten.
  11342. (getDefaultRandomizer): Rewritten.
  11343. * src/BitfieldManFactory.cc
  11344. (defaultRandomizer): Removed.
  11345. (factory): Initialized to 0.
  11346. (BitfieldManFactory): Initialized randomizer to 0.
  11347. * src/DefaultPieceStorage.cc
  11348. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11349. * src/Peer.cc
  11350. (Peer): getNewFactory() -> getFactoryInstance()
  11351. * src/SegmentMan.cc
  11352. (initBitfield): getNewFactory() -> getFactoryInstance()
  11353. * src/Piece.cc
  11354. (Piece): getNewFactory() -> getFactoryInstance()
  11355. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. To fix the bug that causes crash on Max OS X:
  11357. * src/SimpleRandomizer.h
  11358. (getInstance): Create new instance if the static variable is null.
  11359. * src/SimpleRandomizer.cc
  11360. (randomizer): Initialized to 0.
  11361. * src/BitfieldManFactory.h
  11362. (getNewFactory): Removed the call to setRandomizer().
  11363. To fix the miscalculation of the range of checksum:
  11364. * src/BitfieldMan.h
  11365. (isBitSetOffsetRange): New function.
  11366. * src/BitfieldMan.cc
  11367. (isBitSetOffsetRange): New function.
  11368. * src/SegmentMan.cc
  11369. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11370. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11371. * Release 0.10.1
  11372. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. To lower CPU usage in BitTorrent download when --max-upload-limit
  11374. command-line option specified:
  11375. * src/DefaultBtMessageDispatcher.cc
  11376. (sendMessages): Calculate uploading speed only when current message
  11377. is uploading data and is not sent yet.
  11378. * src/DefaultPeerStorage.h
  11379. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11380. * src/HttpResponseCommand.cc
  11381. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11382. This fixes compile error in Soralis 10.
  11383. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11384. To fix segfault in Metalink download:
  11385. * src/UrlRequestInfo.h
  11386. (filename): Removed.
  11387. (totalLength): Removed.
  11388. (setTotalLength): Removed.
  11389. (setFilename): Removed.
  11390. * src/MetalinkRequestInfo.cc
  11391. (execute): Do not set filename and totalLength to reqInfo.
  11392. Set chunk checksum to reqInfo if it is not null.
  11393. * src/HttpResponseCommand.cc
  11394. (executeInternal): Fixed filename in log.
  11395. (handleDefaultEncoding): Removed the call to initBitfield() and
  11396. markAllPiecesDone().
  11397. (handleOtherEncoding): Added HEAD method handling.
  11398. * src/FtpNegotiateCommand.cc
  11399. (executeInternal): Added SEQ_HEAD_OK handling.
  11400. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11401. return false.
  11402. * src/FtpNegotiateCommand.h
  11403. (SEQ_HEAD_OK): New definition.
  11404. * src/SegmentMan.cc
  11405. (initBitfield): Delete bitfield.
  11406. (isChunkChecksumValidationReady): Fixed the condition.
  11407. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11408. works fine.
  11409. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11410. * src/Xml2MetalinkProcessor.h
  11411. (xpathExists): New function.
  11412. * src/Xml2MetalinkProcessor.cc
  11413. (xpathExists): New function.
  11414. Not to send HEAD request if filename and size are available in Metalink
  11415. file:
  11416. * src/UrlRequestInfo.h
  11417. (filename): New variable.
  11418. (totalLength): New variable.
  11419. (setTotalLength): New function.
  11420. (setFilename): New function.
  11421. * src/MetalinkRequestInfo.cc
  11422. (execute): Set filename and size to UrlRequestInfo.
  11423. * src/MetalinkEntry.cc
  11424. (MetalinkEntry): Initialize size with 0.
  11425. * src/UrlRequestInfo.cc
  11426. (execute): Set filename and size to SegmentMan.
  11427. Not to download rest of the files after selected files are downloaded
  11428. in BitTorrent:
  11429. * src/PieceStorage.h
  11430. (allDownloadFinished): New function.
  11431. * src/DefaultBtAnnounce.cc
  11432. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11433. downloadFinished.
  11434. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11435. * src/DefaultPieceStorage.cc
  11436. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11437. Commented out the call to finishSelectiveDownloadingMode().
  11438. (downloadFinished): Call isFilteredAllBitSet() instead of
  11439. isAllBitSet().
  11440. (allDownloadFinished): New function.
  11441. * src/DefaultBtInteractive.cc
  11442. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11443. downloadFinished().
  11444. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11445. * src/TorrentDownloadEngine.cc
  11446. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11447. * src/BitfieldMan.h
  11448. (isFilteredAllBitSet): New function.
  11449. * src/ShareRatioSeedCriteria.h
  11450. (PieceStorage.h): New include.
  11451. (pieceStorage): New variable.
  11452. (evaluate):
  11453. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11454. * src/BitfieldMan.cc
  11455. (isFilteredAllBitSet): New function.
  11456. (isAllBitSet): Filter is not took into account.
  11457. Rename --force-truncate as --allow-overwrite:
  11458. * src/TorrentRequestInfo.cc
  11459. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11460. * src/main.cc
  11461. (showUsage): --force-truncate -> --allow-overwrite
  11462. * src/message.h
  11463. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11464. * src/prefs.h
  11465. (PREF_FORCE_TRUNCATE): Removed.
  11466. (PREF_ALLOW_OVERWRITE): New definition.
  11467. * src/SegmentMan.cc
  11468. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11469. * src/MetalinkRequestInfo.cc
  11470. (execute): Queueing message are now logged in info level.
  11471. * src/common.h
  11472. (LONG_LONG_MAX): Removed.
  11473. (LONG_LONG_MIN): Removed.
  11474. * src/HttpResponseCommand.cc
  11475. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11476. * src/FtpNegotiateCommand.cc
  11477. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11478. * src/main.cc
  11479. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11480. command-line option.
  11481. (main): Added --check-integriy and --realtime-chunk-checksum
  11482. command-line option.
  11483. --force-truncate -> --allow-overwrite
  11484. Set initial value of --check-integrity option to false.
  11485. Don't show usage when error occurs while persing command-line options.
  11486. Removed deprecated --upload-limit option.
  11487. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11489. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11490. * src/BtAllowedFastMessage.cc:
  11491. * src/BtBitfieldMessage.cc
  11492. * src/BtCancelMessage.cc
  11493. * src/BtChokeMessage.cc
  11494. * src/BtHaveAllMessage.cc
  11495. * src/BtHaveMessage.cc
  11496. * src/BtHaveNoneMessage.cc
  11497. * src/BtInterestedMessage.cc
  11498. * src/BtNotInterestedMessage.cc
  11499. * src/BtPieceMessage.cc
  11500. * src/BtPortMessage.cc
  11501. * src/BtRejectMessage.cc
  11502. * src/BtRequestMessage.cc
  11503. * src/BtSuggestPieceMessage.cc
  11504. * src/BtUnchokeMessage.cc
  11505. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11506. files are affected.
  11507. * src/ChunkChecksumValidator.cc
  11508. * src/SegmentMan.cc
  11509. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. To add chunk checksum validation:
  11511. * src/MetalinkEntry.h
  11512. (MetalinkChunkChecksum.h): New include.
  11513. (chunkChecksum): New variable.
  11514. * src/Request.h
  11515. (method): New variable.
  11516. (setMethod): New function.
  11517. (getMethod): New function.
  11518. (METHOD_GET): New static constant.
  11519. (METHOD_HEAD): New static constant.
  11520. * src/Xml2MetalinkProcessor.h
  11521. (getPieceHash): New function.
  11522. * src/PieceStorage.h
  11523. (markAllPiecesDone): New function.
  11524. (checkIntegrity): New function.
  11525. * src/FileAllocator.h
  11526. (NullFileAllocationMonitor.h): New include.
  11527. (FileAllocator): Initialize fileAllocationMonitor with new
  11528. NullFileAllocationMonitor().
  11529. * src/MultiDiskAdaptor.h
  11530. (messageDigest.h): Remove include.
  11531. (ctx): Removed.
  11532. (hashUpdate): Added ctx.
  11533. (MultiDiskAdaptor): Removed ctx.
  11534. (sha1Sum): Renamed as messageDigest.
  11535. (messageDigest): New function.
  11536. * src/UrlRequestInfo.h
  11537. (HeadResult): New class.
  11538. (digestAlgo): New variable.
  11539. (chunkChecksumLength): New variable.
  11540. (chunkChecksums): New variable.
  11541. (getHeadResult): New function.
  11542. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11543. (setDigestAlgo): New function.
  11544. (setChunkChecksumLength): New function.
  11545. (setChunkChecksums): New function.
  11546. * src/DefaultPieceStorage.cc
  11547. (DiskAdaptorWriter.h): New include.
  11548. (ChunkChecksumValidator.h): New include.
  11549. (markAllPiecesDone): New function.
  11550. (checkIntegrity): New function.
  11551. * src/DefaultBtContext.h
  11552. (getPieceHashes): New function.
  11553. * src/TorrentRequestInfo.cc
  11554. (execute): Try to validate chunk checksum if file already exists and
  11555. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11556. * src/messageDigest.h
  11557. (~MessageDigestContext): Added digestFree().
  11558. * src/MetalinkRequestInfo.cc
  11559. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11560. * src/DiskAdaptor.h
  11561. (messageDigest.h): New include.
  11562. (sha1Sum): Renamed as messageDigest.
  11563. (messageDigest): New function.
  11564. * src/DownloadCommand.h
  11565. (PeerStat.h): New include.
  11566. (maxDownloadSpeedLimit): New variable.
  11567. (startupIdleTime): New variable.
  11568. (lowestDownloadSpeedLimit): New variable.
  11569. (peerStat): New variable.
  11570. (setMaxDownloadSpeedLimit): New function.
  11571. (setStartupIdleTime): New function.
  11572. (setLowestDownloadSPeedLimit): New function.
  11573. * src/BtContext.h
  11574. (getPieceHashes): New function.
  11575. * src/main.cc
  11576. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11577. option to true for testing purpose.
  11578. * src/BtPieceMessage.cc
  11579. (checkPieceHash): Use messageDigest
  11580. * src/DownloadEngine.cc
  11581. (SetDescriptor): Removed.
  11582. (AccumulateActiveCommand): Removed.
  11583. (waitData): Rewritten.
  11584. (updateFdSet): Rewritten.
  11585. * src/MultiDiskAdaptor.cc
  11586. (hashUpdate): Added ctx.
  11587. (sha1Sum): Renamed as messageDigest.
  11588. (messageDigest): New function.
  11589. * src/BitfieldMan.h
  11590. (isBitRangeSet): New function.
  11591. (unsetBitRange): New function.
  11592. * src/ByteArrayDiskWriter.h
  11593. (sha1Sum): Renamed as messageDigest.
  11594. (messageDigest): New function.
  11595. * src/ConsoleDownloadEngine.cc
  11596. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11597. * src/DiskWriter.h
  11598. (messageDigest.h): New include.
  11599. (sha1Sum): Renamed as messageDigest.
  11600. (messageDigest): New function.
  11601. * src/ChunkChecksumValidator.h: New class.
  11602. * src/DiskAdaptorWriter.h: New class.
  11603. * src/prefs.h
  11604. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11605. (PREF_CHECK_INTEGRITY): New definition.
  11606. * src/HttpResponseCommand.cc
  11607. (handleDefaultEncoding): Added method "HEAD" handling.
  11608. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11609. (handleOtherEncoding):
  11610. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11611. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11612. startupIdleTime, lowestDownloadSpeedLimit to command.
  11613. * src/SegmentMan.h
  11614. (getSegmentEntryByIndex): New function.
  11615. (getSegmentEntryByCuid): New function.
  11616. (getSegmentEntryIteratorByCuid): New function.
  11617. (diskWriter): DiskWriter -> DiskWriterHandle
  11618. (pieceHashes): New variable.
  11619. (chunkHashLength): New variable.
  11620. (digestAlgo): New variable.
  11621. (FindPeerStat): Removed.
  11622. (getPeerStat): Rewritten.
  11623. (markAllPiecesDone): New function.
  11624. (checkIntegrity): New function.
  11625. (tryChunkChecksumValidation): New function.
  11626. (isChunkChecksumValidationReady): New function.
  11627. * src/BitfieldMan.cc
  11628. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11629. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11630. blocks to 0.
  11631. (isBitRangeSet): New function.
  11632. (unsetBitRange): New function.
  11633. * src/FtpNegotiateCommand.cc
  11634. (executeInternal): Set maxDownloadSpeedLimit,
  11635. startupIdleTime, lowestDownloadSpeedLimit to command.
  11636. (recvSize): Added method "HEAD" handling.
  11637. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11638. * src/AbstractSingleDiskAdaptor.cc
  11639. (sha1Sum): Renamed as messageDigest.
  11640. (messageDigest): New function.
  11641. * src/AbstractSingleDiskAdaptor.h
  11642. (sha1Sum): Renamed as messageDigest.
  11643. (messageDigest): New function.
  11644. * src/Util.h
  11645. (indexRange): New function.
  11646. * src/MetalinkEntry.cc
  11647. (MetalinkEntry): Initialized chunkChecksum to 0.
  11648. * src/ShaVisitor.cc
  11649. (~ShaVisitor): Removed the call to ctx.digestFree().
  11650. * src/SegmentMan.cc
  11651. (ChunkChecksumValidator.h): New include.
  11652. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11653. to DIGEST_ALGO_SHA1.
  11654. (~SegmentMan): Removed diskWriter.
  11655. (FindSegmentEntryByIndex): Removed.
  11656. (FindSegmentEntryByCuid): Removed.
  11657. (checkoutSegment): Rewritten.
  11658. (findSlowerSegmentEntry): Rewritten.
  11659. (getSegment): Rewritten.
  11660. (updateSegment): Rewritten.
  11661. (completeSegment): Rewritten.
  11662. (markAllPiecesDone): New function.
  11663. (checkIntegrity): New function.
  11664. (isChunkChecksumValidationReady): New function.
  11665. (tryChunkChecksumValidation): New function.
  11666. * src/Xml2MetalinkProcessor.cc
  11667. (getEntry): Get size and set it to entry.
  11668. Get chunk checksum and set it to entry.
  11669. (getPieceHash): New function.
  11670. * src/Util.cc
  11671. (sha1Sum): Removed ctx.digestFree()
  11672. (fileChecksum): Removed ctx.digestFree()
  11673. (indexRange): New function.
  11674. * src/Request.cc
  11675. (METHOD_GET): New variable.
  11676. (METHOD_HEAD): New variable.
  11677. (Request): Added method.
  11678. * src/UrlRequestInfo.cc
  11679. (FatalException.h): New include.
  11680. (message.h): New include.
  11681. (operator<<): Added operator<< for class HeadResult.
  11682. (getHeadResult): New function.
  11683. (execute): Get filename and size in separate download engine.
  11684. * src/ChunkChecksumValidator.cc: New class.
  11685. * src/DownloadCommand.cc:
  11686. (DownloadCommand): Added peerStat.
  11687. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11688. the value from Option.
  11689. The buffer size is now 16KB.
  11690. Use peerStat member instead of getting it from SegmentMan.
  11691. Use startupIdleTime member instead of gettingit from Option.
  11692. Added chunk checksum validation.
  11693. * src/AbstractDiskWriter.cc
  11694. (AbstractDiskWriter): Removed ctx.
  11695. (~AbstractDiskWriter): Removed ctx.digestFree()
  11696. (writeDataInternal): Returns the return value of write.
  11697. (readDataInternal): Returns the return value of read.
  11698. (sha1Sum): Renamed as messageDigest
  11699. (messageDigest): New function.
  11700. * src/AbstractDiwkWriter.h
  11701. (messageDigest.h): Removed include.
  11702. (ctx): Removed.
  11703. (sha1Sum): Renamed as messageDigest
  11704. (messageDigest): New function.
  11705. * src/DefaultPieceStorage.h
  11706. (markAllPiecesDone): New function.
  11707. (checkIntegrity): New function.
  11708. * src/NullFileAllocationMonitor.h: New class.
  11709. * src/MetalinkChunkChecksum.h: New class.
  11710. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. To decrease CPU usage in bittorrent download, calculation results in
  11712. BitfieldMan were cached and realtime fetching PeerObject was removed
  11713. with WeakHandle introduced. Option values are set to the objects
  11714. by setter before download begins.
  11715. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11716. * src/DefaultBtRequestFactory.h
  11717. (dispatcher): BtMessageDispatcherHandle ->
  11718. BtMessageDispatcherWeakHandle.
  11719. (messageFactory): New variable.
  11720. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11721. BtMessageDispatcherWeakHandle.
  11722. (setBtMessageFactory): New function.
  11723. * src/DefaultBtMessageDispatcher.cc:
  11724. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11725. from Option.
  11726. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11727. feating the value from Option.
  11728. Use messageFactory member.
  11729. * src/PeerInteractionCommand.cc
  11730. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11731. Add reverse dependencies to factory object.
  11732. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11733. dispatcher.
  11734. Set messageFactory to receiver.
  11735. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11736. btInteractive.
  11737. Set receiver to peerObject.
  11738. Set maxDownloadSpeedLimit to this.
  11739. (executeInternal): Use maxDownloadSpeedLimit member.
  11740. * src/BtChokeMessage.cc
  11741. (doReceivedAction): Use dispatcher, requestFactory member.
  11742. (onSendComplete): Use dispatcher member.
  11743. * src/PeerInteractionCommand.h
  11744. (maxDownloadSpeedLimit): New variable.
  11745. * src/DefaultBtMessageReceiver.h
  11746. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11747. (dispatcher):
  11748. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11749. (messageFactory): New variable.
  11750. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11751. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11752. (setDispatcher):
  11753. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11754. (setBtMessageFactory): New function.
  11755. * src/DefaultBtInteractive.cc
  11756. (initiateHandshake): Use messageFactory member.
  11757. (addBitfieldMessageToQueue): Use messageFactory member.
  11758. (addAllowedFastMessageToQueue): Use messageFactory member.
  11759. (decideChoking): Use messageFactory member.
  11760. (checkHave): Use messageFactory member.
  11761. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11762. (receiveMessages): Use maxDownloadSpeedLimit member.
  11763. (decideInterest): Use messageFactory member.
  11764. * src/BtRequestMessage.cc
  11765. (doReceivedAction): Use messageFactory, dispatcher member.
  11766. (onQueued): Use dispatcher member.
  11767. * src/BtPieceMessage.cc
  11768. (doReceivedAction): Use dispatcher member.
  11769. (send): Use peerConnection member.
  11770. (onWrongPiece): Use requestFactory member.
  11771. (handleChokingEvent): Use messageFactory, dispatcher member.
  11772. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11773. * src/BtMessageDispatcher.h
  11774. (BtMessageDispatcherWeakHandle): New type definition.
  11775. * src/SimpleBtMessage.cc
  11776. (send): Use peerConnection member.
  11777. * src/BtRejectMessage.cc
  11778. (doReceivedAction): Use dispatcher member.
  11779. * src/DefaultBtMessageDispatcher.h
  11780. (Option.h): Removed include.
  11781. (messageFactory): New variable.
  11782. (option): Removed.
  11783. (maxUploadSpeedLimit): New variable.
  11784. (requestTimeout): New variable.
  11785. (DefaultBtMessageDispatcher): Removed option.
  11786. Added maxUploadSpeedLimit, requestTimeout.
  11787. (setOption): Removed.
  11788. (getOption): Removed.
  11789. (setMaxUploadSpeedLimit): New function.
  11790. (setRequestTimeout): New function.
  11791. (setBtMessageFactory): New function.
  11792. * src/DefaultBtInteractive.h
  11793. (btMessageReceiver):
  11794. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11795. (dispatcher):
  11796. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11797. (btRequestFactory):
  11798. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11799. (peerConnection):
  11800. PeerConnectionHandle -> PeerConnectionWeakHandle
  11801. (messageFactory): New variable.
  11802. (option): Removed.
  11803. (keepAliveInterval): New variable.
  11804. (maxDownloadSpeedLimit): New variable.
  11805. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11806. (setBtMessageReceiver):
  11807. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11808. (setDispatcher):
  11809. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11810. (setBtRequestFactory):
  11811. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11812. (setPeerConnection):
  11813. PeerConnectionHandle -> PeerConnectionWeakHandle
  11814. (setOption): Removed.
  11815. (setKeepAliveInterval): New function.
  11816. (setMaxDownloadSpeedLimit): New function.
  11817. (setBtMessageFactory): New function.
  11818. * src/BitfieldMan.h
  11819. (cachedNumMissingBlock): New variable.
  11820. (cachedNumFilteredBlock): New variable.
  11821. (cachedCompletedLength): New variable.
  11822. (cachedFilteredComletedLength): New variable.
  11823. (cachedFilteredTotalLength): New variable.
  11824. (countMissingBlockNow): New function.
  11825. (countFilteredBlockNow): New function.
  11826. (getFilteredTotalLengthNow): New function.
  11827. (getCompletedLengthNow): New function.
  11828. (getFilteredCompletedLengthNow): New function.
  11829. (updateCache): New function.
  11830. * src/AbstractBtMessage.h
  11831. (BtMessageDispatcher.h): New include.
  11832. (PeerConnection.h): New include.
  11833. (BtRequestFactory.h): New include
  11834. (BtMessageFactory.h): New include.
  11835. (dispatcher): New variable.
  11836. (messageFactory): New variable.
  11837. (peerConnection: New variable.
  11838. (setBtMessageDispatcher): New function.
  11839. (setPeerConnection): New function.
  11840. (setBtMessageFactory): New function.
  11841. (setBtRequestFactory): New function.
  11842. * src/DefaultBtMessageFactory.cc
  11843. (setCommonProperty): Set dispatcher, requestFactory, this,
  11844. peerConnection to msg.
  11845. * src/BtRegistry.h
  11846. (BT_MESSAGE_RECEIVER): New macro.
  11847. * src/PeerConnection.h
  11848. (PeerConnectionWeakHandle): New type definition.
  11849. * src/BtMessageFactory.h
  11850. (BtMessageFactoryWeakHandle): New type definition.
  11851. * src/BitfieldMan.cc
  11852. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11853. cachedCompletedLength, cachedFilteredComletedLength,
  11854. cachedFilteredTotalLength.
  11855. Call updateCache().
  11856. (countMissingBlock): Return cachedNumMissingBlock.
  11857. (countMissingBlockNow): New function.
  11858. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11859. (countFilteredBlockNow): New function.
  11860. (setBit): Call updateCache().
  11861. (unsetBit): Call updateCache().
  11862. (setBitfield): Call updateCache().
  11863. (clearAllBit): Call updateCache().
  11864. (setAllBit): Use setBitInternal instead of setBit.
  11865. Call updateCache().
  11866. (addFilter): Call updateCache().
  11867. (enableFilter): Call updateCache().
  11868. (disableFilter): Call updateCache().
  11869. (clearFilter): Call updateCache().
  11870. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11871. (getFilteredTotalLengthNow): New function.
  11872. (getCompletedLength): Return cachedCompletedLength.
  11873. (getCompletedLengthNow): New function.
  11874. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11875. (getFilteredCompletedLengthNow): New function.
  11876. (updateCache): New function.
  11877. * src/BtMessageReceiver.h
  11878. (BtMessageReceiverWeakHandle): New type definition.
  11879. * src/DefaultBtMessageReceiver.cc
  11880. (receiveHandshake): Use messageFactory member.
  11881. (sendHandshake): Use messageFactory member.
  11882. (receiveMessage): Use messageFactory member.
  11883. * src/DefaultBtMessageFactory.h
  11884. (dispatcher): New variable.
  11885. (requestFactory): New variable.
  11886. (peerConnection): New variablle.
  11887. (setBtMessageDispatcher): New function.
  11888. (setBtRequestFactory): New function.
  11889. (setPeerConnection): New function.
  11890. * src/SharedHandle.h
  11891. (RefCount): New class.
  11892. (WeakHandle): New class.
  11893. * src/PeerObject.h
  11894. (BtMessageReceiver.h): New include.
  11895. (PeerObject): Added btMessageReceiver.
  11896. (btMessageReceiver): New variable.
  11897. * src/Util.cc
  11898. (countBit): Simplified.
  11899. * src/BtCancelMessage.cc
  11900. (doReceivedAction): Use dispatcher member.
  11901. * src/BtRequestFactory.h
  11902. (BtRequestFactoryWeakHandle): New type definition.
  11903. * src/PeerStorage.h
  11904. (downloadSpeed): int -> uint32_t
  11905. (uploadSpeed): int -> uint32_t
  11906. (sessionDownloadLength): long long int -> uint64_t
  11907. (sessionUploadLength): long long int -> uint64_t
  11908. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11909. To add RecoverableException, FatalException:
  11910. * src/AbstractCommand.cc
  11911. (onAbort): Exception -> RecoverableException
  11912. * src/PeerAbstractCommand.h
  11913. (RecoverableException.h): New include.
  11914. (onAbort): Exception -> RecoverableException.
  11915. * src/PeerInteractionCommand.cc
  11916. (onAbort): Exception -> RecoverableException.
  11917. * src/PeerAbstractCommand.cc
  11918. (execute): Exception -> RecoverableException.
  11919. (onAbort): Exception -> RecoverableException.
  11920. * src/TorrentRequestInfo.cc
  11921. (execute): Exception -> RecoverableException.
  11922. * src/MetalinkRequestInfo.cc
  11923. (execute): Exception -> RecoverableException.
  11924. * src/MetaFileUtil.cc: RecoverableException.
  11925. * src/AbstractCommand.h
  11926. (onAbort): Exception -> RecoverableException.
  11927. * src/DlRetryEx.h: Exception -> RecoverableException.
  11928. * src/DlAbortEx.h: Exception -> RecoverableException.
  11929. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11930. * src/Util.cc: Exception -> RecoverableException.
  11931. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11932. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11933. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11934. To make ID static const int
  11935. * src/BtInterestedMessage.h
  11936. (ID_t): Removed.
  11937. (ID): New variable.
  11938. (getId): Made non-const.
  11939. * src/BtPieceMessage.h
  11940. (ID_t): Removed.
  11941. (ID): New variable.
  11942. (getId): Made non-const.
  11943. * src/BtChokeMessage.h
  11944. (ID_t): Removed.
  11945. (ID): New variable.
  11946. (getId): Made non-const.
  11947. * src/BtHaveAllMessage.h
  11948. (ID_t): Removed.
  11949. (ID): New variable.
  11950. (getId): Made non-const.
  11951. * src/BtKeepAliveMessage.h
  11952. (ID_t): Removed.
  11953. (ID): New variable.
  11954. (getId): Made non-const.
  11955. * src/BtHandshakeMessage.h
  11956. (ID): New variable.
  11957. (getId): Made non-const.
  11958. * src/BtSuggestPieceMessage.h
  11959. (ID_t): Removed.
  11960. (ID): New variable.
  11961. (getId): Made non-const.
  11962. * src/BtPortMessage.h
  11963. (ID_t): Removed.
  11964. (ID): New variable.
  11965. (getId): Made non-const.
  11966. * src/AbstractBtMessage.h
  11967. (id): Removed.
  11968. (AbstractBtMessage): Removed id.
  11969. (getId): Removed.
  11970. * src/BtHaveMessage.h
  11971. (ID_t): Removed.
  11972. (ID): New variable.
  11973. (getId): Made non-const.
  11974. * src/BtAllowedFastMessage.h
  11975. (ID_t): Removed.
  11976. (ID): New variable.
  11977. (getId): Made non-const.
  11978. * src/BtCancelMessage.h
  11979. (ID_t): Removed.
  11980. (ID): New variable.
  11981. (getId): Made non-const.
  11982. * src/BtNotInterestedMessage.h
  11983. (ID_t): Removed.
  11984. (ID): New variable.
  11985. (getId): Made non-const.
  11986. * src/BtChokeMessage.h
  11987. (ID_t): Removed.
  11988. (ID): New variable.
  11989. (getId): Made non-const.
  11990. * src/BtRejectMessage.h
  11991. (ID_t): Removed.
  11992. (ID): New variable.
  11993. (getId): Made non-const.
  11994. * src/BtBitfieldMessage.h
  11995. (ID_t): Removed.
  11996. (ID): New variable.
  11997. (getId): Made non-const.
  11998. * src/BtUnchokeMessage.h
  11999. (ID_t): Removed.
  12000. (ID): New variable.
  12001. (getId): Made non-const.
  12002. * src/BtRequestMessage.h
  12003. (ID_t): Removed.
  12004. (ID): New variable.
  12005. (getId): Made non-const.
  12006. * src/BtHaveMessage.h
  12007. (ID_t): Removed.
  12008. (ID): New variable.
  12009. (getId): Made non-const.
  12010. To add --force-truncate command-line option and a check whether
  12011. the file already exists:
  12012. * src/DirectDiskAdaptor.h
  12013. (getFilePath): Made virtual public.
  12014. * src/MultiDiskAdaptor.h
  12015. (File.h): New include.
  12016. (DiskWriterEntry::fileEntry): Made private.
  12017. (DiskWriterEntry::fileExists): New function.
  12018. (DiskWriterEntry::getFileEntry): New function.
  12019. (fileExists): New function.
  12020. (getFilePath): New function.
  12021. * src/TorrentRequestInfo.cc
  12022. (FatalException.h): New include.
  12023. (message.h): New include.
  12024. (RecoverableException.h): New include.
  12025. (execute): Added a check whether file is already exists or not.
  12026. * src/DiskAdaptor.h
  12027. (fileExists): New function.
  12028. (getFilePath): New function.
  12029. * src/main.cc
  12030. (showUsage): Added an explanation of --force-truncate command-line
  12031. option.
  12032. (main): Added --force-truncate command-line option.
  12033. * src/Exception.h
  12034. (setMsg): buf[256] -> buf[1024]
  12035. * src/CopyDiskWriter.h
  12036. (getFilePath): Made public virtual.
  12037. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12038. (fileExists): New function.
  12039. * src/DownloadEngineFactory.cc
  12040. (newTorrentConsoleEngine): Don't open file here.
  12041. * src/message.h
  12042. (EX_FILE_ALREADY_EXISTS): New definition.
  12043. * src/prefs.h
  12044. (PREF_FOECE_TRUNCATE): New definition.
  12045. * src/HttpResponseCommand.cc
  12046. (handleDefaultEncoding): Added a check whether the file already exists.
  12047. * src/SegmentMan.h
  12048. (fileExists): New function.
  12049. (shouldCancelDownloadForSafety): New function.
  12050. * src/FtpNegotiateCommand.cc
  12051. (recvSize): Added a check whether the file already exists.
  12052. * src/AbstractSingleDiskAdaptor.cc
  12053. (File.h): New include.
  12054. (fileExists): New function.
  12055. * src/AbstractSingleDiskAdaptor.h
  12056. (getFilePath): Removed.
  12057. (fileExists): New function.
  12058. * src/SegmentMan.cc
  12059. (fileExists): New function.
  12060. (shouldCancelDownloadForSafety): New function.
  12061. To fix regression bug in torrent downloading:
  12062. * src/DefaultBtRequestFactory.cc
  12063. (doChokedAction): New function.
  12064. * src/DefaultBtRequestFactory.h
  12065. (doChokedAction): New function.
  12066. * src/DefaultBtMessageDispatcher.cc
  12067. (doChokedAction): Do not delete request if its target is in allowed
  12068. fast set.
  12069. * src/DefaultBtInteractive.cc
  12070. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12071. (sendKeepAlive): Send keep alive message even if the outgoing message
  12072. queue is not empty.
  12073. (decideInterest): Simplified the code.
  12074. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12075. it is already called when BtChokeMessage is received from a peer.
  12076. * src/BtRequestFactory.h
  12077. (doChokedAction): New function.
  12078. To clean up code:
  12079. * src/PeerInteractionCommand.h
  12080. (executeInternal): Added virtual keyword explicitly.
  12081. (prepareForRetry): Added virtual keyword explicitly.
  12082. (prepareForNextPeer): Added virtual keyword explicitly.
  12083. (onAbort): Added virtual keyword explicitly.
  12084. * src/RequestSlot.cc
  12085. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12086. * src/BtPieceMessage.cc
  12087. (doReceivedAction): Added a debug log of piece's bitfield.
  12088. * src/Piece.h
  12089. (getBitfieldLength): New function.
  12090. * src/ByteArrayDiskWriter.cc
  12091. (clear): Added buf = 0 to avoid double free corruption.
  12092. * src/FileAllocator.cc
  12093. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12094. Added cp.reset().
  12095. * src/BitfieldMan.h
  12096. (operator=): Rewritten.
  12097. * src/BitfieldMan.cc
  12098. (BitfieldMan): Initialized bitfield, useBitfield.
  12099. * src/PeerConnection.cc
  12100. (receiveMessage): Added a call to socket->readable() after getting
  12101. message length to avoid possible EOF.
  12102. * src/Util.cc
  12103. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12104. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. To add an ability to pre-allocate file space:
  12106. * src/DirectDiskAdaptor.h: Rewritten.
  12107. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12108. * src/MultiDiskAdaptor.h: Rewritten.
  12109. * src/DefaultPieceStorage.cc
  12110. (MultiDiskWriter.h): Removed include.
  12111. (PreAllocationDiskWriter.h): Removed include.
  12112. (FileAllocationMonitor.h): New include.
  12113. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12114. (initStorage): Rewritten.
  12115. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12116. * src/FileAllocator.h: New class.
  12117. * src/FileAllocator.cc: New class.
  12118. * src/FileAllocationMonitor.h: New class.
  12119. * src/FileAllocationMonitor.cc: New class.
  12120. * src/ConsoleFileAllocationMonitor.h: New class.
  12121. * src/ConsoleFileAllocationMonitor.cc: New class.
  12122. * src/AbstractSingleDiskAdaptor.h: New class.
  12123. * src/AbstractSingleDiskAdaptor.cc: New class.
  12124. * src/DiskAdaptor.h
  12125. (Directory.h): Removed include.
  12126. (DiskWriter.h): Removed include.
  12127. (FileEntry.h): Removed include.
  12128. (diskWriter): Removed.
  12129. (DiskAdaptor): Removed diskWriter.
  12130. (openFile): Made pure virtual.
  12131. (closeFile): Made pure virtual.
  12132. (openExistingFile): Made pure virtual.
  12133. (initAndOpenFile): Made pure virtual.
  12134. (writeData): Made pure virtual.
  12135. (readData): Made pure virtual.
  12136. (sha1Sum): Made pure virtual.
  12137. (getStoreDir): Returns const reference of storeDir.
  12138. (DiskAdaptorHandle): New type definition.
  12139. * src/main.cc
  12140. (ConsoleFileAllocationMonitor.h): New include.
  12141. (showUsage): Added default value description of -s option.
  12142. Added the description of --file-allocation option.
  12143. (main): Set default value of --file-allocation option to 'none'.
  12144. Added --file-allocation command-line option.
  12145. Setup FileAllocationMonitorFactory.
  12146. * src/FtpInitiateConnectionCommand.cc
  12147. (executeInternal): Removed diskWriter related processing, which was
  12148. moved to FtpNegotiationCommand.cc.
  12149. * src/DirectDiskAdaptor.cc
  12150. (getFilePath): Made non-const.
  12151. * src/CopyDiskAdaptor.h
  12152. (DiskAdaptor.h): Removed include.
  12153. (DiskWriter.h): Removed include.
  12154. (AbstractSingleDiskAdaptor.h): New include.
  12155. (getFilePath): Made non-const. Added virtual keyword.
  12156. (CopyDiskAdaptor): Removed diskWriter.
  12157. (getTempFile): Returns const reference.
  12158. (CopyDiskAdaptorHandle): New type definition.
  12159. * src/ByteArrayDiskWriter.cc
  12160. (clear): Simplified.
  12161. (initAndOpenFile): Rewritten.
  12162. (openFile): Call initAndOpenFile()
  12163. * src/MultiDiskAdaptor.cc: Rewritten.
  12164. * src/DownloadEngineFactory.cc
  12165. (FileAllocator.h): New include.
  12166. (FileAllocationMonitor.h): New include.
  12167. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12168. create DefaultDiskWriter with file allocator.
  12169. * src/DiskWriter.h
  12170. (initAndOpenFile): Added totalLength argument.
  12171. (openFile): Added totalLength argument.
  12172. * src/prefs.h
  12173. (PREF_FILE_ALLOCATION): New definition.
  12174. (V_PREALLOC): New definition.
  12175. (V_NONE): New definition.
  12176. * src/HttpResponseCommand.cc
  12177. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12178. size.
  12179. * src/FtpNegotiateCommand.cc
  12180. (Util.h): New include.
  12181. (recvSize): Open file here.
  12182. * src/Util.h
  12183. (ullitos): New function.
  12184. * src/CopyDiskWriter.h
  12185. (getFilePath): Made non-const.
  12186. * src/DefaultDiskWriter.h
  12187. (Option.h): New include.
  12188. (totalLength): Removed.
  12189. (DefaultDiskWriter): Removed totalLength.
  12190. (initAndOpenFile): Added totalLength argument.
  12191. (DefaultDiskWriterHandle): New type definition.
  12192. (createNewDiskWriter): New function.
  12193. * src/Util.cc
  12194. (ullitos): New function.
  12195. * src/DefaultDiskWriter.cc
  12196. (message.h): New include.
  12197. (FileAllocator.h): New include.
  12198. (prefs.h): New include.
  12199. (Util.h): New include.
  12200. (DefaultDiskWriter): Removed totalLength.
  12201. (initAndOpenFile): Added file allocation.
  12202. (createNewDiskWriter): New function. Just for temporary solution.
  12203. It will be rewritten later.
  12204. * src/DiskAdaptor.cc
  12205. (DiskAdaptor): Removed diskWriter.
  12206. * src/AbstractDiskWriter.cc
  12207. (LogFactory.h): New include.
  12208. (AbstractDiskWriter): Added fileAllocator, logger.
  12209. (openFile): Added totalLength argument.
  12210. * src/AbstractDiskWriter.h
  12211. (FileAllocator.h): New include.
  12212. (Logger.h): New include.
  12213. (fileAllocator): New variable.
  12214. (logger): New variable.
  12215. (openFile): Added totalLength argument. Added virtual keyword
  12216. explicitly.
  12217. (openExistingFile): Added totalLength argument. Added virtual keyword
  12218. explicitly.
  12219. (closeFile): Added virtual keyword explicitly.
  12220. (sha1Sum): Added virtual keyword explicitly.
  12221. (writeData): Added virtual keyword explicitly.
  12222. (readData): Added virtual keyword explicitly.
  12223. (setFileAllocator): New function.
  12224. * src/DefaultPieceStorage.h
  12225. (FileAllocator.h): New include.
  12226. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12227. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12228. * src/FileProgressMonitor.h: New class.
  12229. To compile aria2 on PC-BSD:
  12230. * src/DefaultBtContext.cc
  12231. (libgen.h): New include.
  12232. To fix memory leak:
  12233. * src/Exception.h
  12234. (~Exception): Delete cause. Fixed memory leak.
  12235. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12236. Rewritten a portion of bittorrent implementation:
  12237. * src/BtMessageValidator.h: New class.
  12238. * src/BtBitfieldMessageValidator.h: New class.
  12239. * src/BtHandshakeMessageValidator.h: New class.
  12240. * src/BtRequestMessageValidator.h: New class.
  12241. * src/BtSuggestPieceMessageValidator.h: New class.
  12242. * src/BtAllowedFastMessageValidator.h: New class.
  12243. * src/BtRejectMessageValidator.h: New class.
  12244. * src/BtCancelMessageValidator.h: New class.
  12245. * src/BtPieceMessageValidator.h: New class.
  12246. * src/BtHaveMessageValidator.h: New class.
  12247. * src/BtEventListener.h: New class.
  12248. * src/AbstractBtEventListener.h: New class.
  12249. * src/BtEvent.h: New class.
  12250. * src/BtChokingEvent.h: New class.
  12251. * src/BtChokedEvent.h: New class.
  12252. * src/BtCancelSendingPieceEvent.h: New class.
  12253. * src/BtAbortOutstandingRequestEvent.h: New class.
  12254. * src/Randomizer.h: New class.
  12255. * src/SimpleRandomizer.h: New class.
  12256. * src/BtMessage.h: New class.
  12257. * src/AbstractBtMessage.h: New class.
  12258. * src/SimpleBtMessage.h: New class.
  12259. * src/BtHaveMessage.h: New class.
  12260. * src/BtInterestedMessage.h: New class.
  12261. * src/BtAllowedFastMessage.h: New class.
  12262. * src/BtUnchokeMessage.h: New class.
  12263. * src/BtCancelMessage.h: New class.
  12264. * src/BtNotInterestedMessage.h: New class.
  12265. * src/BtChokeMessage.h: New class.
  12266. * src/BtHaveNoneMessage.h: New class.
  12267. * src/BtHandshakeMessage.h: New class.
  12268. * src/BtSuggestPieceMessage.h: New class.
  12269. * src/BtHaveMessage.h: New class.
  12270. * src/BtPieceMessage.h: New class.
  12271. * src/BtHaveAllMessage.h: New class.
  12272. * src/BtKeepAliveMessage.h: New class.
  12273. * src/BtPortMessage.h: New class.
  12274. * src/BtRejectMessage.h: New class.
  12275. * src/BtBitfieldMessage.h: New class.
  12276. * src/BtRequestMessage.h: New class.
  12277. * src/DefaultBtRequestFactory.h: New class.
  12278. * src/DefaultBtMessageReceiver.h: New class.
  12279. * src/BtInteractive.h: New class.
  12280. * src/BtMessageDispatcher.h: New class.
  12281. * src/DefaultBtMessageDispatcher.h: New class.
  12282. * src/DefaultBtInteractive.h: New class.
  12283. * src/BitfieldManFactory.h: New class.
  12284. * src/HandleRegistry.h: New class.
  12285. * src/BtMessageFactory.h: New class.
  12286. * src/BtMessageReceiver.h: New class.
  12287. * src/DefaultBtMessageFactory.h: New class.
  12288. * src/PeerObject.h: New class.
  12289. * src/BtRequestFactory.h: New class.
  12290. * src/SuggestPieceMessage.h: Removed.
  12291. * src/PortMessage.h: Removed.
  12292. * src/SuggestPieceMessage.h: Removed.
  12293. * src/KeepAliveMessage.h: Removed.
  12294. * src/HandshakeMessage.h: Removed.
  12295. * src/PeerInteraction.h: Removed.
  12296. * src/UnchokeMessage.h: Removed.
  12297. * src/PieceMessage.h: Removed.
  12298. * src/RequestMessage.h: Removed.
  12299. * src/InterestedMessage.h: Removed.
  12300. * src/HaveMessage.h: Removed.
  12301. * src/CancelMessage.h: Removed.
  12302. * src/RejectMessage.h: Removed.
  12303. * src/AllowedFastMessage.h: Removed.
  12304. * src/HaveNoneMessage.h: Removed.
  12305. * src/SimplePeerMessage.h: Removed.
  12306. * src/HaveAllMessage.h: Removed.
  12307. * src/BitfieldMessage.h: Removed.
  12308. * src/PeerMessageFactory.h: Removed.
  12309. * src/NotInterestedMessage.h: Removed.
  12310. * src/ChokeMessage.h: Removed.
  12311. * src/PeerMessage.h: Removed.
  12312. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. To know root cause of exception:
  12314. * src/Exception.h
  12315. (cause): New variable.
  12316. (Exception): Added a parameter.
  12317. (getMsg): Return const reference to msg.
  12318. (getCause): New function.
  12319. * src/DlRetryEx.h
  12320. (DlRetryEx): Added a parameter 'cause'.
  12321. Added an overloaded constructor.
  12322. (DlAbortEx): Added a parameter 'cause'.
  12323. Added an overloaded constructor.
  12324. * src/SimpleLogger.cc
  12325. (writeLog): Log nested exception messages recursively.
  12326. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. * src/DefaultBtProgressInfoFile.cc
  12328. (load): Fixed memory leak when the infohash doesn't match.
  12329. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. * src/DefaultPeerStorage.cc
  12331. (calculateStat): Simplified the code by combining 2 loops into 1.
  12332. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12333. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12334. for BitTorrent download:
  12335. * src/PeerAbstractCommand.cc
  12336. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12337. * src/main.cc:
  12338. (timeoutSpecified): Removed.
  12339. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12340. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12341. * src/TorrentRequestInfo.cc
  12342. (timeoutSpecified): Removed.
  12343. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12344. timeout value.
  12345. * src/prefs.h
  12346. (PREF_BT_TIMEOUT): New definition.
  12347. Delete unused variables:
  12348. * src/TorrentRequestInfo.cc
  12349. (requestInfo): Removed.
  12350. Move setSignalHander to Util::setGlobalSignalHandler:
  12351. * src/TorrentRequestInfo.cc:
  12352. setSignalHander -> Util::setGlobalSignalHandler
  12353. * src/main.cc
  12354. (setSignalHander): Removed.
  12355. (main): setSignalHander -> Util::setGlobalSignalHandler
  12356. * src/Util.h
  12357. (setGlobalSignalHandler): New function.
  12358. * src/Util.cc
  12359. (setGlobalSignalHandler): New function.
  12360. * src/UrlRequestInfo.cc:
  12361. setSignalHander -> Util::setGlobalSignalHandler
  12362. Reset peer status in order to exit gracefully:
  12363. * src/PeerAbstractCommand.cc
  12364. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12365. To fix the bug that causes the number of bytes uploaded is not saved
  12366. to .aria2 file:
  12367. * src/DefaultPeerStorage.h
  12368. (removedPeerSessionDownloadLength): New variable.
  12369. (removedPeerSessionUploadLength): New variable.
  12370. * src/DefaultPeerStorage.cc
  12371. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12372. removedPeerSessionUploadLength(0).
  12373. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12374. through all peers, and then add removedPeerSessionDownloadLength(
  12375. removedPeerSessionUploadLength) to it.
  12376. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12377. (to) the peer to removedPeerSessionDownloadLength
  12378. (removedPeerSessionUploadLength).
  12379. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12380. To add Metalink location option:
  12381. * src/MetalinkRequestInfo.cc
  12382. (execute): Call MetalinkEntry::setLocationPreference()
  12383. * src/main.cc
  12384. (showUsage): Added the help message for --metalink-location option.
  12385. (main): Added --metalink-location option.
  12386. * src/prefs.h
  12387. (PREF_METALINK_LOCATION): New definition.
  12388. * src/MetalinkEntry.cc
  12389. (AddLocationPreference): New function object.
  12390. (setLocationPreference): New function.
  12391. * src/Xml2MetalinkProcessor.cc
  12392. (getResource): Set location attribute to MetalinkResource
  12393. To show URLs to download
  12394. * src/UrlRequestInfo.h
  12395. (printUrls): New function.
  12396. To add multiple <file> Metalink support:
  12397. * src/MetalinkEntry.h
  12398. (MetalinkResources): Removed.
  12399. (setLocationPreference): New function.
  12400. (MetalinkEntryHandle): New type definition.
  12401. (MetalinkEntries): New type definition.
  12402. * src/Xml2MetalinkProcessor.h
  12403. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12404. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12405. (parseFile): Metalinker* -> MetalinkerHandle
  12406. * src/UrlRequestInfo.h
  12407. (execute): RequestInfo* -> RequestInfos
  12408. * src/MetalinkRequestInfo.cc
  12409. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12410. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12411. (execute): RequestInfo* -> RequestInfos
  12412. Added multiple <file> support. Print filename when it is queued.
  12413. * src/MetalinkRequestInfo.h
  12414. (execute): RequestInfo* -> RequestInfos
  12415. (getDownloadEngine): Removed.
  12416. * src/RequestInfo.h
  12417. (RequestInfoHandle): New type definition.
  12418. (RequestInfos): New type definition.
  12419. (execute): RequestInfo* -> RequestInfos
  12420. (getDownloadEngine): Removed.
  12421. * src/MetalinkResource.h
  12422. (MetalinkResourceHandle): New type definition.
  12423. (MetalinkResources): New type definition.
  12424. * src/MetalinkEntry.cc
  12425. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12426. because the element is now of type MetalinkResourceHandle.
  12427. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12428. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12429. (dropUnsupportedResource): Removed the deletion of the elements of
  12430. resources because the element is now of type MetalinkResourceHandle.
  12431. * src/Xml2MetalinkProcessor.cc
  12432. (parseFile): Metalinker* -> MetalinkerHandle
  12433. MetalinkEntry* -> MetalinkEntryHandle
  12434. Removed try-catch block.
  12435. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12436. MetalinkResource* -> MetalinkResourceHandle
  12437. Removed try-catch block.
  12438. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12439. Free result by using xmlXPathFreeObject()
  12440. * src/Metalinker.cc
  12441. (~Metalinker): Removed the deletion of entries.
  12442. MetalinkEntry* -> MetalinkEntryHandle
  12443. (queryEntry): Add multiple <file> Metalink support.
  12444. * src/Metalinker.h
  12445. (MetalinkEntries): Removed.
  12446. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12447. * src/MetalinkProcessor.h
  12448. (parseFile): Metalinker* -> MetalinkerHandle
  12449. Bug fixes:
  12450. * src/PeerChokeCommand.cc
  12451. (execute): cat01->cat02
  12452. * src/DefaultPieceStorage.cc
  12453. (DefaultPieceStorage): Added diskAdaptor(0)
  12454. * src/TrackerWatcherComand.cc:
  12455. (execute): Use btAnnounce->noMoreAnnounce()
  12456. to determin whether the function returns true or not.
  12457. * src/TrackerUpdateCommand.cc:
  12458. (execute): Use btAnnounce->noMoreAnnounce()
  12459. to determin whether the function returns true or not.
  12460. * src/FtpConnection.cc
  12461. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12462. This is the fix of the busy loop bug.
  12463. * src/DownloadCommand.cc
  12464. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12465. cached PeerStat.
  12466. The value of "name" entry in torrent file is now set by
  12467. *DiskAdaptor::setTopDir(...) methods.
  12468. * src/MultiDiskAdaptor.h
  12469. (topDir): New variable.
  12470. (setTopDir): New function.
  12471. (getTopDir): New function.
  12472. * src/MultiDiskAdaptor.cc
  12473. (getFilePath): Concat storDir, "/" and topDir.
  12474. (mkdir): Use getFilePath() to get the directory path for output.
  12475. * src/DefaultPieceStorage.cc
  12476. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12477. CopyDiskAdaptor.
  12478. * src/CopyDiskAdaptor.h
  12479. (topDir): New variable.
  12480. (setTopDir): New function.
  12481. (getTopDir): New function.
  12482. * src/CopyDiskAdaptor.cc
  12483. (fixFilename): Updated.
  12484. Misc
  12485. * src/UrlRequestInfo.h
  12486. (e): Removed.
  12487. (UrlRequestInfo): Removed e.
  12488. (getDownloadEngine): Removed.
  12489. * src/UrlRequestInfo.cc
  12490. (handler): Rewritten.
  12491. (printUrls): New function.
  12492. (execute): Call printUrls().
  12493. * src/HandshakeMessage.cc
  12494. (check): peerinteraction->getBtContext() -> btContext
  12495. * src/PeerInteraction.h
  12496. (getBtContext): Removed.
  12497. * src/TorrentRequestInfo.h
  12498. (execute): RequestInfo* -> RequestInfos
  12499. (getDownloadEngine): Removed.
  12500. * src/TorrentRequestInfo.cc
  12501. (haltRequested): Removed.
  12502. (btHaltRequested): New variable.
  12503. (torrentHandler): haltRequested -> btHaltRequested
  12504. (execute): RequestInfo* -> RequestInfos
  12505. * src/TorrentConsoleDownloadEngine.cc
  12506. (afterEachIteration): haltRequested -> btHaltRequested.
  12507. * src/ConsoleDownloadEngine.h
  12508. (initStatistics): Added virtual.
  12509. (calculateStatistics): Added virtual.
  12510. (onEndOfRun): Added virtual.
  12511. (afterEachIteration): Added virtual.
  12512. * src/ConsoleDownloadEngine.cc
  12513. (haltRequested): New variable.
  12514. (afterEachIteration): New function.
  12515. * src/main.cc
  12516. (requestInfo): Removed.
  12517. * src/SegmentMan.cc
  12518. (findSlowerSegmentEntry): Refactored.
  12519. * Release 0.9.0
  12520. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12521. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12522. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12523. * src/TorrentMan.h: Removed.
  12524. * src/TorrentMan.cc: Removed.
  12525. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12526. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12527. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12528. * src/PeerAbstractCommand.cc: Use btRuntime.
  12529. * src/BtContextAwareCommand.h: New class.
  12530. * src/FileEntry.h: Added accessor methods for following variables.
  12531. (path): Made private.
  12532. (length): Made private.
  12533. (offset): Made private.
  12534. (extracted): Made private.
  12535. (requested): Made private.
  12536. (FileEntries): New definition.
  12537. (FileEntryHandle): New definition.
  12538. * src/FileEntry.cc: New file.
  12539. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12540. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12541. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12542. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12543. * src/PieceStorage.h: New file.
  12544. * src/PeerInteractionCommand.h: Use btContext.
  12545. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12546. btRuntime.
  12547. * src/DefaultBtProgressInfoFile.h: New file.
  12548. * src/DefaultBtProgressInfoFile.cc: New file.
  12549. * src/File.cc
  12550. (Util.h): New include.
  12551. (mkdirs): New function.
  12552. * src/MultiDiskAdaptor.h
  12553. (mkdir): New function.
  12554. * src/PeerListProcessor.h
  12555. (Peers): Removed.
  12556. * src/PeerInteraction.h
  12557. (torrentMan): Removed.
  12558. (btContext): New variable.
  12559. (peerStorage): New variable.
  12560. (pieceStorage): New variable.
  12561. (btAnnounce): New variable.
  12562. (getTorrentMan): Removed.
  12563. (getBtContext): New function.
  12564. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12565. btAnnounce.
  12566. * src/HandshakeMessage.h
  12567. (TorrentMan.h): Removed.
  12568. * src/HandshakeMessage.cc: Use btContext.
  12569. * src/DefaultBtAnnounce.cc: New file.
  12570. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12571. * src/DefaultPieceStorage.cc: New file.
  12572. * src/DefaultBtContext.h: New file.
  12573. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12574. Use the accessor methods of FileEntry.
  12575. * src/CookieBox.cc: Updated to use Util::slice().
  12576. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12577. * src/common.h (SharedHandle.h): New include.
  12578. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12579. pieceStorage.
  12580. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12581. * src/DiskAdaptor.h
  12582. (topDir): Removed.
  12583. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12584. (setTopDir): Removed.
  12585. (getTopDir): Removed.
  12586. * src/BtContext.h: New file.
  12587. * src/DefaultPeerStorage.h: New file.
  12588. * src/PieceMessage.h (TorrentMan.h): Removed.
  12589. * src/RequestMessage.h (TorrentMan.h): Removed.
  12590. * src/TorrentDownloadEngine.h
  12591. (uploadLength): New variable.
  12592. (btContext): New variable.
  12593. (btRuntime): New variable.
  12594. (pieceStorage): New variable.
  12595. (peerStorage): New variable.
  12596. (btAnnounce): New variable.
  12597. (btProgressInfoFile): New variable.
  12598. (torrentMan): Removed.
  12599. (setBtContext): New function.
  12600. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12601. peerStorage, btAnnounce, btProgressInfoFile.
  12602. * src/Piece.h
  12603. (toString): New function.
  12604. (Pieces): New type definition.
  12605. * src/Peer.h
  12606. (active): New variable.
  12607. (Peer): Added active.
  12608. (activate): Set active to true.
  12609. (deactivate): Set active to false.
  12610. (isActive): New function.
  12611. (Peers): New type definition.
  12612. * src/DirectDiskAdaptor.cc
  12613. (getFilePath): Use the accessor methods of FileEntry.
  12614. * src/TorrentConsoleDownloadEngine.h
  12615. (afterEachIteration): New function.
  12616. * src/TorrentConsoleDownloadEngine.cc
  12617. (haltRequested): New variable.
  12618. (sendStatistics): Use pieceStorage, btRuntime.
  12619. (afterEachIteration): New function.
  12620. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12621. * src/Directry.h
  12622. (Directory): New function.
  12623. (DirectoryHandle): New type definition.
  12624. * src/BtProgressInfoFile.h: New file.
  12625. * src/RequestMessage.cc: Use pieceStorage.
  12626. * src/BtRuntime.h: New file.
  12627. * src/DefaultBtContext.cc: New file.
  12628. * src/BitfieldMan.h
  12629. (getCompletedLength): New function(private).
  12630. (getCompletedLength): New function.
  12631. (getFilteredCompletedLength): New function.
  12632. * src/BitfieldMan.h
  12633. (getCompletedLength): New function(private).
  12634. (getCompletedLength): New function.
  12635. (getFilteredCompletedLength): New function.
  12636. * src/MultiDiskAdaptor.cc
  12637. (mkdir): New function.
  12638. (openFile): Call mkdir().
  12639. (initAndOpenFile): Call mkdir().
  12640. * src/CancelMessage.h
  12641. (TorrentMan.h): Removed.
  12642. * src/RejectMessage.h
  12643. (TorrentMan.h): Removed.
  12644. * src/DownloadEngineFactory.cc
  12645. (DefaultPieceStorage.h): New include.
  12646. (DefaultPeerStorage.h): New include.
  12647. (DefaultBtAnnounce.h): New include.
  12648. (DefaultBtProgressInfoFile.h): New include.
  12649. (newTorrentConsoleEngine): Rewritten.
  12650. * src/ShareRatioSeedCriteria.h
  12651. (torrentMan): Removed.
  12652. (btContext): New variable.
  12653. (peerStorage): New variable.
  12654. (btRuntime): New variable.
  12655. (evaluate): Use btContext, btRuntime, peerStorage.
  12656. * src/AnnounceTier.h: New file.
  12657. * src/BtAnnounce.h: New file.
  12658. * src/BtRegistry.h: New file.
  12659. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12660. * src/PeerConnection.h (TorrentMan.h): Removed.
  12661. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12662. * src/Util.h
  12663. (slice): Added an argument.
  12664. * src/Util.cc
  12665. (slice): Added an argument to control whether trim is made or not.
  12666. * src/PeerStorage.h: New file.
  12667. * src/BtRegistry.cc: New file.
  12668. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12669. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12670. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12671. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12672. * src/TorrentRequestInfo.h
  12673. (e): Removed.
  12674. (showFileEntry): Added an argument.
  12675. (getDownloadEngine): Return 0.
  12676. * src/DefaultBtAnnounce.h: New file.
  12677. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12678. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12679. * src/PeerMessageFactory.h
  12680. (btContext): New variable.
  12681. (pieceStorage): New variable.
  12682. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12683. btAnnounce.
  12684. * src/DiskAdaptor.cc
  12685. (DiskAdaptor): Removed topDir.
  12686. (~DiskAdaptor): Removed topDir.
  12687. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12688. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12689. * src/File.h (mkdirs): New function.
  12690. * src/DefaultPeerStorage): New file.
  12691. * src/DownloadEngineFactory.h
  12692. (newTorrentConsoleEngine): Use btContext.
  12693. * src/BtContextAwareCommand.cc: New file.
  12694. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12695. * src/PeerMessage.h
  12696. (btContext): New variable.
  12697. (peerStorage): New variable.
  12698. (pieceStorage): New variable.
  12699. (setBtContext): New function.
  12700. * src/Directry.cc
  12701. (Directory): New function.
  12702. (createDir): Do nothing if name.size() == 0.
  12703. * src/AnnounceList.h
  12704. (AnnounceTier): Removed.
  12705. (AnnounceTiers): Removed.
  12706. * src/DefaultPieceStorage.h: New file.
  12707. * src/Piece.cc (toString): New function.
  12708. To fix typo:
  12709. * src/main.cc (showVersion): Fixed typo.
  12710. To fix compile warning:
  12711. * src/DelegatingPeerListProcessor.cc
  12712. (canHandle): Added "return false".
  12713. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12714. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12715. make the process of announce request testable.
  12716. * src/TrackerWatcherCommand.h
  12717. (TimeA2.h): Removed.
  12718. (interval): Removed.
  12719. (checkPoint): Removed.
  12720. (createRequestCommand): Added an argument 'url'.
  12721. (TrackerWatherCommand): Removed interval.
  12722. (createCommand): New function.
  12723. * src/DownloadEngineFactory.cc
  12724. (newTorrentConsoleEngine): Updated according to the changes in
  12725. TrackerWatherCommand.
  12726. * src/TorrentMan.cc
  12727. (DelegatingPeerListProcessor.h): New includes.
  12728. (TorrentMan): Added the initialization of announceInterval.
  12729. (isStoppedAnnounceReady): New function.
  12730. (isCompletedAnnounceReady): New function.
  12731. (isDefaultAnnounceReady): New function.
  12732. (isAnnounceReady): New function.
  12733. (getAnnounceUrl): New function.
  12734. (announceStart): New function.
  12735. (announceFailure): New function.
  12736. (announceSuccess): New function.
  12737. (isAllAnnounceFailed): New function.
  12738. (resetAnnounce): New function.
  12739. (processAnnounceResponse): New function.
  12740. (needMorePeerConnection): New function.
  12741. (noMoreAnnounce): New function.
  12742. * src/TrackerUpdateCommand.h
  12743. (getTrackerResponse): int->size_t
  12744. * src/TorrentMan.h
  12745. (isStoppedAnnounceReady): New function.
  12746. (isCompletedAnnounceReady): New function.
  12747. (isDefaultAnnounceReady): New function.
  12748. (announceInterval): New variable.
  12749. (isAnnounceReady): New function.
  12750. (getAnnounceUrl): New function.
  12751. (announceStart): New function.
  12752. (announceFailure): New function.
  12753. (announceSuccess): New function.
  12754. (isAllAnnounceFailed): New function.
  12755. (resetAnnounce): New function.
  12756. (processAnnounceResponse): New function.
  12757. (needMorePeerConnection): New function.
  12758. (noMoreAnnounce): New function.
  12759. * src/TrackerWatcherCommand.cc
  12760. (TrackerWatherCommand): Removed interval and checkPoint.
  12761. (execute): Rewritten.
  12762. (createCommand): New function.
  12763. (createRequestCommand): Rewritten.
  12764. * src/TrackerUpdateCommand.cc
  12765. (MetaFileUtil.h): Removed.
  12766. (DelegatingPeerListProcessor.h): Removed.
  12767. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12768. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12769. Request -> RequestHandle:
  12770. * src/HttpResponseCommand.h: Request->RequestHandle
  12771. * src/AbstractCommand.cc: Request->RequestHandle
  12772. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12773. * src/HttpRequestCommand.cc: Request->RequestHandle
  12774. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12775. * src/AbstractCommand.h: Request->RequestHandle
  12776. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12777. * src/HttpResponseCommand.cc: Request->RequestHandle
  12778. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12779. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12780. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12781. * src/HttpConnection.h: Request->RequestHandle
  12782. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12783. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12784. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12785. * src/DownloadCommand.h: Request->RequestHandle
  12786. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12787. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12788. * src/HttpRequestCommand.h: Request->RequestHandle
  12789. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12790. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12791. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12792. * src/HttpDownloadCommand.h: Request->RequestHandle
  12793. * src/FtpConnection.cc: Request->RequestHandle
  12794. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12795. * src/UrlRequestInfo.cc: Request->RequestHandle
  12796. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12797. * src/HttpConnection.h: Request->RequestHandle
  12798. * src/DownloadCommand.cc: Request->RequestHandle
  12799. * src/FtpConnection.h: Request->RequestHandle
  12800. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12801. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12802. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12803. * src/Request.h
  12804. (SharedHandle.h): New include.
  12805. (RequestHandle): New type definition.
  12806. (Requests): Redefined.
  12807. To add MULTITRACKER support:
  12808. * src/TrackerWatcherCommand.h
  12809. (createRequestCommand): New function.
  12810. * src/DownloadEngineFactory.cc
  12811. (newTorrentConsoleEngine): Removed req.
  12812. * src/prefs.h
  12813. (PREF_TRACKER_MAX_TRIES): New definition.
  12814. * src/TorrentMan.cc
  12815. (TorrentMan): Removed req. Added trackerNumTry.
  12816. (~TorrentMan): Removed req.
  12817. (setupInternal1): Added announceList.
  12818. * src/TorrentRequestInfo.cc
  12819. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12820. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12821. * src/main.cc
  12822. (main): Added PREF_TRACKER_MAX_TRIES.
  12823. * src/TorrentMan.h
  12824. (Request.h): Removed.
  12825. (AnnounceList.h): New include.
  12826. (trackerNumTry): New variable.
  12827. (req): Removed.
  12828. (announceList): New variable.
  12829. * src/TrackerWatcherCommand.cc
  12830. (execute): Rewritten.
  12831. (createRequestCommand): New function.
  12832. * src/TrackerUpdateCommand.cc
  12833. (execute): Updated with the use of AnnounceList.
  12834. * src/AnnounceList.cc: New class.
  12835. * src/AnnounceList.h: New class.
  12836. To fix typo:
  12837. * src/prefs.h
  12838. (PREF_MAX_TRIES): max_try->max_tries
  12839. To not to decode "+" as space in URL decode:
  12840. * src/Util.cc
  12841. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12842. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. To add timeout to async name resolution:
  12844. * src/AbstractCommand.h
  12845. (nameResolveFinished): New function. This is not elegant way. It needs
  12846. to be more refined.
  12847. (nameResolverCheck): New variable.
  12848. * src/AbstractCommand.cc
  12849. (AbstractCommand): Added nameResolverCheck.
  12850. (execute): Added the check whether the name resolution has finished.
  12851. (setNameResolverCheck): Set nameResolverCheck to true.
  12852. (disableNameResolverCheck): Set nameResolverCheck to false.
  12853. (nameResolverFinished): New function.
  12854. * src/FtpInitiateConnectionCommand.h
  12855. (nameResolverFinished): New function.
  12856. * src/FtpInitiateConnectionCommand.cc
  12857. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12858. * src/HttpInitiateConnectionCommand.h
  12859. (nameResolverFinished): New function.
  12860. * src/HttpInitiateConnectionCommand.cc
  12861. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12862. * src/prefs.h
  12863. (PREF_DNS_TIMEOUT): New definition.
  12864. * src/main.cc
  12865. (main): Added PREF_DNS_TIMEOUT.
  12866. To add the support for a non-compact response from a tracker:
  12867. * src/PeerListProcessor.h: New class.
  12868. * src/DefaultPeerListProcessor.h: New class.
  12869. * src/DefaultPeerListProcessor.cc: New class.
  12870. * src/CompactPeerListProcessor.h: New class.
  12871. * src/CompactPeerListProcessor.cc: New class.
  12872. * src/DelegatingPeerListProcessor.h: New class.
  12873. * src/DelegatingPeerListProcessor.cc: New class.
  12874. * src/TorrentMan.cc
  12875. (addPeer): New function(overload).
  12876. (addPeer): Delete unused peers only when new peer is added.
  12877. * src/TorrentMan.h
  12878. (PeerListProcessor.h): Included.
  12879. (Peers): Removed.
  12880. (addPeer): New function(overload).
  12881. * src/TrackerUpdateCommand.cc
  12882. (netinet/in.h): Removed.
  12883. (DelegatingPeerListProcessor.h): Included.
  12884. (execute): Updated to use DelegatingPeerListProcessor.
  12885. To fix the memory leak in TorrentMan::peers:
  12886. * src/PeerAbstractCommand.cc
  12887. (onAbort): Added peer->resetStatus().
  12888. * src/Peer.h
  12889. (resetStatus): Made public.
  12890. To improve the precision of the speed calculation:
  12891. * src/SpeedCalc.h
  12892. (nextInterval): New variable.
  12893. * src/SpeedCalc.cc
  12894. (reset): Added nextInterval.
  12895. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12896. (changeSw): Set nextInterval to 15 seconds relative to the current
  12897. instant time.
  12898. * src/main.cc
  12899. (showVersion): Updated.
  12900. (showUsage): Updated.
  12901. * Release 0.8.1
  12902. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. * src/main.cc
  12904. (showUsage): Commented out --min-segment-size option.
  12905. (main): Commented out --min-segment-size option.
  12906. * Release 0.8.0
  12907. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12908. * src/*.{h,cc}:
  12909. Added an exception to the license which allows linking with OpenSSL.
  12910. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12911. * src/AbstractCommand.cc
  12912. (execute): Check whether the download has finished before checking
  12913. socket status.
  12914. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12915. Do not exit even if no segment is available.
  12916. * src/prefs.h
  12917. (PREF_STARTUP_IDLE_TIME): New definition.
  12918. * src/PeerInteractionCommand.cc
  12919. (executeInternal): Removed max speed limit. Because it performs bad.
  12920. (receiveMessages): Added max speed limit. This was better than above,
  12921. but still a little bit to be desired. Sometimes the download speed
  12922. became much faster than I specified.
  12923. * src/SpeedCalc.h
  12924. (start): New variable.
  12925. (accumulatedLength): New variable.
  12926. (getAvgSpeed): New function.
  12927. * src/SpeedCalc.cc
  12928. (reset): Added start, accumulatedLength.
  12929. (update): Added calculation of an average speed.
  12930. (getAvgSpeed): New function.
  12931. * src/DownloadCommand.h
  12932. (sw): Removed.
  12933. * src/main.cc
  12934. (main): Added PREF_STARTUP_IDLE_TIME.
  12935. * src/PeerStat.h
  12936. (STATUS): Added REQUEST_IDLE.
  12937. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12938. (getAvgDownloadSpeed): New function
  12939. (requestIdle): New function.
  12940. * src/SegmentMan.h
  12941. (SegmentEntryHandle): New type definition.
  12942. (SegmentEntries): Now holds SegmentEntryHandle.
  12943. (findSlowerSegmentEntry): New funtion.
  12944. * src/SegmentMan.cc
  12945. (save): Updated according to the changes in SegmentEntries.
  12946. (read): Updated according to the changes in SegmentEntries.
  12947. (FindSegmentEntryByIndex): Updated according to the changes in
  12948. SegmentEntries.
  12949. (FindSegmentEntryByCuid): Updated according to the changes in
  12950. SegmentEntries.
  12951. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12952. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12953. Renamed uitr as itr.
  12954. (findSlowerSegmentEntry): New function.
  12955. (getSegment): Updated according to the changes in SegmentEntries.
  12956. Added the feature that cancels the segment with slow server and fast
  12957. one takes it over.
  12958. (cancelSegment): Updated according to the changes in SegmentEntries.
  12959. (getDownloadLength): Updated according to the changes in
  12960. SegmentEntries.
  12961. (init): Assigned 0 to bitfield after deleting it.
  12962. * src/DownloadCommand.cc
  12963. (STARTUP_IDLE_TIME): Removed.
  12964. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12965. * src/PeerChokeCommand.cc
  12966. (optUnchokingPeer): Updated according to the changes in Peer.
  12967. (ResetDelta): Removed.
  12968. (UploadFaster): Updated according to the changes in Peer.
  12969. (DownloadFaster): Updated according to the changes in Peer.
  12970. (execute): I clarify the meaning of "upload" and "download" here.
  12971. "upload" means the transfer from localhost to remote host.
  12972. "download" means the transfer from remote host to localhost.
  12973. Based on this rule, I swapped orderByUploadRate and
  12974. orderByDownloadRate.
  12975. * src/PeerInteractionCommand.cc
  12976. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12977. (executeInternal): Removed the argument of
  12978. peerInteraction->sendMessages().
  12979. (receiveMessages): Rewritten download speed limit.
  12980. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12981. * src/HttpResponseCommand.cc
  12982. (handleDefaultEncoding): If file size is unknown in torrent request,
  12983. do not call segmentMan->initBitfield() here.
  12984. Disabled persistent connection feature in torrent request.
  12985. * src/UrlRequestInfo.h
  12986. (UrlRequestInfo): Removed const qualifier from option.
  12987. * src/TorrentMan.h
  12988. (TransferStat): New class.
  12989. (deltaDownloadLength): Removed.
  12990. (deltaUploadLength): Removed.
  12991. (addDeltaDownloadLength): Removed.
  12992. (getDeltaDownloadLength): Removed.
  12993. (resetDeltaDownloadLength): Removed.
  12994. (addDeltaUploadLength): Removed.
  12995. (getDeltaUploadLength): Removed.
  12996. (resetDeltaUploadLength): Removed.
  12997. (addActivePeer): Added peer->activate().
  12998. (deleteActivePeer): Added peer->deactivate().
  12999. (calculateStat): New function.
  13000. * src/TorrentMan.cc
  13001. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13002. (calculateStat): New function.
  13003. * src/PeerInteraction.h
  13004. (uploadLimit): Removed.
  13005. (option): New variable.
  13006. (setUploadLimit): Removed.
  13007. (getUploadSpeed): Removed.
  13008. (sendMessages): Removed the argument "currentUploadSpeed".
  13009. * src/PeerInteraction.cc
  13010. (prefs.h): Included.
  13011. (PeerInteraction): Removed uploadLimit. Added option.
  13012. (sendMessages): Rewritten upload speed limit.
  13013. (sendHandshake): Removed the argument from sendMessages().
  13014. (sendBitfield): Removed the argument from sendMessages().
  13015. * src/PeerAbstractCommand.cc
  13016. (execute): Commented out the portion of upload limit.
  13017. (onAbort): Removed peer->resetStatus().
  13018. * src/TorrentRequestInfo.cc
  13019. (timeoutSpecified): Declared extern.
  13020. (execute): Set timeout to 180 if timeout is not specified by.
  13021. command-line.
  13022. * src/PieceMessage.cc
  13023. (receivedAction): Added peer->updateDownloadLength().
  13024. Removed peer->addPeerUpload().
  13025. Removed torrentMan->addDeltaDownloadLength().
  13026. (send): Added peer->updateUploadLength().
  13027. Removed peer->addPeerDownload().
  13028. Removed torrentMan->addDeltaUploadLength().
  13029. * src/main.cc
  13030. (timeoutSpecified): New variable.
  13031. (main): Set timeoutSpecified to false.
  13032. If the command-line option "--upload-limit" is specified, then
  13033. timeoutSpecified is set to true. This option will remain in the next
  13034. release, but be deprecated in the future release.
  13035. * src/TorrentRequestInfo.h
  13036. (TorrentRequestInfo): Removed const qualifier from op.
  13037. * src/PeerStat.h
  13038. (uploadSpeed): New variable.
  13039. (PeerStat): Added default value to cuid.
  13040. (calculateUploadSpeed): New function.
  13041. (updateUploadLength): New function.
  13042. (getMaxUploadSpeed): New function.
  13043. (getAvgUploadSpeed): New function.
  13044. (reset): Added uploadSpeed. Set status to IDLE.
  13045. * src/TorrentDownloadEngine.h
  13046. (cp): Declared as Time.
  13047. (sessionDownloadLengthArray): Removed.
  13048. (sessionUploadLengthArray): Removed.
  13049. (currentCp): Removed.
  13050. (lastCalcStat): New variable
  13051. (lastElapsed): Removed.
  13052. (sessionDownloadLength): Removed.
  13053. (calculateStat): New function.
  13054. * src/TorrentDownloadEngine.cc
  13055. (initStatistics): Removed lastElapsed, cp[],
  13056. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13057. currentCp, sessionDownloadLength.
  13058. Added cp.reset() and lastCalcStat.reset().
  13059. (calculateSpeed): Changed the name of the argument.
  13060. (calculateStatistics): Rewritten.
  13061. (calculateStat): New function.
  13062. * src/Peer.h
  13063. (PeerStat.h): Included.
  13064. (peerUpload): Removed.
  13065. (peerDownload): Removed.
  13066. (peerStat): New variable.
  13067. (sessionUploadLength): New variable.
  13068. (sessionDownloadLength): New variable.
  13069. (deltaUpload): Removed.
  13070. (deltaDownload): Removed.
  13071. (resetStatus): Made private.
  13072. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13073. Removed peerUpload, peerDownload.
  13074. (updateUploadLength): New function.
  13075. (addDeltaUpload): Removed.
  13076. (updateDownloadLength): New function.
  13077. (resetDeltaUpload): Removed.
  13078. (getDeltaUpload): Removed.
  13079. (addDeltaDownload): Removed.
  13080. (calculateUploadSpeed): New function.
  13081. (resetDeltaDownload): Removed.
  13082. (getDeltaDownload): Removed.
  13083. (calculateDownloadSpeed): New function.
  13084. (getSessionUploadLength): New function.
  13085. (getSessionDownloadLength): New function.
  13086. (activate): New function.
  13087. (deactivate): New function.
  13088. (addPeerUpload): Removed.
  13089. (setPeerUpload): Removed.
  13090. (getPeerUpload): Removed.
  13091. (addPeerDownload): Removed.
  13092. (setPeerDownload): Removed.
  13093. (getPeerDownload): Removed.
  13094. * src/Peer.cc
  13095. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13096. * src/MetalinkRequestInfo.h
  13097. (MetalinkRequestInfo): Removed const qualifier from op.
  13098. * src/RequestInfo.h
  13099. (op): Removed const qualifier.
  13100. (RequestInfo): Removed const qualifier from op.
  13101. * src/prefs.h
  13102. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13103. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13104. * src/PeerInteractionCommand.cc
  13105. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13106. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13107. * src/PeerInteraction.cc
  13108. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13109. * src/main.cc
  13110. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13111. Added the description of "--max-download-limit" option.
  13112. Removed the description of "--upload-limit" option.
  13113. Added the description of "--max-upload-limit" option.
  13114. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13115. Added "--max-download-limit" option and "--max-upload-limit" option.
  13116. Added the warning message if "--upload-limit" option is used.
  13117. * src/DownloadCommand.cc
  13118. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13119. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13120. To rewrite segment download mechanism for HTTP/FTP download.
  13121. Use BitfieldMan to manage segment download.
  13122. * src/HttpResponseCommand.h
  13123. (executeInternal): Pass the reference of segment.
  13124. * src/AbstractCommand.cc
  13125. (prepareForRetry): Call segmentMan->cancelSegment here.
  13126. (onAbort): Call segmentMan->cancelSegment here.
  13127. * src/HttpDownloadCommand.cc
  13128. (prepareForNextSegment): New function.
  13129. * src/DownloadEngineFactory.cc
  13130. (newConsoleEngine): Removed splitter.
  13131. (newTorrentConsoleEngine): Removed splitter.
  13132. * src/Request.h
  13133. (segment): Renamed from seg.
  13134. * src/FtpInitiateConnectionCommand.h
  13135. (executeInternal): Pass the reference of segment.
  13136. * src/AbstractCommand.h
  13137. (executeInternal): Pass the reference of segment.
  13138. * src/pref.h
  13139. (PREF_SEGMENT_SIZE): New definition.
  13140. * src/HttpProxyRequestCommand.h
  13141. (executeInternal): Pass the reference of segment.
  13142. * src/HttpResponseCommand.cc
  13143. (checkResponse): Allowed status 206 when a request range starts 0.
  13144. (handleDefaultEncoding): Rewritten the code related to Segment.
  13145. (handleOtherEncoding): Rewritten the code related to Segment.
  13146. * src/SegmentMan.h
  13147. (SegmentEntry): New class.
  13148. (SegmentEntries): New type definition.
  13149. (bitfield): New variable.
  13150. (usedSegmentEntries): New variable.
  13151. (onNullBitfield): New function.
  13152. (checkoutSegment): New function.
  13153. (segments): Removed.
  13154. (splitter): Removed.
  13155. (unregisterId): Removed.
  13156. (getSegment): New function(overload)
  13157. (getDownloadedSize): Removed.
  13158. (cancelSegment): New function.
  13159. (completeSegment): New function.
  13160. (initBitfield): New function.
  13161. (hasSegment): New function.
  13162. (getDownloadLength): New function.
  13163. * src/BitfieldMan.h
  13164. (getStartIndex): New function.
  13165. (getEndIndex): New function.
  13166. (getMissingUnusedIndex): New function(overload).
  13167. (getSparseMissingUnusedIndex): New function.
  13168. * src/BitfieldMan.cc
  13169. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13170. (getMissingUnusedIndex): New function(overload).
  13171. (Range): New class.
  13172. (getStartIndex): New function.
  13173. (getEndIndex): New function.
  13174. (getSparseMissingUnusedIndex): New function.
  13175. (isBitSetInternal): Return false if the given index is less than 0.
  13176. * src/HttpInitiateConnectionCommand.h
  13177. (executeInternal): Pass the reference of segment.
  13178. * src/FtpNegotiateCommand.h
  13179. (executeInternal): Pass the reference of segment.
  13180. * src/FtpNegotiateCommand.cc
  13181. (recvSize): Initialize bitfield here.
  13182. * src/FtpTunnelResponseCommand.h
  13183. (executeInternal): Pass the reference of segment.
  13184. * src/HttpConnection.cc
  13185. (createRequest): Rewritten range header processing.
  13186. * src/DownloadCommand.h
  13187. (executeInternal): Pass the reference of segment.
  13188. (prepareForRetry): Removed.
  13189. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13190. function.
  13191. * src/main.cc
  13192. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13193. * src/SegmentMan.cc
  13194. (SegmentMan): Added bitfield. Removed splitter.
  13195. (~SegmentMan): Added bitfield. Removed splitter.
  13196. (unregisterId): Removed.
  13197. (getSegment): Rewritten.
  13198. (updateSegment): Rewritten.
  13199. (save): Rewritten.
  13200. (read): Rewritten.
  13201. (finished): Rewritten.
  13202. (getDownloadedSize): Removed.
  13203. (initBitfield): New function.
  13204. (FindSegmentEntryByIndex): New function object.
  13205. (FindSegmentEntryByCuid): New function object.
  13206. (checkoutSegment): New function.
  13207. (onNullBitfield): New function.
  13208. (getSegment): New function(overload).
  13209. (CancelSegment): New function object.
  13210. (cancelSegment): New function.
  13211. (completeSegment): New function.
  13212. (hasSegment): New function.
  13213. (getDownloadLength): New function.
  13214. * src/FtpInitiateConnectionCommand.cc
  13215. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13216. * src/Segment.h: Rewritten.
  13217. * src/Segment.cc (operator<<): New function.
  13218. * src/HttpDownloadCommand.h
  13219. (prepareForNextSegment): New function.
  13220. * src/Request.cc
  13221. (resetUrl): Made segment null.
  13222. * src/DownloadEngine.cc
  13223. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13224. * src/HttpProxyRequestCommand.h
  13225. (executeInternal): Pass the reference of segment.
  13226. * src/DownloadCommand.cc
  13227. (executeInternal): Rewritten the code related to Segment.
  13228. (prepareForRetry): Removed.
  13229. (prepareForNextSegment): Rewritten.
  13230. * src/FtpTunnelResponseCommand.h
  13231. (executeInternal): Pass the reference of segment.
  13232. To add HTTP 1.1 persistent connection support(experimental)
  13233. * src/HttpRequestCommand.cc
  13234. (executeInternal): Disable keep alive if it is disabled by
  13235. configuration.
  13236. * src/Request.h
  13237. (keepAlive): New variable.
  13238. (isKeepAlive): New function.
  13239. (setKeepAlive): New function.
  13240. * src/pref.h
  13241. (PREF_HTTP_KEEP_ALIVE): New definition.
  13242. * src/HttpResponseCommand.cc
  13243. (executeInternal): Check the remote server supports keep alive.
  13244. * src/HttpConnection.cc
  13245. (createRequest): Send "Connection: close" only if keep alive is
  13246. disabled.
  13247. * src/main.cc
  13248. (main):
  13249. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13250. To add max download speed limit:
  13251. * src/pref.h
  13252. (PREF_MAX_SPEED_LIMIT): New definition.
  13253. * src/PeerInteractionCommand.cc
  13254. (executeInternal): Added max download speed limit. Not tested yet.
  13255. * src/SegmentMan.h
  13256. (PeerStats): New type definition.
  13257. (peerStats): New variable.
  13258. (registerPeerStat): New function.
  13259. (FindPeerStat): New function object.
  13260. (getPeerStat): New function.
  13261. (calculateDownloadSpeed): New function.
  13262. * src/SpeedCalc.h: New class.
  13263. * src/SpeedCalc.cc: New class.
  13264. * src/main.cc
  13265. (main):
  13266. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13267. download speed is not restricted).
  13268. * src/PeerStat.h: New class.
  13269. * src/SegmentMan.cc
  13270. (registerPeerStat): New function.
  13271. (calculateDownloadSpeed): New function.
  13272. * src/DownloadCommand.cc
  13273. (STARTUP_IDLE_TIME): New definition.
  13274. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13275. downloadStart.
  13276. (~DownloadCommand): Call peerStat->downloadStop.
  13277. (executeInternal): Added download speed limitter. Rewritten lowest
  13278. speed limitter.
  13279. * src/HttpConnection.cc
  13280. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13281. * src/AbstractCommand.cc
  13282. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13283. Added hostname to the error message.
  13284. * src/ConsoleDownloadEngine.cc
  13285. (calculateStatistics): Initialize psize with dlSize.
  13286. * src/PieceMessage.cc
  13287. (receivedAction): Do not call peerInteraction->abortPiece here.
  13288. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13289. * src/BitfieldMan.h
  13290. (clearAllUseBit): New function.
  13291. (setAllUseBit): New function.
  13292. * src/BitfieldMan.cc
  13293. (clearAllBit): Do not clear useBitfield here.
  13294. (clearAllUseBit): New function.
  13295. (setAllUseBit): New function.
  13296. * src/Piece.cc
  13297. (clearAllBlock): Call bitfield->clearAllUseBit().
  13298. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13299. To make filename URL-decoded:
  13300. * src/HttpResponseCommand.h: Updated doc.
  13301. * src/HttpResponseCommand.cc
  13302. (determinFilename): Made filename URL-decoded.
  13303. * src/FtpInitiateConnectionCommand.cc
  13304. (executeInternal): Made filename URL-decoded.
  13305. * src/Util.h (urldecode): New function.
  13306. * src/Util.cc (urldecode): New function.
  13307. To fix a bug that caused assertion failure in ares_strerror:
  13308. * src/NameResolver.cc (callback): Fixed the bug.
  13309. * Release 0.7.3
  13310. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13311. To add --seed-time and --seed-ratio command-line option:
  13312. * src/Option.h (getAsDouble): New function.
  13313. * src/Option.cc (getAsDouble): New function.
  13314. * src/SeedCheckCommand.h: New class.
  13315. * src/SeedCheckCommand.cc: New class.
  13316. * src/DownloadEngineFactory.cc
  13317. (SeedCheckCommand.h): Included.
  13318. (UnionSeedCriteria.h): Included.
  13319. (TimeSeedCriteria.h): Included.
  13320. (ShareRatioSeedCriteria.h): Included.
  13321. (newTorrentConsoleEngine): Added the processing of seed option.
  13322. * src/SeedCriteria.h: New class.
  13323. * src/ShareRatioSeedCriteria.h: New class.
  13324. * src/TimeSeedCriteria.h: New class.
  13325. * src/UnionSeedCriteria.h: New class.
  13326. * src/prefs.h
  13327. (PREF_SEED_TIME): New definition.
  13328. (PREF_SEED_RATIO): New definition.
  13329. * src/main.cc
  13330. (showUsage): Added --seed-time and --seed-ratio option.
  13331. (main): Added --seed-time and --seed-ratio option.
  13332. Made default log file name "/dev/null".
  13333. * src/SharedHandle.h
  13334. (SharedHandle): Copy constructor. Made it assignable from the
  13335. SharedHandle of the subclasses.
  13336. (operator=): Made it assignable from the SharedHandle of the
  13337. subclasses.
  13338. (getRefCount): New function.
  13339. To add notice log level and the switch to write log to stdout. This
  13340. switch is configurable per log level.
  13341. * src/Logger.h
  13342. (notice): New function.
  13343. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13344. constant.
  13345. * src/LogFactory.cc
  13346. (getInstance): The use of NullLogger was removed. A log message with
  13347. notice log level was made written to stdout along with log file.
  13348. * src/NullLogger.h
  13349. (notice): New function.
  13350. * src/SimpleLogger.h
  13351. (writeHeader): Added the 'file' argument.
  13352. (writeLog): Added the 'file' argument.
  13353. (writeFile): New function.
  13354. (stdoutField): New variable.
  13355. (SimpleLogger): Removed the default constructor.
  13356. (SimpleLogger): Made the default value of logfile 0.
  13357. (debug): Added 'virtual' keyword.
  13358. (info): Added 'virtual' keyword.
  13359. (warn): Added 'virtual' keyword.
  13360. (error): Added 'virtual' keyword.
  13361. (notice): New function.
  13362. (setStdout): New function.
  13363. * src/SimpleLogger.cc
  13364. (WRITE_LOG): Replaced writeLog with writeFile.
  13365. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13366. (SimpleLogger): Removed the default constructor.
  13367. (setStdout): New function.
  13368. (writeLog): Added the handling of NOTICE log level.
  13369. (writeFile): New function.
  13370. (notice): New function.
  13371. * src/TorrentMan.h: Updated doc.
  13372. * src/BitfieldMan.h: Updated doc.
  13373. * src/TrackerWatcherCommand.cc
  13374. (execute): Return true if error occurred in the request to the tracker
  13375. and halt is requested.
  13376. * src/TrackerUpdateCommand.cc
  13377. (execute): Return true if error occurred in the request to the tracker
  13378. and halt is requested.
  13379. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13380. DownloadEngine:
  13381. * src/TorrentConsoleDownloadEngine.h
  13382. (onSelectiveDownloadingCompletes): Removed.
  13383. * src/TorrentConsoleDownloadEngine.cc
  13384. (onSelectiveDownloadingCompletes): Removed.
  13385. * src/TorrentDownloadEngine.h
  13386. (onEndOfRun): Added 'virtual' keyword.
  13387. (afterEachIteration): Removed.
  13388. (onSelectiveDownloadingCompletes): Removed.
  13389. * src/TorrentDownloadEngine.cc
  13390. (onEndOfRun): Removed filenameFixed.
  13391. (afterEachIteration): Removed.
  13392. * src/TorrentMan.cc
  13393. (completePiece): Call onDownloadComplete here.
  13394. (onDownloadComplete): Added 2 log messages.
  13395. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13396. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13397. * src/NameResolver.h: Added the prototype declaration of callback().
  13398. To support c-ares library:
  13399. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13400. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13401. * src/FtpInitiateConnectionCommand.h:
  13402. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13403. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13404. * src/HttpInitiateConnectionCommand.h:
  13405. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13406. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13407. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13408. #1542285 by tizianomueller)
  13409. * src/HttpInitiateConnectionCommand.cc:
  13410. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13411. * src/FtpInitiateConnectionCommand.cc:
  13412. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13413. * src/DownloadEngine.h:
  13414. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13415. * src/DownloadEngine.cc:
  13416. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13417. To fix the bug that causes compilation failure with metalink-support
  13418. disabled(bug#1543587):
  13419. * src/main.cc: Fixed with the patch by tizianomueller.
  13420. * Release 0.7.2
  13421. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13422. * src/main.cc
  13423. (main): Added a message to inform users that aria2 is starting to
  13424. verify checksum.
  13425. * src/RequestInfo.cc
  13426. (printDownloadAbortMessage): Added a message to inform users that
  13427. transfer can be resumed.
  13428. * src/FeatureConfig.cc
  13429. (FEATURE_ASYNC_DNS): New definition.
  13430. (FeatureConfig): Added aysnc DNS entry.
  13431. To replace CommandUuid with Command* in SocketEntry and
  13432. NameResolverEntry:
  13433. * src/DownloadEngine.h
  13434. (CommandUuids): Removed.
  13435. (SocketEntry::commandUuid): Removed.
  13436. (SocketEntry::command): New variable.
  13437. (SocketEntry::SocketEntry): Updated.
  13438. (SocketEntry::operator==): Updated.
  13439. (NameResolverEntry::commandUuid): Removed.
  13440. (NameResolverEntry::command): New variable.
  13441. (NameResolverEntry::NameResolverEntry): Updated.
  13442. (NameResolverEntry::operator==): Updated.
  13443. (waitData): Changed the argument type.
  13444. (addSocketForReadCheck): Changed the argument type.
  13445. (deleteSocketForReadCheck): Changed the argument type.
  13446. (addSocketForWriteCheck): Changed the argument type.
  13447. (deleteSocketForWriteCheck): Changed the argument type.
  13448. (addNameResolverCheck): Changed the argument type.
  13449. (deleteNameResolverCheck): Changed the argument type.
  13450. * src/DownloadEngine.cc
  13451. (FindCommand): Removed.
  13452. (run): Removed activeUuid. Added activeCommands instead.
  13453. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13454. (AccumulateActiveCommand): New function object.
  13455. (waitData): Use AccumulateActiveCommand.
  13456. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13457. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13458. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13459. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13460. (addNameResolverCheck): Use Command instead of CommandUuid.
  13461. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13462. * src/AbstractCommand.cc
  13463. (disableReadCheckSocket): Updated according to the changes in
  13464. DownloadEngine.
  13465. (setReadCheckSocket): Updated according to the changes in
  13466. DownloadEngine.
  13467. (disableWriteCheckSocket): Updated according to the changes in
  13468. DownloadEngine.
  13469. (setWriteCheckSocket): Updated according to the changes in
  13470. DownloadEngine.
  13471. (setNameResolverCheck): Updated according to the changes in
  13472. DownloadEngine.
  13473. (disableNameResolverCheck): Updated according to the changes in
  13474. DownloadEngine.
  13475. * src/AbstractCommand.cc
  13476. (disableReadCheckSocket): Updated according to the changes in
  13477. DownloadEngine.
  13478. (setReadCheckSocket): Updated according to the changes in
  13479. DownloadEngine.
  13480. (disableWriteCheckSocket): Updated according to the changes in
  13481. DownloadEngine.
  13482. (setWriteCheckSocket): Updated according to the changes in
  13483. DownloadEngine.
  13484. * release 0.7.1
  13485. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. To handle the case where some BitTorrent tracker requires all letters
  13487. except for [A-Za-z0-9] is URL encoded.
  13488. * src/Util.h
  13489. (torrentUrlencode): New function.
  13490. * src/Util.cc
  13491. (ctype.h): Included.
  13492. (torrentUrlencode): New function.
  13493. * src/TrackerWatcherCommand.cc
  13494. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13495. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13496. To add asynchronous DNS support(libares):
  13497. * src/AbstractCommand.h
  13498. (setNameResolverCheck): New function.
  13499. (disableNameResolverCheck): New function
  13500. (resolveHostname): New function.
  13501. * src/AbstractCommand.cc
  13502. (setNameResolverCheck): New function.
  13503. (disableNameResolverCheck): New function
  13504. (resolveHostname): New function.
  13505. * src/FtpInitiateConnectionCommand.h
  13506. (nameResolver): New function.
  13507. * src/FtpInitiateConnectionCommand.cc
  13508. (Util.h): Included.
  13509. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13510. disableWriteCheckSocket.
  13511. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13512. (executeInternal): Added async DNS support.
  13513. * src/HttpInitiateConnectionCommand.h
  13514. (nameResolver): New function.
  13515. * src/HttpInitiateConnectionCommand.cc
  13516. (DlRetryEx.h): Included.
  13517. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13518. disableWriteCheckSocket.
  13519. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13520. (executeInternal): Added async DNS support.
  13521. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13522. by extern "C" declaration.
  13523. * src/NameResolver.cc: New class.
  13524. * src/Util.h:
  13525. (isNumberAndDotsNotation): New function
  13526. * src/Util.cc
  13527. (isNumberAndDotsNotation): New function.
  13528. * src/DownloadEngine.h
  13529. (NameResolver.h): Included.
  13530. (NameResolverEntry): New class.
  13531. (NameResolverEntries): New type definition.
  13532. (addNameResolverCheck): New function.
  13533. (deleteNameResolverCheck): New function.
  13534. * src/DownloadEngine.cc
  13535. (run): Initialize cp with 0.
  13536. (SetDescriptor::operator()): Added for NameResolverEntry.
  13537. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13538. (waitData): Check nameResolver entries.
  13539. (updateFdSet): Update fds in nameResolver entries.
  13540. (addNameResolverCheck): New function.
  13541. (deleteNameResolverCheck): new function.
  13542. * src/PeerInteractionCommand.cc
  13543. (executeInternal): Fixed wrong socket handling.
  13544. * src/main.cc
  13545. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13546. * src/Util.cc
  13547. (fileChecksum): Removed the call to ctx.digestReset().
  13548. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13549. * po/ru.po: Azamat sent me Russian translation.
  13550. * src/FtpNegotiateCommand.cc
  13551. (recvGreeting): Call disableWriteCheckSocket just after
  13552. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13553. (recvRetr): Recognized status code 125 as a acceptable response code.
  13554. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13555. case-insesitive filesystem(BUG#1531057).
  13556. * src/Time.h: Renamed as TimeA2.h.
  13557. * src/Time.cc: Renamed as TimeA2.cc.
  13558. * src/TimeA2.h: New class.
  13559. * src/TimeA2.cc: New class.
  13560. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13561. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13562. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13563. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13564. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13565. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13566. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13567. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13568. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13569. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13570. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13571. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13572. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13573. * release 0.7.0
  13574. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13575. * src/PeerChokeCommand.h
  13576. (PeerChokeCommand): Rearranged the arguments.
  13577. * src/PeerChokeCommand.cc
  13578. (PeerChokeCommand): Rearranged the arguments.
  13579. * src/MetalinkEntry.h
  13580. (Checksum.h): Included.
  13581. (md5): Removed.
  13582. (sha1): Removed.
  13583. (checksum): New variable.
  13584. (operator=): Updated.
  13585. (check): Removed.
  13586. * src/prefs.h
  13587. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13588. (PREF_FOLLOW_TORRENT): New definition.
  13589. (PREF_SELECT_FILE): New definition.
  13590. (PREF_FOLLOW_METALINK): New definition.
  13591. * src/MetalinkResource.h
  13592. (TYPE_HTTPS): Added to enum TYPE.
  13593. * src/TorrentMan.cc
  13594. (~TorrentMan): Rewritten.
  13595. * src/MultiDiskWriter.cc
  13596. (MultiDiskAdaptor): Updated according to the changes in
  13597. MessageDigestContext.
  13598. (~MultiDiskAdaptor): Updated according to the changes in
  13599. MessageDigestContext.
  13600. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13601. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13602. * src/Util.h
  13603. (fileChecksum): Updated according to the changes in
  13604. MessageDigestContext.
  13605. * src/Util.cc
  13606. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13607. (fileChecksum): Updated according to the changes in
  13608. MessageDigestContext.
  13609. * src/messageDigest.h: Rewritten.
  13610. * src/MetalinkEntry.cc
  13611. (check): Removed.
  13612. (Supported): Updated.
  13613. (dropUnsupportedResource): Fixed a memory leak.
  13614. * src/ShaVisitor.cc
  13615. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13616. (~ShaVisitor): Updated according to the changes in
  13617. MessageDigestContext.
  13618. (visit): Updated according to the changes in MessageDigestContext.
  13619. * src/main.cc
  13620. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13621. command-line option added.
  13622. * src/DownloadEngine.h
  13623. (SocketEntry): New class.
  13624. (SocketEntries): New definition.
  13625. (PairFind): Removed.
  13626. (SockCmdMap): Removed.
  13627. * src/DownloadEngine.cc
  13628. (DownloadEngine): Rewritten.
  13629. (~DownloadEngine): Rewritten.
  13630. (run): Renamed activeCommandUuids as activeUuids.
  13631. (SetDescriptor): Rewritten.
  13632. (AccumulateActiveCommandUuid): Removed.
  13633. (AccumulateActiveUuid): New function object.
  13634. (waitData): Rewritten.
  13635. (updateFdSet): Rewritten.
  13636. (addSocket): Rewritten.
  13637. (deleteSocket): Rewritten.
  13638. (addSocketForReadCheck): Rewritten.
  13639. (deleteSocketForReadCheck): Rewritten.
  13640. (addSocketForWriteCheck): Rewritten.
  13641. (deleteSocketForWriteCheck): Rewritten.
  13642. * src/Xml2MetalinkProcessor.cc
  13643. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13644. * src/DownloadCommand.cc
  13645. (executeInternal): Added the check routine for lowest speed limit.
  13646. * src/AbstractDiskWriter.cc
  13647. (AbstractDiskWriter): Updated according to the changes in
  13648. MessageDigestContext.
  13649. (~AbstractDiskWriter): Updated according to the changes in
  13650. MessageDigestContext.
  13651. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13652. * src/RequestInfo.h: New class.
  13653. * src/UrlRequestInfo.h: New class.
  13654. * src/UrlRequestInfo.cc: New class.
  13655. * src/TorrentRequestInfo.h: New class.
  13656. * src/TorrentRequestInfo.cc: New class.
  13657. * src/MetalinkRequestInfo.h: New class.
  13658. * src/MetalinkRequestInfo.cc: New class.
  13659. * src/Checksum.h: New class.
  13660. * src/DownloadEngineFactory.h: New class.
  13661. * src/DownloadEngineFactory.cc: New class.
  13662. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13663. * src/Option.h
  13664. (getAsBool): New function.
  13665. * src/Option.cc
  13666. (prefs.h): Included.
  13667. (defined): 0-length value is now recognized as undefined.
  13668. (getAsInt): Rewritten.
  13669. (getAsLLInt): Rewritten.
  13670. (getAsBool): New function.
  13671. * src/FeatureConfig.h: Rewritten.
  13672. * src/FeatureConfig.cc: Rewritten.
  13673. * src/prefs.h
  13674. (PREF_STDOUT_LOG): New definition.
  13675. (PREF_LOG): New definition.
  13676. (PREF_DIR): New definition.
  13677. (PREF_OUT): New definition.
  13678. (PREF_SPLIT): New definition.
  13679. (PREF_DAEMON): New definition.
  13680. (PREF_REFERER): New definition.
  13681. (PREF_TORRENT_FILE): New definition.
  13682. (PREF_LISTEN_PORT): New definition.
  13683. (PREF_METALINK_FILE): New definition.
  13684. (PREF_METALINK_VERSION): New definition.
  13685. (PREF_METALINK_LANGUAGE): New definition.
  13686. (PREF_METALINK_OS): New definition.
  13687. (PREF_METALINK_SERVERS): New definition.
  13688. * src/main.cc
  13689. (main): Following command-line parameters are now put into Option
  13690. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13691. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13692. metalinkLanguage, metalinkOs, metalinkServers
  13693. To fix the bug that aria2 can not handle http response header properly.
  13694. * src/HttpHeader.cc
  13695. (put): Made name lowercased.
  13696. (defined): Made name lowercased.
  13697. (getFirst): Made name lowercased.
  13698. (get): Made name lowercased.
  13699. (getFirstAsInt): Rewritten.
  13700. (getFirstAsLLInt): Rewritten.
  13701. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13702. * src/TorrentMan.h:
  13703. (advertisePiece): Updated doc.
  13704. (getAdvertisedPieceIndexes): Updated doc.
  13705. (removeAdvertisedPiece); New function.
  13706. * src/TorrentMan.cc
  13707. (FindElapsedHave): New function object.
  13708. (removeAdvertisedPiece): New function.
  13709. * src/HaveEraseCommand.h: New class.
  13710. * src/HaveEraseCommand.cc: New class.
  13711. * src/FeatureConfig.h: New class.
  13712. * src/FeatureConfig.cc: New class.
  13713. * src/Request.h
  13714. (defaultPorts): Removed.
  13715. * src/Request.cc
  13716. (FeatureConfig.h): Included.
  13717. (Request): Removed the statements related to defaultPorts.
  13718. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13719. A default port number is now retrieved from FeatureConfig.
  13720. * src/main.cc
  13721. (HaveEraseCommand.h): Included.
  13722. (showVersion): Added the output of feature list.
  13723. (main): Added HaveEraseCommand to command queue in BitTorrent
  13724. downloading.
  13725. * src/PeerInteractionCommand.h
  13726. (chokeCheckPoint): Commented out.
  13727. (periodicExecPoint): New variable.
  13728. * src/PeerInteractionCommand.cc
  13729. (executeInternal): Following methods are now called in at least every
  13730. 0.5 seconds to reduce CPU usage:
  13731. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13732. checkHave(), sendKeepAlive().
  13733. (checkLongTimePeerChoking): Commented out.
  13734. * src/BitfieldMan.h
  13735. (getNthBitIndex): Changed the method signature.
  13736. (getMissingIndexRandomly): Changed the method signature.
  13737. * src/BitfieldMan.cc
  13738. (getNthBitIndex): Rewritten
  13739. (getMissingIndexRandomly): Rewritten.
  13740. (hasMissingPiece): Rewritten.
  13741. (getMissingIndex): Refactored.
  13742. (getMissingUnusedIndex); Refactored.
  13743. (getMissingIndex): Refactored.
  13744. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13745. * src/PeerMessage.h
  13746. (Piece.h): Included.
  13747. (SharedHandle.h): Included.
  13748. (invalidate): New variable.
  13749. (uploading): New variable.
  13750. (isInvalidate): New function.
  13751. (isUploading): New function.
  13752. (onPush): New function.
  13753. (onChoked): New function.
  13754. (onCanceled): New function.
  13755. (onAbortPiece): New function.
  13756. (PeerMessageHandle): New type definition.
  13757. * src/PeerMessage.cc
  13758. (PeerMessage): Added the initialization for invalidate and uploading.
  13759. * src/CancelMessage.h
  13760. (CancelMessage): Rewritten.
  13761. * src/RejectMessage.h
  13762. (RejectMessage): Rewritten.
  13763. * src/Metalinker.h
  13764. (operator=): Defined.
  13765. * src/MetaEntry.h
  13766. (operator=): Defined.
  13767. * src/MetalinkResource.h
  13768. (operator=): Defined.
  13769. * src/AllowedFastMessage.h
  13770. (AllowedFastMessage): Rewritten.
  13771. * src/HandshakeMessage.h
  13772. (HandshakeMessage): New function(overload).
  13773. * src/HandshakeMessage.cc
  13774. (HandshakeMessage): Rewritten.
  13775. (init): New function.
  13776. * src/HaveMessage.h
  13777. (HaveMessage): Rewritten.
  13778. * src/Time.h
  13779. (operator=): Defined the function body here.
  13780. * src/Time.cc
  13781. (operator=): Removed.
  13782. * src/SocketCore.h
  13783. (operator==): Defined here.
  13784. (operator!=): Defined here.
  13785. (operator<): Defined here.
  13786. * src/SocketCore.cc
  13787. (operator==): Removed.
  13788. (operator<): Removed.
  13789. * src/BitfieldMan.h
  13790. (operator=): Defined the function body here.
  13791. * src/BitfieldMan.cc
  13792. (operator=): Removed.
  13793. * src/TorrentMan.h
  13794. (deleteErrorPeer): Removed.
  13795. (deleteUnusedPeer); New function.
  13796. * src/TorrentMan.cc
  13797. (addPeer): Call deleteUnusedPeer.
  13798. (deleteErrorPeer): Removed.
  13799. (deleteUnusedPeer): New function.
  13800. * src/PeerAbstractCommand.h
  13801. (setNoCheck): New function.
  13802. (noCheck): New variable.
  13803. * src/PeerAbstractCommand.cc
  13804. (PeerAbstractCommand): Added the initialization of noCheck.
  13805. (execute): Added a check for noCheck.
  13806. (setNoCheck): New function.
  13807. * src/Util.h
  13808. (stdio.h): Included.
  13809. * src/Util.cc
  13810. (unistd.h): Included.
  13811. * src/DefaultDiskWriter.cc
  13812. (unistd.h): Included.
  13813. * src/Peer.h
  13814. (operator==): Defined the function body here.
  13815. (operator!=): Defined the function body here.
  13816. * src/Peer.cc
  13817. (operator==): Removed.
  13818. (operator!=): Removed.
  13819. * src/Piece.h
  13820. (Piece): Defined the function body here(copy constructor).
  13821. (operator=): Defined the function body here.
  13822. (operator==): Defined the function body here.
  13823. * src/Piece.cc
  13824. (Piece): Removed(copy constructor).
  13825. (operator=): Removed.
  13826. (operator==): Removed.
  13827. * src/PeerMessageUtil.h
  13828. (ChokeMessage.h): Removed.
  13829. (UnchokeMessage.h): Removed.
  13830. (InterestedMessage.h): Removed.
  13831. (NotInterestedMessage.h): Removed.
  13832. (HaveMessage.h): Removed.
  13833. (BitfieldMessage.h): Removed.
  13834. (RequestMessage.h): Removed.
  13835. (CancelMessage.h): Removed.
  13836. (PieceMessage.h): Removed.
  13837. (HandshakeMessage.h): Removed.
  13838. (KeepAliveMessage.h): Removed.
  13839. (PortMessage.h): Removed.
  13840. (HaveAllMessage.h): Removed.
  13841. (HaveNoneMessage.h): Removed.
  13842. (PeerConnection.h): Removed.
  13843. (HandshakeMessage.h): Included.
  13844. * src/BitfieldMessage.h
  13845. (init): New function.
  13846. (BitfieldMessage): Rewritten.
  13847. (BitfieldMessage): New function(overload).
  13848. * src/RequestSlot.h
  13849. (operator=): Defined the function body here.
  13850. (operator==): Defined the function body here.
  13851. * src/RequestSlot.cc
  13852. (operator=): Removed.
  13853. (operator==): Removed.
  13854. To remove the dependency on the PeerMessage subclass from
  13855. PeerInteraction:
  13856. * src/PeerMessageFactory.h: New class.
  13857. * src/PeerMessageFactory.cc: New class.
  13858. * src/SimplePeerMessage.cc
  13859. (send): If invalidate is true then do nothing.
  13860. * src/PeerInteractionCommand.cc
  13861. (HandshakeMessage.h): Included.
  13862. (KeepAliveMessage.h): Included.
  13863. (ChokeMessage.h): Included.
  13864. (UnchokeMessage.h): Included.
  13865. (HaveMessage.h): Included.
  13866. (executeInternal): Call setNoCheck().
  13867. Removed setWriteCheckSocket(socket).
  13868. * src/PeerInteraction.h
  13869. (ChokeMessage.h): Removed.
  13870. (UnchokeMessage.h): Removed.
  13871. (InterestedMessage.h): Removed.
  13872. (NotInterestedMessage.h): Removed.
  13873. (HaveMessage.h): Removed.
  13874. (BitfieldMessage.h): Removed.
  13875. (RequestMessage.h): Removed.
  13876. (CancelMessage.h): Removed.
  13877. (PieceMessage.h): Removed.
  13878. (HandshakeMessage.h): Removed.
  13879. (KeepAliveMessage.h): Removed.
  13880. (PortMessage.h): Removed.
  13881. (HaveAllMessage.h): Removed.
  13882. (HaveNoneMessage.h): Removed.
  13883. (RejectMessage.h): Removed.
  13884. (AllowedFastMessage.h): Removed.
  13885. (SuggestPieceMessage.h): Removed.
  13886. (PeerMessageFactory.h): Included.
  13887. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13888. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13889. (PeerMessageFactory): New variable.
  13890. (createPeerMessage): Removed.
  13891. (createHandshakeMessage): Removed.
  13892. (setPeerMessageCommonProperty): Removed.
  13893. (addRequestSlot): New function.
  13894. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13895. (getPeerMessageFactory): New function.
  13896. (createRequestMessage): Removed.
  13897. (createCancelMessage): Removed.
  13898. (createPieceMessage): Removed.
  13899. (createHaveMessage): Removed.
  13900. (createChokeMessage): Removed.
  13901. (createUnchokeMessage): Removed.
  13902. (createInterestedMessage): Removed.
  13903. (createNotInterestedMessage): Removed.
  13904. (createBitfieldMessage): Removed.
  13905. (createKeepAliveMessage): Removed.
  13906. (createHaveAllMessage): Removed.
  13907. (createHaveNoneMessage): Removed.
  13908. (createRejectMessage): Removed.
  13909. (createAllowedFastMessage): Removed.
  13910. * src/PeerInteraction.cc
  13911. (PeerInteraction): Allocate PeerMessageFactory here.
  13912. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13913. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13914. PieceMessage::ID.
  13915. (addMessage): Simplified by using PeerMessage::onPush().
  13916. (addRequestSlot): New function.
  13917. (rejectAllPieceMessageInQueue): Simplified by using
  13918. PeerMessage::onChoked().
  13919. (rejectPieceMessageInQueue): Simplified by using
  13920. PeerMessage::onCanceled().
  13921. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13922. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13923. (createHandshakeMessage): Removed.
  13924. (createPeerMessage): Removed.
  13925. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13926. (setPeerMessageCommonProperty): Removed.
  13927. (createRequestMessage): Removed.
  13928. (createCancelMessage): Removed.
  13929. (createPieceMessage): Removed.
  13930. (createHaveMessage): Removed.
  13931. (createChokeMessage): Removed.
  13932. (createUnchokeMessage): Removed.
  13933. (createInterestedMessage): Removed.
  13934. (createNotInterestedMessage): Removed.
  13935. (createBitfieldMessage): Removed.
  13936. (createKeepAliveMessage): Removed.
  13937. (createHaveAllMessage): Removed.
  13938. (createHaveNoneMessage): Removed.
  13939. (createRejectMessage): Removed.
  13940. (createAllowedFastMessage): Removed.
  13941. * src/PieceMessage.h
  13942. (createRejectMessage): New function.
  13943. (PieceMessage): Rewritten.
  13944. (onChoked): New function.
  13945. (onCanceled): New function.
  13946. * src/PieceMessage.cc
  13947. (send): If invalidate is true then do nothing, just return.
  13948. (createRejectMessage): New function.
  13949. (onChoked): New function.
  13950. (onCanceled): New function.
  13951. * src/RequestMessage.h
  13952. (RequestMessage): Rewritten.
  13953. (onPush): New function.
  13954. (onAbortPiece): New function.
  13955. * src/RequestMessage.cc
  13956. (onPush): New function.
  13957. (onAbortPiece): New function.
  13958. Update fd_set when a socket is added or deleted in order to improve
  13959. performance:
  13960. * src/DownloadEngine.h
  13961. (rfdset): New variable.
  13962. (wfdset): New variable.
  13963. (updateFdSet): New function.
  13964. * src/DownloadEngine.cc
  13965. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13966. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13967. (waitData): Copy rfdset and wfdset.
  13968. (updateFdSet): New function.
  13969. (addSocket): Call updateFdSet.
  13970. (deleteSocket): Call updateFdSet.
  13971. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13972. To add the support for Metalink3.0 backward compatible links:
  13973. * src/Request.h
  13974. (SAFE_CHARS): Added '#'.
  13975. (METALINK_MARK): New definition.
  13976. * src/Request.cc
  13977. (parseUrl): Added the support for Metalink3.0 backward compatible
  13978. links.
  13979. etc
  13980. * src/PeerInteraction.cc
  13981. (MsgPushBack): Removed.
  13982. (sendMessages): Use STL copy and back_inserter.
  13983. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13984. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13985. * src/TorrentMan.h
  13986. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13987. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13988. * src/SharedHandle.h: New class.
  13989. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13990. * src/HttpResponseCommand.h
  13991. (HttpResponseCommand): Wrapped Socket.
  13992. * src/SocketCore.h
  13993. (operator==): New function.
  13994. (operator!=): New function.
  13995. (operator<): New function.
  13996. (getSockfd): New function.
  13997. (isOpen): New function.
  13998. (writeData): New function.
  13999. * src/SocketCore.cc
  14000. (operator==): New function.
  14001. (operator!=): New function.
  14002. (operator<): New function.
  14003. * src/AbstractCommand.h
  14004. (socket): Changed its type to SocketHandle.
  14005. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14006. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14007. (disableReadCheckSocket): New function.
  14008. (disableWriteCheckSocket): New function.
  14009. (readCheckTarget): Changed its type to SocketHandle.
  14010. (writeCheckTarget): Changed its type to SocketHandle.
  14011. (AbstractCommand): Replaced Socket with SocketHandle.
  14012. * src/AbstractCommand.cc
  14013. (AbstractCommand): Replaced Socket with SocketHandle.
  14014. (~AbstractCommand): Removed the deallocation for Socket object.
  14015. (disableReadCheckSocket): New function.
  14016. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14017. (disableWriteCheckSocket): New function.
  14018. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14019. * src/HttpDownloadCommand.cc
  14020. (DownloadCommand): Replaced Socket with SocketHandle.
  14021. * src/PeerAbstractCommand.h
  14022. (socket): Changed its type to SocketHandle.
  14023. (peer): Changed its type to PeerHandle.
  14024. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14025. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14026. (disableReadCheckSocket): New function.
  14027. (disableWriteCheckSocket): New function.
  14028. (readCheckTarget): Changed its type to SocketHandle.
  14029. (writeCheckTarget): Changed its type to SocketHandle.
  14030. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14031. Replaced Peer with PeerHandle.
  14032. * src/HttpRequestCommand.cc
  14033. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14034. Use disableReadCheckSocket.
  14035. * src/PeerInitiateConnectionCommand.h
  14036. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14037. * src/PeerChokeCommand.cc
  14038. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14039. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14040. (execute): Use PeerHandle.
  14041. * src/PeerConnection.h
  14042. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14043. (socket): Changed its type to SocketHandle.
  14044. (PeerConnection): Replaced Socket with SocketHandle.
  14045. * src/PeerConnection.cc
  14046. (PeerConnection): Replaced Socket with SocketHandle.
  14047. * src/PeerInteractionCommand.h
  14048. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14049. Replaced Peer with PeerHandle.
  14050. * src/PeerInteractionCommand.cc
  14051. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14052. Replaced Peer with PeerHandle.
  14053. (executeInternal): Use disableWriteCheckSocket.
  14054. Use HandshakeMessageHandle.
  14055. (receiveMessages): Use PeerMessageHandle.
  14056. (prepareForNextPeer): Use PeerHandle.
  14057. * src/HttpProxyRequestCommand.h
  14058. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14059. * src/HttpResponseCommand.cc
  14060. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14061. * src/TorrentMan.cc
  14062. (nullPeer): Added external reference.
  14063. (~TorrentMan): Removed the deallocation of the elements of peers.
  14064. (addPeer): Rewritten.
  14065. (isPeerAvailable): Use nullPeer.
  14066. (deleteOldpeers): Replaced with deleteErrorPeer.
  14067. (deleteErrorPeer): New function.
  14068. (getPeer): Use PeerHandle and nullPeer.
  14069. (hasMissingPiece): Replaced Peer with PeerHandle.
  14070. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14071. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14072. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14073. (getMissingPiece): Replaced Peer with PeerHandle.
  14074. * src/FtpNegotiateCommand.cc
  14075. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14076. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14077. (recvGreeting): Use disableWriteCheckSocket.
  14078. (recvPasv): Removed the allocation of Socket.
  14079. Use disableReadCheckSocket.
  14080. (sendRestPasv): Use disableWriteCheckSocket.
  14081. (recvRetr): Changed assertion.
  14082. * src/PeerInteraction.h
  14083. (SharedHandle.h): Included SharedHandle.h.
  14084. (PeerMessageHandle): New type definition.
  14085. (HandshakeMessageHandle): New type definition.
  14086. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14087. (peer): Changed its type to PeerHandle.
  14088. (createHandshakeMessage): Replaced HandshakeMessage with
  14089. HandshakeMessageHandle.
  14090. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14091. (PeerInteraction): Replaced Peer with PeerHandle.
  14092. Replaced Socket with SocketHandle.
  14093. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14094. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14095. (receiveHandshake): Replaced HandshakeMessage with
  14096. HandshakeMessageHandle.
  14097. * src/PeerInteraction.cc
  14098. (PeerInteraction): Replaced Peer with PeerHandle.
  14099. Replaced Socket with SocketHandle.
  14100. (~PeerInteraction): Removed the deallocation of the elements of
  14101. messageQueue.
  14102. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14103. (isSendingMessageInProgress): Replaced PeerMessage with
  14104. PeerMessageHandle.
  14105. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14106. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14107. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14108. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14109. (abortPiece): Use PeerMessageHandle.
  14110. (receiveHandshake): Replaced HandshakeMessage with
  14111. HandshakeMessageHandle. Removed try-catch block.
  14112. (createHandshakeMessage): Replaced HandshakeMessage with
  14113. HandshakeMessageHandle.
  14114. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14115. Removed try-catch block.
  14116. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14117. * src/HttpProxyResponseCommand.cc
  14118. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14119. * src/FtpTunnelResponseCommand.h
  14120. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14121. * src/HttpConnection.cc
  14122. (HttpConnection): Replaced Socket with SocketHandle.
  14123. * src/PeerAbstractCommand.cc
  14124. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14125. (~PeerAbstractCommand): Removed the deallocation of socket.
  14126. Use disableReadCheckSocket, disableWriteCheckSocket.
  14127. (disableReadCheckSocket): New function.
  14128. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14129. (disableWriteCheckSocket): New function.
  14130. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14131. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14132. * src/FtpTunnelRequestCommand.cc
  14133. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14134. (~FtpTunnelRequestCommand): Corrected indentation.
  14135. * src/DownloadCommand.h
  14136. (DownloadCommand): Replaced Socket with SocketHandle.
  14137. * src/PeerListenCommand.cc
  14138. (PeerListenCommand): Removed the initialization of socket.
  14139. (~PeerListenCommand): Removed the deallocation of socket.
  14140. (bindPort): Use SocketHandle.
  14141. (execute): Use SocketHandle and PeerHandle.
  14142. * src/FtpDowndloadCommand.cc
  14143. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14144. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14145. * src/main.cc
  14146. (main): Corrected indentation.
  14147. * src/HttpInitiateConnectionCommand.cc
  14148. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14149. (executeInternal): Removed the allocation of socket.
  14150. * src/HttpRequestCommand.h
  14151. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14152. * src/FtpNegotiationCommand.h
  14153. (dataSocket): Changed its type to SocketHandle.
  14154. (serverSocket): Changed its type to SocketHandle.
  14155. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14156. * src/TorrentMan.h
  14157. (MAX_PEER_UPDATE): Removed.
  14158. (MAX_PEERS): New definition.
  14159. (Peers): The element is now of type PeerHandle.
  14160. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14161. (getPeer): Replaced Peer with PeerHandle.
  14162. (deleteOldErrorPeers): Removed.
  14163. (deleteErrorPeer): New function.
  14164. (hasMissingPiece): Replaced Peer with PeerHandle.
  14165. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14166. (getMissingPiece): Replaced Peer with PeerHandle.
  14167. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14168. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14169. (addActivePeer): Replaced Peer with PeerHandle.
  14170. (deleteActivePeer): Replaced Peer with PeerHandle.
  14171. Added a check for the return value of find.
  14172. * src/FtpTunnelResponseCommand.cc
  14173. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14174. * src/FtpInitiateConnectionCommand.cc
  14175. (executeInternal): Removed the allocation of socket.
  14176. * src/DownloadEngine.h
  14177. (Sockets): An element is now of type SocketHandle.
  14178. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14179. (CommandUuids): New type definition.
  14180. (rsockets): Changed its type to SockCmdMap.
  14181. (wsockets): Changed its type to SockCmdMap.
  14182. (addSocket): Rewritten.
  14183. (deleteSocket): Rewritten.
  14184. (addSocketForReadCheck): Rewritten.
  14185. (deleteSocketForReadCheck): Rewritten.
  14186. (addSocketForWriteCheck): Rewritten.
  14187. (deleteSocketForWriteCheck): Rewritten.
  14188. (PairFind): New template class.
  14189. * src/HttpDownloadCommand.h
  14190. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14191. * src/FtpConnection.cc
  14192. (FtpConnection): Replaced Socket with SocketHandle.
  14193. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14194. block.
  14195. * src/InitiateConnectionCommandFactory.cc
  14196. (DlAbortEx.h): Included DlAbortEx.h.
  14197. (createInitiateConnectionCommand): Throw exception if the protocol of
  14198. requested URI is not supported.
  14199. * src/Peer.cc
  14200. (nullPeer): Changed its type to PeerHandle.
  14201. (operator==): New function.
  14202. (operator!=): New function.
  14203. * src/Peer.h
  14204. (SharedHandle.h): Included SharedHandle.h.
  14205. (operator==): New function.
  14206. (operator!=): New function.
  14207. (Peer): Added the default constructor.
  14208. Use resetStatus() to initialize member variables.
  14209. (nullPeer): Removed.
  14210. * src/TrackerUpdateCommand.cc
  14211. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14212. with MIN_PEERS.
  14213. * src/PeerListenCommand.h
  14214. (socket): Changed its type to SocketHandle.
  14215. * src/Command.h
  14216. (CommandUuid): New type definition.
  14217. (uuid): New variable.
  14218. (uuidGen): New variable.
  14219. (Command): Added the initialization of uuid.
  14220. (getUuid): New function.
  14221. * src/Socket.h
  14222. (Socket): Removed.
  14223. (SocketHandle): New type definition.
  14224. * src/DownloadEngine.h
  14225. (FindCommand): New function object.
  14226. (run): The portion of socket check was rewritten.
  14227. (SetDescriptor): New function object.
  14228. (AccumulateActiveCommandUuid): New function object.
  14229. (waitData): Rewritten.
  14230. (addSocket): Rewritten.
  14231. (deleteSocket): Rewritten.
  14232. (addSocketForReadCheck): Rewritten.
  14233. (addSocketForWriteCheck): Rewritten.
  14234. (deleteSocketForReadCheck): Rewritten.
  14235. (deleteSocketForWriteCheck): Rewritten.
  14236. * src/HttpProxyResponseCommand.h
  14237. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14238. * src/HttpConnection.h
  14239. (socket): Changed its type to SocketHandle.
  14240. (HttpConnection): Replaced Socket with SocketHandle.
  14241. * src/PeerInitiateConnectionCommand.cc
  14242. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14243. (executeInternal): Removed the allocation of socket.
  14244. (prepareForNextPeer): Use PeerHandle.
  14245. * src/PeerMessage.h
  14246. (peer): Changed its type to PeerHandle.
  14247. (getPeer): Replaced Peer with PeerHandle.
  14248. (setPeer): Replaced Peer with PeerHandle.
  14249. * src/DownloadCommand.cc
  14250. (DownloadCommand): Replaced Socket with SocketHandle.
  14251. * src/FtpConnection.h
  14252. (socket): Changed its type to SocketHandle.
  14253. (FtpConnection): Replaced Socket with SocketHandle.
  14254. (sendPort); Replaced Socket with SocketHandle.
  14255. * src/FtpDowndloadCommand.h
  14256. (ctrlSocket): Changed its type to SocketHandle.
  14257. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14258. * src/HttpProxyRequestCommand.cc
  14259. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14260. * src/FtpTunnelRequestCommand.h
  14261. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14262. etc
  14263. * src/PeerChokeCommand.h
  14264. (setAllPeerChoked): Removed.
  14265. (setAllPeerResetDelta): Removed.
  14266. * src/PeerChokeCommand.cc
  14267. (setAllPeerChoked): Removed.
  14268. (ChokePeer): New function object.
  14269. (setAllPeerResetDelta): Removed.
  14270. (ResetDelta): New function object.
  14271. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14272. (execute): Show download speed when the local node is a seeder.
  14273. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14274. using STL.
  14275. * src/TrackerWatcherCommand.h
  14276. (MIN_PEERS): Removed.
  14277. * src/TorrentMan.cc
  14278. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14279. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14280. To fix the bug that .aria2 file is not saved if downloading is stopped
  14281. by the errors:it results that aria2 can not resume downloading:
  14282. * src/main.cc
  14283. (normalDownload): Added the call to save().
  14284. (main): Added the deletion of the elements in 'reserved'.
  14285. To fix log:
  14286. * src/PeerInteraction.cc
  14287. (receiveHandshake): Fixed log.
  14288. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14289. To improve download performance in BitTorrent:
  14290. * src/TorrentMan.cc
  14291. (getPeer): Check the number of connections. Return nullPeer if
  14292. it is greater than MAX_PEER_UPDATE.
  14293. This code was originally here, but was removed in 0.5.1.
  14294. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14295. To improve the conditional compilation:
  14296. * src/MultiDiskWriter.h:
  14297. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14298. * src/MultiDiskWriter.cc:
  14299. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14300. * src/Util.h:
  14301. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14302. Added ENABLE_BITTORRENT around computeFastSet().
  14303. * src/Util.cc:
  14304. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14305. Added ENABLE_BITTORRENT around computeFastSet().
  14306. * src/messageDigest.h:
  14307. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14308. * src/ShaVisitor.h:
  14309. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14310. * src/ShaVisitor.cc:
  14311. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14312. * src/main.cc:
  14313. Added ENABLE_BITTORRENT around includes and blocks related to
  14314. BitTorrent.
  14315. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14316. digest support is not available.
  14317. * src/AbstractDiskWriter.h:
  14318. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14319. * src/AbstractDiskWriter.cc:
  14320. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14321. * src/MetalinkEntry.cc
  14322. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14323. support is not available.
  14324. To add command-line options for Metalink:
  14325. * src/main.cc:
  14326. Added metalink-version, metalink-language, metalink-os,
  14327. follow-metalink.
  14328. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14329. * src/main.cc: Use these definition.
  14330. * Release 0.6.0
  14331. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14332. To add Metalink support(http/ftp only):
  14333. * src/AbstractCommand.h
  14334. (tryReserved): New function.
  14335. * src/AbstractCommand.cc
  14336. (execute): Call tryReserved().
  14337. (tryReserved): New function.
  14338. * src/Request.h
  14339. (Requests): New type definition.
  14340. * src/SegmentMan.h
  14341. (reserved): New variable.
  14342. * src/Util.h
  14343. (fileChecksum): New function.
  14344. (toUpper): New function.
  14345. (toLower): New function.
  14346. * src/Util.cc
  14347. (messageDigest.h): Included.
  14348. (trim): Trim \r\n\t.
  14349. (fileChecksum): New function.
  14350. (toUpper): New function.
  14351. (toLower): New function.
  14352. * src/main.cc
  14353. (normalDownload): New function.
  14354. (main): Added 2 command-line options: metalink-file,
  14355. metalink-connection. Their usage has not been written yet.
  14356. * src/MetalinkProcessor.h: New class.
  14357. * src/Xml2MetalinkProcessor.h: New class.
  14358. * src/Xml2MetalinkProcessor.cc: New class.
  14359. * src/MetalinkEntry.h: New class.
  14360. * src/MetalinkEntry.cc: New class.
  14361. * src/MetalinkResource.h: New class.
  14362. * src/MetalinkResource.cc: New class.
  14363. To add md5 message digest checking:
  14364. * src/messageDigest.h: Rewritten.
  14365. * src/MultiDiskWriter.cc: Updated according to the changes in
  14366. messageDigest.h.
  14367. * src/ShaVisitor.cc: Updated according to the changes in
  14368. messageDigest.h.
  14369. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14370. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14371. messageDigest.h.
  14372. To fix a bug that causes segfault when the payload length in peer
  14373. message is less than 0:
  14374. * src/PeerConnection.cc:
  14375. (receiveMessage): Fixed the bug.
  14376. * src/PeerMessageUtil.cc
  14377. (checkLength): Throw an exception if length is less than or equals to
  14378. 0.
  14379. To add new interfaces to Base64 encoding/decoding:
  14380. * src/Base64.h
  14381. (part_encode): Changed the method signature.
  14382. (encode): New function(overload).
  14383. (decode): New function(overload).
  14384. * src/Base64.cc
  14385. (part_encode): Rewritten.
  14386. (encode): Rewritten.
  14387. (encode): New function(overload).
  14388. To prevent a peer to download same piece if there is an error in
  14389. checksum:
  14390. * src/PieceMessage.cc
  14391. (receivedAction): Call peerInteraction->abortPiece().
  14392. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14393. To fix the bug that causes same have message is sent many times to
  14394. a single peer.
  14395. * src/Time.cc
  14396. (isNewer): Use Util::difftv().
  14397. * src/Util.cc
  14398. (difftv): Added a cast to (long long int).
  14399. * src/TorrentMan.cc
  14400. (advertisePiece): Use push_front.
  14401. (getAdvertisedPieceIndexes): A performance improvement was made.
  14402. To fix the bug that sends tracker requests without a sleep interval
  14403. when the number of connections is less than 15.
  14404. * src/TrackerWatcherCommand.cc
  14405. (execute): Now the number of connections is not a factor to decide
  14406. whether or not a tracker request should be sent or not.
  14407. * src/Time.h
  14408. (setTimeInSec): New function.
  14409. * src/Time.cc
  14410. (setTimeInSec): New function.
  14411. etc.
  14412. * src/ChokeMessage.cc
  14413. (receivedAction): Removed peer->snubbing = false
  14414. * src/PeerConnection.h
  14415. (receiveHandshake): Updated doc.
  14416. * src/TorrentMan.h
  14417. (getAdvertisedPieceIndexes): Updated the method signature.
  14418. * src/TorrentMan.cc
  14419. (getAdvertisedPieceIndexes): Updated the method signature.
  14420. * src/Time.h
  14421. (getTimeInMicros): Added a cast to (long long int).
  14422. (getTimeInMillis): Added a cast to (long long int).
  14423. * Release 0.5.2
  14424. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14425. To make a listening socket non-block:
  14426. * src/SocketCore.h
  14427. (setNonBlockingMode): New function.
  14428. * src/SocketCore.cc
  14429. (setNonBlockingMode): New function.
  14430. (beginListen): Added a call to setNonBlockingMode().
  14431. (acceptConnection): Call setNonBlockingMode().
  14432. (setBlockingMode): Updated.
  14433. To handle tracker's NAT-checking:
  14434. * src/PeerConnection.cc
  14435. (receiveHandshake): 'msg' param is filled with received data and
  14436. its length is assigned to 'length' param, even if all handshake
  14437. message is not yet received.
  14438. * src/PeerInteractionCommand.cc
  14439. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14440. a new peer connects to localhost.
  14441. A call to peerInteraction->sendHandshake() was removed because
  14442. it is called from peerInteraction->receiveHandshake(true).
  14443. * src/PeerInteraction.h
  14444. (quickReplied): New variable.
  14445. (receiveHandshake): Added an argument.
  14446. * src/PeerInteraction.cc
  14447. (PeerInteraction): Added the initialization of quickReplied.
  14448. (receiveHandshake): Send handshake message as soon as the info hash
  14449. in a handshake message from a peer is correct.
  14450. To change the random part of peer id and key parameter:
  14451. * src/TorrentMan.h
  14452. (key): New variable.
  14453. * src/TorrentMan.cc
  14454. (setupInternal1): Use Util::randomAlpha() to generate random part
  14455. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14456. key is also generated by Util::randomAlpha() and it is now 8 character
  14457. long.
  14458. * src/Util.h
  14459. (randomAlpha): New function.
  14460. * src/Util.cc
  14461. (randomAlpha): New function.
  14462. * src/TrackerWatcherCommand.cc
  14463. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14464. Added no_peer_id=1.
  14465. Set snubbing flag to false when a choke message is received from a
  14466. snubbed peer.
  14467. * src/ChokeMessage.cc
  14468. (receivedAction): Set snubbing flag to false.
  14469. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14470. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14471. * src/SimpleLogger.h (writeHeader): New function.
  14472. * src/SimpleLogger.cc (writeHeader): New function.
  14473. (writeLog): Fixed the bug that causes segfaults if exception message
  14474. contains an unescaped "%" character.
  14475. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14476. when a tracker request fails.
  14477. * src/Request.cc (parseUrl): Query string is now handled properly.
  14478. * Release 0.5.1
  14479. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14480. To add Time class which represents a specific instant in time and
  14481. its precision is microseconds. Time checking procedures were rewritten
  14482. using this object.
  14483. * src/Time.h: New class.
  14484. * src/Time.cc: New class.
  14485. * src/AbstractCommand.h
  14486. (updateCheckPoint): Removed.
  14487. (isTimeoutDetected): Removed.
  14488. (checkPoint): Changed the type to Time.
  14489. (timeout): New variable.
  14490. (setTimeout): New function.
  14491. * src/AbstractCommand.cc
  14492. (AbstractCommand): Removed the initialization of checkPoint.
  14493. Added the initialization of timeout.
  14494. (updateCheckPoint): Removed.
  14495. (isTimeoutDetected): Removed.
  14496. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14497. * src/PeerChokeCommand.h
  14498. (checkPoint): Changed the type to Time.
  14499. * src/PeerChokeCommand.cc
  14500. (PeerChokeCommand): Removed the initialization of checkPoint.
  14501. (execute): Rewritten using Time object.
  14502. * src/TrackerWatcherCommand.h
  14503. (checkPoint): Changed the type to Time.
  14504. * src/TrackerWatcherCommand.cc
  14505. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14506. (execute): Rewritten.
  14507. * src/ConsoleDownloadEngine.h
  14508. (cp): Changed the type to Time.
  14509. (startup): Changed the type to Time.
  14510. * src/ConsoleDownloadEngine.cc
  14511. (initStatistics): Use cp.reset(), startup.reset().
  14512. (calculateStatistics): Rewritten using Time object.
  14513. * src/PeerAbstractCommand.h
  14514. (updateCheckPoint): Removed.
  14515. (isTimeoutDetected): Removed.
  14516. (checkPoint): Changed the type to Time.
  14517. * src/PeerAbstractCommand.cc
  14518. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14519. (updateCheckPoint): Removed.
  14520. (isTimeoutDetected): Removed.
  14521. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14522. * src/PeerInteractionCommand.cc
  14523. (PeerInteractionCommand): Removed the initializations of struct
  14524. timeval variables.
  14525. * src/PeerInteractionCommand.h
  14526. (keepAliveCheckPoint): Changed the type to Time.
  14527. (chokeCheckPoint): Changed the type to Time.
  14528. (freqCheckPoint): Changed the type to Time.
  14529. (haveCheckTime): Changed the type to Time.
  14530. * src/PeerInteractionCommand.cc
  14531. (executeInternal): Rewritten using Time object.
  14532. (detectMessageFlooding): Rewritten using Time object.
  14533. (checkLongTimePeerChoking): Rewritten using Time object.
  14534. (sendKeepAlive): Rewritten using Time object.
  14535. (checkHave): Rewritten using Time object.
  14536. * src/SleepCommand.h
  14537. (checkPoint): Changed the type to Time.
  14538. * src/SleepCommand.cc
  14539. (SleepCommand): Removed the initialization of checkPoint.
  14540. (execute): Rewritten using Time object.
  14541. * src/TorrentAutoSaveCommand.h
  14542. (checkPoint): Changed the type to Time.
  14543. * src/TorrentAutoSaveCommand.cc
  14544. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14545. (execute): Rewritten.
  14546. * src/DownloadCommand.h
  14547. (sw): Changed the type to Time.
  14548. * src/DownloadCommand.cc
  14549. (DownloadCommand): Removed the initialization of sw.
  14550. (executeInternal): Rewritten.
  14551. * src/RequestSlot.h
  14552. (dispatchedTime): Changed the type to Time.
  14553. * src/RequestSlot.cc
  14554. (RequestSlot): Removed the call to setDispatchedTime().
  14555. (setDispatchedTime): Rewirtten.
  14556. (isTimeout): Rewritten.
  14557. (getLatencyInMillis): Rewritten.
  14558. * src/TorrentDownloadEngine.h
  14559. (cp): Changed the type to Time[2].
  14560. (startup): Changed the type to Time.
  14561. * src/TorrentDownloadEngine.cc
  14562. (initStatistics): Rewritten.
  14563. (calculateStatistics): Rewritten.
  14564. * src/DownloadEngine.cc
  14565. (run): Rewritten.
  14566. To detect all attempts to connect to the tracker are failed:
  14567. * src/AbstractCommand.cc
  14568. (execute): Increment e->segmentMan->errors if a command aborted.
  14569. * src/SegmentMan.h
  14570. (errors): New variable.
  14571. * src/SegmentMan.cc
  14572. (SegmentMan): Added the initialization of errors.
  14573. (init): Added the initialization of errors.
  14574. * src/TrackerWatcherCommand.cc
  14575. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14576. request was failed.
  14577. To handle snubbed peers:
  14578. * src/PeerChokeCommand.cc
  14579. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14580. (execute): Snubbed peers don't get unchoked.
  14581. * src/PeerInteraction.h
  14582. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14583. * src/PeerInteraction.cc
  14584. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14585. back the requested 16k block in 60 seconds.
  14586. * src/PieceMessage.cc
  14587. (receivedAction): A peer's snubbed state is cleard if it sends
  14588. the requested 16k block in 60 seconds.
  14589. * src/Peer.h
  14590. (snubbing): New variable.
  14591. * src/Peer.cc
  14592. (resetStatus): Added snubbed = false.
  14593. To fix the bug that causes have message is not sent:
  14594. * src/PeerInteractionCommand.cc
  14595. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14596. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14597. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14598. * src/TorrentMan.h
  14599. (HaveEntry): New class.
  14600. (advertisePiece): Rewritten.
  14601. (getAdvertisedPieceIndexes): Rewritten.
  14602. (Haves): Changed the type.
  14603. (getAdvertisedPieceIndexes): Added an argument.
  14604. Others:
  14605. * src/TorrentMan.h
  14606. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14607. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14608. * src/TorrentMan.cc
  14609. (getPeer): Don't check the number of connections here.
  14610. (setupInternal1): Changed peerId.
  14611. * src/PeerInteractionCommand.h
  14612. (KEEP_ALIVE_INTERVAL): New definition.
  14613. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14614. * src/main.cc
  14615. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14616. * src/DownloadEngine.h: Removed unnecessary header includes.
  14617. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14618. To fix the bug that causes segfaults if a tracker returns a zero-length
  14619. list as "peers":
  14620. * src/TrackerUpdateCommand.cc
  14621. (execute): Added a check to see wether the type of peers is Data*.
  14622. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14623. * Release 0.5.0
  14624. To fix compile issue with gcc3:
  14625. * src/CancelMessage.h
  14626. (ID): Renamed as ID_t
  14627. (ID_t): New enum.
  14628. * src/RejectMessage.h
  14629. (ID): Renamed as ID_t
  14630. (ID_t): New enum.
  14631. * src/SuggestPieceMessage.h
  14632. (ID): Renamed as ID_t
  14633. (ID_t): New enum.
  14634. * src/AllowedFastMessage.h
  14635. (ID): Renamed as ID_t
  14636. (ID_t): New enum.
  14637. * src/PortMessage.h
  14638. (ID): Renamed as ID_t
  14639. (ID_t): New enum.
  14640. * src/HaveNoneMessage.h
  14641. (ID): Renamed as ID_t
  14642. (ID_t): New enum.
  14643. * src/KeepAliveMessage.h
  14644. (ID): Renamed as ID_t
  14645. (ID_t): New enum.
  14646. * src/HaveAllMessage.h
  14647. (ID): Renamed as ID_t
  14648. (ID_t): New enum.
  14649. * src/UnchokeMessage.h
  14650. (ID): Renamed as ID_t
  14651. (ID_t): New enum.
  14652. * src/BitfieldMessage.h
  14653. (ID): Renamed as ID_t
  14654. (ID_t): New enum.
  14655. * src/PieceMessage.h
  14656. (ID): Renamed as ID_t
  14657. (ID_t): New enum.
  14658. * src/RequestMessage.h
  14659. (ID): Renamed as ID_t
  14660. (ID_t): New enum.
  14661. * src/NotInterestedMessage.h
  14662. (ID): Renamed as ID_t
  14663. (ID_t): New enum.
  14664. * src/ChokeMessage.h
  14665. (ID): Renamed as ID_t
  14666. (ID_t): New enum.
  14667. * src/InterestedMessage.h
  14668. (ID): Renamed as ID_t
  14669. (ID_t): New enum.
  14670. * src/HaveMessage.h
  14671. (ID): Renamed as ID_t
  14672. (ID_t): New enum.
  14673. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14674. * src/PeerAbstractCommand.h
  14675. (beforeSocketCheck): Removed.
  14676. * src/PeerAbstractCommand.cc
  14677. Modified in order to call executeInternal() even if socket check
  14678. and upload limit check fail.
  14679. * src/PeerInteractionCommand.h
  14680. (keepAlive): Removed.
  14681. (sendKeepAlive): New function.
  14682. (checkHave): New function.
  14683. (beforeSocketCheck): Removed.
  14684. * src/PeerInteractionCommand.cc
  14685. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14686. calls to checkHave() and sendKeepAlive().
  14687. (keepAlive): Renamed to sendKeepAlive().
  14688. (sendKeepAlive): New function.
  14689. (beforeSocketCheck): Removed.
  14690. (checkHave): New function.
  14691. * src/BitfieldMan.cc
  14692. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14693. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14694. 0.
  14695. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14696. * src/TorrentMan.h
  14697. (UsedPieces): Removed.
  14698. (Pieces): New type definition.
  14699. * src/Piece.h: Updated doc.
  14700. * src/Peer.h
  14701. (totalLength): Removed.
  14702. * src/Peer.cc
  14703. (updateLatency): Fixed the latency calculation.
  14704. * src/TorrentMan.cc
  14705. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14706. than or equal to MAX_PEER_LIST_SIZE.
  14707. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14708. then return false.
  14709. (deleteOldErrorPeers): Rewritten.
  14710. (deleteUsedPiece): Fixed the miss use of STL remove.
  14711. * src/PeerInteraction.h
  14712. (Pieces): Removed.
  14713. (deleteTimeoutRequestSlot): Removed.
  14714. (deleteCompletedRequestSlot): Removed.
  14715. (checkRequestSlot): New function.
  14716. * src/PeerInteraction.cc
  14717. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14718. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14719. (checkRequestSlot): New function.
  14720. * src/DownloadEngine.cc
  14721. (run): Clear activeSockets before calling waitData().
  14722. (waitData): Removed a call to activeSockets.clear().
  14723. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14724. To attempt to handle EINTR:
  14725. * src/SocketCore.cc
  14726. (isReadable): Added EINTR handling.
  14727. (isWritable): Added EINTR handling.
  14728. To improve the performance:
  14729. * src/AbstractCommand.cc
  14730. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14731. * src/PeerInteractionCommand.h
  14732. (receiveMessage): Renamed as receiveMessages().
  14733. (receiveMessages): New function.
  14734. * src/PeerInteractionCommand.cc
  14735. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14736. () function. detectMessageFlooding() is moved here.
  14737. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14738. (). The flooding detection for have message is comment out.
  14739. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14740. Util::difftv().
  14741. (receiveMessage): Renamed as receiveMessages().
  14742. (receiveMessages): New function.
  14743. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14744. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14745. * src/SleepCommand.cc
  14746. (execute): Use Util::difftvsec() instead of Util::difftv().
  14747. * src/BitfieldMan.h
  14748. (getNthBitIndex): New function.
  14749. (hasMissingPiece): New function.
  14750. (getAllMissingIndexes): New function.
  14751. * src/BitfieldMan.cc
  14752. (countSetBit): Rewritten.
  14753. (getNthBitIndex): New function.
  14754. (getMissingIndexRandomly): Rewritten.
  14755. (hasMissingPiece): New function.
  14756. (getAllMissingIndexes): New function.
  14757. * src/TorrentMan.cc
  14758. (hasMissingPiece): New function.
  14759. (deleteUsedPiece): Rewritten using STL.
  14760. * src/PeerInteraction.cc
  14761. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14762. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14763. (addRequests): Updated the number of pending requests.
  14764. * src/PeerAbstractCommand.cc
  14765. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14766. (execute): Returns true if TorrentMan::isHalt() is true.
  14767. Corrected the condition of upload limit checking.
  14768. * src/Util.h
  14769. (countBit): New function.
  14770. * src/Util.cc
  14771. (nbits): New variable.
  14772. (countBit): New function.
  14773. * src/DownloadEngine.h
  14774. (SockCmdMap): New type definition.
  14775. (waitData): Added an argument.
  14776. (addSocket): Added an argument.
  14777. (addSocketForReadCheck): Added an argument.
  14778. (addSocketForWriteCheck): Added an argument.
  14779. * src/DownloadEngine.cc
  14780. (run): Executes only commands whose sockets are ready to read or write.
  14781. All commands are executed in every 1 second.
  14782. (waitData): Calls select() again if it returned
  14783. EINTR.
  14784. (addSocket): Saves socket and command object pair to the map.
  14785. (deleteSocket): Deletes socket and command object pair from the map.
  14786. (addSocketForReadCheck): Added an argument.
  14787. (addSocketForWriteCheck): Added an argument.
  14788. * src/DownloadCommand.cc
  14789. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14790. To send "event=stopped" to the tracker when the application finishes:
  14791. * src/PeerChokeCommand.h
  14792. (checkPoint): New variable.
  14793. * src/PeerChokeCommand.cc
  14794. (PeerChokeCommand): Added the initialization of checkPoint.
  14795. (execute): The interval check is now done by checkPoint, not
  14796. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14797. * src/TorrentMan.h
  14798. (halt): New function.
  14799. (hasMissingPiece): New function.
  14800. (isHalt): New function.
  14801. (setHalt): New function.
  14802. * src/TorrentMan.cc
  14803. (TorrentMan): Added the initialization of halt.
  14804. * src/TorrentAutoSaveCommand.h
  14805. (checkPoint): New variable.
  14806. * src/PeerListenCommand.cc
  14807. (execute): Returns true if TorrentMan::isHalt() is true.
  14808. * src/main.cc
  14809. (setSignalHander): Added flags argument.
  14810. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14811. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14812. Removed printDownloadAbortMessage() after torrent downloading loop.
  14813. * src/TorrentAutoSaveCommand.cc
  14814. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14815. (execute): Returns true if TorrentMan::isHalt() is true.
  14816. The interval check is now done by checkPoint, not SleepCommand.
  14817. * src/TrackerWatcherCommand.cc
  14818. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14819. event=stopped.
  14820. * src/TrackerUpdateCommand.cc
  14821. (prepareForRetry): Do not use SleepCommand here.
  14822. (execute): Returns true if TorrentMan::isHalt() is true.
  14823. Others:
  14824. * src/TorrentMan.cc
  14825. (getMissingPieceIndex): Updated log message.
  14826. * src/PeerInteraction.cc
  14827. (createPeerMessag): Updated log message.
  14828. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14829. To add the ability to download several pieces in mix in a command and
  14830. increase the number of request slots according to request-cancel
  14831. latency:
  14832. * src/PeerInteractionCommand.cc
  14833. (executeInternal): The number of messages to be received at a time
  14834. is increased from 10 to 50.
  14835. * src/LogFactory
  14836. (getInstance): Added NullLogger.
  14837. * src/NullLogger.h: New class.
  14838. * src/BitfieldMan.h
  14839. (getMissingIndex): New function.
  14840. * src/BitfieldMan.cc
  14841. (getMissingIndex): New function.
  14842. * src/TorrentMan.h
  14843. (checkOutPiece): New function.
  14844. (getMissingPieceIndex): New function.
  14845. (getMissingFastPieceIndex): New function.
  14846. (getMissingFastPiece): New function.
  14847. * src/TorrentMan.cc
  14848. (updatePiece): Rewritten using STL.
  14849. (syncPiece): Rewritten using STL.
  14850. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14851. checkOutPiece().
  14852. (getMissingPieceIndex): New function.
  14853. (getMissingFastPieceIndex): New function.
  14854. (getMissingFastPiece): New function.
  14855. (checkOutPiece): New function.
  14856. * src/PeerInteraction.h
  14857. (Pieces): New type definition.
  14858. (piece): Removed.
  14859. (pieces): New variable.
  14860. (getNewPieceAndSendInterest): Added the "piece" argument.
  14861. (abortPiece): Added the "piece" argument.
  14862. (abortAllPieces): New function.
  14863. (isInRequestSlot): New function.
  14864. (hasDownloadPiece): Added the "index" argument.
  14865. (setDownloadPiece): Removed.
  14866. (getDownloadPiece): Added the "index" argument.
  14867. (updatePiece): New function.
  14868. (createRequestMessage): Added the "index" argument.
  14869. * src/PeerInteraction.cc
  14870. (onChoked): Rewritten.
  14871. (abortPiece): Rewirtten.
  14872. (abortAllPieces): New function.
  14873. (deleteTimeoutRequestSlot): Rewritten.
  14874. Clarified code a little bit.
  14875. (deleteCompletedRequestSlot): Rewritten.
  14876. (isInRequestSlot): New function.
  14877. (syncPiece): Rewritten.
  14878. (updatePiece): New function.
  14879. (getNewPieceAndSendInterest): Rewritten.
  14880. (addRequests): Rewritten.
  14881. (getDownloadPiece): Rewritten.
  14882. (hasDownloadPiece): Rewritten.
  14883. (createRequestMessage): Added the "index" argument.
  14884. * src/common.h
  14885. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14886. (DIV_FLOOR): New definition.
  14887. * src/PieceMessage.cc
  14888. (receivedAction): Update request-piece latency here.
  14889. * src/RequestSlot.h
  14890. (getLatencyInMillis): New function.
  14891. * src/RequestSlot.cc
  14892. (isTimeout): Rewritten using getLatencyInMillis.
  14893. (getLatencyInMillis): New function.
  14894. * src/Piece.h
  14895. (operator==): New function.
  14896. (getMissingBlockIndex): New function.
  14897. * src/Piece.cc
  14898. (operator==): New function.
  14899. (getMissingBlockIndex): New function.
  14900. * src/Peer.h
  14901. (DEFAULT_LATENCY): New definition.
  14902. (latency): New variable.
  14903. (updateLatency): New function.
  14904. (getLatency): New function.
  14905. * src/Peer.cc
  14906. (resetStatus): Reset latecy.
  14907. (updateLatency): New function.
  14908. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14909. * src/SocketCore.cc
  14910. (isReadable): Added secure to the condition.
  14911. * src/HttpConnection.cc
  14912. (receiveResponse): Fixed a bug that causes no response header
  14913. exception.
  14914. * src/Peer.h
  14915. (getFastSet): Fixed the return value type.
  14916. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14917. To remove a wait from download loop:
  14918. * src/DownloadEngine.cc
  14919. (run): Comment out shortSleep.
  14920. To rewrite the message handling:
  14921. * src/SimplePeerMessage.h: New class.
  14922. * src/SimplePeerMessage.cc: New class.
  14923. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14924. (msg): New variable.
  14925. (create): New function.
  14926. (send): Removed.
  14927. (getMessage): New function.
  14928. (getMessageLength): New function.
  14929. * src/CancelMessage.cc
  14930. (create): New function.
  14931. (receivedAction): Replaced deleteRequestMessageInQueue with
  14932. rejectPieceMessageInQueue.
  14933. (send): Removed.
  14934. (getMessage): New function.
  14935. (getMessageLength): New function.
  14936. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14937. (msg): New variable.
  14938. (msgLength): New variable.
  14939. (~BitfieldMessage): Deleted msg.
  14940. (send): Removed.
  14941. (getMessage): New function.
  14942. (getMessageLength): New function.
  14943. * src/BitfieldMessage.cc
  14944. (create): New function.
  14945. (send): Removed.
  14946. (getMessage): New function.
  14947. (getMessageLength): New function.
  14948. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14949. (msg): New variable.
  14950. (sendPredicate): New function.
  14951. (onSendComplete): New function.
  14952. (send): Removed.
  14953. (getMessage): New function.
  14954. (getMessageLength): New function.
  14955. (create): New function.
  14956. * src/ChokeMessage.cc
  14957. (create): New function.
  14958. (send): Removed.
  14959. (sendPredicate): New function.
  14960. (getMessage): New function.
  14961. (getMessageLength): New function.
  14962. (onSendComplete): New function.
  14963. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14964. (msg): New variable.
  14965. (send): Removed.
  14966. (getMessage): New function.
  14967. (getMessageLength): New function.
  14968. * src/KeepAliveMessage.cc
  14969. (send): Removed.
  14970. (getMessage): New function.
  14971. (getMessageLength): New function.
  14972. * src/PortMessage.h
  14973. (create): New function.
  14974. (receivedAction): Updated log message.
  14975. * src/PortMessage.cc: New file.
  14976. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14977. (msg): New variable.
  14978. (sendPredicate): New function.
  14979. (onSendComplete): New function.
  14980. (create): New function.
  14981. (send): Removed.
  14982. (getMessage): New function.
  14983. (getMessageLength): New function.
  14984. * src/UnchokeMessage.cc
  14985. (create): New function.
  14986. (send): Removed.
  14987. (sendPredicate): New function.
  14988. (getMessage): New function.
  14989. (getMessageLength): New function.
  14990. (onSendComplete): New function.
  14991. * src/PieceMessage.h
  14992. (leftPieceDataLength): Removed.
  14993. (leftDataLength): New variable.
  14994. (headerSend): New variable.
  14995. (pendingCount): New variable.
  14996. (msgHeader): New variable.
  14997. (sendPieceData): New function.
  14998. (incrementPendingCount): New function.
  14999. (isPendingCountMax): New function.
  15000. (create): New function.
  15001. (getMessageHeader): New function.
  15002. (getMessageHeaderLength): New function.
  15003. * src/PieceMessage.cc
  15004. (create): New function.
  15005. (getMessageHeader): New function.
  15006. (getMessageHeaderLength): New function.
  15007. (send): Rewritten.
  15008. (sendPieceData): New function.
  15009. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15010. (msg): New variable.
  15011. (create): New function.
  15012. (getMessage): New function.
  15013. (getMessageLength): New function.
  15014. * src/HaveMessage.cc
  15015. (create): New function.
  15016. (send): Removed.
  15017. (sendPieceData): New function.
  15018. (getMessage): New function.
  15019. (getMessageLength): New function.
  15020. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15021. (msg): New variable.
  15022. (create): New function.
  15023. (send): Removed.
  15024. (getMessage): New function.
  15025. (getMessageLength): New function.
  15026. * src/RequestMessage.cc
  15027. (create): New function.
  15028. (receivedAction): Added the handling of fast extension.
  15029. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15030. (send): Removed.
  15031. (getMessage): New function.
  15032. (getMessageLength): New function.
  15033. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15034. (msg): New variable.
  15035. (sendPredicate): New function.
  15036. (onSendComplete): New function.
  15037. (create): New function.
  15038. (getMessage): New function.
  15039. (getMessageLength): New function.
  15040. * src/InterestedMessage.cc
  15041. (create): New function.
  15042. (send): Removed.
  15043. (sendPieceData): New function.
  15044. (getMessage): New function.
  15045. (getMessageLength): New function.
  15046. (onSendComplete): New function.
  15047. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15048. (msg): New variable.
  15049. (sendPieceData): New function.
  15050. (onSendComplete): New function.
  15051. (create): New function.
  15052. (send): Removed.
  15053. (getMessage): New function.
  15054. (getMessageLength): New function.
  15055. * src/NotInterestedMessage.cc
  15056. (create): New function.
  15057. (send): Removed.
  15058. (sendPredicate): New function.
  15059. (getMessage): New function.
  15060. (getMessageLength): New function.
  15061. (onSendComplete): New function.
  15062. * src/AllowedFastMessage.h: New class.
  15063. * src/AllowedFastMessage.cc: New class.
  15064. * src/RejectMessage.h: New class.
  15065. * src/RejectMessage.cc: New class.
  15066. * src/SuggestPieceMessage.h: New class.
  15067. * src/SuggestPieceMessage.cc: New class.
  15068. * src/HaveAllMessage.h: New class.
  15069. * src/HaveAllMessage.cc: New class.
  15070. * src/HaveNoneMessage.h: New class.
  15071. * src/HaveNoneMessage.cc: New class.
  15072. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15073. (msg): New variable.
  15074. (reserved): New variable.
  15075. (create): New function.
  15076. (getId): New function.
  15077. (receivedAction): New function.
  15078. (getMessage): New function.
  15079. (getMessageLength): New function.
  15080. (isFastExtensionSupported): New function.
  15081. * src/HandshakeMessage.cc
  15082. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15083. (create): New function.
  15084. (getMessage): New function.
  15085. (getMessageLength): New function.
  15086. (toString): Added the output of reserved field.
  15087. (check): Added const qualifier.
  15088. (isFastExtensionSupported): New function.
  15089. * src/PeerMessageUtil.h
  15090. (createChokeMessage): Removed.
  15091. (createUnchokeMessage): Removed.
  15092. (createInterestedMessage): Removed.
  15093. (createNotInterestedMessage): Removed.
  15094. (createHaveMessage): Removed.
  15095. (createBitfieldMessage): Removed.
  15096. (createRequestMessage): Removed.
  15097. (createCancelMessage): Removed.
  15098. (createPieceMessage): Removed.
  15099. (createPortMessage): Removed.
  15100. (createChokeMessage): Removed.
  15101. (createUnchokeMessage): Removed.
  15102. (createInterestedMessage): Removed.
  15103. (createNotInterestedMessage): Removed.
  15104. (createHaveMessage): Removed.
  15105. (createBitfieldMessage): Removed.
  15106. (createRequestMessage): Removed.
  15107. (createCancelMessage): Removed.
  15108. (createPieceMessage): Removed.
  15109. (createKeepAliveMessage): Removed.
  15110. (createHandshakeMessage): Removed.
  15111. (setIntParam): New function.
  15112. (createPeerMessageString): New function.
  15113. * src/PeerMessageUtil.cc
  15114. (createChokeMessage): Removed.
  15115. (createUnchokeMessage): Removed.
  15116. (createInterestedMessage): Removed.
  15117. (createNotInterestedMessage): Removed.
  15118. (createHaveMessage): Removed.
  15119. (createBitfieldMessage): Removed.
  15120. (createRequestMessage): Removed.
  15121. (createCancelMessage): Removed.
  15122. (createPieceMessage): Removed.
  15123. (createPortMessage): Removed.
  15124. (createRequestMessage): Removed.
  15125. (createCancelMessage): Removed.
  15126. (createPieceMessage): Removed.
  15127. (createHaveMessage): Removed.
  15128. (createChokeMessage): Removed.
  15129. (createUnchokeMessage): Removed.
  15130. (createInterestedMessage): Removed.
  15131. (createNotInterestedMessage): Removed.
  15132. (createBitfieldMessage): Removed.
  15133. (createKeepAliveMessage): Removed.
  15134. (createHandshakeMessage): Removed.
  15135. (setIntParam): New function.
  15136. (createPeerMessageString): New function.
  15137. * src/PeerConnection.h
  15138. (peer): Removed.
  15139. (torrentMan): Removed.
  15140. (createNLengthMessage): Removed.
  15141. (setIntParam): Removed.
  15142. (writeOutgoingMessageLog): Removed all overloaded functions.
  15143. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15144. (sendMessage): New function.
  15145. (sendHandshake): Removed.
  15146. (sendKeepAlive): Removed.
  15147. (sendChoke): Removed.
  15148. (sendUnchoke): Removed.
  15149. (sendInterested): Removed.
  15150. (sendNotInterested): Removed.
  15151. (sendHave): Removed.
  15152. (sendBitfield): Removed.
  15153. (sendRequest): Removed.
  15154. (sendPiece): Removed.
  15155. (sendPieceHeader): Removed.
  15156. (sendPieceData): Removed.
  15157. (sendCancel): Removed.
  15158. (getPeer): Removed.
  15159. * src/PeerConnection.cc
  15160. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15161. (sendHandshake): Removed.
  15162. (sendKeepAlive): Removed.
  15163. (createNLengthMessage): Removed.
  15164. (setIntParam): Removed.
  15165. (writeOutgoingMessageLog): Removed all overloaded functions.
  15166. (sendChoke): Removed.
  15167. (sendUnchoke): Removed.
  15168. (sendInterested): Removed.
  15169. (sendNotInterested): Removed.
  15170. (sendHave): Removed.
  15171. (sendBitfield): Removed.
  15172. (sendRequest): Removed.
  15173. (sendPiece): Removed.
  15174. (sendPieceHeader): Removed.
  15175. (sendPieceData): Removed.
  15176. (sendMessage): New function.
  15177. (sendCancel): Removed.
  15178. * src/PeerInteractionCommand.cc
  15179. (PeerInteractionCommand): Call setUploadLimit.
  15180. (executeInternal): Call setUploadLimit.
  15181. Added the handling of "inProgress" state of handshake message.
  15182. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15183. sendNow().
  15184. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15185. sendNow().
  15186. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15187. * src/TorrentMan.h
  15188. (PEER_ID_LENGTH): New definition.
  15189. (hasAllPieces): New function.
  15190. * src/TorrentMan.cc
  15191. (getMissingPiece): Added the handling of fast extension.
  15192. (cancelPiece): Call updatePiece().
  15193. (hasAllPieces): New function.
  15194. * src/PeerInteraction.h
  15195. (fastSet): New variable.
  15196. (getNewPieceAndSendInterest): Changed the return type to void.
  15197. (send): Renamed as sendMessages.
  15198. (deleteAllRequestSlot): Removed.
  15199. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15200. (cancelAllRequest): Removed all overloaded functions.
  15201. (deleteAllRequestSlot): Removed.
  15202. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15203. (rejectPieceMessageInQueue): New function.
  15204. (rejectAllPieceMessageInQueue): New function.
  15205. (onChoked): New function.
  15206. (isSendingMessageInProgress): New function.
  15207. (getCorrespondingRequestSlot): Changed its arguments.
  15208. (isInFastSet): New function.
  15209. (addFastSetIndex): New function.
  15210. (addRequests): New function.
  15211. (sendNow): Removed.
  15212. (trySendNow): Removed.
  15213. (sendBitfield): New function.
  15214. (sendAllowdFast): New function.
  15215. (createHaveAllMessage): New function.
  15216. (createHaveNoneMessage): New function.
  15217. (createRejectMessage): New function.
  15218. (createAllowedFastMessage): New function.
  15219. * src/PeerInteraction.cc
  15220. (send): Renamed as sendMessages.
  15221. (sendMessages): New function.
  15222. (MsgPushBack): New class.
  15223. (isSendingMessageInProgress): New function.
  15224. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15225. (rejectAllPieceMessageInQueue): New function.
  15226. Added the handling of fast extension.
  15227. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15228. (rejectPieceMessageInQueue): New function.
  15229. Added the handling of fast extension.
  15230. (deleteRequestSlot): Replaced for loop with std::find.
  15231. (onChoked): New function.
  15232. (deleteAllRequestSlot): Removed.
  15233. (abortPiece): Rewirtten.
  15234. (deleteTimeoutRequestSlot): Updated log messages.
  15235. (getCorrespondingRequestSlot): Changed its arguments.
  15236. (cancelAllRequest): Removed all overloaded functions.
  15237. (receiveHandshake): Added the check to see whether an incoming peer
  15238. supports fast extension.
  15239. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15240. PeerMessageUtil.
  15241. (createPeerMessage): Use create() of each message class instead of
  15242. PeerMessageUtil.
  15243. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15244. AllowedFastMessage were added.
  15245. (getNewPieceAndSendInterest): Changed its return value type to void.
  15246. Added the handling of fast extension.
  15247. (addRequests): New function.
  15248. (sendNow): Removed.
  15249. (sendHandshake): Rewritten.
  15250. (trySendNow): Removed.
  15251. (sendBitfield): New function.
  15252. (sendAllowdFast): New function.
  15253. (isInFastSet): New function.
  15254. (addFastSetIndex): New function.
  15255. (createRequestMessage): Use RequestMessage::create instead of
  15256. PeerMessageUtil.
  15257. (createCancelMessage): Use CancelMessage::create instead of
  15258. PeerMessageUtil.
  15259. (createPieceMessage): Use PieceMessage::create instead of
  15260. PeerMessageUtil.
  15261. (createHaveMessage): Use HaveMessage::create instead of
  15262. PeerMessageUtil.
  15263. (createChokeMessage): Use ChokeMessage::create instead of
  15264. PeerMessageUtil.
  15265. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15266. PeerMessageUtil.
  15267. (createInterestedMessage): Use InterestedMessage::create instead of
  15268. PeerMessageUtil.
  15269. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15270. of PeerMessageUtil.
  15271. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15272. PeerMessageUtil.
  15273. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15274. PeerMessageUtil.
  15275. (createHaveAllMessage): New function.
  15276. (createHaveNoneMessage): New function.
  15277. (createRejectMessage): New function.
  15278. (createAllowedFastMessage: New function.
  15279. * src/Util.h
  15280. (sha1Sum): New function.
  15281. (computeFastSet): New function.
  15282. * src/Util.cc
  15283. (sha1Sum): New function.
  15284. (computeFastSet): New function.
  15285. * src/Peer.h
  15286. (fastExtensionEnabled): New variable.
  15287. (fastSet): New variable.
  15288. (setAllBitfield): New function.
  15289. (setFastExtensionEnabled): New function.
  15290. (isFastExtensionEnabled): New function.
  15291. (addFastSetIndex): New function.
  15292. (getFastSet): New function.
  15293. (isInFastSet): New function.
  15294. (countFastSet): New function.
  15295. * src/Peer.cc
  15296. (isInFastSet): New function.
  15297. (addFastSetIndex): New function.
  15298. (setAllBitfield): New function.
  15299. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15300. sockets.
  15301. * src/PeerAbstractCommand.cc
  15302. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15303. and uploadLimit.
  15304. (execute): Changed the procedure of checking sockets. The upload speed
  15305. checking were added.
  15306. (setUploadLimit): New function.
  15307. (setUploadLimitCheck): New function.
  15308. * src/PeerAbstractCommand.h
  15309. (setUploadLimit): New function.
  15310. (setUploadLimitCheck): New function.
  15311. (uploadLimit): New variable.
  15312. (uploadLimitCheck): New variable.
  15313. To contact a tracker regularly:
  15314. * src/TrackerWatcherCommand.h (interval): New variable.
  15315. (checkPoint): New variable.
  15316. (TrackerWatcherCommand): Added interval argument.
  15317. * src/TrackerWatcherCommand.cc
  15318. (TrackerWatcherCommand): Initialized checkPoint.
  15319. (execute): Now a tracker is contacted in every specified period.
  15320. If peer list is not needed, send request with numwant=0.
  15321. * src/TrackerUpdateCommand.cc
  15322. (execute): Updated log messages.
  15323. * src/DownloadEngine.cc
  15324. (~DownloadEngine): Removed two asserts.
  15325. (waitData): Uncommented wfds. May be a bug fix.
  15326. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15327. * src/PeerInteractionCommand.h
  15328. (checkInactiveConnection): Removed.
  15329. * src/PeerInteractionCommand.cc
  15330. (executeInternal): Removed following function calls:
  15331. detectMessageFlooding(), checkLongTimePeerChoking and
  15332. checkInactiveConnection().
  15333. (checkInactiveConnection): Removed.
  15334. (detectMessageFlooding): Removed function call to
  15335. checkInactiveConnection().
  15336. * src/PeerMessageUtil.h
  15337. (createChokeMessage): New function. Overload.
  15338. (createUnchokeMessage): New function. Overload.
  15339. (createInterestedMessage): New function. Overload.
  15340. (createNotInterestedMessage): New function. Overload.
  15341. (createHaveMessage): New function. Overload.
  15342. (createBitfieldMessage): New function. Overload.
  15343. (createRequestMessage): New function. Overload.
  15344. (createCancelMessage): New function. Overload.
  15345. (createPieceMessage): New function. Overload.
  15346. (createKeepAliveMessage): New function. Overload.
  15347. * src/PeerMessageUtil.cc
  15348. (createChokeMessage): New function. Overload.
  15349. (createUnchokeMessage): New function. Overload.
  15350. (createInterestedMessage): New function. Overload.
  15351. (createNotInterestedMessage): New function. Overload.
  15352. (createHaveMessage): New function. Overload.
  15353. (createBitfieldMessage): New function. Overload.
  15354. (createRequestMessage): New function. Overload.
  15355. (createCancelMessage): New function. Overload.
  15356. (createPieceMessage): New function. Overload.
  15357. (createKeepAliveMessage): New function. Overload.
  15358. * src/SendMessageQueue.cc
  15359. (createRequestMessage): Use PeerMessageUtil.
  15360. (createCancelMessage): Use PeerMessageUtil.
  15361. (createPieceMessage): Use PeerMessageUtil.
  15362. (createHaveMessage): Use PeerMessageUtil.
  15363. (createChokeMessage): Use PeerMessageUtil.
  15364. (createUnchokeMessage): Use PeerMessageUtil.
  15365. (createInterestedMessage): Use PeerMessageUtil.
  15366. (createNotInterestedMessage): Use PeerMessageUtil.
  15367. (createBitfieldMessage): Use PeerMessageUtil.
  15368. (createKeepAliveMessage): Use PeerMessageUtil.
  15369. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15370. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15371. * src/PeerInteraction.h: New class.
  15372. * src/PeerInteraction.cc: New class.
  15373. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15374. Each peer message has its own class.
  15375. * src/PendingMessages.h: Removed.
  15376. * src/PendingMessages.cc: Removed. The sending process was moved to
  15377. each message class.
  15378. * src/RequestSlotMan.h: Removed.
  15379. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15380. SendMessageQueue.
  15381. * src/RequestMessage.h: New class.
  15382. * src/RequestMessage.cc: New class.
  15383. * src/CancelMessage.h: New class.
  15384. * src/CancelMessage.cc: New class.
  15385. * src/BitfieldMessage.h: New class.
  15386. * src/BitfieldMessage.cc: New class.
  15387. * src/ChokeMessage.h: New class.
  15388. * src/ChokeMessage.cc: New class.
  15389. * src/KeepAliveMessage.h: New class.
  15390. * src/KeepAliveMessage.cc: New class.
  15391. * src/PortMessage.h: New class.
  15392. * src/UnchokeMessage.h: New class.
  15393. * src/UnchokeMessage.cc: New class.
  15394. * src/PieceMessage.h: New class.
  15395. * src/PieceMessage.cc: New class.
  15396. * src/HaveMessage.h: New class.
  15397. * src/HaveMessage.cc: New class.
  15398. * src/BitfieldMessage.h: New class.
  15399. * src/BitfieldMessage.cc: New class.
  15400. * src/NotInterestedMessage.h: New class.
  15401. * src/NotInterestedMessage.cc: New class.
  15402. * src/InterestedMessage.h: New class.
  15403. * src/InterestedMessage.cc: New class.
  15404. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15405. (getSendMessageQueue): New function.
  15406. (setSendMessageQueue): New function.
  15407. * src/HandshakeMessage.cc: New class.
  15408. * src/PeerConnection.h (receiveMessage): Changed return value and
  15409. arguments.
  15410. (receiveHandshake): Changed return value and arguments.
  15411. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15412. here.
  15413. (receiveHandshake): Do not create handshake class here.
  15414. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15415. (piece): Removed.
  15416. (syncPiece): Removed.
  15417. (sendInterest): Removed.
  15418. (sendMessages): Removed.
  15419. (createRequestPendingMessage): Removed.
  15420. (checkPieceHash): Removed.
  15421. (erasePieceOnDisk): Removed.
  15422. (getNewPieceAndSendInterest): Removed.
  15423. (onGotNewPice): Removed.
  15424. (onGotWrongPiece): Removed.
  15425. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15426. Removed peerConnection, piece.
  15427. (~PeerInteractionCommand): Removed peerConnection.
  15428. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15429. (syncPiece): Moved to SendMessageQueue.
  15430. (decideChoking): Removed PendingMessage.
  15431. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15432. The action after receiving peer message was moved to each message
  15433. class.
  15434. (onGotNewPice): Moved to SendMessageQueue.
  15435. (onGotWrongPiece): Moved to SendMessageQueue.
  15436. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15437. (sendInterest): Moved to SendMessageQueue.
  15438. (createRequestPendingMessage): Removed.
  15439. (sendMessages): Moved to SendMessageQueue.
  15440. (onAbort): Use SendMessageQueue::abortPiece()
  15441. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15442. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15443. (checkPieceHash): Moved to SendMessageQueue.
  15444. (erasePieceOnDisk): Moved to SendMessageQueue.
  15445. * src/PeerMessageUtil.h
  15446. (createBitfieldMessage): Removed.
  15447. (createHaveMessage): Changed return value and arguments.
  15448. (createBitfieldMessage): Changed return value and arguments.
  15449. (createRequestCancelMessage): Removed.
  15450. (createPieceMessage): Changed return value and arguments.
  15451. (getShortIntParam): New function.
  15452. (checkIndex): Changed arguments.
  15453. (checkBegin): Changed arguments.
  15454. (checkLength): Changed arguments.
  15455. (checkPieceOffset): Removed.
  15456. (checkRange): New function.
  15457. (checkBitfield): Changed arguments.
  15458. (createPeerMessage): Removed.
  15459. (checkIntegrity): Removed.
  15460. (createHandshakeMessage): Changed arguments.
  15461. (createChokeMessage): New function.
  15462. (createUnchokeMessage): New function.
  15463. (createInterestedMessage): New function.
  15464. (createNotInterestedMessage): New function.
  15465. (createRequestMessage): New function.
  15466. (createCancelMessage): New function.
  15467. (createPortMessage): New function.
  15468. * src/PeerMessageUtil.cc
  15469. (createBitfieldMessage): Removed.
  15470. (createHaveMessage): Changed return value and arguments.
  15471. (createBitfieldMessage): Changed return value and arguments.
  15472. (createRequestCancelMessage): Removed.
  15473. (createPieceMessage): Changed return value and arguments.
  15474. (getShortIntParam): New function.
  15475. (checkIndex): Changed arguments.
  15476. (checkBegin): Changed arguments.
  15477. (checkLength): Changed arguments.
  15478. (checkPieceOffset): Removed.
  15479. (checkRange): New function.
  15480. (checkBitfield): Changed arguments.
  15481. (createPeerMessage): Removed.
  15482. (checkIntegrity): Removed.
  15483. (createHandshakeMessage): Changed arguments.
  15484. (createChokeMessage): New function.
  15485. (createUnchokeMessage): New function.
  15486. (createInterestedMessage): New function.
  15487. (createNotInterestedMessage): New function.
  15488. (createRequestMessage): New function.
  15489. (createCancelMessage): New function.
  15490. (createPortMessage): New function.
  15491. * src/PeerMessage.h
  15492. (id): Removed.
  15493. (index): Removed.
  15494. (begin): Removed.
  15495. (length): Removed.
  15496. (bitfield): Removed.
  15497. (bitfieldLength): Removed.
  15498. (block): Removed.
  15499. (blockLength): Removed.
  15500. (inProgress): New variable.
  15501. (cuid): New variable.
  15502. (peer): New variable.
  15503. (sendMessageQueue): New variable.
  15504. (logger): New variable.
  15505. (setBitfield): Removed.
  15506. (getBitfield): Removed.
  15507. (setBlock): Removed.
  15508. (getBlock): Removed.
  15509. (getBitfieldLength): Removed.
  15510. (getBlockLength): Removed.
  15511. (isInProgress): New function.
  15512. (toString): Made pure virtual.
  15513. (check): New function.
  15514. (send): New function.
  15515. (receivedAction): New function.
  15516. (getId): Made pure virtual.
  15517. (setId): Removed.
  15518. (getIndex): Removed.
  15519. (setIndex): Removed.
  15520. (getBegin): Removed.
  15521. (setBegin): Removed.
  15522. (getLength): Removed.
  15523. (setLength): Removed.
  15524. (getCuid): New function.
  15525. (setCuid): New function.
  15526. (getPeer): New function.
  15527. (setPeer): New function.
  15528. (getSendMessageQueue): New function.
  15529. (setSendMessageQueue): New function.
  15530. (ID): Removed.
  15531. * src/PeerMessage.cc
  15532. (setBitfield): Removed.
  15533. (setBlock): Removed.
  15534. (toString): Removed.
  15535. * src/TorrentMan.h
  15536. (getPieceLength): New function.
  15537. (getPieceLength): New function.
  15538. * src/SendMessageQueue.h
  15539. (REQUEST_TIME_OUT): New definition.
  15540. (RequestSlots): New definition.
  15541. (MessageQueue): New definition.
  15542. (requestSlotMan): Removed.
  15543. (pendingMessages): Removed.
  15544. (requestSlots): New variable.
  15545. (messageQueue): New variable.
  15546. (torrentMan): New variable.
  15547. (peerConnection): New variable.
  15548. (peer): New variable.
  15549. (piece): New variable.
  15550. (getNewPieceAndSendInterest): New function.
  15551. (createPeerMessage): New function.
  15552. (createHandshakeMessage): New function.
  15553. (send): Made private.
  15554. (setPeerMessageCommonProperty): New function.
  15555. (deleteAllRequestSlot): New function.
  15556. (deleteRequestMessageInQueue): New function.
  15557. (cancelAllRequest): Made private.
  15558. (cancelAllRequest): Made private.
  15559. (countRequestSlot): Made private.
  15560. (addPendingMessage): Removed.
  15561. (deletePendingPieceMessage): Removed.
  15562. (deletePendingRequestMessage): Removed.
  15563. (addMessage): New function.
  15564. (deletePieceMessageInQueue): New function.
  15565. (deleteTimeoutRequestSlot): Changed argument.
  15566. (deleteCompletedRequestSlot): Changed argument.
  15567. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15568. (getCorrespondingRequestSlot): New function.
  15569. (countPendingMessage): Removed.
  15570. (countMessageInQueue): New function.
  15571. (getTorrentMan): New function.
  15572. (getPeerConnection): New function.
  15573. (hasDownloadPiece): New function.
  15574. (getDownloadPiece): New function.
  15575. (setDownloadPiece): New function.
  15576. (syncPiece): New function.
  15577. (sendMessages): New function.
  15578. (sendNow): New function.
  15579. (trySendNow): New function.
  15580. (abortPiece): New function.
  15581. (sendHandshake): New function.
  15582. (receiveMessage): New function.
  15583. (receiveHandshake): New function.
  15584. (createRequestMessage): New function.
  15585. (createCancelMessage): New function.
  15586. (createPieceMessage): New function.
  15587. (createHaveMessage): New function.
  15588. (createChokeMessage): New function.
  15589. (createUnchokeMessage): New function.
  15590. (createInterestedMessage): New function.
  15591. (createNotInterestedMessage): New function.
  15592. (createBitfieldMessage): New function.
  15593. (createKeepAliveMessage): New function.
  15594. * src/SendMessageQueue.cc
  15595. (SendMessageQueue): Removed requestSlotMan.
  15596. Instantiated peerConnection here.
  15597. (~SendMessageQueue): Removed requestSlotMan.
  15598. Added deletion of peerConnection and the contents of messageQueue.
  15599. (send): Updated according to the change of messageQueue.
  15600. (addPendingMessage): Renamed to addMessage.
  15601. (addMessage): New function.
  15602. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15603. (deletePieceMessageInQueue): New function.
  15604. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15605. (deleteRequestMessageInQueue): New function.
  15606. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15607. here.
  15608. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15609. (...) was moved here.
  15610. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15611. moved here.
  15612. (deleteCompletedRequestSlot):
  15613. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15614. (getCorrespondingRequestSlot):
  15615. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15616. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15617. (countPendingMessage): Renamed to countMessageInQueue.
  15618. (countMessageInQueue): New function.
  15619. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15620. (receiveHandshake): New function.
  15621. (createHandshakeMessage): New function.
  15622. (receiveMessage): New function.
  15623. (createPeerMessage): New function.
  15624. (syncPiece): New function.
  15625. (getNewPieceAndSendInterest): New function.
  15626. (sendMessages): New function.
  15627. (sendNow): New function.
  15628. (trySendNow): New function.
  15629. (sendHandshake): New function.
  15630. (abortPiece): New function.
  15631. (getDownloadPiece): New function.
  15632. (getPeerMessageCommonProperty): New function.
  15633. (createRequestMessage): New function.
  15634. (createCancelMessage): New function.
  15635. (createPieceMessage): New function.
  15636. (createHaveMessage): New function.
  15637. (createChokeMessage): New function.
  15638. (createUnchokeMessage): New function.
  15639. (createInterestedMessage): New function.
  15640. (createNotInterestedMessage): New function.
  15641. (createBitfieldMessage): New function.
  15642. (createKeepAliveMessage): New function.
  15643. To add simple Content-Disposition support:
  15644. * src/HttpResponseCommand.h (determinFilename): New function.
  15645. * src/HttpResponseCommand.cc (executeInternal):
  15646. Use determinFilename(headers) instead of req->getFile() when comparing
  15647. filename.
  15648. (determinFilename): New function.
  15649. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15650. req->getFile().
  15651. (handleOtherEncoding): Use determinFilename(headers) instead of
  15652. req->getFile().
  15653. * src/Util.h (getContentDispositionFilename): New function.
  15654. * src/Util.cc (getContentDispositionFilename): New function.
  15655. * src/LogFactory.h (release): New function.
  15656. * src/LogFactory.cc (release): New function.
  15657. To fix a bug that causes out-of-bound exception when HTTP status
  15658. line is wrong:
  15659. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15660. size.
  15661. * src/common.h (Deleter): New class.
  15662. * src/SegmentMan.cc
  15663. (~SegmentMan): Added deletion of splitter and diskWriter.
  15664. * src/DownloadEngine.h
  15665. (Commands): Use deque.
  15666. (clearQueue): New function.
  15667. * src/DownloadEngine.cc
  15668. (~DownloadEngine): Added deletion of segmentMan.
  15669. (cleanQueue): New function.
  15670. * src/TorrentDownloadEngine.h
  15671. (TorrentDownloadEngine): The implementation was moved to
  15672. TorrentDownloadEngine.cc.
  15673. (~TorrentDownloadEngine): The implementation was moved to
  15674. TorrentDownloadEngine.cc.
  15675. * src/TorrentDownloadEngine.cc
  15676. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15677. * src/main.cc
  15678. (clearRequest): Removed.
  15679. (handler): Added deletion of e.
  15680. (torrentHandler): Added deletion of te.
  15681. (main): Do not share splitter.
  15682. Use Deleter instead of clearRequest.
  15683. Deletion of classes were updated.
  15684. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15685. * src/main.cc (main): Fixed typo.
  15686. * src/message.h: Fixed typo.
  15687. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15688. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15689. To add --select-file command-line option:
  15690. * src/Util.cc
  15691. (unfoldRange): New function.
  15692. (getNum): New function.
  15693. (unfoldSubRange): New function
  15694. * src/main.cc
  15695. (showUsage): Added help message.
  15696. (main): Added --select-file command-line option. Updated the layout of
  15697. file listing.
  15698. * src/common.h
  15699. (Integers): New definition.
  15700. * src/SocketCore.cc
  15701. (writeData): Removed timeout argument.
  15702. (readData): Removed timeout argument.
  15703. (peekData): Removed timeout argument.
  15704. * src/Socket.cc
  15705. (writeData): Removed timeout argument.
  15706. (readData): Removed timeout argument.
  15707. (peekData): Removed timeout argument.
  15708. * Release 0.4.1
  15709. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15710. To deploy upload rate based choking algorithm:
  15711. * src/PeerInteractionCommand.cc
  15712. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15713. peer currently used.
  15714. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15715. download completes. Simplified.
  15716. (receiveMessage): Updated.
  15717. * src/TorrentMan.h
  15718. (activePeers): New variable.
  15719. (addActivePeer): New function.
  15720. (getActivePeers): New function.
  15721. (deleteActivePeer): New function.
  15722. * src/TorrentMan.cc
  15723. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15724. * src/PeerAbstractCommand.cc
  15725. (onAbort): Use peer->resetStatus().
  15726. * src/main.cc
  15727. (PeerChokeCommand.h): Included.
  15728. (main): Added the instance of ChokingCommand to the command queue.
  15729. * src/Peer.h
  15730. (amChoking): Renamed from amChocking
  15731. (chokingRequired): New variable.
  15732. (optUnchoking): New variable.
  15733. (deltaUpload): New variable.
  15734. (deltaDownload): New variable.
  15735. (addDeltaUpload): New function.
  15736. (resetDeltaUpload): New function.
  15737. (addDeltaDownload): New function.
  15738. (resetDeltaDownload): New function.
  15739. (addPeerUpload): Added a call to addDeltaUpload.
  15740. (addPeerDownload): Added a call to addDeltaDownload.
  15741. * src/Peer.cc
  15742. (shouldBeChoking): Renamed from shouldChoke.
  15743. (resetStatus): New function.
  15744. * src/PeerChokeCommand.h: New class.
  15745. * src/PeerChokeCommand.cc: New class.
  15746. To add lazy upload speed limiter:
  15747. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15748. statistics calculation to TorrentDownloadEngine.
  15749. * src/TorrentConsoleDownloadEngine.cc
  15750. (sendStatistics): Renamed from printStatistics.
  15751. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15752. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15753. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15754. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15755. calculation.
  15756. (sendStatistics): New function as pure virtual function.
  15757. (getUploadSpeed): New function.
  15758. * src/TorrentDownloadEngine.cc
  15759. (initStatistics): New function.
  15760. (calculateSpeed): New function.
  15761. (calculateStatistics): New function.
  15762. * src/SendMessageQueue.h
  15763. (uploadLength): New variable.
  15764. (send): Added an argument.
  15765. (setUploadLimit): New function.
  15766. (getUploadLimit): New function.
  15767. * src/SendMessageQueue.cc
  15768. (send): Added upload speed limiter.
  15769. * src/prefs.h
  15770. (PREF_UPLOAD_LIMIT): New definition.
  15771. * src/PeerInteractionCommand.cc
  15772. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15773. * src/main.cc
  15774. (main): Added --upload-limit option
  15775. For bug fixes:
  15776. * src/main.cc
  15777. (showUsage): Corrected --listen-port help
  15778. Other changes:
  15779. * src/TorrentMan.cc
  15780. (getPeer): Return nullPeer if connection is grather than
  15781. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15782. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15783. To add some useful information to the exception message:
  15784. * src/SocketCore.cc : Updated messages.
  15785. * src/SegmentMan.cc :
  15786. * src/TorrentMan.cc : Updated messages.
  15787. * src/MultiDiskWriter.cc : Updated messages.
  15788. * src/Util.cc : Updated messages.
  15789. * src/AbstractDiskWriter.cc : Updated messages.
  15790. * src/PreAllocationDiskWriter.cc : Updated messages.
  15791. * src/message.cc : Added new messages. Updated some messages.
  15792. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15793. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15794. Updated threshold from 30 to 15.
  15795. * src/AbstractDiskWriter.h (filename): New variable.
  15796. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15797. (createFile): Assigned filename.
  15798. * src/main.cc: Updated the help message for http-auth-scheme.
  15799. * Release 0.4.0
  15800. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15801. To add TrackerUpdateCommand with which replaces
  15802. CompactTrackerResponseProcessor:
  15803. * src/TrackerWatcherCommand.h (req): Removed.
  15804. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15805. if the number of peer connections are less than 30.
  15806. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15807. * src/SegmentMan.h (diskWriter): New function.
  15808. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15809. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15810. (main): Use TrackerUpdateCommand.
  15811. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15812. (req): New variable.
  15813. (setTrackerResponseProcessor): Removed.
  15814. (getTrackerResponseProcessor): Removed.
  15815. (processTrackerResponse): Removed.
  15816. * src/DownloadEngine.h (diskWriter): Removed.
  15817. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15818. to torrentMan->processTrackerResponse().
  15819. To add Util::expandBuffer:
  15820. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15821. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15822. * src/Util.h (expandBuffer): New function.
  15823. To fix the bug that causes segmentation fault when "-l ." is specified
  15824. in command-line option:
  15825. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15826. (openFile): New function.
  15827. (closeFile): New function.
  15828. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15829. (~SimpleLogger): Call closeFile();
  15830. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15831. * src/main.cc (main): Added a check to see logger is configured
  15832. properly.
  15833. To enable HTTP authentication without specifying "--http-auth-scheme"
  15834. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15835. * src/HttpConnection.cc (createRequest): Send Authorization header
  15836. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15837. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15838. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15839. * src/Peer.cc (shouldChoke): Updated algorithm.
  15840. * src/message.h (EX_AUTH_FAILED): New definition.
  15841. (EX_FILE_OPEN): New definition.
  15842. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15843. if status == 401.
  15844. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15845. if req->isTorrent == true.
  15846. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15847. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15848. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15849. (createFile): Updated message.
  15850. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15851. To add a readout of estimated remaining time to normal HTTP/FTP
  15852. downloads:
  15853. * src/ConsoleDownloadEngine.h (startup): New variable.
  15854. (startupLength): New variable.
  15855. (isStartupLengthSet): New variable.
  15856. (avgSpeed): New variable.
  15857. (eta): New variable.
  15858. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15859. estimated remaining time.
  15860. (initStatistics): Initialized newly added variables.
  15861. (calculateStatistics): Calculate average speed and estimated remaining
  15862. time.
  15863. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15864. * src/TrackerDownloadCommand.h: Removed.
  15865. * src/TrackerDownloadCommand.cc: Removed.
  15866. * src/TrackerInitCommand.h: Removed.
  15867. * src/TrackerInitCommand.cc: Removed.
  15868. * src/TrackerUpdateCommand.h: Removed.
  15869. * src/TrackerUpdateCommand.cc: Removed.
  15870. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15871. url written in TrackerInitCommand was moved here. Do not create
  15872. tracker request command if torrentMan->trackers != 0.
  15873. * src/CompactTrackerResponseProcessor.h: New class.
  15874. * src/CompactTrackerResponseProcessor.cc: New class.
  15875. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15876. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15877. Decoupled TorrentDownloadEngine from this.
  15878. * src/SegmentMan.h (init): New function.
  15879. * src/SegmentMan.cc (init): New function.
  15880. * src/TorrentMan.h (responseProcessor): New variable.
  15881. (trackers): New variable.
  15882. (setTrackerResponseProcessor): New function.
  15883. (getTrackerResponseProcessor): New function.
  15884. (processTrackerResponse): New function.
  15885. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15886. (processTrackerResponse): New function.
  15887. * src/main.cc (main): Use ByteArrayDiskWriter and
  15888. CompactTrackerResponseProcessor.
  15889. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15890. processTrackerResponse().
  15891. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15892. readout.
  15893. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15894. which indicates download has completed.
  15895. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15896. (closeFile): fd >= 0, not fd > 0
  15897. * src/main.cc (main): Added short cut for show-files.
  15898. Added short cut for torrent-file.
  15899. Added new command-line option listen-port.
  15900. Updated i18n messages.
  15901. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15902. To add LogFactory which creates singleton logger:
  15903. * src/LogFactory.h: New class.
  15904. * src/LogFactory.cc: New class.
  15905. * src/Command.h (logger): New variable.
  15906. (Constructor): Use LogFactory.
  15907. * src/AbstractCommand.cc: Use Command::logger
  15908. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15909. Use LogFactory.
  15910. * src/SegmentSplitter.h : Made logger protected.
  15911. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15912. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15913. * src/DownloadEngine.h : Made logger protected.
  15914. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15915. * src/PeerInteractionCommand.cc : Use Command::logger.
  15916. * src/HttpResponseCommand.cc : Use Command::logger.
  15917. * src/SegmentMan.h : Made logger private.
  15918. * src/TorrentMan.h : Made logger private.
  15919. * src/TorrentMan.cc : Use LogFactory.
  15920. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15921. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15922. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15923. Use LogFactory.
  15924. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15925. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15926. Use LogFactory.
  15927. * src/DownloadCommand.cc : Use Command::logger.
  15928. * src/PeerAbstractCommand.cc : Use Command::logger.
  15929. * src/PeerListenCommand.cc : Use Command::logger.
  15930. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15931. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15932. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15933. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15934. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15935. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15936. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15937. Use LogFactory.
  15938. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15939. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15940. Use LogFactory.
  15941. * src/main.cc (main): Use LogFactory.
  15942. * src/DiskAdaptor.h (logger): New variable.
  15943. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15944. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15945. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15946. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15947. parameter to a tracker request.
  15948. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15949. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15950. * src/main.cc (setSignalHander): New function.
  15951. (main): Added a handler for SIGTERM.
  15952. (handler): Updated message.
  15953. (torrentHandler): Updated message.
  15954. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15955. * src/TorrentConsoleDownloadEngine.cc
  15956. (onPartialDownloadingCompletes): Renamed as
  15957. onSelectiveDownloadingCompletes.
  15958. (onSelectiveDownloadingCompletes): Updated message.
  15959. To add DiskAdaptor which abstract DiskWriter family:
  15960. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15961. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15962. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15963. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15964. MultiDiskAdaptor.h.
  15965. (readFileEntry): Changed its arguments.
  15966. (setup): setupDiskWriter is merged into this function.
  15967. (setupDiskWriter): Removed.
  15968. (setFileFilter): New function.
  15969. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15970. made in readFileEntry.
  15971. (getFilePath): Removed.
  15972. (getTempFilePath): Removed.
  15973. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15974. (fixFilename): Removed.
  15975. (copySingleFile): Removed.
  15976. (splitMultiFile): Removed.
  15977. (deleteTempFile): Removed.
  15978. (setFileEntriesToDownload): Removed.
  15979. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15980. (isSelectiveDownloadingMode): New function.
  15981. (setAllMultiFileRequestedState): Removed.
  15982. (finishPartialDownloadingMode): Renamed as
  15983. finishSelectiveDownloadingMode.
  15984. (finishSelectiveDownloadingMode): New function.
  15985. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15986. (getSelectedTotalLength): New function.
  15987. (onDownloadComplete): Use diskAdaptor.
  15988. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15989. (Range): Removed.
  15990. (setMultiFileEntries): Renamed as setFileEntries.
  15991. (setFileEntries): New function.
  15992. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15993. (pieceLength): New variable.
  15994. * src/main.cc (printDownloadCompeleteMessage): New function.
  15995. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15996. (main): Renamed torrent-show-files to show-files.
  15997. Rewritten file contents listing.
  15998. * src/TorrentMan.h (FileEntry): Removed.
  15999. (multiFileTopDir): Removed.
  16000. (multiFileEntries): Removed.
  16001. (diskWriter): Removed.
  16002. (diskAdaptor): New variable.
  16003. * src/DefaultDiskWriter.h (totalLength): New variable.
  16004. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16005. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16006. diskWriter.
  16007. * src/TorrentConsoleDownloadEngine.h
  16008. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16009. (partialTotalLength): Renamed as selectedTotalLength.
  16010. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16011. openExistingFile, otherwise call initAndOpenFile.
  16012. (closeFile): fd > 0, not fd != 0.
  16013. * src/DirectDiskAdaptor.h: New class.
  16014. * src/DirectDiskAdaptor.cc: New class.
  16015. * src/MultiDiskAdaptor.h: New class.
  16016. * src/MultiDiskAdaptor.cc: New class.
  16017. * src/CopyDiskAdaptor.h: New class.
  16018. * src/CopyDiskAdaptor.cc: New class.
  16019. * src/DiskAdaptor.h: New class.
  16020. * src/DiskAdaptor.cc: New class.
  16021. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16022. (PREF_SHOW_FILES): New definition.
  16023. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16024. To add the ability to download multi torrent into respective files
  16025. directly:
  16026. * src/DiskWriter.h (openFile): New function.
  16027. (seek): Removed.
  16028. * src/MultiDiskWriter.h: New class.
  16029. * src/MultiDiskWriter.cc: New class.
  16030. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16031. protected.
  16032. (openFile): New function.
  16033. * src/AbstractDiskWriter.cc (openFile): New function.
  16034. * src/prefs.h (V_FALSE): New definition.
  16035. (PREF_DIRECT_FILE_MAPPING): New definition.
  16036. * src/TorrentMan.h (setupDiskWriter): New function.
  16037. (setAllMultiFileRequestedState): New function.
  16038. (onDownloadComplete): New function.
  16039. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16040. (setupDiskWriter): New function.
  16041. (getFilePath): Updated.
  16042. (getTempFilePath): Updated.
  16043. (getSegmentFilePath): Updated.
  16044. (fixFilename): Updated.
  16045. (deleteTempFile): Updated.
  16046. (setAllMultiFileRequestedState): New function.
  16047. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16048. (finishPartialDownloadingMode): Reset requested flags.
  16049. (onDownloadComplete): New function.
  16050. * src/main.cc: Added --direct-file-mapping option.
  16051. Use TorrentMan::setupDiskWriter().
  16052. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16053. onDownloadComplete().
  16054. To fix ETA bug:
  16055. * src/Util.h (difftvsec): New function.
  16056. * src/Util.cc (difftvsec): New function.
  16057. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16058. type of "elapsed" instead of long long int.
  16059. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16060. The updates of statistics takes place every 1 seconds.
  16061. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16062. (calculateSpeed): Changed its argument signature.
  16063. * src/PeerMessage.cc (toString): Fixed message.
  16064. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16065. To print ETA:
  16066. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16067. completion handling when dealing with
  16068. TorrentMan::isPartialDownloadingMode() == true.
  16069. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16070. New function.
  16071. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16072. (sessionDownloadLength): New variable.
  16073. (avgSpeed): New variable.
  16074. (eta): New variable.
  16075. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16076. new variables: eta, avgSpeed, startup.
  16077. (calculateSpeed): Calculate average speed and ETA.
  16078. (printStatistics): Added ETA.
  16079. * src/Util.h (secfmt): New function.
  16080. * src/Util.cc (secfmt): New function.
  16081. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16082. To detect "keep alive" flooding:
  16083. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16084. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16085. variable: keepAliveCount.
  16086. (detectMessageFlooding): Added "keep alive" flooding detection.
  16087. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16088. received.
  16089. To add the ability to download only specified files in multi-file
  16090. torrent:
  16091. * src/BitfieldMan.h (filterBitfield): New variable.
  16092. (filterEnabled): New variable.
  16093. (setFilterBit): New function.
  16094. (enableFilter): New function.
  16095. (disableFilter): New function.
  16096. (isFilterEnabled): New function.
  16097. (getFilteredTotalLength): New function.
  16098. (getCompletedLength): New function.
  16099. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16100. filterBitfield, filterEnabled.
  16101. (CopyConstructor): Added filterBitfield and filterEnabled.
  16102. (operator==): Added filterBitfield and filterEnabled.
  16103. (Destructor): Added filterBitfield.
  16104. (getMissingIndex): Use filterBitfield.
  16105. (getMissingUnusedIndex): Use filterBitfield.
  16106. (getFirstMissingUnusedIndex): Use filterBitfield.
  16107. (getFirstMissingUnusedIndex): Use filterBitfield.
  16108. (getAllMissingIndexes): Use filterBitfield.
  16109. (countMissingBlock): Use filterBitfield.
  16110. (countBlock): Use filterBitfield.
  16111. (setBitInternal): Added new argument on.
  16112. (setUseBit): Use setBitInternal.
  16113. (unsetUseBit): Use setBitInternal.
  16114. (setBit): Use setBitInternal.
  16115. (unsetBit): Use setBitInternal.
  16116. (isAllBitSet): Use filterBitfield.
  16117. (setFilterBit): New function.
  16118. (addFilter): New function.
  16119. (enableFilter): New function.
  16120. (disableFilter): New function.
  16121. (clearFilter): New function.
  16122. (isFilterEnabled): New function.
  16123. (getFilteredTotalLength): New function.
  16124. (getCompletedLength): New function.
  16125. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16126. Initalized newly added variables.
  16127. [FileEntry](offset): New variable.
  16128. [FileEntry](extracted): New variable.
  16129. [FileEntry](requested): New variable.
  16130. (readFileEntry): New function.
  16131. (option): New variable.
  16132. (splitMultiFile): Removed const qualifier.
  16133. (fixFilename): Removed const qualifier.
  16134. (readFileEntryFromMetaInfoFile): New function.
  16135. (finishPartialDownloadingMode): New function.
  16136. (isPartialDownloadingMode): New function.
  16137. (setFileEntriesToDownload): New function.
  16138. (getCompletedLength): New function.
  16139. (getPartialTotalLength): New function.
  16140. * src/TorrentMan.cc (readFileEntry): New function.
  16141. (setup): Use readFileEntry. If no-preallocation option is specified,
  16142. use DefaultDiskWriter.
  16143. (readFileEntryFromMetaInfoFile): New function.
  16144. (fixFilename): Removed const qualifier.
  16145. (splitMultiFile): Removed const qualifier.
  16146. (setFileEntriesToDownload): New function.
  16147. (isPartialDownloadingMode): New function.
  16148. (finishPartialDownloadingMode): New function.
  16149. (getCompletedLength): New function.
  16150. (getPartialTotalLength): New function.
  16151. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16152. New variable.
  16153. (partialTotalLength): New variable.
  16154. (downloadLength): New variable.
  16155. (totalLength): New variable.
  16156. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16157. Added log.
  16158. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16159. partialTotalLength, downloadLength, totalLength.
  16160. (calculate): Calculate downloadLength and totalLength.
  16161. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16162. * src/main.cc (addCommand): Changed argument signature.
  16163. (main): Added new variable: args. Added new option "torrent-show-files"
  16164. "no-preallocation". Usage is not updated yet.
  16165. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16166. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16167. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16168. Attempt to add the ability to listing file entries in a .torrent file.
  16169. This feature is not yet complete.
  16170. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16171. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16172. (getName): New function.
  16173. * src/TorrentMan.h (getMultiFileEntries): New function.
  16174. (getName): New function.
  16175. * src/main.cc (main): Use above 2 funtion.
  16176. * Release 0.3.2
  16177. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16178. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16179. (detectMessageFlooding): Updated threshold value.
  16180. (checkLongTimePeerChoking): Updated timeout value.
  16181. (getNewPieceAndSendInterest): Added debug log.
  16182. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16183. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16184. (getPeer): Updated.
  16185. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16186. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16187. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16188. is localhost.
  16189. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16190. * src/PendingMessage.cc (processMessage): Not to send piece message
  16191. if peer is not interested in the pieces localhost has.
  16192. * src/Peer.cc (shouldChoke): Updated.
  16193. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16194. * src/Util.cc (isPowerOf): New function.
  16195. * src/Util.h (isPowerOf): New function.
  16196. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16197. whether or not it is power of 2.
  16198. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16199. Added new class SendMessageQueue that includes PendingMessages and
  16200. RequestSlotMan.
  16201. * src/SendMessageQueue.h: New class.
  16202. * src/SendMessageQueue.cc: New class.
  16203. * src/PendingMessage.h: Added new member variable blockIndex and its
  16204. accessors.
  16205. (createRequestMessage): Updated.
  16206. * src/PendingMessage.cc (createRequestMessage): Updated.
  16207. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16208. SendMessageQueue.
  16209. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16210. (receiveMessage): Updated with SendMessageQueue.
  16211. (deletePendingPieceMessage): Removed.
  16212. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16213. (sendInterest): Updated with SendMessageQueue.
  16214. (createRequestPendingMessage): Updated with SendMessageQueue.
  16215. (sendMessages): Updated with SendMessageQueue.
  16216. (onAbort): Updated with SendMessageQueue.
  16217. (keepAlive): Updated with SendMessageQueue.
  16218. (beforeSocketCheck): Updated SendMessageQueue.
  16219. * src/PeerInteractionCommand (sendMessages): Shuffle
  16220. missingBLockIndexes before using it.
  16221. Added its own timeout for peer connection.
  16222. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16223. setter.
  16224. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16225. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16226. Added setTimeout() call.
  16227. (executeInternal): Added setTimeout() call.
  16228. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16229. Added timeout.
  16230. (isTimeoutDetected): Updated.
  16231. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16232. option.
  16233. Added *simple* message flooding checker.
  16234. * src/PeerInteractionCommand.cc (executeInternal):
  16235. Added detectMessageFlooding() call.
  16236. (detectMessageFlooding): New function.
  16237. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16238. (beforeSocketCheck): Added detectMessageFlooding() call.
  16239. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16240. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16241. Removed deletePendingPieceMessage(), getRequestSlot(),
  16242. deleteRequestSlot(), deleteAllRequestSlot().
  16243. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16244. Added checkLongTimePeerChoking() call.
  16245. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16246. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16247. if duplicate == false.
  16248. The parameter "uploaded" and "downloaded" in the tracker request are
  16249. the size since the client sent the "started" event to the tracker.
  16250. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16251. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16252. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16253. getSessionDownloadedSize(), getSessionUploadedSize().
  16254. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16255. getSessionUploadedSize() instead of getDownloadedSize(),
  16256. getUploadedSize().
  16257. * src/PendingMessage.cc (processMessage): Do not send request message
  16258. if the peer is choking the client.
  16259. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16260. less than interval.
  16261. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16262. * configure.in: Added gnutls support. Added several CPP macros.
  16263. * m4/openssl.m4: Added.
  16264. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16265. readData(), peekData(). Added gnutls support.
  16266. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16267. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16268. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16269. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16270. Instead, added a check for whether setup method has executed
  16271. successfully.
  16272. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16273. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16274. * src/Makefile.am: Updated.
  16275. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16276. using whether OpenSSL or gcrypt, depending on the result of configure
  16277. script.
  16278. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16279. messageDigest.h.
  16280. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16281. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16282. Fixed memory leak.
  16283. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16284. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16285. Removed instantiation of TrackerInitCommand. Instead,
  16286. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16287. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16288. ENABLE_SSL.
  16289. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16290. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16291. If a piece is already acquired by another command, delete the request
  16292. slots for the piece.
  16293. * src/TrackerUpdateCommand.cc (execute):
  16294. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16295. Added a check whether peer list is null.
  16296. Fixed the bug that causes sending completed event to the tracker
  16297. several times.
  16298. * src/TrackerInitCommand.cc (execute):
  16299. Fixed the bug that causes sending completed event to the tracker
  16300. several times.
  16301. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16302. by using messageDigest.h.
  16303. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16304. * PeerConnection.cc: Replaced log message "keep-alive" with
  16305. "keep alive".
  16306. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16307. localhost long time.
  16308. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16309. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16310. at most 100 failure entry from the list. If with duplicate = false,
  16311. MAX_PEER_LIST is not checked.
  16312. * PeerListenCommand.cc: Fixed the argument order of log message.
  16313. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16314. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16315. Added warn().
  16316. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16317. Implemented warn().
  16318. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16319. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16320. * Request.h: Added AFTER_COMPLETED event.
  16321. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16322. instead of downloaded size and progress(%) after download completes.
  16323. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16324. message to the peer if it is interested in what localhost has
  16325. downloaded.
  16326. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16327. destination instead of just renaming it.
  16328. * TorrentMan.cc: Added deleteTempFile().
  16329. * PeerAbstractCommand.cc: do not stop execution after download
  16330. completes. This makes localhost a seeder.
  16331. * Util.{h,cc}: Added fileCopy().
  16332. * PeerListenCommand.cc: do not stop execution after download completes.
  16333. This makes localhost a seeder.
  16334. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16335. Added TorrentMan::deleteTempFile() to torrentHandler.
  16336. Initialized the variable dir as ".".
  16337. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16338. Deleted renameSingleFile().
  16339. Added copySingleFile(), deleteTempFile().
  16340. * DownloadEngine.h: Added virtual function afterEachIteration().
  16341. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16342. in onEndOfRun() to afterEachIteration().
  16343. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16344. true.
  16345. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16346. In rangedFileCopy(), added try-catch block to properly close file
  16347. descriptors.
  16348. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16349. Added afterEachIteration(), isFilenameFixed().
  16350. * Peer.cc: Changed choking strategy.
  16351. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16352. * TrackerInitCommand.cc: Send completed event only once.
  16353. * DownloadEngine.cc: Added a call to afterEachIteration().
  16354. * TrackerUpdateCommand.cc: Do not stop execution after download
  16355. completes.
  16356. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16357. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16358. received from a tracker.
  16359. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16360. Decreased the number of failure peers to delete to 0(just comment out
  16361. the line).
  16362. * Release 0.3.1
  16363. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16364. * PeerInteractionCommand.cc: added a call to
  16365. TorrentMan::unadvertisePiece in Destructor.
  16366. * PeerInteractionCommand.cc: make have message sent immediately
  16367. if the size of pending message queue is zero.
  16368. * TorrentMan.cc: set the maximum size of peer list to 250.
  16369. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16370. to deque.
  16371. * Util.cc: fixed rangedFileCopy.
  16372. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16373. to Constructor. Also, moved digest cleanup to Destructor.
  16374. * MetaFileUtil.cc: fixed memory leak
  16375. * replaced std::vector with std::deque.
  16376. * AbstractCommand.cc: casted timeout value to long long int.
  16377. * ChunkedEncoding.cc: fixed memory leak.
  16378. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16379. * SleepCommand.cc: casted timeout value to long long int.
  16380. * Data.cc: fixed memory leak.
  16381. * Data.cc: fixed toLLInt().
  16382. * BitfieldMan.cc: fixed memory leak.
  16383. * TorrentMan.cc: initialized storeDir to ".".
  16384. * TorrentMan.cc: fixed memory leak.
  16385. * TorrentMan.cc: corrected file paths of splitted files.
  16386. * PeerAbstractCommand.cc: casted timeout to long long int.
  16387. * main.cc: added delete(req) and delete(te->diskWriter).
  16388. * RequestSlot.cc: casted timeout value to long long int.
  16389. * Request.cc: fixed memory leak.
  16390. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16391. have the piece.
  16392. * Peer.{h,cc}: added hasPiece(int index).
  16393. * main.cc: corrected addCommand.
  16394. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16395. * BitTorrent protocol support added.
  16396. * Release 0.3.0
  16397. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16398. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16399. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16400. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16401. decoding did not work properly.
  16402. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16403. * DownloadEngine.h: included sys/time.h
  16404. * DownloadEngine.cc: remove sys/time.h
  16405. * Makefile.am (SUBDIRS): Add intl.
  16406. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16407. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16408. * main.cc: correct help message for --http-auth-scheme.
  16409. * main.cc: changed e-mail address for bug reports.
  16410. * ja.po: added japanese translation.
  16411. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16412. * SimpleLogger.cc: flush log file instead of stdout.
  16413. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16414. * main.cc: Fixed command-line option: max-tries
  16415. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16416. does not equal to seg.sp.
  16417. * DownloadCommand.cc: If EOF is got from the server and the total size
  16418. of file is not zero, then throw DlRetryEx.
  16419. * main.cc: Set the minium value of min-segment-size to 1024.
  16420. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16421. fails because of a regression since 0.2.0 release.
  16422. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16423. * HttpConnection.cc:
  16424. * common.h: defined the user agent name as macro
  16425. * DownloadEngine.{h, cc}:
  16426. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16427. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16428. * main.cc: Download complete/abort message is now generated by main.
  16429. * Makefile.am (SUBDIRS): Add m4.
  16430. (ACLOCAL_AMFLAGS): New variable.
  16431. (EXTRA_DIST): New variable.
  16432. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16433. * gettext: added gettext functionality
  16434. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16435. * AbstractCommand.cc:
  16436. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16437. unregister its cuid from SegmentMan.
  16438. * DownloadEngine.cc: .aria2 file was written when a downloading
  16439. failed with errors.
  16440. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16441. Added "User-Agent" header to CONNECT proxy request.
  16442. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16443. properly.
  16444. * Logger.h:
  16445. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16446. * ChunkedEncoding.cc: Added #include directive for strings.h
  16447. * Release 0.2.1
  16448. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16449. * Util.{h,cc}: added startsWith().
  16450. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16451. Util::endsWith().
  16452. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16453. * common.h: added #include directive of limit.h.
  16454. * DownloadEngine.cc: added #include directive of sys/time.h and
  16455. algorithm.
  16456. * Exception.h: added #include directive of stdio.h.
  16457. * AbstractCommand.h: added #include directive of sys/time.h.
  16458. * DownloadCommand.h: added #include directive of sys/time.h.
  16459. * *.h: added #include directive of common.h to all base classes.
  16460. subclasses' one was removed.
  16461. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16462. does not define these macros.
  16463. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16464. * Release 0.2.0
  16465. * main.cc:
  16466. * HttpInitiateConnectionCommand.{h,cc}:
  16467. * prefs.h:
  16468. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16469. We can now use GET command in http proxy.
  16470. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16471. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16472. that splits slowest segment of SegmentMan::commands vector.
  16473. This is the default split algorithm of aria2.
  16474. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16475. that splits first segment of SegmentMan::commands vector.
  16476. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16477. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16478. * Segment.h:
  16479. * SegmentMan.cc: Added speed field to Segment.h
  16480. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16481. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16482. * message.h: Change file size related %d to %lld.
  16483. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16484. * FtpInitiateConnectionCommand.{h,cc}:
  16485. * FtpNegotiationCommand.{h,cc}:
  16486. * FtpDownloadCommand.{h,cc}:
  16487. * FtpConnection.{h,cc}: Added FTP support
  16488. * SimpleLogger.cc: Log message now includes time information.
  16489. * main.cc: The value of --http-auth-scheme option is chagned from
  16490. 'BASIC' to 'basic'
  16491. * main.cc: Added --timeout command-line option.
  16492. * main.cc: Added --min-segment-size command-line option.
  16493. * main.cc: Added --max-retries command-line option.
  16494. * prefs.h: option string constants are now defined in prefs.h
  16495. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16496. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16497. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16498. with version 0.1.0's one.
  16499. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16500. * configure.in: Added --enable-ssl option to configure script.
  16501. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16502. cannot permit absoluteURI as Request-URI.
  16503. * HttpConnection.cc: Added Referer support.
  16504. * main.cc: Added referer command-line option.
  16505. * main.cc: Added rety-wait command-line option.
  16506. * Exception.h: Fixed formating bug in Exception::setMsg()
  16507. * SocketCore.{h,cc}:
  16508. * Socket.{h, cc}:
  16509. * Request.cc:
  16510. * InitiateConnectionCommandFactory.cc:
  16511. * HttpRequestCommand.cc: Added HTTPS support.
  16512. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16513. for SocketCore.
  16514. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16515. size is wrong
  16516. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16517. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16518. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16519. * Release 0.1.0