ChangeLog 691 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291
  1. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed test file
  3. * test/CookieStorageTest.cc
  4. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Check both EAGAIN and EWOULDBLOCK
  6. * src/SocketCore.cc
  7. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Removed ret == 0 checking for SSL_read(), SSL_write() and
  9. SSL_peek() because the checks are done in the caller. In
  10. SocketBuffer::send(), throw exception if nothing could be written
  11. and socket error was not EWOULDBLOCK
  12. * src/SocketBuffer.cc
  13. * src/SocketCore.cc
  14. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Fixed error code handling so that it can handle Winsock2 error
  16. code.
  17. * src/SocketCore.cc
  18. * src/SocketCore.h
  19. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Bump up version number to 1.9.0a
  21. * configure.ac
  22. * doc/aria2c.1.txt
  23. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Fixed the bug that aria2 doesn't handle return value if error
  25. occurred before download begins.
  26. * src/MultiUrlRequestInfo.cc
  27. * src/main.cc
  28. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Removed SegmentManFactory class.
  30. * src/AbstractSegmentManFactory.h
  31. * src/DefaultSegmentManFactory.cc
  32. * src/DefaultSegmentManFactory.h
  33. * src/Makefile.am
  34. * src/RequestGroup.cc
  35. * src/RequestGroup.h
  36. * src/SegmentManFactory.h
  37. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Destroyed digest context after getting calculated hash.
  39. * src/Piece.cc
  40. * src/Piece.h
  41. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Removed BitfieldManFactory class.
  43. * src/BitfieldManFactory.cc
  44. * src/BitfieldManFactory.h
  45. * src/DefaultPieceStorage.cc
  46. * src/Makefile.am
  47. * src/PeerSessionResource.cc
  48. * src/Piece.cc
  49. * src/main.cc
  50. * test/DefaultPieceStorageTest.cc
  51. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Removed unused methods from BitfieldMan class. Moved
  53. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  54. class.
  55. * src/BitfieldMan.cc
  56. * src/BitfieldMan.h
  57. * src/BitfieldManFactory.cc
  58. * src/BitfieldManFactory.h
  59. * src/bitfield.h
  60. * src/main.cc
  61. * test/BitfieldManTest.cc
  62. * test/DefaultPieceStorageTest.cc
  63. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Moved getFirstNMissingIndex to bitfield.h and made it return the
  65. number of appended indexes.
  66. * src/BitfieldMan.cc
  67. * src/BitfieldMan.h
  68. * src/Piece.cc
  69. * src/Piece.h
  70. * src/bitfield.h
  71. * test/BitfieldManTest.cc
  72. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Added more tests.
  74. * test/BitfieldManTest.cc
  75. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  77. unused block indexes at once instead of calling
  78. getFirstMissingUnusedIndex() multiple times. Made use of it in
  79. Piece class and DefaultBtRequestFactory class via Piece class.
  80. * src/BitfieldMan.cc
  81. * src/BitfieldMan.h
  82. * src/DefaultBtRequestFactory.cc
  83. * src/Piece.cc
  84. * src/Piece.h
  85. * test/BitfieldManTest.cc
  86. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Use std::make_pair(...)
  88. * src/DHTMessageTracker.cc
  89. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Use std::make_pair(...)
  91. * src/bittorrent_helper.cc
  92. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. urlencode(removeFragment(...)) in parseUrl(...)
  94. * src/Request.cc
  95. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  97. * src/AbstractCommand.cc
  98. * src/AdaptiveURISelector.cc
  99. * src/BtPieceMessage.cc
  100. * src/BtPortMessage.cc
  101. * src/CreateRequestCommand.cc
  102. * src/DHTAbstractNodeLookupTask.cc
  103. * src/DHTBucket.cc
  104. * src/DHTGetPeersCommand.cc
  105. * src/DHTMessageDispatcherImpl.cc
  106. * src/DHTMessageFactoryImpl.cc
  107. * src/DHTMessageTracker.cc
  108. * src/DHTPeerAnnounceStorage.cc
  109. * src/DHTRoutingTable.cc
  110. * src/DHTSetup.cc
  111. * src/DefaultBtAnnounce.cc
  112. * src/DefaultBtInteractive.cc
  113. * src/DefaultBtMessageDispatcher.cc
  114. * src/DefaultBtMessageReceiver.cc
  115. * src/DefaultBtProgressInfoFile.cc
  116. * src/DefaultBtRequestFactory.cc
  117. * src/DefaultPeerStorage.cc
  118. * src/DefaultPieceStorage.cc
  119. * src/DownloadCommand.cc
  120. * src/DownloadEngine.cc
  121. * src/EpollEventPoll.cc
  122. * src/FileAllocationCommand.cc
  123. * src/FileEntry.cc
  124. * src/FtpNegotiationCommand.cc
  125. * src/HandshakeExtensionMessage.cc
  126. * src/HttpListenCommand.cc
  127. * src/HttpServer.cc
  128. * src/HttpSkipResponseCommand.cc
  129. * src/IteratableChunkChecksumValidator.cc
  130. * src/Logger.h
  131. * src/MSEHandshake.cc
  132. * src/MetalinkPostDownloadHandler.cc
  133. * src/MultiDiskAdaptor.cc
  134. * src/PeerAbstractCommand.cc
  135. * src/PeerConnection.cc
  136. * src/PeerListenCommand.cc
  137. * src/PeerReceiveHandshakeCommand.cc
  138. * src/RequestGroup.cc
  139. * src/RequestGroupMan.cc
  140. * src/SegmentMan.cc
  141. * src/SelectEventPoll.cc
  142. * src/ServerStat.cc
  143. * src/SimpleBtMessage.cc
  144. * src/SocketCore.cc
  145. * src/TrackerWatcherCommand.cc
  146. * src/UTMetadataDataExtensionMessage.cc
  147. * src/UTMetadataRequestFactory.cc
  148. * src/UTMetadataRequestTracker.cc
  149. * src/XmlRpcMethod.cc
  150. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Changed log level from debug to info
  152. * src/BtDependency.cc
  153. * src/BtPostDownloadHandler.cc
  154. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Removed unused PeerSessionResource::_latency.
  156. * src/BtConstants.h
  157. * src/BtPieceMessage.cc
  158. * src/Peer.cc
  159. * src/Peer.h
  160. * src/PeerSessionResource.cc
  161. * src/PeerSessionResource.h
  162. * test/PeerSessionResourceTest.cc
  163. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Fixed the bug that --file-allocation=falloc doesn't work with
  165. single file download.
  166. * src/AbstractSingleDiskAdaptor.cc
  167. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Release 1.8.2
  169. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Added Portuguese translation. Updated Ukrainian and Spanish
  171. translation. Thanks to all translators.
  172. * po/LINGUAS
  173. * po/es.po
  174. * po/pt.po
  175. * po/uk.po
  176. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Remove fragment from redirected URI.
  178. * src/Request.cc
  179. * test/RequestTest.cc
  180. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Updated po templates.
  182. * po/aria2.pot
  183. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Drop legacy ifdef for ares support and code cleanup.
  185. * src/AsyncNameResolver.cc
  186. * src/AsyncNameResolver.h
  187. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Call ares_library_init and ares_library_cleanup if they are
  189. available. Some code cleanups.
  190. * src/Platform.cc
  191. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Call ares_process_fd() each time after epoll to handle timeout.
  193. * src/EpollEventPoll.cc
  194. * src/EpollEventPoll.h
  195. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Suppressed type-cast compiler warning
  197. * src/CookieStorage.cc
  198. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Fixed compile error on Mac OS X.
  200. * src/CookieStorage.h
  201. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Removed cookietest.txt from Makefile.am
  203. * test/Makefile.am
  204. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Updated version number in man page.
  206. * doc/aria2c.1.txt
  207. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Rewritten help message for --allow-overwrite option.
  209. * doc/aria2c.1.txt
  210. * src/usage_text.h
  211. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Added bittorrent key to the response of tellStatus XML-RPC method.
  213. The associated value of the key is a struct and contains data
  214. retrieved from .torrent file, such as name, announce-list,
  215. comment, etc.
  216. * doc/aria2c.1.txt
  217. * src/XmlRpcMethodImpl.cc
  218. * src/XmlRpcMethodImpl.h
  219. * test/XmlRpcMethodTest.cc
  220. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Removed parse(std::istream&) and parse(const std::string&) from
  222. CookieParser.
  223. * src/CookieParser.cc
  224. * src/CookieParser.h
  225. * test/CookieParserTest.cc
  226. * test/cookietest.txt: Removed
  227. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Fixed the bug that cookie for domain a.b.c is not sent to the host
  229. a.b.c if no other cookies are stored. Fixed the bug that
  230. Cookie::markOriginServerOnly() is not called when cookies are
  231. loaded from file/sqlite3 database.
  232. * src/Cookie.h
  233. * src/CookieStorage.cc
  234. * src/NsCookieParser.cc
  235. * src/Sqlite3MozCookieParser.cc
  236. * test/CookieStorageTest.cc
  237. * test/NsCookieParserTest.cc
  238. * test/Sqlite3MozCookieParserTest.cc
  239. * test/cookies.sqlite
  240. * test/nscookietest.txt
  241. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  243. both _pieceStorage and _segmentMan are initialized or they are
  244. not.
  245. * src/RequestGroup.cc
  246. * src/RequestGroup.h
  247. * test/BtDependencyTest.cc
  248. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Bump up version number to 1.8.2
  250. * configure.ac
  251. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Replaced "." with A2STR::DOT_C
  253. * src/AbstractCommand.cc
  254. * src/Cookie.cc
  255. * src/DownloadContext.cc
  256. * src/FtpConnection.cc
  257. * src/RequestGroup.cc
  258. * src/util.cc
  259. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Replaced isNumberAndDotsNotation() with isNumericHost().
  261. isNumericHost() can handle IPv6 address.
  262. * src/Cookie.cc
  263. * src/CookieStorage.cc
  264. * src/util.cc
  265. * src/util.h
  266. * test/CookieTest.cc
  267. * test/UtilTest.cc
  268. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Included A2STR.h
  270. * src/CookieStorage.cc
  271. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Rewritten Cookie storage.
  273. * src/Cookie.cc
  274. * src/Cookie.h
  275. * src/CookieParser.cc
  276. * src/CookieStorage.cc
  277. * src/CookieStorage.h
  278. * src/a2functional.h
  279. * test/CookieParserTest.cc
  280. * test/CookieStorageTest.cc
  281. * test/CookieTest.cc
  282. * test/HttpResponseTest.cc
  283. * test/TestUtil.h
  284. * test/a2functionalTest.cc
  285. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Handle redirected URI which is not properly percent encoded.
  287. * src/Request.cc
  288. * test/RequestTest.cc
  289. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  291. not found' in the N times(N is where --max-file-not-found=N, N>0)
  292. in a row without single '200 OK' response.
  293. * src/RequestGroup.cc.
  294. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  296. readout by 80 characters in mingw32 build. Catch exception in
  297. DHTMessageReceiver::receiveMessage().
  298. * src/AbstractDiskWriter.cc
  299. * src/ConsoleStatCalc.cc
  300. * src/DHTMessageReceiver.cc
  301. * src/File.cc
  302. * src/RequestGroupMan.cc
  303. * src/a2io.h
  304. * test/FileTest.cc
  305. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Fixed compile error with intel compiler
  307. * src/XmlRpcMethodImpl.cc
  308. * src/XmlRpcMethodImpl.h
  309. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Release 1.8.1
  311. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Updated Swedish, Russian and Italian translations. Thanks to all
  313. translators.
  314. * po/it.po
  315. * po/ru.po
  316. * po/sv.po
  317. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Fixed broken OptionParser::findByName().
  319. * src/OptionParser.cc
  320. * test/OptionParserTest.cc
  321. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Fixed test error without BitTorrent support.
  323. * test/XmlRpcMethodTest.cc
  324. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Fixed compile error without GNUTLS/OpenSSL.
  326. * src/util.cc
  327. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Changed compression level to Z_DEFAULT_COMPRESSION.
  329. * src/GZipEncoder.cc
  330. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Added missing command line options: --http-no-cache,
  332. --bt-save-metadata and --bt-metadata-only.
  333. * doc/xmlrpc/aria2rpc
  334. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  336. client accepts gzip content encoding.
  337. * src/A2STR.cc
  338. * src/A2STR.h
  339. * src/GZipEncoder.cc
  340. * src/GZipEncoder.h
  341. * src/HttpHeader.cc
  342. * src/HttpHeader.h
  343. * src/HttpServer.cc
  344. * src/HttpServer.h
  345. * src/HttpServerBodyCommand.cc
  346. * src/HttpServerCommand.cc
  347. * src/Makefile.am
  348. * src/XmlRpcResponse.cc
  349. * src/XmlRpcResponse.h
  350. * test/GZipEncoderTest.cc
  351. * test/Makefile.am
  352. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Added XML-RPC client sample code in Python.
  354. * doc/aria2c.1.txt
  355. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Updated po templates.
  357. * po/aria2.pot
  358. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Bump up version number to 1.8.1
  360. * configure.ac
  361. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Added version number to man page. Updated copyright year in man
  363. page.
  364. * doc/aria2c.1.txt
  365. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Rewritten toTagString
  367. * src/NameMatchOptionHandler.cc
  368. * test/OptionHandlerTest.cc
  369. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Added dir and files key to the response struct of aria2.tellStatus
  371. XML-RPC method. The value associated with files key is the list
  372. of files. Its element is the same struct used in aria2.getFiles
  373. XML-RPC method. Added uris key to the response struct of
  374. aria2.getFiles XML-RPC method. The value associated with uris key
  375. is the list of URIs. Its element is the same struct used in
  376. aria2.getUris XML-RPC method.
  377. * doc/aria2c.1.txt
  378. * src/XmlRpcMethodImpl.cc
  379. * test/XmlRpcMethodTest.cc
  380. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added aria2.getSessionInfo XML-RPC method. This method returns a
  382. struct containing Session ID, which is generated each time when
  383. aria2 is invoked.
  384. * doc/aria2c.1.txt
  385. * doc/xmlrpc/aria2rpc
  386. * src/DownloadEngine.cc
  387. * src/DownloadEngine.h
  388. * src/XmlRpcMethodFactory.cc
  389. * src/XmlRpcMethodImpl.cc
  390. * src/XmlRpcMethodImpl.h
  391. * test/XmlRpcMethodTest.cc
  392. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Moved generateRandomKey() from bittorrent_helper to util.
  394. * src/DHTBucket.cc
  395. * src/DHTNode.cc
  396. * src/bittorrent_helper.cc
  397. * src/bittorrent_helper.h
  398. * src/util.cc
  399. * src/util.h
  400. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Updated doc about GID.
  402. * doc/aria2c.1.txt
  403. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  405. accepts a negative integer. 'offset' == -1 points last download
  406. in the waiting queue and 'offset' == -2 points the download before
  407. the last download, and so on. The downloads in the response are in
  408. reversed order.
  409. * doc/aria2c.1.txt
  410. * src/XmlRpcMethodImpl.cc
  411. * src/XmlRpcMethodImpl.h
  412. * test/XmlRpcMethodTest.cc
  413. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Added --human-readable option. This option, when true is given,
  415. prints sizes and speed in human readable format(e.g., 1.2Ki,
  416. 3.4Mi) in the console readout. The default value is true and it
  417. looks exactly the same as aria2-1.8.0. So the 'new feature'
  418. appears when false is given. In this case, sizes and speed are
  419. printed without in bytes. No Ki, Mi units conversion is used.
  420. This may be useful for a program to parse the output of aria2.
  421. * doc/aria2c.1.txt
  422. * src/ConsoleStatCalc.cc
  423. * src/ConsoleStatCalc.h
  424. * src/OptionHandlerFactory.cc
  425. * src/main.cc
  426. * src/prefs.cc
  427. * src/prefs.h
  428. * src/usage_text.h
  429. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  431. option accepts empty string "". When "" is given, it erases
  432. previously defined proxy.
  433. * doc/aria2c.1.txt
  434. * src/OptionHandlerImpl.h
  435. * src/usage_text.h
  436. * test/OptionHandlerTest.cc
  437. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Code cleanup for proxy URI handling.
  439. * src/AbstractCommand.cc
  440. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Added --bt-metadata-only option. If true is given to this option,
  442. aria2 downloads metadata only. The file(s) described in metadata
  443. will not be downloaded. This option has effect only when
  444. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  445. * doc/aria2c.1.txt
  446. * src/OptionHandlerFactory.cc
  447. * src/UTMetadataPostDownloadHandler.cc
  448. * src/download_helper.cc
  449. * src/prefs.cc
  450. * src/prefs.h
  451. * src/usage_text.h
  452. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Fixed memory leak. Commands stored in std::deque<Command*> are not
  454. deleted when exception is thrown. Make sure that when passing
  455. std::deque<Command*> to function to store Commands, handle
  456. exception and delete these Commands.
  457. * src/AbstractCommand.cc
  458. * src/CheckIntegrityCommand.cc
  459. * src/FileAllocationCommand.cc
  460. * src/RequestGroup.cc
  461. * src/TrackerWatcherCommand.cc
  462. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  464. * src/A2STR.cc
  465. * src/A2STR.h
  466. * src/FtpNegotiationCommand.cc
  467. * src/HttpResponseCommand.cc
  468. * src/util.cc
  469. * src/util.h
  470. * test/UtilTest.cc
  471. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Treat --dir="" as --dir="."
  473. * src/FtpNegotiationCommand.cc
  474. * src/HttpResponseCommand.cc
  475. * src/Metalink2RequestGroup.cc
  476. * src/UTMetadataPostDownloadHandler.cc
  477. * src/bittorrent_helper.cc
  478. * src/download_helper.cc
  479. * src/util.cc
  480. * src/util.h
  481. * test/UtilTest.cc
  482. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Code clean up.
  484. * src/main.cc
  485. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Reset GID to 1 when they reach maximum value. Rewritten
  487. CUIDCounter::newID()
  488. * src/CUIDCounter.h
  489. * src/RequestGroup.cc
  490. * src/RequestGroup.h
  491. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Documented --http-no-cache option in man page.
  493. * doc/aria2c.1.txt
  494. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Added --http-no-cache option. When true is given, aria2 sends
  496. Cache-Control: no-cache and Pragma: no-cache header to avoid
  497. cached content. If false is given , these headers are not sent
  498. and you can add Cache-Control header with a directive you like
  499. using --header option.
  500. * src/HttpRequest.cc
  501. * src/HttpRequest.h
  502. * src/HttpRequestCommand.cc
  503. * src/OptionHandlerFactory.cc
  504. * src/download_helper.cc
  505. * src/prefs.cc
  506. * src/prefs.h
  507. * src/usage_text.h
  508. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Removed Logger from OptionParser. When OptionParser is used to
  510. parse options at bootstrap, LogFactory is not configured yet
  511. properly. When LogFactory is used in OptionParser, it initializes
  512. itself to return a logger which has no ability to write log to the
  513. disk.
  514. * src/OptionParser.cc
  515. * src/OptionParser.h
  516. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Added following sentance to the help message of --out option:
  518. --out option is ignored when -Z is used.
  519. * doc/aria2c.1.txt
  520. * src/usage_text.h
  521. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Added --bt-save-metadata option to -i list options.
  523. * doc/aria2c.1.txt
  524. * src/download_helper.cc
  525. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  527. additional libraries.
  528. * src/MultiUrlRequestInfo.cc
  529. * src/NameResolver.cc
  530. * src/SelectEventPoll.cc
  531. * src/SelectEventPoll.h
  532. * src/SocketCore.cc
  533. * src/SocketCore.h
  534. * src/a2netcompat.h
  535. * src/daemon.cc
  536. * src/main.cc
  537. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Fixed typo.
  539. * src/DHTMessageReceiver.cc
  540. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Fixed the bug that causes segmentation fault if unknown option is
  542. put in aria2.conf file. BUG#2928303
  543. * src/OptionParser.cc
  544. * src/OptionParser.h
  545. * src/option_processing.cc
  546. * test/OptionParserTest.cc
  547. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Ignore port message with port=0.
  549. * src/BtPortMessage.cc
  550. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Run autoupdate
  552. * configure.ac
  553. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Updated autoconf/automake auxiliary files.
  555. * INSTALL
  556. * config.guess
  557. * config.sub
  558. * depcomp
  559. * install-sh
  560. * m4/intldir.m4
  561. * missing
  562. * mkinstalldirs
  563. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Removed unused function.
  565. * src/SharedHandle.h
  566. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Find pooled socket using all cached addresses.
  568. * src/DNSCache.h
  569. * src/DownloadEngine.cc
  570. * src/DownloadEngine.h
  571. * src/InitiateConnectionCommand.cc
  572. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Updated copyright year.
  574. * src/version_usage.cc
  575. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Pool connection if _contentEncodingDecoder is used and server
  577. supports persistent connection.
  578. * src/HttpDownloadCommand.cc
  579. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Updated doc.
  581. * src/DownloadCommand.cc
  582. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Untabify. Fixed one line in copyright which is longer than 80
  584. columns.
  585. * src
  586. * test
  587. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Release 1.8.0
  589. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Updated po templates.
  591. * po/aria2.pot
  592. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Documented --bt-save-metadata option in man page.
  594. * doc/aria2c.1.txt
  595. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Fixed usage of --bt-save-metadata option.
  597. * src/usage_text.h
  598. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Updated po templates.
  600. * po/aria2.pot
  601. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  603. causes name resolution error when none of network interface has
  604. IPv4 address.
  605. * src/main.cc
  606. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Bump up version number to 1.8.0.
  608. * configure.ac
  609. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Use info hash as a filename when saving BitTorrent metadata.
  611. * src/UTMetadataPostDownloadHandler.cc
  612. * test/UTMetadataPostDownloadHandlerTest.cc
  613. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Documented system.multicall XML-RPC method in man page.
  615. * doc/aria2c.1.txt
  616. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Added signal handler for SIGHUP to save .aria2 file when terminal
  618. is closed. The handler is the same one for SIGINT and SIGTERM.
  619. * src/MultiUrlRequestInfo.cc
  620. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Defined method name in XmlRpcMethod subclasses.
  622. * src/XmlRpcMethodFactory.cc
  623. * src/XmlRpcMethodImpl.cc
  624. * src/XmlRpcMethodImpl.h
  625. * test/XmlRpcMethodTest.cc
  626. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Added system.multicall XML-RPC method.
  628. * src/XmlRpcMethod.cc
  629. * src/XmlRpcMethod.h
  630. * src/XmlRpcMethodFactory.cc
  631. * src/XmlRpcMethodImpl.cc
  632. * src/XmlRpcMethodImpl.h
  633. * test/XmlRpcMethodTest.cc
  634. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Check structure depth when decoding.
  636. * src/bencode.cc
  637. * src/bencode.h
  638. * test/BencodeTest.cc
  639. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Documented tellStopped XML-RPC method in man page.
  641. * doc/aria2c.1.txt
  642. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Added tellStopped XML-RPC method to aria2rpc.
  644. * doc/xmlrpc/aria2rpc
  645. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Added tellStopped XML-RPC method. This method returns stopped
  647. download in the specified range. It takes same parameters with
  648. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  649. * src/XmlRpcMethodFactory.cc
  650. * src/XmlRpcMethodImpl.cc
  651. * src/XmlRpcMethodImpl.h
  652. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  654. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  655. when conducting unit tests because they fail if networking
  656. interface is not configured with IPv4 address.
  657. * src/NameResolver.cc
  658. * src/SocketCore.cc
  659. * src/SocketCore.h
  660. * src/a2netcompat.h
  661. * test/AllTest.cc
  662. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Fixed unit test error
  664. * test/UTMetadataPostDownloadHandlerTest.cc
  665. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Defined static string constants for efficiency.
  667. * src/XmlRpcMethodImpl.cc
  668. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Added --bt-save-metadata option. When true is given, it saves
  670. metadata as .torrent file. This option has effect only when
  671. BitTorrent Magnet URI is used. The filename is name in metadata
  672. with suffix .torrent. The directory to be saved is the same
  673. directory where download file is saved. If the same file already
  674. exists, metdata is not saved.
  675. * src/OptionHandlerFactory.cc
  676. * src/UTMetadataPostDownloadHandler.cc
  677. * src/UTMetadataPostDownloadHandler.h
  678. * src/message.h
  679. * src/prefs.cc
  680. * src/prefs.h
  681. * src/usage_text.h
  682. * test/UTMetadataDataExtensionMessageTest.cc
  683. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Added util::saveAs() function. Use it in Signature::save().
  685. * src/Signature.cc
  686. * src/util.cc
  687. * src/util.h
  688. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Upcase info hash in Magnet URI.
  690. * doc/aria2c.1.txt
  691. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Refactored RequestGroupMan::changeReservedGroupPosition()
  693. * src/RequestGroupMan.cc
  694. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Updated the description for aria2.addTorrent XML-RPC method.
  696. * doc/aria2c.1.txt
  697. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Added changePosition to aria2rpc.
  699. * doc/xmlrpc/aria2rpc
  700. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Documented changePosition XML-RPC method in man page.
  702. * doc/aria2c.1.txt
  703. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  705. pos and how. This method changes the position of download denoted
  706. by gid. If how is POS_SET, it moves the download to a position
  707. relative to the beginning of the queue. If how is POS_CUR, it
  708. moves the download to a position relative to the current
  709. position. If how is POS_END, it moves the download to a position
  710. relative to the end of the queue. If the destination position is
  711. less than 0 or beyond the end of the queue, it moves the download
  712. to the beginning or the end of the queue respectively. Returns
  713. the destination position.
  714. * src/RequestGroupMan.cc
  715. * src/RequestGroupMan.h
  716. * src/XmlRpcMethodFactory.cc
  717. * src/XmlRpcMethodImpl.cc
  718. * src/XmlRpcMethodImpl.h
  719. * test/RequestGroupManTest.cc
  720. * test/XmlRpcMethodTest.cc
  721. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Added getOption and getGlobalOption to aria2rpc.
  723. * doc/xmlrpc/aria2rpc
  724. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Documented getOption and getGlobalOption XML-RPC method in man
  726. page
  727. * doc/aria2c.1.txt
  728. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Added getOption and getGlobalOption XML-RPC method. getOption
  730. takes GID as a parameter and returns its options as struct.
  731. getGlobalOption takes no parameter and returns global
  732. options. Because global option is used as a template for the
  733. option of newly added downloads, it includes options returned by
  734. getOption.
  735. * src/Option.h
  736. * src/XmlRpcMethodFactory.cc
  737. * src/XmlRpcMethodImpl.cc
  738. * src/XmlRpcMethodImpl.h
  739. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Sort _optionHandlers in OptionParser by name in ascending order.
  741. Use vector instead of deque for efficiency.
  742. * src/OptionHandler.h
  743. * src/OptionHandlerFactory.h
  744. * src/OptionParser.cc
  745. * src/OptionParser.h
  746. * src/version_usage.cc
  747. * test/OptionParserTest.cc
  748. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Code cleanup
  750. * src/XmlRpcMethod.cc
  751. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Documented about followedBy and belongsTo in man page.
  753. * doc/aria2c.1.txt
  754. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Added following 2 keys, followedBy and belongsTo, to the response
  756. of tellStatus.
  757. followedBy: List of GIDs which are generated by the consequence of
  758. this download. For example, when aria2 downloaded Metalink file,
  759. it generates downloads described in it(see *--follow-metalink*
  760. option). This value is useful to track these auto generated
  761. downloads. If there is no such downloads, this key will not be
  762. included in the response.
  763. belongsTo: GID of a parent download. Some downloads are a part of
  764. another download. For example, if a file in Metalink has
  765. BitTorrent resource, the download of .torrent is a part of that
  766. file. If this download has no parent, this key will not be
  767. included in the response.
  768. * src/BtPostDownloadHandler.cc
  769. * src/DownloadResult.h
  770. * src/Metalink2RequestGroup.cc
  771. * src/MetalinkPostDownloadHandler.cc
  772. * src/RequestGroup.cc
  773. * src/RequestGroup.h
  774. * src/UTMetadataPostDownloadHandler.cc
  775. * src/XmlRpcMethodImpl.cc
  776. * src/XmlRpcMethodImpl.h
  777. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Assigned BObject in BDE() to avoid segmentation fault when calling
  779. methods of BDE::none().
  780. * src/BDE.cc
  781. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Show info hash in Magnet URI in upper case letters in -S output.
  783. * src/bittorrent_helper.cc
  784. * test/BittorrentHelperTest.cc
  785. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Removed old useless comment
  787. * src/MultiUrlRequestInfo.cc
  788. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  790. not properly used in configure script and failed to detect gnutls.
  791. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  792. and the initialization of pkg-config is done in first occurrence
  793. of PKG_CHECK_MODULES which is not executed because it is inside of
  794. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  795. * configure.ac
  796. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Release 1.7.2
  798. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Fixed the bug that RequestGroupMan::downloadFinished() returns
  800. true even if all downloads haven't finished, especially when
  801. PostDownloadHandler is involved. Changed the condition so that it
  802. only returns true if both _requestGroups and _reservedGroups are
  803. empty.
  804. * src/RequestGroupMan.cc
  805. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Log listening port for BitTorrent/DHT in notice level.
  807. * src/DHTConnectionImpl.cc
  808. * src/PeerListenCommand.cc
  809. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Updated po templates.
  811. * po/aria2.pot
  812. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Bump up version number to 1.7.2
  814. * configure.ac
  815. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Changed default value of --enable-dht from 'false' to 'true'.
  817. * doc/aria2c.1.txt
  818. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Enabled DHT by default because of Magnet URI support. To disable
  820. DHT, use --enable-dht=false
  821. * src/OptionHandlerFactory.cc
  822. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Print Magnet URI in -S output.
  824. * src/AnnounceList.cc
  825. * src/bittorrent_helper.cc
  826. * src/bittorrent_helper.h
  827. * test/BittorrentHelperTest.cc
  828. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Added --bt-prioritize-piece option to aria2rpc.
  830. * doc/xmlrpc/aria2rpc
  831. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Refer Magnet URI in --help. Made some cosmetic changes.
  833. * src/version_usage.cc
  834. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Updated -T and -M option.
  836. * doc/aria2c.1.txt
  837. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Fixed typo
  839. * doc/aria2c.1.txt
  840. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Fixed the bug that line separator is missing in horizontal bar.
  842. * doc/xmlrpc/aria2mon
  843. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Updated usage text for --metalink-file option.
  845. * src/usage_text.h
  846. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. If '-' is given as an argument to --metalink-file option, aria2
  848. reads Metalink file from stdin.
  849. * src/OptionHandlerFactory.cc
  850. * src/OptionHandlerImpl.h
  851. * src/a2io.h
  852. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Fixed the bug that aria2 listens wrong port if --interface option
  854. is used.
  855. * src/SocketCore.cc
  856. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Fixed the bug that query parameter in magnet URI is not decoded.
  858. * src/magnet.cc
  859. * test/MagnetTest.cc
  860. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Specified defaultSize as an argument for easy testing.
  862. * src/util.cc
  863. * src/util.h
  864. * test/UtilTest.cc
  865. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Release 1.7.1
  867. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Bump up version number to 1.7.1
  869. * configure.ac
  870. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed the bug --bt-prioritize-piece=tail is not working.
  872. * src/util.cc
  873. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Release 1.7.0
  875. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Updated po templates.
  877. * po/aria2.pot
  878. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Updated help message for --bt-prioritize-piece. Some cosmetic
  880. changes.
  881. * doc/aria2c.1.txt
  882. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  884. * src/usage_text.h
  885. * src/util.cc
  886. * test/UtilTest.cc
  887. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Updated Russian, Ukrainian, German and French translations.
  889. Thanks to all translators involved.
  890. * po/de.po
  891. * po/fr.po
  892. * po/ru.po
  893. * po/uk.po
  894. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Mentioned about pkg-config
  896. * README
  897. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Fixed typo. Referred --index-out option in BitTorrent notes.
  899. * README
  900. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Store all addresses found by getifaddrs() and getaddrinfo(). In
  902. bind, try all addresses until success
  903. * src/SocketCore.cc
  904. * src/SocketCore.h
  905. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Updated po templates.
  907. * po/aria2.pot
  908. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Bump up version number to 1.7.0
  910. * configure.ac
  911. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Fixed compile error if ENABLE_BITTORRENT is undefined.
  913. * src/DefaultPieceStorage.cc
  914. * src/DefaultPieceStorage.h
  915. * src/PieceStorage.h
  916. * src/UnknownLengthPieceStorage.cc
  917. * src/UnknownLengthPieceStorage.h
  918. * test/MockPieceStorage.h
  919. * test/ProtocolDetectorTest.cc
  920. * test/XmlRpcMethodTest.cc
  921. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Documented in man page that if getifaddrs() is missing,
  923. --interface option doesn't accept interface name.
  924. * doc/aria2c.1.txt
  925. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  927. * src/DefaultBtAnnounce.cc
  928. * src/DefaultBtAnnounce.h
  929. * test/DefaultBtAnnounceTest.cc
  930. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Fixed the bug that connection is always dropped if handshake
  932. message in extension protocol don't have metadata_size.
  933. src/HandshakeExtensionMessage.cc
  934. * src/HandshakeExtensionMessage.cc
  935. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  937. text saying DHT is recommended when Magnet URI is provided.
  938. * doc/aria2c.1.txt
  939. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  941. URI is supplied. Notify user that they should consider enabling
  942. DHT if they use Magnet URI.
  943. * src/RequestGroup.cc
  944. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Added --disable-ipv6 option to disable IPv6.
  946. * doc/aria2c.1.txt
  947. * src/InitiateConnectionCommand.cc
  948. * src/NameResolver.cc
  949. * src/NameResolver.h
  950. * src/OptionHandlerFactory.cc
  951. * src/main.cc
  952. * src/prefs.cc
  953. * src/prefs.h
  954. * src/usage_text.h
  955. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Updated usage text for --bt-prioritize-piece option.
  957. * doc/aria2c.1.txt
  958. * src/usage_text.h
  959. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. In configure script, if --with-PACKAGE and --enable-FEATURE are
  961. given and PACKAGE is missing in the system or FEATURE cannot be
  962. enabled, print error message and stop the script.
  963. * configure.ac
  964. * m4/aria2_arg.m4
  965. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Halt metadata download immediately when metadata download is done.
  967. Don't wait unresponsive tracker.
  968. * src/ByteArrayDiskWriter.h
  969. * src/DefaultBtInteractive.cc
  970. * src/DefaultExtensionMessageFactory.cc
  971. * src/DefaultExtensionMessageFactory.h
  972. * src/PeerInteractionCommand.cc
  973. * src/UTMetadataDataExtensionMessage.cc
  974. * src/UTMetadataDataExtensionMessage.h
  975. * src/UTMetadataRequestExtensionMessage.cc
  976. * test/UTMetadataDataExtensionMessageTest.cc
  977. * test/UTMetadataRequestExtensionMessageTest.cc
  978. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Documented --interface option in man page.
  980. * doc/aria2c.1.txt
  981. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Try resolved address in the order received from the resolver.
  983. * src/DNSCache.h
  984. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Added debug logs.
  986. * src/SocketCore.cc
  987. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Fixed type of tail to uint64_t
  989. * src/util.cc
  990. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Added --interface option. This feature binds sockets to given
  992. interface. You can specify interface name, IP address and
  993. hostname.
  994. * configure.ac
  995. * src/OptionHandlerFactory.cc
  996. * src/SocketCore.cc
  997. * src/SocketCore.h
  998. * src/main.cc
  999. * src/message.h
  1000. * src/prefs.cc
  1001. * src/prefs.h
  1002. * src/usage_text.h
  1003. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Updated man page for bt-prioritize-piece option in -i list.
  1005. * doc/aria2c.1.txt
  1006. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Added bt-prioritize-piece option to -i list.
  1008. * src/download_helper.cc
  1009. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Removed --http-auth-scheme option from man page.
  1011. * doc/aria2c.1.txt
  1012. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Removed --http-auth-scheme option since it doesn't do nothing.
  1014. * src/OptionHandlerFactory.cc
  1015. * src/prefs.cc
  1016. * src/prefs.h
  1017. * src/usage_text.h
  1018. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Adjusted the number of peer info which get_peers reply message can
  1020. carry.
  1021. * src/DHTGetPeersReplyMessage.cc
  1022. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Added extension_message_test_helper.h to aria2c_SOURCES.
  1024. * test/Makefile.am
  1025. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Documented --bt-prioritize-piece option in man page.
  1027. * doc/aria2c.1.txt
  1028. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Added option --bt-prioritize-piece. This option instruct aria2 to
  1030. try to download first and last pieces of each file first. The
  1031. argument can contain 2 keywords:head and tail. To include both
  1032. keywords, they must be separated by comma. These keywords can take
  1033. one parameter, SIZE. For example , if head=SIZE is specified,
  1034. pieces in the range of first SIZE bytes of each file get higher
  1035. priority. tail=SIZE means the range of last SIZE bytes of each
  1036. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1037. * src/DefaultPieceStorage.h
  1038. * src/Makefile.am
  1039. * src/OptionHandlerFactory.cc
  1040. * src/OptionHandlerImpl.h
  1041. * src/PriorityPieceSelector.cc
  1042. * src/PriorityPieceSelector.h
  1043. * src/RequestGroup.cc
  1044. * src/prefs.cc
  1045. * src/prefs.h
  1046. * src/usage_text.h
  1047. * src/util.cc
  1048. * src/util.h
  1049. * test/Makefile.am
  1050. * test/MockPieceSelector.h
  1051. * test/PriorityPieceSelectorTest.cc
  1052. * test/UtilTest.cc
  1053. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Fixed typo
  1055. * src/HttpRequest.h
  1056. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. In Magnet URI with tr parameter, put each announce URI in separate
  1058. tier.
  1059. * src/bittorrent_helper.cc
  1060. * test/BittorrentHelperTest.cc
  1061. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Renamed ExtensionMessage::getBencodedData() as
  1063. ExtensionMessage::getPayload()
  1064. * src/BtExtendedMessage.cc
  1065. * src/ExtensionMessage.h
  1066. * src/HandshakeExtensionMessage.cc
  1067. * src/HandshakeExtensionMessage.h
  1068. * src/UTMetadataDataExtensionMessage.cc
  1069. * src/UTMetadataDataExtensionMessage.h
  1070. * src/UTMetadataRejectExtensionMessage.cc
  1071. * src/UTMetadataRejectExtensionMessage.h
  1072. * src/UTMetadataRequestExtensionMessage.cc
  1073. * src/UTMetadataRequestExtensionMessage.h
  1074. * src/UTPexExtensionMessage.cc
  1075. * src/UTPexExtensionMessage.h
  1076. * test/HandshakeExtensionMessageTest.cc
  1077. * test/MockExtensionMessage.h
  1078. * test/UTMetadataDataExtensionMessageTest.cc
  1079. * test/UTMetadataRejectExtensionMessageTest.cc
  1080. * test/UTMetadataRequestExtensionMessageTest.cc
  1081. * test/UTPexExtensionMessageTest.cc
  1082. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Updated man page for BitTorrent Magnet URI.
  1084. * doc/aria2c.1.txt
  1085. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Call DownloadContext::setOwnerRequestGroup() in
  1087. RequestGroup::setDownloadContext().
  1088. * src/BtDependency.cc
  1089. * src/RequestGroup.cc
  1090. * src/RequestGroup.h
  1091. * src/download_helper.cc
  1092. * test/DefaultBtMessageDispatcherTest.cc
  1093. * test/DefaultExtensionMessageFactoryTest.cc
  1094. * test/HandshakeExtensionMessageTest.cc
  1095. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1097. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1098. from metadata, use new metadata2Torrent() function.
  1099. * src/BtDependency.cc
  1100. * src/UTMetadataPostDownloadHandler.cc
  1101. * src/bittorrent_helper.cc
  1102. * src/bittorrent_helper.h
  1103. * test/BittorrentHelperTest.cc
  1104. * test/BtDependencyTest.cc
  1105. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Use createRequestGroupForUri to create the download for torrent
  1107. file.
  1108. * src/Metalink2RequestGroup.cc
  1109. * test/Metalink2RequestGroupTest.cc
  1110. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed typo
  1112. * src/DownloadContext.h
  1113. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Use createRequestGroupForBitTorrent()
  1115. * src/BtPostDownloadHandler.cc
  1116. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Added remove().
  1118. * src/Option.cc
  1119. * src/Option.h
  1120. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Removed options which is only valid for URIs specified in
  1122. command-line. If they are left, because op is used as a template
  1123. for new RequestGroup(such as created in XML-RPC command,
  1124. BtPostDownloadHandler etc), they causes unintentional effect.
  1125. * src/main.cc
  1126. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Refer to option value of PREF_OUT only in download_helper.
  1128. * src/FtpNegotiationCommand.cc
  1129. * src/HttpResponseCommand.cc
  1130. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1132. * src/download_helper.cc
  1133. * src/download_helper.h
  1134. * src/XmlRpcMethodImpl.cc
  1135. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Updated man page for changeOption XML-RPC method.
  1137. * doc/aria2c.1.txt
  1138. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Added --bt-max-peers option to changeOption XML-RPC method.
  1140. * src/XmlRpcMethod.cc
  1141. * src/XmlRpcMethodImpl.cc
  1142. * test/XmlRpcMethodTest.cc
  1143. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1145. * test/XmlRpcMethodTest.cc
  1146. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Removed redundant DownloadContext::hasAttribute(...) calls.
  1148. * src/ConsoleStatCalc.cc
  1149. * src/RequestGroup.cc
  1150. * src/XmlRpcMethodImpl.cc
  1151. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Changed the number of tracker request attempt from 5 to 2.
  1153. * src/TrackerWatcherCommand.cc
  1154. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Use host and protocol in original URI, because URI selector
  1156. selects URI based on original URI, not redirected one.
  1157. * src/Request.cc
  1158. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Fixed the bug which causes segmentation fault with tellWaiting
  1160. XML-RPC method when BitTorrent download is waiting. The key of
  1161. BtRegistry is changed from info hash to GID, because it is
  1162. registered per RequestGroup, not info hash.
  1163. * src/BtRegistry.cc
  1164. * src/BtRegistry.h
  1165. * src/BtSetup.cc
  1166. * src/ConsoleStatCalc.cc
  1167. * src/InitiatorMSEHandshakeCommand.cc
  1168. * src/PeerInitiateConnectionCommand.cc
  1169. * src/PeerInteractionCommand.cc
  1170. * src/PeerInteractionCommand.h
  1171. * src/PeerReceiveHandshakeCommand.cc
  1172. * src/RequestGroup.cc
  1173. * src/XmlRpcMethodImpl.cc
  1174. * test/BtRegistryTest.cc
  1175. * test/XmlRpcMethodTest.cc
  1176. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Updated man page for changeOption XML-RPC method.
  1178. * doc/aria2c.1.txt
  1179. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1181. method.
  1182. * src/XmlRpcMethod.cc
  1183. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Documented about BitTorrent Magnet URI in man page.
  1185. * doc/aria2c.1.txt
  1186. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1188. inherited to generated RequestGroup.
  1189. * src/UTMetadataPostDownloadHandler.cc
  1190. * test/UTMetadataPostDownloadHandlerTest.cc
  1191. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Prepended "[METADATA]" before dn.
  1193. * src/bittorrent_helper.cc
  1194. * test/BittorrentHelperTest.cc
  1195. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Rewritten Magnet URI parser.
  1197. * src/Makefile.am
  1198. * src/ProtocolDetector.cc
  1199. * src/bittorrent_helper.cc
  1200. * src/bittorrent_helper.h
  1201. * src/download_helper.cc
  1202. * src/magnet.cc
  1203. * src/magnet.h
  1204. * test/BittorrentHelperTest.cc
  1205. * test/MagnetTest.cc
  1206. * test/Makefile.am
  1207. * test/ProtocolDetectorTest.cc
  1208. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Use hton64
  1210. * src/base32.cc
  1211. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Added Base32 encoded BitTorrent Magnet Link support.
  1213. * src/Makefile.am
  1214. * src/base32.cc
  1215. * src/base32.h
  1216. * src/bittorrent_helper.cc
  1217. * test/Base32Test.cc
  1218. * test/BittorrentHelperTest.cc
  1219. * test/Makefile.am
  1220. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1222. supported yet. Fixed typo in method name in RequestGroup. In
  1223. metadataGetMode, don't show "Your share ratio was ..." message.
  1224. * src/DefaultBtInteractive.cc
  1225. * src/DefaultBtInteractive.h
  1226. * src/DownloadHandlerFactory.cc
  1227. * src/DownloadHandlerFactory.h
  1228. * src/HandshakeExtensionMessage.cc
  1229. * src/Makefile.am
  1230. * src/Metalink2RequestGroup.cc
  1231. * src/PeerInteractionCommand.cc
  1232. * src/RequestGroup.cc
  1233. * src/RequestGroup.h
  1234. * src/UTMetadataPostDownloadHandler.cc
  1235. * src/UTMetadataPostDownloadHandler.h
  1236. * src/download_helper.cc
  1237. * test/HandshakeExtensionMessageTest.cc
  1238. * test/Makefile.am
  1239. * test/UTMetadataPostDownloadHandlerTest.cc
  1240. * test/UTMetadataRejectExtensionMessageTest.cc
  1241. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. In metadataGetMode, don't show SEEDING.
  1243. * src/ConsoleStatCalc.cc
  1244. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Fixed ut_metadata data handling. Implemented
  1246. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1247. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1248. metadata_size is received.
  1249. * src/DefaultExtensionMessageFactory.cc
  1250. * src/DefaultExtensionMessageFactory.h
  1251. * src/HandshakeExtensionMessage.cc
  1252. * src/HandshakeExtensionMessage.h
  1253. * src/UTMetadataDataExtensionMessage.cc
  1254. * src/UTMetadataDataExtensionMessage.h
  1255. * src/UTMetadataRequestExtensionMessage.cc
  1256. * src/UTMetadataRequestFactory.cc
  1257. * src/UTMetadataRequestFactory.h
  1258. * src/UTMetadataRequestTracker.cc
  1259. * src/UTMetadataRequestTracker.h
  1260. * test/DefaultExtensionMessageFactoryTest.cc
  1261. * test/HandshakeExtensionMessageTest.cc
  1262. * test/MockBtMessage.h
  1263. * test/UTMetadataDataExtensionMessageTest.cc
  1264. * test/UTMetadataRequestExtensionMessageTest.cc
  1265. * test/UTMetadataRequestFactoryTest.cc
  1266. * test/UTMetadataRequestTrackerTest.cc
  1267. * test/extension_message_test_helper.h
  1268. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Drop connection if ut_metadata reject message is received.
  1270. * src/UTMetadataRejectExtensionMessage.cc
  1271. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1273. get high enough in that mode.
  1274. * src/ActivePeerConnectionCommand.cc
  1275. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Added BitTorrent magnet link support to ProtocolDetector.
  1277. * src/ProtocolDetector.cc
  1278. * src/ProtocolDetector.h
  1279. * test/ProtocolDetectorTest.cc
  1280. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Don't inject validator into BtMessage in metadataGetMode because
  1282. most of the checks depends on the total length of download but it
  1283. is unknown. Delegate metadataGetMode to BtMessage.
  1284. * src/DefaultBtMessageFactory.cc
  1285. * src/DefaultBtMessageFactory.h
  1286. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1288. * src/DefaultPieceStorage.h
  1289. * src/PieceStorage.h
  1290. * src/UnknownLengthPieceStorage.h
  1291. * test/MockPieceStorage.h
  1292. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added markTotalLengthIsKnown().
  1294. * src/DownloadContext.h
  1295. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1297. missing. If metadata is missing, always use DHT when it is ready.
  1298. * src/BtSetup.cc
  1299. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added parseMagnetLink(). Hex encoded info hash is supported.
  1301. Base32 encoded info hash is not supported yet.
  1302. * src/bittorrent_helper.cc
  1303. * src/bittorrent_helper.h
  1304. * test/BittorrentHelperTest.cc
  1305. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Added FromHex()
  1307. * src/util.cc
  1308. * src/util.h
  1309. * test/UtilTest.cc
  1310. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Added _metadataGetMode member variable. It toggles the action when
  1312. messages are received: usually they almost do nothing if
  1313. _metadataGetMode is true.
  1314. * src/AbstractBtMessage.cc
  1315. * src/AbstractBtMessage.h
  1316. * src/BtAllowedFastMessage.cc
  1317. * src/BtBitfieldMessage.cc
  1318. * src/BtCancelMessage.cc
  1319. * src/BtChokeMessage.cc
  1320. * src/BtHaveAllMessage.cc
  1321. * src/BtHaveMessage.cc
  1322. * src/BtInterestedMessage.cc
  1323. * src/BtNotInterestedMessage.cc
  1324. * src/BtPieceMessage.cc
  1325. * src/BtRejectMessage.cc
  1326. * src/BtRequestMessage.cc
  1327. * src/BtUnchokeMessage.cc
  1328. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Added bencode::decode overload functions. They have extra argument
  1330. 'end', passed by reference. 'end' points to the beyond the last
  1331. position of data used in decoding process.
  1332. * src/bencode.cc
  1333. * src/bencode.h
  1334. * test/BencodeTest.cc
  1335. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Initial support of Extension for Peers to Send Metadata
  1337. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1338. metadata from swarm.
  1339. * src/BtConstants.h
  1340. * src/DefaultBtInteractive.cc
  1341. * src/DefaultExtensionMessageFactory.cc
  1342. * src/DefaultExtensionMessageFactory.h
  1343. * src/ExtensionMessage.h
  1344. * src/ExtensionMessageRegistry.h
  1345. * src/HandshakeExtensionMessage.cc
  1346. * src/HandshakeExtensionMessage.h
  1347. * src/Makefile.am
  1348. * src/PeerConnection.h
  1349. * src/PeerInteractionCommand.cc
  1350. * src/UTMetadataDataExtensionMessage.cc
  1351. * src/UTMetadataDataExtensionMessage.h
  1352. * src/UTMetadataExtensionMessage.cc
  1353. * src/UTMetadataExtensionMessage.h
  1354. * src/UTMetadataRejectExtensionMessage.cc
  1355. * src/UTMetadataRejectExtensionMessage.h
  1356. * src/UTMetadataRequestExtensionMessage.cc
  1357. * src/UTMetadataRequestExtensionMessage.h
  1358. * src/bittorrent_helper.cc
  1359. * src/bittorrent_helper.h
  1360. * test/BittorrentHelperTest.cc
  1361. * test/DefaultExtensionMessageFactoryTest.cc
  1362. * test/HandshakeExtensionMessageTest.cc
  1363. * test/Makefile.am
  1364. * test/UTMetadataDataExtensionMessageTest.cc
  1365. * test/UTMetadataRejectExtensionMessageTest.cc
  1366. * test/UTMetadataRequestExtensionMessageTest.cc
  1367. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Cancel segment in prepareForRetry() because there is a chance that
  1369. the command has segments.
  1370. * src/CreateRequestCommand.cc
  1371. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Fixed the bug that slow server is not knocked down in favor of
  1373. faster one.
  1374. * src/AbstractCommand.cc
  1375. * src/DefaultPieceStorage.cc
  1376. * src/DefaultPieceStorage.h
  1377. * src/PieceStorage.h
  1378. * src/UnknownLengthPieceStorage.cc
  1379. * src/UnknownLengthPieceStorage.h
  1380. * test/MockPieceStorage.h
  1381. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Fixed the bug that Request object is not added to
  1383. _inFlightRequests in findFasterRequest().
  1384. * src/FileEntry.cc
  1385. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Changed the strategry of how to increase the number of outstanding
  1387. requests. Now the number is doubled if there are no outstanding
  1388. requests after receiving messages.
  1389. * src/BtConstants.h
  1390. * src/DefaultBtInteractive.cc
  1391. * src/DefaultBtInteractive.h
  1392. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Check socket for reading if there are outstanding requests.
  1394. * src/PeerInteractionCommand.cc
  1395. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Moved frequently called methods to header file so they get
  1397. inlined.
  1398. * src/RequestSlot.cc
  1399. * src/RequestSlot.h
  1400. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Copied in_addr instead of just casting from char* which might
  1402. violate strict aliasing rules.
  1403. * src/AsyncNameResolver.cc
  1404. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Use dynamic_pointer_cast
  1406. * test/BtPieceMessageTest.cc
  1407. * test/BtRequestMessageTest.cc
  1408. * test/DefaultBtRequestFactoryTest.cc
  1409. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Added testSetUrl20()
  1411. * test/RequestTest.cc
  1412. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Code cleanup
  1414. * src/bittorrent_helper.cc
  1415. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Use C++ style cast
  1417. * src/AsyncNameResolver.cc
  1418. * src/Base64.h
  1419. * src/BtBitfieldMessage.cc
  1420. * src/BtHandshakeMessage.cc
  1421. * src/DefaultBtMessageFactory.cc
  1422. * src/DefaultBtProgressInfoFile.cc
  1423. * src/EpollEventPoll.cc
  1424. * src/ExpatMetalinkProcessor.cc
  1425. * src/IteratableChecksumValidator.cc
  1426. * src/IteratableChunkChecksumValidator.cc
  1427. * src/MessageDigestHelper.cc
  1428. * src/Platform.cc
  1429. * src/RequestGroupMan.cc
  1430. * src/SingleFileAllocationIterator.cc
  1431. * src/Sqlite3MozCookieParser.cc
  1432. * src/XML2SAXMetalinkProcessor.cc
  1433. * src/Xml2XmlRpcRequestProcessor.cc
  1434. * src/util.cc
  1435. * src/util.h
  1436. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Fixed integer potential alignment problem.
  1438. * src/bitfield.h
  1439. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1441. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1442. include file ordering.
  1443. * src/PeerListProcessor.h
  1444. * src/bittorrent_helper.cc
  1445. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1447. * src/Request.cc
  1448. * src/util.cc
  1449. * src/util.h
  1450. * test/RequestTest.cc
  1451. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Rewritten util::uitos()
  1453. * src/util.h
  1454. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Code cleanup
  1456. * src/Request.cc
  1457. * src/Request.h
  1458. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Rewritten Request::parseUrl()
  1460. * src/Request.cc
  1461. * test/RequestTest.cc
  1462. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Removed unused macro SAFE_CHARS
  1464. * src/Request.cc
  1465. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Updated doc
  1467. * src/DHTRoutingTableDeserializer.cc
  1468. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Release 1.6.3
  1470. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Removed unused function.
  1472. * test/DHTPeerAnnounceStorageTest.cc
  1473. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Only decrement cols if cols > 0
  1475. * src/ConsoleStatCalc.cc
  1476. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1478. translations. Thanks to all translators.
  1479. * po/ca.po
  1480. * po/fr.po
  1481. * po/it.po
  1482. * po/ja.po
  1483. * po/pl.po
  1484. * po/ru.po
  1485. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Updated translation template
  1487. * po
  1488. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Fixed compile error without ssl library.
  1490. * src/util.cc
  1491. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Logged received nodes in get_peers reply message.
  1493. * src/DHTAbstractNodeLookupTask.cc
  1494. * src/DHTAbstractNodeLookupTask.h
  1495. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1497. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1498. * src/DHTMessageDispatcherImpl.cc
  1499. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Don't reuse URI if Request pool is not empty.
  1501. * src/CreateRequestCommand.cc
  1502. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1504. receive get_peers request for torrent which the client is now
  1505. downloading.
  1506. * src/BtSetup.cc
  1507. * src/DHTPeerAnnounceEntry.cc
  1508. * src/DHTPeerAnnounceEntry.h
  1509. * src/DHTPeerAnnounceStorage.cc
  1510. * src/DHTPeerAnnounceStorage.h
  1511. * src/RequestGroup.cc
  1512. * test/DHTPeerAnnounceEntryTest.cc
  1513. * test/DHTPeerAnnounceStorageTest.cc
  1514. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Fixed the bug that in Windows environment new blank line is
  1516. inserted when console readout is updated.
  1517. * src/ConsoleStatCalc.cc
  1518. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Throw exception if binding listening port is failed. Removed
  1520. RequestGroupMan::getInitialCommand(). Use
  1521. fillRequestGroupFromReserver() instead. Delete commands for
  1522. RequestGroup which has errors when it is being added.
  1523. * src/BtSetup.cc
  1524. * src/DownloadEngine.cc
  1525. * src/DownloadEngine.h
  1526. * src/DownloadEngineFactory.cc
  1527. * src/MultiUrlRequestInfo.cc
  1528. * src/RequestGroupMan.cc
  1529. * src/RequestGroupMan.h
  1530. * test/RequestGroupManTest.cc
  1531. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Fixed the bug that when downloading more than one torrent,
  1533. listening port is not reported properly to tracker for 2nd or
  1534. later torrents.
  1535. * src/BtSetup.cc
  1536. * src/PeerListenCommand.cc
  1537. * src/PeerListenCommand.h
  1538. * src/RequestGroup.cc
  1539. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Bump up version number to 1.6.3
  1541. * configure.ac
  1542. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Removed Util.cc from POTFILES.in
  1544. * po/POTFILES.in
  1545. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Updated man page for previous change.
  1547. * doc/aria2c.1.txt
  1548. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. If user name is embedded but password is missing in URI, first
  1550. resolve password using .netrc. If password is found in .netrc,
  1551. then use it as password. If not, use the password specified in
  1552. --ftp-passwd.
  1553. * src/AuthConfigFactory.cc
  1554. * src/Request.cc
  1555. * src/Request.h
  1556. * test/AuthConfigFactoryTest.cc
  1557. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Fixed typo
  1559. * doc/aria2c.1.txt
  1560. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Fixed typo
  1562. * src/usage_text.h
  1563. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Added missing bitfield.cc
  1565. * src/bitfield.cc
  1566. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Renamed Util.{cc,h} as util.{cc,h}
  1568. * src/Util.cc
  1569. * src/Util.h
  1570. * src/util.cc
  1571. * src/util.h
  1572. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Moved static functions in Util class to namespace util.
  1574. * src
  1575. * test
  1576. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1578. Moved generateRandomKey to bittorrent_helper.cc.
  1579. * src/DHTBucket.cc
  1580. * src/DHTGetPeersMessage.cc
  1581. * src/DHTGetPeersReplyMessage.cc
  1582. * src/DHTMessage.cc
  1583. * src/DHTNode.cc
  1584. * src/DHTTokenTracker.cc
  1585. * src/DHTUtil.cc: Removed.
  1586. * src/DHTUtil.h: Removed.
  1587. * src/Makefile.am
  1588. * src/Util.cc
  1589. * src/Util.h
  1590. * src/bitfield.h
  1591. * src/bittorrent_helper.cc
  1592. * src/bittorrent_helper.h
  1593. * test/ARC4Test.cc
  1594. * test/BNodeTest.cc
  1595. * test/DHTAnnouncePeerMessageTest.cc
  1596. * test/DHTAnnouncePeerReplyMessageTest.cc
  1597. * test/DHTFindNodeMessageTest.cc
  1598. * test/DHTFindNodeReplyMessageTest.cc
  1599. * test/DHTGetPeersMessageTest.cc
  1600. * test/DHTGetPeersReplyMessageTest.cc
  1601. * test/DHTPingMessageTest.cc
  1602. * test/DHTPingReplyMessageTest.cc
  1603. * test/DHTTokenTrackerTest.cc
  1604. * test/DHTUtilTest.cc: Removed.
  1605. * test/Makefile.am
  1606. * test/UtilTest.cc
  1607. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Removed the call to trim() because trim() is called for each
  1609. element in split().
  1610. * src/CookieParser.cc
  1611. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Replaced Util::slice() with split()
  1613. * src/AbstractCommand.cc
  1614. * src/CookieParser.cc
  1615. * src/File.cc
  1616. * src/HttpHeaderProcessor.cc
  1617. * src/HttpRequest.cc
  1618. * src/Metalink2RequestGroup.cc
  1619. * src/MetalinkParserController.cc
  1620. * src/Netrc.cc
  1621. * src/NsCookieParser.cc
  1622. * src/ParameterizedStringParser.cc
  1623. * src/ServerStatMan.cc
  1624. * src/UriListParser.cc
  1625. * src/Util.cc
  1626. * src/Util.h
  1627. * src/bittorrent_helper.cc
  1628. * test/UtilTest.cc
  1629. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Use request->getDir() instead of "/" for embedded user/pass in
  1631. URI.
  1632. * src/AuthConfigFactory.cc
  1633. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Fixed wrong insertion point for BasicCred.
  1635. * src/AuthConfigFactory.cc
  1636. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Allowed non-regular file in LocalFilePathOptionHandler
  1638. * src/OptionHandlerImpl.h
  1639. * src/message.h
  1640. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1642. * src/Netrc.cc
  1643. * src/Util.h
  1644. * test/NetrcTest.cc
  1645. * test/sample.netrc
  1646. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Fixed typo
  1648. * src/BtDependency.cc
  1649. * src/BtRejectMessage.cc
  1650. * src/FtpConnection.cc
  1651. * src/HttpHeaderProcessor.h
  1652. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Fixed lintian report in man page
  1654. * doc/aria2c.1.txt
  1655. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Release 1.6.2
  1657. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Updated Ukrainian translation. Thanks to all translators.
  1659. * po/uk.po
  1660. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Updated translation template
  1662. * po
  1663. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Bump up version number to 1.6.2
  1665. * configure.ac
  1666. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Updated licence message in -v output.
  1668. * src/version_usage.cc
  1669. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Replaced aria2 with aria2c in help message.
  1671. * src/version_usage.cc
  1672. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1674. * src/version_usage.cc
  1675. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Quoted localedir
  1677. * src/Makefile.am
  1678. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1680. utime. Check header for utime.h.
  1681. * configure.ac
  1682. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1684. * configure.ac
  1685. * src/daemon.cc
  1686. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Don't set localedir manually. Leave it to autoconf.
  1688. * configure.ac
  1689. * src/Makefile.am
  1690. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Added --install to ACLOCAL_AMFLAGS.
  1692. Removed m4 from SUBDIRS.
  1693. Updated automake 1.11 and autoconf 2.64.
  1694. Replaced some obsolute macros with new one.
  1695. * Makefile.am
  1696. * configure.ac
  1697. * m4/aria2_arg.m4
  1698. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Removed Makefile.am in m4 directory.
  1700. * configure.ac
  1701. * m4/ChangeLog
  1702. * m4/Makefile.am
  1703. * m4/Makefile.in
  1704. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Removed unused m4 macros.
  1706. * m4/intldir.m4
  1707. * m4/inttypes.m4
  1708. * m4/isc-posix.m4
  1709. * m4/libgnutls-extra.m4
  1710. * m4/ulonglong.m4
  1711. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Fixed the bug that causes segmentation fault if
  1713. req->getCurrentUrl() contains printf formatting characters such as
  1714. %d. The statement that causes this bug is useless and removed.
  1715. * src/AbstractCommand.cc
  1716. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. * Release 1.6.1
  1718. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Updated Simplified Chinese translation. Thanks to translators.
  1720. * po/zh_CN.po
  1721. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Updated translation template
  1723. * po
  1724. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Bump up version number to 1.6.1
  1726. * configure.ac
  1727. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Changed interval from 120 to 60 for dropping inactive peer.
  1729. * src/DefaultBtInteractive.cc
  1730. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Updated man page for --user-agent and --peer-id-prefix option.
  1732. * doc/aria2c.1.txt
  1733. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Code clean up
  1735. * src/BtPostDownloadHandler.cc
  1736. * src/ContentTypeRequestGroupCriteria.cc
  1737. * src/ContentTypeRequestGroupCriteria.h
  1738. * src/DownloadHandlerConstants.cc
  1739. * src/DownloadHandlerConstants.h
  1740. * src/DownloadHandlerFactory.cc
  1741. * src/MetalinkPostDownloadHandler.cc
  1742. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Don't save control file when aria2 exists while checking piece
  1744. hash(behavior of -V option). If control file doesn't exist when
  1745. aria2 launched, the completed length in saved control file will be
  1746. 0 byte and this confuses user. disableSaveControlFile() is called
  1747. in RequestGroup::processCheckIntegrityEntry().
  1748. enableSaveControlFile() will be called after hash checking is
  1749. done. See CheckIntegrityCommand.
  1750. * src/CheckIntegrityCommand.cc
  1751. * src/RequestGroup.cc
  1752. * src/RequestGroup.h
  1753. * src/RequestGroupMan.cc
  1754. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Included version number in Peer ID and client version. Peer ID
  1756. now starts with "aria2/VERSION-", where VERSION is
  1757. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1758. * src/DefaultBtInteractive.cc
  1759. * src/OptionHandlerFactory.cc
  1760. * src/bittorrent_helper.cc
  1761. * src/bittorrent_helper.h
  1762. * src/main.cc
  1763. * src/usage_text.h
  1764. * test/BittorrentHelperTest.cc
  1765. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Fixed memory leak.
  1767. * src/DownloadCommand.cc
  1768. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Removed server, port, user and passwd key from options before
  1770. XMLRPC::Client.call since they are not options of aria2.
  1771. * doc/xmlrpc/aria2mon
  1772. * doc/xmlrpc/aria2rpc
  1773. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Included version number in user-agent string.
  1775. * src/OptionHandlerFactory.cc
  1776. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Fixed the bug that the option values changed by XML-RPC
  1778. method(changeOption and changeGlobalOption) are overwritten to the
  1779. previous value by the next these request which doesn't contain
  1780. that option value. Supporse max-download-limit is initially 0. You
  1781. changed this value to 100K by changeOption. Then you issue
  1782. changeOption request to change max-upload-limit to 50K. This
  1783. second request doesn't contain xml-download-limit, so it is back
  1784. to initial value, 0. Another improvement is that exception is
  1785. thrown when changeOption and changeGlobalOption request contains
  1786. option name which doesn't allowed in each request.
  1787. * src/DownloadEngine.h
  1788. * src/XmlRpcMethod.cc
  1789. * src/XmlRpcMethod.h
  1790. * src/XmlRpcMethodImpl.cc
  1791. * src/download_helper.cc
  1792. * src/download_helper.h
  1793. * test/XmlRpcMethodTest.cc
  1794. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Added missing MetalinkParserStateImpl.{cc,h}
  1796. * src/MetalinkParserStateImpl.cc
  1797. * src/MetalinkParserStateImpl.h
  1798. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Put all MetalinkParserState subclasses into
  1800. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1801. * src/FileMetalinkParserState.cc: Removed
  1802. * src/FileMetalinkParserState.h: Removed
  1803. * src/FilesMetalinkParserState.cc: Removed
  1804. * src/FilesMetalinkParserState.h: Removed
  1805. * src/FinMetalinkParserState.cc: Removed
  1806. * src/FinMetalinkParserState.h: Removed
  1807. * src/HashMetalinkParserState.cc: Removed
  1808. * src/HashMetalinkParserState.h: Removed
  1809. * src/InitialMetalinkParserState.cc: Removed
  1810. * src/InitialMetalinkParserState.h: Removed
  1811. * src/LanguageMetalinkParserState.cc: Removed
  1812. * src/LanguageMetalinkParserState.h: Removed
  1813. * src/Makefile.am
  1814. * src/MetalinkMetalinkParserState.cc: Removed
  1815. * src/MetalinkMetalinkParserState.h: Removed
  1816. * src/MetalinkParserState.h
  1817. * src/MetalinkParserStateMachine.cc
  1818. * src/MetalinkParserStateMachine.h
  1819. * src/OSMetalinkParserState.cc: Removed
  1820. * src/OSMetalinkParserState.h: Removed
  1821. * src/PieceHashMetalinkParserState.cc: Removed
  1822. * src/PieceHashMetalinkParserState.h: Removed
  1823. * src/PiecesMetalinkParserState.cc: Removed
  1824. * src/PiecesMetalinkParserState.h: Removed
  1825. * src/ResourcesMetalinkParserState.cc: Removed
  1826. * src/ResourcesMetalinkParserState.h: Removed
  1827. * src/SignatureMetalinkParserState.cc: Removed
  1828. * src/SignatureMetalinkParserState.h: Removed
  1829. * src/SizeMetalinkParserState.cc: Removed
  1830. * src/SizeMetalinkParserState.h: Removed
  1831. * src/SkipTagMetalinkParserState.cc: Removed
  1832. * src/SkipTagMetalinkParserState.h: Removed
  1833. * src/URLMetalinkParserState.cc: Removed
  1834. * src/URLMetalinkParserState.h: Removed
  1835. * src/VerificationMetalinkParserState.cc: Removed
  1836. * src/VerificationMetalinkParserState.h: Removed
  1837. * src/VersionMetalinkParserState.cc: Removed
  1838. * src/VersionMetalinkParserState.h: Removed
  1839. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Move all functions in PeerMessageUtil to bittorrent_helper.
  1841. * src/BtBitfieldMessage.cc
  1842. * src/BtBitfieldMessageValidator.h
  1843. * src/BtExtendedMessage.cc
  1844. * src/BtHandshakeMessage.cc
  1845. * src/BtHandshakeMessageValidator.h
  1846. * src/BtPieceMessage.cc
  1847. * src/BtPieceMessageValidator.h
  1848. * src/BtPortMessage.cc
  1849. * src/DHTFindNodeReplyMessage.cc
  1850. * src/DHTGetPeersReplyMessage.cc
  1851. * src/DHTMessageFactoryImpl.cc
  1852. * src/DHTRoutingTableDeserializer.cc
  1853. * src/DHTRoutingTableSerializer.cc
  1854. * src/DHTTokenTracker.cc
  1855. * src/DefaultBtMessageFactory.cc
  1856. * src/IndexBtMessage.cc
  1857. * src/IndexBtMessage.h
  1858. * src/IndexBtMessageValidator.h
  1859. * src/Makefile.am
  1860. * src/PeerMessageUtil.cc: Removed.
  1861. * src/PeerMessageUtil.h: Removed.
  1862. * src/RangeBtMessage.cc
  1863. * src/RangeBtMessage.h
  1864. * src/RangeBtMessageValidator.h
  1865. * src/UTPexExtensionMessage.cc
  1866. * src/ZeroBtMessage.cc
  1867. * src/ZeroBtMessage.h
  1868. * src/bittorrent_helper.cc
  1869. * src/bittorrent_helper.h
  1870. * test/BittorrentHelperTest.cc
  1871. * test/BtAllowedFastMessageTest.cc
  1872. * test/BtBitfieldMessageTest.cc
  1873. * test/BtCancelMessageTest.cc
  1874. * test/BtChokeMessageTest.cc
  1875. * test/BtExtendedMessageTest.cc
  1876. * test/BtHandshakeMessageTest.cc
  1877. * test/BtHaveAllMessageTest.cc
  1878. * test/BtHaveMessageTest.cc
  1879. * test/BtHaveNoneMessageTest.cc
  1880. * test/BtInterestedMessageTest.cc
  1881. * test/BtNotInterestedMessageTest.cc
  1882. * test/BtPieceMessageTest.cc
  1883. * test/BtPortMessageTest.cc
  1884. * test/BtRejectMessageTest.cc
  1885. * test/BtRequestMessageTest.cc
  1886. * test/BtSuggestPieceMessageTest.cc
  1887. * test/BtUnchokeMessageTest.cc
  1888. * test/DHTFindNodeReplyMessageTest.cc
  1889. * test/DHTGetPeersReplyMessageTest.cc
  1890. * test/DHTMessageFactoryImplTest.cc
  1891. * test/DHTRoutingTableDeserializerTest.cc
  1892. * test/DHTRoutingTableSerializerTest.cc
  1893. * test/DefaultBtMessageFactoryTest.cc
  1894. * test/DefaultExtensionMessageFactoryTest.cc
  1895. * test/Makefile.am
  1896. * test/PeerListProcessorTest.cc
  1897. * test/PeerMessageUtilTest.cc: Removed.
  1898. * test/UTPexExtensionMessageTest.cc
  1899. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Limit the size of values list when sending get_peers reply.
  1901. * src/DHTGetPeersReplyMessage.cc
  1902. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Updated banner
  1904. * doc/xmlrpc/aria2rpc
  1905. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Added missing help message for remove command.
  1907. * doc/xmlrpc/aria2rpc
  1908. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Generated configure and config.h.in
  1910. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1911. Add check for fork(), which is missing on MinGW
  1912. * src/daemon.cc
  1913. * configure.ac
  1914. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1916. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1917. Util::httpGMT().
  1918. * src/Util.cc
  1919. * src/Util.h
  1920. * test/UtilTest.cc
  1921. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. * Release 1.6.0
  1923. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Fixed a path to xmlrpc/README.txt
  1925. * doc/Makefile.am
  1926. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Added XML-RPC in -v Configuration output.
  1928. * src/FeatureConfig.cc
  1929. * src/FeatureConfig.h
  1930. * test/FeatureConfigTest.cc
  1931. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Updated Bulgarian, Russian, Slovak and Japanese
  1933. translations. Thanks to all translators.
  1934. * po/bg.po
  1935. * po/ja.po
  1936. * po/ru.po
  1937. * po/sk.po
  1938. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Removed --retry-wait option from aria2rpc
  1940. * doc/xmlrpc/aria2rpc
  1941. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Removed --retry-wait option from man page.
  1943. * doc/aria2c.1.txt
  1944. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Removed --retry-wait option since the current architecture doesn't
  1946. allow sleep for particular URI.
  1947. * src/AbstractCommand.cc
  1948. * src/OptionHandlerFactory.cc
  1949. * src/download_helper.cc
  1950. * src/prefs.cc
  1951. * src/prefs.h
  1952. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Removed Retry-After header support. Since the current architecture
  1954. doesn't allow sleep for particular URI.
  1955. * src/HttpSkipResponseCommand.cc
  1956. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Updated the help message for --daemon option.
  1958. * doc/aria2c.1.txt
  1959. * src/usage_text.h
  1960. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Added our own daemon() function for systems which desn't have
  1962. daemon(3).
  1963. * configure.ac
  1964. * src/Makefile.am
  1965. * src/daemon.cc
  1966. * src/daemon.h
  1967. * src/option_processing.cc
  1968. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Simplified File::getCurrentDir()
  1970. * src/File.cc
  1971. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Use exit() instead of _exit
  1973. * src/RequestGroupMan.cc
  1974. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Replaced "CATEGORY" with "TAGS".
  1976. * src/usage_text.h
  1977. * doc/aria2c.1.txt
  1978. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Updated the help message for --help option.
  1980. * src/usage_text.h
  1981. * doc/aria2c.1.txt
  1982. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Updated man page for added help tags.
  1984. * doc/aria2c.1.txt
  1985. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Added help category #file. Added #file tag to the options related
  1987. to downloaded file.
  1988. * src/OptionHandlerFactory.cc
  1989. * src/help_tags.h
  1990. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Added help categories: #cookie and #hook. Added #https tag to
  1992. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1993. * src/OptionHandlerFactory.cc
  1994. * src/help_tags.h
  1995. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Made MSG_NOT_FILE translatable.
  1997. * src/message.h
  1998. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Updated man page for --help option.
  2000. * doc/aria2c.1.txt
  2001. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Updated doc.
  2003. * src/XmlRpcMethod.h
  2004. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Help category now starts with "#" to distinguish a category from
  2006. keyword search. For example, "http" categroy is now "#http". You
  2007. can type "--help=#http" to get explanation of options related to
  2008. http. If '#' is omitted, then the argument is treated as a keyword
  2009. and aria2 searches options whose name includes the keyword and
  2010. print matched ones. For example, "--help=http" will show options
  2011. whose name includes "http".
  2012. * src/OptionHandlerFactory.cc
  2013. * src/help_tags.h
  2014. * src/usage_text.h
  2015. * src/version_usage.cc
  2016. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Documented missing experimental tag and newly added xml-rpc tag in
  2018. man page.
  2019. * doc/aria2c.1.txt
  2020. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Added xml-rpc help tag. Tagged xml-rpc related options with
  2022. xml-rpc tag.
  2023. * src/OptionHandlerFactory.cc
  2024. * src/help_tags.h
  2025. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Updated message when a path is not a file. Updated common message
  2027. for wrong option.
  2028. * src/OptionHandlerException.cc
  2029. * src/message.h
  2030. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2031. Use File::isFile() instead of File::exists(). Updated message when
  2032. a path is not a file.
  2033. * src/OptionHandlerImpl.cc
  2034. * src/message.h
  2035. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Fixed the bug that server performence profile is not updated when
  2037. aria2c was terminated by emergency shutdown.
  2038. * src/TrackerWatcherCommand.cc
  2039. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Use LocalFilePathOptionHandler for -T and -M option.
  2041. Updated message of MSG_FILE_NOT_EXIST.
  2042. * src/OptionHandlerFactory.cc
  2043. * src/message.h
  2044. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Added LocalFilePathOptionHandler which check whether the specified
  2046. file path does exist or not.
  2047. * src/OptionHandlerImpl.cc
  2048. * src/message.h
  2049. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Updated wiki page URI.
  2051. * README
  2052. * doc/aria2c.1.txt
  2053. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Added README.txt for xmlrpc directory.
  2055. * doc/Makefile.am
  2056. * doc/xmlrpc/README.txt
  2057. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Bump up version number to 1.6.0.
  2059. * configure.ac
  2060. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Added XML-RPC client scripts written in ruby.
  2062. * doc/Makefile.am
  2063. * doc/xmlrpc/aria2mon
  2064. * doc/xmlrpc/aria2rpc
  2065. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Added support for IPv6 literal address in URI. Now aria2 can
  2067. handle URI such as http://[::1]/
  2068. * src/HttpRequest.cc
  2069. * src/HttpRequest.h
  2070. * src/Request.cc
  2071. * src/Request.h
  2072. * test/HttpRequestTest.cc
  2073. * test/OptionHandlerTest.cc
  2074. * test/RequestTest.cc
  2075. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Fixed the bug that HTTP request header for XML-RPC request is not
  2077. parsed properly.
  2078. * src/HttpHeader.cc
  2079. * src/HttpHeaderProcessor.cc
  2080. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Fixed the bug that XML-RPC authorization might be done before HTTP
  2082. request header is fully received.
  2083. * src/HttpServerCommand.cc
  2084. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Documented --xml-rpc-listen-all option in man page.
  2086. * doc/aria2c.1.txt
  2087. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Added --xml-rpc-listen-all option. If true is given to this
  2089. option, aria2 listens incoming XML-RPC requests on all network
  2090. interfaces. If false is given, listens only on local loopback
  2091. interface. The default value is false.
  2092. * src/HttpListenCommand.cc
  2093. * src/OptionHandlerFactory.cc
  2094. * src/SocketCore.cc
  2095. * src/SocketCore.h
  2096. * src/prefs.cc
  2097. * src/prefs.h
  2098. * src/usage_text.h
  2099. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. * Release 1.5.2
  2101. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Updated Ukrainian and Russian translations. Thanks to all
  2103. translators.
  2104. * po/ru.po
  2105. * po/uk.po
  2106. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Bump up version number to 1.5.2
  2108. * configure.ac
  2109. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Get comment, comment.utf-8, created by and creation date from
  2111. .torrent file and print them in -S output.
  2112. * src/bittorrent_helper.cc
  2113. * src/bittorrent_helper.h
  2114. * test/BittorrentHelperTest.cc
  2115. * test/test.torrent
  2116. * test/utf8.torrent
  2117. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Show exact file size along in -S option output.
  2119. * src/Util.h
  2120. * src/bittorrent_helper.cc
  2121. * test/UtilTest.cc
  2122. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Avoided unnecessary memory allocation in
  2124. BitfieldMan::getCompletedLength().
  2125. * src/BitfieldMan.cc
  2126. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Fixed the bug that download fails if
  2128. SocketCore::establishConnection() throws exception and aria2
  2129. doesn't try another address.
  2130. * src/AbstractCommand.cc
  2131. * src/InitiateConnectionCommand.cc
  2132. * src/message.h
  2133. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2135. detected properly.
  2136. * m4/sqlite3.m4
  2137. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2139. because it causes compile error if PARAMS macro is defined.
  2140. * src/XmlRpcElements.cc
  2141. * src/XmlRpcElements.h
  2142. * src/XmlRpcRequestParserStateImpl.cc
  2143. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. * Release 1.5.1
  2145. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Bump up version number to 1.5.1
  2147. * configure.ac
  2148. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Fixed compile error without BitTorrent support
  2150. * src/DefaultBtProgressInfoFile.cc
  2151. * src/DownloadEngine.cc
  2152. * src/DownloadEngine.h
  2153. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Added missing '=' in Download Results
  2155. * src/RequestGroupMan.cc
  2156. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Fixed compiler warning
  2158. * src/DefaultBtProgressInfoFile.cc
  2159. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Fixed compiler warning on 32bit systems.
  2161. * src/DownloadCommand.cc
  2162. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Call flush from ServerStatMan::save()
  2164. * src/ServerStatMan.cc
  2165. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Check stream status after file is opened.
  2167. * src/CookieStorage.cc
  2168. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Rewritten Signature::save()
  2170. * src/Signature.cc
  2171. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Rewritten RequestGroupMan::saveServerStat()
  2173. * src/RequestGroupMan.cc
  2174. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Rewritten stream error handling
  2176. * src/DHTAutoSaveCommand.cc
  2177. * src/DHTRoutingTableDeserializer.cc
  2178. * src/DHTRoutingTableSerializer.cc
  2179. * src/DHTSetup.cc
  2180. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Check stream status after file is opened.
  2182. * src/DefaultBtProgressInfoFile.cc
  2183. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Rewritten stream error handling
  2185. * src/DefaultBtProgressInfoFile.cc
  2186. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Make sure that stream is closed before renaming file. Unit test
  2188. fails on mingw32 in the previous implementation.
  2189. * src/CookieStorage.cc
  2190. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Fixed the unit test error without sqlite3
  2192. * test/CookieStorageTest.cc
  2193. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Fixed the undefined reference error
  2195. * test/HttpResponseTest.cc
  2196. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. * Release 1.5.0
  2198. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2200. Ukrainian translations. Thanks to all translators.
  2201. * po/ru.po
  2202. * po/it.po
  2203. * po/da.po
  2204. * po/bg.po
  2205. * po/ja.po
  2206. * po/uk.po
  2207. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Added missing src/Logger.cc
  2209. * src/Logger.cc
  2210. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Rewritten Logger to avoiding constly virtual call.
  2212. * src/LogFactory.cc
  2213. * src/LogFactory.h
  2214. * src/Logger.h
  2215. * src/Makefile.am
  2216. * src/Makefile.in
  2217. * src/NullLogger.h: Removed.
  2218. * src/SimpleLogger.cc
  2219. * src/SimpleLogger.h
  2220. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Updated doc
  2222. * src/main.cc
  2223. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Updated debug log message
  2225. * src/AbstractCommand.cc
  2226. * src/message.h
  2227. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Avoid to create zombie process when commands specified in
  2229. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2230. X and NetBSD.
  2231. * src/main.cc
  2232. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Fixed typo
  2234. * src/usage_text.h
  2235. * doc/aria2c.1.txt
  2236. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Documented 'errorCode' of tellStatus in man page.
  2238. * doc/aria2c.1.txt
  2239. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2241. This key is only available for stopped/completed downloads and its
  2242. value is the error code defined in EXIT STATUS in man page.
  2243. * src/XmlRpcMethodImpl.cc
  2244. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Fixed the bug that session download length is not updated when
  2246. PeerStat is not fastest one.
  2247. * src/SegmentMan.cc
  2248. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Updated doc.
  2250. * doc/aria2c.1.txt
  2251. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Updated doc.
  2253. * src/AbstractCommand.cc
  2254. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Handle the case when DownloadContext has no FileEntry.
  2256. * src/XmlRpcMethodImpl.cc
  2257. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Handle the situation where struct option.name is char *.
  2259. * configure.ac
  2260. * src/OptionParser.cc
  2261. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Code cleanup
  2263. * src/AbstractCommand.cc
  2264. * src/DownloadCommand.cc
  2265. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Use option of each download to create AuthConfig instead of global
  2267. option.
  2268. * src/AuthConfigFactory.cc
  2269. * src/AuthConfigFactory.h
  2270. * src/FtpNegotiationCommand.cc
  2271. * src/HttpRequest.cc
  2272. * src/HttpRequest.h
  2273. * src/HttpRequestCommand.cc
  2274. * src/HttpSkipResponseCommand.cc
  2275. * src/MultiUrlRequestInfo.cc
  2276. * test/AuthConfigFactoryTest.cc
  2277. * test/FtpConnectionTest.cc
  2278. * test/HttpRequestTest.cc
  2279. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Don't call prepareForRetry(1) if all segments are ignored in
  2281. SegmentMan.
  2282. * src/AbstractCommand.cc
  2283. * src/BitfieldMan.cc
  2284. * src/BitfieldMan.h
  2285. * src/SegmentMan.cc
  2286. * src/SegmentMan.h
  2287. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Removed FileEntry::getAssociatedUris()
  2289. * src/FileEntry.h
  2290. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Updated doc: TODO1.5 -> TODO
  2292. * src/FileEntry.cc
  2293. * src/HttpResponseCommand.cc
  2294. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2296. involved.
  2297. * src/RequestGroup.cc
  2298. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Eliminated duplicated filterBitfield initialization code.
  2300. * src/BitfieldMan.cc
  2301. * src/BitfieldMan.h
  2302. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2304. relatively naive approach, though). For DownloadFailureException,
  2305. we handle the case when req is null properly.
  2306. * src/AbstractCommand.cc
  2307. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Added function returning suffix of control file to
  2309. DefaultBtProgressInfoFile.
  2310. * src/DefaultBtProgressInfoFile.cc
  2311. * src/DefaultBtProgressInfoFile.h
  2312. * src/RequestGroup.cc
  2313. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Documented getVersion in man page.
  2315. * doc/aria2c.1.txt
  2316. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Documented type of offset and num for tellWaiting xml-rpc method.
  2318. * doc/aria2c.1.txt
  2319. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Implemented getVersion xml-rpc method. This method returns struct
  2321. which has 2 key-value pairs: "version" key is associated to the
  2322. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2323. associated to the list of enabled features, such as "Async DNS",
  2324. "BitTorrent".
  2325. * src/FeatureConfig.h
  2326. * src/XmlRpcMethodFactory.cc
  2327. * src/XmlRpcMethodImpl.cc
  2328. * src/XmlRpcMethodImpl.h
  2329. * test/XmlRpcMethodTest.cc
  2330. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2332. for compatibility issue.
  2333. * src/SocketCore.cc
  2334. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Fixed compile error with openSSL
  2336. * src/bittorrent_helper.cc
  2337. * src/messageDigest.h
  2338. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Removed bad code: setting certificate type priority to key
  2340. exchange priority.
  2341. * src/SocketCore.cc
  2342. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Disconnect seeder if client is also in seed state.
  2344. * src/BtBitfieldMessage.cc
  2345. * src/BtHaveAllMessage.cc
  2346. * src/BtHaveMessage.cc
  2347. * src/message.h
  2348. * test/BtBitfieldMessageTest.cc
  2349. * test/BtHaveAllMessageTest.cc
  2350. * test/BtHaveMessageTest.cc
  2351. * test/MockPieceStorage.h
  2352. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Keep CreateRequestCommand in queue when no segment is available so
  2354. that they can pick up pieces which slow BitTorrent peers are
  2355. downloading.
  2356. * src/AbstractCommand.cc
  2357. * src/CreateRequestCommand.cc
  2358. * src/CreateRequestCommand.h
  2359. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. --bt-stop-timeout now only checks download speed.
  2361. * src/BtStopDownloadCommand.cc
  2362. * src/BtStopDownloadCommand.h
  2363. * src/BtSetup.cc
  2364. * src/usage_text.h
  2365. * doc/aria2c.1.txt
  2366. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Fixed compile error regarding BUFSIZE.
  2368. * src/DownloadCommand.cc
  2369. * src/DownloadCommand.h
  2370. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Documented tellWaiting xml-rpc method in man page.
  2372. * doc/aria2c.1.txt
  2373. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Bump up version number to 1.5.0
  2375. * configure.ac
  2376. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Removed resolved TODO1.5
  2378. * src/AbstractCommand.cc
  2379. * src/DownloadCommand.cc
  2380. * src/RequestGroup.cc
  2381. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Release pooled and in-flight Request objectsand URIResult objects
  2383. in FileEntry after download completed.
  2384. * src/DownloadContext.cc
  2385. * src/DownloadContext.h
  2386. * src/FileEntry.cc
  2387. * src/FileEntry.h
  2388. * src/RequestGroup.cc
  2389. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Set manual and source attribute in aria2c.1.txt
  2391. * doc/aria2c.1.txt
  2392. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Documented that the default value of --use-head is 'false' in man
  2394. page.
  2395. * doc/aria2c.1.txt
  2396. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Added bt-stop-timeout option to -i list.
  2398. * doc/aria2c.1.txt
  2399. * src/download_helper.cc
  2400. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Fixed typo
  2402. * doc/aria2c.1.txt
  2403. * src/usage_text.h
  2404. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Removed peer-id-prefix option from -i list.
  2406. * doc/aria2c.1.txt
  2407. * src/download_helper.cc
  2408. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Fixed typo
  2410. * doc/aria2c.1.txt
  2411. * src/usage_text.h
  2412. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Documented --bt-stop-timeout option in man page.
  2414. * doc/aria2c.1.txt
  2415. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Updated README regarding multi-file torrent web-seeding.
  2417. * doc/README.txt
  2418. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Updated man page regarding multi-file torrent web-seeding.
  2420. * doc/aria2c.1.txt
  2421. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Updated doc
  2423. * src/version_usage.cc
  2424. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Winsock select() doesn't work if no socket is in FD_SET. To
  2426. overcome this problem, a dummy socket is added to FD_SET and it is
  2427. given to select().
  2428. * src/SelectEventPoll.cc
  2429. * src/SelectEventPoll.h
  2430. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Disabled --use-head option by default because --use-head=true
  2432. causes problems on some web sites.
  2433. * src/OptionHandlerFactory.cc
  2434. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Print URL List in -S option for torrent.
  2436. * src/bittorrent_helper.cc
  2437. * src/bittorrent_helper.h
  2438. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Allocate buffer in ctor of DownloadCommand.
  2440. * src/DownloadCommand.cc
  2441. * src/DownloadCommand.h
  2442. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Removed DiskAdaptor::onDownloadComplete()
  2444. * src/DirectDiskAdaptor.cc
  2445. * src/DirectDiskAdaptor.h
  2446. * src/DiskAdaptor.h
  2447. * src/MultiDiskAdaptor.cc
  2448. * src/MultiDiskAdaptor.h
  2449. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Committed missing BtStopDownloadCommand.{cc,h}
  2451. * src/BtStopDownloadCommand.cc
  2452. * src/BtStopDownloadCommand.h
  2453. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2455. download if the download speed is 0 and the number of seeder is 0
  2456. in consecutive SEC seconds. By default, this function is disabled.
  2457. * src/BtSetup.cc
  2458. * src/Makefile.am
  2459. * src/OptionHandlerFactory.cc
  2460. * src/prefs.cc
  2461. * src/prefs.h
  2462. * src/usage_text.h
  2463. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Removed the call to DiskAdaptor::onDownloadComplete() from
  2465. BtCheckIntegrityEntry and DefaultPieceStorage.
  2466. * src/BtCheckIntegrityEntry.cc
  2467. * src/DefaultPieceStorage.cc
  2468. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Commented out throw statements when number of piece is 0 to
  2470. download 0 length torrent.
  2471. * src/bittorrent_helper.cc
  2472. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Call RequestGroup::createNextCommandWithAdj() from
  2474. BtFileAllocationEntry if at least one FileEntry has URI. The
  2475. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2476. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2477. * src/BtFileAllocationEntry.cc
  2478. * src/FileEntry.h
  2479. * src/RequestGroup.cc
  2480. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Generate peer ID after SimpleRandomizer is initialized.
  2482. * src/main.cc
  2483. * src/option_processing.cc
  2484. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Removed unused method argument.
  2486. * src/CreateRequestCommand.cc
  2487. * src/RequestGroup.cc
  2488. * src/RequestGroup.h
  2489. * src/RequestGroupMan.cc
  2490. * src/TrackerWatcherCommand.cc
  2491. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Made URI reusing function work.
  2493. * src/CreateRequestCommand.cc
  2494. * src/FileEntry.cc
  2495. * src/FileEntry.h
  2496. * test/FileEntryTest.cc
  2497. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Add formerly fastest PeerStat's sessionDownloadLength to new
  2499. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2500. bytes in a session.
  2501. * src/PeerStat.cc
  2502. * src/SegmentMan.cc
  2503. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. If pipelining is enabled, we can always pool socket.
  2505. * src/HttpDownloadCommand.cc
  2506. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. In a single file download, file size becomes known just after
  2508. downloading, set total length to FileEntry object when download
  2509. completed.
  2510. * src/DownloadCommand.cc
  2511. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Use std::vector::reserve() for fileEntries and pieceHashes in
  2513. bittorrent_helper
  2514. * src/bittorrent_helper.cc
  2515. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2517. Removed hidden option PREF_RESET_URI.
  2518. * src/AbstractCommand.cc
  2519. * src/OptionHandlerFactory.cc
  2520. * src/prefs.cc
  2521. * src/prefs.h
  2522. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Removed unused variable/function.
  2524. * src/PeerStat.h
  2525. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Show first URL in Download Results if file path is not available.
  2527. * src/FileEntry.h
  2528. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Throw exception if file path doesn't exist in FTP URL.
  2530. * src/InitiateConnectionCommandFactory.cc
  2531. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2533. * src/BitfieldMan.cc
  2534. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2536. of PeerStat in SegmentMan. peerStats is used for calculating
  2537. download speed. Therefore all active PeerStats should be in
  2538. there. Another one is _fastestPeerStats and it only contains
  2539. fastest PeerStat for each hostname/protocol pair. They are used
  2540. for updating ServerStat.
  2541. * src/DownloadCommand.cc
  2542. * src/Request.h
  2543. * src/RequestGroupMan.cc
  2544. * src/SegmentMan.cc
  2545. * src/SegmentMan.h
  2546. * test/SegmentManTest.cc
  2547. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Try all available addresses returned by DNS until it gets
  2549. connected in HTTP(S)/FTP download
  2550. * src/AbstractCommand.cc
  2551. * src/AbstractCommand.h
  2552. * src/AbstractProxyRequestCommand.cc
  2553. * src/AbstractProxyRequestCommand.h
  2554. * src/DNSCache.h
  2555. * src/DownloadEngine.cc
  2556. * src/DownloadEngine.h
  2557. * src/FtpInitiateConnectionCommand.cc
  2558. * src/FtpInitiateConnectionCommand.h
  2559. * src/FtpNegotiationCommand.cc
  2560. * src/FtpNegotiationCommand.h
  2561. * src/HttpInitiateConnectionCommand.cc
  2562. * src/HttpInitiateConnectionCommand.h
  2563. * src/HttpRequestCommand.cc
  2564. * src/HttpRequestCommand.h
  2565. * src/InitiateConnectionCommand.cc
  2566. * src/InitiateConnectionCommand.h
  2567. * test/DNSCacheTest.cc
  2568. * test/Makefile.am
  2569. * test/SimpleDNSCacheTest.cc
  2570. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Updated doc
  2572. * src/download_helper.cc
  2573. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Refactored fieldMan ctor.
  2575. * src/BitfieldMan.cc
  2576. * src/BitfieldMan.h
  2577. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Don't print "No files to download." message if -S is given.
  2579. * src/main.cc
  2580. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Set referer and method to newly created Request object.
  2582. * src/CreateRequestCommand.cc
  2583. * src/FileEntry.cc
  2584. * src/FileEntry.h
  2585. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2587. * src/AbstractCommand.cc
  2588. * src/AbstractCommand.h
  2589. * src/CreateRequestCommand.cc
  2590. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Get proxy download working
  2592. * src/AbstractProxyRequestCommand.cc
  2593. * src/AbstractProxyRequestCommand.h
  2594. * src/AbstractProxyResponseCommand.cc
  2595. * src/AbstractProxyResponseCommand.h
  2596. * src/FtpInitiateConnectionCommand.cc
  2597. * src/FtpTunnelRequestCommand.cc
  2598. * src/FtpTunnelRequestCommand.h
  2599. * src/FtpTunnelResponseCommand.cc
  2600. * src/FtpTunnelResponseCommand.h
  2601. * src/HttpInitiateConnectionCommand.cc
  2602. * src/HttpProxyRequestCommand.cc
  2603. * src/HttpProxyRequestCommand.h
  2604. * src/HttpProxyResponseCommand.cc
  2605. * src/HttpProxyResponseCommand.h
  2606. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Use SegmentMan::getSegment(cuid) for single file download.
  2608. * src/AbstractCommand.cc
  2609. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Fixed bufSize calculation
  2611. * src/DownloadCommand.cc
  2612. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Don't append "/" if base URI ends with "/".
  2614. * src/bittorrent_helper.cc
  2615. * test/url-list-multiFile.torrent
  2616. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. HTTP pipelining is now working. Fixed Segmention fault in
  2618. BitfieldMan's copy ctor.
  2619. * src/AbstractCommand.cc
  2620. * src/BitfieldMan.cc
  2621. * src/BitfieldMan.h
  2622. * src/DownloadCommand.cc
  2623. * src/HttpDownloadCommand.cc
  2624. * src/HttpRequest.cc
  2625. * src/SegmentMan.cc
  2626. * src/SegmentMan.h
  2627. * test/BitfieldManTest.cc
  2628. * test/SegmentManTest.cc
  2629. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Removed ServerHost. Same functionality is implemented using
  2631. FileEntry's in-flight Request objects.
  2632. * src/AbstractCommand.cc
  2633. * src/BtDependency.cc
  2634. * src/CreateRequestCommand.cc
  2635. * src/FileEntry.cc
  2636. * src/FileEntry.h
  2637. * src/FtpNegotiationCommand.cc
  2638. * src/HttpResponseCommand.cc
  2639. * src/Makefile.am
  2640. * src/Metalink2RequestGroup.cc
  2641. * src/RequestGroup.cc
  2642. * src/RequestGroup.h
  2643. * src/ServerHost.cc: Removed
  2644. * src/ServerHost.h: Removed
  2645. * test/BtDependencyTest.cc
  2646. * test/FileEntryTest.cc
  2647. * test/RequestGroupTest.cc
  2648. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Rewritten PeerStat handling. In the previous implementation,
  2650. faster command tries to find slower command. In this new
  2651. implementation, slower command tries to find faster command.
  2652. PeerStat is now created in each HTTP/FTP request to get download
  2653. rate correctly. If the download range is small, the download rate
  2654. tends to small and this will occur at the later stage of download.
  2655. * src/AbstractCommand.cc
  2656. * src/DownloadCommand.cc
  2657. * src/FileEntry.cc
  2658. * src/FileEntry.h
  2659. * src/Request.cc
  2660. * src/Request.h
  2661. * src/RequestGroup.h
  2662. * src/RequestGroupMan.cc
  2663. * src/SegmentMan.cc
  2664. * src/SegmentMan.h
  2665. * test/SegmentManTest.cc
  2666. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Removed _uris from RequestGroup. All functions that refer to _uris
  2668. were moved to FileEntry. Exit status code are now defined in
  2669. DownloadResultCode.h.
  2670. * src/AbstractCommand.cc
  2671. * src/AdaptiveURISelector.cc
  2672. * src/AdaptiveURISelector.h
  2673. * src/AutoSaveCommand.cc
  2674. * src/BtPostDownloadHandler.cc
  2675. * src/CheckIntegrityDispatcherCommand.cc
  2676. * src/CookieStorage.cc
  2677. * src/DHTAutoSaveCommand.cc
  2678. * src/DHTBucketRefreshCommand.cc
  2679. * src/DHTEntryPointNameResolveCommand.cc
  2680. * src/DHTInteractionCommand.cc
  2681. * src/DHTPeerAnnounceCommand.cc
  2682. * src/DHTTokenUpdateCommand.cc
  2683. * src/DlAbortEx.h
  2684. * src/DlRetryEx.h
  2685. * src/DownloadCommand.cc
  2686. * src/DownloadContext.h
  2687. * src/DownloadFailureException.h
  2688. * src/DownloadResult.h
  2689. * src/DownloadResultCode.h
  2690. * src/FeedbackURISelector.cc
  2691. * src/FeedbackURISelector.h
  2692. * src/FileEntry.cc
  2693. * src/FileEntry.h
  2694. * src/FtpNegotiationCommand.cc
  2695. * src/HttpListenCommand.cc
  2696. * src/HttpResponseCommand.cc
  2697. * src/HttpServerResponseCommand.cc
  2698. * src/HttpSkipResponseCommand.cc
  2699. * src/InOrderURISelector.cc
  2700. * src/InOrderURISelector.h
  2701. * src/Makefile.am
  2702. * src/Makefile.in
  2703. * src/Metalink2RequestGroup.cc
  2704. * src/MultiUrlRequestInfo.cc
  2705. * src/MultiUrlRequestInfo.h
  2706. * src/OptionHandlerFactory.cc
  2707. * src/PeerListenCommand.cc
  2708. * src/RecoverableException.h
  2709. * src/RequestGroup.cc
  2710. * src/RequestGroup.h
  2711. * src/RequestGroupMan.cc
  2712. * src/RequestGroupMan.h
  2713. * src/TimedHaltCommand.cc
  2714. * src/TrackerWatcherCommand.cc
  2715. * src/URIResult.cc
  2716. * src/URIResult.h
  2717. * src/URISelector.h
  2718. * src/XmlRpcMethodImpl.cc
  2719. * src/bittorrent_helper.cc
  2720. * src/bittorrent_helper.h
  2721. * src/download_helper.cc
  2722. * src/main.cc
  2723. * src/option_processing.cc
  2724. * test/BtDependencyTest.cc
  2725. * test/BtPostDownloadHandlerTest.cc
  2726. * test/CookieStorageTest.cc
  2727. * test/DefaultBtMessageDispatcherTest.cc
  2728. * test/DownloadHandlerFactoryTest.cc
  2729. * test/DownloadHelperTest.cc
  2730. * test/FeedbackURISelectorTest.cc
  2731. * test/FileEntryTest.cc
  2732. * test/InOrderURISelectorTest.cc
  2733. * test/Metalink2RequestGroupTest.cc
  2734. * test/MetalinkPostDownloadHandlerTest.cc
  2735. * test/RequestGroupManTest.cc
  2736. * test/RequestGroupTest.cc
  2737. * test/XmlRpcMethodTest.cc
  2738. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Removed MockBtContext.h
  2740. * test/Makefile.am
  2741. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Removed _currentRequest from StreamCheckIntegrityEntry and
  2743. StreamFileAllocationEntry.
  2744. * src/AbstractCommand.cc
  2745. * src/HttpResponseCommand.cc
  2746. * src/RequestGroup.cc
  2747. * src/StreamCheckIntegrityEntry.cc
  2748. * src/StreamCheckIntegrityEntry.h
  2749. * src/StreamFileAllocationEntry.cc
  2750. * src/StreamFileAllocationEntry.h
  2751. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Rewritten DownloadContext and removed SingleFileDownloadContext
  2753. and BtContext and its derived classes. BitTorrent specific
  2754. attributes are now set by DownloadContext::setAttribute() with key
  2755. bittorrent::BITTORRENT.
  2756. * src/AbstractBtMessage.cc
  2757. * src/AbstractBtMessage.h
  2758. * src/AbstractCommand.cc
  2759. * src/AbstractCommand.h
  2760. * src/AbstractProxyRequestCommand.cc
  2761. * src/AbstractProxyResponseCommand.cc
  2762. * src/ActivePeerConnectionCommand.cc
  2763. * src/ActivePeerConnectionCommand.h
  2764. * src/AnnounceList.cc
  2765. * src/BtCheckIntegrityEntry.cc
  2766. * src/BtConstants.h
  2767. * src/BtContext.h: Removed
  2768. * src/BtDependency.cc
  2769. * src/BtExtendedMessage.cc
  2770. * src/BtPieceMessage.cc
  2771. * src/BtPieceMessage.h
  2772. * src/BtPostDownloadHandler.cc
  2773. * src/BtRegistry.cc
  2774. * src/BtRegistry.h
  2775. * src/BtSetup.cc
  2776. * src/CheckIntegrityCommand.cc
  2777. * src/CheckIntegrityEntry.cc
  2778. * src/ChecksumCheckIntegrityEntry.cc
  2779. * src/ConsoleStatCalc.cc
  2780. * src/ContentTypeRequestGroupCriteria.cc
  2781. * src/DHTGetPeersCommand.cc
  2782. * src/DHTGetPeersCommand.h
  2783. * src/DHTPeerLookupTask.cc
  2784. * src/DHTPeerLookupTask.h
  2785. * src/DHTTaskFactory.h
  2786. * src/DHTTaskFactoryImpl.cc
  2787. * src/DHTTaskFactoryImpl.h
  2788. * src/DefaultBtAnnounce.cc
  2789. * src/DefaultBtAnnounce.h
  2790. * src/DefaultBtContext.cc: Removed
  2791. * src/DefaultBtContext.h: Removed
  2792. * src/DefaultBtInteractive.cc
  2793. * src/DefaultBtInteractive.h
  2794. * src/DefaultBtMessageDispatcher.cc
  2795. * src/DefaultBtMessageDispatcher.h
  2796. * src/DefaultBtMessageFactory.cc
  2797. * src/DefaultBtMessageFactory.h
  2798. * src/DefaultBtMessageReceiver.cc
  2799. * src/DefaultBtMessageReceiver.h
  2800. * src/DefaultBtProgressInfoFile.cc
  2801. * src/DefaultBtRequestFactory.cc
  2802. * src/DefaultBtRequestFactory.h
  2803. * src/DefaultExtensionMessageFactory.cc
  2804. * src/DefaultExtensionMessageFactory.h
  2805. * src/DefaultPeerStorage.cc
  2806. * src/DefaultPeerStorage.h
  2807. * src/DefaultPieceStorage.cc
  2808. * src/DefaultSegmentManFactory.cc
  2809. * src/DiskAdaptor.cc
  2810. * src/DiskAdaptor.h
  2811. * src/DownloadContext.cc
  2812. * src/DownloadContext.h
  2813. * src/DownloadEngine.cc
  2814. * src/DownloadEngineFactory.cc
  2815. * src/DownloadHandler.cc
  2816. * src/DownloadResult.h
  2817. * src/FileAllocationCommand.cc
  2818. * src/FileAllocationDispatcherCommand.cc
  2819. * src/FileAllocationEntry.cc
  2820. * src/FileEntry.h
  2821. * src/FillRequestGroupCommand.cc
  2822. * src/FtpDownloadCommand.cc
  2823. * src/FtpFinishDownloadCommand.cc
  2824. * src/FtpInitiateConnectionCommand.cc
  2825. * src/FtpNegotiationCommand.cc
  2826. * src/FtpTunnelRequestCommand.cc
  2827. * src/FtpTunnelResponseCommand.cc
  2828. * src/HandshakeExtensionMessage.cc
  2829. * src/HandshakeExtensionMessage.h
  2830. * src/HaveEraseCommand.cc
  2831. * src/HttpDownloadCommand.cc
  2832. * src/HttpInitiateConnectionCommand.cc
  2833. * src/HttpProxyRequestCommand.cc
  2834. * src/HttpProxyResponseCommand.cc
  2835. * src/HttpRequest.cc
  2836. * src/HttpRequest.h
  2837. * src/HttpRequestCommand.cc
  2838. * src/HttpResponseCommand.cc
  2839. * src/HttpServerBodyCommand.cc
  2840. * src/HttpServerCommand.cc
  2841. * src/HttpSkipResponseCommand.cc
  2842. * src/InitiateConnectionCommandFactory.cc
  2843. * src/InitiatorMSEHandshakeCommand.cc
  2844. * src/InitiatorMSEHandshakeCommand.h
  2845. * src/IteratableChecksumValidator.cc
  2846. * src/IteratableChecksumValidator.h
  2847. * src/IteratableChunkChecksumValidator.cc
  2848. * src/MSEHandshake.cc
  2849. * src/MSEHandshake.h
  2850. * src/Makefile.am
  2851. * src/Makefile.in
  2852. * src/Metalink2RequestGroup.cc
  2853. * src/MetalinkPostDownloadHandler.cc
  2854. * src/MultiDiskAdaptor.cc
  2855. * src/MultiDiskAdaptor.h
  2856. * src/MultiFileAllocationIterator.cc
  2857. * src/MultiUrlRequestInfo.cc
  2858. * src/PeerChokeCommand.cc
  2859. * src/PeerChokeCommand.h
  2860. * src/PeerInitiateConnectionCommand.cc
  2861. * src/PeerInitiateConnectionCommand.h
  2862. * src/PeerInteractionCommand.cc
  2863. * src/PeerInteractionCommand.h
  2864. * src/PeerReceiveHandshakeCommand.cc
  2865. * src/PieceHashCheckIntegrityEntry.cc
  2866. * src/RealtimeCommand.cc
  2867. * src/ReceiverMSEHandshakeCommand.cc
  2868. * src/RequestGroup.cc
  2869. * src/RequestGroup.h
  2870. * src/RequestGroupEntry.cc
  2871. * src/RequestGroupMan.cc
  2872. * src/SeedCheckCommand.cc
  2873. * src/SeedCheckCommand.h
  2874. * src/SegmentMan.cc
  2875. * src/ShareRatioSeedCriteria.h
  2876. * src/SingleFileDownloadContext.cc: Removed
  2877. * src/SingleFileDownloadContext.h: Removed
  2878. * src/SleepCommand.cc
  2879. * src/StreamCheckIntegrityEntry.cc
  2880. * src/TrackerWatcherCommand.cc
  2881. * src/TrackerWatcherCommand.h
  2882. * src/UnknownLengthPieceStorage.cc
  2883. * src/Util.cc
  2884. * src/Util.h
  2885. * src/XmlRpcMethodImpl.cc
  2886. * src/bittorrent_helper.cc
  2887. * src/bittorrent_helper.h
  2888. * src/download_helper.cc
  2889. * src/main.cc
  2890. * src/option_processing.cc
  2891. * test/BitfieldManTest.cc
  2892. * test/BittorrentHelperTest.cc
  2893. * test/BtCancelMessageTest.cc
  2894. * test/BtChokeMessageTest.cc
  2895. * test/BtDependencyTest.cc
  2896. * test/BtPieceMessageTest.cc
  2897. * test/BtPostDownloadHandlerTest.cc
  2898. * test/BtRegistryTest.cc
  2899. * test/BtRejectMessageTest.cc
  2900. * test/BtRequestMessageTest.cc
  2901. * test/DHTPeerAnnounceStorageTest.cc
  2902. * test/DefaultBtAnnounceTest.cc
  2903. * test/DefaultBtContextTest.cc: Removed
  2904. * test/DefaultBtMessageDispatcherTest.cc
  2905. * test/DefaultBtMessageFactoryTest.cc
  2906. * test/DefaultBtProgressInfoFileTest.cc
  2907. * test/DefaultBtRequestFactoryTest.cc
  2908. * test/DefaultExtensionMessageFactoryTest.cc
  2909. * test/DefaultPeerStorageTest.cc
  2910. * test/DefaultPieceStorageTest.cc
  2911. * test/DirectDiskAdaptorTest.cc
  2912. * test/DownloadContextTest.cc
  2913. * test/DownloadHandlerFactoryTest.cc
  2914. * test/DownloadHelperTest.cc
  2915. * test/HandshakeExtensionMessageTest.cc
  2916. * test/HttpRequestTest.cc
  2917. * test/HttpResponseTest.cc
  2918. * test/IteratableChecksumValidatorTest.cc
  2919. * test/IteratableChunkChecksumValidatorTest.cc
  2920. * test/MSEHandshakeTest.cc
  2921. * test/Makefile.am
  2922. * test/Makefile.in
  2923. * test/Metalink2RequestGroupTest.cc
  2924. * test/MetalinkPostDownloadHandlerTest.cc
  2925. * test/MockBtContext.h: Removed
  2926. * test/MockDHTTaskFactory.h
  2927. * test/MockDownloadContext.h: Removed
  2928. * test/MockPieceStorage.h
  2929. * test/MultiDiskAdaptorTest.cc
  2930. * test/MultiFileAllocationIteratorTest.cc
  2931. * test/RequestGroupManTest.cc
  2932. * test/RequestGroupTest.cc
  2933. * test/SegmentManTest.cc
  2934. * test/ShareRatioSeedCriteriaTest.cc
  2935. * test/SingleFileDownloadContextTest.cc: Removed
  2936. * test/UtilTest.cc
  2937. * test/XmlRpcMethodTest.cc
  2938. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Added experimental support of WEB-Seeding for multi-file torrent.
  2940. Due to fundamental changes in file handling in HTTP/FTP code, many
  2941. functions are not working: PeerStat, ServerHost, proxy..etc
  2942. * src/AbstractCommand.cc
  2943. * src/AbstractCommand.h
  2944. * src/BitfieldMan.cc
  2945. * src/BitfieldMan.h
  2946. * src/CreateRequestCommand.cc
  2947. * src/CreateRequestCommand.h
  2948. * src/DefaultPieceStorage.cc
  2949. * src/DefaultPieceStorage.h
  2950. * src/DownloadCommand.cc
  2951. * src/DownloadCommand.h
  2952. * src/DownloadContext.cc
  2953. * src/DownloadContext.h
  2954. * src/FileEntry.cc
  2955. * src/FileEntry.h
  2956. * src/FtpDownloadCommand.cc
  2957. * src/FtpDownloadCommand.h
  2958. * src/FtpFinishDownloadCommand.cc
  2959. * src/FtpFinishDownloadCommand.h
  2960. * src/FtpInitiateConnectionCommand.cc
  2961. * src/FtpInitiateConnectionCommand.h
  2962. * src/FtpNegotiationCommand.cc
  2963. * src/FtpNegotiationCommand.h
  2964. * src/FtpTunnelResponseCommand.cc
  2965. * src/HttpDownloadCommand.cc
  2966. * src/HttpDownloadCommand.h
  2967. * src/HttpInitiateConnectionCommand.cc
  2968. * src/HttpInitiateConnectionCommand.h
  2969. * src/HttpProxyResponseCommand.cc
  2970. * src/HttpRequest.cc
  2971. * src/HttpRequest.h
  2972. * src/HttpRequestCommand.cc
  2973. * src/HttpRequestCommand.h
  2974. * src/HttpResponseCommand.cc
  2975. * src/HttpResponseCommand.h
  2976. * src/HttpSkipResponseCommand.cc
  2977. * src/HttpSkipResponseCommand.h
  2978. * src/InitiateConnectionCommand.cc
  2979. * src/InitiateConnectionCommand.h
  2980. * src/InitiateConnectionCommandFactory.cc
  2981. * src/InitiateConnectionCommandFactory.h
  2982. * src/Makefile.am
  2983. * src/PieceStorage.h
  2984. * src/RequestGroup.cc
  2985. * src/RequestGroup.h
  2986. * src/RequestGroupMan.cc
  2987. * src/SegmentMan.cc
  2988. * src/SegmentMan.h
  2989. * src/SingleFileDownloadContext.h
  2990. * src/StreamFileAllocationEntry.cc
  2991. * src/TrackerWatcherCommand.cc
  2992. * src/UnknownLengthPieceStorage.cc
  2993. * src/UnknownLengthPieceStorage.h
  2994. * src/array_fun.h
  2995. * src/bitfield.h
  2996. * src/download_helper.cc
  2997. * test/DownloadContextTest.cc
  2998. * test/Makefile.am
  2999. * test/MockDownloadContext.h
  3000. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Added tellWaiting XML-RPC method.
  3002. * src/SingleFileDownloadContext.cc
  3003. * src/XmlRpcMethodFactory.cc
  3004. * src/XmlRpcMethodImpl.cc
  3005. * src/XmlRpcMethodImpl.h
  3006. * test/XmlRpcMethodTest.cc
  3007. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Updated CookieStorageTest
  3009. * test/CookieStorageTest.cc
  3010. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3012. handle excepion inside these functions.
  3013. * src/LibgnutlsTLSContext.cc
  3014. * src/LibgnutlsTLSContext.h
  3015. * src/LibsslTLSContext.cc
  3016. * src/LibsslTLSContext.h
  3017. * src/MultiUrlRequestInfo.cc
  3018. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Added comment
  3020. * src/RequestGroup.cc
  3021. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. In CookieStorage::load() and saveNsFormat(), handle exception
  3023. inside the functions. When saving Cookies, first write temporary
  3024. file and after successful writes, then renames it to final
  3025. destination.
  3026. * src/CookieStorage.cc
  3027. * src/CookieStorage.h
  3028. * src/MultiUrlRequestInfo.cc
  3029. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. The default value of --dir option is the absolute path to the
  3031. current directory. If getcwd() is failed, then it is ".", which is
  3032. the same value with old implementation. This change is necessary
  3033. because after daemon() call, the current working directory is
  3034. changed to /.
  3035. * src/File.cc
  3036. * src/File.h
  3037. * src/OptionHandlerFactory.cc
  3038. * src/option_processing.cc
  3039. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3040. Call daemon() with arguments(0,0), which means daemon() changes
  3041. current working directory to / and redirects stdin, stdout and
  3042. stderr to /dev/null.
  3043. * src/option_processing.cc
  3044. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Small performance optimizations.
  3046. * src/RequestGroupMan.cc
  3047. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3049. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3050. * src/RequestGroupMan.cc
  3051. * src/RequestGroupMan.h
  3052. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3054. setNoWiat(true) if newly created command calls
  3055. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3056. * src/HttpListenCommand.cc
  3057. * src/HttpServerBodyCommand.cc
  3058. * src/HttpServerCommand.cc
  3059. * src/HttpServerResponseCommand.cc
  3060. * src/InitiateConnectionCommand.cc
  3061. * src/RequestGroup.cc
  3062. * src/StreamFileAllocationEntry.cc
  3063. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Removed include vector
  3065. * src/BtRegistry.h
  3066. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Rewritten BtRegistry
  3068. * src/BtRegistry.cc
  3069. * src/BtRegistry.h
  3070. * src/BtSetup.cc
  3071. * src/ConsoleStatCalc.cc
  3072. * src/PeerInteractionCommand.cc
  3073. * src/PeerReceiveHandshakeCommand.cc
  3074. * src/ReceiverMSEHandshakeCommand.cc
  3075. * src/RequestGroup.cc
  3076. * src/XmlRpcMethodImpl.cc
  3077. * test/BtRegistryTest.cc
  3078. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3080. * src/DefaultBtProgressInfoFile.cc
  3081. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Throw an exception if position is less than 0.
  3083. * src/XmlRpcMethodImpl.cc
  3084. * test/XmlRpcMethodTest.cc
  3085. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3086. Use writeFilePath() in ConsoleStatCalc.cc
  3087. * src/ConsoleStatCalc.cc
  3088. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Receive the return value as const reference from
  3090. DownloadContext::getFileEntries().
  3091. * src/DefaultPieceStorage.cc
  3092. * src/RequestGroupMan.cc
  3093. * src/XmlRpcMethodImpl.cc
  3094. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. DownloadContext now has _fileEntries so that
  3096. DownloadContext::getFileEntries() can returns its const reference.
  3097. * src/DefaultBtContext.cc
  3098. * src/DefaultBtContext.h
  3099. * src/DownloadContext.cc
  3100. * src/DownloadContext.h
  3101. * src/SingleFileDownloadContext.cc
  3102. * src/SingleFileDownloadContext.h
  3103. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3105. writeFilePath() function template from RequestGroupMan.cc to
  3106. FileEntry.h
  3107. * src/FileEntry.h
  3108. * src/RequestGroupMan.cc
  3109. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Documented 'position' parameter is starting from 0 in man page.
  3111. * doc/aria2c.1.txt
  3112. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Updated doc.
  3114. * src/MSEHandshake.cc
  3115. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. Removed _acceptFeatures and its accessor functions from
  3117. RequestGroup since they are not used practically.
  3118. * src/HttpRequestCommand.cc
  3119. * src/RequestGroup.cc
  3120. * src/RequestGroup.h
  3121. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Removed member _maxTries from RequestGroup class to avoid
  3123. duplicate option value. Those classes who refer this variable
  3124. should use option value of PREF_MAX_TRIES directly.
  3125. * src/AbstractCommand.cc
  3126. * src/RequestGroup.cc
  3127. * src/RequestGroup.h
  3128. * src/TrackerWatcherCommand.cc
  3129. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. * Release 1.4.1
  3131. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Fixed compiler warnings on netbsd
  3133. * src/DHTConnectionImpl.cc
  3134. * src/PeerListenCommand.cc
  3135. * src/PeerSessionResource.cc
  3136. * src/SegmentMan.cc
  3137. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Updated Ukrainian translation. Thanks to all translators.
  3139. * po/uk.po
  3140. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Bump up version number to 1.4.1.
  3142. * configure.ac
  3143. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Added unit tests for strjoin, strconcat and strappend.
  3145. * test/a2functionalTest.cc
  3146. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Rewritten strconcat and strappend using operator+ instead of
  3148. append().
  3149. * src/a2functional.h
  3150. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3152. is enabled.
  3153. * src/Makefile.am
  3154. * test/Makefile.am
  3155. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Added countSeeder() function which counts seeder in the given
  3157. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3158. * src/ConsoleStatCalc.cc
  3159. * src/Peer.h
  3160. * src/XmlRpcMethodImpl.cc
  3161. * test/PeerTest.cc
  3162. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Documented missing seeder in getPeers xml-rpc method.
  3164. Documented uploadLength and numSeeders.
  3165. * doc/aria2c.1.txt
  3166. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Added uploadLength and numSeeders to the response of tellStatus
  3168. xml-rpc method. Assert that PeerStorage instance is not null
  3169. instead of checking if statement. It should be non-null in this
  3170. context.
  3171. * src/XmlRpcMethodImpl.cc
  3172. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3174. * src/XmlRpcResponse.cc
  3175. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Avoid intermediate object during string concatenation.
  3177. * src/HttpRequest.cc
  3178. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Added strjoin function template. Use it in pathJoin()
  3180. * src/Util.h
  3181. * src/a2functional.h
  3182. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Avoid intermediate object during string concatenation. Replaced
  3184. post-increment unary operator with pre-increment one in for loop.
  3185. * src/AdaptiveURISelector.cc
  3186. * src/AnnounceList.cc
  3187. * src/AuthConfig.h
  3188. * src/BtBitfieldMessage.cc
  3189. * src/BtExtendedMessage.cc
  3190. * src/BtHandshakeMessage.cc
  3191. * src/BtPieceMessage.cc
  3192. * src/BtPortMessage.cc
  3193. * src/Cookie.cc
  3194. * src/DHTAnnouncePeerMessage.cc
  3195. * src/DHTAutoSaveCommand.cc
  3196. * src/DHTGetPeersReplyMessage.cc
  3197. * src/DHTNode.cc
  3198. * src/DHTQueryMessage.cc
  3199. * src/DHTResponseMessage.cc
  3200. * src/DHTUnknownMessage.cc
  3201. * src/DefaultBtAnnounce.cc
  3202. * src/DefaultBtContext.cc
  3203. * src/DefaultBtInteractive.cc
  3204. * src/DefaultBtProgressInfoFile.cc
  3205. * src/DefaultPeerStorage.cc
  3206. * src/DownloadEngine.cc
  3207. * src/FeatureConfig.cc
  3208. * src/File.cc
  3209. * src/FtpConnection.cc
  3210. * src/FtpNegotiationCommand.cc
  3211. * src/HandshakeExtensionMessage.cc
  3212. * src/HttpConnection.cc
  3213. * src/HttpRequest.cc
  3214. * src/HttpResponseCommand.cc
  3215. * src/HttpServer.cc
  3216. * src/IndexBtMessage.cc
  3217. * src/Metalink2RequestGroup.cc
  3218. * src/OptionHandlerImpl.h
  3219. * src/PStringBuildVisitor.cc
  3220. * src/Peer.cc
  3221. * src/PeerListenCommand.cc
  3222. * src/Piece.cc
  3223. * src/RangeBtMessage.cc
  3224. * src/Request.cc
  3225. * src/Request.h
  3226. * src/RequestGroup.cc
  3227. * src/RequestGroupMan.cc
  3228. * src/ServerStat.cc
  3229. * src/ServerStatMan.cc
  3230. * src/UTPexExtensionMessage.cc
  3231. * src/Util.cc
  3232. * src/a2functional.h
  3233. * src/download_helper.cc
  3234. * src/messageDigest.cc
  3235. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Unchoke a peer randomly at first and second choke round in seed
  3237. state.
  3238. * src/BtSeederStateChoke.cc
  3239. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3240. Added (sock_t) to quiet compiler warnings in MinGW
  3241. * src/SocketCore.cc
  3242. * src/SocketCore.h
  3243. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3245. * src/EpollEventPoll.h
  3246. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3247. Added fork() emulation using CreateProcess() in MinGW
  3248. * src/RequestGroupMan.cc
  3249. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. * Release 1.4.0
  3251. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Added utf8.torrent to EXTRA_DIST
  3253. * test/Makefile.am
  3254. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Fixed docs of aria2.addMetalink xml-rpc method.
  3256. * doc/aria2c.1.txt
  3257. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Added Slovak translation. Updated Ukrainian and Brazilian
  3259. Portuguese translation. Thanks to all translators.
  3260. * po/sk.po
  3261. * po/uk.po
  3262. * po/pt_BR.po
  3263. * po/LINGUAS
  3264. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Added test case for XmlRpcProcessor to fail to parse malformed
  3266. document.
  3267. * test/XmlRpcRequestProcessorTest.cc
  3268. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Removed *.gmo files in po because they are generated on 'make
  3270. dist'
  3271. * po/*.gmo
  3272. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Documented max-concurrent-downloads of changeGlobalOption method
  3274. in man page.
  3275. * doc/aria2c.1.txt
  3276. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Added max-concurrent-downloads option to changeGlobalOption
  3278. xml-rpc method. Rewritten loop conditional in
  3279. RequestGroupMan::fillRequestGroupFromReserver().
  3280. * src/RequestGroupMan.cc
  3281. * src/RequestGroupMan.h
  3282. * src/XmlRpcMethod.cc
  3283. * src/XmlRpcMethodImpl.cc
  3284. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Documented position parameter in man page.
  3286. * doc/aria2c.1.txt
  3287. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Added 'position' parameter to addUri, addTorrent and addMetalink
  3289. xml-rpc method.
  3290. * src/RequestGroupMan.cc
  3291. * src/RequestGroupMan.h
  3292. * src/XmlRpcMethodImpl.cc
  3293. * test/XmlRpcMethodTest.cc
  3294. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Removed Peer.cc from compile source list when --disable-bittorrent
  3296. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3297. takes Peer.
  3298. * src/DefaultPieceStorage.cc
  3299. * src/DefaultPieceStorage.h
  3300. * src/Makefile.am
  3301. * src/PieceStorage.h
  3302. * src/UnknownLengthPieceStorage.cc
  3303. * src/UnknownLengthPieceStorage.h
  3304. * test/MockPieceStorage.h
  3305. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Implemented getter methods in header files to give them more
  3307. chance of optimization.
  3308. Return const reference for SharadHandle if possible.
  3309. * src/AbstractAuthResolver.cc
  3310. * src/AbstractAuthResolver.h
  3311. * src/AbstractBtMessage.cc
  3312. * src/AbstractBtMessage.h
  3313. * src/AbstractSingleDiskAdaptor.cc
  3314. * src/AbstractSingleDiskAdaptor.h
  3315. * src/AsyncNameResolver.cc
  3316. * src/AsyncNameResolver.h
  3317. * src/BNode.cc
  3318. * src/BNode.h
  3319. * src/BitfieldMan.cc
  3320. * src/BitfieldMan.h
  3321. * src/BtAbortOutstandingRequestEvent.h
  3322. * src/BtExtendedMessage.cc
  3323. * src/BtExtendedMessage.h
  3324. * src/BtSeederStateChoke.cc
  3325. * src/BtSeederStateChoke.h
  3326. * src/Cookie.cc
  3327. * src/Cookie.h
  3328. * src/DHTBucket.cc
  3329. * src/DHTBucket.h
  3330. * src/DHTConnectionImpl.cc
  3331. * src/DHTConnectionImpl.h
  3332. * src/DHTFindNodeReplyMessage.cc
  3333. * src/DHTFindNodeReplyMessage.h
  3334. * src/DHTGetPeersReplyMessage.cc
  3335. * src/DHTGetPeersReplyMessage.h
  3336. * src/DHTInteractionCommand.cc
  3337. * src/DHTMessage.cc
  3338. * src/DHTMessage.h
  3339. * src/DHTMessageDispatcherImpl.cc
  3340. * src/DHTMessageEntry.cc
  3341. * src/DHTMessageReceiver.cc
  3342. * src/DHTMessageReceiver.h
  3343. * src/DHTMessageTrackerEntry.cc
  3344. * src/DHTMessageTrackerEntry.h
  3345. * src/DHTPeerAnnounceEntry.cc
  3346. * src/DHTPeerAnnounceEntry.h
  3347. * src/DHTPeerLookupTask.cc
  3348. * src/DHTPeerLookupTask.h
  3349. * src/DHTRoutingTableDeserializer.cc
  3350. * src/DHTRoutingTableDeserializer.h
  3351. * src/DefaultBtAnnounce.cc
  3352. * src/DefaultBtAnnounce.h
  3353. * src/DefaultBtMessageDispatcher.cc
  3354. * src/DefaultBtMessageDispatcher.h
  3355. * src/DefaultBtRequestFactory.cc
  3356. * src/DefaultBtRequestFactory.h
  3357. * src/DiskAdaptor.cc
  3358. * src/DiskAdaptor.h
  3359. * src/DownloadContext.cc
  3360. * src/DownloadContext.h
  3361. * src/DownloadEngine.cc
  3362. * src/DownloadEngine.h
  3363. * src/EpollEventPoll.cc
  3364. * src/EpollEventPoll.h
  3365. * src/FtpConnection.cc
  3366. * src/FtpConnection.h
  3367. * src/HttpConnection.cc
  3368. * src/HttpConnection.h
  3369. * src/HttpHeader.cc
  3370. * src/HttpHeader.h
  3371. * src/HttpRequest.cc
  3372. * src/HttpRequest.h
  3373. * src/HttpResponse.cc
  3374. * src/HttpResponse.h
  3375. * src/LibsslTLSContext.cc
  3376. * src/LibsslTLSContext.h
  3377. * src/MSEHandshake.cc
  3378. * src/MSEHandshake.h
  3379. * src/MetalinkEntry.cc
  3380. * src/MetalinkEntry.h
  3381. * src/MetalinkParserController.cc
  3382. * src/MetalinkParserController.h
  3383. * src/MetalinkParserStateMachine.cc
  3384. * src/MetalinkParserStateMachine.h
  3385. * src/MultiDiskAdaptor.cc
  3386. * src/MultiDiskAdaptor.h
  3387. * src/NetrcAuthResolver.cc
  3388. * src/NetrcAuthResolver.h
  3389. * src/Peer.cc
  3390. * src/Peer.h
  3391. * src/PeerSessionResource.cc
  3392. * src/PeerSessionResource.h
  3393. * src/Piece.cc
  3394. * src/Piece.h
  3395. * src/PieceStatMan.cc
  3396. * src/PieceStatMan.h
  3397. * src/Request.cc
  3398. * src/Request.h
  3399. * src/RequestGroup.cc
  3400. * src/RequestGroup.h
  3401. * src/RequestGroupMan.cc
  3402. * src/RequestGroupMan.h
  3403. * src/RequestSlot.cc
  3404. * src/RequestSlot.h
  3405. * src/SegmentMan.cc
  3406. * src/SegmentMan.h
  3407. * src/SelectEventPoll.cc
  3408. * src/SelectEventPoll.h
  3409. * src/ServerStat.cc
  3410. * src/ServerStat.h
  3411. * src/Signature.cc
  3412. * src/Signature.h
  3413. * src/URIResult.cc
  3414. * src/URIResult.h
  3415. * src/UTPexExtensionMessage.cc
  3416. * src/UTPexExtensionMessage.h
  3417. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Fixed compile error without BitTorrent and Metalink support.
  3419. * src/XmlRpcMethod.cc
  3420. * src/XmlRpcMethodFactory.cc
  3421. * src/XmlRpcMethodImpl.cc
  3422. * src/XmlRpcMethodImpl.h
  3423. * test/XmlRpcMethodTest.cc
  3424. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Rewritten the help message for --allow-overwrite option.
  3426. * doc/aria2c.1.txt
  3427. * src/usage_text.h
  3428. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. Fixed typo
  3430. * doc/aria2c.1.txt
  3431. * src/usage_text.h
  3432. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Updated README for 1.4.0 release. Use new table syntax of
  3434. asciidoc.
  3435. * README
  3436. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Documented --xml-rpc-max-request-size option in man page.
  3438. * doc/aria2c.1.txt
  3439. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Moved C_* constants from BtContext to DefaultBtContext.
  3441. * src/BtContext.cc: Removed.
  3442. * src/BtContext.h
  3443. * src/DefaultBtContext.cc
  3444. * src/DefaultBtContext.h
  3445. * src/Makefile.am
  3446. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3448. path key respectively when persing .torrent file.
  3449. * src/BtContext.cc
  3450. * src/BtContext.h
  3451. * src/DefaultBtContext.cc
  3452. * test/DefaultBtContextTest.cc
  3453. * test/utf8.torrent
  3454. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Added --xml-rpc-max-request-size option to limit the size of
  3456. XML-RPC request.
  3457. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Documented XML-RPC API in man page.
  3459. * doc/aria2c.1.txt
  3460. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3462. will break strict-aliasing rules
  3463. * src/PeerConnection.cc
  3464. * test/DHTRoutingTableSerializerTest.cc
  3465. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3467. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3468. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3469. PKG_CHECK_MODULES macro uses latter name.
  3470. * m4/sqlite3.m4
  3471. * src/Makefile.am
  3472. * test/Makefile.am
  3473. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Fixed typo
  3475. * configure.ac
  3476. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3478. presence of libgnutls using pkg-config first. If it fails, fall
  3479. back to old macro libgnutls.m4.
  3480. * configure.ac
  3481. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Use s itself instead of !s.bad()
  3483. * src/CookieStorage.cc
  3484. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Documented --on-download-* option and --save-cookies option in man
  3486. page.
  3487. * doc/aria2c.1.txt
  3488. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Set possible values for --load-cookie option to "/path/to/file".
  3490. * src/OptionHandlerFactory.cc
  3491. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Added --save-cookies option.
  3493. * src/Cookie.cc
  3494. * src/Cookie.h
  3495. * src/CookieStorage.cc
  3496. * src/CookieStorage.h
  3497. * src/MultiUrlRequestInfo.cc
  3498. * src/OptionHandlerFactory.cc
  3499. * src/prefs.cc
  3500. * src/prefs.h
  3501. * src/usage_text.h
  3502. * test/CookieStorageTest.cc
  3503. * test/CookieTest.cc
  3504. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Removed tellAll XML-RPC command because its reponse tends to be
  3506. big if stopped/waiting downloads pile up.
  3507. * src/XmlRpcMethodFactory.cc
  3508. * src/XmlRpcMethodImpl.cc
  3509. * src/XmlRpcMethodImpl.h
  3510. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Added the ability to execute command when download starts and
  3512. stops. You can also specify command for particular cases such as
  3513. complete/error download. Added --on-download-start,
  3514. --on-download-stop, --on-download-complete and --on-download-error
  3515. option.
  3516. * src/OptionHandlerFactory.cc
  3517. * src/RequestGroupMan.cc
  3518. * src/prefs.cc
  3519. * src/prefs.h
  3520. * src/usage_text.h
  3521. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Fixed test error
  3523. * test/BencodeTest.cc
  3524. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Added unit tests.
  3526. * test/XmlRpcMethodTest.cc
  3527. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Made exception message more verbose.
  3529. * src/bencode.cc
  3530. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3532. space in console readout. Also they are now shown in MiB/s if
  3533. speed > 1024KiB/s.
  3534. * src/ConsoleStatCalc.cc
  3535. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3536. Added SEED to console output, which represents the number of
  3537. seeders currently the client is connecting to.
  3538. * src/ConsoleStatCalc.cc
  3539. * src/ConsoleStatCalc.h
  3540. * src/DownloadEngine.cc
  3541. * src/NullStatCalc.h
  3542. * src/StatCalc.h
  3543. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Added source filename(__FILE__) and line number(__LINE__) to
  3545. exception message.
  3546. * src/AbstractCommand.cc
  3547. * src/AbstractDiskWriter.cc
  3548. * src/AbstractProxyResponseCommand.cc
  3549. * src/BDE.h
  3550. * src/BtAllowedFastMessage.cc
  3551. * src/BtHandshakeMessageValidator.h
  3552. * src/BtHaveAllMessage.cc
  3553. * src/BtHaveNoneMessage.cc
  3554. * src/BtPieceMessage.cc
  3555. * src/BtRejectMessage.cc
  3556. * src/ChunkedDecoder.cc
  3557. * src/CookieStorage.cc
  3558. * src/DHTAnnouncePeerMessage.cc
  3559. * src/DHTEntryPointNameResolveCommand.cc
  3560. * src/DHTMessageFactoryImpl.cc
  3561. * src/DHTMessageTracker.cc
  3562. * src/DHTRoutingTableDeserializer.cc
  3563. * src/DHTRoutingTableSerializer.cc
  3564. * src/DHTSetup.cc
  3565. * src/DHTTokenTracker.cc
  3566. * src/DefaultBtAnnounce.cc
  3567. * src/DefaultBtContext.cc
  3568. * src/DefaultBtInteractive.cc
  3569. * src/DefaultBtMessageFactory.cc
  3570. * src/DefaultBtProgressInfoFile.cc
  3571. * src/DefaultExtensionMessageFactory.cc
  3572. * src/DlAbortEx.h
  3573. * src/DlRetryEx.h
  3574. * src/DownloadCommand.cc
  3575. * src/DownloadEngineFactory.cc
  3576. * src/DownloadFailureException.h
  3577. * src/Exception.cc
  3578. * src/Exception.h
  3579. * src/ExpatMetalinkProcessor.cc
  3580. * src/ExpatXmlRpcRequestProcessor.cc
  3581. * src/FallocFileAllocationIterator.cc
  3582. * src/FatalException.h
  3583. * src/FtpConnection.cc
  3584. * src/FtpFinishDownloadCommand.cc
  3585. * src/FtpInitiateConnectionCommand.cc
  3586. * src/FtpNegotiationCommand.cc
  3587. * src/GZipDecoder.cc
  3588. * src/HandshakeExtensionMessage.cc
  3589. * src/HttpConnection.cc
  3590. * src/HttpHeaderProcessor.cc
  3591. * src/HttpInitiateConnectionCommand.cc
  3592. * src/HttpResponse.cc
  3593. * src/HttpResponseCommand.cc
  3594. * src/HttpServer.cc
  3595. * src/HttpSkipResponseCommand.cc
  3596. * src/InitiateConnectionCommandFactory.cc
  3597. * src/IteratableChunkChecksumValidator.cc
  3598. * src/LibgcryptARC4Context.h
  3599. * src/LibgcryptARC4Decryptor.h
  3600. * src/LibgcryptARC4Encryptor.h
  3601. * src/LibgcryptDHKeyExchange.h
  3602. * src/LibgnutlsTLSContext.cc
  3603. * src/LibsslARC4Context.h
  3604. * src/LibsslARC4Decryptor.h
  3605. * src/LibsslARC4Encryptor.h
  3606. * src/LibsslDHKeyExchange.h
  3607. * src/LibsslTLSContext.cc
  3608. * src/MSEHandshake.cc
  3609. * src/MessageDigestHelper.cc
  3610. * src/MetalinkHelper.cc
  3611. * src/MultiDiskAdaptor.cc
  3612. * src/NameMatchOptionHandler.h
  3613. * src/NameResolver.cc
  3614. * src/Netrc.cc
  3615. * src/NsCookieParser.cc
  3616. * src/OptionHandlerException.cc
  3617. * src/OptionHandlerException.h
  3618. * src/OptionHandlerImpl.h
  3619. * src/OptionParser.cc
  3620. * src/ParameterizedStringParser.cc
  3621. * src/PeerAbstractCommand.cc
  3622. * src/PeerConnection.cc
  3623. * src/PeerMessageUtil.cc
  3624. * src/PeerReceiveHandshakeCommand.cc
  3625. * src/Platform.cc
  3626. * src/ReceiverMSEHandshakeCommand.cc
  3627. * src/RecoverableException.h
  3628. * src/RequestGroup.cc
  3629. * src/SimpleLogger.cc
  3630. * src/SocketCore.cc
  3631. * src/Sqlite3MozCookieParser.cc
  3632. * src/UTPexExtensionMessage.cc
  3633. * src/Util.cc
  3634. * src/XML2SAXMetalinkProcessor.cc
  3635. * src/Xml2XmlRpcRequestProcessor.cc
  3636. * src/XmlRpcMethodImpl.cc
  3637. * src/bencode.cc
  3638. * src/download_helper.cc
  3639. * src/messageDigest.h
  3640. * test/ExceptionTest.cc
  3641. * test/TestUtil.cc
  3642. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Bump up version number to 1.4.0
  3644. * configure.ac
  3645. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Added 2files.metalink to EXTRA_DIST
  3647. * test/Makefile.am
  3648. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Added missing 2files.metalink
  3650. * test/2files.metalink
  3651. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Show "[MEMORY]" prefix before filename in download summary if it
  3653. is downloaded into memory.
  3654. * src/DownloadResult.h
  3655. * src/RequestGroup.cc
  3656. * src/RequestGroupMan.cc
  3657. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3659. * src/ExpatXmlRpcRequestProcessor.cc
  3660. * src/Xml2XmlRpcRequestProcessor.cc
  3661. * src/message.h
  3662. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Defined const BDEs to avoid duplicate instantiation.
  3664. Defined MSG_GID_NOT_PROVIDED.
  3665. * src/XmlRpcMethodImpl.cc
  3666. * src/message.h
  3667. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Code cleanup
  3669. * src/Xml2XmlRpcRequestProcessor.cc
  3670. * src/Xml2XmlRpcRequestProcessor.h
  3671. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Defined ENABLE_XML_RPC
  3673. * configure.ac
  3674. * configure
  3675. * config.h.in
  3676. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Added ExpatXmlRpcRequestProcessor
  3678. * src/ExpatXmlRpcRequestProcessor.cc
  3679. * src/ExpatXmlRpcRequestProcessor.h
  3680. * src/Makefile.am
  3681. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Added tests for addTorrent and addMetalink command.
  3683. * test/TestUtil.cc
  3684. * test/TestUtil.h
  3685. * test/XmlRpcMethodTest.cc
  3686. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Corrected the description of --file-allocation option.
  3688. * doc/aria2c.1.txt
  3689. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Added tellAll command.
  3691. * src/XmlRpcMethodFactory.cc
  3692. * src/XmlRpcMethodImpl.cc
  3693. * src/XmlRpcMethodImpl.h
  3694. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3696. * src/XmlRpcMethodImpl.cc
  3697. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Added changeGlobalOption command. Currently,
  3699. max-overall-download-limit and max-overall-upload-limit option are
  3700. available.
  3701. * src/RequestGroupMan.h
  3702. * src/XmlRpcMethod.cc
  3703. * src/XmlRpcMethod.h
  3704. * src/XmlRpcMethodFactory.cc
  3705. * src/XmlRpcMethodImpl.cc
  3706. * src/XmlRpcMethodImpl.h
  3707. * test/XmlRpcMethodTest.cc
  3708. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Added changeOption command. Currently, max-download-limit,
  3710. max-upload-limit option are available in this command.
  3711. * src/RequestGroup.h
  3712. * src/XmlRpcMethod.cc
  3713. * src/XmlRpcMethod.h
  3714. * src/XmlRpcMethodFactory.cc
  3715. * src/XmlRpcMethodImpl.cc
  3716. * src/XmlRpcMethodImpl.h
  3717. * test/XmlRpcMethodTest.cc
  3718. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Added purgeDownloadResult command.
  3720. * src/RequestGroupMan.cc
  3721. * src/RequestGroupMan.h
  3722. * src/XmlRpcMethodFactory.cc
  3723. * src/XmlRpcMethodImpl.cc
  3724. * src/XmlRpcMethodImpl.h
  3725. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Refactored.
  3727. * src/XmlRpcMethod.cc
  3728. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3730. XmlRpcResponse.
  3731. * src/HttpServerBodyCommand.cc
  3732. * src/Makefile.am
  3733. * src/XmlRpcMethod.cc
  3734. * src/XmlRpcMethod.h
  3735. * src/XmlRpcMethodImpl.cc
  3736. * src/XmlRpcResponse.cc
  3737. * src/XmlRpcResponse.h
  3738. * test/XmlRpcMethodTest.cc
  3739. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. In XML-RPC option struct, header and index-out option can take
  3741. array as value.
  3742. * src/XmlRpcMethod.cc
  3743. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Removed unused option member from PeerConnection.
  3745. * src/InitiatorMSEHandshakeCommand.cc
  3746. * src/PeerConnection.cc
  3747. * src/PeerConnection.h
  3748. * src/PeerInteractionCommand.cc
  3749. * src/PeerReceiveHandshakeCommand.cc
  3750. * src/ReceiverMSEHandshakeCommand.cc
  3751. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Added "seeder" key to getPeers response.
  3753. * src/XmlRpcMethodImpl.cc
  3754. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Added addMetalink XML-RPC command.
  3756. * src/XmlRpcMethodFactory.cc
  3757. * src/XmlRpcMethodImpl.cc
  3758. * src/XmlRpcMethodImpl.h
  3759. * src/download_helper.cc
  3760. * src/download_helper.h
  3761. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Fixed the bug that POU peers are never choked in seeding.
  3763. * src/BtSeederStateChoke.cc
  3764. * src/BtSeederStateChoke.h
  3765. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Added web-seeding URI handling in addTorrent command.
  3767. * src/XmlRpcMethodImpl.cc
  3768. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Added "length" key to getFiles response.
  3770. * src/XmlRpcMethodImpl.cc
  3771. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Moved --no-netrc option from ftp option section to http/ftp option
  3773. section.
  3774. * doc/aria2c.1.txt
  3775. * src/OptionHandlerFactory.cc
  3776. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3777. Removed garbage "\" character before '
  3778. * doc/aria2c.1.txt
  3779. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Removed garbage "\" character before http.
  3781. * doc/aria2c.1.txt
  3782. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Documented additional options that can be specified in -i list.
  3784. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3785. and --xml-rpc-passwd. Removed --enable-http-server and
  3786. --http-server-listen-port.
  3787. * doc/aria2c.1.txt
  3788. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3790. * src/DefaultPeerStorage.cc
  3791. * src/DefaultPeerStorage.h
  3792. * src/PeerStorage.h
  3793. * src/XmlRpcMethodImpl.cc
  3794. * test/MockPeerStorage.h
  3795. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3796. Put a call to Socket::isReadable() in try block.
  3797. * src/HttpServerBodyCommand.cc
  3798. * src/HttpServerCommand.cc
  3799. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3801. exception , so it is now in try block.
  3802. * src/HttpServerResponseCommand.cc
  3803. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Added "amChoking" and "peerChoking" key in getPeers response.
  3805. * src/XmlRpcMethodImpl.cc
  3806. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Added test case for zero-length filter.
  3808. * test/BitfieldManTest.cc
  3809. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. getFiles command now returns file data for finished/stopped
  3811. downloads.
  3812. * src/XmlRpcMethodImpl.cc
  3813. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. DownloadResult now has the list of FileEntry. The download
  3815. summary displays the path of first selected file and the number of
  3816. remaining files for multi-file torrent.
  3817. * src/DownloadResult.h
  3818. * src/RequestGroup.cc
  3819. * src/RequestGroupMan.cc
  3820. * test/RequestGroupTest.cc
  3821. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Fixed segmentation fault error when no file is selected in
  3823. multi-file torrent.
  3824. * src/BitfieldMan.cc
  3825. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Escaped <,>,& character in XML-RPC response.
  3827. * src/XmlRpcMethod.cc
  3828. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Throw DlAbortEx instead of FatalException during parsing options
  3830. because we don't want for aria2 to quit when bad option is passed
  3831. via XML-RPC.
  3832. * src/OptionHandlerException.cc
  3833. * src/OptionHandlerException.h
  3834. * src/OptionHandlerImpl.h
  3835. * src/OptionParser.cc
  3836. * src/OptionParser.h
  3837. * src/PStringSegment.cc
  3838. * src/ParameterizedStringParser.cc
  3839. * src/download_helper.cc
  3840. * test/ParameterizedStringParserTest.cc
  3841. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Selecting files are now done in
  3843. DefaultBtContext::setFileFileter().
  3844. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3845. functions are removed because they are no longer used. Creating
  3846. filter in BitfieldMan is done in new funtion
  3847. PieceStorage::setupFileFilter()
  3848. * src/BtContext.cc
  3849. * src/BtContext.h
  3850. * src/DefaultBtContext.cc
  3851. * src/DefaultBtContext.h
  3852. * src/DefaultPieceStorage.cc
  3853. * src/DefaultPieceStorage.h
  3854. * src/DiskAdaptor.cc
  3855. * src/DiskAdaptor.h
  3856. * src/PieceStorage.h
  3857. * src/RequestGroup.cc
  3858. * src/UnknownLengthPieceStorage.h
  3859. * src/XmlRpcMethodImpl.cc
  3860. * test/DefaultBtContextTest.cc
  3861. * test/MockBtContext.h
  3862. * test/MockPieceStorage.h
  3863. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Fixed compile error on Mac OS X
  3865. * src/HttpServer.cc
  3866. * src/XmlRpcMethod.h
  3867. * src/XmlRpcMethodImpl.cc
  3868. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3869. Use std::binary_search instead of std::find
  3870. * src/DefaultPieceStorage.cc
  3871. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Removed unnecessary BDE() call; leave them to implicit conversion.
  3873. * src/XmlRpcMethodImpl.cc
  3874. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Return connections and gid in string
  3876. * src/XmlRpcMethodImpl.cc
  3877. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Renamed addURI as addUri
  3879. * src/XmlRpcMethodFactory.cc
  3880. * src/XmlRpcMethodImpl.cc
  3881. * src/XmlRpcMethodImpl.h
  3882. * test/XmlRpcMethodTest.cc
  3883. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Renamed addTorrentFile as addTorrent
  3885. * src/XmlRpcMethodFactory.cc
  3886. * src/XmlRpcMethodImpl.cc
  3887. * src/XmlRpcMethodImpl.h
  3888. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. The information for files, URIs, peers are removed from the
  3890. reponse of TellaActive, TellStatus command because they tend to be
  3891. large. Instead they can be retrieved by the dedicated commands:
  3892. getFiles, getUris and getPeers respectively.
  3893. * src/XmlRpcMethodFactory.cc
  3894. * src/XmlRpcMethodImpl.cc
  3895. * src/XmlRpcMethodImpl.h
  3896. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Removed --max-overall-upload-limit and
  3898. --max-overall-download-limit option from listRequestOptions.
  3899. * src/download_helper.cc
  3900. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Log incoming host in HttpListenCommand.
  3902. * src/HttpListenCommand.cc
  3903. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3905. --xml-rpc-passwd option.
  3906. * src/HttpServer.cc
  3907. * src/HttpServer.h
  3908. * src/HttpServerCommand.cc
  3909. * src/OptionHandlerFactory.cc
  3910. * src/prefs.cc
  3911. * src/prefs.h
  3912. * src/usage_text.h
  3913. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3915. processing 0 length request.
  3916. * src/HttpServerBodyCommand.cc
  3917. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Removed --enable-http-server and --http-server-listen-port
  3919. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3920. instead. The original feature for --enable-http-server that
  3921. reports download progress in HTML was officially removed. Persist
  3922. XML-RPC connection if client supports keep-alive.
  3923. * src/DownloadEngineFactory.cc
  3924. * src/HttpServerCommand.cc
  3925. * src/HttpServerResponseCommand.cc
  3926. * src/Makefile.am
  3927. * src/Makefile.in
  3928. * src/OptionHandlerFactory.cc
  3929. * src/RequestGroupMan.cc
  3930. * src/main.cc
  3931. * src/option_processing.cc
  3932. * src/prefs.cc
  3933. * src/prefs.h
  3934. * src/usage_text.h
  3935. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3936. Added "uris" key to the response of tellStatus command. Added
  3937. "connections" key to the response of tellStatus and tellActive
  3938. command.
  3939. * src/XmlRpcMethodImpl.cc
  3940. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3942. Added TellStatusXmlRpcMethod. Remove command can now remove
  3943. waiting RequestGroup.
  3944. * src/RequestGroupMan.cc
  3945. * src/RequestGroupMan.h
  3946. * src/XmlRpcMethodFactory.cc
  3947. * src/XmlRpcMethodImpl.cc
  3948. * src/XmlRpcMethodImpl.h
  3949. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3950. Initialized _peerId
  3951. * src/Peer.cc
  3952. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Return fault structure for error. FailXmlRpcMethod is renamed as
  3954. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3955. in non-torrent download. Return single param value.
  3956. * src/XmlRpcMethod.cc
  3957. * src/XmlRpcMethodFactory.cc
  3958. * src/XmlRpcMethodImpl.cc
  3959. * src/XmlRpcMethodImpl.h
  3960. * test/XmlRpcMethodTest.cc
  3961. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3963. command.
  3964. * src/RequestGroup.cc
  3965. * src/RequestGroup.h
  3966. * src/RequestGroupMan.cc
  3967. * src/XmlRpcMethodImpl.cc
  3968. * test/RequestGroupTest.cc
  3969. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Added more options that can be specified in -i list and xml-rpc
  3971. add* command.
  3972. * src/download_helper.h
  3973. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. The available options in -i list should be listed in
  3975. listRequestOptions().
  3976. * src/download_helper.cc
  3977. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3979. command.
  3980. * src/XmlRpcMethodImpl.cc
  3981. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Now RequestGroup has its own copy of Option object. This will help
  3983. to give custom option for each RequestGroup.
  3984. addTorrentFile command now takes options.
  3985. * src/AbstractCommand.cc
  3986. * src/AbstractCommand.h
  3987. * src/AbstractProxyRequestCommand.cc
  3988. * src/ActivePeerConnectionCommand.cc
  3989. * src/ActivePeerConnectionCommand.h
  3990. * src/AdaptiveURISelector.cc
  3991. * src/BtCheckIntegrityEntry.cc
  3992. * src/BtDependency.cc
  3993. * src/BtDependency.h
  3994. * src/BtFileAllocationEntry.cc
  3995. * src/BtPostDownloadHandler.cc
  3996. * src/CheckIntegrityEntry.cc
  3997. * src/DownloadCommand.cc
  3998. * src/FtpDownloadCommand.cc
  3999. * src/FtpFinishDownloadCommand.cc
  4000. * src/FtpInitiateConnectionCommand.cc
  4001. * src/FtpNegotiationCommand.cc
  4002. * src/HttpInitiateConnectionCommand.cc
  4003. * src/HttpRequestCommand.cc
  4004. * src/HttpResponseCommand.cc
  4005. * src/HttpSkipResponseCommand.cc
  4006. * src/InitiateConnectionCommand.cc
  4007. * src/InitiateConnectionCommandFactory.cc
  4008. * src/InitiatorMSEHandshakeCommand.cc
  4009. * src/InitiatorMSEHandshakeCommand.h
  4010. * src/Metalink2RequestGroup.cc
  4011. * src/Metalink2RequestGroup.h
  4012. * src/MetalinkPostDownloadHandler.cc
  4013. * src/MultiUrlRequestInfo.cc
  4014. * src/MultiUrlRequestInfo.h
  4015. * src/PeerAbstractCommand.cc
  4016. * src/PeerInteractionCommand.cc
  4017. * src/PeerInteractionCommand.h
  4018. * src/PeerReceiveHandshakeCommand.cc
  4019. * src/PeerReceiveHandshakeCommand.h
  4020. * src/RequestGroup.cc
  4021. * src/RequestGroup.h
  4022. * src/TrackerWatcherCommand.cc
  4023. * src/TrackerWatcherCommand.h
  4024. * src/XmlRpcMethod.cc
  4025. * src/XmlRpcMethod.h
  4026. * src/XmlRpcMethodImpl.cc
  4027. * src/download_helper.cc
  4028. * src/download_helper.h
  4029. * src/main.cc
  4030. * test/BtDependencyTest.cc
  4031. * test/BtPostDownloadHandlerTest.cc
  4032. * test/DefaultBtMessageDispatcherTest.cc
  4033. * test/DownloadHandlerFactoryTest.cc
  4034. * test/DownloadHelperTest.cc
  4035. * test/Metalink2RequestGroupTest.cc
  4036. * test/MetalinkPostDownloadHandlerTest.cc
  4037. * test/RequestGroupManTest.cc
  4038. * test/RequestGroupTest.cc
  4039. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Added tellActiveStatus xml-rpc command which reports download
  4041. status of active downloads.
  4042. * src/XmlRpcMethodFactory.cc
  4043. * src/XmlRpcMethodImpl.cc
  4044. * src/XmlRpcMethodImpl.h
  4045. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4046. Added addTorrentFile xml-rpc command which receives uploaded
  4047. torrent file and add download for it.
  4048. * src/RequestGroupMan.cc
  4049. * src/XmlRpcMethodFactory.cc
  4050. * src/XmlRpcMethodImpl.cc
  4051. * src/XmlRpcMethodImpl.h
  4052. * src/download_helper.cc
  4053. * src/download_helper.h
  4054. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Added remove xml-rpc command which removes specified download.
  4056. There is a known issue: the removed unfinished downloads are
  4057. reported ERR when aria2 exits. They should be reported as INPR.
  4058. * src/RequestGroupMan.cc
  4059. * src/RequestGroupMan.h
  4060. * src/XmlRpcMethodFactory.cc
  4061. * src/XmlRpcMethodImpl.cc
  4062. * src/XmlRpcMethodImpl.h
  4063. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. If --enable-http-server is enabled, don't stop aria2 when all
  4065. download finished and don't quit when no files to download at
  4066. start up.
  4067. * src/RequestGroupMan.cc
  4068. * src/main.cc
  4069. * src/option_processing.cc
  4070. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Added missing AM_CONDITIONAL
  4072. * configure.ac
  4073. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Added xml-rpc functionality. Currently only addURI commad is
  4075. supported. To enable xml-rpc, run aria2 with
  4076. --enable-http-server. This option name is temporal and will be
  4077. changed. The feature that reports download progress in html format
  4078. is temporarily disabled.
  4079. * src/HttpServer.cc
  4080. * src/HttpServer.h
  4081. * src/HttpServerBodyCommand.cc
  4082. * src/HttpServerBodyCommand.h
  4083. * src/HttpServerCommand.cc
  4084. * src/HttpServerResponseCommand.cc
  4085. * src/Makefile.am
  4086. * src/OptionParser.cc
  4087. * src/OptionParser.h
  4088. * src/RequestGroupMan.cc
  4089. * src/RequestGroupMan.h
  4090. * src/XmlRpcMethod.cc
  4091. * src/XmlRpcMethod.h
  4092. * src/XmlRpcMethodFactory.cc
  4093. * src/XmlRpcMethodFactory.h
  4094. * src/XmlRpcMethodImpl.cc
  4095. * src/XmlRpcMethodImpl.h
  4096. * src/download_helper.cc
  4097. * src/download_helper.h
  4098. * test/Makefile.am
  4099. * test/XmlRpcMethodTest.cc
  4100. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Added xml-rpc request parser. The supported value types are:
  4102. i4/int, string, double, struct, array, base64. Currently only
  4103. libxml2 version is provided.
  4104. * src/Xml2XmlRpcRequestProcessor.cc
  4105. * src/Xml2XmlRpcRequestProcessor.h
  4106. * src/XmlRpcElements.cc
  4107. * src/XmlRpcElements.h
  4108. * src/XmlRpcRequest.h
  4109. * src/XmlRpcRequestParserController.cc
  4110. * src/XmlRpcRequestParserController.h
  4111. * src/XmlRpcRequestParserState.h
  4112. * src/XmlRpcRequestParserStateImpl.cc
  4113. * src/XmlRpcRequestParserStateImpl.h
  4114. * src/XmlRpcRequestParserStateMachine.cc
  4115. * src/XmlRpcRequestParserStateMachine.h
  4116. * src/XmlRpcRequestProcessor.h
  4117. * test/XmlRpcRequestParserControllerTest.cc
  4118. * test/XmlRpcRequestProcessorTest.cc
  4119. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. * Release 1.3.3
  4121. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Fixed compile error since r1202.
  4123. * src/ExpatMetalinkProcessor.cc
  4124. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Updated Ukrainian, Russian and Simplified Chinese
  4126. translations. Thanks to all translators.
  4127. * po/ru.po
  4128. * po/uk.po
  4129. * po/zh_CN.po
  4130. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Pass reference of Option object instead of pointer.
  4132. * src/download_helper.cc
  4133. * src/download_helper.h
  4134. * src/main.cc
  4135. * test/DownloadHelperTest.cc
  4136. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4138. from option directly. Instead, get them from RequestGroup.
  4139. * src/ActivePeerConnectionCommand.cc
  4140. * src/ActivePeerConnectionCommand.h
  4141. * src/PeerReceiveHandshakeCommand.cc
  4142. * src/RequestGroup.h
  4143. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4144. Removed unused uploadLimitCheck and uploadLimit from
  4145. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4146. PeerInteractionCommand.
  4147. * src/PeerAbstractCommand.cc
  4148. * src/PeerAbstractCommand.h
  4149. * src/PeerInteractionCommand.cc
  4150. * src/PeerInteractionCommand.h
  4151. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Fixed broken file renaming feature since r1202.
  4153. * src/FtpNegotiationCommand.cc
  4154. * src/FtpNegotiationCommand.h
  4155. * src/HttpResponseCommand.cc
  4156. * src/RequestGroup.cc
  4157. * src/RequestGroup.h
  4158. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Removed unused debug log
  4160. * src/SocketCore.cc
  4161. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Generated configure and Makefile.in using autoconf 2.63 and
  4163. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4164. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4165. * configure.ac
  4166. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Moved piece statistics stuff to new PieceStatMan class.
  4168. Refactored PieceSelector interface.
  4169. * src/DefaultPieceStorage.cc
  4170. * src/DefaultPieceStorage.h
  4171. * src/LongestSequencePieceSelector.cc
  4172. * src/LongestSequencePieceSelector.h
  4173. * src/Makefile.am
  4174. * src/PieceSelector.h
  4175. * src/PieceStatMan.cc
  4176. * src/PieceStatMan.h
  4177. * src/RarestPieceSelector.cc
  4178. * src/RarestPieceSelector.h
  4179. * src/RequestGroup.cc
  4180. * test/DefaultPieceStorageTest.cc
  4181. * test/InOrderPieceSelector.h
  4182. * test/Makefile.am
  4183. * test/PieceStatManTest.cc
  4184. * test/RarestPieceSelectorTest.cc
  4185. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Added static member _protocolFamily to SocketCore. By default,
  4187. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4188. address. Sometime SocketCore::bind() and
  4189. SocketCore::establishConnection() use difference protocl family
  4190. and latter cannot connect to former. To avoid this situation, we
  4191. limit protocol family to AF_INET for unit tests.
  4192. * src/SocketCore.cc
  4193. * src/SocketCore.h
  4194. * test/AllTest.cc
  4195. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Avoid std::bad_alloc for negative bencode string length.
  4197. * src/bencode.cc
  4198. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Supported segmented downloading with chunked transfer encoding and
  4200. content-length.
  4201. * src/DownloadCommand.cc
  4202. * src/HttpResponseCommand.cc
  4203. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Bump up version number to 1.3.3
  4205. * configure.ac
  4206. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4208. from 4096 to 65536 (for insanely large ftp login banners)
  4209. * src/FtpConnection.h
  4210. * test/FtpConnectionTest.cc
  4211. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. In DefaultBtContext::getActualBasePath(), return first
  4213. FileEntry::getPath() for single file torrent.
  4214. * src/DefaultBtContext.cc
  4215. * test/DefaultBtContextTest.cc
  4216. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4217. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4218. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4219. Removed _directIOAllowed member from DiskWriter.
  4220. * src/AbstractDiskWriter.cc
  4221. * src/AbstractDiskWriter.h
  4222. * src/AbstractSingleDiskAdaptor.cc
  4223. * src/AbstractSingleDiskAdaptor.h
  4224. * src/BinaryStream.h
  4225. * src/ByteArrayDiskWriter.h
  4226. * src/DefaultPieceStorage.cc
  4227. * src/DiskWriter.h
  4228. * src/MultiDiskAdaptor.cc
  4229. * src/MultiDiskAdaptor.h
  4230. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. Now the constructor of AbstractDiskWriter takes filename as an
  4232. argument and filename argument is removed from openFile(),
  4233. initAndOpenFile(), openExistingFile() interface. storeDir member
  4234. and its accessor functions are removed from DiskAdaptor because it
  4235. is not used anymore. size() member function of DefaultDiskWriter,
  4236. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4237. opening file.
  4238. * src/AbstractDiskWriter.cc
  4239. * src/AbstractDiskWriter.h
  4240. * src/AbstractSingleDiskAdaptor.cc
  4241. * src/AbstractSingleDiskAdaptor.h
  4242. * src/ByteArrayDiskWriter.cc
  4243. * src/ByteArrayDiskWriter.h
  4244. * src/ByteArrayDiskWriterFactory.cc
  4245. * src/ByteArrayDiskWriterFactory.h
  4246. * src/DefaultDiskWriter.cc
  4247. * src/DefaultDiskWriter.h
  4248. * src/DefaultDiskWriterFactory.cc
  4249. * src/DefaultDiskWriterFactory.h
  4250. * src/DefaultPieceStorage.cc
  4251. * src/DirectDiskAdaptor.cc
  4252. * src/DirectDiskAdaptor.h
  4253. * src/DiskAdaptor.h
  4254. * src/DiskWriter.h
  4255. * src/DiskWriterFactory.h
  4256. * src/MessageDigestHelper.cc
  4257. * src/MultiDiskAdaptor.cc
  4258. * src/RequestGroup.cc
  4259. * src/UnknownLengthPieceStorage.cc
  4260. * src/Util.cc
  4261. * test/DefaultDiskWriterTest.cc
  4262. * test/DirectDiskAdaptorTest.cc
  4263. * test/FallocFileAllocationIteratorTest.cc
  4264. * test/MessageDigestHelperTest.cc
  4265. * test/MetalinkProcessorTest.cc
  4266. * test/MultiDiskAdaptorTest.cc
  4267. * test/MultiFileAllocationIteratorTest.cc
  4268. * test/SingleFileAllocationIteratorTest.cc
  4269. * test/UtilTest.cc
  4270. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Fixed the bug that aria2 aborts when --select-file is used. This
  4272. bug was introduced in r1199.
  4273. * src/MultiDiskAdaptor.cc
  4274. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Code cleanup
  4276. * test/MockPieceStorage.cc
  4277. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Fixed the bug that read-only file with wrong file size will cause
  4279. error because it cannot be truncated to the correct size. Now if
  4280. file size is different than the expected one, re-open file in
  4281. writable mode.
  4282. * src/AbstractSingleDiskAdaptor.cc
  4283. * src/AbstractSingleDiskAdaptor.h
  4284. * src/BtCheckIntegrityEntry.cc
  4285. * src/DiskAdaptor.h
  4286. * src/MultiDiskAdaptor.h
  4287. * src/RequestGroup.cc
  4288. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Fixed the bug that with --check-integrity option aria2 reports
  4290. downloaded file size is 0 even if some parts of file is correctly
  4291. downloaded. This bug is reproducible for the download that a file
  4292. includes last piece is missing. This bug doesn't reveal for
  4293. single-torrent with file allocation on.
  4294. * src/IteratableChecksumValidator.cc
  4295. * test/IteratableChecksumValidatorTest.cc
  4296. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4298. * src/RequestGroupMan.cc
  4299. * src/AdaptiveURISelector.cc
  4300. * src/AdaptiveURISelector.h
  4301. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. * Release 1.3.2
  4303. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Updated README
  4305. * README
  4306. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Updated Ukrainian translations. Thanks to Alexander10.
  4308. * po/uk.po
  4309. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Code cleanup
  4311. * src/MetalinkParserStateMachine.cc
  4312. * src/MetalinkParserStateMachine.h
  4313. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4314. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4315. and expat simultaneously, MetalinkProcessor is now not base class
  4316. and it is directly implemented in XML2SAXMetalinkProcessor and
  4317. ExpatMetalinkProcessor.
  4318. * src/ExpatMetalinkProcessor.cc
  4319. * src/ExpatMetalinkProcessor.h
  4320. * src/Makefile.am
  4321. * src/MetalinkHelper.cc
  4322. * src/MetalinkProcessor.h
  4323. * src/MetalinkProcessorFactory.cc: Removed.
  4324. * src/MetalinkProcessorFactory.h: Removed
  4325. * src/XML2SAXMetalinkProcessor.cc
  4326. * src/XML2SAXMetalinkProcessor.h
  4327. * test/MetalinkProcessorTest.cc
  4328. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Bump up version number to 1.3.2
  4330. * configure.ac
  4331. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Added missing file.
  4333. * test/Makefile.am
  4334. * test/url-list-singleFileEndsWithSlash.torrent
  4335. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4336. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4337. request.
  4338. * src/AnnounceList.cc
  4339. * src/AnnounceList.h
  4340. * src/BDE.cc: Added
  4341. * src/BDE.h: Added
  4342. * src/DHTAbstractMessage.cc
  4343. * src/DHTAbstractMessage.h
  4344. * src/DHTAnnouncePeerMessage.cc
  4345. * src/DHTAnnouncePeerMessage.h
  4346. * src/DHTAnnouncePeerReplyMessage.cc
  4347. * src/DHTAnnouncePeerReplyMessage.h
  4348. * src/DHTFindNodeMessage.cc
  4349. * src/DHTFindNodeMessage.h
  4350. * src/DHTFindNodeReplyMessage.cc
  4351. * src/DHTFindNodeReplyMessage.h
  4352. * src/DHTGetPeersMessage.cc
  4353. * src/DHTGetPeersMessage.h
  4354. * src/DHTGetPeersReplyMessage.cc
  4355. * src/DHTGetPeersReplyMessage.h
  4356. * src/DHTMessageFactory.h
  4357. * src/DHTMessageFactoryImpl.cc
  4358. * src/DHTMessageFactoryImpl.h
  4359. * src/DHTMessageReceiver.cc
  4360. * src/DHTMessageTracker.cc
  4361. * src/DHTMessageTracker.h
  4362. * src/DHTPingMessage.cc
  4363. * src/DHTPingMessage.h
  4364. * src/DHTPingReplyMessage.cc
  4365. * src/DHTPingReplyMessage.h
  4366. * src/DHTQueryMessage.cc
  4367. * src/DHTQueryMessage.h
  4368. * src/DHTResponseMessage.cc
  4369. * src/DHTResponseMessage.h
  4370. * src/DefaultBtAnnounce.cc
  4371. * src/DefaultBtContext.cc
  4372. * src/DefaultBtContext.h
  4373. * src/HandshakeExtensionMessage.cc
  4374. * src/Makefile.am
  4375. * src/PeerListProcessor.h
  4376. * src/UTPexExtensionMessage.cc
  4377. * src/bencode.cc
  4378. * src/bencode.h
  4379. * test/AnnounceListTest.cc
  4380. * test/BDETest.cc: Added
  4381. * test/BencodeTest.cc
  4382. * test/DHTAnnouncePeerMessageTest.cc
  4383. * test/DHTAnnouncePeerReplyMessageTest.cc
  4384. * test/DHTFindNodeMessageTest.cc
  4385. * test/DHTFindNodeReplyMessageTest.cc
  4386. * test/DHTGetPeersMessageTest.cc
  4387. * test/DHTGetPeersReplyMessageTest.cc
  4388. * test/DHTMessageFactoryImplTest.cc
  4389. * test/DHTMessageTrackerTest.cc
  4390. * test/DHTPingMessageTest.cc
  4391. * test/DHTPingReplyMessageTest.cc
  4392. * test/Makefile.am
  4393. * test/MockDHTMessageFactory.h
  4394. * test/PeerListProcessorTest.cc
  4395. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Use url-list (web-seeding) only for single-file torrent. This is
  4397. basically the same behavior with Metalink file with torrent and
  4398. URIs.
  4399. * src/RequestGroup.cc
  4400. * src/DefaultBtContext.cc
  4401. * test/DefaultBtContextTest.cc
  4402. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4403. Rewritten expr
  4404. * src/array_fun.h
  4405. * test/array_funTest.cc
  4406. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4408. * src/DefaultBtMessageDispatcher.cc
  4409. * src/a2algo.h
  4410. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Removed ExtendedMessagingAware. Instead of using inheritance,
  4412. added ExtensionMessageRegistry and it is passed to
  4413. DefaultExtensionMessageFactory.
  4414. * src/DefaultBtInteractive.cc
  4415. * src/DefaultBtInteractive.h
  4416. * src/DefaultExtensionMessageFactory.cc
  4417. * src/DefaultExtensionMessageFactory.h
  4418. * src/ExtendedMessagingAware.h: Removed.
  4419. * src/ExtensionMessageFactory.h
  4420. * src/ExtensionMessageRegistry.h: Added.
  4421. * src/Makefile.am
  4422. * src/PeerInteractionCommand.cc
  4423. * test/DefaultExtensionMessageFactoryTest.cc
  4424. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Fixed typo in log messages
  4426. * src/MSEHandshake.cc
  4427. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Fixed the bug that prevents torrent download from finishing. The
  4429. bug doesn't reveal for all torrents. The torrents affected this
  4430. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4431. of pieces.
  4432. * src/bitfield.h
  4433. * test/bitfieldTest.cc
  4434. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Code cleanup
  4436. * src/PeerListProcessor.h
  4437. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Removed RequestGroupAware
  4439. * src/AbstractCommand.cc
  4440. * src/AbstractCommand.h
  4441. * src/ActivePeerConnectionCommand.cc
  4442. * src/ActivePeerConnectionCommand.h
  4443. * src/DHTGetPeersCommand.cc
  4444. * src/DHTGetPeersCommand.h
  4445. * src/InitiatorMSEHandshakeCommand.cc
  4446. * src/InitiatorMSEHandshakeCommand.h
  4447. * src/Makefile.am
  4448. * src/PeerInitiateConnectionCommand.cc
  4449. * src/PeerInitiateConnectionCommand.h
  4450. * src/PeerInteractionCommand.cc
  4451. * src/PeerInteractionCommand.h
  4452. * src/RealtimeCommand.cc
  4453. * src/RealtimeCommand.h
  4454. * src/RequestGroupAware.cc: Removed
  4455. * src/RequestGroupAware.h: Removed
  4456. * src/SeedCheckCommand.cc
  4457. * src/SeedCheckCommand.h
  4458. * src/SleepCommand.cc
  4459. * src/TrackerWatcherCommand.cc
  4460. * src/TrackerWatcherCommand.h
  4461. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4462. Rewritten PeerListProcessor
  4463. * src/PeerListProcessor.h
  4464. * src/CompactPeerListProcessor.h: Removed
  4465. * src/CompactPeerListProcessor.cc: Removed
  4466. * src/DelegatingPeerListProcessor.cc: Removed.
  4467. * src/DefaultBtAnnounce.cc
  4468. * src/Makefile.am
  4469. * src/UTPexExtensionMessage.cc
  4470. * src/DefaultPeerListProcessor.h: Removed.
  4471. * src/DefaultPeerListProcessor.cc: Removed.
  4472. * src/DelegatingPeerListProcessor.h: Removed.
  4473. * test/Makefile.am
  4474. * test/PeerListProcessorTest.cc
  4475. * test/DefaultPeerListProcessorTest.cc: Removed.
  4476. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Rewritten RequestGroupMan::calculateStat()
  4478. * src/RequestGroupMan.cc
  4479. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Removed unnecessary virtual destructor for Request class.
  4481. * src/Request.cc
  4482. * src/Request.h
  4483. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Avoid dynamic_pointer_cast.
  4485. * src/DHTGetPeersCommand.cc
  4486. * src/DHTGetPeersCommand.h
  4487. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4489. BtEvent.
  4490. * src/AbstractBtEventListener.h: Removed.
  4491. * src/AbstractBtMessage.cc
  4492. * src/AbstractBtMessage.h
  4493. * src/BtAbortOutstandingRequestEvent.h
  4494. * src/BtCancelSendingPieceEvent.h
  4495. * src/BtChokedEvent.h: Removed.
  4496. * src/BtChokingEvent.h
  4497. * src/BtEvent.h: Removed
  4498. * src/BtEventListener.h: Removed.
  4499. * src/BtMessage.h
  4500. * src/BtPieceMessage.cc
  4501. * src/BtPieceMessage.h
  4502. * src/BtRequestMessage.cc
  4503. * src/BtRequestMessage.h
  4504. * src/DefaultBtMessageDispatcher.cc
  4505. * src/Makefile.am
  4506. * src/a2functional.h
  4507. * test/BtPieceMessageTest.cc
  4508. * test/BtRequestMessageTest.cc
  4509. * test/DefaultBtMessageDispatcherTest.cc
  4510. * test/MockBtMessage.h
  4511. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Code cleanup
  4513. * src/RequestGroupMan.cc
  4514. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Code cleanup
  4516. * src/DownloadCommand.cc
  4517. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4519. byte.
  4520. * src/DownloadCommand.cc
  4521. * src/bitfield.h
  4522. * test/bitfieldTest.cc
  4523. Fixed the bug that causes infinite loop if broken web server
  4524. returns chunked response without last "0" chunk-size marker and
  4525. closes connection.
  4526. * src/DownloadCommand.cc
  4527. Instantiate properly configured HttpDownloadCommand for
  4528. non-resumable downlaods.
  4529. * src/HttpResponseCommand.cc
  4530. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Rewritten array operation functions.
  4532. * src/BitfieldMan.cc
  4533. * src/array_fun.h
  4534. * test/array_funTest.cc
  4535. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Removed unused variable 'query'
  4537. * src/Request.cc
  4538. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4540. accidentally set to false in r1162.
  4541. * configure.ac
  4542. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Code cleanup
  4544. * src/BNode.cc
  4545. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Increase prefixLength for the bucket which doesn't own local node
  4547. ID when splitting bucket.
  4548. * src/DHTBucket.cc
  4549. * test/DHTBucketTest.cc
  4550. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. * Release 1.3.1
  4552. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Bump up version number to 1.3.1
  4554. * configure.ac
  4555. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Removed unused variable checkPoint. Also removed include directive
  4557. for TimeA2.h.
  4558. * src/SeedCheckCommand.h
  4559. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Fixed the bug that upload limit exceeds the value specified in
  4561. --seed-ratio option depending on the timing of the execution of
  4562. SeedCheckCommand.
  4563. * src/SeedCheckCommand.cc
  4564. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Fixed the bug that removed peer's session upload/download length
  4566. are counted twice in _cachedTransferStat before it is
  4567. re-calculated. This affected the calculation of shara ratio,
  4568. resulting aria2 wrongly determines that specified share ratio is
  4569. reached. Also fixed the typo in calculateStatFor function name.
  4570. * src/BtSetup.cc
  4571. * src/DefaultPeerStorage.cc
  4572. * src/ShareRatioSeedCriteria.h
  4573. * test/ShareRatioSeedCriteriaTest.cc
  4574. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. * Release 1.3.0
  4576. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4578. Nynorsk translations. Thanks to all translators.
  4579. * po/es.po
  4580. * po/ja.po
  4581. * po/nn.po
  4582. * po/ru.po
  4583. * po/uk.po
  4584. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Rewritten isInRange()
  4586. * src/DHTBucket.cc
  4587. * test/DHTBucketTest.cc
  4588. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Fixed typo
  4590. * doc/aria2c.1.txt
  4591. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4593. malloc/realloc is not used.
  4594. * src/configure.ac
  4595. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4597. char* bitfield instead of stl container for efficiency.
  4598. PieceSelector::select now takes this
  4599. bitfield. RarestPieceSelector::select now also performs
  4600. efficiently for this change. bitfield namespace is introduced and
  4601. it has several helper functions to handle basic bitfield
  4602. operations such as test, count set bits, etc.
  4603. * src/BitfieldMan.cc
  4604. * src/BitfieldMan.h
  4605. * src/DefaultBtRequestFactory.cc
  4606. * src/DefaultPieceStorage.cc
  4607. * src/DefaultPieceStorage.h
  4608. * src/LongestSequencePieceSelector.cc
  4609. * src/LongestSequencePieceSelector.h
  4610. * src/Makefile.am
  4611. * src/Piece.cc
  4612. * src/Piece.h
  4613. * src/PieceSelector.h
  4614. * src/RarestPieceSelector.cc
  4615. * src/RarestPieceSelector.h
  4616. * src/Util.cc
  4617. * src/Util.h
  4618. * src/bitfield.h
  4619. * test/BitfieldManTest.cc
  4620. * test/LongestSequencePieceSelectorTest.cc
  4621. * test/Makefile.am
  4622. * test/RarestPieceSelectorTest.cc
  4623. * test/UtilTest.cc
  4624. * test/bitfieldTest.cc
  4625. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4626. Made accepted socket non-block.
  4627. * src/FtpNegotiationCommand.cc
  4628. * src/HttpListenCommand.cc
  4629. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4631. * src/AbstractSingleDiskAdaptor.cc
  4632. * src/DefaultPieceStorage.cc
  4633. * src/DiskAdaptor.h
  4634. * src/DiskAdaptor.h
  4635. * src/MultiFileAllocationIterator.cc
  4636. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Run
  4638. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4639. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4640. it doesn't need to be called every time when
  4641. DefaultBtInteractive::doInteractionProcessing() is called.
  4642. * src/DefaultBtInteractive.cc
  4643. * src/DefaultBtInteractive.h
  4644. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Documented 'falloc' in man page.
  4646. * doc/aria2c.1.txt
  4647. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4648. Updated doc
  4649. * src/usage_text.h
  4650. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4651. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4652. allocation mode uses posix_fallocate() system call to allocate
  4653. file on disk. If you are using newer file systems such as ext4
  4654. (with extents support), btrfs or xfs, 'falloc' is your best
  4655. choice. It allocates large(few GiB) files almost instantly. Don't
  4656. use 'falloc' with legacy file systems such as ext3 because it
  4657. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4658. until allocation finishes. 'falloc' may not be available if your
  4659. system doesn't have posix_fallocate() system call.
  4660. * configure.ac
  4661. * src/AbstractDiskWriter.cc
  4662. * src/AbstractDiskWriter.h
  4663. * src/AbstractSingleDiskAdaptor.cc
  4664. * src/BinaryStream.h
  4665. * src/BtCheckIntegrityEntry.cc
  4666. * src/ByteArrayDiskWriter.h
  4667. * src/CheckIntegrityEntry.cc
  4668. * src/CheckIntegrityEntry.h
  4669. * src/DefaultPieceStorage.cc
  4670. * src/DiskAdaptor.cc
  4671. * src/DiskAdaptor.h
  4672. * src/DiskWriter.h
  4673. * src/FallocFileAllocationIterator.cc
  4674. * src/FallocFileAllocationIterator.h
  4675. * src/FileAllocationEntry.cc
  4676. * src/FileAllocationEntry.h
  4677. * src/Makefile.am
  4678. * src/MultiFileAllocationIterator.cc
  4679. * src/MultiFileAllocationIterator.h
  4680. * src/OptionHandlerFactory.cc
  4681. * src/RequestGroup.cc
  4682. * src/StreamCheckIntegrityEntry.cc
  4683. * src/prefs.cc
  4684. * src/prefs.h
  4685. * src/usage_text.h
  4686. * test/FallocFileAllocationIteratorTest.cc
  4687. * test/Makefile.am
  4688. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Removed duplicate enableDirectIO() call.
  4690. * src/MultiFileAllocationIterator.cc
  4691. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4693. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4694. cost of std::rotate().
  4695. * src/RarestPieceSelector.cc
  4696. * src/RarestPieceSelector.h
  4697. * test/RarestPieceSelectorTest.cc
  4698. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Updated usage doc for --bt-tracker-interval option.
  4700. * src/usage_text.h
  4701. * doc/aria2c.1.txt
  4702. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Documented --bt-tracker-interval option in man page.
  4704. * doc/aria2c.1.txt
  4705. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4706. Added an option to specify the interval between tracker requests.
  4707. If non-zero value is specified, aria2 uses it and ignores the
  4708. interval value in the response of tracker. If zero is specified,
  4709. aria2 determines the inteval value based on the tarcker response
  4710. and download progress.
  4711. * src/DefaultBtAnnounce.cc
  4712. * src/DefaultBtAnnounce.h
  4713. * src/OptionHandlerFactory.cc
  4714. * src/RequestGroup.cc
  4715. * src/prefs.cc
  4716. * src/prefs.h
  4717. * src/usage_text.h
  4718. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4719. Added operator+=, operator-=, operator-
  4720. * src/TransferStat.cc
  4721. * src/TransferStat.h
  4722. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Refactored RarestPieceSelector to reduce CPU load, especially for
  4724. addPieceStats.
  4725. * src/RarestPieceSelector.cc
  4726. * src/RarestPieceSelector.h
  4727. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4729. getAllMissingBlockIndexes to reduce a call to
  4730. array_function_base::operator[].
  4731. * src/BitfieldMan.cc
  4732. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Cached TransferStat/download speed to avoid to sum them up in each
  4734. call.
  4735. * src/DefaultPeerStorage.cc
  4736. * src/DefaultPeerStorage.h
  4737. * src/SegmentMan.cc
  4738. * src/SegmentMan.h
  4739. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4740. Typedefed cuid_t as int32_t in Command.h
  4741. * src/CUIDCounter.h
  4742. * src/Command.cc
  4743. * src/Command.h
  4744. * src/DownloadEngine.cc
  4745. * src/DownloadEngine.h
  4746. * src/PeerStat.h
  4747. * src/SegmentMan.cc
  4748. * src/SegmentMan.h
  4749. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Reduced the number of calls to PeerStorage::calculateStat() and
  4751. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4752. transfer rate.
  4753. * src/DefaultBtInteractive.cc
  4754. * src/DefaultBtMessageDispatcher.cc
  4755. * src/DefaultPeerStorage.cc
  4756. * src/DefaultPeerStorage.h
  4757. * src/DownloadCommand.cc
  4758. * src/DownloadEngine.cc
  4759. * src/PeerStorage.h
  4760. * src/SegmentMan.cc
  4761. * src/SegmentMan.h
  4762. * test/MockPeerStorage.h
  4763. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4764. Prepended _dir+"/" after joining path elements in torrent file.
  4765. * src/DefaultBtContext.cc
  4766. * test/DefaultBtContextTest.cc
  4767. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4768. Added missing IndexBtMessageValidator.h
  4769. * src/Makefile.am
  4770. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4772. Chinese translations. Thank you for contributing our project.
  4773. * po/id.po
  4774. * po/it.po
  4775. * po/ru.po
  4776. * po/uk.po
  4777. * po/zh_CN.po
  4778. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Updated README
  4780. * README
  4781. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Bump up version number to 1.3.0
  4783. * configure.ac
  4784. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Updated doc
  4786. * src/DefaultBtContext.h
  4787. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4788. Slice/joinPath for name of single torrent.
  4789. * src/DefaultBtContext.cc
  4790. * test/DefaultBtContextTest.cc
  4791. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Updated man page: Documented --dry-run and --index-out
  4793. options. Changed the default value of --uri-selector and
  4794. --http-auth-challenge options. Removed --direct-file-mapping
  4795. option. Added example for --index-out
  4796. * doc/aria2c.1.txt
  4797. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Updated TEXT_DRY_RUN
  4799. * src/usage_text.h
  4800. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Changed the default value of --uri-selector option from 'inorder'
  4802. to 'feedback'
  4803. * src/OptionHandlerFactory.cc
  4804. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Included current URI in exception message.
  4806. * src/AbstractCommand.cc
  4807. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4808. Renamed ServerStatURISelector as FeedbackURISelector.
  4809. * src/FeedbackURISelector.cc
  4810. * src/FeedbackURISelector.h
  4811. * src/Makefile.am
  4812. * src/RequestGroupMan.cc
  4813. * src/ServerStatURISelector.cc
  4814. * src/ServerStatURISelector.h
  4815. * test/FeedbackURISelectorTest.cc
  4816. * test/Makefile.am
  4817. * test/ServerStatURISelectorTest.cc
  4818. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4820. all URIs are tested and their timeout is not reached.
  4821. * src/AdaptiveURISelector.cc
  4822. * src/AdaptiveURISelector.h
  4823. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Changed the default value of --http-auth-challenge option to false.
  4825. * src/OptionHandlerFactory.cc
  4826. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Reuse URIs when all unused URIs run out.
  4828. * src/OptionHandlerFactory.cc
  4829. * src/RequestGroup.cc
  4830. * src/prefs.cc
  4831. * src/prefs.h
  4832. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4833. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4834. and BtRejectMessage are derived from RangeBtMessage class.
  4835. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4836. derived from IndexBtMessage class. BtChokeMessage,
  4837. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4838. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4839. ZeroBtMessage class.
  4840. * src/AbstractBtMessage.cc
  4841. * src/AbstractBtMessage.h
  4842. * src/BtAllowedFastMessage.cc
  4843. * src/BtAllowedFastMessage.h
  4844. * src/BtAllowedFastMessageValidator.h: Removed
  4845. * src/BtBitfieldMessage.cc
  4846. * src/BtBitfieldMessage.h
  4847. * src/BtCancelMessage.cc
  4848. * src/BtCancelMessage.h
  4849. * src/BtCancelMessageValidator.h: Removed
  4850. * src/BtChokeMessage.cc
  4851. * src/BtChokeMessage.h
  4852. * src/BtExtendedMessage.cc
  4853. * src/BtExtendedMessage.h
  4854. * src/BtHandshakeMessage.cc
  4855. * src/BtHandshakeMessage.h
  4856. * src/BtHaveAllMessage.cc
  4857. * src/BtHaveAllMessage.h
  4858. * src/BtHaveMessage.cc
  4859. * src/BtHaveMessage.h
  4860. * src/BtHaveMessageValidator.h: Removed
  4861. * src/BtHaveNoneMessage.cc
  4862. * src/BtHaveNoneMessage.h
  4863. * src/BtInterestedMessage.cc
  4864. * src/BtInterestedMessage.h
  4865. * src/BtKeepAliveMessage.cc
  4866. * src/BtKeepAliveMessage.h
  4867. * src/BtNotInterestedMessage.cc
  4868. * src/BtNotInterestedMessage.h
  4869. * src/BtPieceMessage.cc
  4870. * src/BtPieceMessage.h
  4871. * src/BtPortMessage.cc
  4872. * src/BtPortMessage.h
  4873. * src/BtRejectMessage.cc
  4874. * src/BtRejectMessage.h
  4875. * src/BtRejectMessageValidator.h: Removed
  4876. * src/BtRequestMessage.cc
  4877. * src/BtRequestMessage.h
  4878. * src/BtRequestMessageValidator.h: Removed
  4879. * src/BtSuggestPieceMessage.cc
  4880. * src/BtSuggestPieceMessage.h
  4881. * src/BtSuggestPieceMessageValidator.h: Removed
  4882. * src/BtUnchokeMessage.cc
  4883. * src/BtUnchokeMessage.h
  4884. * src/DefaultBtMessageFactory.cc
  4885. * src/IndexBtMessage.cc
  4886. * src/IndexBtMessage.h
  4887. * src/IndexBtMessageValidator.h
  4888. * src/Makefile.am
  4889. * src/PeerMessageUtil.cc
  4890. * src/PeerMessageUtil.h
  4891. * src/RangeBtMessage.cc
  4892. * src/RangeBtMessage.h
  4893. * src/RangeBtMessageValidator.h
  4894. * src/SimpleBtMessage.cc
  4895. * src/SimpleBtMessage.h
  4896. * src/ZeroBtMessage.cc
  4897. * src/ZeroBtMessage.h
  4898. * test/BtRequestMessageTest.cc
  4899. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4900. Reverted usage_text.h to r1093 to avoid to lose translated
  4901. messages.
  4902. * src/usage_text.h
  4903. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4904. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4905. declared as non-const previously is now const and defined in class
  4906. definition.
  4907. * src/AbstractBtMessage.cc
  4908. * src/AbstractBtMessage.h
  4909. * src/BtAllowedFastMessage.cc
  4910. * src/BtAllowedFastMessage.h
  4911. * src/BtBitfieldMessage.h
  4912. * src/BtCancelMessage.cc
  4913. * src/BtCancelMessage.h
  4914. * src/BtChokeMessage.cc
  4915. * src/BtChokeMessage.h
  4916. * src/BtExtendedMessage.cc
  4917. * src/BtExtendedMessage.h
  4918. * src/BtHandshakeMessage.cc
  4919. * src/BtHandshakeMessage.h
  4920. * src/BtHaveAllMessage.cc
  4921. * src/BtHaveAllMessage.h
  4922. * src/BtHaveMessage.cc
  4923. * src/BtHaveMessage.h
  4924. * src/BtHaveNoneMessage.cc
  4925. * src/BtHaveNoneMessage.h
  4926. * src/BtInterestedMessage.cc
  4927. * src/BtInterestedMessage.h
  4928. * src/BtKeepAliveMessage.cc
  4929. * src/BtKeepAliveMessage.h
  4930. * src/BtMessage.h
  4931. * src/BtNotInterestedMessage.cc
  4932. * src/BtNotInterestedMessage.h
  4933. * src/BtPieceMessage.h
  4934. * src/BtPortMessage.cc
  4935. * src/BtPortMessage.h
  4936. * src/BtRejectMessage.cc
  4937. * src/BtRejectMessage.h
  4938. * src/BtRequestMessage.cc
  4939. * src/BtRequestMessage.h
  4940. * src/BtSuggestPieceMessage.cc
  4941. * src/BtSuggestPieceMessage.h
  4942. * src/BtUnchokeMessage.cc
  4943. * src/BtUnchokeMessage.h
  4944. * src/SimpleBtMessage.cc
  4945. * src/SimpleBtMessage.h
  4946. * test/MockBtMessage.h
  4947. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4948. Use FileEntry::exists()
  4949. * src/MultiDiskAdaptor.cc
  4950. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Added exists()
  4952. * src/FileEntry.cc
  4953. * src/FileEntry.h
  4954. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. Added missing prefix dir.
  4956. * src/download_helper.cc
  4957. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4959. * src/CopyDiskAdaptor.cc: Removed
  4960. * src/CopyDiskAdaptor.h: Removed
  4961. * src/DefaultPieceStorage.cc
  4962. * src/Makefile.am
  4963. * src/OptionHandlerFactory.cc
  4964. * src/prefs.cc
  4965. * src/prefs.h
  4966. * src/usage_text.h
  4967. * test/CopyDiskAdaptorTest.cc: Removed
  4968. * test/Makefile.am
  4969. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. Rewritten isSameFileBeingDownloaded()
  4971. * src/RequestGroupMan.cc
  4972. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Removed getName() from DownloadContext. getName() is declared in
  4974. BtContext.
  4975. * src/BtContext.h
  4976. * src/DownloadContext.h
  4977. * src/SingleFileDownloadContext.cc
  4978. * src/SingleFileDownloadContext.h
  4979. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4980. in AbstractSingleDiskAdaptor.
  4981. * src/AbstractSingleDiskAdaptor.h
  4982. * src/DiskAdaptor.h
  4983. * src/MultiDiskAdaptor.h
  4984. * src/RequestGroup.cc
  4985. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4986. MultiDiskAdaptor.
  4987. * src/DefaultPieceStorage.cc
  4988. * src/MultiDiskAdaptor.cc
  4989. * src/MultiDiskAdaptor.h
  4990. * test/MultiDiskAdaptorTest.cc
  4991. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. FileEntry::getPath() contains store(top level) directory to
  4993. simplify path handling operation. In the previous implementation,
  4994. store directory is concatenated to FileEntry::getPath() in
  4995. DownloadContext.
  4996. * src/BtDependency.cc
  4997. * src/BtPostDownloadHandler.cc
  4998. * src/CopyDiskAdaptor.cc
  4999. * src/DefaultBtContext.cc
  5000. * src/DirectDiskAdaptor.cc
  5001. * src/FileEntry.cc
  5002. * src/FileEntry.h
  5003. * src/FtpNegotiationCommand.cc
  5004. * src/HttpResponse.cc
  5005. * src/HttpResponseCommand.cc
  5006. * src/Metalink2RequestGroup.cc
  5007. * src/MultiDiskAdaptor.cc
  5008. * src/MultiDiskAdaptor.h
  5009. * src/MultiFileAllocationIterator.cc
  5010. * src/RequestGroup.cc
  5011. * src/SingleFileDownloadContext.cc
  5012. * src/SingleFileDownloadContext.h
  5013. * src/download_helper.cc
  5014. * test/BtDependencyTest.cc
  5015. * test/CopyDiskAdaptorTest.cc
  5016. * test/DefaultBtContextTest.cc
  5017. * test/DefaultBtProgressInfoFileTest.cc
  5018. * test/DirectDiskAdaptorTest.cc
  5019. * test/DownloadHelperTest.cc
  5020. * test/FileEntryTest.cc
  5021. * test/MultiDiskAdaptorTest.cc
  5022. * test/MultiFileAllocationIteratorTest.cc
  5023. * test/RequestGroupTest.cc
  5024. * test/SingleFileDownloadContextTest.cc
  5025. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5026. Fixed compiler warning
  5027. * src/download_helper.cc
  5028. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Throw exception if same infohash torrent is now downloading.
  5030. * src/RequestGroup.cc
  5031. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Added --dry-run option. In this mode, aria2 just checks whether
  5033. the remote file is available and doesn't download data. This
  5034. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5035. are canceled in this mode.
  5036. * src/FtpNegotiationCommand.cc
  5037. * src/HttpResponseCommand.cc
  5038. * src/HttpResponseCommand.h
  5039. * src/OptionHandlerFactory.cc
  5040. * src/RequestGroup.cc
  5041. * src/RequestGroupMan.cc
  5042. * src/prefs.cc
  5043. * src/prefs.h
  5044. * src/usage_text.h
  5045. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Fixed compiler waring
  5047. * test/UriListParserTest.cc
  5048. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Parse options in -i list using OptionParser.
  5050. * src/UriListParser.cc
  5051. * src/UriListParser.h
  5052. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Don't reset URI in retry to avoid additional round trips because
  5054. of redirects.
  5055. * src/AbstractCommand.cc
  5056. * src/OptionHandlerFactory.cc
  5057. * src/prefs.cc
  5058. * src/prefs.h
  5059. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5060. Declared hide() in OptionHandler.
  5061. * src/NameMatchOptionHandler.h
  5062. * src/OptionHandler.h
  5063. * src/OptionHandlerImpl.h
  5064. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5065. Updated doc
  5066. * src/Peer.h
  5067. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Added log message in setStatusInternal()
  5069. * src/ServerStat.cc
  5070. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5072. effectively exclude failed server.
  5073. * src/AbstractCommand.cc
  5074. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Added --index-out option to specify each file path for torrent.
  5076. Here index shown in --show-files option is used to specify which
  5077. file path should be altered. For example, to change the file path
  5078. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5079. option multiple times: --index-out=1=aria2.tar.bz2
  5080. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5081. available. This option can be specified in -i list.
  5082. * src/DefaultBtContext.cc
  5083. * src/DefaultBtContext.h
  5084. * src/MultiDiskAdaptor.cc
  5085. * src/MultiDiskAdaptor.h
  5086. * src/MultiFileAllocationIterator.cc
  5087. * src/OptionHandlerFactory.cc
  5088. * src/OptionHandlerImpl.h
  5089. * src/Util.cc
  5090. * src/Util.h
  5091. * src/download_helper.cc
  5092. * src/prefs.cc
  5093. * src/prefs.h
  5094. * src/usage_text.h
  5095. * test/DefaultBtContextTest.cc
  5096. * test/MultiDiskAdaptorTest.cc
  5097. * test/MultiFileAllocationIteratorTest.cc
  5098. * test/UtilTest.cc
  5099. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Use Util::pathJoin()
  5101. * src/MetalinkParserController.cc
  5102. * test/test.xml
  5103. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5104. Use Util::pathJoin()
  5105. * src/DefaultBtContext.cc
  5106. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Added Util::pathJoin()
  5108. * src/Util.h
  5109. * test/UtilTest.cc
  5110. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Applied basename function to remove directory element in
  5112. content-disposition value.
  5113. Return empty string if content-disposition value is ".." or ".".
  5114. * src/Util.cc
  5115. * test/UtilTest.cc
  5116. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Added --max-overall-download-limit in man page.
  5118. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5119. * doc/aria2c.1.txt
  5120. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Added --max-overall-download-limit option. Now --max-upload-limit
  5122. option is not ignored when --max-overall-upload-limit option has
  5123. non-zero value. aria2 checks download(upload) speed in the order:
  5124. first checks overall speed limit and if it is not exceeded, then
  5125. checks speed limit per download. Thus you can specify both
  5126. value. For example, set --max-overall-download-limit=1M and
  5127. --max-download-limit=500K to prevent from one download from eating
  5128. all overall speed limit.
  5129. * src/DefaultBtInteractive.cc
  5130. * src/DefaultBtInteractive.h
  5131. * src/DefaultBtMessageDispatcher.cc
  5132. * src/DefaultBtMessageDispatcher.h
  5133. * src/DownloadCommand.cc
  5134. * src/DownloadCommand.h
  5135. * src/FtpNegotiationCommand.cc
  5136. * src/HttpResponseCommand.cc
  5137. * src/OptionHandlerFactory.cc
  5138. * src/PeerInteractionCommand.cc
  5139. * src/RequestGroup.cc
  5140. * src/RequestGroup.h
  5141. * src/RequestGroupMan.cc
  5142. * src/RequestGroupMan.h
  5143. * src/prefs.cc
  5144. * src/prefs.h
  5145. * src/usage_text.h
  5146. * test/DefaultBtMessageDispatcherTest.cc
  5147. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Documented select-file option in Input File section.
  5149. Documented --http-auth-challenge option.
  5150. * doc/aria2c.1.txt
  5151. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Now select-file can be specified in the uri list(-i list).
  5153. * src/BtContext.cc
  5154. * src/BtContext.h
  5155. * src/RequestGroup.cc
  5156. * src/Sequence.h
  5157. * src/download_helper.cc
  5158. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Made the upper value of --max-concurrent-downloads options unlimited.
  5160. * src/OptionHandlerFactory.cc
  5161. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Fixed the bug that disk writer is not created even if it shares
  5163. same piece with the preceding file if the length of previous file
  5164. is 0.
  5165. * src/MultiDiskAdaptor.cc
  5166. * test/MultiDiskAdaptorTest.cc
  5167. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. In BitTorrent, Open files in read-only mode for hash check. After
  5169. that, re-open file in read/write mode only when the download is
  5170. not finished.
  5171. * src/AbstractDiskWriter.cc
  5172. * src/AbstractDiskWriter.h
  5173. * src/AbstractSingleDiskAdaptor.cc
  5174. * src/AbstractSingleDiskAdaptor.h
  5175. * src/BtCheckIntegrityEntry.cc
  5176. * src/DiskAdaptor.h
  5177. * src/DiskWriter.h
  5178. * src/MultiDiskAdaptor.cc
  5179. * src/MultiDiskAdaptor.h
  5180. * src/RequestGroup.cc
  5181. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Added --http-auth-challenge option. If it is set to true(by
  5183. default), aria2 sends HTTP authorization header only when it is
  5184. requested by the server. If false is set, then authorization
  5185. header is always sent to the server. This is useful for servers
  5186. that don't respond 401 code when authentication is required.
  5187. There is an exception: if username and password are embedded in
  5188. URI, authorization header is always sent to the server regardless
  5189. of this option.
  5190. * src/AuthConfigFactory.cc
  5191. * src/HttpSkipResponseCommand.cc
  5192. * src/OptionHandlerFactory.cc
  5193. * src/prefs.cc
  5194. * src/prefs.h
  5195. * src/usage_text.h
  5196. * test/AuthConfigFactoryTest.cc
  5197. * test/HttpRequestTest.cc
  5198. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. * Release 1.2.0
  5200. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5201. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5202. Thanks to all translators.
  5203. * po/es.po
  5204. * po/ja.po
  5205. * po/ru.po
  5206. * po/uk.po
  5207. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5208. Call deleteSocketForReadCheck() before socket is closed.
  5209. * src/HttpListenCommand.cc
  5210. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Defined virtual destructor for BObject.
  5212. * src/bencode.h
  5213. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Rewritten BDE to make it efficient.
  5215. * src/bencode.cc
  5216. * src/bencode.h
  5217. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Removed function throw list.
  5219. * src/bencode.cc
  5220. * src/bencode.h
  5221. * test/BencodeTest.cc
  5222. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Enclosed all URLs in double quotes in command-line examples.
  5224. * doc/aria2c.1.txt
  5225. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Updated reference/see also section.
  5227. * README
  5228. * doc/aria2c.1.txt
  5229. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. Reorganized man page based on man man-pages.
  5231. * doc/aria2c.1.txt
  5232. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5234. because same documents are available in man page. Added
  5235. References section.
  5236. * README
  5237. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5239. PERFORMANCE PROFILE section.
  5240. * doc/aria2c.1.txt
  5241. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Rewritten the section for configuration file.
  5243. * README
  5244. * doc/aria2c.1.txt
  5245. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5246. Fixed the segmentation fault during execution of choking algorithm
  5247. in leecher state because of broken compare operator
  5248. implementation.
  5249. * src/BtLeecherStateChoke.cc
  5250. * src/BtLeecherStateChoke.h
  5251. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5252. Open file in binary mode.
  5253. * src/CookieStorage.cc
  5254. * src/DHTSetup.cc
  5255. * src/DHTUtil.cc
  5256. * src/Netrc.cc
  5257. * src/NsCookieParser.cc
  5258. * src/ProtocolDetector.cc
  5259. * src/RequestGroupMan.cc
  5260. * src/Signature.cc
  5261. * src/bencode.cc
  5262. * src/download_helper.cc
  5263. * src/option_processing.cc
  5264. * test/CookieParserTest.cc
  5265. * test/DefaultBtProgressInfoFileTest.cc
  5266. * test/FileTest.cc
  5267. * test/GZipDecoderTest.cc
  5268. * test/RequestGroupManTest.cc
  5269. * test/SignatureTest.cc
  5270. * test/SingleFileAllocationIteratorTest.cc
  5271. * test/UriListParserTest.cc
  5272. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Removed operator[] because it is ambiguous with built-in []
  5274. operator.
  5275. * src/array_fun.h
  5276. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Fixed compile error
  5278. * src/OptionParser.cc
  5279. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5280. Added missing call to arrayWrapperConst
  5281. * test/array_funTest.cc
  5282. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Use array_wrapper instead of array_ptr.
  5284. * src/DHTRoutingTableDeserializer.cc
  5285. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5287. * src/array_fun.h
  5288. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5289. Added array_wrapper template.
  5290. * src/array_fun.h
  5291. * test/array_funTest.cc
  5292. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Use operator T* of array_ptr.
  5294. * src/OptionParser.cc
  5295. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Use localhost instead of 127.0.0.1
  5297. * test/FtpConnectionTest.cc
  5298. * test/MSEHandshakeTest.cc
  5299. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5300. Added operator T*
  5301. * src/array_fun.h
  5302. * test/array_funTest.cc
  5303. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Use dynamically allocated char array to detect memory access
  5305. violation.
  5306. * src/DHTRoutingTableDeserializer.cc
  5307. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5309. defined.
  5310. * src/PeerMessageUtil.cc
  5311. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5313. * configure.ac
  5314. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Added a check to see struct sockaddr_in has sin_len member.
  5316. * configure.ac
  5317. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5318. Fixed buffer overrun.
  5319. * src/DHTRoutingTableDeserializer.cc
  5320. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Added LL for long long int constant.
  5322. * test/FtpConnectionTest.cc
  5323. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Casted to unsigned int to suppress compiler warning on netbsd.
  5325. * src/BtRuntime.h
  5326. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5328. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5329. type time_t.
  5330. * src/SimpleLogger.cc
  5331. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Added test for FtpConnection::receiveSizeResponse().
  5333. * test/FtpConnectionTest.cc
  5334. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Fix epoll error on the old kernel 2.6.8 or ealier.
  5336. * src/EpollEventPoll.cc
  5337. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5338. Use Util::parseLLInt instead of sscanf for portability. The
  5339. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5340. * src/FtpConnection.cc
  5341. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5343. block. It should not filter anything.
  5344. * src/BitfieldMan.cc
  5345. * src/ConsoleStatCalc.cc
  5346. * test/BitfieldManTest.cc
  5347. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. Fixed the bug that the boolean options that don't take arguments
  5349. don't work.
  5350. * src/OptionHandlerImpl.h
  5351. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5352. Fixed broken selected file BitTorrent download.
  5353. * src/MultiDiskAdaptor.cc
  5354. * test/MultiDiskAdaptorTest.cc
  5355. * test/MultiFileAllocationIteratorTest.cc
  5356. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Fixed #define guard for EpollEventPoll
  5358. * src/EpollEventPoll.h
  5359. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Wait 2 seconds. 1 second is sometimes not enough.
  5361. * test/TimeSeedCriteriaTest.cc
  5362. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Use localhost instead of 127.0.0.1.
  5364. * test/DHTConnectionImplTest.cc
  5365. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Suppressed compiler warning.
  5367. * src/AdaptiveURISelector.cc
  5368. * src/DefaultPieceStorage.cc
  5369. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5370. Defined virtual destructor.
  5371. * src/MetalinkParserState.h
  5372. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5373. Give NULL for second argument of getaddrinfo instead of "0".
  5374. * src/NameResolver.cc
  5375. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5377. included strptime doesn't parse data for this format.
  5378. * src/FtpConnection.cc
  5379. * test/FtpConnectionTest.cc
  5380. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Removed tests giving -1 for unsigned argument.
  5382. * test/SingleFileDownloadContextTest.cc
  5383. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Don't use sha256 in tests because it might not be supported by the
  5385. SSL library.
  5386. * test/MetalinkProcessorTest.cc
  5387. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Removed tests giving -1 for unsigned argument.
  5389. * test/AlphaNumberDecoratorTest
  5390. * test/BitfieldManTest.cc
  5391. * test/DefaultBtContextTest.cc
  5392. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Fixed compile error without libcares when epoll is available.
  5394. * src/EpollEventPoll.cc
  5395. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Included fstream instead of iostream.
  5397. * test/SignatureTest.cc
  5398. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Removed #include <algorithm>
  5400. * test/RequestGroupTest.cc
  5401. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5403. using RequestGroup::extractURIResult().
  5404. * src/AdaptiveURISelector.cc
  5405. * src/RequestGroup.cc
  5406. * src/RequestGroup.h
  5407. * test/RequestGroupTest.cc
  5408. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Added tests for array_ptr.
  5410. * test/array_funTest.cc
  5411. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Don't send ip parameter to a tracker if ip parameter is empty
  5413. string.
  5414. * src/DefaultBtAnnounce.cc
  5415. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Adjusted line feed.
  5417. * src/version_usage.cc
  5418. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Print tags, possible values when OptionHandlerException is caught.
  5420. * src/option_processing.cc
  5421. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5422. Changed the message for FatalException.
  5423. * src/OptionParser.cc
  5424. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Documented --bt-external-ip option in man page. Updated man pages
  5426. for --proxy-method option.
  5427. * doc/aria2c.1.txt
  5428. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5429. Use GET method for FTP via HTTP proxy.
  5430. * src/FtpInitiateConnectionCommand.cc
  5431. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Changed the default value of --proxy-method option from 'tunnel'
  5433. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5434. option.
  5435. * src/AbstractCommand.cc
  5436. * src/AbstractCommand.h
  5437. * src/FtpInitiateConnectionCommand.cc
  5438. * src/HttpDownloadCommand.cc
  5439. * src/HttpInitiateConnectionCommand.cc
  5440. * src/HttpInitiateConnectionCommand.h
  5441. * src/OptionHandlerFactory.cc
  5442. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Initialized _logger
  5444. * src/SelectEventPoll.cc
  5445. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5446. Defined a copy constructor for the same type.
  5447. * src/SharedHandle.h
  5448. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5449. Added OptionParser::parseArg() which internally uses getopt_long
  5450. to parse command-line options. All command-line options are now
  5451. configured by OptionHandler. No manual editing of struct option*
  5452. is required any more.
  5453. * src/NameMatchOptionHandler.h
  5454. * src/OptionHandler.h
  5455. * src/OptionHandlerFactory.cc
  5456. * src/OptionHandlerImpl.h
  5457. * src/OptionParser.cc
  5458. * src/OptionParser.h
  5459. * src/array_fun.h
  5460. * src/main.cc
  5461. * src/option_processing.cc
  5462. * test/OptionHandlerTest.cc
  5463. * test/OptionParserTest.cc
  5464. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5465. Fixed configure error with --disable-epoll
  5466. * configure.ac
  5467. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Fixed compile error when HAVE_EPOLL is not defined.
  5469. Fixed linker error on bigendian systems.
  5470. * src/SocketCore.cc
  5471. * src/SocketCore.h
  5472. * test/DefaultBtProgressInfoFileTest.cc
  5473. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5474. Added --bt-external-ip option. You can specify the external IP
  5475. address to report to a BitTorrent tracker. Although this function
  5476. is named 'external', it can accept any kind of IP addresses.
  5477. * src/DefaultBtAnnounce.cc
  5478. * src/OptionHandlerFactory.cc
  5479. * src/option_processing.cc
  5480. * src/prefs.cc
  5481. * src/prefs.h
  5482. * src/usage_text.h
  5483. * test/DefaultBtAnnounceTest.cc
  5484. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. Extracted the algorithm to find the longest incremental sequence
  5486. as max_sequence template.
  5487. * src/LongestSequencePieceSelector.cc
  5488. * src/a2algo.h
  5489. * test/Makefile.am
  5490. * test/a2algoTest.cc
  5491. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5492. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5493. * src/usage_text.h
  5494. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Updated doc for --uri-selector, --http-server-listen-port and
  5496. --enable-http-server option. Documented --event-poll option.
  5497. * doc/aria2c.1.txt
  5498. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Updated doc for --enable-http-server.
  5500. * src/usage_text.h
  5501. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. Documented --http-server-listen-port and --enable-http-server in
  5503. man page.
  5504. * doc/aria2c.1.txt
  5505. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5506. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5507. translations. Thanks to all translators.
  5508. * po/es.po
  5509. * po/id.po
  5510. * po/it.po
  5511. * po/ru.po
  5512. * po/uk.po
  5513. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5514. Bump up version number to 1.2.0
  5515. * configure.ac
  5516. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5517. BtContext::getAnnounceTiers() now returns const reference.
  5518. * src/BtContext.h
  5519. * src/DefaultBtContext.cc
  5520. * src/DefaultBtContext.h
  5521. * test/MockBtContext.h
  5522. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Change the number of retries for tracker request based on the
  5524. number of available tracker in a torrent file.
  5525. * src/TrackerWatcherCommand.cc
  5526. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5527. Added _maxTries property to RequestGroup and assign the option
  5528. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5529. RequestGroup::getMaxTries() instead of
  5530. Option::getAsInt(PREF_MAX_TRIES).
  5531. * src/AbstractCommand.cc
  5532. * src/RequestGroup.cc
  5533. * src/RequestGroup.h
  5534. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5536. Mandriva. I modified the patch: make RequestGroup have the
  5537. timeout value and AdaptiveURISelector directly modifies that
  5538. value.
  5539. * src/AbstractCommand.cc
  5540. * src/AdaptiveURISelector.cc
  5541. * src/AdaptiveURISelector.h
  5542. * src/FtpNegotiationCommand.cc
  5543. * src/RequestGroup.cc
  5544. * src/RequestGroup.h
  5545. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5546. Fixed compiler warning
  5547. * test/IteratableChecksumValidatorTest.cc
  5548. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5550. integrated downloads. This PieceSelector subclass finds the
  5551. longest continuous sequence in the available missing pieces and
  5552. selects the last index of such sequence. This makes HTTP/FTP
  5553. connections less interrupted by the pieces obtained by BitTorrent
  5554. peers.
  5555. * src/DefaultPieceStorage.cc
  5556. * src/DefaultPieceStorage.h
  5557. * src/LongestSequencePieceSelector.cc
  5558. * src/LongestSequencePieceSelector.h
  5559. * src/Makefile.am
  5560. * src/PieceSelector.h
  5561. * src/RarestPieceSelector.h
  5562. * src/RequestGroup.cc
  5563. * test/BtDependencyTest.cc
  5564. * test/DefaultPieceStorageTest.cc
  5565. * test/IteratableChecksumValidatorTest.cc
  5566. * test/LongestSequencePieceSelectorTest.cc
  5567. * test/Makefile.am
  5568. * test/SegmentManTest.cc
  5569. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5570. Fixed the bug that the average speed is wrong in
  5571. http/ftp/BitTorrent integrated download. Only the download bytes
  5572. in BitTorrent were considered.
  5573. * src/RequestGroup.cc
  5574. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5575. Choose port for BitTorrent/DHT randomly from the specified range.
  5576. * src/DHTConnectionImpl.cc
  5577. * src/PeerListenCommand.cc
  5578. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Send HTTP Authorization header only if it is requested by the
  5580. server(response 401). There are some exceptions. The authorization
  5581. header for proxy is always sent if it is available without request
  5582. by the server. If username/password is specified in the URI, it
  5583. is immediately sent to the server without request by the server.
  5584. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5585. SharedHandle<AuthConfig>().
  5586. NetrcAuthResolver::resolveAuthConfig() returns
  5587. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5588. * src/AbstractAuthResolver.cc
  5589. * src/AbstractProxyRequestCommand.cc
  5590. * src/AuthConfigFactory.cc
  5591. * src/AuthConfigFactory.h
  5592. * src/HttpConnection.cc
  5593. * src/HttpRequest.cc
  5594. * src/HttpRequest.h
  5595. * src/HttpResponse.cc
  5596. * src/HttpResponseCommand.cc
  5597. * src/HttpSkipResponseCommand.cc
  5598. * test/AuthConfigFactoryTest.cc
  5599. * test/HttpRequestTest.cc
  5600. * test/HttpResponseTest.cc
  5601. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5602. Remove leading "--" from help keyword and a substring after "="
  5603. from help keyword, so that one can query options by '-h--max-' or
  5604. '-hmax-peers=10'.
  5605. * src/option_processing.cc
  5606. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5607. Rewritten PStringVisitor and its implementation.
  5608. * src/PStringBuildVisitor.cc
  5609. * src/PStringBuildVisitor.h
  5610. * src/PStringDatum.h
  5611. * src/PStringNumLoop.h
  5612. * src/PStringSegment.cc
  5613. * src/PStringSegment.h
  5614. * src/PStringSelect.h
  5615. * src/PStringVisitor.h
  5616. * src/download_helper.cc
  5617. * test/PStringBuildVisitorTest.cc
  5618. * test/ParameterizedStringParserTest.cc
  5619. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5620. Persist connection between the built-in HTTP server and a client
  5621. if a client supports keep-alive. Fixed the bug that aria2 exits
  5622. when the HTTP server receives EOF from a client.
  5623. * src/HttpServer.cc
  5624. * src/HttpServer.h
  5625. * src/HttpServerCommand.cc
  5626. * src/HttpServerCommand.h
  5627. * src/HttpServerResponseCommand.cc
  5628. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5629. Added experimental built-in HTTP server. Currently, when a client
  5630. accesses to the server, it responds with the current download
  5631. progress. By default, it is disabled. To enable the server, give
  5632. --enable-http-server option. To change the default port number
  5633. for the server to listen to, use --http-server-listen-port option.
  5634. The response HTML is very simple and refreshes it self each 1
  5635. second. Because of this refresh, you see flicker in normal web
  5636. browser such as Firefox. I recommend to use console-based browser
  5637. such as elinks, w3m. To connect to the server, run 'elinks
  5638. http://localhost:6800/' while running aria2. Please replace port
  5639. number '6800'(which is default) with your preference.
  5640. * src/DownloadEngineFactory.cc
  5641. * src/HttpHeader.cc
  5642. * src/HttpHeader.h
  5643. * src/HttpHeaderProcessor.cc
  5644. * src/HttpHeaderProcessor.h
  5645. * src/HttpListenCommand.cc
  5646. * src/HttpListenCommand.h
  5647. * src/HttpServer.cc
  5648. * src/HttpServer.h
  5649. * src/HttpServerCommand.cc
  5650. * src/HttpServerCommand.h
  5651. * src/HttpServerResponseCommand.cc
  5652. * src/HttpServerResponseCommand.h
  5653. * src/Makefile.am
  5654. * src/OptionHandlerFactory.cc
  5655. * src/Util.cc
  5656. * src/Util.h
  5657. * src/help_tags.h
  5658. * src/option_processing.cc
  5659. * src/prefs.cc
  5660. * src/prefs.h
  5661. * src/usage_text.h
  5662. * test/HttpHeaderProcessorTest.cc
  5663. * test/UtilTest.cc
  5664. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5665. Removed.
  5666. * src/CheckIntegrityMan.cc
  5667. * src/FileAllocationMan.cc
  5668. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5669. Made (piece) hash check sequential for each RequestGroup because
  5670. simultaneous hash check is slower than sequential execution.
  5671. * src/CheckIntegrityCommand.cc
  5672. * src/CheckIntegrityDispatcherCommand.cc
  5673. * src/CheckIntegrityDispatcherCommand.h
  5674. * src/CheckIntegrityMan.h
  5675. * src/ConsoleStatCalc.cc
  5676. * src/DownloadCommand.cc
  5677. * src/DownloadEngine.cc
  5678. * src/DownloadEngine.h
  5679. * src/DownloadEngineFactory.cc
  5680. * src/Makefile.am
  5681. * src/Makefile.in
  5682. * src/RequestGroup.cc
  5683. * src/StatCalc.h
  5684. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5685. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5686. SequentialDispatcherCommand.
  5687. * src/FileAllocationDispatcherCommand.cc
  5688. * src/SequentialDispatcherCommand.h
  5689. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Rewritten FileAllocationDispatcherCommand using brand new
  5691. SequentialDispatcherCommand.
  5692. * src/DownloadEngineFactory.cc
  5693. * src/FileAllocationCommand.cc
  5694. * src/FileAllocationDispatcherCommand.cc
  5695. * src/FileAllocationDispatcherCommand.h
  5696. * src/Makefile.am
  5697. * src/SequentialDispatcherCommand.h
  5698. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5699. Replaced FileAllocationMan with
  5700. SequentialPicker<FileAllocationEntry>.
  5701. * src/BtCheckIntegrityEntry.cc
  5702. * src/ConsoleStatCalc.cc
  5703. * src/DownloadEngine.cc
  5704. * src/DownloadEngine.h
  5705. * src/DownloadEngineFactory.cc
  5706. * src/FileAllocationCommand.cc
  5707. * src/FileAllocationDispatcherCommand.cc
  5708. * src/FileAllocationMan.h
  5709. * src/Makefile.am
  5710. * src/SequentialPicker.h
  5711. * src/StatCalc.h
  5712. * src/StreamCheckIntegrityEntry.cc
  5713. * test/Makefile.am
  5714. * test/SequentialPickerTest.cc
  5715. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Added doc for adaptive URI selector.
  5717. * doc/aria2c.1.txt
  5718. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Added doc for adaptive URI selector.
  5720. * src/usage_text.h
  5721. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Added doc for --bt-max-peers option.
  5723. * doc/aria2c.1.txt
  5724. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5725. Added doc for --bt-hash-check-seed option.
  5726. * doc/aria2c.1.txt
  5727. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5728. Documented exit codes.
  5729. * doc/aria2c.1.txt
  5730. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Added --bt-max-peers option to specify the maximum number of peers
  5732. per torrent. 0 means unlimited number of peers.
  5733. * src/ActivePeerConnectionCommand.cc
  5734. * src/BtRuntime.h
  5735. * src/DefaultPeerStorage.cc
  5736. * src/DefaultPeerStorage.h
  5737. * src/OptionHandlerFactory.cc
  5738. * src/RequestGroup.cc
  5739. * src/option_processing.cc
  5740. * src/prefs.cc
  5741. * src/prefs.h
  5742. * src/usage_text.h
  5743. * test/DefaultPeerStorageTest.cc
  5744. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5745. Added --bt-hash-check-seed option. If true is given to this
  5746. option, after hash check using --check-integrity option and file
  5747. is complete, continue to seed file. If you want to check file and
  5748. download it only when it is damaged or incomplete, set this option
  5749. to false. This option has effect only on BitTorrent download.
  5750. The default value is true(This is the same behavior with the
  5751. previous release).
  5752. * src/BtCheckIntegrityEntry.cc
  5753. * src/OptionHandlerFactory.cc
  5754. * src/option_processing.cc
  5755. * src/prefs.cc
  5756. * src/prefs.h
  5757. * src/usage_text.h
  5758. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Updated copyright year.
  5760. * src/version_usage.cc
  5761. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5762. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5763. * doc/aria2c.1.txt
  5764. * src/usage_text.h
  5765. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Made the max value of split option unlimited.
  5767. * doc/aria2c.1.txt
  5768. * src/OptionHandlerFactory.cc
  5769. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Fixed compile warning/error.
  5771. * src/DownloadResult.h
  5772. * src/HttpDownloadCommand.cc
  5773. * src/ServerStat.cc
  5774. * test/RequestGroupTest.cc
  5775. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Added --event-poll option to select the method for polling events.
  5777. The available methods are "select" and "epoll". "epoll" is
  5778. available on Linux only. The earlier release has the compile
  5779. option to choose from these methods.
  5780. * configure.ac
  5781. * src/RequestGroupMan.cc
  5782. * src/OptionHandlerFactory.cc
  5783. * src/EpollEventPoll.h
  5784. * src/StreamFileAllocationEntry.cc
  5785. * src/a2io.h
  5786. * src/SelectEventPoll.h
  5787. * src/option_processing.cc
  5788. * src/prefs.h
  5789. * src/EpollEventPoll.cc
  5790. * src/EventPoll.h
  5791. * src/SocketCore.h
  5792. * src/Makefile.am
  5793. * src/main.cc
  5794. * src/DownloadEngine.h
  5795. * src/SelectEventPoll.cc
  5796. * src/DownloadEngine.cc
  5797. * src/SocketCore.cc
  5798. * src/DownloadEngineFactory.cc
  5799. * src/Makefile.in
  5800. * src/prefs.cc
  5801. * src/usage_text.h
  5802. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5803. Included RecoverableException.h from main.cc
  5804. * src/main.cc
  5805. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5806. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5807. now returns last error encountered in the HTTP/FTP downloads as a
  5808. exit status value. If all downloads finished successfully, aria2
  5809. returns 0. The error code is defined in src/DownloadResult.h.
  5810. The error occurred in the download currently in progress is not
  5811. reported as a last error. If no error has encountered but there
  5812. are in progress or waiting downloads, aria2 returns 7.
  5813. * src/AbstractCommand.cc
  5814. * src/DlAbortEx.h
  5815. * src/DlRetryEx.h
  5816. * src/DownloadCommand.cc
  5817. * src/DownloadFailureException.h
  5818. * src/DownloadResult.h
  5819. * src/FtpNegotiationCommand.cc
  5820. * src/HttpSkipResponseCommand.cc
  5821. * src/Makefile.am
  5822. * src/MultiUrlRequestInfo.cc
  5823. * src/MultiUrlRequestInfo.h
  5824. * src/RecoverableException.h
  5825. * src/RequestGroup.cc
  5826. * src/RequestGroup.h
  5827. * src/RequestGroupMan.cc
  5828. * src/RequestGroupMan.h
  5829. * src/URIResult.cc
  5830. * src/URIResult.h
  5831. * src/main.cc
  5832. * src/option_processing.cc
  5833. * test/RequestGroupTest.cc
  5834. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5836. patch adds AdaptiveURISelector, which selects one of the bests
  5837. mirrors for first and reserved connections. For supplementary
  5838. ones, it returns mirrors which has not been tested yet, and if
  5839. each of them already tested, returns mirrors which has to be
  5840. tested again. Otherwise, it doesn't return anymore mirrors.
  5841. * src/AdaptiveURISelector.cc
  5842. * src/AdaptiveURISelector.h
  5843. * src/FtpNegotiationCommand.cc
  5844. * src/HttpResponseCommand.cc
  5845. * src/Makefile.am
  5846. * src/Makefile.in
  5847. * src/OptionHandlerFactory.cc
  5848. * src/RequestGroup.cc
  5849. * src/RequestGroup.h
  5850. * src/RequestGroupMan.cc
  5851. * src/ServerStat.cc
  5852. * src/ServerStat.h
  5853. * src/ServerStatMan.cc
  5854. * src/SpeedCalc.cc
  5855. * src/URISelector.h
  5856. * src/prefs.cc
  5857. * src/prefs.h
  5858. * test/RequestGroupManTest.cc
  5859. * test/ServerStatManTest.cc
  5860. * test/ServerStatTest.cc
  5861. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Fixed unit test error.
  5863. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5864. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5865. * Release 1.1.2
  5866. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Updated Russian translation. Thanks to the translators.
  5868. * po/ru.po
  5869. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Added the description of --use-head option to man page.
  5871. * doc/aria2c.1.txt
  5872. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5873. Bump up version number to 1.1.2
  5874. * configure.ac
  5875. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5876. Added --use-head option to toggle whether HEAD method should be
  5877. used in the first HTTP request. By default aria2 uses HEAD method
  5878. as the first request. When the server doesn't recognize HEAD, then
  5879. give aria2 --use-head=false to force aria2 to use GET method
  5880. instead.
  5881. * src/OptionHandlerFactory.cc
  5882. * src/RequestGroupMan.cc
  5883. * src/option_processing.cc
  5884. * src/prefs.cc
  5885. * src/prefs.h
  5886. * src/usage_text.h
  5887. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5888. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5889. message is received before CHOKE message. The old implementation
  5890. doen't clear the use-bit of the piece when recieved REJECT
  5891. message.
  5892. * src/DefaultBtMessageDispatcher.cc
  5893. * test/DefaultBtMessageDispatcherTest.cc
  5894. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. * Release 1.1.1
  5896. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5897. Bump up version number to 1.1.1.
  5898. * configure.ac
  5899. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5900. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5901. is printed repeatedly.
  5902. * src/ConsoleStatCalc.cc
  5903. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. * Release 1.1.0
  5905. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Added ifdef clause for conditional compilation.
  5907. * src/main.cc
  5908. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5910. translations. Thanks to all translators.
  5911. * po/ja.po
  5912. * po/ru.po
  5913. * po/uk.po
  5914. * po/zh_CN.po
  5915. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5916. Added the preceding ">>> " before the message "Printing the
  5917. contents of file..." to make the output more readable.
  5918. * src/main.cc
  5919. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. Added try-catch block in the loop in showFiles() to continue the
  5921. operation even if the exception occurred in one file.
  5922. * src/main.cc (showFiles)
  5923. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Made messages in showFiles() translatable.
  5925. * po/aria2.pot
  5926. * src/main.cc
  5927. * src/message.h
  5928. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5929. Print the contents of Torrent/Metalink files are printed without
  5930. -T/-M options.
  5931. * src/main.cc
  5932. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5933. Escaped '--' with '\--'
  5934. * README
  5935. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Updated "How to build" section in README. Mentioned about
  5937. --with-ca-bundle compile option.
  5938. * README
  5939. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5940. Bump up version number to 1.1.0.
  5941. * configure.ac
  5942. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5943. Added a note for --dht-listen-port option.
  5944. * doc/aria2c.1.txt
  5945. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5946. Update doc for --realtime-chunk-checksum option.
  5947. * doc/aria2c.1.txt
  5948. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Update doc for --realtime-chunk-checksum option.
  5950. * src/usage_text.h
  5951. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Updated French, Japanese, Russian and Ukrainian translations.
  5953. Thanks to all translators.
  5954. * po/fr.po
  5955. * po/ja.po
  5956. * po/ru.po
  5957. * po/uk.po
  5958. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5959. Renamed aria2c.pot to aria2.pot
  5960. * po/aria2.pot
  5961. * po/aria2c.pot: Removed.
  5962. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5963. Removed MetaEntry.h
  5964. * src/Makefile.am
  5965. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5966. Rename file by appending digits if a local file exists and its
  5967. file size is larger than that of remote file with --continue
  5968. option. The old implementation just throws exception in such case.
  5969. * src/RequestGroup.cc
  5970. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Fixed the bug that download progress summary is not printed in the
  5972. interval specified by the option.
  5973. * src/ConsoleStatCalc.cc
  5974. * src/ConsoleStatCalc.h
  5975. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5976. Fixed compiler warning
  5977. * src/Cookie.cc
  5978. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5979. Fixed the cookie implementation based on RFC2965.
  5980. Now if a value in domain field is not started with dot, then
  5981. prepend dot. That means a cookie with domain=sf.net is sent to
  5982. wiki.sf.net.
  5983. * src/Cookie.cc
  5984. * test/CookieParserTest.cc
  5985. * test/CookieStorageTest.cc
  5986. * test/CookieTest.cc
  5987. * test/NsCookieParserTest.cc
  5988. * test/Sqlite3MozCookieParserTest.cc
  5989. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5991. is enabled and the server doesn't support keep-alive.
  5992. * src/AbstractCommand.cc
  5993. * src/DownloadCommand.cc
  5994. * src/HttpDownloadCommand.cc
  5995. * src/HttpDownloadCommand.h
  5996. * src/HttpResponseCommand.cc
  5997. * src/Request.cc
  5998. * src/Request.h
  5999. * test/RequestTest.cc
  6000. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6001. Removed Dictionary/List/Data and its related classes.
  6002. * src/BencodeVisitor.cc: Removed.
  6003. * src/BencodeVisitor.h: Removed.
  6004. * src/Data.cc: Removed.
  6005. * src/Data.h: Removed.
  6006. * src/Dictionary.cc: Removed.
  6007. * src/Dictionary.h: Removed.
  6008. * src/List.cc: Removed.
  6009. * src/List.h: Removed.
  6010. * src/Makefile.am
  6011. * src/MetaEntry.h: Removed.
  6012. * src/MetaEntryVisitor.h: Removed.
  6013. * src/MetaFileUtil.cc: Removed.
  6014. * src/MetaFileUtil.h: Removed.
  6015. * test/BencodeVisitorTest.cc: Removed.
  6016. * test/DataTest.cc: Removed.
  6017. * test/DictionaryTest.cc: Removed.
  6018. * test/ListTest.cc: Removed.
  6019. * test/Makefile.am
  6020. * test/MetaFileUtilTest.cc: Removed.
  6021. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6022. Removed include of MetaEntry.h
  6023. * test/DHTMessageTrackerEntryTest.cc
  6024. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. Use BDE instead of Dictionary/List/Data.
  6026. * src/AnnounceList.cc
  6027. * src/AnnounceList.h
  6028. * test/AnnounceListTest.cc
  6029. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Use BDE instead of Dictionary/List/Data.
  6031. * src/DHTAbstractMessage.cc
  6032. * src/DHTAbstractMessage.h
  6033. * src/DHTAnnouncePeerMessage.cc
  6034. * src/DHTAnnouncePeerMessage.h
  6035. * src/DHTAnnouncePeerReplyMessage.cc
  6036. * src/DHTAnnouncePeerReplyMessage.h
  6037. * src/DHTFindNodeMessage.cc
  6038. * src/DHTFindNodeMessage.h
  6039. * src/DHTFindNodeReplyMessage.cc
  6040. * src/DHTFindNodeReplyMessage.h
  6041. * src/DHTGetPeersMessage.cc
  6042. * src/DHTGetPeersMessage.h
  6043. * src/DHTGetPeersReplyMessage.cc
  6044. * src/DHTGetPeersReplyMessage.h
  6045. * src/DHTMessageFactory.h
  6046. * src/DHTMessageFactoryImpl.cc
  6047. * src/DHTMessageFactoryImpl.h
  6048. * src/DHTMessageReceiver.cc
  6049. * src/DHTMessageTracker.cc
  6050. * src/DHTMessageTracker.h
  6051. * src/DHTPingMessage.cc
  6052. * src/DHTPingMessage.h
  6053. * src/DHTPingReplyMessage.cc
  6054. * src/DHTPingReplyMessage.h
  6055. * src/DHTQueryMessage.cc
  6056. * src/DHTQueryMessage.h
  6057. * src/DHTResponseMessage.cc
  6058. * src/DHTResponseMessage.h
  6059. * test/DHTAnnouncePeerMessageTest.cc
  6060. * test/DHTAnnouncePeerReplyMessageTest.cc
  6061. * test/DHTFindNodeMessageTest.cc
  6062. * test/DHTFindNodeReplyMessageTest.cc
  6063. * test/DHTGetPeersMessageTest.cc
  6064. * test/DHTGetPeersReplyMessageTest.cc
  6065. * test/DHTMessageFactoryImplTest.cc
  6066. * test/DHTMessageTrackerTest.cc
  6067. * test/DHTPingMessageTest.cc
  6068. * test/DHTPingReplyMessageTest.cc
  6069. * test/MockDHTMessageFactory.h
  6070. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6071. Added tests the case where length < 0 is specified.
  6072. * test/BencodeTest.cc
  6073. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6074. Fixed memory leak in decoderawstring()
  6075. * src/bencode.cc
  6076. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6077. Added missing #ifdef guard. Added uc() function for String and
  6078. removeKey() for Dict.
  6079. * src/bencode.cc
  6080. * src/bencode.h
  6081. * test/BencodeTest.cc
  6082. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6083. Use BDE instead of Dictionary/List/Data.
  6084. * src/HandshakeExtensionMessage.cc
  6085. * src/HandshakeExtensionMessage.h
  6086. * test/HandshakeExtensionMessageTest.cc
  6087. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6088. Added --max-overall-upload-limit option. This option limits the
  6089. overall upload speed. Stated in help message that the existing
  6090. --max-upload-limit option limits the upload speed per each
  6091. torrent. Man page is also updated.
  6092. * doc/aria2c.1.txt
  6093. * src/DefaultBtMessageDispatcher.cc
  6094. * src/DefaultBtMessageDispatcher.h
  6095. * src/OptionHandlerFactory.cc
  6096. * src/PeerInteractionCommand.cc
  6097. * src/option_processing.cc
  6098. * src/prefs.cc
  6099. * src/prefs.h
  6100. * src/usage_text.h
  6101. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6102. Use BDE instead of Dictionary/List/Data classes.
  6103. * src/CompactPeerListProcessor.cc
  6104. * src/CompactPeerListProcessor.h
  6105. * src/DefaultBtAnnounce.cc
  6106. * src/DefaultBtContext.cc
  6107. * src/DefaultBtContext.h
  6108. * src/DefaultPeerListProcessor.cc
  6109. * src/DefaultPeerListProcessor.h
  6110. * src/DelegatingPeerListProcessor.cc
  6111. * src/DelegatingPeerListProcessor.h
  6112. * src/PeerListProcessor.h
  6113. * src/UTPexExtensionMessage.cc
  6114. * src/Util.h
  6115. * src/message.h
  6116. * test/DefaultBtContextTest.cc
  6117. * test/DefaultPeerListProcessorTest.cc
  6118. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6119. Added bencode helper functions and BDE class.
  6120. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6121. * src/Makefile.am
  6122. * src/bencode.cc
  6123. * src/bencode.h
  6124. * test/BencodeTest.cc
  6125. * test/Makefile.am
  6126. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6127. Fixed the bug that bad URI is sent to the tracker when the announe
  6128. URI in torrent file includes query.
  6129. * src/DefaultBtAnnounce.cc
  6130. * test/DefaultBtAnnounceTest.cc
  6131. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6132. Added Option::blank().
  6133. Use !Option::blank(name) instead of Option::defined(name) for
  6134. the options that take filename.
  6135. * src/MultiUrlRequestInfo.cc
  6136. * src/Option.cc
  6137. * src/Option.h
  6138. * src/main.cc
  6139. * src/option_processing.cc
  6140. * test/OptionTest.cc
  6141. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6142. Documented the default value of --check-certificate option in man
  6143. page.
  6144. * doc/aria2c.1.txt
  6145. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6146. Enabled --check-certificate by default. Added compile
  6147. time(configure) option --with-ca-bundle to specify CA bundle.
  6148. Warn if --check-certificate=true and --ca-certificate is not
  6149. specified or loading CA certificate is failed.
  6150. * configure.ac
  6151. * src/MultiUrlRequestInfo.cc
  6152. * src/OptionHandlerFactory.cc
  6153. * src/message.h
  6154. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Mentioned https tag in help option.
  6156. * doc/aria2c.1.txt
  6157. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Added `https' tag to help option category. Added https tag to
  6159. --ca-certificate, --certificate, --check-certificate and
  6160. --private-key option.
  6161. * src/OptionHandlerFactory.cc
  6162. * src/help_tags.h
  6163. * src/option_processing.cc
  6164. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6165. Changed the package name from `aria2c' to `aria2' in order to fix
  6166. the packaging issue in Debian and Fedora. The name of the
  6167. executable is not changed.
  6168. * configure.ac
  6169. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Fixed typos
  6171. * src/usage_text.h
  6172. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Fixed typos and updated doc.
  6174. * README
  6175. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Fixed typos
  6177. * doc/aria2c.1.txt
  6178. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6179. Fixed typos
  6180. * src/usage_text.h
  6181. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6182. Print a message when no files to download.
  6183. * src/download_helper.cc
  6184. * src/main.cc
  6185. * src/message.h
  6186. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6187. RFC3986 complied Percent-Encoding(urlencode).
  6188. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6189. ones.
  6190. * src/Request.cc
  6191. * src/Util.cc
  6192. * src/Util.h
  6193. * test/BtHandshakeMessageTest.cc
  6194. * test/DefaultBtAnnounceTest.cc
  6195. * test/DefaultBtContextTest.cc
  6196. * test/RequestTest.cc
  6197. * test/UtilTest.cc
  6198. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6199. Fixed the bug that prevents aria2 from downloading 0-length files
  6200. via HTTP/FTP.
  6201. * src/DefaultBtContext.cc
  6202. * src/DefaultBtContext.h
  6203. * src/DownloadContext.h
  6204. * src/FtpNegotiationCommand.cc
  6205. * src/HttpResponseCommand.cc
  6206. * src/HttpResponseCommand.h
  6207. * src/RequestGroup.cc
  6208. * src/SingleFileDownloadContext.cc
  6209. * src/SingleFileDownloadContext.h
  6210. * test/BtPostDownloadHandlerTest.cc
  6211. * test/MetalinkPostDownloadHandlerTest.cc
  6212. * test/MockBtContext.h
  6213. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6214. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6215. * src/option_processing.cc
  6216. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Applied aria2-1.0.1-mingw.patch.
  6218. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6219. mingw.
  6220. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6221. * src/SocketCore.cc
  6222. * src/a2netcompat.h
  6223. * test/SocketCoreTest.cc
  6224. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. * Release 1.0.1
  6226. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Updated Ukrainian and Norwegian Nynorsk translations.
  6228. Thanks to all translators.
  6229. * po/nn.po
  6230. * po/uk.po
  6231. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Don't show download result when -S option is used.
  6233. * src/main.cc
  6234. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6235. Bump up version number to 1.0.1
  6236. * configure.ac
  6237. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Closed files after the test cases in MultiDiskWriterTest::
  6239. testResetDiskWriterEntries(). This will fix the unit test error
  6240. in mingw32 build.
  6241. * test/MultiDiskWriterTest.cc
  6242. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6243. Use HEAD method to get file size from HTTP server for segmented
  6244. downloading.
  6245. The request to the BitTorrent Tracker always uses GET method because
  6246. the response of the tracker is small and it doesn't need segmented
  6247. download.
  6248. * src/FtpNegotiationCommand.cc
  6249. * src/HttpRequest.cc
  6250. * src/HttpResponseCommand.cc
  6251. * src/HttpSkipResponseCommand.cc
  6252. * src/RequestGroup.cc
  6253. * src/RequestGroup.h
  6254. * src/TrackerWatcherCommand.cc
  6255. * test/HttpRequestTest.cc
  6256. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6257. Fixed the bug that causes floating exception when -T option is used and
  6258. no URIs are given.
  6259. * src/download_helper.cc
  6260. * test/DownloadHelperTest.cc
  6261. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6262. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6263. errors in MinGW:
  6264. Closed file after saving server stats (RequestGroupMan.cc)
  6265. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6266. Ignored case & handled 2-digit years (strptime.c)
  6267. Added missing suseconds_t definition (a2time.h)
  6268. Fixed socket CLOSE() define (SocketCore.cc)
  6269. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6270. Changed utime() test values from x000 to x00000 as MinGW failed on
  6271. values less than timezone offset from Unix epoch
  6272. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6273. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6274. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6275. handle negative dates (CookieParserTest.cc)
  6276. * src/a2time.h
  6277. * src/FtpConnection.cc
  6278. * src/RequestGroupMan.cc
  6279. * src/SocketCore.cc
  6280. * src/strptime.c
  6281. * test/CookieParserTest.cc
  6282. * test/CopyDiskAdaptorTest.cc
  6283. * test/FileTest.cc
  6284. * test/FtpConnectionTest.cc
  6285. * test/MultiDiskAdaptorTest.cc
  6286. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6288. * doc/aria2c.1.txt
  6289. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6290. * Release 1.0.0
  6291. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6292. Added '~' to reserved characters.
  6293. * src/Util.cc
  6294. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Do not urlencode Request::url in setUrl() because we want unmodified
  6296. URL using Request::getUrl()
  6297. * src/Request.cc
  6298. * src/Request.h
  6299. * test/RequestTest.cc
  6300. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6301. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6302. Thanks to all translators.
  6303. * po/bg.po
  6304. * po/fr.po
  6305. * po/ja.po
  6306. * po/ru.po
  6307. * po/uk.po
  6308. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6309. Bump up version number to 1.0.0
  6310. * configure.ac
  6311. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Added nosqlite3 build to build_test.sh.
  6313. Renamed noxml as expat.
  6314. * build_test.sh
  6315. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6316. Updated INPUT FILE section.
  6317. * doc/aria2c.1.txt
  6318. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6319. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6320. on big endian systems because test .aria2 files are made for little
  6321. endian systems.
  6322. * test/DefaultBtProgressInfoFileTest.cc
  6323. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6324. Dropped ares support.
  6325. * README
  6326. * configure.ac
  6327. * m4/libares.m4: Removed.
  6328. * src/AsyncNameResolver.cc
  6329. * src/Makefile.am
  6330. * test/Makefile.am
  6331. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6332. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6333. Removed const qualifier from DiskWriter::size().
  6334. * src/AbstractDiskWriter.cc
  6335. * src/AbstractDiskWriter.h
  6336. * src/ByteArrayDiskWriter.cc
  6337. * src/ByteArrayDiskWriter.h
  6338. * src/DiskWriter.h
  6339. * test/ByteArrayDiskWriterTest.cc
  6340. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6341. Fixed the bug that causes segmentation fault/bus error during executing
  6342. choking algorithm while seeding. This is caused by improper
  6343. implementation of compare function which returns inconsistent results
  6344. depending on the timing of last unchoke.
  6345. * src/BtSeederStateChoke.cc
  6346. * src/BtSeederStateChoke.h
  6347. * src/DefaultPeerStorage.cc
  6348. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6349. Removed TODO
  6350. * TODO
  6351. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6352. Added a section that explains how to pass argument to options that
  6353. takes optional arguments with its short form.
  6354. * doc/aria2c.1.txt
  6355. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6356. Added -u for the short form of --max-upload-limit option.
  6357. * doc/aria2c.1.txt
  6358. * src/option_processing.cc
  6359. * src/usage_text.h
  6360. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. Added -V for the short form of --check-integrity option.
  6362. Now the argument of --check-integrity option is optional:
  6363. if it is omitted, it is evaluated as true.
  6364. * doc/aria2c.1.txt
  6365. * src/option_processing.cc
  6366. * src/usage_text.h
  6367. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6368. Made the default value of --ftp-pasv option set to true and it can take
  6369. true/false values.
  6370. * src/OptionHandlerFactory.cc
  6371. * src/option_processing.cc
  6372. * src/usage_text.h
  6373. * doc/aria2c.1.txt
  6374. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6375. Given custom random number generator to std::random_shuffle.
  6376. * src/AnnounceList.cc
  6377. * src/BtLeecherStateChoke.cc
  6378. * src/BtSeederStateChoke.cc
  6379. * src/DefaultBtRequestFactory.cc
  6380. * src/MetalinkEntry.cc
  6381. * src/RarestPieceSelector.cc
  6382. * src/SimpleRandomizer.cc
  6383. * src/SimpleRandomizer.h
  6384. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6385. Now the default value of --enable-direct-io is true.
  6386. * src/OptionHandlerFactory.cc
  6387. * doc/aria2c.1.txt
  6388. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6389. Erase peer before executing onReturningPeer and onErasingPeer
  6390. because choking algorithm called from onReturningPeer doesn't
  6391. like erasing peer in the active peer list.
  6392. * src/DefaultPeerStorage.cc
  6393. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Instead of creating special filename in createDownloadResult() if
  6395. inMemoryDownload() is true, now it is done in getFilePath().
  6396. * src/RequestGroup.cc
  6397. * test/RequestGroupTest.cc
  6398. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6399. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6400. processed in memory. This is the fix for previous comment out.
  6401. * src/MemoryBufferPreDownloadHandler.cc
  6402. * src/RequestGroup.cc
  6403. * src/RequestGroup.h
  6404. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6405. Commented out the code which sets virtual directory path "[MEMORY]"
  6406. propagate directory to store to following RequestGroup.
  6407. * src/MemoryBufferPreDownloadHandler.cc
  6408. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6409. Bump up version number to 1.0.0b
  6410. * configure.ac
  6411. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Added input_uris.txt to EXTRA_DIST
  6413. * test/Makefile.am
  6414. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6415. Removed PeerObject.h from Makefile.am
  6416. * src/Makefile.am
  6417. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6418. Avoid slow seeding
  6419. * src/PeerInteractionCommand.cc
  6420. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Updated usage for -i option.
  6422. * src/usage_text.h (TEXT_INPUT_FILE)
  6423. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6424. Added INPUT FILE section to man page.
  6425. Escaped fake URLs.
  6426. * doc/aria2c.1.txt
  6427. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6428. Fixed wrong note position for -o option.
  6429. * doc/aria2c.1.txt
  6430. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6431. Fixed compile error without SSL/XML library.
  6432. * src/DefaultBtProgressInfoFile.cc
  6433. * src/DefaultBtProgressInfoFile.h
  6434. * src/FileMetalinkParserState.cc
  6435. * src/RequestGroup.h
  6436. * src/SocketCore.cc
  6437. * src/SocketCore.h
  6438. * src/VerificationMetalinkParserState.cc
  6439. * src/download_helper.h
  6440. * src/main.cc
  6441. * test/DefaultBtProgressInfoFileTest.cc
  6442. * test/DownloadHelperTest.cc
  6443. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6444. Rewritten URI handling functions. They are now provided as a testable
  6445. functions.
  6446. * src/Makefile.am
  6447. * src/RequestGroup.cc
  6448. * src/RequestGroup.h
  6449. * src/download_helper.cc
  6450. * src/download_helper.h
  6451. * src/main.cc
  6452. * test/DownloadHelperTest.cc
  6453. * test/Makefile.am
  6454. * test/input_uris.txt
  6455. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6456. Quickly terminate commands when ctrl-c is pressed.
  6457. * src/DownloadEngine.cc
  6458. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Quickly terminate idle commands when download finished.
  6460. * src/AbstractCommand.cc
  6461. * src/DownloadCommand.cc
  6462. * src/DownloadEngine.cc
  6463. * src/DownloadEngine.h
  6464. * src/SleepCommand.cc
  6465. * src/SleepCommand.h
  6466. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6467. Added the ability to specify output filename and directory in input
  6468. file.
  6469. Additional parameters are added in the following line of URIs
  6470. with proceeding white space(s), 1 parameter in 1 line.
  6471. The parameter names are the same with the command-line option name
  6472. without proceeding "--". Not all the options are available here:
  6473. at the moment, 'dir' and 'out' options are avialable.
  6474. Please note that out option has no effect against Metalink or BitTorrent
  6475. downloads.
  6476. Example input file:
  6477. http://host/foo-1.1.tar.bz2
  6478. out=foo.tar.bz2
  6479. dir=/tmp/downloads
  6480. http://host/thundermonkey-2.0.tar.bz2
  6481. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6482. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6483. thundermonkey-2.0.tar.bz2 is saved as
  6484. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6485. * src/BtPostDownloadHandler.cc
  6486. * src/Metalink2RequestGroup.cc
  6487. * src/Metalink2RequestGroup.h
  6488. * src/MetalinkPostDownloadHandler.cc
  6489. * src/UriListParser.cc
  6490. * src/UriListParser.h
  6491. * src/main.cc
  6492. * test/Metalink2RequestGroupTest.cc
  6493. * test/UriListParserTest.cc
  6494. * test/filelist1.txt
  6495. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6496. Fixed error when SSL library is not found.
  6497. * configure.ac
  6498. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6499. Cross referenced among -s, -C and -j options.
  6500. Updated usage of -C and -s options.
  6501. * src/usage_text.h
  6502. * doc/aria2c.1.txt
  6503. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6504. Fixed bad cast in 32bit platforms.
  6505. * test/DefaultPieceStorageTest.cc
  6506. (DefaultPieceStorageTest::testGetCompletedLength)
  6507. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6508. Fixed unit test fails on 32bit platforms.
  6509. * test/CookieParserTest.cc
  6510. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6511. Show an average download speed in Download results.
  6512. * src/BtFileAllocationEntry.cc
  6513. * src/DefaultPieceStorage.cc
  6514. * src/DownloadContext.cc
  6515. * src/DownloadContext.h
  6516. * src/DownloadResult.h
  6517. * src/RequestGroup.cc
  6518. * src/RequestGroupMan.cc
  6519. * src/StreamFileAllocationEntry.cc
  6520. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6521. Fixed the bug that metalink file is not processed if Content-Type
  6522. field has a paramter.
  6523. * src/HttpResponse.cc
  6524. * src/HttpResponse.h
  6525. * test/HttpResponseTest.cc
  6526. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6527. Removed unused code.
  6528. * src/DefaultBtAnnounce.cc
  6529. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6530. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6531. the value larger than DefaultPieceStorage::getTotalLength() when
  6532. in flight pieces are involved.
  6533. * src/DefaultPieceStorage.cc
  6534. * test/DefaultPieceStorageTest.cc
  6535. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6536. Bump up version number to 1.0.0a.
  6537. * configure.ac
  6538. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6539. Updated configure.ac
  6540. * configure.ac
  6541. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6542. Added usege for proxy.
  6543. * doc/aria2c.1.txt
  6544. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6545. Added usage for --ca-certificate, --certificate, --private-key and
  6546. --check-certificate options.
  6547. * doc/aria2c.1.txt
  6548. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6549. Updated man page
  6550. * doc/aria2c.1.txt
  6551. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6552. Added --no-proxy option. It receives comman separated hostname or
  6553. domains to which proxy should not be used.
  6554. aria2 honors the environment variable no_proxy to override no-proxy
  6555. value in configuration file. The user can override the environment
  6556. variable no_proxy with --no-proxy command-line option.
  6557. * src/AbstractCommand.cc
  6558. * src/OptionHandlerFactory.cc
  6559. * src/option_processing.cc
  6560. * src/prefs.cc
  6561. * src/prefs.h
  6562. * src/usage_text.h
  6563. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6565. The CA certificates are specified in --ca-certificate option.
  6566. By default, the verification is disabled. Use --check-certificate
  6567. option to enable it.
  6568. * src/HttpRequestCommand.cc
  6569. * src/LibgnutlsTLSContext.cc
  6570. * src/LibgnutlsTLSContext.h
  6571. * src/LibsslTLSContext.cc
  6572. * src/LibsslTLSContext.h
  6573. * src/MultiUrlRequestInfo.cc
  6574. * src/OptionHandlerFactory.cc
  6575. * src/SocketCore.cc
  6576. * src/SocketCore.h
  6577. * src/a2functional.h
  6578. * src/message.h
  6579. * src/option_processing.cc
  6580. * src/prefs.cc
  6581. * src/prefs.h
  6582. * src/usage_text.h
  6583. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6584. Added client certificate authentication for SSL/TLS.
  6585. Currently a private key must be decrypted for use with aria2.
  6586. If a user accidentally gives encrypted file to aria2 then following
  6587. thing happens:
  6588. If encrypted private key is given to aria2, it behaves differently
  6589. depending on the ssl library it uses. If aria2 built with openssl then
  6590. openssl prompts the user for password. If aria2 build with gnutls then
  6591. aria2 exists with error at start up.
  6592. * src/DownloadEngineFactory.cc
  6593. * src/MultiUrlRequestInfo.cc
  6594. * src/OptionHandlerFactory.cc
  6595. * src/option_processing.cc
  6596. * src/prefs.cc
  6597. * src/prefs.h
  6598. * src/usage_text.h
  6599. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6600. Introduced TLSContext that holds TLS related data that can be shared
  6601. with multiple SSL connections.
  6602. * src/DownloadEngineFactory.cc
  6603. * src/LibgnutlsTLSContext.cc
  6604. * src/LibgnutlsTLSContext.h
  6605. * src/LibsslTLSContext.cc
  6606. * src/LibsslTLSContext.h
  6607. * src/Makefile.am
  6608. * src/SocketCore.cc
  6609. * src/SocketCore.h
  6610. * src/TLSContext.h
  6611. * src/message.h
  6612. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6613. Fixed the bug that the DiskWriter of the first FileEntry whose
  6614. `needsFileAllocation' property is false is not created
  6615. even if it shares a piece with next FileEntry which `requested' property
  6616. is true.
  6617. Fixed the bug that zero-length file is not created if pre file
  6618. allocation is not done.
  6619. * src/MultiDiskAdaptor.cc
  6620. * src/MultiDiskAdaptor.h
  6621. * test/MultiDiskAdaptorTest.cc
  6622. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Added the ability to pool proxy connection.
  6624. The conneciton in FTP with proxy-method=GET is not pooled.
  6625. Proxy-Connection header will not be sent when sending CONNECT method.
  6626. * src/DownloadEngine.cc
  6627. * src/DownloadEngine.h
  6628. * src/FtpFinishDownloadCommand.cc
  6629. * src/FtpInitiateConnectionCommand.cc
  6630. * src/FtpNegotiationCommand.cc
  6631. * src/HttpDownloadCommand.cc
  6632. * src/HttpInitiateConnectionCommand.cc
  6633. * src/HttpRequest.cc
  6634. * src/HttpRequest.h
  6635. * src/HttpResponse.cc
  6636. * src/HttpSkipResponseCommand.cc
  6637. * test/HttpRequestTest.cc
  6638. * test/HttpResponseTest.cc
  6639. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Handle date before epoch.
  6641. To create *bad* Time object, call Time::null().
  6642. * src/CookieParser.cc
  6643. * src/FtpConnection.cc
  6644. * src/FtpConnection.h
  6645. * src/FtpNegotiationCommand.cc
  6646. * src/RequestGroup.cc
  6647. * src/TimeA2.cc
  6648. * src/TimeA2.h
  6649. * test/CookieParserTest.cc
  6650. * test/FtpConnectionTest.cc
  6651. * test/TimeTest.cc
  6652. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Added support for following envrionment variables: http_proxy,
  6654. https_proxy, ftp_proxy and all_proxy.
  6655. Each variable is equivalent to the aria2 option whose name is the
  6656. variable name with '_' replaced with '-'.
  6657. They overrides options specified in aria2.conf file.
  6658. The envrionment variables can be overrode using command-line option.
  6659. * src/option_processing.cc
  6660. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Renamed --http-proxy-method as --proxy-method.
  6662. * src/AbstractCommand.cc
  6663. * src/FtpInitiateConnectionCommand.cc
  6664. * src/HttpInitiateConnectionCommand.cc
  6665. * src/OptionHandlerFactory.cc
  6666. * src/option_processing.cc
  6667. * src/prefs.cc
  6668. * src/prefs.h
  6669. * src/usage_text.h
  6670. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6672. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6673. Above 3 options and --http-proxy option can handle proxy in URL format
  6674. like: http://user:passwd@host:port.
  6675. If a proxy requires user/password, they must be specified in a URL.
  6676. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6677. instead.
  6678. * src/AbstractCommand.cc
  6679. * src/AbstractCommand.h
  6680. * src/AbstractProxyRequestCommand.cc
  6681. * src/AbstractProxyRequestCommand.h
  6682. * src/AuthConfigFactory.cc
  6683. * src/AuthConfigFactory.h
  6684. * src/FtpFinishDownloadCommand.cc
  6685. * src/FtpInitiateConnectionCommand.cc
  6686. * src/FtpInitiateConnectionCommand.h
  6687. * src/FtpNegotiationCommand.cc
  6688. * src/FtpTunnelRequestCommand.cc
  6689. * src/FtpTunnelRequestCommand.h
  6690. * src/HttpDownloadCommand.cc
  6691. * src/HttpInitiateConnectionCommand.cc
  6692. * src/HttpInitiateConnectionCommand.h
  6693. * src/HttpProxyRequestCommand.cc
  6694. * src/HttpProxyRequestCommand.h
  6695. * src/HttpRequest.cc
  6696. * src/HttpRequest.h
  6697. * src/HttpRequestCommand.cc
  6698. * src/HttpRequestCommand.h
  6699. * src/HttpSkipResponseCommand.cc
  6700. * src/InitiateConnectionCommand.cc
  6701. * src/InitiateConnectionCommand.h
  6702. * src/OptionHandlerFactory.cc
  6703. * src/OptionHandlerImpl.h
  6704. * src/Request.cc
  6705. * src/option_processing.cc
  6706. * src/prefs.cc
  6707. * src/prefs.h
  6708. * src/usage_text.h
  6709. * test/AuthConfigFactoryTest.cc
  6710. * test/HttpRequestTest.cc
  6711. * test/OptionHandlerTest.cc
  6712. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Execute choking algorithm when unchoked and interested peer is
  6714. disconected.
  6715. * src/DefaultPeerStorage.cc
  6716. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Added testcase for BtNotInterestedMessage from unchoked peer.
  6718. * test/BtNotInterestedMessageTest.cc
  6719. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Execute choking algorithm when BtInterestedMessage arrives from
  6721. unchoked peer.
  6722. * src/BtInterestedMessage.cc
  6723. * src/BtInterestedMessage.h
  6724. * src/DefaultBtMessageFactory.cc
  6725. * test/BtInterestedMessageTest.cc
  6726. * test/MockPeerStorage.h
  6727. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. AuthConfigFactory is now part of DownloadEngine.
  6729. * src/AbstractProxyRequestCommand.cc
  6730. * src/AuthConfigFactory.h
  6731. * src/DownloadEngine.cc
  6732. * src/DownloadEngine.h
  6733. * src/FtpConnection.cc
  6734. * src/FtpConnection.h
  6735. * src/FtpNegotiationCommand.cc
  6736. * src/HttpConnection.cc
  6737. * src/HttpRequest.cc
  6738. * src/HttpRequest.h
  6739. * src/HttpRequestCommand.cc
  6740. * src/HttpResponse.cc
  6741. * src/HttpResponseCommand.cc
  6742. * src/HttpSkipResponseCommand.cc
  6743. * src/MultiUrlRequestInfo.cc
  6744. * src/main.cc
  6745. * test/FtpConnectionTest.cc
  6746. * test/HttpRequestTest.cc
  6747. * test/HttpResponseTest.cc
  6748. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Corrected catched exception type.
  6750. * src/ServerStatMan.cc
  6751. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. DNSCache is now part of DownloadEngine.
  6753. * src/DNSCache.h
  6754. * src/DownloadEngine.cc
  6755. * src/DownloadEngine.h
  6756. * src/InitiateConnectionCommand.cc
  6757. * src/MultiUrlRequestInfo.cc
  6758. * test/Makefile.am
  6759. * test/Makefile.in
  6760. * test/SimpleDNSCacheTest.cc
  6761. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6762. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6763. DownloadEngine.
  6764. * src/ActivePeerConnectionCommand.cc
  6765. * src/BtSetup.cc
  6766. * src/CUIDCounter.h
  6767. * src/DHTSetup.cc
  6768. * src/DownloadCommand.cc
  6769. * src/DownloadEngine.cc
  6770. * src/DownloadEngine.h
  6771. * src/DownloadEngineFactory.cc
  6772. * src/FileAllocationDispatcherCommand.cc
  6773. * src/InitiatorMSEHandshakeCommand.cc
  6774. * src/PeerInitiateConnectionCommand.cc
  6775. * src/PeerInteractionCommand.cc
  6776. * src/PeerListenCommand.cc
  6777. * src/RequestGroup.cc
  6778. * src/StreamFileAllocationEntry.cc
  6779. * src/TrackerWatcherCommand.cc
  6780. * src/main.cc
  6781. * test/RequestGroupManTest.cc
  6782. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Implemented commented code in BtSeederStateChoke
  6784. * src/BtSeederStateChoke.cc
  6785. * src/Peer.cc
  6786. * src/Peer.h
  6787. * src/PeerInteractionCommand.cc
  6788. * src/PeerSessionResource.cc
  6789. * src/PeerSessionResource.h
  6790. * test/MockBtMessageDispatcher.h
  6791. * test/PeerSessionResourceTest.cc
  6792. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6794. its object.
  6795. * src/AbstractBtMessage.cc
  6796. * src/ActivePeerConnectionCommand.cc
  6797. * src/ActivePeerConnectionCommand.h
  6798. * src/BtContextAwareCommand.cc
  6799. * src/BtContextAwareCommand.h
  6800. * src/BtExtendedMessage.cc
  6801. * src/BtExtendedMessage.h
  6802. * src/BtInterestedMessage.cc
  6803. * src/BtInterestedMessage.h
  6804. * src/BtNotInterestedMessage.cc
  6805. * src/BtNotInterestedMessage.h
  6806. * src/BtRegistry.cc
  6807. * src/BtRegistry.h
  6808. * src/BtSeederStateChoke.cc
  6809. * src/BtSetup.cc
  6810. * src/DHTGetPeersCommand.cc
  6811. * src/DHTGetPeersCommand.h
  6812. * src/DHTPeerAnnounceEntry.cc
  6813. * src/DHTPeerAnnounceEntry.h
  6814. * src/DHTPeerAnnounceStorage.cc
  6815. * src/DHTPeerAnnounceStorage.h
  6816. * src/DHTPeerLookupTask.cc
  6817. * src/DHTPeerLookupTask.h
  6818. * src/DHTSetup.cc
  6819. * src/DHTSetup.h
  6820. * src/DHTTaskFactory.h
  6821. * src/DHTTaskFactoryImpl.cc
  6822. * src/DHTTaskFactoryImpl.h
  6823. * src/DefaultBtAnnounce.cc
  6824. * src/DefaultBtInteractive.cc
  6825. * src/DefaultBtInteractive.h
  6826. * src/DefaultBtMessageDispatcher.cc
  6827. * src/DefaultBtMessageDispatcher.h
  6828. * src/DefaultBtMessageFactory.cc
  6829. * src/DefaultBtMessageFactory.h
  6830. * src/DefaultBtMessageReceiver.cc
  6831. * src/DefaultBtProgressInfoFile.cc
  6832. * src/DefaultBtProgressInfoFile.h
  6833. * src/DefaultBtRequestFactory.cc
  6834. * src/DefaultBtRequestFactory.h
  6835. * src/DefaultExtensionMessageFactory.cc
  6836. * src/DefaultExtensionMessageFactory.h
  6837. * src/DefaultPeerStorage.cc
  6838. * src/DefaultPeerStorage.h
  6839. * src/DownloadEngine.cc
  6840. * src/DownloadEngine.h
  6841. * src/InitiatorMSEHandshakeCommand.cc
  6842. * src/InitiatorMSEHandshakeCommand.h
  6843. * src/MSEHandshake.cc
  6844. * src/MSEHandshake.h
  6845. * src/Makefile.am
  6846. * src/Makefile.in
  6847. * src/PeerChokeCommand.cc
  6848. * src/PeerChokeCommand.h
  6849. * src/PeerInitiateConnectionCommand.cc
  6850. * src/PeerInitiateConnectionCommand.h
  6851. * src/PeerInteractionCommand.cc
  6852. * src/PeerInteractionCommand.h
  6853. * src/PeerObject.h
  6854. * src/PeerReceiveHandshakeCommand.cc
  6855. * src/PeerReceiveHandshakeCommand.h
  6856. * src/ReceiverMSEHandshakeCommand.cc
  6857. * src/RequestGroup.cc
  6858. * src/RequestGroup.h
  6859. * src/RequestGroupMan.cc
  6860. * src/RequestGroupMan.h
  6861. * src/SeedCheckCommand.cc
  6862. * src/SeedCheckCommand.h
  6863. * src/ShareRatioSeedCriteria.h
  6864. * src/SimpleBtMessage.cc
  6865. * src/TrackerWatcherCommand.cc
  6866. * src/TrackerWatcherCommand.h
  6867. * src/UTPexExtensionMessage.cc
  6868. * src/UTPexExtensionMessage.h
  6869. * test/BtCancelMessageTest.cc
  6870. * test/BtChokeMessageTest.cc
  6871. * test/BtExtendedMessageTest.cc
  6872. * test/BtInterestedMessageTest.cc
  6873. * test/BtNotInterestedMessageTest.cc
  6874. * test/BtPieceMessageTest.cc
  6875. * test/BtPortMessageTest.cc
  6876. * test/BtRegistryTest.cc
  6877. * test/BtRejectMessageTest.cc
  6878. * test/BtRequestMessageTest.cc
  6879. * test/DHTPeerAnnounceEntryTest.cc
  6880. * test/DHTPeerAnnounceStorageTest.cc
  6881. * test/DefaultBtMessageDispatcherTest.cc
  6882. * test/DefaultBtMessageFactoryTest.cc
  6883. * test/DefaultBtProgressInfoFileTest.cc
  6884. * test/DefaultBtRequestFactoryTest.cc
  6885. * test/DefaultExtensionMessageFactoryTest.cc
  6886. * test/MSEHandshakeTest.cc
  6887. * test/MockDHTTaskFactory.h
  6888. * test/ShareRatioSeedCriteriaTest.cc
  6889. * test/UTPexExtensionMessageTest.cc
  6890. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6891. Fixed compiler warning.
  6892. * test/UtilTest.cc
  6893. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Treat Cookie object as session cookie if expiry = 0 is given.
  6895. With this change, you can specify session scoped cookies in an external
  6896. file setting expiry value to 0.
  6897. * src/Cookie.cc
  6898. * src/Cookie.h
  6899. * test/CookieParserTest.cc
  6900. * test/CookieStorageTest.cc
  6901. * test/CookieTest.cc
  6902. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Changed signature of DHTMessageFactory::createResponseMessage().
  6904. Removed unused validateIDMatch.
  6905. * src/DHTMessageFactory.h
  6906. * src/DHTMessageFactoryImpl.cc
  6907. * src/DHTMessageFactoryImpl.h
  6908. * src/DHTMessageTracker.cc
  6909. * test/DHTMessageFactoryImplTest.cc
  6910. * test/MockDHTMessageFactory.h
  6911. Dropped DHT message coming from same ID of localhost.
  6912. * src/DHTMessageReceiver.cc
  6913. Rejected adding node whose ID is the same as localhost's.
  6914. * src/DHTRoutingTable.cc
  6915. * test/BtPortMessageTest.cc
  6916. * test/DHTRoutingTableTest.cc
  6917. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Pool connection when redirection occurs with Content-Length = 0.
  6919. * src/HttpSkipResponseCommand.cc
  6920. * src/HttpSkipResponseCommand.h
  6921. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Fixed the bug that causes time out when redirection occurs with
  6923. content-length 0.
  6924. * src/HttpResponseCommand.cc
  6925. * src/HttpSkipResponseCommand.cc
  6926. * src/HttpSkipResponseCommand.h
  6927. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Now each status legends is shown only when it appears in Download
  6929. Result. If Download Result has no item, then status legend will not
  6930. be printed.
  6931. * src/RequestGroupMan.cc
  6932. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Removed duplicate creation of OptionHandlers.
  6934. * src/option_processing.cc
  6935. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Fixed the bug that causes segmentation fault when accessing files which
  6937. don't exist or are not included in --select-file option while
  6938. validating chunk checksum.
  6939. * src/MultiDiskAdaptor.cc
  6940. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Fixed compiler warning.
  6942. * test/UtilTest.cc
  6943. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6945. * src/IteratableChecksumValidator.cc
  6946. * src/IteratableChunkChecksumValidator.cc
  6947. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. * Release 0.16.2
  6949. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Added Serbian translation. Updated Ukrainian translation.
  6951. Thanks to all translators.
  6952. * po/sr.po
  6953. * po/uk.po
  6954. * po/LINGUAS
  6955. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Bump up version number to 0.16.2
  6957. * configure.ac
  6958. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Added length equality test to operator== to drop a piece message
  6960. whose length does not match to the requested one.
  6961. * src/RequestSlot.cc
  6962. * test/DefaultBtMessageDispatcherTest.cc
  6963. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6964. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6965. recieved.
  6966. In this fix, if a request larger than 16KiB length is received, aria2
  6967. disconnects the peer.
  6968. * src/BtConstants.h
  6969. * src/PeerMessageUtil.cc
  6970. * src/PeerMessageUtil.h
  6971. * test/BtRequestMessageTest.cc
  6972. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. * Release 0.16.1
  6974. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6976. * doc/aria2c.1.txt
  6977. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6979. Updated French, Simplified Chinese and Japanese translations.
  6980. Thanks to all translators.
  6981. en@quot and en@boldquot are also added.
  6982. * po/LINGUAS
  6983. * po/fr.po
  6984. * po/ja.po
  6985. * po/uk.po
  6986. * po/vi.po
  6987. * po/zh_CN.po
  6988. * po/zh_TW.po
  6989. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Bump up version number to 0.16.1.
  6991. * configure.ac
  6992. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Updated README.
  6994. * README
  6995. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6997. not to replace '--' with em dash character.
  6998. * doc/aria2c.1.txt
  6999. * doc/makeman
  7000. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7002. every SEC seconds.
  7003. * src/DownloadEngineFactory.cc
  7004. * src/OptionHandlerFactory.cc
  7005. * src/option_processing.cc
  7006. * src/usage_text.h
  7007. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Fixed compile warning on linux-amd64
  7009. * src/FtpConnection.cc
  7010. * src/IteratableChunkChecksumValidator.cc
  7011. * src/MultiDiskAdaptor.cc
  7012. Fixed the bug that unit test fails on linux-amd64
  7013. * test/UtilTest.cc
  7014. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Added --dht-file-path option to change the path to dht.dat, which is a
  7016. serialized DHT routing table.
  7017. * src/OptionHandlerFactory.cc
  7018. * src/option_processing.cc
  7019. * src/usage_text.h
  7020. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Fixed possible underflow.
  7022. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7023. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Fixed the bug that last character in URI is not encoded.
  7025. * src/Request.cc
  7026. * test/RequestTest.cc
  7027. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Fixed the bug that referer header field contains fragment.
  7029. Now Request class removes fragment part of URI and encodes it
  7030. in Request::setUri() and setReferer().
  7031. * src/Request.h
  7032. * src/Request.cc
  7033. * test/RequestTest.cc
  7034. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Added missing m4 macros.
  7036. * m4/cppunit.m4
  7037. * m4/libgcrypt.m4
  7038. * m4/libgnutls-extra.m4
  7039. * m4/libgnutls.m4
  7040. * m4/libxml2.m4
  7041. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Fixed compile error with gcc-4.4(snapshot)
  7043. * src/File.cc
  7044. * src/FtpConnection.cc
  7045. * src/OptionHandlerImpl.h
  7046. * src/Util.cc
  7047. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Removed assert()
  7049. * src/SocketBuffer.cc (SocketBuffer::send)
  7050. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Changed the type of _numNewConnection to unsigned int.
  7052. * src/ActivePeerConnectionCommand.cc
  7053. * src/ActivePeerConnectionCommand.h
  7054. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. * Release 0.16.0
  7056. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Updated doc
  7058. * README
  7059. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7061. translations. Thanks to all translators.
  7062. * po/bg.po
  7063. * po/de.po
  7064. * po/fr.po
  7065. * po/ja.po
  7066. * po/zh_CN.po
  7067. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Bump up version number to 0.16.0.
  7069. * configure.ac
  7070. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7072. int32_t.
  7073. Changed the type of count to int32_t.
  7074. * src/Metalink2RequestGroup.cc
  7075. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. Added test for Time::elapsed(time_t).
  7077. * test/TimeTest.cc
  7078. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7080. Util::difftv() should be used instead.
  7081. * src/TimeA2.cc
  7082. * src/TimeA2.h
  7083. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Made socket for dht connections non-blocking
  7085. * src/DHTAbstractMessage.cc
  7086. * src/DHTAbstractMessage.h
  7087. * src/DHTConnection.h
  7088. * src/DHTConnectionImpl.cc
  7089. * src/DHTConnectionImpl.h
  7090. * src/DHTMessage.h
  7091. * src/DHTMessageDispatcherImpl.cc
  7092. * src/DHTMessageDispatcherImpl.h
  7093. * src/DHTUnknownMessage.cc
  7094. * src/DHTUnknownMessage.h
  7095. * src/SocketCore.cc
  7096. * src/SocketCore.h
  7097. * test/MockDHTMessage.h
  7098. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Changed the type of offset to int.
  7100. * src/ParameterizedStringParser.cc
  7101. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Made getAsInt() return int32_t
  7103. * src/Option.h
  7104. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7106. build.
  7107. * configure.ac
  7108. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Use sqlite3_open if sqlite3_open_v2 is not available.
  7110. * src/Sqlite3MozCookieParser.cc
  7111. * src/Sqlite3MozCookieParser.h
  7112. * m4/sqlite3.m4
  7113. * test/Sqlite3MozCookieParserTest.cc
  7114. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7116. * src/BtPieceMessage.cc
  7117. * src/DHTPeerAnnounceStorage.cc
  7118. * src/DefaultPieceStorage.cc
  7119. * src/DownloadCommand.cc
  7120. * src/DownloadEngine.cc
  7121. * src/FtpConnection.cc
  7122. * src/PeerConnection.cc
  7123. * src/PeerMessageUtil.cc
  7124. * src/RequestGroup.cc
  7125. * src/RequestGroupMan.cc
  7126. * src/SimpleBtMessage.cc
  7127. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7129. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7130. * src/AbstractDiskWriter.cc
  7131. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Don't set Request::supportsPersistentConnection() in HttpConnection
  7133. since this code is also used in AbstractProxyResponseCommand.
  7134. Moved those code to HttpResponse.
  7135. * src/HttpResponse.cc
  7136. * src/HttpResponse.h
  7137. * src/HttpConnection.cc
  7138. * src/HttpConnection.h
  7139. * src/HttpResponseCommand.cc
  7140. * test/HttpResponseTest.cc
  7141. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7143. The configuration is minimum: no torrent, no metalink, so there may be
  7144. other compile error on their code.
  7145. * src/a2netcompat.h
  7146. * src/File.cc
  7147. * src/File.h
  7148. * src/SocketCore.cc
  7149. * src/SocketCore.h
  7150. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Made a socket of incoming peer non-blocking.
  7152. * src/PeerListenCommand.cc
  7153. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7155. whole message data is not sent in one send() call.
  7156. * src/BtPieceMessage.cc
  7157. * src/BtPieceMessage.h
  7158. * src/PeerConnection.cc
  7159. * src/PeerConnection.h
  7160. * src/SimpleBtMessage.cc
  7161. * src/SimpleBtMessage.h
  7162. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Fixed the bug that aria2 downloads faster than max-download-limit when
  7164. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7165. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7166. , instead of sum of them.
  7167. * src/ActivePeerConnectionCommand.cc
  7168. * src/DefaultBtInteractive.cc
  7169. * src/DownloadCommand.cc
  7170. * src/PeerInteractionCommand.cc
  7171. * src/PeerReceiveHandshakeCommand.cc
  7172. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Fixed the bug that HTTPS download fails.
  7174. * src/AbstractCommand.cc
  7175. * src/AbstractCommand.h
  7176. * src/DownloadCommand.cc
  7177. * src/FtpConnection.cc
  7178. * src/HttpConnection.cc
  7179. * src/HttpRequestCommand.cc
  7180. * src/HttpResponseCommand.cc
  7181. * src/HttpSkipResponseCommand.cc
  7182. * src/MSEHandshake.cc
  7183. * src/PeerConnection.cc
  7184. * src/SocketCore.cc
  7185. * src/SocketCore.h
  7186. Fixed the bug that aria2 doesn't download whole content body and cannot
  7187. reuse connection if chunked transfer encoding and gzip content encoding
  7188. are set.
  7189. * src/DownloadCommand.cc
  7190. * src/HttpSkipResponseCommand.cc
  7191. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Updated man page.
  7193. * doc/aria2c.1.txt
  7194. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. When error occurred while aria2 was parsing an .aria2.conf file, print
  7196. the usage of the option that caused error.
  7197. * src/option_processing.cc
  7198. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Fixed compile error on OptionHandlerException
  7200. * src/Makefile.am
  7201. * src/OptionHandlerException.cc
  7202. * src/OptionHandlerException.h
  7203. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Moved message of the error to OptionHandlerException.h
  7205. * src/NameMatchOptionHandler.h
  7206. * src/OptionHandlerException.h
  7207. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. When error occurs while aria2 is parsing an command-line option, print
  7209. the usage of the option.
  7210. * src/Makefile.am
  7211. * src/NameMatchOptionHandler.h
  7212. * src/OptionHandlerException.h
  7213. * src/option_processing.cc
  7214. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Reverted previous change.
  7216. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7217. username is not in URI.
  7218. * src/HttpRequest.cc
  7219. * src/Request.cc
  7220. * test/HttpRequestTest.cc
  7221. * test/RequestTest.cc
  7222. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Now colon is required for username and password in FTP URL, like:
  7224. ftp://username:password@host.
  7225. If colon is not there, aria2 don't parse it as a username. For example,
  7226. aria2 don't retrieve username from ftp://username@host.
  7227. This fix was made in order to login FTP server via non-transparent ftp
  7228. proxy.
  7229. * src/Request.cc
  7230. * test/RequestTest.cc
  7231. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Use netrc for HTTP.
  7233. Now FTP user/password is sent in Authorization header when
  7234. --ftp-via-http-proxy=get is given.
  7235. * src/AuthConfigFactory.cc
  7236. * src/HttpRequest.cc
  7237. * src/HttpRequest.h
  7238. * src/NetrcAuthResolver.cc
  7239. * src/NetrcAuthResolver.h
  7240. * src/OptionHandlerFactory.cc
  7241. * src/option_processing.cc
  7242. * src/prefs.cc
  7243. * src/prefs.h
  7244. * test/AuthConfigFactoryTest.cc
  7245. * test/HttpRequestTest.cc
  7246. * test/NetrcAuthResolverTest.cc
  7247. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Issue PWD command first and get working directory and use it as a prefix
  7249. for CWD command.
  7250. * src/DownloadEngine.cc
  7251. * src/DownloadEngine.h
  7252. * src/FtpConnection.cc
  7253. * src/FtpConnection.h
  7254. * src/FtpFinishDownloadCommand.cc
  7255. * src/FtpInitiateConnectionCommand.cc
  7256. * src/FtpNegotiationCommand.cc
  7257. * src/FtpNegotiationCommand.h
  7258. * test/FtpConnectionTest.cc
  7259. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Removed default user/pass for FTP user/pass, since it should not have
  7261. precedence over netrc configuration by default.
  7262. * src/OptionHandlerFactory.cc
  7263. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Added debug log for socket event.
  7265. * src/AbstractCommand.cc
  7266. * src/PeerAbstractCommand.cc
  7267. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Log microseconds.
  7269. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7270. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Replaced HelpItem.cc with OptionHandler.cc.
  7272. * po/POTFILES.in
  7273. Updated po files with 'make update-po'
  7274. * po/aria2c.pot
  7275. * po/*.po
  7276. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Removed possible values from the text.
  7278. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7279. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. Removed unused preferences:
  7281. PREF_NO_PREALLOCATION
  7282. PREF_STDOUT_LOG
  7283. PREF_TRACKER_MAX_TRIES
  7284. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7285. PREF_MIN_SEGMENT_SIZE
  7286. * src/option_processing.cc
  7287. * src/prefs.cc
  7288. * src/prefs.h
  7289. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Integrated HelpItem into OptionParser to ease the workload for adding
  7291. new options. Removed default value from usage text.
  7292. * src/HelpItem.cc: Removed.
  7293. * src/HelpItem.h: Removed.
  7294. * src/HelpItemFactory.cc: Removed.
  7295. * src/HelpItemFactory.h: Removed.
  7296. * src/Makefile.am
  7297. * src/Makefile.in
  7298. * src/NameMatchOptionHandler.h
  7299. * src/OptionHandler.cc
  7300. * src/OptionHandler.h
  7301. * src/OptionHandlerFactory.cc
  7302. * src/OptionHandlerImpl.h
  7303. * src/OptionParser.cc
  7304. * src/OptionParser.h
  7305. * src/TagContainer.cc: Removed.
  7306. * src/TagContainer.h: Removed.
  7307. * src/TaggedItem.cc: Removed.
  7308. * src/TaggedItem.h: Removed.
  7309. * src/main.cc
  7310. * src/option_processing.cc
  7311. * src/usage_text.h
  7312. * src/version_usage.cc
  7313. * test/HelpItemTest.cc: Removed.
  7314. * test/Makefile.am
  7315. * test/Makefile.in
  7316. * test/OptionHandlerTest.cc
  7317. * test/OptionParserTest.cc
  7318. * test/TagContainerTest.cc: Removed.
  7319. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Moved `TransferStat stat = ...' to inside the `if' clause.
  7321. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7322. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Fixed the bug that a block in a piece is requested when same block is
  7324. already requested to the same peer in end game mode.
  7325. * src/BtRequestFactory.h
  7326. * src/DefaultBtInteractive.cc
  7327. * src/DefaultBtRequestFactory.cc
  7328. * src/DefaultBtRequestFactory.h
  7329. * src/DefaultPieceStorage.cc
  7330. * src/DefaultPieceStorage.h
  7331. * src/PieceStorage.h
  7332. * src/UnknownLengthPieceStorage.cc
  7333. * src/UnknownLengthPieceStorage.h
  7334. * test/DefaultBtRequestFactoryTest.cc
  7335. * test/DefaultPieceStorageTest.cc
  7336. * test/MockBtRequestFactory.h
  7337. * test/MockPieceStorage.h
  7338. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Removed _uploadLength and _downloadLength from PeerSessionResource
  7340. and use PeerStat::_sessionUploadLength and
  7341. PeerStat::_sessionDownloadLength.
  7342. * src/PeerSessionResource.cc
  7343. * src/PeerSessionResource.h
  7344. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Fixed the bug that prefixLength of split bucket which doesn't include
  7346. local node ID is incremented.
  7347. * src/DHTBucket.cc
  7348. * src/DHTBucket.h
  7349. * test/DHTBucketTest.cc
  7350. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Added cookies.sqlite to EXTRA_DIST
  7352. * test/Makefile.am
  7353. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Added Turkish translation. Updated French, German, Russian and
  7355. Simplified Chinese translations. Thanks to all translators.
  7356. * po/LINGUAS
  7357. * po/de.po
  7358. * po/fr.po
  7359. * po/ru.po
  7360. * po/tr.po
  7361. * po/zh_CN.po
  7362. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Added deliminating text to the beginning of the log so that one can find
  7364. where the log starts easily.
  7365. * src/main.cc
  7366. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7368. to fix compile error when async DNS is not enabled by configuration.
  7369. * src/AbstractCommand.cc
  7370. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. If establishing conneciton to a server is failed, then mark error on
  7372. its ServerStat.
  7373. Added the cause of error to log when error event occurred.
  7374. Moved message string to message.h for translation.
  7375. * src/AbstractCommand.cc
  7376. * src/AbstractCommand.h
  7377. * src/FtpNegotiationCommand.cc
  7378. * src/HttpRequestCommand.cc
  7379. * src/PeerAbstractCommand.cc
  7380. * src/message.h
  7381. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Added the function to get error message from socket.
  7383. * src/SocketCore.cc
  7384. * src/SocketCore.h
  7385. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7387. * src/RequestGroupMan.cc
  7388. * src/RequestGroupMan.h
  7389. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. If error event is received in epoll, then abort download immediately.
  7391. * src/AbstractCommand.cc
  7392. * src/Command.cc
  7393. * src/Command.h
  7394. * src/DownloadEngine.cc
  7395. * src/PeerAbstractCommand.cc
  7396. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Added usage message for --uri-selector, --server-stat-of,
  7398. --server-stat-in, --server-stat-timeout options.
  7399. * src/HelpItemFactory.cc
  7400. * src/usage_text.h
  7401. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Added upper limit of FTP response buffer. The current implementation
  7403. uses 4096bytes as a limit.
  7404. * src/FtpConnection.cc
  7405. * src/FtpConnection.h
  7406. * test/FtpConnectionTest.cc
  7407. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Use non-blocking socket for TCP communication to avoid possible
  7409. blocking due to buffer full.
  7410. * src/AbstractProxyRequestCommand.cc
  7411. * src/FtpConnection.cc
  7412. * src/FtpConnection.h
  7413. * src/FtpNegotiationCommand.cc
  7414. * src/FtpNegotiationCommand.h
  7415. * src/HttpConnection.cc
  7416. * src/HttpConnection.h
  7417. * src/HttpRequestCommand.cc
  7418. * src/InitiatorMSEHandshakeCommand.cc
  7419. * src/InitiatorMSEHandshakeCommand.h
  7420. * src/MSEHandshake.cc
  7421. * src/MSEHandshake.h
  7422. * src/Makefile.am
  7423. * src/PeerConnection.cc
  7424. * src/PeerConnection.h
  7425. * src/PeerInteractionCommand.cc
  7426. * src/PeerListenCommand.cc
  7427. * src/ReceiverMSEHandshakeCommand.cc
  7428. * src/ReceiverMSEHandshakeCommand.h
  7429. * src/SocketBuffer.cc
  7430. * src/SocketBuffer.h
  7431. * src/SocketCore.cc
  7432. * src/SocketCore.h
  7433. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Call setStatusRealtime() in constructor.
  7435. * src/RealtimeCommand.cc
  7436. * src/RealtimeCommand.h
  7437. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Call Download::setNoWait(true) to execute newly created command without
  7439. a pause.
  7440. * src/AbstractCommand.cc
  7441. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7443. found' error from HTTP/FTP server NUM times without getting single
  7444. bytes of data, then force the download to fail.
  7445. Basically aria2 tris all URIs available. So if long list of URIs are
  7446. specified in Metalink, then aria2 will take a long time to fail
  7447. eventually if all URIs are outdated. This option eases this situation
  7448. to limit the number of servers to try.
  7449. * src/FtpNegotiationCommand.cc
  7450. * src/HelpItemFactory.cc
  7451. * src/HttpResponseCommand.cc
  7452. * src/OptionHandlerFactory.cc
  7453. * src/PeerStat.h
  7454. * src/RequestGroup.cc
  7455. * src/RequestGroup.h
  7456. * src/SegmentMan.cc
  7457. * src/SegmentMan.h
  7458. * src/option_processing.cc
  7459. * src/prefs.cc
  7460. * src/prefs.h
  7461. * src/usage_text.h
  7462. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7464. response even if more than one response is in it.
  7465. * src/FtpConnection.cc
  7466. * src/FtpConnection.h
  7467. * test/FtpConnectionTest.cc
  7468. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Merged from stable-0.15
  7470. * m4/libcares.m4
  7471. Use pkg-config
  7472. * m4/sqlite3.m4
  7473. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Removed unnecessary if statement.
  7475. * src/DefaultPieceStorage.cc (initPieceStorage)
  7476. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Added --connect-timeout option to specify connect timeout in seconds.
  7478. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7479. connecting to BitTorrent peer is not controlled by this option.
  7480. * src/AbstractProxyRequestCommand.cc
  7481. * src/FtpNegotiationCommand.cc
  7482. * src/HelpItemFactory.cc
  7483. * src/HttpRequestCommand.cc
  7484. * src/OptionHandlerFactory.cc
  7485. * src/option_processing.cc
  7486. * src/prefs.cc
  7487. * src/prefs.h
  7488. * src/usage_text.h
  7489. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Added help message for -R option.
  7491. * src/HelpItemFactory.cc
  7492. * src/usage_text.h
  7493. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Added the message that the time is in local time zone.
  7495. * src/RequestGroup.cc
  7496. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Implemented the ability to get timestamp from remote FTP server using
  7498. MDTM command described in RFC3659.
  7499. * src/FtpConnection.cc
  7500. * src/FtpConnection.h
  7501. * src/FtpNegotiationCommand.cc
  7502. * src/FtpNegotiationCommand.h
  7503. * test/FtpConnectionTest.cc
  7504. * test/Makefile.am
  7505. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Implemented the ability to get timestamp from remote HTTP server and
  7507. apply it to local file. To enable this feature, --remote-time option
  7508. is added. No usage text has been written yet.
  7509. If several servers returns difference timestamp, then aria2 uses latest
  7510. one.
  7511. * src/CopyDiskAdaptor.cc
  7512. * src/CopyDiskAdaptor.h
  7513. * src/DirectDiskAdaptor.cc
  7514. * src/DirectDiskAdaptor.h
  7515. * src/DiskAdaptor.h
  7516. * src/File.cc
  7517. * src/File.h
  7518. * src/HttpHeader.cc
  7519. * src/HttpHeader.h
  7520. * src/HttpResponse.cc
  7521. * src/HttpResponse.h
  7522. * src/HttpResponseCommand.cc
  7523. * src/HttpResponseCommand.h
  7524. * src/MultiDiskAdaptor.cc
  7525. * src/MultiDiskAdaptor.h
  7526. * src/OptionHandlerFactory.cc
  7527. * src/RequestGroup.cc
  7528. * src/RequestGroup.h
  7529. * src/RequestGroupMan.cc
  7530. * src/option_processing.cc
  7531. * src/prefs.cc
  7532. * src/prefs.h
  7533. * test/CopyDiskAdaptorTest.cc
  7534. * test/FileTest.cc
  7535. * test/Makefile.am
  7536. * test/Makefile.in
  7537. * test/MultiDiskAdaptorTest.cc
  7538. * test/TestUtil.cc
  7539. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Fixed the bug that DiskWriterEntry is not created when its
  7541. FileEntry.isRequested() is false and it doesn't share a piece with
  7542. other FileEntries that are requested. This bug causes segmentation fault
  7543. in the end.
  7544. * src/MultiDiskAdaptor.cc
  7545. * src/MultiDiskAdaptor.h
  7546. * src/MultiFileAllocationIterator.cc
  7547. * test/MultiDiskAdaptorTest.cc
  7548. * test/MultiFileAllocationIteratorTest.cc
  7549. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7551. called if the number of file entries are greater than max open files.
  7552. * src/AbstractSingleDiskAdaptor.cc
  7553. * src/AbstractSingleDiskAdaptor.h
  7554. * src/DiskAdaptor.h
  7555. * src/MultiDiskAdaptor.cc
  7556. * src/MultiDiskAdaptor.h
  7557. * test/MultiDiskAdaptorTest.cc
  7558. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Added a constuctor that receives struct timeval.
  7560. Added operator<.
  7561. * src/TimeA2.cc
  7562. * src/TimeA2.h
  7563. * test/TimeTest.cc
  7564. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7566. * src/CookieParser.cc
  7567. * test/CookieParserTest.cc
  7568. * test/HttpResponseTest.cc
  7569. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Implmented the functions to parse date.
  7571. * src/TimeA2.cc
  7572. * src/TimeA2.h
  7573. * test/TimeTest.cc
  7574. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Added "Firefox3 Cookie" feature to FeatureConfig
  7576. * src/FeatureConfig.cc
  7577. * src/FeatureConfig.h
  7578. * test/FeatureConfigTest.cc
  7579. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Bump up version number to 0.16.0b
  7581. * configure.ac
  7582. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Use pkg-config if is is available.
  7584. * m4/openssl.m4
  7585. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7587. * src/BtAnnounce.h
  7588. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. If an error occurred with a URI, remove identical URI from remaining
  7590. URI list because it is likely that same error occurred in the end and it
  7591. is waste of time.
  7592. * src/AbstractCommand.cc
  7593. * src/RequestGroup.cc
  7594. * src/RequestGroup.h
  7595. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Removed wrong comment.
  7597. * src/DefaultPeerStorage.cc
  7598. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7599. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7600. Added return value of getpid() to argument of srand() to achieve more
  7601. randomized value.
  7602. * src/SimpleRandomizer.cc
  7603. * src/SimpleRandomizer.h
  7604. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Contact tracker frequently when the number of connections are 0 and
  7606. download is not finished yet.
  7607. * src/ActivePeerConnectionCommand.cc
  7608. * src/BtAnnounce.h
  7609. * src/DefaultBtAnnounce.cc
  7610. * src/DefaultBtAnnounce.h
  7611. * test/MockBtAnnounce.h
  7612. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Moved threshold values to UTPexExtensionMessage.
  7614. * src/DefaultBtInteractive.cc
  7615. * src/Peer.cc
  7616. * src/Peer.h
  7617. * src/UTPexExtensionMessage.cc
  7618. * src/UTPexExtensionMessage.h
  7619. * test/UTPexExtensionMessageTest.cc
  7620. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Added _incoming member to Peer class and made it true if the peer
  7622. initiated connection. Don't add those peer to UTPex message.
  7623. If extended handshake is received, assign _incoming to false.
  7624. * src/DefaultBtInteractive.cc
  7625. * src/HandshakeExtensionMessage.cc
  7626. * src/Peer.cc
  7627. * src/Peer.h
  7628. * src/PeerListenCommand.cc
  7629. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7631. Encoding Decoder. Removed size threshold for turning off on the fly
  7632. inflation because resulting file may or may not be inflated depending
  7633. on the file size and I think it is not expected by users.
  7634. This change fixes segmentation fault when Metalink file contains gzipped
  7635. file and its filesize is provided.
  7636. * src/HttpResponseCommand.cc
  7637. * src/HttpResponseCommand.h
  7638. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Made Cookie immutable.
  7640. * src/Cookie.cc
  7641. * src/Cookie.h
  7642. * src/CookieParser.cc
  7643. * src/CookieParser.h
  7644. * src/CookieStorage.cc
  7645. * test/CookieParserTest.cc
  7646. * test/CookieStorageTest.cc
  7647. * test/NsCookieParserTest.cc
  7648. * test/Sqlite3MozCookieParserTest.cc
  7649. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Removed CookieBox, CookieBoxFactory.
  7651. * src/CookieBox.cc
  7652. * src/CookieBox.h
  7653. * src/CookieBoxFactory.cc
  7654. * src/CookieBoxFactory.h
  7655. * src/Makefile.am
  7656. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Use CookieStorage class instead of CookieBox class.
  7658. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7659. * src/AbstractProxyRequestCommand.cc
  7660. * src/CookieStorage.cc
  7661. * src/DownloadEngine.cc
  7662. * src/DownloadEngine.h
  7663. * src/HttpConnection.cc
  7664. * src/HttpConnection.h
  7665. * src/HttpRequest.cc
  7666. * src/HttpRequest.h
  7667. * src/HttpRequestCommand.cc
  7668. * src/HttpResponse.cc
  7669. * src/HttpResponseCommand.cc
  7670. * src/HttpSkipResponseCommand.cc
  7671. * src/Makefile.am
  7672. * src/MultiUrlRequestInfo.cc
  7673. * src/Request.cc
  7674. * src/Request.h
  7675. * src/main.cc
  7676. * test/AllTest.cc
  7677. * test/CookieStorageTest.cc
  7678. * test/CookieTest.cc
  7679. * test/HttpRequestTest.cc
  7680. * test/HttpResponseTest.cc
  7681. * test/Makefile.am
  7682. * test/NsCookieParserTest.cc
  7683. * test/Sqlite3MozCookieParserTest.cc
  7684. * test/nscookietest.txt
  7685. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Updated
  7687. * test/Cookies.sqlite
  7688. * test/nscookietest.txt
  7689. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Added tests for CookieStorage::load()
  7691. * test/CookieStorageTest.cc
  7692. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Added CookieStorage class which is based on RFC2109 and manages cookies
  7694. more strictly than CookieBox and CookieBoxFactory class.
  7695. * src/CookieStorage.cc
  7696. * src/CookieStorage.h
  7697. * src/Cookie.cc
  7698. * src/Cookie.h
  7699. * test/CookieStorageTest.cc
  7700. * test/CookieTest.cc
  7701. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Fixed the bug that commands are created more than the number of pieces.
  7703. * src/RequestGroup.cc
  7704. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Fixed infinite loop bug in FTP when SIZE command failed.
  7706. * src/FtpNegotiationCommand.cc
  7707. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Removed DirectDiskAdaptorTest.h
  7709. * test/Makefile.am
  7710. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Fixed chunk checksum validation cannot detect trailing garbage data.
  7712. BUG#2074141
  7713. * src/AbstractSingleDiskAdaptor.cc
  7714. * src/AbstractSingleDiskAdaptor.h
  7715. * src/CheckIntegrityEntry.cc
  7716. * src/CheckIntegrityEntry.h
  7717. * src/DiskAdaptor.h
  7718. * src/MultiDiskAdaptor.cc
  7719. * src/MultiDiskAdaptor.h
  7720. * src/RequestGroup.cc
  7721. * test/DirectDiskAdaptorTest.cc
  7722. * test/MultiDiskAdaptorTest.cc
  7723. * test/TestUtil.cc
  7724. * test/TestUtil.h
  7725. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Bump up version number of dht.dat file to 3. In version 3 format, time
  7727. is stored in 64bit, network byte order.
  7728. New build can load old format(version 2) but it saves the file in new
  7729. format. It means once you used new build, your dht.dat becomes
  7730. incompatible with older build.
  7731. * src/DHTRoutingTableDeserializer.cc
  7732. * src/DHTRoutingTableSerializer.cc
  7733. * test/DHTRoutingTableSerializerTest.cc
  7734. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7736. * test/Makefile.am
  7737. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Bump up version number of .aria2 control file to 0001.
  7739. New aria2 can still load version 0000 file but it saves the file in
  7740. version 0001 format. It means that new aria2 can resume download
  7741. started by old aria2 but the opposite is not true.
  7742. * src/DefaultBtProgressInfoFile.cc
  7743. * src/DefaultBtProgressInfoFile.h
  7744. * test/DefaultBtProgressInfoFileTest.cc
  7745. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Added ntoh64 and hton64 as inline functions.
  7747. * src/Util.cc
  7748. * test/UtilTest.cc
  7749. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Added sqlite3 depenency and Firefox3 cookie support.
  7751. * README
  7752. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. State that firefox3 cookie is supported explicitly in the usage.
  7754. * src/usage_text.h
  7755. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. Externalized message.
  7757. * src/RequestGroupMan.cc
  7758. * src/message.h
  7759. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Save temporary file first and rename to the destination on success.
  7761. Added test cases.
  7762. * src/RequestGroupMan.cc
  7763. * test/RequestGroupManTest.cc
  7764. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Fixed the bug that the number of connected peer is exceeding the limit
  7766. (55 by default) in seeding mode.
  7767. Multiplied 0.8 to _maxUploadSpeedLimit.
  7768. * src/ActivePeerConnectionCommand.cc
  7769. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Clear table item.
  7771. * src/Dictionary.cc
  7772. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Fixed error handling of lseek.
  7774. * src/AbstractDiskWriter.cc
  7775. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7777. style cookie file.
  7778. * src/usage_text.h
  7779. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7781. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7782. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7783. * src/Util.cc
  7784. * src/Util.h
  7785. * src/CookieParser.cc
  7786. * test/UtilTest.cc
  7787. * test/CookieParserTest.cc
  7788. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. Separate the implementation to load old mozilla format of cookie to
  7790. NsCookieParser class.
  7791. * src/CookieBoxFactory.cc
  7792. * src/CookieBoxFactory.h
  7793. * src/NsCookieParser.cc
  7794. * src/NsCookieParser.h
  7795. * test/NsCookieParserTest.cc
  7796. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Made parse() const
  7798. * src/Sqlite3MozCookieParser.cc
  7799. * src/Sqlite3MozCookieParser.h
  7800. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Added firefox3 cookie support based on the patch submitted by
  7802. tizianomueller.
  7803. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7804. this functionality.
  7805. * configure.ac
  7806. * m4/sqlite3.m4
  7807. * src/CookieBoxFactory.cc
  7808. * src/CookieBoxFactory.h
  7809. * src/Makefile.am
  7810. * src/Makefile.in
  7811. * src/Sqlite3MozCookieParser.cc
  7812. * src/Sqlite3MozCookieParser.h
  7813. * src/main.cc
  7814. * test/CookieBoxFactoryTest.cc
  7815. * test/Makefile.am
  7816. * test/Makefile.in
  7817. * test/Sqlite3MozCookieParserTest.cc
  7818. * test/badcookies.sqlite
  7819. * test/cookies.sqlite
  7820. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Added Danish and Greek translations.
  7822. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7823. Great thanks to all translators.
  7824. * po/LINGUAS
  7825. * po/el.po
  7826. * po/da.po
  7827. * po/es.po
  7828. * po/ca.po
  7829. * po/nn.po
  7830. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Fixed man page: --follow-bittorrent should be --follow-torrent
  7832. * doc/aria2c.1.txt
  7833. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Fixed: numCommand is less than the value specified in -C option.
  7835. * src/RequestGroup.cc
  7836. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Fixed occasional assertion failure in PieceSegment.
  7838. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7839. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7840. creation of duplicate segments and one of the segment was finished then
  7841. assertion failure was caused.
  7842. * src/SegmentMan.cc
  7843. * test/SegmentManTest.cc
  7844. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Added options to load/save the server's performance/status to a file
  7846. and the timeout to drop their data.
  7847. --server-stat-of=FILE specifies the file to which performance data
  7848. is saved.
  7849. --server-stat-if=FILE specifies the file to read previously saved
  7850. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7851. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7852. TIMEOUT is specified in seconds and the default value is 24hours.
  7853. * src/MultiUrlRequestInfo.cc
  7854. * src/OptionHandlerFactory.cc
  7855. * src/RequestGroupMan.cc
  7856. * src/RequestGroupMan.h
  7857. * src/ServerStatMan.cc
  7858. * src/ServerStatMan.h
  7859. * src/option_processing.cc
  7860. * src/prefs.cc
  7861. * src/prefs.h
  7862. * test/ServerStatManTest.cc
  7863. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7865. * src/ServerStatMan.cc
  7866. * src/ServerStatMan.h
  7867. * test/ServerStatManTest.cc
  7868. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Implemented ServerStatMan::load(...) function and its test case.
  7870. * src/ServerStat.cc
  7871. * src/ServerStat.h
  7872. * src/ServerStatMan.cc
  7873. * test/ServerStatManTest.cc
  7874. * test/ServerStatTest.cc
  7875. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Use time_t instead of int32_t. Use int64_t where milli second is
  7877. expected.
  7878. * src/TimeA2.cc
  7879. * src/TimeA2.h
  7880. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Implemented ServerStatMan::save(...) function and its test case.
  7882. * src/ServerStat.cc
  7883. * src/ServerStat.h
  7884. * src/ServerStatMan.cc
  7885. * src/ServerStatMan.h
  7886. * test/ServerStatManTest.cc
  7887. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. Now aria2 uses name attribute in Metalink as local filename in
  7889. BitTorrent downloads. BUG#2033999
  7890. * src/BtContext.h
  7891. * src/BtDependency.cc
  7892. * src/DefaultBtContext.cc
  7893. * src/DefaultBtContext.h
  7894. * src/SingleFileDownloadContext.cc
  7895. * src/SingleFileDownloadContext.h
  7896. * test/BtDependencyTest.cc
  7897. * test/DefaultBtContextTest.cc
  7898. * test/MockBtContext.h
  7899. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Added AC_C_BIGENDIAN
  7901. * src/configure.ac
  7902. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Limited numCommand less than or equal to the number of piece.
  7904. * src/RequestGroup.cc
  7905. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7907. directive.
  7908. * test/DefaultPieceStorageTest.cc
  7909. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Fixed memory leak in test code
  7911. * test/AnnounceListTest.cc
  7912. * test/DefaultPeerListProcessorTest.cc
  7913. * test/DefaultPeerStorageTest.cc
  7914. * test/MetaFileUtilTest.cc
  7915. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7917. * src/DefaultPieceStorage.cc
  7918. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Initialized _directIOAllowed
  7920. * src/MultiDiskAdaptor.cc
  7921. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Fixed memory leak
  7923. * src/GZipDecoder.cc
  7924. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Fixed memory leak
  7926. * src/MetalinkParserStateMachine.cc
  7927. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Fixed memory leak
  7929. * src/Dictionary.cc
  7930. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Fixed memory leak
  7932. * src/IteratableChunkChecksumValidator.h
  7933. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Fixed unmatched malloc/free.
  7935. * src/IteratableChunkChecksumValidator.cc
  7936. * src/IteratableChecksumValidator.cc
  7937. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Removed max chunk size check. This change fixes BUG#2040169
  7939. * src/ChunkedDecoder.cc
  7940. * src/ChunkedDecoder.h
  7941. * test/ChunkedDecoderTest.cc
  7942. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Implemented download speed based URI selection algorithm.
  7944. Introduced new option --uri-selector.
  7945. If --uri-selector=feedback is given, aria2 uses download speed observed
  7946. in the previous downloads and chooses fastest server in the URI list.
  7947. Currently at most 10 URIs are considered to introduce randomeness for
  7948. finding better servers. The speed is average download speed in the
  7949. downloads.
  7950. On the other hand, if --uri-selector=inorder is given, which is default,
  7951. URI is tried in order in URI list.
  7952. The usage text for the new option has not been written yet.
  7953. * src/AbstractCommand.cc
  7954. * src/DownloadCommand.cc
  7955. * src/DownloadEngine.cc
  7956. * src/DownloadEngineFactory.cc
  7957. * src/InOrderURISelector.cc
  7958. * src/InOrderURISelector.h
  7959. * src/OptionHandlerFactory.cc
  7960. * src/PeerStat.h
  7961. * src/RequestGroup.cc
  7962. * src/RequestGroup.h
  7963. * src/RequestGroupMan.cc
  7964. * src/RequestGroupMan.h
  7965. * src/SegmentMan.cc
  7966. * src/SegmentMan.h
  7967. * src/ServerStat.cc
  7968. * src/ServerStat.h
  7969. * src/ServerStatMan.cc
  7970. * src/ServerStatMan.h
  7971. * src/ServerStatURISelector.cc
  7972. * src/ServerStatURISelector.h
  7973. * src/URISelector.h
  7974. * src/option_processing.cc
  7975. * src/prefs.cc
  7976. * src/prefs.h
  7977. * test/InOrderURISelectorTest.cc
  7978. * test/RequestGroupManTest.cc
  7979. * test/ServerStatManTest.cc
  7980. * test/ServerStatURISelectorTest.cc
  7981. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7982. * Release 0.15.1+2
  7983. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Bump up version number to 0.15.1+2
  7985. * configure.ac
  7986. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7988. * m4/aria2_arg.m4
  7989. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. * Release 0.15.1+1
  7991. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Bump up version number to 0.15.1+1
  7993. * configure.ac
  7994. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Fixed the bug that causes segmentaion fault when resuming download
  7996. using metalink without size tag. Reproducible only using HTTP URI.
  7997. * src/HttpResponseCommand.cc
  7998. * src/FtpNegotiationCommand.cc
  7999. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. * Release 0.15.1
  8001. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Updated Bulgarian and French translations, thanks to all translators.
  8003. * po/bg.po
  8004. * po/fr.po
  8005. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Bump up version number to 0.15.1
  8007. * configure.ac
  8008. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Avoid repeated call of gettimeofday() when calculating speed.
  8010. * src/SpeedCalc.cc
  8011. * src/SpeedCalc.h
  8012. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Removed writable check when socket's send buffer is full in BitTorrent
  8014. downloads to lower CPU usage.
  8015. * src/PeerInteractionCommand.cc
  8016. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Fixed broken gzip inflation.
  8018. Turn off segmented downloading if gzip content is smaller than or equal
  8019. to 1MiB and inflate the data on the fly, because HTTP response header
  8020. doesn't contain the length of inflated file we can't determin where
  8021. the chunk of data should be written.
  8022. On the other hand, if gzip content is larger than 1MB, then turn off
  8023. on the fly inflation, because some servers returns "content-type: gzip"
  8024. for *.tgz, *.gz files.
  8025. * src/DownloadCommand.cc
  8026. * src/HttpResponseCommand.cc
  8027. * src/HttpResponseCommand.h
  8028. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Applied tizianomueller's patch to fix compile error.
  8030. * test/BitfieldManTest.cc
  8031. * test/BtRequestMessageTest.cc
  8032. * test/DefaultBtContextTest.cc
  8033. * test/DefaultDiskWriterTest.cc
  8034. * test/DefaultPieceStorageTest.cc
  8035. * test/HttpHeaderProcessorTest.cc
  8036. * test/HttpResponseTest.cc
  8037. * test/Metalink2RequestGroupTest.cc
  8038. * test/MetalinkParserControllerTest.cc
  8039. * test/MetalinkProcessorTest.cc
  8040. * test/PeerSessionResourceTest.cc
  8041. * test/UtilTest.cc
  8042. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. * Release 0.15.0
  8044. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Reordered src files in POTFILES.in so that usage text appears first.
  8046. * po/POTFILES.in
  8047. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Bump up version number to 0.15.0
  8049. * configure.ac
  8050. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Added Bulgarian translation.
  8052. Updated Catalan, Spanish, French and Japanese translations.
  8053. Thanks to all translators.
  8054. * po/LINGUAS
  8055. * po/bg.po
  8056. * po/ca.po
  8057. * po/es.po
  8058. * po/fr.po
  8059. * po/ja.po
  8060. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Updated feature list. Added libz for dependency section.
  8062. Added a description about unit testing using CppUnit.
  8063. * README
  8064. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Added a test for libz. Quoted where it is necessary.
  8066. * build_test.sh
  8067. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Added GZip to `Enabled Features' list.
  8069. * src/FeatureConfig.cc
  8070. * src/FeatureConfig.h
  8071. * test/FeatureConfigTest.cc
  8072. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8074. the transfer has not yet started.
  8075. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8076. * src/SegmentMan.cc
  8077. * src/SegmentMan.h
  8078. * test/SegmentManTest.cc
  8079. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Cache last calculated average download/upload speed.
  8081. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8082. cached value.
  8083. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8084. * src/PeerStat.h
  8085. * src/SpeedCalc.cc
  8086. * src/SpeedCalc.h
  8087. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Call parseUrl directly.
  8089. * src/Request.cc (resetUrl)
  8090. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Supported absolute/relative path in Location header field.
  8092. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8093. * src/HttpHeader.cc
  8094. * src/HttpHeader.h
  8095. * src/HttpResponse.cc
  8096. * src/HttpSkipResponseCommand.cc
  8097. * src/Request.cc
  8098. * test/HttpHeaderTest.cc
  8099. * test/HttpResponseTest.cc
  8100. * test/RequestTest.cc
  8101. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Changed help text for --load-cookie option.
  8103. * doc/aria2c.1.txt
  8104. * src/usage_text.h
  8105. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Regenerated test/Makefile.in to remove stale ChangeLog.
  8107. * test/Makefile.in
  8108. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Updated po files.
  8110. * po/aria2c.pot
  8111. * po/*.po
  8112. * po/*.gmo
  8113. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Bump up version number to 0.15.0b
  8115. * configure.ac
  8116. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Externalize messages.
  8118. * src/RequestGroupMan.cc
  8119. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8120. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Use File::exists() instead of File::isFile() to allow non-regular file
  8122. such as block special files.
  8123. * src/AbstractDiskWriter.cc
  8124. * src/MultiDiskWriter.cc
  8125. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8127. * src/gai_strerror.h
  8128. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Fixed compile error. Thanks gknauf for the patch.
  8130. * src/asctime_r.c
  8131. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Included asctime_r.h from a2time.h.
  8133. * src/a2time.h
  8134. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Added a message "aria2 doesn't verify signature" to log message when
  8136. signature file is saved.
  8137. * src/RequestGroupMan.cc
  8138. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Added the ability to save signature when download is completed if
  8140. signature is available. The filename of signature file is the path to
  8141. download file followed by ".sig". If it already exists, then signature
  8142. will not be saved.
  8143. * src/RequestGroupMan.cc
  8144. * src/Signature.cc
  8145. * test/SignatureTest.cc
  8146. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Updated the descriptions for --bt-seed-unverified.
  8148. * doc/aria2c.1
  8149. * doc/aria2c.1.html
  8150. * doc/aria2c.1.txt
  8151. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8153. that this is not going to verify files using piece hashes.
  8154. * src/HelpItemFactory.cc
  8155. * src/OptionHandlerFactory.cc
  8156. * src/RequestGroup.cc
  8157. * src/option_processing.cc
  8158. * src/prefs.cc
  8159. * src/prefs.h
  8160. * src/usage_text.h
  8161. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Added the ability to retrieve signature from Metalink file.
  8163. A retrieved signature is stored in Signature class and it is held by
  8164. DownloadContext class. Note that aria2 doesn't verify signature.
  8165. * src/DownloadContext.cc
  8166. * src/DownloadContext.h
  8167. * src/Makefile.am
  8168. * src/Makefile.in
  8169. * src/Metalink2RequestGroup.cc
  8170. * src/MetalinkEntry.cc
  8171. * src/MetalinkEntry.h
  8172. * src/MetalinkParserController.cc
  8173. * src/MetalinkParserController.h
  8174. * src/MetalinkParserStateMachine.cc
  8175. * src/MetalinkParserStateMachine.h
  8176. * src/Signature.cc
  8177. * src/Signature.h
  8178. * src/SignatureMetalinkParserState.cc
  8179. * src/SignatureMetalinkParserState.h
  8180. * src/VerificationMetalinkParserState.cc
  8181. * src/VerificationMetalinkParserState.h
  8182. * test/Metalink2RequestGroupTest.cc
  8183. * test/MetalinkParserControllerTest.cc
  8184. * test/MetalinkProcessorTest.cc
  8185. * test/test.xml
  8186. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Close DiskAdaptor after renaming file.
  8188. * src/RequestGroup.cc
  8189. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Corrected indentation
  8191. * src/DefaultBtProgressInfoFile.cc
  8192. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Moved the calls of std::ios::exceptions() inside of try-catch block
  8194. because if an error occurred in constructor of std::fstream, then
  8195. exception is thrown immediately when std::ios::exceptions() is called
  8196. which results unhandled exception and aria2c aborts.
  8197. * src/DefaultBtProgressInfoFile.cc
  8198. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Added the test for the previous change in DefaultBtContext.cc
  8200. * test/DefaultBtContextTest.cc
  8201. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Fixed the bug that causes infinite loop when the number of pieces are
  8203. fewer than allowed fast set size which is 10 by default.
  8204. * src/DefaultBtContext.cc
  8205. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Updated the descriptions for -j, -s. Added --bt-seed.
  8207. * doc/aria2c.1
  8208. * doc/aria2c.1.html
  8209. * doc/aria2c.1.txt
  8210. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8212. aria2 seeds previously downloaded files without validating piece hashs.
  8213. * src/HelpItemFactory.cc
  8214. * src/OptionHandlerFactory.cc
  8215. * src/RequestGroup.cc
  8216. * src/option_processing.cc
  8217. * src/prefs.cc
  8218. * src/prefs.h
  8219. * src/usage_text.h
  8220. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Updated DESCRIPTION of man page.
  8222. * doc/aria2c.1
  8223. * doc/aria2c.1.html
  8224. * doc/aria2c.1.txt
  8225. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8227. Don't define `struct addrinfo' when __sun is defined.
  8228. * src/getaddrinfo.h
  8229. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8231. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8232. second argument is of type `struct _stati64'. Otherwise it is defined as
  8233. `struct stat'.
  8234. * src/AbstractDiskWriter.cc
  8235. * src/File.cc
  8236. * src/File.h
  8237. * src/a2io.h
  8238. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Fixed the compile error in hurd-i386
  8240. See the original bug report:
  8241. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8242. * src/a2io.h
  8243. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Code cleanup.
  8245. * src/PeerAbstractCommand.cc
  8246. * src/PeerAbstractCommand.h
  8247. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Removed TransferEncoding.
  8249. * src/DownloadCommand.cc
  8250. * src/DownloadCommand.h
  8251. * src/HttpResponseCommand.cc
  8252. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Updated po files.
  8254. * po/aria2c.pot
  8255. * po/*.po
  8256. * po/*.gmo
  8257. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8259. * src/A2STR.cc
  8260. * src/A2STR.h
  8261. * src/ChunkedDecoder.cc
  8262. * src/ChunkedDecoder.h
  8263. * src/ChunkedEncoding.cc: Removed
  8264. * src/ChunkedEncoding.h: Removed
  8265. * src/DownloadCommand.cc
  8266. * src/DownloadCommand.h
  8267. * src/HttpDownloadCommand.cc
  8268. * src/HttpResponse.cc
  8269. * src/HttpResponse.h
  8270. * src/HttpResponseCommand.cc
  8271. * src/HttpSkipResponseCommand.cc
  8272. * src/HttpSkipResponseCommand.h
  8273. * src/Makefile.am
  8274. * src/TransferEncoding.h: Removed
  8275. * test/ChunkedDecoderTest.cc
  8276. * test/ChunkedEncodingTest.cc: Removed
  8277. * test/HttpResponseTest.cc
  8278. * test/Makefile.am
  8279. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Use append instead of insert.
  8281. * src/GZipDecoder.cc
  8282. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Updated doc
  8284. * src/Decoder.h
  8285. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Updated usage text for -s option.
  8287. * src/usage_text.h
  8288. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8290. * src/Request.cc
  8291. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Cleaned up configure.ac.
  8293. * configure.ac
  8294. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8296. AC_ARG_ENABLE.
  8297. * configure.ac
  8298. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8300. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8301. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8302. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8303. fly and writes decoded data to a local disk.
  8304. * README
  8305. * README.html
  8306. * configure.ac
  8307. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8308. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8309. * m4/libz.m4
  8310. * src/Decoder.h
  8311. * src/DownloadCommand.cc
  8312. * src/DownloadCommand.h
  8313. * src/Exception.h
  8314. * src/GZipDecoder.cc
  8315. * src/GZipDecoder.h
  8316. * src/HttpHeader.cc
  8317. * src/HttpHeader.h
  8318. * src/HttpRequest.cc
  8319. * src/HttpRequest.h
  8320. * src/HttpResponse.cc
  8321. * src/HttpResponse.h
  8322. * src/HttpResponseCommand.cc
  8323. * src/Makefile.am
  8324. * test/GZipDecoderTest.cc
  8325. * test/HttpRequestTest.cc
  8326. * test/HttpResponseTest.cc
  8327. * test/Makefile.am
  8328. * test/Makefile.in
  8329. * test/gzip_decode_test.gz
  8330. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Clarified usage of -j option.
  8332. * src/usage_text.h
  8333. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Disabled getting size from the response of RETR.
  8335. If SIZE command failed, then disable resuming and segmented downloading.
  8336. * src/FtpConnection.cc
  8337. * src/FtpConnection.h
  8338. * src/FtpNegotiationCommand.cc
  8339. * src/FtpNegotiationCommand.h
  8340. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. Use digits to find first byte of file size, which makes the intention
  8342. of the code clearer.
  8343. * src/FtpConnection.cc
  8344. Don't call validateTotalLength() when size is 0.
  8345. * src/FtpNegotiationCommand.cc
  8346. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Updated po files.
  8348. * po/aria2c.pot
  8349. * po/*.gmo
  8350. * po/*.po
  8351. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Clarified usage text for --split option.
  8353. * src/usage_text.h
  8354. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Bump up version number to 0.15.0dev. "dev" means "development"
  8356. version, which means I started the development of the next release!
  8357. * src/configure.ac
  8358. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. If FTP server returns negative response with REST raw command and
  8360. requested range is not 0, throw exception. If requested range is 0,
  8361. continue download a file from 0 byte.
  8362. * src/FtpNegotiationCommand.cc
  8363. * src/FtpNegotiationCommand.h
  8364. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Supported FTP server which don't recognize SIZE raw command.
  8366. If SIZE raw command is failed, aria2 will try to get file size
  8367. from the response of RETR raw command. If both attempts are failed,
  8368. then resuming and segmented downloading are disabled.
  8369. * src/FtpConnection.cc
  8370. * src/FtpConnection.h
  8371. * src/FtpNegotiationCommand.cc
  8372. * src/FtpNegotiationCommand.h
  8373. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. * Release 0.14.0+1
  8375. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Bump up version number to 0.14.0+1
  8377. * src/configure.ac
  8378. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Fixed the code that refers static member variable from non-static
  8380. context.
  8381. * src/DefaultPeerStorage.cc
  8382. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. * Release 0.14.0
  8384. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Added build test script
  8386. * build_test.sh
  8387. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Updated ja.po
  8389. * src/ja.po
  8390. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. Bump up version number to 0.14.0
  8392. * src/configure.ac
  8393. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Updated ja.po and fr.po. Great thanks for french translators and
  8395. Sebastien WILLEMIJNS.
  8396. * po/fr.po
  8397. * po/ja.po
  8398. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Added configure option to enable/disable epoll support.
  8400. * configure.ac
  8401. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Updated man page.
  8403. * doc/aria2c.1.txt
  8404. * doc/aria2c.1
  8405. * doc/aria2c.1.html
  8406. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Added missing default value '5' to the usage of --split option.
  8408. * src/HelpItemFactory.cc
  8409. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Filled up pieces based on the number of missing blocks, rather than
  8411. simplay the number of piece * block length.
  8412. * src/BtRequestFactory.h
  8413. * src/DefaultBtInteractive.cc
  8414. * src/DefaultBtInteractive.h
  8415. * src/DefaultBtRequestFactory.cc
  8416. * src/DefaultBtRequestFactory.h
  8417. * src/Piece.cc
  8418. * src/Piece.h
  8419. * test/BitfieldManTest.cc
  8420. * test/DefaultBtRequestFactoryTest.cc
  8421. * test/MockBtRequestFactory.h
  8422. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Made _epEvents a member variable.
  8424. * src/DownloadEngine.cc
  8425. * src/DownloadEngine.h
  8426. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Cancel download if http redirect is bounded more than 20 times.
  8428. * src/AbstractCommand.cc
  8429. * src/HttpSkipResponseCommand.cc
  8430. * src/Request.cc
  8431. * src/Request.h
  8432. * test/RequestTest.cc
  8433. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Fixed unhandled exception(removed keyword `new').
  8435. * src/SocketCore.cc (initEPOLL)
  8436. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Removed visit(const MetaEntry*)
  8438. * src/MetaEntryVisitor.h:
  8439. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8440. and made them virtual.
  8441. * src/BencodeVisitor.h
  8442. * src/BencodeVisitor.cc
  8443. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Updated po files.
  8445. * po/aria2c.pot
  8446. * po/*.po
  8447. * po/*.gmo
  8448. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8450. the number of socket to watch out.
  8451. * src/PeerInteractionCommand.cc
  8452. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. When there is not enough space in disk when writing a chunk of data,
  8454. aria2 now prints the message to the console to warn user and aborts
  8455. its download. Not all downloads are canceled because some downloads
  8456. may use another disk or partition. BUG#1640332
  8457. * src/AbstractDiskWriter.cc
  8458. * src/PeerAbstractCommand.cc
  8459. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8460. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8461. setHaltRequested(true) to cancel download.
  8462. * src/PeerInteractionCommand.h
  8463. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8465. socket from int to sock_t as sockets are unsigned in Windows.
  8466. For AsyncNameResolver, DownloadEngine, I did additional modification
  8467. for the portion of the code changed according to epoll support.
  8468. I defined sock_t in a2netcompat.h to use sock_t without including
  8469. SocketCore.h.
  8470. * src/AsyncNameResolver.cc
  8471. * src/AsyncNameResolver.h
  8472. * src/DownloadEngine.cc
  8473. * src/DownloadEngine.h
  8474. * src/SocketCore.cc
  8475. * src/SocketCore.h
  8476. * src/a2netcompat.h
  8477. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8479. changes in the patch were applied.
  8480. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8481. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8482. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8483. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8485. a2io.h and common.h were modified.
  8486. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8487. MinGW.
  8488. * src/common.h: Changed off_t to 64 bit in MinGW.
  8489. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8491. only a2netcompat.h is modified.
  8492. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8493. directives.
  8494. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8496. only gai_strerror.h is modified.
  8497. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8498. winsock errors in MinGW.
  8499. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8501. follow sources are applied.
  8502. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8503. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8504. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8505. I included locale.h from Platform.cc.
  8506. * src/main.cc: Moved common setup/teardown code to Platform class.
  8507. * test/AllTest.cc: Use Platform class.
  8508. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8509. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8511. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8512. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8513. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8515. aria2-0.13.2+1-mingw-2.patch.
  8516. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8517. systems which don't have termious.h. I moved the directive inside of
  8518. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8519. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8520. anyway.
  8521. * src/asctime_r.h
  8522. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8523. I added 2nd argument to the prototype declaration.
  8524. * src/StringFormat.cc: Get rid of vasprintf.
  8525. * src/getaddrinfo.h: Fixed constants.
  8526. * configure.ac: Added the check for asctime_r function.
  8527. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8528. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. Added writable test for Socket when the sending message is in progress.
  8530. Usually the sending message is piece message. Without wriable check,
  8531. upload latency is dropped to more than 1sec.
  8532. * src/PeerInteractionCommand.cc
  8533. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Create only requested files and files which shares a piece with
  8535. requested file in multi-torrent downloads. Directory structures are
  8536. also created in the same rule.
  8537. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8538. DiskWriterEntry as in the previous implementation.
  8539. * src/MultiDiskWriter.cc
  8540. * src/MultiFileAllocationIterator.cc
  8541. * src/MultiFileAllocationIterator.h
  8542. * test/MultiFileAllocationIteratorTest.cc
  8543. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Commented out -lprofiler
  8545. * src/Makefile.am
  8546. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Bump up version number to 0.14.0b.
  8548. * src/configure.ac
  8549. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Actively establish connection to peers in seeding, when peer cache
  8551. is not full and max upload speed limit is not reached.
  8552. * src/ActivePeerConnectionCommand.cc
  8553. * src/ActivePeerConnectionCommand.h
  8554. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8556. to make room more fleshy, recently found peers.
  8557. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8558. it.
  8559. * src/DefaultPeerStorage.cc
  8560. * test/DefaultPeerStorageTest.cc
  8561. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Returns cached data only when the previous receiveHandshake() is called
  8563. with peek = true.
  8564. * src/PeerConnection.cc (receiveHandshake)
  8565. * src/PeerConnection.h (receiveHandshake)
  8566. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Changed default value of -s option from 1 to 5.
  8568. Also max value of -s option is changed from 5 to 16.
  8569. * src/HelpItemFactory.cc
  8570. * src/OptionHandlerFactory.cc
  8571. * src/option_processing.cc
  8572. * src/usage_text.h
  8573. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Changed -s options behavior. Now it means the number of connections
  8575. made simultaneously in each http/ftp download.
  8576. If 1 URL is specified, the behavior is the same with old implementation.
  8577. If -s N is given and more than N URLs are specified, first N URLs are
  8578. used and remaining URLs are used for backup. If less than N URLs are
  8579. specified, some of URLs are used more than once so that totally N
  8580. connections are made simultaneously.
  8581. * src/main.cc
  8582. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Included missing iosfwd or ostream header.
  8584. * src/RequestGroupMan.cc
  8585. * src/TaggedItem.cc
  8586. * src/TaggedItem.h
  8587. * src/Util.cc
  8588. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8590. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8591. * src/HttpConnection.cc: Included missing sstream.
  8592. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8593. Added --bt-max-open-files option.
  8594. * src/DefaultPieceStorage.cc
  8595. * src/HelpItemFactory.cc
  8596. * src/MultiDiskAdaptor.cc
  8597. * src/MultiDiskAdaptor.h
  8598. * src/OptionHandlerFactory.cc
  8599. * src/option_processing.cc
  8600. * src/prefs.cc
  8601. * src/prefs.h
  8602. * src/usage_text.h
  8603. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. Fixed the bug that aria2 aborts when a path to a directory is given
  8605. in command-line.
  8606. * src/ProtocolDetector.cc
  8607. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Limited the number files opened in each BitTorrent download. The default
  8609. value is 100. The option to change this value will be added.
  8610. * src/MultiDiskAdaptor.cc
  8611. * src/MultiDiskAdaptor.h
  8612. * src/MultiFileAllocationIterator.cc
  8613. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Fixed the bug that HTTP downloads don't start with old libraries.
  8615. * src/HttpHeaderProcessor.cc
  8616. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Use empty() instead of size() > 0.
  8618. * src/HttpConnection.cc
  8619. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Drop connection if the incoming peer ID is the same with localhost's
  8621. one. The previous implementation drops connection when incoming peer's
  8622. IP address is the same with localhost's one.
  8623. * src/PeerListenCommand.cc
  8624. * src/DefaultBtInteractive.cc
  8625. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Returns cached data without checking whether socket is readable
  8627. if the cache is available.
  8628. * src/PeerConnection.cc (receiveHandshake)
  8629. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Included stdint.h
  8631. * src/common.h
  8632. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Removed duplicate HAVE_GETTIMEOFDAY
  8634. * src/Makefile.am
  8635. * src/Makefile.in
  8636. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Use interval as a minInterval when minInterval is not supplied.
  8638. * src/DefaultBtAnnounce.cc
  8639. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8641. attempt is failed, then 2nd attempt get kicked out more quickly.
  8642. And it is now static const member of DefaultBtAnnounce.
  8643. * src/DefaultBtAnnounce.h
  8644. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8646. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8647. * src/ActivePeerConnectionCommand.cc
  8648. * src/BtConstants.h
  8649. * src/BtRuntime.h
  8650. * src/DHTGetPeersCommand.cc
  8651. * src/DefaultBtAnnounce.cc
  8652. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8653. BtRuntime::MAX_PEERS.
  8654. * src/DefaultPeerStorage.h
  8655. * src/InitiatorMSEHandshakeCommand.cc
  8656. * src/PeerInitiateConnectionCommand.cc
  8657. * src/PeerInteractionCommand.cc
  8658. * src/PeerReceiveHandshakeCommand.cc
  8659. * src/TrackerWatcherCommand.cc
  8660. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Always Connect to _numNewConnection
  8662. * src/ActivePeerConnectionCommand.cc
  8663. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Made `begin' unsigned int.
  8665. * src/GrowSegment.h
  8666. * src/Piece.cc
  8667. * src/Piece.h
  8668. * src/PiecedSegment.cc
  8669. * src/PiecedSegment.h
  8670. * src/Segment.h
  8671. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Calculate piece hash when data is arrived if the data is arrived in
  8673. order. This removes additional read operation for hash calculation.
  8674. If the data is arrived in out of order, the hash is calucated when the
  8675. piece is completed. This is the same behavior as the old implementation.
  8676. * src/BtPieceMessage.cc
  8677. * src/DefaultBtProgressInfoFile.cc
  8678. * src/DefaultPieceStorage.cc
  8679. * src/DownloadCommand.cc
  8680. * src/DownloadCommand.h
  8681. * src/DownloadEngine.cc
  8682. * src/GrowSegment.cc
  8683. * src/GrowSegment.h
  8684. * src/Piece.cc
  8685. * src/Piece.h
  8686. * src/PiecedSegment.cc
  8687. * src/PiecedSegment.h
  8688. * src/Segment.h
  8689. * test/PieceTest.cc
  8690. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Try to keep the ordering of outgoing piece message.
  8692. * src/DefaultBtMessageDispatcher.cc
  8693. (DefaultBtMessageDispatcher::sendMessages)
  8694. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Fixed busy loop when error/hup epoll events occur.
  8696. * src/AbstractCommand.cc
  8697. * src/PeerAbstractCommand.cc
  8698. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Added --bt-request-peer-speed-limit option, which was a constant
  8700. SLOW_SPEED_THRESHOLD.
  8701. * src/ActivePeerConnectionCommand.cc
  8702. * src/ActivePeerConnectionCommand.h
  8703. * src/BtConstants.h
  8704. * src/HelpItemFactory.cc
  8705. * src/OptionHandlerFactory.cc
  8706. * src/PeerReceiveHandshakeCommand.cc
  8707. * src/option_processing.cc
  8708. * src/prefs.cc
  8709. * src/prefs.h
  8710. * src/usage_text.h
  8711. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Removed repeated call of getTopDirPath(). Instead, call it once and
  8713. cache the result.
  8714. * src/MultiDiskAdaptor.cc
  8715. * src/MultiDiskAdaptor.h
  8716. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8717. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Fixed compile error on debian etch.
  8719. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8720. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8721. it is undefined.
  8722. * src/Util.cc (ULLONG_MAX)
  8723. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Added epoll support. Use epoll if it is available. If not, use select.
  8725. When async dns is enabled in compile time, epoll support is enabled
  8726. only when aria2 is built with c-ares. This condition statement is
  8727. defined in a2io.h.
  8728. Currently aria2 supports both c-ares and ares, but ares is maintained
  8729. for quite a while and debian already has c-ares package, ares support
  8730. will be dropped in the future version.
  8731. * configure.ac
  8732. * src/AbstractCommand.cc
  8733. * src/AsyncNameResolver.cc
  8734. * src/AsyncNameResolver.h
  8735. * src/Command.cc
  8736. * src/Command.h
  8737. * src/DownloadEngine.cc
  8738. * src/DownloadEngine.h
  8739. * src/PeerAbstractCommand.cc
  8740. * src/SocketCore.cc
  8741. * src/SocketCore.h
  8742. * src/a2io.h
  8743. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8745. directive.
  8746. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Do not do write operation to /dev/null file.
  8748. * src/LogFactory.cc
  8749. * src/SimpleLogger.cc
  8750. Replaced vasprintf with vsnprintf
  8751. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8752. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. * src/BtRequestMessage.cc
  8754. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8755. for segmentation fault caused by previous commit.
  8756. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Reduced the usage of gettimeofday().
  8758. * src/DefaultBtMessageDispatcher.cc
  8759. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8760. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8761. * src/RequestSlot.cc
  8762. * src/RequestSlot.h
  8763. (RequestSlot::isTimeout)
  8764. Made RequestSlot have a reference to Piece object to avoid find
  8765. Piece repeatedly.
  8766. * src/DefaultBtMessageDispatcher.cc
  8767. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8768. * src/RequestSlot.cc
  8769. * src/RequestSlot.h
  8770. (RequestSlot::getPiece)
  8771. * test/DefaultBtMessageDispatcherTest.cc
  8772. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. * src/TimeA2.cc
  8774. * src/TimeA2.h
  8775. (Time::difference): New function.
  8776. (Time::elapsed): Done optimization.
  8777. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8779. directive.
  8780. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. * src/option_processing.cc: Added missing `defined' keyword to #if
  8782. directive.
  8783. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Bump up version number to 0.13.2+1
  8785. * src/configure.ac
  8786. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Refactored broken outstanding piece handling.
  8788. * src/DefaultPieceStorage.cc
  8789. * src/DefaultPieceStorage.h
  8790. * src/Piece.cc
  8791. * src/Piece.h
  8792. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8794. name collision of static variable and predefined macro.
  8795. * src/BtContext.cc
  8796. * src/BtContext.h
  8797. * src/CookieBoxFactory.cc
  8798. * src/CookieBoxFactory.h
  8799. * src/CookieParser.cc
  8800. * src/CookieParser.h
  8801. * src/DefaultBtContext.cc
  8802. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. * src/RequestGroup.cc
  8804. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8805. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. * Release 0.13.2
  8807. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8809. * po/fr.po
  8810. * po/ja.po
  8811. * po/aria2c.pot
  8812. * po/*.po
  8813. * po/*.gmo
  8814. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Bump up version number to 0.13.2
  8816. * src/configure.ac
  8817. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Refactord.
  8819. * src/RequestGroupMan.cc
  8820. (removeStoppedGroup)
  8821. (fillRequestGroupFromReserver)
  8822. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Fixed compile error on Ubuntu.
  8824. * src/BtPieceMessage.cc
  8825. * src/MessageDigestHelper.cc
  8826. * src/Util.cc
  8827. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Fixed compile error when configured with --disable-bittorrent
  8829. * test/DownloadHandlerFactoryTest.cc
  8830. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Done make update-po
  8832. * po/aria2c.pot
  8833. * po/*.po
  8834. * po/*.gmo
  8835. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Bump up version number to 0.13.2rc.
  8837. * src/configure.ac
  8838. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Made option name bold. Updated SYNOPSIS to make it more readable.
  8840. * doc/aria2c.1.txt
  8841. * doc/aria2c.1
  8842. * doc/aria2c.1.html
  8843. * src/version_usage.cc
  8844. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Refactored. Use std::string instead of size and char*.
  8846. * Data.cc
  8847. * Data.h
  8848. * test/Data.cc
  8849. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Added trimSelf(). Rewritten trim() to use trimSelf().
  8851. * Util.cc
  8852. * Util.h
  8853. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8855. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Fixed compile error when configured with --disable-metalink.
  8857. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8858. * test/FeatureConfigTest.cc
  8859. * test/DownloadHandlerFactoryTest.cc
  8860. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Fixed compile error when configured with --without-gnutls
  8862. --without-openssl
  8863. * src/main.cc
  8864. * test/DefaultBtProgressInfoFileTest.cc
  8865. * test/SegmentManTest.cc
  8866. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Fixed compile error with OpenSSL.
  8868. * src/IteratableChunkChecksumValidator.cc
  8869. * src/LibsslDHKeyExchange.h
  8870. * src/MessageDigestHelper.cc
  8871. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Revert the default value of --max-concurrent-downloads to 5.
  8873. Revert the default value of --metalink-servers to 5.
  8874. Man pages was also updated.
  8875. * src/option_processing.cc
  8876. * doc/aria2c.1.txt
  8877. * doc/aria2c.1.html
  8878. * doc/aria2c.1
  8879. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. Returns const reference:
  8881. DownloadContext::getPieceHash, DownloadContext::getName,
  8882. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8883. BtContext::getInfoHashAsString,
  8884. * src/BtContext.h
  8885. * src/DefaultBtContext.cc
  8886. * src/DefaultBtContext.h
  8887. * src/DownloadContext.h
  8888. * src/SingleFileDownloadContext.h
  8889. * test/MockBtContext.h
  8890. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. * src/RequestGroup.h (getDir): Removed.
  8892. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Returns const reference. The internal urlencode function was optimized
  8894. a little bit.
  8895. * src/Request.cc
  8896. * src/Request.h
  8897. * src/HttpRequest.cc
  8898. * src/HttpRequest.h
  8899. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Defined option name and possible values as std::string to reduce
  8901. temporary string object creation in runtime.
  8902. * src/HelpItemFactory.cc
  8903. * src/LogFactory.cc
  8904. * src/Option.cc
  8905. * src/OptionHandlerFactory.cc
  8906. * src/option_processing.cc
  8907. * src/prefs.cc
  8908. * src/prefs.h
  8909. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Return const reference.
  8911. * src/DownloadHandlerConstants.cc
  8912. * src/DownloadHandlerConstants.h
  8913. (getMetalinkExtensions)
  8914. (getMetalinkContentTypes)
  8915. (getBtExtensions)
  8916. (getBtContentTypes)
  8917. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. * src/HttpHeader.cc (get): Rewritten.
  8919. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Make HttpHeader::getFirst(...) return const reference.
  8921. * src/HttpHeader.cc
  8922. * src/HttpHeader.h
  8923. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8924. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8925. it with V_TRUE.
  8926. * src/DefaultPieceStorage.cc
  8927. * src/DownloadCommand.cc
  8928. * src/FtpNegotiationCommand.cc
  8929. * src/HttpRequest.cc
  8930. * src/InitiateConnectionCommand.cc
  8931. * src/RequestGroup.cc
  8932. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Made Option::get(...) return const reference of std::string.
  8934. * src/Option.cc
  8935. * src/Option.h
  8936. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Replaced std:copy with insert.
  8938. * src/DefaultBtMessageDispatcher.cc
  8939. * src/DefaultPieceStorage.cc
  8940. * src/DownloadEngineFactory.cc
  8941. * src/RequestGroup.cc
  8942. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Included SocketCore.h to fix compiler warning.
  8944. * src/InitiateConnectionCommand.cc
  8945. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Put piece selection strategy algorithm to RarestPieceSelector class,
  8947. Added a switch to choose whether randomized selection so that unit
  8948. tests emit same results in, possibly, win32.
  8949. * src/DefaultPieceStorage.cc
  8950. * src/DefaultPieceStorage.h
  8951. * src/RarestPieceSelector.cc
  8952. * src/RarestPieceSelector.h
  8953. * test/DefaultPieceStorageTest.cc
  8954. * test/RarestPieceSelectorTest.cc
  8955. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Don't pool connection if HTTP proxy is enabled.
  8957. * src/FtpFinishDownloadCommand.cc
  8958. * src/FtpNegotiationCommand.cc
  8959. * src/HttpSkipResponseCommand.cc
  8960. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8962. * src/AbstractCommand.cc
  8963. * src/AbstractCommand.h
  8964. * src/ActivePeerConnectionCommand.cc
  8965. * src/FtpInitiateConnectionCommand.cc
  8966. * src/HttpInitiateConnectionCommand.cc
  8967. * src/InitiateConnectionCommandFactory.cc
  8968. * src/PeerAbstractCommand.cc
  8969. * src/PeerAbstractCommand.h
  8970. * src/PeerInitiateConnectionCommand.cc
  8971. * src/TrackerWatcherCommand.cc
  8972. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Sort RequestSlot in ascending order and manipulate them using
  8974. lower_bound.
  8975. * src/DefaultBtMessageDispatcher.cc
  8976. * src/DefaultBtMessageDispatcher.h
  8977. (getMessageQueue): Added const qualifier.
  8978. (getRequestSlots): Added const qualifier.
  8979. (sendMessages): Use empty() instead of size().
  8980. (doCancelSendingPieceAction): Use HandleEvent object.
  8981. (doAbortOutstandingRequestAction): Rewritten.
  8982. (doChokedAction): Rewritten.
  8983. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8984. (isOutstandingRequest): Rewritten.
  8985. (getOutstandingRequest): Rewritten.
  8986. (removeOutstandingRequest): Rewritten.
  8987. (addOutstandingRequest): Rewritten.
  8988. * src/RequestSlot.cc
  8989. * src/RequestSlot.h
  8990. (operator=): Rewritten.
  8991. (operator!=): New function.
  8992. (operator<): New function.
  8993. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. * src/DefaultBtRequestFactory.cc
  8995. (doChokedAction): Rewritten.
  8996. (removeCompletedPiece): Rewritten.
  8997. (removeTargetPiece): Rewritten.
  8998. (createRequestMessages): Added the debug log.
  8999. (createRequestMessagesOnEndGame: Added the debug log.
  9000. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Added the debug log message.
  9002. * src/BtPieceMessage.cc (doReceivedAction)
  9003. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9005. used lower_bound to process them rather than linear search.
  9006. * src/DHTPeerAnnounceStorage.cc
  9007. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9009. peer has at least one completed piece.
  9010. * src/Peer.cc
  9011. * src/Peer.h
  9012. * src/PeerInteractionCommand.cc
  9013. * src/PeerSessionResource.cc
  9014. * src/PeerSessionResource.h
  9015. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Removed unnecessary sorting
  9017. * src/DefaultPieceStorage (DefaultPieceStorage)
  9018. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Rewritten the portion of the code that mangaes allowed fast indexes.
  9020. * src/PeerSessionResource.cc
  9021. * src/PeerSessionResource.h
  9022. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Removed the invalid string including '\r' from ru.po and
  9024. did make update-po.
  9025. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Added --log-level and --summary-interval to man page.
  9027. * doc/aria2c.1.txt
  9028. * doc/aria2c.1.html
  9029. * doc/aria2c.1
  9030. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Added --log-level option to specify log level. Log messages under
  9032. the specified level are not output. Default value is `debug'.
  9033. * src/HelpItemFactory.cc
  9034. * src/LogFactory.cc
  9035. * src/LogFactory.h
  9036. * src/Logger.h
  9037. * src/OptionHandlerFactory.cc
  9038. * src/SimpleLogger.cc
  9039. * src/SimpleLogger.h
  9040. * src/main.cc
  9041. * src/option_processing.cc
  9042. * src/prefs.h
  9043. * src/usage_text.h
  9044. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Print download progress summary of all parallel downloads in specified
  9046. interval, default 60 secs. While aria2 could download several files
  9047. in parallel (see -j option), it displayed just first download progress,
  9048. and the other downloads are hidden from the users. This new feature
  9049. prints all downloads currently in-progress to the console so that you
  9050. can check the status of all downloads. The interval can be adjusted
  9051. by --summary-interval option.
  9052. The progress readout is now cut so that all fits in the one line of
  9053. console.
  9054. * src/ConsoleStatCalc.cc
  9055. * src/ConsoleStatCalc.h
  9056. * src/HelpItemFactory.cc
  9057. * src/OptionHandlerFactory.cc
  9058. * src/RequestGroupMan.cc
  9059. * src/RequestGroupMan.h
  9060. * src/main.cc
  9061. * src/option_processing.cc
  9062. * src/prefs.h
  9063. * src/usage_text.h
  9064. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9066. * src/DownloadEngine.cc (DownloadEngine)
  9067. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9069. defined.
  9070. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9071. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Use erase+lower_bound+insert instead of sort.
  9073. * src/DefaultPieceStorage.cc (addPieceStats)
  9074. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9076. * src/A2STR.cc
  9077. * src/A2STR.h
  9078. * src/OptionParser.cc (parse)
  9079. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Defined fake filename `[tracker.announce]' as static const std::string.
  9081. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9082. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Defined default filename `index.html' as static const std::string
  9084. * src/SingleFileDownloadContext.cc
  9085. * src/SingleFileDownloadContext.h
  9086. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Defined "[MEMORY]" as static const std::string.
  9088. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9089. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Defined control file's version number as static const std::string.
  9091. * src/DefaultBtProgressInfoFile.cc
  9092. * src/DefaultBtProgressInfoFile.h
  9093. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Use Request::METHOD_GET
  9095. * src/RequestGroup.cc (createNextCommandWithAdj)
  9096. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Defined "OK", "ERR", "INPR" as static const std::string
  9098. * src/RequestGroupMan.cc (showDownloadResults)
  9099. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Defined default client used in extended handshake as static const
  9101. std::string
  9102. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9103. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9105. * src/HttpConnection.cc (eraseConfidentialInfo)
  9106. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Defined default ftp user and password as static const std::string
  9108. * src/AuthConfigFactory.cc
  9109. * src/AuthConfigFactory.h
  9110. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Defined strings used in netrc as static const std::string
  9112. * src/Netrc.cc
  9113. * src/Netrc.h
  9114. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Defined HTTP status as static const std::string
  9116. * src/AbstractProxyResponseCommand.cc
  9117. * src/HttpHeader.cc
  9118. * src/HttpHeader.h
  9119. * src/HttpResponse.cc
  9120. * src/HttpResponseCommand.cc
  9121. * src/HttpSkipResponseCommand.cc
  9122. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. Defined "\r\n", "A", "I" as static const std::string
  9124. * src/A2STR.cc
  9125. * src/A2STR.h
  9126. * src/FtpConnection.cc
  9127. * src/FtpConnection.h
  9128. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Added COLON_C(".") and used it in Request::parseUrl()
  9130. * src/A2STR.cc
  9131. * src/A2STR.h
  9132. * src/Request.cc (parseUrl)
  9133. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Changed the type of padName from `const std::string&' to `const char*'.
  9135. * src/MSEHandshake.cc (verifyPadLength)
  9136. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Defined "sha1" as static const std::string.
  9138. * src/MetalinkParserController.cc
  9139. * src/MetalinkParserController.h
  9140. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Defined message digest algorithm name as static const std::string
  9142. * src/DHTTokenTracker.cc
  9143. * src/DHTUtil.cc
  9144. * src/DefaultBtContext.cc
  9145. * src/MSEHandshake.cc
  9146. * src/MessageDigestHelper.cc
  9147. * src/Peer.cc
  9148. * src/messageDigest.cc
  9149. * src/messageDigest.h
  9150. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Made string literals used in SAX parser static const std::string.
  9152. * src/FileMetalinkParserState.cc
  9153. * src/FileMetalinkParserState.h
  9154. * src/FilesMetalinkParserState.cc
  9155. * src/FilesMetalinkParserState.h
  9156. * src/InitialMetalinkParserState.cc
  9157. * src/InitialMetalinkParserState.h
  9158. * src/MetalinkMetalinkParserState.cc
  9159. * src/MetalinkMetalinkParserState.h
  9160. * src/PiecesMetalinkParserState.cc
  9161. * src/PiecesMetalinkParserState.h
  9162. * src/ResourcesMetalinkParserState.cc
  9163. * src/ResourcesMetalinkParserState.h
  9164. * src/VerificationMetalinkParserState.cc
  9165. * src/VerificationMetalinkParserState.h
  9166. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9168. * src/A2STR.cc
  9169. * src/A2STR.h
  9170. * src/File.cc
  9171. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9172. Defined static const std::string IP("ip"), PORT("port") and use them
  9173. instead of string literals.
  9174. * src/DefaultPeerListProcessor.cc
  9175. * src/DefaultPeerListProcessor.h
  9176. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9177. Made string literals for torrent file processing static const
  9178. std::string.
  9179. * src/BtContext.cc
  9180. * src/BtContext.h
  9181. * src/DefaultBtContext.cc
  9182. * src/DefaultBtContext.h
  9183. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Made string literal for tracker response static const std::string
  9185. * src/BtAnnounce.cc
  9186. * src/BtAnnounce.h
  9187. * src/DefaultBtAnnounce.cc
  9188. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Use DHTMessage::T instead of "t".
  9190. * src/DHTMessageTracker.cc (messageArrived)
  9191. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Made keyName static const. Made trimmed charset static const
  9193. std::string.
  9194. * src/Util.cc (getContentDispositionFilename)
  9195. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. Made USER_AGENT const. Made "/" static const std::string.
  9197. * src/A2STR.cc
  9198. * src/A2STR.h
  9199. * src/HttpRequest.cc
  9200. * src/HttpRequest.h
  9201. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Made string listeral to static const std::string:
  9203. "Content-Range", "Content-Length"
  9204. * src/HttpHeader.cc
  9205. * src/HttpHeader.h
  9206. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Made string listeral to static const std::string.
  9208. * src/HttpConnection.cc
  9209. * src/HttpHeader.cc
  9210. * src/HttpHeader.h
  9211. * src/HttpResponse.cc
  9212. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Made string listeral to static const std::string.
  9214. * src/A2STR.cc
  9215. * src/A2STR.h
  9216. * src/SimpleLogger.cc
  9217. * src/SimpleLogger.h
  9218. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Made string literal to static const std::string.
  9220. Rewritten CookieParser::setField.
  9221. * src/A2STR.cc
  9222. * src/A2STR.h
  9223. * src/CookieBoxFactory.cc
  9224. * src/CookieBoxFactory.h
  9225. * src/CookieParser.cc
  9226. * src/CookieParser.h
  9227. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Made string literal to static const std::string
  9229. * src/DHTAbstractMessage.cc
  9230. * src/DHTAnnouncePeerMessage.cc
  9231. * src/DHTAnnouncePeerMessage.h
  9232. * src/DHTAnnouncePeerReplyMessage.cc
  9233. * src/DHTAnnouncePeerReplyMessage.h
  9234. * src/DHTFindNodeMessage.cc
  9235. * src/DHTFindNodeMessage.h
  9236. * src/DHTFindNodeReplyMessage.cc
  9237. * src/DHTFindNodeReplyMessage.h
  9238. * src/DHTGetPeersMessage.cc
  9239. * src/DHTGetPeersMessage.h
  9240. * src/DHTGetPeersReplyMessage.cc
  9241. * src/DHTGetPeersReplyMessage.h
  9242. * src/DHTMessage.cc
  9243. * src/DHTMessage.h
  9244. * src/DHTMessageFactoryImpl.cc
  9245. * src/DHTMessageReceiver.cc
  9246. * src/DHTPingMessage.cc
  9247. * src/DHTPingMessage.h
  9248. * src/DHTPingReplyMessage.cc
  9249. * src/DHTPingReplyMessage.h
  9250. * src/DHTQueryMessage.cc
  9251. * src/DHTQueryMessage.h
  9252. * src/DHTResponseMessage.cc
  9253. * src/DHTResponseMessage.h
  9254. * src/DHTUnknownMessage.cc
  9255. * src/DHTUnknownMessage.h
  9256. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Made string literal to static const std::string
  9258. * src/BtChokeMessage.cc (toString)
  9259. * src/BtHaveAllMessage.cc (toString)
  9260. * src/BtHaveNoneMessage.cc (toString)
  9261. * src/BtInterestedMessage.cc (toString)
  9262. * src/BtNotInterestedMessage.cc (toString)
  9263. * src/BtUnchokeMessage.cc (toString)
  9264. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. Replaced "" with static const variable A2STR::NIL.
  9266. Replaced string comparison against "" with std::string::empty().
  9267. Added PROTO_* to Request class and use them as a protocol string
  9268. constant.
  9269. Made "started", "stopped", "completed" static const variable in
  9270. AnnounceList class.
  9271. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Updated translations. Great thanks to translators.
  9273. * po/ca.po
  9274. * po/de.po
  9275. * po/fr.po
  9276. * po/it.po
  9277. * po/ja.po
  9278. * po/ru.po
  9279. * po/zh_CN.po
  9280. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Updated man page; categorized options and fixed typo.
  9282. * doc/aria2c.1.txt
  9283. * doc/aria2c.1.html
  9284. * doc/aria2c.1
  9285. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Removed const ref
  9287. * src/MetalinkEntry.cc (AddProtocolPreference)
  9288. * src/RequestGroup.cc (FindServerHostByHostname)
  9289. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Rewritten Accept-Features handling.
  9291. * src/HttpRequestCommand.cc (createHttpRequest)
  9292. * src/a2functional.h
  9293. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Changed method signature:
  9295. DHTAbstractNodeLookupTask::toEntries
  9296. * src/DHTAbstractNodeLookupTask.cc
  9297. * src/DHTAbstractNodeLookupTask.h
  9298. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Changed method signature:
  9300. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9301. * src/BtContext.h
  9302. * src/DefaultBtContext.cc
  9303. * src/DefaultBtContext.h
  9304. * src/DefaultBtInteractive.cc
  9305. * test/DefaultBtContextTest.cc
  9306. * test/MockBtContext.h
  9307. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Changed method signature:
  9309. MultiFileAllocationIterator::makeDiskWriterEntries
  9310. * src/MultiFileAllocationIterator.cc
  9311. * src/MultiFileAllocationIterator.h
  9312. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. Changed method sinature:
  9314. MetalinkEntry::toFileEntry,
  9315. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9316. Metalinker::queryEntry
  9317. * src/Metalink2RequestGroup.cc
  9318. * src/MetalinkEntry.cc
  9319. * src/MetalinkEntry.h
  9320. * src/MetalinkHelper.cc
  9321. * src/MetalinkHelper.h
  9322. * src/Metalinker.cc
  9323. * src/Metalinker.h
  9324. * src/main.cc
  9325. * test/MetalinkHelperTest.cc
  9326. * test/MetalinkerTest.cc
  9327. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Changed method sinature:
  9329. RequestGroup::getURIs
  9330. * src/RequestGroup.cc
  9331. * src/RequestGroup.h
  9332. * test/Metalink2RequestGroupTest.cc
  9333. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Changed method signature:
  9335. PeerListProcessor::extractPeer
  9336. * src/CompactPeerListProcessor.cc
  9337. * src/CompactPeerListProcessor.h
  9338. * src/DefaultBtAnnounce.cc
  9339. * src/DefaultPeerListProcessor.cc
  9340. * src/DefaultPeerListProcessor.h
  9341. * src/DelegatingPeerListProcessor.cc
  9342. * src/DelegatingPeerListProcessor.h
  9343. * src/PeerListProcessor.h
  9344. * src/UTPexExtensionMessage.cc
  9345. * test/DefaultPeerListProcessorTest.cc
  9346. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Changed method signature:
  9348. BtRequestFactory::createRequestMessages,
  9349. BtRequestFactory::createRequestMessagesOnEndGame
  9350. * src/BtRequestFactory.h
  9351. * src/DefaultBtInteractive.cc
  9352. * src/DefaultBtRequestFactory.cc
  9353. * src/DefaultBtRequestFactory.h
  9354. * test/DefaultBtRequestFactoryTest.cc
  9355. * test/MockBtRequestFactory.h
  9356. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Changed method signature:
  9358. PieceStorage::getInFlightPieces
  9359. * src/DefaultBtProgressInfoFile.cc
  9360. * src/DefaultPieceStorage.cc
  9361. * src/DefaultPieceStorage.h
  9362. * src/PieceStorage.h
  9363. * src/UnknownLengthPieceStorage.cc
  9364. * src/UnknownLengthPieceStorage.h
  9365. * test/DefaultBtProgressInfoFileTest.cc
  9366. * test/MockPieceStorage.h
  9367. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Changed method signature:
  9369. PostDownloadHandler::getNextRequestGroups
  9370. Metalink2RequestGroup::generate
  9371. RequestGroup::postDownloadProcessing
  9372. * src/BtPostDownloadHandler.cc
  9373. * src/BtPostDownloadHandler.h
  9374. * src/Metalink2RequestGroup.cc
  9375. * src/Metalink2RequestGroup.h
  9376. * src/MetalinkPostDownloadHandler.cc
  9377. * src/MetalinkPostDownloadHandler.h
  9378. * src/PostDownloadHandler.h
  9379. * src/RequestGroup.cc
  9380. * src/RequestGroup.h
  9381. * src/RequestGroupMan.cc
  9382. * src/main.cc
  9383. * test/BtPostDownloadHandlerTest.cc
  9384. * test/Metalink2RequestGroupTest.cc
  9385. * test/MetalinkPostDownloadHandlerTest.cc
  9386. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Rewritten AccRequestGroup
  9388. * src/main.cc
  9389. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Rewritten.
  9391. * src/TaggedItem.cc (toTagString)
  9392. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Rewritten Accept-Features handling.
  9394. * src/HttpRequestCommand.cc (createHttpRequest)
  9395. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Rewritten accept types handling.
  9397. * HttpRequest.cc (createRequest)
  9398. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Rewritten
  9400. * src/FeatureConfig.cc (featureSummary)
  9401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Changed method signature:
  9403. PeerStorage::getActivePeers
  9404. * src/DHTPeerAnnounceEntry.cc
  9405. * src/DefaultPeerStorage.cc
  9406. * src/DefaultPeerStorage.h
  9407. * src/PeerStorage.h
  9408. * test/DefaultPeerStorageTest.cc
  9409. * test/MockPeerStorage.h
  9410. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. Changed method signature:
  9412. DHTPeerAnnounceStorage::getPeers,
  9413. DHTPeerAnnounceEntry::getPeers
  9414. * src/DHTGetPeersMessage.cc
  9415. * src/DHTPeerAnnounceEntry.cc
  9416. * src/DHTPeerAnnounceEntry.h
  9417. * src/DHTPeerAnnounceStorage.cc
  9418. * src/DHTPeerAnnounceStorage.h
  9419. * test/DHTAnnouncePeerMessageTest.cc
  9420. * test/DHTPeerAnnounceEntryTest.cc
  9421. * test/DHTPeerAnnounceStorageTest.cc
  9422. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Changed method signature:
  9424. NameResolver::resolve
  9425. * src/DHTEntryPointNameResolveCommand.cc
  9426. * src/InitiateConnectionCommand.cc
  9427. * src/NameResolver.cc
  9428. * src/NameResolver.h
  9429. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Changed method signature:
  9431. PieceStorage::getAdvertisedPieceIndexes
  9432. * src/DefaultBtInteractive.cc
  9433. * src/DefaultPieceStorage.cc
  9434. * src/DefaultPieceStorage.h
  9435. * src/PieceStorage.h
  9436. * src/UnknownLengthPieceStorage.h
  9437. * test/MockPieceStorage.h
  9438. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Changed method signature:
  9440. SegmentMan::getInFlightSegment
  9441. * src/AbstractCommand.cc
  9442. * src/SegmentMan.cc
  9443. * src/SegmentMan.h
  9444. * test/SegmentManTest.cc
  9445. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Changed method signature:
  9447. DHTAbstractNodeLookupTask::getNodesFromMessage
  9448. * src/DHTAbstractNodeLookupTask.cc
  9449. * src/DHTAbstractNodeLookupTask.h
  9450. * src/DHTNodeLookupTask.cc
  9451. * src/DHTNodeLookupTask.h
  9452. * src/DHTPeerLookupTask.cc
  9453. * src/DHTPeerLookupTask.h
  9454. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9456. * src/AbstractCommand.cc
  9457. * src/BtCheckIntegrityEntry.cc
  9458. * src/BtCheckIntegrityEntry.h
  9459. * src/BtFileAllocationEntry.cc
  9460. * src/BtFileAllocationEntry.h
  9461. * src/BtSetup.cc
  9462. * src/BtSetup.h
  9463. * src/CheckIntegrityCommand.cc
  9464. * src/CheckIntegrityEntry.h
  9465. * src/ChecksumCheckIntegrityEntry.cc
  9466. * src/ChecksumCheckIntegrityEntry.h
  9467. * src/DHTSetup.cc
  9468. * src/DHTSetup.h
  9469. * src/DownloadEngine.cc
  9470. * src/FileAllocationCommand.cc
  9471. * src/FileAllocationEntry.h
  9472. * src/RequestGroup.cc
  9473. * src/RequestGroup.h
  9474. * src/RequestGroupMan.cc
  9475. * src/RequestGroupMan.h
  9476. * src/StreamCheckIntegrityEntry.cc
  9477. * src/StreamCheckIntegrityEntry.h
  9478. * src/StreamFileAllocationEntry.cc
  9479. * src/StreamFileAllocationEntry.h
  9480. * src/TrackerWatcherCommand.cc
  9481. * src/a2functional.h
  9482. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Changed method signature:
  9484. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9485. DHTBucket::getGoodNodes,
  9486. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9487. * src/BNode.cc
  9488. * src/BNode.h
  9489. * src/DHTAbstractNodeLookupTask.cc
  9490. * src/DHTAutoSaveCommand.cc
  9491. * src/DHTBucket.cc
  9492. * src/DHTBucket.h
  9493. * src/DHTBucketRefreshTask.cc
  9494. * src/DHTFindNodeMessage.cc
  9495. * src/DHTGetPeersMessage.cc
  9496. * src/DHTRoutingTable.cc
  9497. * src/DHTRoutingTable.h
  9498. * test/BNodeTest.cc
  9499. * test/DHTBucketTest.cc
  9500. * test/DHTRoutingTableTest.cc
  9501. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. In piece selection functions, Pass std::deque<...> by reference rather
  9503. than returning it.
  9504. * src/BitfieldMan.cc
  9505. * src/BitfieldMan.h
  9506. * src/DefaultBtRequestFactory.cc
  9507. * src/DefaultPieceStorage.cc
  9508. * src/Piece.cc
  9509. * src/Piece.h
  9510. * test/BitfieldManTest.cc
  9511. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Implemented rarest piece first piece selection strategy.
  9513. * src/AbstractBtMessage.cc
  9514. * src/AbstractBtMessage.h
  9515. * src/BitfieldMan.cc
  9516. * src/BitfieldMan.h
  9517. * src/BtBitfieldMessage.cc
  9518. * src/BtHaveAllMessage.cc
  9519. * src/BtHaveMessage.cc
  9520. * src/DefaultPieceStorage.cc
  9521. * src/DefaultPieceStorage.h
  9522. * src/PeerInteractionCommand.cc
  9523. * src/PieceStorage.h
  9524. * src/UnknownLengthPieceStorage.h
  9525. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Rewritten readData and writeData.
  9527. * src/MultiDiskAdaptor.cc
  9528. * src/MultiDiskAdaptor.h
  9529. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Move \n out of the message "Usage: ...".
  9531. * src/version_usage.cc
  9532. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Bump up version number to 0.13.2b.
  9534. * configure.ac
  9535. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Added const qualifier to argument Exception& e.
  9537. * src/Logger.h
  9538. * src/SimpleLogger.cc
  9539. * src/SimpleLogger.h
  9540. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Pool connection when CWD, SIZE command fails.
  9542. * src/FtpNegotiationCommand.cc
  9543. * src/FtpNegotiationCommand.h
  9544. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9546. * src/HttpResponseCommand.cc
  9547. * src/HttpSkipResponseCommand.cc
  9548. * src/HttpSkipResponseCommand.h
  9549. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Pool connection when a server returns 4xx, 5xx responses.
  9551. * src/HttpNullDownloadCommand.cc
  9552. * src/HttpNullDownloadCommand.h
  9553. * src/HttpResponse.cc
  9554. * src/HttpResponse.h
  9555. * src/HttpResponseCommand.cc
  9556. * src/HttpResponseCommand.h
  9557. * test/HttpResponseTest.cc
  9558. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Print usage when no URL is specifed or bad command-line option is
  9560. specified.
  9561. * src/HelpItemFactory.cc
  9562. * src/help_tags.h
  9563. * src/option_processing.cc
  9564. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Removed duplicate log message.
  9566. * src/AbstractCommand.cc (asyncResolveHostname)
  9567. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9569. Changed -j option's default value from 5 to 1.
  9570. Added new examples using protocol auto detection feature.
  9571. Removed -T, -M usage where it can be omitted.
  9572. * doc/aria2c.1.txt
  9573. * doc/aria2c.1.html
  9574. * doc/aria2c.1.txt
  9575. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Updated command-line usage text, so that it tells users that they
  9577. can specify any number of torrent files and metalink files in
  9578. command-line.
  9579. * src/version_usage.cc
  9580. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. Changed the default value of -j option to 1.
  9582. * src/HelpItemFactory.cc
  9583. * src/option_processing.cc
  9584. * src/usage_text.h
  9585. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Added the ability to reuse connection in FTP and it is enabled by
  9587. default. It can be disabled by --ftp-reuse-connection=false option.
  9588. * src/Command.cc
  9589. * src/DownloadCommand.cc
  9590. * src/FtpDownloadCommand.cc
  9591. * src/FtpDownloadCommand.h
  9592. * src/FtpFinishDownloadCommand.cc
  9593. * src/FtpFinishDownloadCommand.h
  9594. * src/FtpInitiateConnectionCommand.cc
  9595. * src/FtpNegotiationCommand.cc
  9596. * src/FtpNegotiationCommand.h
  9597. * src/HelpItemFactory.cc
  9598. * src/Makefile.am
  9599. * src/Makefile.in
  9600. * src/OptionHandlerFactory.cc
  9601. * src/option_processing.cc
  9602. * src/prefs.h
  9603. * src/usage_text.h
  9604. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Call Command::transitStatus() before calling Command::execute(),
  9606. so that the status change made in execute() is not cleared.
  9607. * src/DownloadEngine.cc
  9608. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Removed forward declaration of SocketCore class.
  9610. * src/HttpDownloadCommand.h
  9611. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9613. in InitiateConnectionCommandFactory. They should be set only when
  9614. the protocol is HTTP or HTTPS.
  9615. * src/InitiateConnectionCommandFactory.cc
  9616. * src/RequestGroup.cc
  9617. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Fixed infinite loop in checksum checking.
  9619. * src/IteratableChecksumValidator.cc
  9620. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Set _supportsPersistentConnection to true by default.
  9622. * src/Request.cc
  9623. * src/RequestGroup.cc
  9624. * test/HttpRequestTest.cc
  9625. * test/RequestTest.cc
  9626. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Added timeout to socket pool. The default timeout is 15 seconds,
  9628. which is the same value Apache uses.
  9629. * src/DownloadEngine.cc
  9630. * src/DownloadEngine.h
  9631. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Fixed misuse of multimap::find()
  9633. * src/HttpHeader.cc
  9634. * test/HttpHeaderTest.cc
  9635. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9637. option.
  9638. The asynchronous DNS is not capable of IPv6 yet.
  9639. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9640. least for HTTP download.
  9641. * src/AbstractCommand.cc
  9642. * src/AbstractCommand.h
  9643. * src/AsyncNameResolver.cc
  9644. * src/AsyncNameResolver.h
  9645. * src/DHTEntryPointNameResolveCommand.cc
  9646. * src/DHTEntryPointNameResolveCommand.h
  9647. * src/DownloadEngine.cc
  9648. * src/DownloadEngine.h
  9649. * src/FtpInitiateConnectionCommand.cc
  9650. * src/FtpInitiateConnectionCommand.h
  9651. * src/HelpItemFactory.cc
  9652. * src/HttpInitiateConnectionCommand.cc
  9653. * src/HttpInitiateConnectionCommand.h
  9654. * src/InitiateConnectionCommand.cc
  9655. * src/InitiateConnectionCommand.h
  9656. * src/Makefile.am
  9657. * src/Makefile.in
  9658. * src/NameResolver.cc
  9659. * src/NameResolver.h
  9660. * src/OptionHandlerFactory.cc
  9661. * src/SocketCore.cc
  9662. * src/SocketCore.h
  9663. * src/Util.cc
  9664. * src/Util.h
  9665. * src/option_processing.cc
  9666. * src/prefs.h
  9667. * src/usage_text.h
  9668. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Updated man page: --quiet, --header were added.
  9670. --metalink-servers and --enable-http-keep-alive option were updated.
  9671. * doc/aria2c.1
  9672. * doc/aria2c.1.html
  9673. * doc/aria2c.1.txt
  9674. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Enable HTTP keep-alive by default.
  9676. * src/HelpItemFactory.cc
  9677. * src/option_processing.cc
  9678. * src/usage_text.h
  9679. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Disable http keep-alive if the remote server is not HTTP/1.1.
  9681. * src/HttpConnection.cc
  9682. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Receive content body of 302 response so that the connection can be
  9684. reused later when http keep-alive is enabled.
  9685. * src/HttpNullDownloadCommand.cc
  9686. * src/HttpNullDownloadCommand.h
  9687. * src/HttpResponseCommand.cc
  9688. * src/HttpResponseCommand.h
  9689. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. const SharedHandle<Request> -> const SharedHandle<Request>&
  9691. * src/FtpDowndloadCommand.cc
  9692. * src/FtpDowndloadCommand.h
  9693. * src/HttpDownloadCommand.cc
  9694. * src/HttpDownloadCommand.h
  9695. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Fixed the bug that the control file(.aria2 file) is not renamed
  9697. according to tryAutoFileRenaming().
  9698. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9699. its control file exist, use them and continue download.
  9700. The old implementation didn't take into account of control file's
  9701. existence, so basically you couldn't continue download of renamed file.
  9702. * src/BtProgressInfoFile.h
  9703. * src/DefaultBtProgressInfoFile.cc
  9704. * src/DefaultBtProgressInfoFile.h
  9705. * src/NullProgressInfoFile.h
  9706. * src/RequestGroup.cc
  9707. * test/DefaultBtProgressInfoFileTest.cc
  9708. * test/MockBtProgressInfoFile.h
  9709. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9710. Change the default value of --metalink-servers option from `5' to `1'.
  9711. * src/HelpItemFactory.cc
  9712. * src/option_processing.cc
  9713. * src/usage_text.h
  9714. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Reimplemented transparent metalink using Accept request header.
  9716. * src/HttpRequest.cc
  9717. * src/HttpRequest.h
  9718. * src/HttpRequestCommand.cc
  9719. * src/Metalink2RequestGroup.cc
  9720. * src/RequestGroup.cc
  9721. * src/RequestGroup.h
  9722. * test/HttpRequestTest.cc
  9723. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Bump up version number to 0.13.2a
  9725. * configure.ac
  9726. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Updated configure.ac using the result of autoscan.
  9728. * configure.ac
  9729. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Fixed compilation error without gcrypt/openssl.
  9731. * src/DownloadCommand.cc
  9732. * src/DownloadCommand.h
  9733. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9734. Reorganized version information so that it can be displayed in a
  9735. standard terminal screen without scrolling.
  9736. Removed http, ftp from Configuration section, because they are always
  9737. enabled.
  9738. * src/FeatureConfig.cc
  9739. * src/FeatureConfig.h
  9740. * src/main.cc
  9741. * src/messageDigest.cc
  9742. * src/messageDigest.h
  9743. * src/version_usage.cc
  9744. * test/FeatureConfigTest.cc
  9745. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Masked user ID in log.
  9747. * src/FtpConnection.cc (sendUser)
  9748. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Removed query part from filename in HTTP download. The query part means
  9750. the substring after "?" in URL. Firefox seems do the same thing.
  9751. A query part is sometimes very long and not suitable to filename,
  9752. so I think it is better to remove it from filename.
  9753. * src/HttpRequest.cc
  9754. * src/HttpRequest.h
  9755. * src/Request.cc
  9756. * src/Request.h
  9757. * test/HttpRequestTest.cc
  9758. * test/RequestTest.cc
  9759. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Rewritten Exception class. Throw exception object, not its pointer and
  9761. catch by reference, so that remove problematic delete operator for
  9762. catched exception.
  9763. * src/Exception.cc
  9764. * src/Exception.h
  9765. * test/ExceptionTest.cc
  9766. * src/*: All files throwing/catching exception.
  9767. * test/*: All files throwing/catching exception.
  9768. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Now auto protocol detection is enabled without -Z option.
  9770. But there is a important difference between with/without -Z optoin.
  9771. For example, if you type:
  9772. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9773. then, aria2 interprets there are 3 request groups:
  9774. (1) http://host/file, http://mirror/file <-- multi-source download
  9775. (2) file1.torrent
  9776. (3) file2.metalink
  9777. On the other hand, if you invoke above command with -Z option, it is
  9778. interpreted as 4 request groups:
  9779. (1) http://host/file
  9780. (2) file1.torrent
  9781. (3) file2.metalink
  9782. (4) http://mirror/file
  9783. I think usually user don't mix multi-source URLs and torrent files, so
  9784. there is no big problem here.
  9785. * src/main.cc
  9786. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Fixed the bug that causes segmentaion fault when reading XML containing
  9788. unescapsed character like '&'.
  9789. Also a modification was made which avoids adding unnecessary
  9790. characters stack and appending unused string.
  9791. * src/ExpatMetalinkProcessor.cc
  9792. * src/FileMetalinkParserState.h
  9793. * src/FilesMetalinkParserState.h
  9794. * src/FinMetalinkParserState.h
  9795. * src/HashMetalinkParserState.h
  9796. * src/InitialMetalinkParserState.h
  9797. * src/LanguageMetalinkParserState.h
  9798. * src/MetalinkMetalinkParserState.h
  9799. * src/MetalinkParserState.h
  9800. * src/MetalinkParserStateMachine.cc
  9801. * src/MetalinkParserStateMachine.h
  9802. * src/OSMetalinkParserState.h
  9803. * src/PieceHashMetalinkParserState.h
  9804. * src/PiecesMetalinkParserState.h
  9805. * src/ResourcesMetalinkParserState.h
  9806. * src/SizeMetalinkParserState.h
  9807. * src/SkipTagMetalinkParserState.h
  9808. * src/URLMetalinkParserState.h
  9809. * src/VerificationMetalinkParserState.h
  9810. * src/VersionMetalinkParserState.h
  9811. * src/XML2SAXMetalinkProcessor.cc
  9812. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Added StringFormat class, which internally calls vasprintf.
  9814. operator<< is defined for this class, so it can be used with iostream
  9815. classes nicely. SimpleLogger and following functions are rewritten
  9816. using StringFormat class.
  9817. Besides, now Logger class's methods are non-const, many classes
  9818. that has a const Logger* as a member variable are modified to remove
  9819. const qualifier from the variable declaration.
  9820. * src/HelpItemFactory.cc
  9821. * src/Request.cc
  9822. * src/SimpleLogger.cc
  9823. * src/StringFormat.cc
  9824. * src/StringFormat.h
  9825. * src/Util.cc
  9826. * src/option_processing.cc
  9827. * src/version_usage.cc
  9828. * test/StringFormatTest.cc
  9829. * src/*.h: The classes that has const Logger* as a member variable.
  9830. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9832. failed. Also fixed memory link when exception is thrown there.
  9833. * src/main.cc (AccRequestGroup)
  9834. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Added build-in "Accept-Features" support. For now only "metalink" is
  9836. used in this header field.
  9837. This "metalink" value is removed from the list when connecting URLs
  9838. fed by metalink file to avoid loop in "transparent" metlaink.
  9839. * src/HttpRequest.cc
  9840. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9841. header is also held in this variable. Also renamed setUserHeaders as
  9842. addHeader and it was rewritten to add header not just to clear the old
  9843. value.
  9844. * src/HttpRequestCommand.cc
  9845. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9846. from "Accept-Features" list.
  9847. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9848. default.
  9849. * src/RequestGroup.h
  9850. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9851. * src/a2functional.h: Included <string> because Concat class depends on
  9852. it.
  9853. * test/HttpRequestTest.cc
  9854. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9855. Added comment
  9856. * src/RequestGroup.cc (createNextCommand)
  9857. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Capitalized METHOD_GET and METHOD_HEAD
  9859. * src/Request.cc
  9860. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Added getDownloadResults() method
  9862. * src/RequestGroupMan.cc
  9863. * src/RequestGroupMan.h
  9864. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Fixed the bug that aria2 exits when commands is empty() but
  9866. _routineCommands are not.
  9867. * src/DownloadEngine.cc
  9868. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Use the default value pulled from Option object in HelpItemFactory.
  9870. except options whose defualt value is embedded in a usage text.
  9871. * src/HelpItemFactory.cc
  9872. * src/HelpItemFactory.h
  9873. * src/option_processing.cc
  9874. * src/version_usage.cc
  9875. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Added --quiet option to make aria2 quiet (no console output).
  9877. --quiet option is tagged with ADVANCED.
  9878. * src/HelpItemFactory.cc
  9879. * src/LogFactory.cc
  9880. * src/LogFactory.h
  9881. * src/MultiUrlRequestInfo.cc
  9882. * src/MultiUrlRequestInfo.h
  9883. * src/NullStatCalc.h: New class. This class prints nothing.
  9884. * src/OptionHandlerFactory.cc
  9885. * src/main.cc
  9886. * src/option_processing.cc
  9887. * src/prefs.h
  9888. * src/usage_text.h
  9889. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9891. * src/HelpItemFactory.cc (createHelpItems):
  9892. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Fixed compilation error in ExpatMetalinkProcessor.cc
  9894. * src/ExpatMetalinkProcessor.cc
  9895. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Reuse socket if the origin server supports HTTP keep-alive and
  9897. --enable-http-keep-alive or --enable-http-pipelining is given.
  9898. The current implementation doesn't reuse the connections established
  9899. against proxy server.
  9900. * src/AbstractCommand.cc
  9901. * src/DownloadEngine.cc
  9902. * src/DownloadEngine.h
  9903. * src/HttpDownloadCommand.cc
  9904. * src/HttpInitiateConnectionCommand.cc
  9905. * src/HttpResponseCommand.cc
  9906. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Rewritten HTTP keep-alive and pipelining routine.
  9908. * src/AbstractCommand.cc
  9909. * src/HttpConnection.cc
  9910. * src/HttpDownloadCommand.cc
  9911. * src/HttpRequest.cc
  9912. * src/HttpRequestCommand.cc
  9913. * src/HttpResponseCommand.cc
  9914. * src/Request.cc
  9915. * src/Request.h
  9916. * src/RequestGroup.cc
  9917. * test/HttpRequestTest.cc
  9918. * test/HttpResponseTest.cc
  9919. * test/RequestTest.cc
  9920. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9921. Added missing setUserHeaders call
  9922. * src/HttpRequestCommand.cc
  9923. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9925. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9926. waste of time because it is more likey false.
  9927. * src/FileAllocationDispatcherCommand.cc (execute)
  9928. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. Now HTTP status and version are a member variable of HttpHeader.
  9930. HTTP status is processed as a string, not integer.
  9931. * src/AbstractProxyResponseCommand.cc
  9932. * src/HttpConnection.cc
  9933. * src/HttpHeader.cc
  9934. * src/HttpHeader.h
  9935. * src/HttpHeaderProcessor.cc
  9936. * src/HttpHeaderProcessor.h
  9937. * src/HttpResponse.cc
  9938. * src/HttpResponse.h
  9939. * test/HttpHeaderProcessorTest.cc
  9940. * test/HttpResponseTest.cc
  9941. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. Added --header option. You can specify any number of additional HTTP headers
  9943. like:
  9944. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9945. Unlike other commad-line option, you can use --header option multiple times.
  9946. * src/HelpItemFactory.cc
  9947. * src/HttpRequest.{cc, h}
  9948. * src/HttpRequestCommand.cc
  9949. * src/OptionHandlerFactory.cc
  9950. * src/OptionHandlerImpl.h
  9951. * src/option_processing.cc
  9952. * src/prefs.h
  9953. * src/usage_text.h
  9954. * test/HttpRequestTest.cc (testUserHeaders)
  9955. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9956. Eliminates the time lag between sequential downloads and commands in
  9957. the same RequestGroup.
  9958. In old implementation, aria2 occasionally waits 1 seconds before
  9959. executing next command or RequestGroup.
  9960. This is really a waste of time, and new implementation eliminates
  9961. this unnecessary time lag.
  9962. * src/AbstractCommand.cc
  9963. * src/AutoSaveCommand.cc
  9964. * src/CheckIntegrityCommand.cc
  9965. * src/Command.{cc, h}
  9966. * src/DownloadEngine.{cc, h}
  9967. * src/DownloadEngineFactory.cc
  9968. * src/FileAllocationCommand.cc
  9969. * src/FileAllocationDispatcherCommand.cc
  9970. * src/FillRequestGroupCommand.cc
  9971. * src/FtpInitiateConnectionCommand.cc
  9972. * src/HaveEraseCommand.cc
  9973. * src/HttpInitiateConnectionCommand.cc
  9974. * src/HttpResponseCommand.cc
  9975. * src/RealtimeCommand.cc
  9976. * src/RequestGroup.cc
  9977. * src/RequestGroupMan.cc
  9978. * src/StreamFileAllocationEntry.cc
  9979. * src/TimeBasedCommand.{cc, h}
  9980. * src/TimedHaltCommand.cc
  9981. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9983. keyword explicit and SharedHandle's default constructor initializes
  9984. its internal obj to null, old implementation initializes it using
  9985. obj's default constructor.
  9986. To assign null, write SharedHandle<T> x(...); x.reset();
  9987. TODO: test/SharedHandleTest.cc needs more tests.
  9988. * src/SharedHandle.h
  9989. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Fixed type in man page.
  9991. * doc/aria2c.1.txt
  9992. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9994. * src/SimpleLogger.{cc, h}
  9995. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Implemented auto protocol detection.
  9997. Now you can do:
  9998. aria2c -Z http://host/file file1.torrent file2.metalink
  9999. (Note: -Z option is required for auto protcol detection.)
  10000. Then aria2c downloads 3 files simultaneously:
  10001. 1. http://host/file
  10002. 2. file1.torrent <-- read local torrent file
  10003. 3. file2.metalink <-- read local Metalink file.
  10004. Same thing goes with -i option. Assume your uris.txt contans:
  10005. http://host/file
  10006. file1.torrent
  10007. file2.metalink
  10008. Then you can do: aria2c -i uris.txt
  10009. (Note: -Z option is not needed if -i option is given.)
  10010. * src/main.cc
  10011. * src/ProtocolDetector.{cc, h}
  10012. * test/ProtocolDetectorTest.cc
  10013. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10015. installed
  10016. * src/ARC4Encryptor.h
  10017. * src/ARC4Decryptor.h
  10018. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Renamed argument from 'errno' to 'err', since errno is confused with
  10020. errno defined in errno.h.
  10021. * src/LibgcryptARC4Decryptor.h
  10022. * src/LibgcryptARC4Context.h
  10023. * src/LibgcryptDHKeyExchange.h
  10024. * src/LibgcryptARC4Encryptor.h
  10025. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Rewritten choking algorithm.
  10027. * src/PeerChokeCommand.{cc, h}
  10028. * src/BtInterestedMessage.cc
  10029. * src/PeerSessionResource.{cc, h}
  10030. * src/DefaultPeerStorage.{cc, h}
  10031. * src/BtNotInterestedMessage.cc
  10032. * src/DefaultBtMessageDispatcher.{cc, h}
  10033. * src/BtMessageDispatcher.h
  10034. * src/Peer.{cc, h}
  10035. * src/BtLeecherStateChoke.{cc, h}
  10036. * src/BtSetup.cc
  10037. * src/BtSeederStateChoke.{cc, h}
  10038. * src/PeerStorage.h
  10039. * test/MockPeerStorage.h
  10040. * test/MockBtMessageDispatcher.h
  10041. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Fixed compilation error on x84-64 platform.
  10043. * src/AuthConfig.cc: Included ostream.
  10044. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Rewritten getBasename() and getDirname(), without standard library
  10046. basename(), dirname().
  10047. * src/File.cc
  10048. * test/FileTest.cc
  10049. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Added Simplified Chinese translation. Also updated the following
  10051. translations: Polish, Dutch, German. Great thanks to all translators.
  10052. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10053. Suppress content-range error when 'Content-Range' response header
  10054. doesn't contains bytes-unit specifier 'bytes'
  10055. * src/HttpHeader.cc (getRange)
  10056. * test/HttpHeaderTest.cc
  10057. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Fixed compilation error with g++-4.3
  10059. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Added missing include files for MinGW
  10061. * test/HttpHeaderProcessorTest.cc
  10062. * test/DHTRoutingTableSerializerTest.cc
  10063. * test/DHTRoutingTableDeserializerTest.cc
  10064. * test/UriListParserTest.cc
  10065. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10066. Now download line is printed nicely with no garbage at the end of
  10067. line. I use ioctl to get the columns of terminal.
  10068. If stdout is redirected to another device, instead of carriage return,
  10069. end of line '\n' character is used. This is feature request#1909659
  10070. * src/ConsoleStatCalc.cc (calculateStat)
  10071. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. Included a2time.h
  10073. * src/DHTMessageDispatcher.h
  10074. * src/DHTMessageEntry.h
  10075. * src/DHTReplaceNodeTask.h
  10076. * src/DHTMessageTracker.h
  10077. * src/Util.h
  10078. * src/CookieBox.h
  10079. * src/SocketCore.h
  10080. * src/DefaultBtMessageDispatcher.h
  10081. * src/SocketCore.cc
  10082. * src/Util.cc
  10083. * src/DHTPingTask.h
  10084. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Fixed high memory footprint when DHT is enabled.
  10086. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10087. queued than it is processed and the queue is getting longer. As a
  10088. consequence, momory usage is increased.
  10089. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10090. replacement cache in DHTBucket which is described in Kademlia paper.
  10091. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10092. DHTReplaceNodeTask.
  10093. * src/DHTBucket.{h, cc}
  10094. (cacheNode): New function.
  10095. (getCachedNodes): New function.
  10096. (dropNode): Push back cached node to _nodes.
  10097. * test/DHTBucketTest.cc
  10098. (testCacheNode): New test
  10099. (testDropNode): New test
  10100. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10102. the unused 4KB memory when ssl is not used.
  10103. * src/SocketCore.cc
  10104. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Added summary log for peer announce storage.
  10106. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10107. Removed cast
  10108. * src/DefaultPeerStorage.cc (addPeer)
  10109. Log exception message
  10110. * src/DHTMessageTracker.cc (handleTimeout)
  10111. Fixed casting
  10112. * test/HttpRequestTest.cc
  10113. * test/MetalinkProcessorTest.cc
  10114. * test/PieceTest.cc
  10115. * test/MetalinkEntryTest.cc
  10116. * test/SequenceTest.cc
  10117. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10118. * src/ParameterizedStringParser.cc (createLoop):
  10119. Removed unused variable sstep.
  10120. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10121. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. * src/Util.{h, cc}
  10123. (parseUInt): New function.
  10124. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10125. The actual range is uint32_t.
  10126. * test/UtilTest.cc
  10127. * src/ParameterizedStringParser.cc:
  10128. Use Util::parseUInt() for loop variables.
  10129. * test/ParameterizedStringParserTest.cc
  10130. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10131. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Rewritten the functions for binding port.
  10133. * src/DHTConnectionImpl.{h, cc}
  10134. * src/PeerListenCommand.{h, cc}
  10135. * src/DHTSetup.cc
  10136. * src/BtSetup.cc
  10137. * test/DHTConnectionImplTest.cc
  10138. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. type cleanup for allmost all remaining files.
  10140. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10141. Type clarification
  10142. * src/PeerSessionResource.{h, cc}
  10143. * src/DefaultPieceStorage.{h, cc}
  10144. * src/Peer.{h, cc}
  10145. * test/PeerSessionResourceTest.cc
  10146. Use div function
  10147. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10148. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Type clarification
  10150. * src/DefaultPeerStorage.{h, cc}
  10151. * test/DefaultPeerStorageTest.cc
  10152. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Type clarification: size_t for length or size, uint64_t for file
  10154. length, off_t for file offset.
  10155. * src/DefaultBtProgressInfoFile.cc
  10156. * src/DefaultBtContext.{h, cc}
  10157. * src/DefaultBtInteractive.cc
  10158. * src/DownloadCommand.{h, cc}
  10159. * src/IteratableChunkChecksumValidator.{h, cc}
  10160. * src/SegmentMan.{h, cc}
  10161. * src/SingleFileDownloadContext.{h, cc}
  10162. * src/IteratableChecksumValidator.{h, cc}
  10163. * src/BtContext.h
  10164. * src/IteratableValidator.h
  10165. * src/DownloadContext.h
  10166. * test/SingleFileDownloadContextTest.cc
  10167. * test/DefaultBtContextTest.cc
  10168. * test/MockBtContext.h
  10169. * test/Metalink2RequestGroupTest.cc
  10170. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Type clarification: size_t for length or size, uint64_t for file
  10172. length, off_t for file offset.
  10173. * src/PiecedSegment.cc
  10174. * src/GrowSegment.h
  10175. * src/DefaultBtRequestFactory.h
  10176. * src/DefaultBtProgressInfoFile.cc
  10177. * src/UnknownLengthPieceStorage.h
  10178. * src/DefaultPieceStorage.cc
  10179. * src/UnknownLengthPieceStorage.cc
  10180. * src/DefaultBtInteractive.cc
  10181. * src/GrowSegment.cc
  10182. * src/BitfieldMan.h
  10183. * src/DownloadCommand.cc
  10184. * src/BtRequestFactory.h
  10185. * src/PiecedSegment.h
  10186. * src/DefaultPieceStorage.h
  10187. * src/Piece.cc
  10188. * src/DefaultBtRequestFactory.cc
  10189. * src/PieceStorage.h
  10190. * src/Segment.h
  10191. * src/Piece.h
  10192. * src/BitfieldMan.cc
  10193. * src/Util.cc
  10194. * test/DefaultBtProgressInfoFileTest.cc
  10195. * test/DefaultPieceStorageTest.cc
  10196. * test/MockPieceStorage.h
  10197. * test/BtRequestMessageTest.cc
  10198. * test/DefaultBtMessageDispatcherTest.cc
  10199. * test/BitfieldManTest.cc
  10200. * test/GrowSegmentTest.cc
  10201. * test/PieceTest.cc
  10202. * test/SegmentTest.cc
  10203. * test/SegmentManTest.cc
  10204. * test/DefaultBtRequestFactoryTest.cc
  10205. * test/MockBtRequestFactory.h
  10206. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Fixed compilation error with --disable-nls
  10208. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10209. in gettext.h causes the problem.
  10210. * src/common.h
  10211. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. Removed subPiece related functions.
  10213. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10214. * src/DefaultPieceStorage.{h, cc}
  10215. * test/PieceTest.cc
  10216. * test/DefaultPieceStorageTest.cc
  10217. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Use unsigned char for data store.
  10219. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Bump up version number to 0.13.0+1
  10221. * configure.ac
  10222. * Release 0.13.0+1
  10223. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10224. Changed inactive connection timeout to 120.
  10225. To accept more mulually interested peers, disconnect peer when there
  10226. is no interest between us after certain time passed.
  10227. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10228. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10230. when compiled with async DNS support.
  10231. * src/DownloadEngine.cc
  10232. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10233. value '10' will be a little bit short when some DNS servers are
  10234. offline and several DNS servers are tried. It should be configured
  10235. by command-line option.
  10236. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. Merged Ross's mingw patch.
  10238. * src/DHTRoutingTableDeserializer.cc
  10239. * src/DHTRoutingTableSerializer.cc
  10240. * src/Platform.{h, cc}
  10241. * src/timegm.h
  10242. * src/gettimeofday.h
  10243. * src/getaddrinfo.h
  10244. * src/SocketCore.h
  10245. * src/common.h
  10246. * src/inet_aton.h
  10247. * src/DownloadEngine.h
  10248. * src/gai_strerror.h
  10249. * src/a2netcompat.h
  10250. * configure.ac
  10251. * configure
  10252. * aclocal.m4
  10253. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Included missing iostream.
  10255. * test/AllTest.cc
  10256. * test/BtDependencyTest.cc
  10257. * test/BtExtendedMessageTest.cc
  10258. * test/DHTConnectionImplTest.cc
  10259. * test/DHTMessageFactoryImplTest.cc
  10260. * test/DHTMessageTrackerEntryTest.cc
  10261. * test/DHTNodeTest.cc
  10262. * test/DHTRoutingTableSerializerTest.cc
  10263. * test/DefaultBtAnnounceTest.cc
  10264. * test/DefaultBtContextTest.cc
  10265. * test/DefaultBtMessageFactoryTest.cc
  10266. * test/DefaultExtensionMessageFactoryTest.cc
  10267. * test/HandshakeExtensionMessageTest.cc
  10268. * test/HttpResponseTest.cc
  10269. * test/MetalinkProcessorTest.cc
  10270. * test/MultiFileAllocationIteratorTest.cc
  10271. * test/SocketCoreTest.cc
  10272. * test/UTPexExtensionMessageTest.cc
  10273. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Reorganized includes.
  10275. * src/NameResolver.cc
  10276. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Fixed compilation error without ares/c-ares
  10278. * src/NameResolver.h:
  10279. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Added a test for large file.
  10281. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10282. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Fixed the bug that file size is ignored if size > INT32_MAX
  10284. * src/SizeMetalinkParserState.cc (endElement):
  10285. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Bump up version number to 0.13.0
  10287. * configure.ac
  10288. * Release 0.13.0
  10289. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Updated Makfefile.am to make 'make dist' work.
  10291. Now packaged filename is aria2c-VERSION.tar.bz2.
  10292. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10293. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10294. Large file support is now configured by configure script.
  10295. * configure.ac
  10296. Removed unsused source files
  10297. * src/
  10298. * test/
  10299. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10300. Peer.h and BtContext.h respectively.
  10301. * src/Peer.h
  10302. * src/BtContext.h
  10303. Updated translations.
  10304. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10305. translations. Great thanks to all translators!;)
  10306. * po/*.{po, gmo}
  10307. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10309. statically declared sha1 MessageDigestContext.
  10310. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10311. initialization of short-lived MessageDigestContext.
  10312. * src/MessageDigestHelper.{h, cc}
  10313. * src/main.cc
  10314. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10315. the initialization of MessageDigestContext every time in validating
  10316. chunk checksum.
  10317. * src/DownloadCommand.{h, cc}
  10318. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Add a file descriptor which connected to fast peer(latency<1500) to
  10320. select(). This change reduced CPU load.
  10321. * src/PeerInteractionCommand.cc
  10322. * src/DefaultBtInteractive.{h, cc}
  10323. * src/BtInteractive.h
  10324. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Fixed the previous insufficient fix for possible busy loop.
  10326. * src/MSEHandshake.cc (identifyHandshakeType)
  10327. Removed unused functions.
  10328. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10329. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Fixed possible busy loop if first 20 bytes are not received for a few
  10331. minutes.
  10332. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10333. * src/ReceiverMSEHandshakeCommand.cc
  10334. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Fixed compilation error
  10336. * src/ExpatMetalinkProcessor.cc
  10337. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10339. * src/DHTBucket.cc
  10340. Removed unnecessary cast.
  10341. * src/HandshakeExtensionMessage.cc
  10342. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10344. is missing.
  10345. * src/OptionHandlerFactory.cc
  10346. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10347. Fixed the bug that HAVE message is not sent for a piece they are
  10348. downloaded fom http/ftp server before any BitTorrent handshake is done
  10349. with peers.
  10350. * src/DefaultBtInteractive.cc
  10351. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10353. * src/Makefile.am
  10354. * src/Makefile.in
  10355. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. Updated README. Added html version of README and man page.
  10357. * README
  10358. * README.html
  10359. * readme2html: Shell script to generate README.html from README using
  10360. asciidoc.
  10361. * doc/aria2c.1.html
  10362. * doc/makeman: Added the line to generate aria2c.1.html
  10363. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Fixed offset calculation.
  10365. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10366. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Rewritten itos and uitos using template. llitos and ullitos are
  10368. replaced with itos and uitos respectively.
  10369. * src/Util.{h, cc}
  10370. * test/UtilTest.cc
  10371. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10373. of the number of bytes required for storing public key and shared
  10374. secret.
  10375. * src/LibgcryptDHKeyExchange.h
  10376. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10377. * src/MSEHandshake.cc
  10378. * test/DHKeyExchangeTest.cc
  10379. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Removed since they are not used.
  10381. * src/Xml2MetalinkProcessor.{h, cc}
  10382. * src/Socket.cc
  10383. * src/SegmentSplitter.{h, cc}
  10384. * test/Xml2MetalinkProcessorTest.cc
  10385. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Fixed the bug that prevents aria2 from stopping other than by pressing
  10387. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10388. option. aria2 doesn't stop even after --seed-time is satisfied and
  10389. continues to output blank lines in the console.
  10390. * src/ReceiverMSEHandshakeCommand.cc
  10391. * src/PeerReceiveHandshakeCommand.cc
  10392. * src/PeerListenCommand.cc
  10393. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. Bump up version number to 0.13.0rc
  10395. * configure.ac
  10396. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Updated man page and some usage text.
  10398. * doc/aria2c.1.txt
  10399. * src/usage_text.h
  10400. * po/*.{po, gmo}
  10401. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Updated translations. Added Finnish and Hebrew translations.
  10403. Great thanks to all translators!
  10404. * po/*.{po, gmo}
  10405. * po/LINGUAS
  10406. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Log more detailed information about each message.
  10408. * src/DHTQueryMessage.{h, cc}
  10409. * src/DHTGetPeersMessage.{h, cc}
  10410. * src/DHTFindNodeReplyMessage.{h, cc}
  10411. * src/DHTGetPeersReplyMessage.{h, cc}
  10412. * src/DHTAnnouncePeerMessage.{h, cc}
  10413. * src/DHTResponseMessage.{h, cc}
  10414. * src/DHTFindNodeMessage.{h, cc}
  10415. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. Use constants defined in prefs.h
  10417. * src/option_processing.cc
  10418. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10420. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10421. Make room for future enchancements for IPv6 addresses.
  10422. Bump up version number of dht.dat file format to 2.
  10423. Not compatible with previous version.
  10424. * src/DHTRoutingTableSerializer.cc
  10425. * src/DHTRoutingTableDeserializer.cc
  10426. * test/DHTRoutingTableSerializerTest.cc
  10427. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Added handling for the return values from
  10429. PeerMessageUtil::createcompact().
  10430. * src/DefaultBtContext.cc (computeFastSet):
  10431. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Fixed abort when peer's ip address is IPv4-mapped address.
  10433. * src/DefaultBtContext.cc (computeFastSet)
  10434. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10435. cannot handle IPv4-mapped addresses.
  10436. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10437. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Proper return value handling for OpenSSL functions.
  10439. * src/LibsslDHKeyExchange.h
  10440. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Random bytes generation using libgcrypt and OpenSSL.
  10442. * src/DHTUtil.{h, cc}
  10443. * test/DHTUtilTest.cc
  10444. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10446. received.
  10447. * src/DHTMessageReceiver.cc (receiveMessage)
  10448. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. Fixed the bug that a return code is always 0. BUG#1897704
  10450. If error occurred during the download or there exist unfinished
  10451. downloads, aria2 returns with code 1.
  10452. * src/RequestGroupMan.{h, cc}
  10453. * src/MultiUrlRequestInfo.{h, cc}
  10454. * src/main.cc
  10455. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. IPv6 support for SocketCore class.
  10457. TODO: In SocketCore::establishConnection(), this is insufficient to
  10458. determin the failure of connect() here because the socket is
  10459. non-blocking state. The next addresses should be tried after select().
  10460. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10461. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10462. instead which address family independent.
  10463. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10464. information in a compact peer format which is for IPv4 only.
  10465. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10466. this is a spec of BitTorrent protocol.
  10467. * src/SocketCore.{h, cc}
  10468. * src/PeerMessageUtil.cc
  10469. * test/SocketCoreTest.cc
  10470. * test/PeerMessageUtilTest.cc
  10471. * test/DHTConnectionImplTest.cc
  10472. Handle IPv4-mapped addresses.
  10473. * src/DHTNode.cc: Now identity is determined by node id.
  10474. * src/DHTMessageTrackerEntry.cc
  10475. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10476. should handle it.
  10477. * src/DHTRoutingTableDeserializer.cc
  10478. * src/DHTMessageFactoryImpl.cc
  10479. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Change the unit of --stop option from a minute to a second.
  10481. * src/usage_text.h
  10482. * src/DownloadEngineFactory.cc
  10483. * src/OptionHandlerFactory.cc
  10484. * src/message.h
  10485. * src/TimedHaltCommand.cc
  10486. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Make listening socket non-block mode.
  10488. * src/FtpConnection.cc
  10489. * src/FtpNegotiationCommand.{h, cc}
  10490. * src/PeerListenCommand.cc
  10491. Fixed the bug that cause slow ftp negotiation.
  10492. * src/FtpNegotiationCommand.{h, cc}
  10493. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10494. Added basic tag to --enable-dht, --dht-listen-port option.
  10495. * src/HelpItemFactory.cc (createHelpItems)
  10496. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Updated text.
  10498. * src/usage_text.h
  10499. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10501. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Determin _threadtholdSpeed in each constructor for
  10503. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10504. * src/ActivePeerConnectionCommand.{h, cc}
  10505. * src/PeerReceiveHandshakeCommand.{h, cc}
  10506. * src/BtSetup.cc
  10507. * src/BtConstants.h
  10508. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Added --bt-min-crypto-level and --bt-require-crypto options.
  10510. * src/OptionHandlerFactory.cc
  10511. * src/MSEHandshake.cc
  10512. * src/HelpItemFactory.cc
  10513. * src/option_processing.cc
  10514. * src/ReceiverMSEHandshakeCommand.cc
  10515. * src/prefs.h
  10516. * src/DefaultBtAnnounce.cc
  10517. * src/InitiatorMSEHandshakeCommand.cc
  10518. * src/usage_text.h
  10519. * test/MSEHandshakeTest.cc
  10520. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. Bump version number to 0.13.0b
  10522. * configure.ac
  10523. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. Updated doc.
  10525. * src/MessageDigestHelper.h:
  10526. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Use raw message digest as a token instead of its hexadecimal
  10528. representation.
  10529. * src/DHTTokenTracker.cc (generateToken)
  10530. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. Added Message Stream Encryption(MSE) support.
  10532. Currently, aria2 accepts incoming connections with Obfuscation Header
  10533. and legacy BitTorrent Header and establishes connections with
  10534. Obfuscation Header first and if failed then retry with legacy
  10535. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10536. choose ARC4. The new option to change the default behavior is planned.
  10537. For tracker extension, "supportcrypto=1" is added statically.
  10538. * src/PeerInitiateConnectionCommand.{h, cc}
  10539. * src/PeerConnection.{h, cc}
  10540. * src/HandleRegistry.h
  10541. * src/SocketCore.h
  10542. * src/PeerReceiveHandshakeCommand.{h, cc}
  10543. * src/BtRegistry.{h, cc}
  10544. * src/PeerListenCommand.cc
  10545. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10546. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10547. * src/MSEHandshake.{h, cc}
  10548. * src/ARC4Encryptor.h
  10549. * src/ARC4Decryptor.h
  10550. * src/LibgcryptARC4Encryptor.h
  10551. * src/LibgcryptARC4Decryptor.h
  10552. * src/LibgcryptARC4Context.h
  10553. * src/LibsslARC4Encryptor.h
  10554. * src/LibsslARC4Decryptor.h
  10555. * src/LibsslARC4Context.h
  10556. * src/DHKeyExchange.h
  10557. * src/LibgcryptDHKeyExchange.h
  10558. * src/LibsslDHKeyExchange.h
  10559. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10560. * test/DefaultBtAnnounceTest.cc
  10561. * test/ARC4Test.cc
  10562. * test/DHKeyExchangeTest.cc
  10563. Removed prepareForRetry() because it is not used.
  10564. * src/PeerAbstractCommand.{h, cc}
  10565. * src/PeerInteractionCommand.{h, cc}
  10566. * src/PeerInitiateConnectionCommand.{h, cc}
  10567. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Added the ability to load nodes from torrent file. These nodes are
  10569. added to the routing table when downloading that torrent.
  10570. * src/BtContext.h
  10571. * src/DefaultBtContext.{h, cc}
  10572. * src/DHTSetup.cc
  10573. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10574. hostname and port pair, and resolves all of them.
  10575. * src/NameResolver.{h, cc}: Added reset().
  10576. * src/RequestGroup.cc
  10577. * test/DefaultBtContextTest.cc
  10578. * test/MockBtContext.h
  10579. Removed assert() from DefaultBtContext and throw exception instead.
  10580. * src/DefaultBtContext.cc
  10581. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Fixed segmentation fault bug when exiting if dht is disabled.
  10583. * src/RequestGroup.cc
  10584. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Fixed typo in log message and define the message in message.h
  10586. * src/TimedHaltCommand.cc
  10587. * src/message.h
  10588. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Included RecoverableException.h to fix compilation error.
  10590. * test/DHTMessageFactoryImplTest.cc
  10591. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10593. * test/DHTPingMessageTest.cc
  10594. * test/DHTGetPeersMessageTest.cc
  10595. * test/DHTFindNodeMessageTest.cc
  10596. * test/DHTAnnouncePeerMessageTest.cc
  10597. * test/MockDHTMessage.h
  10598. * test/MockDHTMessageFactory.h
  10599. * test/MockDHTMessageDispatcher.h: New class.
  10600. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10602. virtual.
  10603. * src/DHTMessageDispatcher.h
  10604. * src/DHTMessageDispatcherImpl.{h, cc}
  10605. * src/DHTSetup.cc
  10606. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Adding handling of DHT error message. Just log error message and
  10608. throw exception.
  10609. * src/DHTMessageFactoryImpl.cc
  10610. * test/DHTMessageFactoryImplTest.cc
  10611. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10612. Added handling of dynamic cast failure.
  10613. * src/DHTNodeLookupTask.cc
  10614. * src/DHTPeerLookupTask.cc
  10615. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Added the ability to stop aria2 itself when given time has passed
  10617. from start. Use --stop option to specify time in minutes.
  10618. When 0 is given, this feature is disabled.
  10619. * src/OptionHandlerFactory.cc
  10620. * src/TimeBasedCommand.h: Make _interval protected scope.
  10621. * src/HelpItemFactory.cc
  10622. * src/option_processing.cc
  10623. * src/prefs.h
  10624. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10625. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10626. Without this modification, the result list shows "ERR" when aria2 is
  10627. stopped by --stop option. It should be "INPR".
  10628. * src/DownloadEngine.{h, cc}
  10629. * src/DownloadEngineFactory.cc
  10630. * src/usage_text.h
  10631. * src/TimedHaltCommand.{h, cc}: New class.
  10632. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Bootstrap through node added by port message.
  10634. Currently bootstrap is executed if the number of buckets in routing
  10635. table is 1.
  10636. * src/BtPortMessage.{h, cc}
  10637. * src/DefaultBtMessageFactory.{h, cc}
  10638. * src/PeerInteractionCommand.cc
  10639. * test/BtPortMessageTest.cc
  10640. * test/MockDHTTask.h
  10641. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Extract the Peer class's member variables, which are only needed after
  10643. PeerInteractionCommand, into PeerSessionResource class.
  10644. This class is instantiated in PeerInteractionCommand class's ctor and
  10645. released in its dtor.
  10646. This will make Peer class lightweight and uses less memory for peers
  10647. which are not connected and wait in the queue.
  10648. * src/PeerChokeCommand.cc
  10649. * src/PeerSessionResource.{h, cc}
  10650. * src/PeerInteractionCommand.cc
  10651. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10652. * src/DefaultBtInteractive.cc
  10653. * src/BtPieceMessage.cc
  10654. * src/BtInterestedMessage.cc
  10655. * src/BtUnchokeMessage.cc
  10656. * src/DefaultPeerStorage.{h, cc}
  10657. * src/PeerInitiateConnectionCommand.cc
  10658. * src/ActivePeerConnectionCommand.cc
  10659. * src/BtNotInterestedMessage.cc
  10660. * src/DefaultBtMessageDispatcher.cc
  10661. * src/BtChokeMessage.cc
  10662. * src/BtRequestMessage.cc
  10663. * src/Peer.{h, cc}
  10664. * src/BtRegistry.h
  10665. * src/TrackerWatcherCommand.cc
  10666. * src/PeerReceiveHandshakeCommand.cc
  10667. * test/BtExtendedMessageTest.cc
  10668. * test/BtAllowedFastMessageTest.cc
  10669. * test/BtCancelMessageTest.cc
  10670. * test/DefaultPieceStorageTest.cc
  10671. * test/BtBitfieldMessageTest.cc
  10672. * test/BtHaveMessageTest.cc
  10673. * test/BtNotInterestedMessageTest.cc
  10674. * test/BtRequestMessageTest.cc
  10675. * test/PeerSessionResourceTest.cc
  10676. * test/DefaultBtMessageDispatcherTest.cc
  10677. * test/PeerTest.cc
  10678. * test/BtInterestedMessageTest.cc
  10679. * test/BtRejectMessageTest.cc
  10680. * test/BtChokeMessageTest.cc
  10681. * test/DefaultPeerStorageTest.cc
  10682. * test/BtHaveNoneMessageTest.cc
  10683. * test/BtHaveAllMessageTest.cc
  10684. * test/DefaultExtensionMessageFactoryTest.cc
  10685. * test/BtUnchokeMessageTest.cc
  10686. * test/DefaultBtMessageFactoryTest.cc
  10687. * test/HandshakeExtensionMessageTest.cc
  10688. * test/UTPexExtensionMessageTest.cc
  10689. * test/DefaultBtRequestFactoryTest.cc
  10690. * test/BtPieceMessageTest.cc
  10691. Removed typedef PeerStats.
  10692. * src/PeerStat.h
  10693. * src/SegmentMan.cc
  10694. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Added std namespace to copy, remove_copy, back_inserter,
  10696. front_inserter.
  10697. * src/RequestGroupMan.cc
  10698. * src/DefaultPieceStorage.cc
  10699. * src/StreamFileAllocationEntry.cc
  10700. * src/BtFileAllocationEntry.cc
  10701. * src/RequestGroup.cc
  10702. * src/MetalinkEntry.cc
  10703. * src/DelegatingPeerListProcessor.cc
  10704. * src/DefaultBtRequestFactory.cc
  10705. * src/DefaultBtMessageDispatcher.cc
  10706. * src/version_usage.cc: Included <algorithm>
  10707. * src/main.cc
  10708. * src/MetalinkParserController.cc
  10709. * src/DefaultBtContext.cc
  10710. * src/DownloadEngineFactory.cc
  10711. * src/a2algo.h
  10712. Removed.
  10713. * test/StreamUriListParserTest.cc
  10714. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10715. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10716. ActivePeerConnectionCommand when it is given and
  10717. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10718. * src/ActivePeerConnectionCommand.{h, cc}
  10719. * src/BtSetup.cc
  10720. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Only add socket to DownloadEngine's select routine when peer or
  10722. localhost is unchoked and interested. This lowers CPU usage a
  10723. little bit.
  10724. * src/PeerInteractionCommand.cc
  10725. * src/PeerAbstractCommand.{h, cc}
  10726. * src/BtInteractive.h
  10727. * src/DefaultBtInteractive.{h, cc}
  10728. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Revert previous change because get_peers message is needed for
  10730. announce_peer anyway.
  10731. * src/DHTGetPeersCommand.cc
  10732. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Request peers thought DHT only when download hasn't finished.
  10734. * src/DHTGetPeersCommand.cc
  10735. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10737. * src/DHTBucketRefreshTask.{h, cc}
  10738. * src/DHTSetup.cc
  10739. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10741. standard classes.
  10742. Included string.h where mem* function are used.
  10743. Added namespace aria2.
  10744. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. Create directory before saving DHT routing table.
  10746. Now ios::failure is now handled properly.
  10747. * src/DHTAutoSaveCommand.cc
  10748. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. Removed unnecessary cerr.
  10750. * src/DownloadEngine.cc
  10751. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Catch exception inside DHTMessageReceiver::receiveMessage().
  10753. Log unknown message.
  10754. * src/DHTMessageReceiver.{h, cc}
  10755. * src/DHTMessageFactory.h
  10756. * src/DHTMessageFactoryImpl.{h, cc}
  10757. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10758. * src/DHTInteractionCommand.cc
  10759. * src/DHTUnknownMessage.{h, cc}
  10760. * test/DHTUnknownMessageTest.cc
  10761. * test/MockDHTMessageFactory.h
  10762. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10763. Commented out ip address comparison because a host can have multiple
  10764. ip addresses and it is hard to predict the hostname is resolved into
  10765. which one.
  10766. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10767. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10768. * po/Makefile.in: Removed since this is generated by configure.
  10769. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Fixed compiler warning about redefinition of SIZE_MAX.
  10771. Use common.h instead of config.h directly here.
  10772. * src/Platform.{h, cc}
  10773. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10774. here.
  10775. * common.h
  10776. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10777. Updated gettext related files.
  10778. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10779. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10780. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. Added DHT functionality, compatible with mainline.
  10782. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10783. You may need to specify entry point to DHT network using
  10784. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10785. Use --dht-listen-port to specify port number. Make sure that your
  10786. firewall configuration can pass through UDP traffic to the port.
  10787. The routing table is saved in $HOME/.aria2/dht.dat.
  10788. * src/DHT*
  10789. * src/BNode.{h, cc}
  10790. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10791. particular torrent.
  10792. * src/Data.cc: Rewritten ctor.
  10793. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10794. --dht-entry-point.
  10795. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10796. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10797. ends, remove BtContext from DHTPeerAnnounceStorage.
  10798. * src/BtPortMessage.{h, cc}: Rewritten.
  10799. * src/message.h
  10800. * src/OptionHandlerImpl.cc
  10801. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10802. --dht-entry-point.
  10803. * src/Dictionary.{h, cc} (remove): New function.
  10804. * src/prefs.h
  10805. * src/DefaultBtMessageFactory.h
  10806. * src/BtHandshakeMessage.cc
  10807. * src/ActivePeerConnectionCommand.cc
  10808. * src/SocketCore.{h, cc}: Added datagram socket support.
  10809. * src/DefaultBtMessageFactory.cc
  10810. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10811. Create DHT commands.
  10812. * src/BtMessageFactory.h
  10813. * src/PeerMessageUtil.{h, cc}
  10814. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. Fixed the bug that log file is not written when configuration file doesn't exist.
  10816. This is caused by using Logger class before LogFactory is not configured.
  10817. BUG #1875079
  10818. * src/option_processing.cc
  10819. Warning message "configuration doesn't exist" is only printed when --conf is
  10820. given.
  10821. * src/option_processing.cc
  10822. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10824. ShaVisitor is now deprecated and slated to be removed.
  10825. * src/DefaultBtContext.cc
  10826. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Externalize message to message.h
  10828. * src/Platform.cc
  10829. * src/message.h
  10830. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Set default domain and default path to cookie.
  10832. * src/HttpResponse.cc
  10833. * src/CookieBox.{h, cc}
  10834. * src/CookieParser.{h, cc}
  10835. * test/CookieParserTest.cc
  10836. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Added --no-conf and --conf-path command-line option.
  10838. --no-conf option disables loading aria2.conf file.
  10839. --conf-path option changes the configuration file path. The default
  10840. file path is $HOME/.aria2/aria2.conf
  10841. Added a warning message when the configuration file is not found.
  10842. * src/HelpItemFactory.cc
  10843. * src/option_processing.cc
  10844. * src/prefs.h
  10845. * src/usage_text.h
  10846. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Added the message to inform users that other help categories are
  10848. available in -h option.
  10849. * src/version_usage.cc
  10850. * src/TagContainer.{h, cc}
  10851. * test/TagContainerTest.cc
  10852. * src/TaggedItem.{h, cc}
  10853. * test/TaggedItemTest.cc
  10854. * src/HelpItem.h
  10855. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10857. from PiecedSegment's ctor.
  10858. Previously Piece::getAllMissingBlockIndexes() is called from
  10859. PiecedSegment() but it is rather expensive since only first element is
  10860. used.
  10861. * src/PiecedSegment.cc
  10862. * src/Piece.{h, cc}
  10863. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10865. each time these functions are called.
  10866. * src/BitfieldMan.{h, cc}
  10867. * test/BitfieldManTest.cc
  10868. * src/array_fun.h
  10869. * test/array_funTest.cc
  10870. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10871. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10872. filtered. Removed unnecessary cast to int32_t.
  10873. * src/BitfieldMan.{h, cc}
  10874. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10876. payload length(4bytes) are received. This happens because lenbufLength
  10877. is not updated in this particular case and successive call of
  10878. receiveMessage() overwrites payload length with bytes recieved which
  10879. are payload body.
  10880. * src/PeerConnection.{h, cc}
  10881. * src/message.h
  10882. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10884. peer if there are peers that have same ipaddr and port.
  10885. I've experiened segmentation fault and "pure virtual function was
  10886. called" error.
  10887. * src/Peer.h
  10888. * test/PeerTest.cc
  10889. * src/DefaultPeerStorage.cc
  10890. * test/DefaultPeerStorageTest.cc
  10891. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. Removed a call to isPowerOf() because it is no longer necessary here
  10893. and a request block is not always power of 2.
  10894. BUG#1866924
  10895. * src/PeerMessageUtil.cc (checkLength)
  10896. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. Fixed the bug that always first found Segment is removed from
  10898. usedSegmentEntries. Removed unused functions.
  10899. * src/SegmentMan.{h, cc}
  10900. * test/SegmentManTest.cc
  10901. Fixed the bug that ServerHost is not removed.
  10902. * src/RequestGroup.cc
  10903. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10904. Fixed the bug that SegmentMan::completeSegment() is not called
  10905. even if Segment is complete when --lowest-speed-limit is enabled.
  10906. BUG#1864525
  10907. * src/DownloadCommand.{h, cc}
  10908. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10909. Fixed: hash algorithm 'sha1' is always used.
  10910. * src/DownloadCommand.cc (validatePieceHash)
  10911. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Added --enable-peer-exchange command-line option.
  10913. * src/OptionHandlerFactory.cc
  10914. * src/HelpItemFactory.cc
  10915. * src/option_processing.cc
  10916. * src/usage_text.h
  10917. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. Move extension from BtRuntime to ExtensionMessageFactory, because
  10919. extension can be specified per peer, not per torrent.
  10920. * src/DefaultBtInteractive.cc
  10921. * src/BtRuntime.h
  10922. * src/ExtendedMessagingAware.h
  10923. * src/ExtensionMessageFactory.h
  10924. * src/DefaultExtensionMessageFactory.cc
  10925. * test/DefaultExtensionMessageFactoryTest.cc
  10926. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Added categorized option help. Specify category using --help option.
  10928. Also added the ability to search options in forward match.
  10929. * src/HelpItem.{h, cc}
  10930. * test/HelpItemTest.cc
  10931. * src/HelpItemFactory.{h, cc}
  10932. * src/TagContainer.{h, cc}
  10933. * test/TagContainerTest.cc
  10934. * src/option_processing.cc
  10935. * src/prefs.h
  10936. * src/TaggedItem.{h, cc}
  10937. * test/TaggedItemTest.cc
  10938. * src/version_usage.cc
  10939. * src/help_tags.h
  10940. * src/usage_text.h
  10941. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Fixed segmentation fault when bad torrent metainfo is parsed.
  10943. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10944. and then throw exception or skip it.
  10945. * src/DefaultBtContext.{h, cc}
  10946. * test/DefaultBtContextTest.cc
  10947. * src/AnnounceList.cc
  10948. * src/CompactPeerListProcessor.cc
  10949. * src/message.h
  10950. * src/DefaultBtAnnounce.{h, cc}
  10951. * test/DefaultBtAnnounceTest.cc
  10952. * src/BencodeVisitor.cc
  10953. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10954. Added missing "B"(=Byte). So now the message looks like this:
  10955. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10956. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10957. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. Show the seed ratio after torrent downloads.
  10959. For example, after torrent download completed and --seed-time and
  10960. --seed-ratio conditions are fulfilled, following message is printed
  10961. right after "Download complete: .....":
  10962. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10963. * src/RequestGroupMan.cc
  10964. * src/RequestGroup.{h, cc}
  10965. * src/message.h
  10966. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10967. Remove a defunct control file. A defunct control file means that while
  10968. it exists, but the corresponding download file is missing.
  10969. After its removal, a download restarts from the beginning.
  10970. * src/RequestGroup.cc
  10971. * src/message.h
  10972. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Allocate bitfield in Peer when it is really used. More specifically,
  10974. bitfield in Peer is allocated after the connection is established and
  10975. deallocated when the connection is dropped.
  10976. Since 2 parameters(piece length and total length) was removed from the
  10977. constructor of Peer class, many test classes were modified accordingly.
  10978. See svn log for more detailed information.
  10979. * src/PeerInteractionCommand.cc
  10980. * src/CompactPeerListProcessor.cc
  10981. * src/Peer.cc
  10982. * src/DefaultPeerListProcessor.cc
  10983. * src/PeerListenCommand.cc
  10984. * src/PeerReceiveHandshakeCommand.cc
  10985. Fixed memory leak
  10986. * src/Piece.cc
  10987. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10989. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10990. command-line options.
  10991. * src/option_processing.cc
  10992. * src/ActivePeerConnectionCommand.cc
  10993. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. Send have message to peer if it already has the piece.
  10995. * src/BtHaveMessage.{h, cc}
  10996. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10998. port.
  10999. * src/DefaultPeerStorage.{h, cc}
  11000. * test/DefaultPeerStorageTest.cc
  11001. * src/HandshakeExtensionMessage.cc
  11002. * test/HandshakeExtensionMessageTest.cc
  11003. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11004. * src/PeerStorage.h
  11005. * test/MockPeerStorage.h
  11006. * src/PeerListenCommand.cc
  11007. * src/PeerReceiveHandshakeCommand.cc
  11008. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Added --metalink-enable-unique-protocol option.
  11010. * src/Metalink2RequestGroup.cc
  11011. * src/option_processing.cc
  11012. * src/prefs.h
  11013. * src/version_usage.cc
  11014. * doc/aria2c.1.txt
  11015. * doc/aria2c.1
  11016. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Allow a peer in incomingPeer to be added peers.
  11018. * src/DefaultPeerStorage.cc
  11019. * test/DefaultPeerStorageTest.cc
  11020. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11021. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11022. I could reproduce this bug in following procedure:
  11023. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11024. 2. Restart aria2.
  11025. 3. You see the download stopped around 99%.
  11026. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11027. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11028. If timeout is reached, then _nextCommand is unused and it may contains
  11029. segments and they won't be canceled. Actually, timeout is not needed
  11030. here because if the server dropped connection, then retry is made.
  11031. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Added uTorrent compatible Peer Exchange.
  11033. * src/BencodeVisitor.{h, cc}
  11034. * test/BencodeVisitorTest.cc
  11035. * src/BtConstants.h
  11036. * src/BtContext.h: Added 'private' flag.
  11037. * src/BtExtendedMessage.{h, cc}
  11038. * test/BtExtendedMessageTest.cc
  11039. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11040. reserved field.
  11041. * test/BtHandshakeMessageTest.cc
  11042. * src/BtMessageFactory.h
  11043. * src/BtRegistry.h
  11044. * src/BtRuntime.h: This class holds default extension message IDs for
  11045. aria2. By default, aria2 uses ID 8 for ut_pex.
  11046. * src/DefaultBtContext.cc
  11047. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11048. When it is true, aria2 enables ut_pex. This value is set by
  11049. PeerInteractionCommand.
  11050. * src/DefaultBtMessageFactory.{h, cc}
  11051. * test/DefaultBtMessageFactoryTest.cc
  11052. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11053. handling to DefaultBtInteractive class.
  11054. * src/DefaultExtensionMessageFactory.{h, cc}
  11055. * test/DefaultExtensionMessageFactoryTest.cc
  11056. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11057. the container(peers and incomingPeers. The equality is determined by
  11058. Peer::id).
  11059. * test/DefaultPeerStorageTest.cc
  11060. * src/ExtensionMessage.h
  11061. * test/MockExtensionMessage.h
  11062. * src/ExtensionMessageFactory.h
  11063. * test/MockExtensionMessageFactory.h
  11064. * src/HandshakeExtensionMessage.{h, cc}
  11065. * test/HandshakeExtensionMessageTest.cc
  11066. * src/MetaEntry.h
  11067. * src/Peer.{h, cc}
  11068. * src/PeerInteractionCommand.cc
  11069. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11070. addIncomingPeer.
  11071. * src/PeerMessageUtil.{h, cc}
  11072. * src/PeerObject.h
  11073. * src/UTPexExtensionMessage.{h, cc}
  11074. * test/UTPexExtensionMessageTest.cc
  11075. * src/message.h
  11076. * src/prefs.h
  11077. Fixed the bug that returns incomplete data when it contains null
  11078. character. A convenient constructor was also added.
  11079. * src/Data.{h, cc}
  11080. Rewritten.
  11081. * src/CompactPeerListProcessor.cc
  11082. Fixed typos.
  11083. * src/message.h
  11084. * src/MetaFileUtil.cc
  11085. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Added "Status Legend" label to the explanation text of 'stat' in
  11087. download result and moved it to the last. BUG#1848214
  11088. * src/RequestGroupMan.cc
  11089. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11090. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11091. * src/Makefie.am
  11092. * test/Makefile.am
  11093. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. Fixed the bug that prevents aria2 from loading cookie file when expire
  11095. value is greater than 2^31-1. BUG#1851066
  11096. * src/CookieBoxFactory.cc
  11097. * test/CookieBoxFactoryTest.cc
  11098. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Fixed possible memory leak when an exception is thrown.
  11100. * src/XML2SAXMetalinkProcessor.cc
  11101. Added Expat support. If both libxml2 and Expat are installed, then
  11102. libxml2 is used by default.
  11103. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11104. ExpatMetalinkProcessor according to the configuration.
  11105. * src/ExpatMetalinkProcessor.{h, cc}
  11106. * src/main.cc: Removed libxml2 specific header and init/free function.
  11107. * src/MetalinkProcessorFactory.{h, cc}
  11108. * src/MetalinkHelper.cc
  11109. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11110. * src/MetalinkProcessor.h
  11111. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11112. MetalinkProcessorTest is used instead.
  11113. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11114. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11115. MetalinkProcessorFactory::newInstance().
  11116. * m4/libexpat.m4
  11117. * configure.ac: Added configuration options for libexpat.
  11118. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Disabled -s option in metalink download.
  11120. * src/Metalink2RequestGroup.cc
  11121. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. If several protocols are available for a mirror in metalink file,
  11123. aria2 now use one of them. --metalink-preferred-protocol option was
  11124. added to specify the preference of protocol.
  11125. * src/AbstractCommand.cc
  11126. * src/OptionHandlerFactory.cc
  11127. * src/ServerHost.{h, cc}
  11128. * src/Metalink2RequestGroup.cc
  11129. * src/RequestGroup.{h, cc}
  11130. * test/RequestGroupTest.cc
  11131. * src/option_processing.cc
  11132. * src/prefs.h
  11133. * src/HttpResponseCommand.cc
  11134. * src/MetalinkResource.{h, cc}
  11135. * src/FtpNegotiationCommand.cc
  11136. * src/MetalinkEntry.{h, cc}
  11137. * src/MetalinkEntryTest.cc
  11138. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Code cleanup and added debug log.
  11140. * src/PeerConnection.cc
  11141. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Compiler error fix: applied the patch by Tiziano Mueller
  11143. * src/RequestGroup.cc
  11144. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11146. in stopped and completed event.
  11147. * src/AnnounceList.{h, cc}
  11148. * test/AnnounceListTest.cc
  11149. * src/DefaultBtAnnounce.cc
  11150. * test/DefaultBtAnnounceTest.cc
  11151. Sorted URLs.
  11152. * test/Metalink2RequestGroupTest.cc
  11153. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Removed unnecessary string copy. Updated doc and corrected indentation.
  11155. * src/Base64.cc
  11156. Fixed compilation warnings
  11157. * test/DataTest.cc
  11158. * test/HttpRequestTest.cc
  11159. * test/MetaFileUtilTest.cc
  11160. * test/RequestTest.cc
  11161. * Release 0.12.0
  11162. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Updated translations
  11164. * po/{de,fr,ja,nl,ru}.po
  11165. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11166. translations. Many thanks to translators.
  11167. * po/{ca,es,it,pt_BR,sv}.po
  11168. * po/LINGUAS
  11169. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Added a notice about URL
  11171. * src/version_usage.cc
  11172. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11173. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11174. aria2 repeatedly sends stopped request when tracker returns error code.
  11175. * src/AnnounceList.cc
  11176. * test/AnnounceListTest.cc
  11177. * src/AnnounceTier.h
  11178. Added a message when ctrl-c is hit.
  11179. Now second ctrl-c is also handled in signal handler.
  11180. * src/RequestGroupMan.{h, cc}
  11181. * src/RequestGroup.{h, cc}
  11182. * src/MultiUrlRequestInfo.cc
  11183. * src/DownloadEngine.cc
  11184. * src/TrackerWatcherCommand.cc
  11185. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. Code cleanup
  11187. * src/Base64.cc (encode)
  11188. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Changed Direct/IO enable/disable procesure in file allocation routine.
  11190. * src/SingleFileAllocationIterator.cc
  11191. (SingleFileAllocationIterator):
  11192. Disable directIO if offset is not multiple of 512.
  11193. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11194. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11195. Enable created SingleFileAllocationIterator's directIO.
  11196. * src/FileAllocationEntry.cc
  11197. (FileAllocationEntry): Enable directIO here.
  11198. (~FileAllocationEntry): Disable directIO here.
  11199. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11201. * src/Peer.{h, cc}
  11202. * src/DefaultPieceStorage.cc
  11203. * test/DefaultPieceStorageTest.cc
  11204. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11205. Rewritten direct I/O support routine
  11206. * src/SingleFileAllocationIterator.cc
  11207. * src/MultiDiskAdaptor.{h, cc}
  11208. * src/ByteArrayDiskWriter.h
  11209. * src/AbstractSingleDiskAdaptor.h
  11210. * src/AbstractDiskWriter.cc
  11211. * src/DefaultPieceStorage.cc
  11212. * src/DiskWriter.h
  11213. * src/BinaryStream.h
  11214. * src/IteratableChunkChecksumValidator.cc
  11215. * src/IteratableChecksumValidator.cc
  11216. * src/CheckIntegrityEntry.cc
  11217. * src/FileAllocationEntry.cc
  11218. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Fixed typo
  11220. * src/version_usage.cc
  11221. Updated doc
  11222. * doc/aria2c.1.txt
  11223. * doc/aria2c.1
  11224. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Fixed compile error without message digest support.
  11226. * src/FileMetalinkParserState.cc
  11227. * src/MetalinkParserController.{h, cc}
  11228. * test/XML2SAXMetalinkProcessorTest.cc
  11229. * test/MetalinkParserControllerTest.cc
  11230. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Enable direct I/O support in checksum checking.
  11232. * src/IteratableChunkChecksumValidator.{h, cc}
  11233. * test/IteratableChunkChecksumValidatorTest.cc
  11234. * src/CheckIntegrityEntry.cc
  11235. * src/PieceHashCheckIntegrityEntry.cc
  11236. * src/IteratableChecksumValidator.{h, cc}
  11237. * src/BtCheckIntegrityEntry.cc: Added doc.
  11238. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Added --allow-piece-length-change option.
  11240. * src/DefaultBtProgressInfoFile.cc
  11241. * test/DefaultBtProgressInfoFileTest.cc
  11242. * src/OptionHandlerFactory.cc
  11243. * src/option_processing.cc
  11244. * src/prefs.h
  11245. * src/version_usage.cc
  11246. * doc/aria2c.1.txt
  11247. * doc/aria2c.1
  11248. Fixed: duplicated result entry appears when exception is thrown in
  11249. RequestGroup::createInitiateConnectionCommand().
  11250. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11251. Add RequestGroup to _requestGroup after RequetGroup::
  11252. createInitiateConnectionCommand() succeeds.
  11253. Externalized message
  11254. * src/XML2SAXMetalinkProcessor.cc
  11255. * src/message.h
  11256. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Forced download abort when received negative response from http/ftp
  11258. server.
  11259. * src/HttpResponseCommand.cc
  11260. * src/FtpNegotiationCommand.cc
  11261. * src/HttpResponse.cc
  11262. * src/FtpConnection.cc
  11263. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11265. the predecessor, Xml2MetalinkParser class.
  11266. I tested them against 94KB metalink file with 1234 chunk checksums.
  11267. The new one parsed it in 22msec, while it took 6000msec with old one.
  11268. * src/XML2SAXMetalinkProcessor.{h, cc}
  11269. * test/XML2SAXMetalinkProcessorTest.cc
  11270. * src/MetalinkParserController.{h, cc}
  11271. * test/MetalinkParserControllerTest.cc
  11272. * src/MetalinkParserState.h: Also added 16 subclasses.
  11273. * src/main.cc
  11274. * src/Metalink2RequestGroup.cc
  11275. * src/MetalinkHelper.cc
  11276. * src/MetalinkEntry.cc
  11277. * src/ChunkChecksum.h
  11278. Rewritten Base64 class for better performance.
  11279. * src/Base64.{h, cc}
  11280. * test/Base64Test.cc
  11281. * src/HttpRequest.cc
  11282. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. Fixed the bug#1841757: aria2 will connect to server to only get
  11284. file size.
  11285. * src/StreamFileAllocationEntry.cc
  11286. * src/option_processing.cc
  11287. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11288. downloads.
  11289. * src/FtpNegotiationCommand.cc
  11290. Suppressed wrong message when finding PreDownloadHandler
  11291. * src/RequestGroup.cc
  11292. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. Updated usage
  11294. * src/version_usage.cc
  11295. Updated man page
  11296. * doc/aria2c.1.txt
  11297. * doc/aria2c.1
  11298. Updated po files
  11299. * po/aria2c.pot
  11300. * po/*.po
  11301. * po/*.gmo
  11302. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11303. Eliminated g++-4.2 warning
  11304. * src/DownloadHandlerConstants.{h, cc}
  11305. * src/Util.cc
  11306. * test/MetaFileUtilTest.cc
  11307. * test/PStringBuildVisitorTest.cc
  11308. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11309. * src/RequestGroup.cc
  11310. * src/BtCheckIntegrityEntry.cc
  11311. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11312. Fixed a2io.h
  11313. * src/a2io.h
  11314. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. Added direct I/O support. The current implementation uses O_DIRECT,
  11316. which is not posix standard and is tested on linux 2.6.21.
  11317. Currently only file allocation uses direct I/O.
  11318. * src/SingleFileAllocationIterator.{h, cc}
  11319. * test/SingleFileAllocationIteratorTest.cc
  11320. * src/MultiFileAllocationIterator.{h, cc}
  11321. * test/MultiFileAllocationIteratorTest.cc
  11322. * src/BinaryStream.h
  11323. * src/DiskWriter.h
  11324. * src/AbstractDiskWriter.{h, cc}
  11325. * src/ByteArrayDiskWriter.h
  11326. * src/DiskAdaptor.h
  11327. * src/AbstractSingleDiskAdaptor.{h, cc}
  11328. * src/MultiDiskAdaptor.{h, cc}
  11329. * src/FileAllocationEntry.cc
  11330. * src/Util.{h, cc}
  11331. * src/OptionHandlerFactory.cc
  11332. * src/prefs.h
  11333. * src/version_usage.cc
  11334. * src/option_processing.cc
  11335. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11336. handleException.
  11337. * src/MultiFileAllocationIterator.cc
  11338. Added EINTR handling
  11339. * src/SocketCore.cc
  11340. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11341. Updated usage
  11342. * src/version_usage.cc
  11343. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Applied Ross's patch for MinGW port.
  11345. * src/DownloadEngine.h
  11346. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11347. Set Content-Type to SingleFileDownloadContext when http response is
  11348. received.
  11349. * src/HttpResponseCommand.cc
  11350. * src/HttpResponse.{h, cc}
  11351. * test/HttpResponseTest.cc
  11352. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11353. Rewritten to add content-type support.
  11354. * src/DownloadHandler.{h, cc}
  11355. * src/BtPostDownloadHandler.{h, cc}
  11356. * test/BtPostDownloadHandlerTest.cc
  11357. * src/MetalinkPostDownloadHandler.{h, cc}
  11358. * test/MetalinkPostDownloadHandlerTest.cc
  11359. * src/PostDownloadHandler.{h, cc}
  11360. * src/DownloadHandlerConstants.{h, cc}
  11361. * src/RequestGroup.cc
  11362. * src/HttpResponseCommand.cc
  11363. * src/FtpNegotiationCommand.cc
  11364. * src/SingleFileDownloadContext.{h, cc}
  11365. * src/RequestGroup.h
  11366. * src/RequestGroupCriteria.h
  11367. * src/ContentTypeRequestGroupCriteria.h
  11368. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11369. If it is give, metalink/torrent file is not written to the disk, but
  11370. just is kept in memory. Parsing is occurred on memory.
  11371. * src/MetalinkHelper.{h, cc}
  11372. * src/MetalinkProcessor.h
  11373. * src/Xml2MetalinkProcessor.{h, cc}
  11374. * test/Xml2MetalinkProcessorTest.cc
  11375. * src/DownloadHandlerFactory.{h, cc}
  11376. * test/DownloadHandlerFactoryTest.cc
  11377. * src/PreDownloadHandler.{h, cc}
  11378. * src/OptionHandlerFactory.cc
  11379. * src/DefaultBtContext.{h, cc}
  11380. * test/DefaultBtContextTest.cc
  11381. * src/version_usage.cc
  11382. * src/Metalink2RequestGroup.{h, cc}
  11383. * src/RequestGroup.{h, cc}
  11384. * src/a2functional.h
  11385. * test/a2functionalTest.cc
  11386. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11387. * src/OptionHandlerImpl.h
  11388. * src/prefs.h
  11389. * src/Util.{h, cc}
  11390. * test/UtilTest.cc
  11391. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11392. memory usage.
  11393. * src/RequestGroupMan.{h, cc}
  11394. * src/DownloadEngine.cc
  11395. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11396. WeakHandle to SharedHandle because WeakHandle could be null.
  11397. * src/RequestGroup.{h, cc}
  11398. * src/DownloadEngineFactory.cc
  11399. * src/DownloadResult.h
  11400. Set totalLength after download finished
  11401. * src/UnknownLengthPieceStorage.{h, cc}
  11402. Keep torrent file specified in metalink in memory.
  11403. * src/Metalink2RequestGroup.cc
  11404. * src/BtDependency.cc
  11405. * src/TrueRequestGroupCriteria.h
  11406. Fixed the bug: seekg is used where seekp should be used.
  11407. * src/ByteArrayDiskWriter.cc
  11408. * test/ByteArraydiskWriterTest.cc
  11409. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11410. Fixed syntax error
  11411. * test/SequenceTest.cc
  11412. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11414. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11415. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11416. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11417. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11418. Added the check to see whether ares_host_callback accepts timeouts
  11419. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11420. * src/NameResolver.{h, cc}
  11421. * m4/libcares.m4
  11422. * configure.ac: Set C++ for language choice.
  11423. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11424. Fixed: compilation fails without c-ares/ares
  11425. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11426. Generate http/ftp commands only when download is incomplete.
  11427. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11428. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11429. Corrected typo. Examples are removed since they are available in man
  11430. page.
  11431. * src/version_usage.cc
  11432. Updated man page.
  11433. * doc/aria2c.1
  11434. * doc/aria2c.1.txt
  11435. * doc/makeman: Commented out sed command.
  11436. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11437. Throw DlAbortEx when a remote file is not found.
  11438. * src/HttpResponse.cc
  11439. * src/FtpNegotiationCommand.cc
  11440. * src/message.h
  11441. Overwrite an existing file if --allow-overwrite=true is given.
  11442. * src/RequestGroup.cc
  11443. Removed unused functions
  11444. * src/AbstractCommand.h
  11445. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11446. Removed 'extern' from 'extern typedef ...' in src/*.h
  11447. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11448. Updated usage
  11449. * src/version_usage.cc
  11450. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11451. Trim announce URL
  11452. * src/DefaultBtContext.cc
  11453. * test/ShaVisitorTest.cc
  11454. Trim argument s. Give trimed s to exception constructor.
  11455. * src/Util.cc (parseInt)(parseLLInt)
  11456. * test/UtilTest.cc
  11457. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11458. Set precision back to 1.
  11459. * src/ConsoleStatCalc.cc (calculateStat)
  11460. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11461. Replaced strtol with Util::parseInt
  11462. * src/ChunkedEncoding.cc
  11463. * src/HttpConnection.cc
  11464. * src/CookieBoxFactory.cc
  11465. * src/ParameterizedStringParser.cc
  11466. * src/Util.cc
  11467. * test/UtilTest.cc
  11468. * test/OptionHandlerTest.cc
  11469. * src/Request.cc
  11470. Throw exception when empty string is given. The message for exception
  11471. changed.
  11472. * src/Util.cc (parseInt)(parseLLInt)
  11473. * src/message.h
  11474. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11475. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11476. set to 1.
  11477. * src/ConsoleStatCalc.cc (calculateStat)
  11478. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11479. Preallocate non-requested file which is adjacent forward to requested
  11480. file('requested' files means the files given in --select-file option)
  11481. if they share a same piece.
  11482. This fixes long pause in the file system which doesn't support sparse
  11483. files like FAT32 while downloading.
  11484. * src/MultiFileAllocationIterator.{h, cc}
  11485. * test/MultiFileAllocationIteratorTest.cc
  11486. * src/FileEntry.{h, cc}
  11487. Removed unused _option.
  11488. * src/MultiDiskAdaptor.h
  11489. * test/MultiDiskAdaptorTest.cc
  11490. * src/DefaultPieceStorage.cc
  11491. Set the default value of --seed-ratio to 1.0.
  11492. If 0.0 is given, then seeding continues regardless of share ratio.
  11493. * src/version_usage.cc
  11494. * src/option_processing.cc
  11495. * src/BtSetup.cc
  11496. * doc/aria2c.1.txt
  11497. * doc/aria2c.1
  11498. Fixed: Selective download is not working in BitTorrent
  11499. * src/RequestGroup.cc
  11500. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11501. * src/PieceStorage.h
  11502. * test/MockPieceStorage.h
  11503. * src/UnknownLengthPieceStorage.h
  11504. * src/DefaultPieceStorage.{h, cc}
  11505. * src/Metalink2RequestGroup.cc
  11506. * src/RequestGroup.cc
  11507. * src/Sequence.h
  11508. * test/SequenceTest.cc
  11509. * src/IntSequence.h
  11510. * src/message.h
  11511. * src/Util.{h, cc}
  11512. * test/UtilTest.cc
  11513. Added new function 'parse' to catch exception thrown by subclass's
  11514. parseArg
  11515. * src/OptionHandler.h
  11516. * src/OptionParser.cc
  11517. * src/NameMatchOptionHandler.h
  11518. * src/OptionHandlerImpl.h
  11519. * test/OptionHandlerTest.cc
  11520. Added IntegerRangeOptionHandler. Used for --listen-port and
  11521. --select-file. Now --listen-port accepts range of port.
  11522. * src/OptionHandlerFactory.cc
  11523. * src/version_usage.cc
  11524. * src/OptionHandlerImpl.h
  11525. * src/option_processing.cc
  11526. * src/BtSetup.cc
  11527. * src/PeerListenCommand.{h, cc}
  11528. * doc/aria2c.1.txt
  11529. * doc/aria2c.1
  11530. Implemented operator< for Exception class to provide easy way to print
  11531. exception stack trace.
  11532. * src/Exception.{h, cc}
  11533. * src/main.cc
  11534. * src/option_processing.cc
  11535. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. * src/version_usage.cc
  11537. (showVersion): Reworked.
  11538. (showUsage): Added examples.
  11539. Removed Hint for total length and file name.
  11540. * src/Metalink2RequestGroup.cc
  11541. * src/RequestGroup.{h, cc}
  11542. * src/HttpResponseCommand.cc
  11543. * src/FtpNegotiationCommand.cc
  11544. Now --follow-torrent and --follow-metalink option work properly.
  11545. * src/RequestGroup.cc
  11546. Updated man page
  11547. * doc/aria2c.1.txt
  11548. * doc/aria2c.1
  11549. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11550. Removed.
  11551. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11552. Use Segment::operator==()
  11553. * src/HttpConnection.cc
  11554. * src/Segment.h
  11555. Updated usage
  11556. * src/version_usage.cc
  11557. Added EINTR treatment.
  11558. * src/SocketCore.cc
  11559. * src/AbstractDiskWriter.cc
  11560. Rewritten.
  11561. * src/Util.cc (rangedFileCopy)
  11562. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11563. Fixed typo.
  11564. * src/version_usage.cc
  11565. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. Implemented. Now -c option works fine.
  11567. * src/DefaultPieceStorage.cc (markPiecesDone)
  11568. * test/DefaultPieceStorageTest.cc
  11569. Removed.
  11570. * src/SegmentMan.{h, cc}
  11571. (markAllPiecesDone)
  11572. (markPieceDone)
  11573. Synchronized po files with
  11574. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11575. * src/fr.po
  11576. * src/ru.po
  11577. * src/de.po
  11578. * src/ja.po
  11579. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Added ifdef and some modifications to compile without BitTorrent,
  11581. Metalink, MessageDigest
  11582. support.
  11583. * src/PieceHashCheckIntegrityEntry.cc
  11584. * src/MetalinkEntry.h
  11585. * src/version_usage.cc
  11586. * src/main.cc
  11587. * src/DownloadEngine.{h, cc}
  11588. * src/Metalink2RequestGroup.cc
  11589. * src/Peer.cc
  11590. * src/RequestGroup.cc
  11591. * src/MetalinkHelper.cc
  11592. * test/DefaultPieceStorageTest.cc
  11593. * test/MetalinkPostDownloadHandlerTest.cc
  11594. * test/Metalink2RequestGroupTest.cc
  11595. Hide TOTAL SPD when all downloads complete.
  11596. * src/ConsoleStatCalc.cc
  11597. Log target system information.
  11598. * src/main.cc
  11599. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11600. Now --metalink-location accepts a comma-deliminated list of locations.
  11601. * src/MetalinkEntry.{h, cc}
  11602. * test/MetalinkEntryTest.cc
  11603. * src/version_usage.cc
  11604. * src/Metalink2RequestGroup.cc
  11605. * src/Xml2MetalinkProcessor.cc
  11606. * test/Xml2MetalinkProcessorTest.cc
  11607. * doc/aria2c.1.txt
  11608. * doc/aria2c.1
  11609. * src/Util.cc (toUpper)(toLower): Rewritten.
  11610. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Added the ability to detect duplicate download entry which is about to
  11612. download the same file other RequestGroup is downloading.
  11613. * src/RequestGroup.cc
  11614. * src/HttpResponseCommand.cc
  11615. * src/FtpNegotiationCommand.cc
  11616. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11617. Recalculates download progress when loading a control file,
  11618. if the piece length of DownloadContext is different from the one saved
  11619. in the control file. Currently in-flight pieces are ignored.
  11620. * src/DefaultBtProgressInfoFile.cc
  11621. * test/DefaultBtProgressInfoFileTest.cc
  11622. * src/Util.{h, cc}
  11623. * test/UtilTest.cc
  11624. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. Do not rotate tiers in announce-list.
  11626. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11627. AnnounceList::allTiersFailed() used instead to detect whether all
  11628. tiers are tried and failed.
  11629. * test/DefaultBtAnnounceTest.cc
  11630. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11631. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11632. * test/AnnounceListTest.cc
  11633. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11634. clause. Catch RecoverableException instead of DlRetryEx instead.
  11635. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11636. Implemented checksum validation feature(1 checksum for each file)
  11637. The validation takes place after the download.
  11638. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11639. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11640. * src/CheckIntegrityCommand.cc: Changed log message.
  11641. * src/Metalink2RequestGroup.cc: Set checksum to
  11642. SingleFileDownloadContext.
  11643. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11644. PieceHashCheckIntegrity class.
  11645. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11646. PieceHashCheckIntegrity class.
  11647. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11648. * src/IteratableValidator.h: New class.
  11649. * src/message.h
  11650. * src/CheckIntegrityEntry.{h, cc}
  11651. * src/IteratableChunkChecksumValidator.{h, cc}
  11652. * src/SingleFileDownloadContext.h
  11653. * src/DownloadCommand.cc
  11654. --allow-overwrite=true is no longer needed to check file integrity
  11655. before download in BitTorrent download.
  11656. * src/RequestGroup.cc (getInitialCommand)
  11657. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11658. throws exception.
  11659. * src/RequestGroupMan.cc (getInitialCommands)
  11660. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. urlencode the given url inside Request::parseUrl(...)
  11662. * src/Request.{h, cc}
  11663. * src/Util.{h, cc}
  11664. * test/RequestTest.cc
  11665. Removed #!metalink3! notation support because it is deleted from
  11666. the metalink specification.
  11667. * src/Request.{h, cc}
  11668. * test/RequestTest.cc
  11669. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Don't connect server before checking file integrity at startup, if
  11671. filesize and output file path are known.
  11672. * src/AbstractCommand.cc
  11673. * src/StreamFileAllocationEntry.cc
  11674. * src/Metalink2RequestGroup.cc
  11675. * src/RequestGroup.{h, cc}
  11676. * src/HttpResponseCommand.cc
  11677. * src/FtpNegotiationCommand.cc
  11678. Added DownloadFailureException. If it is thrown, RequestGroup should
  11679. halt.
  11680. * src/AbstractCommand.cc
  11681. * src/DownloadFailureException.h
  11682. * src/RequestGroup.cc
  11683. Catch RecoverableException, instead of DlAbortEx.
  11684. * src/RequestGroupMan.cc
  11685. * src/FillRequestGroupCommand.cc
  11686. * src/MetaFileUtil.cc
  11687. * src/IteratableChunkChecksumValidator.cc
  11688. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11689. getGID())
  11690. * src/CheckIntegrityCommand.cc
  11691. * src/message.h
  11692. Print gid instead of idx.
  11693. * src/RequestGroupMan.cc
  11694. Removed exception throwers declaration.
  11695. * src/DirectDiskAdaptor.{h, cc}
  11696. * src/SocketCore.{h, cc}
  11697. * src/MultiDiskAdaptor.{h, cc}
  11698. * src/HttpConnection.{h, cc}
  11699. * src/HttpResponse.{h, cc}
  11700. * src/DiskAdaptor.{h, cc}
  11701. * src/CopyDiskAdaptor.{h, cc}
  11702. * src/MultiDiskAdaptor.{h, cc}
  11703. * src/HttpHeaderProcessor.{h, cc}
  11704. * src/AbstractSingleDiskAdaptor.{h, cc}
  11705. * src/Util.{h, cc}
  11706. * test/UtilTest.cc
  11707. * src/DefaultDiskWriter.{h, cc}
  11708. * src/FtpConnection.{h, cc}
  11709. * src/AbstractDiskWriter.{h, cc}
  11710. Removed duplicate code.
  11711. * src/StreamCheckIntegrityEntry.cc
  11712. Removed unnecessary include.
  11713. * src/DiskWriter.h
  11714. Included Exception.h
  11715. * src/option_processing.cc
  11716. Included 2 files and added doc
  11717. * src/TrackerWatcherCommand.cc
  11718. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11719. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. Changed CheckIntegrityEntry interface so that it can define
  11721. the action when all the chunk checksums are valid.
  11722. * src/CheckIntegrityEntry.h
  11723. * src/StreamCheckIntegrityEntry.{h, cc}
  11724. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11725. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11726. to exit rather than doing seeding. So, it would be good to toggle this
  11727. behavior.
  11728. * src/CheckIntegrityCommand.cc
  11729. * src/AbstractCommand.cc
  11730. * src/RequestGroup.cc
  11731. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11732. Reflect the download length of in-flight pieces.
  11733. It makes the download length readout more precise.
  11734. * src/DefaultPieceStorage.{h, cc}
  11735. * test/DefaultPieceStorageTest.cc
  11736. * src/a2functional.h
  11737. * test/a2functionalTest.cc
  11738. Lower CPU load when --max-download-limit is used.
  11739. There is up and down in speed indicator when enabling
  11740. http-pipelining but a download goes well. I think the problem is that
  11741. because http-pipelining is enabled, DownloadCommand is created for
  11742. each segment and in its constructor, PeerStat::downloadStart() is
  11743. called. In PeerStat::downloadStart(), speed calculation object is
  11744. reseted, which makes download speed zero.
  11745. * src/DownloadCommand.cc
  11746. Rewritten using accumulate.
  11747. * src/RequestGroupMan.cc (calculateStat)
  11748. Code clearnup.
  11749. * src/FtpNegotiationCommand.cc
  11750. * src/HttpResponseCommand.cc
  11751. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. Fixed: Can not resume: aria2 reports download already finished.
  11753. * src/AbstractCommand.{h, cc}
  11754. * src/HttpResponseCommand.cc
  11755. * src/FtpNegotiateCommand.cc
  11756. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. Now a file is stored in the directory specified in .metalnk file
  11758. (file[@name]).
  11759. * src/Metalink2RequestGroup.cc
  11760. Create the directory structure when opening the file if it doesn't
  11761. exist.
  11762. * src/AbstractDiskWriter.cc
  11763. * src/Util.{h, cc}
  11764. * src/File.h
  11765. * test/UtilTest.cc
  11766. Removed file name comparison
  11767. * src/Metalink2RequestGroup.cc
  11768. * src/HttpResponseCommand.cc
  11769. Rewritten using Util::mkdirs()
  11770. * src/FileEntry.cc (setupDir)
  11771. * test/FileEntryTest.cc
  11772. Updated doc
  11773. * src/SingleFileDownloadContext.h
  11774. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11775. Now SleepCommand dispatches nextCommand when halt is requested.
  11776. It avoids a possible long wait after hitting CTRL-C.
  11777. * src/SleepCommand.{h, cc}
  11778. * src/RequestGroupAware.{h, cc}
  11779. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11780. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11781. to open listen port, then remove the port number from the tracker
  11782. request.
  11783. * src/DefaultBtAnnounce.cc
  11784. * test/DefaultBtAnnounceTest.cc
  11785. * test/MockPieceStorage.h
  11786. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11787. them more testable.
  11788. * src/DefaultBtAnnounce.{h, cc}
  11789. * src/DefaultBtContext.{h, cc}
  11790. * src/Util.{h, cc}
  11791. * test/DefaultBtAnnounceTest.cc
  11792. * test/DefaultBtContextTest.cc
  11793. * test/UtilTest.cc
  11794. Added 'B' to upload bytes readout.
  11795. * src/ConsoleStatCalc.cc
  11796. Now the listen port for BitTorrent download is opened when it is
  11797. needed.
  11798. * src/DownloadEngineFactory.cc
  11799. * src/BtSetup.{h, cc}
  11800. * src/PeerListenCommand.{h, cc}
  11801. Now an exception thrown while parsing tracker response is now logged.
  11802. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11803. called, which means no retry is made in this case, assuming a tracker
  11804. has a problem.
  11805. * src/TrackerWatcherCommand.cc
  11806. Fixed: downloading a file whose length is unkown fails.
  11807. * src/DownloadCommand.cc
  11808. Simplified prepareForNextSegment()
  11809. * src/DownloadCommand.cc
  11810. Updated
  11811. * po/POTFILES.in
  11812. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Re-implemented a file listing for Metalink, which was dropped while
  11814. http/ftp/torrent integration was being implemented.
  11815. * src/MetalinkHelper.{h, cc}: New class.
  11816. * test/MetalinkHelperTest.cc
  11817. * src/main.cc
  11818. * src/Metalink2RequestGroup.cc
  11819. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11820. Added the ability to display the detailed torrent file information.
  11821. Now -S option gives not only a file listing, but also total download
  11822. length, info hash, announce URI, piece length, the number of pieces,
  11823. and mode(single or multi-torrent).
  11824. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11825. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11826. KiB)
  11827. * test/UtilTest.cc
  11828. * src/main.cc
  11829. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Added ftp://USER:PASSWD@Servername automatic parsing.
  11831. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11832. _password. Recognize username and password in URI.
  11833. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11834. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11835. * src/RequestFactory.{h, cc}: Removed.
  11836. * src/AuthConfigFactory.{h, cc}: New class.
  11837. * src/FtpConnection.cc: Use AuthConfigFactory.
  11838. * src/HttpRequest.cc: Use AuthConfigFactory.
  11839. * test/HttpRequestTest.cc: Updated.
  11840. * test/RequestTest.cc: Updated.
  11841. * test/AuthConfigFactoryTest.cc: New class.
  11842. * test/RequestFactoryTest.cc: Removed.
  11843. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Use RequestGroup::allDownloadFinished() to decide whether the control
  11845. file should be removed or saved.
  11846. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11847. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11848. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. Use File::renameTo()
  11850. * src/DefaultBtProgressInfoFile.cc
  11851. Added --no-file-allocation-limit command-line option.
  11852. * src/version_usage.cc
  11853. * src/option_processing.cc
  11854. * src/OptionHandlerFactory.cc
  11855. * src/RequestGroup.{h, cc}
  11856. * src/BtCheckIntegrityEntry.cc
  11857. * src/StreamCheckIntegrityEntry.cc
  11858. * src/prefs.h
  11859. * doc/aria2c.1.txt
  11860. * doc/aria2c.1
  11861. Now prealloc is the default value for --file-allocation option.
  11862. * src/version_usage.cc
  11863. * src/option_processing.cc
  11864. * doc/aria2c.1.txt
  11865. * doc/aria2c.1
  11866. Don't URL-encode user-agent.
  11867. * src/HttpRequest.cc
  11868. Updated translations
  11869. * po/LINGUAS: Added nl for Dutch translation.
  11870. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11871. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11872. * po/POTFILES.in: Updated.
  11873. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11874. Added the ability to recognize url-list in a torrent file.
  11875. The retrieved URLs are attached to the corresponding FileEntry.
  11876. * src/DefaultBtContext.{h, cc}
  11877. * src/FileEntry.{h, cc}
  11878. * test/DefaultBtContextTest.cc
  11879. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11880. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11881. after the download finishes.
  11882. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11883. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11884. the data smaller than block length.
  11885. A block length can be specified by constructor's argument.
  11886. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11887. Get a missing piece in the range of given FileEntry. This function is
  11888. not used in the program yet.
  11889. * src/Util.h: Added some macros.
  11890. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11891. Added HTTP/1.1 keep alive and pipelining support.
  11892. See --enable-http-keep-alive and --enable-http-pipelining option.
  11893. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11894. Segment.
  11895. * src/HttpDownloadCommand.{h, cc}
  11896. * src/OptionHandlerFactory.cc
  11897. * src/HttpConnection.{h, cc}
  11898. * src/version_usage.cc
  11899. * src/HttpInitiateConnectionCommand.cc
  11900. * src/FtpInitiateConnectionCommand.cc
  11901. * src/Segment.h
  11902. * src/HttpRequestCommand.{h, cc}
  11903. * src/option_processing.cc
  11904. * src/prefs.h
  11905. * src/HttpResponseCommand.cc
  11906. * src/SegmentMan.{h, cc}
  11907. * src/FtpNegotiateCommand.cc
  11908. * src/HttpProxyResponseCommand.cc
  11909. * src/Request.cc
  11910. * src/HttpRequest.cc
  11911. * src/DownloadCommand.cc
  11912. * test/HttpRequestTest.cc
  11913. * test/RequestTest.cc
  11914. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11916. finished.
  11917. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11918. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11919. catching it inside the method.
  11920. When no file entry is found in a metalink without querying user
  11921. preferences, throw the exception with the error message that suggests
  11922. metalink file is probably broken.
  11923. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11924. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11926. processed.
  11927. * src/RequestGroupMan.cc (removeStoppedGroup)
  11928. Added debug message.
  11929. * src/BtPostDownloadHandler.cc
  11930. * src/MetalinkPostDownloadHandler.cc
  11931. * src/PostDownloadHandler.{h, cc}
  11932. * src/RequestGroup.cc
  11933. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11934. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11935. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11936. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11937. stops and there are any unfinished or in-progress downloads.
  11938. Added the legend of "stat".
  11939. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11940. Throw exception when chunck checksum verification fails.
  11941. * src/DownloadCommand.cc (validatePieceHash): New function.
  11942. * src/PiecedSegment.{h, cc} (clear): New function.
  11943. * src/GrowSegment.{h, cc} (clear): New function.
  11944. * src/Segment.h (clear): New function.
  11945. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11946. * test/SegmentTest.cc
  11947. * test/GrowSegmentTest.cc
  11948. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11949. Do not send referer when redirected.
  11950. * src/Request.cc (redirectUrl)
  11951. * test/RequestTest.cc
  11952. * test/HttpRequestTest.cc
  11953. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11954. Implemented BitTorrent/http/ftp integrated download.
  11955. I've rewritten lots of files and now some headers have forward
  11956. class declarations to reduce compile time.
  11957. The implementation is extremely alpha stage, I recommend to use this
  11958. for testing purpose only.
  11959. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11960. Fixed the compilation error on 64bit platform.
  11961. * test/HttpHeaderProcessorTest.cc
  11962. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. Merged Ross's patch that fixes compilation problem in MinGW
  11964. * test/DefaultBtProgressInfoFileTest.cc
  11965. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11966. Updated fr.po by sebone
  11967. * po/fr.po
  11968. Updated man page.
  11969. * doc/aria2c.1.txt
  11970. * Release 0.11.3
  11971. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11972. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11973. failure in Metalink.
  11974. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. Automatically save *.aria2 control file of http/ftp download in every
  11976. 60 seconds.
  11977. * src/AutoSaveCommand.{h, cc}: New class.
  11978. * src/TimeBasedCommand.{h, cc}: New class.
  11979. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11980. Disable parameterized URI support by default. Added -P option to
  11981. enable the feature.
  11982. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11983. * src/OptionHandlerFactory.cc
  11984. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11985. Updated Japanese translation.
  11986. * po/ja.po
  11987. Updated man page.
  11988. * doc/aria2c.1.txt
  11989. * Release 0.11.3-rc
  11990. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11992. it is successful, then renamed to *.aria2.
  11993. This prevents *.aria2 file from being truncated or corrupted when
  11994. file system becomes out of space.
  11995. * src/DefaultBtProgressInfoFile.cc (save)
  11996. * src/SegmentMan.cc (save)
  11997. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11998. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11999. Reduced the fragmentation of bitfield in http/ftp download.
  12000. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12001. * test/BitfieldManTest.cc
  12002. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. Added the ability to disable segmented download in .metalink.
  12004. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12005. 'url' tag.
  12006. * src/MetalinkEntry.{h, cc}
  12007. * src/RequestResource.{h, cc}
  12008. * src/MetalinkRequestInfo.cc
  12009. * src/Xml2MetalinkProcessor.cc
  12010. * test/Xml2MetalinkProcessorTest.cc
  12011. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12012. Added parameterized URI support.
  12013. * src/main.cc: -Z option added.
  12014. * src/OptionHandlerFactory.cc
  12015. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12016. * src/PStringDatum.h: New class.
  12017. * src/PStringSegment.{h,cc}: New class.
  12018. * src/PStringNumLoop.h: New class.
  12019. * src/PStringSelect.h: New class.
  12020. * src/NumberDecorator.h: New class.
  12021. * src/FixedWidthNumberDecorator.h: New class.
  12022. * src/AlphaNumberDecorator.h: New class.
  12023. * src/PStringVisitor.h: New class.
  12024. * src/PStringBuildVisitor.{h,cc}: New class.
  12025. * src/ParameterizedStringParser.{h,cc}: New class.
  12026. * src/Util.{h,cc}
  12027. (isNumber): New function.
  12028. (isLowercase): New function.
  12029. (isUppercase): New function.
  12030. (alphaToNum): New function.
  12031. * test/ParameterizedStringParserTest.cc: New class.
  12032. * test/AlphaNumberDecoratorTest.cc: New class.
  12033. * test/PStringBuildVisitorTest.cc: New class.
  12034. * test/UtilTest.cc
  12035. (testIsNumber): New function.
  12036. (testIsLowercase): New function.
  12037. (testIsUppercase): New function.
  12038. (testAlphaToNum): New function.
  12039. Added '\n' after the error message
  12040. * src/RequestInfo.h (printDownloadAbortMessage)
  12041. Added auto file renaming feature in http(s)/ftp download.
  12042. * src/main.cc: Added --auto-file-renaming command-line option.
  12043. * src/OptionHandlerFactory.cc
  12044. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12045. * src/RequestGroup.{h, cc}
  12046. (shouldCancelDownloadForSafety): Rewritten
  12047. (tryAutoFileRenaming): New function.
  12048. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12049. * src/HttpResponseCommand.cc
  12050. (executeInternal): Removed the call to RequestGroupMan::
  12051. isSameFileBeingDownloaded()
  12052. * src/FtpNegotiateCommand.cc
  12053. (recvSize): Removed the call to RequestGroupMan::
  12054. isSameFileBeingDownloaded()
  12055. * test/RequestGroupTest.cc: New class.
  12056. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12057. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12058. IO.
  12059. * src/DefaultBtProgressInfoFile.cc
  12060. * src/MetaFileUtil.cc
  12061. * src/SimpleLogger.cc
  12062. * src/SegmentMan.cc
  12063. * src/Util.cc
  12064. * src/Platform.cc
  12065. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12067. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12068. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12069. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12070. Fixed the bug that prevents file allocation is not done when
  12071. dowloading multi-torrent file.
  12072. * src/AbstractDiskWriter.cc (openFile)
  12073. Increase the maximum number of -j option from 15 to 45.
  12074. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12075. Added fr.po, thanks to Charles Landemaine.
  12076. * po/fr.po
  12077. * po/LINGUAS
  12078. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12079. gcc 3.4.4 support:
  12080. * src/DefaultBtContext.cc: int32_t -> int
  12081. * src/main.cc: int -> int32_t, int32_t -> int
  12082. * src/messageDigest.h: uint32_t -> unsigned int
  12083. * src/NameResolver.h: int32_t -> int
  12084. * src/PeerConnection.cc: int -> int32_t
  12085. * src/SpeedCalc.cc: int32_t -> int
  12086. * src/TrackerUpdateCommand.h: int -> int32_t
  12087. * src/Util.cc: int32_t -> int
  12088. * src/Util.h: int32_t -> int
  12089. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12090. * test/AnnounceListTest.cc: int -> int32_t
  12091. * test/ChunkedEncodingTest.cc: int -> int32_t
  12092. * test/DataTest.cc: int -> int32_t
  12093. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12094. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12095. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12096. * test/FeatureConfigTest.cc: int -> int32_t
  12097. * test/MetalinkEntryTest.cc: int -> int32_t
  12098. * test/MockBtRequestFactory.h: int -> int32_t
  12099. * test/MockPieceStorage.h: int -> int32_t
  12100. * test/OptionTest.cc: int -> int32_t
  12101. * test/RequestTest.cc: int -> int32_t
  12102. * test/SegmentManTest.cc: int -> int32_t
  12103. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12104. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12105. Move sleep functions to Util class:
  12106. * src/Util.cc
  12107. (sleep): New function.
  12108. (usleep): New function.
  12109. * src/DownloadCommand.cc: sleep -> Util::sleep
  12110. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12111. MinGW build enhancements. The following files are added:
  12112. * src/timegm.{c,h}
  12113. Changes to support the above new files:
  12114. * configure.ac
  12115. * src/Makefile.am
  12116. * src/a2time.h
  12117. * src/Util.cc:
  12118. * src/strptime.c: Added support for %Z option.
  12119. Fixed MinGW non-blocking bug.
  12120. * src/SocketCore.cc
  12121. * src/HttpRequestCommand.cc
  12122. Miscellenous build fixes/enhancements.
  12123. * configure.ac: Added summary report.
  12124. * src/Platform.h: Tweaked #include's.
  12125. * src/a2netcompat.h: Tweaked #include's.
  12126. * src/strptime.h: Tweaked #include's.
  12127. * src/gai_strerror.c: Tweaked #include's.
  12128. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12129. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12130. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12131. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12132. Increased the initial connection size in BitTorrent download to 40.
  12133. * src/BtRuntime.h
  12134. Added the usage message of --peer-id-prefix option.
  12135. * src/main.cc
  12136. * Release 0.11.2
  12137. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. MessageDigestHelper is introduced in order to simplify the use
  12139. of message digest. Removed repeated code.
  12140. The message digest algorithm is now specified by string, like "sha1",
  12141. "md5".
  12142. * src/messageDigest.{h, cc}
  12143. * src/MessageDigestHelper.{h, cc}: New class.
  12144. * src/DefaultPieceStorage.cc
  12145. * src/DefaultBtContext.{h, cc}
  12146. (computeFastSet): New function.
  12147. (setInfoHash): Added for unit testing.
  12148. (setNumPieces): Added for unit testing.
  12149. * src/DefaultBtInteractive.cc
  12150. * src/BtPieceMessage.cc
  12151. * src/Peer.cc
  12152. * src/Checksum.h
  12153. * src/message.h
  12154. * src/IteratableChecksumValidator.h
  12155. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12156. inside it.
  12157. * src/SegmentMan.{h, cc}
  12158. (checkIntegrity): Removed.
  12159. * src/IteratableChunkChecksumValidator.{h, cc}
  12160. * src/Util.h
  12161. (sha1Sum): Removed.
  12162. (simpleMessageDigest): Removed.
  12163. (fileChecksum): Removed.
  12164. (computeFastSet): Removed.
  12165. * src/ShaVisitor.cc
  12166. * src/ChunkChecksum.h
  12167. * src/DownloadCommand.cc
  12168. Removed messageDigest virtual functions.
  12169. * src/MultiDiskAdaptor.{h, cc}
  12170. * src/DiskAdaptor.h
  12171. * src/ByteArrayDiskWriter.h
  12172. * src/DiskWriter.h
  12173. * src/DiskAdaptorWriter.h
  12174. * src/AbstractSingleDiskAdaptor.{h, cc}
  12175. * src/AbstractDiskWriter.{h, cc}
  12176. Fixed comilation error when message digest is disabled.
  12177. * src/MetalinkEntry.{h, cc}
  12178. * src/MetalinkRequestInfo.cc
  12179. Removed srandom and random.
  12180. * src/SimpleRandomizer.h
  12181. Added size() virtual function to DiskAdaptor
  12182. * src/MultiDiskAdaptor.h
  12183. Fixed the bug that causes that files are not opened correctly in
  12184. multi-file torrent.
  12185. * src/TorrentRequestInfo.cc
  12186. * src/MultiDiskAdaptor.cc
  12187. Added SHA256 support
  12188. * src/messageDigest.cc
  12189. * src/Xml2MetalinkProcessor.cc
  12190. Show supported message digest algorithms
  12191. * src/main.cc
  12192. Updated contact info.
  12193. * src/main.cc
  12194. Applied Ross's patch
  12195. * src/a2netcompat.h
  12196. * src/main.cc
  12197. Fixed the bug that prevents a remote metalink from not being processed
  12198. even if '-o foo.metalink' is specified.
  12199. * src/MetalinkRequestInfo.cc
  12200. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12201. Merged Dan's patch:
  12202. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12203. Use va_copy to avoid core dump on amd64:
  12204. * src/SimpleLogger.cc
  12205. Updated contact info.
  12206. * src/main.cc
  12207. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12208. digest is not available.
  12209. * src/MetalinkEntry.h
  12210. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12211. Make a2netcompat.h include a2io.h to fix compilation error:
  12212. * src/a2netcompat.h
  12213. * src/SocketCore.cc: Removed include of a2io.h
  12214. * src/Util.cc: Removed include of a2io.h
  12215. Gather time related functions to a2time.h:
  12216. * src/a2time.h: New file.
  12217. * src/DefaultPeerStorage.cc
  12218. * src/SimpleLogger.cc
  12219. * src/Util.{h, cc}
  12220. * src/SimpleRandomizer.h
  12221. * src/TimeA2.{h,cc}
  12222. * src/DownloadCommand.cc
  12223. * src/main.cc
  12224. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12225. a2netcompat.h:
  12226. * src/NameResolver.cc
  12227. Fixed compilation error without openssl:
  12228. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12229. Added default block to suppress compiler warnings:
  12230. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12231. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12232. MinGW build enhancements. The following files are added:
  12233. * src/gai_strerror.{c,h}
  12234. * src/gettimeofday.{c,h}
  12235. Changes to support the above new files:
  12236. * configure.ac
  12237. * src/Makefile.am
  12238. * src/a2netcompat.h
  12239. * src/TimeA2.cc
  12240. * src/DefaultPeerStorage.cc
  12241. * src/NameResolver.cc: removed mingw_strerror() function.
  12242. * src/SocketCore.cc: removed mingw_strerror() function.
  12243. Miscellaneous MinGW build fixes.
  12244. * src/a2io.h: Use _lseeki64() instead of lseek()
  12245. * src/common.h
  12246. * src/DefaultFileAllocator.cc
  12247. * src/GlowFileAllocator.cc
  12248. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12249. * src/NameResolver.cc
  12250. (callback): Changed int32_t to int.
  12251. (resolve): Changed int32_t to int.
  12252. * src/Platform.cc
  12253. * src/Platform.h
  12254. * test/MultiDiskWriterTest.cc
  12255. * test/PeerMessageUtilTest.cc
  12256. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12257. Other enhancements and fixes.
  12258. * src/HttpRequestCommand.cc
  12259. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12260. * src/SocketCore.cc:
  12261. (error): New function to abstract errno/WSAGetLastError().
  12262. (errorMsg): New function to abstract errno/WSAGetLastError().
  12263. (initiateSecureConnection): Added more detailed error reporting.
  12264. * src/SocketCore.h: Added private variable blocking, to allow
  12265. proper handling of OpenSSL psuedo-errors.
  12266. * src/message.h
  12267. (EX_SSL_INIT_FAILURE)
  12268. (EX_SSL_IO_ERROR)
  12269. (EX_SSL_PROTOCOL_ERROR)
  12270. (EX_SSL_UNKNOWN_ERROR)
  12271. (EX_SSL_CONNECT_ERROR)
  12272. (EX_SOCKET_BLOCKING)
  12273. (EX_SOCKET_NONBLOCKING)
  12274. (EX_SOCKET_UNKNOWN_ERROR)
  12275. * src/Util.cc
  12276. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12277. reserved name.
  12278. (httpGMT): Fixed typo.
  12279. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12280. Merged Ross's win32 patch(manually)
  12281. In the course of merging, following files are added.
  12282. * src/strptime.{h,c}
  12283. * src/libgen.{h,c}
  12284. * src/inet_aton.{h,c}
  12285. * src/Platform.{h,cc}
  12286. * src/localtime_r.{h,c}
  12287. * src/getaddrinfo.{h,c}
  12288. I've gethered network related things, and put them to following file:
  12289. * src/a2netcompat.h
  12290. Also io related things are put to following file:
  12291. * src/a2io.h
  12292. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12293. * src/message.h
  12294. (MSG_ALLOCATION_COMPLETED)
  12295. (EX_TOO_LARGE_FILE)
  12296. (EX_SIZE_MISMATCH)
  12297. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12298. (EX_INVALID_CHUNK_CHECKSUM)
  12299. (EX_INVALID_RANGE_HEADER)
  12300. * src/FileAllocationCommand.cc
  12301. * src/HttpResponse.cc
  12302. * src/RequestGroup.cc
  12303. * src/MultiDiskAdaptor.cc
  12304. * src/OptionHandlerImpl.h
  12305. * src/HttpResponseCommand.cc
  12306. * src/FtpNegotiateCommand.cc
  12307. * src/IteratableChecksumValidator.cc
  12308. * src/SegmentMan.cc
  12309. * src/ChunkChecksumValidator.cc
  12310. Added Randomizer::getRandomNumber(long int)
  12311. * src/Randomizer.h (getRandomNumber)
  12312. * src/SimpleRandomizer.h (getRandomNumber)
  12313. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12314. * src/Util.cc (randomAlpha): Use this new function.
  12315. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12316. Converted int's to in32_t. long long int's are also converted to
  12317. int64_t
  12318. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12319. Fixed the bug that prevents cookies from being sent to the server
  12320. if the domain of cookie is FQDN and starts with ".".
  12321. * src/Cookie.cc (match)
  12322. To add the ability to change peer id.
  12323. * src/DefaultBtContext.h
  12324. (_peerIdPrefix): New variable
  12325. (setPeerIdPrefix): New function.
  12326. * src/torrentRequestInfo.cc
  12327. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12328. DefaultBtContext.
  12329. * src/main.cc (main): Added peer-id-prefix command-line option.
  12330. The usage message is not added yet.
  12331. * src/DefaultBtContext.cc
  12332. (generatePeerId): Use _peerIdPrefix.
  12333. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12334. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12335. Fixed the bug that prevents filename in content-disposition from
  12336. being retrieved when filename is not quoted.
  12337. * src/Util.cc (getContentDispositionFilename)
  12338. Fixed the bug that causes infinate loop and memory leak when file open
  12339. operation failed.
  12340. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12341. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12342. Fixed the bug that causes segfault when all URIs specified are
  12343. unsupported.
  12344. * src/RequestGroupMan.cc (getInitialCommands)
  12345. Check if RequestGroup::createNextCommand() returns empty list of
  12346. commands.
  12347. * src/RequestGroup.cc (createNextCommand)
  12348. Change log level from info to error so that users can notice that
  12349. an error occurred.
  12350. Fixed the bug that causes segfault when a zero-sized file is
  12351. downloaded.
  12352. * src/BitfieldMan.cc (isAllBitSet)
  12353. Return true if bitfieldLength is 0.
  12354. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12355. * src/main.cc
  12356. (showUsage): Added 3 usage examples for metalink download.
  12357. Replace MetalinkChunkChecksum with ChunkChecksum.
  12358. * src/MetalinkChunkChecksum.h: Removed.
  12359. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12360. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12361. * src/Xml2MetalinkProcessor.cc
  12362. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12363. * src/MetalinkRequestInfo.cc (execute)
  12364. * Release 0.11.1
  12365. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12366. Reads URIs from stdin when "-i -" is specified.
  12367. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12368. * src/UriListParser.h, src/UriListParser.cc: New class.
  12369. * src/StreamUriListParser.h: New class.
  12370. * src/FileUriListParser.h: New class.
  12371. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12372. instead of UriFileListParser.
  12373. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12374. Made console readout more readable.
  12375. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12376. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. Fix the bug that causes -s option not to work.
  12378. * src/main.cc (main)
  12379. * src/a2algo.h: New file.
  12380. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12381. Create directory structure specified in metalink file.
  12382. * src/RequestGroup.h, src/RequestGroup.cc
  12383. (initAndOpenFile): Create a directory to store files if it does not
  12384. exist.
  12385. (getDir): New function.
  12386. Added ETA and download speed for an individual file to readout.
  12387. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12388. * src/RequestGroup.h
  12389. (calculateDownloadSpeed): New function.
  12390. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. Made -S option work with metalink file and provided selective download
  12392. to metalink.
  12393. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12394. (filename): Removed.
  12395. (file): New variable.
  12396. (size): Removed.
  12397. (operator=): Updated.
  12398. (getPath): New function.
  12399. (getLength): New function.
  12400. (toFileEntry): New function.
  12401. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12402. (execute): Use toStream.
  12403. (showFileEntry): Removed.
  12404. * src/MetalinkRequestInfo.h
  12405. (targetFiles): New variable.
  12406. (setTargetFiles): New variable.
  12407. * src/MetalinkRequestInfo.cc
  12408. (execute): Added the ability to print file information included in
  12409. a metalink file.
  12410. Added selective download mode to metalink.
  12411. * src/main.cc
  12412. (showUsage): Updated to denote that -S and --select-file options are
  12413. applicable to metalink.
  12414. * src/FileEntry.h
  12415. (operator=): New function.
  12416. (getBasename): New function.
  12417. (getDirname): New function.
  12418. * src/Util.h, src/Util.cc
  12419. (toStream): New function.
  12420. * src/Xml2MetalinkProcessor.cc: Updated.
  12421. Made aria2 work with metalink with directory structure.
  12422. * src/File.h, src/File.cc
  12423. (getBasename): New function.
  12424. (getDirname): New function.
  12425. * src/RequestGroup.h, src/RequestGroup.cc
  12426. (_topDir): New variable.
  12427. (setTopDir): New function.
  12428. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12429. Rewrote HTTP header parsing with stringstream.
  12430. * src/HttpConnection.h, src/HttpConnection.cc
  12431. (HttpRequestEntry): New class.
  12432. (headerBuf): Removed.
  12433. (headerBufLength): Removed.
  12434. (outstandingHttpRequests): Now its element type is
  12435. HttpRequestEntryHandle.
  12436. (findEndOfHeader): Removed.
  12437. (receiveResponse): Rewritten.
  12438. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12439. Updated doc for -j option to notice that it should be used with -i
  12440. option.
  12441. * src/main.cc (showUsage)
  12442. Removed unused classes.
  12443. * src/RequestInfo.h
  12444. (FileInfo): Removed.
  12445. (checksum): Removed.
  12446. (fileInfo): Removed.
  12447. (setChecksum): Removed.
  12448. (getChecksum): Removed.
  12449. (getFileInfo): Removed.
  12450. Use ISO units.
  12451. * src/ConsoleDownloadEngine.cc
  12452. * src/TorrentConsoleDownloadEngine.cc
  12453. * src/Util.cc (abbrevSize)
  12454. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. Added the default listening ports to the help message.
  12456. * src/main.cc (showUsage)
  12457. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12458. Reduce the number of calls to gettimeofday to lower CPU load.
  12459. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12460. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12461. * src/Peer.h (calculateUploadSpeed): New function.
  12462. (calculateDownloadSpeed): New function.
  12463. * src/DefaultPeerStorage.cc
  12464. (CalculateStat): Added _now variable.
  12465. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12466. and Peer::calculateUploadSpeed(const struct timeval&)
  12467. Drop connection if no request or piece message is exchanged in
  12468. a certain interval.
  12469. * src/DefaultBtInteractive.h
  12470. (btRuntime): New variable.
  12471. (inactiveCheckPoint): New variable.
  12472. (checkActiveInteraction): New function.
  12473. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12474. request or piece message is received.
  12475. (checkActiveInteraction): New function.
  12476. (doInteractionProcessing): Call checkActiveInteraction.
  12477. Fixed the bug that causes remote Metalink and Torrent files are not
  12478. processed.
  12479. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12480. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12481. Changed format of log file.
  12482. * src/SimpleLogger.cc
  12483. * Release 0.11.0
  12484. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12485. * src/AbstractCommand.cc
  12486. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12487. MSG_MAX_TRY from error to info.
  12488. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12489. * src/message.h
  12490. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12491. (MSG_DOWNLOAD_ABORTED): Added %s.
  12492. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12493. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12494. * src/PeerAbstractCommand.cc
  12495. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12496. * src/Request.h
  12497. (cookieBox): Made ShardHandle.
  12498. * src/RequestGroup.h, src/RequestGroup.cc
  12499. (createNextCommandWithAdj): New function.
  12500. * src/FileAllocationCommand.cc
  12501. (executeInternal): Use createNextCommandWithAdj().
  12502. * src/CheckIntegrityCommand.cc
  12503. (executeInternal): Use createNextCommandWithAdj().
  12504. Added --load-cookies command-option.
  12505. * src/OptionHandlerFactory.cc
  12506. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12507. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12508. Now aria2 can handle cookie's expiration date.
  12509. * src/Cookie.h (expires): Changed its type to time_t.
  12510. * src/main.cc: Added --load-cookies command-line option.
  12511. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12512. * src/Util.h, src/Util.cc (httpGMT): New function.
  12513. * src/Request.cc (Request): Initialize cookieBox using
  12514. CookieBoxFactory.
  12515. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12516. * src/CookieParser.h, src/CookieParser.cc: New class.
  12517. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12518. * src/HttpResponseCommand.cc
  12519. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12520. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12521. download.
  12522. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12523. Added -j command-line option.
  12524. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12525. * src/main.cc
  12526. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12527. Rewritten using stringstream.
  12528. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12529. Rewritten using stringstream.
  12530. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12531. Make download size shown in MB, KB.
  12532. * src/ConsoleDownloadEngine.h (sendStatistics)
  12533. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12534. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12535. Accept incoming connections if download rate is low.
  12536. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12537. (_lowestSpeedLimit): New variable.
  12538. (setLowestSpeedLimit): New function.
  12539. (execute): Accept incoming connections if download rate is low.
  12540. MAX_PEERS is ignored in this case.
  12541. Disable PREF_OUT in multiple concurrent download:
  12542. * src/RequestGroup.h, src/RequestGroup.cc
  12543. (setUserDefinedFilename): New function.
  12544. * src/DownloadEngineFactory.cc
  12545. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12546. concurrent download.
  12547. * src/DefaultSegmentManFactory.cc
  12548. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12549. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12550. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12551. Added its overloaded method.
  12552. * src/RequestGroup.h
  12553. (_numConcurrentCommand): New variable.
  12554. (setNumConcurrentCommand): New function.
  12555. * src/RequestGroup.cc
  12556. Abort download if same file is being downloaded concurrently.
  12557. * src/RequestGroup.h, src/RequestGroupMan.cc
  12558. (isSameFileBeingDownloaded): New function.
  12559. * src/HttpResponseCommand.cc (executeInternal)
  12560. * src/FtpNegotiateCommand.cc (recvSize)
  12561. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12562. * main.cc: Added help message for -i option.
  12563. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12564. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12565. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12566. * src/MetalinkEntry.h
  12567. (checksum): Changed to ChecksumHandle
  12568. * src/MetalinkRequestInfo.cc
  12569. (checksum): Changed to ChecksumHandle
  12570. * src/File.cc
  12571. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12572. * src/common.h
  12573. (DIR_OPEN_MODE): New definition
  12574. * src/RequestGroup.cc
  12575. (prepareForNextAction): Added an argument.
  12576. * src/message.h
  12577. (MSG_GOOD_CHECKSUM): New definition
  12578. (MSG_BAD_CHECKSUM): New definition
  12579. * src/HttpResponseCommand.cc
  12580. (handleDefaultEncoding): Continue download sequence in new
  12581. non-segmented download.
  12582. * src/FileAllocationEntry.h
  12583. (_nextDownloadCommand): New variable.
  12584. * src/DownloadCommand.cc
  12585. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12586. available.
  12587. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12588. * src/IteratableChecksumValidator.h,
  12589. src/IteratableChecksumValidator.cc: New class.
  12590. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12591. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12592. Change file mode to 666:
  12593. * src/common.h (OPEN_MODE): New definition.
  12594. * src/File.cc
  12595. * src/Util.cc
  12596. * src/Directry.cc
  12597. * src/AbstractDiskWriter.cc
  12598. Change the level of log message "download aborted" to debug:
  12599. * src/PeerAbstractCommand.cc (execute)
  12600. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12601. * src/TrackerWatcherCommand.cc
  12602. (createCommand): Sleep some seconds after request failed.
  12603. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12604. then abort tracker request.
  12605. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. * Added the simultaneous download feature.
  12607. * src/main.cc: Print "Exception caught: " when exception is caught.
  12608. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12609. * src/ActivePeerConnectionCommand.cc
  12610. * src/PeerInteractionCommand.cc
  12611. * src/BtRuntime.h
  12612. (cuidCounter): Removed.
  12613. (getNewCuid): Removed.
  12614. * src/DownloadEngineFactory.cc
  12615. * src/PeerListenCommand.cc
  12616. * src/TrackerUpdateCommand.cc
  12617. * src/PeerInitiateConnectionCommand.cc
  12618. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. * src/PeerAbstractCommand.cc
  12620. (onAbort): Call PeerStorage::returnPeer()
  12621. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12622. (incomingPeers): New variable.
  12623. (addIncomingPeer): New function.
  12624. (returnPeer): New function.
  12625. (onErasingPeer): New function.
  12626. (addPeer): push_back -> push_front
  12627. (getActivePeers): Rewritten.
  12628. (calculateStat): Rewritten.
  12629. * src/PeerStorage.h
  12630. (TransferStat::copy): New function.
  12631. (TransferStat::TransferStat): New function.
  12632. (TransferStat::operator=): New function.
  12633. (addIncomingPeer): New function.
  12634. (returnPeer): New function.
  12635. * src/PeerListenCommand.cc
  12636. (execute): Use PeerStorage::addIncomingPeer() instead of
  12637. Peer::addPeer().
  12638. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. Connect to a peer actively when download speed is lower than specified
  12640. speed in torrent download:
  12641. * src/ActivePeerConnectionCommand.h: New class.
  12642. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12644. * src/main.cc: Fixed the bug that prevents download if .netrc
  12645. doesn't exist.
  12646. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12647. To cache resolved hostname:
  12648. * src/AbstractCommand.h, src/AbstractCommand.cc
  12649. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12650. Added dns cache.
  12651. * src/FtpInitiateConnectionCommand.cc
  12652. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12653. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12654. NameResolver working without ares.
  12655. * src/TorrentRequestInfo.cc
  12656. (execute): Don't cache dns in torrent download.
  12657. * src/HttpInitiateConnectionCommand.cc
  12658. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12659. * src/DNSCache.h: New class.
  12660. * src/UrlRequestInfo.cc
  12661. (execute): Use dns cache.
  12662. In http request, suppress port number in http request header if port
  12663. is 80 or 443:
  12664. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12665. request header if port is 80 or 443.
  12666. (createProxyRequest): Allways send port number.
  12667. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12668. To add the command-line option which disables netrc support:
  12669. * src/OptionHandlerFactory.cc
  12670. (createOptionHandlers): Added PREF_NO_NETRC.
  12671. * src/main.cc: Added -n option.
  12672. * src/prefs.h (PREF_NO_NETRC): New definition.
  12673. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12674. V_TRUE.
  12675. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12676. is V_FALSE. This may get configurable in the future release.
  12677. To clear peer's error status by time basis:
  12678. * src/PeerAbstractCommand.cc
  12679. (onAbort): Call Peer::startBadCondition().
  12680. * src/Peer.h, src/Peer.cc
  12681. (error): Removed.
  12682. (_badConditionStartTime): New variable.
  12683. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12684. (startBadCondition): New function.
  12685. (isGood): New function.
  12686. * src/DefaultPeerStorage.cc
  12687. (addPeer): Use Peer::isGood().
  12688. (FindFinePeer): Use Peer::isGood().
  12689. Always include port number in http request header:
  12690. * src/HttpRequest.cc (getHostText): Always include port number in
  12691. http request header.
  12692. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. To the ability to read options from a config file:
  12694. * src/main.cc: Command-line parameter validation is delegated to
  12695. OptionHandler class.
  12696. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12697. * src/Option.h, src/Option.cc (clear): New function.
  12698. * src/OptionParser.h, src/OptionParser.cc: New class.
  12699. * src/OptionHandler.h: New class.
  12700. * src/NameMatchOptionHandler.h: New class.
  12701. * src/OptionHandlerImpl.h: New classes.
  12702. * src/prefs.h: '_' -> '-'
  12703. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12704. (FTP_PASV): New definition.
  12705. * src/Util.h, src/Util.cc (getRealSize): New function.
  12706. To disable netrc support if .netrc file does not have correct
  12707. permissions:
  12708. * src/File.h, src/File.cc (mode): New function.
  12709. To prevent confidential information to be logged:
  12710. * src/HttpConnection.h, src/HttpConnection.cc
  12711. (eraseConfidentialInfo): New function.
  12712. (sendRequest): Call eraseConfidentialInfo().
  12713. (sendProxyRequest): Call eraseConfidentialInfo().
  12714. * src/main.cc: Validate permissions of .netrc file.
  12715. To add --user-agent command-line option:
  12716. * src/main.cc: Added new command line option: --user-agent
  12717. * src/prefs.h (PREF_USER_AGENT): New definition.
  12718. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12719. parameter to HttpRequest object.
  12720. * src/AbstractProxyRequestCommand.cc
  12721. (executeInternal): Set user-agent option parameter to HttpRequest
  12722. object.
  12723. Marged the patches from Dan Fandrich.
  12724. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12725. Use filename and size from Metalink file instead of sending HEAD
  12726. request:
  12727. * src/UrlRequestInfo.h
  12728. (_filename): New variable.
  12729. (_totalLength): New variable.
  12730. (setTotalLength): New variable.
  12731. (setFilename): New variable.
  12732. * src/MetalinkRequestInfo.cc
  12733. (execute): Set filename and size to UrlRequestInfo
  12734. * src/UrlRequestInfo.cc
  12735. (execute): Use filename and size from Metalink instead of seding
  12736. HEAD request to servers.
  12737. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12738. To add the ability to resume downloading a partially downloaded file
  12739. which is downloaded from the beginning:
  12740. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12741. takes this role.
  12742. * src/main.cc: Added -c option.
  12743. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12744. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12745. * src/prefs.h (PREF_CONTINUE): New definition.
  12746. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12747. * src/DefaultDiskWriter.cc
  12748. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12749. * src/AbstractDiskWriter.h
  12750. (glowFileAllocator): New variable.
  12751. * src/AbstractDiskWriter.cc
  12752. (openExistingFile): Now preallocate file space from the end of the
  12753. existing file if totalLength argument is specified and grater than 0.
  12754. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12755. to download exists in local, continue the download of the file.
  12756. --allow-overwrite=true is assumed in this context.
  12757. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12758. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12759. Throw exception if --check-integrity=true is specified but chunk
  12760. checksums are not provided:
  12761. * src/UrlRequestInfo.cc
  12762. Do not print URLs to stdout:
  12763. * src/UrlRequestInfo.cc
  12764. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12765. * src/Request.h: Use AuthResolver to get authentication information.
  12766. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12767. set to RequestFactory object.
  12768. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12769. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12770. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12771. create Request object.
  12772. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12773. To integrate Netrc into exsiting classes:
  12774. * src/Request.h
  12775. (_userDefinedAuthConfig): New variable.
  12776. (findNetrcAuthenticator): New function.
  12777. (segment): Removed.
  12778. (setUserDefinedAuthConfig): New function.
  12779. (resolveHttpAuthConfigItem): New function.
  12780. (resolveFtpAuthConfigItem): New function.
  12781. (resolveHttpProxyAuthConfigItem): New function.
  12782. * src/HttpRequest.h
  12783. (authConfig): Removed.
  12784. (proxyAuthConfig): Removed.
  12785. (setAuthConfig): Removed.
  12786. (setProxyAuthConfig): Removed.
  12787. * src/UrlRequest.h
  12788. (getHeadResult): Added a parameter: authConfigHandle
  12789. * src/common.h
  12790. (SingletonHolder.h): New include.
  12791. * src/main.cc
  12792. (Netrc.h): New include.
  12793. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12794. Added initial value of PREF_NETRC_PATH.
  12795. Added the initialization of netrc.
  12796. * src/AuthConfig.h: New class.
  12797. * src/prefs.h
  12798. (PREF_NETRC_PATH): New definition.
  12799. * src/HttpAuthConfig.h: Removed.
  12800. * src/Netrc.cc
  12801. (getRequiredNextToken): New function.
  12802. (skipMacdef): New function.
  12803. (parse): Rewritten.
  12804. * src/Netrc.h
  12805. (getRequiredNextToken): New function.
  12806. (skipMacdef): New function.
  12807. * src/Util.h, src/Util.cc
  12808. (getHomeDir): New function.
  12809. * src/TrackerWatcherComand.cc
  12810. (createRequestCommand): Use AuthConfig.
  12811. * src/FtpConnection.cc
  12812. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12813. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12814. * src/Request.cc
  12815. (findNetrcAuthenticator): New function.
  12816. (resolveHttpAuthConfigItem): New function.
  12817. (resolveFtpAuthConfigItem): New function.
  12818. (resolveHttpProxyAuthConfigItem): New function.
  12819. * src/UrlRequestInfo.cc: Use AuthConfig.
  12820. * src/HttpRequest.cc
  12821. (createRequest): Use authConfig.
  12822. (getProxyAuthString): Use authConfig.
  12823. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12824. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12825. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12826. To reduce overhead to find commands whose socket is either
  12827. readable or writable in the download engine loop:
  12828. * src/Command.h, src/Command.cc
  12829. (STATUS): New enum.
  12830. (status): New variable.
  12831. (statusMatch): New function.
  12832. (setStatusActive): New function.
  12833. (setStatusInactive): New function.
  12834. * src/DownloadEngine.h, src/DownloadEngine.cc
  12835. (executeCommand): New function.
  12836. (run): Simplified.
  12837. (waitData): Call Command::setStatusActive() when command's socket is
  12838. readable or writable.
  12839. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12840. To handle Segment as SegmentHandle:
  12841. * src/AbstractCommand.cc (execute): Rewritten.
  12842. * src/SegmentMan.h: Segment -> SegmentHandle
  12843. Introducded HttpResponse class, HttpRequest class to improve code
  12844. extensiveness and make it clear:
  12845. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12846. HttpResponse class.
  12847. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12848. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12849. * src/HttpConnection.cc: Contruction of http request were moved to
  12850. HttpRequest class.
  12851. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12852. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12853. * src/HttpAuthConfig.h: New class.
  12854. * src/Range.h: New class.
  12855. To make FtpTunnel{Request, Response}Command and
  12856. HttpProxy{Request, Response}Command derived from
  12857. AbstractProxy{Request, Response}Command:
  12858. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12859. Derived from AbstractProxyRequestCommand class.
  12860. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12861. Derived from AbstractProxyResponseCommand class.
  12862. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12863. Derived from AbstractProxyRequestCommand class.
  12864. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12865. Derived from AbstractProxyResponseCommand class.
  12866. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12867. : New class.
  12868. * src/AbstractProxyResponseCommand.h,
  12869. src/AbstractProxyResponseCommand.cc: New class.
  12870. To add netrc support:
  12871. * src/Netrc.h, src/Netrc.cc: New class.
  12872. * src/Util.h, src/Util.cc (split): New function.
  12873. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12874. "Content-Range" header instead of "Range" header.
  12875. * src/HttpHeader.h
  12876. (getStatus): Removed.
  12877. (setStatus): Removed.
  12878. * src/Segment.h
  12879. (getPositionToWrite): New function.
  12880. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12881. * src/HttpHeader.h
  12882. (Range.h): New include.
  12883. (status): New variable.
  12884. (HttpHeader): Initialized status with 0.
  12885. (getStatus): New function.
  12886. (setStatus): New function.
  12887. (getRange): New function.
  12888. (HttpHeaderHandle): New function.
  12889. * src/HttpHeader.cc
  12890. (getRange): New function.
  12891. * src/Request.h
  12892. (RequestWeakHandle): New definition.
  12893. * src/HttpConnection.h
  12894. (HttpConnectionHandle): New type definition.
  12895. * src/HttpConnection.cc
  12896. (receiveResponse): Set HTTP status to headers.
  12897. * src/main.cc
  12898. (showUsage): Fixed typo.
  12899. * src/Segment.h
  12900. (SegmentHandle): New type definition.
  12901. * src/BitfieldMan.h
  12902. (getMissingUnusedLength): New function.
  12903. * src/BitfieldMan.cc
  12904. (getMissingUnusedLength): New function.
  12905. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12906. To fix static initialization order problem:
  12907. * src/BitfieldManFactory.h
  12908. (defaultRandomizer): Removed.
  12909. (factory): New variable.
  12910. (getNewFactory): Removed.
  12911. (getFactoryInstance): New function.
  12912. (setDefaultRandomizer): Rewritten.
  12913. (getDefaultRandomizer): Rewritten.
  12914. * src/BitfieldManFactory.cc
  12915. (defaultRandomizer): Removed.
  12916. (factory): Initialized to 0.
  12917. (BitfieldManFactory): Initialized randomizer to 0.
  12918. * src/DefaultPieceStorage.cc
  12919. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12920. * src/Peer.cc
  12921. (Peer): getNewFactory() -> getFactoryInstance()
  12922. * src/SegmentMan.cc
  12923. (initBitfield): getNewFactory() -> getFactoryInstance()
  12924. * src/Piece.cc
  12925. (Piece): getNewFactory() -> getFactoryInstance()
  12926. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12927. To fix the bug that causes crash on Max OS X:
  12928. * src/SimpleRandomizer.h
  12929. (getInstance): Create new instance if the static variable is null.
  12930. * src/SimpleRandomizer.cc
  12931. (randomizer): Initialized to 0.
  12932. * src/BitfieldManFactory.h
  12933. (getNewFactory): Removed the call to setRandomizer().
  12934. To fix the miscalculation of the range of checksum:
  12935. * src/BitfieldMan.h
  12936. (isBitSetOffsetRange): New function.
  12937. * src/BitfieldMan.cc
  12938. (isBitSetOffsetRange): New function.
  12939. * src/SegmentMan.cc
  12940. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12941. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12942. * Release 0.10.1
  12943. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12944. To lower CPU usage in BitTorrent download when --max-upload-limit
  12945. command-line option specified:
  12946. * src/DefaultBtMessageDispatcher.cc
  12947. (sendMessages): Calculate uploading speed only when current message
  12948. is uploading data and is not sent yet.
  12949. * src/DefaultPeerStorage.h
  12950. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12951. * src/HttpResponseCommand.cc
  12952. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12953. This fixes compile error in Soralis 10.
  12954. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12955. To fix segfault in Metalink download:
  12956. * src/UrlRequestInfo.h
  12957. (filename): Removed.
  12958. (totalLength): Removed.
  12959. (setTotalLength): Removed.
  12960. (setFilename): Removed.
  12961. * src/MetalinkRequestInfo.cc
  12962. (execute): Do not set filename and totalLength to reqInfo.
  12963. Set chunk checksum to reqInfo if it is not null.
  12964. * src/HttpResponseCommand.cc
  12965. (executeInternal): Fixed filename in log.
  12966. (handleDefaultEncoding): Removed the call to initBitfield() and
  12967. markAllPiecesDone().
  12968. (handleOtherEncoding): Added HEAD method handling.
  12969. * src/FtpNegotiateCommand.cc
  12970. (executeInternal): Added SEQ_HEAD_OK handling.
  12971. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12972. return false.
  12973. * src/FtpNegotiateCommand.h
  12974. (SEQ_HEAD_OK): New definition.
  12975. * src/SegmentMan.cc
  12976. (initBitfield): Delete bitfield.
  12977. (isChunkChecksumValidationReady): Fixed the condition.
  12978. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12979. works fine.
  12980. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12981. * src/Xml2MetalinkProcessor.h
  12982. (xpathExists): New function.
  12983. * src/Xml2MetalinkProcessor.cc
  12984. (xpathExists): New function.
  12985. Not to send HEAD request if filename and size are available in Metalink
  12986. file:
  12987. * src/UrlRequestInfo.h
  12988. (filename): New variable.
  12989. (totalLength): New variable.
  12990. (setTotalLength): New function.
  12991. (setFilename): New function.
  12992. * src/MetalinkRequestInfo.cc
  12993. (execute): Set filename and size to UrlRequestInfo.
  12994. * src/MetalinkEntry.cc
  12995. (MetalinkEntry): Initialize size with 0.
  12996. * src/UrlRequestInfo.cc
  12997. (execute): Set filename and size to SegmentMan.
  12998. Not to download rest of the files after selected files are downloaded
  12999. in BitTorrent:
  13000. * src/PieceStorage.h
  13001. (allDownloadFinished): New function.
  13002. * src/DefaultBtAnnounce.cc
  13003. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13004. downloadFinished.
  13005. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13006. * src/DefaultPieceStorage.cc
  13007. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13008. Commented out the call to finishSelectiveDownloadingMode().
  13009. (downloadFinished): Call isFilteredAllBitSet() instead of
  13010. isAllBitSet().
  13011. (allDownloadFinished): New function.
  13012. * src/DefaultBtInteractive.cc
  13013. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13014. downloadFinished().
  13015. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13016. * src/TorrentDownloadEngine.cc
  13017. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13018. * src/BitfieldMan.h
  13019. (isFilteredAllBitSet): New function.
  13020. * src/ShareRatioSeedCriteria.h
  13021. (PieceStorage.h): New include.
  13022. (pieceStorage): New variable.
  13023. (evaluate):
  13024. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13025. * src/BitfieldMan.cc
  13026. (isFilteredAllBitSet): New function.
  13027. (isAllBitSet): Filter is not took into account.
  13028. Rename --force-truncate as --allow-overwrite:
  13029. * src/TorrentRequestInfo.cc
  13030. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13031. * src/main.cc
  13032. (showUsage): --force-truncate -> --allow-overwrite
  13033. * src/message.h
  13034. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13035. * src/prefs.h
  13036. (PREF_FORCE_TRUNCATE): Removed.
  13037. (PREF_ALLOW_OVERWRITE): New definition.
  13038. * src/SegmentMan.cc
  13039. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13040. * src/MetalinkRequestInfo.cc
  13041. (execute): Queueing message are now logged in info level.
  13042. * src/common.h
  13043. (LONG_LONG_MAX): Removed.
  13044. (LONG_LONG_MIN): Removed.
  13045. * src/HttpResponseCommand.cc
  13046. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13047. * src/FtpNegotiateCommand.cc
  13048. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13049. * src/main.cc
  13050. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13051. command-line option.
  13052. (main): Added --check-integriy and --realtime-chunk-checksum
  13053. command-line option.
  13054. --force-truncate -> --allow-overwrite
  13055. Set initial value of --check-integrity option to false.
  13056. Don't show usage when error occurs while persing command-line options.
  13057. Removed deprecated --upload-limit option.
  13058. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13060. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13061. * src/BtAllowedFastMessage.cc:
  13062. * src/BtBitfieldMessage.cc
  13063. * src/BtCancelMessage.cc
  13064. * src/BtChokeMessage.cc
  13065. * src/BtHaveAllMessage.cc
  13066. * src/BtHaveMessage.cc
  13067. * src/BtHaveNoneMessage.cc
  13068. * src/BtInterestedMessage.cc
  13069. * src/BtNotInterestedMessage.cc
  13070. * src/BtPieceMessage.cc
  13071. * src/BtPortMessage.cc
  13072. * src/BtRejectMessage.cc
  13073. * src/BtRequestMessage.cc
  13074. * src/BtSuggestPieceMessage.cc
  13075. * src/BtUnchokeMessage.cc
  13076. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13077. files are affected.
  13078. * src/ChunkChecksumValidator.cc
  13079. * src/SegmentMan.cc
  13080. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13081. To add chunk checksum validation:
  13082. * src/MetalinkEntry.h
  13083. (MetalinkChunkChecksum.h): New include.
  13084. (chunkChecksum): New variable.
  13085. * src/Request.h
  13086. (method): New variable.
  13087. (setMethod): New function.
  13088. (getMethod): New function.
  13089. (METHOD_GET): New static constant.
  13090. (METHOD_HEAD): New static constant.
  13091. * src/Xml2MetalinkProcessor.h
  13092. (getPieceHash): New function.
  13093. * src/PieceStorage.h
  13094. (markAllPiecesDone): New function.
  13095. (checkIntegrity): New function.
  13096. * src/FileAllocator.h
  13097. (NullFileAllocationMonitor.h): New include.
  13098. (FileAllocator): Initialize fileAllocationMonitor with new
  13099. NullFileAllocationMonitor().
  13100. * src/MultiDiskAdaptor.h
  13101. (messageDigest.h): Remove include.
  13102. (ctx): Removed.
  13103. (hashUpdate): Added ctx.
  13104. (MultiDiskAdaptor): Removed ctx.
  13105. (sha1Sum): Renamed as messageDigest.
  13106. (messageDigest): New function.
  13107. * src/UrlRequestInfo.h
  13108. (HeadResult): New class.
  13109. (digestAlgo): New variable.
  13110. (chunkChecksumLength): New variable.
  13111. (chunkChecksums): New variable.
  13112. (getHeadResult): New function.
  13113. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13114. (setDigestAlgo): New function.
  13115. (setChunkChecksumLength): New function.
  13116. (setChunkChecksums): New function.
  13117. * src/DefaultPieceStorage.cc
  13118. (DiskAdaptorWriter.h): New include.
  13119. (ChunkChecksumValidator.h): New include.
  13120. (markAllPiecesDone): New function.
  13121. (checkIntegrity): New function.
  13122. * src/DefaultBtContext.h
  13123. (getPieceHashes): New function.
  13124. * src/TorrentRequestInfo.cc
  13125. (execute): Try to validate chunk checksum if file already exists and
  13126. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13127. * src/messageDigest.h
  13128. (~MessageDigestContext): Added digestFree().
  13129. * src/MetalinkRequestInfo.cc
  13130. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13131. * src/DiskAdaptor.h
  13132. (messageDigest.h): New include.
  13133. (sha1Sum): Renamed as messageDigest.
  13134. (messageDigest): New function.
  13135. * src/DownloadCommand.h
  13136. (PeerStat.h): New include.
  13137. (maxDownloadSpeedLimit): New variable.
  13138. (startupIdleTime): New variable.
  13139. (lowestDownloadSpeedLimit): New variable.
  13140. (peerStat): New variable.
  13141. (setMaxDownloadSpeedLimit): New function.
  13142. (setStartupIdleTime): New function.
  13143. (setLowestDownloadSPeedLimit): New function.
  13144. * src/BtContext.h
  13145. (getPieceHashes): New function.
  13146. * src/main.cc
  13147. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13148. option to true for testing purpose.
  13149. * src/BtPieceMessage.cc
  13150. (checkPieceHash): Use messageDigest
  13151. * src/DownloadEngine.cc
  13152. (SetDescriptor): Removed.
  13153. (AccumulateActiveCommand): Removed.
  13154. (waitData): Rewritten.
  13155. (updateFdSet): Rewritten.
  13156. * src/MultiDiskAdaptor.cc
  13157. (hashUpdate): Added ctx.
  13158. (sha1Sum): Renamed as messageDigest.
  13159. (messageDigest): New function.
  13160. * src/BitfieldMan.h
  13161. (isBitRangeSet): New function.
  13162. (unsetBitRange): New function.
  13163. * src/ByteArrayDiskWriter.h
  13164. (sha1Sum): Renamed as messageDigest.
  13165. (messageDigest): New function.
  13166. * src/ConsoleDownloadEngine.cc
  13167. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13168. * src/DiskWriter.h
  13169. (messageDigest.h): New include.
  13170. (sha1Sum): Renamed as messageDigest.
  13171. (messageDigest): New function.
  13172. * src/ChunkChecksumValidator.h: New class.
  13173. * src/DiskAdaptorWriter.h: New class.
  13174. * src/prefs.h
  13175. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13176. (PREF_CHECK_INTEGRITY): New definition.
  13177. * src/HttpResponseCommand.cc
  13178. (handleDefaultEncoding): Added method "HEAD" handling.
  13179. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13180. (handleOtherEncoding):
  13181. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13182. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13183. startupIdleTime, lowestDownloadSpeedLimit to command.
  13184. * src/SegmentMan.h
  13185. (getSegmentEntryByIndex): New function.
  13186. (getSegmentEntryByCuid): New function.
  13187. (getSegmentEntryIteratorByCuid): New function.
  13188. (diskWriter): DiskWriter -> DiskWriterHandle
  13189. (pieceHashes): New variable.
  13190. (chunkHashLength): New variable.
  13191. (digestAlgo): New variable.
  13192. (FindPeerStat): Removed.
  13193. (getPeerStat): Rewritten.
  13194. (markAllPiecesDone): New function.
  13195. (checkIntegrity): New function.
  13196. (tryChunkChecksumValidation): New function.
  13197. (isChunkChecksumValidationReady): New function.
  13198. * src/BitfieldMan.cc
  13199. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13200. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13201. blocks to 0.
  13202. (isBitRangeSet): New function.
  13203. (unsetBitRange): New function.
  13204. * src/FtpNegotiateCommand.cc
  13205. (executeInternal): Set maxDownloadSpeedLimit,
  13206. startupIdleTime, lowestDownloadSpeedLimit to command.
  13207. (recvSize): Added method "HEAD" handling.
  13208. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13209. * src/AbstractSingleDiskAdaptor.cc
  13210. (sha1Sum): Renamed as messageDigest.
  13211. (messageDigest): New function.
  13212. * src/AbstractSingleDiskAdaptor.h
  13213. (sha1Sum): Renamed as messageDigest.
  13214. (messageDigest): New function.
  13215. * src/Util.h
  13216. (indexRange): New function.
  13217. * src/MetalinkEntry.cc
  13218. (MetalinkEntry): Initialized chunkChecksum to 0.
  13219. * src/ShaVisitor.cc
  13220. (~ShaVisitor): Removed the call to ctx.digestFree().
  13221. * src/SegmentMan.cc
  13222. (ChunkChecksumValidator.h): New include.
  13223. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13224. to DIGEST_ALGO_SHA1.
  13225. (~SegmentMan): Removed diskWriter.
  13226. (FindSegmentEntryByIndex): Removed.
  13227. (FindSegmentEntryByCuid): Removed.
  13228. (checkoutSegment): Rewritten.
  13229. (findSlowerSegmentEntry): Rewritten.
  13230. (getSegment): Rewritten.
  13231. (updateSegment): Rewritten.
  13232. (completeSegment): Rewritten.
  13233. (markAllPiecesDone): New function.
  13234. (checkIntegrity): New function.
  13235. (isChunkChecksumValidationReady): New function.
  13236. (tryChunkChecksumValidation): New function.
  13237. * src/Xml2MetalinkProcessor.cc
  13238. (getEntry): Get size and set it to entry.
  13239. Get chunk checksum and set it to entry.
  13240. (getPieceHash): New function.
  13241. * src/Util.cc
  13242. (sha1Sum): Removed ctx.digestFree()
  13243. (fileChecksum): Removed ctx.digestFree()
  13244. (indexRange): New function.
  13245. * src/Request.cc
  13246. (METHOD_GET): New variable.
  13247. (METHOD_HEAD): New variable.
  13248. (Request): Added method.
  13249. * src/UrlRequestInfo.cc
  13250. (FatalException.h): New include.
  13251. (message.h): New include.
  13252. (operator<<): Added operator<< for class HeadResult.
  13253. (getHeadResult): New function.
  13254. (execute): Get filename and size in separate download engine.
  13255. * src/ChunkChecksumValidator.cc: New class.
  13256. * src/DownloadCommand.cc:
  13257. (DownloadCommand): Added peerStat.
  13258. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13259. the value from Option.
  13260. The buffer size is now 16KB.
  13261. Use peerStat member instead of getting it from SegmentMan.
  13262. Use startupIdleTime member instead of gettingit from Option.
  13263. Added chunk checksum validation.
  13264. * src/AbstractDiskWriter.cc
  13265. (AbstractDiskWriter): Removed ctx.
  13266. (~AbstractDiskWriter): Removed ctx.digestFree()
  13267. (writeDataInternal): Returns the return value of write.
  13268. (readDataInternal): Returns the return value of read.
  13269. (sha1Sum): Renamed as messageDigest
  13270. (messageDigest): New function.
  13271. * src/AbstractDiwkWriter.h
  13272. (messageDigest.h): Removed include.
  13273. (ctx): Removed.
  13274. (sha1Sum): Renamed as messageDigest
  13275. (messageDigest): New function.
  13276. * src/DefaultPieceStorage.h
  13277. (markAllPiecesDone): New function.
  13278. (checkIntegrity): New function.
  13279. * src/NullFileAllocationMonitor.h: New class.
  13280. * src/MetalinkChunkChecksum.h: New class.
  13281. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. To decrease CPU usage in bittorrent download, calculation results in
  13283. BitfieldMan were cached and realtime fetching PeerObject was removed
  13284. with WeakHandle introduced. Option values are set to the objects
  13285. by setter before download begins.
  13286. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13287. * src/DefaultBtRequestFactory.h
  13288. (dispatcher): BtMessageDispatcherHandle ->
  13289. BtMessageDispatcherWeakHandle.
  13290. (messageFactory): New variable.
  13291. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13292. BtMessageDispatcherWeakHandle.
  13293. (setBtMessageFactory): New function.
  13294. * src/DefaultBtMessageDispatcher.cc:
  13295. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13296. from Option.
  13297. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13298. feating the value from Option.
  13299. Use messageFactory member.
  13300. * src/PeerInteractionCommand.cc
  13301. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13302. Add reverse dependencies to factory object.
  13303. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13304. dispatcher.
  13305. Set messageFactory to receiver.
  13306. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13307. btInteractive.
  13308. Set receiver to peerObject.
  13309. Set maxDownloadSpeedLimit to this.
  13310. (executeInternal): Use maxDownloadSpeedLimit member.
  13311. * src/BtChokeMessage.cc
  13312. (doReceivedAction): Use dispatcher, requestFactory member.
  13313. (onSendComplete): Use dispatcher member.
  13314. * src/PeerInteractionCommand.h
  13315. (maxDownloadSpeedLimit): New variable.
  13316. * src/DefaultBtMessageReceiver.h
  13317. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13318. (dispatcher):
  13319. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13320. (messageFactory): New variable.
  13321. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13322. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13323. (setDispatcher):
  13324. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13325. (setBtMessageFactory): New function.
  13326. * src/DefaultBtInteractive.cc
  13327. (initiateHandshake): Use messageFactory member.
  13328. (addBitfieldMessageToQueue): Use messageFactory member.
  13329. (addAllowedFastMessageToQueue): Use messageFactory member.
  13330. (decideChoking): Use messageFactory member.
  13331. (checkHave): Use messageFactory member.
  13332. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13333. (receiveMessages): Use maxDownloadSpeedLimit member.
  13334. (decideInterest): Use messageFactory member.
  13335. * src/BtRequestMessage.cc
  13336. (doReceivedAction): Use messageFactory, dispatcher member.
  13337. (onQueued): Use dispatcher member.
  13338. * src/BtPieceMessage.cc
  13339. (doReceivedAction): Use dispatcher member.
  13340. (send): Use peerConnection member.
  13341. (onWrongPiece): Use requestFactory member.
  13342. (handleChokingEvent): Use messageFactory, dispatcher member.
  13343. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13344. * src/BtMessageDispatcher.h
  13345. (BtMessageDispatcherWeakHandle): New type definition.
  13346. * src/SimpleBtMessage.cc
  13347. (send): Use peerConnection member.
  13348. * src/BtRejectMessage.cc
  13349. (doReceivedAction): Use dispatcher member.
  13350. * src/DefaultBtMessageDispatcher.h
  13351. (Option.h): Removed include.
  13352. (messageFactory): New variable.
  13353. (option): Removed.
  13354. (maxUploadSpeedLimit): New variable.
  13355. (requestTimeout): New variable.
  13356. (DefaultBtMessageDispatcher): Removed option.
  13357. Added maxUploadSpeedLimit, requestTimeout.
  13358. (setOption): Removed.
  13359. (getOption): Removed.
  13360. (setMaxUploadSpeedLimit): New function.
  13361. (setRequestTimeout): New function.
  13362. (setBtMessageFactory): New function.
  13363. * src/DefaultBtInteractive.h
  13364. (btMessageReceiver):
  13365. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13366. (dispatcher):
  13367. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13368. (btRequestFactory):
  13369. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13370. (peerConnection):
  13371. PeerConnectionHandle -> PeerConnectionWeakHandle
  13372. (messageFactory): New variable.
  13373. (option): Removed.
  13374. (keepAliveInterval): New variable.
  13375. (maxDownloadSpeedLimit): New variable.
  13376. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13377. (setBtMessageReceiver):
  13378. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13379. (setDispatcher):
  13380. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13381. (setBtRequestFactory):
  13382. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13383. (setPeerConnection):
  13384. PeerConnectionHandle -> PeerConnectionWeakHandle
  13385. (setOption): Removed.
  13386. (setKeepAliveInterval): New function.
  13387. (setMaxDownloadSpeedLimit): New function.
  13388. (setBtMessageFactory): New function.
  13389. * src/BitfieldMan.h
  13390. (cachedNumMissingBlock): New variable.
  13391. (cachedNumFilteredBlock): New variable.
  13392. (cachedCompletedLength): New variable.
  13393. (cachedFilteredComletedLength): New variable.
  13394. (cachedFilteredTotalLength): New variable.
  13395. (countMissingBlockNow): New function.
  13396. (countFilteredBlockNow): New function.
  13397. (getFilteredTotalLengthNow): New function.
  13398. (getCompletedLengthNow): New function.
  13399. (getFilteredCompletedLengthNow): New function.
  13400. (updateCache): New function.
  13401. * src/AbstractBtMessage.h
  13402. (BtMessageDispatcher.h): New include.
  13403. (PeerConnection.h): New include.
  13404. (BtRequestFactory.h): New include
  13405. (BtMessageFactory.h): New include.
  13406. (dispatcher): New variable.
  13407. (messageFactory): New variable.
  13408. (peerConnection: New variable.
  13409. (setBtMessageDispatcher): New function.
  13410. (setPeerConnection): New function.
  13411. (setBtMessageFactory): New function.
  13412. (setBtRequestFactory): New function.
  13413. * src/DefaultBtMessageFactory.cc
  13414. (setCommonProperty): Set dispatcher, requestFactory, this,
  13415. peerConnection to msg.
  13416. * src/BtRegistry.h
  13417. (BT_MESSAGE_RECEIVER): New macro.
  13418. * src/PeerConnection.h
  13419. (PeerConnectionWeakHandle): New type definition.
  13420. * src/BtMessageFactory.h
  13421. (BtMessageFactoryWeakHandle): New type definition.
  13422. * src/BitfieldMan.cc
  13423. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13424. cachedCompletedLength, cachedFilteredComletedLength,
  13425. cachedFilteredTotalLength.
  13426. Call updateCache().
  13427. (countMissingBlock): Return cachedNumMissingBlock.
  13428. (countMissingBlockNow): New function.
  13429. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13430. (countFilteredBlockNow): New function.
  13431. (setBit): Call updateCache().
  13432. (unsetBit): Call updateCache().
  13433. (setBitfield): Call updateCache().
  13434. (clearAllBit): Call updateCache().
  13435. (setAllBit): Use setBitInternal instead of setBit.
  13436. Call updateCache().
  13437. (addFilter): Call updateCache().
  13438. (enableFilter): Call updateCache().
  13439. (disableFilter): Call updateCache().
  13440. (clearFilter): Call updateCache().
  13441. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13442. (getFilteredTotalLengthNow): New function.
  13443. (getCompletedLength): Return cachedCompletedLength.
  13444. (getCompletedLengthNow): New function.
  13445. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13446. (getFilteredCompletedLengthNow): New function.
  13447. (updateCache): New function.
  13448. * src/BtMessageReceiver.h
  13449. (BtMessageReceiverWeakHandle): New type definition.
  13450. * src/DefaultBtMessageReceiver.cc
  13451. (receiveHandshake): Use messageFactory member.
  13452. (sendHandshake): Use messageFactory member.
  13453. (receiveMessage): Use messageFactory member.
  13454. * src/DefaultBtMessageFactory.h
  13455. (dispatcher): New variable.
  13456. (requestFactory): New variable.
  13457. (peerConnection): New variablle.
  13458. (setBtMessageDispatcher): New function.
  13459. (setBtRequestFactory): New function.
  13460. (setPeerConnection): New function.
  13461. * src/SharedHandle.h
  13462. (RefCount): New class.
  13463. (WeakHandle): New class.
  13464. * src/PeerObject.h
  13465. (BtMessageReceiver.h): New include.
  13466. (PeerObject): Added btMessageReceiver.
  13467. (btMessageReceiver): New variable.
  13468. * src/Util.cc
  13469. (countBit): Simplified.
  13470. * src/BtCancelMessage.cc
  13471. (doReceivedAction): Use dispatcher member.
  13472. * src/BtRequestFactory.h
  13473. (BtRequestFactoryWeakHandle): New type definition.
  13474. * src/PeerStorage.h
  13475. (downloadSpeed): int -> uint32_t
  13476. (uploadSpeed): int -> uint32_t
  13477. (sessionDownloadLength): long long int -> uint64_t
  13478. (sessionUploadLength): long long int -> uint64_t
  13479. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13480. To add RecoverableException, FatalException:
  13481. * src/AbstractCommand.cc
  13482. (onAbort): Exception -> RecoverableException
  13483. * src/PeerAbstractCommand.h
  13484. (RecoverableException.h): New include.
  13485. (onAbort): Exception -> RecoverableException.
  13486. * src/PeerInteractionCommand.cc
  13487. (onAbort): Exception -> RecoverableException.
  13488. * src/PeerAbstractCommand.cc
  13489. (execute): Exception -> RecoverableException.
  13490. (onAbort): Exception -> RecoverableException.
  13491. * src/TorrentRequestInfo.cc
  13492. (execute): Exception -> RecoverableException.
  13493. * src/MetalinkRequestInfo.cc
  13494. (execute): Exception -> RecoverableException.
  13495. * src/MetaFileUtil.cc: RecoverableException.
  13496. * src/AbstractCommand.h
  13497. (onAbort): Exception -> RecoverableException.
  13498. * src/DlRetryEx.h: Exception -> RecoverableException.
  13499. * src/DlAbortEx.h: Exception -> RecoverableException.
  13500. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13501. * src/Util.cc: Exception -> RecoverableException.
  13502. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13503. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13504. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13505. To make ID static const int
  13506. * src/BtInterestedMessage.h
  13507. (ID_t): Removed.
  13508. (ID): New variable.
  13509. (getId): Made non-const.
  13510. * src/BtPieceMessage.h
  13511. (ID_t): Removed.
  13512. (ID): New variable.
  13513. (getId): Made non-const.
  13514. * src/BtChokeMessage.h
  13515. (ID_t): Removed.
  13516. (ID): New variable.
  13517. (getId): Made non-const.
  13518. * src/BtHaveAllMessage.h
  13519. (ID_t): Removed.
  13520. (ID): New variable.
  13521. (getId): Made non-const.
  13522. * src/BtKeepAliveMessage.h
  13523. (ID_t): Removed.
  13524. (ID): New variable.
  13525. (getId): Made non-const.
  13526. * src/BtHandshakeMessage.h
  13527. (ID): New variable.
  13528. (getId): Made non-const.
  13529. * src/BtSuggestPieceMessage.h
  13530. (ID_t): Removed.
  13531. (ID): New variable.
  13532. (getId): Made non-const.
  13533. * src/BtPortMessage.h
  13534. (ID_t): Removed.
  13535. (ID): New variable.
  13536. (getId): Made non-const.
  13537. * src/AbstractBtMessage.h
  13538. (id): Removed.
  13539. (AbstractBtMessage): Removed id.
  13540. (getId): Removed.
  13541. * src/BtHaveMessage.h
  13542. (ID_t): Removed.
  13543. (ID): New variable.
  13544. (getId): Made non-const.
  13545. * src/BtAllowedFastMessage.h
  13546. (ID_t): Removed.
  13547. (ID): New variable.
  13548. (getId): Made non-const.
  13549. * src/BtCancelMessage.h
  13550. (ID_t): Removed.
  13551. (ID): New variable.
  13552. (getId): Made non-const.
  13553. * src/BtNotInterestedMessage.h
  13554. (ID_t): Removed.
  13555. (ID): New variable.
  13556. (getId): Made non-const.
  13557. * src/BtChokeMessage.h
  13558. (ID_t): Removed.
  13559. (ID): New variable.
  13560. (getId): Made non-const.
  13561. * src/BtRejectMessage.h
  13562. (ID_t): Removed.
  13563. (ID): New variable.
  13564. (getId): Made non-const.
  13565. * src/BtBitfieldMessage.h
  13566. (ID_t): Removed.
  13567. (ID): New variable.
  13568. (getId): Made non-const.
  13569. * src/BtUnchokeMessage.h
  13570. (ID_t): Removed.
  13571. (ID): New variable.
  13572. (getId): Made non-const.
  13573. * src/BtRequestMessage.h
  13574. (ID_t): Removed.
  13575. (ID): New variable.
  13576. (getId): Made non-const.
  13577. * src/BtHaveMessage.h
  13578. (ID_t): Removed.
  13579. (ID): New variable.
  13580. (getId): Made non-const.
  13581. To add --force-truncate command-line option and a check whether
  13582. the file already exists:
  13583. * src/DirectDiskAdaptor.h
  13584. (getFilePath): Made virtual public.
  13585. * src/MultiDiskAdaptor.h
  13586. (File.h): New include.
  13587. (DiskWriterEntry::fileEntry): Made private.
  13588. (DiskWriterEntry::fileExists): New function.
  13589. (DiskWriterEntry::getFileEntry): New function.
  13590. (fileExists): New function.
  13591. (getFilePath): New function.
  13592. * src/TorrentRequestInfo.cc
  13593. (FatalException.h): New include.
  13594. (message.h): New include.
  13595. (RecoverableException.h): New include.
  13596. (execute): Added a check whether file is already exists or not.
  13597. * src/DiskAdaptor.h
  13598. (fileExists): New function.
  13599. (getFilePath): New function.
  13600. * src/main.cc
  13601. (showUsage): Added an explanation of --force-truncate command-line
  13602. option.
  13603. (main): Added --force-truncate command-line option.
  13604. * src/Exception.h
  13605. (setMsg): buf[256] -> buf[1024]
  13606. * src/CopyDiskWriter.h
  13607. (getFilePath): Made public virtual.
  13608. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13609. (fileExists): New function.
  13610. * src/DownloadEngineFactory.cc
  13611. (newTorrentConsoleEngine): Don't open file here.
  13612. * src/message.h
  13613. (EX_FILE_ALREADY_EXISTS): New definition.
  13614. * src/prefs.h
  13615. (PREF_FOECE_TRUNCATE): New definition.
  13616. * src/HttpResponseCommand.cc
  13617. (handleDefaultEncoding): Added a check whether the file already exists.
  13618. * src/SegmentMan.h
  13619. (fileExists): New function.
  13620. (shouldCancelDownloadForSafety): New function.
  13621. * src/FtpNegotiateCommand.cc
  13622. (recvSize): Added a check whether the file already exists.
  13623. * src/AbstractSingleDiskAdaptor.cc
  13624. (File.h): New include.
  13625. (fileExists): New function.
  13626. * src/AbstractSingleDiskAdaptor.h
  13627. (getFilePath): Removed.
  13628. (fileExists): New function.
  13629. * src/SegmentMan.cc
  13630. (fileExists): New function.
  13631. (shouldCancelDownloadForSafety): New function.
  13632. To fix regression bug in torrent downloading:
  13633. * src/DefaultBtRequestFactory.cc
  13634. (doChokedAction): New function.
  13635. * src/DefaultBtRequestFactory.h
  13636. (doChokedAction): New function.
  13637. * src/DefaultBtMessageDispatcher.cc
  13638. (doChokedAction): Do not delete request if its target is in allowed
  13639. fast set.
  13640. * src/DefaultBtInteractive.cc
  13641. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13642. (sendKeepAlive): Send keep alive message even if the outgoing message
  13643. queue is not empty.
  13644. (decideInterest): Simplified the code.
  13645. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13646. it is already called when BtChokeMessage is received from a peer.
  13647. * src/BtRequestFactory.h
  13648. (doChokedAction): New function.
  13649. To clean up code:
  13650. * src/PeerInteractionCommand.h
  13651. (executeInternal): Added virtual keyword explicitly.
  13652. (prepareForRetry): Added virtual keyword explicitly.
  13653. (prepareForNextPeer): Added virtual keyword explicitly.
  13654. (onAbort): Added virtual keyword explicitly.
  13655. * src/RequestSlot.cc
  13656. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13657. * src/BtPieceMessage.cc
  13658. (doReceivedAction): Added a debug log of piece's bitfield.
  13659. * src/Piece.h
  13660. (getBitfieldLength): New function.
  13661. * src/ByteArrayDiskWriter.cc
  13662. (clear): Added buf = 0 to avoid double free corruption.
  13663. * src/FileAllocator.cc
  13664. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13665. Added cp.reset().
  13666. * src/BitfieldMan.h
  13667. (operator=): Rewritten.
  13668. * src/BitfieldMan.cc
  13669. (BitfieldMan): Initialized bitfield, useBitfield.
  13670. * src/PeerConnection.cc
  13671. (receiveMessage): Added a call to socket->readable() after getting
  13672. message length to avoid possible EOF.
  13673. * src/Util.cc
  13674. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13675. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13676. To add an ability to pre-allocate file space:
  13677. * src/DirectDiskAdaptor.h: Rewritten.
  13678. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13679. * src/MultiDiskAdaptor.h: Rewritten.
  13680. * src/DefaultPieceStorage.cc
  13681. (MultiDiskWriter.h): Removed include.
  13682. (PreAllocationDiskWriter.h): Removed include.
  13683. (FileAllocationMonitor.h): New include.
  13684. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13685. (initStorage): Rewritten.
  13686. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13687. * src/FileAllocator.h: New class.
  13688. * src/FileAllocator.cc: New class.
  13689. * src/FileAllocationMonitor.h: New class.
  13690. * src/FileAllocationMonitor.cc: New class.
  13691. * src/ConsoleFileAllocationMonitor.h: New class.
  13692. * src/ConsoleFileAllocationMonitor.cc: New class.
  13693. * src/AbstractSingleDiskAdaptor.h: New class.
  13694. * src/AbstractSingleDiskAdaptor.cc: New class.
  13695. * src/DiskAdaptor.h
  13696. (Directory.h): Removed include.
  13697. (DiskWriter.h): Removed include.
  13698. (FileEntry.h): Removed include.
  13699. (diskWriter): Removed.
  13700. (DiskAdaptor): Removed diskWriter.
  13701. (openFile): Made pure virtual.
  13702. (closeFile): Made pure virtual.
  13703. (openExistingFile): Made pure virtual.
  13704. (initAndOpenFile): Made pure virtual.
  13705. (writeData): Made pure virtual.
  13706. (readData): Made pure virtual.
  13707. (sha1Sum): Made pure virtual.
  13708. (getStoreDir): Returns const reference of storeDir.
  13709. (DiskAdaptorHandle): New type definition.
  13710. * src/main.cc
  13711. (ConsoleFileAllocationMonitor.h): New include.
  13712. (showUsage): Added default value description of -s option.
  13713. Added the description of --file-allocation option.
  13714. (main): Set default value of --file-allocation option to 'none'.
  13715. Added --file-allocation command-line option.
  13716. Setup FileAllocationMonitorFactory.
  13717. * src/FtpInitiateConnectionCommand.cc
  13718. (executeInternal): Removed diskWriter related processing, which was
  13719. moved to FtpNegotiationCommand.cc.
  13720. * src/DirectDiskAdaptor.cc
  13721. (getFilePath): Made non-const.
  13722. * src/CopyDiskAdaptor.h
  13723. (DiskAdaptor.h): Removed include.
  13724. (DiskWriter.h): Removed include.
  13725. (AbstractSingleDiskAdaptor.h): New include.
  13726. (getFilePath): Made non-const. Added virtual keyword.
  13727. (CopyDiskAdaptor): Removed diskWriter.
  13728. (getTempFile): Returns const reference.
  13729. (CopyDiskAdaptorHandle): New type definition.
  13730. * src/ByteArrayDiskWriter.cc
  13731. (clear): Simplified.
  13732. (initAndOpenFile): Rewritten.
  13733. (openFile): Call initAndOpenFile()
  13734. * src/MultiDiskAdaptor.cc: Rewritten.
  13735. * src/DownloadEngineFactory.cc
  13736. (FileAllocator.h): New include.
  13737. (FileAllocationMonitor.h): New include.
  13738. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13739. create DefaultDiskWriter with file allocator.
  13740. * src/DiskWriter.h
  13741. (initAndOpenFile): Added totalLength argument.
  13742. (openFile): Added totalLength argument.
  13743. * src/prefs.h
  13744. (PREF_FILE_ALLOCATION): New definition.
  13745. (V_PREALLOC): New definition.
  13746. (V_NONE): New definition.
  13747. * src/HttpResponseCommand.cc
  13748. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13749. size.
  13750. * src/FtpNegotiateCommand.cc
  13751. (Util.h): New include.
  13752. (recvSize): Open file here.
  13753. * src/Util.h
  13754. (ullitos): New function.
  13755. * src/CopyDiskWriter.h
  13756. (getFilePath): Made non-const.
  13757. * src/DefaultDiskWriter.h
  13758. (Option.h): New include.
  13759. (totalLength): Removed.
  13760. (DefaultDiskWriter): Removed totalLength.
  13761. (initAndOpenFile): Added totalLength argument.
  13762. (DefaultDiskWriterHandle): New type definition.
  13763. (createNewDiskWriter): New function.
  13764. * src/Util.cc
  13765. (ullitos): New function.
  13766. * src/DefaultDiskWriter.cc
  13767. (message.h): New include.
  13768. (FileAllocator.h): New include.
  13769. (prefs.h): New include.
  13770. (Util.h): New include.
  13771. (DefaultDiskWriter): Removed totalLength.
  13772. (initAndOpenFile): Added file allocation.
  13773. (createNewDiskWriter): New function. Just for temporary solution.
  13774. It will be rewritten later.
  13775. * src/DiskAdaptor.cc
  13776. (DiskAdaptor): Removed diskWriter.
  13777. * src/AbstractDiskWriter.cc
  13778. (LogFactory.h): New include.
  13779. (AbstractDiskWriter): Added fileAllocator, logger.
  13780. (openFile): Added totalLength argument.
  13781. * src/AbstractDiskWriter.h
  13782. (FileAllocator.h): New include.
  13783. (Logger.h): New include.
  13784. (fileAllocator): New variable.
  13785. (logger): New variable.
  13786. (openFile): Added totalLength argument. Added virtual keyword
  13787. explicitly.
  13788. (openExistingFile): Added totalLength argument. Added virtual keyword
  13789. explicitly.
  13790. (closeFile): Added virtual keyword explicitly.
  13791. (sha1Sum): Added virtual keyword explicitly.
  13792. (writeData): Added virtual keyword explicitly.
  13793. (readData): Added virtual keyword explicitly.
  13794. (setFileAllocator): New function.
  13795. * src/DefaultPieceStorage.h
  13796. (FileAllocator.h): New include.
  13797. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13798. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13799. * src/FileProgressMonitor.h: New class.
  13800. To compile aria2 on PC-BSD:
  13801. * src/DefaultBtContext.cc
  13802. (libgen.h): New include.
  13803. To fix memory leak:
  13804. * src/Exception.h
  13805. (~Exception): Delete cause. Fixed memory leak.
  13806. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13807. Rewritten a portion of bittorrent implementation:
  13808. * src/BtMessageValidator.h: New class.
  13809. * src/BtBitfieldMessageValidator.h: New class.
  13810. * src/BtHandshakeMessageValidator.h: New class.
  13811. * src/BtRequestMessageValidator.h: New class.
  13812. * src/BtSuggestPieceMessageValidator.h: New class.
  13813. * src/BtAllowedFastMessageValidator.h: New class.
  13814. * src/BtRejectMessageValidator.h: New class.
  13815. * src/BtCancelMessageValidator.h: New class.
  13816. * src/BtPieceMessageValidator.h: New class.
  13817. * src/BtHaveMessageValidator.h: New class.
  13818. * src/BtEventListener.h: New class.
  13819. * src/AbstractBtEventListener.h: New class.
  13820. * src/BtEvent.h: New class.
  13821. * src/BtChokingEvent.h: New class.
  13822. * src/BtChokedEvent.h: New class.
  13823. * src/BtCancelSendingPieceEvent.h: New class.
  13824. * src/BtAbortOutstandingRequestEvent.h: New class.
  13825. * src/Randomizer.h: New class.
  13826. * src/SimpleRandomizer.h: New class.
  13827. * src/BtMessage.h: New class.
  13828. * src/AbstractBtMessage.h: New class.
  13829. * src/SimpleBtMessage.h: New class.
  13830. * src/BtHaveMessage.h: New class.
  13831. * src/BtInterestedMessage.h: New class.
  13832. * src/BtAllowedFastMessage.h: New class.
  13833. * src/BtUnchokeMessage.h: New class.
  13834. * src/BtCancelMessage.h: New class.
  13835. * src/BtNotInterestedMessage.h: New class.
  13836. * src/BtChokeMessage.h: New class.
  13837. * src/BtHaveNoneMessage.h: New class.
  13838. * src/BtHandshakeMessage.h: New class.
  13839. * src/BtSuggestPieceMessage.h: New class.
  13840. * src/BtHaveMessage.h: New class.
  13841. * src/BtPieceMessage.h: New class.
  13842. * src/BtHaveAllMessage.h: New class.
  13843. * src/BtKeepAliveMessage.h: New class.
  13844. * src/BtPortMessage.h: New class.
  13845. * src/BtRejectMessage.h: New class.
  13846. * src/BtBitfieldMessage.h: New class.
  13847. * src/BtRequestMessage.h: New class.
  13848. * src/DefaultBtRequestFactory.h: New class.
  13849. * src/DefaultBtMessageReceiver.h: New class.
  13850. * src/BtInteractive.h: New class.
  13851. * src/BtMessageDispatcher.h: New class.
  13852. * src/DefaultBtMessageDispatcher.h: New class.
  13853. * src/DefaultBtInteractive.h: New class.
  13854. * src/BitfieldManFactory.h: New class.
  13855. * src/HandleRegistry.h: New class.
  13856. * src/BtMessageFactory.h: New class.
  13857. * src/BtMessageReceiver.h: New class.
  13858. * src/DefaultBtMessageFactory.h: New class.
  13859. * src/PeerObject.h: New class.
  13860. * src/BtRequestFactory.h: New class.
  13861. * src/SuggestPieceMessage.h: Removed.
  13862. * src/PortMessage.h: Removed.
  13863. * src/SuggestPieceMessage.h: Removed.
  13864. * src/KeepAliveMessage.h: Removed.
  13865. * src/HandshakeMessage.h: Removed.
  13866. * src/PeerInteraction.h: Removed.
  13867. * src/UnchokeMessage.h: Removed.
  13868. * src/PieceMessage.h: Removed.
  13869. * src/RequestMessage.h: Removed.
  13870. * src/InterestedMessage.h: Removed.
  13871. * src/HaveMessage.h: Removed.
  13872. * src/CancelMessage.h: Removed.
  13873. * src/RejectMessage.h: Removed.
  13874. * src/AllowedFastMessage.h: Removed.
  13875. * src/HaveNoneMessage.h: Removed.
  13876. * src/SimplePeerMessage.h: Removed.
  13877. * src/HaveAllMessage.h: Removed.
  13878. * src/BitfieldMessage.h: Removed.
  13879. * src/PeerMessageFactory.h: Removed.
  13880. * src/NotInterestedMessage.h: Removed.
  13881. * src/ChokeMessage.h: Removed.
  13882. * src/PeerMessage.h: Removed.
  13883. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13884. To know root cause of exception:
  13885. * src/Exception.h
  13886. (cause): New variable.
  13887. (Exception): Added a parameter.
  13888. (getMsg): Return const reference to msg.
  13889. (getCause): New function.
  13890. * src/DlRetryEx.h
  13891. (DlRetryEx): Added a parameter 'cause'.
  13892. Added an overloaded constructor.
  13893. (DlAbortEx): Added a parameter 'cause'.
  13894. Added an overloaded constructor.
  13895. * src/SimpleLogger.cc
  13896. (writeLog): Log nested exception messages recursively.
  13897. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13898. * src/DefaultBtProgressInfoFile.cc
  13899. (load): Fixed memory leak when the infohash doesn't match.
  13900. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13901. * src/DefaultPeerStorage.cc
  13902. (calculateStat): Simplified the code by combining 2 loops into 1.
  13903. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13904. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13905. for BitTorrent download:
  13906. * src/PeerAbstractCommand.cc
  13907. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13908. * src/main.cc:
  13909. (timeoutSpecified): Removed.
  13910. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13911. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13912. * src/TorrentRequestInfo.cc
  13913. (timeoutSpecified): Removed.
  13914. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13915. timeout value.
  13916. * src/prefs.h
  13917. (PREF_BT_TIMEOUT): New definition.
  13918. Delete unused variables:
  13919. * src/TorrentRequestInfo.cc
  13920. (requestInfo): Removed.
  13921. Move setSignalHander to Util::setGlobalSignalHandler:
  13922. * src/TorrentRequestInfo.cc:
  13923. setSignalHander -> Util::setGlobalSignalHandler
  13924. * src/main.cc
  13925. (setSignalHander): Removed.
  13926. (main): setSignalHander -> Util::setGlobalSignalHandler
  13927. * src/Util.h
  13928. (setGlobalSignalHandler): New function.
  13929. * src/Util.cc
  13930. (setGlobalSignalHandler): New function.
  13931. * src/UrlRequestInfo.cc:
  13932. setSignalHander -> Util::setGlobalSignalHandler
  13933. Reset peer status in order to exit gracefully:
  13934. * src/PeerAbstractCommand.cc
  13935. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13936. To fix the bug that causes the number of bytes uploaded is not saved
  13937. to .aria2 file:
  13938. * src/DefaultPeerStorage.h
  13939. (removedPeerSessionDownloadLength): New variable.
  13940. (removedPeerSessionUploadLength): New variable.
  13941. * src/DefaultPeerStorage.cc
  13942. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13943. removedPeerSessionUploadLength(0).
  13944. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13945. through all peers, and then add removedPeerSessionDownloadLength(
  13946. removedPeerSessionUploadLength) to it.
  13947. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13948. (to) the peer to removedPeerSessionDownloadLength
  13949. (removedPeerSessionUploadLength).
  13950. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13951. To add Metalink location option:
  13952. * src/MetalinkRequestInfo.cc
  13953. (execute): Call MetalinkEntry::setLocationPreference()
  13954. * src/main.cc
  13955. (showUsage): Added the help message for --metalink-location option.
  13956. (main): Added --metalink-location option.
  13957. * src/prefs.h
  13958. (PREF_METALINK_LOCATION): New definition.
  13959. * src/MetalinkEntry.cc
  13960. (AddLocationPreference): New function object.
  13961. (setLocationPreference): New function.
  13962. * src/Xml2MetalinkProcessor.cc
  13963. (getResource): Set location attribute to MetalinkResource
  13964. To show URLs to download
  13965. * src/UrlRequestInfo.h
  13966. (printUrls): New function.
  13967. To add multiple <file> Metalink support:
  13968. * src/MetalinkEntry.h
  13969. (MetalinkResources): Removed.
  13970. (setLocationPreference): New function.
  13971. (MetalinkEntryHandle): New type definition.
  13972. (MetalinkEntries): New type definition.
  13973. * src/Xml2MetalinkProcessor.h
  13974. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13975. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13976. (parseFile): Metalinker* -> MetalinkerHandle
  13977. * src/UrlRequestInfo.h
  13978. (execute): RequestInfo* -> RequestInfos
  13979. * src/MetalinkRequestInfo.cc
  13980. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13981. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13982. (execute): RequestInfo* -> RequestInfos
  13983. Added multiple <file> support. Print filename when it is queued.
  13984. * src/MetalinkRequestInfo.h
  13985. (execute): RequestInfo* -> RequestInfos
  13986. (getDownloadEngine): Removed.
  13987. * src/RequestInfo.h
  13988. (RequestInfoHandle): New type definition.
  13989. (RequestInfos): New type definition.
  13990. (execute): RequestInfo* -> RequestInfos
  13991. (getDownloadEngine): Removed.
  13992. * src/MetalinkResource.h
  13993. (MetalinkResourceHandle): New type definition.
  13994. (MetalinkResources): New type definition.
  13995. * src/MetalinkEntry.cc
  13996. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13997. because the element is now of type MetalinkResourceHandle.
  13998. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13999. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14000. (dropUnsupportedResource): Removed the deletion of the elements of
  14001. resources because the element is now of type MetalinkResourceHandle.
  14002. * src/Xml2MetalinkProcessor.cc
  14003. (parseFile): Metalinker* -> MetalinkerHandle
  14004. MetalinkEntry* -> MetalinkEntryHandle
  14005. Removed try-catch block.
  14006. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14007. MetalinkResource* -> MetalinkResourceHandle
  14008. Removed try-catch block.
  14009. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14010. Free result by using xmlXPathFreeObject()
  14011. * src/Metalinker.cc
  14012. (~Metalinker): Removed the deletion of entries.
  14013. MetalinkEntry* -> MetalinkEntryHandle
  14014. (queryEntry): Add multiple <file> Metalink support.
  14015. * src/Metalinker.h
  14016. (MetalinkEntries): Removed.
  14017. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14018. * src/MetalinkProcessor.h
  14019. (parseFile): Metalinker* -> MetalinkerHandle
  14020. Bug fixes:
  14021. * src/PeerChokeCommand.cc
  14022. (execute): cat01->cat02
  14023. * src/DefaultPieceStorage.cc
  14024. (DefaultPieceStorage): Added diskAdaptor(0)
  14025. * src/TrackerWatcherComand.cc:
  14026. (execute): Use btAnnounce->noMoreAnnounce()
  14027. to determin whether the function returns true or not.
  14028. * src/TrackerUpdateCommand.cc:
  14029. (execute): Use btAnnounce->noMoreAnnounce()
  14030. to determin whether the function returns true or not.
  14031. * src/FtpConnection.cc
  14032. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14033. This is the fix of the busy loop bug.
  14034. * src/DownloadCommand.cc
  14035. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14036. cached PeerStat.
  14037. The value of "name" entry in torrent file is now set by
  14038. *DiskAdaptor::setTopDir(...) methods.
  14039. * src/MultiDiskAdaptor.h
  14040. (topDir): New variable.
  14041. (setTopDir): New function.
  14042. (getTopDir): New function.
  14043. * src/MultiDiskAdaptor.cc
  14044. (getFilePath): Concat storDir, "/" and topDir.
  14045. (mkdir): Use getFilePath() to get the directory path for output.
  14046. * src/DefaultPieceStorage.cc
  14047. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14048. CopyDiskAdaptor.
  14049. * src/CopyDiskAdaptor.h
  14050. (topDir): New variable.
  14051. (setTopDir): New function.
  14052. (getTopDir): New function.
  14053. * src/CopyDiskAdaptor.cc
  14054. (fixFilename): Updated.
  14055. Misc
  14056. * src/UrlRequestInfo.h
  14057. (e): Removed.
  14058. (UrlRequestInfo): Removed e.
  14059. (getDownloadEngine): Removed.
  14060. * src/UrlRequestInfo.cc
  14061. (handler): Rewritten.
  14062. (printUrls): New function.
  14063. (execute): Call printUrls().
  14064. * src/HandshakeMessage.cc
  14065. (check): peerinteraction->getBtContext() -> btContext
  14066. * src/PeerInteraction.h
  14067. (getBtContext): Removed.
  14068. * src/TorrentRequestInfo.h
  14069. (execute): RequestInfo* -> RequestInfos
  14070. (getDownloadEngine): Removed.
  14071. * src/TorrentRequestInfo.cc
  14072. (haltRequested): Removed.
  14073. (btHaltRequested): New variable.
  14074. (torrentHandler): haltRequested -> btHaltRequested
  14075. (execute): RequestInfo* -> RequestInfos
  14076. * src/TorrentConsoleDownloadEngine.cc
  14077. (afterEachIteration): haltRequested -> btHaltRequested.
  14078. * src/ConsoleDownloadEngine.h
  14079. (initStatistics): Added virtual.
  14080. (calculateStatistics): Added virtual.
  14081. (onEndOfRun): Added virtual.
  14082. (afterEachIteration): Added virtual.
  14083. * src/ConsoleDownloadEngine.cc
  14084. (haltRequested): New variable.
  14085. (afterEachIteration): New function.
  14086. * src/main.cc
  14087. (requestInfo): Removed.
  14088. * src/SegmentMan.cc
  14089. (findSlowerSegmentEntry): Refactored.
  14090. * Release 0.9.0
  14091. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14092. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14093. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14094. * src/TorrentMan.h: Removed.
  14095. * src/TorrentMan.cc: Removed.
  14096. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14097. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14098. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14099. * src/PeerAbstractCommand.cc: Use btRuntime.
  14100. * src/BtContextAwareCommand.h: New class.
  14101. * src/FileEntry.h: Added accessor methods for following variables.
  14102. (path): Made private.
  14103. (length): Made private.
  14104. (offset): Made private.
  14105. (extracted): Made private.
  14106. (requested): Made private.
  14107. (FileEntries): New definition.
  14108. (FileEntryHandle): New definition.
  14109. * src/FileEntry.cc: New file.
  14110. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14111. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14112. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14113. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14114. * src/PieceStorage.h: New file.
  14115. * src/PeerInteractionCommand.h: Use btContext.
  14116. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14117. btRuntime.
  14118. * src/DefaultBtProgressInfoFile.h: New file.
  14119. * src/DefaultBtProgressInfoFile.cc: New file.
  14120. * src/File.cc
  14121. (Util.h): New include.
  14122. (mkdirs): New function.
  14123. * src/MultiDiskAdaptor.h
  14124. (mkdir): New function.
  14125. * src/PeerListProcessor.h
  14126. (Peers): Removed.
  14127. * src/PeerInteraction.h
  14128. (torrentMan): Removed.
  14129. (btContext): New variable.
  14130. (peerStorage): New variable.
  14131. (pieceStorage): New variable.
  14132. (btAnnounce): New variable.
  14133. (getTorrentMan): Removed.
  14134. (getBtContext): New function.
  14135. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14136. btAnnounce.
  14137. * src/HandshakeMessage.h
  14138. (TorrentMan.h): Removed.
  14139. * src/HandshakeMessage.cc: Use btContext.
  14140. * src/DefaultBtAnnounce.cc: New file.
  14141. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14142. * src/DefaultPieceStorage.cc: New file.
  14143. * src/DefaultBtContext.h: New file.
  14144. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14145. Use the accessor methods of FileEntry.
  14146. * src/CookieBox.cc: Updated to use Util::slice().
  14147. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14148. * src/common.h (SharedHandle.h): New include.
  14149. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14150. pieceStorage.
  14151. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14152. * src/DiskAdaptor.h
  14153. (topDir): Removed.
  14154. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14155. (setTopDir): Removed.
  14156. (getTopDir): Removed.
  14157. * src/BtContext.h: New file.
  14158. * src/DefaultPeerStorage.h: New file.
  14159. * src/PieceMessage.h (TorrentMan.h): Removed.
  14160. * src/RequestMessage.h (TorrentMan.h): Removed.
  14161. * src/TorrentDownloadEngine.h
  14162. (uploadLength): New variable.
  14163. (btContext): New variable.
  14164. (btRuntime): New variable.
  14165. (pieceStorage): New variable.
  14166. (peerStorage): New variable.
  14167. (btAnnounce): New variable.
  14168. (btProgressInfoFile): New variable.
  14169. (torrentMan): Removed.
  14170. (setBtContext): New function.
  14171. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14172. peerStorage, btAnnounce, btProgressInfoFile.
  14173. * src/Piece.h
  14174. (toString): New function.
  14175. (Pieces): New type definition.
  14176. * src/Peer.h
  14177. (active): New variable.
  14178. (Peer): Added active.
  14179. (activate): Set active to true.
  14180. (deactivate): Set active to false.
  14181. (isActive): New function.
  14182. (Peers): New type definition.
  14183. * src/DirectDiskAdaptor.cc
  14184. (getFilePath): Use the accessor methods of FileEntry.
  14185. * src/TorrentConsoleDownloadEngine.h
  14186. (afterEachIteration): New function.
  14187. * src/TorrentConsoleDownloadEngine.cc
  14188. (haltRequested): New variable.
  14189. (sendStatistics): Use pieceStorage, btRuntime.
  14190. (afterEachIteration): New function.
  14191. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14192. * src/Directry.h
  14193. (Directory): New function.
  14194. (DirectoryHandle): New type definition.
  14195. * src/BtProgressInfoFile.h: New file.
  14196. * src/RequestMessage.cc: Use pieceStorage.
  14197. * src/BtRuntime.h: New file.
  14198. * src/DefaultBtContext.cc: New file.
  14199. * src/BitfieldMan.h
  14200. (getCompletedLength): New function(private).
  14201. (getCompletedLength): New function.
  14202. (getFilteredCompletedLength): New function.
  14203. * src/BitfieldMan.h
  14204. (getCompletedLength): New function(private).
  14205. (getCompletedLength): New function.
  14206. (getFilteredCompletedLength): New function.
  14207. * src/MultiDiskAdaptor.cc
  14208. (mkdir): New function.
  14209. (openFile): Call mkdir().
  14210. (initAndOpenFile): Call mkdir().
  14211. * src/CancelMessage.h
  14212. (TorrentMan.h): Removed.
  14213. * src/RejectMessage.h
  14214. (TorrentMan.h): Removed.
  14215. * src/DownloadEngineFactory.cc
  14216. (DefaultPieceStorage.h): New include.
  14217. (DefaultPeerStorage.h): New include.
  14218. (DefaultBtAnnounce.h): New include.
  14219. (DefaultBtProgressInfoFile.h): New include.
  14220. (newTorrentConsoleEngine): Rewritten.
  14221. * src/ShareRatioSeedCriteria.h
  14222. (torrentMan): Removed.
  14223. (btContext): New variable.
  14224. (peerStorage): New variable.
  14225. (btRuntime): New variable.
  14226. (evaluate): Use btContext, btRuntime, peerStorage.
  14227. * src/AnnounceTier.h: New file.
  14228. * src/BtAnnounce.h: New file.
  14229. * src/BtRegistry.h: New file.
  14230. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14231. * src/PeerConnection.h (TorrentMan.h): Removed.
  14232. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14233. * src/Util.h
  14234. (slice): Added an argument.
  14235. * src/Util.cc
  14236. (slice): Added an argument to control whether trim is made or not.
  14237. * src/PeerStorage.h: New file.
  14238. * src/BtRegistry.cc: New file.
  14239. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14240. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14241. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14242. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14243. * src/TorrentRequestInfo.h
  14244. (e): Removed.
  14245. (showFileEntry): Added an argument.
  14246. (getDownloadEngine): Return 0.
  14247. * src/DefaultBtAnnounce.h: New file.
  14248. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14249. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14250. * src/PeerMessageFactory.h
  14251. (btContext): New variable.
  14252. (pieceStorage): New variable.
  14253. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14254. btAnnounce.
  14255. * src/DiskAdaptor.cc
  14256. (DiskAdaptor): Removed topDir.
  14257. (~DiskAdaptor): Removed topDir.
  14258. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14259. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14260. * src/File.h (mkdirs): New function.
  14261. * src/DefaultPeerStorage): New file.
  14262. * src/DownloadEngineFactory.h
  14263. (newTorrentConsoleEngine): Use btContext.
  14264. * src/BtContextAwareCommand.cc: New file.
  14265. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14266. * src/PeerMessage.h
  14267. (btContext): New variable.
  14268. (peerStorage): New variable.
  14269. (pieceStorage): New variable.
  14270. (setBtContext): New function.
  14271. * src/Directry.cc
  14272. (Directory): New function.
  14273. (createDir): Do nothing if name.size() == 0.
  14274. * src/AnnounceList.h
  14275. (AnnounceTier): Removed.
  14276. (AnnounceTiers): Removed.
  14277. * src/DefaultPieceStorage.h: New file.
  14278. * src/Piece.cc (toString): New function.
  14279. To fix typo:
  14280. * src/main.cc (showVersion): Fixed typo.
  14281. To fix compile warning:
  14282. * src/DelegatingPeerListProcessor.cc
  14283. (canHandle): Added "return false".
  14284. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14285. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14286. make the process of announce request testable.
  14287. * src/TrackerWatcherCommand.h
  14288. (TimeA2.h): Removed.
  14289. (interval): Removed.
  14290. (checkPoint): Removed.
  14291. (createRequestCommand): Added an argument 'url'.
  14292. (TrackerWatherCommand): Removed interval.
  14293. (createCommand): New function.
  14294. * src/DownloadEngineFactory.cc
  14295. (newTorrentConsoleEngine): Updated according to the changes in
  14296. TrackerWatherCommand.
  14297. * src/TorrentMan.cc
  14298. (DelegatingPeerListProcessor.h): New includes.
  14299. (TorrentMan): Added the initialization of announceInterval.
  14300. (isStoppedAnnounceReady): New function.
  14301. (isCompletedAnnounceReady): New function.
  14302. (isDefaultAnnounceReady): New function.
  14303. (isAnnounceReady): New function.
  14304. (getAnnounceUrl): New function.
  14305. (announceStart): New function.
  14306. (announceFailure): New function.
  14307. (announceSuccess): New function.
  14308. (isAllAnnounceFailed): New function.
  14309. (resetAnnounce): New function.
  14310. (processAnnounceResponse): New function.
  14311. (needMorePeerConnection): New function.
  14312. (noMoreAnnounce): New function.
  14313. * src/TrackerUpdateCommand.h
  14314. (getTrackerResponse): int->size_t
  14315. * src/TorrentMan.h
  14316. (isStoppedAnnounceReady): New function.
  14317. (isCompletedAnnounceReady): New function.
  14318. (isDefaultAnnounceReady): New function.
  14319. (announceInterval): New variable.
  14320. (isAnnounceReady): New function.
  14321. (getAnnounceUrl): New function.
  14322. (announceStart): New function.
  14323. (announceFailure): New function.
  14324. (announceSuccess): New function.
  14325. (isAllAnnounceFailed): New function.
  14326. (resetAnnounce): New function.
  14327. (processAnnounceResponse): New function.
  14328. (needMorePeerConnection): New function.
  14329. (noMoreAnnounce): New function.
  14330. * src/TrackerWatcherCommand.cc
  14331. (TrackerWatherCommand): Removed interval and checkPoint.
  14332. (execute): Rewritten.
  14333. (createCommand): New function.
  14334. (createRequestCommand): Rewritten.
  14335. * src/TrackerUpdateCommand.cc
  14336. (MetaFileUtil.h): Removed.
  14337. (DelegatingPeerListProcessor.h): Removed.
  14338. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14339. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14340. Request -> RequestHandle:
  14341. * src/HttpResponseCommand.h: Request->RequestHandle
  14342. * src/AbstractCommand.cc: Request->RequestHandle
  14343. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14344. * src/HttpRequestCommand.cc: Request->RequestHandle
  14345. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14346. * src/AbstractCommand.h: Request->RequestHandle
  14347. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14348. * src/HttpResponseCommand.cc: Request->RequestHandle
  14349. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14350. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14351. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14352. * src/HttpConnection.h: Request->RequestHandle
  14353. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14354. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14355. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14356. * src/DownloadCommand.h: Request->RequestHandle
  14357. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14358. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14359. * src/HttpRequestCommand.h: Request->RequestHandle
  14360. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14361. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14362. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14363. * src/HttpDownloadCommand.h: Request->RequestHandle
  14364. * src/FtpConnection.cc: Request->RequestHandle
  14365. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14366. * src/UrlRequestInfo.cc: Request->RequestHandle
  14367. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14368. * src/HttpConnection.h: Request->RequestHandle
  14369. * src/DownloadCommand.cc: Request->RequestHandle
  14370. * src/FtpConnection.h: Request->RequestHandle
  14371. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14372. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14373. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14374. * src/Request.h
  14375. (SharedHandle.h): New include.
  14376. (RequestHandle): New type definition.
  14377. (Requests): Redefined.
  14378. To add MULTITRACKER support:
  14379. * src/TrackerWatcherCommand.h
  14380. (createRequestCommand): New function.
  14381. * src/DownloadEngineFactory.cc
  14382. (newTorrentConsoleEngine): Removed req.
  14383. * src/prefs.h
  14384. (PREF_TRACKER_MAX_TRIES): New definition.
  14385. * src/TorrentMan.cc
  14386. (TorrentMan): Removed req. Added trackerNumTry.
  14387. (~TorrentMan): Removed req.
  14388. (setupInternal1): Added announceList.
  14389. * src/TorrentRequestInfo.cc
  14390. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14391. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14392. * src/main.cc
  14393. (main): Added PREF_TRACKER_MAX_TRIES.
  14394. * src/TorrentMan.h
  14395. (Request.h): Removed.
  14396. (AnnounceList.h): New include.
  14397. (trackerNumTry): New variable.
  14398. (req): Removed.
  14399. (announceList): New variable.
  14400. * src/TrackerWatcherCommand.cc
  14401. (execute): Rewritten.
  14402. (createRequestCommand): New function.
  14403. * src/TrackerUpdateCommand.cc
  14404. (execute): Updated with the use of AnnounceList.
  14405. * src/AnnounceList.cc: New class.
  14406. * src/AnnounceList.h: New class.
  14407. To fix typo:
  14408. * src/prefs.h
  14409. (PREF_MAX_TRIES): max_try->max_tries
  14410. To not to decode "+" as space in URL decode:
  14411. * src/Util.cc
  14412. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14413. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14414. To add timeout to async name resolution:
  14415. * src/AbstractCommand.h
  14416. (nameResolveFinished): New function. This is not elegant way. It needs
  14417. to be more refined.
  14418. (nameResolverCheck): New variable.
  14419. * src/AbstractCommand.cc
  14420. (AbstractCommand): Added nameResolverCheck.
  14421. (execute): Added the check whether the name resolution has finished.
  14422. (setNameResolverCheck): Set nameResolverCheck to true.
  14423. (disableNameResolverCheck): Set nameResolverCheck to false.
  14424. (nameResolverFinished): New function.
  14425. * src/FtpInitiateConnectionCommand.h
  14426. (nameResolverFinished): New function.
  14427. * src/FtpInitiateConnectionCommand.cc
  14428. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14429. * src/HttpInitiateConnectionCommand.h
  14430. (nameResolverFinished): New function.
  14431. * src/HttpInitiateConnectionCommand.cc
  14432. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14433. * src/prefs.h
  14434. (PREF_DNS_TIMEOUT): New definition.
  14435. * src/main.cc
  14436. (main): Added PREF_DNS_TIMEOUT.
  14437. To add the support for a non-compact response from a tracker:
  14438. * src/PeerListProcessor.h: New class.
  14439. * src/DefaultPeerListProcessor.h: New class.
  14440. * src/DefaultPeerListProcessor.cc: New class.
  14441. * src/CompactPeerListProcessor.h: New class.
  14442. * src/CompactPeerListProcessor.cc: New class.
  14443. * src/DelegatingPeerListProcessor.h: New class.
  14444. * src/DelegatingPeerListProcessor.cc: New class.
  14445. * src/TorrentMan.cc
  14446. (addPeer): New function(overload).
  14447. (addPeer): Delete unused peers only when new peer is added.
  14448. * src/TorrentMan.h
  14449. (PeerListProcessor.h): Included.
  14450. (Peers): Removed.
  14451. (addPeer): New function(overload).
  14452. * src/TrackerUpdateCommand.cc
  14453. (netinet/in.h): Removed.
  14454. (DelegatingPeerListProcessor.h): Included.
  14455. (execute): Updated to use DelegatingPeerListProcessor.
  14456. To fix the memory leak in TorrentMan::peers:
  14457. * src/PeerAbstractCommand.cc
  14458. (onAbort): Added peer->resetStatus().
  14459. * src/Peer.h
  14460. (resetStatus): Made public.
  14461. To improve the precision of the speed calculation:
  14462. * src/SpeedCalc.h
  14463. (nextInterval): New variable.
  14464. * src/SpeedCalc.cc
  14465. (reset): Added nextInterval.
  14466. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14467. (changeSw): Set nextInterval to 15 seconds relative to the current
  14468. instant time.
  14469. * src/main.cc
  14470. (showVersion): Updated.
  14471. (showUsage): Updated.
  14472. * Release 0.8.1
  14473. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14474. * src/main.cc
  14475. (showUsage): Commented out --min-segment-size option.
  14476. (main): Commented out --min-segment-size option.
  14477. * Release 0.8.0
  14478. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14479. * src/*.{h,cc}:
  14480. Added an exception to the license which allows linking with OpenSSL.
  14481. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14482. * src/AbstractCommand.cc
  14483. (execute): Check whether the download has finished before checking
  14484. socket status.
  14485. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14486. Do not exit even if no segment is available.
  14487. * src/prefs.h
  14488. (PREF_STARTUP_IDLE_TIME): New definition.
  14489. * src/PeerInteractionCommand.cc
  14490. (executeInternal): Removed max speed limit. Because it performs bad.
  14491. (receiveMessages): Added max speed limit. This was better than above,
  14492. but still a little bit to be desired. Sometimes the download speed
  14493. became much faster than I specified.
  14494. * src/SpeedCalc.h
  14495. (start): New variable.
  14496. (accumulatedLength): New variable.
  14497. (getAvgSpeed): New function.
  14498. * src/SpeedCalc.cc
  14499. (reset): Added start, accumulatedLength.
  14500. (update): Added calculation of an average speed.
  14501. (getAvgSpeed): New function.
  14502. * src/DownloadCommand.h
  14503. (sw): Removed.
  14504. * src/main.cc
  14505. (main): Added PREF_STARTUP_IDLE_TIME.
  14506. * src/PeerStat.h
  14507. (STATUS): Added REQUEST_IDLE.
  14508. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14509. (getAvgDownloadSpeed): New function
  14510. (requestIdle): New function.
  14511. * src/SegmentMan.h
  14512. (SegmentEntryHandle): New type definition.
  14513. (SegmentEntries): Now holds SegmentEntryHandle.
  14514. (findSlowerSegmentEntry): New funtion.
  14515. * src/SegmentMan.cc
  14516. (save): Updated according to the changes in SegmentEntries.
  14517. (read): Updated according to the changes in SegmentEntries.
  14518. (FindSegmentEntryByIndex): Updated according to the changes in
  14519. SegmentEntries.
  14520. (FindSegmentEntryByCuid): Updated according to the changes in
  14521. SegmentEntries.
  14522. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14523. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14524. Renamed uitr as itr.
  14525. (findSlowerSegmentEntry): New function.
  14526. (getSegment): Updated according to the changes in SegmentEntries.
  14527. Added the feature that cancels the segment with slow server and fast
  14528. one takes it over.
  14529. (cancelSegment): Updated according to the changes in SegmentEntries.
  14530. (getDownloadLength): Updated according to the changes in
  14531. SegmentEntries.
  14532. (init): Assigned 0 to bitfield after deleting it.
  14533. * src/DownloadCommand.cc
  14534. (STARTUP_IDLE_TIME): Removed.
  14535. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14536. * src/PeerChokeCommand.cc
  14537. (optUnchokingPeer): Updated according to the changes in Peer.
  14538. (ResetDelta): Removed.
  14539. (UploadFaster): Updated according to the changes in Peer.
  14540. (DownloadFaster): Updated according to the changes in Peer.
  14541. (execute): I clarify the meaning of "upload" and "download" here.
  14542. "upload" means the transfer from localhost to remote host.
  14543. "download" means the transfer from remote host to localhost.
  14544. Based on this rule, I swapped orderByUploadRate and
  14545. orderByDownloadRate.
  14546. * src/PeerInteractionCommand.cc
  14547. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14548. (executeInternal): Removed the argument of
  14549. peerInteraction->sendMessages().
  14550. (receiveMessages): Rewritten download speed limit.
  14551. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14552. * src/HttpResponseCommand.cc
  14553. (handleDefaultEncoding): If file size is unknown in torrent request,
  14554. do not call segmentMan->initBitfield() here.
  14555. Disabled persistent connection feature in torrent request.
  14556. * src/UrlRequestInfo.h
  14557. (UrlRequestInfo): Removed const qualifier from option.
  14558. * src/TorrentMan.h
  14559. (TransferStat): New class.
  14560. (deltaDownloadLength): Removed.
  14561. (deltaUploadLength): Removed.
  14562. (addDeltaDownloadLength): Removed.
  14563. (getDeltaDownloadLength): Removed.
  14564. (resetDeltaDownloadLength): Removed.
  14565. (addDeltaUploadLength): Removed.
  14566. (getDeltaUploadLength): Removed.
  14567. (resetDeltaUploadLength): Removed.
  14568. (addActivePeer): Added peer->activate().
  14569. (deleteActivePeer): Added peer->deactivate().
  14570. (calculateStat): New function.
  14571. * src/TorrentMan.cc
  14572. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14573. (calculateStat): New function.
  14574. * src/PeerInteraction.h
  14575. (uploadLimit): Removed.
  14576. (option): New variable.
  14577. (setUploadLimit): Removed.
  14578. (getUploadSpeed): Removed.
  14579. (sendMessages): Removed the argument "currentUploadSpeed".
  14580. * src/PeerInteraction.cc
  14581. (prefs.h): Included.
  14582. (PeerInteraction): Removed uploadLimit. Added option.
  14583. (sendMessages): Rewritten upload speed limit.
  14584. (sendHandshake): Removed the argument from sendMessages().
  14585. (sendBitfield): Removed the argument from sendMessages().
  14586. * src/PeerAbstractCommand.cc
  14587. (execute): Commented out the portion of upload limit.
  14588. (onAbort): Removed peer->resetStatus().
  14589. * src/TorrentRequestInfo.cc
  14590. (timeoutSpecified): Declared extern.
  14591. (execute): Set timeout to 180 if timeout is not specified by.
  14592. command-line.
  14593. * src/PieceMessage.cc
  14594. (receivedAction): Added peer->updateDownloadLength().
  14595. Removed peer->addPeerUpload().
  14596. Removed torrentMan->addDeltaDownloadLength().
  14597. (send): Added peer->updateUploadLength().
  14598. Removed peer->addPeerDownload().
  14599. Removed torrentMan->addDeltaUploadLength().
  14600. * src/main.cc
  14601. (timeoutSpecified): New variable.
  14602. (main): Set timeoutSpecified to false.
  14603. If the command-line option "--upload-limit" is specified, then
  14604. timeoutSpecified is set to true. This option will remain in the next
  14605. release, but be deprecated in the future release.
  14606. * src/TorrentRequestInfo.h
  14607. (TorrentRequestInfo): Removed const qualifier from op.
  14608. * src/PeerStat.h
  14609. (uploadSpeed): New variable.
  14610. (PeerStat): Added default value to cuid.
  14611. (calculateUploadSpeed): New function.
  14612. (updateUploadLength): New function.
  14613. (getMaxUploadSpeed): New function.
  14614. (getAvgUploadSpeed): New function.
  14615. (reset): Added uploadSpeed. Set status to IDLE.
  14616. * src/TorrentDownloadEngine.h
  14617. (cp): Declared as Time.
  14618. (sessionDownloadLengthArray): Removed.
  14619. (sessionUploadLengthArray): Removed.
  14620. (currentCp): Removed.
  14621. (lastCalcStat): New variable
  14622. (lastElapsed): Removed.
  14623. (sessionDownloadLength): Removed.
  14624. (calculateStat): New function.
  14625. * src/TorrentDownloadEngine.cc
  14626. (initStatistics): Removed lastElapsed, cp[],
  14627. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14628. currentCp, sessionDownloadLength.
  14629. Added cp.reset() and lastCalcStat.reset().
  14630. (calculateSpeed): Changed the name of the argument.
  14631. (calculateStatistics): Rewritten.
  14632. (calculateStat): New function.
  14633. * src/Peer.h
  14634. (PeerStat.h): Included.
  14635. (peerUpload): Removed.
  14636. (peerDownload): Removed.
  14637. (peerStat): New variable.
  14638. (sessionUploadLength): New variable.
  14639. (sessionDownloadLength): New variable.
  14640. (deltaUpload): Removed.
  14641. (deltaDownload): Removed.
  14642. (resetStatus): Made private.
  14643. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14644. Removed peerUpload, peerDownload.
  14645. (updateUploadLength): New function.
  14646. (addDeltaUpload): Removed.
  14647. (updateDownloadLength): New function.
  14648. (resetDeltaUpload): Removed.
  14649. (getDeltaUpload): Removed.
  14650. (addDeltaDownload): Removed.
  14651. (calculateUploadSpeed): New function.
  14652. (resetDeltaDownload): Removed.
  14653. (getDeltaDownload): Removed.
  14654. (calculateDownloadSpeed): New function.
  14655. (getSessionUploadLength): New function.
  14656. (getSessionDownloadLength): New function.
  14657. (activate): New function.
  14658. (deactivate): New function.
  14659. (addPeerUpload): Removed.
  14660. (setPeerUpload): Removed.
  14661. (getPeerUpload): Removed.
  14662. (addPeerDownload): Removed.
  14663. (setPeerDownload): Removed.
  14664. (getPeerDownload): Removed.
  14665. * src/Peer.cc
  14666. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14667. * src/MetalinkRequestInfo.h
  14668. (MetalinkRequestInfo): Removed const qualifier from op.
  14669. * src/RequestInfo.h
  14670. (op): Removed const qualifier.
  14671. (RequestInfo): Removed const qualifier from op.
  14672. * src/prefs.h
  14673. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14674. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14675. * src/PeerInteractionCommand.cc
  14676. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14677. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14678. * src/PeerInteraction.cc
  14679. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14680. * src/main.cc
  14681. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14682. Added the description of "--max-download-limit" option.
  14683. Removed the description of "--upload-limit" option.
  14684. Added the description of "--max-upload-limit" option.
  14685. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14686. Added "--max-download-limit" option and "--max-upload-limit" option.
  14687. Added the warning message if "--upload-limit" option is used.
  14688. * src/DownloadCommand.cc
  14689. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14690. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14691. To rewrite segment download mechanism for HTTP/FTP download.
  14692. Use BitfieldMan to manage segment download.
  14693. * src/HttpResponseCommand.h
  14694. (executeInternal): Pass the reference of segment.
  14695. * src/AbstractCommand.cc
  14696. (prepareForRetry): Call segmentMan->cancelSegment here.
  14697. (onAbort): Call segmentMan->cancelSegment here.
  14698. * src/HttpDownloadCommand.cc
  14699. (prepareForNextSegment): New function.
  14700. * src/DownloadEngineFactory.cc
  14701. (newConsoleEngine): Removed splitter.
  14702. (newTorrentConsoleEngine): Removed splitter.
  14703. * src/Request.h
  14704. (segment): Renamed from seg.
  14705. * src/FtpInitiateConnectionCommand.h
  14706. (executeInternal): Pass the reference of segment.
  14707. * src/AbstractCommand.h
  14708. (executeInternal): Pass the reference of segment.
  14709. * src/pref.h
  14710. (PREF_SEGMENT_SIZE): New definition.
  14711. * src/HttpProxyRequestCommand.h
  14712. (executeInternal): Pass the reference of segment.
  14713. * src/HttpResponseCommand.cc
  14714. (checkResponse): Allowed status 206 when a request range starts 0.
  14715. (handleDefaultEncoding): Rewritten the code related to Segment.
  14716. (handleOtherEncoding): Rewritten the code related to Segment.
  14717. * src/SegmentMan.h
  14718. (SegmentEntry): New class.
  14719. (SegmentEntries): New type definition.
  14720. (bitfield): New variable.
  14721. (usedSegmentEntries): New variable.
  14722. (onNullBitfield): New function.
  14723. (checkoutSegment): New function.
  14724. (segments): Removed.
  14725. (splitter): Removed.
  14726. (unregisterId): Removed.
  14727. (getSegment): New function(overload)
  14728. (getDownloadedSize): Removed.
  14729. (cancelSegment): New function.
  14730. (completeSegment): New function.
  14731. (initBitfield): New function.
  14732. (hasSegment): New function.
  14733. (getDownloadLength): New function.
  14734. * src/BitfieldMan.h
  14735. (getStartIndex): New function.
  14736. (getEndIndex): New function.
  14737. (getMissingUnusedIndex): New function(overload).
  14738. (getSparseMissingUnusedIndex): New function.
  14739. * src/BitfieldMan.cc
  14740. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14741. (getMissingUnusedIndex): New function(overload).
  14742. (Range): New class.
  14743. (getStartIndex): New function.
  14744. (getEndIndex): New function.
  14745. (getSparseMissingUnusedIndex): New function.
  14746. (isBitSetInternal): Return false if the given index is less than 0.
  14747. * src/HttpInitiateConnectionCommand.h
  14748. (executeInternal): Pass the reference of segment.
  14749. * src/FtpNegotiateCommand.h
  14750. (executeInternal): Pass the reference of segment.
  14751. * src/FtpNegotiateCommand.cc
  14752. (recvSize): Initialize bitfield here.
  14753. * src/FtpTunnelResponseCommand.h
  14754. (executeInternal): Pass the reference of segment.
  14755. * src/HttpConnection.cc
  14756. (createRequest): Rewritten range header processing.
  14757. * src/DownloadCommand.h
  14758. (executeInternal): Pass the reference of segment.
  14759. (prepareForRetry): Removed.
  14760. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14761. function.
  14762. * src/main.cc
  14763. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14764. * src/SegmentMan.cc
  14765. (SegmentMan): Added bitfield. Removed splitter.
  14766. (~SegmentMan): Added bitfield. Removed splitter.
  14767. (unregisterId): Removed.
  14768. (getSegment): Rewritten.
  14769. (updateSegment): Rewritten.
  14770. (save): Rewritten.
  14771. (read): Rewritten.
  14772. (finished): Rewritten.
  14773. (getDownloadedSize): Removed.
  14774. (initBitfield): New function.
  14775. (FindSegmentEntryByIndex): New function object.
  14776. (FindSegmentEntryByCuid): New function object.
  14777. (checkoutSegment): New function.
  14778. (onNullBitfield): New function.
  14779. (getSegment): New function(overload).
  14780. (CancelSegment): New function object.
  14781. (cancelSegment): New function.
  14782. (completeSegment): New function.
  14783. (hasSegment): New function.
  14784. (getDownloadLength): New function.
  14785. * src/FtpInitiateConnectionCommand.cc
  14786. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14787. * src/Segment.h: Rewritten.
  14788. * src/Segment.cc (operator<<): New function.
  14789. * src/HttpDownloadCommand.h
  14790. (prepareForNextSegment): New function.
  14791. * src/Request.cc
  14792. (resetUrl): Made segment null.
  14793. * src/DownloadEngine.cc
  14794. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14795. * src/HttpProxyRequestCommand.h
  14796. (executeInternal): Pass the reference of segment.
  14797. * src/DownloadCommand.cc
  14798. (executeInternal): Rewritten the code related to Segment.
  14799. (prepareForRetry): Removed.
  14800. (prepareForNextSegment): Rewritten.
  14801. * src/FtpTunnelResponseCommand.h
  14802. (executeInternal): Pass the reference of segment.
  14803. To add HTTP 1.1 persistent connection support(experimental)
  14804. * src/HttpRequestCommand.cc
  14805. (executeInternal): Disable keep alive if it is disabled by
  14806. configuration.
  14807. * src/Request.h
  14808. (keepAlive): New variable.
  14809. (isKeepAlive): New function.
  14810. (setKeepAlive): New function.
  14811. * src/pref.h
  14812. (PREF_HTTP_KEEP_ALIVE): New definition.
  14813. * src/HttpResponseCommand.cc
  14814. (executeInternal): Check the remote server supports keep alive.
  14815. * src/HttpConnection.cc
  14816. (createRequest): Send "Connection: close" only if keep alive is
  14817. disabled.
  14818. * src/main.cc
  14819. (main):
  14820. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14821. To add max download speed limit:
  14822. * src/pref.h
  14823. (PREF_MAX_SPEED_LIMIT): New definition.
  14824. * src/PeerInteractionCommand.cc
  14825. (executeInternal): Added max download speed limit. Not tested yet.
  14826. * src/SegmentMan.h
  14827. (PeerStats): New type definition.
  14828. (peerStats): New variable.
  14829. (registerPeerStat): New function.
  14830. (FindPeerStat): New function object.
  14831. (getPeerStat): New function.
  14832. (calculateDownloadSpeed): New function.
  14833. * src/SpeedCalc.h: New class.
  14834. * src/SpeedCalc.cc: New class.
  14835. * src/main.cc
  14836. (main):
  14837. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14838. download speed is not restricted).
  14839. * src/PeerStat.h: New class.
  14840. * src/SegmentMan.cc
  14841. (registerPeerStat): New function.
  14842. (calculateDownloadSpeed): New function.
  14843. * src/DownloadCommand.cc
  14844. (STARTUP_IDLE_TIME): New definition.
  14845. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14846. downloadStart.
  14847. (~DownloadCommand): Call peerStat->downloadStop.
  14848. (executeInternal): Added download speed limitter. Rewritten lowest
  14849. speed limitter.
  14850. * src/HttpConnection.cc
  14851. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14852. * src/AbstractCommand.cc
  14853. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14854. Added hostname to the error message.
  14855. * src/ConsoleDownloadEngine.cc
  14856. (calculateStatistics): Initialize psize with dlSize.
  14857. * src/PieceMessage.cc
  14858. (receivedAction): Do not call peerInteraction->abortPiece here.
  14859. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14860. * src/BitfieldMan.h
  14861. (clearAllUseBit): New function.
  14862. (setAllUseBit): New function.
  14863. * src/BitfieldMan.cc
  14864. (clearAllBit): Do not clear useBitfield here.
  14865. (clearAllUseBit): New function.
  14866. (setAllUseBit): New function.
  14867. * src/Piece.cc
  14868. (clearAllBlock): Call bitfield->clearAllUseBit().
  14869. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14870. To make filename URL-decoded:
  14871. * src/HttpResponseCommand.h: Updated doc.
  14872. * src/HttpResponseCommand.cc
  14873. (determinFilename): Made filename URL-decoded.
  14874. * src/FtpInitiateConnectionCommand.cc
  14875. (executeInternal): Made filename URL-decoded.
  14876. * src/Util.h (urldecode): New function.
  14877. * src/Util.cc (urldecode): New function.
  14878. To fix a bug that caused assertion failure in ares_strerror:
  14879. * src/NameResolver.cc (callback): Fixed the bug.
  14880. * Release 0.7.3
  14881. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14882. To add --seed-time and --seed-ratio command-line option:
  14883. * src/Option.h (getAsDouble): New function.
  14884. * src/Option.cc (getAsDouble): New function.
  14885. * src/SeedCheckCommand.h: New class.
  14886. * src/SeedCheckCommand.cc: New class.
  14887. * src/DownloadEngineFactory.cc
  14888. (SeedCheckCommand.h): Included.
  14889. (UnionSeedCriteria.h): Included.
  14890. (TimeSeedCriteria.h): Included.
  14891. (ShareRatioSeedCriteria.h): Included.
  14892. (newTorrentConsoleEngine): Added the processing of seed option.
  14893. * src/SeedCriteria.h: New class.
  14894. * src/ShareRatioSeedCriteria.h: New class.
  14895. * src/TimeSeedCriteria.h: New class.
  14896. * src/UnionSeedCriteria.h: New class.
  14897. * src/prefs.h
  14898. (PREF_SEED_TIME): New definition.
  14899. (PREF_SEED_RATIO): New definition.
  14900. * src/main.cc
  14901. (showUsage): Added --seed-time and --seed-ratio option.
  14902. (main): Added --seed-time and --seed-ratio option.
  14903. Made default log file name "/dev/null".
  14904. * src/SharedHandle.h
  14905. (SharedHandle): Copy constructor. Made it assignable from the
  14906. SharedHandle of the subclasses.
  14907. (operator=): Made it assignable from the SharedHandle of the
  14908. subclasses.
  14909. (getRefCount): New function.
  14910. To add notice log level and the switch to write log to stdout. This
  14911. switch is configurable per log level.
  14912. * src/Logger.h
  14913. (notice): New function.
  14914. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14915. constant.
  14916. * src/LogFactory.cc
  14917. (getInstance): The use of NullLogger was removed. A log message with
  14918. notice log level was made written to stdout along with log file.
  14919. * src/NullLogger.h
  14920. (notice): New function.
  14921. * src/SimpleLogger.h
  14922. (writeHeader): Added the 'file' argument.
  14923. (writeLog): Added the 'file' argument.
  14924. (writeFile): New function.
  14925. (stdoutField): New variable.
  14926. (SimpleLogger): Removed the default constructor.
  14927. (SimpleLogger): Made the default value of logfile 0.
  14928. (debug): Added 'virtual' keyword.
  14929. (info): Added 'virtual' keyword.
  14930. (warn): Added 'virtual' keyword.
  14931. (error): Added 'virtual' keyword.
  14932. (notice): New function.
  14933. (setStdout): New function.
  14934. * src/SimpleLogger.cc
  14935. (WRITE_LOG): Replaced writeLog with writeFile.
  14936. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14937. (SimpleLogger): Removed the default constructor.
  14938. (setStdout): New function.
  14939. (writeLog): Added the handling of NOTICE log level.
  14940. (writeFile): New function.
  14941. (notice): New function.
  14942. * src/TorrentMan.h: Updated doc.
  14943. * src/BitfieldMan.h: Updated doc.
  14944. * src/TrackerWatcherCommand.cc
  14945. (execute): Return true if error occurred in the request to the tracker
  14946. and halt is requested.
  14947. * src/TrackerUpdateCommand.cc
  14948. (execute): Return true if error occurred in the request to the tracker
  14949. and halt is requested.
  14950. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14951. DownloadEngine:
  14952. * src/TorrentConsoleDownloadEngine.h
  14953. (onSelectiveDownloadingCompletes): Removed.
  14954. * src/TorrentConsoleDownloadEngine.cc
  14955. (onSelectiveDownloadingCompletes): Removed.
  14956. * src/TorrentDownloadEngine.h
  14957. (onEndOfRun): Added 'virtual' keyword.
  14958. (afterEachIteration): Removed.
  14959. (onSelectiveDownloadingCompletes): Removed.
  14960. * src/TorrentDownloadEngine.cc
  14961. (onEndOfRun): Removed filenameFixed.
  14962. (afterEachIteration): Removed.
  14963. * src/TorrentMan.cc
  14964. (completePiece): Call onDownloadComplete here.
  14965. (onDownloadComplete): Added 2 log messages.
  14966. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14967. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14968. * src/NameResolver.h: Added the prototype declaration of callback().
  14969. To support c-ares library:
  14970. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14971. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14972. * src/FtpInitiateConnectionCommand.h:
  14973. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14974. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14975. * src/HttpInitiateConnectionCommand.h:
  14976. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14977. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14978. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14979. #1542285 by tizianomueller)
  14980. * src/HttpInitiateConnectionCommand.cc:
  14981. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14982. * src/FtpInitiateConnectionCommand.cc:
  14983. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14984. * src/DownloadEngine.h:
  14985. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14986. * src/DownloadEngine.cc:
  14987. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14988. To fix the bug that causes compilation failure with metalink-support
  14989. disabled(bug#1543587):
  14990. * src/main.cc: Fixed with the patch by tizianomueller.
  14991. * Release 0.7.2
  14992. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14993. * src/main.cc
  14994. (main): Added a message to inform users that aria2 is starting to
  14995. verify checksum.
  14996. * src/RequestInfo.cc
  14997. (printDownloadAbortMessage): Added a message to inform users that
  14998. transfer can be resumed.
  14999. * src/FeatureConfig.cc
  15000. (FEATURE_ASYNC_DNS): New definition.
  15001. (FeatureConfig): Added aysnc DNS entry.
  15002. To replace CommandUuid with Command* in SocketEntry and
  15003. NameResolverEntry:
  15004. * src/DownloadEngine.h
  15005. (CommandUuids): Removed.
  15006. (SocketEntry::commandUuid): Removed.
  15007. (SocketEntry::command): New variable.
  15008. (SocketEntry::SocketEntry): Updated.
  15009. (SocketEntry::operator==): Updated.
  15010. (NameResolverEntry::commandUuid): Removed.
  15011. (NameResolverEntry::command): New variable.
  15012. (NameResolverEntry::NameResolverEntry): Updated.
  15013. (NameResolverEntry::operator==): Updated.
  15014. (waitData): Changed the argument type.
  15015. (addSocketForReadCheck): Changed the argument type.
  15016. (deleteSocketForReadCheck): Changed the argument type.
  15017. (addSocketForWriteCheck): Changed the argument type.
  15018. (deleteSocketForWriteCheck): Changed the argument type.
  15019. (addNameResolverCheck): Changed the argument type.
  15020. (deleteNameResolverCheck): Changed the argument type.
  15021. * src/DownloadEngine.cc
  15022. (FindCommand): Removed.
  15023. (run): Removed activeUuid. Added activeCommands instead.
  15024. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15025. (AccumulateActiveCommand): New function object.
  15026. (waitData): Use AccumulateActiveCommand.
  15027. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15028. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15029. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15030. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15031. (addNameResolverCheck): Use Command instead of CommandUuid.
  15032. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15033. * src/AbstractCommand.cc
  15034. (disableReadCheckSocket): Updated according to the changes in
  15035. DownloadEngine.
  15036. (setReadCheckSocket): Updated according to the changes in
  15037. DownloadEngine.
  15038. (disableWriteCheckSocket): Updated according to the changes in
  15039. DownloadEngine.
  15040. (setWriteCheckSocket): Updated according to the changes in
  15041. DownloadEngine.
  15042. (setNameResolverCheck): Updated according to the changes in
  15043. DownloadEngine.
  15044. (disableNameResolverCheck): Updated according to the changes in
  15045. DownloadEngine.
  15046. * src/AbstractCommand.cc
  15047. (disableReadCheckSocket): Updated according to the changes in
  15048. DownloadEngine.
  15049. (setReadCheckSocket): Updated according to the changes in
  15050. DownloadEngine.
  15051. (disableWriteCheckSocket): Updated according to the changes in
  15052. DownloadEngine.
  15053. (setWriteCheckSocket): Updated according to the changes in
  15054. DownloadEngine.
  15055. * release 0.7.1
  15056. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15057. To handle the case where some BitTorrent tracker requires all letters
  15058. except for [A-Za-z0-9] is URL encoded.
  15059. * src/Util.h
  15060. (torrentUrlencode): New function.
  15061. * src/Util.cc
  15062. (ctype.h): Included.
  15063. (torrentUrlencode): New function.
  15064. * src/TrackerWatcherCommand.cc
  15065. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15066. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15067. To add asynchronous DNS support(libares):
  15068. * src/AbstractCommand.h
  15069. (setNameResolverCheck): New function.
  15070. (disableNameResolverCheck): New function
  15071. (resolveHostname): New function.
  15072. * src/AbstractCommand.cc
  15073. (setNameResolverCheck): New function.
  15074. (disableNameResolverCheck): New function
  15075. (resolveHostname): New function.
  15076. * src/FtpInitiateConnectionCommand.h
  15077. (nameResolver): New function.
  15078. * src/FtpInitiateConnectionCommand.cc
  15079. (Util.h): Included.
  15080. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15081. disableWriteCheckSocket.
  15082. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15083. (executeInternal): Added async DNS support.
  15084. * src/HttpInitiateConnectionCommand.h
  15085. (nameResolver): New function.
  15086. * src/HttpInitiateConnectionCommand.cc
  15087. (DlRetryEx.h): Included.
  15088. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15089. disableWriteCheckSocket.
  15090. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15091. (executeInternal): Added async DNS support.
  15092. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15093. by extern "C" declaration.
  15094. * src/NameResolver.cc: New class.
  15095. * src/Util.h:
  15096. (isNumberAndDotsNotation): New function
  15097. * src/Util.cc
  15098. (isNumberAndDotsNotation): New function.
  15099. * src/DownloadEngine.h
  15100. (NameResolver.h): Included.
  15101. (NameResolverEntry): New class.
  15102. (NameResolverEntries): New type definition.
  15103. (addNameResolverCheck): New function.
  15104. (deleteNameResolverCheck): New function.
  15105. * src/DownloadEngine.cc
  15106. (run): Initialize cp with 0.
  15107. (SetDescriptor::operator()): Added for NameResolverEntry.
  15108. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15109. (waitData): Check nameResolver entries.
  15110. (updateFdSet): Update fds in nameResolver entries.
  15111. (addNameResolverCheck): New function.
  15112. (deleteNameResolverCheck): new function.
  15113. * src/PeerInteractionCommand.cc
  15114. (executeInternal): Fixed wrong socket handling.
  15115. * src/main.cc
  15116. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15117. * src/Util.cc
  15118. (fileChecksum): Removed the call to ctx.digestReset().
  15119. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15120. * po/ru.po: Azamat sent me Russian translation.
  15121. * src/FtpNegotiateCommand.cc
  15122. (recvGreeting): Call disableWriteCheckSocket just after
  15123. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15124. (recvRetr): Recognized status code 125 as a acceptable response code.
  15125. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15126. case-insesitive filesystem(BUG#1531057).
  15127. * src/Time.h: Renamed as TimeA2.h.
  15128. * src/Time.cc: Renamed as TimeA2.cc.
  15129. * src/TimeA2.h: New class.
  15130. * src/TimeA2.cc: New class.
  15131. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15132. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15133. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15134. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15135. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15136. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15137. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15138. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15139. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15140. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15141. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15142. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15143. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15144. * release 0.7.0
  15145. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15146. * src/PeerChokeCommand.h
  15147. (PeerChokeCommand): Rearranged the arguments.
  15148. * src/PeerChokeCommand.cc
  15149. (PeerChokeCommand): Rearranged the arguments.
  15150. * src/MetalinkEntry.h
  15151. (Checksum.h): Included.
  15152. (md5): Removed.
  15153. (sha1): Removed.
  15154. (checksum): New variable.
  15155. (operator=): Updated.
  15156. (check): Removed.
  15157. * src/prefs.h
  15158. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15159. (PREF_FOLLOW_TORRENT): New definition.
  15160. (PREF_SELECT_FILE): New definition.
  15161. (PREF_FOLLOW_METALINK): New definition.
  15162. * src/MetalinkResource.h
  15163. (TYPE_HTTPS): Added to enum TYPE.
  15164. * src/TorrentMan.cc
  15165. (~TorrentMan): Rewritten.
  15166. * src/MultiDiskWriter.cc
  15167. (MultiDiskAdaptor): Updated according to the changes in
  15168. MessageDigestContext.
  15169. (~MultiDiskAdaptor): Updated according to the changes in
  15170. MessageDigestContext.
  15171. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15172. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15173. * src/Util.h
  15174. (fileChecksum): Updated according to the changes in
  15175. MessageDigestContext.
  15176. * src/Util.cc
  15177. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15178. (fileChecksum): Updated according to the changes in
  15179. MessageDigestContext.
  15180. * src/messageDigest.h: Rewritten.
  15181. * src/MetalinkEntry.cc
  15182. (check): Removed.
  15183. (Supported): Updated.
  15184. (dropUnsupportedResource): Fixed a memory leak.
  15185. * src/ShaVisitor.cc
  15186. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15187. (~ShaVisitor): Updated according to the changes in
  15188. MessageDigestContext.
  15189. (visit): Updated according to the changes in MessageDigestContext.
  15190. * src/main.cc
  15191. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15192. command-line option added.
  15193. * src/DownloadEngine.h
  15194. (SocketEntry): New class.
  15195. (SocketEntries): New definition.
  15196. (PairFind): Removed.
  15197. (SockCmdMap): Removed.
  15198. * src/DownloadEngine.cc
  15199. (DownloadEngine): Rewritten.
  15200. (~DownloadEngine): Rewritten.
  15201. (run): Renamed activeCommandUuids as activeUuids.
  15202. (SetDescriptor): Rewritten.
  15203. (AccumulateActiveCommandUuid): Removed.
  15204. (AccumulateActiveUuid): New function object.
  15205. (waitData): Rewritten.
  15206. (updateFdSet): Rewritten.
  15207. (addSocket): Rewritten.
  15208. (deleteSocket): Rewritten.
  15209. (addSocketForReadCheck): Rewritten.
  15210. (deleteSocketForReadCheck): Rewritten.
  15211. (addSocketForWriteCheck): Rewritten.
  15212. (deleteSocketForWriteCheck): Rewritten.
  15213. * src/Xml2MetalinkProcessor.cc
  15214. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15215. * src/DownloadCommand.cc
  15216. (executeInternal): Added the check routine for lowest speed limit.
  15217. * src/AbstractDiskWriter.cc
  15218. (AbstractDiskWriter): Updated according to the changes in
  15219. MessageDigestContext.
  15220. (~AbstractDiskWriter): Updated according to the changes in
  15221. MessageDigestContext.
  15222. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15223. * src/RequestInfo.h: New class.
  15224. * src/UrlRequestInfo.h: New class.
  15225. * src/UrlRequestInfo.cc: New class.
  15226. * src/TorrentRequestInfo.h: New class.
  15227. * src/TorrentRequestInfo.cc: New class.
  15228. * src/MetalinkRequestInfo.h: New class.
  15229. * src/MetalinkRequestInfo.cc: New class.
  15230. * src/Checksum.h: New class.
  15231. * src/DownloadEngineFactory.h: New class.
  15232. * src/DownloadEngineFactory.cc: New class.
  15233. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15234. * src/Option.h
  15235. (getAsBool): New function.
  15236. * src/Option.cc
  15237. (prefs.h): Included.
  15238. (defined): 0-length value is now recognized as undefined.
  15239. (getAsInt): Rewritten.
  15240. (getAsLLInt): Rewritten.
  15241. (getAsBool): New function.
  15242. * src/FeatureConfig.h: Rewritten.
  15243. * src/FeatureConfig.cc: Rewritten.
  15244. * src/prefs.h
  15245. (PREF_STDOUT_LOG): New definition.
  15246. (PREF_LOG): New definition.
  15247. (PREF_DIR): New definition.
  15248. (PREF_OUT): New definition.
  15249. (PREF_SPLIT): New definition.
  15250. (PREF_DAEMON): New definition.
  15251. (PREF_REFERER): New definition.
  15252. (PREF_TORRENT_FILE): New definition.
  15253. (PREF_LISTEN_PORT): New definition.
  15254. (PREF_METALINK_FILE): New definition.
  15255. (PREF_METALINK_VERSION): New definition.
  15256. (PREF_METALINK_LANGUAGE): New definition.
  15257. (PREF_METALINK_OS): New definition.
  15258. (PREF_METALINK_SERVERS): New definition.
  15259. * src/main.cc
  15260. (main): Following command-line parameters are now put into Option
  15261. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15262. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15263. metalinkLanguage, metalinkOs, metalinkServers
  15264. To fix the bug that aria2 can not handle http response header properly.
  15265. * src/HttpHeader.cc
  15266. (put): Made name lowercased.
  15267. (defined): Made name lowercased.
  15268. (getFirst): Made name lowercased.
  15269. (get): Made name lowercased.
  15270. (getFirstAsInt): Rewritten.
  15271. (getFirstAsLLInt): Rewritten.
  15272. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15273. * src/TorrentMan.h:
  15274. (advertisePiece): Updated doc.
  15275. (getAdvertisedPieceIndexes): Updated doc.
  15276. (removeAdvertisedPiece); New function.
  15277. * src/TorrentMan.cc
  15278. (FindElapsedHave): New function object.
  15279. (removeAdvertisedPiece): New function.
  15280. * src/HaveEraseCommand.h: New class.
  15281. * src/HaveEraseCommand.cc: New class.
  15282. * src/FeatureConfig.h: New class.
  15283. * src/FeatureConfig.cc: New class.
  15284. * src/Request.h
  15285. (defaultPorts): Removed.
  15286. * src/Request.cc
  15287. (FeatureConfig.h): Included.
  15288. (Request): Removed the statements related to defaultPorts.
  15289. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15290. A default port number is now retrieved from FeatureConfig.
  15291. * src/main.cc
  15292. (HaveEraseCommand.h): Included.
  15293. (showVersion): Added the output of feature list.
  15294. (main): Added HaveEraseCommand to command queue in BitTorrent
  15295. downloading.
  15296. * src/PeerInteractionCommand.h
  15297. (chokeCheckPoint): Commented out.
  15298. (periodicExecPoint): New variable.
  15299. * src/PeerInteractionCommand.cc
  15300. (executeInternal): Following methods are now called in at least every
  15301. 0.5 seconds to reduce CPU usage:
  15302. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15303. checkHave(), sendKeepAlive().
  15304. (checkLongTimePeerChoking): Commented out.
  15305. * src/BitfieldMan.h
  15306. (getNthBitIndex): Changed the method signature.
  15307. (getMissingIndexRandomly): Changed the method signature.
  15308. * src/BitfieldMan.cc
  15309. (getNthBitIndex): Rewritten
  15310. (getMissingIndexRandomly): Rewritten.
  15311. (hasMissingPiece): Rewritten.
  15312. (getMissingIndex): Refactored.
  15313. (getMissingUnusedIndex); Refactored.
  15314. (getMissingIndex): Refactored.
  15315. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15316. * src/PeerMessage.h
  15317. (Piece.h): Included.
  15318. (SharedHandle.h): Included.
  15319. (invalidate): New variable.
  15320. (uploading): New variable.
  15321. (isInvalidate): New function.
  15322. (isUploading): New function.
  15323. (onPush): New function.
  15324. (onChoked): New function.
  15325. (onCanceled): New function.
  15326. (onAbortPiece): New function.
  15327. (PeerMessageHandle): New type definition.
  15328. * src/PeerMessage.cc
  15329. (PeerMessage): Added the initialization for invalidate and uploading.
  15330. * src/CancelMessage.h
  15331. (CancelMessage): Rewritten.
  15332. * src/RejectMessage.h
  15333. (RejectMessage): Rewritten.
  15334. * src/Metalinker.h
  15335. (operator=): Defined.
  15336. * src/MetaEntry.h
  15337. (operator=): Defined.
  15338. * src/MetalinkResource.h
  15339. (operator=): Defined.
  15340. * src/AllowedFastMessage.h
  15341. (AllowedFastMessage): Rewritten.
  15342. * src/HandshakeMessage.h
  15343. (HandshakeMessage): New function(overload).
  15344. * src/HandshakeMessage.cc
  15345. (HandshakeMessage): Rewritten.
  15346. (init): New function.
  15347. * src/HaveMessage.h
  15348. (HaveMessage): Rewritten.
  15349. * src/Time.h
  15350. (operator=): Defined the function body here.
  15351. * src/Time.cc
  15352. (operator=): Removed.
  15353. * src/SocketCore.h
  15354. (operator==): Defined here.
  15355. (operator!=): Defined here.
  15356. (operator<): Defined here.
  15357. * src/SocketCore.cc
  15358. (operator==): Removed.
  15359. (operator<): Removed.
  15360. * src/BitfieldMan.h
  15361. (operator=): Defined the function body here.
  15362. * src/BitfieldMan.cc
  15363. (operator=): Removed.
  15364. * src/TorrentMan.h
  15365. (deleteErrorPeer): Removed.
  15366. (deleteUnusedPeer); New function.
  15367. * src/TorrentMan.cc
  15368. (addPeer): Call deleteUnusedPeer.
  15369. (deleteErrorPeer): Removed.
  15370. (deleteUnusedPeer): New function.
  15371. * src/PeerAbstractCommand.h
  15372. (setNoCheck): New function.
  15373. (noCheck): New variable.
  15374. * src/PeerAbstractCommand.cc
  15375. (PeerAbstractCommand): Added the initialization of noCheck.
  15376. (execute): Added a check for noCheck.
  15377. (setNoCheck): New function.
  15378. * src/Util.h
  15379. (stdio.h): Included.
  15380. * src/Util.cc
  15381. (unistd.h): Included.
  15382. * src/DefaultDiskWriter.cc
  15383. (unistd.h): Included.
  15384. * src/Peer.h
  15385. (operator==): Defined the function body here.
  15386. (operator!=): Defined the function body here.
  15387. * src/Peer.cc
  15388. (operator==): Removed.
  15389. (operator!=): Removed.
  15390. * src/Piece.h
  15391. (Piece): Defined the function body here(copy constructor).
  15392. (operator=): Defined the function body here.
  15393. (operator==): Defined the function body here.
  15394. * src/Piece.cc
  15395. (Piece): Removed(copy constructor).
  15396. (operator=): Removed.
  15397. (operator==): Removed.
  15398. * src/PeerMessageUtil.h
  15399. (ChokeMessage.h): Removed.
  15400. (UnchokeMessage.h): Removed.
  15401. (InterestedMessage.h): Removed.
  15402. (NotInterestedMessage.h): Removed.
  15403. (HaveMessage.h): Removed.
  15404. (BitfieldMessage.h): Removed.
  15405. (RequestMessage.h): Removed.
  15406. (CancelMessage.h): Removed.
  15407. (PieceMessage.h): Removed.
  15408. (HandshakeMessage.h): Removed.
  15409. (KeepAliveMessage.h): Removed.
  15410. (PortMessage.h): Removed.
  15411. (HaveAllMessage.h): Removed.
  15412. (HaveNoneMessage.h): Removed.
  15413. (PeerConnection.h): Removed.
  15414. (HandshakeMessage.h): Included.
  15415. * src/BitfieldMessage.h
  15416. (init): New function.
  15417. (BitfieldMessage): Rewritten.
  15418. (BitfieldMessage): New function(overload).
  15419. * src/RequestSlot.h
  15420. (operator=): Defined the function body here.
  15421. (operator==): Defined the function body here.
  15422. * src/RequestSlot.cc
  15423. (operator=): Removed.
  15424. (operator==): Removed.
  15425. To remove the dependency on the PeerMessage subclass from
  15426. PeerInteraction:
  15427. * src/PeerMessageFactory.h: New class.
  15428. * src/PeerMessageFactory.cc: New class.
  15429. * src/SimplePeerMessage.cc
  15430. (send): If invalidate is true then do nothing.
  15431. * src/PeerInteractionCommand.cc
  15432. (HandshakeMessage.h): Included.
  15433. (KeepAliveMessage.h): Included.
  15434. (ChokeMessage.h): Included.
  15435. (UnchokeMessage.h): Included.
  15436. (HaveMessage.h): Included.
  15437. (executeInternal): Call setNoCheck().
  15438. Removed setWriteCheckSocket(socket).
  15439. * src/PeerInteraction.h
  15440. (ChokeMessage.h): Removed.
  15441. (UnchokeMessage.h): Removed.
  15442. (InterestedMessage.h): Removed.
  15443. (NotInterestedMessage.h): Removed.
  15444. (HaveMessage.h): Removed.
  15445. (BitfieldMessage.h): Removed.
  15446. (RequestMessage.h): Removed.
  15447. (CancelMessage.h): Removed.
  15448. (PieceMessage.h): Removed.
  15449. (HandshakeMessage.h): Removed.
  15450. (KeepAliveMessage.h): Removed.
  15451. (PortMessage.h): Removed.
  15452. (HaveAllMessage.h): Removed.
  15453. (HaveNoneMessage.h): Removed.
  15454. (RejectMessage.h): Removed.
  15455. (AllowedFastMessage.h): Removed.
  15456. (SuggestPieceMessage.h): Removed.
  15457. (PeerMessageFactory.h): Included.
  15458. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15459. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15460. (PeerMessageFactory): New variable.
  15461. (createPeerMessage): Removed.
  15462. (createHandshakeMessage): Removed.
  15463. (setPeerMessageCommonProperty): Removed.
  15464. (addRequestSlot): New function.
  15465. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15466. (getPeerMessageFactory): New function.
  15467. (createRequestMessage): Removed.
  15468. (createCancelMessage): Removed.
  15469. (createPieceMessage): Removed.
  15470. (createHaveMessage): Removed.
  15471. (createChokeMessage): Removed.
  15472. (createUnchokeMessage): Removed.
  15473. (createInterestedMessage): Removed.
  15474. (createNotInterestedMessage): Removed.
  15475. (createBitfieldMessage): Removed.
  15476. (createKeepAliveMessage): Removed.
  15477. (createHaveAllMessage): Removed.
  15478. (createHaveNoneMessage): Removed.
  15479. (createRejectMessage): Removed.
  15480. (createAllowedFastMessage): Removed.
  15481. * src/PeerInteraction.cc
  15482. (PeerInteraction): Allocate PeerMessageFactory here.
  15483. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15484. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15485. PieceMessage::ID.
  15486. (addMessage): Simplified by using PeerMessage::onPush().
  15487. (addRequestSlot): New function.
  15488. (rejectAllPieceMessageInQueue): Simplified by using
  15489. PeerMessage::onChoked().
  15490. (rejectPieceMessageInQueue): Simplified by using
  15491. PeerMessage::onCanceled().
  15492. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15493. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15494. (createHandshakeMessage): Removed.
  15495. (createPeerMessage): Removed.
  15496. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15497. (setPeerMessageCommonProperty): Removed.
  15498. (createRequestMessage): Removed.
  15499. (createCancelMessage): Removed.
  15500. (createPieceMessage): Removed.
  15501. (createHaveMessage): Removed.
  15502. (createChokeMessage): Removed.
  15503. (createUnchokeMessage): Removed.
  15504. (createInterestedMessage): Removed.
  15505. (createNotInterestedMessage): Removed.
  15506. (createBitfieldMessage): Removed.
  15507. (createKeepAliveMessage): Removed.
  15508. (createHaveAllMessage): Removed.
  15509. (createHaveNoneMessage): Removed.
  15510. (createRejectMessage): Removed.
  15511. (createAllowedFastMessage): Removed.
  15512. * src/PieceMessage.h
  15513. (createRejectMessage): New function.
  15514. (PieceMessage): Rewritten.
  15515. (onChoked): New function.
  15516. (onCanceled): New function.
  15517. * src/PieceMessage.cc
  15518. (send): If invalidate is true then do nothing, just return.
  15519. (createRejectMessage): New function.
  15520. (onChoked): New function.
  15521. (onCanceled): New function.
  15522. * src/RequestMessage.h
  15523. (RequestMessage): Rewritten.
  15524. (onPush): New function.
  15525. (onAbortPiece): New function.
  15526. * src/RequestMessage.cc
  15527. (onPush): New function.
  15528. (onAbortPiece): New function.
  15529. Update fd_set when a socket is added or deleted in order to improve
  15530. performance:
  15531. * src/DownloadEngine.h
  15532. (rfdset): New variable.
  15533. (wfdset): New variable.
  15534. (updateFdSet): New function.
  15535. * src/DownloadEngine.cc
  15536. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15537. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15538. (waitData): Copy rfdset and wfdset.
  15539. (updateFdSet): New function.
  15540. (addSocket): Call updateFdSet.
  15541. (deleteSocket): Call updateFdSet.
  15542. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15543. To add the support for Metalink3.0 backward compatible links:
  15544. * src/Request.h
  15545. (SAFE_CHARS): Added '#'.
  15546. (METALINK_MARK): New definition.
  15547. * src/Request.cc
  15548. (parseUrl): Added the support for Metalink3.0 backward compatible
  15549. links.
  15550. etc
  15551. * src/PeerInteraction.cc
  15552. (MsgPushBack): Removed.
  15553. (sendMessages): Use STL copy and back_inserter.
  15554. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15555. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15556. * src/TorrentMan.h
  15557. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15558. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15559. * src/SharedHandle.h: New class.
  15560. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15561. * src/HttpResponseCommand.h
  15562. (HttpResponseCommand): Wrapped Socket.
  15563. * src/SocketCore.h
  15564. (operator==): New function.
  15565. (operator!=): New function.
  15566. (operator<): New function.
  15567. (getSockfd): New function.
  15568. (isOpen): New function.
  15569. (writeData): New function.
  15570. * src/SocketCore.cc
  15571. (operator==): New function.
  15572. (operator!=): New function.
  15573. (operator<): New function.
  15574. * src/AbstractCommand.h
  15575. (socket): Changed its type to SocketHandle.
  15576. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15577. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15578. (disableReadCheckSocket): New function.
  15579. (disableWriteCheckSocket): New function.
  15580. (readCheckTarget): Changed its type to SocketHandle.
  15581. (writeCheckTarget): Changed its type to SocketHandle.
  15582. (AbstractCommand): Replaced Socket with SocketHandle.
  15583. * src/AbstractCommand.cc
  15584. (AbstractCommand): Replaced Socket with SocketHandle.
  15585. (~AbstractCommand): Removed the deallocation for Socket object.
  15586. (disableReadCheckSocket): New function.
  15587. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15588. (disableWriteCheckSocket): New function.
  15589. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15590. * src/HttpDownloadCommand.cc
  15591. (DownloadCommand): Replaced Socket with SocketHandle.
  15592. * src/PeerAbstractCommand.h
  15593. (socket): Changed its type to SocketHandle.
  15594. (peer): Changed its type to PeerHandle.
  15595. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15596. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15597. (disableReadCheckSocket): New function.
  15598. (disableWriteCheckSocket): New function.
  15599. (readCheckTarget): Changed its type to SocketHandle.
  15600. (writeCheckTarget): Changed its type to SocketHandle.
  15601. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15602. Replaced Peer with PeerHandle.
  15603. * src/HttpRequestCommand.cc
  15604. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15605. Use disableReadCheckSocket.
  15606. * src/PeerInitiateConnectionCommand.h
  15607. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15608. * src/PeerChokeCommand.cc
  15609. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15610. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15611. (execute): Use PeerHandle.
  15612. * src/PeerConnection.h
  15613. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15614. (socket): Changed its type to SocketHandle.
  15615. (PeerConnection): Replaced Socket with SocketHandle.
  15616. * src/PeerConnection.cc
  15617. (PeerConnection): Replaced Socket with SocketHandle.
  15618. * src/PeerInteractionCommand.h
  15619. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15620. Replaced Peer with PeerHandle.
  15621. * src/PeerInteractionCommand.cc
  15622. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15623. Replaced Peer with PeerHandle.
  15624. (executeInternal): Use disableWriteCheckSocket.
  15625. Use HandshakeMessageHandle.
  15626. (receiveMessages): Use PeerMessageHandle.
  15627. (prepareForNextPeer): Use PeerHandle.
  15628. * src/HttpProxyRequestCommand.h
  15629. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15630. * src/HttpResponseCommand.cc
  15631. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15632. * src/TorrentMan.cc
  15633. (nullPeer): Added external reference.
  15634. (~TorrentMan): Removed the deallocation of the elements of peers.
  15635. (addPeer): Rewritten.
  15636. (isPeerAvailable): Use nullPeer.
  15637. (deleteOldpeers): Replaced with deleteErrorPeer.
  15638. (deleteErrorPeer): New function.
  15639. (getPeer): Use PeerHandle and nullPeer.
  15640. (hasMissingPiece): Replaced Peer with PeerHandle.
  15641. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15642. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15643. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15644. (getMissingPiece): Replaced Peer with PeerHandle.
  15645. * src/FtpNegotiateCommand.cc
  15646. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15647. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15648. (recvGreeting): Use disableWriteCheckSocket.
  15649. (recvPasv): Removed the allocation of Socket.
  15650. Use disableReadCheckSocket.
  15651. (sendRestPasv): Use disableWriteCheckSocket.
  15652. (recvRetr): Changed assertion.
  15653. * src/PeerInteraction.h
  15654. (SharedHandle.h): Included SharedHandle.h.
  15655. (PeerMessageHandle): New type definition.
  15656. (HandshakeMessageHandle): New type definition.
  15657. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15658. (peer): Changed its type to PeerHandle.
  15659. (createHandshakeMessage): Replaced HandshakeMessage with
  15660. HandshakeMessageHandle.
  15661. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15662. (PeerInteraction): Replaced Peer with PeerHandle.
  15663. Replaced Socket with SocketHandle.
  15664. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15665. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15666. (receiveHandshake): Replaced HandshakeMessage with
  15667. HandshakeMessageHandle.
  15668. * src/PeerInteraction.cc
  15669. (PeerInteraction): Replaced Peer with PeerHandle.
  15670. Replaced Socket with SocketHandle.
  15671. (~PeerInteraction): Removed the deallocation of the elements of
  15672. messageQueue.
  15673. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15674. (isSendingMessageInProgress): Replaced PeerMessage with
  15675. PeerMessageHandle.
  15676. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15677. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15678. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15679. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15680. (abortPiece): Use PeerMessageHandle.
  15681. (receiveHandshake): Replaced HandshakeMessage with
  15682. HandshakeMessageHandle. Removed try-catch block.
  15683. (createHandshakeMessage): Replaced HandshakeMessage with
  15684. HandshakeMessageHandle.
  15685. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15686. Removed try-catch block.
  15687. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15688. * src/HttpProxyResponseCommand.cc
  15689. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15690. * src/FtpTunnelResponseCommand.h
  15691. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15692. * src/HttpConnection.cc
  15693. (HttpConnection): Replaced Socket with SocketHandle.
  15694. * src/PeerAbstractCommand.cc
  15695. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15696. (~PeerAbstractCommand): Removed the deallocation of socket.
  15697. Use disableReadCheckSocket, disableWriteCheckSocket.
  15698. (disableReadCheckSocket): New function.
  15699. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15700. (disableWriteCheckSocket): New function.
  15701. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15702. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15703. * src/FtpTunnelRequestCommand.cc
  15704. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15705. (~FtpTunnelRequestCommand): Corrected indentation.
  15706. * src/DownloadCommand.h
  15707. (DownloadCommand): Replaced Socket with SocketHandle.
  15708. * src/PeerListenCommand.cc
  15709. (PeerListenCommand): Removed the initialization of socket.
  15710. (~PeerListenCommand): Removed the deallocation of socket.
  15711. (bindPort): Use SocketHandle.
  15712. (execute): Use SocketHandle and PeerHandle.
  15713. * src/FtpDowndloadCommand.cc
  15714. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15715. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15716. * src/main.cc
  15717. (main): Corrected indentation.
  15718. * src/HttpInitiateConnectionCommand.cc
  15719. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15720. (executeInternal): Removed the allocation of socket.
  15721. * src/HttpRequestCommand.h
  15722. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15723. * src/FtpNegotiationCommand.h
  15724. (dataSocket): Changed its type to SocketHandle.
  15725. (serverSocket): Changed its type to SocketHandle.
  15726. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15727. * src/TorrentMan.h
  15728. (MAX_PEER_UPDATE): Removed.
  15729. (MAX_PEERS): New definition.
  15730. (Peers): The element is now of type PeerHandle.
  15731. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15732. (getPeer): Replaced Peer with PeerHandle.
  15733. (deleteOldErrorPeers): Removed.
  15734. (deleteErrorPeer): New function.
  15735. (hasMissingPiece): Replaced Peer with PeerHandle.
  15736. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15737. (getMissingPiece): Replaced Peer with PeerHandle.
  15738. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15739. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15740. (addActivePeer): Replaced Peer with PeerHandle.
  15741. (deleteActivePeer): Replaced Peer with PeerHandle.
  15742. Added a check for the return value of find.
  15743. * src/FtpTunnelResponseCommand.cc
  15744. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15745. * src/FtpInitiateConnectionCommand.cc
  15746. (executeInternal): Removed the allocation of socket.
  15747. * src/DownloadEngine.h
  15748. (Sockets): An element is now of type SocketHandle.
  15749. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15750. (CommandUuids): New type definition.
  15751. (rsockets): Changed its type to SockCmdMap.
  15752. (wsockets): Changed its type to SockCmdMap.
  15753. (addSocket): Rewritten.
  15754. (deleteSocket): Rewritten.
  15755. (addSocketForReadCheck): Rewritten.
  15756. (deleteSocketForReadCheck): Rewritten.
  15757. (addSocketForWriteCheck): Rewritten.
  15758. (deleteSocketForWriteCheck): Rewritten.
  15759. (PairFind): New template class.
  15760. * src/HttpDownloadCommand.h
  15761. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15762. * src/FtpConnection.cc
  15763. (FtpConnection): Replaced Socket with SocketHandle.
  15764. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15765. block.
  15766. * src/InitiateConnectionCommandFactory.cc
  15767. (DlAbortEx.h): Included DlAbortEx.h.
  15768. (createInitiateConnectionCommand): Throw exception if the protocol of
  15769. requested URI is not supported.
  15770. * src/Peer.cc
  15771. (nullPeer): Changed its type to PeerHandle.
  15772. (operator==): New function.
  15773. (operator!=): New function.
  15774. * src/Peer.h
  15775. (SharedHandle.h): Included SharedHandle.h.
  15776. (operator==): New function.
  15777. (operator!=): New function.
  15778. (Peer): Added the default constructor.
  15779. Use resetStatus() to initialize member variables.
  15780. (nullPeer): Removed.
  15781. * src/TrackerUpdateCommand.cc
  15782. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15783. with MIN_PEERS.
  15784. * src/PeerListenCommand.h
  15785. (socket): Changed its type to SocketHandle.
  15786. * src/Command.h
  15787. (CommandUuid): New type definition.
  15788. (uuid): New variable.
  15789. (uuidGen): New variable.
  15790. (Command): Added the initialization of uuid.
  15791. (getUuid): New function.
  15792. * src/Socket.h
  15793. (Socket): Removed.
  15794. (SocketHandle): New type definition.
  15795. * src/DownloadEngine.h
  15796. (FindCommand): New function object.
  15797. (run): The portion of socket check was rewritten.
  15798. (SetDescriptor): New function object.
  15799. (AccumulateActiveCommandUuid): New function object.
  15800. (waitData): Rewritten.
  15801. (addSocket): Rewritten.
  15802. (deleteSocket): Rewritten.
  15803. (addSocketForReadCheck): Rewritten.
  15804. (addSocketForWriteCheck): Rewritten.
  15805. (deleteSocketForReadCheck): Rewritten.
  15806. (deleteSocketForWriteCheck): Rewritten.
  15807. * src/HttpProxyResponseCommand.h
  15808. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15809. * src/HttpConnection.h
  15810. (socket): Changed its type to SocketHandle.
  15811. (HttpConnection): Replaced Socket with SocketHandle.
  15812. * src/PeerInitiateConnectionCommand.cc
  15813. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15814. (executeInternal): Removed the allocation of socket.
  15815. (prepareForNextPeer): Use PeerHandle.
  15816. * src/PeerMessage.h
  15817. (peer): Changed its type to PeerHandle.
  15818. (getPeer): Replaced Peer with PeerHandle.
  15819. (setPeer): Replaced Peer with PeerHandle.
  15820. * src/DownloadCommand.cc
  15821. (DownloadCommand): Replaced Socket with SocketHandle.
  15822. * src/FtpConnection.h
  15823. (socket): Changed its type to SocketHandle.
  15824. (FtpConnection): Replaced Socket with SocketHandle.
  15825. (sendPort); Replaced Socket with SocketHandle.
  15826. * src/FtpDowndloadCommand.h
  15827. (ctrlSocket): Changed its type to SocketHandle.
  15828. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15829. * src/HttpProxyRequestCommand.cc
  15830. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15831. * src/FtpTunnelRequestCommand.h
  15832. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15833. etc
  15834. * src/PeerChokeCommand.h
  15835. (setAllPeerChoked): Removed.
  15836. (setAllPeerResetDelta): Removed.
  15837. * src/PeerChokeCommand.cc
  15838. (setAllPeerChoked): Removed.
  15839. (ChokePeer): New function object.
  15840. (setAllPeerResetDelta): Removed.
  15841. (ResetDelta): New function object.
  15842. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15843. (execute): Show download speed when the local node is a seeder.
  15844. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15845. using STL.
  15846. * src/TrackerWatcherCommand.h
  15847. (MIN_PEERS): Removed.
  15848. * src/TorrentMan.cc
  15849. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15850. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15851. To fix the bug that .aria2 file is not saved if downloading is stopped
  15852. by the errors:it results that aria2 can not resume downloading:
  15853. * src/main.cc
  15854. (normalDownload): Added the call to save().
  15855. (main): Added the deletion of the elements in 'reserved'.
  15856. To fix log:
  15857. * src/PeerInteraction.cc
  15858. (receiveHandshake): Fixed log.
  15859. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15860. To improve download performance in BitTorrent:
  15861. * src/TorrentMan.cc
  15862. (getPeer): Check the number of connections. Return nullPeer if
  15863. it is greater than MAX_PEER_UPDATE.
  15864. This code was originally here, but was removed in 0.5.1.
  15865. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15866. To improve the conditional compilation:
  15867. * src/MultiDiskWriter.h:
  15868. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15869. * src/MultiDiskWriter.cc:
  15870. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15871. * src/Util.h:
  15872. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15873. Added ENABLE_BITTORRENT around computeFastSet().
  15874. * src/Util.cc:
  15875. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15876. Added ENABLE_BITTORRENT around computeFastSet().
  15877. * src/messageDigest.h:
  15878. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15879. * src/ShaVisitor.h:
  15880. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15881. * src/ShaVisitor.cc:
  15882. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15883. * src/main.cc:
  15884. Added ENABLE_BITTORRENT around includes and blocks related to
  15885. BitTorrent.
  15886. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15887. digest support is not available.
  15888. * src/AbstractDiskWriter.h:
  15889. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15890. * src/AbstractDiskWriter.cc:
  15891. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15892. * src/MetalinkEntry.cc
  15893. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15894. support is not available.
  15895. To add command-line options for Metalink:
  15896. * src/main.cc:
  15897. Added metalink-version, metalink-language, metalink-os,
  15898. follow-metalink.
  15899. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15900. * src/main.cc: Use these definition.
  15901. * Release 0.6.0
  15902. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15903. To add Metalink support(http/ftp only):
  15904. * src/AbstractCommand.h
  15905. (tryReserved): New function.
  15906. * src/AbstractCommand.cc
  15907. (execute): Call tryReserved().
  15908. (tryReserved): New function.
  15909. * src/Request.h
  15910. (Requests): New type definition.
  15911. * src/SegmentMan.h
  15912. (reserved): New variable.
  15913. * src/Util.h
  15914. (fileChecksum): New function.
  15915. (toUpper): New function.
  15916. (toLower): New function.
  15917. * src/Util.cc
  15918. (messageDigest.h): Included.
  15919. (trim): Trim \r\n\t.
  15920. (fileChecksum): New function.
  15921. (toUpper): New function.
  15922. (toLower): New function.
  15923. * src/main.cc
  15924. (normalDownload): New function.
  15925. (main): Added 2 command-line options: metalink-file,
  15926. metalink-connection. Their usage has not been written yet.
  15927. * src/MetalinkProcessor.h: New class.
  15928. * src/Xml2MetalinkProcessor.h: New class.
  15929. * src/Xml2MetalinkProcessor.cc: New class.
  15930. * src/MetalinkEntry.h: New class.
  15931. * src/MetalinkEntry.cc: New class.
  15932. * src/MetalinkResource.h: New class.
  15933. * src/MetalinkResource.cc: New class.
  15934. To add md5 message digest checking:
  15935. * src/messageDigest.h: Rewritten.
  15936. * src/MultiDiskWriter.cc: Updated according to the changes in
  15937. messageDigest.h.
  15938. * src/ShaVisitor.cc: Updated according to the changes in
  15939. messageDigest.h.
  15940. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15941. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15942. messageDigest.h.
  15943. To fix a bug that causes segfault when the payload length in peer
  15944. message is less than 0:
  15945. * src/PeerConnection.cc:
  15946. (receiveMessage): Fixed the bug.
  15947. * src/PeerMessageUtil.cc
  15948. (checkLength): Throw an exception if length is less than or equals to
  15949. 0.
  15950. To add new interfaces to Base64 encoding/decoding:
  15951. * src/Base64.h
  15952. (part_encode): Changed the method signature.
  15953. (encode): New function(overload).
  15954. (decode): New function(overload).
  15955. * src/Base64.cc
  15956. (part_encode): Rewritten.
  15957. (encode): Rewritten.
  15958. (encode): New function(overload).
  15959. To prevent a peer to download same piece if there is an error in
  15960. checksum:
  15961. * src/PieceMessage.cc
  15962. (receivedAction): Call peerInteraction->abortPiece().
  15963. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15964. To fix the bug that causes same have message is sent many times to
  15965. a single peer.
  15966. * src/Time.cc
  15967. (isNewer): Use Util::difftv().
  15968. * src/Util.cc
  15969. (difftv): Added a cast to (long long int).
  15970. * src/TorrentMan.cc
  15971. (advertisePiece): Use push_front.
  15972. (getAdvertisedPieceIndexes): A performance improvement was made.
  15973. To fix the bug that sends tracker requests without a sleep interval
  15974. when the number of connections is less than 15.
  15975. * src/TrackerWatcherCommand.cc
  15976. (execute): Now the number of connections is not a factor to decide
  15977. whether or not a tracker request should be sent or not.
  15978. * src/Time.h
  15979. (setTimeInSec): New function.
  15980. * src/Time.cc
  15981. (setTimeInSec): New function.
  15982. etc.
  15983. * src/ChokeMessage.cc
  15984. (receivedAction): Removed peer->snubbing = false
  15985. * src/PeerConnection.h
  15986. (receiveHandshake): Updated doc.
  15987. * src/TorrentMan.h
  15988. (getAdvertisedPieceIndexes): Updated the method signature.
  15989. * src/TorrentMan.cc
  15990. (getAdvertisedPieceIndexes): Updated the method signature.
  15991. * src/Time.h
  15992. (getTimeInMicros): Added a cast to (long long int).
  15993. (getTimeInMillis): Added a cast to (long long int).
  15994. * Release 0.5.2
  15995. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15996. To make a listening socket non-block:
  15997. * src/SocketCore.h
  15998. (setNonBlockingMode): New function.
  15999. * src/SocketCore.cc
  16000. (setNonBlockingMode): New function.
  16001. (beginListen): Added a call to setNonBlockingMode().
  16002. (acceptConnection): Call setNonBlockingMode().
  16003. (setBlockingMode): Updated.
  16004. To handle tracker's NAT-checking:
  16005. * src/PeerConnection.cc
  16006. (receiveHandshake): 'msg' param is filled with received data and
  16007. its length is assigned to 'length' param, even if all handshake
  16008. message is not yet received.
  16009. * src/PeerInteractionCommand.cc
  16010. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16011. a new peer connects to localhost.
  16012. A call to peerInteraction->sendHandshake() was removed because
  16013. it is called from peerInteraction->receiveHandshake(true).
  16014. * src/PeerInteraction.h
  16015. (quickReplied): New variable.
  16016. (receiveHandshake): Added an argument.
  16017. * src/PeerInteraction.cc
  16018. (PeerInteraction): Added the initialization of quickReplied.
  16019. (receiveHandshake): Send handshake message as soon as the info hash
  16020. in a handshake message from a peer is correct.
  16021. To change the random part of peer id and key parameter:
  16022. * src/TorrentMan.h
  16023. (key): New variable.
  16024. * src/TorrentMan.cc
  16025. (setupInternal1): Use Util::randomAlpha() to generate random part
  16026. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16027. key is also generated by Util::randomAlpha() and it is now 8 character
  16028. long.
  16029. * src/Util.h
  16030. (randomAlpha): New function.
  16031. * src/Util.cc
  16032. (randomAlpha): New function.
  16033. * src/TrackerWatcherCommand.cc
  16034. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16035. Added no_peer_id=1.
  16036. Set snubbing flag to false when a choke message is received from a
  16037. snubbed peer.
  16038. * src/ChokeMessage.cc
  16039. (receivedAction): Set snubbing flag to false.
  16040. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16041. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16042. * src/SimpleLogger.h (writeHeader): New function.
  16043. * src/SimpleLogger.cc (writeHeader): New function.
  16044. (writeLog): Fixed the bug that causes segfaults if exception message
  16045. contains an unescaped "%" character.
  16046. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16047. when a tracker request fails.
  16048. * src/Request.cc (parseUrl): Query string is now handled properly.
  16049. * Release 0.5.1
  16050. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16051. To add Time class which represents a specific instant in time and
  16052. its precision is microseconds. Time checking procedures were rewritten
  16053. using this object.
  16054. * src/Time.h: New class.
  16055. * src/Time.cc: New class.
  16056. * src/AbstractCommand.h
  16057. (updateCheckPoint): Removed.
  16058. (isTimeoutDetected): Removed.
  16059. (checkPoint): Changed the type to Time.
  16060. (timeout): New variable.
  16061. (setTimeout): New function.
  16062. * src/AbstractCommand.cc
  16063. (AbstractCommand): Removed the initialization of checkPoint.
  16064. Added the initialization of timeout.
  16065. (updateCheckPoint): Removed.
  16066. (isTimeoutDetected): Removed.
  16067. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16068. * src/PeerChokeCommand.h
  16069. (checkPoint): Changed the type to Time.
  16070. * src/PeerChokeCommand.cc
  16071. (PeerChokeCommand): Removed the initialization of checkPoint.
  16072. (execute): Rewritten using Time object.
  16073. * src/TrackerWatcherCommand.h
  16074. (checkPoint): Changed the type to Time.
  16075. * src/TrackerWatcherCommand.cc
  16076. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16077. (execute): Rewritten.
  16078. * src/ConsoleDownloadEngine.h
  16079. (cp): Changed the type to Time.
  16080. (startup): Changed the type to Time.
  16081. * src/ConsoleDownloadEngine.cc
  16082. (initStatistics): Use cp.reset(), startup.reset().
  16083. (calculateStatistics): Rewritten using Time object.
  16084. * src/PeerAbstractCommand.h
  16085. (updateCheckPoint): Removed.
  16086. (isTimeoutDetected): Removed.
  16087. (checkPoint): Changed the type to Time.
  16088. * src/PeerAbstractCommand.cc
  16089. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16090. (updateCheckPoint): Removed.
  16091. (isTimeoutDetected): Removed.
  16092. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16093. * src/PeerInteractionCommand.cc
  16094. (PeerInteractionCommand): Removed the initializations of struct
  16095. timeval variables.
  16096. * src/PeerInteractionCommand.h
  16097. (keepAliveCheckPoint): Changed the type to Time.
  16098. (chokeCheckPoint): Changed the type to Time.
  16099. (freqCheckPoint): Changed the type to Time.
  16100. (haveCheckTime): Changed the type to Time.
  16101. * src/PeerInteractionCommand.cc
  16102. (executeInternal): Rewritten using Time object.
  16103. (detectMessageFlooding): Rewritten using Time object.
  16104. (checkLongTimePeerChoking): Rewritten using Time object.
  16105. (sendKeepAlive): Rewritten using Time object.
  16106. (checkHave): Rewritten using Time object.
  16107. * src/SleepCommand.h
  16108. (checkPoint): Changed the type to Time.
  16109. * src/SleepCommand.cc
  16110. (SleepCommand): Removed the initialization of checkPoint.
  16111. (execute): Rewritten using Time object.
  16112. * src/TorrentAutoSaveCommand.h
  16113. (checkPoint): Changed the type to Time.
  16114. * src/TorrentAutoSaveCommand.cc
  16115. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16116. (execute): Rewritten.
  16117. * src/DownloadCommand.h
  16118. (sw): Changed the type to Time.
  16119. * src/DownloadCommand.cc
  16120. (DownloadCommand): Removed the initialization of sw.
  16121. (executeInternal): Rewritten.
  16122. * src/RequestSlot.h
  16123. (dispatchedTime): Changed the type to Time.
  16124. * src/RequestSlot.cc
  16125. (RequestSlot): Removed the call to setDispatchedTime().
  16126. (setDispatchedTime): Rewirtten.
  16127. (isTimeout): Rewritten.
  16128. (getLatencyInMillis): Rewritten.
  16129. * src/TorrentDownloadEngine.h
  16130. (cp): Changed the type to Time[2].
  16131. (startup): Changed the type to Time.
  16132. * src/TorrentDownloadEngine.cc
  16133. (initStatistics): Rewritten.
  16134. (calculateStatistics): Rewritten.
  16135. * src/DownloadEngine.cc
  16136. (run): Rewritten.
  16137. To detect all attempts to connect to the tracker are failed:
  16138. * src/AbstractCommand.cc
  16139. (execute): Increment e->segmentMan->errors if a command aborted.
  16140. * src/SegmentMan.h
  16141. (errors): New variable.
  16142. * src/SegmentMan.cc
  16143. (SegmentMan): Added the initialization of errors.
  16144. (init): Added the initialization of errors.
  16145. * src/TrackerWatcherCommand.cc
  16146. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16147. request was failed.
  16148. To handle snubbed peers:
  16149. * src/PeerChokeCommand.cc
  16150. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16151. (execute): Snubbed peers don't get unchoked.
  16152. * src/PeerInteraction.h
  16153. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16154. * src/PeerInteraction.cc
  16155. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16156. back the requested 16k block in 60 seconds.
  16157. * src/PieceMessage.cc
  16158. (receivedAction): A peer's snubbed state is cleard if it sends
  16159. the requested 16k block in 60 seconds.
  16160. * src/Peer.h
  16161. (snubbing): New variable.
  16162. * src/Peer.cc
  16163. (resetStatus): Added snubbed = false.
  16164. To fix the bug that causes have message is not sent:
  16165. * src/PeerInteractionCommand.cc
  16166. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16167. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16168. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16169. * src/TorrentMan.h
  16170. (HaveEntry): New class.
  16171. (advertisePiece): Rewritten.
  16172. (getAdvertisedPieceIndexes): Rewritten.
  16173. (Haves): Changed the type.
  16174. (getAdvertisedPieceIndexes): Added an argument.
  16175. Others:
  16176. * src/TorrentMan.h
  16177. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16178. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16179. * src/TorrentMan.cc
  16180. (getPeer): Don't check the number of connections here.
  16181. (setupInternal1): Changed peerId.
  16182. * src/PeerInteractionCommand.h
  16183. (KEEP_ALIVE_INTERVAL): New definition.
  16184. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16185. * src/main.cc
  16186. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16187. * src/DownloadEngine.h: Removed unnecessary header includes.
  16188. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16189. To fix the bug that causes segfaults if a tracker returns a zero-length
  16190. list as "peers":
  16191. * src/TrackerUpdateCommand.cc
  16192. (execute): Added a check to see wether the type of peers is Data*.
  16193. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16194. * Release 0.5.0
  16195. To fix compile issue with gcc3:
  16196. * src/CancelMessage.h
  16197. (ID): Renamed as ID_t
  16198. (ID_t): New enum.
  16199. * src/RejectMessage.h
  16200. (ID): Renamed as ID_t
  16201. (ID_t): New enum.
  16202. * src/SuggestPieceMessage.h
  16203. (ID): Renamed as ID_t
  16204. (ID_t): New enum.
  16205. * src/AllowedFastMessage.h
  16206. (ID): Renamed as ID_t
  16207. (ID_t): New enum.
  16208. * src/PortMessage.h
  16209. (ID): Renamed as ID_t
  16210. (ID_t): New enum.
  16211. * src/HaveNoneMessage.h
  16212. (ID): Renamed as ID_t
  16213. (ID_t): New enum.
  16214. * src/KeepAliveMessage.h
  16215. (ID): Renamed as ID_t
  16216. (ID_t): New enum.
  16217. * src/HaveAllMessage.h
  16218. (ID): Renamed as ID_t
  16219. (ID_t): New enum.
  16220. * src/UnchokeMessage.h
  16221. (ID): Renamed as ID_t
  16222. (ID_t): New enum.
  16223. * src/BitfieldMessage.h
  16224. (ID): Renamed as ID_t
  16225. (ID_t): New enum.
  16226. * src/PieceMessage.h
  16227. (ID): Renamed as ID_t
  16228. (ID_t): New enum.
  16229. * src/RequestMessage.h
  16230. (ID): Renamed as ID_t
  16231. (ID_t): New enum.
  16232. * src/NotInterestedMessage.h
  16233. (ID): Renamed as ID_t
  16234. (ID_t): New enum.
  16235. * src/ChokeMessage.h
  16236. (ID): Renamed as ID_t
  16237. (ID_t): New enum.
  16238. * src/InterestedMessage.h
  16239. (ID): Renamed as ID_t
  16240. (ID_t): New enum.
  16241. * src/HaveMessage.h
  16242. (ID): Renamed as ID_t
  16243. (ID_t): New enum.
  16244. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16245. * src/PeerAbstractCommand.h
  16246. (beforeSocketCheck): Removed.
  16247. * src/PeerAbstractCommand.cc
  16248. Modified in order to call executeInternal() even if socket check
  16249. and upload limit check fail.
  16250. * src/PeerInteractionCommand.h
  16251. (keepAlive): Removed.
  16252. (sendKeepAlive): New function.
  16253. (checkHave): New function.
  16254. (beforeSocketCheck): Removed.
  16255. * src/PeerInteractionCommand.cc
  16256. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16257. calls to checkHave() and sendKeepAlive().
  16258. (keepAlive): Renamed to sendKeepAlive().
  16259. (sendKeepAlive): New function.
  16260. (beforeSocketCheck): Removed.
  16261. (checkHave): New function.
  16262. * src/BitfieldMan.cc
  16263. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16264. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16265. 0.
  16266. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16267. * src/TorrentMan.h
  16268. (UsedPieces): Removed.
  16269. (Pieces): New type definition.
  16270. * src/Piece.h: Updated doc.
  16271. * src/Peer.h
  16272. (totalLength): Removed.
  16273. * src/Peer.cc
  16274. (updateLatency): Fixed the latency calculation.
  16275. * src/TorrentMan.cc
  16276. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16277. than or equal to MAX_PEER_LIST_SIZE.
  16278. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16279. then return false.
  16280. (deleteOldErrorPeers): Rewritten.
  16281. (deleteUsedPiece): Fixed the miss use of STL remove.
  16282. * src/PeerInteraction.h
  16283. (Pieces): Removed.
  16284. (deleteTimeoutRequestSlot): Removed.
  16285. (deleteCompletedRequestSlot): Removed.
  16286. (checkRequestSlot): New function.
  16287. * src/PeerInteraction.cc
  16288. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16289. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16290. (checkRequestSlot): New function.
  16291. * src/DownloadEngine.cc
  16292. (run): Clear activeSockets before calling waitData().
  16293. (waitData): Removed a call to activeSockets.clear().
  16294. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16295. To attempt to handle EINTR:
  16296. * src/SocketCore.cc
  16297. (isReadable): Added EINTR handling.
  16298. (isWritable): Added EINTR handling.
  16299. To improve the performance:
  16300. * src/AbstractCommand.cc
  16301. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16302. * src/PeerInteractionCommand.h
  16303. (receiveMessage): Renamed as receiveMessages().
  16304. (receiveMessages): New function.
  16305. * src/PeerInteractionCommand.cc
  16306. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16307. () function. detectMessageFlooding() is moved here.
  16308. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16309. (). The flooding detection for have message is comment out.
  16310. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16311. Util::difftv().
  16312. (receiveMessage): Renamed as receiveMessages().
  16313. (receiveMessages): New function.
  16314. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16315. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16316. * src/SleepCommand.cc
  16317. (execute): Use Util::difftvsec() instead of Util::difftv().
  16318. * src/BitfieldMan.h
  16319. (getNthBitIndex): New function.
  16320. (hasMissingPiece): New function.
  16321. (getAllMissingIndexes): New function.
  16322. * src/BitfieldMan.cc
  16323. (countSetBit): Rewritten.
  16324. (getNthBitIndex): New function.
  16325. (getMissingIndexRandomly): Rewritten.
  16326. (hasMissingPiece): New function.
  16327. (getAllMissingIndexes): New function.
  16328. * src/TorrentMan.cc
  16329. (hasMissingPiece): New function.
  16330. (deleteUsedPiece): Rewritten using STL.
  16331. * src/PeerInteraction.cc
  16332. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16333. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16334. (addRequests): Updated the number of pending requests.
  16335. * src/PeerAbstractCommand.cc
  16336. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16337. (execute): Returns true if TorrentMan::isHalt() is true.
  16338. Corrected the condition of upload limit checking.
  16339. * src/Util.h
  16340. (countBit): New function.
  16341. * src/Util.cc
  16342. (nbits): New variable.
  16343. (countBit): New function.
  16344. * src/DownloadEngine.h
  16345. (SockCmdMap): New type definition.
  16346. (waitData): Added an argument.
  16347. (addSocket): Added an argument.
  16348. (addSocketForReadCheck): Added an argument.
  16349. (addSocketForWriteCheck): Added an argument.
  16350. * src/DownloadEngine.cc
  16351. (run): Executes only commands whose sockets are ready to read or write.
  16352. All commands are executed in every 1 second.
  16353. (waitData): Calls select() again if it returned
  16354. EINTR.
  16355. (addSocket): Saves socket and command object pair to the map.
  16356. (deleteSocket): Deletes socket and command object pair from the map.
  16357. (addSocketForReadCheck): Added an argument.
  16358. (addSocketForWriteCheck): Added an argument.
  16359. * src/DownloadCommand.cc
  16360. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16361. To send "event=stopped" to the tracker when the application finishes:
  16362. * src/PeerChokeCommand.h
  16363. (checkPoint): New variable.
  16364. * src/PeerChokeCommand.cc
  16365. (PeerChokeCommand): Added the initialization of checkPoint.
  16366. (execute): The interval check is now done by checkPoint, not
  16367. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16368. * src/TorrentMan.h
  16369. (halt): New function.
  16370. (hasMissingPiece): New function.
  16371. (isHalt): New function.
  16372. (setHalt): New function.
  16373. * src/TorrentMan.cc
  16374. (TorrentMan): Added the initialization of halt.
  16375. * src/TorrentAutoSaveCommand.h
  16376. (checkPoint): New variable.
  16377. * src/PeerListenCommand.cc
  16378. (execute): Returns true if TorrentMan::isHalt() is true.
  16379. * src/main.cc
  16380. (setSignalHander): Added flags argument.
  16381. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16382. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16383. Removed printDownloadAbortMessage() after torrent downloading loop.
  16384. * src/TorrentAutoSaveCommand.cc
  16385. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16386. (execute): Returns true if TorrentMan::isHalt() is true.
  16387. The interval check is now done by checkPoint, not SleepCommand.
  16388. * src/TrackerWatcherCommand.cc
  16389. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16390. event=stopped.
  16391. * src/TrackerUpdateCommand.cc
  16392. (prepareForRetry): Do not use SleepCommand here.
  16393. (execute): Returns true if TorrentMan::isHalt() is true.
  16394. Others:
  16395. * src/TorrentMan.cc
  16396. (getMissingPieceIndex): Updated log message.
  16397. * src/PeerInteraction.cc
  16398. (createPeerMessag): Updated log message.
  16399. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16400. To add the ability to download several pieces in mix in a command and
  16401. increase the number of request slots according to request-cancel
  16402. latency:
  16403. * src/PeerInteractionCommand.cc
  16404. (executeInternal): The number of messages to be received at a time
  16405. is increased from 10 to 50.
  16406. * src/LogFactory
  16407. (getInstance): Added NullLogger.
  16408. * src/NullLogger.h: New class.
  16409. * src/BitfieldMan.h
  16410. (getMissingIndex): New function.
  16411. * src/BitfieldMan.cc
  16412. (getMissingIndex): New function.
  16413. * src/TorrentMan.h
  16414. (checkOutPiece): New function.
  16415. (getMissingPieceIndex): New function.
  16416. (getMissingFastPieceIndex): New function.
  16417. (getMissingFastPiece): New function.
  16418. * src/TorrentMan.cc
  16419. (updatePiece): Rewritten using STL.
  16420. (syncPiece): Rewritten using STL.
  16421. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16422. checkOutPiece().
  16423. (getMissingPieceIndex): New function.
  16424. (getMissingFastPieceIndex): New function.
  16425. (getMissingFastPiece): New function.
  16426. (checkOutPiece): New function.
  16427. * src/PeerInteraction.h
  16428. (Pieces): New type definition.
  16429. (piece): Removed.
  16430. (pieces): New variable.
  16431. (getNewPieceAndSendInterest): Added the "piece" argument.
  16432. (abortPiece): Added the "piece" argument.
  16433. (abortAllPieces): New function.
  16434. (isInRequestSlot): New function.
  16435. (hasDownloadPiece): Added the "index" argument.
  16436. (setDownloadPiece): Removed.
  16437. (getDownloadPiece): Added the "index" argument.
  16438. (updatePiece): New function.
  16439. (createRequestMessage): Added the "index" argument.
  16440. * src/PeerInteraction.cc
  16441. (onChoked): Rewritten.
  16442. (abortPiece): Rewirtten.
  16443. (abortAllPieces): New function.
  16444. (deleteTimeoutRequestSlot): Rewritten.
  16445. Clarified code a little bit.
  16446. (deleteCompletedRequestSlot): Rewritten.
  16447. (isInRequestSlot): New function.
  16448. (syncPiece): Rewritten.
  16449. (updatePiece): New function.
  16450. (getNewPieceAndSendInterest): Rewritten.
  16451. (addRequests): Rewritten.
  16452. (getDownloadPiece): Rewritten.
  16453. (hasDownloadPiece): Rewritten.
  16454. (createRequestMessage): Added the "index" argument.
  16455. * src/common.h
  16456. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16457. (DIV_FLOOR): New definition.
  16458. * src/PieceMessage.cc
  16459. (receivedAction): Update request-piece latency here.
  16460. * src/RequestSlot.h
  16461. (getLatencyInMillis): New function.
  16462. * src/RequestSlot.cc
  16463. (isTimeout): Rewritten using getLatencyInMillis.
  16464. (getLatencyInMillis): New function.
  16465. * src/Piece.h
  16466. (operator==): New function.
  16467. (getMissingBlockIndex): New function.
  16468. * src/Piece.cc
  16469. (operator==): New function.
  16470. (getMissingBlockIndex): New function.
  16471. * src/Peer.h
  16472. (DEFAULT_LATENCY): New definition.
  16473. (latency): New variable.
  16474. (updateLatency): New function.
  16475. (getLatency): New function.
  16476. * src/Peer.cc
  16477. (resetStatus): Reset latecy.
  16478. (updateLatency): New function.
  16479. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16480. * src/SocketCore.cc
  16481. (isReadable): Added secure to the condition.
  16482. * src/HttpConnection.cc
  16483. (receiveResponse): Fixed a bug that causes no response header
  16484. exception.
  16485. * src/Peer.h
  16486. (getFastSet): Fixed the return value type.
  16487. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16488. To remove a wait from download loop:
  16489. * src/DownloadEngine.cc
  16490. (run): Comment out shortSleep.
  16491. To rewrite the message handling:
  16492. * src/SimplePeerMessage.h: New class.
  16493. * src/SimplePeerMessage.cc: New class.
  16494. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16495. (msg): New variable.
  16496. (create): New function.
  16497. (send): Removed.
  16498. (getMessage): New function.
  16499. (getMessageLength): New function.
  16500. * src/CancelMessage.cc
  16501. (create): New function.
  16502. (receivedAction): Replaced deleteRequestMessageInQueue with
  16503. rejectPieceMessageInQueue.
  16504. (send): Removed.
  16505. (getMessage): New function.
  16506. (getMessageLength): New function.
  16507. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16508. (msg): New variable.
  16509. (msgLength): New variable.
  16510. (~BitfieldMessage): Deleted msg.
  16511. (send): Removed.
  16512. (getMessage): New function.
  16513. (getMessageLength): New function.
  16514. * src/BitfieldMessage.cc
  16515. (create): New function.
  16516. (send): Removed.
  16517. (getMessage): New function.
  16518. (getMessageLength): New function.
  16519. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16520. (msg): New variable.
  16521. (sendPredicate): New function.
  16522. (onSendComplete): New function.
  16523. (send): Removed.
  16524. (getMessage): New function.
  16525. (getMessageLength): New function.
  16526. (create): New function.
  16527. * src/ChokeMessage.cc
  16528. (create): New function.
  16529. (send): Removed.
  16530. (sendPredicate): New function.
  16531. (getMessage): New function.
  16532. (getMessageLength): New function.
  16533. (onSendComplete): New function.
  16534. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16535. (msg): New variable.
  16536. (send): Removed.
  16537. (getMessage): New function.
  16538. (getMessageLength): New function.
  16539. * src/KeepAliveMessage.cc
  16540. (send): Removed.
  16541. (getMessage): New function.
  16542. (getMessageLength): New function.
  16543. * src/PortMessage.h
  16544. (create): New function.
  16545. (receivedAction): Updated log message.
  16546. * src/PortMessage.cc: New file.
  16547. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16548. (msg): New variable.
  16549. (sendPredicate): New function.
  16550. (onSendComplete): New function.
  16551. (create): New function.
  16552. (send): Removed.
  16553. (getMessage): New function.
  16554. (getMessageLength): New function.
  16555. * src/UnchokeMessage.cc
  16556. (create): New function.
  16557. (send): Removed.
  16558. (sendPredicate): New function.
  16559. (getMessage): New function.
  16560. (getMessageLength): New function.
  16561. (onSendComplete): New function.
  16562. * src/PieceMessage.h
  16563. (leftPieceDataLength): Removed.
  16564. (leftDataLength): New variable.
  16565. (headerSend): New variable.
  16566. (pendingCount): New variable.
  16567. (msgHeader): New variable.
  16568. (sendPieceData): New function.
  16569. (incrementPendingCount): New function.
  16570. (isPendingCountMax): New function.
  16571. (create): New function.
  16572. (getMessageHeader): New function.
  16573. (getMessageHeaderLength): New function.
  16574. * src/PieceMessage.cc
  16575. (create): New function.
  16576. (getMessageHeader): New function.
  16577. (getMessageHeaderLength): New function.
  16578. (send): Rewritten.
  16579. (sendPieceData): New function.
  16580. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16581. (msg): New variable.
  16582. (create): New function.
  16583. (getMessage): New function.
  16584. (getMessageLength): New function.
  16585. * src/HaveMessage.cc
  16586. (create): New function.
  16587. (send): Removed.
  16588. (sendPieceData): New function.
  16589. (getMessage): New function.
  16590. (getMessageLength): New function.
  16591. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16592. (msg): New variable.
  16593. (create): New function.
  16594. (send): Removed.
  16595. (getMessage): New function.
  16596. (getMessageLength): New function.
  16597. * src/RequestMessage.cc
  16598. (create): New function.
  16599. (receivedAction): Added the handling of fast extension.
  16600. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16601. (send): Removed.
  16602. (getMessage): New function.
  16603. (getMessageLength): New function.
  16604. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16605. (msg): New variable.
  16606. (sendPredicate): New function.
  16607. (onSendComplete): New function.
  16608. (create): New function.
  16609. (getMessage): New function.
  16610. (getMessageLength): New function.
  16611. * src/InterestedMessage.cc
  16612. (create): New function.
  16613. (send): Removed.
  16614. (sendPieceData): New function.
  16615. (getMessage): New function.
  16616. (getMessageLength): New function.
  16617. (onSendComplete): New function.
  16618. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16619. (msg): New variable.
  16620. (sendPieceData): New function.
  16621. (onSendComplete): New function.
  16622. (create): New function.
  16623. (send): Removed.
  16624. (getMessage): New function.
  16625. (getMessageLength): New function.
  16626. * src/NotInterestedMessage.cc
  16627. (create): New function.
  16628. (send): Removed.
  16629. (sendPredicate): New function.
  16630. (getMessage): New function.
  16631. (getMessageLength): New function.
  16632. (onSendComplete): New function.
  16633. * src/AllowedFastMessage.h: New class.
  16634. * src/AllowedFastMessage.cc: New class.
  16635. * src/RejectMessage.h: New class.
  16636. * src/RejectMessage.cc: New class.
  16637. * src/SuggestPieceMessage.h: New class.
  16638. * src/SuggestPieceMessage.cc: New class.
  16639. * src/HaveAllMessage.h: New class.
  16640. * src/HaveAllMessage.cc: New class.
  16641. * src/HaveNoneMessage.h: New class.
  16642. * src/HaveNoneMessage.cc: New class.
  16643. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16644. (msg): New variable.
  16645. (reserved): New variable.
  16646. (create): New function.
  16647. (getId): New function.
  16648. (receivedAction): New function.
  16649. (getMessage): New function.
  16650. (getMessageLength): New function.
  16651. (isFastExtensionSupported): New function.
  16652. * src/HandshakeMessage.cc
  16653. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16654. (create): New function.
  16655. (getMessage): New function.
  16656. (getMessageLength): New function.
  16657. (toString): Added the output of reserved field.
  16658. (check): Added const qualifier.
  16659. (isFastExtensionSupported): New function.
  16660. * src/PeerMessageUtil.h
  16661. (createChokeMessage): Removed.
  16662. (createUnchokeMessage): Removed.
  16663. (createInterestedMessage): Removed.
  16664. (createNotInterestedMessage): Removed.
  16665. (createHaveMessage): Removed.
  16666. (createBitfieldMessage): Removed.
  16667. (createRequestMessage): Removed.
  16668. (createCancelMessage): Removed.
  16669. (createPieceMessage): Removed.
  16670. (createPortMessage): Removed.
  16671. (createChokeMessage): Removed.
  16672. (createUnchokeMessage): Removed.
  16673. (createInterestedMessage): Removed.
  16674. (createNotInterestedMessage): Removed.
  16675. (createHaveMessage): Removed.
  16676. (createBitfieldMessage): Removed.
  16677. (createRequestMessage): Removed.
  16678. (createCancelMessage): Removed.
  16679. (createPieceMessage): Removed.
  16680. (createKeepAliveMessage): Removed.
  16681. (createHandshakeMessage): Removed.
  16682. (setIntParam): New function.
  16683. (createPeerMessageString): New function.
  16684. * src/PeerMessageUtil.cc
  16685. (createChokeMessage): Removed.
  16686. (createUnchokeMessage): Removed.
  16687. (createInterestedMessage): Removed.
  16688. (createNotInterestedMessage): Removed.
  16689. (createHaveMessage): Removed.
  16690. (createBitfieldMessage): Removed.
  16691. (createRequestMessage): Removed.
  16692. (createCancelMessage): Removed.
  16693. (createPieceMessage): Removed.
  16694. (createPortMessage): Removed.
  16695. (createRequestMessage): Removed.
  16696. (createCancelMessage): Removed.
  16697. (createPieceMessage): Removed.
  16698. (createHaveMessage): Removed.
  16699. (createChokeMessage): Removed.
  16700. (createUnchokeMessage): Removed.
  16701. (createInterestedMessage): Removed.
  16702. (createNotInterestedMessage): Removed.
  16703. (createBitfieldMessage): Removed.
  16704. (createKeepAliveMessage): Removed.
  16705. (createHandshakeMessage): Removed.
  16706. (setIntParam): New function.
  16707. (createPeerMessageString): New function.
  16708. * src/PeerConnection.h
  16709. (peer): Removed.
  16710. (torrentMan): Removed.
  16711. (createNLengthMessage): Removed.
  16712. (setIntParam): Removed.
  16713. (writeOutgoingMessageLog): Removed all overloaded functions.
  16714. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16715. (sendMessage): New function.
  16716. (sendHandshake): Removed.
  16717. (sendKeepAlive): Removed.
  16718. (sendChoke): Removed.
  16719. (sendUnchoke): Removed.
  16720. (sendInterested): Removed.
  16721. (sendNotInterested): Removed.
  16722. (sendHave): Removed.
  16723. (sendBitfield): Removed.
  16724. (sendRequest): Removed.
  16725. (sendPiece): Removed.
  16726. (sendPieceHeader): Removed.
  16727. (sendPieceData): Removed.
  16728. (sendCancel): Removed.
  16729. (getPeer): Removed.
  16730. * src/PeerConnection.cc
  16731. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16732. (sendHandshake): Removed.
  16733. (sendKeepAlive): Removed.
  16734. (createNLengthMessage): Removed.
  16735. (setIntParam): Removed.
  16736. (writeOutgoingMessageLog): Removed all overloaded functions.
  16737. (sendChoke): Removed.
  16738. (sendUnchoke): Removed.
  16739. (sendInterested): Removed.
  16740. (sendNotInterested): Removed.
  16741. (sendHave): Removed.
  16742. (sendBitfield): Removed.
  16743. (sendRequest): Removed.
  16744. (sendPiece): Removed.
  16745. (sendPieceHeader): Removed.
  16746. (sendPieceData): Removed.
  16747. (sendMessage): New function.
  16748. (sendCancel): Removed.
  16749. * src/PeerInteractionCommand.cc
  16750. (PeerInteractionCommand): Call setUploadLimit.
  16751. (executeInternal): Call setUploadLimit.
  16752. Added the handling of "inProgress" state of handshake message.
  16753. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16754. sendNow().
  16755. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16756. sendNow().
  16757. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16758. * src/TorrentMan.h
  16759. (PEER_ID_LENGTH): New definition.
  16760. (hasAllPieces): New function.
  16761. * src/TorrentMan.cc
  16762. (getMissingPiece): Added the handling of fast extension.
  16763. (cancelPiece): Call updatePiece().
  16764. (hasAllPieces): New function.
  16765. * src/PeerInteraction.h
  16766. (fastSet): New variable.
  16767. (getNewPieceAndSendInterest): Changed the return type to void.
  16768. (send): Renamed as sendMessages.
  16769. (deleteAllRequestSlot): Removed.
  16770. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16771. (cancelAllRequest): Removed all overloaded functions.
  16772. (deleteAllRequestSlot): Removed.
  16773. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16774. (rejectPieceMessageInQueue): New function.
  16775. (rejectAllPieceMessageInQueue): New function.
  16776. (onChoked): New function.
  16777. (isSendingMessageInProgress): New function.
  16778. (getCorrespondingRequestSlot): Changed its arguments.
  16779. (isInFastSet): New function.
  16780. (addFastSetIndex): New function.
  16781. (addRequests): New function.
  16782. (sendNow): Removed.
  16783. (trySendNow): Removed.
  16784. (sendBitfield): New function.
  16785. (sendAllowdFast): New function.
  16786. (createHaveAllMessage): New function.
  16787. (createHaveNoneMessage): New function.
  16788. (createRejectMessage): New function.
  16789. (createAllowedFastMessage): New function.
  16790. * src/PeerInteraction.cc
  16791. (send): Renamed as sendMessages.
  16792. (sendMessages): New function.
  16793. (MsgPushBack): New class.
  16794. (isSendingMessageInProgress): New function.
  16795. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16796. (rejectAllPieceMessageInQueue): New function.
  16797. Added the handling of fast extension.
  16798. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16799. (rejectPieceMessageInQueue): New function.
  16800. Added the handling of fast extension.
  16801. (deleteRequestSlot): Replaced for loop with std::find.
  16802. (onChoked): New function.
  16803. (deleteAllRequestSlot): Removed.
  16804. (abortPiece): Rewirtten.
  16805. (deleteTimeoutRequestSlot): Updated log messages.
  16806. (getCorrespondingRequestSlot): Changed its arguments.
  16807. (cancelAllRequest): Removed all overloaded functions.
  16808. (receiveHandshake): Added the check to see whether an incoming peer
  16809. supports fast extension.
  16810. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16811. PeerMessageUtil.
  16812. (createPeerMessage): Use create() of each message class instead of
  16813. PeerMessageUtil.
  16814. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16815. AllowedFastMessage were added.
  16816. (getNewPieceAndSendInterest): Changed its return value type to void.
  16817. Added the handling of fast extension.
  16818. (addRequests): New function.
  16819. (sendNow): Removed.
  16820. (sendHandshake): Rewritten.
  16821. (trySendNow): Removed.
  16822. (sendBitfield): New function.
  16823. (sendAllowdFast): New function.
  16824. (isInFastSet): New function.
  16825. (addFastSetIndex): New function.
  16826. (createRequestMessage): Use RequestMessage::create instead of
  16827. PeerMessageUtil.
  16828. (createCancelMessage): Use CancelMessage::create instead of
  16829. PeerMessageUtil.
  16830. (createPieceMessage): Use PieceMessage::create instead of
  16831. PeerMessageUtil.
  16832. (createHaveMessage): Use HaveMessage::create instead of
  16833. PeerMessageUtil.
  16834. (createChokeMessage): Use ChokeMessage::create instead of
  16835. PeerMessageUtil.
  16836. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16837. PeerMessageUtil.
  16838. (createInterestedMessage): Use InterestedMessage::create instead of
  16839. PeerMessageUtil.
  16840. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16841. of PeerMessageUtil.
  16842. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16843. PeerMessageUtil.
  16844. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16845. PeerMessageUtil.
  16846. (createHaveAllMessage): New function.
  16847. (createHaveNoneMessage): New function.
  16848. (createRejectMessage): New function.
  16849. (createAllowedFastMessage: New function.
  16850. * src/Util.h
  16851. (sha1Sum): New function.
  16852. (computeFastSet): New function.
  16853. * src/Util.cc
  16854. (sha1Sum): New function.
  16855. (computeFastSet): New function.
  16856. * src/Peer.h
  16857. (fastExtensionEnabled): New variable.
  16858. (fastSet): New variable.
  16859. (setAllBitfield): New function.
  16860. (setFastExtensionEnabled): New function.
  16861. (isFastExtensionEnabled): New function.
  16862. (addFastSetIndex): New function.
  16863. (getFastSet): New function.
  16864. (isInFastSet): New function.
  16865. (countFastSet): New function.
  16866. * src/Peer.cc
  16867. (isInFastSet): New function.
  16868. (addFastSetIndex): New function.
  16869. (setAllBitfield): New function.
  16870. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16871. sockets.
  16872. * src/PeerAbstractCommand.cc
  16873. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16874. and uploadLimit.
  16875. (execute): Changed the procedure of checking sockets. The upload speed
  16876. checking were added.
  16877. (setUploadLimit): New function.
  16878. (setUploadLimitCheck): New function.
  16879. * src/PeerAbstractCommand.h
  16880. (setUploadLimit): New function.
  16881. (setUploadLimitCheck): New function.
  16882. (uploadLimit): New variable.
  16883. (uploadLimitCheck): New variable.
  16884. To contact a tracker regularly:
  16885. * src/TrackerWatcherCommand.h (interval): New variable.
  16886. (checkPoint): New variable.
  16887. (TrackerWatcherCommand): Added interval argument.
  16888. * src/TrackerWatcherCommand.cc
  16889. (TrackerWatcherCommand): Initialized checkPoint.
  16890. (execute): Now a tracker is contacted in every specified period.
  16891. If peer list is not needed, send request with numwant=0.
  16892. * src/TrackerUpdateCommand.cc
  16893. (execute): Updated log messages.
  16894. * src/DownloadEngine.cc
  16895. (~DownloadEngine): Removed two asserts.
  16896. (waitData): Uncommented wfds. May be a bug fix.
  16897. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16898. * src/PeerInteractionCommand.h
  16899. (checkInactiveConnection): Removed.
  16900. * src/PeerInteractionCommand.cc
  16901. (executeInternal): Removed following function calls:
  16902. detectMessageFlooding(), checkLongTimePeerChoking and
  16903. checkInactiveConnection().
  16904. (checkInactiveConnection): Removed.
  16905. (detectMessageFlooding): Removed function call to
  16906. checkInactiveConnection().
  16907. * src/PeerMessageUtil.h
  16908. (createChokeMessage): New function. Overload.
  16909. (createUnchokeMessage): New function. Overload.
  16910. (createInterestedMessage): New function. Overload.
  16911. (createNotInterestedMessage): New function. Overload.
  16912. (createHaveMessage): New function. Overload.
  16913. (createBitfieldMessage): New function. Overload.
  16914. (createRequestMessage): New function. Overload.
  16915. (createCancelMessage): New function. Overload.
  16916. (createPieceMessage): New function. Overload.
  16917. (createKeepAliveMessage): New function. Overload.
  16918. * src/PeerMessageUtil.cc
  16919. (createChokeMessage): New function. Overload.
  16920. (createUnchokeMessage): New function. Overload.
  16921. (createInterestedMessage): New function. Overload.
  16922. (createNotInterestedMessage): New function. Overload.
  16923. (createHaveMessage): New function. Overload.
  16924. (createBitfieldMessage): New function. Overload.
  16925. (createRequestMessage): New function. Overload.
  16926. (createCancelMessage): New function. Overload.
  16927. (createPieceMessage): New function. Overload.
  16928. (createKeepAliveMessage): New function. Overload.
  16929. * src/SendMessageQueue.cc
  16930. (createRequestMessage): Use PeerMessageUtil.
  16931. (createCancelMessage): Use PeerMessageUtil.
  16932. (createPieceMessage): Use PeerMessageUtil.
  16933. (createHaveMessage): Use PeerMessageUtil.
  16934. (createChokeMessage): Use PeerMessageUtil.
  16935. (createUnchokeMessage): Use PeerMessageUtil.
  16936. (createInterestedMessage): Use PeerMessageUtil.
  16937. (createNotInterestedMessage): Use PeerMessageUtil.
  16938. (createBitfieldMessage): Use PeerMessageUtil.
  16939. (createKeepAliveMessage): Use PeerMessageUtil.
  16940. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16941. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16942. * src/PeerInteraction.h: New class.
  16943. * src/PeerInteraction.cc: New class.
  16944. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16945. Each peer message has its own class.
  16946. * src/PendingMessages.h: Removed.
  16947. * src/PendingMessages.cc: Removed. The sending process was moved to
  16948. each message class.
  16949. * src/RequestSlotMan.h: Removed.
  16950. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16951. SendMessageQueue.
  16952. * src/RequestMessage.h: New class.
  16953. * src/RequestMessage.cc: New class.
  16954. * src/CancelMessage.h: New class.
  16955. * src/CancelMessage.cc: New class.
  16956. * src/BitfieldMessage.h: New class.
  16957. * src/BitfieldMessage.cc: New class.
  16958. * src/ChokeMessage.h: New class.
  16959. * src/ChokeMessage.cc: New class.
  16960. * src/KeepAliveMessage.h: New class.
  16961. * src/KeepAliveMessage.cc: New class.
  16962. * src/PortMessage.h: New class.
  16963. * src/UnchokeMessage.h: New class.
  16964. * src/UnchokeMessage.cc: New class.
  16965. * src/PieceMessage.h: New class.
  16966. * src/PieceMessage.cc: New class.
  16967. * src/HaveMessage.h: New class.
  16968. * src/HaveMessage.cc: New class.
  16969. * src/BitfieldMessage.h: New class.
  16970. * src/BitfieldMessage.cc: New class.
  16971. * src/NotInterestedMessage.h: New class.
  16972. * src/NotInterestedMessage.cc: New class.
  16973. * src/InterestedMessage.h: New class.
  16974. * src/InterestedMessage.cc: New class.
  16975. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16976. (getSendMessageQueue): New function.
  16977. (setSendMessageQueue): New function.
  16978. * src/HandshakeMessage.cc: New class.
  16979. * src/PeerConnection.h (receiveMessage): Changed return value and
  16980. arguments.
  16981. (receiveHandshake): Changed return value and arguments.
  16982. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16983. here.
  16984. (receiveHandshake): Do not create handshake class here.
  16985. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16986. (piece): Removed.
  16987. (syncPiece): Removed.
  16988. (sendInterest): Removed.
  16989. (sendMessages): Removed.
  16990. (createRequestPendingMessage): Removed.
  16991. (checkPieceHash): Removed.
  16992. (erasePieceOnDisk): Removed.
  16993. (getNewPieceAndSendInterest): Removed.
  16994. (onGotNewPice): Removed.
  16995. (onGotWrongPiece): Removed.
  16996. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16997. Removed peerConnection, piece.
  16998. (~PeerInteractionCommand): Removed peerConnection.
  16999. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17000. (syncPiece): Moved to SendMessageQueue.
  17001. (decideChoking): Removed PendingMessage.
  17002. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17003. The action after receiving peer message was moved to each message
  17004. class.
  17005. (onGotNewPice): Moved to SendMessageQueue.
  17006. (onGotWrongPiece): Moved to SendMessageQueue.
  17007. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17008. (sendInterest): Moved to SendMessageQueue.
  17009. (createRequestPendingMessage): Removed.
  17010. (sendMessages): Moved to SendMessageQueue.
  17011. (onAbort): Use SendMessageQueue::abortPiece()
  17012. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17013. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17014. (checkPieceHash): Moved to SendMessageQueue.
  17015. (erasePieceOnDisk): Moved to SendMessageQueue.
  17016. * src/PeerMessageUtil.h
  17017. (createBitfieldMessage): Removed.
  17018. (createHaveMessage): Changed return value and arguments.
  17019. (createBitfieldMessage): Changed return value and arguments.
  17020. (createRequestCancelMessage): Removed.
  17021. (createPieceMessage): Changed return value and arguments.
  17022. (getShortIntParam): New function.
  17023. (checkIndex): Changed arguments.
  17024. (checkBegin): Changed arguments.
  17025. (checkLength): Changed arguments.
  17026. (checkPieceOffset): Removed.
  17027. (checkRange): New function.
  17028. (checkBitfield): Changed arguments.
  17029. (createPeerMessage): Removed.
  17030. (checkIntegrity): Removed.
  17031. (createHandshakeMessage): Changed arguments.
  17032. (createChokeMessage): New function.
  17033. (createUnchokeMessage): New function.
  17034. (createInterestedMessage): New function.
  17035. (createNotInterestedMessage): New function.
  17036. (createRequestMessage): New function.
  17037. (createCancelMessage): New function.
  17038. (createPortMessage): New function.
  17039. * src/PeerMessageUtil.cc
  17040. (createBitfieldMessage): Removed.
  17041. (createHaveMessage): Changed return value and arguments.
  17042. (createBitfieldMessage): Changed return value and arguments.
  17043. (createRequestCancelMessage): Removed.
  17044. (createPieceMessage): Changed return value and arguments.
  17045. (getShortIntParam): New function.
  17046. (checkIndex): Changed arguments.
  17047. (checkBegin): Changed arguments.
  17048. (checkLength): Changed arguments.
  17049. (checkPieceOffset): Removed.
  17050. (checkRange): New function.
  17051. (checkBitfield): Changed arguments.
  17052. (createPeerMessage): Removed.
  17053. (checkIntegrity): Removed.
  17054. (createHandshakeMessage): Changed arguments.
  17055. (createChokeMessage): New function.
  17056. (createUnchokeMessage): New function.
  17057. (createInterestedMessage): New function.
  17058. (createNotInterestedMessage): New function.
  17059. (createRequestMessage): New function.
  17060. (createCancelMessage): New function.
  17061. (createPortMessage): New function.
  17062. * src/PeerMessage.h
  17063. (id): Removed.
  17064. (index): Removed.
  17065. (begin): Removed.
  17066. (length): Removed.
  17067. (bitfield): Removed.
  17068. (bitfieldLength): Removed.
  17069. (block): Removed.
  17070. (blockLength): Removed.
  17071. (inProgress): New variable.
  17072. (cuid): New variable.
  17073. (peer): New variable.
  17074. (sendMessageQueue): New variable.
  17075. (logger): New variable.
  17076. (setBitfield): Removed.
  17077. (getBitfield): Removed.
  17078. (setBlock): Removed.
  17079. (getBlock): Removed.
  17080. (getBitfieldLength): Removed.
  17081. (getBlockLength): Removed.
  17082. (isInProgress): New function.
  17083. (toString): Made pure virtual.
  17084. (check): New function.
  17085. (send): New function.
  17086. (receivedAction): New function.
  17087. (getId): Made pure virtual.
  17088. (setId): Removed.
  17089. (getIndex): Removed.
  17090. (setIndex): Removed.
  17091. (getBegin): Removed.
  17092. (setBegin): Removed.
  17093. (getLength): Removed.
  17094. (setLength): Removed.
  17095. (getCuid): New function.
  17096. (setCuid): New function.
  17097. (getPeer): New function.
  17098. (setPeer): New function.
  17099. (getSendMessageQueue): New function.
  17100. (setSendMessageQueue): New function.
  17101. (ID): Removed.
  17102. * src/PeerMessage.cc
  17103. (setBitfield): Removed.
  17104. (setBlock): Removed.
  17105. (toString): Removed.
  17106. * src/TorrentMan.h
  17107. (getPieceLength): New function.
  17108. (getPieceLength): New function.
  17109. * src/SendMessageQueue.h
  17110. (REQUEST_TIME_OUT): New definition.
  17111. (RequestSlots): New definition.
  17112. (MessageQueue): New definition.
  17113. (requestSlotMan): Removed.
  17114. (pendingMessages): Removed.
  17115. (requestSlots): New variable.
  17116. (messageQueue): New variable.
  17117. (torrentMan): New variable.
  17118. (peerConnection): New variable.
  17119. (peer): New variable.
  17120. (piece): New variable.
  17121. (getNewPieceAndSendInterest): New function.
  17122. (createPeerMessage): New function.
  17123. (createHandshakeMessage): New function.
  17124. (send): Made private.
  17125. (setPeerMessageCommonProperty): New function.
  17126. (deleteAllRequestSlot): New function.
  17127. (deleteRequestMessageInQueue): New function.
  17128. (cancelAllRequest): Made private.
  17129. (cancelAllRequest): Made private.
  17130. (countRequestSlot): Made private.
  17131. (addPendingMessage): Removed.
  17132. (deletePendingPieceMessage): Removed.
  17133. (deletePendingRequestMessage): Removed.
  17134. (addMessage): New function.
  17135. (deletePieceMessageInQueue): New function.
  17136. (deleteTimeoutRequestSlot): Changed argument.
  17137. (deleteCompletedRequestSlot): Changed argument.
  17138. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17139. (getCorrespondingRequestSlot): New function.
  17140. (countPendingMessage): Removed.
  17141. (countMessageInQueue): New function.
  17142. (getTorrentMan): New function.
  17143. (getPeerConnection): New function.
  17144. (hasDownloadPiece): New function.
  17145. (getDownloadPiece): New function.
  17146. (setDownloadPiece): New function.
  17147. (syncPiece): New function.
  17148. (sendMessages): New function.
  17149. (sendNow): New function.
  17150. (trySendNow): New function.
  17151. (abortPiece): New function.
  17152. (sendHandshake): New function.
  17153. (receiveMessage): New function.
  17154. (receiveHandshake): New function.
  17155. (createRequestMessage): New function.
  17156. (createCancelMessage): New function.
  17157. (createPieceMessage): New function.
  17158. (createHaveMessage): New function.
  17159. (createChokeMessage): New function.
  17160. (createUnchokeMessage): New function.
  17161. (createInterestedMessage): New function.
  17162. (createNotInterestedMessage): New function.
  17163. (createBitfieldMessage): New function.
  17164. (createKeepAliveMessage): New function.
  17165. * src/SendMessageQueue.cc
  17166. (SendMessageQueue): Removed requestSlotMan.
  17167. Instantiated peerConnection here.
  17168. (~SendMessageQueue): Removed requestSlotMan.
  17169. Added deletion of peerConnection and the contents of messageQueue.
  17170. (send): Updated according to the change of messageQueue.
  17171. (addPendingMessage): Renamed to addMessage.
  17172. (addMessage): New function.
  17173. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17174. (deletePieceMessageInQueue): New function.
  17175. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17176. (deleteRequestMessageInQueue): New function.
  17177. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17178. here.
  17179. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17180. (...) was moved here.
  17181. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17182. moved here.
  17183. (deleteCompletedRequestSlot):
  17184. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17185. (getCorrespondingRequestSlot):
  17186. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17187. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17188. (countPendingMessage): Renamed to countMessageInQueue.
  17189. (countMessageInQueue): New function.
  17190. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17191. (receiveHandshake): New function.
  17192. (createHandshakeMessage): New function.
  17193. (receiveMessage): New function.
  17194. (createPeerMessage): New function.
  17195. (syncPiece): New function.
  17196. (getNewPieceAndSendInterest): New function.
  17197. (sendMessages): New function.
  17198. (sendNow): New function.
  17199. (trySendNow): New function.
  17200. (sendHandshake): New function.
  17201. (abortPiece): New function.
  17202. (getDownloadPiece): New function.
  17203. (getPeerMessageCommonProperty): New function.
  17204. (createRequestMessage): New function.
  17205. (createCancelMessage): New function.
  17206. (createPieceMessage): New function.
  17207. (createHaveMessage): New function.
  17208. (createChokeMessage): New function.
  17209. (createUnchokeMessage): New function.
  17210. (createInterestedMessage): New function.
  17211. (createNotInterestedMessage): New function.
  17212. (createBitfieldMessage): New function.
  17213. (createKeepAliveMessage): New function.
  17214. To add simple Content-Disposition support:
  17215. * src/HttpResponseCommand.h (determinFilename): New function.
  17216. * src/HttpResponseCommand.cc (executeInternal):
  17217. Use determinFilename(headers) instead of req->getFile() when comparing
  17218. filename.
  17219. (determinFilename): New function.
  17220. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17221. req->getFile().
  17222. (handleOtherEncoding): Use determinFilename(headers) instead of
  17223. req->getFile().
  17224. * src/Util.h (getContentDispositionFilename): New function.
  17225. * src/Util.cc (getContentDispositionFilename): New function.
  17226. * src/LogFactory.h (release): New function.
  17227. * src/LogFactory.cc (release): New function.
  17228. To fix a bug that causes out-of-bound exception when HTTP status
  17229. line is wrong:
  17230. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17231. size.
  17232. * src/common.h (Deleter): New class.
  17233. * src/SegmentMan.cc
  17234. (~SegmentMan): Added deletion of splitter and diskWriter.
  17235. * src/DownloadEngine.h
  17236. (Commands): Use deque.
  17237. (clearQueue): New function.
  17238. * src/DownloadEngine.cc
  17239. (~DownloadEngine): Added deletion of segmentMan.
  17240. (cleanQueue): New function.
  17241. * src/TorrentDownloadEngine.h
  17242. (TorrentDownloadEngine): The implementation was moved to
  17243. TorrentDownloadEngine.cc.
  17244. (~TorrentDownloadEngine): The implementation was moved to
  17245. TorrentDownloadEngine.cc.
  17246. * src/TorrentDownloadEngine.cc
  17247. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17248. * src/main.cc
  17249. (clearRequest): Removed.
  17250. (handler): Added deletion of e.
  17251. (torrentHandler): Added deletion of te.
  17252. (main): Do not share splitter.
  17253. Use Deleter instead of clearRequest.
  17254. Deletion of classes were updated.
  17255. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17256. * src/main.cc (main): Fixed typo.
  17257. * src/message.h: Fixed typo.
  17258. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17259. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17260. To add --select-file command-line option:
  17261. * src/Util.cc
  17262. (unfoldRange): New function.
  17263. (getNum): New function.
  17264. (unfoldSubRange): New function
  17265. * src/main.cc
  17266. (showUsage): Added help message.
  17267. (main): Added --select-file command-line option. Updated the layout of
  17268. file listing.
  17269. * src/common.h
  17270. (Integers): New definition.
  17271. * src/SocketCore.cc
  17272. (writeData): Removed timeout argument.
  17273. (readData): Removed timeout argument.
  17274. (peekData): Removed timeout argument.
  17275. * src/Socket.cc
  17276. (writeData): Removed timeout argument.
  17277. (readData): Removed timeout argument.
  17278. (peekData): Removed timeout argument.
  17279. * Release 0.4.1
  17280. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17281. To deploy upload rate based choking algorithm:
  17282. * src/PeerInteractionCommand.cc
  17283. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17284. peer currently used.
  17285. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17286. download completes. Simplified.
  17287. (receiveMessage): Updated.
  17288. * src/TorrentMan.h
  17289. (activePeers): New variable.
  17290. (addActivePeer): New function.
  17291. (getActivePeers): New function.
  17292. (deleteActivePeer): New function.
  17293. * src/TorrentMan.cc
  17294. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17295. * src/PeerAbstractCommand.cc
  17296. (onAbort): Use peer->resetStatus().
  17297. * src/main.cc
  17298. (PeerChokeCommand.h): Included.
  17299. (main): Added the instance of ChokingCommand to the command queue.
  17300. * src/Peer.h
  17301. (amChoking): Renamed from amChocking
  17302. (chokingRequired): New variable.
  17303. (optUnchoking): New variable.
  17304. (deltaUpload): New variable.
  17305. (deltaDownload): New variable.
  17306. (addDeltaUpload): New function.
  17307. (resetDeltaUpload): New function.
  17308. (addDeltaDownload): New function.
  17309. (resetDeltaDownload): New function.
  17310. (addPeerUpload): Added a call to addDeltaUpload.
  17311. (addPeerDownload): Added a call to addDeltaDownload.
  17312. * src/Peer.cc
  17313. (shouldBeChoking): Renamed from shouldChoke.
  17314. (resetStatus): New function.
  17315. * src/PeerChokeCommand.h: New class.
  17316. * src/PeerChokeCommand.cc: New class.
  17317. To add lazy upload speed limiter:
  17318. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17319. statistics calculation to TorrentDownloadEngine.
  17320. * src/TorrentConsoleDownloadEngine.cc
  17321. (sendStatistics): Renamed from printStatistics.
  17322. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17323. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17324. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17325. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17326. calculation.
  17327. (sendStatistics): New function as pure virtual function.
  17328. (getUploadSpeed): New function.
  17329. * src/TorrentDownloadEngine.cc
  17330. (initStatistics): New function.
  17331. (calculateSpeed): New function.
  17332. (calculateStatistics): New function.
  17333. * src/SendMessageQueue.h
  17334. (uploadLength): New variable.
  17335. (send): Added an argument.
  17336. (setUploadLimit): New function.
  17337. (getUploadLimit): New function.
  17338. * src/SendMessageQueue.cc
  17339. (send): Added upload speed limiter.
  17340. * src/prefs.h
  17341. (PREF_UPLOAD_LIMIT): New definition.
  17342. * src/PeerInteractionCommand.cc
  17343. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17344. * src/main.cc
  17345. (main): Added --upload-limit option
  17346. For bug fixes:
  17347. * src/main.cc
  17348. (showUsage): Corrected --listen-port help
  17349. Other changes:
  17350. * src/TorrentMan.cc
  17351. (getPeer): Return nullPeer if connection is grather than
  17352. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17353. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17354. To add some useful information to the exception message:
  17355. * src/SocketCore.cc : Updated messages.
  17356. * src/SegmentMan.cc :
  17357. * src/TorrentMan.cc : Updated messages.
  17358. * src/MultiDiskWriter.cc : Updated messages.
  17359. * src/Util.cc : Updated messages.
  17360. * src/AbstractDiskWriter.cc : Updated messages.
  17361. * src/PreAllocationDiskWriter.cc : Updated messages.
  17362. * src/message.cc : Added new messages. Updated some messages.
  17363. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17364. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17365. Updated threshold from 30 to 15.
  17366. * src/AbstractDiskWriter.h (filename): New variable.
  17367. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17368. (createFile): Assigned filename.
  17369. * src/main.cc: Updated the help message for http-auth-scheme.
  17370. * Release 0.4.0
  17371. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17372. To add TrackerUpdateCommand with which replaces
  17373. CompactTrackerResponseProcessor:
  17374. * src/TrackerWatcherCommand.h (req): Removed.
  17375. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17376. if the number of peer connections are less than 30.
  17377. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17378. * src/SegmentMan.h (diskWriter): New function.
  17379. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17380. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17381. (main): Use TrackerUpdateCommand.
  17382. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17383. (req): New variable.
  17384. (setTrackerResponseProcessor): Removed.
  17385. (getTrackerResponseProcessor): Removed.
  17386. (processTrackerResponse): Removed.
  17387. * src/DownloadEngine.h (diskWriter): Removed.
  17388. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17389. to torrentMan->processTrackerResponse().
  17390. To add Util::expandBuffer:
  17391. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17392. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17393. * src/Util.h (expandBuffer): New function.
  17394. To fix the bug that causes segmentation fault when "-l ." is specified
  17395. in command-line option:
  17396. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17397. (openFile): New function.
  17398. (closeFile): New function.
  17399. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17400. (~SimpleLogger): Call closeFile();
  17401. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17402. * src/main.cc (main): Added a check to see logger is configured
  17403. properly.
  17404. To enable HTTP authentication without specifying "--http-auth-scheme"
  17405. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17406. * src/HttpConnection.cc (createRequest): Send Authorization header
  17407. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17408. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17409. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17410. * src/Peer.cc (shouldChoke): Updated algorithm.
  17411. * src/message.h (EX_AUTH_FAILED): New definition.
  17412. (EX_FILE_OPEN): New definition.
  17413. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17414. if status == 401.
  17415. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17416. if req->isTorrent == true.
  17417. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17418. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17419. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17420. (createFile): Updated message.
  17421. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17422. To add a readout of estimated remaining time to normal HTTP/FTP
  17423. downloads:
  17424. * src/ConsoleDownloadEngine.h (startup): New variable.
  17425. (startupLength): New variable.
  17426. (isStartupLengthSet): New variable.
  17427. (avgSpeed): New variable.
  17428. (eta): New variable.
  17429. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17430. estimated remaining time.
  17431. (initStatistics): Initialized newly added variables.
  17432. (calculateStatistics): Calculate average speed and estimated remaining
  17433. time.
  17434. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17435. * src/TrackerDownloadCommand.h: Removed.
  17436. * src/TrackerDownloadCommand.cc: Removed.
  17437. * src/TrackerInitCommand.h: Removed.
  17438. * src/TrackerInitCommand.cc: Removed.
  17439. * src/TrackerUpdateCommand.h: Removed.
  17440. * src/TrackerUpdateCommand.cc: Removed.
  17441. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17442. url written in TrackerInitCommand was moved here. Do not create
  17443. tracker request command if torrentMan->trackers != 0.
  17444. * src/CompactTrackerResponseProcessor.h: New class.
  17445. * src/CompactTrackerResponseProcessor.cc: New class.
  17446. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17447. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17448. Decoupled TorrentDownloadEngine from this.
  17449. * src/SegmentMan.h (init): New function.
  17450. * src/SegmentMan.cc (init): New function.
  17451. * src/TorrentMan.h (responseProcessor): New variable.
  17452. (trackers): New variable.
  17453. (setTrackerResponseProcessor): New function.
  17454. (getTrackerResponseProcessor): New function.
  17455. (processTrackerResponse): New function.
  17456. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17457. (processTrackerResponse): New function.
  17458. * src/main.cc (main): Use ByteArrayDiskWriter and
  17459. CompactTrackerResponseProcessor.
  17460. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17461. processTrackerResponse().
  17462. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17463. readout.
  17464. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17465. which indicates download has completed.
  17466. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17467. (closeFile): fd >= 0, not fd > 0
  17468. * src/main.cc (main): Added short cut for show-files.
  17469. Added short cut for torrent-file.
  17470. Added new command-line option listen-port.
  17471. Updated i18n messages.
  17472. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17473. To add LogFactory which creates singleton logger:
  17474. * src/LogFactory.h: New class.
  17475. * src/LogFactory.cc: New class.
  17476. * src/Command.h (logger): New variable.
  17477. (Constructor): Use LogFactory.
  17478. * src/AbstractCommand.cc: Use Command::logger
  17479. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17480. Use LogFactory.
  17481. * src/SegmentSplitter.h : Made logger protected.
  17482. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17483. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17484. * src/DownloadEngine.h : Made logger protected.
  17485. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17486. * src/PeerInteractionCommand.cc : Use Command::logger.
  17487. * src/HttpResponseCommand.cc : Use Command::logger.
  17488. * src/SegmentMan.h : Made logger private.
  17489. * src/TorrentMan.h : Made logger private.
  17490. * src/TorrentMan.cc : Use LogFactory.
  17491. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17492. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17493. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17494. Use LogFactory.
  17495. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17496. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17497. Use LogFactory.
  17498. * src/DownloadCommand.cc : Use Command::logger.
  17499. * src/PeerAbstractCommand.cc : Use Command::logger.
  17500. * src/PeerListenCommand.cc : Use Command::logger.
  17501. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17502. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17503. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17504. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17505. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17506. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17507. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17508. Use LogFactory.
  17509. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17510. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17511. Use LogFactory.
  17512. * src/main.cc (main): Use LogFactory.
  17513. * src/DiskAdaptor.h (logger): New variable.
  17514. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17515. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17516. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17517. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17518. parameter to a tracker request.
  17519. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17520. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17521. * src/main.cc (setSignalHander): New function.
  17522. (main): Added a handler for SIGTERM.
  17523. (handler): Updated message.
  17524. (torrentHandler): Updated message.
  17525. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17526. * src/TorrentConsoleDownloadEngine.cc
  17527. (onPartialDownloadingCompletes): Renamed as
  17528. onSelectiveDownloadingCompletes.
  17529. (onSelectiveDownloadingCompletes): Updated message.
  17530. To add DiskAdaptor which abstract DiskWriter family:
  17531. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17532. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17533. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17534. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17535. MultiDiskAdaptor.h.
  17536. (readFileEntry): Changed its arguments.
  17537. (setup): setupDiskWriter is merged into this function.
  17538. (setupDiskWriter): Removed.
  17539. (setFileFilter): New function.
  17540. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17541. made in readFileEntry.
  17542. (getFilePath): Removed.
  17543. (getTempFilePath): Removed.
  17544. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17545. (fixFilename): Removed.
  17546. (copySingleFile): Removed.
  17547. (splitMultiFile): Removed.
  17548. (deleteTempFile): Removed.
  17549. (setFileEntriesToDownload): Removed.
  17550. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17551. (isSelectiveDownloadingMode): New function.
  17552. (setAllMultiFileRequestedState): Removed.
  17553. (finishPartialDownloadingMode): Renamed as
  17554. finishSelectiveDownloadingMode.
  17555. (finishSelectiveDownloadingMode): New function.
  17556. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17557. (getSelectedTotalLength): New function.
  17558. (onDownloadComplete): Use diskAdaptor.
  17559. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17560. (Range): Removed.
  17561. (setMultiFileEntries): Renamed as setFileEntries.
  17562. (setFileEntries): New function.
  17563. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17564. (pieceLength): New variable.
  17565. * src/main.cc (printDownloadCompeleteMessage): New function.
  17566. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17567. (main): Renamed torrent-show-files to show-files.
  17568. Rewritten file contents listing.
  17569. * src/TorrentMan.h (FileEntry): Removed.
  17570. (multiFileTopDir): Removed.
  17571. (multiFileEntries): Removed.
  17572. (diskWriter): Removed.
  17573. (diskAdaptor): New variable.
  17574. * src/DefaultDiskWriter.h (totalLength): New variable.
  17575. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17576. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17577. diskWriter.
  17578. * src/TorrentConsoleDownloadEngine.h
  17579. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17580. (partialTotalLength): Renamed as selectedTotalLength.
  17581. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17582. openExistingFile, otherwise call initAndOpenFile.
  17583. (closeFile): fd > 0, not fd != 0.
  17584. * src/DirectDiskAdaptor.h: New class.
  17585. * src/DirectDiskAdaptor.cc: New class.
  17586. * src/MultiDiskAdaptor.h: New class.
  17587. * src/MultiDiskAdaptor.cc: New class.
  17588. * src/CopyDiskAdaptor.h: New class.
  17589. * src/CopyDiskAdaptor.cc: New class.
  17590. * src/DiskAdaptor.h: New class.
  17591. * src/DiskAdaptor.cc: New class.
  17592. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17593. (PREF_SHOW_FILES): New definition.
  17594. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17595. To add the ability to download multi torrent into respective files
  17596. directly:
  17597. * src/DiskWriter.h (openFile): New function.
  17598. (seek): Removed.
  17599. * src/MultiDiskWriter.h: New class.
  17600. * src/MultiDiskWriter.cc: New class.
  17601. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17602. protected.
  17603. (openFile): New function.
  17604. * src/AbstractDiskWriter.cc (openFile): New function.
  17605. * src/prefs.h (V_FALSE): New definition.
  17606. (PREF_DIRECT_FILE_MAPPING): New definition.
  17607. * src/TorrentMan.h (setupDiskWriter): New function.
  17608. (setAllMultiFileRequestedState): New function.
  17609. (onDownloadComplete): New function.
  17610. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17611. (setupDiskWriter): New function.
  17612. (getFilePath): Updated.
  17613. (getTempFilePath): Updated.
  17614. (getSegmentFilePath): Updated.
  17615. (fixFilename): Updated.
  17616. (deleteTempFile): Updated.
  17617. (setAllMultiFileRequestedState): New function.
  17618. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17619. (finishPartialDownloadingMode): Reset requested flags.
  17620. (onDownloadComplete): New function.
  17621. * src/main.cc: Added --direct-file-mapping option.
  17622. Use TorrentMan::setupDiskWriter().
  17623. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17624. onDownloadComplete().
  17625. To fix ETA bug:
  17626. * src/Util.h (difftvsec): New function.
  17627. * src/Util.cc (difftvsec): New function.
  17628. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17629. type of "elapsed" instead of long long int.
  17630. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17631. The updates of statistics takes place every 1 seconds.
  17632. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17633. (calculateSpeed): Changed its argument signature.
  17634. * src/PeerMessage.cc (toString): Fixed message.
  17635. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17636. To print ETA:
  17637. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17638. completion handling when dealing with
  17639. TorrentMan::isPartialDownloadingMode() == true.
  17640. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17641. New function.
  17642. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17643. (sessionDownloadLength): New variable.
  17644. (avgSpeed): New variable.
  17645. (eta): New variable.
  17646. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17647. new variables: eta, avgSpeed, startup.
  17648. (calculateSpeed): Calculate average speed and ETA.
  17649. (printStatistics): Added ETA.
  17650. * src/Util.h (secfmt): New function.
  17651. * src/Util.cc (secfmt): New function.
  17652. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17653. To detect "keep alive" flooding:
  17654. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17655. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17656. variable: keepAliveCount.
  17657. (detectMessageFlooding): Added "keep alive" flooding detection.
  17658. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17659. received.
  17660. To add the ability to download only specified files in multi-file
  17661. torrent:
  17662. * src/BitfieldMan.h (filterBitfield): New variable.
  17663. (filterEnabled): New variable.
  17664. (setFilterBit): New function.
  17665. (enableFilter): New function.
  17666. (disableFilter): New function.
  17667. (isFilterEnabled): New function.
  17668. (getFilteredTotalLength): New function.
  17669. (getCompletedLength): New function.
  17670. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17671. filterBitfield, filterEnabled.
  17672. (CopyConstructor): Added filterBitfield and filterEnabled.
  17673. (operator==): Added filterBitfield and filterEnabled.
  17674. (Destructor): Added filterBitfield.
  17675. (getMissingIndex): Use filterBitfield.
  17676. (getMissingUnusedIndex): Use filterBitfield.
  17677. (getFirstMissingUnusedIndex): Use filterBitfield.
  17678. (getFirstMissingUnusedIndex): Use filterBitfield.
  17679. (getAllMissingIndexes): Use filterBitfield.
  17680. (countMissingBlock): Use filterBitfield.
  17681. (countBlock): Use filterBitfield.
  17682. (setBitInternal): Added new argument on.
  17683. (setUseBit): Use setBitInternal.
  17684. (unsetUseBit): Use setBitInternal.
  17685. (setBit): Use setBitInternal.
  17686. (unsetBit): Use setBitInternal.
  17687. (isAllBitSet): Use filterBitfield.
  17688. (setFilterBit): New function.
  17689. (addFilter): New function.
  17690. (enableFilter): New function.
  17691. (disableFilter): New function.
  17692. (clearFilter): New function.
  17693. (isFilterEnabled): New function.
  17694. (getFilteredTotalLength): New function.
  17695. (getCompletedLength): New function.
  17696. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17697. Initalized newly added variables.
  17698. [FileEntry](offset): New variable.
  17699. [FileEntry](extracted): New variable.
  17700. [FileEntry](requested): New variable.
  17701. (readFileEntry): New function.
  17702. (option): New variable.
  17703. (splitMultiFile): Removed const qualifier.
  17704. (fixFilename): Removed const qualifier.
  17705. (readFileEntryFromMetaInfoFile): New function.
  17706. (finishPartialDownloadingMode): New function.
  17707. (isPartialDownloadingMode): New function.
  17708. (setFileEntriesToDownload): New function.
  17709. (getCompletedLength): New function.
  17710. (getPartialTotalLength): New function.
  17711. * src/TorrentMan.cc (readFileEntry): New function.
  17712. (setup): Use readFileEntry. If no-preallocation option is specified,
  17713. use DefaultDiskWriter.
  17714. (readFileEntryFromMetaInfoFile): New function.
  17715. (fixFilename): Removed const qualifier.
  17716. (splitMultiFile): Removed const qualifier.
  17717. (setFileEntriesToDownload): New function.
  17718. (isPartialDownloadingMode): New function.
  17719. (finishPartialDownloadingMode): New function.
  17720. (getCompletedLength): New function.
  17721. (getPartialTotalLength): New function.
  17722. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17723. New variable.
  17724. (partialTotalLength): New variable.
  17725. (downloadLength): New variable.
  17726. (totalLength): New variable.
  17727. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17728. Added log.
  17729. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17730. partialTotalLength, downloadLength, totalLength.
  17731. (calculate): Calculate downloadLength and totalLength.
  17732. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17733. * src/main.cc (addCommand): Changed argument signature.
  17734. (main): Added new variable: args. Added new option "torrent-show-files"
  17735. "no-preallocation". Usage is not updated yet.
  17736. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17737. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17738. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17739. Attempt to add the ability to listing file entries in a .torrent file.
  17740. This feature is not yet complete.
  17741. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17742. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17743. (getName): New function.
  17744. * src/TorrentMan.h (getMultiFileEntries): New function.
  17745. (getName): New function.
  17746. * src/main.cc (main): Use above 2 funtion.
  17747. * Release 0.3.2
  17748. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17749. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17750. (detectMessageFlooding): Updated threshold value.
  17751. (checkLongTimePeerChoking): Updated timeout value.
  17752. (getNewPieceAndSendInterest): Added debug log.
  17753. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17754. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17755. (getPeer): Updated.
  17756. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17757. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17758. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17759. is localhost.
  17760. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17761. * src/PendingMessage.cc (processMessage): Not to send piece message
  17762. if peer is not interested in the pieces localhost has.
  17763. * src/Peer.cc (shouldChoke): Updated.
  17764. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17765. * src/Util.cc (isPowerOf): New function.
  17766. * src/Util.h (isPowerOf): New function.
  17767. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17768. whether or not it is power of 2.
  17769. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17770. Added new class SendMessageQueue that includes PendingMessages and
  17771. RequestSlotMan.
  17772. * src/SendMessageQueue.h: New class.
  17773. * src/SendMessageQueue.cc: New class.
  17774. * src/PendingMessage.h: Added new member variable blockIndex and its
  17775. accessors.
  17776. (createRequestMessage): Updated.
  17777. * src/PendingMessage.cc (createRequestMessage): Updated.
  17778. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17779. SendMessageQueue.
  17780. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17781. (receiveMessage): Updated with SendMessageQueue.
  17782. (deletePendingPieceMessage): Removed.
  17783. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17784. (sendInterest): Updated with SendMessageQueue.
  17785. (createRequestPendingMessage): Updated with SendMessageQueue.
  17786. (sendMessages): Updated with SendMessageQueue.
  17787. (onAbort): Updated with SendMessageQueue.
  17788. (keepAlive): Updated with SendMessageQueue.
  17789. (beforeSocketCheck): Updated SendMessageQueue.
  17790. * src/PeerInteractionCommand (sendMessages): Shuffle
  17791. missingBLockIndexes before using it.
  17792. Added its own timeout for peer connection.
  17793. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17794. setter.
  17795. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17796. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17797. Added setTimeout() call.
  17798. (executeInternal): Added setTimeout() call.
  17799. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17800. Added timeout.
  17801. (isTimeoutDetected): Updated.
  17802. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17803. option.
  17804. Added *simple* message flooding checker.
  17805. * src/PeerInteractionCommand.cc (executeInternal):
  17806. Added detectMessageFlooding() call.
  17807. (detectMessageFlooding): New function.
  17808. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17809. (beforeSocketCheck): Added detectMessageFlooding() call.
  17810. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17811. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17812. Removed deletePendingPieceMessage(), getRequestSlot(),
  17813. deleteRequestSlot(), deleteAllRequestSlot().
  17814. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17815. Added checkLongTimePeerChoking() call.
  17816. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17817. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17818. if duplicate == false.
  17819. The parameter "uploaded" and "downloaded" in the tracker request are
  17820. the size since the client sent the "started" event to the tracker.
  17821. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17822. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17823. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17824. getSessionDownloadedSize(), getSessionUploadedSize().
  17825. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17826. getSessionUploadedSize() instead of getDownloadedSize(),
  17827. getUploadedSize().
  17828. * src/PendingMessage.cc (processMessage): Do not send request message
  17829. if the peer is choking the client.
  17830. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17831. less than interval.
  17832. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17833. * configure.in: Added gnutls support. Added several CPP macros.
  17834. * m4/openssl.m4: Added.
  17835. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17836. readData(), peekData(). Added gnutls support.
  17837. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17838. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17839. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17840. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17841. Instead, added a check for whether setup method has executed
  17842. successfully.
  17843. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17844. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17845. * src/Makefile.am: Updated.
  17846. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17847. using whether OpenSSL or gcrypt, depending on the result of configure
  17848. script.
  17849. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17850. messageDigest.h.
  17851. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17852. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17853. Fixed memory leak.
  17854. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17855. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17856. Removed instantiation of TrackerInitCommand. Instead,
  17857. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17858. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17859. ENABLE_SSL.
  17860. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17861. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17862. If a piece is already acquired by another command, delete the request
  17863. slots for the piece.
  17864. * src/TrackerUpdateCommand.cc (execute):
  17865. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17866. Added a check whether peer list is null.
  17867. Fixed the bug that causes sending completed event to the tracker
  17868. several times.
  17869. * src/TrackerInitCommand.cc (execute):
  17870. Fixed the bug that causes sending completed event to the tracker
  17871. several times.
  17872. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17873. by using messageDigest.h.
  17874. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17875. * PeerConnection.cc: Replaced log message "keep-alive" with
  17876. "keep alive".
  17877. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17878. localhost long time.
  17879. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17880. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17881. at most 100 failure entry from the list. If with duplicate = false,
  17882. MAX_PEER_LIST is not checked.
  17883. * PeerListenCommand.cc: Fixed the argument order of log message.
  17884. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17885. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17886. Added warn().
  17887. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17888. Implemented warn().
  17889. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17890. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17891. * Request.h: Added AFTER_COMPLETED event.
  17892. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17893. instead of downloaded size and progress(%) after download completes.
  17894. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17895. message to the peer if it is interested in what localhost has
  17896. downloaded.
  17897. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17898. destination instead of just renaming it.
  17899. * TorrentMan.cc: Added deleteTempFile().
  17900. * PeerAbstractCommand.cc: do not stop execution after download
  17901. completes. This makes localhost a seeder.
  17902. * Util.{h,cc}: Added fileCopy().
  17903. * PeerListenCommand.cc: do not stop execution after download completes.
  17904. This makes localhost a seeder.
  17905. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17906. Added TorrentMan::deleteTempFile() to torrentHandler.
  17907. Initialized the variable dir as ".".
  17908. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17909. Deleted renameSingleFile().
  17910. Added copySingleFile(), deleteTempFile().
  17911. * DownloadEngine.h: Added virtual function afterEachIteration().
  17912. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17913. in onEndOfRun() to afterEachIteration().
  17914. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17915. true.
  17916. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17917. In rangedFileCopy(), added try-catch block to properly close file
  17918. descriptors.
  17919. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17920. Added afterEachIteration(), isFilenameFixed().
  17921. * Peer.cc: Changed choking strategy.
  17922. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17923. * TrackerInitCommand.cc: Send completed event only once.
  17924. * DownloadEngine.cc: Added a call to afterEachIteration().
  17925. * TrackerUpdateCommand.cc: Do not stop execution after download
  17926. completes.
  17927. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17928. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17929. received from a tracker.
  17930. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17931. Decreased the number of failure peers to delete to 0(just comment out
  17932. the line).
  17933. * Release 0.3.1
  17934. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17935. * PeerInteractionCommand.cc: added a call to
  17936. TorrentMan::unadvertisePiece in Destructor.
  17937. * PeerInteractionCommand.cc: make have message sent immediately
  17938. if the size of pending message queue is zero.
  17939. * TorrentMan.cc: set the maximum size of peer list to 250.
  17940. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17941. to deque.
  17942. * Util.cc: fixed rangedFileCopy.
  17943. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17944. to Constructor. Also, moved digest cleanup to Destructor.
  17945. * MetaFileUtil.cc: fixed memory leak
  17946. * replaced std::vector with std::deque.
  17947. * AbstractCommand.cc: casted timeout value to long long int.
  17948. * ChunkedEncoding.cc: fixed memory leak.
  17949. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17950. * SleepCommand.cc: casted timeout value to long long int.
  17951. * Data.cc: fixed memory leak.
  17952. * Data.cc: fixed toLLInt().
  17953. * BitfieldMan.cc: fixed memory leak.
  17954. * TorrentMan.cc: initialized storeDir to ".".
  17955. * TorrentMan.cc: fixed memory leak.
  17956. * TorrentMan.cc: corrected file paths of splitted files.
  17957. * PeerAbstractCommand.cc: casted timeout to long long int.
  17958. * main.cc: added delete(req) and delete(te->diskWriter).
  17959. * RequestSlot.cc: casted timeout value to long long int.
  17960. * Request.cc: fixed memory leak.
  17961. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17962. have the piece.
  17963. * Peer.{h,cc}: added hasPiece(int index).
  17964. * main.cc: corrected addCommand.
  17965. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17966. * BitTorrent protocol support added.
  17967. * Release 0.3.0
  17968. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17969. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17970. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17971. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17972. decoding did not work properly.
  17973. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17974. * DownloadEngine.h: included sys/time.h
  17975. * DownloadEngine.cc: remove sys/time.h
  17976. * Makefile.am (SUBDIRS): Add intl.
  17977. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17978. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17979. * main.cc: correct help message for --http-auth-scheme.
  17980. * main.cc: changed e-mail address for bug reports.
  17981. * ja.po: added japanese translation.
  17982. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17983. * SimpleLogger.cc: flush log file instead of stdout.
  17984. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17985. * main.cc: Fixed command-line option: max-tries
  17986. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17987. does not equal to seg.sp.
  17988. * DownloadCommand.cc: If EOF is got from the server and the total size
  17989. of file is not zero, then throw DlRetryEx.
  17990. * main.cc: Set the minium value of min-segment-size to 1024.
  17991. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17992. fails because of a regression since 0.2.0 release.
  17993. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17994. * HttpConnection.cc:
  17995. * common.h: defined the user agent name as macro
  17996. * DownloadEngine.{h, cc}:
  17997. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17998. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17999. * main.cc: Download complete/abort message is now generated by main.
  18000. * Makefile.am (SUBDIRS): Add m4.
  18001. (ACLOCAL_AMFLAGS): New variable.
  18002. (EXTRA_DIST): New variable.
  18003. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18004. * gettext: added gettext functionality
  18005. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18006. * AbstractCommand.cc:
  18007. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18008. unregister its cuid from SegmentMan.
  18009. * DownloadEngine.cc: .aria2 file was written when a downloading
  18010. failed with errors.
  18011. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18012. Added "User-Agent" header to CONNECT proxy request.
  18013. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18014. properly.
  18015. * Logger.h:
  18016. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18017. * ChunkedEncoding.cc: Added #include directive for strings.h
  18018. * Release 0.2.1
  18019. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18020. * Util.{h,cc}: added startsWith().
  18021. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18022. Util::endsWith().
  18023. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18024. * common.h: added #include directive of limit.h.
  18025. * DownloadEngine.cc: added #include directive of sys/time.h and
  18026. algorithm.
  18027. * Exception.h: added #include directive of stdio.h.
  18028. * AbstractCommand.h: added #include directive of sys/time.h.
  18029. * DownloadCommand.h: added #include directive of sys/time.h.
  18030. * *.h: added #include directive of common.h to all base classes.
  18031. subclasses' one was removed.
  18032. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18033. does not define these macros.
  18034. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18035. * Release 0.2.0
  18036. * main.cc:
  18037. * HttpInitiateConnectionCommand.{h,cc}:
  18038. * prefs.h:
  18039. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18040. We can now use GET command in http proxy.
  18041. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18042. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18043. that splits slowest segment of SegmentMan::commands vector.
  18044. This is the default split algorithm of aria2.
  18045. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18046. that splits first segment of SegmentMan::commands vector.
  18047. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18048. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18049. * Segment.h:
  18050. * SegmentMan.cc: Added speed field to Segment.h
  18051. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18052. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18053. * message.h: Change file size related %d to %lld.
  18054. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18055. * FtpInitiateConnectionCommand.{h,cc}:
  18056. * FtpNegotiationCommand.{h,cc}:
  18057. * FtpDownloadCommand.{h,cc}:
  18058. * FtpConnection.{h,cc}: Added FTP support
  18059. * SimpleLogger.cc: Log message now includes time information.
  18060. * main.cc: The value of --http-auth-scheme option is chagned from
  18061. 'BASIC' to 'basic'
  18062. * main.cc: Added --timeout command-line option.
  18063. * main.cc: Added --min-segment-size command-line option.
  18064. * main.cc: Added --max-retries command-line option.
  18065. * prefs.h: option string constants are now defined in prefs.h
  18066. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18067. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18068. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18069. with version 0.1.0's one.
  18070. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18071. * configure.in: Added --enable-ssl option to configure script.
  18072. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18073. cannot permit absoluteURI as Request-URI.
  18074. * HttpConnection.cc: Added Referer support.
  18075. * main.cc: Added referer command-line option.
  18076. * main.cc: Added rety-wait command-line option.
  18077. * Exception.h: Fixed formating bug in Exception::setMsg()
  18078. * SocketCore.{h,cc}:
  18079. * Socket.{h, cc}:
  18080. * Request.cc:
  18081. * InitiateConnectionCommandFactory.cc:
  18082. * HttpRequestCommand.cc: Added HTTPS support.
  18083. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18084. for SocketCore.
  18085. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18086. size is wrong
  18087. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18088. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18089. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18090. * Release 0.1.0