ChangeLog 718 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237
  1. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Accept IPv4 network address with CIDR block in --no-proxy option
  3. and no_proxy environment variable. Current implementation does
  4. not resolve hostname in URI to compare network address. So it is
  5. only effecive if URI has numeric IP addresses.
  6. * doc/aria2c.1.txt
  7. * src/AbstractCommand.cc
  8. * src/OptionHandlerFactory.cc
  9. * src/bitfield.h
  10. * src/usage_text.h
  11. * src/util.cc
  12. * src/util.h
  13. * test/UtilTest.cc
  14. * test/bitfieldTest.cc
  15. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Reduced interval for metadatagetmode to quickly gather metadata.
  17. * src/BtSetup.cc
  18. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Release 1.9.0
  20. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Updated po templates.
  22. * po/aria2.pot
  23. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Updated doc.
  25. * doc/aria2c.1.txt
  26. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Documented about Metalink4 and LPD in README
  28. * RADME
  29. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Few adjustment for timeouts in DHT. DHT message timeout is changed
  31. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  32. it adds another 5 seconds in each retry.
  33. * src/DHTConstants.h
  34. * src/DHTGetPeersCommand.cc
  35. * src/DHTGetPeersCommand.h
  36. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Changed log level from error to info for DHT message send error.
  38. * src/DHTMessageDispatcherImpl.cc
  39. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Inspect all xt in magnet to find urn:btih.
  41. * src/bittorrent_helper.cc
  42. * test/BittorrentHelperTest.cc
  43. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Use global option for DHTSetup.
  45. * src/DHTSetup.cc
  46. * src/DHTSetup.h
  47. * src/RequestGroup.cc
  48. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Added bt-enable-lpt, reuse-uri
  50. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  51. options.
  52. * doc/aria2c.1.txt
  53. * doc/xmlrpc/aria2rpc
  54. * src/download_helper.cc
  55. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  57. * src/BtSetup.cc
  58. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Resurrected --http-proxy-user and --http-proxy-passwd option.
  60. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  61. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  62. * doc/aria2c.1.txt
  63. * src/OptionHandlerFactory.cc
  64. * src/OptionHandlerImpl.h
  65. * src/prefs.cc
  66. * src/prefs.h
  67. * src/usage_text.h
  68. * test/OptionHandlerTest.cc
  69. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Updated Russian and Simplified Chinese translation. Thanks to all
  71. translators.
  72. * po/ru.po
  73. * po/zh_CN.po
  74. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Updated po templates.
  76. * po/aria2.pot
  77. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. For LPD sockets, bind IN_ADDRANY because binding multicast address
  79. fails under Windows.
  80. * src/LpdMessageReceiver.cc
  81. * test/LpdMessageDispatcherTest.cc
  82. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Fixed the bug that error message is not propagated to Exception.
  84. * src/SocketCore.cc
  85. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Documented --bt-lpd-interface option in man page.
  87. * doc/aria2c.1.txt
  88. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Bump up version number to 1.9.0
  90. * configure.ac
  91. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Fixed the bug that FillRequestGroupCommand is not invoked when
  93. RequestGroupMan::createInitialCommand() creates no Command object.
  94. * src/FillRequestGroupCommand.cc
  95. * src/RequestGroupMan.cc
  96. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Added debug logs.
  98. * src/FileEntry.cc
  99. * src/SegmentMan.cc
  100. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Fixed unit test error with mingw32 build.
  102. * test/LpdMessageReceiverTest.cc
  103. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Updated automake-1.11.1
  105. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Fixed compile error and unit test error without openssl and
  107. gnutls.
  108. * src/MetalinkParserController.cc
  109. * test/MetalinkProcessorTest.cc
  110. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Fixed unitest fails if openssl doesn't support sha-256.
  112. * src/MetalinkParserStateV4Impl.cc
  113. * test/MetalinkProcessorTest.cc
  114. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Wait until message arrives(again)
  116. * test/LpdMessageReceiverTest.cc
  117. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Added missing wallclock.h to SRCS.
  119. * src/Makefile.am
  120. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Fixed compile error with --disable-bittorrent
  122. * test/Metalink2RequestGroupTest.cc
  123. * test/MetalinkParserControllerTest.cc
  124. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Added --reuse-uri option. This option has existed quite long, but
  126. been hidden.
  127. * doc/aria2c.1.txt
  128. * src/OptionHandlerFactory.cc
  129. * src/usage_text.h
  130. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Ignore filename parameter if it contains directory traversal
  132. directives.
  133. * src/util.cc
  134. * test/UtilTest.cc
  135. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. urldecode -> percentDecode
  137. * src/FtpConnection.cc
  138. * src/FtpNegotiationCommand.cc
  139. * src/HttpResponse.cc
  140. * src/Request.cc
  141. * src/magnet.cc
  142. * src/util.cc
  143. * src/util.h
  144. * test/UtilTest.cc
  145. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. urlencode -> percentEncode,
  147. torrentUrlencode -> torrentPercentEncode
  148. * src/BtHandshakeMessage.cc
  149. * src/BtHandshakeMessageValidator.h
  150. * src/DHTMessageFactoryImpl.cc
  151. * src/DefaultBtAnnounce.cc
  152. * src/HandshakeExtensionMessage.cc
  153. * src/HttpRequest.cc
  154. * src/XmlRpcMethodImpl.cc
  155. * src/bittorrent_helper.cc
  156. * src/util.cc
  157. * src/util.h
  158. * test/DHTAnnouncePeerMessageTest.cc
  159. * test/DHTGetPeersMessageTest.cc
  160. * test/DHTGetPeersReplyMessageTest.cc
  161. * test/UTPexExtensionMessageTest.cc
  162. * test/UtilTest.cc
  163. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Fixed the bug that filename is percent encoded where it must be
  165. percent decoded in sendMdtm().
  166. * src/FtpConnection.cc
  167. * test/FtpConnectionTest.cc
  168. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. url -> uri in Request class.
  170. * src/AbstractCommand.cc
  171. * src/AdaptiveURISelector.cc
  172. * src/DefaultBtAnnounce.cc
  173. * src/FeedbackURISelector.cc
  174. * src/FileEntry.cc
  175. * src/FileEntry.h
  176. * src/HttpRequest.h
  177. * src/HttpResponse.cc
  178. * src/InitiateConnectionCommandFactory.cc
  179. * src/Metalink2RequestGroup.cc
  180. * src/OptionHandlerImpl.h
  181. * src/ProtocolDetector.cc
  182. * src/Request.cc
  183. * src/Request.h
  184. * src/XmlRpcMethodImpl.cc
  185. * test/AuthConfigFactoryTest.cc
  186. * test/FtpConnectionTest.cc
  187. * test/HttpRequestTest.cc
  188. * test/HttpResponseTest.cc
  189. * test/RequestTest.cc
  190. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Added getServers XML-RPC method.
  192. * doc/aria2c.1.txt
  193. * src/FileEntry.h
  194. * src/XmlRpcMethodFactory.cc
  195. * src/XmlRpcMethodImpl.cc
  196. * src/XmlRpcMethodImpl.h
  197. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Pool request when download finished.
  199. * src/DownloadCommand.cc
  200. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  202. 1-based.
  203. * doc/aria2c.1.txt
  204. * src/XmlRpcMethodImpl.cc
  205. * test/XmlRpcMethodTest.cc
  206. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Call RequestGroupMan::requestQueueCheck() when
  208. max-concurrent-downloads option is changed or new downloads are
  209. added/inserted into reserved list.
  210. * src/RequestGroupMan.cc
  211. * src/XmlRpcMethodImpl.cc
  212. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Added aria2.forceRemove XML-RPC method.
  214. * doc/aria2c.1.txt
  215. * src/XmlRpcMethodFactory.cc
  216. * src/XmlRpcMethodImpl.cc
  217. * src/XmlRpcMethodImpl.h
  218. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Added debug log.
  220. * src/AbstractCommand.cc
  221. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Create CreateRequestCommand to the number of -s/-C when URIs are
  223. added by XML-RPC.
  224. * src/RequestGroup.cc
  225. * src/RequestGroup.h
  226. * src/XmlRpcMethodImpl.cc
  227. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Added 'status' key to the response of getUri XML-RPC method.
  229. * doc/aria2c.1.txt
  230. * src/XmlRpcMethodImpl.cc
  231. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Replaced Time::reset() call with assigning of global::wallclock.
  233. * src/BtLeecherStateChoke.cc
  234. * src/BtSeederStateChoke.cc
  235. * src/PeerSessionResource.cc
  236. * src/RequestSlot.cc
  237. * src/ServerStat.cc
  238. * src/SpeedCalc.cc
  239. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Added changeUri XML-RPC method. This method removes/adds URIs
  241. dynamically.
  242. * doc/aria2c.1.txt
  243. * src/AbstractCommand.cc
  244. * src/DownloadContext.cc
  245. * src/DownloadContext.h
  246. * src/FileEntry.cc
  247. * src/FileEntry.h
  248. * src/Request.cc
  249. * src/Request.h
  250. * src/RequestGroup.cc
  251. * src/RequestGroupMan.cc
  252. * src/XmlRpcMethodFactory.cc
  253. * src/XmlRpcMethodImpl.cc
  254. * src/XmlRpcMethodImpl.h
  255. * test/FileEntryTest.cc
  256. * test/XmlRpcMethodTest.cc
  257. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Rewritten copy ctor of RequestSlot to use initialization list.
  259. * src/RequestSlot.h
  260. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Added Time global::wallclock to cache "current time" to reduce the
  262. call gettimeofday(). Global variables are now in namespace global.
  263. * src/AbstractCommand.cc
  264. * src/ActivePeerConnectionCommand.cc
  265. * src/AdaptiveURISelector.cc
  266. * src/BtLeecherStateChoke.cc
  267. * src/BtLeecherStateChoke.h
  268. * src/BtSeederStateChoke.cc
  269. * src/BtSeederStateChoke.h
  270. * src/BtStopDownloadCommand.cc
  271. * src/ConsoleStatCalc.cc
  272. * src/DHTBucket.cc
  273. * src/DHTGetPeersCommand.cc
  274. * src/DHTMessageTrackerEntry.cc
  275. * src/DHTNode.cc
  276. * src/DHTPeerAnnounceEntry.cc
  277. * src/DHTPeerAnnounceStorage.cc
  278. * src/DHTSetup.cc
  279. * src/DefaultBtAnnounce.cc
  280. * src/DefaultBtInteractive.cc
  281. * src/DefaultBtMessageDispatcher.cc
  282. * src/DefaultPeerStorage.cc
  283. * src/DefaultPieceStorage.cc
  284. * src/DownloadCommand.cc
  285. * src/DownloadEngine.cc
  286. * src/FileEntry.cc
  287. * src/HttpServerBodyCommand.cc
  288. * src/HttpServerCommand.cc
  289. * src/HttpServerResponseCommand.cc
  290. * src/LpdMessageDispatcher.cc
  291. * src/MultiUrlRequestInfo.cc
  292. * src/Peer.cc
  293. * src/Peer.h
  294. * src/PeerAbstractCommand.cc
  295. * src/PeerStat.h
  296. * src/RequestSlot.cc
  297. * src/RequestSlot.h
  298. * src/SegmentMan.cc
  299. * src/ServerStatMan.cc
  300. * src/SleepCommand.cc
  301. * src/SpeedCalc.cc
  302. * src/SpeedCalc.h
  303. * src/TimeA2.cc
  304. * src/TimeA2.h
  305. * src/TimeBasedCommand.cc
  306. * src/TimeSeedCriteria.h
  307. * src/UTMetadataRequestTracker.h
  308. * src/UTPexExtensionMessage.cc
  309. * src/wallclock.h
  310. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Fixed the bug that util::itos(INT64_MIN) fails.
  312. * src/util.cc
  313. * src/util.h
  314. * test/UtilTest.cc
  315. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Fixed memory leak in SocketBuffer when _bufq is not empty when
  317. SocketBuffer is deleted. Added BufEntry constructor and deleted
  318. static factory functions.
  319. * src/SocketBuffer.cc
  320. * src/SocketBuffer.h
  321. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  323. queue maintenance is requested by RequestGroup to avoid to call
  324. the function unnecessarily.
  325. * src/FillRequestGroupCommand.cc
  326. * src/RequestGroup.cc
  327. * src/RequestGroup.h
  328. * src/RequestGroupMan.cc
  329. * src/RequestGroupMan.h
  330. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Don't use hash for Peer::id. Simple concatenation of ip address
  332. and port is enough.
  333. * src/Peer.cc
  334. * test/PeerTest.cc
  335. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Enclosed log of DHTMessage::toString() with Logger::info().
  337. * src/DHTMessageDispatcherImpl.cc
  338. * src/DHTMessageReceiver.cc
  339. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Rewritten util::toHex().
  341. * src/util.cc
  342. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Removed SocketBuffer::feedAndSend(). Renamed
  344. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  345. * src/FtpConnection.cc
  346. * src/HttpConnection.cc
  347. * src/HttpServer.cc
  348. * src/MSEHandshake.cc
  349. * src/PeerConnection.cc
  350. * src/SocketBuffer.cc
  351. * src/SocketBuffer.h
  352. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Removed unused PeerConnection::sendMessage(). Updated doc.
  354. * src/PeerConnection.cc
  355. * src/PeerConnection.h
  356. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Reduced copying/std::string instantiation in sending/receiving
  358. BitTorrent messages.
  359. * src/BtBitfieldMessage.cc
  360. * src/BtBitfieldMessage.h
  361. * src/BtExtendedMessage.cc
  362. * src/BtExtendedMessage.h
  363. * src/BtHandshakeMessage.cc
  364. * src/BtHandshakeMessage.h
  365. * src/BtKeepAliveMessage.cc
  366. * src/BtKeepAliveMessage.h
  367. * src/BtPieceMessage.cc
  368. * src/BtPieceMessage.h
  369. * src/BtPortMessage.cc
  370. * src/BtPortMessage.h
  371. * src/BtUnchokeMessage.h
  372. * src/DefaultBtMessageReceiver.cc
  373. * src/IndexBtMessage.cc
  374. * src/IndexBtMessage.h
  375. * src/PeerConnection.cc
  376. * src/PeerConnection.h
  377. * src/RangeBtMessage.cc
  378. * src/RangeBtMessage.h
  379. * src/SimpleBtMessage.cc
  380. * src/SimpleBtMessage.h
  381. * src/SocketBuffer.cc
  382. * src/SocketBuffer.h
  383. * src/ZeroBtMessage.cc
  384. * src/ZeroBtMessage.h
  385. * test/BtAllowedFastMessageTest.cc
  386. * test/BtBitfieldMessageTest.cc
  387. * test/BtCancelMessageTest.cc
  388. * test/BtChokeMessageTest.cc
  389. * test/BtExtendedMessageTest.cc
  390. * test/BtHandshakeMessageTest.cc
  391. * test/BtHaveAllMessageTest.cc
  392. * test/BtHaveMessageTest.cc
  393. * test/BtHaveNoneMessageTest.cc
  394. * test/BtInterestedMessageTest.cc
  395. * test/BtKeepAliveMessageTest.cc
  396. * test/BtNotInterestedMessageTest.cc
  397. * test/BtPieceMessageTest.cc
  398. * test/BtPortMessageTest.cc
  399. * test/BtRejectMessageTest.cc
  400. * test/BtRequestMessageTest.cc
  401. * test/BtSuggestPieceMessageTest.cc
  402. * test/BtUnchokeMessageTest.cc
  403. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Rewritten SocketBuffer. Old implementation uses single std::string
  405. to store data and erase sent data, which is costly. New
  406. implementation uses deque to hold each data to avoid to mutate
  407. string.
  408. * src/SocketBuffer.cc
  409. * src/SocketBuffer.h
  410. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Removed unused FileEntry::extracted
  412. * src/FileEntry.cc
  413. * src/FileEntry.h
  414. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Wait until data arrives.
  416. * test/LpdMessageReceiverTest.cc
  417. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. In Metalink4, if size element contains invalid size, discard whole
  419. document. Added strict hash value check for metalink3/4.
  420. * src/MetalinkParserController.cc
  421. * src/MetalinkParserStateMachine.cc
  422. * src/MetalinkParserStateMachine.h
  423. * src/MetalinkParserStateV3Impl.cc
  424. * src/MetalinkParserStateV4Impl.cc
  425. * src/util.cc
  426. * src/util.h
  427. * test/MetalinkParserControllerTest.cc
  428. * test/MetalinkProcessorTest.cc
  429. * test/metalink4.xml
  430. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Added strict attribute validation for metalink4. When
  432. specification violation is found, discard the whole document.
  433. * src/ExpatMetalinkProcessor.cc
  434. * src/MetalinkParserStateMachine.cc
  435. * src/MetalinkParserStateMachine.h
  436. * src/MetalinkParserStateV4Impl.cc
  437. * src/XML2SAXMetalinkProcessor.cc
  438. * test/Makefile.am
  439. * test/MetalinkProcessorTest.cc
  440. * test/metalink4-attrs.xml: Removed
  441. * test/metalink4-dirtraversal.xml: Removed
  442. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Added test for Metaurl transaction.
  444. * src/MetalinkParserController.cc
  445. * test/MetalinkParserControllerTest.cc
  446. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Avoid costly BtMessage::toString() if info level log is not
  448. required.
  449. * src/DefaultBtInteractive.cc
  450. * src/Logger.h
  451. * src/SimpleBtMessage.cc
  452. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Reserved vector elements based on profiler results.
  454. * src/DefaultBtInteractive.cc
  455. * src/DefaultBtProgressInfoFile.cc
  456. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Avoid to calculate end() iterator in each loop. std::deque is
  458. particularly slow. Make sure that recalculate end iterator if
  459. element is erased during loop.
  460. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Use vector instead of deque for containers which is used for
  462. mostly read-only purpose.
  463. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Fixed typo
  465. * test/Makefile.am
  466. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  468. * test/Makefile.am
  469. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Small optimization: In updateTransferStatFor(), don't search peer
  471. ID twice.
  472. * src/DefaultPeerStorage.cc
  473. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Use vector instead of deque for MetalinkEntry and MetalinkResource
  475. objects.
  476. * src/Metalink2RequestGroup.cc
  477. * src/Metalink2RequestGroup.h
  478. * src/MetalinkEntry.cc
  479. * src/MetalinkEntry.h
  480. * src/MetalinkHelper.cc
  481. * src/MetalinkHelper.h
  482. * src/Metalinker.cc
  483. * src/Metalinker.h
  484. * src/main.cc
  485. * test/MetalinkEntryTest.cc
  486. * test/MetalinkHelperTest.cc
  487. * test/MetalinkProcessorTest.cc
  488. * test/MetalinkerTest.cc
  489. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. Fixed the bug that grouped FileEntry objects are not used but
  491. instead all FileEntry objects are used for each metaurl group.
  492. * src/Metalink2RequestGroup.cc
  493. * test/Metalink2RequestGroupTest.cc
  494. * test/metalink4-groupbymetaurl.xml
  495. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Use vector instead of deque for ChunkChecksum.
  497. * src/ChunkChecksum.h
  498. * src/MetalinkParserController.cc
  499. * src/MetalinkParserController.h
  500. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  502. algorithm in Metalink properly
  503. * src/MetalinkParserController.cc
  504. * src/MetalinkParserController.h
  505. * src/messageDigest.cc
  506. * src/messageDigest.h
  507. * test/MetalinkProcessorTest.cc
  508. * test/metalink4.xml
  509. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Replaced null or control characters in file path with '_'. For
  511. MinGW32 build, additional characters which is not allowed in
  512. Windows kernel are also replaced. util::detectDirTraversal() now
  513. returns true if given string contains null or control characters.
  514. * src/DownloadContext.cc
  515. * src/DownloadContext.h
  516. * src/Metalink2RequestGroup.cc
  517. * src/MetalinkParserController.cc
  518. * src/bittorrent_helper.cc
  519. * src/util.cc
  520. * src/util.h
  521. * test/UtilTest.cc
  522. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Discard metalink:file if its name attribute is empty string.
  524. Removed FileEntry instantiation in
  525. MetalinkParserController::setFileLengthOfEntry()
  526. * src/MetalinkParserController.cc
  527. * src/MetalinkParserStateV3Impl.cc
  528. * src/MetalinkParserStateV4Impl.cc
  529. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Discard torrent file if path data in it contains directory
  531. traversal directives. Discard metalink:file element in Metalink3
  532. format if its name attribute contains directory traversal
  533. directives. Ignore name attribute of metalink:signature element
  534. in Metalink3 format if it contains directory traversal directives.
  535. * src/MetalinkParserStateV3Impl.cc
  536. * src/bittorrent_helper.cc
  537. * src/message.h
  538. * test/BittorrentHelperTest.cc
  539. * test/Makefile.am
  540. * test/MetalinkProcessorTest.cc
  541. * test/metalink3-dirtraversal.xml
  542. * test/test.xml
  543. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Removed useless comment
  545. * src/MetalinkParserStateV4Impl.cc
  546. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Supported name attribute of metalink::metaurl element and
  548. multi-file torrent with Metalink4. Files with same metaurl are
  549. grouped and downloaded in one RequestGroup.
  550. * src/BtDependency.cc
  551. * src/FileEntry.h
  552. * src/Metalink2RequestGroup.cc
  553. * src/Metalink2RequestGroup.h
  554. * src/MetalinkEntry.cc
  555. * src/MetalinkEntry.h
  556. * src/MetalinkHelper.cc
  557. * src/MetalinkHelper.h
  558. * src/MetalinkMetaurl.cc
  559. * src/MetalinkMetaurl.h
  560. * src/MetalinkParserController.cc
  561. * src/RequestGroup.cc
  562. * src/RequestGroup.h
  563. * src/bittorrent_helper.cc
  564. * test/BittorrentHelperTest.cc
  565. * test/BtDependencyTest.cc
  566. * test/MetalinkHelperTest.cc
  567. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  569. * src/MetalinkMetaurl.h
  570. * src/MetalinkParserController.cc
  571. * src/MetalinkParserController.h
  572. * src/MetalinkParserStateMachine.cc
  573. * src/MetalinkParserStateMachine.h
  574. * src/MetalinkParserStateV4Impl.cc
  575. * test/MetalinkProcessorTest.cc
  576. * test/metalink4-dirtraversal.xml
  577. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  579. element.
  580. * src/Makefile.am
  581. * src/Metalink2RequestGroup.cc
  582. * src/MetalinkEntry.cc
  583. * src/MetalinkEntry.h
  584. * src/MetalinkMetaurl.cc
  585. * src/MetalinkMetaurl.h
  586. * src/MetalinkParserController.cc
  587. * src/MetalinkParserController.h
  588. * src/MetalinkParserStateMachine.cc
  589. * src/MetalinkParserStateMachine.h
  590. * src/MetalinkParserStateV4Impl.cc
  591. * src/MetalinkParserStateV4Impl.h
  592. * test/MetalinkProcessorTest.cc
  593. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Added Metalink4 support. Currently, name attribute of
  595. metalink::metaurl is ignored and multi-file torrent cannot be used
  596. with Metalink4.
  597. * doc/aria2c.1.txt
  598. * src/DownloadHandlerConstants.cc
  599. * src/ExpatMetalinkProcessor.cc
  600. * src/Makefile.am
  601. * src/Metalink2RequestGroup.cc
  602. * src/MetalinkEntry.cc
  603. * src/MetalinkEntry.h
  604. * src/MetalinkParserController.cc
  605. * src/MetalinkParserController.h
  606. * src/MetalinkParserState.h
  607. * src/MetalinkParserStateImpl.cc
  608. * src/MetalinkParserStateImpl.h
  609. * src/MetalinkParserStateMachine.cc
  610. * src/MetalinkParserStateMachine.h
  611. * src/MetalinkParserStateV3Impl.cc
  612. * src/MetalinkParserStateV3Impl.h
  613. * src/MetalinkParserStateV4Impl.cc
  614. * src/MetalinkParserStateV4Impl.h
  615. * src/MetalinkResource.cc
  616. * src/MetalinkResource.h
  617. * src/Metalinker.cc
  618. * src/RequestGroup.cc
  619. * src/RequestGroup.h
  620. * src/XML2SAXMetalinkProcessor.cc
  621. * src/messageDigest.cc
  622. * src/util.cc
  623. * src/util.h
  624. * test/Makefile.am
  625. * test/MetalinkEntryTest.cc
  626. * test/MetalinkParserControllerTest.cc
  627. * test/MetalinkProcessorTest.cc
  628. * test/MetalinkerTest.cc
  629. * test/UtilTest.cc
  630. * test/metalink4-attrs.xml
  631. * test/metalink4-dirtraversal.xml
  632. * test/metalink4.xml
  633. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Added aiFlags argument to getInterfaceAddress(). Use
  635. AI_NUMERICHOST to find interface specified using
  636. --bt-lpd-interface option to avoid time-consuming address lookup.
  637. * src/BtSetup.cc
  638. * src/SocketCore.cc
  639. * src/SocketCore.h
  640. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  642. is bad in LpdMessageReceiver.
  643. * src/LpdMessage.h
  644. * src/LpdMessageReceiver.cc
  645. * src/LpdMessageReceiver.h
  646. * src/LpdReceiveMessageCommand.cc
  647. * test/LpdMessageReceiverTest.cc
  648. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Added --bt-lpd-interface option to specify the interface to use
  650. for Local Peer Discovery. LpdMessageDispatcher object now has its
  651. own socket. LpdMessageReceiver's socket is binded to multicast
  652. address to only receive multicast packets.
  653. * src/BtSetup.cc
  654. * src/LpdMessageDispatcher.cc
  655. * src/LpdMessageDispatcher.h
  656. * src/LpdMessageReceiver.cc
  657. * src/LpdMessageReceiver.h
  658. * src/LpdReceiveMessageCommand.cc
  659. * src/LpdReceiveMessageCommand.h
  660. * src/OptionHandlerFactory.cc
  661. * src/SocketCore.cc
  662. * src/SocketCore.h
  663. * src/prefs.cc
  664. * src/prefs.h
  665. * src/usage_text.h
  666. * test/LpdMessageDispatcherTest.cc
  667. * test/LpdMessageReceiverTest.cc
  668. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Put the portion of code to get interface addresses in
  670. SocketCore::bindAddress() into newly added getInterfaceAddress().
  671. * src/SocketCore.cc
  672. * src/SocketCore.h
  673. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Rewritten util::parseInt() and parseUInt()
  675. * src/util.cc
  676. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Fixed compile error with mingw32 cross compiler. Defined
  678. a2_sockopt_t as void* for the target systems other than mingw32.
  679. * src/SocketCore.cc
  680. * src/a2netcompat.h
  681. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Removed 'always true' condition
  683. * src/util.cc
  684. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Documented --bt-enable-lpd option in man page.
  686. * doc/aria2c.1.txt
  687. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Added Local Peer Discovery. It is disabled by default. Use
  689. --bt-enable-lpd to enable the function.
  690. * src/BtConstants.h
  691. * src/BtSetup.cc
  692. * src/LpdDispatchMessageCommand.cc
  693. * src/LpdDispatchMessageCommand.h
  694. * src/LpdMessage.h
  695. * src/LpdMessageDispatcher.cc
  696. * src/LpdMessageDispatcher.h
  697. * src/LpdMessageReceiver.cc
  698. * src/LpdMessageReceiver.h
  699. * src/LpdReceiveMessageCommand.cc
  700. * src/LpdReceiveMessageCommand.h
  701. * src/Makefile.am
  702. * src/OptionHandlerFactory.cc
  703. * src/Peer.cc
  704. * src/Peer.h
  705. * src/PeerInteractionCommand.cc
  706. * src/SocketCore.cc
  707. * src/SocketCore.h
  708. * src/prefs.cc
  709. * src/prefs.h
  710. * src/usage_text.h
  711. * src/util.cc
  712. * src/util.h
  713. * test/LpdMessageDispatcherTest.cc
  714. * test/LpdMessageReceiverTest.cc
  715. * test/Makefile.am
  716. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. User-defined custom request headers specified by --header option
  718. now override builtin headers if they have same name.
  719. * src/HttpRequest.cc
  720. * src/HttpRequest.h
  721. * test/HttpRequestTest.cc
  722. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Rewirtten util::isNumber()
  724. * src/util.cc
  725. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  727. because without it localized error messages are not printed
  728. correctly.
  729. * src/Platform.cc
  730. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Added unit tests for util::getContentDispositionFilename() from
  732. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  733. tests are passed.
  734. * src/util.cc
  735. * test/UtilTest.cc
  736. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  738. util.cc
  739. * src/Platform.cc
  740. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Support RFC2231 "Parameter Value Character Set and Language
  742. Information" in Content-Disposition header.
  743. * src/HttpResponse.cc
  744. * src/util.cc
  745. * src/util.h
  746. * test/UtilTest.cc
  747. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Print CXXFLAGS
  749. * configure.ac
  750. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Small optimization for A2_WOULDBLOCK(e)
  752. * src/SocketCore.cc
  753. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Removed test file
  755. * test/CookieStorageTest.cc
  756. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Check both EAGAIN and EWOULDBLOCK
  758. * src/SocketCore.cc
  759. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Removed ret == 0 checking for SSL_read(), SSL_write() and
  761. SSL_peek() because the checks are done in the caller. In
  762. SocketBuffer::send(), throw exception if nothing could be written
  763. and socket error was not EWOULDBLOCK
  764. * src/SocketBuffer.cc
  765. * src/SocketCore.cc
  766. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Fixed error code handling so that it can handle Winsock2 error
  768. code.
  769. * src/SocketCore.cc
  770. * src/SocketCore.h
  771. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Bump up version number to 1.9.0a
  773. * configure.ac
  774. * doc/aria2c.1.txt
  775. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Fixed the bug that aria2 doesn't handle return value if error
  777. occurred before download begins.
  778. * src/MultiUrlRequestInfo.cc
  779. * src/main.cc
  780. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Removed SegmentManFactory class.
  782. * src/AbstractSegmentManFactory.h
  783. * src/DefaultSegmentManFactory.cc
  784. * src/DefaultSegmentManFactory.h
  785. * src/Makefile.am
  786. * src/RequestGroup.cc
  787. * src/RequestGroup.h
  788. * src/SegmentManFactory.h
  789. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Destroyed digest context after getting calculated hash.
  791. * src/Piece.cc
  792. * src/Piece.h
  793. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Removed BitfieldManFactory class.
  795. * src/BitfieldManFactory.cc
  796. * src/BitfieldManFactory.h
  797. * src/DefaultPieceStorage.cc
  798. * src/Makefile.am
  799. * src/PeerSessionResource.cc
  800. * src/Piece.cc
  801. * src/main.cc
  802. * test/DefaultPieceStorageTest.cc
  803. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Removed unused methods from BitfieldMan class. Moved
  805. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  806. class.
  807. * src/BitfieldMan.cc
  808. * src/BitfieldMan.h
  809. * src/BitfieldManFactory.cc
  810. * src/BitfieldManFactory.h
  811. * src/bitfield.h
  812. * src/main.cc
  813. * test/BitfieldManTest.cc
  814. * test/DefaultPieceStorageTest.cc
  815. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Moved getFirstNMissingIndex to bitfield.h and made it return the
  817. number of appended indexes.
  818. * src/BitfieldMan.cc
  819. * src/BitfieldMan.h
  820. * src/Piece.cc
  821. * src/Piece.h
  822. * src/bitfield.h
  823. * test/BitfieldManTest.cc
  824. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Added more tests.
  826. * test/BitfieldManTest.cc
  827. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  829. unused block indexes at once instead of calling
  830. getFirstMissingUnusedIndex() multiple times. Made use of it in
  831. Piece class and DefaultBtRequestFactory class via Piece class.
  832. * src/BitfieldMan.cc
  833. * src/BitfieldMan.h
  834. * src/DefaultBtRequestFactory.cc
  835. * src/Piece.cc
  836. * src/Piece.h
  837. * test/BitfieldManTest.cc
  838. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Use std::make_pair(...)
  840. * src/DHTMessageTracker.cc
  841. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Use std::make_pair(...)
  843. * src/bittorrent_helper.cc
  844. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. urlencode(removeFragment(...)) in parseUrl(...)
  846. * src/Request.cc
  847. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  849. * src/AbstractCommand.cc
  850. * src/AdaptiveURISelector.cc
  851. * src/BtPieceMessage.cc
  852. * src/BtPortMessage.cc
  853. * src/CreateRequestCommand.cc
  854. * src/DHTAbstractNodeLookupTask.cc
  855. * src/DHTBucket.cc
  856. * src/DHTGetPeersCommand.cc
  857. * src/DHTMessageDispatcherImpl.cc
  858. * src/DHTMessageFactoryImpl.cc
  859. * src/DHTMessageTracker.cc
  860. * src/DHTPeerAnnounceStorage.cc
  861. * src/DHTRoutingTable.cc
  862. * src/DHTSetup.cc
  863. * src/DefaultBtAnnounce.cc
  864. * src/DefaultBtInteractive.cc
  865. * src/DefaultBtMessageDispatcher.cc
  866. * src/DefaultBtMessageReceiver.cc
  867. * src/DefaultBtProgressInfoFile.cc
  868. * src/DefaultBtRequestFactory.cc
  869. * src/DefaultPeerStorage.cc
  870. * src/DefaultPieceStorage.cc
  871. * src/DownloadCommand.cc
  872. * src/DownloadEngine.cc
  873. * src/EpollEventPoll.cc
  874. * src/FileAllocationCommand.cc
  875. * src/FileEntry.cc
  876. * src/FtpNegotiationCommand.cc
  877. * src/HandshakeExtensionMessage.cc
  878. * src/HttpListenCommand.cc
  879. * src/HttpServer.cc
  880. * src/HttpSkipResponseCommand.cc
  881. * src/IteratableChunkChecksumValidator.cc
  882. * src/Logger.h
  883. * src/MSEHandshake.cc
  884. * src/MetalinkPostDownloadHandler.cc
  885. * src/MultiDiskAdaptor.cc
  886. * src/PeerAbstractCommand.cc
  887. * src/PeerConnection.cc
  888. * src/PeerListenCommand.cc
  889. * src/PeerReceiveHandshakeCommand.cc
  890. * src/RequestGroup.cc
  891. * src/RequestGroupMan.cc
  892. * src/SegmentMan.cc
  893. * src/SelectEventPoll.cc
  894. * src/ServerStat.cc
  895. * src/SimpleBtMessage.cc
  896. * src/SocketCore.cc
  897. * src/TrackerWatcherCommand.cc
  898. * src/UTMetadataDataExtensionMessage.cc
  899. * src/UTMetadataRequestFactory.cc
  900. * src/UTMetadataRequestTracker.cc
  901. * src/XmlRpcMethod.cc
  902. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Changed log level from debug to info
  904. * src/BtDependency.cc
  905. * src/BtPostDownloadHandler.cc
  906. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Removed unused PeerSessionResource::_latency.
  908. * src/BtConstants.h
  909. * src/BtPieceMessage.cc
  910. * src/Peer.cc
  911. * src/Peer.h
  912. * src/PeerSessionResource.cc
  913. * src/PeerSessionResource.h
  914. * test/PeerSessionResourceTest.cc
  915. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Fixed the bug that --file-allocation=falloc doesn't work with
  917. single file download.
  918. * src/AbstractSingleDiskAdaptor.cc
  919. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Release 1.8.2
  921. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Added Portuguese translation. Updated Ukrainian and Spanish
  923. translation. Thanks to all translators.
  924. * po/LINGUAS
  925. * po/es.po
  926. * po/pt.po
  927. * po/uk.po
  928. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Remove fragment from redirected URI.
  930. * src/Request.cc
  931. * test/RequestTest.cc
  932. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Updated po templates.
  934. * po/aria2.pot
  935. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Drop legacy ifdef for ares support and code cleanup.
  937. * src/AsyncNameResolver.cc
  938. * src/AsyncNameResolver.h
  939. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Call ares_library_init and ares_library_cleanup if they are
  941. available. Some code cleanups.
  942. * src/Platform.cc
  943. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Call ares_process_fd() each time after epoll to handle timeout.
  945. * src/EpollEventPoll.cc
  946. * src/EpollEventPoll.h
  947. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Suppressed type-cast compiler warning
  949. * src/CookieStorage.cc
  950. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Fixed compile error on Mac OS X.
  952. * src/CookieStorage.h
  953. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Removed cookietest.txt from Makefile.am
  955. * test/Makefile.am
  956. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Updated version number in man page.
  958. * doc/aria2c.1.txt
  959. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Rewritten help message for --allow-overwrite option.
  961. * doc/aria2c.1.txt
  962. * src/usage_text.h
  963. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Added bittorrent key to the response of tellStatus XML-RPC method.
  965. The associated value of the key is a struct and contains data
  966. retrieved from .torrent file, such as name, announce-list,
  967. comment, etc.
  968. * doc/aria2c.1.txt
  969. * src/XmlRpcMethodImpl.cc
  970. * src/XmlRpcMethodImpl.h
  971. * test/XmlRpcMethodTest.cc
  972. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Removed parse(std::istream&) and parse(const std::string&) from
  974. CookieParser.
  975. * src/CookieParser.cc
  976. * src/CookieParser.h
  977. * test/CookieParserTest.cc
  978. * test/cookietest.txt: Removed
  979. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Fixed the bug that cookie for domain a.b.c is not sent to the host
  981. a.b.c if no other cookies are stored. Fixed the bug that
  982. Cookie::markOriginServerOnly() is not called when cookies are
  983. loaded from file/sqlite3 database.
  984. * src/Cookie.h
  985. * src/CookieStorage.cc
  986. * src/NsCookieParser.cc
  987. * src/Sqlite3MozCookieParser.cc
  988. * test/CookieStorageTest.cc
  989. * test/NsCookieParserTest.cc
  990. * test/Sqlite3MozCookieParserTest.cc
  991. * test/cookies.sqlite
  992. * test/nscookietest.txt
  993. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  995. both _pieceStorage and _segmentMan are initialized or they are
  996. not.
  997. * src/RequestGroup.cc
  998. * src/RequestGroup.h
  999. * test/BtDependencyTest.cc
  1000. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Bump up version number to 1.8.2
  1002. * configure.ac
  1003. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Replaced "." with A2STR::DOT_C
  1005. * src/AbstractCommand.cc
  1006. * src/Cookie.cc
  1007. * src/DownloadContext.cc
  1008. * src/FtpConnection.cc
  1009. * src/RequestGroup.cc
  1010. * src/util.cc
  1011. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Replaced isNumberAndDotsNotation() with isNumericHost().
  1013. isNumericHost() can handle IPv6 address.
  1014. * src/Cookie.cc
  1015. * src/CookieStorage.cc
  1016. * src/util.cc
  1017. * src/util.h
  1018. * test/CookieTest.cc
  1019. * test/UtilTest.cc
  1020. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Included A2STR.h
  1022. * src/CookieStorage.cc
  1023. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Rewritten Cookie storage.
  1025. * src/Cookie.cc
  1026. * src/Cookie.h
  1027. * src/CookieParser.cc
  1028. * src/CookieStorage.cc
  1029. * src/CookieStorage.h
  1030. * src/a2functional.h
  1031. * test/CookieParserTest.cc
  1032. * test/CookieStorageTest.cc
  1033. * test/CookieTest.cc
  1034. * test/HttpResponseTest.cc
  1035. * test/TestUtil.h
  1036. * test/a2functionalTest.cc
  1037. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Handle redirected URI which is not properly percent encoded.
  1039. * src/Request.cc
  1040. * test/RequestTest.cc
  1041. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1043. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1044. in a row without single '200 OK' response.
  1045. * src/RequestGroup.cc.
  1046. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1048. readout by 80 characters in mingw32 build. Catch exception in
  1049. DHTMessageReceiver::receiveMessage().
  1050. * src/AbstractDiskWriter.cc
  1051. * src/ConsoleStatCalc.cc
  1052. * src/DHTMessageReceiver.cc
  1053. * src/File.cc
  1054. * src/RequestGroupMan.cc
  1055. * src/a2io.h
  1056. * test/FileTest.cc
  1057. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Fixed compile error with intel compiler
  1059. * src/XmlRpcMethodImpl.cc
  1060. * src/XmlRpcMethodImpl.h
  1061. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Release 1.8.1
  1063. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Updated Swedish, Russian and Italian translations. Thanks to all
  1065. translators.
  1066. * po/it.po
  1067. * po/ru.po
  1068. * po/sv.po
  1069. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Fixed broken OptionParser::findByName().
  1071. * src/OptionParser.cc
  1072. * test/OptionParserTest.cc
  1073. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Fixed test error without BitTorrent support.
  1075. * test/XmlRpcMethodTest.cc
  1076. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Fixed compile error without GNUTLS/OpenSSL.
  1078. * src/util.cc
  1079. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Changed compression level to Z_DEFAULT_COMPRESSION.
  1081. * src/GZipEncoder.cc
  1082. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Added missing command line options: --http-no-cache,
  1084. --bt-save-metadata and --bt-metadata-only.
  1085. * doc/xmlrpc/aria2rpc
  1086. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1088. client accepts gzip content encoding.
  1089. * src/A2STR.cc
  1090. * src/A2STR.h
  1091. * src/GZipEncoder.cc
  1092. * src/GZipEncoder.h
  1093. * src/HttpHeader.cc
  1094. * src/HttpHeader.h
  1095. * src/HttpServer.cc
  1096. * src/HttpServer.h
  1097. * src/HttpServerBodyCommand.cc
  1098. * src/HttpServerCommand.cc
  1099. * src/Makefile.am
  1100. * src/XmlRpcResponse.cc
  1101. * src/XmlRpcResponse.h
  1102. * test/GZipEncoderTest.cc
  1103. * test/Makefile.am
  1104. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Added XML-RPC client sample code in Python.
  1106. * doc/aria2c.1.txt
  1107. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Updated po templates.
  1109. * po/aria2.pot
  1110. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Bump up version number to 1.8.1
  1112. * configure.ac
  1113. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Added version number to man page. Updated copyright year in man
  1115. page.
  1116. * doc/aria2c.1.txt
  1117. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Rewritten toTagString
  1119. * src/NameMatchOptionHandler.cc
  1120. * test/OptionHandlerTest.cc
  1121. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Added dir and files key to the response struct of aria2.tellStatus
  1123. XML-RPC method. The value associated with files key is the list
  1124. of files. Its element is the same struct used in aria2.getFiles
  1125. XML-RPC method. Added uris key to the response struct of
  1126. aria2.getFiles XML-RPC method. The value associated with uris key
  1127. is the list of URIs. Its element is the same struct used in
  1128. aria2.getUris XML-RPC method.
  1129. * doc/aria2c.1.txt
  1130. * src/XmlRpcMethodImpl.cc
  1131. * test/XmlRpcMethodTest.cc
  1132. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1134. struct containing Session ID, which is generated each time when
  1135. aria2 is invoked.
  1136. * doc/aria2c.1.txt
  1137. * doc/xmlrpc/aria2rpc
  1138. * src/DownloadEngine.cc
  1139. * src/DownloadEngine.h
  1140. * src/XmlRpcMethodFactory.cc
  1141. * src/XmlRpcMethodImpl.cc
  1142. * src/XmlRpcMethodImpl.h
  1143. * test/XmlRpcMethodTest.cc
  1144. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Moved generateRandomKey() from bittorrent_helper to util.
  1146. * src/DHTBucket.cc
  1147. * src/DHTNode.cc
  1148. * src/bittorrent_helper.cc
  1149. * src/bittorrent_helper.h
  1150. * src/util.cc
  1151. * src/util.h
  1152. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Updated doc about GID.
  1154. * doc/aria2c.1.txt
  1155. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1157. accepts a negative integer. 'offset' == -1 points last download
  1158. in the waiting queue and 'offset' == -2 points the download before
  1159. the last download, and so on. The downloads in the response are in
  1160. reversed order.
  1161. * doc/aria2c.1.txt
  1162. * src/XmlRpcMethodImpl.cc
  1163. * src/XmlRpcMethodImpl.h
  1164. * test/XmlRpcMethodTest.cc
  1165. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Added --human-readable option. This option, when true is given,
  1167. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1168. 3.4Mi) in the console readout. The default value is true and it
  1169. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1170. appears when false is given. In this case, sizes and speed are
  1171. printed without in bytes. No Ki, Mi units conversion is used.
  1172. This may be useful for a program to parse the output of aria2.
  1173. * doc/aria2c.1.txt
  1174. * src/ConsoleStatCalc.cc
  1175. * src/ConsoleStatCalc.h
  1176. * src/OptionHandlerFactory.cc
  1177. * src/main.cc
  1178. * src/prefs.cc
  1179. * src/prefs.h
  1180. * src/usage_text.h
  1181. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1183. option accepts empty string "". When "" is given, it erases
  1184. previously defined proxy.
  1185. * doc/aria2c.1.txt
  1186. * src/OptionHandlerImpl.h
  1187. * src/usage_text.h
  1188. * test/OptionHandlerTest.cc
  1189. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Code cleanup for proxy URI handling.
  1191. * src/AbstractCommand.cc
  1192. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added --bt-metadata-only option. If true is given to this option,
  1194. aria2 downloads metadata only. The file(s) described in metadata
  1195. will not be downloaded. This option has effect only when
  1196. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1197. * doc/aria2c.1.txt
  1198. * src/OptionHandlerFactory.cc
  1199. * src/UTMetadataPostDownloadHandler.cc
  1200. * src/download_helper.cc
  1201. * src/prefs.cc
  1202. * src/prefs.h
  1203. * src/usage_text.h
  1204. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1206. deleted when exception is thrown. Make sure that when passing
  1207. std::deque<Command*> to function to store Commands, handle
  1208. exception and delete these Commands.
  1209. * src/AbstractCommand.cc
  1210. * src/CheckIntegrityCommand.cc
  1211. * src/FileAllocationCommand.cc
  1212. * src/RequestGroup.cc
  1213. * src/TrackerWatcherCommand.cc
  1214. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1216. * src/A2STR.cc
  1217. * src/A2STR.h
  1218. * src/FtpNegotiationCommand.cc
  1219. * src/HttpResponseCommand.cc
  1220. * src/util.cc
  1221. * src/util.h
  1222. * test/UtilTest.cc
  1223. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Treat --dir="" as --dir="."
  1225. * src/FtpNegotiationCommand.cc
  1226. * src/HttpResponseCommand.cc
  1227. * src/Metalink2RequestGroup.cc
  1228. * src/UTMetadataPostDownloadHandler.cc
  1229. * src/bittorrent_helper.cc
  1230. * src/download_helper.cc
  1231. * src/util.cc
  1232. * src/util.h
  1233. * test/UtilTest.cc
  1234. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Code clean up.
  1236. * src/main.cc
  1237. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Reset GID to 1 when they reach maximum value. Rewritten
  1239. CUIDCounter::newID()
  1240. * src/CUIDCounter.h
  1241. * src/RequestGroup.cc
  1242. * src/RequestGroup.h
  1243. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Documented --http-no-cache option in man page.
  1245. * doc/aria2c.1.txt
  1246. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Added --http-no-cache option. When true is given, aria2 sends
  1248. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1249. cached content. If false is given , these headers are not sent
  1250. and you can add Cache-Control header with a directive you like
  1251. using --header option.
  1252. * src/HttpRequest.cc
  1253. * src/HttpRequest.h
  1254. * src/HttpRequestCommand.cc
  1255. * src/OptionHandlerFactory.cc
  1256. * src/download_helper.cc
  1257. * src/prefs.cc
  1258. * src/prefs.h
  1259. * src/usage_text.h
  1260. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Removed Logger from OptionParser. When OptionParser is used to
  1262. parse options at bootstrap, LogFactory is not configured yet
  1263. properly. When LogFactory is used in OptionParser, it initializes
  1264. itself to return a logger which has no ability to write log to the
  1265. disk.
  1266. * src/OptionParser.cc
  1267. * src/OptionParser.h
  1268. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Added following sentance to the help message of --out option:
  1270. --out option is ignored when -Z is used.
  1271. * doc/aria2c.1.txt
  1272. * src/usage_text.h
  1273. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Added --bt-save-metadata option to -i list options.
  1275. * doc/aria2c.1.txt
  1276. * src/download_helper.cc
  1277. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1279. additional libraries.
  1280. * src/MultiUrlRequestInfo.cc
  1281. * src/NameResolver.cc
  1282. * src/SelectEventPoll.cc
  1283. * src/SelectEventPoll.h
  1284. * src/SocketCore.cc
  1285. * src/SocketCore.h
  1286. * src/a2netcompat.h
  1287. * src/daemon.cc
  1288. * src/main.cc
  1289. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Fixed typo.
  1291. * src/DHTMessageReceiver.cc
  1292. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Fixed the bug that causes segmentation fault if unknown option is
  1294. put in aria2.conf file. BUG#2928303
  1295. * src/OptionParser.cc
  1296. * src/OptionParser.h
  1297. * src/option_processing.cc
  1298. * test/OptionParserTest.cc
  1299. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Ignore port message with port=0.
  1301. * src/BtPortMessage.cc
  1302. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Run autoupdate
  1304. * configure.ac
  1305. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated autoconf/automake auxiliary files.
  1307. * INSTALL
  1308. * config.guess
  1309. * config.sub
  1310. * depcomp
  1311. * install-sh
  1312. * m4/intldir.m4
  1313. * missing
  1314. * mkinstalldirs
  1315. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Removed unused function.
  1317. * src/SharedHandle.h
  1318. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Find pooled socket using all cached addresses.
  1320. * src/DNSCache.h
  1321. * src/DownloadEngine.cc
  1322. * src/DownloadEngine.h
  1323. * src/InitiateConnectionCommand.cc
  1324. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Updated copyright year.
  1326. * src/version_usage.cc
  1327. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Pool connection if _contentEncodingDecoder is used and server
  1329. supports persistent connection.
  1330. * src/HttpDownloadCommand.cc
  1331. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Updated doc.
  1333. * src/DownloadCommand.cc
  1334. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Untabify. Fixed one line in copyright which is longer than 80
  1336. columns.
  1337. * src
  1338. * test
  1339. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Release 1.8.0
  1341. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Updated po templates.
  1343. * po/aria2.pot
  1344. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Documented --bt-save-metadata option in man page.
  1346. * doc/aria2c.1.txt
  1347. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Fixed usage of --bt-save-metadata option.
  1349. * src/usage_text.h
  1350. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Updated po templates.
  1352. * po/aria2.pot
  1353. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1355. causes name resolution error when none of network interface has
  1356. IPv4 address.
  1357. * src/main.cc
  1358. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Bump up version number to 1.8.0.
  1360. * configure.ac
  1361. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Use info hash as a filename when saving BitTorrent metadata.
  1363. * src/UTMetadataPostDownloadHandler.cc
  1364. * test/UTMetadataPostDownloadHandlerTest.cc
  1365. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Documented system.multicall XML-RPC method in man page.
  1367. * doc/aria2c.1.txt
  1368. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Added signal handler for SIGHUP to save .aria2 file when terminal
  1370. is closed. The handler is the same one for SIGINT and SIGTERM.
  1371. * src/MultiUrlRequestInfo.cc
  1372. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Defined method name in XmlRpcMethod subclasses.
  1374. * src/XmlRpcMethodFactory.cc
  1375. * src/XmlRpcMethodImpl.cc
  1376. * src/XmlRpcMethodImpl.h
  1377. * test/XmlRpcMethodTest.cc
  1378. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Added system.multicall XML-RPC method.
  1380. * src/XmlRpcMethod.cc
  1381. * src/XmlRpcMethod.h
  1382. * src/XmlRpcMethodFactory.cc
  1383. * src/XmlRpcMethodImpl.cc
  1384. * src/XmlRpcMethodImpl.h
  1385. * test/XmlRpcMethodTest.cc
  1386. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Check structure depth when decoding.
  1388. * src/bencode.cc
  1389. * src/bencode.h
  1390. * test/BencodeTest.cc
  1391. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Documented tellStopped XML-RPC method in man page.
  1393. * doc/aria2c.1.txt
  1394. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Added tellStopped XML-RPC method to aria2rpc.
  1396. * doc/xmlrpc/aria2rpc
  1397. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Added tellStopped XML-RPC method. This method returns stopped
  1399. download in the specified range. It takes same parameters with
  1400. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1401. * src/XmlRpcMethodFactory.cc
  1402. * src/XmlRpcMethodImpl.cc
  1403. * src/XmlRpcMethodImpl.h
  1404. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1406. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1407. when conducting unit tests because they fail if networking
  1408. interface is not configured with IPv4 address.
  1409. * src/NameResolver.cc
  1410. * src/SocketCore.cc
  1411. * src/SocketCore.h
  1412. * src/a2netcompat.h
  1413. * test/AllTest.cc
  1414. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Fixed unit test error
  1416. * test/UTMetadataPostDownloadHandlerTest.cc
  1417. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Defined static string constants for efficiency.
  1419. * src/XmlRpcMethodImpl.cc
  1420. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Added --bt-save-metadata option. When true is given, it saves
  1422. metadata as .torrent file. This option has effect only when
  1423. BitTorrent Magnet URI is used. The filename is name in metadata
  1424. with suffix .torrent. The directory to be saved is the same
  1425. directory where download file is saved. If the same file already
  1426. exists, metdata is not saved.
  1427. * src/OptionHandlerFactory.cc
  1428. * src/UTMetadataPostDownloadHandler.cc
  1429. * src/UTMetadataPostDownloadHandler.h
  1430. * src/message.h
  1431. * src/prefs.cc
  1432. * src/prefs.h
  1433. * src/usage_text.h
  1434. * test/UTMetadataDataExtensionMessageTest.cc
  1435. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Added util::saveAs() function. Use it in Signature::save().
  1437. * src/Signature.cc
  1438. * src/util.cc
  1439. * src/util.h
  1440. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Upcase info hash in Magnet URI.
  1442. * doc/aria2c.1.txt
  1443. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Refactored RequestGroupMan::changeReservedGroupPosition()
  1445. * src/RequestGroupMan.cc
  1446. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Updated the description for aria2.addTorrent XML-RPC method.
  1448. * doc/aria2c.1.txt
  1449. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Added changePosition to aria2rpc.
  1451. * doc/xmlrpc/aria2rpc
  1452. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Documented changePosition XML-RPC method in man page.
  1454. * doc/aria2c.1.txt
  1455. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1457. pos and how. This method changes the position of download denoted
  1458. by gid. If how is POS_SET, it moves the download to a position
  1459. relative to the beginning of the queue. If how is POS_CUR, it
  1460. moves the download to a position relative to the current
  1461. position. If how is POS_END, it moves the download to a position
  1462. relative to the end of the queue. If the destination position is
  1463. less than 0 or beyond the end of the queue, it moves the download
  1464. to the beginning or the end of the queue respectively. Returns
  1465. the destination position.
  1466. * src/RequestGroupMan.cc
  1467. * src/RequestGroupMan.h
  1468. * src/XmlRpcMethodFactory.cc
  1469. * src/XmlRpcMethodImpl.cc
  1470. * src/XmlRpcMethodImpl.h
  1471. * test/RequestGroupManTest.cc
  1472. * test/XmlRpcMethodTest.cc
  1473. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Added getOption and getGlobalOption to aria2rpc.
  1475. * doc/xmlrpc/aria2rpc
  1476. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Documented getOption and getGlobalOption XML-RPC method in man
  1478. page
  1479. * doc/aria2c.1.txt
  1480. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Added getOption and getGlobalOption XML-RPC method. getOption
  1482. takes GID as a parameter and returns its options as struct.
  1483. getGlobalOption takes no parameter and returns global
  1484. options. Because global option is used as a template for the
  1485. option of newly added downloads, it includes options returned by
  1486. getOption.
  1487. * src/Option.h
  1488. * src/XmlRpcMethodFactory.cc
  1489. * src/XmlRpcMethodImpl.cc
  1490. * src/XmlRpcMethodImpl.h
  1491. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Sort _optionHandlers in OptionParser by name in ascending order.
  1493. Use vector instead of deque for efficiency.
  1494. * src/OptionHandler.h
  1495. * src/OptionHandlerFactory.h
  1496. * src/OptionParser.cc
  1497. * src/OptionParser.h
  1498. * src/version_usage.cc
  1499. * test/OptionParserTest.cc
  1500. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Code cleanup
  1502. * src/XmlRpcMethod.cc
  1503. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Documented about followedBy and belongsTo in man page.
  1505. * doc/aria2c.1.txt
  1506. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Added following 2 keys, followedBy and belongsTo, to the response
  1508. of tellStatus.
  1509. followedBy: List of GIDs which are generated by the consequence of
  1510. this download. For example, when aria2 downloaded Metalink file,
  1511. it generates downloads described in it(see *--follow-metalink*
  1512. option). This value is useful to track these auto generated
  1513. downloads. If there is no such downloads, this key will not be
  1514. included in the response.
  1515. belongsTo: GID of a parent download. Some downloads are a part of
  1516. another download. For example, if a file in Metalink has
  1517. BitTorrent resource, the download of .torrent is a part of that
  1518. file. If this download has no parent, this key will not be
  1519. included in the response.
  1520. * src/BtPostDownloadHandler.cc
  1521. * src/DownloadResult.h
  1522. * src/Metalink2RequestGroup.cc
  1523. * src/MetalinkPostDownloadHandler.cc
  1524. * src/RequestGroup.cc
  1525. * src/RequestGroup.h
  1526. * src/UTMetadataPostDownloadHandler.cc
  1527. * src/XmlRpcMethodImpl.cc
  1528. * src/XmlRpcMethodImpl.h
  1529. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Assigned BObject in BDE() to avoid segmentation fault when calling
  1531. methods of BDE::none().
  1532. * src/BDE.cc
  1533. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Show info hash in Magnet URI in upper case letters in -S output.
  1535. * src/bittorrent_helper.cc
  1536. * test/BittorrentHelperTest.cc
  1537. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1538. Removed old useless comment
  1539. * src/MultiUrlRequestInfo.cc
  1540. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1542. not properly used in configure script and failed to detect gnutls.
  1543. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1544. and the initialization of pkg-config is done in first occurrence
  1545. of PKG_CHECK_MODULES which is not executed because it is inside of
  1546. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1547. * configure.ac
  1548. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Release 1.7.2
  1550. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1552. true even if all downloads haven't finished, especially when
  1553. PostDownloadHandler is involved. Changed the condition so that it
  1554. only returns true if both _requestGroups and _reservedGroups are
  1555. empty.
  1556. * src/RequestGroupMan.cc
  1557. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Log listening port for BitTorrent/DHT in notice level.
  1559. * src/DHTConnectionImpl.cc
  1560. * src/PeerListenCommand.cc
  1561. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Updated po templates.
  1563. * po/aria2.pot
  1564. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Bump up version number to 1.7.2
  1566. * configure.ac
  1567. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Changed default value of --enable-dht from 'false' to 'true'.
  1569. * doc/aria2c.1.txt
  1570. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Enabled DHT by default because of Magnet URI support. To disable
  1572. DHT, use --enable-dht=false
  1573. * src/OptionHandlerFactory.cc
  1574. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Print Magnet URI in -S output.
  1576. * src/AnnounceList.cc
  1577. * src/bittorrent_helper.cc
  1578. * src/bittorrent_helper.h
  1579. * test/BittorrentHelperTest.cc
  1580. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Added --bt-prioritize-piece option to aria2rpc.
  1582. * doc/xmlrpc/aria2rpc
  1583. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Refer Magnet URI in --help. Made some cosmetic changes.
  1585. * src/version_usage.cc
  1586. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Updated -T and -M option.
  1588. * doc/aria2c.1.txt
  1589. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Fixed typo
  1591. * doc/aria2c.1.txt
  1592. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Fixed the bug that line separator is missing in horizontal bar.
  1594. * doc/xmlrpc/aria2mon
  1595. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Updated usage text for --metalink-file option.
  1597. * src/usage_text.h
  1598. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. If '-' is given as an argument to --metalink-file option, aria2
  1600. reads Metalink file from stdin.
  1601. * src/OptionHandlerFactory.cc
  1602. * src/OptionHandlerImpl.h
  1603. * src/a2io.h
  1604. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Fixed the bug that aria2 listens wrong port if --interface option
  1606. is used.
  1607. * src/SocketCore.cc
  1608. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Fixed the bug that query parameter in magnet URI is not decoded.
  1610. * src/magnet.cc
  1611. * test/MagnetTest.cc
  1612. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Specified defaultSize as an argument for easy testing.
  1614. * src/util.cc
  1615. * src/util.h
  1616. * test/UtilTest.cc
  1617. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Release 1.7.1
  1619. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Bump up version number to 1.7.1
  1621. * configure.ac
  1622. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Fixed the bug --bt-prioritize-piece=tail is not working.
  1624. * src/util.cc
  1625. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Release 1.7.0
  1627. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Updated po templates.
  1629. * po/aria2.pot
  1630. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Updated help message for --bt-prioritize-piece. Some cosmetic
  1632. changes.
  1633. * doc/aria2c.1.txt
  1634. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1636. * src/usage_text.h
  1637. * src/util.cc
  1638. * test/UtilTest.cc
  1639. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Updated Russian, Ukrainian, German and French translations.
  1641. Thanks to all translators involved.
  1642. * po/de.po
  1643. * po/fr.po
  1644. * po/ru.po
  1645. * po/uk.po
  1646. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Mentioned about pkg-config
  1648. * README
  1649. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Fixed typo. Referred --index-out option in BitTorrent notes.
  1651. * README
  1652. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1654. bind, try all addresses until success
  1655. * src/SocketCore.cc
  1656. * src/SocketCore.h
  1657. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Updated po templates.
  1659. * po/aria2.pot
  1660. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Bump up version number to 1.7.0
  1662. * configure.ac
  1663. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1665. * src/DefaultPieceStorage.cc
  1666. * src/DefaultPieceStorage.h
  1667. * src/PieceStorage.h
  1668. * src/UnknownLengthPieceStorage.cc
  1669. * src/UnknownLengthPieceStorage.h
  1670. * test/MockPieceStorage.h
  1671. * test/ProtocolDetectorTest.cc
  1672. * test/XmlRpcMethodTest.cc
  1673. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Documented in man page that if getifaddrs() is missing,
  1675. --interface option doesn't accept interface name.
  1676. * doc/aria2c.1.txt
  1677. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1679. * src/DefaultBtAnnounce.cc
  1680. * src/DefaultBtAnnounce.h
  1681. * test/DefaultBtAnnounceTest.cc
  1682. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Fixed the bug that connection is always dropped if handshake
  1684. message in extension protocol don't have metadata_size.
  1685. src/HandshakeExtensionMessage.cc
  1686. * src/HandshakeExtensionMessage.cc
  1687. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1689. text saying DHT is recommended when Magnet URI is provided.
  1690. * doc/aria2c.1.txt
  1691. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1693. URI is supplied. Notify user that they should consider enabling
  1694. DHT if they use Magnet URI.
  1695. * src/RequestGroup.cc
  1696. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Added --disable-ipv6 option to disable IPv6.
  1698. * doc/aria2c.1.txt
  1699. * src/InitiateConnectionCommand.cc
  1700. * src/NameResolver.cc
  1701. * src/NameResolver.h
  1702. * src/OptionHandlerFactory.cc
  1703. * src/main.cc
  1704. * src/prefs.cc
  1705. * src/prefs.h
  1706. * src/usage_text.h
  1707. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Updated usage text for --bt-prioritize-piece option.
  1709. * doc/aria2c.1.txt
  1710. * src/usage_text.h
  1711. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1713. given and PACKAGE is missing in the system or FEATURE cannot be
  1714. enabled, print error message and stop the script.
  1715. * configure.ac
  1716. * m4/aria2_arg.m4
  1717. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Halt metadata download immediately when metadata download is done.
  1719. Don't wait unresponsive tracker.
  1720. * src/ByteArrayDiskWriter.h
  1721. * src/DefaultBtInteractive.cc
  1722. * src/DefaultExtensionMessageFactory.cc
  1723. * src/DefaultExtensionMessageFactory.h
  1724. * src/PeerInteractionCommand.cc
  1725. * src/UTMetadataDataExtensionMessage.cc
  1726. * src/UTMetadataDataExtensionMessage.h
  1727. * src/UTMetadataRequestExtensionMessage.cc
  1728. * test/UTMetadataDataExtensionMessageTest.cc
  1729. * test/UTMetadataRequestExtensionMessageTest.cc
  1730. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Documented --interface option in man page.
  1732. * doc/aria2c.1.txt
  1733. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Try resolved address in the order received from the resolver.
  1735. * src/DNSCache.h
  1736. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Added debug logs.
  1738. * src/SocketCore.cc
  1739. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1740. Fixed type of tail to uint64_t
  1741. * src/util.cc
  1742. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Added --interface option. This feature binds sockets to given
  1744. interface. You can specify interface name, IP address and
  1745. hostname.
  1746. * configure.ac
  1747. * src/OptionHandlerFactory.cc
  1748. * src/SocketCore.cc
  1749. * src/SocketCore.h
  1750. * src/main.cc
  1751. * src/message.h
  1752. * src/prefs.cc
  1753. * src/prefs.h
  1754. * src/usage_text.h
  1755. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Updated man page for bt-prioritize-piece option in -i list.
  1757. * doc/aria2c.1.txt
  1758. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Added bt-prioritize-piece option to -i list.
  1760. * src/download_helper.cc
  1761. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Removed --http-auth-scheme option from man page.
  1763. * doc/aria2c.1.txt
  1764. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Removed --http-auth-scheme option since it doesn't do nothing.
  1766. * src/OptionHandlerFactory.cc
  1767. * src/prefs.cc
  1768. * src/prefs.h
  1769. * src/usage_text.h
  1770. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Adjusted the number of peer info which get_peers reply message can
  1772. carry.
  1773. * src/DHTGetPeersReplyMessage.cc
  1774. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Added extension_message_test_helper.h to aria2c_SOURCES.
  1776. * test/Makefile.am
  1777. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Documented --bt-prioritize-piece option in man page.
  1779. * doc/aria2c.1.txt
  1780. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Added option --bt-prioritize-piece. This option instruct aria2 to
  1782. try to download first and last pieces of each file first. The
  1783. argument can contain 2 keywords:head and tail. To include both
  1784. keywords, they must be separated by comma. These keywords can take
  1785. one parameter, SIZE. For example , if head=SIZE is specified,
  1786. pieces in the range of first SIZE bytes of each file get higher
  1787. priority. tail=SIZE means the range of last SIZE bytes of each
  1788. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1789. * src/DefaultPieceStorage.h
  1790. * src/Makefile.am
  1791. * src/OptionHandlerFactory.cc
  1792. * src/OptionHandlerImpl.h
  1793. * src/PriorityPieceSelector.cc
  1794. * src/PriorityPieceSelector.h
  1795. * src/RequestGroup.cc
  1796. * src/prefs.cc
  1797. * src/prefs.h
  1798. * src/usage_text.h
  1799. * src/util.cc
  1800. * src/util.h
  1801. * test/Makefile.am
  1802. * test/MockPieceSelector.h
  1803. * test/PriorityPieceSelectorTest.cc
  1804. * test/UtilTest.cc
  1805. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Fixed typo
  1807. * src/HttpRequest.h
  1808. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. In Magnet URI with tr parameter, put each announce URI in separate
  1810. tier.
  1811. * src/bittorrent_helper.cc
  1812. * test/BittorrentHelperTest.cc
  1813. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Renamed ExtensionMessage::getBencodedData() as
  1815. ExtensionMessage::getPayload()
  1816. * src/BtExtendedMessage.cc
  1817. * src/ExtensionMessage.h
  1818. * src/HandshakeExtensionMessage.cc
  1819. * src/HandshakeExtensionMessage.h
  1820. * src/UTMetadataDataExtensionMessage.cc
  1821. * src/UTMetadataDataExtensionMessage.h
  1822. * src/UTMetadataRejectExtensionMessage.cc
  1823. * src/UTMetadataRejectExtensionMessage.h
  1824. * src/UTMetadataRequestExtensionMessage.cc
  1825. * src/UTMetadataRequestExtensionMessage.h
  1826. * src/UTPexExtensionMessage.cc
  1827. * src/UTPexExtensionMessage.h
  1828. * test/HandshakeExtensionMessageTest.cc
  1829. * test/MockExtensionMessage.h
  1830. * test/UTMetadataDataExtensionMessageTest.cc
  1831. * test/UTMetadataRejectExtensionMessageTest.cc
  1832. * test/UTMetadataRequestExtensionMessageTest.cc
  1833. * test/UTPexExtensionMessageTest.cc
  1834. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Updated man page for BitTorrent Magnet URI.
  1836. * doc/aria2c.1.txt
  1837. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Call DownloadContext::setOwnerRequestGroup() in
  1839. RequestGroup::setDownloadContext().
  1840. * src/BtDependency.cc
  1841. * src/RequestGroup.cc
  1842. * src/RequestGroup.h
  1843. * src/download_helper.cc
  1844. * test/DefaultBtMessageDispatcherTest.cc
  1845. * test/DefaultExtensionMessageFactoryTest.cc
  1846. * test/HandshakeExtensionMessageTest.cc
  1847. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1849. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1850. from metadata, use new metadata2Torrent() function.
  1851. * src/BtDependency.cc
  1852. * src/UTMetadataPostDownloadHandler.cc
  1853. * src/bittorrent_helper.cc
  1854. * src/bittorrent_helper.h
  1855. * test/BittorrentHelperTest.cc
  1856. * test/BtDependencyTest.cc
  1857. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Use createRequestGroupForUri to create the download for torrent
  1859. file.
  1860. * src/Metalink2RequestGroup.cc
  1861. * test/Metalink2RequestGroupTest.cc
  1862. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Fixed typo
  1864. * src/DownloadContext.h
  1865. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Use createRequestGroupForBitTorrent()
  1867. * src/BtPostDownloadHandler.cc
  1868. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Added remove().
  1870. * src/Option.cc
  1871. * src/Option.h
  1872. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Removed options which is only valid for URIs specified in
  1874. command-line. If they are left, because op is used as a template
  1875. for new RequestGroup(such as created in XML-RPC command,
  1876. BtPostDownloadHandler etc), they causes unintentional effect.
  1877. * src/main.cc
  1878. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Refer to option value of PREF_OUT only in download_helper.
  1880. * src/FtpNegotiationCommand.cc
  1881. * src/HttpResponseCommand.cc
  1882. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1884. * src/download_helper.cc
  1885. * src/download_helper.h
  1886. * src/XmlRpcMethodImpl.cc
  1887. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Updated man page for changeOption XML-RPC method.
  1889. * doc/aria2c.1.txt
  1890. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Added --bt-max-peers option to changeOption XML-RPC method.
  1892. * src/XmlRpcMethod.cc
  1893. * src/XmlRpcMethodImpl.cc
  1894. * test/XmlRpcMethodTest.cc
  1895. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1897. * test/XmlRpcMethodTest.cc
  1898. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Removed redundant DownloadContext::hasAttribute(...) calls.
  1900. * src/ConsoleStatCalc.cc
  1901. * src/RequestGroup.cc
  1902. * src/XmlRpcMethodImpl.cc
  1903. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Changed the number of tracker request attempt from 5 to 2.
  1905. * src/TrackerWatcherCommand.cc
  1906. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Use host and protocol in original URI, because URI selector
  1908. selects URI based on original URI, not redirected one.
  1909. * src/Request.cc
  1910. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Fixed the bug which causes segmentation fault with tellWaiting
  1912. XML-RPC method when BitTorrent download is waiting. The key of
  1913. BtRegistry is changed from info hash to GID, because it is
  1914. registered per RequestGroup, not info hash.
  1915. * src/BtRegistry.cc
  1916. * src/BtRegistry.h
  1917. * src/BtSetup.cc
  1918. * src/ConsoleStatCalc.cc
  1919. * src/InitiatorMSEHandshakeCommand.cc
  1920. * src/PeerInitiateConnectionCommand.cc
  1921. * src/PeerInteractionCommand.cc
  1922. * src/PeerInteractionCommand.h
  1923. * src/PeerReceiveHandshakeCommand.cc
  1924. * src/RequestGroup.cc
  1925. * src/XmlRpcMethodImpl.cc
  1926. * test/BtRegistryTest.cc
  1927. * test/XmlRpcMethodTest.cc
  1928. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Updated man page for changeOption XML-RPC method.
  1930. * doc/aria2c.1.txt
  1931. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1933. method.
  1934. * src/XmlRpcMethod.cc
  1935. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Documented about BitTorrent Magnet URI in man page.
  1937. * doc/aria2c.1.txt
  1938. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1940. inherited to generated RequestGroup.
  1941. * src/UTMetadataPostDownloadHandler.cc
  1942. * test/UTMetadataPostDownloadHandlerTest.cc
  1943. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Prepended "[METADATA]" before dn.
  1945. * src/bittorrent_helper.cc
  1946. * test/BittorrentHelperTest.cc
  1947. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Rewritten Magnet URI parser.
  1949. * src/Makefile.am
  1950. * src/ProtocolDetector.cc
  1951. * src/bittorrent_helper.cc
  1952. * src/bittorrent_helper.h
  1953. * src/download_helper.cc
  1954. * src/magnet.cc
  1955. * src/magnet.h
  1956. * test/BittorrentHelperTest.cc
  1957. * test/MagnetTest.cc
  1958. * test/Makefile.am
  1959. * test/ProtocolDetectorTest.cc
  1960. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Use hton64
  1962. * src/base32.cc
  1963. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Added Base32 encoded BitTorrent Magnet Link support.
  1965. * src/Makefile.am
  1966. * src/base32.cc
  1967. * src/base32.h
  1968. * src/bittorrent_helper.cc
  1969. * test/Base32Test.cc
  1970. * test/BittorrentHelperTest.cc
  1971. * test/Makefile.am
  1972. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1974. supported yet. Fixed typo in method name in RequestGroup. In
  1975. metadataGetMode, don't show "Your share ratio was ..." message.
  1976. * src/DefaultBtInteractive.cc
  1977. * src/DefaultBtInteractive.h
  1978. * src/DownloadHandlerFactory.cc
  1979. * src/DownloadHandlerFactory.h
  1980. * src/HandshakeExtensionMessage.cc
  1981. * src/Makefile.am
  1982. * src/Metalink2RequestGroup.cc
  1983. * src/PeerInteractionCommand.cc
  1984. * src/RequestGroup.cc
  1985. * src/RequestGroup.h
  1986. * src/UTMetadataPostDownloadHandler.cc
  1987. * src/UTMetadataPostDownloadHandler.h
  1988. * src/download_helper.cc
  1989. * test/HandshakeExtensionMessageTest.cc
  1990. * test/Makefile.am
  1991. * test/UTMetadataPostDownloadHandlerTest.cc
  1992. * test/UTMetadataRejectExtensionMessageTest.cc
  1993. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. In metadataGetMode, don't show SEEDING.
  1995. * src/ConsoleStatCalc.cc
  1996. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Fixed ut_metadata data handling. Implemented
  1998. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1999. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2000. metadata_size is received.
  2001. * src/DefaultExtensionMessageFactory.cc
  2002. * src/DefaultExtensionMessageFactory.h
  2003. * src/HandshakeExtensionMessage.cc
  2004. * src/HandshakeExtensionMessage.h
  2005. * src/UTMetadataDataExtensionMessage.cc
  2006. * src/UTMetadataDataExtensionMessage.h
  2007. * src/UTMetadataRequestExtensionMessage.cc
  2008. * src/UTMetadataRequestFactory.cc
  2009. * src/UTMetadataRequestFactory.h
  2010. * src/UTMetadataRequestTracker.cc
  2011. * src/UTMetadataRequestTracker.h
  2012. * test/DefaultExtensionMessageFactoryTest.cc
  2013. * test/HandshakeExtensionMessageTest.cc
  2014. * test/MockBtMessage.h
  2015. * test/UTMetadataDataExtensionMessageTest.cc
  2016. * test/UTMetadataRequestExtensionMessageTest.cc
  2017. * test/UTMetadataRequestFactoryTest.cc
  2018. * test/UTMetadataRequestTrackerTest.cc
  2019. * test/extension_message_test_helper.h
  2020. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Drop connection if ut_metadata reject message is received.
  2022. * src/UTMetadataRejectExtensionMessage.cc
  2023. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2025. get high enough in that mode.
  2026. * src/ActivePeerConnectionCommand.cc
  2027. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Added BitTorrent magnet link support to ProtocolDetector.
  2029. * src/ProtocolDetector.cc
  2030. * src/ProtocolDetector.h
  2031. * test/ProtocolDetectorTest.cc
  2032. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Don't inject validator into BtMessage in metadataGetMode because
  2034. most of the checks depends on the total length of download but it
  2035. is unknown. Delegate metadataGetMode to BtMessage.
  2036. * src/DefaultBtMessageFactory.cc
  2037. * src/DefaultBtMessageFactory.h
  2038. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2040. * src/DefaultPieceStorage.h
  2041. * src/PieceStorage.h
  2042. * src/UnknownLengthPieceStorage.h
  2043. * test/MockPieceStorage.h
  2044. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Added markTotalLengthIsKnown().
  2046. * src/DownloadContext.h
  2047. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2049. missing. If metadata is missing, always use DHT when it is ready.
  2050. * src/BtSetup.cc
  2051. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Added parseMagnetLink(). Hex encoded info hash is supported.
  2053. Base32 encoded info hash is not supported yet.
  2054. * src/bittorrent_helper.cc
  2055. * src/bittorrent_helper.h
  2056. * test/BittorrentHelperTest.cc
  2057. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Added FromHex()
  2059. * src/util.cc
  2060. * src/util.h
  2061. * test/UtilTest.cc
  2062. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Added _metadataGetMode member variable. It toggles the action when
  2064. messages are received: usually they almost do nothing if
  2065. _metadataGetMode is true.
  2066. * src/AbstractBtMessage.cc
  2067. * src/AbstractBtMessage.h
  2068. * src/BtAllowedFastMessage.cc
  2069. * src/BtBitfieldMessage.cc
  2070. * src/BtCancelMessage.cc
  2071. * src/BtChokeMessage.cc
  2072. * src/BtHaveAllMessage.cc
  2073. * src/BtHaveMessage.cc
  2074. * src/BtInterestedMessage.cc
  2075. * src/BtNotInterestedMessage.cc
  2076. * src/BtPieceMessage.cc
  2077. * src/BtRejectMessage.cc
  2078. * src/BtRequestMessage.cc
  2079. * src/BtUnchokeMessage.cc
  2080. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Added bencode::decode overload functions. They have extra argument
  2082. 'end', passed by reference. 'end' points to the beyond the last
  2083. position of data used in decoding process.
  2084. * src/bencode.cc
  2085. * src/bencode.h
  2086. * test/BencodeTest.cc
  2087. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Initial support of Extension for Peers to Send Metadata
  2089. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2090. metadata from swarm.
  2091. * src/BtConstants.h
  2092. * src/DefaultBtInteractive.cc
  2093. * src/DefaultExtensionMessageFactory.cc
  2094. * src/DefaultExtensionMessageFactory.h
  2095. * src/ExtensionMessage.h
  2096. * src/ExtensionMessageRegistry.h
  2097. * src/HandshakeExtensionMessage.cc
  2098. * src/HandshakeExtensionMessage.h
  2099. * src/Makefile.am
  2100. * src/PeerConnection.h
  2101. * src/PeerInteractionCommand.cc
  2102. * src/UTMetadataDataExtensionMessage.cc
  2103. * src/UTMetadataDataExtensionMessage.h
  2104. * src/UTMetadataExtensionMessage.cc
  2105. * src/UTMetadataExtensionMessage.h
  2106. * src/UTMetadataRejectExtensionMessage.cc
  2107. * src/UTMetadataRejectExtensionMessage.h
  2108. * src/UTMetadataRequestExtensionMessage.cc
  2109. * src/UTMetadataRequestExtensionMessage.h
  2110. * src/bittorrent_helper.cc
  2111. * src/bittorrent_helper.h
  2112. * test/BittorrentHelperTest.cc
  2113. * test/DefaultExtensionMessageFactoryTest.cc
  2114. * test/HandshakeExtensionMessageTest.cc
  2115. * test/Makefile.am
  2116. * test/UTMetadataDataExtensionMessageTest.cc
  2117. * test/UTMetadataRejectExtensionMessageTest.cc
  2118. * test/UTMetadataRequestExtensionMessageTest.cc
  2119. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Cancel segment in prepareForRetry() because there is a chance that
  2121. the command has segments.
  2122. * src/CreateRequestCommand.cc
  2123. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Fixed the bug that slow server is not knocked down in favor of
  2125. faster one.
  2126. * src/AbstractCommand.cc
  2127. * src/DefaultPieceStorage.cc
  2128. * src/DefaultPieceStorage.h
  2129. * src/PieceStorage.h
  2130. * src/UnknownLengthPieceStorage.cc
  2131. * src/UnknownLengthPieceStorage.h
  2132. * test/MockPieceStorage.h
  2133. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Fixed the bug that Request object is not added to
  2135. _inFlightRequests in findFasterRequest().
  2136. * src/FileEntry.cc
  2137. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Changed the strategry of how to increase the number of outstanding
  2139. requests. Now the number is doubled if there are no outstanding
  2140. requests after receiving messages.
  2141. * src/BtConstants.h
  2142. * src/DefaultBtInteractive.cc
  2143. * src/DefaultBtInteractive.h
  2144. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Check socket for reading if there are outstanding requests.
  2146. * src/PeerInteractionCommand.cc
  2147. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Moved frequently called methods to header file so they get
  2149. inlined.
  2150. * src/RequestSlot.cc
  2151. * src/RequestSlot.h
  2152. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Copied in_addr instead of just casting from char* which might
  2154. violate strict aliasing rules.
  2155. * src/AsyncNameResolver.cc
  2156. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Use dynamic_pointer_cast
  2158. * test/BtPieceMessageTest.cc
  2159. * test/BtRequestMessageTest.cc
  2160. * test/DefaultBtRequestFactoryTest.cc
  2161. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Added testSetUrl20()
  2163. * test/RequestTest.cc
  2164. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Code cleanup
  2166. * src/bittorrent_helper.cc
  2167. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Use C++ style cast
  2169. * src/AsyncNameResolver.cc
  2170. * src/Base64.h
  2171. * src/BtBitfieldMessage.cc
  2172. * src/BtHandshakeMessage.cc
  2173. * src/DefaultBtMessageFactory.cc
  2174. * src/DefaultBtProgressInfoFile.cc
  2175. * src/EpollEventPoll.cc
  2176. * src/ExpatMetalinkProcessor.cc
  2177. * src/IteratableChecksumValidator.cc
  2178. * src/IteratableChunkChecksumValidator.cc
  2179. * src/MessageDigestHelper.cc
  2180. * src/Platform.cc
  2181. * src/RequestGroupMan.cc
  2182. * src/SingleFileAllocationIterator.cc
  2183. * src/Sqlite3MozCookieParser.cc
  2184. * src/XML2SAXMetalinkProcessor.cc
  2185. * src/Xml2XmlRpcRequestProcessor.cc
  2186. * src/util.cc
  2187. * src/util.h
  2188. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Fixed integer potential alignment problem.
  2190. * src/bitfield.h
  2191. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2193. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2194. include file ordering.
  2195. * src/PeerListProcessor.h
  2196. * src/bittorrent_helper.cc
  2197. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2199. * src/Request.cc
  2200. * src/util.cc
  2201. * src/util.h
  2202. * test/RequestTest.cc
  2203. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Rewritten util::uitos()
  2205. * src/util.h
  2206. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Code cleanup
  2208. * src/Request.cc
  2209. * src/Request.h
  2210. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Rewritten Request::parseUrl()
  2212. * src/Request.cc
  2213. * test/RequestTest.cc
  2214. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Removed unused macro SAFE_CHARS
  2216. * src/Request.cc
  2217. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Updated doc
  2219. * src/DHTRoutingTableDeserializer.cc
  2220. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Release 1.6.3
  2222. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Removed unused function.
  2224. * test/DHTPeerAnnounceStorageTest.cc
  2225. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Only decrement cols if cols > 0
  2227. * src/ConsoleStatCalc.cc
  2228. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2230. translations. Thanks to all translators.
  2231. * po/ca.po
  2232. * po/fr.po
  2233. * po/it.po
  2234. * po/ja.po
  2235. * po/pl.po
  2236. * po/ru.po
  2237. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Updated translation template
  2239. * po
  2240. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Fixed compile error without ssl library.
  2242. * src/util.cc
  2243. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Logged received nodes in get_peers reply message.
  2245. * src/DHTAbstractNodeLookupTask.cc
  2246. * src/DHTAbstractNodeLookupTask.h
  2247. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2249. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2250. * src/DHTMessageDispatcherImpl.cc
  2251. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Don't reuse URI if Request pool is not empty.
  2253. * src/CreateRequestCommand.cc
  2254. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2256. receive get_peers request for torrent which the client is now
  2257. downloading.
  2258. * src/BtSetup.cc
  2259. * src/DHTPeerAnnounceEntry.cc
  2260. * src/DHTPeerAnnounceEntry.h
  2261. * src/DHTPeerAnnounceStorage.cc
  2262. * src/DHTPeerAnnounceStorage.h
  2263. * src/RequestGroup.cc
  2264. * test/DHTPeerAnnounceEntryTest.cc
  2265. * test/DHTPeerAnnounceStorageTest.cc
  2266. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Fixed the bug that in Windows environment new blank line is
  2268. inserted when console readout is updated.
  2269. * src/ConsoleStatCalc.cc
  2270. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Throw exception if binding listening port is failed. Removed
  2272. RequestGroupMan::getInitialCommand(). Use
  2273. fillRequestGroupFromReserver() instead. Delete commands for
  2274. RequestGroup which has errors when it is being added.
  2275. * src/BtSetup.cc
  2276. * src/DownloadEngine.cc
  2277. * src/DownloadEngine.h
  2278. * src/DownloadEngineFactory.cc
  2279. * src/MultiUrlRequestInfo.cc
  2280. * src/RequestGroupMan.cc
  2281. * src/RequestGroupMan.h
  2282. * test/RequestGroupManTest.cc
  2283. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Fixed the bug that when downloading more than one torrent,
  2285. listening port is not reported properly to tracker for 2nd or
  2286. later torrents.
  2287. * src/BtSetup.cc
  2288. * src/PeerListenCommand.cc
  2289. * src/PeerListenCommand.h
  2290. * src/RequestGroup.cc
  2291. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Bump up version number to 1.6.3
  2293. * configure.ac
  2294. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Removed Util.cc from POTFILES.in
  2296. * po/POTFILES.in
  2297. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Updated man page for previous change.
  2299. * doc/aria2c.1.txt
  2300. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. If user name is embedded but password is missing in URI, first
  2302. resolve password using .netrc. If password is found in .netrc,
  2303. then use it as password. If not, use the password specified in
  2304. --ftp-passwd.
  2305. * src/AuthConfigFactory.cc
  2306. * src/Request.cc
  2307. * src/Request.h
  2308. * test/AuthConfigFactoryTest.cc
  2309. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Fixed typo
  2311. * doc/aria2c.1.txt
  2312. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Fixed typo
  2314. * src/usage_text.h
  2315. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Added missing bitfield.cc
  2317. * src/bitfield.cc
  2318. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Renamed Util.{cc,h} as util.{cc,h}
  2320. * src/Util.cc
  2321. * src/Util.h
  2322. * src/util.cc
  2323. * src/util.h
  2324. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Moved static functions in Util class to namespace util.
  2326. * src
  2327. * test
  2328. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2330. Moved generateRandomKey to bittorrent_helper.cc.
  2331. * src/DHTBucket.cc
  2332. * src/DHTGetPeersMessage.cc
  2333. * src/DHTGetPeersReplyMessage.cc
  2334. * src/DHTMessage.cc
  2335. * src/DHTNode.cc
  2336. * src/DHTTokenTracker.cc
  2337. * src/DHTUtil.cc: Removed.
  2338. * src/DHTUtil.h: Removed.
  2339. * src/Makefile.am
  2340. * src/Util.cc
  2341. * src/Util.h
  2342. * src/bitfield.h
  2343. * src/bittorrent_helper.cc
  2344. * src/bittorrent_helper.h
  2345. * test/ARC4Test.cc
  2346. * test/BNodeTest.cc
  2347. * test/DHTAnnouncePeerMessageTest.cc
  2348. * test/DHTAnnouncePeerReplyMessageTest.cc
  2349. * test/DHTFindNodeMessageTest.cc
  2350. * test/DHTFindNodeReplyMessageTest.cc
  2351. * test/DHTGetPeersMessageTest.cc
  2352. * test/DHTGetPeersReplyMessageTest.cc
  2353. * test/DHTPingMessageTest.cc
  2354. * test/DHTPingReplyMessageTest.cc
  2355. * test/DHTTokenTrackerTest.cc
  2356. * test/DHTUtilTest.cc: Removed.
  2357. * test/Makefile.am
  2358. * test/UtilTest.cc
  2359. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Removed the call to trim() because trim() is called for each
  2361. element in split().
  2362. * src/CookieParser.cc
  2363. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Replaced Util::slice() with split()
  2365. * src/AbstractCommand.cc
  2366. * src/CookieParser.cc
  2367. * src/File.cc
  2368. * src/HttpHeaderProcessor.cc
  2369. * src/HttpRequest.cc
  2370. * src/Metalink2RequestGroup.cc
  2371. * src/MetalinkParserController.cc
  2372. * src/Netrc.cc
  2373. * src/NsCookieParser.cc
  2374. * src/ParameterizedStringParser.cc
  2375. * src/ServerStatMan.cc
  2376. * src/UriListParser.cc
  2377. * src/Util.cc
  2378. * src/Util.h
  2379. * src/bittorrent_helper.cc
  2380. * test/UtilTest.cc
  2381. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Use request->getDir() instead of "/" for embedded user/pass in
  2383. URI.
  2384. * src/AuthConfigFactory.cc
  2385. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Fixed wrong insertion point for BasicCred.
  2387. * src/AuthConfigFactory.cc
  2388. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2389. Allowed non-regular file in LocalFilePathOptionHandler
  2390. * src/OptionHandlerImpl.h
  2391. * src/message.h
  2392. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2394. * src/Netrc.cc
  2395. * src/Util.h
  2396. * test/NetrcTest.cc
  2397. * test/sample.netrc
  2398. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Fixed typo
  2400. * src/BtDependency.cc
  2401. * src/BtRejectMessage.cc
  2402. * src/FtpConnection.cc
  2403. * src/HttpHeaderProcessor.h
  2404. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Fixed lintian report in man page
  2406. * doc/aria2c.1.txt
  2407. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Release 1.6.2
  2409. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Updated Ukrainian translation. Thanks to all translators.
  2411. * po/uk.po
  2412. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Updated translation template
  2414. * po
  2415. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Bump up version number to 1.6.2
  2417. * configure.ac
  2418. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Updated licence message in -v output.
  2420. * src/version_usage.cc
  2421. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Replaced aria2 with aria2c in help message.
  2423. * src/version_usage.cc
  2424. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2426. * src/version_usage.cc
  2427. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Quoted localedir
  2429. * src/Makefile.am
  2430. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2432. utime. Check header for utime.h.
  2433. * configure.ac
  2434. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2436. * configure.ac
  2437. * src/daemon.cc
  2438. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Don't set localedir manually. Leave it to autoconf.
  2440. * configure.ac
  2441. * src/Makefile.am
  2442. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Added --install to ACLOCAL_AMFLAGS.
  2444. Removed m4 from SUBDIRS.
  2445. Updated automake 1.11 and autoconf 2.64.
  2446. Replaced some obsolute macros with new one.
  2447. * Makefile.am
  2448. * configure.ac
  2449. * m4/aria2_arg.m4
  2450. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Removed Makefile.am in m4 directory.
  2452. * configure.ac
  2453. * m4/ChangeLog
  2454. * m4/Makefile.am
  2455. * m4/Makefile.in
  2456. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Removed unused m4 macros.
  2458. * m4/intldir.m4
  2459. * m4/inttypes.m4
  2460. * m4/isc-posix.m4
  2461. * m4/libgnutls-extra.m4
  2462. * m4/ulonglong.m4
  2463. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Fixed the bug that causes segmentation fault if
  2465. req->getCurrentUrl() contains printf formatting characters such as
  2466. %d. The statement that causes this bug is useless and removed.
  2467. * src/AbstractCommand.cc
  2468. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. * Release 1.6.1
  2470. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2471. Updated Simplified Chinese translation. Thanks to translators.
  2472. * po/zh_CN.po
  2473. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Updated translation template
  2475. * po
  2476. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Bump up version number to 1.6.1
  2478. * configure.ac
  2479. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Changed interval from 120 to 60 for dropping inactive peer.
  2481. * src/DefaultBtInteractive.cc
  2482. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Updated man page for --user-agent and --peer-id-prefix option.
  2484. * doc/aria2c.1.txt
  2485. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Code clean up
  2487. * src/BtPostDownloadHandler.cc
  2488. * src/ContentTypeRequestGroupCriteria.cc
  2489. * src/ContentTypeRequestGroupCriteria.h
  2490. * src/DownloadHandlerConstants.cc
  2491. * src/DownloadHandlerConstants.h
  2492. * src/DownloadHandlerFactory.cc
  2493. * src/MetalinkPostDownloadHandler.cc
  2494. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Don't save control file when aria2 exists while checking piece
  2496. hash(behavior of -V option). If control file doesn't exist when
  2497. aria2 launched, the completed length in saved control file will be
  2498. 0 byte and this confuses user. disableSaveControlFile() is called
  2499. in RequestGroup::processCheckIntegrityEntry().
  2500. enableSaveControlFile() will be called after hash checking is
  2501. done. See CheckIntegrityCommand.
  2502. * src/CheckIntegrityCommand.cc
  2503. * src/RequestGroup.cc
  2504. * src/RequestGroup.h
  2505. * src/RequestGroupMan.cc
  2506. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Included version number in Peer ID and client version. Peer ID
  2508. now starts with "aria2/VERSION-", where VERSION is
  2509. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2510. * src/DefaultBtInteractive.cc
  2511. * src/OptionHandlerFactory.cc
  2512. * src/bittorrent_helper.cc
  2513. * src/bittorrent_helper.h
  2514. * src/main.cc
  2515. * src/usage_text.h
  2516. * test/BittorrentHelperTest.cc
  2517. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Fixed memory leak.
  2519. * src/DownloadCommand.cc
  2520. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Removed server, port, user and passwd key from options before
  2522. XMLRPC::Client.call since they are not options of aria2.
  2523. * doc/xmlrpc/aria2mon
  2524. * doc/xmlrpc/aria2rpc
  2525. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Included version number in user-agent string.
  2527. * src/OptionHandlerFactory.cc
  2528. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Fixed the bug that the option values changed by XML-RPC
  2530. method(changeOption and changeGlobalOption) are overwritten to the
  2531. previous value by the next these request which doesn't contain
  2532. that option value. Supporse max-download-limit is initially 0. You
  2533. changed this value to 100K by changeOption. Then you issue
  2534. changeOption request to change max-upload-limit to 50K. This
  2535. second request doesn't contain xml-download-limit, so it is back
  2536. to initial value, 0. Another improvement is that exception is
  2537. thrown when changeOption and changeGlobalOption request contains
  2538. option name which doesn't allowed in each request.
  2539. * src/DownloadEngine.h
  2540. * src/XmlRpcMethod.cc
  2541. * src/XmlRpcMethod.h
  2542. * src/XmlRpcMethodImpl.cc
  2543. * src/download_helper.cc
  2544. * src/download_helper.h
  2545. * test/XmlRpcMethodTest.cc
  2546. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Added missing MetalinkParserStateImpl.{cc,h}
  2548. * src/MetalinkParserStateImpl.cc
  2549. * src/MetalinkParserStateImpl.h
  2550. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Put all MetalinkParserState subclasses into
  2552. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2553. * src/FileMetalinkParserState.cc: Removed
  2554. * src/FileMetalinkParserState.h: Removed
  2555. * src/FilesMetalinkParserState.cc: Removed
  2556. * src/FilesMetalinkParserState.h: Removed
  2557. * src/FinMetalinkParserState.cc: Removed
  2558. * src/FinMetalinkParserState.h: Removed
  2559. * src/HashMetalinkParserState.cc: Removed
  2560. * src/HashMetalinkParserState.h: Removed
  2561. * src/InitialMetalinkParserState.cc: Removed
  2562. * src/InitialMetalinkParserState.h: Removed
  2563. * src/LanguageMetalinkParserState.cc: Removed
  2564. * src/LanguageMetalinkParserState.h: Removed
  2565. * src/Makefile.am
  2566. * src/MetalinkMetalinkParserState.cc: Removed
  2567. * src/MetalinkMetalinkParserState.h: Removed
  2568. * src/MetalinkParserState.h
  2569. * src/MetalinkParserStateMachine.cc
  2570. * src/MetalinkParserStateMachine.h
  2571. * src/OSMetalinkParserState.cc: Removed
  2572. * src/OSMetalinkParserState.h: Removed
  2573. * src/PieceHashMetalinkParserState.cc: Removed
  2574. * src/PieceHashMetalinkParserState.h: Removed
  2575. * src/PiecesMetalinkParserState.cc: Removed
  2576. * src/PiecesMetalinkParserState.h: Removed
  2577. * src/ResourcesMetalinkParserState.cc: Removed
  2578. * src/ResourcesMetalinkParserState.h: Removed
  2579. * src/SignatureMetalinkParserState.cc: Removed
  2580. * src/SignatureMetalinkParserState.h: Removed
  2581. * src/SizeMetalinkParserState.cc: Removed
  2582. * src/SizeMetalinkParserState.h: Removed
  2583. * src/SkipTagMetalinkParserState.cc: Removed
  2584. * src/SkipTagMetalinkParserState.h: Removed
  2585. * src/URLMetalinkParserState.cc: Removed
  2586. * src/URLMetalinkParserState.h: Removed
  2587. * src/VerificationMetalinkParserState.cc: Removed
  2588. * src/VerificationMetalinkParserState.h: Removed
  2589. * src/VersionMetalinkParserState.cc: Removed
  2590. * src/VersionMetalinkParserState.h: Removed
  2591. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Move all functions in PeerMessageUtil to bittorrent_helper.
  2593. * src/BtBitfieldMessage.cc
  2594. * src/BtBitfieldMessageValidator.h
  2595. * src/BtExtendedMessage.cc
  2596. * src/BtHandshakeMessage.cc
  2597. * src/BtHandshakeMessageValidator.h
  2598. * src/BtPieceMessage.cc
  2599. * src/BtPieceMessageValidator.h
  2600. * src/BtPortMessage.cc
  2601. * src/DHTFindNodeReplyMessage.cc
  2602. * src/DHTGetPeersReplyMessage.cc
  2603. * src/DHTMessageFactoryImpl.cc
  2604. * src/DHTRoutingTableDeserializer.cc
  2605. * src/DHTRoutingTableSerializer.cc
  2606. * src/DHTTokenTracker.cc
  2607. * src/DefaultBtMessageFactory.cc
  2608. * src/IndexBtMessage.cc
  2609. * src/IndexBtMessage.h
  2610. * src/IndexBtMessageValidator.h
  2611. * src/Makefile.am
  2612. * src/PeerMessageUtil.cc: Removed.
  2613. * src/PeerMessageUtil.h: Removed.
  2614. * src/RangeBtMessage.cc
  2615. * src/RangeBtMessage.h
  2616. * src/RangeBtMessageValidator.h
  2617. * src/UTPexExtensionMessage.cc
  2618. * src/ZeroBtMessage.cc
  2619. * src/ZeroBtMessage.h
  2620. * src/bittorrent_helper.cc
  2621. * src/bittorrent_helper.h
  2622. * test/BittorrentHelperTest.cc
  2623. * test/BtAllowedFastMessageTest.cc
  2624. * test/BtBitfieldMessageTest.cc
  2625. * test/BtCancelMessageTest.cc
  2626. * test/BtChokeMessageTest.cc
  2627. * test/BtExtendedMessageTest.cc
  2628. * test/BtHandshakeMessageTest.cc
  2629. * test/BtHaveAllMessageTest.cc
  2630. * test/BtHaveMessageTest.cc
  2631. * test/BtHaveNoneMessageTest.cc
  2632. * test/BtInterestedMessageTest.cc
  2633. * test/BtNotInterestedMessageTest.cc
  2634. * test/BtPieceMessageTest.cc
  2635. * test/BtPortMessageTest.cc
  2636. * test/BtRejectMessageTest.cc
  2637. * test/BtRequestMessageTest.cc
  2638. * test/BtSuggestPieceMessageTest.cc
  2639. * test/BtUnchokeMessageTest.cc
  2640. * test/DHTFindNodeReplyMessageTest.cc
  2641. * test/DHTGetPeersReplyMessageTest.cc
  2642. * test/DHTMessageFactoryImplTest.cc
  2643. * test/DHTRoutingTableDeserializerTest.cc
  2644. * test/DHTRoutingTableSerializerTest.cc
  2645. * test/DefaultBtMessageFactoryTest.cc
  2646. * test/DefaultExtensionMessageFactoryTest.cc
  2647. * test/Makefile.am
  2648. * test/PeerListProcessorTest.cc
  2649. * test/PeerMessageUtilTest.cc: Removed.
  2650. * test/UTPexExtensionMessageTest.cc
  2651. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Limit the size of values list when sending get_peers reply.
  2653. * src/DHTGetPeersReplyMessage.cc
  2654. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Updated banner
  2656. * doc/xmlrpc/aria2rpc
  2657. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Added missing help message for remove command.
  2659. * doc/xmlrpc/aria2rpc
  2660. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Generated configure and config.h.in
  2662. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2663. Add check for fork(), which is missing on MinGW
  2664. * src/daemon.cc
  2665. * configure.ac
  2666. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2668. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2669. Util::httpGMT().
  2670. * src/Util.cc
  2671. * src/Util.h
  2672. * test/UtilTest.cc
  2673. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. * Release 1.6.0
  2675. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Fixed a path to xmlrpc/README.txt
  2677. * doc/Makefile.am
  2678. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Added XML-RPC in -v Configuration output.
  2680. * src/FeatureConfig.cc
  2681. * src/FeatureConfig.h
  2682. * test/FeatureConfigTest.cc
  2683. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Updated Bulgarian, Russian, Slovak and Japanese
  2685. translations. Thanks to all translators.
  2686. * po/bg.po
  2687. * po/ja.po
  2688. * po/ru.po
  2689. * po/sk.po
  2690. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Removed --retry-wait option from aria2rpc
  2692. * doc/xmlrpc/aria2rpc
  2693. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Removed --retry-wait option from man page.
  2695. * doc/aria2c.1.txt
  2696. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Removed --retry-wait option since the current architecture doesn't
  2698. allow sleep for particular URI.
  2699. * src/AbstractCommand.cc
  2700. * src/OptionHandlerFactory.cc
  2701. * src/download_helper.cc
  2702. * src/prefs.cc
  2703. * src/prefs.h
  2704. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Removed Retry-After header support. Since the current architecture
  2706. doesn't allow sleep for particular URI.
  2707. * src/HttpSkipResponseCommand.cc
  2708. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Updated the help message for --daemon option.
  2710. * doc/aria2c.1.txt
  2711. * src/usage_text.h
  2712. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Added our own daemon() function for systems which desn't have
  2714. daemon(3).
  2715. * configure.ac
  2716. * src/Makefile.am
  2717. * src/daemon.cc
  2718. * src/daemon.h
  2719. * src/option_processing.cc
  2720. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Simplified File::getCurrentDir()
  2722. * src/File.cc
  2723. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Use exit() instead of _exit
  2725. * src/RequestGroupMan.cc
  2726. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Replaced "CATEGORY" with "TAGS".
  2728. * src/usage_text.h
  2729. * doc/aria2c.1.txt
  2730. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Updated the help message for --help option.
  2732. * src/usage_text.h
  2733. * doc/aria2c.1.txt
  2734. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Updated man page for added help tags.
  2736. * doc/aria2c.1.txt
  2737. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Added help category #file. Added #file tag to the options related
  2739. to downloaded file.
  2740. * src/OptionHandlerFactory.cc
  2741. * src/help_tags.h
  2742. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Added help categories: #cookie and #hook. Added #https tag to
  2744. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2745. * src/OptionHandlerFactory.cc
  2746. * src/help_tags.h
  2747. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Made MSG_NOT_FILE translatable.
  2749. * src/message.h
  2750. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Updated man page for --help option.
  2752. * doc/aria2c.1.txt
  2753. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Updated doc.
  2755. * src/XmlRpcMethod.h
  2756. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Help category now starts with "#" to distinguish a category from
  2758. keyword search. For example, "http" categroy is now "#http". You
  2759. can type "--help=#http" to get explanation of options related to
  2760. http. If '#' is omitted, then the argument is treated as a keyword
  2761. and aria2 searches options whose name includes the keyword and
  2762. print matched ones. For example, "--help=http" will show options
  2763. whose name includes "http".
  2764. * src/OptionHandlerFactory.cc
  2765. * src/help_tags.h
  2766. * src/usage_text.h
  2767. * src/version_usage.cc
  2768. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2769. Documented missing experimental tag and newly added xml-rpc tag in
  2770. man page.
  2771. * doc/aria2c.1.txt
  2772. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Added xml-rpc help tag. Tagged xml-rpc related options with
  2774. xml-rpc tag.
  2775. * src/OptionHandlerFactory.cc
  2776. * src/help_tags.h
  2777. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Updated message when a path is not a file. Updated common message
  2779. for wrong option.
  2780. * src/OptionHandlerException.cc
  2781. * src/message.h
  2782. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Use File::isFile() instead of File::exists(). Updated message when
  2784. a path is not a file.
  2785. * src/OptionHandlerImpl.cc
  2786. * src/message.h
  2787. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Fixed the bug that server performence profile is not updated when
  2789. aria2c was terminated by emergency shutdown.
  2790. * src/TrackerWatcherCommand.cc
  2791. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Use LocalFilePathOptionHandler for -T and -M option.
  2793. Updated message of MSG_FILE_NOT_EXIST.
  2794. * src/OptionHandlerFactory.cc
  2795. * src/message.h
  2796. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Added LocalFilePathOptionHandler which check whether the specified
  2798. file path does exist or not.
  2799. * src/OptionHandlerImpl.cc
  2800. * src/message.h
  2801. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Updated wiki page URI.
  2803. * README
  2804. * doc/aria2c.1.txt
  2805. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Added README.txt for xmlrpc directory.
  2807. * doc/Makefile.am
  2808. * doc/xmlrpc/README.txt
  2809. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Bump up version number to 1.6.0.
  2811. * configure.ac
  2812. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Added XML-RPC client scripts written in ruby.
  2814. * doc/Makefile.am
  2815. * doc/xmlrpc/aria2mon
  2816. * doc/xmlrpc/aria2rpc
  2817. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added support for IPv6 literal address in URI. Now aria2 can
  2819. handle URI such as http://[::1]/
  2820. * src/HttpRequest.cc
  2821. * src/HttpRequest.h
  2822. * src/Request.cc
  2823. * src/Request.h
  2824. * test/HttpRequestTest.cc
  2825. * test/OptionHandlerTest.cc
  2826. * test/RequestTest.cc
  2827. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Fixed the bug that HTTP request header for XML-RPC request is not
  2829. parsed properly.
  2830. * src/HttpHeader.cc
  2831. * src/HttpHeaderProcessor.cc
  2832. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Fixed the bug that XML-RPC authorization might be done before HTTP
  2834. request header is fully received.
  2835. * src/HttpServerCommand.cc
  2836. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Documented --xml-rpc-listen-all option in man page.
  2838. * doc/aria2c.1.txt
  2839. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Added --xml-rpc-listen-all option. If true is given to this
  2841. option, aria2 listens incoming XML-RPC requests on all network
  2842. interfaces. If false is given, listens only on local loopback
  2843. interface. The default value is false.
  2844. * src/HttpListenCommand.cc
  2845. * src/OptionHandlerFactory.cc
  2846. * src/SocketCore.cc
  2847. * src/SocketCore.h
  2848. * src/prefs.cc
  2849. * src/prefs.h
  2850. * src/usage_text.h
  2851. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. * Release 1.5.2
  2853. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Updated Ukrainian and Russian translations. Thanks to all
  2855. translators.
  2856. * po/ru.po
  2857. * po/uk.po
  2858. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Bump up version number to 1.5.2
  2860. * configure.ac
  2861. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Get comment, comment.utf-8, created by and creation date from
  2863. .torrent file and print them in -S output.
  2864. * src/bittorrent_helper.cc
  2865. * src/bittorrent_helper.h
  2866. * test/BittorrentHelperTest.cc
  2867. * test/test.torrent
  2868. * test/utf8.torrent
  2869. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Show exact file size along in -S option output.
  2871. * src/Util.h
  2872. * src/bittorrent_helper.cc
  2873. * test/UtilTest.cc
  2874. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Avoided unnecessary memory allocation in
  2876. BitfieldMan::getCompletedLength().
  2877. * src/BitfieldMan.cc
  2878. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Fixed the bug that download fails if
  2880. SocketCore::establishConnection() throws exception and aria2
  2881. doesn't try another address.
  2882. * src/AbstractCommand.cc
  2883. * src/InitiateConnectionCommand.cc
  2884. * src/message.h
  2885. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2887. detected properly.
  2888. * m4/sqlite3.m4
  2889. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2891. because it causes compile error if PARAMS macro is defined.
  2892. * src/XmlRpcElements.cc
  2893. * src/XmlRpcElements.h
  2894. * src/XmlRpcRequestParserStateImpl.cc
  2895. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. * Release 1.5.1
  2897. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Bump up version number to 1.5.1
  2899. * configure.ac
  2900. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Fixed compile error without BitTorrent support
  2902. * src/DefaultBtProgressInfoFile.cc
  2903. * src/DownloadEngine.cc
  2904. * src/DownloadEngine.h
  2905. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Added missing '=' in Download Results
  2907. * src/RequestGroupMan.cc
  2908. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Fixed compiler warning
  2910. * src/DefaultBtProgressInfoFile.cc
  2911. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Fixed compiler warning on 32bit systems.
  2913. * src/DownloadCommand.cc
  2914. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Call flush from ServerStatMan::save()
  2916. * src/ServerStatMan.cc
  2917. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Check stream status after file is opened.
  2919. * src/CookieStorage.cc
  2920. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Rewritten Signature::save()
  2922. * src/Signature.cc
  2923. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Rewritten RequestGroupMan::saveServerStat()
  2925. * src/RequestGroupMan.cc
  2926. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. Rewritten stream error handling
  2928. * src/DHTAutoSaveCommand.cc
  2929. * src/DHTRoutingTableDeserializer.cc
  2930. * src/DHTRoutingTableSerializer.cc
  2931. * src/DHTSetup.cc
  2932. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Check stream status after file is opened.
  2934. * src/DefaultBtProgressInfoFile.cc
  2935. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Rewritten stream error handling
  2937. * src/DefaultBtProgressInfoFile.cc
  2938. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Make sure that stream is closed before renaming file. Unit test
  2940. fails on mingw32 in the previous implementation.
  2941. * src/CookieStorage.cc
  2942. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Fixed the unit test error without sqlite3
  2944. * test/CookieStorageTest.cc
  2945. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Fixed the undefined reference error
  2947. * test/HttpResponseTest.cc
  2948. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. * Release 1.5.0
  2950. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2952. Ukrainian translations. Thanks to all translators.
  2953. * po/ru.po
  2954. * po/it.po
  2955. * po/da.po
  2956. * po/bg.po
  2957. * po/ja.po
  2958. * po/uk.po
  2959. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Added missing src/Logger.cc
  2961. * src/Logger.cc
  2962. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Rewritten Logger to avoiding constly virtual call.
  2964. * src/LogFactory.cc
  2965. * src/LogFactory.h
  2966. * src/Logger.h
  2967. * src/Makefile.am
  2968. * src/Makefile.in
  2969. * src/NullLogger.h: Removed.
  2970. * src/SimpleLogger.cc
  2971. * src/SimpleLogger.h
  2972. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2973. Updated doc
  2974. * src/main.cc
  2975. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Updated debug log message
  2977. * src/AbstractCommand.cc
  2978. * src/message.h
  2979. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Avoid to create zombie process when commands specified in
  2981. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2982. X and NetBSD.
  2983. * src/main.cc
  2984. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Fixed typo
  2986. * src/usage_text.h
  2987. * doc/aria2c.1.txt
  2988. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Documented 'errorCode' of tellStatus in man page.
  2990. * doc/aria2c.1.txt
  2991. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2993. This key is only available for stopped/completed downloads and its
  2994. value is the error code defined in EXIT STATUS in man page.
  2995. * src/XmlRpcMethodImpl.cc
  2996. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Fixed the bug that session download length is not updated when
  2998. PeerStat is not fastest one.
  2999. * src/SegmentMan.cc
  3000. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Updated doc.
  3002. * doc/aria2c.1.txt
  3003. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Updated doc.
  3005. * src/AbstractCommand.cc
  3006. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Handle the case when DownloadContext has no FileEntry.
  3008. * src/XmlRpcMethodImpl.cc
  3009. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Handle the situation where struct option.name is char *.
  3011. * configure.ac
  3012. * src/OptionParser.cc
  3013. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Code cleanup
  3015. * src/AbstractCommand.cc
  3016. * src/DownloadCommand.cc
  3017. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Use option of each download to create AuthConfig instead of global
  3019. option.
  3020. * src/AuthConfigFactory.cc
  3021. * src/AuthConfigFactory.h
  3022. * src/FtpNegotiationCommand.cc
  3023. * src/HttpRequest.cc
  3024. * src/HttpRequest.h
  3025. * src/HttpRequestCommand.cc
  3026. * src/HttpSkipResponseCommand.cc
  3027. * src/MultiUrlRequestInfo.cc
  3028. * test/AuthConfigFactoryTest.cc
  3029. * test/FtpConnectionTest.cc
  3030. * test/HttpRequestTest.cc
  3031. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Don't call prepareForRetry(1) if all segments are ignored in
  3033. SegmentMan.
  3034. * src/AbstractCommand.cc
  3035. * src/BitfieldMan.cc
  3036. * src/BitfieldMan.h
  3037. * src/SegmentMan.cc
  3038. * src/SegmentMan.h
  3039. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3040. Removed FileEntry::getAssociatedUris()
  3041. * src/FileEntry.h
  3042. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Updated doc: TODO1.5 -> TODO
  3044. * src/FileEntry.cc
  3045. * src/HttpResponseCommand.cc
  3046. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3048. involved.
  3049. * src/RequestGroup.cc
  3050. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Eliminated duplicated filterBitfield initialization code.
  3052. * src/BitfieldMan.cc
  3053. * src/BitfieldMan.h
  3054. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3056. relatively naive approach, though). For DownloadFailureException,
  3057. we handle the case when req is null properly.
  3058. * src/AbstractCommand.cc
  3059. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Added function returning suffix of control file to
  3061. DefaultBtProgressInfoFile.
  3062. * src/DefaultBtProgressInfoFile.cc
  3063. * src/DefaultBtProgressInfoFile.h
  3064. * src/RequestGroup.cc
  3065. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Documented getVersion in man page.
  3067. * doc/aria2c.1.txt
  3068. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Documented type of offset and num for tellWaiting xml-rpc method.
  3070. * doc/aria2c.1.txt
  3071. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Implemented getVersion xml-rpc method. This method returns struct
  3073. which has 2 key-value pairs: "version" key is associated to the
  3074. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3075. associated to the list of enabled features, such as "Async DNS",
  3076. "BitTorrent".
  3077. * src/FeatureConfig.h
  3078. * src/XmlRpcMethodFactory.cc
  3079. * src/XmlRpcMethodImpl.cc
  3080. * src/XmlRpcMethodImpl.h
  3081. * test/XmlRpcMethodTest.cc
  3082. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3083. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3084. for compatibility issue.
  3085. * src/SocketCore.cc
  3086. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Fixed compile error with openSSL
  3088. * src/bittorrent_helper.cc
  3089. * src/messageDigest.h
  3090. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Removed bad code: setting certificate type priority to key
  3092. exchange priority.
  3093. * src/SocketCore.cc
  3094. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. Disconnect seeder if client is also in seed state.
  3096. * src/BtBitfieldMessage.cc
  3097. * src/BtHaveAllMessage.cc
  3098. * src/BtHaveMessage.cc
  3099. * src/message.h
  3100. * test/BtBitfieldMessageTest.cc
  3101. * test/BtHaveAllMessageTest.cc
  3102. * test/BtHaveMessageTest.cc
  3103. * test/MockPieceStorage.h
  3104. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Keep CreateRequestCommand in queue when no segment is available so
  3106. that they can pick up pieces which slow BitTorrent peers are
  3107. downloading.
  3108. * src/AbstractCommand.cc
  3109. * src/CreateRequestCommand.cc
  3110. * src/CreateRequestCommand.h
  3111. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. --bt-stop-timeout now only checks download speed.
  3113. * src/BtStopDownloadCommand.cc
  3114. * src/BtStopDownloadCommand.h
  3115. * src/BtSetup.cc
  3116. * src/usage_text.h
  3117. * doc/aria2c.1.txt
  3118. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Fixed compile error regarding BUFSIZE.
  3120. * src/DownloadCommand.cc
  3121. * src/DownloadCommand.h
  3122. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Documented tellWaiting xml-rpc method in man page.
  3124. * doc/aria2c.1.txt
  3125. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Bump up version number to 1.5.0
  3127. * configure.ac
  3128. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Removed resolved TODO1.5
  3130. * src/AbstractCommand.cc
  3131. * src/DownloadCommand.cc
  3132. * src/RequestGroup.cc
  3133. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Release pooled and in-flight Request objectsand URIResult objects
  3135. in FileEntry after download completed.
  3136. * src/DownloadContext.cc
  3137. * src/DownloadContext.h
  3138. * src/FileEntry.cc
  3139. * src/FileEntry.h
  3140. * src/RequestGroup.cc
  3141. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Set manual and source attribute in aria2c.1.txt
  3143. * doc/aria2c.1.txt
  3144. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Documented that the default value of --use-head is 'false' in man
  3146. page.
  3147. * doc/aria2c.1.txt
  3148. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Added bt-stop-timeout option to -i list.
  3150. * doc/aria2c.1.txt
  3151. * src/download_helper.cc
  3152. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Fixed typo
  3154. * doc/aria2c.1.txt
  3155. * src/usage_text.h
  3156. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Removed peer-id-prefix option from -i list.
  3158. * doc/aria2c.1.txt
  3159. * src/download_helper.cc
  3160. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Fixed typo
  3162. * doc/aria2c.1.txt
  3163. * src/usage_text.h
  3164. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Documented --bt-stop-timeout option in man page.
  3166. * doc/aria2c.1.txt
  3167. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Updated README regarding multi-file torrent web-seeding.
  3169. * doc/README.txt
  3170. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Updated man page regarding multi-file torrent web-seeding.
  3172. * doc/aria2c.1.txt
  3173. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Updated doc
  3175. * src/version_usage.cc
  3176. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Winsock select() doesn't work if no socket is in FD_SET. To
  3178. overcome this problem, a dummy socket is added to FD_SET and it is
  3179. given to select().
  3180. * src/SelectEventPoll.cc
  3181. * src/SelectEventPoll.h
  3182. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Disabled --use-head option by default because --use-head=true
  3184. causes problems on some web sites.
  3185. * src/OptionHandlerFactory.cc
  3186. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Print URL List in -S option for torrent.
  3188. * src/bittorrent_helper.cc
  3189. * src/bittorrent_helper.h
  3190. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. Allocate buffer in ctor of DownloadCommand.
  3192. * src/DownloadCommand.cc
  3193. * src/DownloadCommand.h
  3194. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Removed DiskAdaptor::onDownloadComplete()
  3196. * src/DirectDiskAdaptor.cc
  3197. * src/DirectDiskAdaptor.h
  3198. * src/DiskAdaptor.h
  3199. * src/MultiDiskAdaptor.cc
  3200. * src/MultiDiskAdaptor.h
  3201. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Committed missing BtStopDownloadCommand.{cc,h}
  3203. * src/BtStopDownloadCommand.cc
  3204. * src/BtStopDownloadCommand.h
  3205. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3207. download if the download speed is 0 and the number of seeder is 0
  3208. in consecutive SEC seconds. By default, this function is disabled.
  3209. * src/BtSetup.cc
  3210. * src/Makefile.am
  3211. * src/OptionHandlerFactory.cc
  3212. * src/prefs.cc
  3213. * src/prefs.h
  3214. * src/usage_text.h
  3215. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3216. Removed the call to DiskAdaptor::onDownloadComplete() from
  3217. BtCheckIntegrityEntry and DefaultPieceStorage.
  3218. * src/BtCheckIntegrityEntry.cc
  3219. * src/DefaultPieceStorage.cc
  3220. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Commented out throw statements when number of piece is 0 to
  3222. download 0 length torrent.
  3223. * src/bittorrent_helper.cc
  3224. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Call RequestGroup::createNextCommandWithAdj() from
  3226. BtFileAllocationEntry if at least one FileEntry has URI. The
  3227. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3228. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3229. * src/BtFileAllocationEntry.cc
  3230. * src/FileEntry.h
  3231. * src/RequestGroup.cc
  3232. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Generate peer ID after SimpleRandomizer is initialized.
  3234. * src/main.cc
  3235. * src/option_processing.cc
  3236. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Removed unused method argument.
  3238. * src/CreateRequestCommand.cc
  3239. * src/RequestGroup.cc
  3240. * src/RequestGroup.h
  3241. * src/RequestGroupMan.cc
  3242. * src/TrackerWatcherCommand.cc
  3243. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Made URI reusing function work.
  3245. * src/CreateRequestCommand.cc
  3246. * src/FileEntry.cc
  3247. * src/FileEntry.h
  3248. * test/FileEntryTest.cc
  3249. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Add formerly fastest PeerStat's sessionDownloadLength to new
  3251. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3252. bytes in a session.
  3253. * src/PeerStat.cc
  3254. * src/SegmentMan.cc
  3255. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. If pipelining is enabled, we can always pool socket.
  3257. * src/HttpDownloadCommand.cc
  3258. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. In a single file download, file size becomes known just after
  3260. downloading, set total length to FileEntry object when download
  3261. completed.
  3262. * src/DownloadCommand.cc
  3263. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Use std::vector::reserve() for fileEntries and pieceHashes in
  3265. bittorrent_helper
  3266. * src/bittorrent_helper.cc
  3267. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3269. Removed hidden option PREF_RESET_URI.
  3270. * src/AbstractCommand.cc
  3271. * src/OptionHandlerFactory.cc
  3272. * src/prefs.cc
  3273. * src/prefs.h
  3274. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Removed unused variable/function.
  3276. * src/PeerStat.h
  3277. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Show first URL in Download Results if file path is not available.
  3279. * src/FileEntry.h
  3280. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Throw exception if file path doesn't exist in FTP URL.
  3282. * src/InitiateConnectionCommandFactory.cc
  3283. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3285. * src/BitfieldMan.cc
  3286. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3288. of PeerStat in SegmentMan. peerStats is used for calculating
  3289. download speed. Therefore all active PeerStats should be in
  3290. there. Another one is _fastestPeerStats and it only contains
  3291. fastest PeerStat for each hostname/protocol pair. They are used
  3292. for updating ServerStat.
  3293. * src/DownloadCommand.cc
  3294. * src/Request.h
  3295. * src/RequestGroupMan.cc
  3296. * src/SegmentMan.cc
  3297. * src/SegmentMan.h
  3298. * test/SegmentManTest.cc
  3299. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Try all available addresses returned by DNS until it gets
  3301. connected in HTTP(S)/FTP download
  3302. * src/AbstractCommand.cc
  3303. * src/AbstractCommand.h
  3304. * src/AbstractProxyRequestCommand.cc
  3305. * src/AbstractProxyRequestCommand.h
  3306. * src/DNSCache.h
  3307. * src/DownloadEngine.cc
  3308. * src/DownloadEngine.h
  3309. * src/FtpInitiateConnectionCommand.cc
  3310. * src/FtpInitiateConnectionCommand.h
  3311. * src/FtpNegotiationCommand.cc
  3312. * src/FtpNegotiationCommand.h
  3313. * src/HttpInitiateConnectionCommand.cc
  3314. * src/HttpInitiateConnectionCommand.h
  3315. * src/HttpRequestCommand.cc
  3316. * src/HttpRequestCommand.h
  3317. * src/InitiateConnectionCommand.cc
  3318. * src/InitiateConnectionCommand.h
  3319. * test/DNSCacheTest.cc
  3320. * test/Makefile.am
  3321. * test/SimpleDNSCacheTest.cc
  3322. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3323. Updated doc
  3324. * src/download_helper.cc
  3325. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3326. Refactored fieldMan ctor.
  3327. * src/BitfieldMan.cc
  3328. * src/BitfieldMan.h
  3329. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3330. Don't print "No files to download." message if -S is given.
  3331. * src/main.cc
  3332. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Set referer and method to newly created Request object.
  3334. * src/CreateRequestCommand.cc
  3335. * src/FileEntry.cc
  3336. * src/FileEntry.h
  3337. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3339. * src/AbstractCommand.cc
  3340. * src/AbstractCommand.h
  3341. * src/CreateRequestCommand.cc
  3342. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Get proxy download working
  3344. * src/AbstractProxyRequestCommand.cc
  3345. * src/AbstractProxyRequestCommand.h
  3346. * src/AbstractProxyResponseCommand.cc
  3347. * src/AbstractProxyResponseCommand.h
  3348. * src/FtpInitiateConnectionCommand.cc
  3349. * src/FtpTunnelRequestCommand.cc
  3350. * src/FtpTunnelRequestCommand.h
  3351. * src/FtpTunnelResponseCommand.cc
  3352. * src/FtpTunnelResponseCommand.h
  3353. * src/HttpInitiateConnectionCommand.cc
  3354. * src/HttpProxyRequestCommand.cc
  3355. * src/HttpProxyRequestCommand.h
  3356. * src/HttpProxyResponseCommand.cc
  3357. * src/HttpProxyResponseCommand.h
  3358. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Use SegmentMan::getSegment(cuid) for single file download.
  3360. * src/AbstractCommand.cc
  3361. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Fixed bufSize calculation
  3363. * src/DownloadCommand.cc
  3364. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Don't append "/" if base URI ends with "/".
  3366. * src/bittorrent_helper.cc
  3367. * test/url-list-multiFile.torrent
  3368. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3369. HTTP pipelining is now working. Fixed Segmention fault in
  3370. BitfieldMan's copy ctor.
  3371. * src/AbstractCommand.cc
  3372. * src/BitfieldMan.cc
  3373. * src/BitfieldMan.h
  3374. * src/DownloadCommand.cc
  3375. * src/HttpDownloadCommand.cc
  3376. * src/HttpRequest.cc
  3377. * src/SegmentMan.cc
  3378. * src/SegmentMan.h
  3379. * test/BitfieldManTest.cc
  3380. * test/SegmentManTest.cc
  3381. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Removed ServerHost. Same functionality is implemented using
  3383. FileEntry's in-flight Request objects.
  3384. * src/AbstractCommand.cc
  3385. * src/BtDependency.cc
  3386. * src/CreateRequestCommand.cc
  3387. * src/FileEntry.cc
  3388. * src/FileEntry.h
  3389. * src/FtpNegotiationCommand.cc
  3390. * src/HttpResponseCommand.cc
  3391. * src/Makefile.am
  3392. * src/Metalink2RequestGroup.cc
  3393. * src/RequestGroup.cc
  3394. * src/RequestGroup.h
  3395. * src/ServerHost.cc: Removed
  3396. * src/ServerHost.h: Removed
  3397. * test/BtDependencyTest.cc
  3398. * test/FileEntryTest.cc
  3399. * test/RequestGroupTest.cc
  3400. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Rewritten PeerStat handling. In the previous implementation,
  3402. faster command tries to find slower command. In this new
  3403. implementation, slower command tries to find faster command.
  3404. PeerStat is now created in each HTTP/FTP request to get download
  3405. rate correctly. If the download range is small, the download rate
  3406. tends to small and this will occur at the later stage of download.
  3407. * src/AbstractCommand.cc
  3408. * src/DownloadCommand.cc
  3409. * src/FileEntry.cc
  3410. * src/FileEntry.h
  3411. * src/Request.cc
  3412. * src/Request.h
  3413. * src/RequestGroup.h
  3414. * src/RequestGroupMan.cc
  3415. * src/SegmentMan.cc
  3416. * src/SegmentMan.h
  3417. * test/SegmentManTest.cc
  3418. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Removed _uris from RequestGroup. All functions that refer to _uris
  3420. were moved to FileEntry. Exit status code are now defined in
  3421. DownloadResultCode.h.
  3422. * src/AbstractCommand.cc
  3423. * src/AdaptiveURISelector.cc
  3424. * src/AdaptiveURISelector.h
  3425. * src/AutoSaveCommand.cc
  3426. * src/BtPostDownloadHandler.cc
  3427. * src/CheckIntegrityDispatcherCommand.cc
  3428. * src/CookieStorage.cc
  3429. * src/DHTAutoSaveCommand.cc
  3430. * src/DHTBucketRefreshCommand.cc
  3431. * src/DHTEntryPointNameResolveCommand.cc
  3432. * src/DHTInteractionCommand.cc
  3433. * src/DHTPeerAnnounceCommand.cc
  3434. * src/DHTTokenUpdateCommand.cc
  3435. * src/DlAbortEx.h
  3436. * src/DlRetryEx.h
  3437. * src/DownloadCommand.cc
  3438. * src/DownloadContext.h
  3439. * src/DownloadFailureException.h
  3440. * src/DownloadResult.h
  3441. * src/DownloadResultCode.h
  3442. * src/FeedbackURISelector.cc
  3443. * src/FeedbackURISelector.h
  3444. * src/FileEntry.cc
  3445. * src/FileEntry.h
  3446. * src/FtpNegotiationCommand.cc
  3447. * src/HttpListenCommand.cc
  3448. * src/HttpResponseCommand.cc
  3449. * src/HttpServerResponseCommand.cc
  3450. * src/HttpSkipResponseCommand.cc
  3451. * src/InOrderURISelector.cc
  3452. * src/InOrderURISelector.h
  3453. * src/Makefile.am
  3454. * src/Makefile.in
  3455. * src/Metalink2RequestGroup.cc
  3456. * src/MultiUrlRequestInfo.cc
  3457. * src/MultiUrlRequestInfo.h
  3458. * src/OptionHandlerFactory.cc
  3459. * src/PeerListenCommand.cc
  3460. * src/RecoverableException.h
  3461. * src/RequestGroup.cc
  3462. * src/RequestGroup.h
  3463. * src/RequestGroupMan.cc
  3464. * src/RequestGroupMan.h
  3465. * src/TimedHaltCommand.cc
  3466. * src/TrackerWatcherCommand.cc
  3467. * src/URIResult.cc
  3468. * src/URIResult.h
  3469. * src/URISelector.h
  3470. * src/XmlRpcMethodImpl.cc
  3471. * src/bittorrent_helper.cc
  3472. * src/bittorrent_helper.h
  3473. * src/download_helper.cc
  3474. * src/main.cc
  3475. * src/option_processing.cc
  3476. * test/BtDependencyTest.cc
  3477. * test/BtPostDownloadHandlerTest.cc
  3478. * test/CookieStorageTest.cc
  3479. * test/DefaultBtMessageDispatcherTest.cc
  3480. * test/DownloadHandlerFactoryTest.cc
  3481. * test/DownloadHelperTest.cc
  3482. * test/FeedbackURISelectorTest.cc
  3483. * test/FileEntryTest.cc
  3484. * test/InOrderURISelectorTest.cc
  3485. * test/Metalink2RequestGroupTest.cc
  3486. * test/MetalinkPostDownloadHandlerTest.cc
  3487. * test/RequestGroupManTest.cc
  3488. * test/RequestGroupTest.cc
  3489. * test/XmlRpcMethodTest.cc
  3490. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Removed MockBtContext.h
  3492. * test/Makefile.am
  3493. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Removed _currentRequest from StreamCheckIntegrityEntry and
  3495. StreamFileAllocationEntry.
  3496. * src/AbstractCommand.cc
  3497. * src/HttpResponseCommand.cc
  3498. * src/RequestGroup.cc
  3499. * src/StreamCheckIntegrityEntry.cc
  3500. * src/StreamCheckIntegrityEntry.h
  3501. * src/StreamFileAllocationEntry.cc
  3502. * src/StreamFileAllocationEntry.h
  3503. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Rewritten DownloadContext and removed SingleFileDownloadContext
  3505. and BtContext and its derived classes. BitTorrent specific
  3506. attributes are now set by DownloadContext::setAttribute() with key
  3507. bittorrent::BITTORRENT.
  3508. * src/AbstractBtMessage.cc
  3509. * src/AbstractBtMessage.h
  3510. * src/AbstractCommand.cc
  3511. * src/AbstractCommand.h
  3512. * src/AbstractProxyRequestCommand.cc
  3513. * src/AbstractProxyResponseCommand.cc
  3514. * src/ActivePeerConnectionCommand.cc
  3515. * src/ActivePeerConnectionCommand.h
  3516. * src/AnnounceList.cc
  3517. * src/BtCheckIntegrityEntry.cc
  3518. * src/BtConstants.h
  3519. * src/BtContext.h: Removed
  3520. * src/BtDependency.cc
  3521. * src/BtExtendedMessage.cc
  3522. * src/BtPieceMessage.cc
  3523. * src/BtPieceMessage.h
  3524. * src/BtPostDownloadHandler.cc
  3525. * src/BtRegistry.cc
  3526. * src/BtRegistry.h
  3527. * src/BtSetup.cc
  3528. * src/CheckIntegrityCommand.cc
  3529. * src/CheckIntegrityEntry.cc
  3530. * src/ChecksumCheckIntegrityEntry.cc
  3531. * src/ConsoleStatCalc.cc
  3532. * src/ContentTypeRequestGroupCriteria.cc
  3533. * src/DHTGetPeersCommand.cc
  3534. * src/DHTGetPeersCommand.h
  3535. * src/DHTPeerLookupTask.cc
  3536. * src/DHTPeerLookupTask.h
  3537. * src/DHTTaskFactory.h
  3538. * src/DHTTaskFactoryImpl.cc
  3539. * src/DHTTaskFactoryImpl.h
  3540. * src/DefaultBtAnnounce.cc
  3541. * src/DefaultBtAnnounce.h
  3542. * src/DefaultBtContext.cc: Removed
  3543. * src/DefaultBtContext.h: Removed
  3544. * src/DefaultBtInteractive.cc
  3545. * src/DefaultBtInteractive.h
  3546. * src/DefaultBtMessageDispatcher.cc
  3547. * src/DefaultBtMessageDispatcher.h
  3548. * src/DefaultBtMessageFactory.cc
  3549. * src/DefaultBtMessageFactory.h
  3550. * src/DefaultBtMessageReceiver.cc
  3551. * src/DefaultBtMessageReceiver.h
  3552. * src/DefaultBtProgressInfoFile.cc
  3553. * src/DefaultBtRequestFactory.cc
  3554. * src/DefaultBtRequestFactory.h
  3555. * src/DefaultExtensionMessageFactory.cc
  3556. * src/DefaultExtensionMessageFactory.h
  3557. * src/DefaultPeerStorage.cc
  3558. * src/DefaultPeerStorage.h
  3559. * src/DefaultPieceStorage.cc
  3560. * src/DefaultSegmentManFactory.cc
  3561. * src/DiskAdaptor.cc
  3562. * src/DiskAdaptor.h
  3563. * src/DownloadContext.cc
  3564. * src/DownloadContext.h
  3565. * src/DownloadEngine.cc
  3566. * src/DownloadEngineFactory.cc
  3567. * src/DownloadHandler.cc
  3568. * src/DownloadResult.h
  3569. * src/FileAllocationCommand.cc
  3570. * src/FileAllocationDispatcherCommand.cc
  3571. * src/FileAllocationEntry.cc
  3572. * src/FileEntry.h
  3573. * src/FillRequestGroupCommand.cc
  3574. * src/FtpDownloadCommand.cc
  3575. * src/FtpFinishDownloadCommand.cc
  3576. * src/FtpInitiateConnectionCommand.cc
  3577. * src/FtpNegotiationCommand.cc
  3578. * src/FtpTunnelRequestCommand.cc
  3579. * src/FtpTunnelResponseCommand.cc
  3580. * src/HandshakeExtensionMessage.cc
  3581. * src/HandshakeExtensionMessage.h
  3582. * src/HaveEraseCommand.cc
  3583. * src/HttpDownloadCommand.cc
  3584. * src/HttpInitiateConnectionCommand.cc
  3585. * src/HttpProxyRequestCommand.cc
  3586. * src/HttpProxyResponseCommand.cc
  3587. * src/HttpRequest.cc
  3588. * src/HttpRequest.h
  3589. * src/HttpRequestCommand.cc
  3590. * src/HttpResponseCommand.cc
  3591. * src/HttpServerBodyCommand.cc
  3592. * src/HttpServerCommand.cc
  3593. * src/HttpSkipResponseCommand.cc
  3594. * src/InitiateConnectionCommandFactory.cc
  3595. * src/InitiatorMSEHandshakeCommand.cc
  3596. * src/InitiatorMSEHandshakeCommand.h
  3597. * src/IteratableChecksumValidator.cc
  3598. * src/IteratableChecksumValidator.h
  3599. * src/IteratableChunkChecksumValidator.cc
  3600. * src/MSEHandshake.cc
  3601. * src/MSEHandshake.h
  3602. * src/Makefile.am
  3603. * src/Makefile.in
  3604. * src/Metalink2RequestGroup.cc
  3605. * src/MetalinkPostDownloadHandler.cc
  3606. * src/MultiDiskAdaptor.cc
  3607. * src/MultiDiskAdaptor.h
  3608. * src/MultiFileAllocationIterator.cc
  3609. * src/MultiUrlRequestInfo.cc
  3610. * src/PeerChokeCommand.cc
  3611. * src/PeerChokeCommand.h
  3612. * src/PeerInitiateConnectionCommand.cc
  3613. * src/PeerInitiateConnectionCommand.h
  3614. * src/PeerInteractionCommand.cc
  3615. * src/PeerInteractionCommand.h
  3616. * src/PeerReceiveHandshakeCommand.cc
  3617. * src/PieceHashCheckIntegrityEntry.cc
  3618. * src/RealtimeCommand.cc
  3619. * src/ReceiverMSEHandshakeCommand.cc
  3620. * src/RequestGroup.cc
  3621. * src/RequestGroup.h
  3622. * src/RequestGroupEntry.cc
  3623. * src/RequestGroupMan.cc
  3624. * src/SeedCheckCommand.cc
  3625. * src/SeedCheckCommand.h
  3626. * src/SegmentMan.cc
  3627. * src/ShareRatioSeedCriteria.h
  3628. * src/SingleFileDownloadContext.cc: Removed
  3629. * src/SingleFileDownloadContext.h: Removed
  3630. * src/SleepCommand.cc
  3631. * src/StreamCheckIntegrityEntry.cc
  3632. * src/TrackerWatcherCommand.cc
  3633. * src/TrackerWatcherCommand.h
  3634. * src/UnknownLengthPieceStorage.cc
  3635. * src/Util.cc
  3636. * src/Util.h
  3637. * src/XmlRpcMethodImpl.cc
  3638. * src/bittorrent_helper.cc
  3639. * src/bittorrent_helper.h
  3640. * src/download_helper.cc
  3641. * src/main.cc
  3642. * src/option_processing.cc
  3643. * test/BitfieldManTest.cc
  3644. * test/BittorrentHelperTest.cc
  3645. * test/BtCancelMessageTest.cc
  3646. * test/BtChokeMessageTest.cc
  3647. * test/BtDependencyTest.cc
  3648. * test/BtPieceMessageTest.cc
  3649. * test/BtPostDownloadHandlerTest.cc
  3650. * test/BtRegistryTest.cc
  3651. * test/BtRejectMessageTest.cc
  3652. * test/BtRequestMessageTest.cc
  3653. * test/DHTPeerAnnounceStorageTest.cc
  3654. * test/DefaultBtAnnounceTest.cc
  3655. * test/DefaultBtContextTest.cc: Removed
  3656. * test/DefaultBtMessageDispatcherTest.cc
  3657. * test/DefaultBtMessageFactoryTest.cc
  3658. * test/DefaultBtProgressInfoFileTest.cc
  3659. * test/DefaultBtRequestFactoryTest.cc
  3660. * test/DefaultExtensionMessageFactoryTest.cc
  3661. * test/DefaultPeerStorageTest.cc
  3662. * test/DefaultPieceStorageTest.cc
  3663. * test/DirectDiskAdaptorTest.cc
  3664. * test/DownloadContextTest.cc
  3665. * test/DownloadHandlerFactoryTest.cc
  3666. * test/DownloadHelperTest.cc
  3667. * test/HandshakeExtensionMessageTest.cc
  3668. * test/HttpRequestTest.cc
  3669. * test/HttpResponseTest.cc
  3670. * test/IteratableChecksumValidatorTest.cc
  3671. * test/IteratableChunkChecksumValidatorTest.cc
  3672. * test/MSEHandshakeTest.cc
  3673. * test/Makefile.am
  3674. * test/Makefile.in
  3675. * test/Metalink2RequestGroupTest.cc
  3676. * test/MetalinkPostDownloadHandlerTest.cc
  3677. * test/MockBtContext.h: Removed
  3678. * test/MockDHTTaskFactory.h
  3679. * test/MockDownloadContext.h: Removed
  3680. * test/MockPieceStorage.h
  3681. * test/MultiDiskAdaptorTest.cc
  3682. * test/MultiFileAllocationIteratorTest.cc
  3683. * test/RequestGroupManTest.cc
  3684. * test/RequestGroupTest.cc
  3685. * test/SegmentManTest.cc
  3686. * test/ShareRatioSeedCriteriaTest.cc
  3687. * test/SingleFileDownloadContextTest.cc: Removed
  3688. * test/UtilTest.cc
  3689. * test/XmlRpcMethodTest.cc
  3690. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Added experimental support of WEB-Seeding for multi-file torrent.
  3692. Due to fundamental changes in file handling in HTTP/FTP code, many
  3693. functions are not working: PeerStat, ServerHost, proxy..etc
  3694. * src/AbstractCommand.cc
  3695. * src/AbstractCommand.h
  3696. * src/BitfieldMan.cc
  3697. * src/BitfieldMan.h
  3698. * src/CreateRequestCommand.cc
  3699. * src/CreateRequestCommand.h
  3700. * src/DefaultPieceStorage.cc
  3701. * src/DefaultPieceStorage.h
  3702. * src/DownloadCommand.cc
  3703. * src/DownloadCommand.h
  3704. * src/DownloadContext.cc
  3705. * src/DownloadContext.h
  3706. * src/FileEntry.cc
  3707. * src/FileEntry.h
  3708. * src/FtpDownloadCommand.cc
  3709. * src/FtpDownloadCommand.h
  3710. * src/FtpFinishDownloadCommand.cc
  3711. * src/FtpFinishDownloadCommand.h
  3712. * src/FtpInitiateConnectionCommand.cc
  3713. * src/FtpInitiateConnectionCommand.h
  3714. * src/FtpNegotiationCommand.cc
  3715. * src/FtpNegotiationCommand.h
  3716. * src/FtpTunnelResponseCommand.cc
  3717. * src/HttpDownloadCommand.cc
  3718. * src/HttpDownloadCommand.h
  3719. * src/HttpInitiateConnectionCommand.cc
  3720. * src/HttpInitiateConnectionCommand.h
  3721. * src/HttpProxyResponseCommand.cc
  3722. * src/HttpRequest.cc
  3723. * src/HttpRequest.h
  3724. * src/HttpRequestCommand.cc
  3725. * src/HttpRequestCommand.h
  3726. * src/HttpResponseCommand.cc
  3727. * src/HttpResponseCommand.h
  3728. * src/HttpSkipResponseCommand.cc
  3729. * src/HttpSkipResponseCommand.h
  3730. * src/InitiateConnectionCommand.cc
  3731. * src/InitiateConnectionCommand.h
  3732. * src/InitiateConnectionCommandFactory.cc
  3733. * src/InitiateConnectionCommandFactory.h
  3734. * src/Makefile.am
  3735. * src/PieceStorage.h
  3736. * src/RequestGroup.cc
  3737. * src/RequestGroup.h
  3738. * src/RequestGroupMan.cc
  3739. * src/SegmentMan.cc
  3740. * src/SegmentMan.h
  3741. * src/SingleFileDownloadContext.h
  3742. * src/StreamFileAllocationEntry.cc
  3743. * src/TrackerWatcherCommand.cc
  3744. * src/UnknownLengthPieceStorage.cc
  3745. * src/UnknownLengthPieceStorage.h
  3746. * src/array_fun.h
  3747. * src/bitfield.h
  3748. * src/download_helper.cc
  3749. * test/DownloadContextTest.cc
  3750. * test/Makefile.am
  3751. * test/MockDownloadContext.h
  3752. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Added tellWaiting XML-RPC method.
  3754. * src/SingleFileDownloadContext.cc
  3755. * src/XmlRpcMethodFactory.cc
  3756. * src/XmlRpcMethodImpl.cc
  3757. * src/XmlRpcMethodImpl.h
  3758. * test/XmlRpcMethodTest.cc
  3759. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Updated CookieStorageTest
  3761. * test/CookieStorageTest.cc
  3762. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3764. handle excepion inside these functions.
  3765. * src/LibgnutlsTLSContext.cc
  3766. * src/LibgnutlsTLSContext.h
  3767. * src/LibsslTLSContext.cc
  3768. * src/LibsslTLSContext.h
  3769. * src/MultiUrlRequestInfo.cc
  3770. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. Added comment
  3772. * src/RequestGroup.cc
  3773. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3774. In CookieStorage::load() and saveNsFormat(), handle exception
  3775. inside the functions. When saving Cookies, first write temporary
  3776. file and after successful writes, then renames it to final
  3777. destination.
  3778. * src/CookieStorage.cc
  3779. * src/CookieStorage.h
  3780. * src/MultiUrlRequestInfo.cc
  3781. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3782. The default value of --dir option is the absolute path to the
  3783. current directory. If getcwd() is failed, then it is ".", which is
  3784. the same value with old implementation. This change is necessary
  3785. because after daemon() call, the current working directory is
  3786. changed to /.
  3787. * src/File.cc
  3788. * src/File.h
  3789. * src/OptionHandlerFactory.cc
  3790. * src/option_processing.cc
  3791. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Call daemon() with arguments(0,0), which means daemon() changes
  3793. current working directory to / and redirects stdin, stdout and
  3794. stderr to /dev/null.
  3795. * src/option_processing.cc
  3796. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Small performance optimizations.
  3798. * src/RequestGroupMan.cc
  3799. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3801. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3802. * src/RequestGroupMan.cc
  3803. * src/RequestGroupMan.h
  3804. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3806. setNoWiat(true) if newly created command calls
  3807. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3808. * src/HttpListenCommand.cc
  3809. * src/HttpServerBodyCommand.cc
  3810. * src/HttpServerCommand.cc
  3811. * src/HttpServerResponseCommand.cc
  3812. * src/InitiateConnectionCommand.cc
  3813. * src/RequestGroup.cc
  3814. * src/StreamFileAllocationEntry.cc
  3815. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Removed include vector
  3817. * src/BtRegistry.h
  3818. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Rewritten BtRegistry
  3820. * src/BtRegistry.cc
  3821. * src/BtRegistry.h
  3822. * src/BtSetup.cc
  3823. * src/ConsoleStatCalc.cc
  3824. * src/PeerInteractionCommand.cc
  3825. * src/PeerReceiveHandshakeCommand.cc
  3826. * src/ReceiverMSEHandshakeCommand.cc
  3827. * src/RequestGroup.cc
  3828. * src/XmlRpcMethodImpl.cc
  3829. * test/BtRegistryTest.cc
  3830. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3832. * src/DefaultBtProgressInfoFile.cc
  3833. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Throw an exception if position is less than 0.
  3835. * src/XmlRpcMethodImpl.cc
  3836. * test/XmlRpcMethodTest.cc
  3837. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Use writeFilePath() in ConsoleStatCalc.cc
  3839. * src/ConsoleStatCalc.cc
  3840. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Receive the return value as const reference from
  3842. DownloadContext::getFileEntries().
  3843. * src/DefaultPieceStorage.cc
  3844. * src/RequestGroupMan.cc
  3845. * src/XmlRpcMethodImpl.cc
  3846. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. DownloadContext now has _fileEntries so that
  3848. DownloadContext::getFileEntries() can returns its const reference.
  3849. * src/DefaultBtContext.cc
  3850. * src/DefaultBtContext.h
  3851. * src/DownloadContext.cc
  3852. * src/DownloadContext.h
  3853. * src/SingleFileDownloadContext.cc
  3854. * src/SingleFileDownloadContext.h
  3855. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3857. writeFilePath() function template from RequestGroupMan.cc to
  3858. FileEntry.h
  3859. * src/FileEntry.h
  3860. * src/RequestGroupMan.cc
  3861. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Documented 'position' parameter is starting from 0 in man page.
  3863. * doc/aria2c.1.txt
  3864. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Updated doc.
  3866. * src/MSEHandshake.cc
  3867. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Removed _acceptFeatures and its accessor functions from
  3869. RequestGroup since they are not used practically.
  3870. * src/HttpRequestCommand.cc
  3871. * src/RequestGroup.cc
  3872. * src/RequestGroup.h
  3873. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Removed member _maxTries from RequestGroup class to avoid
  3875. duplicate option value. Those classes who refer this variable
  3876. should use option value of PREF_MAX_TRIES directly.
  3877. * src/AbstractCommand.cc
  3878. * src/RequestGroup.cc
  3879. * src/RequestGroup.h
  3880. * src/TrackerWatcherCommand.cc
  3881. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. * Release 1.4.1
  3883. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Fixed compiler warnings on netbsd
  3885. * src/DHTConnectionImpl.cc
  3886. * src/PeerListenCommand.cc
  3887. * src/PeerSessionResource.cc
  3888. * src/SegmentMan.cc
  3889. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Updated Ukrainian translation. Thanks to all translators.
  3891. * po/uk.po
  3892. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3893. Bump up version number to 1.4.1.
  3894. * configure.ac
  3895. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Added unit tests for strjoin, strconcat and strappend.
  3897. * test/a2functionalTest.cc
  3898. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Rewritten strconcat and strappend using operator+ instead of
  3900. append().
  3901. * src/a2functional.h
  3902. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3904. is enabled.
  3905. * src/Makefile.am
  3906. * test/Makefile.am
  3907. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Added countSeeder() function which counts seeder in the given
  3909. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3910. * src/ConsoleStatCalc.cc
  3911. * src/Peer.h
  3912. * src/XmlRpcMethodImpl.cc
  3913. * test/PeerTest.cc
  3914. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Documented missing seeder in getPeers xml-rpc method.
  3916. Documented uploadLength and numSeeders.
  3917. * doc/aria2c.1.txt
  3918. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Added uploadLength and numSeeders to the response of tellStatus
  3920. xml-rpc method. Assert that PeerStorage instance is not null
  3921. instead of checking if statement. It should be non-null in this
  3922. context.
  3923. * src/XmlRpcMethodImpl.cc
  3924. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3926. * src/XmlRpcResponse.cc
  3927. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Avoid intermediate object during string concatenation.
  3929. * src/HttpRequest.cc
  3930. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Added strjoin function template. Use it in pathJoin()
  3932. * src/Util.h
  3933. * src/a2functional.h
  3934. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Avoid intermediate object during string concatenation. Replaced
  3936. post-increment unary operator with pre-increment one in for loop.
  3937. * src/AdaptiveURISelector.cc
  3938. * src/AnnounceList.cc
  3939. * src/AuthConfig.h
  3940. * src/BtBitfieldMessage.cc
  3941. * src/BtExtendedMessage.cc
  3942. * src/BtHandshakeMessage.cc
  3943. * src/BtPieceMessage.cc
  3944. * src/BtPortMessage.cc
  3945. * src/Cookie.cc
  3946. * src/DHTAnnouncePeerMessage.cc
  3947. * src/DHTAutoSaveCommand.cc
  3948. * src/DHTGetPeersReplyMessage.cc
  3949. * src/DHTNode.cc
  3950. * src/DHTQueryMessage.cc
  3951. * src/DHTResponseMessage.cc
  3952. * src/DHTUnknownMessage.cc
  3953. * src/DefaultBtAnnounce.cc
  3954. * src/DefaultBtContext.cc
  3955. * src/DefaultBtInteractive.cc
  3956. * src/DefaultBtProgressInfoFile.cc
  3957. * src/DefaultPeerStorage.cc
  3958. * src/DownloadEngine.cc
  3959. * src/FeatureConfig.cc
  3960. * src/File.cc
  3961. * src/FtpConnection.cc
  3962. * src/FtpNegotiationCommand.cc
  3963. * src/HandshakeExtensionMessage.cc
  3964. * src/HttpConnection.cc
  3965. * src/HttpRequest.cc
  3966. * src/HttpResponseCommand.cc
  3967. * src/HttpServer.cc
  3968. * src/IndexBtMessage.cc
  3969. * src/Metalink2RequestGroup.cc
  3970. * src/OptionHandlerImpl.h
  3971. * src/PStringBuildVisitor.cc
  3972. * src/Peer.cc
  3973. * src/PeerListenCommand.cc
  3974. * src/Piece.cc
  3975. * src/RangeBtMessage.cc
  3976. * src/Request.cc
  3977. * src/Request.h
  3978. * src/RequestGroup.cc
  3979. * src/RequestGroupMan.cc
  3980. * src/ServerStat.cc
  3981. * src/ServerStatMan.cc
  3982. * src/UTPexExtensionMessage.cc
  3983. * src/Util.cc
  3984. * src/a2functional.h
  3985. * src/download_helper.cc
  3986. * src/messageDigest.cc
  3987. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Unchoke a peer randomly at first and second choke round in seed
  3989. state.
  3990. * src/BtSeederStateChoke.cc
  3991. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3992. Added (sock_t) to quiet compiler warnings in MinGW
  3993. * src/SocketCore.cc
  3994. * src/SocketCore.h
  3995. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3997. * src/EpollEventPoll.h
  3998. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3999. Added fork() emulation using CreateProcess() in MinGW
  4000. * src/RequestGroupMan.cc
  4001. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4002. * Release 1.4.0
  4003. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Added utf8.torrent to EXTRA_DIST
  4005. * test/Makefile.am
  4006. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Fixed docs of aria2.addMetalink xml-rpc method.
  4008. * doc/aria2c.1.txt
  4009. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Added Slovak translation. Updated Ukrainian and Brazilian
  4011. Portuguese translation. Thanks to all translators.
  4012. * po/sk.po
  4013. * po/uk.po
  4014. * po/pt_BR.po
  4015. * po/LINGUAS
  4016. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Added test case for XmlRpcProcessor to fail to parse malformed
  4018. document.
  4019. * test/XmlRpcRequestProcessorTest.cc
  4020. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Removed *.gmo files in po because they are generated on 'make
  4022. dist'
  4023. * po/*.gmo
  4024. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Documented max-concurrent-downloads of changeGlobalOption method
  4026. in man page.
  4027. * doc/aria2c.1.txt
  4028. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4029. Added max-concurrent-downloads option to changeGlobalOption
  4030. xml-rpc method. Rewritten loop conditional in
  4031. RequestGroupMan::fillRequestGroupFromReserver().
  4032. * src/RequestGroupMan.cc
  4033. * src/RequestGroupMan.h
  4034. * src/XmlRpcMethod.cc
  4035. * src/XmlRpcMethodImpl.cc
  4036. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Documented position parameter in man page.
  4038. * doc/aria2c.1.txt
  4039. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Added 'position' parameter to addUri, addTorrent and addMetalink
  4041. xml-rpc method.
  4042. * src/RequestGroupMan.cc
  4043. * src/RequestGroupMan.h
  4044. * src/XmlRpcMethodImpl.cc
  4045. * test/XmlRpcMethodTest.cc
  4046. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Removed Peer.cc from compile source list when --disable-bittorrent
  4048. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4049. takes Peer.
  4050. * src/DefaultPieceStorage.cc
  4051. * src/DefaultPieceStorage.h
  4052. * src/Makefile.am
  4053. * src/PieceStorage.h
  4054. * src/UnknownLengthPieceStorage.cc
  4055. * src/UnknownLengthPieceStorage.h
  4056. * test/MockPieceStorage.h
  4057. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Implemented getter methods in header files to give them more
  4059. chance of optimization.
  4060. Return const reference for SharadHandle if possible.
  4061. * src/AbstractAuthResolver.cc
  4062. * src/AbstractAuthResolver.h
  4063. * src/AbstractBtMessage.cc
  4064. * src/AbstractBtMessage.h
  4065. * src/AbstractSingleDiskAdaptor.cc
  4066. * src/AbstractSingleDiskAdaptor.h
  4067. * src/AsyncNameResolver.cc
  4068. * src/AsyncNameResolver.h
  4069. * src/BNode.cc
  4070. * src/BNode.h
  4071. * src/BitfieldMan.cc
  4072. * src/BitfieldMan.h
  4073. * src/BtAbortOutstandingRequestEvent.h
  4074. * src/BtExtendedMessage.cc
  4075. * src/BtExtendedMessage.h
  4076. * src/BtSeederStateChoke.cc
  4077. * src/BtSeederStateChoke.h
  4078. * src/Cookie.cc
  4079. * src/Cookie.h
  4080. * src/DHTBucket.cc
  4081. * src/DHTBucket.h
  4082. * src/DHTConnectionImpl.cc
  4083. * src/DHTConnectionImpl.h
  4084. * src/DHTFindNodeReplyMessage.cc
  4085. * src/DHTFindNodeReplyMessage.h
  4086. * src/DHTGetPeersReplyMessage.cc
  4087. * src/DHTGetPeersReplyMessage.h
  4088. * src/DHTInteractionCommand.cc
  4089. * src/DHTMessage.cc
  4090. * src/DHTMessage.h
  4091. * src/DHTMessageDispatcherImpl.cc
  4092. * src/DHTMessageEntry.cc
  4093. * src/DHTMessageReceiver.cc
  4094. * src/DHTMessageReceiver.h
  4095. * src/DHTMessageTrackerEntry.cc
  4096. * src/DHTMessageTrackerEntry.h
  4097. * src/DHTPeerAnnounceEntry.cc
  4098. * src/DHTPeerAnnounceEntry.h
  4099. * src/DHTPeerLookupTask.cc
  4100. * src/DHTPeerLookupTask.h
  4101. * src/DHTRoutingTableDeserializer.cc
  4102. * src/DHTRoutingTableDeserializer.h
  4103. * src/DefaultBtAnnounce.cc
  4104. * src/DefaultBtAnnounce.h
  4105. * src/DefaultBtMessageDispatcher.cc
  4106. * src/DefaultBtMessageDispatcher.h
  4107. * src/DefaultBtRequestFactory.cc
  4108. * src/DefaultBtRequestFactory.h
  4109. * src/DiskAdaptor.cc
  4110. * src/DiskAdaptor.h
  4111. * src/DownloadContext.cc
  4112. * src/DownloadContext.h
  4113. * src/DownloadEngine.cc
  4114. * src/DownloadEngine.h
  4115. * src/EpollEventPoll.cc
  4116. * src/EpollEventPoll.h
  4117. * src/FtpConnection.cc
  4118. * src/FtpConnection.h
  4119. * src/HttpConnection.cc
  4120. * src/HttpConnection.h
  4121. * src/HttpHeader.cc
  4122. * src/HttpHeader.h
  4123. * src/HttpRequest.cc
  4124. * src/HttpRequest.h
  4125. * src/HttpResponse.cc
  4126. * src/HttpResponse.h
  4127. * src/LibsslTLSContext.cc
  4128. * src/LibsslTLSContext.h
  4129. * src/MSEHandshake.cc
  4130. * src/MSEHandshake.h
  4131. * src/MetalinkEntry.cc
  4132. * src/MetalinkEntry.h
  4133. * src/MetalinkParserController.cc
  4134. * src/MetalinkParserController.h
  4135. * src/MetalinkParserStateMachine.cc
  4136. * src/MetalinkParserStateMachine.h
  4137. * src/MultiDiskAdaptor.cc
  4138. * src/MultiDiskAdaptor.h
  4139. * src/NetrcAuthResolver.cc
  4140. * src/NetrcAuthResolver.h
  4141. * src/Peer.cc
  4142. * src/Peer.h
  4143. * src/PeerSessionResource.cc
  4144. * src/PeerSessionResource.h
  4145. * src/Piece.cc
  4146. * src/Piece.h
  4147. * src/PieceStatMan.cc
  4148. * src/PieceStatMan.h
  4149. * src/Request.cc
  4150. * src/Request.h
  4151. * src/RequestGroup.cc
  4152. * src/RequestGroup.h
  4153. * src/RequestGroupMan.cc
  4154. * src/RequestGroupMan.h
  4155. * src/RequestSlot.cc
  4156. * src/RequestSlot.h
  4157. * src/SegmentMan.cc
  4158. * src/SegmentMan.h
  4159. * src/SelectEventPoll.cc
  4160. * src/SelectEventPoll.h
  4161. * src/ServerStat.cc
  4162. * src/ServerStat.h
  4163. * src/Signature.cc
  4164. * src/Signature.h
  4165. * src/URIResult.cc
  4166. * src/URIResult.h
  4167. * src/UTPexExtensionMessage.cc
  4168. * src/UTPexExtensionMessage.h
  4169. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Fixed compile error without BitTorrent and Metalink support.
  4171. * src/XmlRpcMethod.cc
  4172. * src/XmlRpcMethodFactory.cc
  4173. * src/XmlRpcMethodImpl.cc
  4174. * src/XmlRpcMethodImpl.h
  4175. * test/XmlRpcMethodTest.cc
  4176. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Rewritten the help message for --allow-overwrite option.
  4178. * doc/aria2c.1.txt
  4179. * src/usage_text.h
  4180. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Fixed typo
  4182. * doc/aria2c.1.txt
  4183. * src/usage_text.h
  4184. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Updated README for 1.4.0 release. Use new table syntax of
  4186. asciidoc.
  4187. * README
  4188. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Documented --xml-rpc-max-request-size option in man page.
  4190. * doc/aria2c.1.txt
  4191. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4192. Moved C_* constants from BtContext to DefaultBtContext.
  4193. * src/BtContext.cc: Removed.
  4194. * src/BtContext.h
  4195. * src/DefaultBtContext.cc
  4196. * src/DefaultBtContext.h
  4197. * src/Makefile.am
  4198. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4200. path key respectively when persing .torrent file.
  4201. * src/BtContext.cc
  4202. * src/BtContext.h
  4203. * src/DefaultBtContext.cc
  4204. * test/DefaultBtContextTest.cc
  4205. * test/utf8.torrent
  4206. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Added --xml-rpc-max-request-size option to limit the size of
  4208. XML-RPC request.
  4209. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4210. Documented XML-RPC API in man page.
  4211. * doc/aria2c.1.txt
  4212. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4214. will break strict-aliasing rules
  4215. * src/PeerConnection.cc
  4216. * test/DHTRoutingTableSerializerTest.cc
  4217. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4219. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4220. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4221. PKG_CHECK_MODULES macro uses latter name.
  4222. * m4/sqlite3.m4
  4223. * src/Makefile.am
  4224. * test/Makefile.am
  4225. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Fixed typo
  4227. * configure.ac
  4228. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4229. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4230. presence of libgnutls using pkg-config first. If it fails, fall
  4231. back to old macro libgnutls.m4.
  4232. * configure.ac
  4233. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Use s itself instead of !s.bad()
  4235. * src/CookieStorage.cc
  4236. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4237. Documented --on-download-* option and --save-cookies option in man
  4238. page.
  4239. * doc/aria2c.1.txt
  4240. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4241. Set possible values for --load-cookie option to "/path/to/file".
  4242. * src/OptionHandlerFactory.cc
  4243. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Added --save-cookies option.
  4245. * src/Cookie.cc
  4246. * src/Cookie.h
  4247. * src/CookieStorage.cc
  4248. * src/CookieStorage.h
  4249. * src/MultiUrlRequestInfo.cc
  4250. * src/OptionHandlerFactory.cc
  4251. * src/prefs.cc
  4252. * src/prefs.h
  4253. * src/usage_text.h
  4254. * test/CookieStorageTest.cc
  4255. * test/CookieTest.cc
  4256. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4257. Removed tellAll XML-RPC command because its reponse tends to be
  4258. big if stopped/waiting downloads pile up.
  4259. * src/XmlRpcMethodFactory.cc
  4260. * src/XmlRpcMethodImpl.cc
  4261. * src/XmlRpcMethodImpl.h
  4262. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Added the ability to execute command when download starts and
  4264. stops. You can also specify command for particular cases such as
  4265. complete/error download. Added --on-download-start,
  4266. --on-download-stop, --on-download-complete and --on-download-error
  4267. option.
  4268. * src/OptionHandlerFactory.cc
  4269. * src/RequestGroupMan.cc
  4270. * src/prefs.cc
  4271. * src/prefs.h
  4272. * src/usage_text.h
  4273. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Fixed test error
  4275. * test/BencodeTest.cc
  4276. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4277. Added unit tests.
  4278. * test/XmlRpcMethodTest.cc
  4279. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4280. Made exception message more verbose.
  4281. * src/bencode.cc
  4282. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4283. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4284. space in console readout. Also they are now shown in MiB/s if
  4285. speed > 1024KiB/s.
  4286. * src/ConsoleStatCalc.cc
  4287. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. Added SEED to console output, which represents the number of
  4289. seeders currently the client is connecting to.
  4290. * src/ConsoleStatCalc.cc
  4291. * src/ConsoleStatCalc.h
  4292. * src/DownloadEngine.cc
  4293. * src/NullStatCalc.h
  4294. * src/StatCalc.h
  4295. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Added source filename(__FILE__) and line number(__LINE__) to
  4297. exception message.
  4298. * src/AbstractCommand.cc
  4299. * src/AbstractDiskWriter.cc
  4300. * src/AbstractProxyResponseCommand.cc
  4301. * src/BDE.h
  4302. * src/BtAllowedFastMessage.cc
  4303. * src/BtHandshakeMessageValidator.h
  4304. * src/BtHaveAllMessage.cc
  4305. * src/BtHaveNoneMessage.cc
  4306. * src/BtPieceMessage.cc
  4307. * src/BtRejectMessage.cc
  4308. * src/ChunkedDecoder.cc
  4309. * src/CookieStorage.cc
  4310. * src/DHTAnnouncePeerMessage.cc
  4311. * src/DHTEntryPointNameResolveCommand.cc
  4312. * src/DHTMessageFactoryImpl.cc
  4313. * src/DHTMessageTracker.cc
  4314. * src/DHTRoutingTableDeserializer.cc
  4315. * src/DHTRoutingTableSerializer.cc
  4316. * src/DHTSetup.cc
  4317. * src/DHTTokenTracker.cc
  4318. * src/DefaultBtAnnounce.cc
  4319. * src/DefaultBtContext.cc
  4320. * src/DefaultBtInteractive.cc
  4321. * src/DefaultBtMessageFactory.cc
  4322. * src/DefaultBtProgressInfoFile.cc
  4323. * src/DefaultExtensionMessageFactory.cc
  4324. * src/DlAbortEx.h
  4325. * src/DlRetryEx.h
  4326. * src/DownloadCommand.cc
  4327. * src/DownloadEngineFactory.cc
  4328. * src/DownloadFailureException.h
  4329. * src/Exception.cc
  4330. * src/Exception.h
  4331. * src/ExpatMetalinkProcessor.cc
  4332. * src/ExpatXmlRpcRequestProcessor.cc
  4333. * src/FallocFileAllocationIterator.cc
  4334. * src/FatalException.h
  4335. * src/FtpConnection.cc
  4336. * src/FtpFinishDownloadCommand.cc
  4337. * src/FtpInitiateConnectionCommand.cc
  4338. * src/FtpNegotiationCommand.cc
  4339. * src/GZipDecoder.cc
  4340. * src/HandshakeExtensionMessage.cc
  4341. * src/HttpConnection.cc
  4342. * src/HttpHeaderProcessor.cc
  4343. * src/HttpInitiateConnectionCommand.cc
  4344. * src/HttpResponse.cc
  4345. * src/HttpResponseCommand.cc
  4346. * src/HttpServer.cc
  4347. * src/HttpSkipResponseCommand.cc
  4348. * src/InitiateConnectionCommandFactory.cc
  4349. * src/IteratableChunkChecksumValidator.cc
  4350. * src/LibgcryptARC4Context.h
  4351. * src/LibgcryptARC4Decryptor.h
  4352. * src/LibgcryptARC4Encryptor.h
  4353. * src/LibgcryptDHKeyExchange.h
  4354. * src/LibgnutlsTLSContext.cc
  4355. * src/LibsslARC4Context.h
  4356. * src/LibsslARC4Decryptor.h
  4357. * src/LibsslARC4Encryptor.h
  4358. * src/LibsslDHKeyExchange.h
  4359. * src/LibsslTLSContext.cc
  4360. * src/MSEHandshake.cc
  4361. * src/MessageDigestHelper.cc
  4362. * src/MetalinkHelper.cc
  4363. * src/MultiDiskAdaptor.cc
  4364. * src/NameMatchOptionHandler.h
  4365. * src/NameResolver.cc
  4366. * src/Netrc.cc
  4367. * src/NsCookieParser.cc
  4368. * src/OptionHandlerException.cc
  4369. * src/OptionHandlerException.h
  4370. * src/OptionHandlerImpl.h
  4371. * src/OptionParser.cc
  4372. * src/ParameterizedStringParser.cc
  4373. * src/PeerAbstractCommand.cc
  4374. * src/PeerConnection.cc
  4375. * src/PeerMessageUtil.cc
  4376. * src/PeerReceiveHandshakeCommand.cc
  4377. * src/Platform.cc
  4378. * src/ReceiverMSEHandshakeCommand.cc
  4379. * src/RecoverableException.h
  4380. * src/RequestGroup.cc
  4381. * src/SimpleLogger.cc
  4382. * src/SocketCore.cc
  4383. * src/Sqlite3MozCookieParser.cc
  4384. * src/UTPexExtensionMessage.cc
  4385. * src/Util.cc
  4386. * src/XML2SAXMetalinkProcessor.cc
  4387. * src/Xml2XmlRpcRequestProcessor.cc
  4388. * src/XmlRpcMethodImpl.cc
  4389. * src/bencode.cc
  4390. * src/download_helper.cc
  4391. * src/messageDigest.h
  4392. * test/ExceptionTest.cc
  4393. * test/TestUtil.cc
  4394. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Bump up version number to 1.4.0
  4396. * configure.ac
  4397. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Added 2files.metalink to EXTRA_DIST
  4399. * test/Makefile.am
  4400. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Added missing 2files.metalink
  4402. * test/2files.metalink
  4403. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Show "[MEMORY]" prefix before filename in download summary if it
  4405. is downloaded into memory.
  4406. * src/DownloadResult.h
  4407. * src/RequestGroup.cc
  4408. * src/RequestGroupMan.cc
  4409. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4411. * src/ExpatXmlRpcRequestProcessor.cc
  4412. * src/Xml2XmlRpcRequestProcessor.cc
  4413. * src/message.h
  4414. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Defined const BDEs to avoid duplicate instantiation.
  4416. Defined MSG_GID_NOT_PROVIDED.
  4417. * src/XmlRpcMethodImpl.cc
  4418. * src/message.h
  4419. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Code cleanup
  4421. * src/Xml2XmlRpcRequestProcessor.cc
  4422. * src/Xml2XmlRpcRequestProcessor.h
  4423. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4424. Defined ENABLE_XML_RPC
  4425. * configure.ac
  4426. * configure
  4427. * config.h.in
  4428. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Added ExpatXmlRpcRequestProcessor
  4430. * src/ExpatXmlRpcRequestProcessor.cc
  4431. * src/ExpatXmlRpcRequestProcessor.h
  4432. * src/Makefile.am
  4433. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Added tests for addTorrent and addMetalink command.
  4435. * test/TestUtil.cc
  4436. * test/TestUtil.h
  4437. * test/XmlRpcMethodTest.cc
  4438. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Corrected the description of --file-allocation option.
  4440. * doc/aria2c.1.txt
  4441. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Added tellAll command.
  4443. * src/XmlRpcMethodFactory.cc
  4444. * src/XmlRpcMethodImpl.cc
  4445. * src/XmlRpcMethodImpl.h
  4446. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4448. * src/XmlRpcMethodImpl.cc
  4449. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. Added changeGlobalOption command. Currently,
  4451. max-overall-download-limit and max-overall-upload-limit option are
  4452. available.
  4453. * src/RequestGroupMan.h
  4454. * src/XmlRpcMethod.cc
  4455. * src/XmlRpcMethod.h
  4456. * src/XmlRpcMethodFactory.cc
  4457. * src/XmlRpcMethodImpl.cc
  4458. * src/XmlRpcMethodImpl.h
  4459. * test/XmlRpcMethodTest.cc
  4460. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4461. Added changeOption command. Currently, max-download-limit,
  4462. max-upload-limit option are available in this command.
  4463. * src/RequestGroup.h
  4464. * src/XmlRpcMethod.cc
  4465. * src/XmlRpcMethod.h
  4466. * src/XmlRpcMethodFactory.cc
  4467. * src/XmlRpcMethodImpl.cc
  4468. * src/XmlRpcMethodImpl.h
  4469. * test/XmlRpcMethodTest.cc
  4470. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Added purgeDownloadResult command.
  4472. * src/RequestGroupMan.cc
  4473. * src/RequestGroupMan.h
  4474. * src/XmlRpcMethodFactory.cc
  4475. * src/XmlRpcMethodImpl.cc
  4476. * src/XmlRpcMethodImpl.h
  4477. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Refactored.
  4479. * src/XmlRpcMethod.cc
  4480. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4482. XmlRpcResponse.
  4483. * src/HttpServerBodyCommand.cc
  4484. * src/Makefile.am
  4485. * src/XmlRpcMethod.cc
  4486. * src/XmlRpcMethod.h
  4487. * src/XmlRpcMethodImpl.cc
  4488. * src/XmlRpcResponse.cc
  4489. * src/XmlRpcResponse.h
  4490. * test/XmlRpcMethodTest.cc
  4491. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. In XML-RPC option struct, header and index-out option can take
  4493. array as value.
  4494. * src/XmlRpcMethod.cc
  4495. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4496. Removed unused option member from PeerConnection.
  4497. * src/InitiatorMSEHandshakeCommand.cc
  4498. * src/PeerConnection.cc
  4499. * src/PeerConnection.h
  4500. * src/PeerInteractionCommand.cc
  4501. * src/PeerReceiveHandshakeCommand.cc
  4502. * src/ReceiverMSEHandshakeCommand.cc
  4503. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. Added "seeder" key to getPeers response.
  4505. * src/XmlRpcMethodImpl.cc
  4506. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Added addMetalink XML-RPC command.
  4508. * src/XmlRpcMethodFactory.cc
  4509. * src/XmlRpcMethodImpl.cc
  4510. * src/XmlRpcMethodImpl.h
  4511. * src/download_helper.cc
  4512. * src/download_helper.h
  4513. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4514. Fixed the bug that POU peers are never choked in seeding.
  4515. * src/BtSeederStateChoke.cc
  4516. * src/BtSeederStateChoke.h
  4517. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Added web-seeding URI handling in addTorrent command.
  4519. * src/XmlRpcMethodImpl.cc
  4520. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Added "length" key to getFiles response.
  4522. * src/XmlRpcMethodImpl.cc
  4523. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4524. Moved --no-netrc option from ftp option section to http/ftp option
  4525. section.
  4526. * doc/aria2c.1.txt
  4527. * src/OptionHandlerFactory.cc
  4528. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4529. Removed garbage "\" character before '
  4530. * doc/aria2c.1.txt
  4531. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Removed garbage "\" character before http.
  4533. * doc/aria2c.1.txt
  4534. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4535. Documented additional options that can be specified in -i list.
  4536. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4537. and --xml-rpc-passwd. Removed --enable-http-server and
  4538. --http-server-listen-port.
  4539. * doc/aria2c.1.txt
  4540. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4542. * src/DefaultPeerStorage.cc
  4543. * src/DefaultPeerStorage.h
  4544. * src/PeerStorage.h
  4545. * src/XmlRpcMethodImpl.cc
  4546. * test/MockPeerStorage.h
  4547. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Put a call to Socket::isReadable() in try block.
  4549. * src/HttpServerBodyCommand.cc
  4550. * src/HttpServerCommand.cc
  4551. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4552. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4553. exception , so it is now in try block.
  4554. * src/HttpServerResponseCommand.cc
  4555. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Added "amChoking" and "peerChoking" key in getPeers response.
  4557. * src/XmlRpcMethodImpl.cc
  4558. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4559. Added test case for zero-length filter.
  4560. * test/BitfieldManTest.cc
  4561. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. getFiles command now returns file data for finished/stopped
  4563. downloads.
  4564. * src/XmlRpcMethodImpl.cc
  4565. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. DownloadResult now has the list of FileEntry. The download
  4567. summary displays the path of first selected file and the number of
  4568. remaining files for multi-file torrent.
  4569. * src/DownloadResult.h
  4570. * src/RequestGroup.cc
  4571. * src/RequestGroupMan.cc
  4572. * test/RequestGroupTest.cc
  4573. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. Fixed segmentation fault error when no file is selected in
  4575. multi-file torrent.
  4576. * src/BitfieldMan.cc
  4577. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4578. Escaped <,>,& character in XML-RPC response.
  4579. * src/XmlRpcMethod.cc
  4580. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Throw DlAbortEx instead of FatalException during parsing options
  4582. because we don't want for aria2 to quit when bad option is passed
  4583. via XML-RPC.
  4584. * src/OptionHandlerException.cc
  4585. * src/OptionHandlerException.h
  4586. * src/OptionHandlerImpl.h
  4587. * src/OptionParser.cc
  4588. * src/OptionParser.h
  4589. * src/PStringSegment.cc
  4590. * src/ParameterizedStringParser.cc
  4591. * src/download_helper.cc
  4592. * test/ParameterizedStringParserTest.cc
  4593. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Selecting files are now done in
  4595. DefaultBtContext::setFileFileter().
  4596. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4597. functions are removed because they are no longer used. Creating
  4598. filter in BitfieldMan is done in new funtion
  4599. PieceStorage::setupFileFilter()
  4600. * src/BtContext.cc
  4601. * src/BtContext.h
  4602. * src/DefaultBtContext.cc
  4603. * src/DefaultBtContext.h
  4604. * src/DefaultPieceStorage.cc
  4605. * src/DefaultPieceStorage.h
  4606. * src/DiskAdaptor.cc
  4607. * src/DiskAdaptor.h
  4608. * src/PieceStorage.h
  4609. * src/RequestGroup.cc
  4610. * src/UnknownLengthPieceStorage.h
  4611. * src/XmlRpcMethodImpl.cc
  4612. * test/DefaultBtContextTest.cc
  4613. * test/MockBtContext.h
  4614. * test/MockPieceStorage.h
  4615. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Fixed compile error on Mac OS X
  4617. * src/HttpServer.cc
  4618. * src/XmlRpcMethod.h
  4619. * src/XmlRpcMethodImpl.cc
  4620. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Use std::binary_search instead of std::find
  4622. * src/DefaultPieceStorage.cc
  4623. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Removed unnecessary BDE() call; leave them to implicit conversion.
  4625. * src/XmlRpcMethodImpl.cc
  4626. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Return connections and gid in string
  4628. * src/XmlRpcMethodImpl.cc
  4629. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Renamed addURI as addUri
  4631. * src/XmlRpcMethodFactory.cc
  4632. * src/XmlRpcMethodImpl.cc
  4633. * src/XmlRpcMethodImpl.h
  4634. * test/XmlRpcMethodTest.cc
  4635. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4636. Renamed addTorrentFile as addTorrent
  4637. * src/XmlRpcMethodFactory.cc
  4638. * src/XmlRpcMethodImpl.cc
  4639. * src/XmlRpcMethodImpl.h
  4640. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. The information for files, URIs, peers are removed from the
  4642. reponse of TellaActive, TellStatus command because they tend to be
  4643. large. Instead they can be retrieved by the dedicated commands:
  4644. getFiles, getUris and getPeers respectively.
  4645. * src/XmlRpcMethodFactory.cc
  4646. * src/XmlRpcMethodImpl.cc
  4647. * src/XmlRpcMethodImpl.h
  4648. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Removed --max-overall-upload-limit and
  4650. --max-overall-download-limit option from listRequestOptions.
  4651. * src/download_helper.cc
  4652. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4653. Log incoming host in HttpListenCommand.
  4654. * src/HttpListenCommand.cc
  4655. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4657. --xml-rpc-passwd option.
  4658. * src/HttpServer.cc
  4659. * src/HttpServer.h
  4660. * src/HttpServerCommand.cc
  4661. * src/OptionHandlerFactory.cc
  4662. * src/prefs.cc
  4663. * src/prefs.h
  4664. * src/usage_text.h
  4665. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4667. processing 0 length request.
  4668. * src/HttpServerBodyCommand.cc
  4669. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4670. Removed --enable-http-server and --http-server-listen-port
  4671. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4672. instead. The original feature for --enable-http-server that
  4673. reports download progress in HTML was officially removed. Persist
  4674. XML-RPC connection if client supports keep-alive.
  4675. * src/DownloadEngineFactory.cc
  4676. * src/HttpServerCommand.cc
  4677. * src/HttpServerResponseCommand.cc
  4678. * src/Makefile.am
  4679. * src/Makefile.in
  4680. * src/OptionHandlerFactory.cc
  4681. * src/RequestGroupMan.cc
  4682. * src/main.cc
  4683. * src/option_processing.cc
  4684. * src/prefs.cc
  4685. * src/prefs.h
  4686. * src/usage_text.h
  4687. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. Added "uris" key to the response of tellStatus command. Added
  4689. "connections" key to the response of tellStatus and tellActive
  4690. command.
  4691. * src/XmlRpcMethodImpl.cc
  4692. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4694. Added TellStatusXmlRpcMethod. Remove command can now remove
  4695. waiting RequestGroup.
  4696. * src/RequestGroupMan.cc
  4697. * src/RequestGroupMan.h
  4698. * src/XmlRpcMethodFactory.cc
  4699. * src/XmlRpcMethodImpl.cc
  4700. * src/XmlRpcMethodImpl.h
  4701. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Initialized _peerId
  4703. * src/Peer.cc
  4704. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Return fault structure for error. FailXmlRpcMethod is renamed as
  4706. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4707. in non-torrent download. Return single param value.
  4708. * src/XmlRpcMethod.cc
  4709. * src/XmlRpcMethodFactory.cc
  4710. * src/XmlRpcMethodImpl.cc
  4711. * src/XmlRpcMethodImpl.h
  4712. * test/XmlRpcMethodTest.cc
  4713. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4714. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4715. command.
  4716. * src/RequestGroup.cc
  4717. * src/RequestGroup.h
  4718. * src/RequestGroupMan.cc
  4719. * src/XmlRpcMethodImpl.cc
  4720. * test/RequestGroupTest.cc
  4721. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Added more options that can be specified in -i list and xml-rpc
  4723. add* command.
  4724. * src/download_helper.h
  4725. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. The available options in -i list should be listed in
  4727. listRequestOptions().
  4728. * src/download_helper.cc
  4729. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4731. command.
  4732. * src/XmlRpcMethodImpl.cc
  4733. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Now RequestGroup has its own copy of Option object. This will help
  4735. to give custom option for each RequestGroup.
  4736. addTorrentFile command now takes options.
  4737. * src/AbstractCommand.cc
  4738. * src/AbstractCommand.h
  4739. * src/AbstractProxyRequestCommand.cc
  4740. * src/ActivePeerConnectionCommand.cc
  4741. * src/ActivePeerConnectionCommand.h
  4742. * src/AdaptiveURISelector.cc
  4743. * src/BtCheckIntegrityEntry.cc
  4744. * src/BtDependency.cc
  4745. * src/BtDependency.h
  4746. * src/BtFileAllocationEntry.cc
  4747. * src/BtPostDownloadHandler.cc
  4748. * src/CheckIntegrityEntry.cc
  4749. * src/DownloadCommand.cc
  4750. * src/FtpDownloadCommand.cc
  4751. * src/FtpFinishDownloadCommand.cc
  4752. * src/FtpInitiateConnectionCommand.cc
  4753. * src/FtpNegotiationCommand.cc
  4754. * src/HttpInitiateConnectionCommand.cc
  4755. * src/HttpRequestCommand.cc
  4756. * src/HttpResponseCommand.cc
  4757. * src/HttpSkipResponseCommand.cc
  4758. * src/InitiateConnectionCommand.cc
  4759. * src/InitiateConnectionCommandFactory.cc
  4760. * src/InitiatorMSEHandshakeCommand.cc
  4761. * src/InitiatorMSEHandshakeCommand.h
  4762. * src/Metalink2RequestGroup.cc
  4763. * src/Metalink2RequestGroup.h
  4764. * src/MetalinkPostDownloadHandler.cc
  4765. * src/MultiUrlRequestInfo.cc
  4766. * src/MultiUrlRequestInfo.h
  4767. * src/PeerAbstractCommand.cc
  4768. * src/PeerInteractionCommand.cc
  4769. * src/PeerInteractionCommand.h
  4770. * src/PeerReceiveHandshakeCommand.cc
  4771. * src/PeerReceiveHandshakeCommand.h
  4772. * src/RequestGroup.cc
  4773. * src/RequestGroup.h
  4774. * src/TrackerWatcherCommand.cc
  4775. * src/TrackerWatcherCommand.h
  4776. * src/XmlRpcMethod.cc
  4777. * src/XmlRpcMethod.h
  4778. * src/XmlRpcMethodImpl.cc
  4779. * src/download_helper.cc
  4780. * src/download_helper.h
  4781. * src/main.cc
  4782. * test/BtDependencyTest.cc
  4783. * test/BtPostDownloadHandlerTest.cc
  4784. * test/DefaultBtMessageDispatcherTest.cc
  4785. * test/DownloadHandlerFactoryTest.cc
  4786. * test/DownloadHelperTest.cc
  4787. * test/Metalink2RequestGroupTest.cc
  4788. * test/MetalinkPostDownloadHandlerTest.cc
  4789. * test/RequestGroupManTest.cc
  4790. * test/RequestGroupTest.cc
  4791. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Added tellActiveStatus xml-rpc command which reports download
  4793. status of active downloads.
  4794. * src/XmlRpcMethodFactory.cc
  4795. * src/XmlRpcMethodImpl.cc
  4796. * src/XmlRpcMethodImpl.h
  4797. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Added addTorrentFile xml-rpc command which receives uploaded
  4799. torrent file and add download for it.
  4800. * src/RequestGroupMan.cc
  4801. * src/XmlRpcMethodFactory.cc
  4802. * src/XmlRpcMethodImpl.cc
  4803. * src/XmlRpcMethodImpl.h
  4804. * src/download_helper.cc
  4805. * src/download_helper.h
  4806. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Added remove xml-rpc command which removes specified download.
  4808. There is a known issue: the removed unfinished downloads are
  4809. reported ERR when aria2 exits. They should be reported as INPR.
  4810. * src/RequestGroupMan.cc
  4811. * src/RequestGroupMan.h
  4812. * src/XmlRpcMethodFactory.cc
  4813. * src/XmlRpcMethodImpl.cc
  4814. * src/XmlRpcMethodImpl.h
  4815. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4816. If --enable-http-server is enabled, don't stop aria2 when all
  4817. download finished and don't quit when no files to download at
  4818. start up.
  4819. * src/RequestGroupMan.cc
  4820. * src/main.cc
  4821. * src/option_processing.cc
  4822. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Added missing AM_CONDITIONAL
  4824. * configure.ac
  4825. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4826. Added xml-rpc functionality. Currently only addURI commad is
  4827. supported. To enable xml-rpc, run aria2 with
  4828. --enable-http-server. This option name is temporal and will be
  4829. changed. The feature that reports download progress in html format
  4830. is temporarily disabled.
  4831. * src/HttpServer.cc
  4832. * src/HttpServer.h
  4833. * src/HttpServerBodyCommand.cc
  4834. * src/HttpServerBodyCommand.h
  4835. * src/HttpServerCommand.cc
  4836. * src/HttpServerResponseCommand.cc
  4837. * src/Makefile.am
  4838. * src/OptionParser.cc
  4839. * src/OptionParser.h
  4840. * src/RequestGroupMan.cc
  4841. * src/RequestGroupMan.h
  4842. * src/XmlRpcMethod.cc
  4843. * src/XmlRpcMethod.h
  4844. * src/XmlRpcMethodFactory.cc
  4845. * src/XmlRpcMethodFactory.h
  4846. * src/XmlRpcMethodImpl.cc
  4847. * src/XmlRpcMethodImpl.h
  4848. * src/download_helper.cc
  4849. * src/download_helper.h
  4850. * test/Makefile.am
  4851. * test/XmlRpcMethodTest.cc
  4852. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Added xml-rpc request parser. The supported value types are:
  4854. i4/int, string, double, struct, array, base64. Currently only
  4855. libxml2 version is provided.
  4856. * src/Xml2XmlRpcRequestProcessor.cc
  4857. * src/Xml2XmlRpcRequestProcessor.h
  4858. * src/XmlRpcElements.cc
  4859. * src/XmlRpcElements.h
  4860. * src/XmlRpcRequest.h
  4861. * src/XmlRpcRequestParserController.cc
  4862. * src/XmlRpcRequestParserController.h
  4863. * src/XmlRpcRequestParserState.h
  4864. * src/XmlRpcRequestParserStateImpl.cc
  4865. * src/XmlRpcRequestParserStateImpl.h
  4866. * src/XmlRpcRequestParserStateMachine.cc
  4867. * src/XmlRpcRequestParserStateMachine.h
  4868. * src/XmlRpcRequestProcessor.h
  4869. * test/XmlRpcRequestParserControllerTest.cc
  4870. * test/XmlRpcRequestProcessorTest.cc
  4871. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. * Release 1.3.3
  4873. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4874. Fixed compile error since r1202.
  4875. * src/ExpatMetalinkProcessor.cc
  4876. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Updated Ukrainian, Russian and Simplified Chinese
  4878. translations. Thanks to all translators.
  4879. * po/ru.po
  4880. * po/uk.po
  4881. * po/zh_CN.po
  4882. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Pass reference of Option object instead of pointer.
  4884. * src/download_helper.cc
  4885. * src/download_helper.h
  4886. * src/main.cc
  4887. * test/DownloadHelperTest.cc
  4888. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4890. from option directly. Instead, get them from RequestGroup.
  4891. * src/ActivePeerConnectionCommand.cc
  4892. * src/ActivePeerConnectionCommand.h
  4893. * src/PeerReceiveHandshakeCommand.cc
  4894. * src/RequestGroup.h
  4895. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Removed unused uploadLimitCheck and uploadLimit from
  4897. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4898. PeerInteractionCommand.
  4899. * src/PeerAbstractCommand.cc
  4900. * src/PeerAbstractCommand.h
  4901. * src/PeerInteractionCommand.cc
  4902. * src/PeerInteractionCommand.h
  4903. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4904. Fixed broken file renaming feature since r1202.
  4905. * src/FtpNegotiationCommand.cc
  4906. * src/FtpNegotiationCommand.h
  4907. * src/HttpResponseCommand.cc
  4908. * src/RequestGroup.cc
  4909. * src/RequestGroup.h
  4910. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Removed unused debug log
  4912. * src/SocketCore.cc
  4913. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Generated configure and Makefile.in using autoconf 2.63 and
  4915. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4916. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4917. * configure.ac
  4918. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4919. Moved piece statistics stuff to new PieceStatMan class.
  4920. Refactored PieceSelector interface.
  4921. * src/DefaultPieceStorage.cc
  4922. * src/DefaultPieceStorage.h
  4923. * src/LongestSequencePieceSelector.cc
  4924. * src/LongestSequencePieceSelector.h
  4925. * src/Makefile.am
  4926. * src/PieceSelector.h
  4927. * src/PieceStatMan.cc
  4928. * src/PieceStatMan.h
  4929. * src/RarestPieceSelector.cc
  4930. * src/RarestPieceSelector.h
  4931. * src/RequestGroup.cc
  4932. * test/DefaultPieceStorageTest.cc
  4933. * test/InOrderPieceSelector.h
  4934. * test/Makefile.am
  4935. * test/PieceStatManTest.cc
  4936. * test/RarestPieceSelectorTest.cc
  4937. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4938. Added static member _protocolFamily to SocketCore. By default,
  4939. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4940. address. Sometime SocketCore::bind() and
  4941. SocketCore::establishConnection() use difference protocl family
  4942. and latter cannot connect to former. To avoid this situation, we
  4943. limit protocol family to AF_INET for unit tests.
  4944. * src/SocketCore.cc
  4945. * src/SocketCore.h
  4946. * test/AllTest.cc
  4947. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4948. Avoid std::bad_alloc for negative bencode string length.
  4949. * src/bencode.cc
  4950. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Supported segmented downloading with chunked transfer encoding and
  4952. content-length.
  4953. * src/DownloadCommand.cc
  4954. * src/HttpResponseCommand.cc
  4955. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4956. Bump up version number to 1.3.3
  4957. * configure.ac
  4958. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4959. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4960. from 4096 to 65536 (for insanely large ftp login banners)
  4961. * src/FtpConnection.h
  4962. * test/FtpConnectionTest.cc
  4963. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. In DefaultBtContext::getActualBasePath(), return first
  4965. FileEntry::getPath() for single file torrent.
  4966. * src/DefaultBtContext.cc
  4967. * test/DefaultBtContextTest.cc
  4968. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4969. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4970. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4971. Removed _directIOAllowed member from DiskWriter.
  4972. * src/AbstractDiskWriter.cc
  4973. * src/AbstractDiskWriter.h
  4974. * src/AbstractSingleDiskAdaptor.cc
  4975. * src/AbstractSingleDiskAdaptor.h
  4976. * src/BinaryStream.h
  4977. * src/ByteArrayDiskWriter.h
  4978. * src/DefaultPieceStorage.cc
  4979. * src/DiskWriter.h
  4980. * src/MultiDiskAdaptor.cc
  4981. * src/MultiDiskAdaptor.h
  4982. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Now the constructor of AbstractDiskWriter takes filename as an
  4984. argument and filename argument is removed from openFile(),
  4985. initAndOpenFile(), openExistingFile() interface. storeDir member
  4986. and its accessor functions are removed from DiskAdaptor because it
  4987. is not used anymore. size() member function of DefaultDiskWriter,
  4988. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4989. opening file.
  4990. * src/AbstractDiskWriter.cc
  4991. * src/AbstractDiskWriter.h
  4992. * src/AbstractSingleDiskAdaptor.cc
  4993. * src/AbstractSingleDiskAdaptor.h
  4994. * src/ByteArrayDiskWriter.cc
  4995. * src/ByteArrayDiskWriter.h
  4996. * src/ByteArrayDiskWriterFactory.cc
  4997. * src/ByteArrayDiskWriterFactory.h
  4998. * src/DefaultDiskWriter.cc
  4999. * src/DefaultDiskWriter.h
  5000. * src/DefaultDiskWriterFactory.cc
  5001. * src/DefaultDiskWriterFactory.h
  5002. * src/DefaultPieceStorage.cc
  5003. * src/DirectDiskAdaptor.cc
  5004. * src/DirectDiskAdaptor.h
  5005. * src/DiskAdaptor.h
  5006. * src/DiskWriter.h
  5007. * src/DiskWriterFactory.h
  5008. * src/MessageDigestHelper.cc
  5009. * src/MultiDiskAdaptor.cc
  5010. * src/RequestGroup.cc
  5011. * src/UnknownLengthPieceStorage.cc
  5012. * src/Util.cc
  5013. * test/DefaultDiskWriterTest.cc
  5014. * test/DirectDiskAdaptorTest.cc
  5015. * test/FallocFileAllocationIteratorTest.cc
  5016. * test/MessageDigestHelperTest.cc
  5017. * test/MetalinkProcessorTest.cc
  5018. * test/MultiDiskAdaptorTest.cc
  5019. * test/MultiFileAllocationIteratorTest.cc
  5020. * test/SingleFileAllocationIteratorTest.cc
  5021. * test/UtilTest.cc
  5022. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5023. Fixed the bug that aria2 aborts when --select-file is used. This
  5024. bug was introduced in r1199.
  5025. * src/MultiDiskAdaptor.cc
  5026. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Code cleanup
  5028. * test/MockPieceStorage.cc
  5029. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5030. Fixed the bug that read-only file with wrong file size will cause
  5031. error because it cannot be truncated to the correct size. Now if
  5032. file size is different than the expected one, re-open file in
  5033. writable mode.
  5034. * src/AbstractSingleDiskAdaptor.cc
  5035. * src/AbstractSingleDiskAdaptor.h
  5036. * src/BtCheckIntegrityEntry.cc
  5037. * src/DiskAdaptor.h
  5038. * src/MultiDiskAdaptor.h
  5039. * src/RequestGroup.cc
  5040. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5041. Fixed the bug that with --check-integrity option aria2 reports
  5042. downloaded file size is 0 even if some parts of file is correctly
  5043. downloaded. This bug is reproducible for the download that a file
  5044. includes last piece is missing. This bug doesn't reveal for
  5045. single-torrent with file allocation on.
  5046. * src/IteratableChecksumValidator.cc
  5047. * test/IteratableChecksumValidatorTest.cc
  5048. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5050. * src/RequestGroupMan.cc
  5051. * src/AdaptiveURISelector.cc
  5052. * src/AdaptiveURISelector.h
  5053. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5054. * Release 1.3.2
  5055. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Updated README
  5057. * README
  5058. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Updated Ukrainian translations. Thanks to Alexander10.
  5060. * po/uk.po
  5061. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. Code cleanup
  5063. * src/MetalinkParserStateMachine.cc
  5064. * src/MetalinkParserStateMachine.h
  5065. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5067. and expat simultaneously, MetalinkProcessor is now not base class
  5068. and it is directly implemented in XML2SAXMetalinkProcessor and
  5069. ExpatMetalinkProcessor.
  5070. * src/ExpatMetalinkProcessor.cc
  5071. * src/ExpatMetalinkProcessor.h
  5072. * src/Makefile.am
  5073. * src/MetalinkHelper.cc
  5074. * src/MetalinkProcessor.h
  5075. * src/MetalinkProcessorFactory.cc: Removed.
  5076. * src/MetalinkProcessorFactory.h: Removed
  5077. * src/XML2SAXMetalinkProcessor.cc
  5078. * src/XML2SAXMetalinkProcessor.h
  5079. * test/MetalinkProcessorTest.cc
  5080. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5081. Bump up version number to 1.3.2
  5082. * configure.ac
  5083. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5084. Added missing file.
  5085. * test/Makefile.am
  5086. * test/url-list-singleFileEndsWithSlash.torrent
  5087. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5089. request.
  5090. * src/AnnounceList.cc
  5091. * src/AnnounceList.h
  5092. * src/BDE.cc: Added
  5093. * src/BDE.h: Added
  5094. * src/DHTAbstractMessage.cc
  5095. * src/DHTAbstractMessage.h
  5096. * src/DHTAnnouncePeerMessage.cc
  5097. * src/DHTAnnouncePeerMessage.h
  5098. * src/DHTAnnouncePeerReplyMessage.cc
  5099. * src/DHTAnnouncePeerReplyMessage.h
  5100. * src/DHTFindNodeMessage.cc
  5101. * src/DHTFindNodeMessage.h
  5102. * src/DHTFindNodeReplyMessage.cc
  5103. * src/DHTFindNodeReplyMessage.h
  5104. * src/DHTGetPeersMessage.cc
  5105. * src/DHTGetPeersMessage.h
  5106. * src/DHTGetPeersReplyMessage.cc
  5107. * src/DHTGetPeersReplyMessage.h
  5108. * src/DHTMessageFactory.h
  5109. * src/DHTMessageFactoryImpl.cc
  5110. * src/DHTMessageFactoryImpl.h
  5111. * src/DHTMessageReceiver.cc
  5112. * src/DHTMessageTracker.cc
  5113. * src/DHTMessageTracker.h
  5114. * src/DHTPingMessage.cc
  5115. * src/DHTPingMessage.h
  5116. * src/DHTPingReplyMessage.cc
  5117. * src/DHTPingReplyMessage.h
  5118. * src/DHTQueryMessage.cc
  5119. * src/DHTQueryMessage.h
  5120. * src/DHTResponseMessage.cc
  5121. * src/DHTResponseMessage.h
  5122. * src/DefaultBtAnnounce.cc
  5123. * src/DefaultBtContext.cc
  5124. * src/DefaultBtContext.h
  5125. * src/HandshakeExtensionMessage.cc
  5126. * src/Makefile.am
  5127. * src/PeerListProcessor.h
  5128. * src/UTPexExtensionMessage.cc
  5129. * src/bencode.cc
  5130. * src/bencode.h
  5131. * test/AnnounceListTest.cc
  5132. * test/BDETest.cc: Added
  5133. * test/BencodeTest.cc
  5134. * test/DHTAnnouncePeerMessageTest.cc
  5135. * test/DHTAnnouncePeerReplyMessageTest.cc
  5136. * test/DHTFindNodeMessageTest.cc
  5137. * test/DHTFindNodeReplyMessageTest.cc
  5138. * test/DHTGetPeersMessageTest.cc
  5139. * test/DHTGetPeersReplyMessageTest.cc
  5140. * test/DHTMessageFactoryImplTest.cc
  5141. * test/DHTMessageTrackerTest.cc
  5142. * test/DHTPingMessageTest.cc
  5143. * test/DHTPingReplyMessageTest.cc
  5144. * test/Makefile.am
  5145. * test/MockDHTMessageFactory.h
  5146. * test/PeerListProcessorTest.cc
  5147. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Use url-list (web-seeding) only for single-file torrent. This is
  5149. basically the same behavior with Metalink file with torrent and
  5150. URIs.
  5151. * src/RequestGroup.cc
  5152. * src/DefaultBtContext.cc
  5153. * test/DefaultBtContextTest.cc
  5154. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Rewritten expr
  5156. * src/array_fun.h
  5157. * test/array_funTest.cc
  5158. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5160. * src/DefaultBtMessageDispatcher.cc
  5161. * src/a2algo.h
  5162. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5163. Removed ExtendedMessagingAware. Instead of using inheritance,
  5164. added ExtensionMessageRegistry and it is passed to
  5165. DefaultExtensionMessageFactory.
  5166. * src/DefaultBtInteractive.cc
  5167. * src/DefaultBtInteractive.h
  5168. * src/DefaultExtensionMessageFactory.cc
  5169. * src/DefaultExtensionMessageFactory.h
  5170. * src/ExtendedMessagingAware.h: Removed.
  5171. * src/ExtensionMessageFactory.h
  5172. * src/ExtensionMessageRegistry.h: Added.
  5173. * src/Makefile.am
  5174. * src/PeerInteractionCommand.cc
  5175. * test/DefaultExtensionMessageFactoryTest.cc
  5176. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5177. Fixed typo in log messages
  5178. * src/MSEHandshake.cc
  5179. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5180. Fixed the bug that prevents torrent download from finishing. The
  5181. bug doesn't reveal for all torrents. The torrents affected this
  5182. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5183. of pieces.
  5184. * src/bitfield.h
  5185. * test/bitfieldTest.cc
  5186. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5187. Code cleanup
  5188. * src/PeerListProcessor.h
  5189. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Removed RequestGroupAware
  5191. * src/AbstractCommand.cc
  5192. * src/AbstractCommand.h
  5193. * src/ActivePeerConnectionCommand.cc
  5194. * src/ActivePeerConnectionCommand.h
  5195. * src/DHTGetPeersCommand.cc
  5196. * src/DHTGetPeersCommand.h
  5197. * src/InitiatorMSEHandshakeCommand.cc
  5198. * src/InitiatorMSEHandshakeCommand.h
  5199. * src/Makefile.am
  5200. * src/PeerInitiateConnectionCommand.cc
  5201. * src/PeerInitiateConnectionCommand.h
  5202. * src/PeerInteractionCommand.cc
  5203. * src/PeerInteractionCommand.h
  5204. * src/RealtimeCommand.cc
  5205. * src/RealtimeCommand.h
  5206. * src/RequestGroupAware.cc: Removed
  5207. * src/RequestGroupAware.h: Removed
  5208. * src/SeedCheckCommand.cc
  5209. * src/SeedCheckCommand.h
  5210. * src/SleepCommand.cc
  5211. * src/TrackerWatcherCommand.cc
  5212. * src/TrackerWatcherCommand.h
  5213. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Rewritten PeerListProcessor
  5215. * src/PeerListProcessor.h
  5216. * src/CompactPeerListProcessor.h: Removed
  5217. * src/CompactPeerListProcessor.cc: Removed
  5218. * src/DelegatingPeerListProcessor.cc: Removed.
  5219. * src/DefaultBtAnnounce.cc
  5220. * src/Makefile.am
  5221. * src/UTPexExtensionMessage.cc
  5222. * src/DefaultPeerListProcessor.h: Removed.
  5223. * src/DefaultPeerListProcessor.cc: Removed.
  5224. * src/DelegatingPeerListProcessor.h: Removed.
  5225. * test/Makefile.am
  5226. * test/PeerListProcessorTest.cc
  5227. * test/DefaultPeerListProcessorTest.cc: Removed.
  5228. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Rewritten RequestGroupMan::calculateStat()
  5230. * src/RequestGroupMan.cc
  5231. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5232. Removed unnecessary virtual destructor for Request class.
  5233. * src/Request.cc
  5234. * src/Request.h
  5235. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Avoid dynamic_pointer_cast.
  5237. * src/DHTGetPeersCommand.cc
  5238. * src/DHTGetPeersCommand.h
  5239. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5240. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5241. BtEvent.
  5242. * src/AbstractBtEventListener.h: Removed.
  5243. * src/AbstractBtMessage.cc
  5244. * src/AbstractBtMessage.h
  5245. * src/BtAbortOutstandingRequestEvent.h
  5246. * src/BtCancelSendingPieceEvent.h
  5247. * src/BtChokedEvent.h: Removed.
  5248. * src/BtChokingEvent.h
  5249. * src/BtEvent.h: Removed
  5250. * src/BtEventListener.h: Removed.
  5251. * src/BtMessage.h
  5252. * src/BtPieceMessage.cc
  5253. * src/BtPieceMessage.h
  5254. * src/BtRequestMessage.cc
  5255. * src/BtRequestMessage.h
  5256. * src/DefaultBtMessageDispatcher.cc
  5257. * src/Makefile.am
  5258. * src/a2functional.h
  5259. * test/BtPieceMessageTest.cc
  5260. * test/BtRequestMessageTest.cc
  5261. * test/DefaultBtMessageDispatcherTest.cc
  5262. * test/MockBtMessage.h
  5263. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. Code cleanup
  5265. * src/RequestGroupMan.cc
  5266. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5267. Code cleanup
  5268. * src/DownloadCommand.cc
  5269. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5271. byte.
  5272. * src/DownloadCommand.cc
  5273. * src/bitfield.h
  5274. * test/bitfieldTest.cc
  5275. Fixed the bug that causes infinite loop if broken web server
  5276. returns chunked response without last "0" chunk-size marker and
  5277. closes connection.
  5278. * src/DownloadCommand.cc
  5279. Instantiate properly configured HttpDownloadCommand for
  5280. non-resumable downlaods.
  5281. * src/HttpResponseCommand.cc
  5282. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Rewritten array operation functions.
  5284. * src/BitfieldMan.cc
  5285. * src/array_fun.h
  5286. * test/array_funTest.cc
  5287. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. Removed unused variable 'query'
  5289. * src/Request.cc
  5290. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5291. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5292. accidentally set to false in r1162.
  5293. * configure.ac
  5294. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Code cleanup
  5296. * src/BNode.cc
  5297. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Increase prefixLength for the bucket which doesn't own local node
  5299. ID when splitting bucket.
  5300. * src/DHTBucket.cc
  5301. * test/DHTBucketTest.cc
  5302. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. * Release 1.3.1
  5304. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5305. Bump up version number to 1.3.1
  5306. * configure.ac
  5307. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Removed unused variable checkPoint. Also removed include directive
  5309. for TimeA2.h.
  5310. * src/SeedCheckCommand.h
  5311. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. Fixed the bug that upload limit exceeds the value specified in
  5313. --seed-ratio option depending on the timing of the execution of
  5314. SeedCheckCommand.
  5315. * src/SeedCheckCommand.cc
  5316. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5317. Fixed the bug that removed peer's session upload/download length
  5318. are counted twice in _cachedTransferStat before it is
  5319. re-calculated. This affected the calculation of shara ratio,
  5320. resulting aria2 wrongly determines that specified share ratio is
  5321. reached. Also fixed the typo in calculateStatFor function name.
  5322. * src/BtSetup.cc
  5323. * src/DefaultPeerStorage.cc
  5324. * src/ShareRatioSeedCriteria.h
  5325. * test/ShareRatioSeedCriteriaTest.cc
  5326. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. * Release 1.3.0
  5328. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5330. Nynorsk translations. Thanks to all translators.
  5331. * po/es.po
  5332. * po/ja.po
  5333. * po/nn.po
  5334. * po/ru.po
  5335. * po/uk.po
  5336. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Rewritten isInRange()
  5338. * src/DHTBucket.cc
  5339. * test/DHTBucketTest.cc
  5340. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Fixed typo
  5342. * doc/aria2c.1.txt
  5343. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5344. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5345. malloc/realloc is not used.
  5346. * src/configure.ac
  5347. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5349. char* bitfield instead of stl container for efficiency.
  5350. PieceSelector::select now takes this
  5351. bitfield. RarestPieceSelector::select now also performs
  5352. efficiently for this change. bitfield namespace is introduced and
  5353. it has several helper functions to handle basic bitfield
  5354. operations such as test, count set bits, etc.
  5355. * src/BitfieldMan.cc
  5356. * src/BitfieldMan.h
  5357. * src/DefaultBtRequestFactory.cc
  5358. * src/DefaultPieceStorage.cc
  5359. * src/DefaultPieceStorage.h
  5360. * src/LongestSequencePieceSelector.cc
  5361. * src/LongestSequencePieceSelector.h
  5362. * src/Makefile.am
  5363. * src/Piece.cc
  5364. * src/Piece.h
  5365. * src/PieceSelector.h
  5366. * src/RarestPieceSelector.cc
  5367. * src/RarestPieceSelector.h
  5368. * src/Util.cc
  5369. * src/Util.h
  5370. * src/bitfield.h
  5371. * test/BitfieldManTest.cc
  5372. * test/LongestSequencePieceSelectorTest.cc
  5373. * test/Makefile.am
  5374. * test/RarestPieceSelectorTest.cc
  5375. * test/UtilTest.cc
  5376. * test/bitfieldTest.cc
  5377. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5378. Made accepted socket non-block.
  5379. * src/FtpNegotiationCommand.cc
  5380. * src/HttpListenCommand.cc
  5381. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5383. * src/AbstractSingleDiskAdaptor.cc
  5384. * src/DefaultPieceStorage.cc
  5385. * src/DiskAdaptor.h
  5386. * src/DiskAdaptor.h
  5387. * src/MultiFileAllocationIterator.cc
  5388. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Run
  5390. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5391. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5392. it doesn't need to be called every time when
  5393. DefaultBtInteractive::doInteractionProcessing() is called.
  5394. * src/DefaultBtInteractive.cc
  5395. * src/DefaultBtInteractive.h
  5396. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Documented 'falloc' in man page.
  5398. * doc/aria2c.1.txt
  5399. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5400. Updated doc
  5401. * src/usage_text.h
  5402. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5404. allocation mode uses posix_fallocate() system call to allocate
  5405. file on disk. If you are using newer file systems such as ext4
  5406. (with extents support), btrfs or xfs, 'falloc' is your best
  5407. choice. It allocates large(few GiB) files almost instantly. Don't
  5408. use 'falloc' with legacy file systems such as ext3 because it
  5409. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5410. until allocation finishes. 'falloc' may not be available if your
  5411. system doesn't have posix_fallocate() system call.
  5412. * configure.ac
  5413. * src/AbstractDiskWriter.cc
  5414. * src/AbstractDiskWriter.h
  5415. * src/AbstractSingleDiskAdaptor.cc
  5416. * src/BinaryStream.h
  5417. * src/BtCheckIntegrityEntry.cc
  5418. * src/ByteArrayDiskWriter.h
  5419. * src/CheckIntegrityEntry.cc
  5420. * src/CheckIntegrityEntry.h
  5421. * src/DefaultPieceStorage.cc
  5422. * src/DiskAdaptor.cc
  5423. * src/DiskAdaptor.h
  5424. * src/DiskWriter.h
  5425. * src/FallocFileAllocationIterator.cc
  5426. * src/FallocFileAllocationIterator.h
  5427. * src/FileAllocationEntry.cc
  5428. * src/FileAllocationEntry.h
  5429. * src/Makefile.am
  5430. * src/MultiFileAllocationIterator.cc
  5431. * src/MultiFileAllocationIterator.h
  5432. * src/OptionHandlerFactory.cc
  5433. * src/RequestGroup.cc
  5434. * src/StreamCheckIntegrityEntry.cc
  5435. * src/prefs.cc
  5436. * src/prefs.h
  5437. * src/usage_text.h
  5438. * test/FallocFileAllocationIteratorTest.cc
  5439. * test/Makefile.am
  5440. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Removed duplicate enableDirectIO() call.
  5442. * src/MultiFileAllocationIterator.cc
  5443. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5445. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5446. cost of std::rotate().
  5447. * src/RarestPieceSelector.cc
  5448. * src/RarestPieceSelector.h
  5449. * test/RarestPieceSelectorTest.cc
  5450. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Updated usage doc for --bt-tracker-interval option.
  5452. * src/usage_text.h
  5453. * doc/aria2c.1.txt
  5454. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Documented --bt-tracker-interval option in man page.
  5456. * doc/aria2c.1.txt
  5457. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Added an option to specify the interval between tracker requests.
  5459. If non-zero value is specified, aria2 uses it and ignores the
  5460. interval value in the response of tracker. If zero is specified,
  5461. aria2 determines the inteval value based on the tarcker response
  5462. and download progress.
  5463. * src/DefaultBtAnnounce.cc
  5464. * src/DefaultBtAnnounce.h
  5465. * src/OptionHandlerFactory.cc
  5466. * src/RequestGroup.cc
  5467. * src/prefs.cc
  5468. * src/prefs.h
  5469. * src/usage_text.h
  5470. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Added operator+=, operator-=, operator-
  5472. * src/TransferStat.cc
  5473. * src/TransferStat.h
  5474. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5475. Refactored RarestPieceSelector to reduce CPU load, especially for
  5476. addPieceStats.
  5477. * src/RarestPieceSelector.cc
  5478. * src/RarestPieceSelector.h
  5479. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5480. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5481. getAllMissingBlockIndexes to reduce a call to
  5482. array_function_base::operator[].
  5483. * src/BitfieldMan.cc
  5484. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. Cached TransferStat/download speed to avoid to sum them up in each
  5486. call.
  5487. * src/DefaultPeerStorage.cc
  5488. * src/DefaultPeerStorage.h
  5489. * src/SegmentMan.cc
  5490. * src/SegmentMan.h
  5491. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5492. Typedefed cuid_t as int32_t in Command.h
  5493. * src/CUIDCounter.h
  5494. * src/Command.cc
  5495. * src/Command.h
  5496. * src/DownloadEngine.cc
  5497. * src/DownloadEngine.h
  5498. * src/PeerStat.h
  5499. * src/SegmentMan.cc
  5500. * src/SegmentMan.h
  5501. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. Reduced the number of calls to PeerStorage::calculateStat() and
  5503. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5504. transfer rate.
  5505. * src/DefaultBtInteractive.cc
  5506. * src/DefaultBtMessageDispatcher.cc
  5507. * src/DefaultPeerStorage.cc
  5508. * src/DefaultPeerStorage.h
  5509. * src/DownloadCommand.cc
  5510. * src/DownloadEngine.cc
  5511. * src/PeerStorage.h
  5512. * src/SegmentMan.cc
  5513. * src/SegmentMan.h
  5514. * test/MockPeerStorage.h
  5515. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Prepended _dir+"/" after joining path elements in torrent file.
  5517. * src/DefaultBtContext.cc
  5518. * test/DefaultBtContextTest.cc
  5519. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Added missing IndexBtMessageValidator.h
  5521. * src/Makefile.am
  5522. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5524. Chinese translations. Thank you for contributing our project.
  5525. * po/id.po
  5526. * po/it.po
  5527. * po/ru.po
  5528. * po/uk.po
  5529. * po/zh_CN.po
  5530. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5531. Updated README
  5532. * README
  5533. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5534. Bump up version number to 1.3.0
  5535. * configure.ac
  5536. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5537. Updated doc
  5538. * src/DefaultBtContext.h
  5539. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5540. Slice/joinPath for name of single torrent.
  5541. * src/DefaultBtContext.cc
  5542. * test/DefaultBtContextTest.cc
  5543. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Updated man page: Documented --dry-run and --index-out
  5545. options. Changed the default value of --uri-selector and
  5546. --http-auth-challenge options. Removed --direct-file-mapping
  5547. option. Added example for --index-out
  5548. * doc/aria2c.1.txt
  5549. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5550. Updated TEXT_DRY_RUN
  5551. * src/usage_text.h
  5552. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5553. Changed the default value of --uri-selector option from 'inorder'
  5554. to 'feedback'
  5555. * src/OptionHandlerFactory.cc
  5556. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. Included current URI in exception message.
  5558. * src/AbstractCommand.cc
  5559. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5560. Renamed ServerStatURISelector as FeedbackURISelector.
  5561. * src/FeedbackURISelector.cc
  5562. * src/FeedbackURISelector.h
  5563. * src/Makefile.am
  5564. * src/RequestGroupMan.cc
  5565. * src/ServerStatURISelector.cc
  5566. * src/ServerStatURISelector.h
  5567. * test/FeedbackURISelectorTest.cc
  5568. * test/Makefile.am
  5569. * test/ServerStatURISelectorTest.cc
  5570. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5571. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5572. all URIs are tested and their timeout is not reached.
  5573. * src/AdaptiveURISelector.cc
  5574. * src/AdaptiveURISelector.h
  5575. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Changed the default value of --http-auth-challenge option to false.
  5577. * src/OptionHandlerFactory.cc
  5578. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Reuse URIs when all unused URIs run out.
  5580. * src/OptionHandlerFactory.cc
  5581. * src/RequestGroup.cc
  5582. * src/prefs.cc
  5583. * src/prefs.h
  5584. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5586. and BtRejectMessage are derived from RangeBtMessage class.
  5587. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5588. derived from IndexBtMessage class. BtChokeMessage,
  5589. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5590. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5591. ZeroBtMessage class.
  5592. * src/AbstractBtMessage.cc
  5593. * src/AbstractBtMessage.h
  5594. * src/BtAllowedFastMessage.cc
  5595. * src/BtAllowedFastMessage.h
  5596. * src/BtAllowedFastMessageValidator.h: Removed
  5597. * src/BtBitfieldMessage.cc
  5598. * src/BtBitfieldMessage.h
  5599. * src/BtCancelMessage.cc
  5600. * src/BtCancelMessage.h
  5601. * src/BtCancelMessageValidator.h: Removed
  5602. * src/BtChokeMessage.cc
  5603. * src/BtChokeMessage.h
  5604. * src/BtExtendedMessage.cc
  5605. * src/BtExtendedMessage.h
  5606. * src/BtHandshakeMessage.cc
  5607. * src/BtHandshakeMessage.h
  5608. * src/BtHaveAllMessage.cc
  5609. * src/BtHaveAllMessage.h
  5610. * src/BtHaveMessage.cc
  5611. * src/BtHaveMessage.h
  5612. * src/BtHaveMessageValidator.h: Removed
  5613. * src/BtHaveNoneMessage.cc
  5614. * src/BtHaveNoneMessage.h
  5615. * src/BtInterestedMessage.cc
  5616. * src/BtInterestedMessage.h
  5617. * src/BtKeepAliveMessage.cc
  5618. * src/BtKeepAliveMessage.h
  5619. * src/BtNotInterestedMessage.cc
  5620. * src/BtNotInterestedMessage.h
  5621. * src/BtPieceMessage.cc
  5622. * src/BtPieceMessage.h
  5623. * src/BtPortMessage.cc
  5624. * src/BtPortMessage.h
  5625. * src/BtRejectMessage.cc
  5626. * src/BtRejectMessage.h
  5627. * src/BtRejectMessageValidator.h: Removed
  5628. * src/BtRequestMessage.cc
  5629. * src/BtRequestMessage.h
  5630. * src/BtRequestMessageValidator.h: Removed
  5631. * src/BtSuggestPieceMessage.cc
  5632. * src/BtSuggestPieceMessage.h
  5633. * src/BtSuggestPieceMessageValidator.h: Removed
  5634. * src/BtUnchokeMessage.cc
  5635. * src/BtUnchokeMessage.h
  5636. * src/DefaultBtMessageFactory.cc
  5637. * src/IndexBtMessage.cc
  5638. * src/IndexBtMessage.h
  5639. * src/IndexBtMessageValidator.h
  5640. * src/Makefile.am
  5641. * src/PeerMessageUtil.cc
  5642. * src/PeerMessageUtil.h
  5643. * src/RangeBtMessage.cc
  5644. * src/RangeBtMessage.h
  5645. * src/RangeBtMessageValidator.h
  5646. * src/SimpleBtMessage.cc
  5647. * src/SimpleBtMessage.h
  5648. * src/ZeroBtMessage.cc
  5649. * src/ZeroBtMessage.h
  5650. * test/BtRequestMessageTest.cc
  5651. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Reverted usage_text.h to r1093 to avoid to lose translated
  5653. messages.
  5654. * src/usage_text.h
  5655. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5657. declared as non-const previously is now const and defined in class
  5658. definition.
  5659. * src/AbstractBtMessage.cc
  5660. * src/AbstractBtMessage.h
  5661. * src/BtAllowedFastMessage.cc
  5662. * src/BtAllowedFastMessage.h
  5663. * src/BtBitfieldMessage.h
  5664. * src/BtCancelMessage.cc
  5665. * src/BtCancelMessage.h
  5666. * src/BtChokeMessage.cc
  5667. * src/BtChokeMessage.h
  5668. * src/BtExtendedMessage.cc
  5669. * src/BtExtendedMessage.h
  5670. * src/BtHandshakeMessage.cc
  5671. * src/BtHandshakeMessage.h
  5672. * src/BtHaveAllMessage.cc
  5673. * src/BtHaveAllMessage.h
  5674. * src/BtHaveMessage.cc
  5675. * src/BtHaveMessage.h
  5676. * src/BtHaveNoneMessage.cc
  5677. * src/BtHaveNoneMessage.h
  5678. * src/BtInterestedMessage.cc
  5679. * src/BtInterestedMessage.h
  5680. * src/BtKeepAliveMessage.cc
  5681. * src/BtKeepAliveMessage.h
  5682. * src/BtMessage.h
  5683. * src/BtNotInterestedMessage.cc
  5684. * src/BtNotInterestedMessage.h
  5685. * src/BtPieceMessage.h
  5686. * src/BtPortMessage.cc
  5687. * src/BtPortMessage.h
  5688. * src/BtRejectMessage.cc
  5689. * src/BtRejectMessage.h
  5690. * src/BtRequestMessage.cc
  5691. * src/BtRequestMessage.h
  5692. * src/BtSuggestPieceMessage.cc
  5693. * src/BtSuggestPieceMessage.h
  5694. * src/BtUnchokeMessage.cc
  5695. * src/BtUnchokeMessage.h
  5696. * src/SimpleBtMessage.cc
  5697. * src/SimpleBtMessage.h
  5698. * test/MockBtMessage.h
  5699. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Use FileEntry::exists()
  5701. * src/MultiDiskAdaptor.cc
  5702. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5703. Added exists()
  5704. * src/FileEntry.cc
  5705. * src/FileEntry.h
  5706. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Added missing prefix dir.
  5708. * src/download_helper.cc
  5709. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5710. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5711. * src/CopyDiskAdaptor.cc: Removed
  5712. * src/CopyDiskAdaptor.h: Removed
  5713. * src/DefaultPieceStorage.cc
  5714. * src/Makefile.am
  5715. * src/OptionHandlerFactory.cc
  5716. * src/prefs.cc
  5717. * src/prefs.h
  5718. * src/usage_text.h
  5719. * test/CopyDiskAdaptorTest.cc: Removed
  5720. * test/Makefile.am
  5721. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Rewritten isSameFileBeingDownloaded()
  5723. * src/RequestGroupMan.cc
  5724. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5725. Removed getName() from DownloadContext. getName() is declared in
  5726. BtContext.
  5727. * src/BtContext.h
  5728. * src/DownloadContext.h
  5729. * src/SingleFileDownloadContext.cc
  5730. * src/SingleFileDownloadContext.h
  5731. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5732. in AbstractSingleDiskAdaptor.
  5733. * src/AbstractSingleDiskAdaptor.h
  5734. * src/DiskAdaptor.h
  5735. * src/MultiDiskAdaptor.h
  5736. * src/RequestGroup.cc
  5737. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5738. MultiDiskAdaptor.
  5739. * src/DefaultPieceStorage.cc
  5740. * src/MultiDiskAdaptor.cc
  5741. * src/MultiDiskAdaptor.h
  5742. * test/MultiDiskAdaptorTest.cc
  5743. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. FileEntry::getPath() contains store(top level) directory to
  5745. simplify path handling operation. In the previous implementation,
  5746. store directory is concatenated to FileEntry::getPath() in
  5747. DownloadContext.
  5748. * src/BtDependency.cc
  5749. * src/BtPostDownloadHandler.cc
  5750. * src/CopyDiskAdaptor.cc
  5751. * src/DefaultBtContext.cc
  5752. * src/DirectDiskAdaptor.cc
  5753. * src/FileEntry.cc
  5754. * src/FileEntry.h
  5755. * src/FtpNegotiationCommand.cc
  5756. * src/HttpResponse.cc
  5757. * src/HttpResponseCommand.cc
  5758. * src/Metalink2RequestGroup.cc
  5759. * src/MultiDiskAdaptor.cc
  5760. * src/MultiDiskAdaptor.h
  5761. * src/MultiFileAllocationIterator.cc
  5762. * src/RequestGroup.cc
  5763. * src/SingleFileDownloadContext.cc
  5764. * src/SingleFileDownloadContext.h
  5765. * src/download_helper.cc
  5766. * test/BtDependencyTest.cc
  5767. * test/CopyDiskAdaptorTest.cc
  5768. * test/DefaultBtContextTest.cc
  5769. * test/DefaultBtProgressInfoFileTest.cc
  5770. * test/DirectDiskAdaptorTest.cc
  5771. * test/DownloadHelperTest.cc
  5772. * test/FileEntryTest.cc
  5773. * test/MultiDiskAdaptorTest.cc
  5774. * test/MultiFileAllocationIteratorTest.cc
  5775. * test/RequestGroupTest.cc
  5776. * test/SingleFileDownloadContextTest.cc
  5777. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Fixed compiler warning
  5779. * src/download_helper.cc
  5780. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Throw exception if same infohash torrent is now downloading.
  5782. * src/RequestGroup.cc
  5783. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5784. Added --dry-run option. In this mode, aria2 just checks whether
  5785. the remote file is available and doesn't download data. This
  5786. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5787. are canceled in this mode.
  5788. * src/FtpNegotiationCommand.cc
  5789. * src/HttpResponseCommand.cc
  5790. * src/HttpResponseCommand.h
  5791. * src/OptionHandlerFactory.cc
  5792. * src/RequestGroup.cc
  5793. * src/RequestGroupMan.cc
  5794. * src/prefs.cc
  5795. * src/prefs.h
  5796. * src/usage_text.h
  5797. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5798. Fixed compiler waring
  5799. * test/UriListParserTest.cc
  5800. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5801. Parse options in -i list using OptionParser.
  5802. * src/UriListParser.cc
  5803. * src/UriListParser.h
  5804. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Don't reset URI in retry to avoid additional round trips because
  5806. of redirects.
  5807. * src/AbstractCommand.cc
  5808. * src/OptionHandlerFactory.cc
  5809. * src/prefs.cc
  5810. * src/prefs.h
  5811. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5812. Declared hide() in OptionHandler.
  5813. * src/NameMatchOptionHandler.h
  5814. * src/OptionHandler.h
  5815. * src/OptionHandlerImpl.h
  5816. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Updated doc
  5818. * src/Peer.h
  5819. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5820. Added log message in setStatusInternal()
  5821. * src/ServerStat.cc
  5822. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5823. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5824. effectively exclude failed server.
  5825. * src/AbstractCommand.cc
  5826. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5827. Added --index-out option to specify each file path for torrent.
  5828. Here index shown in --show-files option is used to specify which
  5829. file path should be altered. For example, to change the file path
  5830. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5831. option multiple times: --index-out=1=aria2.tar.bz2
  5832. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5833. available. This option can be specified in -i list.
  5834. * src/DefaultBtContext.cc
  5835. * src/DefaultBtContext.h
  5836. * src/MultiDiskAdaptor.cc
  5837. * src/MultiDiskAdaptor.h
  5838. * src/MultiFileAllocationIterator.cc
  5839. * src/OptionHandlerFactory.cc
  5840. * src/OptionHandlerImpl.h
  5841. * src/Util.cc
  5842. * src/Util.h
  5843. * src/download_helper.cc
  5844. * src/prefs.cc
  5845. * src/prefs.h
  5846. * src/usage_text.h
  5847. * test/DefaultBtContextTest.cc
  5848. * test/MultiDiskAdaptorTest.cc
  5849. * test/MultiFileAllocationIteratorTest.cc
  5850. * test/UtilTest.cc
  5851. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5852. Use Util::pathJoin()
  5853. * src/MetalinkParserController.cc
  5854. * test/test.xml
  5855. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Use Util::pathJoin()
  5857. * src/DefaultBtContext.cc
  5858. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5859. Added Util::pathJoin()
  5860. * src/Util.h
  5861. * test/UtilTest.cc
  5862. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5863. Applied basename function to remove directory element in
  5864. content-disposition value.
  5865. Return empty string if content-disposition value is ".." or ".".
  5866. * src/Util.cc
  5867. * test/UtilTest.cc
  5868. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5869. Added --max-overall-download-limit in man page.
  5870. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5871. * doc/aria2c.1.txt
  5872. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5873. Added --max-overall-download-limit option. Now --max-upload-limit
  5874. option is not ignored when --max-overall-upload-limit option has
  5875. non-zero value. aria2 checks download(upload) speed in the order:
  5876. first checks overall speed limit and if it is not exceeded, then
  5877. checks speed limit per download. Thus you can specify both
  5878. value. For example, set --max-overall-download-limit=1M and
  5879. --max-download-limit=500K to prevent from one download from eating
  5880. all overall speed limit.
  5881. * src/DefaultBtInteractive.cc
  5882. * src/DefaultBtInteractive.h
  5883. * src/DefaultBtMessageDispatcher.cc
  5884. * src/DefaultBtMessageDispatcher.h
  5885. * src/DownloadCommand.cc
  5886. * src/DownloadCommand.h
  5887. * src/FtpNegotiationCommand.cc
  5888. * src/HttpResponseCommand.cc
  5889. * src/OptionHandlerFactory.cc
  5890. * src/PeerInteractionCommand.cc
  5891. * src/RequestGroup.cc
  5892. * src/RequestGroup.h
  5893. * src/RequestGroupMan.cc
  5894. * src/RequestGroupMan.h
  5895. * src/prefs.cc
  5896. * src/prefs.h
  5897. * src/usage_text.h
  5898. * test/DefaultBtMessageDispatcherTest.cc
  5899. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5900. Documented select-file option in Input File section.
  5901. Documented --http-auth-challenge option.
  5902. * doc/aria2c.1.txt
  5903. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. Now select-file can be specified in the uri list(-i list).
  5905. * src/BtContext.cc
  5906. * src/BtContext.h
  5907. * src/RequestGroup.cc
  5908. * src/Sequence.h
  5909. * src/download_helper.cc
  5910. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5911. Made the upper value of --max-concurrent-downloads options unlimited.
  5912. * src/OptionHandlerFactory.cc
  5913. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Fixed the bug that disk writer is not created even if it shares
  5915. same piece with the preceding file if the length of previous file
  5916. is 0.
  5917. * src/MultiDiskAdaptor.cc
  5918. * test/MultiDiskAdaptorTest.cc
  5919. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. In BitTorrent, Open files in read-only mode for hash check. After
  5921. that, re-open file in read/write mode only when the download is
  5922. not finished.
  5923. * src/AbstractDiskWriter.cc
  5924. * src/AbstractDiskWriter.h
  5925. * src/AbstractSingleDiskAdaptor.cc
  5926. * src/AbstractSingleDiskAdaptor.h
  5927. * src/BtCheckIntegrityEntry.cc
  5928. * src/DiskAdaptor.h
  5929. * src/DiskWriter.h
  5930. * src/MultiDiskAdaptor.cc
  5931. * src/MultiDiskAdaptor.h
  5932. * src/RequestGroup.cc
  5933. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5934. Added --http-auth-challenge option. If it is set to true(by
  5935. default), aria2 sends HTTP authorization header only when it is
  5936. requested by the server. If false is set, then authorization
  5937. header is always sent to the server. This is useful for servers
  5938. that don't respond 401 code when authentication is required.
  5939. There is an exception: if username and password are embedded in
  5940. URI, authorization header is always sent to the server regardless
  5941. of this option.
  5942. * src/AuthConfigFactory.cc
  5943. * src/HttpSkipResponseCommand.cc
  5944. * src/OptionHandlerFactory.cc
  5945. * src/prefs.cc
  5946. * src/prefs.h
  5947. * src/usage_text.h
  5948. * test/AuthConfigFactoryTest.cc
  5949. * test/HttpRequestTest.cc
  5950. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5951. * Release 1.2.0
  5952. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5954. Thanks to all translators.
  5955. * po/es.po
  5956. * po/ja.po
  5957. * po/ru.po
  5958. * po/uk.po
  5959. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5960. Call deleteSocketForReadCheck() before socket is closed.
  5961. * src/HttpListenCommand.cc
  5962. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5963. Defined virtual destructor for BObject.
  5964. * src/bencode.h
  5965. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5966. Rewritten BDE to make it efficient.
  5967. * src/bencode.cc
  5968. * src/bencode.h
  5969. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5970. Removed function throw list.
  5971. * src/bencode.cc
  5972. * src/bencode.h
  5973. * test/BencodeTest.cc
  5974. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5975. Enclosed all URLs in double quotes in command-line examples.
  5976. * doc/aria2c.1.txt
  5977. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5978. Updated reference/see also section.
  5979. * README
  5980. * doc/aria2c.1.txt
  5981. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5982. Reorganized man page based on man man-pages.
  5983. * doc/aria2c.1.txt
  5984. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5985. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5986. because same documents are available in man page. Added
  5987. References section.
  5988. * README
  5989. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5991. PERFORMANCE PROFILE section.
  5992. * doc/aria2c.1.txt
  5993. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Rewritten the section for configuration file.
  5995. * README
  5996. * doc/aria2c.1.txt
  5997. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5998. Fixed the segmentation fault during execution of choking algorithm
  5999. in leecher state because of broken compare operator
  6000. implementation.
  6001. * src/BtLeecherStateChoke.cc
  6002. * src/BtLeecherStateChoke.h
  6003. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6004. Open file in binary mode.
  6005. * src/CookieStorage.cc
  6006. * src/DHTSetup.cc
  6007. * src/DHTUtil.cc
  6008. * src/Netrc.cc
  6009. * src/NsCookieParser.cc
  6010. * src/ProtocolDetector.cc
  6011. * src/RequestGroupMan.cc
  6012. * src/Signature.cc
  6013. * src/bencode.cc
  6014. * src/download_helper.cc
  6015. * src/option_processing.cc
  6016. * test/CookieParserTest.cc
  6017. * test/DefaultBtProgressInfoFileTest.cc
  6018. * test/FileTest.cc
  6019. * test/GZipDecoderTest.cc
  6020. * test/RequestGroupManTest.cc
  6021. * test/SignatureTest.cc
  6022. * test/SingleFileAllocationIteratorTest.cc
  6023. * test/UriListParserTest.cc
  6024. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. Removed operator[] because it is ambiguous with built-in []
  6026. operator.
  6027. * src/array_fun.h
  6028. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Fixed compile error
  6030. * src/OptionParser.cc
  6031. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6032. Added missing call to arrayWrapperConst
  6033. * test/array_funTest.cc
  6034. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6035. Use array_wrapper instead of array_ptr.
  6036. * src/DHTRoutingTableDeserializer.cc
  6037. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6038. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6039. * src/array_fun.h
  6040. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6041. Added array_wrapper template.
  6042. * src/array_fun.h
  6043. * test/array_funTest.cc
  6044. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6045. Use operator T* of array_ptr.
  6046. * src/OptionParser.cc
  6047. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6048. Use localhost instead of 127.0.0.1
  6049. * test/FtpConnectionTest.cc
  6050. * test/MSEHandshakeTest.cc
  6051. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6052. Added operator T*
  6053. * src/array_fun.h
  6054. * test/array_funTest.cc
  6055. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Use dynamically allocated char array to detect memory access
  6057. violation.
  6058. * src/DHTRoutingTableDeserializer.cc
  6059. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6060. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6061. defined.
  6062. * src/PeerMessageUtil.cc
  6063. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6065. * configure.ac
  6066. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6067. Added a check to see struct sockaddr_in has sin_len member.
  6068. * configure.ac
  6069. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. Fixed buffer overrun.
  6071. * src/DHTRoutingTableDeserializer.cc
  6072. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6073. Added LL for long long int constant.
  6074. * test/FtpConnectionTest.cc
  6075. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6076. Casted to unsigned int to suppress compiler warning on netbsd.
  6077. * src/BtRuntime.h
  6078. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6080. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6081. type time_t.
  6082. * src/SimpleLogger.cc
  6083. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Added test for FtpConnection::receiveSizeResponse().
  6085. * test/FtpConnectionTest.cc
  6086. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6087. Fix epoll error on the old kernel 2.6.8 or ealier.
  6088. * src/EpollEventPoll.cc
  6089. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6090. Use Util::parseLLInt instead of sscanf for portability. The
  6091. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6092. * src/FtpConnection.cc
  6093. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6094. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6095. block. It should not filter anything.
  6096. * src/BitfieldMan.cc
  6097. * src/ConsoleStatCalc.cc
  6098. * test/BitfieldManTest.cc
  6099. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Fixed the bug that the boolean options that don't take arguments
  6101. don't work.
  6102. * src/OptionHandlerImpl.h
  6103. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6104. Fixed broken selected file BitTorrent download.
  6105. * src/MultiDiskAdaptor.cc
  6106. * test/MultiDiskAdaptorTest.cc
  6107. * test/MultiFileAllocationIteratorTest.cc
  6108. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6109. Fixed #define guard for EpollEventPoll
  6110. * src/EpollEventPoll.h
  6111. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6112. Wait 2 seconds. 1 second is sometimes not enough.
  6113. * test/TimeSeedCriteriaTest.cc
  6114. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6115. Use localhost instead of 127.0.0.1.
  6116. * test/DHTConnectionImplTest.cc
  6117. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6118. Suppressed compiler warning.
  6119. * src/AdaptiveURISelector.cc
  6120. * src/DefaultPieceStorage.cc
  6121. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Defined virtual destructor.
  6123. * src/MetalinkParserState.h
  6124. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Give NULL for second argument of getaddrinfo instead of "0".
  6126. * src/NameResolver.cc
  6127. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6128. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6129. included strptime doesn't parse data for this format.
  6130. * src/FtpConnection.cc
  6131. * test/FtpConnectionTest.cc
  6132. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Removed tests giving -1 for unsigned argument.
  6134. * test/SingleFileDownloadContextTest.cc
  6135. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6136. Don't use sha256 in tests because it might not be supported by the
  6137. SSL library.
  6138. * test/MetalinkProcessorTest.cc
  6139. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6140. Removed tests giving -1 for unsigned argument.
  6141. * test/AlphaNumberDecoratorTest
  6142. * test/BitfieldManTest.cc
  6143. * test/DefaultBtContextTest.cc
  6144. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Fixed compile error without libcares when epoll is available.
  6146. * src/EpollEventPoll.cc
  6147. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Included fstream instead of iostream.
  6149. * test/SignatureTest.cc
  6150. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6151. Removed #include <algorithm>
  6152. * test/RequestGroupTest.cc
  6153. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6154. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6155. using RequestGroup::extractURIResult().
  6156. * src/AdaptiveURISelector.cc
  6157. * src/RequestGroup.cc
  6158. * src/RequestGroup.h
  6159. * test/RequestGroupTest.cc
  6160. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6161. Added tests for array_ptr.
  6162. * test/array_funTest.cc
  6163. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6164. Don't send ip parameter to a tracker if ip parameter is empty
  6165. string.
  6166. * src/DefaultBtAnnounce.cc
  6167. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6168. Adjusted line feed.
  6169. * src/version_usage.cc
  6170. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6171. Print tags, possible values when OptionHandlerException is caught.
  6172. * src/option_processing.cc
  6173. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6174. Changed the message for FatalException.
  6175. * src/OptionParser.cc
  6176. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Documented --bt-external-ip option in man page. Updated man pages
  6178. for --proxy-method option.
  6179. * doc/aria2c.1.txt
  6180. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. Use GET method for FTP via HTTP proxy.
  6182. * src/FtpInitiateConnectionCommand.cc
  6183. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Changed the default value of --proxy-method option from 'tunnel'
  6185. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6186. option.
  6187. * src/AbstractCommand.cc
  6188. * src/AbstractCommand.h
  6189. * src/FtpInitiateConnectionCommand.cc
  6190. * src/HttpDownloadCommand.cc
  6191. * src/HttpInitiateConnectionCommand.cc
  6192. * src/HttpInitiateConnectionCommand.h
  6193. * src/OptionHandlerFactory.cc
  6194. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Initialized _logger
  6196. * src/SelectEventPoll.cc
  6197. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6198. Defined a copy constructor for the same type.
  6199. * src/SharedHandle.h
  6200. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Added OptionParser::parseArg() which internally uses getopt_long
  6202. to parse command-line options. All command-line options are now
  6203. configured by OptionHandler. No manual editing of struct option*
  6204. is required any more.
  6205. * src/NameMatchOptionHandler.h
  6206. * src/OptionHandler.h
  6207. * src/OptionHandlerFactory.cc
  6208. * src/OptionHandlerImpl.h
  6209. * src/OptionParser.cc
  6210. * src/OptionParser.h
  6211. * src/array_fun.h
  6212. * src/main.cc
  6213. * src/option_processing.cc
  6214. * test/OptionHandlerTest.cc
  6215. * test/OptionParserTest.cc
  6216. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Fixed configure error with --disable-epoll
  6218. * configure.ac
  6219. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Fixed compile error when HAVE_EPOLL is not defined.
  6221. Fixed linker error on bigendian systems.
  6222. * src/SocketCore.cc
  6223. * src/SocketCore.h
  6224. * test/DefaultBtProgressInfoFileTest.cc
  6225. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6226. Added --bt-external-ip option. You can specify the external IP
  6227. address to report to a BitTorrent tracker. Although this function
  6228. is named 'external', it can accept any kind of IP addresses.
  6229. * src/DefaultBtAnnounce.cc
  6230. * src/OptionHandlerFactory.cc
  6231. * src/option_processing.cc
  6232. * src/prefs.cc
  6233. * src/prefs.h
  6234. * src/usage_text.h
  6235. * test/DefaultBtAnnounceTest.cc
  6236. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6237. Extracted the algorithm to find the longest incremental sequence
  6238. as max_sequence template.
  6239. * src/LongestSequencePieceSelector.cc
  6240. * src/a2algo.h
  6241. * test/Makefile.am
  6242. * test/a2algoTest.cc
  6243. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6244. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6245. * src/usage_text.h
  6246. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Updated doc for --uri-selector, --http-server-listen-port and
  6248. --enable-http-server option. Documented --event-poll option.
  6249. * doc/aria2c.1.txt
  6250. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6251. Updated doc for --enable-http-server.
  6252. * src/usage_text.h
  6253. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Documented --http-server-listen-port and --enable-http-server in
  6255. man page.
  6256. * doc/aria2c.1.txt
  6257. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6258. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6259. translations. Thanks to all translators.
  6260. * po/es.po
  6261. * po/id.po
  6262. * po/it.po
  6263. * po/ru.po
  6264. * po/uk.po
  6265. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6266. Bump up version number to 1.2.0
  6267. * configure.ac
  6268. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6269. BtContext::getAnnounceTiers() now returns const reference.
  6270. * src/BtContext.h
  6271. * src/DefaultBtContext.cc
  6272. * src/DefaultBtContext.h
  6273. * test/MockBtContext.h
  6274. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6275. Change the number of retries for tracker request based on the
  6276. number of available tracker in a torrent file.
  6277. * src/TrackerWatcherCommand.cc
  6278. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6279. Added _maxTries property to RequestGroup and assign the option
  6280. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6281. RequestGroup::getMaxTries() instead of
  6282. Option::getAsInt(PREF_MAX_TRIES).
  6283. * src/AbstractCommand.cc
  6284. * src/RequestGroup.cc
  6285. * src/RequestGroup.h
  6286. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6288. Mandriva. I modified the patch: make RequestGroup have the
  6289. timeout value and AdaptiveURISelector directly modifies that
  6290. value.
  6291. * src/AbstractCommand.cc
  6292. * src/AdaptiveURISelector.cc
  6293. * src/AdaptiveURISelector.h
  6294. * src/FtpNegotiationCommand.cc
  6295. * src/RequestGroup.cc
  6296. * src/RequestGroup.h
  6297. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6298. Fixed compiler warning
  6299. * test/IteratableChecksumValidatorTest.cc
  6300. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6301. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6302. integrated downloads. This PieceSelector subclass finds the
  6303. longest continuous sequence in the available missing pieces and
  6304. selects the last index of such sequence. This makes HTTP/FTP
  6305. connections less interrupted by the pieces obtained by BitTorrent
  6306. peers.
  6307. * src/DefaultPieceStorage.cc
  6308. * src/DefaultPieceStorage.h
  6309. * src/LongestSequencePieceSelector.cc
  6310. * src/LongestSequencePieceSelector.h
  6311. * src/Makefile.am
  6312. * src/PieceSelector.h
  6313. * src/RarestPieceSelector.h
  6314. * src/RequestGroup.cc
  6315. * test/BtDependencyTest.cc
  6316. * test/DefaultPieceStorageTest.cc
  6317. * test/IteratableChecksumValidatorTest.cc
  6318. * test/LongestSequencePieceSelectorTest.cc
  6319. * test/Makefile.am
  6320. * test/SegmentManTest.cc
  6321. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6322. Fixed the bug that the average speed is wrong in
  6323. http/ftp/BitTorrent integrated download. Only the download bytes
  6324. in BitTorrent were considered.
  6325. * src/RequestGroup.cc
  6326. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6327. Choose port for BitTorrent/DHT randomly from the specified range.
  6328. * src/DHTConnectionImpl.cc
  6329. * src/PeerListenCommand.cc
  6330. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6331. Send HTTP Authorization header only if it is requested by the
  6332. server(response 401). There are some exceptions. The authorization
  6333. header for proxy is always sent if it is available without request
  6334. by the server. If username/password is specified in the URI, it
  6335. is immediately sent to the server without request by the server.
  6336. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6337. SharedHandle<AuthConfig>().
  6338. NetrcAuthResolver::resolveAuthConfig() returns
  6339. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6340. * src/AbstractAuthResolver.cc
  6341. * src/AbstractProxyRequestCommand.cc
  6342. * src/AuthConfigFactory.cc
  6343. * src/AuthConfigFactory.h
  6344. * src/HttpConnection.cc
  6345. * src/HttpRequest.cc
  6346. * src/HttpRequest.h
  6347. * src/HttpResponse.cc
  6348. * src/HttpResponseCommand.cc
  6349. * src/HttpSkipResponseCommand.cc
  6350. * test/AuthConfigFactoryTest.cc
  6351. * test/HttpRequestTest.cc
  6352. * test/HttpResponseTest.cc
  6353. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6354. Remove leading "--" from help keyword and a substring after "="
  6355. from help keyword, so that one can query options by '-h--max-' or
  6356. '-hmax-peers=10'.
  6357. * src/option_processing.cc
  6358. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6359. Rewritten PStringVisitor and its implementation.
  6360. * src/PStringBuildVisitor.cc
  6361. * src/PStringBuildVisitor.h
  6362. * src/PStringDatum.h
  6363. * src/PStringNumLoop.h
  6364. * src/PStringSegment.cc
  6365. * src/PStringSegment.h
  6366. * src/PStringSelect.h
  6367. * src/PStringVisitor.h
  6368. * src/download_helper.cc
  6369. * test/PStringBuildVisitorTest.cc
  6370. * test/ParameterizedStringParserTest.cc
  6371. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Persist connection between the built-in HTTP server and a client
  6373. if a client supports keep-alive. Fixed the bug that aria2 exits
  6374. when the HTTP server receives EOF from a client.
  6375. * src/HttpServer.cc
  6376. * src/HttpServer.h
  6377. * src/HttpServerCommand.cc
  6378. * src/HttpServerCommand.h
  6379. * src/HttpServerResponseCommand.cc
  6380. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6381. Added experimental built-in HTTP server. Currently, when a client
  6382. accesses to the server, it responds with the current download
  6383. progress. By default, it is disabled. To enable the server, give
  6384. --enable-http-server option. To change the default port number
  6385. for the server to listen to, use --http-server-listen-port option.
  6386. The response HTML is very simple and refreshes it self each 1
  6387. second. Because of this refresh, you see flicker in normal web
  6388. browser such as Firefox. I recommend to use console-based browser
  6389. such as elinks, w3m. To connect to the server, run 'elinks
  6390. http://localhost:6800/' while running aria2. Please replace port
  6391. number '6800'(which is default) with your preference.
  6392. * src/DownloadEngineFactory.cc
  6393. * src/HttpHeader.cc
  6394. * src/HttpHeader.h
  6395. * src/HttpHeaderProcessor.cc
  6396. * src/HttpHeaderProcessor.h
  6397. * src/HttpListenCommand.cc
  6398. * src/HttpListenCommand.h
  6399. * src/HttpServer.cc
  6400. * src/HttpServer.h
  6401. * src/HttpServerCommand.cc
  6402. * src/HttpServerCommand.h
  6403. * src/HttpServerResponseCommand.cc
  6404. * src/HttpServerResponseCommand.h
  6405. * src/Makefile.am
  6406. * src/OptionHandlerFactory.cc
  6407. * src/Util.cc
  6408. * src/Util.h
  6409. * src/help_tags.h
  6410. * src/option_processing.cc
  6411. * src/prefs.cc
  6412. * src/prefs.h
  6413. * src/usage_text.h
  6414. * test/HttpHeaderProcessorTest.cc
  6415. * test/UtilTest.cc
  6416. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6417. Removed.
  6418. * src/CheckIntegrityMan.cc
  6419. * src/FileAllocationMan.cc
  6420. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Made (piece) hash check sequential for each RequestGroup because
  6422. simultaneous hash check is slower than sequential execution.
  6423. * src/CheckIntegrityCommand.cc
  6424. * src/CheckIntegrityDispatcherCommand.cc
  6425. * src/CheckIntegrityDispatcherCommand.h
  6426. * src/CheckIntegrityMan.h
  6427. * src/ConsoleStatCalc.cc
  6428. * src/DownloadCommand.cc
  6429. * src/DownloadEngine.cc
  6430. * src/DownloadEngine.h
  6431. * src/DownloadEngineFactory.cc
  6432. * src/Makefile.am
  6433. * src/Makefile.in
  6434. * src/RequestGroup.cc
  6435. * src/StatCalc.h
  6436. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6437. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6438. SequentialDispatcherCommand.
  6439. * src/FileAllocationDispatcherCommand.cc
  6440. * src/SequentialDispatcherCommand.h
  6441. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6442. Rewritten FileAllocationDispatcherCommand using brand new
  6443. SequentialDispatcherCommand.
  6444. * src/DownloadEngineFactory.cc
  6445. * src/FileAllocationCommand.cc
  6446. * src/FileAllocationDispatcherCommand.cc
  6447. * src/FileAllocationDispatcherCommand.h
  6448. * src/Makefile.am
  6449. * src/SequentialDispatcherCommand.h
  6450. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6451. Replaced FileAllocationMan with
  6452. SequentialPicker<FileAllocationEntry>.
  6453. * src/BtCheckIntegrityEntry.cc
  6454. * src/ConsoleStatCalc.cc
  6455. * src/DownloadEngine.cc
  6456. * src/DownloadEngine.h
  6457. * src/DownloadEngineFactory.cc
  6458. * src/FileAllocationCommand.cc
  6459. * src/FileAllocationDispatcherCommand.cc
  6460. * src/FileAllocationMan.h
  6461. * src/Makefile.am
  6462. * src/SequentialPicker.h
  6463. * src/StatCalc.h
  6464. * src/StreamCheckIntegrityEntry.cc
  6465. * test/Makefile.am
  6466. * test/SequentialPickerTest.cc
  6467. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6468. Added doc for adaptive URI selector.
  6469. * doc/aria2c.1.txt
  6470. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6471. Added doc for adaptive URI selector.
  6472. * src/usage_text.h
  6473. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6474. Added doc for --bt-max-peers option.
  6475. * doc/aria2c.1.txt
  6476. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6477. Added doc for --bt-hash-check-seed option.
  6478. * doc/aria2c.1.txt
  6479. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6480. Documented exit codes.
  6481. * doc/aria2c.1.txt
  6482. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6483. Added --bt-max-peers option to specify the maximum number of peers
  6484. per torrent. 0 means unlimited number of peers.
  6485. * src/ActivePeerConnectionCommand.cc
  6486. * src/BtRuntime.h
  6487. * src/DefaultPeerStorage.cc
  6488. * src/DefaultPeerStorage.h
  6489. * src/OptionHandlerFactory.cc
  6490. * src/RequestGroup.cc
  6491. * src/option_processing.cc
  6492. * src/prefs.cc
  6493. * src/prefs.h
  6494. * src/usage_text.h
  6495. * test/DefaultPeerStorageTest.cc
  6496. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Added --bt-hash-check-seed option. If true is given to this
  6498. option, after hash check using --check-integrity option and file
  6499. is complete, continue to seed file. If you want to check file and
  6500. download it only when it is damaged or incomplete, set this option
  6501. to false. This option has effect only on BitTorrent download.
  6502. The default value is true(This is the same behavior with the
  6503. previous release).
  6504. * src/BtCheckIntegrityEntry.cc
  6505. * src/OptionHandlerFactory.cc
  6506. * src/option_processing.cc
  6507. * src/prefs.cc
  6508. * src/prefs.h
  6509. * src/usage_text.h
  6510. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6511. Updated copyright year.
  6512. * src/version_usage.cc
  6513. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6514. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6515. * doc/aria2c.1.txt
  6516. * src/usage_text.h
  6517. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Made the max value of split option unlimited.
  6519. * doc/aria2c.1.txt
  6520. * src/OptionHandlerFactory.cc
  6521. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6522. Fixed compile warning/error.
  6523. * src/DownloadResult.h
  6524. * src/HttpDownloadCommand.cc
  6525. * src/ServerStat.cc
  6526. * test/RequestGroupTest.cc
  6527. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6528. Added --event-poll option to select the method for polling events.
  6529. The available methods are "select" and "epoll". "epoll" is
  6530. available on Linux only. The earlier release has the compile
  6531. option to choose from these methods.
  6532. * configure.ac
  6533. * src/RequestGroupMan.cc
  6534. * src/OptionHandlerFactory.cc
  6535. * src/EpollEventPoll.h
  6536. * src/StreamFileAllocationEntry.cc
  6537. * src/a2io.h
  6538. * src/SelectEventPoll.h
  6539. * src/option_processing.cc
  6540. * src/prefs.h
  6541. * src/EpollEventPoll.cc
  6542. * src/EventPoll.h
  6543. * src/SocketCore.h
  6544. * src/Makefile.am
  6545. * src/main.cc
  6546. * src/DownloadEngine.h
  6547. * src/SelectEventPoll.cc
  6548. * src/DownloadEngine.cc
  6549. * src/SocketCore.cc
  6550. * src/DownloadEngineFactory.cc
  6551. * src/Makefile.in
  6552. * src/prefs.cc
  6553. * src/usage_text.h
  6554. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6555. Included RecoverableException.h from main.cc
  6556. * src/main.cc
  6557. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6558. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6559. now returns last error encountered in the HTTP/FTP downloads as a
  6560. exit status value. If all downloads finished successfully, aria2
  6561. returns 0. The error code is defined in src/DownloadResult.h.
  6562. The error occurred in the download currently in progress is not
  6563. reported as a last error. If no error has encountered but there
  6564. are in progress or waiting downloads, aria2 returns 7.
  6565. * src/AbstractCommand.cc
  6566. * src/DlAbortEx.h
  6567. * src/DlRetryEx.h
  6568. * src/DownloadCommand.cc
  6569. * src/DownloadFailureException.h
  6570. * src/DownloadResult.h
  6571. * src/FtpNegotiationCommand.cc
  6572. * src/HttpSkipResponseCommand.cc
  6573. * src/Makefile.am
  6574. * src/MultiUrlRequestInfo.cc
  6575. * src/MultiUrlRequestInfo.h
  6576. * src/RecoverableException.h
  6577. * src/RequestGroup.cc
  6578. * src/RequestGroup.h
  6579. * src/RequestGroupMan.cc
  6580. * src/RequestGroupMan.h
  6581. * src/URIResult.cc
  6582. * src/URIResult.h
  6583. * src/main.cc
  6584. * src/option_processing.cc
  6585. * test/RequestGroupTest.cc
  6586. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6587. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6588. patch adds AdaptiveURISelector, which selects one of the bests
  6589. mirrors for first and reserved connections. For supplementary
  6590. ones, it returns mirrors which has not been tested yet, and if
  6591. each of them already tested, returns mirrors which has to be
  6592. tested again. Otherwise, it doesn't return anymore mirrors.
  6593. * src/AdaptiveURISelector.cc
  6594. * src/AdaptiveURISelector.h
  6595. * src/FtpNegotiationCommand.cc
  6596. * src/HttpResponseCommand.cc
  6597. * src/Makefile.am
  6598. * src/Makefile.in
  6599. * src/OptionHandlerFactory.cc
  6600. * src/RequestGroup.cc
  6601. * src/RequestGroup.h
  6602. * src/RequestGroupMan.cc
  6603. * src/ServerStat.cc
  6604. * src/ServerStat.h
  6605. * src/ServerStatMan.cc
  6606. * src/SpeedCalc.cc
  6607. * src/URISelector.h
  6608. * src/prefs.cc
  6609. * src/prefs.h
  6610. * test/RequestGroupManTest.cc
  6611. * test/ServerStatManTest.cc
  6612. * test/ServerStatTest.cc
  6613. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6614. Fixed unit test error.
  6615. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6616. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. * Release 1.1.2
  6618. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Updated Russian translation. Thanks to the translators.
  6620. * po/ru.po
  6621. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6622. Added the description of --use-head option to man page.
  6623. * doc/aria2c.1.txt
  6624. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6625. Bump up version number to 1.1.2
  6626. * configure.ac
  6627. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Added --use-head option to toggle whether HEAD method should be
  6629. used in the first HTTP request. By default aria2 uses HEAD method
  6630. as the first request. When the server doesn't recognize HEAD, then
  6631. give aria2 --use-head=false to force aria2 to use GET method
  6632. instead.
  6633. * src/OptionHandlerFactory.cc
  6634. * src/RequestGroupMan.cc
  6635. * src/option_processing.cc
  6636. * src/prefs.cc
  6637. * src/prefs.h
  6638. * src/usage_text.h
  6639. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6640. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6641. message is received before CHOKE message. The old implementation
  6642. doen't clear the use-bit of the piece when recieved REJECT
  6643. message.
  6644. * src/DefaultBtMessageDispatcher.cc
  6645. * test/DefaultBtMessageDispatcherTest.cc
  6646. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. * Release 1.1.1
  6648. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6649. Bump up version number to 1.1.1.
  6650. * configure.ac
  6651. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6653. is printed repeatedly.
  6654. * src/ConsoleStatCalc.cc
  6655. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6656. * Release 1.1.0
  6657. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Added ifdef clause for conditional compilation.
  6659. * src/main.cc
  6660. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6661. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6662. translations. Thanks to all translators.
  6663. * po/ja.po
  6664. * po/ru.po
  6665. * po/uk.po
  6666. * po/zh_CN.po
  6667. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6668. Added the preceding ">>> " before the message "Printing the
  6669. contents of file..." to make the output more readable.
  6670. * src/main.cc
  6671. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6672. Added try-catch block in the loop in showFiles() to continue the
  6673. operation even if the exception occurred in one file.
  6674. * src/main.cc (showFiles)
  6675. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6676. Made messages in showFiles() translatable.
  6677. * po/aria2.pot
  6678. * src/main.cc
  6679. * src/message.h
  6680. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6681. Print the contents of Torrent/Metalink files are printed without
  6682. -T/-M options.
  6683. * src/main.cc
  6684. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6685. Escaped '--' with '\--'
  6686. * README
  6687. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6688. Updated "How to build" section in README. Mentioned about
  6689. --with-ca-bundle compile option.
  6690. * README
  6691. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Bump up version number to 1.1.0.
  6693. * configure.ac
  6694. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Added a note for --dht-listen-port option.
  6696. * doc/aria2c.1.txt
  6697. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Update doc for --realtime-chunk-checksum option.
  6699. * doc/aria2c.1.txt
  6700. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6701. Update doc for --realtime-chunk-checksum option.
  6702. * src/usage_text.h
  6703. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6704. Updated French, Japanese, Russian and Ukrainian translations.
  6705. Thanks to all translators.
  6706. * po/fr.po
  6707. * po/ja.po
  6708. * po/ru.po
  6709. * po/uk.po
  6710. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6711. Renamed aria2c.pot to aria2.pot
  6712. * po/aria2.pot
  6713. * po/aria2c.pot: Removed.
  6714. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6715. Removed MetaEntry.h
  6716. * src/Makefile.am
  6717. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6718. Rename file by appending digits if a local file exists and its
  6719. file size is larger than that of remote file with --continue
  6720. option. The old implementation just throws exception in such case.
  6721. * src/RequestGroup.cc
  6722. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6723. Fixed the bug that download progress summary is not printed in the
  6724. interval specified by the option.
  6725. * src/ConsoleStatCalc.cc
  6726. * src/ConsoleStatCalc.h
  6727. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6728. Fixed compiler warning
  6729. * src/Cookie.cc
  6730. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6731. Fixed the cookie implementation based on RFC2965.
  6732. Now if a value in domain field is not started with dot, then
  6733. prepend dot. That means a cookie with domain=sf.net is sent to
  6734. wiki.sf.net.
  6735. * src/Cookie.cc
  6736. * test/CookieParserTest.cc
  6737. * test/CookieStorageTest.cc
  6738. * test/CookieTest.cc
  6739. * test/NsCookieParserTest.cc
  6740. * test/Sqlite3MozCookieParserTest.cc
  6741. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6742. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6743. is enabled and the server doesn't support keep-alive.
  6744. * src/AbstractCommand.cc
  6745. * src/DownloadCommand.cc
  6746. * src/HttpDownloadCommand.cc
  6747. * src/HttpDownloadCommand.h
  6748. * src/HttpResponseCommand.cc
  6749. * src/Request.cc
  6750. * src/Request.h
  6751. * test/RequestTest.cc
  6752. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6753. Removed Dictionary/List/Data and its related classes.
  6754. * src/BencodeVisitor.cc: Removed.
  6755. * src/BencodeVisitor.h: Removed.
  6756. * src/Data.cc: Removed.
  6757. * src/Data.h: Removed.
  6758. * src/Dictionary.cc: Removed.
  6759. * src/Dictionary.h: Removed.
  6760. * src/List.cc: Removed.
  6761. * src/List.h: Removed.
  6762. * src/Makefile.am
  6763. * src/MetaEntry.h: Removed.
  6764. * src/MetaEntryVisitor.h: Removed.
  6765. * src/MetaFileUtil.cc: Removed.
  6766. * src/MetaFileUtil.h: Removed.
  6767. * test/BencodeVisitorTest.cc: Removed.
  6768. * test/DataTest.cc: Removed.
  6769. * test/DictionaryTest.cc: Removed.
  6770. * test/ListTest.cc: Removed.
  6771. * test/Makefile.am
  6772. * test/MetaFileUtilTest.cc: Removed.
  6773. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. Removed include of MetaEntry.h
  6775. * test/DHTMessageTrackerEntryTest.cc
  6776. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6777. Use BDE instead of Dictionary/List/Data.
  6778. * src/AnnounceList.cc
  6779. * src/AnnounceList.h
  6780. * test/AnnounceListTest.cc
  6781. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6782. Use BDE instead of Dictionary/List/Data.
  6783. * src/DHTAbstractMessage.cc
  6784. * src/DHTAbstractMessage.h
  6785. * src/DHTAnnouncePeerMessage.cc
  6786. * src/DHTAnnouncePeerMessage.h
  6787. * src/DHTAnnouncePeerReplyMessage.cc
  6788. * src/DHTAnnouncePeerReplyMessage.h
  6789. * src/DHTFindNodeMessage.cc
  6790. * src/DHTFindNodeMessage.h
  6791. * src/DHTFindNodeReplyMessage.cc
  6792. * src/DHTFindNodeReplyMessage.h
  6793. * src/DHTGetPeersMessage.cc
  6794. * src/DHTGetPeersMessage.h
  6795. * src/DHTGetPeersReplyMessage.cc
  6796. * src/DHTGetPeersReplyMessage.h
  6797. * src/DHTMessageFactory.h
  6798. * src/DHTMessageFactoryImpl.cc
  6799. * src/DHTMessageFactoryImpl.h
  6800. * src/DHTMessageReceiver.cc
  6801. * src/DHTMessageTracker.cc
  6802. * src/DHTMessageTracker.h
  6803. * src/DHTPingMessage.cc
  6804. * src/DHTPingMessage.h
  6805. * src/DHTPingReplyMessage.cc
  6806. * src/DHTPingReplyMessage.h
  6807. * src/DHTQueryMessage.cc
  6808. * src/DHTQueryMessage.h
  6809. * src/DHTResponseMessage.cc
  6810. * src/DHTResponseMessage.h
  6811. * test/DHTAnnouncePeerMessageTest.cc
  6812. * test/DHTAnnouncePeerReplyMessageTest.cc
  6813. * test/DHTFindNodeMessageTest.cc
  6814. * test/DHTFindNodeReplyMessageTest.cc
  6815. * test/DHTGetPeersMessageTest.cc
  6816. * test/DHTGetPeersReplyMessageTest.cc
  6817. * test/DHTMessageFactoryImplTest.cc
  6818. * test/DHTMessageTrackerTest.cc
  6819. * test/DHTPingMessageTest.cc
  6820. * test/DHTPingReplyMessageTest.cc
  6821. * test/MockDHTMessageFactory.h
  6822. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6823. Added tests the case where length < 0 is specified.
  6824. * test/BencodeTest.cc
  6825. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6826. Fixed memory leak in decoderawstring()
  6827. * src/bencode.cc
  6828. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6829. Added missing #ifdef guard. Added uc() function for String and
  6830. removeKey() for Dict.
  6831. * src/bencode.cc
  6832. * src/bencode.h
  6833. * test/BencodeTest.cc
  6834. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6835. Use BDE instead of Dictionary/List/Data.
  6836. * src/HandshakeExtensionMessage.cc
  6837. * src/HandshakeExtensionMessage.h
  6838. * test/HandshakeExtensionMessageTest.cc
  6839. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6840. Added --max-overall-upload-limit option. This option limits the
  6841. overall upload speed. Stated in help message that the existing
  6842. --max-upload-limit option limits the upload speed per each
  6843. torrent. Man page is also updated.
  6844. * doc/aria2c.1.txt
  6845. * src/DefaultBtMessageDispatcher.cc
  6846. * src/DefaultBtMessageDispatcher.h
  6847. * src/OptionHandlerFactory.cc
  6848. * src/PeerInteractionCommand.cc
  6849. * src/option_processing.cc
  6850. * src/prefs.cc
  6851. * src/prefs.h
  6852. * src/usage_text.h
  6853. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6854. Use BDE instead of Dictionary/List/Data classes.
  6855. * src/CompactPeerListProcessor.cc
  6856. * src/CompactPeerListProcessor.h
  6857. * src/DefaultBtAnnounce.cc
  6858. * src/DefaultBtContext.cc
  6859. * src/DefaultBtContext.h
  6860. * src/DefaultPeerListProcessor.cc
  6861. * src/DefaultPeerListProcessor.h
  6862. * src/DelegatingPeerListProcessor.cc
  6863. * src/DelegatingPeerListProcessor.h
  6864. * src/PeerListProcessor.h
  6865. * src/UTPexExtensionMessage.cc
  6866. * src/Util.h
  6867. * src/message.h
  6868. * test/DefaultBtContextTest.cc
  6869. * test/DefaultPeerListProcessorTest.cc
  6870. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Added bencode helper functions and BDE class.
  6872. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6873. * src/Makefile.am
  6874. * src/bencode.cc
  6875. * src/bencode.h
  6876. * test/BencodeTest.cc
  6877. * test/Makefile.am
  6878. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6879. Fixed the bug that bad URI is sent to the tracker when the announe
  6880. URI in torrent file includes query.
  6881. * src/DefaultBtAnnounce.cc
  6882. * test/DefaultBtAnnounceTest.cc
  6883. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6884. Added Option::blank().
  6885. Use !Option::blank(name) instead of Option::defined(name) for
  6886. the options that take filename.
  6887. * src/MultiUrlRequestInfo.cc
  6888. * src/Option.cc
  6889. * src/Option.h
  6890. * src/main.cc
  6891. * src/option_processing.cc
  6892. * test/OptionTest.cc
  6893. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6894. Documented the default value of --check-certificate option in man
  6895. page.
  6896. * doc/aria2c.1.txt
  6897. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6898. Enabled --check-certificate by default. Added compile
  6899. time(configure) option --with-ca-bundle to specify CA bundle.
  6900. Warn if --check-certificate=true and --ca-certificate is not
  6901. specified or loading CA certificate is failed.
  6902. * configure.ac
  6903. * src/MultiUrlRequestInfo.cc
  6904. * src/OptionHandlerFactory.cc
  6905. * src/message.h
  6906. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6907. Mentioned https tag in help option.
  6908. * doc/aria2c.1.txt
  6909. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6910. Added `https' tag to help option category. Added https tag to
  6911. --ca-certificate, --certificate, --check-certificate and
  6912. --private-key option.
  6913. * src/OptionHandlerFactory.cc
  6914. * src/help_tags.h
  6915. * src/option_processing.cc
  6916. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6917. Changed the package name from `aria2c' to `aria2' in order to fix
  6918. the packaging issue in Debian and Fedora. The name of the
  6919. executable is not changed.
  6920. * configure.ac
  6921. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6922. Fixed typos
  6923. * src/usage_text.h
  6924. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6925. Fixed typos and updated doc.
  6926. * README
  6927. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6928. Fixed typos
  6929. * doc/aria2c.1.txt
  6930. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6931. Fixed typos
  6932. * src/usage_text.h
  6933. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6934. Print a message when no files to download.
  6935. * src/download_helper.cc
  6936. * src/main.cc
  6937. * src/message.h
  6938. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. RFC3986 complied Percent-Encoding(urlencode).
  6940. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6941. ones.
  6942. * src/Request.cc
  6943. * src/Util.cc
  6944. * src/Util.h
  6945. * test/BtHandshakeMessageTest.cc
  6946. * test/DefaultBtAnnounceTest.cc
  6947. * test/DefaultBtContextTest.cc
  6948. * test/RequestTest.cc
  6949. * test/UtilTest.cc
  6950. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6951. Fixed the bug that prevents aria2 from downloading 0-length files
  6952. via HTTP/FTP.
  6953. * src/DefaultBtContext.cc
  6954. * src/DefaultBtContext.h
  6955. * src/DownloadContext.h
  6956. * src/FtpNegotiationCommand.cc
  6957. * src/HttpResponseCommand.cc
  6958. * src/HttpResponseCommand.h
  6959. * src/RequestGroup.cc
  6960. * src/SingleFileDownloadContext.cc
  6961. * src/SingleFileDownloadContext.h
  6962. * test/BtPostDownloadHandlerTest.cc
  6963. * test/MetalinkPostDownloadHandlerTest.cc
  6964. * test/MockBtContext.h
  6965. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6966. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6967. * src/option_processing.cc
  6968. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6969. Applied aria2-1.0.1-mingw.patch.
  6970. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6971. mingw.
  6972. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6973. * src/SocketCore.cc
  6974. * src/a2netcompat.h
  6975. * test/SocketCoreTest.cc
  6976. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6977. * Release 1.0.1
  6978. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6979. Updated Ukrainian and Norwegian Nynorsk translations.
  6980. Thanks to all translators.
  6981. * po/nn.po
  6982. * po/uk.po
  6983. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6984. Don't show download result when -S option is used.
  6985. * src/main.cc
  6986. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6987. Bump up version number to 1.0.1
  6988. * configure.ac
  6989. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6990. Closed files after the test cases in MultiDiskWriterTest::
  6991. testResetDiskWriterEntries(). This will fix the unit test error
  6992. in mingw32 build.
  6993. * test/MultiDiskWriterTest.cc
  6994. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6995. Use HEAD method to get file size from HTTP server for segmented
  6996. downloading.
  6997. The request to the BitTorrent Tracker always uses GET method because
  6998. the response of the tracker is small and it doesn't need segmented
  6999. download.
  7000. * src/FtpNegotiationCommand.cc
  7001. * src/HttpRequest.cc
  7002. * src/HttpResponseCommand.cc
  7003. * src/HttpSkipResponseCommand.cc
  7004. * src/RequestGroup.cc
  7005. * src/RequestGroup.h
  7006. * src/TrackerWatcherCommand.cc
  7007. * test/HttpRequestTest.cc
  7008. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7009. Fixed the bug that causes floating exception when -T option is used and
  7010. no URIs are given.
  7011. * src/download_helper.cc
  7012. * test/DownloadHelperTest.cc
  7013. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7014. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7015. errors in MinGW:
  7016. Closed file after saving server stats (RequestGroupMan.cc)
  7017. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7018. Ignored case & handled 2-digit years (strptime.c)
  7019. Added missing suseconds_t definition (a2time.h)
  7020. Fixed socket CLOSE() define (SocketCore.cc)
  7021. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7022. Changed utime() test values from x000 to x00000 as MinGW failed on
  7023. values less than timezone offset from Unix epoch
  7024. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7025. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7026. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7027. handle negative dates (CookieParserTest.cc)
  7028. * src/a2time.h
  7029. * src/FtpConnection.cc
  7030. * src/RequestGroupMan.cc
  7031. * src/SocketCore.cc
  7032. * src/strptime.c
  7033. * test/CookieParserTest.cc
  7034. * test/CopyDiskAdaptorTest.cc
  7035. * test/FileTest.cc
  7036. * test/FtpConnectionTest.cc
  7037. * test/MultiDiskAdaptorTest.cc
  7038. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7039. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7040. * doc/aria2c.1.txt
  7041. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7042. * Release 1.0.0
  7043. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7044. Added '~' to reserved characters.
  7045. * src/Util.cc
  7046. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7047. Do not urlencode Request::url in setUrl() because we want unmodified
  7048. URL using Request::getUrl()
  7049. * src/Request.cc
  7050. * src/Request.h
  7051. * test/RequestTest.cc
  7052. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7053. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7054. Thanks to all translators.
  7055. * po/bg.po
  7056. * po/fr.po
  7057. * po/ja.po
  7058. * po/ru.po
  7059. * po/uk.po
  7060. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7061. Bump up version number to 1.0.0
  7062. * configure.ac
  7063. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7064. Added nosqlite3 build to build_test.sh.
  7065. Renamed noxml as expat.
  7066. * build_test.sh
  7067. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7068. Updated INPUT FILE section.
  7069. * doc/aria2c.1.txt
  7070. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7071. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7072. on big endian systems because test .aria2 files are made for little
  7073. endian systems.
  7074. * test/DefaultBtProgressInfoFileTest.cc
  7075. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7076. Dropped ares support.
  7077. * README
  7078. * configure.ac
  7079. * m4/libares.m4: Removed.
  7080. * src/AsyncNameResolver.cc
  7081. * src/Makefile.am
  7082. * test/Makefile.am
  7083. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7084. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7085. Removed const qualifier from DiskWriter::size().
  7086. * src/AbstractDiskWriter.cc
  7087. * src/AbstractDiskWriter.h
  7088. * src/ByteArrayDiskWriter.cc
  7089. * src/ByteArrayDiskWriter.h
  7090. * src/DiskWriter.h
  7091. * test/ByteArrayDiskWriterTest.cc
  7092. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7093. Fixed the bug that causes segmentation fault/bus error during executing
  7094. choking algorithm while seeding. This is caused by improper
  7095. implementation of compare function which returns inconsistent results
  7096. depending on the timing of last unchoke.
  7097. * src/BtSeederStateChoke.cc
  7098. * src/BtSeederStateChoke.h
  7099. * src/DefaultPeerStorage.cc
  7100. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7101. Removed TODO
  7102. * TODO
  7103. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7104. Added a section that explains how to pass argument to options that
  7105. takes optional arguments with its short form.
  7106. * doc/aria2c.1.txt
  7107. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7108. Added -u for the short form of --max-upload-limit option.
  7109. * doc/aria2c.1.txt
  7110. * src/option_processing.cc
  7111. * src/usage_text.h
  7112. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7113. Added -V for the short form of --check-integrity option.
  7114. Now the argument of --check-integrity option is optional:
  7115. if it is omitted, it is evaluated as true.
  7116. * doc/aria2c.1.txt
  7117. * src/option_processing.cc
  7118. * src/usage_text.h
  7119. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7120. Made the default value of --ftp-pasv option set to true and it can take
  7121. true/false values.
  7122. * src/OptionHandlerFactory.cc
  7123. * src/option_processing.cc
  7124. * src/usage_text.h
  7125. * doc/aria2c.1.txt
  7126. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7127. Given custom random number generator to std::random_shuffle.
  7128. * src/AnnounceList.cc
  7129. * src/BtLeecherStateChoke.cc
  7130. * src/BtSeederStateChoke.cc
  7131. * src/DefaultBtRequestFactory.cc
  7132. * src/MetalinkEntry.cc
  7133. * src/RarestPieceSelector.cc
  7134. * src/SimpleRandomizer.cc
  7135. * src/SimpleRandomizer.h
  7136. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7137. Now the default value of --enable-direct-io is true.
  7138. * src/OptionHandlerFactory.cc
  7139. * doc/aria2c.1.txt
  7140. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7141. Erase peer before executing onReturningPeer and onErasingPeer
  7142. because choking algorithm called from onReturningPeer doesn't
  7143. like erasing peer in the active peer list.
  7144. * src/DefaultPeerStorage.cc
  7145. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7146. Instead of creating special filename in createDownloadResult() if
  7147. inMemoryDownload() is true, now it is done in getFilePath().
  7148. * src/RequestGroup.cc
  7149. * test/RequestGroupTest.cc
  7150. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7151. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7152. processed in memory. This is the fix for previous comment out.
  7153. * src/MemoryBufferPreDownloadHandler.cc
  7154. * src/RequestGroup.cc
  7155. * src/RequestGroup.h
  7156. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7157. Commented out the code which sets virtual directory path "[MEMORY]"
  7158. propagate directory to store to following RequestGroup.
  7159. * src/MemoryBufferPreDownloadHandler.cc
  7160. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7161. Bump up version number to 1.0.0b
  7162. * configure.ac
  7163. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7164. Added input_uris.txt to EXTRA_DIST
  7165. * test/Makefile.am
  7166. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7167. Removed PeerObject.h from Makefile.am
  7168. * src/Makefile.am
  7169. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7170. Avoid slow seeding
  7171. * src/PeerInteractionCommand.cc
  7172. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7173. Updated usage for -i option.
  7174. * src/usage_text.h (TEXT_INPUT_FILE)
  7175. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7176. Added INPUT FILE section to man page.
  7177. Escaped fake URLs.
  7178. * doc/aria2c.1.txt
  7179. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7180. Fixed wrong note position for -o option.
  7181. * doc/aria2c.1.txt
  7182. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7183. Fixed compile error without SSL/XML library.
  7184. * src/DefaultBtProgressInfoFile.cc
  7185. * src/DefaultBtProgressInfoFile.h
  7186. * src/FileMetalinkParserState.cc
  7187. * src/RequestGroup.h
  7188. * src/SocketCore.cc
  7189. * src/SocketCore.h
  7190. * src/VerificationMetalinkParserState.cc
  7191. * src/download_helper.h
  7192. * src/main.cc
  7193. * test/DefaultBtProgressInfoFileTest.cc
  7194. * test/DownloadHelperTest.cc
  7195. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7196. Rewritten URI handling functions. They are now provided as a testable
  7197. functions.
  7198. * src/Makefile.am
  7199. * src/RequestGroup.cc
  7200. * src/RequestGroup.h
  7201. * src/download_helper.cc
  7202. * src/download_helper.h
  7203. * src/main.cc
  7204. * test/DownloadHelperTest.cc
  7205. * test/Makefile.am
  7206. * test/input_uris.txt
  7207. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7208. Quickly terminate commands when ctrl-c is pressed.
  7209. * src/DownloadEngine.cc
  7210. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7211. Quickly terminate idle commands when download finished.
  7212. * src/AbstractCommand.cc
  7213. * src/DownloadCommand.cc
  7214. * src/DownloadEngine.cc
  7215. * src/DownloadEngine.h
  7216. * src/SleepCommand.cc
  7217. * src/SleepCommand.h
  7218. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7219. Added the ability to specify output filename and directory in input
  7220. file.
  7221. Additional parameters are added in the following line of URIs
  7222. with proceeding white space(s), 1 parameter in 1 line.
  7223. The parameter names are the same with the command-line option name
  7224. without proceeding "--". Not all the options are available here:
  7225. at the moment, 'dir' and 'out' options are avialable.
  7226. Please note that out option has no effect against Metalink or BitTorrent
  7227. downloads.
  7228. Example input file:
  7229. http://host/foo-1.1.tar.bz2
  7230. out=foo.tar.bz2
  7231. dir=/tmp/downloads
  7232. http://host/thundermonkey-2.0.tar.bz2
  7233. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7234. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7235. thundermonkey-2.0.tar.bz2 is saved as
  7236. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7237. * src/BtPostDownloadHandler.cc
  7238. * src/Metalink2RequestGroup.cc
  7239. * src/Metalink2RequestGroup.h
  7240. * src/MetalinkPostDownloadHandler.cc
  7241. * src/UriListParser.cc
  7242. * src/UriListParser.h
  7243. * src/main.cc
  7244. * test/Metalink2RequestGroupTest.cc
  7245. * test/UriListParserTest.cc
  7246. * test/filelist1.txt
  7247. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7248. Fixed error when SSL library is not found.
  7249. * configure.ac
  7250. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7251. Cross referenced among -s, -C and -j options.
  7252. Updated usage of -C and -s options.
  7253. * src/usage_text.h
  7254. * doc/aria2c.1.txt
  7255. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7256. Fixed bad cast in 32bit platforms.
  7257. * test/DefaultPieceStorageTest.cc
  7258. (DefaultPieceStorageTest::testGetCompletedLength)
  7259. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7260. Fixed unit test fails on 32bit platforms.
  7261. * test/CookieParserTest.cc
  7262. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7263. Show an average download speed in Download results.
  7264. * src/BtFileAllocationEntry.cc
  7265. * src/DefaultPieceStorage.cc
  7266. * src/DownloadContext.cc
  7267. * src/DownloadContext.h
  7268. * src/DownloadResult.h
  7269. * src/RequestGroup.cc
  7270. * src/RequestGroupMan.cc
  7271. * src/StreamFileAllocationEntry.cc
  7272. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7273. Fixed the bug that metalink file is not processed if Content-Type
  7274. field has a paramter.
  7275. * src/HttpResponse.cc
  7276. * src/HttpResponse.h
  7277. * test/HttpResponseTest.cc
  7278. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7279. Removed unused code.
  7280. * src/DefaultBtAnnounce.cc
  7281. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7282. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7283. the value larger than DefaultPieceStorage::getTotalLength() when
  7284. in flight pieces are involved.
  7285. * src/DefaultPieceStorage.cc
  7286. * test/DefaultPieceStorageTest.cc
  7287. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7288. Bump up version number to 1.0.0a.
  7289. * configure.ac
  7290. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7291. Updated configure.ac
  7292. * configure.ac
  7293. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7294. Added usege for proxy.
  7295. * doc/aria2c.1.txt
  7296. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7297. Added usage for --ca-certificate, --certificate, --private-key and
  7298. --check-certificate options.
  7299. * doc/aria2c.1.txt
  7300. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7301. Updated man page
  7302. * doc/aria2c.1.txt
  7303. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7304. Added --no-proxy option. It receives comman separated hostname or
  7305. domains to which proxy should not be used.
  7306. aria2 honors the environment variable no_proxy to override no-proxy
  7307. value in configuration file. The user can override the environment
  7308. variable no_proxy with --no-proxy command-line option.
  7309. * src/AbstractCommand.cc
  7310. * src/OptionHandlerFactory.cc
  7311. * src/option_processing.cc
  7312. * src/prefs.cc
  7313. * src/prefs.h
  7314. * src/usage_text.h
  7315. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7316. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7317. The CA certificates are specified in --ca-certificate option.
  7318. By default, the verification is disabled. Use --check-certificate
  7319. option to enable it.
  7320. * src/HttpRequestCommand.cc
  7321. * src/LibgnutlsTLSContext.cc
  7322. * src/LibgnutlsTLSContext.h
  7323. * src/LibsslTLSContext.cc
  7324. * src/LibsslTLSContext.h
  7325. * src/MultiUrlRequestInfo.cc
  7326. * src/OptionHandlerFactory.cc
  7327. * src/SocketCore.cc
  7328. * src/SocketCore.h
  7329. * src/a2functional.h
  7330. * src/message.h
  7331. * src/option_processing.cc
  7332. * src/prefs.cc
  7333. * src/prefs.h
  7334. * src/usage_text.h
  7335. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7336. Added client certificate authentication for SSL/TLS.
  7337. Currently a private key must be decrypted for use with aria2.
  7338. If a user accidentally gives encrypted file to aria2 then following
  7339. thing happens:
  7340. If encrypted private key is given to aria2, it behaves differently
  7341. depending on the ssl library it uses. If aria2 built with openssl then
  7342. openssl prompts the user for password. If aria2 build with gnutls then
  7343. aria2 exists with error at start up.
  7344. * src/DownloadEngineFactory.cc
  7345. * src/MultiUrlRequestInfo.cc
  7346. * src/OptionHandlerFactory.cc
  7347. * src/option_processing.cc
  7348. * src/prefs.cc
  7349. * src/prefs.h
  7350. * src/usage_text.h
  7351. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7352. Introduced TLSContext that holds TLS related data that can be shared
  7353. with multiple SSL connections.
  7354. * src/DownloadEngineFactory.cc
  7355. * src/LibgnutlsTLSContext.cc
  7356. * src/LibgnutlsTLSContext.h
  7357. * src/LibsslTLSContext.cc
  7358. * src/LibsslTLSContext.h
  7359. * src/Makefile.am
  7360. * src/SocketCore.cc
  7361. * src/SocketCore.h
  7362. * src/TLSContext.h
  7363. * src/message.h
  7364. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7365. Fixed the bug that the DiskWriter of the first FileEntry whose
  7366. `needsFileAllocation' property is false is not created
  7367. even if it shares a piece with next FileEntry which `requested' property
  7368. is true.
  7369. Fixed the bug that zero-length file is not created if pre file
  7370. allocation is not done.
  7371. * src/MultiDiskAdaptor.cc
  7372. * src/MultiDiskAdaptor.h
  7373. * test/MultiDiskAdaptorTest.cc
  7374. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Added the ability to pool proxy connection.
  7376. The conneciton in FTP with proxy-method=GET is not pooled.
  7377. Proxy-Connection header will not be sent when sending CONNECT method.
  7378. * src/DownloadEngine.cc
  7379. * src/DownloadEngine.h
  7380. * src/FtpFinishDownloadCommand.cc
  7381. * src/FtpInitiateConnectionCommand.cc
  7382. * src/FtpNegotiationCommand.cc
  7383. * src/HttpDownloadCommand.cc
  7384. * src/HttpInitiateConnectionCommand.cc
  7385. * src/HttpRequest.cc
  7386. * src/HttpRequest.h
  7387. * src/HttpResponse.cc
  7388. * src/HttpSkipResponseCommand.cc
  7389. * test/HttpRequestTest.cc
  7390. * test/HttpResponseTest.cc
  7391. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Handle date before epoch.
  7393. To create *bad* Time object, call Time::null().
  7394. * src/CookieParser.cc
  7395. * src/FtpConnection.cc
  7396. * src/FtpConnection.h
  7397. * src/FtpNegotiationCommand.cc
  7398. * src/RequestGroup.cc
  7399. * src/TimeA2.cc
  7400. * src/TimeA2.h
  7401. * test/CookieParserTest.cc
  7402. * test/FtpConnectionTest.cc
  7403. * test/TimeTest.cc
  7404. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Added support for following envrionment variables: http_proxy,
  7406. https_proxy, ftp_proxy and all_proxy.
  7407. Each variable is equivalent to the aria2 option whose name is the
  7408. variable name with '_' replaced with '-'.
  7409. They overrides options specified in aria2.conf file.
  7410. The envrionment variables can be overrode using command-line option.
  7411. * src/option_processing.cc
  7412. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Renamed --http-proxy-method as --proxy-method.
  7414. * src/AbstractCommand.cc
  7415. * src/FtpInitiateConnectionCommand.cc
  7416. * src/HttpInitiateConnectionCommand.cc
  7417. * src/OptionHandlerFactory.cc
  7418. * src/option_processing.cc
  7419. * src/prefs.cc
  7420. * src/prefs.h
  7421. * src/usage_text.h
  7422. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7424. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7425. Above 3 options and --http-proxy option can handle proxy in URL format
  7426. like: http://user:passwd@host:port.
  7427. If a proxy requires user/password, they must be specified in a URL.
  7428. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7429. instead.
  7430. * src/AbstractCommand.cc
  7431. * src/AbstractCommand.h
  7432. * src/AbstractProxyRequestCommand.cc
  7433. * src/AbstractProxyRequestCommand.h
  7434. * src/AuthConfigFactory.cc
  7435. * src/AuthConfigFactory.h
  7436. * src/FtpFinishDownloadCommand.cc
  7437. * src/FtpInitiateConnectionCommand.cc
  7438. * src/FtpInitiateConnectionCommand.h
  7439. * src/FtpNegotiationCommand.cc
  7440. * src/FtpTunnelRequestCommand.cc
  7441. * src/FtpTunnelRequestCommand.h
  7442. * src/HttpDownloadCommand.cc
  7443. * src/HttpInitiateConnectionCommand.cc
  7444. * src/HttpInitiateConnectionCommand.h
  7445. * src/HttpProxyRequestCommand.cc
  7446. * src/HttpProxyRequestCommand.h
  7447. * src/HttpRequest.cc
  7448. * src/HttpRequest.h
  7449. * src/HttpRequestCommand.cc
  7450. * src/HttpRequestCommand.h
  7451. * src/HttpSkipResponseCommand.cc
  7452. * src/InitiateConnectionCommand.cc
  7453. * src/InitiateConnectionCommand.h
  7454. * src/OptionHandlerFactory.cc
  7455. * src/OptionHandlerImpl.h
  7456. * src/Request.cc
  7457. * src/option_processing.cc
  7458. * src/prefs.cc
  7459. * src/prefs.h
  7460. * src/usage_text.h
  7461. * test/AuthConfigFactoryTest.cc
  7462. * test/HttpRequestTest.cc
  7463. * test/OptionHandlerTest.cc
  7464. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Execute choking algorithm when unchoked and interested peer is
  7466. disconected.
  7467. * src/DefaultPeerStorage.cc
  7468. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Added testcase for BtNotInterestedMessage from unchoked peer.
  7470. * test/BtNotInterestedMessageTest.cc
  7471. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Execute choking algorithm when BtInterestedMessage arrives from
  7473. unchoked peer.
  7474. * src/BtInterestedMessage.cc
  7475. * src/BtInterestedMessage.h
  7476. * src/DefaultBtMessageFactory.cc
  7477. * test/BtInterestedMessageTest.cc
  7478. * test/MockPeerStorage.h
  7479. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. AuthConfigFactory is now part of DownloadEngine.
  7481. * src/AbstractProxyRequestCommand.cc
  7482. * src/AuthConfigFactory.h
  7483. * src/DownloadEngine.cc
  7484. * src/DownloadEngine.h
  7485. * src/FtpConnection.cc
  7486. * src/FtpConnection.h
  7487. * src/FtpNegotiationCommand.cc
  7488. * src/HttpConnection.cc
  7489. * src/HttpRequest.cc
  7490. * src/HttpRequest.h
  7491. * src/HttpRequestCommand.cc
  7492. * src/HttpResponse.cc
  7493. * src/HttpResponseCommand.cc
  7494. * src/HttpSkipResponseCommand.cc
  7495. * src/MultiUrlRequestInfo.cc
  7496. * src/main.cc
  7497. * test/FtpConnectionTest.cc
  7498. * test/HttpRequestTest.cc
  7499. * test/HttpResponseTest.cc
  7500. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Corrected catched exception type.
  7502. * src/ServerStatMan.cc
  7503. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. DNSCache is now part of DownloadEngine.
  7505. * src/DNSCache.h
  7506. * src/DownloadEngine.cc
  7507. * src/DownloadEngine.h
  7508. * src/InitiateConnectionCommand.cc
  7509. * src/MultiUrlRequestInfo.cc
  7510. * test/Makefile.am
  7511. * test/Makefile.in
  7512. * test/SimpleDNSCacheTest.cc
  7513. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7515. DownloadEngine.
  7516. * src/ActivePeerConnectionCommand.cc
  7517. * src/BtSetup.cc
  7518. * src/CUIDCounter.h
  7519. * src/DHTSetup.cc
  7520. * src/DownloadCommand.cc
  7521. * src/DownloadEngine.cc
  7522. * src/DownloadEngine.h
  7523. * src/DownloadEngineFactory.cc
  7524. * src/FileAllocationDispatcherCommand.cc
  7525. * src/InitiatorMSEHandshakeCommand.cc
  7526. * src/PeerInitiateConnectionCommand.cc
  7527. * src/PeerInteractionCommand.cc
  7528. * src/PeerListenCommand.cc
  7529. * src/RequestGroup.cc
  7530. * src/StreamFileAllocationEntry.cc
  7531. * src/TrackerWatcherCommand.cc
  7532. * src/main.cc
  7533. * test/RequestGroupManTest.cc
  7534. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Implemented commented code in BtSeederStateChoke
  7536. * src/BtSeederStateChoke.cc
  7537. * src/Peer.cc
  7538. * src/Peer.h
  7539. * src/PeerInteractionCommand.cc
  7540. * src/PeerSessionResource.cc
  7541. * src/PeerSessionResource.h
  7542. * test/MockBtMessageDispatcher.h
  7543. * test/PeerSessionResourceTest.cc
  7544. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7546. its object.
  7547. * src/AbstractBtMessage.cc
  7548. * src/ActivePeerConnectionCommand.cc
  7549. * src/ActivePeerConnectionCommand.h
  7550. * src/BtContextAwareCommand.cc
  7551. * src/BtContextAwareCommand.h
  7552. * src/BtExtendedMessage.cc
  7553. * src/BtExtendedMessage.h
  7554. * src/BtInterestedMessage.cc
  7555. * src/BtInterestedMessage.h
  7556. * src/BtNotInterestedMessage.cc
  7557. * src/BtNotInterestedMessage.h
  7558. * src/BtRegistry.cc
  7559. * src/BtRegistry.h
  7560. * src/BtSeederStateChoke.cc
  7561. * src/BtSetup.cc
  7562. * src/DHTGetPeersCommand.cc
  7563. * src/DHTGetPeersCommand.h
  7564. * src/DHTPeerAnnounceEntry.cc
  7565. * src/DHTPeerAnnounceEntry.h
  7566. * src/DHTPeerAnnounceStorage.cc
  7567. * src/DHTPeerAnnounceStorage.h
  7568. * src/DHTPeerLookupTask.cc
  7569. * src/DHTPeerLookupTask.h
  7570. * src/DHTSetup.cc
  7571. * src/DHTSetup.h
  7572. * src/DHTTaskFactory.h
  7573. * src/DHTTaskFactoryImpl.cc
  7574. * src/DHTTaskFactoryImpl.h
  7575. * src/DefaultBtAnnounce.cc
  7576. * src/DefaultBtInteractive.cc
  7577. * src/DefaultBtInteractive.h
  7578. * src/DefaultBtMessageDispatcher.cc
  7579. * src/DefaultBtMessageDispatcher.h
  7580. * src/DefaultBtMessageFactory.cc
  7581. * src/DefaultBtMessageFactory.h
  7582. * src/DefaultBtMessageReceiver.cc
  7583. * src/DefaultBtProgressInfoFile.cc
  7584. * src/DefaultBtProgressInfoFile.h
  7585. * src/DefaultBtRequestFactory.cc
  7586. * src/DefaultBtRequestFactory.h
  7587. * src/DefaultExtensionMessageFactory.cc
  7588. * src/DefaultExtensionMessageFactory.h
  7589. * src/DefaultPeerStorage.cc
  7590. * src/DefaultPeerStorage.h
  7591. * src/DownloadEngine.cc
  7592. * src/DownloadEngine.h
  7593. * src/InitiatorMSEHandshakeCommand.cc
  7594. * src/InitiatorMSEHandshakeCommand.h
  7595. * src/MSEHandshake.cc
  7596. * src/MSEHandshake.h
  7597. * src/Makefile.am
  7598. * src/Makefile.in
  7599. * src/PeerChokeCommand.cc
  7600. * src/PeerChokeCommand.h
  7601. * src/PeerInitiateConnectionCommand.cc
  7602. * src/PeerInitiateConnectionCommand.h
  7603. * src/PeerInteractionCommand.cc
  7604. * src/PeerInteractionCommand.h
  7605. * src/PeerObject.h
  7606. * src/PeerReceiveHandshakeCommand.cc
  7607. * src/PeerReceiveHandshakeCommand.h
  7608. * src/ReceiverMSEHandshakeCommand.cc
  7609. * src/RequestGroup.cc
  7610. * src/RequestGroup.h
  7611. * src/RequestGroupMan.cc
  7612. * src/RequestGroupMan.h
  7613. * src/SeedCheckCommand.cc
  7614. * src/SeedCheckCommand.h
  7615. * src/ShareRatioSeedCriteria.h
  7616. * src/SimpleBtMessage.cc
  7617. * src/TrackerWatcherCommand.cc
  7618. * src/TrackerWatcherCommand.h
  7619. * src/UTPexExtensionMessage.cc
  7620. * src/UTPexExtensionMessage.h
  7621. * test/BtCancelMessageTest.cc
  7622. * test/BtChokeMessageTest.cc
  7623. * test/BtExtendedMessageTest.cc
  7624. * test/BtInterestedMessageTest.cc
  7625. * test/BtNotInterestedMessageTest.cc
  7626. * test/BtPieceMessageTest.cc
  7627. * test/BtPortMessageTest.cc
  7628. * test/BtRegistryTest.cc
  7629. * test/BtRejectMessageTest.cc
  7630. * test/BtRequestMessageTest.cc
  7631. * test/DHTPeerAnnounceEntryTest.cc
  7632. * test/DHTPeerAnnounceStorageTest.cc
  7633. * test/DefaultBtMessageDispatcherTest.cc
  7634. * test/DefaultBtMessageFactoryTest.cc
  7635. * test/DefaultBtProgressInfoFileTest.cc
  7636. * test/DefaultBtRequestFactoryTest.cc
  7637. * test/DefaultExtensionMessageFactoryTest.cc
  7638. * test/MSEHandshakeTest.cc
  7639. * test/MockDHTTaskFactory.h
  7640. * test/ShareRatioSeedCriteriaTest.cc
  7641. * test/UTPexExtensionMessageTest.cc
  7642. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Fixed compiler warning.
  7644. * test/UtilTest.cc
  7645. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Treat Cookie object as session cookie if expiry = 0 is given.
  7647. With this change, you can specify session scoped cookies in an external
  7648. file setting expiry value to 0.
  7649. * src/Cookie.cc
  7650. * src/Cookie.h
  7651. * test/CookieParserTest.cc
  7652. * test/CookieStorageTest.cc
  7653. * test/CookieTest.cc
  7654. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Changed signature of DHTMessageFactory::createResponseMessage().
  7656. Removed unused validateIDMatch.
  7657. * src/DHTMessageFactory.h
  7658. * src/DHTMessageFactoryImpl.cc
  7659. * src/DHTMessageFactoryImpl.h
  7660. * src/DHTMessageTracker.cc
  7661. * test/DHTMessageFactoryImplTest.cc
  7662. * test/MockDHTMessageFactory.h
  7663. Dropped DHT message coming from same ID of localhost.
  7664. * src/DHTMessageReceiver.cc
  7665. Rejected adding node whose ID is the same as localhost's.
  7666. * src/DHTRoutingTable.cc
  7667. * test/BtPortMessageTest.cc
  7668. * test/DHTRoutingTableTest.cc
  7669. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Pool connection when redirection occurs with Content-Length = 0.
  7671. * src/HttpSkipResponseCommand.cc
  7672. * src/HttpSkipResponseCommand.h
  7673. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Fixed the bug that causes time out when redirection occurs with
  7675. content-length 0.
  7676. * src/HttpResponseCommand.cc
  7677. * src/HttpSkipResponseCommand.cc
  7678. * src/HttpSkipResponseCommand.h
  7679. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. Now each status legends is shown only when it appears in Download
  7681. Result. If Download Result has no item, then status legend will not
  7682. be printed.
  7683. * src/RequestGroupMan.cc
  7684. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Removed duplicate creation of OptionHandlers.
  7686. * src/option_processing.cc
  7687. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Fixed the bug that causes segmentation fault when accessing files which
  7689. don't exist or are not included in --select-file option while
  7690. validating chunk checksum.
  7691. * src/MultiDiskAdaptor.cc
  7692. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Fixed compiler warning.
  7694. * test/UtilTest.cc
  7695. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7697. * src/IteratableChecksumValidator.cc
  7698. * src/IteratableChunkChecksumValidator.cc
  7699. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. * Release 0.16.2
  7701. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Added Serbian translation. Updated Ukrainian translation.
  7703. Thanks to all translators.
  7704. * po/sr.po
  7705. * po/uk.po
  7706. * po/LINGUAS
  7707. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Bump up version number to 0.16.2
  7709. * configure.ac
  7710. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Added length equality test to operator== to drop a piece message
  7712. whose length does not match to the requested one.
  7713. * src/RequestSlot.cc
  7714. * test/DefaultBtMessageDispatcherTest.cc
  7715. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7717. recieved.
  7718. In this fix, if a request larger than 16KiB length is received, aria2
  7719. disconnects the peer.
  7720. * src/BtConstants.h
  7721. * src/PeerMessageUtil.cc
  7722. * src/PeerMessageUtil.h
  7723. * test/BtRequestMessageTest.cc
  7724. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. * Release 0.16.1
  7726. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7728. * doc/aria2c.1.txt
  7729. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7731. Updated French, Simplified Chinese and Japanese translations.
  7732. Thanks to all translators.
  7733. en@quot and en@boldquot are also added.
  7734. * po/LINGUAS
  7735. * po/fr.po
  7736. * po/ja.po
  7737. * po/uk.po
  7738. * po/vi.po
  7739. * po/zh_CN.po
  7740. * po/zh_TW.po
  7741. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Bump up version number to 0.16.1.
  7743. * configure.ac
  7744. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Updated README.
  7746. * README
  7747. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7749. not to replace '--' with em dash character.
  7750. * doc/aria2c.1.txt
  7751. * doc/makeman
  7752. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7754. every SEC seconds.
  7755. * src/DownloadEngineFactory.cc
  7756. * src/OptionHandlerFactory.cc
  7757. * src/option_processing.cc
  7758. * src/usage_text.h
  7759. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Fixed compile warning on linux-amd64
  7761. * src/FtpConnection.cc
  7762. * src/IteratableChunkChecksumValidator.cc
  7763. * src/MultiDiskAdaptor.cc
  7764. Fixed the bug that unit test fails on linux-amd64
  7765. * test/UtilTest.cc
  7766. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Added --dht-file-path option to change the path to dht.dat, which is a
  7768. serialized DHT routing table.
  7769. * src/OptionHandlerFactory.cc
  7770. * src/option_processing.cc
  7771. * src/usage_text.h
  7772. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Fixed possible underflow.
  7774. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7775. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Fixed the bug that last character in URI is not encoded.
  7777. * src/Request.cc
  7778. * test/RequestTest.cc
  7779. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Fixed the bug that referer header field contains fragment.
  7781. Now Request class removes fragment part of URI and encodes it
  7782. in Request::setUri() and setReferer().
  7783. * src/Request.h
  7784. * src/Request.cc
  7785. * test/RequestTest.cc
  7786. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Added missing m4 macros.
  7788. * m4/cppunit.m4
  7789. * m4/libgcrypt.m4
  7790. * m4/libgnutls-extra.m4
  7791. * m4/libgnutls.m4
  7792. * m4/libxml2.m4
  7793. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Fixed compile error with gcc-4.4(snapshot)
  7795. * src/File.cc
  7796. * src/FtpConnection.cc
  7797. * src/OptionHandlerImpl.h
  7798. * src/Util.cc
  7799. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Removed assert()
  7801. * src/SocketBuffer.cc (SocketBuffer::send)
  7802. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Changed the type of _numNewConnection to unsigned int.
  7804. * src/ActivePeerConnectionCommand.cc
  7805. * src/ActivePeerConnectionCommand.h
  7806. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. * Release 0.16.0
  7808. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Updated doc
  7810. * README
  7811. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7813. translations. Thanks to all translators.
  7814. * po/bg.po
  7815. * po/de.po
  7816. * po/fr.po
  7817. * po/ja.po
  7818. * po/zh_CN.po
  7819. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Bump up version number to 0.16.0.
  7821. * configure.ac
  7822. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7824. int32_t.
  7825. Changed the type of count to int32_t.
  7826. * src/Metalink2RequestGroup.cc
  7827. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Added test for Time::elapsed(time_t).
  7829. * test/TimeTest.cc
  7830. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7832. Util::difftv() should be used instead.
  7833. * src/TimeA2.cc
  7834. * src/TimeA2.h
  7835. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Made socket for dht connections non-blocking
  7837. * src/DHTAbstractMessage.cc
  7838. * src/DHTAbstractMessage.h
  7839. * src/DHTConnection.h
  7840. * src/DHTConnectionImpl.cc
  7841. * src/DHTConnectionImpl.h
  7842. * src/DHTMessage.h
  7843. * src/DHTMessageDispatcherImpl.cc
  7844. * src/DHTMessageDispatcherImpl.h
  7845. * src/DHTUnknownMessage.cc
  7846. * src/DHTUnknownMessage.h
  7847. * src/SocketCore.cc
  7848. * src/SocketCore.h
  7849. * test/MockDHTMessage.h
  7850. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Changed the type of offset to int.
  7852. * src/ParameterizedStringParser.cc
  7853. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Made getAsInt() return int32_t
  7855. * src/Option.h
  7856. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7858. build.
  7859. * configure.ac
  7860. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Use sqlite3_open if sqlite3_open_v2 is not available.
  7862. * src/Sqlite3MozCookieParser.cc
  7863. * src/Sqlite3MozCookieParser.h
  7864. * m4/sqlite3.m4
  7865. * test/Sqlite3MozCookieParserTest.cc
  7866. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7868. * src/BtPieceMessage.cc
  7869. * src/DHTPeerAnnounceStorage.cc
  7870. * src/DefaultPieceStorage.cc
  7871. * src/DownloadCommand.cc
  7872. * src/DownloadEngine.cc
  7873. * src/FtpConnection.cc
  7874. * src/PeerConnection.cc
  7875. * src/PeerMessageUtil.cc
  7876. * src/RequestGroup.cc
  7877. * src/RequestGroupMan.cc
  7878. * src/SimpleBtMessage.cc
  7879. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7881. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7882. * src/AbstractDiskWriter.cc
  7883. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7884. Don't set Request::supportsPersistentConnection() in HttpConnection
  7885. since this code is also used in AbstractProxyResponseCommand.
  7886. Moved those code to HttpResponse.
  7887. * src/HttpResponse.cc
  7888. * src/HttpResponse.h
  7889. * src/HttpConnection.cc
  7890. * src/HttpConnection.h
  7891. * src/HttpResponseCommand.cc
  7892. * test/HttpResponseTest.cc
  7893. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7895. The configuration is minimum: no torrent, no metalink, so there may be
  7896. other compile error on their code.
  7897. * src/a2netcompat.h
  7898. * src/File.cc
  7899. * src/File.h
  7900. * src/SocketCore.cc
  7901. * src/SocketCore.h
  7902. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Made a socket of incoming peer non-blocking.
  7904. * src/PeerListenCommand.cc
  7905. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7907. whole message data is not sent in one send() call.
  7908. * src/BtPieceMessage.cc
  7909. * src/BtPieceMessage.h
  7910. * src/PeerConnection.cc
  7911. * src/PeerConnection.h
  7912. * src/SimpleBtMessage.cc
  7913. * src/SimpleBtMessage.h
  7914. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Fixed the bug that aria2 downloads faster than max-download-limit when
  7916. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7917. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7918. , instead of sum of them.
  7919. * src/ActivePeerConnectionCommand.cc
  7920. * src/DefaultBtInteractive.cc
  7921. * src/DownloadCommand.cc
  7922. * src/PeerInteractionCommand.cc
  7923. * src/PeerReceiveHandshakeCommand.cc
  7924. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Fixed the bug that HTTPS download fails.
  7926. * src/AbstractCommand.cc
  7927. * src/AbstractCommand.h
  7928. * src/DownloadCommand.cc
  7929. * src/FtpConnection.cc
  7930. * src/HttpConnection.cc
  7931. * src/HttpRequestCommand.cc
  7932. * src/HttpResponseCommand.cc
  7933. * src/HttpSkipResponseCommand.cc
  7934. * src/MSEHandshake.cc
  7935. * src/PeerConnection.cc
  7936. * src/SocketCore.cc
  7937. * src/SocketCore.h
  7938. Fixed the bug that aria2 doesn't download whole content body and cannot
  7939. reuse connection if chunked transfer encoding and gzip content encoding
  7940. are set.
  7941. * src/DownloadCommand.cc
  7942. * src/HttpSkipResponseCommand.cc
  7943. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Updated man page.
  7945. * doc/aria2c.1.txt
  7946. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. When error occurred while aria2 was parsing an .aria2.conf file, print
  7948. the usage of the option that caused error.
  7949. * src/option_processing.cc
  7950. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Fixed compile error on OptionHandlerException
  7952. * src/Makefile.am
  7953. * src/OptionHandlerException.cc
  7954. * src/OptionHandlerException.h
  7955. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Moved message of the error to OptionHandlerException.h
  7957. * src/NameMatchOptionHandler.h
  7958. * src/OptionHandlerException.h
  7959. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. When error occurs while aria2 is parsing an command-line option, print
  7961. the usage of the option.
  7962. * src/Makefile.am
  7963. * src/NameMatchOptionHandler.h
  7964. * src/OptionHandlerException.h
  7965. * src/option_processing.cc
  7966. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Reverted previous change.
  7968. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7969. username is not in URI.
  7970. * src/HttpRequest.cc
  7971. * src/Request.cc
  7972. * test/HttpRequestTest.cc
  7973. * test/RequestTest.cc
  7974. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Now colon is required for username and password in FTP URL, like:
  7976. ftp://username:password@host.
  7977. If colon is not there, aria2 don't parse it as a username. For example,
  7978. aria2 don't retrieve username from ftp://username@host.
  7979. This fix was made in order to login FTP server via non-transparent ftp
  7980. proxy.
  7981. * src/Request.cc
  7982. * test/RequestTest.cc
  7983. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Use netrc for HTTP.
  7985. Now FTP user/password is sent in Authorization header when
  7986. --ftp-via-http-proxy=get is given.
  7987. * src/AuthConfigFactory.cc
  7988. * src/HttpRequest.cc
  7989. * src/HttpRequest.h
  7990. * src/NetrcAuthResolver.cc
  7991. * src/NetrcAuthResolver.h
  7992. * src/OptionHandlerFactory.cc
  7993. * src/option_processing.cc
  7994. * src/prefs.cc
  7995. * src/prefs.h
  7996. * test/AuthConfigFactoryTest.cc
  7997. * test/HttpRequestTest.cc
  7998. * test/NetrcAuthResolverTest.cc
  7999. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Issue PWD command first and get working directory and use it as a prefix
  8001. for CWD command.
  8002. * src/DownloadEngine.cc
  8003. * src/DownloadEngine.h
  8004. * src/FtpConnection.cc
  8005. * src/FtpConnection.h
  8006. * src/FtpFinishDownloadCommand.cc
  8007. * src/FtpInitiateConnectionCommand.cc
  8008. * src/FtpNegotiationCommand.cc
  8009. * src/FtpNegotiationCommand.h
  8010. * test/FtpConnectionTest.cc
  8011. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Removed default user/pass for FTP user/pass, since it should not have
  8013. precedence over netrc configuration by default.
  8014. * src/OptionHandlerFactory.cc
  8015. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Added debug log for socket event.
  8017. * src/AbstractCommand.cc
  8018. * src/PeerAbstractCommand.cc
  8019. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Log microseconds.
  8021. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8022. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Replaced HelpItem.cc with OptionHandler.cc.
  8024. * po/POTFILES.in
  8025. Updated po files with 'make update-po'
  8026. * po/aria2c.pot
  8027. * po/*.po
  8028. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Removed possible values from the text.
  8030. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8031. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Removed unused preferences:
  8033. PREF_NO_PREALLOCATION
  8034. PREF_STDOUT_LOG
  8035. PREF_TRACKER_MAX_TRIES
  8036. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8037. PREF_MIN_SEGMENT_SIZE
  8038. * src/option_processing.cc
  8039. * src/prefs.cc
  8040. * src/prefs.h
  8041. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. Integrated HelpItem into OptionParser to ease the workload for adding
  8043. new options. Removed default value from usage text.
  8044. * src/HelpItem.cc: Removed.
  8045. * src/HelpItem.h: Removed.
  8046. * src/HelpItemFactory.cc: Removed.
  8047. * src/HelpItemFactory.h: Removed.
  8048. * src/Makefile.am
  8049. * src/Makefile.in
  8050. * src/NameMatchOptionHandler.h
  8051. * src/OptionHandler.cc
  8052. * src/OptionHandler.h
  8053. * src/OptionHandlerFactory.cc
  8054. * src/OptionHandlerImpl.h
  8055. * src/OptionParser.cc
  8056. * src/OptionParser.h
  8057. * src/TagContainer.cc: Removed.
  8058. * src/TagContainer.h: Removed.
  8059. * src/TaggedItem.cc: Removed.
  8060. * src/TaggedItem.h: Removed.
  8061. * src/main.cc
  8062. * src/option_processing.cc
  8063. * src/usage_text.h
  8064. * src/version_usage.cc
  8065. * test/HelpItemTest.cc: Removed.
  8066. * test/Makefile.am
  8067. * test/Makefile.in
  8068. * test/OptionHandlerTest.cc
  8069. * test/OptionParserTest.cc
  8070. * test/TagContainerTest.cc: Removed.
  8071. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Moved `TransferStat stat = ...' to inside the `if' clause.
  8073. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8074. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Fixed the bug that a block in a piece is requested when same block is
  8076. already requested to the same peer in end game mode.
  8077. * src/BtRequestFactory.h
  8078. * src/DefaultBtInteractive.cc
  8079. * src/DefaultBtRequestFactory.cc
  8080. * src/DefaultBtRequestFactory.h
  8081. * src/DefaultPieceStorage.cc
  8082. * src/DefaultPieceStorage.h
  8083. * src/PieceStorage.h
  8084. * src/UnknownLengthPieceStorage.cc
  8085. * src/UnknownLengthPieceStorage.h
  8086. * test/DefaultBtRequestFactoryTest.cc
  8087. * test/DefaultPieceStorageTest.cc
  8088. * test/MockBtRequestFactory.h
  8089. * test/MockPieceStorage.h
  8090. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Removed _uploadLength and _downloadLength from PeerSessionResource
  8092. and use PeerStat::_sessionUploadLength and
  8093. PeerStat::_sessionDownloadLength.
  8094. * src/PeerSessionResource.cc
  8095. * src/PeerSessionResource.h
  8096. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Fixed the bug that prefixLength of split bucket which doesn't include
  8098. local node ID is incremented.
  8099. * src/DHTBucket.cc
  8100. * src/DHTBucket.h
  8101. * test/DHTBucketTest.cc
  8102. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Added cookies.sqlite to EXTRA_DIST
  8104. * test/Makefile.am
  8105. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Added Turkish translation. Updated French, German, Russian and
  8107. Simplified Chinese translations. Thanks to all translators.
  8108. * po/LINGUAS
  8109. * po/de.po
  8110. * po/fr.po
  8111. * po/ru.po
  8112. * po/tr.po
  8113. * po/zh_CN.po
  8114. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Added deliminating text to the beginning of the log so that one can find
  8116. where the log starts easily.
  8117. * src/main.cc
  8118. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8120. to fix compile error when async DNS is not enabled by configuration.
  8121. * src/AbstractCommand.cc
  8122. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. If establishing conneciton to a server is failed, then mark error on
  8124. its ServerStat.
  8125. Added the cause of error to log when error event occurred.
  8126. Moved message string to message.h for translation.
  8127. * src/AbstractCommand.cc
  8128. * src/AbstractCommand.h
  8129. * src/FtpNegotiationCommand.cc
  8130. * src/HttpRequestCommand.cc
  8131. * src/PeerAbstractCommand.cc
  8132. * src/message.h
  8133. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Added the function to get error message from socket.
  8135. * src/SocketCore.cc
  8136. * src/SocketCore.h
  8137. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8139. * src/RequestGroupMan.cc
  8140. * src/RequestGroupMan.h
  8141. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. If error event is received in epoll, then abort download immediately.
  8143. * src/AbstractCommand.cc
  8144. * src/Command.cc
  8145. * src/Command.h
  8146. * src/DownloadEngine.cc
  8147. * src/PeerAbstractCommand.cc
  8148. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Added usage message for --uri-selector, --server-stat-of,
  8150. --server-stat-in, --server-stat-timeout options.
  8151. * src/HelpItemFactory.cc
  8152. * src/usage_text.h
  8153. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Added upper limit of FTP response buffer. The current implementation
  8155. uses 4096bytes as a limit.
  8156. * src/FtpConnection.cc
  8157. * src/FtpConnection.h
  8158. * test/FtpConnectionTest.cc
  8159. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Use non-blocking socket for TCP communication to avoid possible
  8161. blocking due to buffer full.
  8162. * src/AbstractProxyRequestCommand.cc
  8163. * src/FtpConnection.cc
  8164. * src/FtpConnection.h
  8165. * src/FtpNegotiationCommand.cc
  8166. * src/FtpNegotiationCommand.h
  8167. * src/HttpConnection.cc
  8168. * src/HttpConnection.h
  8169. * src/HttpRequestCommand.cc
  8170. * src/InitiatorMSEHandshakeCommand.cc
  8171. * src/InitiatorMSEHandshakeCommand.h
  8172. * src/MSEHandshake.cc
  8173. * src/MSEHandshake.h
  8174. * src/Makefile.am
  8175. * src/PeerConnection.cc
  8176. * src/PeerConnection.h
  8177. * src/PeerInteractionCommand.cc
  8178. * src/PeerListenCommand.cc
  8179. * src/ReceiverMSEHandshakeCommand.cc
  8180. * src/ReceiverMSEHandshakeCommand.h
  8181. * src/SocketBuffer.cc
  8182. * src/SocketBuffer.h
  8183. * src/SocketCore.cc
  8184. * src/SocketCore.h
  8185. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Call setStatusRealtime() in constructor.
  8187. * src/RealtimeCommand.cc
  8188. * src/RealtimeCommand.h
  8189. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Call Download::setNoWait(true) to execute newly created command without
  8191. a pause.
  8192. * src/AbstractCommand.cc
  8193. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8195. found' error from HTTP/FTP server NUM times without getting single
  8196. bytes of data, then force the download to fail.
  8197. Basically aria2 tris all URIs available. So if long list of URIs are
  8198. specified in Metalink, then aria2 will take a long time to fail
  8199. eventually if all URIs are outdated. This option eases this situation
  8200. to limit the number of servers to try.
  8201. * src/FtpNegotiationCommand.cc
  8202. * src/HelpItemFactory.cc
  8203. * src/HttpResponseCommand.cc
  8204. * src/OptionHandlerFactory.cc
  8205. * src/PeerStat.h
  8206. * src/RequestGroup.cc
  8207. * src/RequestGroup.h
  8208. * src/SegmentMan.cc
  8209. * src/SegmentMan.h
  8210. * src/option_processing.cc
  8211. * src/prefs.cc
  8212. * src/prefs.h
  8213. * src/usage_text.h
  8214. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8215. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8216. response even if more than one response is in it.
  8217. * src/FtpConnection.cc
  8218. * src/FtpConnection.h
  8219. * test/FtpConnectionTest.cc
  8220. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Merged from stable-0.15
  8222. * m4/libcares.m4
  8223. Use pkg-config
  8224. * m4/sqlite3.m4
  8225. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Removed unnecessary if statement.
  8227. * src/DefaultPieceStorage.cc (initPieceStorage)
  8228. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Added --connect-timeout option to specify connect timeout in seconds.
  8230. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8231. connecting to BitTorrent peer is not controlled by this option.
  8232. * src/AbstractProxyRequestCommand.cc
  8233. * src/FtpNegotiationCommand.cc
  8234. * src/HelpItemFactory.cc
  8235. * src/HttpRequestCommand.cc
  8236. * src/OptionHandlerFactory.cc
  8237. * src/option_processing.cc
  8238. * src/prefs.cc
  8239. * src/prefs.h
  8240. * src/usage_text.h
  8241. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Added help message for -R option.
  8243. * src/HelpItemFactory.cc
  8244. * src/usage_text.h
  8245. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Added the message that the time is in local time zone.
  8247. * src/RequestGroup.cc
  8248. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Implemented the ability to get timestamp from remote FTP server using
  8250. MDTM command described in RFC3659.
  8251. * src/FtpConnection.cc
  8252. * src/FtpConnection.h
  8253. * src/FtpNegotiationCommand.cc
  8254. * src/FtpNegotiationCommand.h
  8255. * test/FtpConnectionTest.cc
  8256. * test/Makefile.am
  8257. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Implemented the ability to get timestamp from remote HTTP server and
  8259. apply it to local file. To enable this feature, --remote-time option
  8260. is added. No usage text has been written yet.
  8261. If several servers returns difference timestamp, then aria2 uses latest
  8262. one.
  8263. * src/CopyDiskAdaptor.cc
  8264. * src/CopyDiskAdaptor.h
  8265. * src/DirectDiskAdaptor.cc
  8266. * src/DirectDiskAdaptor.h
  8267. * src/DiskAdaptor.h
  8268. * src/File.cc
  8269. * src/File.h
  8270. * src/HttpHeader.cc
  8271. * src/HttpHeader.h
  8272. * src/HttpResponse.cc
  8273. * src/HttpResponse.h
  8274. * src/HttpResponseCommand.cc
  8275. * src/HttpResponseCommand.h
  8276. * src/MultiDiskAdaptor.cc
  8277. * src/MultiDiskAdaptor.h
  8278. * src/OptionHandlerFactory.cc
  8279. * src/RequestGroup.cc
  8280. * src/RequestGroup.h
  8281. * src/RequestGroupMan.cc
  8282. * src/option_processing.cc
  8283. * src/prefs.cc
  8284. * src/prefs.h
  8285. * test/CopyDiskAdaptorTest.cc
  8286. * test/FileTest.cc
  8287. * test/Makefile.am
  8288. * test/Makefile.in
  8289. * test/MultiDiskAdaptorTest.cc
  8290. * test/TestUtil.cc
  8291. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Fixed the bug that DiskWriterEntry is not created when its
  8293. FileEntry.isRequested() is false and it doesn't share a piece with
  8294. other FileEntries that are requested. This bug causes segmentation fault
  8295. in the end.
  8296. * src/MultiDiskAdaptor.cc
  8297. * src/MultiDiskAdaptor.h
  8298. * src/MultiFileAllocationIterator.cc
  8299. * test/MultiDiskAdaptorTest.cc
  8300. * test/MultiFileAllocationIteratorTest.cc
  8301. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8303. called if the number of file entries are greater than max open files.
  8304. * src/AbstractSingleDiskAdaptor.cc
  8305. * src/AbstractSingleDiskAdaptor.h
  8306. * src/DiskAdaptor.h
  8307. * src/MultiDiskAdaptor.cc
  8308. * src/MultiDiskAdaptor.h
  8309. * test/MultiDiskAdaptorTest.cc
  8310. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Added a constuctor that receives struct timeval.
  8312. Added operator<.
  8313. * src/TimeA2.cc
  8314. * src/TimeA2.h
  8315. * test/TimeTest.cc
  8316. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8318. * src/CookieParser.cc
  8319. * test/CookieParserTest.cc
  8320. * test/HttpResponseTest.cc
  8321. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Implmented the functions to parse date.
  8323. * src/TimeA2.cc
  8324. * src/TimeA2.h
  8325. * test/TimeTest.cc
  8326. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Added "Firefox3 Cookie" feature to FeatureConfig
  8328. * src/FeatureConfig.cc
  8329. * src/FeatureConfig.h
  8330. * test/FeatureConfigTest.cc
  8331. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Bump up version number to 0.16.0b
  8333. * configure.ac
  8334. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Use pkg-config if is is available.
  8336. * m4/openssl.m4
  8337. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8339. * src/BtAnnounce.h
  8340. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. If an error occurred with a URI, remove identical URI from remaining
  8342. URI list because it is likely that same error occurred in the end and it
  8343. is waste of time.
  8344. * src/AbstractCommand.cc
  8345. * src/RequestGroup.cc
  8346. * src/RequestGroup.h
  8347. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Removed wrong comment.
  8349. * src/DefaultPeerStorage.cc
  8350. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8351. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8352. Added return value of getpid() to argument of srand() to achieve more
  8353. randomized value.
  8354. * src/SimpleRandomizer.cc
  8355. * src/SimpleRandomizer.h
  8356. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Contact tracker frequently when the number of connections are 0 and
  8358. download is not finished yet.
  8359. * src/ActivePeerConnectionCommand.cc
  8360. * src/BtAnnounce.h
  8361. * src/DefaultBtAnnounce.cc
  8362. * src/DefaultBtAnnounce.h
  8363. * test/MockBtAnnounce.h
  8364. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Moved threshold values to UTPexExtensionMessage.
  8366. * src/DefaultBtInteractive.cc
  8367. * src/Peer.cc
  8368. * src/Peer.h
  8369. * src/UTPexExtensionMessage.cc
  8370. * src/UTPexExtensionMessage.h
  8371. * test/UTPexExtensionMessageTest.cc
  8372. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Added _incoming member to Peer class and made it true if the peer
  8374. initiated connection. Don't add those peer to UTPex message.
  8375. If extended handshake is received, assign _incoming to false.
  8376. * src/DefaultBtInteractive.cc
  8377. * src/HandshakeExtensionMessage.cc
  8378. * src/Peer.cc
  8379. * src/Peer.h
  8380. * src/PeerListenCommand.cc
  8381. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8383. Encoding Decoder. Removed size threshold for turning off on the fly
  8384. inflation because resulting file may or may not be inflated depending
  8385. on the file size and I think it is not expected by users.
  8386. This change fixes segmentation fault when Metalink file contains gzipped
  8387. file and its filesize is provided.
  8388. * src/HttpResponseCommand.cc
  8389. * src/HttpResponseCommand.h
  8390. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. Made Cookie immutable.
  8392. * src/Cookie.cc
  8393. * src/Cookie.h
  8394. * src/CookieParser.cc
  8395. * src/CookieParser.h
  8396. * src/CookieStorage.cc
  8397. * test/CookieParserTest.cc
  8398. * test/CookieStorageTest.cc
  8399. * test/NsCookieParserTest.cc
  8400. * test/Sqlite3MozCookieParserTest.cc
  8401. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Removed CookieBox, CookieBoxFactory.
  8403. * src/CookieBox.cc
  8404. * src/CookieBox.h
  8405. * src/CookieBoxFactory.cc
  8406. * src/CookieBoxFactory.h
  8407. * src/Makefile.am
  8408. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Use CookieStorage class instead of CookieBox class.
  8410. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8411. * src/AbstractProxyRequestCommand.cc
  8412. * src/CookieStorage.cc
  8413. * src/DownloadEngine.cc
  8414. * src/DownloadEngine.h
  8415. * src/HttpConnection.cc
  8416. * src/HttpConnection.h
  8417. * src/HttpRequest.cc
  8418. * src/HttpRequest.h
  8419. * src/HttpRequestCommand.cc
  8420. * src/HttpResponse.cc
  8421. * src/HttpResponseCommand.cc
  8422. * src/HttpSkipResponseCommand.cc
  8423. * src/Makefile.am
  8424. * src/MultiUrlRequestInfo.cc
  8425. * src/Request.cc
  8426. * src/Request.h
  8427. * src/main.cc
  8428. * test/AllTest.cc
  8429. * test/CookieStorageTest.cc
  8430. * test/CookieTest.cc
  8431. * test/HttpRequestTest.cc
  8432. * test/HttpResponseTest.cc
  8433. * test/Makefile.am
  8434. * test/NsCookieParserTest.cc
  8435. * test/Sqlite3MozCookieParserTest.cc
  8436. * test/nscookietest.txt
  8437. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Updated
  8439. * test/Cookies.sqlite
  8440. * test/nscookietest.txt
  8441. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Added tests for CookieStorage::load()
  8443. * test/CookieStorageTest.cc
  8444. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Added CookieStorage class which is based on RFC2109 and manages cookies
  8446. more strictly than CookieBox and CookieBoxFactory class.
  8447. * src/CookieStorage.cc
  8448. * src/CookieStorage.h
  8449. * src/Cookie.cc
  8450. * src/Cookie.h
  8451. * test/CookieStorageTest.cc
  8452. * test/CookieTest.cc
  8453. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Fixed the bug that commands are created more than the number of pieces.
  8455. * src/RequestGroup.cc
  8456. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Fixed infinite loop bug in FTP when SIZE command failed.
  8458. * src/FtpNegotiationCommand.cc
  8459. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Removed DirectDiskAdaptorTest.h
  8461. * test/Makefile.am
  8462. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Fixed chunk checksum validation cannot detect trailing garbage data.
  8464. BUG#2074141
  8465. * src/AbstractSingleDiskAdaptor.cc
  8466. * src/AbstractSingleDiskAdaptor.h
  8467. * src/CheckIntegrityEntry.cc
  8468. * src/CheckIntegrityEntry.h
  8469. * src/DiskAdaptor.h
  8470. * src/MultiDiskAdaptor.cc
  8471. * src/MultiDiskAdaptor.h
  8472. * src/RequestGroup.cc
  8473. * test/DirectDiskAdaptorTest.cc
  8474. * test/MultiDiskAdaptorTest.cc
  8475. * test/TestUtil.cc
  8476. * test/TestUtil.h
  8477. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Bump up version number of dht.dat file to 3. In version 3 format, time
  8479. is stored in 64bit, network byte order.
  8480. New build can load old format(version 2) but it saves the file in new
  8481. format. It means once you used new build, your dht.dat becomes
  8482. incompatible with older build.
  8483. * src/DHTRoutingTableDeserializer.cc
  8484. * src/DHTRoutingTableSerializer.cc
  8485. * test/DHTRoutingTableSerializerTest.cc
  8486. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8488. * test/Makefile.am
  8489. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Bump up version number of .aria2 control file to 0001.
  8491. New aria2 can still load version 0000 file but it saves the file in
  8492. version 0001 format. It means that new aria2 can resume download
  8493. started by old aria2 but the opposite is not true.
  8494. * src/DefaultBtProgressInfoFile.cc
  8495. * src/DefaultBtProgressInfoFile.h
  8496. * test/DefaultBtProgressInfoFileTest.cc
  8497. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Added ntoh64 and hton64 as inline functions.
  8499. * src/Util.cc
  8500. * test/UtilTest.cc
  8501. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Added sqlite3 depenency and Firefox3 cookie support.
  8503. * README
  8504. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. State that firefox3 cookie is supported explicitly in the usage.
  8506. * src/usage_text.h
  8507. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Externalized message.
  8509. * src/RequestGroupMan.cc
  8510. * src/message.h
  8511. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Save temporary file first and rename to the destination on success.
  8513. Added test cases.
  8514. * src/RequestGroupMan.cc
  8515. * test/RequestGroupManTest.cc
  8516. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Fixed the bug that the number of connected peer is exceeding the limit
  8518. (55 by default) in seeding mode.
  8519. Multiplied 0.8 to _maxUploadSpeedLimit.
  8520. * src/ActivePeerConnectionCommand.cc
  8521. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Clear table item.
  8523. * src/Dictionary.cc
  8524. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Fixed error handling of lseek.
  8526. * src/AbstractDiskWriter.cc
  8527. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8529. style cookie file.
  8530. * src/usage_text.h
  8531. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8533. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8534. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8535. * src/Util.cc
  8536. * src/Util.h
  8537. * src/CookieParser.cc
  8538. * test/UtilTest.cc
  8539. * test/CookieParserTest.cc
  8540. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Separate the implementation to load old mozilla format of cookie to
  8542. NsCookieParser class.
  8543. * src/CookieBoxFactory.cc
  8544. * src/CookieBoxFactory.h
  8545. * src/NsCookieParser.cc
  8546. * src/NsCookieParser.h
  8547. * test/NsCookieParserTest.cc
  8548. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Made parse() const
  8550. * src/Sqlite3MozCookieParser.cc
  8551. * src/Sqlite3MozCookieParser.h
  8552. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Added firefox3 cookie support based on the patch submitted by
  8554. tizianomueller.
  8555. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8556. this functionality.
  8557. * configure.ac
  8558. * m4/sqlite3.m4
  8559. * src/CookieBoxFactory.cc
  8560. * src/CookieBoxFactory.h
  8561. * src/Makefile.am
  8562. * src/Makefile.in
  8563. * src/Sqlite3MozCookieParser.cc
  8564. * src/Sqlite3MozCookieParser.h
  8565. * src/main.cc
  8566. * test/CookieBoxFactoryTest.cc
  8567. * test/Makefile.am
  8568. * test/Makefile.in
  8569. * test/Sqlite3MozCookieParserTest.cc
  8570. * test/badcookies.sqlite
  8571. * test/cookies.sqlite
  8572. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Added Danish and Greek translations.
  8574. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8575. Great thanks to all translators.
  8576. * po/LINGUAS
  8577. * po/el.po
  8578. * po/da.po
  8579. * po/es.po
  8580. * po/ca.po
  8581. * po/nn.po
  8582. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Fixed man page: --follow-bittorrent should be --follow-torrent
  8584. * doc/aria2c.1.txt
  8585. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Fixed: numCommand is less than the value specified in -C option.
  8587. * src/RequestGroup.cc
  8588. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Fixed occasional assertion failure in PieceSegment.
  8590. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8591. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8592. creation of duplicate segments and one of the segment was finished then
  8593. assertion failure was caused.
  8594. * src/SegmentMan.cc
  8595. * test/SegmentManTest.cc
  8596. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Added options to load/save the server's performance/status to a file
  8598. and the timeout to drop their data.
  8599. --server-stat-of=FILE specifies the file to which performance data
  8600. is saved.
  8601. --server-stat-if=FILE specifies the file to read previously saved
  8602. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8603. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8604. TIMEOUT is specified in seconds and the default value is 24hours.
  8605. * src/MultiUrlRequestInfo.cc
  8606. * src/OptionHandlerFactory.cc
  8607. * src/RequestGroupMan.cc
  8608. * src/RequestGroupMan.h
  8609. * src/ServerStatMan.cc
  8610. * src/ServerStatMan.h
  8611. * src/option_processing.cc
  8612. * src/prefs.cc
  8613. * src/prefs.h
  8614. * test/ServerStatManTest.cc
  8615. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8617. * src/ServerStatMan.cc
  8618. * src/ServerStatMan.h
  8619. * test/ServerStatManTest.cc
  8620. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. Implemented ServerStatMan::load(...) function and its test case.
  8622. * src/ServerStat.cc
  8623. * src/ServerStat.h
  8624. * src/ServerStatMan.cc
  8625. * test/ServerStatManTest.cc
  8626. * test/ServerStatTest.cc
  8627. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Use time_t instead of int32_t. Use int64_t where milli second is
  8629. expected.
  8630. * src/TimeA2.cc
  8631. * src/TimeA2.h
  8632. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Implemented ServerStatMan::save(...) function and its test case.
  8634. * src/ServerStat.cc
  8635. * src/ServerStat.h
  8636. * src/ServerStatMan.cc
  8637. * src/ServerStatMan.h
  8638. * test/ServerStatManTest.cc
  8639. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Now aria2 uses name attribute in Metalink as local filename in
  8641. BitTorrent downloads. BUG#2033999
  8642. * src/BtContext.h
  8643. * src/BtDependency.cc
  8644. * src/DefaultBtContext.cc
  8645. * src/DefaultBtContext.h
  8646. * src/SingleFileDownloadContext.cc
  8647. * src/SingleFileDownloadContext.h
  8648. * test/BtDependencyTest.cc
  8649. * test/DefaultBtContextTest.cc
  8650. * test/MockBtContext.h
  8651. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Added AC_C_BIGENDIAN
  8653. * src/configure.ac
  8654. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Limited numCommand less than or equal to the number of piece.
  8656. * src/RequestGroup.cc
  8657. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8659. directive.
  8660. * test/DefaultPieceStorageTest.cc
  8661. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8662. Fixed memory leak in test code
  8663. * test/AnnounceListTest.cc
  8664. * test/DefaultPeerListProcessorTest.cc
  8665. * test/DefaultPeerStorageTest.cc
  8666. * test/MetaFileUtilTest.cc
  8667. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8669. * src/DefaultPieceStorage.cc
  8670. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Initialized _directIOAllowed
  8672. * src/MultiDiskAdaptor.cc
  8673. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Fixed memory leak
  8675. * src/GZipDecoder.cc
  8676. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Fixed memory leak
  8678. * src/MetalinkParserStateMachine.cc
  8679. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Fixed memory leak
  8681. * src/Dictionary.cc
  8682. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Fixed memory leak
  8684. * src/IteratableChunkChecksumValidator.h
  8685. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Fixed unmatched malloc/free.
  8687. * src/IteratableChunkChecksumValidator.cc
  8688. * src/IteratableChecksumValidator.cc
  8689. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. Removed max chunk size check. This change fixes BUG#2040169
  8691. * src/ChunkedDecoder.cc
  8692. * src/ChunkedDecoder.h
  8693. * test/ChunkedDecoderTest.cc
  8694. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Implemented download speed based URI selection algorithm.
  8696. Introduced new option --uri-selector.
  8697. If --uri-selector=feedback is given, aria2 uses download speed observed
  8698. in the previous downloads and chooses fastest server in the URI list.
  8699. Currently at most 10 URIs are considered to introduce randomeness for
  8700. finding better servers. The speed is average download speed in the
  8701. downloads.
  8702. On the other hand, if --uri-selector=inorder is given, which is default,
  8703. URI is tried in order in URI list.
  8704. The usage text for the new option has not been written yet.
  8705. * src/AbstractCommand.cc
  8706. * src/DownloadCommand.cc
  8707. * src/DownloadEngine.cc
  8708. * src/DownloadEngineFactory.cc
  8709. * src/InOrderURISelector.cc
  8710. * src/InOrderURISelector.h
  8711. * src/OptionHandlerFactory.cc
  8712. * src/PeerStat.h
  8713. * src/RequestGroup.cc
  8714. * src/RequestGroup.h
  8715. * src/RequestGroupMan.cc
  8716. * src/RequestGroupMan.h
  8717. * src/SegmentMan.cc
  8718. * src/SegmentMan.h
  8719. * src/ServerStat.cc
  8720. * src/ServerStat.h
  8721. * src/ServerStatMan.cc
  8722. * src/ServerStatMan.h
  8723. * src/ServerStatURISelector.cc
  8724. * src/ServerStatURISelector.h
  8725. * src/URISelector.h
  8726. * src/option_processing.cc
  8727. * src/prefs.cc
  8728. * src/prefs.h
  8729. * test/InOrderURISelectorTest.cc
  8730. * test/RequestGroupManTest.cc
  8731. * test/ServerStatManTest.cc
  8732. * test/ServerStatURISelectorTest.cc
  8733. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. * Release 0.15.1+2
  8735. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Bump up version number to 0.15.1+2
  8737. * configure.ac
  8738. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8740. * m4/aria2_arg.m4
  8741. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. * Release 0.15.1+1
  8743. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Bump up version number to 0.15.1+1
  8745. * configure.ac
  8746. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Fixed the bug that causes segmentaion fault when resuming download
  8748. using metalink without size tag. Reproducible only using HTTP URI.
  8749. * src/HttpResponseCommand.cc
  8750. * src/FtpNegotiationCommand.cc
  8751. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. * Release 0.15.1
  8753. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Updated Bulgarian and French translations, thanks to all translators.
  8755. * po/bg.po
  8756. * po/fr.po
  8757. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Bump up version number to 0.15.1
  8759. * configure.ac
  8760. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Avoid repeated call of gettimeofday() when calculating speed.
  8762. * src/SpeedCalc.cc
  8763. * src/SpeedCalc.h
  8764. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Removed writable check when socket's send buffer is full in BitTorrent
  8766. downloads to lower CPU usage.
  8767. * src/PeerInteractionCommand.cc
  8768. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. Fixed broken gzip inflation.
  8770. Turn off segmented downloading if gzip content is smaller than or equal
  8771. to 1MiB and inflate the data on the fly, because HTTP response header
  8772. doesn't contain the length of inflated file we can't determin where
  8773. the chunk of data should be written.
  8774. On the other hand, if gzip content is larger than 1MB, then turn off
  8775. on the fly inflation, because some servers returns "content-type: gzip"
  8776. for *.tgz, *.gz files.
  8777. * src/DownloadCommand.cc
  8778. * src/HttpResponseCommand.cc
  8779. * src/HttpResponseCommand.h
  8780. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Applied tizianomueller's patch to fix compile error.
  8782. * test/BitfieldManTest.cc
  8783. * test/BtRequestMessageTest.cc
  8784. * test/DefaultBtContextTest.cc
  8785. * test/DefaultDiskWriterTest.cc
  8786. * test/DefaultPieceStorageTest.cc
  8787. * test/HttpHeaderProcessorTest.cc
  8788. * test/HttpResponseTest.cc
  8789. * test/Metalink2RequestGroupTest.cc
  8790. * test/MetalinkParserControllerTest.cc
  8791. * test/MetalinkProcessorTest.cc
  8792. * test/PeerSessionResourceTest.cc
  8793. * test/UtilTest.cc
  8794. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. * Release 0.15.0
  8796. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Reordered src files in POTFILES.in so that usage text appears first.
  8798. * po/POTFILES.in
  8799. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Bump up version number to 0.15.0
  8801. * configure.ac
  8802. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Added Bulgarian translation.
  8804. Updated Catalan, Spanish, French and Japanese translations.
  8805. Thanks to all translators.
  8806. * po/LINGUAS
  8807. * po/bg.po
  8808. * po/ca.po
  8809. * po/es.po
  8810. * po/fr.po
  8811. * po/ja.po
  8812. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Updated feature list. Added libz for dependency section.
  8814. Added a description about unit testing using CppUnit.
  8815. * README
  8816. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Added a test for libz. Quoted where it is necessary.
  8818. * build_test.sh
  8819. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Added GZip to `Enabled Features' list.
  8821. * src/FeatureConfig.cc
  8822. * src/FeatureConfig.h
  8823. * test/FeatureConfigTest.cc
  8824. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8826. the transfer has not yet started.
  8827. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8828. * src/SegmentMan.cc
  8829. * src/SegmentMan.h
  8830. * test/SegmentManTest.cc
  8831. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Cache last calculated average download/upload speed.
  8833. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8834. cached value.
  8835. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8836. * src/PeerStat.h
  8837. * src/SpeedCalc.cc
  8838. * src/SpeedCalc.h
  8839. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Call parseUrl directly.
  8841. * src/Request.cc (resetUrl)
  8842. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Supported absolute/relative path in Location header field.
  8844. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8845. * src/HttpHeader.cc
  8846. * src/HttpHeader.h
  8847. * src/HttpResponse.cc
  8848. * src/HttpSkipResponseCommand.cc
  8849. * src/Request.cc
  8850. * test/HttpHeaderTest.cc
  8851. * test/HttpResponseTest.cc
  8852. * test/RequestTest.cc
  8853. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Changed help text for --load-cookie option.
  8855. * doc/aria2c.1.txt
  8856. * src/usage_text.h
  8857. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Regenerated test/Makefile.in to remove stale ChangeLog.
  8859. * test/Makefile.in
  8860. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Updated po files.
  8862. * po/aria2c.pot
  8863. * po/*.po
  8864. * po/*.gmo
  8865. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Bump up version number to 0.15.0b
  8867. * configure.ac
  8868. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Externalize messages.
  8870. * src/RequestGroupMan.cc
  8871. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8872. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8873. Use File::exists() instead of File::isFile() to allow non-regular file
  8874. such as block special files.
  8875. * src/AbstractDiskWriter.cc
  8876. * src/MultiDiskWriter.cc
  8877. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8879. * src/gai_strerror.h
  8880. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Fixed compile error. Thanks gknauf for the patch.
  8882. * src/asctime_r.c
  8883. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Included asctime_r.h from a2time.h.
  8885. * src/a2time.h
  8886. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Added a message "aria2 doesn't verify signature" to log message when
  8888. signature file is saved.
  8889. * src/RequestGroupMan.cc
  8890. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Added the ability to save signature when download is completed if
  8892. signature is available. The filename of signature file is the path to
  8893. download file followed by ".sig". If it already exists, then signature
  8894. will not be saved.
  8895. * src/RequestGroupMan.cc
  8896. * src/Signature.cc
  8897. * test/SignatureTest.cc
  8898. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Updated the descriptions for --bt-seed-unverified.
  8900. * doc/aria2c.1
  8901. * doc/aria2c.1.html
  8902. * doc/aria2c.1.txt
  8903. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8905. that this is not going to verify files using piece hashes.
  8906. * src/HelpItemFactory.cc
  8907. * src/OptionHandlerFactory.cc
  8908. * src/RequestGroup.cc
  8909. * src/option_processing.cc
  8910. * src/prefs.cc
  8911. * src/prefs.h
  8912. * src/usage_text.h
  8913. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Added the ability to retrieve signature from Metalink file.
  8915. A retrieved signature is stored in Signature class and it is held by
  8916. DownloadContext class. Note that aria2 doesn't verify signature.
  8917. * src/DownloadContext.cc
  8918. * src/DownloadContext.h
  8919. * src/Makefile.am
  8920. * src/Makefile.in
  8921. * src/Metalink2RequestGroup.cc
  8922. * src/MetalinkEntry.cc
  8923. * src/MetalinkEntry.h
  8924. * src/MetalinkParserController.cc
  8925. * src/MetalinkParserController.h
  8926. * src/MetalinkParserStateMachine.cc
  8927. * src/MetalinkParserStateMachine.h
  8928. * src/Signature.cc
  8929. * src/Signature.h
  8930. * src/SignatureMetalinkParserState.cc
  8931. * src/SignatureMetalinkParserState.h
  8932. * src/VerificationMetalinkParserState.cc
  8933. * src/VerificationMetalinkParserState.h
  8934. * test/Metalink2RequestGroupTest.cc
  8935. * test/MetalinkParserControllerTest.cc
  8936. * test/MetalinkProcessorTest.cc
  8937. * test/test.xml
  8938. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Close DiskAdaptor after renaming file.
  8940. * src/RequestGroup.cc
  8941. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Corrected indentation
  8943. * src/DefaultBtProgressInfoFile.cc
  8944. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Moved the calls of std::ios::exceptions() inside of try-catch block
  8946. because if an error occurred in constructor of std::fstream, then
  8947. exception is thrown immediately when std::ios::exceptions() is called
  8948. which results unhandled exception and aria2c aborts.
  8949. * src/DefaultBtProgressInfoFile.cc
  8950. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Added the test for the previous change in DefaultBtContext.cc
  8952. * test/DefaultBtContextTest.cc
  8953. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Fixed the bug that causes infinite loop when the number of pieces are
  8955. fewer than allowed fast set size which is 10 by default.
  8956. * src/DefaultBtContext.cc
  8957. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Updated the descriptions for -j, -s. Added --bt-seed.
  8959. * doc/aria2c.1
  8960. * doc/aria2c.1.html
  8961. * doc/aria2c.1.txt
  8962. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8964. aria2 seeds previously downloaded files without validating piece hashs.
  8965. * src/HelpItemFactory.cc
  8966. * src/OptionHandlerFactory.cc
  8967. * src/RequestGroup.cc
  8968. * src/option_processing.cc
  8969. * src/prefs.cc
  8970. * src/prefs.h
  8971. * src/usage_text.h
  8972. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Updated DESCRIPTION of man page.
  8974. * doc/aria2c.1
  8975. * doc/aria2c.1.html
  8976. * doc/aria2c.1.txt
  8977. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8978. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8979. Don't define `struct addrinfo' when __sun is defined.
  8980. * src/getaddrinfo.h
  8981. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8983. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8984. second argument is of type `struct _stati64'. Otherwise it is defined as
  8985. `struct stat'.
  8986. * src/AbstractDiskWriter.cc
  8987. * src/File.cc
  8988. * src/File.h
  8989. * src/a2io.h
  8990. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8991. Fixed the compile error in hurd-i386
  8992. See the original bug report:
  8993. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8994. * src/a2io.h
  8995. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Code cleanup.
  8997. * src/PeerAbstractCommand.cc
  8998. * src/PeerAbstractCommand.h
  8999. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Removed TransferEncoding.
  9001. * src/DownloadCommand.cc
  9002. * src/DownloadCommand.h
  9003. * src/HttpResponseCommand.cc
  9004. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Updated po files.
  9006. * po/aria2c.pot
  9007. * po/*.po
  9008. * po/*.gmo
  9009. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9011. * src/A2STR.cc
  9012. * src/A2STR.h
  9013. * src/ChunkedDecoder.cc
  9014. * src/ChunkedDecoder.h
  9015. * src/ChunkedEncoding.cc: Removed
  9016. * src/ChunkedEncoding.h: Removed
  9017. * src/DownloadCommand.cc
  9018. * src/DownloadCommand.h
  9019. * src/HttpDownloadCommand.cc
  9020. * src/HttpResponse.cc
  9021. * src/HttpResponse.h
  9022. * src/HttpResponseCommand.cc
  9023. * src/HttpSkipResponseCommand.cc
  9024. * src/HttpSkipResponseCommand.h
  9025. * src/Makefile.am
  9026. * src/TransferEncoding.h: Removed
  9027. * test/ChunkedDecoderTest.cc
  9028. * test/ChunkedEncodingTest.cc: Removed
  9029. * test/HttpResponseTest.cc
  9030. * test/Makefile.am
  9031. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Use append instead of insert.
  9033. * src/GZipDecoder.cc
  9034. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Updated doc
  9036. * src/Decoder.h
  9037. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Updated usage text for -s option.
  9039. * src/usage_text.h
  9040. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9042. * src/Request.cc
  9043. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Cleaned up configure.ac.
  9045. * configure.ac
  9046. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9048. AC_ARG_ENABLE.
  9049. * configure.ac
  9050. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9052. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9053. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9054. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9055. fly and writes decoded data to a local disk.
  9056. * README
  9057. * README.html
  9058. * configure.ac
  9059. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9060. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9061. * m4/libz.m4
  9062. * src/Decoder.h
  9063. * src/DownloadCommand.cc
  9064. * src/DownloadCommand.h
  9065. * src/Exception.h
  9066. * src/GZipDecoder.cc
  9067. * src/GZipDecoder.h
  9068. * src/HttpHeader.cc
  9069. * src/HttpHeader.h
  9070. * src/HttpRequest.cc
  9071. * src/HttpRequest.h
  9072. * src/HttpResponse.cc
  9073. * src/HttpResponse.h
  9074. * src/HttpResponseCommand.cc
  9075. * src/Makefile.am
  9076. * test/GZipDecoderTest.cc
  9077. * test/HttpRequestTest.cc
  9078. * test/HttpResponseTest.cc
  9079. * test/Makefile.am
  9080. * test/Makefile.in
  9081. * test/gzip_decode_test.gz
  9082. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Clarified usage of -j option.
  9084. * src/usage_text.h
  9085. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Disabled getting size from the response of RETR.
  9087. If SIZE command failed, then disable resuming and segmented downloading.
  9088. * src/FtpConnection.cc
  9089. * src/FtpConnection.h
  9090. * src/FtpNegotiationCommand.cc
  9091. * src/FtpNegotiationCommand.h
  9092. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Use digits to find first byte of file size, which makes the intention
  9094. of the code clearer.
  9095. * src/FtpConnection.cc
  9096. Don't call validateTotalLength() when size is 0.
  9097. * src/FtpNegotiationCommand.cc
  9098. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Updated po files.
  9100. * po/aria2c.pot
  9101. * po/*.gmo
  9102. * po/*.po
  9103. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Clarified usage text for --split option.
  9105. * src/usage_text.h
  9106. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Bump up version number to 0.15.0dev. "dev" means "development"
  9108. version, which means I started the development of the next release!
  9109. * src/configure.ac
  9110. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. If FTP server returns negative response with REST raw command and
  9112. requested range is not 0, throw exception. If requested range is 0,
  9113. continue download a file from 0 byte.
  9114. * src/FtpNegotiationCommand.cc
  9115. * src/FtpNegotiationCommand.h
  9116. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Supported FTP server which don't recognize SIZE raw command.
  9118. If SIZE raw command is failed, aria2 will try to get file size
  9119. from the response of RETR raw command. If both attempts are failed,
  9120. then resuming and segmented downloading are disabled.
  9121. * src/FtpConnection.cc
  9122. * src/FtpConnection.h
  9123. * src/FtpNegotiationCommand.cc
  9124. * src/FtpNegotiationCommand.h
  9125. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. * Release 0.14.0+1
  9127. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Bump up version number to 0.14.0+1
  9129. * src/configure.ac
  9130. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Fixed the code that refers static member variable from non-static
  9132. context.
  9133. * src/DefaultPeerStorage.cc
  9134. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. * Release 0.14.0
  9136. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Added build test script
  9138. * build_test.sh
  9139. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Updated ja.po
  9141. * src/ja.po
  9142. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Bump up version number to 0.14.0
  9144. * src/configure.ac
  9145. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Updated ja.po and fr.po. Great thanks for french translators and
  9147. Sebastien WILLEMIJNS.
  9148. * po/fr.po
  9149. * po/ja.po
  9150. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Added configure option to enable/disable epoll support.
  9152. * configure.ac
  9153. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Updated man page.
  9155. * doc/aria2c.1.txt
  9156. * doc/aria2c.1
  9157. * doc/aria2c.1.html
  9158. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Added missing default value '5' to the usage of --split option.
  9160. * src/HelpItemFactory.cc
  9161. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Filled up pieces based on the number of missing blocks, rather than
  9163. simplay the number of piece * block length.
  9164. * src/BtRequestFactory.h
  9165. * src/DefaultBtInteractive.cc
  9166. * src/DefaultBtInteractive.h
  9167. * src/DefaultBtRequestFactory.cc
  9168. * src/DefaultBtRequestFactory.h
  9169. * src/Piece.cc
  9170. * src/Piece.h
  9171. * test/BitfieldManTest.cc
  9172. * test/DefaultBtRequestFactoryTest.cc
  9173. * test/MockBtRequestFactory.h
  9174. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Made _epEvents a member variable.
  9176. * src/DownloadEngine.cc
  9177. * src/DownloadEngine.h
  9178. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Cancel download if http redirect is bounded more than 20 times.
  9180. * src/AbstractCommand.cc
  9181. * src/HttpSkipResponseCommand.cc
  9182. * src/Request.cc
  9183. * src/Request.h
  9184. * test/RequestTest.cc
  9185. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Fixed unhandled exception(removed keyword `new').
  9187. * src/SocketCore.cc (initEPOLL)
  9188. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Removed visit(const MetaEntry*)
  9190. * src/MetaEntryVisitor.h:
  9191. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9192. and made them virtual.
  9193. * src/BencodeVisitor.h
  9194. * src/BencodeVisitor.cc
  9195. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. Updated po files.
  9197. * po/aria2c.pot
  9198. * po/*.po
  9199. * po/*.gmo
  9200. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9202. the number of socket to watch out.
  9203. * src/PeerInteractionCommand.cc
  9204. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. When there is not enough space in disk when writing a chunk of data,
  9206. aria2 now prints the message to the console to warn user and aborts
  9207. its download. Not all downloads are canceled because some downloads
  9208. may use another disk or partition. BUG#1640332
  9209. * src/AbstractDiskWriter.cc
  9210. * src/PeerAbstractCommand.cc
  9211. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9212. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9213. setHaltRequested(true) to cancel download.
  9214. * src/PeerInteractionCommand.h
  9215. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9217. socket from int to sock_t as sockets are unsigned in Windows.
  9218. For AsyncNameResolver, DownloadEngine, I did additional modification
  9219. for the portion of the code changed according to epoll support.
  9220. I defined sock_t in a2netcompat.h to use sock_t without including
  9221. SocketCore.h.
  9222. * src/AsyncNameResolver.cc
  9223. * src/AsyncNameResolver.h
  9224. * src/DownloadEngine.cc
  9225. * src/DownloadEngine.h
  9226. * src/SocketCore.cc
  9227. * src/SocketCore.h
  9228. * src/a2netcompat.h
  9229. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9231. changes in the patch were applied.
  9232. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9233. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9234. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9235. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9237. a2io.h and common.h were modified.
  9238. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9239. MinGW.
  9240. * src/common.h: Changed off_t to 64 bit in MinGW.
  9241. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9243. only a2netcompat.h is modified.
  9244. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9245. directives.
  9246. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9248. only gai_strerror.h is modified.
  9249. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9250. winsock errors in MinGW.
  9251. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9253. follow sources are applied.
  9254. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9255. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9256. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9257. I included locale.h from Platform.cc.
  9258. * src/main.cc: Moved common setup/teardown code to Platform class.
  9259. * test/AllTest.cc: Use Platform class.
  9260. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9261. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9263. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9264. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9265. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9267. aria2-0.13.2+1-mingw-2.patch.
  9268. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9269. systems which don't have termious.h. I moved the directive inside of
  9270. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9271. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9272. anyway.
  9273. * src/asctime_r.h
  9274. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9275. I added 2nd argument to the prototype declaration.
  9276. * src/StringFormat.cc: Get rid of vasprintf.
  9277. * src/getaddrinfo.h: Fixed constants.
  9278. * configure.ac: Added the check for asctime_r function.
  9279. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9280. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Added writable test for Socket when the sending message is in progress.
  9282. Usually the sending message is piece message. Without wriable check,
  9283. upload latency is dropped to more than 1sec.
  9284. * src/PeerInteractionCommand.cc
  9285. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Create only requested files and files which shares a piece with
  9287. requested file in multi-torrent downloads. Directory structures are
  9288. also created in the same rule.
  9289. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9290. DiskWriterEntry as in the previous implementation.
  9291. * src/MultiDiskWriter.cc
  9292. * src/MultiFileAllocationIterator.cc
  9293. * src/MultiFileAllocationIterator.h
  9294. * test/MultiFileAllocationIteratorTest.cc
  9295. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Commented out -lprofiler
  9297. * src/Makefile.am
  9298. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Bump up version number to 0.14.0b.
  9300. * src/configure.ac
  9301. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Actively establish connection to peers in seeding, when peer cache
  9303. is not full and max upload speed limit is not reached.
  9304. * src/ActivePeerConnectionCommand.cc
  9305. * src/ActivePeerConnectionCommand.h
  9306. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9308. to make room more fleshy, recently found peers.
  9309. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9310. it.
  9311. * src/DefaultPeerStorage.cc
  9312. * test/DefaultPeerStorageTest.cc
  9313. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Returns cached data only when the previous receiveHandshake() is called
  9315. with peek = true.
  9316. * src/PeerConnection.cc (receiveHandshake)
  9317. * src/PeerConnection.h (receiveHandshake)
  9318. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Changed default value of -s option from 1 to 5.
  9320. Also max value of -s option is changed from 5 to 16.
  9321. * src/HelpItemFactory.cc
  9322. * src/OptionHandlerFactory.cc
  9323. * src/option_processing.cc
  9324. * src/usage_text.h
  9325. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Changed -s options behavior. Now it means the number of connections
  9327. made simultaneously in each http/ftp download.
  9328. If 1 URL is specified, the behavior is the same with old implementation.
  9329. If -s N is given and more than N URLs are specified, first N URLs are
  9330. used and remaining URLs are used for backup. If less than N URLs are
  9331. specified, some of URLs are used more than once so that totally N
  9332. connections are made simultaneously.
  9333. * src/main.cc
  9334. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Included missing iosfwd or ostream header.
  9336. * src/RequestGroupMan.cc
  9337. * src/TaggedItem.cc
  9338. * src/TaggedItem.h
  9339. * src/Util.cc
  9340. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9342. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9343. * src/HttpConnection.cc: Included missing sstream.
  9344. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. Added --bt-max-open-files option.
  9346. * src/DefaultPieceStorage.cc
  9347. * src/HelpItemFactory.cc
  9348. * src/MultiDiskAdaptor.cc
  9349. * src/MultiDiskAdaptor.h
  9350. * src/OptionHandlerFactory.cc
  9351. * src/option_processing.cc
  9352. * src/prefs.cc
  9353. * src/prefs.h
  9354. * src/usage_text.h
  9355. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Fixed the bug that aria2 aborts when a path to a directory is given
  9357. in command-line.
  9358. * src/ProtocolDetector.cc
  9359. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Limited the number files opened in each BitTorrent download. The default
  9361. value is 100. The option to change this value will be added.
  9362. * src/MultiDiskAdaptor.cc
  9363. * src/MultiDiskAdaptor.h
  9364. * src/MultiFileAllocationIterator.cc
  9365. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Fixed the bug that HTTP downloads don't start with old libraries.
  9367. * src/HttpHeaderProcessor.cc
  9368. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Use empty() instead of size() > 0.
  9370. * src/HttpConnection.cc
  9371. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Drop connection if the incoming peer ID is the same with localhost's
  9373. one. The previous implementation drops connection when incoming peer's
  9374. IP address is the same with localhost's one.
  9375. * src/PeerListenCommand.cc
  9376. * src/DefaultBtInteractive.cc
  9377. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Returns cached data without checking whether socket is readable
  9379. if the cache is available.
  9380. * src/PeerConnection.cc (receiveHandshake)
  9381. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Included stdint.h
  9383. * src/common.h
  9384. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Removed duplicate HAVE_GETTIMEOFDAY
  9386. * src/Makefile.am
  9387. * src/Makefile.in
  9388. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9389. Use interval as a minInterval when minInterval is not supplied.
  9390. * src/DefaultBtAnnounce.cc
  9391. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9393. attempt is failed, then 2nd attempt get kicked out more quickly.
  9394. And it is now static const member of DefaultBtAnnounce.
  9395. * src/DefaultBtAnnounce.h
  9396. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9398. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9399. * src/ActivePeerConnectionCommand.cc
  9400. * src/BtConstants.h
  9401. * src/BtRuntime.h
  9402. * src/DHTGetPeersCommand.cc
  9403. * src/DefaultBtAnnounce.cc
  9404. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9405. BtRuntime::MAX_PEERS.
  9406. * src/DefaultPeerStorage.h
  9407. * src/InitiatorMSEHandshakeCommand.cc
  9408. * src/PeerInitiateConnectionCommand.cc
  9409. * src/PeerInteractionCommand.cc
  9410. * src/PeerReceiveHandshakeCommand.cc
  9411. * src/TrackerWatcherCommand.cc
  9412. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Always Connect to _numNewConnection
  9414. * src/ActivePeerConnectionCommand.cc
  9415. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Made `begin' unsigned int.
  9417. * src/GrowSegment.h
  9418. * src/Piece.cc
  9419. * src/Piece.h
  9420. * src/PiecedSegment.cc
  9421. * src/PiecedSegment.h
  9422. * src/Segment.h
  9423. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9424. Calculate piece hash when data is arrived if the data is arrived in
  9425. order. This removes additional read operation for hash calculation.
  9426. If the data is arrived in out of order, the hash is calucated when the
  9427. piece is completed. This is the same behavior as the old implementation.
  9428. * src/BtPieceMessage.cc
  9429. * src/DefaultBtProgressInfoFile.cc
  9430. * src/DefaultPieceStorage.cc
  9431. * src/DownloadCommand.cc
  9432. * src/DownloadCommand.h
  9433. * src/DownloadEngine.cc
  9434. * src/GrowSegment.cc
  9435. * src/GrowSegment.h
  9436. * src/Piece.cc
  9437. * src/Piece.h
  9438. * src/PiecedSegment.cc
  9439. * src/PiecedSegment.h
  9440. * src/Segment.h
  9441. * test/PieceTest.cc
  9442. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Try to keep the ordering of outgoing piece message.
  9444. * src/DefaultBtMessageDispatcher.cc
  9445. (DefaultBtMessageDispatcher::sendMessages)
  9446. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Fixed busy loop when error/hup epoll events occur.
  9448. * src/AbstractCommand.cc
  9449. * src/PeerAbstractCommand.cc
  9450. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Added --bt-request-peer-speed-limit option, which was a constant
  9452. SLOW_SPEED_THRESHOLD.
  9453. * src/ActivePeerConnectionCommand.cc
  9454. * src/ActivePeerConnectionCommand.h
  9455. * src/BtConstants.h
  9456. * src/HelpItemFactory.cc
  9457. * src/OptionHandlerFactory.cc
  9458. * src/PeerReceiveHandshakeCommand.cc
  9459. * src/option_processing.cc
  9460. * src/prefs.cc
  9461. * src/prefs.h
  9462. * src/usage_text.h
  9463. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Removed repeated call of getTopDirPath(). Instead, call it once and
  9465. cache the result.
  9466. * src/MultiDiskAdaptor.cc
  9467. * src/MultiDiskAdaptor.h
  9468. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9469. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Fixed compile error on debian etch.
  9471. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9472. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9473. it is undefined.
  9474. * src/Util.cc (ULLONG_MAX)
  9475. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Added epoll support. Use epoll if it is available. If not, use select.
  9477. When async dns is enabled in compile time, epoll support is enabled
  9478. only when aria2 is built with c-ares. This condition statement is
  9479. defined in a2io.h.
  9480. Currently aria2 supports both c-ares and ares, but ares is maintained
  9481. for quite a while and debian already has c-ares package, ares support
  9482. will be dropped in the future version.
  9483. * configure.ac
  9484. * src/AbstractCommand.cc
  9485. * src/AsyncNameResolver.cc
  9486. * src/AsyncNameResolver.h
  9487. * src/Command.cc
  9488. * src/Command.h
  9489. * src/DownloadEngine.cc
  9490. * src/DownloadEngine.h
  9491. * src/PeerAbstractCommand.cc
  9492. * src/SocketCore.cc
  9493. * src/SocketCore.h
  9494. * src/a2io.h
  9495. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9497. directive.
  9498. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Do not do write operation to /dev/null file.
  9500. * src/LogFactory.cc
  9501. * src/SimpleLogger.cc
  9502. Replaced vasprintf with vsnprintf
  9503. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9504. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. * src/BtRequestMessage.cc
  9506. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9507. for segmentation fault caused by previous commit.
  9508. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Reduced the usage of gettimeofday().
  9510. * src/DefaultBtMessageDispatcher.cc
  9511. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9512. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9513. * src/RequestSlot.cc
  9514. * src/RequestSlot.h
  9515. (RequestSlot::isTimeout)
  9516. Made RequestSlot have a reference to Piece object to avoid find
  9517. Piece repeatedly.
  9518. * src/DefaultBtMessageDispatcher.cc
  9519. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9520. * src/RequestSlot.cc
  9521. * src/RequestSlot.h
  9522. (RequestSlot::getPiece)
  9523. * test/DefaultBtMessageDispatcherTest.cc
  9524. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. * src/TimeA2.cc
  9526. * src/TimeA2.h
  9527. (Time::difference): New function.
  9528. (Time::elapsed): Done optimization.
  9529. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9531. directive.
  9532. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. * src/option_processing.cc: Added missing `defined' keyword to #if
  9534. directive.
  9535. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Bump up version number to 0.13.2+1
  9537. * src/configure.ac
  9538. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Refactored broken outstanding piece handling.
  9540. * src/DefaultPieceStorage.cc
  9541. * src/DefaultPieceStorage.h
  9542. * src/Piece.cc
  9543. * src/Piece.h
  9544. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9546. name collision of static variable and predefined macro.
  9547. * src/BtContext.cc
  9548. * src/BtContext.h
  9549. * src/CookieBoxFactory.cc
  9550. * src/CookieBoxFactory.h
  9551. * src/CookieParser.cc
  9552. * src/CookieParser.h
  9553. * src/DefaultBtContext.cc
  9554. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. * src/RequestGroup.cc
  9556. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9557. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. * Release 0.13.2
  9559. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9561. * po/fr.po
  9562. * po/ja.po
  9563. * po/aria2c.pot
  9564. * po/*.po
  9565. * po/*.gmo
  9566. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. Bump up version number to 0.13.2
  9568. * src/configure.ac
  9569. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. Refactord.
  9571. * src/RequestGroupMan.cc
  9572. (removeStoppedGroup)
  9573. (fillRequestGroupFromReserver)
  9574. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Fixed compile error on Ubuntu.
  9576. * src/BtPieceMessage.cc
  9577. * src/MessageDigestHelper.cc
  9578. * src/Util.cc
  9579. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Fixed compile error when configured with --disable-bittorrent
  9581. * test/DownloadHandlerFactoryTest.cc
  9582. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Done make update-po
  9584. * po/aria2c.pot
  9585. * po/*.po
  9586. * po/*.gmo
  9587. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Bump up version number to 0.13.2rc.
  9589. * src/configure.ac
  9590. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Made option name bold. Updated SYNOPSIS to make it more readable.
  9592. * doc/aria2c.1.txt
  9593. * doc/aria2c.1
  9594. * doc/aria2c.1.html
  9595. * src/version_usage.cc
  9596. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Refactored. Use std::string instead of size and char*.
  9598. * Data.cc
  9599. * Data.h
  9600. * test/Data.cc
  9601. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Added trimSelf(). Rewritten trim() to use trimSelf().
  9603. * Util.cc
  9604. * Util.h
  9605. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9607. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Fixed compile error when configured with --disable-metalink.
  9609. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9610. * test/FeatureConfigTest.cc
  9611. * test/DownloadHandlerFactoryTest.cc
  9612. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Fixed compile error when configured with --without-gnutls
  9614. --without-openssl
  9615. * src/main.cc
  9616. * test/DefaultBtProgressInfoFileTest.cc
  9617. * test/SegmentManTest.cc
  9618. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Fixed compile error with OpenSSL.
  9620. * src/IteratableChunkChecksumValidator.cc
  9621. * src/LibsslDHKeyExchange.h
  9622. * src/MessageDigestHelper.cc
  9623. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Revert the default value of --max-concurrent-downloads to 5.
  9625. Revert the default value of --metalink-servers to 5.
  9626. Man pages was also updated.
  9627. * src/option_processing.cc
  9628. * doc/aria2c.1.txt
  9629. * doc/aria2c.1.html
  9630. * doc/aria2c.1
  9631. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Returns const reference:
  9633. DownloadContext::getPieceHash, DownloadContext::getName,
  9634. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9635. BtContext::getInfoHashAsString,
  9636. * src/BtContext.h
  9637. * src/DefaultBtContext.cc
  9638. * src/DefaultBtContext.h
  9639. * src/DownloadContext.h
  9640. * src/SingleFileDownloadContext.h
  9641. * test/MockBtContext.h
  9642. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. * src/RequestGroup.h (getDir): Removed.
  9644. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Returns const reference. The internal urlencode function was optimized
  9646. a little bit.
  9647. * src/Request.cc
  9648. * src/Request.h
  9649. * src/HttpRequest.cc
  9650. * src/HttpRequest.h
  9651. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Defined option name and possible values as std::string to reduce
  9653. temporary string object creation in runtime.
  9654. * src/HelpItemFactory.cc
  9655. * src/LogFactory.cc
  9656. * src/Option.cc
  9657. * src/OptionHandlerFactory.cc
  9658. * src/option_processing.cc
  9659. * src/prefs.cc
  9660. * src/prefs.h
  9661. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Return const reference.
  9663. * src/DownloadHandlerConstants.cc
  9664. * src/DownloadHandlerConstants.h
  9665. (getMetalinkExtensions)
  9666. (getMetalinkContentTypes)
  9667. (getBtExtensions)
  9668. (getBtContentTypes)
  9669. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. * src/HttpHeader.cc (get): Rewritten.
  9671. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Make HttpHeader::getFirst(...) return const reference.
  9673. * src/HttpHeader.cc
  9674. * src/HttpHeader.h
  9675. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9677. it with V_TRUE.
  9678. * src/DefaultPieceStorage.cc
  9679. * src/DownloadCommand.cc
  9680. * src/FtpNegotiationCommand.cc
  9681. * src/HttpRequest.cc
  9682. * src/InitiateConnectionCommand.cc
  9683. * src/RequestGroup.cc
  9684. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Made Option::get(...) return const reference of std::string.
  9686. * src/Option.cc
  9687. * src/Option.h
  9688. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Replaced std:copy with insert.
  9690. * src/DefaultBtMessageDispatcher.cc
  9691. * src/DefaultPieceStorage.cc
  9692. * src/DownloadEngineFactory.cc
  9693. * src/RequestGroup.cc
  9694. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Included SocketCore.h to fix compiler warning.
  9696. * src/InitiateConnectionCommand.cc
  9697. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Put piece selection strategy algorithm to RarestPieceSelector class,
  9699. Added a switch to choose whether randomized selection so that unit
  9700. tests emit same results in, possibly, win32.
  9701. * src/DefaultPieceStorage.cc
  9702. * src/DefaultPieceStorage.h
  9703. * src/RarestPieceSelector.cc
  9704. * src/RarestPieceSelector.h
  9705. * test/DefaultPieceStorageTest.cc
  9706. * test/RarestPieceSelectorTest.cc
  9707. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Don't pool connection if HTTP proxy is enabled.
  9709. * src/FtpFinishDownloadCommand.cc
  9710. * src/FtpNegotiationCommand.cc
  9711. * src/HttpSkipResponseCommand.cc
  9712. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9714. * src/AbstractCommand.cc
  9715. * src/AbstractCommand.h
  9716. * src/ActivePeerConnectionCommand.cc
  9717. * src/FtpInitiateConnectionCommand.cc
  9718. * src/HttpInitiateConnectionCommand.cc
  9719. * src/InitiateConnectionCommandFactory.cc
  9720. * src/PeerAbstractCommand.cc
  9721. * src/PeerAbstractCommand.h
  9722. * src/PeerInitiateConnectionCommand.cc
  9723. * src/TrackerWatcherCommand.cc
  9724. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Sort RequestSlot in ascending order and manipulate them using
  9726. lower_bound.
  9727. * src/DefaultBtMessageDispatcher.cc
  9728. * src/DefaultBtMessageDispatcher.h
  9729. (getMessageQueue): Added const qualifier.
  9730. (getRequestSlots): Added const qualifier.
  9731. (sendMessages): Use empty() instead of size().
  9732. (doCancelSendingPieceAction): Use HandleEvent object.
  9733. (doAbortOutstandingRequestAction): Rewritten.
  9734. (doChokedAction): Rewritten.
  9735. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9736. (isOutstandingRequest): Rewritten.
  9737. (getOutstandingRequest): Rewritten.
  9738. (removeOutstandingRequest): Rewritten.
  9739. (addOutstandingRequest): Rewritten.
  9740. * src/RequestSlot.cc
  9741. * src/RequestSlot.h
  9742. (operator=): Rewritten.
  9743. (operator!=): New function.
  9744. (operator<): New function.
  9745. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. * src/DefaultBtRequestFactory.cc
  9747. (doChokedAction): Rewritten.
  9748. (removeCompletedPiece): Rewritten.
  9749. (removeTargetPiece): Rewritten.
  9750. (createRequestMessages): Added the debug log.
  9751. (createRequestMessagesOnEndGame: Added the debug log.
  9752. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Added the debug log message.
  9754. * src/BtPieceMessage.cc (doReceivedAction)
  9755. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9757. used lower_bound to process them rather than linear search.
  9758. * src/DHTPeerAnnounceStorage.cc
  9759. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9761. peer has at least one completed piece.
  9762. * src/Peer.cc
  9763. * src/Peer.h
  9764. * src/PeerInteractionCommand.cc
  9765. * src/PeerSessionResource.cc
  9766. * src/PeerSessionResource.h
  9767. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Removed unnecessary sorting
  9769. * src/DefaultPieceStorage (DefaultPieceStorage)
  9770. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9771. Rewritten the portion of the code that mangaes allowed fast indexes.
  9772. * src/PeerSessionResource.cc
  9773. * src/PeerSessionResource.h
  9774. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Removed the invalid string including '\r' from ru.po and
  9776. did make update-po.
  9777. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Added --log-level and --summary-interval to man page.
  9779. * doc/aria2c.1.txt
  9780. * doc/aria2c.1.html
  9781. * doc/aria2c.1
  9782. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Added --log-level option to specify log level. Log messages under
  9784. the specified level are not output. Default value is `debug'.
  9785. * src/HelpItemFactory.cc
  9786. * src/LogFactory.cc
  9787. * src/LogFactory.h
  9788. * src/Logger.h
  9789. * src/OptionHandlerFactory.cc
  9790. * src/SimpleLogger.cc
  9791. * src/SimpleLogger.h
  9792. * src/main.cc
  9793. * src/option_processing.cc
  9794. * src/prefs.h
  9795. * src/usage_text.h
  9796. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Print download progress summary of all parallel downloads in specified
  9798. interval, default 60 secs. While aria2 could download several files
  9799. in parallel (see -j option), it displayed just first download progress,
  9800. and the other downloads are hidden from the users. This new feature
  9801. prints all downloads currently in-progress to the console so that you
  9802. can check the status of all downloads. The interval can be adjusted
  9803. by --summary-interval option.
  9804. The progress readout is now cut so that all fits in the one line of
  9805. console.
  9806. * src/ConsoleStatCalc.cc
  9807. * src/ConsoleStatCalc.h
  9808. * src/HelpItemFactory.cc
  9809. * src/OptionHandlerFactory.cc
  9810. * src/RequestGroupMan.cc
  9811. * src/RequestGroupMan.h
  9812. * src/main.cc
  9813. * src/option_processing.cc
  9814. * src/prefs.h
  9815. * src/usage_text.h
  9816. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9818. * src/DownloadEngine.cc (DownloadEngine)
  9819. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9821. defined.
  9822. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9823. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Use erase+lower_bound+insert instead of sort.
  9825. * src/DefaultPieceStorage.cc (addPieceStats)
  9826. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9828. * src/A2STR.cc
  9829. * src/A2STR.h
  9830. * src/OptionParser.cc (parse)
  9831. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Defined fake filename `[tracker.announce]' as static const std::string.
  9833. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9834. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Defined default filename `index.html' as static const std::string
  9836. * src/SingleFileDownloadContext.cc
  9837. * src/SingleFileDownloadContext.h
  9838. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Defined "[MEMORY]" as static const std::string.
  9840. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9841. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Defined control file's version number as static const std::string.
  9843. * src/DefaultBtProgressInfoFile.cc
  9844. * src/DefaultBtProgressInfoFile.h
  9845. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. Use Request::METHOD_GET
  9847. * src/RequestGroup.cc (createNextCommandWithAdj)
  9848. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9849. Defined "OK", "ERR", "INPR" as static const std::string
  9850. * src/RequestGroupMan.cc (showDownloadResults)
  9851. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. Defined default client used in extended handshake as static const
  9853. std::string
  9854. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9855. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9857. * src/HttpConnection.cc (eraseConfidentialInfo)
  9858. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Defined default ftp user and password as static const std::string
  9860. * src/AuthConfigFactory.cc
  9861. * src/AuthConfigFactory.h
  9862. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. Defined strings used in netrc as static const std::string
  9864. * src/Netrc.cc
  9865. * src/Netrc.h
  9866. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9867. Defined HTTP status as static const std::string
  9868. * src/AbstractProxyResponseCommand.cc
  9869. * src/HttpHeader.cc
  9870. * src/HttpHeader.h
  9871. * src/HttpResponse.cc
  9872. * src/HttpResponseCommand.cc
  9873. * src/HttpSkipResponseCommand.cc
  9874. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Defined "\r\n", "A", "I" as static const std::string
  9876. * src/A2STR.cc
  9877. * src/A2STR.h
  9878. * src/FtpConnection.cc
  9879. * src/FtpConnection.h
  9880. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Added COLON_C(".") and used it in Request::parseUrl()
  9882. * src/A2STR.cc
  9883. * src/A2STR.h
  9884. * src/Request.cc (parseUrl)
  9885. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Changed the type of padName from `const std::string&' to `const char*'.
  9887. * src/MSEHandshake.cc (verifyPadLength)
  9888. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Defined "sha1" as static const std::string.
  9890. * src/MetalinkParserController.cc
  9891. * src/MetalinkParserController.h
  9892. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Defined message digest algorithm name as static const std::string
  9894. * src/DHTTokenTracker.cc
  9895. * src/DHTUtil.cc
  9896. * src/DefaultBtContext.cc
  9897. * src/MSEHandshake.cc
  9898. * src/MessageDigestHelper.cc
  9899. * src/Peer.cc
  9900. * src/messageDigest.cc
  9901. * src/messageDigest.h
  9902. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. Made string literals used in SAX parser static const std::string.
  9904. * src/FileMetalinkParserState.cc
  9905. * src/FileMetalinkParserState.h
  9906. * src/FilesMetalinkParserState.cc
  9907. * src/FilesMetalinkParserState.h
  9908. * src/InitialMetalinkParserState.cc
  9909. * src/InitialMetalinkParserState.h
  9910. * src/MetalinkMetalinkParserState.cc
  9911. * src/MetalinkMetalinkParserState.h
  9912. * src/PiecesMetalinkParserState.cc
  9913. * src/PiecesMetalinkParserState.h
  9914. * src/ResourcesMetalinkParserState.cc
  9915. * src/ResourcesMetalinkParserState.h
  9916. * src/VerificationMetalinkParserState.cc
  9917. * src/VerificationMetalinkParserState.h
  9918. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9920. * src/A2STR.cc
  9921. * src/A2STR.h
  9922. * src/File.cc
  9923. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Defined static const std::string IP("ip"), PORT("port") and use them
  9925. instead of string literals.
  9926. * src/DefaultPeerListProcessor.cc
  9927. * src/DefaultPeerListProcessor.h
  9928. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. Made string literals for torrent file processing static const
  9930. std::string.
  9931. * src/BtContext.cc
  9932. * src/BtContext.h
  9933. * src/DefaultBtContext.cc
  9934. * src/DefaultBtContext.h
  9935. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Made string literal for tracker response static const std::string
  9937. * src/BtAnnounce.cc
  9938. * src/BtAnnounce.h
  9939. * src/DefaultBtAnnounce.cc
  9940. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Use DHTMessage::T instead of "t".
  9942. * src/DHTMessageTracker.cc (messageArrived)
  9943. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Made keyName static const. Made trimmed charset static const
  9945. std::string.
  9946. * src/Util.cc (getContentDispositionFilename)
  9947. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Made USER_AGENT const. Made "/" static const std::string.
  9949. * src/A2STR.cc
  9950. * src/A2STR.h
  9951. * src/HttpRequest.cc
  9952. * src/HttpRequest.h
  9953. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Made string listeral to static const std::string:
  9955. "Content-Range", "Content-Length"
  9956. * src/HttpHeader.cc
  9957. * src/HttpHeader.h
  9958. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Made string listeral to static const std::string.
  9960. * src/HttpConnection.cc
  9961. * src/HttpHeader.cc
  9962. * src/HttpHeader.h
  9963. * src/HttpResponse.cc
  9964. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. Made string listeral to static const std::string.
  9966. * src/A2STR.cc
  9967. * src/A2STR.h
  9968. * src/SimpleLogger.cc
  9969. * src/SimpleLogger.h
  9970. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Made string literal to static const std::string.
  9972. Rewritten CookieParser::setField.
  9973. * src/A2STR.cc
  9974. * src/A2STR.h
  9975. * src/CookieBoxFactory.cc
  9976. * src/CookieBoxFactory.h
  9977. * src/CookieParser.cc
  9978. * src/CookieParser.h
  9979. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Made string literal to static const std::string
  9981. * src/DHTAbstractMessage.cc
  9982. * src/DHTAnnouncePeerMessage.cc
  9983. * src/DHTAnnouncePeerMessage.h
  9984. * src/DHTAnnouncePeerReplyMessage.cc
  9985. * src/DHTAnnouncePeerReplyMessage.h
  9986. * src/DHTFindNodeMessage.cc
  9987. * src/DHTFindNodeMessage.h
  9988. * src/DHTFindNodeReplyMessage.cc
  9989. * src/DHTFindNodeReplyMessage.h
  9990. * src/DHTGetPeersMessage.cc
  9991. * src/DHTGetPeersMessage.h
  9992. * src/DHTGetPeersReplyMessage.cc
  9993. * src/DHTGetPeersReplyMessage.h
  9994. * src/DHTMessage.cc
  9995. * src/DHTMessage.h
  9996. * src/DHTMessageFactoryImpl.cc
  9997. * src/DHTMessageReceiver.cc
  9998. * src/DHTPingMessage.cc
  9999. * src/DHTPingMessage.h
  10000. * src/DHTPingReplyMessage.cc
  10001. * src/DHTPingReplyMessage.h
  10002. * src/DHTQueryMessage.cc
  10003. * src/DHTQueryMessage.h
  10004. * src/DHTResponseMessage.cc
  10005. * src/DHTResponseMessage.h
  10006. * src/DHTUnknownMessage.cc
  10007. * src/DHTUnknownMessage.h
  10008. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Made string literal to static const std::string
  10010. * src/BtChokeMessage.cc (toString)
  10011. * src/BtHaveAllMessage.cc (toString)
  10012. * src/BtHaveNoneMessage.cc (toString)
  10013. * src/BtInterestedMessage.cc (toString)
  10014. * src/BtNotInterestedMessage.cc (toString)
  10015. * src/BtUnchokeMessage.cc (toString)
  10016. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Replaced "" with static const variable A2STR::NIL.
  10018. Replaced string comparison against "" with std::string::empty().
  10019. Added PROTO_* to Request class and use them as a protocol string
  10020. constant.
  10021. Made "started", "stopped", "completed" static const variable in
  10022. AnnounceList class.
  10023. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Updated translations. Great thanks to translators.
  10025. * po/ca.po
  10026. * po/de.po
  10027. * po/fr.po
  10028. * po/it.po
  10029. * po/ja.po
  10030. * po/ru.po
  10031. * po/zh_CN.po
  10032. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Updated man page; categorized options and fixed typo.
  10034. * doc/aria2c.1.txt
  10035. * doc/aria2c.1.html
  10036. * doc/aria2c.1
  10037. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Removed const ref
  10039. * src/MetalinkEntry.cc (AddProtocolPreference)
  10040. * src/RequestGroup.cc (FindServerHostByHostname)
  10041. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Rewritten Accept-Features handling.
  10043. * src/HttpRequestCommand.cc (createHttpRequest)
  10044. * src/a2functional.h
  10045. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Changed method signature:
  10047. DHTAbstractNodeLookupTask::toEntries
  10048. * src/DHTAbstractNodeLookupTask.cc
  10049. * src/DHTAbstractNodeLookupTask.h
  10050. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10051. Changed method signature:
  10052. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10053. * src/BtContext.h
  10054. * src/DefaultBtContext.cc
  10055. * src/DefaultBtContext.h
  10056. * src/DefaultBtInteractive.cc
  10057. * test/DefaultBtContextTest.cc
  10058. * test/MockBtContext.h
  10059. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Changed method signature:
  10061. MultiFileAllocationIterator::makeDiskWriterEntries
  10062. * src/MultiFileAllocationIterator.cc
  10063. * src/MultiFileAllocationIterator.h
  10064. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. Changed method sinature:
  10066. MetalinkEntry::toFileEntry,
  10067. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10068. Metalinker::queryEntry
  10069. * src/Metalink2RequestGroup.cc
  10070. * src/MetalinkEntry.cc
  10071. * src/MetalinkEntry.h
  10072. * src/MetalinkHelper.cc
  10073. * src/MetalinkHelper.h
  10074. * src/Metalinker.cc
  10075. * src/Metalinker.h
  10076. * src/main.cc
  10077. * test/MetalinkHelperTest.cc
  10078. * test/MetalinkerTest.cc
  10079. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. Changed method sinature:
  10081. RequestGroup::getURIs
  10082. * src/RequestGroup.cc
  10083. * src/RequestGroup.h
  10084. * test/Metalink2RequestGroupTest.cc
  10085. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10086. Changed method signature:
  10087. PeerListProcessor::extractPeer
  10088. * src/CompactPeerListProcessor.cc
  10089. * src/CompactPeerListProcessor.h
  10090. * src/DefaultBtAnnounce.cc
  10091. * src/DefaultPeerListProcessor.cc
  10092. * src/DefaultPeerListProcessor.h
  10093. * src/DelegatingPeerListProcessor.cc
  10094. * src/DelegatingPeerListProcessor.h
  10095. * src/PeerListProcessor.h
  10096. * src/UTPexExtensionMessage.cc
  10097. * test/DefaultPeerListProcessorTest.cc
  10098. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Changed method signature:
  10100. BtRequestFactory::createRequestMessages,
  10101. BtRequestFactory::createRequestMessagesOnEndGame
  10102. * src/BtRequestFactory.h
  10103. * src/DefaultBtInteractive.cc
  10104. * src/DefaultBtRequestFactory.cc
  10105. * src/DefaultBtRequestFactory.h
  10106. * test/DefaultBtRequestFactoryTest.cc
  10107. * test/MockBtRequestFactory.h
  10108. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Changed method signature:
  10110. PieceStorage::getInFlightPieces
  10111. * src/DefaultBtProgressInfoFile.cc
  10112. * src/DefaultPieceStorage.cc
  10113. * src/DefaultPieceStorage.h
  10114. * src/PieceStorage.h
  10115. * src/UnknownLengthPieceStorage.cc
  10116. * src/UnknownLengthPieceStorage.h
  10117. * test/DefaultBtProgressInfoFileTest.cc
  10118. * test/MockPieceStorage.h
  10119. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Changed method signature:
  10121. PostDownloadHandler::getNextRequestGroups
  10122. Metalink2RequestGroup::generate
  10123. RequestGroup::postDownloadProcessing
  10124. * src/BtPostDownloadHandler.cc
  10125. * src/BtPostDownloadHandler.h
  10126. * src/Metalink2RequestGroup.cc
  10127. * src/Metalink2RequestGroup.h
  10128. * src/MetalinkPostDownloadHandler.cc
  10129. * src/MetalinkPostDownloadHandler.h
  10130. * src/PostDownloadHandler.h
  10131. * src/RequestGroup.cc
  10132. * src/RequestGroup.h
  10133. * src/RequestGroupMan.cc
  10134. * src/main.cc
  10135. * test/BtPostDownloadHandlerTest.cc
  10136. * test/Metalink2RequestGroupTest.cc
  10137. * test/MetalinkPostDownloadHandlerTest.cc
  10138. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Rewritten AccRequestGroup
  10140. * src/main.cc
  10141. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. Rewritten.
  10143. * src/TaggedItem.cc (toTagString)
  10144. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Rewritten Accept-Features handling.
  10146. * src/HttpRequestCommand.cc (createHttpRequest)
  10147. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Rewritten accept types handling.
  10149. * HttpRequest.cc (createRequest)
  10150. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10151. Rewritten
  10152. * src/FeatureConfig.cc (featureSummary)
  10153. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Changed method signature:
  10155. PeerStorage::getActivePeers
  10156. * src/DHTPeerAnnounceEntry.cc
  10157. * src/DefaultPeerStorage.cc
  10158. * src/DefaultPeerStorage.h
  10159. * src/PeerStorage.h
  10160. * test/DefaultPeerStorageTest.cc
  10161. * test/MockPeerStorage.h
  10162. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Changed method signature:
  10164. DHTPeerAnnounceStorage::getPeers,
  10165. DHTPeerAnnounceEntry::getPeers
  10166. * src/DHTGetPeersMessage.cc
  10167. * src/DHTPeerAnnounceEntry.cc
  10168. * src/DHTPeerAnnounceEntry.h
  10169. * src/DHTPeerAnnounceStorage.cc
  10170. * src/DHTPeerAnnounceStorage.h
  10171. * test/DHTAnnouncePeerMessageTest.cc
  10172. * test/DHTPeerAnnounceEntryTest.cc
  10173. * test/DHTPeerAnnounceStorageTest.cc
  10174. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Changed method signature:
  10176. NameResolver::resolve
  10177. * src/DHTEntryPointNameResolveCommand.cc
  10178. * src/InitiateConnectionCommand.cc
  10179. * src/NameResolver.cc
  10180. * src/NameResolver.h
  10181. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Changed method signature:
  10183. PieceStorage::getAdvertisedPieceIndexes
  10184. * src/DefaultBtInteractive.cc
  10185. * src/DefaultPieceStorage.cc
  10186. * src/DefaultPieceStorage.h
  10187. * src/PieceStorage.h
  10188. * src/UnknownLengthPieceStorage.h
  10189. * test/MockPieceStorage.h
  10190. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. Changed method signature:
  10192. SegmentMan::getInFlightSegment
  10193. * src/AbstractCommand.cc
  10194. * src/SegmentMan.cc
  10195. * src/SegmentMan.h
  10196. * test/SegmentManTest.cc
  10197. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Changed method signature:
  10199. DHTAbstractNodeLookupTask::getNodesFromMessage
  10200. * src/DHTAbstractNodeLookupTask.cc
  10201. * src/DHTAbstractNodeLookupTask.h
  10202. * src/DHTNodeLookupTask.cc
  10203. * src/DHTNodeLookupTask.h
  10204. * src/DHTPeerLookupTask.cc
  10205. * src/DHTPeerLookupTask.h
  10206. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10208. * src/AbstractCommand.cc
  10209. * src/BtCheckIntegrityEntry.cc
  10210. * src/BtCheckIntegrityEntry.h
  10211. * src/BtFileAllocationEntry.cc
  10212. * src/BtFileAllocationEntry.h
  10213. * src/BtSetup.cc
  10214. * src/BtSetup.h
  10215. * src/CheckIntegrityCommand.cc
  10216. * src/CheckIntegrityEntry.h
  10217. * src/ChecksumCheckIntegrityEntry.cc
  10218. * src/ChecksumCheckIntegrityEntry.h
  10219. * src/DHTSetup.cc
  10220. * src/DHTSetup.h
  10221. * src/DownloadEngine.cc
  10222. * src/FileAllocationCommand.cc
  10223. * src/FileAllocationEntry.h
  10224. * src/RequestGroup.cc
  10225. * src/RequestGroup.h
  10226. * src/RequestGroupMan.cc
  10227. * src/RequestGroupMan.h
  10228. * src/StreamCheckIntegrityEntry.cc
  10229. * src/StreamCheckIntegrityEntry.h
  10230. * src/StreamFileAllocationEntry.cc
  10231. * src/StreamFileAllocationEntry.h
  10232. * src/TrackerWatcherCommand.cc
  10233. * src/a2functional.h
  10234. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Changed method signature:
  10236. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10237. DHTBucket::getGoodNodes,
  10238. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10239. * src/BNode.cc
  10240. * src/BNode.h
  10241. * src/DHTAbstractNodeLookupTask.cc
  10242. * src/DHTAutoSaveCommand.cc
  10243. * src/DHTBucket.cc
  10244. * src/DHTBucket.h
  10245. * src/DHTBucketRefreshTask.cc
  10246. * src/DHTFindNodeMessage.cc
  10247. * src/DHTGetPeersMessage.cc
  10248. * src/DHTRoutingTable.cc
  10249. * src/DHTRoutingTable.h
  10250. * test/BNodeTest.cc
  10251. * test/DHTBucketTest.cc
  10252. * test/DHTRoutingTableTest.cc
  10253. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. In piece selection functions, Pass std::deque<...> by reference rather
  10255. than returning it.
  10256. * src/BitfieldMan.cc
  10257. * src/BitfieldMan.h
  10258. * src/DefaultBtRequestFactory.cc
  10259. * src/DefaultPieceStorage.cc
  10260. * src/Piece.cc
  10261. * src/Piece.h
  10262. * test/BitfieldManTest.cc
  10263. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10264. Implemented rarest piece first piece selection strategy.
  10265. * src/AbstractBtMessage.cc
  10266. * src/AbstractBtMessage.h
  10267. * src/BitfieldMan.cc
  10268. * src/BitfieldMan.h
  10269. * src/BtBitfieldMessage.cc
  10270. * src/BtHaveAllMessage.cc
  10271. * src/BtHaveMessage.cc
  10272. * src/DefaultPieceStorage.cc
  10273. * src/DefaultPieceStorage.h
  10274. * src/PeerInteractionCommand.cc
  10275. * src/PieceStorage.h
  10276. * src/UnknownLengthPieceStorage.h
  10277. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Rewritten readData and writeData.
  10279. * src/MultiDiskAdaptor.cc
  10280. * src/MultiDiskAdaptor.h
  10281. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10282. Move \n out of the message "Usage: ...".
  10283. * src/version_usage.cc
  10284. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Bump up version number to 0.13.2b.
  10286. * configure.ac
  10287. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10288. Added const qualifier to argument Exception& e.
  10289. * src/Logger.h
  10290. * src/SimpleLogger.cc
  10291. * src/SimpleLogger.h
  10292. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Pool connection when CWD, SIZE command fails.
  10294. * src/FtpNegotiationCommand.cc
  10295. * src/FtpNegotiationCommand.h
  10296. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10298. * src/HttpResponseCommand.cc
  10299. * src/HttpSkipResponseCommand.cc
  10300. * src/HttpSkipResponseCommand.h
  10301. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Pool connection when a server returns 4xx, 5xx responses.
  10303. * src/HttpNullDownloadCommand.cc
  10304. * src/HttpNullDownloadCommand.h
  10305. * src/HttpResponse.cc
  10306. * src/HttpResponse.h
  10307. * src/HttpResponseCommand.cc
  10308. * src/HttpResponseCommand.h
  10309. * test/HttpResponseTest.cc
  10310. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Print usage when no URL is specifed or bad command-line option is
  10312. specified.
  10313. * src/HelpItemFactory.cc
  10314. * src/help_tags.h
  10315. * src/option_processing.cc
  10316. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. Removed duplicate log message.
  10318. * src/AbstractCommand.cc (asyncResolveHostname)
  10319. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10320. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10321. Changed -j option's default value from 5 to 1.
  10322. Added new examples using protocol auto detection feature.
  10323. Removed -T, -M usage where it can be omitted.
  10324. * doc/aria2c.1.txt
  10325. * doc/aria2c.1.html
  10326. * doc/aria2c.1.txt
  10327. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Updated command-line usage text, so that it tells users that they
  10329. can specify any number of torrent files and metalink files in
  10330. command-line.
  10331. * src/version_usage.cc
  10332. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Changed the default value of -j option to 1.
  10334. * src/HelpItemFactory.cc
  10335. * src/option_processing.cc
  10336. * src/usage_text.h
  10337. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Added the ability to reuse connection in FTP and it is enabled by
  10339. default. It can be disabled by --ftp-reuse-connection=false option.
  10340. * src/Command.cc
  10341. * src/DownloadCommand.cc
  10342. * src/FtpDownloadCommand.cc
  10343. * src/FtpDownloadCommand.h
  10344. * src/FtpFinishDownloadCommand.cc
  10345. * src/FtpFinishDownloadCommand.h
  10346. * src/FtpInitiateConnectionCommand.cc
  10347. * src/FtpNegotiationCommand.cc
  10348. * src/FtpNegotiationCommand.h
  10349. * src/HelpItemFactory.cc
  10350. * src/Makefile.am
  10351. * src/Makefile.in
  10352. * src/OptionHandlerFactory.cc
  10353. * src/option_processing.cc
  10354. * src/prefs.h
  10355. * src/usage_text.h
  10356. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Call Command::transitStatus() before calling Command::execute(),
  10358. so that the status change made in execute() is not cleared.
  10359. * src/DownloadEngine.cc
  10360. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Removed forward declaration of SocketCore class.
  10362. * src/HttpDownloadCommand.h
  10363. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10365. in InitiateConnectionCommandFactory. They should be set only when
  10366. the protocol is HTTP or HTTPS.
  10367. * src/InitiateConnectionCommandFactory.cc
  10368. * src/RequestGroup.cc
  10369. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10370. Fixed infinite loop in checksum checking.
  10371. * src/IteratableChecksumValidator.cc
  10372. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10373. Set _supportsPersistentConnection to true by default.
  10374. * src/Request.cc
  10375. * src/RequestGroup.cc
  10376. * test/HttpRequestTest.cc
  10377. * test/RequestTest.cc
  10378. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Added timeout to socket pool. The default timeout is 15 seconds,
  10380. which is the same value Apache uses.
  10381. * src/DownloadEngine.cc
  10382. * src/DownloadEngine.h
  10383. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. Fixed misuse of multimap::find()
  10385. * src/HttpHeader.cc
  10386. * test/HttpHeaderTest.cc
  10387. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10388. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10389. option.
  10390. The asynchronous DNS is not capable of IPv6 yet.
  10391. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10392. least for HTTP download.
  10393. * src/AbstractCommand.cc
  10394. * src/AbstractCommand.h
  10395. * src/AsyncNameResolver.cc
  10396. * src/AsyncNameResolver.h
  10397. * src/DHTEntryPointNameResolveCommand.cc
  10398. * src/DHTEntryPointNameResolveCommand.h
  10399. * src/DownloadEngine.cc
  10400. * src/DownloadEngine.h
  10401. * src/FtpInitiateConnectionCommand.cc
  10402. * src/FtpInitiateConnectionCommand.h
  10403. * src/HelpItemFactory.cc
  10404. * src/HttpInitiateConnectionCommand.cc
  10405. * src/HttpInitiateConnectionCommand.h
  10406. * src/InitiateConnectionCommand.cc
  10407. * src/InitiateConnectionCommand.h
  10408. * src/Makefile.am
  10409. * src/Makefile.in
  10410. * src/NameResolver.cc
  10411. * src/NameResolver.h
  10412. * src/OptionHandlerFactory.cc
  10413. * src/SocketCore.cc
  10414. * src/SocketCore.h
  10415. * src/Util.cc
  10416. * src/Util.h
  10417. * src/option_processing.cc
  10418. * src/prefs.h
  10419. * src/usage_text.h
  10420. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10421. Updated man page: --quiet, --header were added.
  10422. --metalink-servers and --enable-http-keep-alive option were updated.
  10423. * doc/aria2c.1
  10424. * doc/aria2c.1.html
  10425. * doc/aria2c.1.txt
  10426. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. Enable HTTP keep-alive by default.
  10428. * src/HelpItemFactory.cc
  10429. * src/option_processing.cc
  10430. * src/usage_text.h
  10431. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Disable http keep-alive if the remote server is not HTTP/1.1.
  10433. * src/HttpConnection.cc
  10434. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Receive content body of 302 response so that the connection can be
  10436. reused later when http keep-alive is enabled.
  10437. * src/HttpNullDownloadCommand.cc
  10438. * src/HttpNullDownloadCommand.h
  10439. * src/HttpResponseCommand.cc
  10440. * src/HttpResponseCommand.h
  10441. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. const SharedHandle<Request> -> const SharedHandle<Request>&
  10443. * src/FtpDowndloadCommand.cc
  10444. * src/FtpDowndloadCommand.h
  10445. * src/HttpDownloadCommand.cc
  10446. * src/HttpDownloadCommand.h
  10447. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Fixed the bug that the control file(.aria2 file) is not renamed
  10449. according to tryAutoFileRenaming().
  10450. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10451. its control file exist, use them and continue download.
  10452. The old implementation didn't take into account of control file's
  10453. existence, so basically you couldn't continue download of renamed file.
  10454. * src/BtProgressInfoFile.h
  10455. * src/DefaultBtProgressInfoFile.cc
  10456. * src/DefaultBtProgressInfoFile.h
  10457. * src/NullProgressInfoFile.h
  10458. * src/RequestGroup.cc
  10459. * test/DefaultBtProgressInfoFileTest.cc
  10460. * test/MockBtProgressInfoFile.h
  10461. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Change the default value of --metalink-servers option from `5' to `1'.
  10463. * src/HelpItemFactory.cc
  10464. * src/option_processing.cc
  10465. * src/usage_text.h
  10466. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Reimplemented transparent metalink using Accept request header.
  10468. * src/HttpRequest.cc
  10469. * src/HttpRequest.h
  10470. * src/HttpRequestCommand.cc
  10471. * src/Metalink2RequestGroup.cc
  10472. * src/RequestGroup.cc
  10473. * src/RequestGroup.h
  10474. * test/HttpRequestTest.cc
  10475. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Bump up version number to 0.13.2a
  10477. * configure.ac
  10478. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Updated configure.ac using the result of autoscan.
  10480. * configure.ac
  10481. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Fixed compilation error without gcrypt/openssl.
  10483. * src/DownloadCommand.cc
  10484. * src/DownloadCommand.h
  10485. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Reorganized version information so that it can be displayed in a
  10487. standard terminal screen without scrolling.
  10488. Removed http, ftp from Configuration section, because they are always
  10489. enabled.
  10490. * src/FeatureConfig.cc
  10491. * src/FeatureConfig.h
  10492. * src/main.cc
  10493. * src/messageDigest.cc
  10494. * src/messageDigest.h
  10495. * src/version_usage.cc
  10496. * test/FeatureConfigTest.cc
  10497. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10498. Masked user ID in log.
  10499. * src/FtpConnection.cc (sendUser)
  10500. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10501. Removed query part from filename in HTTP download. The query part means
  10502. the substring after "?" in URL. Firefox seems do the same thing.
  10503. A query part is sometimes very long and not suitable to filename,
  10504. so I think it is better to remove it from filename.
  10505. * src/HttpRequest.cc
  10506. * src/HttpRequest.h
  10507. * src/Request.cc
  10508. * src/Request.h
  10509. * test/HttpRequestTest.cc
  10510. * test/RequestTest.cc
  10511. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Rewritten Exception class. Throw exception object, not its pointer and
  10513. catch by reference, so that remove problematic delete operator for
  10514. catched exception.
  10515. * src/Exception.cc
  10516. * src/Exception.h
  10517. * test/ExceptionTest.cc
  10518. * src/*: All files throwing/catching exception.
  10519. * test/*: All files throwing/catching exception.
  10520. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. Now auto protocol detection is enabled without -Z option.
  10522. But there is a important difference between with/without -Z optoin.
  10523. For example, if you type:
  10524. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10525. then, aria2 interprets there are 3 request groups:
  10526. (1) http://host/file, http://mirror/file <-- multi-source download
  10527. (2) file1.torrent
  10528. (3) file2.metalink
  10529. On the other hand, if you invoke above command with -Z option, it is
  10530. interpreted as 4 request groups:
  10531. (1) http://host/file
  10532. (2) file1.torrent
  10533. (3) file2.metalink
  10534. (4) http://mirror/file
  10535. I think usually user don't mix multi-source URLs and torrent files, so
  10536. there is no big problem here.
  10537. * src/main.cc
  10538. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Fixed the bug that causes segmentaion fault when reading XML containing
  10540. unescapsed character like '&'.
  10541. Also a modification was made which avoids adding unnecessary
  10542. characters stack and appending unused string.
  10543. * src/ExpatMetalinkProcessor.cc
  10544. * src/FileMetalinkParserState.h
  10545. * src/FilesMetalinkParserState.h
  10546. * src/FinMetalinkParserState.h
  10547. * src/HashMetalinkParserState.h
  10548. * src/InitialMetalinkParserState.h
  10549. * src/LanguageMetalinkParserState.h
  10550. * src/MetalinkMetalinkParserState.h
  10551. * src/MetalinkParserState.h
  10552. * src/MetalinkParserStateMachine.cc
  10553. * src/MetalinkParserStateMachine.h
  10554. * src/OSMetalinkParserState.h
  10555. * src/PieceHashMetalinkParserState.h
  10556. * src/PiecesMetalinkParserState.h
  10557. * src/ResourcesMetalinkParserState.h
  10558. * src/SizeMetalinkParserState.h
  10559. * src/SkipTagMetalinkParserState.h
  10560. * src/URLMetalinkParserState.h
  10561. * src/VerificationMetalinkParserState.h
  10562. * src/VersionMetalinkParserState.h
  10563. * src/XML2SAXMetalinkProcessor.cc
  10564. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Added StringFormat class, which internally calls vasprintf.
  10566. operator<< is defined for this class, so it can be used with iostream
  10567. classes nicely. SimpleLogger and following functions are rewritten
  10568. using StringFormat class.
  10569. Besides, now Logger class's methods are non-const, many classes
  10570. that has a const Logger* as a member variable are modified to remove
  10571. const qualifier from the variable declaration.
  10572. * src/HelpItemFactory.cc
  10573. * src/Request.cc
  10574. * src/SimpleLogger.cc
  10575. * src/StringFormat.cc
  10576. * src/StringFormat.h
  10577. * src/Util.cc
  10578. * src/option_processing.cc
  10579. * src/version_usage.cc
  10580. * test/StringFormatTest.cc
  10581. * src/*.h: The classes that has const Logger* as a member variable.
  10582. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10584. failed. Also fixed memory link when exception is thrown there.
  10585. * src/main.cc (AccRequestGroup)
  10586. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Added build-in "Accept-Features" support. For now only "metalink" is
  10588. used in this header field.
  10589. This "metalink" value is removed from the list when connecting URLs
  10590. fed by metalink file to avoid loop in "transparent" metlaink.
  10591. * src/HttpRequest.cc
  10592. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10593. header is also held in this variable. Also renamed setUserHeaders as
  10594. addHeader and it was rewritten to add header not just to clear the old
  10595. value.
  10596. * src/HttpRequestCommand.cc
  10597. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10598. from "Accept-Features" list.
  10599. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10600. default.
  10601. * src/RequestGroup.h
  10602. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10603. * src/a2functional.h: Included <string> because Concat class depends on
  10604. it.
  10605. * test/HttpRequestTest.cc
  10606. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Added comment
  10608. * src/RequestGroup.cc (createNextCommand)
  10609. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Capitalized METHOD_GET and METHOD_HEAD
  10611. * src/Request.cc
  10612. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Added getDownloadResults() method
  10614. * src/RequestGroupMan.cc
  10615. * src/RequestGroupMan.h
  10616. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. Fixed the bug that aria2 exits when commands is empty() but
  10618. _routineCommands are not.
  10619. * src/DownloadEngine.cc
  10620. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Use the default value pulled from Option object in HelpItemFactory.
  10622. except options whose defualt value is embedded in a usage text.
  10623. * src/HelpItemFactory.cc
  10624. * src/HelpItemFactory.h
  10625. * src/option_processing.cc
  10626. * src/version_usage.cc
  10627. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Added --quiet option to make aria2 quiet (no console output).
  10629. --quiet option is tagged with ADVANCED.
  10630. * src/HelpItemFactory.cc
  10631. * src/LogFactory.cc
  10632. * src/LogFactory.h
  10633. * src/MultiUrlRequestInfo.cc
  10634. * src/MultiUrlRequestInfo.h
  10635. * src/NullStatCalc.h: New class. This class prints nothing.
  10636. * src/OptionHandlerFactory.cc
  10637. * src/main.cc
  10638. * src/option_processing.cc
  10639. * src/prefs.h
  10640. * src/usage_text.h
  10641. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10643. * src/HelpItemFactory.cc (createHelpItems):
  10644. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Fixed compilation error in ExpatMetalinkProcessor.cc
  10646. * src/ExpatMetalinkProcessor.cc
  10647. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Reuse socket if the origin server supports HTTP keep-alive and
  10649. --enable-http-keep-alive or --enable-http-pipelining is given.
  10650. The current implementation doesn't reuse the connections established
  10651. against proxy server.
  10652. * src/AbstractCommand.cc
  10653. * src/DownloadEngine.cc
  10654. * src/DownloadEngine.h
  10655. * src/HttpDownloadCommand.cc
  10656. * src/HttpInitiateConnectionCommand.cc
  10657. * src/HttpResponseCommand.cc
  10658. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10659. Rewritten HTTP keep-alive and pipelining routine.
  10660. * src/AbstractCommand.cc
  10661. * src/HttpConnection.cc
  10662. * src/HttpDownloadCommand.cc
  10663. * src/HttpRequest.cc
  10664. * src/HttpRequestCommand.cc
  10665. * src/HttpResponseCommand.cc
  10666. * src/Request.cc
  10667. * src/Request.h
  10668. * src/RequestGroup.cc
  10669. * test/HttpRequestTest.cc
  10670. * test/HttpResponseTest.cc
  10671. * test/RequestTest.cc
  10672. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10673. Added missing setUserHeaders call
  10674. * src/HttpRequestCommand.cc
  10675. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10677. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10678. waste of time because it is more likey false.
  10679. * src/FileAllocationDispatcherCommand.cc (execute)
  10680. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. Now HTTP status and version are a member variable of HttpHeader.
  10682. HTTP status is processed as a string, not integer.
  10683. * src/AbstractProxyResponseCommand.cc
  10684. * src/HttpConnection.cc
  10685. * src/HttpHeader.cc
  10686. * src/HttpHeader.h
  10687. * src/HttpHeaderProcessor.cc
  10688. * src/HttpHeaderProcessor.h
  10689. * src/HttpResponse.cc
  10690. * src/HttpResponse.h
  10691. * test/HttpHeaderProcessorTest.cc
  10692. * test/HttpResponseTest.cc
  10693. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10694. Added --header option. You can specify any number of additional HTTP headers
  10695. like:
  10696. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10697. Unlike other commad-line option, you can use --header option multiple times.
  10698. * src/HelpItemFactory.cc
  10699. * src/HttpRequest.{cc, h}
  10700. * src/HttpRequestCommand.cc
  10701. * src/OptionHandlerFactory.cc
  10702. * src/OptionHandlerImpl.h
  10703. * src/option_processing.cc
  10704. * src/prefs.h
  10705. * src/usage_text.h
  10706. * test/HttpRequestTest.cc (testUserHeaders)
  10707. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10708. Eliminates the time lag between sequential downloads and commands in
  10709. the same RequestGroup.
  10710. In old implementation, aria2 occasionally waits 1 seconds before
  10711. executing next command or RequestGroup.
  10712. This is really a waste of time, and new implementation eliminates
  10713. this unnecessary time lag.
  10714. * src/AbstractCommand.cc
  10715. * src/AutoSaveCommand.cc
  10716. * src/CheckIntegrityCommand.cc
  10717. * src/Command.{cc, h}
  10718. * src/DownloadEngine.{cc, h}
  10719. * src/DownloadEngineFactory.cc
  10720. * src/FileAllocationCommand.cc
  10721. * src/FileAllocationDispatcherCommand.cc
  10722. * src/FillRequestGroupCommand.cc
  10723. * src/FtpInitiateConnectionCommand.cc
  10724. * src/HaveEraseCommand.cc
  10725. * src/HttpInitiateConnectionCommand.cc
  10726. * src/HttpResponseCommand.cc
  10727. * src/RealtimeCommand.cc
  10728. * src/RequestGroup.cc
  10729. * src/RequestGroupMan.cc
  10730. * src/StreamFileAllocationEntry.cc
  10731. * src/TimeBasedCommand.{cc, h}
  10732. * src/TimedHaltCommand.cc
  10733. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10735. keyword explicit and SharedHandle's default constructor initializes
  10736. its internal obj to null, old implementation initializes it using
  10737. obj's default constructor.
  10738. To assign null, write SharedHandle<T> x(...); x.reset();
  10739. TODO: test/SharedHandleTest.cc needs more tests.
  10740. * src/SharedHandle.h
  10741. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10742. Fixed type in man page.
  10743. * doc/aria2c.1.txt
  10744. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10746. * src/SimpleLogger.{cc, h}
  10747. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Implemented auto protocol detection.
  10749. Now you can do:
  10750. aria2c -Z http://host/file file1.torrent file2.metalink
  10751. (Note: -Z option is required for auto protcol detection.)
  10752. Then aria2c downloads 3 files simultaneously:
  10753. 1. http://host/file
  10754. 2. file1.torrent <-- read local torrent file
  10755. 3. file2.metalink <-- read local Metalink file.
  10756. Same thing goes with -i option. Assume your uris.txt contans:
  10757. http://host/file
  10758. file1.torrent
  10759. file2.metalink
  10760. Then you can do: aria2c -i uris.txt
  10761. (Note: -Z option is not needed if -i option is given.)
  10762. * src/main.cc
  10763. * src/ProtocolDetector.{cc, h}
  10764. * test/ProtocolDetectorTest.cc
  10765. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10767. installed
  10768. * src/ARC4Encryptor.h
  10769. * src/ARC4Decryptor.h
  10770. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Renamed argument from 'errno' to 'err', since errno is confused with
  10772. errno defined in errno.h.
  10773. * src/LibgcryptARC4Decryptor.h
  10774. * src/LibgcryptARC4Context.h
  10775. * src/LibgcryptDHKeyExchange.h
  10776. * src/LibgcryptARC4Encryptor.h
  10777. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Rewritten choking algorithm.
  10779. * src/PeerChokeCommand.{cc, h}
  10780. * src/BtInterestedMessage.cc
  10781. * src/PeerSessionResource.{cc, h}
  10782. * src/DefaultPeerStorage.{cc, h}
  10783. * src/BtNotInterestedMessage.cc
  10784. * src/DefaultBtMessageDispatcher.{cc, h}
  10785. * src/BtMessageDispatcher.h
  10786. * src/Peer.{cc, h}
  10787. * src/BtLeecherStateChoke.{cc, h}
  10788. * src/BtSetup.cc
  10789. * src/BtSeederStateChoke.{cc, h}
  10790. * src/PeerStorage.h
  10791. * test/MockPeerStorage.h
  10792. * test/MockBtMessageDispatcher.h
  10793. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. Fixed compilation error on x84-64 platform.
  10795. * src/AuthConfig.cc: Included ostream.
  10796. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. Rewritten getBasename() and getDirname(), without standard library
  10798. basename(), dirname().
  10799. * src/File.cc
  10800. * test/FileTest.cc
  10801. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Added Simplified Chinese translation. Also updated the following
  10803. translations: Polish, Dutch, German. Great thanks to all translators.
  10804. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Suppress content-range error when 'Content-Range' response header
  10806. doesn't contains bytes-unit specifier 'bytes'
  10807. * src/HttpHeader.cc (getRange)
  10808. * test/HttpHeaderTest.cc
  10809. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. Fixed compilation error with g++-4.3
  10811. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Added missing include files for MinGW
  10813. * test/HttpHeaderProcessorTest.cc
  10814. * test/DHTRoutingTableSerializerTest.cc
  10815. * test/DHTRoutingTableDeserializerTest.cc
  10816. * test/UriListParserTest.cc
  10817. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. Now download line is printed nicely with no garbage at the end of
  10819. line. I use ioctl to get the columns of terminal.
  10820. If stdout is redirected to another device, instead of carriage return,
  10821. end of line '\n' character is used. This is feature request#1909659
  10822. * src/ConsoleStatCalc.cc (calculateStat)
  10823. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10824. Included a2time.h
  10825. * src/DHTMessageDispatcher.h
  10826. * src/DHTMessageEntry.h
  10827. * src/DHTReplaceNodeTask.h
  10828. * src/DHTMessageTracker.h
  10829. * src/Util.h
  10830. * src/CookieBox.h
  10831. * src/SocketCore.h
  10832. * src/DefaultBtMessageDispatcher.h
  10833. * src/SocketCore.cc
  10834. * src/Util.cc
  10835. * src/DHTPingTask.h
  10836. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Fixed high memory footprint when DHT is enabled.
  10838. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10839. queued than it is processed and the queue is getting longer. As a
  10840. consequence, momory usage is increased.
  10841. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10842. replacement cache in DHTBucket which is described in Kademlia paper.
  10843. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10844. DHTReplaceNodeTask.
  10845. * src/DHTBucket.{h, cc}
  10846. (cacheNode): New function.
  10847. (getCachedNodes): New function.
  10848. (dropNode): Push back cached node to _nodes.
  10849. * test/DHTBucketTest.cc
  10850. (testCacheNode): New test
  10851. (testDropNode): New test
  10852. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10854. the unused 4KB memory when ssl is not used.
  10855. * src/SocketCore.cc
  10856. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Added summary log for peer announce storage.
  10858. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10859. Removed cast
  10860. * src/DefaultPeerStorage.cc (addPeer)
  10861. Log exception message
  10862. * src/DHTMessageTracker.cc (handleTimeout)
  10863. Fixed casting
  10864. * test/HttpRequestTest.cc
  10865. * test/MetalinkProcessorTest.cc
  10866. * test/PieceTest.cc
  10867. * test/MetalinkEntryTest.cc
  10868. * test/SequenceTest.cc
  10869. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. * src/ParameterizedStringParser.cc (createLoop):
  10871. Removed unused variable sstep.
  10872. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10873. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. * src/Util.{h, cc}
  10875. (parseUInt): New function.
  10876. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10877. The actual range is uint32_t.
  10878. * test/UtilTest.cc
  10879. * src/ParameterizedStringParser.cc:
  10880. Use Util::parseUInt() for loop variables.
  10881. * test/ParameterizedStringParserTest.cc
  10882. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10883. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10884. Rewritten the functions for binding port.
  10885. * src/DHTConnectionImpl.{h, cc}
  10886. * src/PeerListenCommand.{h, cc}
  10887. * src/DHTSetup.cc
  10888. * src/BtSetup.cc
  10889. * test/DHTConnectionImplTest.cc
  10890. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10891. type cleanup for allmost all remaining files.
  10892. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. Type clarification
  10894. * src/PeerSessionResource.{h, cc}
  10895. * src/DefaultPieceStorage.{h, cc}
  10896. * src/Peer.{h, cc}
  10897. * test/PeerSessionResourceTest.cc
  10898. Use div function
  10899. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10900. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10901. Type clarification
  10902. * src/DefaultPeerStorage.{h, cc}
  10903. * test/DefaultPeerStorageTest.cc
  10904. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Type clarification: size_t for length or size, uint64_t for file
  10906. length, off_t for file offset.
  10907. * src/DefaultBtProgressInfoFile.cc
  10908. * src/DefaultBtContext.{h, cc}
  10909. * src/DefaultBtInteractive.cc
  10910. * src/DownloadCommand.{h, cc}
  10911. * src/IteratableChunkChecksumValidator.{h, cc}
  10912. * src/SegmentMan.{h, cc}
  10913. * src/SingleFileDownloadContext.{h, cc}
  10914. * src/IteratableChecksumValidator.{h, cc}
  10915. * src/BtContext.h
  10916. * src/IteratableValidator.h
  10917. * src/DownloadContext.h
  10918. * test/SingleFileDownloadContextTest.cc
  10919. * test/DefaultBtContextTest.cc
  10920. * test/MockBtContext.h
  10921. * test/Metalink2RequestGroupTest.cc
  10922. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. Type clarification: size_t for length or size, uint64_t for file
  10924. length, off_t for file offset.
  10925. * src/PiecedSegment.cc
  10926. * src/GrowSegment.h
  10927. * src/DefaultBtRequestFactory.h
  10928. * src/DefaultBtProgressInfoFile.cc
  10929. * src/UnknownLengthPieceStorage.h
  10930. * src/DefaultPieceStorage.cc
  10931. * src/UnknownLengthPieceStorage.cc
  10932. * src/DefaultBtInteractive.cc
  10933. * src/GrowSegment.cc
  10934. * src/BitfieldMan.h
  10935. * src/DownloadCommand.cc
  10936. * src/BtRequestFactory.h
  10937. * src/PiecedSegment.h
  10938. * src/DefaultPieceStorage.h
  10939. * src/Piece.cc
  10940. * src/DefaultBtRequestFactory.cc
  10941. * src/PieceStorage.h
  10942. * src/Segment.h
  10943. * src/Piece.h
  10944. * src/BitfieldMan.cc
  10945. * src/Util.cc
  10946. * test/DefaultBtProgressInfoFileTest.cc
  10947. * test/DefaultPieceStorageTest.cc
  10948. * test/MockPieceStorage.h
  10949. * test/BtRequestMessageTest.cc
  10950. * test/DefaultBtMessageDispatcherTest.cc
  10951. * test/BitfieldManTest.cc
  10952. * test/GrowSegmentTest.cc
  10953. * test/PieceTest.cc
  10954. * test/SegmentTest.cc
  10955. * test/SegmentManTest.cc
  10956. * test/DefaultBtRequestFactoryTest.cc
  10957. * test/MockBtRequestFactory.h
  10958. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10959. Fixed compilation error with --disable-nls
  10960. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10961. in gettext.h causes the problem.
  10962. * src/common.h
  10963. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Removed subPiece related functions.
  10965. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10966. * src/DefaultPieceStorage.{h, cc}
  10967. * test/PieceTest.cc
  10968. * test/DefaultPieceStorageTest.cc
  10969. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Use unsigned char for data store.
  10971. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10972. Bump up version number to 0.13.0+1
  10973. * configure.ac
  10974. * Release 0.13.0+1
  10975. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Changed inactive connection timeout to 120.
  10977. To accept more mulually interested peers, disconnect peer when there
  10978. is no interest between us after certain time passed.
  10979. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10980. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10982. when compiled with async DNS support.
  10983. * src/DownloadEngine.cc
  10984. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10985. value '10' will be a little bit short when some DNS servers are
  10986. offline and several DNS servers are tried. It should be configured
  10987. by command-line option.
  10988. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Merged Ross's mingw patch.
  10990. * src/DHTRoutingTableDeserializer.cc
  10991. * src/DHTRoutingTableSerializer.cc
  10992. * src/Platform.{h, cc}
  10993. * src/timegm.h
  10994. * src/gettimeofday.h
  10995. * src/getaddrinfo.h
  10996. * src/SocketCore.h
  10997. * src/common.h
  10998. * src/inet_aton.h
  10999. * src/DownloadEngine.h
  11000. * src/gai_strerror.h
  11001. * src/a2netcompat.h
  11002. * configure.ac
  11003. * configure
  11004. * aclocal.m4
  11005. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11006. Included missing iostream.
  11007. * test/AllTest.cc
  11008. * test/BtDependencyTest.cc
  11009. * test/BtExtendedMessageTest.cc
  11010. * test/DHTConnectionImplTest.cc
  11011. * test/DHTMessageFactoryImplTest.cc
  11012. * test/DHTMessageTrackerEntryTest.cc
  11013. * test/DHTNodeTest.cc
  11014. * test/DHTRoutingTableSerializerTest.cc
  11015. * test/DefaultBtAnnounceTest.cc
  11016. * test/DefaultBtContextTest.cc
  11017. * test/DefaultBtMessageFactoryTest.cc
  11018. * test/DefaultExtensionMessageFactoryTest.cc
  11019. * test/HandshakeExtensionMessageTest.cc
  11020. * test/HttpResponseTest.cc
  11021. * test/MetalinkProcessorTest.cc
  11022. * test/MultiFileAllocationIteratorTest.cc
  11023. * test/SocketCoreTest.cc
  11024. * test/UTPexExtensionMessageTest.cc
  11025. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11026. Reorganized includes.
  11027. * src/NameResolver.cc
  11028. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Fixed compilation error without ares/c-ares
  11030. * src/NameResolver.h:
  11031. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Added a test for large file.
  11033. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11034. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Fixed the bug that file size is ignored if size > INT32_MAX
  11036. * src/SizeMetalinkParserState.cc (endElement):
  11037. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11038. Bump up version number to 0.13.0
  11039. * configure.ac
  11040. * Release 0.13.0
  11041. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Updated Makfefile.am to make 'make dist' work.
  11043. Now packaged filename is aria2c-VERSION.tar.bz2.
  11044. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11045. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11046. Large file support is now configured by configure script.
  11047. * configure.ac
  11048. Removed unsused source files
  11049. * src/
  11050. * test/
  11051. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11052. Peer.h and BtContext.h respectively.
  11053. * src/Peer.h
  11054. * src/BtContext.h
  11055. Updated translations.
  11056. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11057. translations. Great thanks to all translators!;)
  11058. * po/*.{po, gmo}
  11059. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11061. statically declared sha1 MessageDigestContext.
  11062. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11063. initialization of short-lived MessageDigestContext.
  11064. * src/MessageDigestHelper.{h, cc}
  11065. * src/main.cc
  11066. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11067. the initialization of MessageDigestContext every time in validating
  11068. chunk checksum.
  11069. * src/DownloadCommand.{h, cc}
  11070. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Add a file descriptor which connected to fast peer(latency<1500) to
  11072. select(). This change reduced CPU load.
  11073. * src/PeerInteractionCommand.cc
  11074. * src/DefaultBtInteractive.{h, cc}
  11075. * src/BtInteractive.h
  11076. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11077. Fixed the previous insufficient fix for possible busy loop.
  11078. * src/MSEHandshake.cc (identifyHandshakeType)
  11079. Removed unused functions.
  11080. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11081. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. Fixed possible busy loop if first 20 bytes are not received for a few
  11083. minutes.
  11084. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11085. * src/ReceiverMSEHandshakeCommand.cc
  11086. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. Fixed compilation error
  11088. * src/ExpatMetalinkProcessor.cc
  11089. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11090. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11091. * src/DHTBucket.cc
  11092. Removed unnecessary cast.
  11093. * src/HandshakeExtensionMessage.cc
  11094. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11096. is missing.
  11097. * src/OptionHandlerFactory.cc
  11098. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Fixed the bug that HAVE message is not sent for a piece they are
  11100. downloaded fom http/ftp server before any BitTorrent handshake is done
  11101. with peers.
  11102. * src/DefaultBtInteractive.cc
  11103. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11104. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11105. * src/Makefile.am
  11106. * src/Makefile.in
  11107. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Updated README. Added html version of README and man page.
  11109. * README
  11110. * README.html
  11111. * readme2html: Shell script to generate README.html from README using
  11112. asciidoc.
  11113. * doc/aria2c.1.html
  11114. * doc/makeman: Added the line to generate aria2c.1.html
  11115. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. Fixed offset calculation.
  11117. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11118. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Rewritten itos and uitos using template. llitos and ullitos are
  11120. replaced with itos and uitos respectively.
  11121. * src/Util.{h, cc}
  11122. * test/UtilTest.cc
  11123. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11125. of the number of bytes required for storing public key and shared
  11126. secret.
  11127. * src/LibgcryptDHKeyExchange.h
  11128. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11129. * src/MSEHandshake.cc
  11130. * test/DHKeyExchangeTest.cc
  11131. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11132. Removed since they are not used.
  11133. * src/Xml2MetalinkProcessor.{h, cc}
  11134. * src/Socket.cc
  11135. * src/SegmentSplitter.{h, cc}
  11136. * test/Xml2MetalinkProcessorTest.cc
  11137. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11138. Fixed the bug that prevents aria2 from stopping other than by pressing
  11139. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11140. option. aria2 doesn't stop even after --seed-time is satisfied and
  11141. continues to output blank lines in the console.
  11142. * src/ReceiverMSEHandshakeCommand.cc
  11143. * src/PeerReceiveHandshakeCommand.cc
  11144. * src/PeerListenCommand.cc
  11145. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. Bump up version number to 0.13.0rc
  11147. * configure.ac
  11148. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. Updated man page and some usage text.
  11150. * doc/aria2c.1.txt
  11151. * src/usage_text.h
  11152. * po/*.{po, gmo}
  11153. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Updated translations. Added Finnish and Hebrew translations.
  11155. Great thanks to all translators!
  11156. * po/*.{po, gmo}
  11157. * po/LINGUAS
  11158. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11159. Log more detailed information about each message.
  11160. * src/DHTQueryMessage.{h, cc}
  11161. * src/DHTGetPeersMessage.{h, cc}
  11162. * src/DHTFindNodeReplyMessage.{h, cc}
  11163. * src/DHTGetPeersReplyMessage.{h, cc}
  11164. * src/DHTAnnouncePeerMessage.{h, cc}
  11165. * src/DHTResponseMessage.{h, cc}
  11166. * src/DHTFindNodeMessage.{h, cc}
  11167. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Use constants defined in prefs.h
  11169. * src/option_processing.cc
  11170. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11172. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Make room for future enchancements for IPv6 addresses.
  11174. Bump up version number of dht.dat file format to 2.
  11175. Not compatible with previous version.
  11176. * src/DHTRoutingTableSerializer.cc
  11177. * src/DHTRoutingTableDeserializer.cc
  11178. * test/DHTRoutingTableSerializerTest.cc
  11179. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11180. Added handling for the return values from
  11181. PeerMessageUtil::createcompact().
  11182. * src/DefaultBtContext.cc (computeFastSet):
  11183. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11184. Fixed abort when peer's ip address is IPv4-mapped address.
  11185. * src/DefaultBtContext.cc (computeFastSet)
  11186. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11187. cannot handle IPv4-mapped addresses.
  11188. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11189. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11190. Proper return value handling for OpenSSL functions.
  11191. * src/LibsslDHKeyExchange.h
  11192. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11193. Random bytes generation using libgcrypt and OpenSSL.
  11194. * src/DHTUtil.{h, cc}
  11195. * test/DHTUtilTest.cc
  11196. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11198. received.
  11199. * src/DHTMessageReceiver.cc (receiveMessage)
  11200. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11201. Fixed the bug that a return code is always 0. BUG#1897704
  11202. If error occurred during the download or there exist unfinished
  11203. downloads, aria2 returns with code 1.
  11204. * src/RequestGroupMan.{h, cc}
  11205. * src/MultiUrlRequestInfo.{h, cc}
  11206. * src/main.cc
  11207. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. IPv6 support for SocketCore class.
  11209. TODO: In SocketCore::establishConnection(), this is insufficient to
  11210. determin the failure of connect() here because the socket is
  11211. non-blocking state. The next addresses should be tried after select().
  11212. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11213. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11214. instead which address family independent.
  11215. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11216. information in a compact peer format which is for IPv4 only.
  11217. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11218. this is a spec of BitTorrent protocol.
  11219. * src/SocketCore.{h, cc}
  11220. * src/PeerMessageUtil.cc
  11221. * test/SocketCoreTest.cc
  11222. * test/PeerMessageUtilTest.cc
  11223. * test/DHTConnectionImplTest.cc
  11224. Handle IPv4-mapped addresses.
  11225. * src/DHTNode.cc: Now identity is determined by node id.
  11226. * src/DHTMessageTrackerEntry.cc
  11227. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11228. should handle it.
  11229. * src/DHTRoutingTableDeserializer.cc
  11230. * src/DHTMessageFactoryImpl.cc
  11231. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. Change the unit of --stop option from a minute to a second.
  11233. * src/usage_text.h
  11234. * src/DownloadEngineFactory.cc
  11235. * src/OptionHandlerFactory.cc
  11236. * src/message.h
  11237. * src/TimedHaltCommand.cc
  11238. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Make listening socket non-block mode.
  11240. * src/FtpConnection.cc
  11241. * src/FtpNegotiationCommand.{h, cc}
  11242. * src/PeerListenCommand.cc
  11243. Fixed the bug that cause slow ftp negotiation.
  11244. * src/FtpNegotiationCommand.{h, cc}
  11245. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11246. Added basic tag to --enable-dht, --dht-listen-port option.
  11247. * src/HelpItemFactory.cc (createHelpItems)
  11248. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. Updated text.
  11250. * src/usage_text.h
  11251. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11253. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11254. Determin _threadtholdSpeed in each constructor for
  11255. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11256. * src/ActivePeerConnectionCommand.{h, cc}
  11257. * src/PeerReceiveHandshakeCommand.{h, cc}
  11258. * src/BtSetup.cc
  11259. * src/BtConstants.h
  11260. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Added --bt-min-crypto-level and --bt-require-crypto options.
  11262. * src/OptionHandlerFactory.cc
  11263. * src/MSEHandshake.cc
  11264. * src/HelpItemFactory.cc
  11265. * src/option_processing.cc
  11266. * src/ReceiverMSEHandshakeCommand.cc
  11267. * src/prefs.h
  11268. * src/DefaultBtAnnounce.cc
  11269. * src/InitiatorMSEHandshakeCommand.cc
  11270. * src/usage_text.h
  11271. * test/MSEHandshakeTest.cc
  11272. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Bump version number to 0.13.0b
  11274. * configure.ac
  11275. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Updated doc.
  11277. * src/MessageDigestHelper.h:
  11278. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. Use raw message digest as a token instead of its hexadecimal
  11280. representation.
  11281. * src/DHTTokenTracker.cc (generateToken)
  11282. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. Added Message Stream Encryption(MSE) support.
  11284. Currently, aria2 accepts incoming connections with Obfuscation Header
  11285. and legacy BitTorrent Header and establishes connections with
  11286. Obfuscation Header first and if failed then retry with legacy
  11287. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11288. choose ARC4. The new option to change the default behavior is planned.
  11289. For tracker extension, "supportcrypto=1" is added statically.
  11290. * src/PeerInitiateConnectionCommand.{h, cc}
  11291. * src/PeerConnection.{h, cc}
  11292. * src/HandleRegistry.h
  11293. * src/SocketCore.h
  11294. * src/PeerReceiveHandshakeCommand.{h, cc}
  11295. * src/BtRegistry.{h, cc}
  11296. * src/PeerListenCommand.cc
  11297. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11298. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11299. * src/MSEHandshake.{h, cc}
  11300. * src/ARC4Encryptor.h
  11301. * src/ARC4Decryptor.h
  11302. * src/LibgcryptARC4Encryptor.h
  11303. * src/LibgcryptARC4Decryptor.h
  11304. * src/LibgcryptARC4Context.h
  11305. * src/LibsslARC4Encryptor.h
  11306. * src/LibsslARC4Decryptor.h
  11307. * src/LibsslARC4Context.h
  11308. * src/DHKeyExchange.h
  11309. * src/LibgcryptDHKeyExchange.h
  11310. * src/LibsslDHKeyExchange.h
  11311. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11312. * test/DefaultBtAnnounceTest.cc
  11313. * test/ARC4Test.cc
  11314. * test/DHKeyExchangeTest.cc
  11315. Removed prepareForRetry() because it is not used.
  11316. * src/PeerAbstractCommand.{h, cc}
  11317. * src/PeerInteractionCommand.{h, cc}
  11318. * src/PeerInitiateConnectionCommand.{h, cc}
  11319. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Added the ability to load nodes from torrent file. These nodes are
  11321. added to the routing table when downloading that torrent.
  11322. * src/BtContext.h
  11323. * src/DefaultBtContext.{h, cc}
  11324. * src/DHTSetup.cc
  11325. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11326. hostname and port pair, and resolves all of them.
  11327. * src/NameResolver.{h, cc}: Added reset().
  11328. * src/RequestGroup.cc
  11329. * test/DefaultBtContextTest.cc
  11330. * test/MockBtContext.h
  11331. Removed assert() from DefaultBtContext and throw exception instead.
  11332. * src/DefaultBtContext.cc
  11333. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Fixed segmentation fault bug when exiting if dht is disabled.
  11335. * src/RequestGroup.cc
  11336. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. Fixed typo in log message and define the message in message.h
  11338. * src/TimedHaltCommand.cc
  11339. * src/message.h
  11340. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11341. Included RecoverableException.h to fix compilation error.
  11342. * test/DHTMessageFactoryImplTest.cc
  11343. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11345. * test/DHTPingMessageTest.cc
  11346. * test/DHTGetPeersMessageTest.cc
  11347. * test/DHTFindNodeMessageTest.cc
  11348. * test/DHTAnnouncePeerMessageTest.cc
  11349. * test/MockDHTMessage.h
  11350. * test/MockDHTMessageFactory.h
  11351. * test/MockDHTMessageDispatcher.h: New class.
  11352. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11353. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11354. virtual.
  11355. * src/DHTMessageDispatcher.h
  11356. * src/DHTMessageDispatcherImpl.{h, cc}
  11357. * src/DHTSetup.cc
  11358. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11359. Adding handling of DHT error message. Just log error message and
  11360. throw exception.
  11361. * src/DHTMessageFactoryImpl.cc
  11362. * test/DHTMessageFactoryImplTest.cc
  11363. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11364. Added handling of dynamic cast failure.
  11365. * src/DHTNodeLookupTask.cc
  11366. * src/DHTPeerLookupTask.cc
  11367. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Added the ability to stop aria2 itself when given time has passed
  11369. from start. Use --stop option to specify time in minutes.
  11370. When 0 is given, this feature is disabled.
  11371. * src/OptionHandlerFactory.cc
  11372. * src/TimeBasedCommand.h: Make _interval protected scope.
  11373. * src/HelpItemFactory.cc
  11374. * src/option_processing.cc
  11375. * src/prefs.h
  11376. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11377. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11378. Without this modification, the result list shows "ERR" when aria2 is
  11379. stopped by --stop option. It should be "INPR".
  11380. * src/DownloadEngine.{h, cc}
  11381. * src/DownloadEngineFactory.cc
  11382. * src/usage_text.h
  11383. * src/TimedHaltCommand.{h, cc}: New class.
  11384. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11385. Bootstrap through node added by port message.
  11386. Currently bootstrap is executed if the number of buckets in routing
  11387. table is 1.
  11388. * src/BtPortMessage.{h, cc}
  11389. * src/DefaultBtMessageFactory.{h, cc}
  11390. * src/PeerInteractionCommand.cc
  11391. * test/BtPortMessageTest.cc
  11392. * test/MockDHTTask.h
  11393. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. Extract the Peer class's member variables, which are only needed after
  11395. PeerInteractionCommand, into PeerSessionResource class.
  11396. This class is instantiated in PeerInteractionCommand class's ctor and
  11397. released in its dtor.
  11398. This will make Peer class lightweight and uses less memory for peers
  11399. which are not connected and wait in the queue.
  11400. * src/PeerChokeCommand.cc
  11401. * src/PeerSessionResource.{h, cc}
  11402. * src/PeerInteractionCommand.cc
  11403. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11404. * src/DefaultBtInteractive.cc
  11405. * src/BtPieceMessage.cc
  11406. * src/BtInterestedMessage.cc
  11407. * src/BtUnchokeMessage.cc
  11408. * src/DefaultPeerStorage.{h, cc}
  11409. * src/PeerInitiateConnectionCommand.cc
  11410. * src/ActivePeerConnectionCommand.cc
  11411. * src/BtNotInterestedMessage.cc
  11412. * src/DefaultBtMessageDispatcher.cc
  11413. * src/BtChokeMessage.cc
  11414. * src/BtRequestMessage.cc
  11415. * src/Peer.{h, cc}
  11416. * src/BtRegistry.h
  11417. * src/TrackerWatcherCommand.cc
  11418. * src/PeerReceiveHandshakeCommand.cc
  11419. * test/BtExtendedMessageTest.cc
  11420. * test/BtAllowedFastMessageTest.cc
  11421. * test/BtCancelMessageTest.cc
  11422. * test/DefaultPieceStorageTest.cc
  11423. * test/BtBitfieldMessageTest.cc
  11424. * test/BtHaveMessageTest.cc
  11425. * test/BtNotInterestedMessageTest.cc
  11426. * test/BtRequestMessageTest.cc
  11427. * test/PeerSessionResourceTest.cc
  11428. * test/DefaultBtMessageDispatcherTest.cc
  11429. * test/PeerTest.cc
  11430. * test/BtInterestedMessageTest.cc
  11431. * test/BtRejectMessageTest.cc
  11432. * test/BtChokeMessageTest.cc
  11433. * test/DefaultPeerStorageTest.cc
  11434. * test/BtHaveNoneMessageTest.cc
  11435. * test/BtHaveAllMessageTest.cc
  11436. * test/DefaultExtensionMessageFactoryTest.cc
  11437. * test/BtUnchokeMessageTest.cc
  11438. * test/DefaultBtMessageFactoryTest.cc
  11439. * test/HandshakeExtensionMessageTest.cc
  11440. * test/UTPexExtensionMessageTest.cc
  11441. * test/DefaultBtRequestFactoryTest.cc
  11442. * test/BtPieceMessageTest.cc
  11443. Removed typedef PeerStats.
  11444. * src/PeerStat.h
  11445. * src/SegmentMan.cc
  11446. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. Added std namespace to copy, remove_copy, back_inserter,
  11448. front_inserter.
  11449. * src/RequestGroupMan.cc
  11450. * src/DefaultPieceStorage.cc
  11451. * src/StreamFileAllocationEntry.cc
  11452. * src/BtFileAllocationEntry.cc
  11453. * src/RequestGroup.cc
  11454. * src/MetalinkEntry.cc
  11455. * src/DelegatingPeerListProcessor.cc
  11456. * src/DefaultBtRequestFactory.cc
  11457. * src/DefaultBtMessageDispatcher.cc
  11458. * src/version_usage.cc: Included <algorithm>
  11459. * src/main.cc
  11460. * src/MetalinkParserController.cc
  11461. * src/DefaultBtContext.cc
  11462. * src/DownloadEngineFactory.cc
  11463. * src/a2algo.h
  11464. Removed.
  11465. * test/StreamUriListParserTest.cc
  11466. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11468. ActivePeerConnectionCommand when it is given and
  11469. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11470. * src/ActivePeerConnectionCommand.{h, cc}
  11471. * src/BtSetup.cc
  11472. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Only add socket to DownloadEngine's select routine when peer or
  11474. localhost is unchoked and interested. This lowers CPU usage a
  11475. little bit.
  11476. * src/PeerInteractionCommand.cc
  11477. * src/PeerAbstractCommand.{h, cc}
  11478. * src/BtInteractive.h
  11479. * src/DefaultBtInteractive.{h, cc}
  11480. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11481. Revert previous change because get_peers message is needed for
  11482. announce_peer anyway.
  11483. * src/DHTGetPeersCommand.cc
  11484. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11485. Request peers thought DHT only when download hasn't finished.
  11486. * src/DHTGetPeersCommand.cc
  11487. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11489. * src/DHTBucketRefreshTask.{h, cc}
  11490. * src/DHTSetup.cc
  11491. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11492. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11493. standard classes.
  11494. Included string.h where mem* function are used.
  11495. Added namespace aria2.
  11496. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Create directory before saving DHT routing table.
  11498. Now ios::failure is now handled properly.
  11499. * src/DHTAutoSaveCommand.cc
  11500. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11501. Removed unnecessary cerr.
  11502. * src/DownloadEngine.cc
  11503. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Catch exception inside DHTMessageReceiver::receiveMessage().
  11505. Log unknown message.
  11506. * src/DHTMessageReceiver.{h, cc}
  11507. * src/DHTMessageFactory.h
  11508. * src/DHTMessageFactoryImpl.{h, cc}
  11509. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11510. * src/DHTInteractionCommand.cc
  11511. * src/DHTUnknownMessage.{h, cc}
  11512. * test/DHTUnknownMessageTest.cc
  11513. * test/MockDHTMessageFactory.h
  11514. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11515. Commented out ip address comparison because a host can have multiple
  11516. ip addresses and it is hard to predict the hostname is resolved into
  11517. which one.
  11518. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11519. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11520. * po/Makefile.in: Removed since this is generated by configure.
  11521. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. Fixed compiler warning about redefinition of SIZE_MAX.
  11523. Use common.h instead of config.h directly here.
  11524. * src/Platform.{h, cc}
  11525. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11526. here.
  11527. * common.h
  11528. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11529. Updated gettext related files.
  11530. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11531. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11532. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. Added DHT functionality, compatible with mainline.
  11534. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11535. You may need to specify entry point to DHT network using
  11536. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11537. Use --dht-listen-port to specify port number. Make sure that your
  11538. firewall configuration can pass through UDP traffic to the port.
  11539. The routing table is saved in $HOME/.aria2/dht.dat.
  11540. * src/DHT*
  11541. * src/BNode.{h, cc}
  11542. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11543. particular torrent.
  11544. * src/Data.cc: Rewritten ctor.
  11545. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11546. --dht-entry-point.
  11547. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11548. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11549. ends, remove BtContext from DHTPeerAnnounceStorage.
  11550. * src/BtPortMessage.{h, cc}: Rewritten.
  11551. * src/message.h
  11552. * src/OptionHandlerImpl.cc
  11553. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11554. --dht-entry-point.
  11555. * src/Dictionary.{h, cc} (remove): New function.
  11556. * src/prefs.h
  11557. * src/DefaultBtMessageFactory.h
  11558. * src/BtHandshakeMessage.cc
  11559. * src/ActivePeerConnectionCommand.cc
  11560. * src/SocketCore.{h, cc}: Added datagram socket support.
  11561. * src/DefaultBtMessageFactory.cc
  11562. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11563. Create DHT commands.
  11564. * src/BtMessageFactory.h
  11565. * src/PeerMessageUtil.{h, cc}
  11566. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11567. Fixed the bug that log file is not written when configuration file doesn't exist.
  11568. This is caused by using Logger class before LogFactory is not configured.
  11569. BUG #1875079
  11570. * src/option_processing.cc
  11571. Warning message "configuration doesn't exist" is only printed when --conf is
  11572. given.
  11573. * src/option_processing.cc
  11574. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11575. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11576. ShaVisitor is now deprecated and slated to be removed.
  11577. * src/DefaultBtContext.cc
  11578. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11579. Externalize message to message.h
  11580. * src/Platform.cc
  11581. * src/message.h
  11582. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. Set default domain and default path to cookie.
  11584. * src/HttpResponse.cc
  11585. * src/CookieBox.{h, cc}
  11586. * src/CookieParser.{h, cc}
  11587. * test/CookieParserTest.cc
  11588. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11589. Added --no-conf and --conf-path command-line option.
  11590. --no-conf option disables loading aria2.conf file.
  11591. --conf-path option changes the configuration file path. The default
  11592. file path is $HOME/.aria2/aria2.conf
  11593. Added a warning message when the configuration file is not found.
  11594. * src/HelpItemFactory.cc
  11595. * src/option_processing.cc
  11596. * src/prefs.h
  11597. * src/usage_text.h
  11598. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Added the message to inform users that other help categories are
  11600. available in -h option.
  11601. * src/version_usage.cc
  11602. * src/TagContainer.{h, cc}
  11603. * test/TagContainerTest.cc
  11604. * src/TaggedItem.{h, cc}
  11605. * test/TaggedItemTest.cc
  11606. * src/HelpItem.h
  11607. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11609. from PiecedSegment's ctor.
  11610. Previously Piece::getAllMissingBlockIndexes() is called from
  11611. PiecedSegment() but it is rather expensive since only first element is
  11612. used.
  11613. * src/PiecedSegment.cc
  11614. * src/Piece.{h, cc}
  11615. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11616. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11617. each time these functions are called.
  11618. * src/BitfieldMan.{h, cc}
  11619. * test/BitfieldManTest.cc
  11620. * src/array_fun.h
  11621. * test/array_funTest.cc
  11622. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11623. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11624. filtered. Removed unnecessary cast to int32_t.
  11625. * src/BitfieldMan.{h, cc}
  11626. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11628. payload length(4bytes) are received. This happens because lenbufLength
  11629. is not updated in this particular case and successive call of
  11630. receiveMessage() overwrites payload length with bytes recieved which
  11631. are payload body.
  11632. * src/PeerConnection.{h, cc}
  11633. * src/message.h
  11634. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11636. peer if there are peers that have same ipaddr and port.
  11637. I've experiened segmentation fault and "pure virtual function was
  11638. called" error.
  11639. * src/Peer.h
  11640. * test/PeerTest.cc
  11641. * src/DefaultPeerStorage.cc
  11642. * test/DefaultPeerStorageTest.cc
  11643. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11644. Removed a call to isPowerOf() because it is no longer necessary here
  11645. and a request block is not always power of 2.
  11646. BUG#1866924
  11647. * src/PeerMessageUtil.cc (checkLength)
  11648. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Fixed the bug that always first found Segment is removed from
  11650. usedSegmentEntries. Removed unused functions.
  11651. * src/SegmentMan.{h, cc}
  11652. * test/SegmentManTest.cc
  11653. Fixed the bug that ServerHost is not removed.
  11654. * src/RequestGroup.cc
  11655. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Fixed the bug that SegmentMan::completeSegment() is not called
  11657. even if Segment is complete when --lowest-speed-limit is enabled.
  11658. BUG#1864525
  11659. * src/DownloadCommand.{h, cc}
  11660. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Fixed: hash algorithm 'sha1' is always used.
  11662. * src/DownloadCommand.cc (validatePieceHash)
  11663. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. Added --enable-peer-exchange command-line option.
  11665. * src/OptionHandlerFactory.cc
  11666. * src/HelpItemFactory.cc
  11667. * src/option_processing.cc
  11668. * src/usage_text.h
  11669. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Move extension from BtRuntime to ExtensionMessageFactory, because
  11671. extension can be specified per peer, not per torrent.
  11672. * src/DefaultBtInteractive.cc
  11673. * src/BtRuntime.h
  11674. * src/ExtendedMessagingAware.h
  11675. * src/ExtensionMessageFactory.h
  11676. * src/DefaultExtensionMessageFactory.cc
  11677. * test/DefaultExtensionMessageFactoryTest.cc
  11678. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. Added categorized option help. Specify category using --help option.
  11680. Also added the ability to search options in forward match.
  11681. * src/HelpItem.{h, cc}
  11682. * test/HelpItemTest.cc
  11683. * src/HelpItemFactory.{h, cc}
  11684. * src/TagContainer.{h, cc}
  11685. * test/TagContainerTest.cc
  11686. * src/option_processing.cc
  11687. * src/prefs.h
  11688. * src/TaggedItem.{h, cc}
  11689. * test/TaggedItemTest.cc
  11690. * src/version_usage.cc
  11691. * src/help_tags.h
  11692. * src/usage_text.h
  11693. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. Fixed segmentation fault when bad torrent metainfo is parsed.
  11695. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11696. and then throw exception or skip it.
  11697. * src/DefaultBtContext.{h, cc}
  11698. * test/DefaultBtContextTest.cc
  11699. * src/AnnounceList.cc
  11700. * src/CompactPeerListProcessor.cc
  11701. * src/message.h
  11702. * src/DefaultBtAnnounce.{h, cc}
  11703. * test/DefaultBtAnnounceTest.cc
  11704. * src/BencodeVisitor.cc
  11705. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11706. Added missing "B"(=Byte). So now the message looks like this:
  11707. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11708. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11709. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11710. Show the seed ratio after torrent downloads.
  11711. For example, after torrent download completed and --seed-time and
  11712. --seed-ratio conditions are fulfilled, following message is printed
  11713. right after "Download complete: .....":
  11714. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11715. * src/RequestGroupMan.cc
  11716. * src/RequestGroup.{h, cc}
  11717. * src/message.h
  11718. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. Remove a defunct control file. A defunct control file means that while
  11720. it exists, but the corresponding download file is missing.
  11721. After its removal, a download restarts from the beginning.
  11722. * src/RequestGroup.cc
  11723. * src/message.h
  11724. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. Allocate bitfield in Peer when it is really used. More specifically,
  11726. bitfield in Peer is allocated after the connection is established and
  11727. deallocated when the connection is dropped.
  11728. Since 2 parameters(piece length and total length) was removed from the
  11729. constructor of Peer class, many test classes were modified accordingly.
  11730. See svn log for more detailed information.
  11731. * src/PeerInteractionCommand.cc
  11732. * src/CompactPeerListProcessor.cc
  11733. * src/Peer.cc
  11734. * src/DefaultPeerListProcessor.cc
  11735. * src/PeerListenCommand.cc
  11736. * src/PeerReceiveHandshakeCommand.cc
  11737. Fixed memory leak
  11738. * src/Piece.cc
  11739. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11740. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11741. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11742. command-line options.
  11743. * src/option_processing.cc
  11744. * src/ActivePeerConnectionCommand.cc
  11745. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11746. Send have message to peer if it already has the piece.
  11747. * src/BtHaveMessage.{h, cc}
  11748. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11750. port.
  11751. * src/DefaultPeerStorage.{h, cc}
  11752. * test/DefaultPeerStorageTest.cc
  11753. * src/HandshakeExtensionMessage.cc
  11754. * test/HandshakeExtensionMessageTest.cc
  11755. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11756. * src/PeerStorage.h
  11757. * test/MockPeerStorage.h
  11758. * src/PeerListenCommand.cc
  11759. * src/PeerReceiveHandshakeCommand.cc
  11760. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11761. Added --metalink-enable-unique-protocol option.
  11762. * src/Metalink2RequestGroup.cc
  11763. * src/option_processing.cc
  11764. * src/prefs.h
  11765. * src/version_usage.cc
  11766. * doc/aria2c.1.txt
  11767. * doc/aria2c.1
  11768. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. Allow a peer in incomingPeer to be added peers.
  11770. * src/DefaultPeerStorage.cc
  11771. * test/DefaultPeerStorageTest.cc
  11772. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11773. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11774. I could reproduce this bug in following procedure:
  11775. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11776. 2. Restart aria2.
  11777. 3. You see the download stopped around 99%.
  11778. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11779. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11780. If timeout is reached, then _nextCommand is unused and it may contains
  11781. segments and they won't be canceled. Actually, timeout is not needed
  11782. here because if the server dropped connection, then retry is made.
  11783. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11784. Added uTorrent compatible Peer Exchange.
  11785. * src/BencodeVisitor.{h, cc}
  11786. * test/BencodeVisitorTest.cc
  11787. * src/BtConstants.h
  11788. * src/BtContext.h: Added 'private' flag.
  11789. * src/BtExtendedMessage.{h, cc}
  11790. * test/BtExtendedMessageTest.cc
  11791. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11792. reserved field.
  11793. * test/BtHandshakeMessageTest.cc
  11794. * src/BtMessageFactory.h
  11795. * src/BtRegistry.h
  11796. * src/BtRuntime.h: This class holds default extension message IDs for
  11797. aria2. By default, aria2 uses ID 8 for ut_pex.
  11798. * src/DefaultBtContext.cc
  11799. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11800. When it is true, aria2 enables ut_pex. This value is set by
  11801. PeerInteractionCommand.
  11802. * src/DefaultBtMessageFactory.{h, cc}
  11803. * test/DefaultBtMessageFactoryTest.cc
  11804. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11805. handling to DefaultBtInteractive class.
  11806. * src/DefaultExtensionMessageFactory.{h, cc}
  11807. * test/DefaultExtensionMessageFactoryTest.cc
  11808. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11809. the container(peers and incomingPeers. The equality is determined by
  11810. Peer::id).
  11811. * test/DefaultPeerStorageTest.cc
  11812. * src/ExtensionMessage.h
  11813. * test/MockExtensionMessage.h
  11814. * src/ExtensionMessageFactory.h
  11815. * test/MockExtensionMessageFactory.h
  11816. * src/HandshakeExtensionMessage.{h, cc}
  11817. * test/HandshakeExtensionMessageTest.cc
  11818. * src/MetaEntry.h
  11819. * src/Peer.{h, cc}
  11820. * src/PeerInteractionCommand.cc
  11821. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11822. addIncomingPeer.
  11823. * src/PeerMessageUtil.{h, cc}
  11824. * src/PeerObject.h
  11825. * src/UTPexExtensionMessage.{h, cc}
  11826. * test/UTPexExtensionMessageTest.cc
  11827. * src/message.h
  11828. * src/prefs.h
  11829. Fixed the bug that returns incomplete data when it contains null
  11830. character. A convenient constructor was also added.
  11831. * src/Data.{h, cc}
  11832. Rewritten.
  11833. * src/CompactPeerListProcessor.cc
  11834. Fixed typos.
  11835. * src/message.h
  11836. * src/MetaFileUtil.cc
  11837. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Added "Status Legend" label to the explanation text of 'stat' in
  11839. download result and moved it to the last. BUG#1848214
  11840. * src/RequestGroupMan.cc
  11841. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11842. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11843. * src/Makefie.am
  11844. * test/Makefile.am
  11845. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. Fixed the bug that prevents aria2 from loading cookie file when expire
  11847. value is greater than 2^31-1. BUG#1851066
  11848. * src/CookieBoxFactory.cc
  11849. * test/CookieBoxFactoryTest.cc
  11850. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. Fixed possible memory leak when an exception is thrown.
  11852. * src/XML2SAXMetalinkProcessor.cc
  11853. Added Expat support. If both libxml2 and Expat are installed, then
  11854. libxml2 is used by default.
  11855. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11856. ExpatMetalinkProcessor according to the configuration.
  11857. * src/ExpatMetalinkProcessor.{h, cc}
  11858. * src/main.cc: Removed libxml2 specific header and init/free function.
  11859. * src/MetalinkProcessorFactory.{h, cc}
  11860. * src/MetalinkHelper.cc
  11861. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11862. * src/MetalinkProcessor.h
  11863. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11864. MetalinkProcessorTest is used instead.
  11865. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11866. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11867. MetalinkProcessorFactory::newInstance().
  11868. * m4/libexpat.m4
  11869. * configure.ac: Added configuration options for libexpat.
  11870. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. Disabled -s option in metalink download.
  11872. * src/Metalink2RequestGroup.cc
  11873. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11874. If several protocols are available for a mirror in metalink file,
  11875. aria2 now use one of them. --metalink-preferred-protocol option was
  11876. added to specify the preference of protocol.
  11877. * src/AbstractCommand.cc
  11878. * src/OptionHandlerFactory.cc
  11879. * src/ServerHost.{h, cc}
  11880. * src/Metalink2RequestGroup.cc
  11881. * src/RequestGroup.{h, cc}
  11882. * test/RequestGroupTest.cc
  11883. * src/option_processing.cc
  11884. * src/prefs.h
  11885. * src/HttpResponseCommand.cc
  11886. * src/MetalinkResource.{h, cc}
  11887. * src/FtpNegotiationCommand.cc
  11888. * src/MetalinkEntry.{h, cc}
  11889. * src/MetalinkEntryTest.cc
  11890. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11891. Code cleanup and added debug log.
  11892. * src/PeerConnection.cc
  11893. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11894. Compiler error fix: applied the patch by Tiziano Mueller
  11895. * src/RequestGroup.cc
  11896. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11898. in stopped and completed event.
  11899. * src/AnnounceList.{h, cc}
  11900. * test/AnnounceListTest.cc
  11901. * src/DefaultBtAnnounce.cc
  11902. * test/DefaultBtAnnounceTest.cc
  11903. Sorted URLs.
  11904. * test/Metalink2RequestGroupTest.cc
  11905. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11906. Removed unnecessary string copy. Updated doc and corrected indentation.
  11907. * src/Base64.cc
  11908. Fixed compilation warnings
  11909. * test/DataTest.cc
  11910. * test/HttpRequestTest.cc
  11911. * test/MetaFileUtilTest.cc
  11912. * test/RequestTest.cc
  11913. * Release 0.12.0
  11914. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Updated translations
  11916. * po/{de,fr,ja,nl,ru}.po
  11917. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11918. translations. Many thanks to translators.
  11919. * po/{ca,es,it,pt_BR,sv}.po
  11920. * po/LINGUAS
  11921. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. Added a notice about URL
  11923. * src/version_usage.cc
  11924. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11925. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11926. aria2 repeatedly sends stopped request when tracker returns error code.
  11927. * src/AnnounceList.cc
  11928. * test/AnnounceListTest.cc
  11929. * src/AnnounceTier.h
  11930. Added a message when ctrl-c is hit.
  11931. Now second ctrl-c is also handled in signal handler.
  11932. * src/RequestGroupMan.{h, cc}
  11933. * src/RequestGroup.{h, cc}
  11934. * src/MultiUrlRequestInfo.cc
  11935. * src/DownloadEngine.cc
  11936. * src/TrackerWatcherCommand.cc
  11937. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. Code cleanup
  11939. * src/Base64.cc (encode)
  11940. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. Changed Direct/IO enable/disable procesure in file allocation routine.
  11942. * src/SingleFileAllocationIterator.cc
  11943. (SingleFileAllocationIterator):
  11944. Disable directIO if offset is not multiple of 512.
  11945. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11946. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11947. Enable created SingleFileAllocationIterator's directIO.
  11948. * src/FileAllocationEntry.cc
  11949. (FileAllocationEntry): Enable directIO here.
  11950. (~FileAllocationEntry): Disable directIO here.
  11951. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11953. * src/Peer.{h, cc}
  11954. * src/DefaultPieceStorage.cc
  11955. * test/DefaultPieceStorageTest.cc
  11956. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. Rewritten direct I/O support routine
  11958. * src/SingleFileAllocationIterator.cc
  11959. * src/MultiDiskAdaptor.{h, cc}
  11960. * src/ByteArrayDiskWriter.h
  11961. * src/AbstractSingleDiskAdaptor.h
  11962. * src/AbstractDiskWriter.cc
  11963. * src/DefaultPieceStorage.cc
  11964. * src/DiskWriter.h
  11965. * src/BinaryStream.h
  11966. * src/IteratableChunkChecksumValidator.cc
  11967. * src/IteratableChecksumValidator.cc
  11968. * src/CheckIntegrityEntry.cc
  11969. * src/FileAllocationEntry.cc
  11970. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Fixed typo
  11972. * src/version_usage.cc
  11973. Updated doc
  11974. * doc/aria2c.1.txt
  11975. * doc/aria2c.1
  11976. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11977. Fixed compile error without message digest support.
  11978. * src/FileMetalinkParserState.cc
  11979. * src/MetalinkParserController.{h, cc}
  11980. * test/XML2SAXMetalinkProcessorTest.cc
  11981. * test/MetalinkParserControllerTest.cc
  11982. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11983. Enable direct I/O support in checksum checking.
  11984. * src/IteratableChunkChecksumValidator.{h, cc}
  11985. * test/IteratableChunkChecksumValidatorTest.cc
  11986. * src/CheckIntegrityEntry.cc
  11987. * src/PieceHashCheckIntegrityEntry.cc
  11988. * src/IteratableChecksumValidator.{h, cc}
  11989. * src/BtCheckIntegrityEntry.cc: Added doc.
  11990. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Added --allow-piece-length-change option.
  11992. * src/DefaultBtProgressInfoFile.cc
  11993. * test/DefaultBtProgressInfoFileTest.cc
  11994. * src/OptionHandlerFactory.cc
  11995. * src/option_processing.cc
  11996. * src/prefs.h
  11997. * src/version_usage.cc
  11998. * doc/aria2c.1.txt
  11999. * doc/aria2c.1
  12000. Fixed: duplicated result entry appears when exception is thrown in
  12001. RequestGroup::createInitiateConnectionCommand().
  12002. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12003. Add RequestGroup to _requestGroup after RequetGroup::
  12004. createInitiateConnectionCommand() succeeds.
  12005. Externalized message
  12006. * src/XML2SAXMetalinkProcessor.cc
  12007. * src/message.h
  12008. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12009. Forced download abort when received negative response from http/ftp
  12010. server.
  12011. * src/HttpResponseCommand.cc
  12012. * src/FtpNegotiationCommand.cc
  12013. * src/HttpResponse.cc
  12014. * src/FtpConnection.cc
  12015. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12016. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12017. the predecessor, Xml2MetalinkParser class.
  12018. I tested them against 94KB metalink file with 1234 chunk checksums.
  12019. The new one parsed it in 22msec, while it took 6000msec with old one.
  12020. * src/XML2SAXMetalinkProcessor.{h, cc}
  12021. * test/XML2SAXMetalinkProcessorTest.cc
  12022. * src/MetalinkParserController.{h, cc}
  12023. * test/MetalinkParserControllerTest.cc
  12024. * src/MetalinkParserState.h: Also added 16 subclasses.
  12025. * src/main.cc
  12026. * src/Metalink2RequestGroup.cc
  12027. * src/MetalinkHelper.cc
  12028. * src/MetalinkEntry.cc
  12029. * src/ChunkChecksum.h
  12030. Rewritten Base64 class for better performance.
  12031. * src/Base64.{h, cc}
  12032. * test/Base64Test.cc
  12033. * src/HttpRequest.cc
  12034. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12035. Fixed the bug#1841757: aria2 will connect to server to only get
  12036. file size.
  12037. * src/StreamFileAllocationEntry.cc
  12038. * src/option_processing.cc
  12039. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12040. downloads.
  12041. * src/FtpNegotiationCommand.cc
  12042. Suppressed wrong message when finding PreDownloadHandler
  12043. * src/RequestGroup.cc
  12044. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12045. Updated usage
  12046. * src/version_usage.cc
  12047. Updated man page
  12048. * doc/aria2c.1.txt
  12049. * doc/aria2c.1
  12050. Updated po files
  12051. * po/aria2c.pot
  12052. * po/*.po
  12053. * po/*.gmo
  12054. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12055. Eliminated g++-4.2 warning
  12056. * src/DownloadHandlerConstants.{h, cc}
  12057. * src/Util.cc
  12058. * test/MetaFileUtilTest.cc
  12059. * test/PStringBuildVisitorTest.cc
  12060. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12061. * src/RequestGroup.cc
  12062. * src/BtCheckIntegrityEntry.cc
  12063. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12064. Fixed a2io.h
  12065. * src/a2io.h
  12066. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12067. Added direct I/O support. The current implementation uses O_DIRECT,
  12068. which is not posix standard and is tested on linux 2.6.21.
  12069. Currently only file allocation uses direct I/O.
  12070. * src/SingleFileAllocationIterator.{h, cc}
  12071. * test/SingleFileAllocationIteratorTest.cc
  12072. * src/MultiFileAllocationIterator.{h, cc}
  12073. * test/MultiFileAllocationIteratorTest.cc
  12074. * src/BinaryStream.h
  12075. * src/DiskWriter.h
  12076. * src/AbstractDiskWriter.{h, cc}
  12077. * src/ByteArrayDiskWriter.h
  12078. * src/DiskAdaptor.h
  12079. * src/AbstractSingleDiskAdaptor.{h, cc}
  12080. * src/MultiDiskAdaptor.{h, cc}
  12081. * src/FileAllocationEntry.cc
  12082. * src/Util.{h, cc}
  12083. * src/OptionHandlerFactory.cc
  12084. * src/prefs.h
  12085. * src/version_usage.cc
  12086. * src/option_processing.cc
  12087. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12088. handleException.
  12089. * src/MultiFileAllocationIterator.cc
  12090. Added EINTR handling
  12091. * src/SocketCore.cc
  12092. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12093. Updated usage
  12094. * src/version_usage.cc
  12095. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. Applied Ross's patch for MinGW port.
  12097. * src/DownloadEngine.h
  12098. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12099. Set Content-Type to SingleFileDownloadContext when http response is
  12100. received.
  12101. * src/HttpResponseCommand.cc
  12102. * src/HttpResponse.{h, cc}
  12103. * test/HttpResponseTest.cc
  12104. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. Rewritten to add content-type support.
  12106. * src/DownloadHandler.{h, cc}
  12107. * src/BtPostDownloadHandler.{h, cc}
  12108. * test/BtPostDownloadHandlerTest.cc
  12109. * src/MetalinkPostDownloadHandler.{h, cc}
  12110. * test/MetalinkPostDownloadHandlerTest.cc
  12111. * src/PostDownloadHandler.{h, cc}
  12112. * src/DownloadHandlerConstants.{h, cc}
  12113. * src/RequestGroup.cc
  12114. * src/HttpResponseCommand.cc
  12115. * src/FtpNegotiationCommand.cc
  12116. * src/SingleFileDownloadContext.{h, cc}
  12117. * src/RequestGroup.h
  12118. * src/RequestGroupCriteria.h
  12119. * src/ContentTypeRequestGroupCriteria.h
  12120. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12121. If it is give, metalink/torrent file is not written to the disk, but
  12122. just is kept in memory. Parsing is occurred on memory.
  12123. * src/MetalinkHelper.{h, cc}
  12124. * src/MetalinkProcessor.h
  12125. * src/Xml2MetalinkProcessor.{h, cc}
  12126. * test/Xml2MetalinkProcessorTest.cc
  12127. * src/DownloadHandlerFactory.{h, cc}
  12128. * test/DownloadHandlerFactoryTest.cc
  12129. * src/PreDownloadHandler.{h, cc}
  12130. * src/OptionHandlerFactory.cc
  12131. * src/DefaultBtContext.{h, cc}
  12132. * test/DefaultBtContextTest.cc
  12133. * src/version_usage.cc
  12134. * src/Metalink2RequestGroup.{h, cc}
  12135. * src/RequestGroup.{h, cc}
  12136. * src/a2functional.h
  12137. * test/a2functionalTest.cc
  12138. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12139. * src/OptionHandlerImpl.h
  12140. * src/prefs.h
  12141. * src/Util.{h, cc}
  12142. * test/UtilTest.cc
  12143. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12144. memory usage.
  12145. * src/RequestGroupMan.{h, cc}
  12146. * src/DownloadEngine.cc
  12147. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12148. WeakHandle to SharedHandle because WeakHandle could be null.
  12149. * src/RequestGroup.{h, cc}
  12150. * src/DownloadEngineFactory.cc
  12151. * src/DownloadResult.h
  12152. Set totalLength after download finished
  12153. * src/UnknownLengthPieceStorage.{h, cc}
  12154. Keep torrent file specified in metalink in memory.
  12155. * src/Metalink2RequestGroup.cc
  12156. * src/BtDependency.cc
  12157. * src/TrueRequestGroupCriteria.h
  12158. Fixed the bug: seekg is used where seekp should be used.
  12159. * src/ByteArrayDiskWriter.cc
  12160. * test/ByteArraydiskWriterTest.cc
  12161. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12162. Fixed syntax error
  12163. * test/SequenceTest.cc
  12164. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12165. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12166. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12167. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12168. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12169. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. Added the check to see whether ares_host_callback accepts timeouts
  12171. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12172. * src/NameResolver.{h, cc}
  12173. * m4/libcares.m4
  12174. * configure.ac: Set C++ for language choice.
  12175. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12176. Fixed: compilation fails without c-ares/ares
  12177. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12178. Generate http/ftp commands only when download is incomplete.
  12179. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12180. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12181. Corrected typo. Examples are removed since they are available in man
  12182. page.
  12183. * src/version_usage.cc
  12184. Updated man page.
  12185. * doc/aria2c.1
  12186. * doc/aria2c.1.txt
  12187. * doc/makeman: Commented out sed command.
  12188. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12189. Throw DlAbortEx when a remote file is not found.
  12190. * src/HttpResponse.cc
  12191. * src/FtpNegotiationCommand.cc
  12192. * src/message.h
  12193. Overwrite an existing file if --allow-overwrite=true is given.
  12194. * src/RequestGroup.cc
  12195. Removed unused functions
  12196. * src/AbstractCommand.h
  12197. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. Removed 'extern' from 'extern typedef ...' in src/*.h
  12199. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12200. Updated usage
  12201. * src/version_usage.cc
  12202. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12203. Trim announce URL
  12204. * src/DefaultBtContext.cc
  12205. * test/ShaVisitorTest.cc
  12206. Trim argument s. Give trimed s to exception constructor.
  12207. * src/Util.cc (parseInt)(parseLLInt)
  12208. * test/UtilTest.cc
  12209. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12210. Set precision back to 1.
  12211. * src/ConsoleStatCalc.cc (calculateStat)
  12212. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. Replaced strtol with Util::parseInt
  12214. * src/ChunkedEncoding.cc
  12215. * src/HttpConnection.cc
  12216. * src/CookieBoxFactory.cc
  12217. * src/ParameterizedStringParser.cc
  12218. * src/Util.cc
  12219. * test/UtilTest.cc
  12220. * test/OptionHandlerTest.cc
  12221. * src/Request.cc
  12222. Throw exception when empty string is given. The message for exception
  12223. changed.
  12224. * src/Util.cc (parseInt)(parseLLInt)
  12225. * src/message.h
  12226. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12228. set to 1.
  12229. * src/ConsoleStatCalc.cc (calculateStat)
  12230. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12231. Preallocate non-requested file which is adjacent forward to requested
  12232. file('requested' files means the files given in --select-file option)
  12233. if they share a same piece.
  12234. This fixes long pause in the file system which doesn't support sparse
  12235. files like FAT32 while downloading.
  12236. * src/MultiFileAllocationIterator.{h, cc}
  12237. * test/MultiFileAllocationIteratorTest.cc
  12238. * src/FileEntry.{h, cc}
  12239. Removed unused _option.
  12240. * src/MultiDiskAdaptor.h
  12241. * test/MultiDiskAdaptorTest.cc
  12242. * src/DefaultPieceStorage.cc
  12243. Set the default value of --seed-ratio to 1.0.
  12244. If 0.0 is given, then seeding continues regardless of share ratio.
  12245. * src/version_usage.cc
  12246. * src/option_processing.cc
  12247. * src/BtSetup.cc
  12248. * doc/aria2c.1.txt
  12249. * doc/aria2c.1
  12250. Fixed: Selective download is not working in BitTorrent
  12251. * src/RequestGroup.cc
  12252. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12253. * src/PieceStorage.h
  12254. * test/MockPieceStorage.h
  12255. * src/UnknownLengthPieceStorage.h
  12256. * src/DefaultPieceStorage.{h, cc}
  12257. * src/Metalink2RequestGroup.cc
  12258. * src/RequestGroup.cc
  12259. * src/Sequence.h
  12260. * test/SequenceTest.cc
  12261. * src/IntSequence.h
  12262. * src/message.h
  12263. * src/Util.{h, cc}
  12264. * test/UtilTest.cc
  12265. Added new function 'parse' to catch exception thrown by subclass's
  12266. parseArg
  12267. * src/OptionHandler.h
  12268. * src/OptionParser.cc
  12269. * src/NameMatchOptionHandler.h
  12270. * src/OptionHandlerImpl.h
  12271. * test/OptionHandlerTest.cc
  12272. Added IntegerRangeOptionHandler. Used for --listen-port and
  12273. --select-file. Now --listen-port accepts range of port.
  12274. * src/OptionHandlerFactory.cc
  12275. * src/version_usage.cc
  12276. * src/OptionHandlerImpl.h
  12277. * src/option_processing.cc
  12278. * src/BtSetup.cc
  12279. * src/PeerListenCommand.{h, cc}
  12280. * doc/aria2c.1.txt
  12281. * doc/aria2c.1
  12282. Implemented operator< for Exception class to provide easy way to print
  12283. exception stack trace.
  12284. * src/Exception.{h, cc}
  12285. * src/main.cc
  12286. * src/option_processing.cc
  12287. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. * src/version_usage.cc
  12289. (showVersion): Reworked.
  12290. (showUsage): Added examples.
  12291. Removed Hint for total length and file name.
  12292. * src/Metalink2RequestGroup.cc
  12293. * src/RequestGroup.{h, cc}
  12294. * src/HttpResponseCommand.cc
  12295. * src/FtpNegotiationCommand.cc
  12296. Now --follow-torrent and --follow-metalink option work properly.
  12297. * src/RequestGroup.cc
  12298. Updated man page
  12299. * doc/aria2c.1.txt
  12300. * doc/aria2c.1
  12301. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12302. Removed.
  12303. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12304. Use Segment::operator==()
  12305. * src/HttpConnection.cc
  12306. * src/Segment.h
  12307. Updated usage
  12308. * src/version_usage.cc
  12309. Added EINTR treatment.
  12310. * src/SocketCore.cc
  12311. * src/AbstractDiskWriter.cc
  12312. Rewritten.
  12313. * src/Util.cc (rangedFileCopy)
  12314. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. Fixed typo.
  12316. * src/version_usage.cc
  12317. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12318. Implemented. Now -c option works fine.
  12319. * src/DefaultPieceStorage.cc (markPiecesDone)
  12320. * test/DefaultPieceStorageTest.cc
  12321. Removed.
  12322. * src/SegmentMan.{h, cc}
  12323. (markAllPiecesDone)
  12324. (markPieceDone)
  12325. Synchronized po files with
  12326. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12327. * src/fr.po
  12328. * src/ru.po
  12329. * src/de.po
  12330. * src/ja.po
  12331. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12332. Added ifdef and some modifications to compile without BitTorrent,
  12333. Metalink, MessageDigest
  12334. support.
  12335. * src/PieceHashCheckIntegrityEntry.cc
  12336. * src/MetalinkEntry.h
  12337. * src/version_usage.cc
  12338. * src/main.cc
  12339. * src/DownloadEngine.{h, cc}
  12340. * src/Metalink2RequestGroup.cc
  12341. * src/Peer.cc
  12342. * src/RequestGroup.cc
  12343. * src/MetalinkHelper.cc
  12344. * test/DefaultPieceStorageTest.cc
  12345. * test/MetalinkPostDownloadHandlerTest.cc
  12346. * test/Metalink2RequestGroupTest.cc
  12347. Hide TOTAL SPD when all downloads complete.
  12348. * src/ConsoleStatCalc.cc
  12349. Log target system information.
  12350. * src/main.cc
  12351. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12352. Now --metalink-location accepts a comma-deliminated list of locations.
  12353. * src/MetalinkEntry.{h, cc}
  12354. * test/MetalinkEntryTest.cc
  12355. * src/version_usage.cc
  12356. * src/Metalink2RequestGroup.cc
  12357. * src/Xml2MetalinkProcessor.cc
  12358. * test/Xml2MetalinkProcessorTest.cc
  12359. * doc/aria2c.1.txt
  12360. * doc/aria2c.1
  12361. * src/Util.cc (toUpper)(toLower): Rewritten.
  12362. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. Added the ability to detect duplicate download entry which is about to
  12364. download the same file other RequestGroup is downloading.
  12365. * src/RequestGroup.cc
  12366. * src/HttpResponseCommand.cc
  12367. * src/FtpNegotiationCommand.cc
  12368. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12369. Recalculates download progress when loading a control file,
  12370. if the piece length of DownloadContext is different from the one saved
  12371. in the control file. Currently in-flight pieces are ignored.
  12372. * src/DefaultBtProgressInfoFile.cc
  12373. * test/DefaultBtProgressInfoFileTest.cc
  12374. * src/Util.{h, cc}
  12375. * test/UtilTest.cc
  12376. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. Do not rotate tiers in announce-list.
  12378. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12379. AnnounceList::allTiersFailed() used instead to detect whether all
  12380. tiers are tried and failed.
  12381. * test/DefaultBtAnnounceTest.cc
  12382. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12383. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12384. * test/AnnounceListTest.cc
  12385. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12386. clause. Catch RecoverableException instead of DlRetryEx instead.
  12387. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12388. Implemented checksum validation feature(1 checksum for each file)
  12389. The validation takes place after the download.
  12390. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12391. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12392. * src/CheckIntegrityCommand.cc: Changed log message.
  12393. * src/Metalink2RequestGroup.cc: Set checksum to
  12394. SingleFileDownloadContext.
  12395. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12396. PieceHashCheckIntegrity class.
  12397. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12398. PieceHashCheckIntegrity class.
  12399. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12400. * src/IteratableValidator.h: New class.
  12401. * src/message.h
  12402. * src/CheckIntegrityEntry.{h, cc}
  12403. * src/IteratableChunkChecksumValidator.{h, cc}
  12404. * src/SingleFileDownloadContext.h
  12405. * src/DownloadCommand.cc
  12406. --allow-overwrite=true is no longer needed to check file integrity
  12407. before download in BitTorrent download.
  12408. * src/RequestGroup.cc (getInitialCommand)
  12409. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12410. throws exception.
  12411. * src/RequestGroupMan.cc (getInitialCommands)
  12412. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12413. urlencode the given url inside Request::parseUrl(...)
  12414. * src/Request.{h, cc}
  12415. * src/Util.{h, cc}
  12416. * test/RequestTest.cc
  12417. Removed #!metalink3! notation support because it is deleted from
  12418. the metalink specification.
  12419. * src/Request.{h, cc}
  12420. * test/RequestTest.cc
  12421. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12422. Don't connect server before checking file integrity at startup, if
  12423. filesize and output file path are known.
  12424. * src/AbstractCommand.cc
  12425. * src/StreamFileAllocationEntry.cc
  12426. * src/Metalink2RequestGroup.cc
  12427. * src/RequestGroup.{h, cc}
  12428. * src/HttpResponseCommand.cc
  12429. * src/FtpNegotiationCommand.cc
  12430. Added DownloadFailureException. If it is thrown, RequestGroup should
  12431. halt.
  12432. * src/AbstractCommand.cc
  12433. * src/DownloadFailureException.h
  12434. * src/RequestGroup.cc
  12435. Catch RecoverableException, instead of DlAbortEx.
  12436. * src/RequestGroupMan.cc
  12437. * src/FillRequestGroupCommand.cc
  12438. * src/MetaFileUtil.cc
  12439. * src/IteratableChunkChecksumValidator.cc
  12440. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12441. getGID())
  12442. * src/CheckIntegrityCommand.cc
  12443. * src/message.h
  12444. Print gid instead of idx.
  12445. * src/RequestGroupMan.cc
  12446. Removed exception throwers declaration.
  12447. * src/DirectDiskAdaptor.{h, cc}
  12448. * src/SocketCore.{h, cc}
  12449. * src/MultiDiskAdaptor.{h, cc}
  12450. * src/HttpConnection.{h, cc}
  12451. * src/HttpResponse.{h, cc}
  12452. * src/DiskAdaptor.{h, cc}
  12453. * src/CopyDiskAdaptor.{h, cc}
  12454. * src/MultiDiskAdaptor.{h, cc}
  12455. * src/HttpHeaderProcessor.{h, cc}
  12456. * src/AbstractSingleDiskAdaptor.{h, cc}
  12457. * src/Util.{h, cc}
  12458. * test/UtilTest.cc
  12459. * src/DefaultDiskWriter.{h, cc}
  12460. * src/FtpConnection.{h, cc}
  12461. * src/AbstractDiskWriter.{h, cc}
  12462. Removed duplicate code.
  12463. * src/StreamCheckIntegrityEntry.cc
  12464. Removed unnecessary include.
  12465. * src/DiskWriter.h
  12466. Included Exception.h
  12467. * src/option_processing.cc
  12468. Included 2 files and added doc
  12469. * src/TrackerWatcherCommand.cc
  12470. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12471. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12472. Changed CheckIntegrityEntry interface so that it can define
  12473. the action when all the chunk checksums are valid.
  12474. * src/CheckIntegrityEntry.h
  12475. * src/StreamCheckIntegrityEntry.{h, cc}
  12476. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12477. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12478. to exit rather than doing seeding. So, it would be good to toggle this
  12479. behavior.
  12480. * src/CheckIntegrityCommand.cc
  12481. * src/AbstractCommand.cc
  12482. * src/RequestGroup.cc
  12483. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12484. Reflect the download length of in-flight pieces.
  12485. It makes the download length readout more precise.
  12486. * src/DefaultPieceStorage.{h, cc}
  12487. * test/DefaultPieceStorageTest.cc
  12488. * src/a2functional.h
  12489. * test/a2functionalTest.cc
  12490. Lower CPU load when --max-download-limit is used.
  12491. There is up and down in speed indicator when enabling
  12492. http-pipelining but a download goes well. I think the problem is that
  12493. because http-pipelining is enabled, DownloadCommand is created for
  12494. each segment and in its constructor, PeerStat::downloadStart() is
  12495. called. In PeerStat::downloadStart(), speed calculation object is
  12496. reseted, which makes download speed zero.
  12497. * src/DownloadCommand.cc
  12498. Rewritten using accumulate.
  12499. * src/RequestGroupMan.cc (calculateStat)
  12500. Code clearnup.
  12501. * src/FtpNegotiationCommand.cc
  12502. * src/HttpResponseCommand.cc
  12503. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Fixed: Can not resume: aria2 reports download already finished.
  12505. * src/AbstractCommand.{h, cc}
  12506. * src/HttpResponseCommand.cc
  12507. * src/FtpNegotiateCommand.cc
  12508. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12509. Now a file is stored in the directory specified in .metalnk file
  12510. (file[@name]).
  12511. * src/Metalink2RequestGroup.cc
  12512. Create the directory structure when opening the file if it doesn't
  12513. exist.
  12514. * src/AbstractDiskWriter.cc
  12515. * src/Util.{h, cc}
  12516. * src/File.h
  12517. * test/UtilTest.cc
  12518. Removed file name comparison
  12519. * src/Metalink2RequestGroup.cc
  12520. * src/HttpResponseCommand.cc
  12521. Rewritten using Util::mkdirs()
  12522. * src/FileEntry.cc (setupDir)
  12523. * test/FileEntryTest.cc
  12524. Updated doc
  12525. * src/SingleFileDownloadContext.h
  12526. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12527. Now SleepCommand dispatches nextCommand when halt is requested.
  12528. It avoids a possible long wait after hitting CTRL-C.
  12529. * src/SleepCommand.{h, cc}
  12530. * src/RequestGroupAware.{h, cc}
  12531. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12532. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12533. to open listen port, then remove the port number from the tracker
  12534. request.
  12535. * src/DefaultBtAnnounce.cc
  12536. * test/DefaultBtAnnounceTest.cc
  12537. * test/MockPieceStorage.h
  12538. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12539. them more testable.
  12540. * src/DefaultBtAnnounce.{h, cc}
  12541. * src/DefaultBtContext.{h, cc}
  12542. * src/Util.{h, cc}
  12543. * test/DefaultBtAnnounceTest.cc
  12544. * test/DefaultBtContextTest.cc
  12545. * test/UtilTest.cc
  12546. Added 'B' to upload bytes readout.
  12547. * src/ConsoleStatCalc.cc
  12548. Now the listen port for BitTorrent download is opened when it is
  12549. needed.
  12550. * src/DownloadEngineFactory.cc
  12551. * src/BtSetup.{h, cc}
  12552. * src/PeerListenCommand.{h, cc}
  12553. Now an exception thrown while parsing tracker response is now logged.
  12554. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12555. called, which means no retry is made in this case, assuming a tracker
  12556. has a problem.
  12557. * src/TrackerWatcherCommand.cc
  12558. Fixed: downloading a file whose length is unkown fails.
  12559. * src/DownloadCommand.cc
  12560. Simplified prepareForNextSegment()
  12561. * src/DownloadCommand.cc
  12562. Updated
  12563. * po/POTFILES.in
  12564. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12565. Re-implemented a file listing for Metalink, which was dropped while
  12566. http/ftp/torrent integration was being implemented.
  12567. * src/MetalinkHelper.{h, cc}: New class.
  12568. * test/MetalinkHelperTest.cc
  12569. * src/main.cc
  12570. * src/Metalink2RequestGroup.cc
  12571. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12572. Added the ability to display the detailed torrent file information.
  12573. Now -S option gives not only a file listing, but also total download
  12574. length, info hash, announce URI, piece length, the number of pieces,
  12575. and mode(single or multi-torrent).
  12576. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12577. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12578. KiB)
  12579. * test/UtilTest.cc
  12580. * src/main.cc
  12581. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12582. Added ftp://USER:PASSWD@Servername automatic parsing.
  12583. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12584. _password. Recognize username and password in URI.
  12585. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12586. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12587. * src/RequestFactory.{h, cc}: Removed.
  12588. * src/AuthConfigFactory.{h, cc}: New class.
  12589. * src/FtpConnection.cc: Use AuthConfigFactory.
  12590. * src/HttpRequest.cc: Use AuthConfigFactory.
  12591. * test/HttpRequestTest.cc: Updated.
  12592. * test/RequestTest.cc: Updated.
  12593. * test/AuthConfigFactoryTest.cc: New class.
  12594. * test/RequestFactoryTest.cc: Removed.
  12595. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12596. Use RequestGroup::allDownloadFinished() to decide whether the control
  12597. file should be removed or saved.
  12598. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12599. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12600. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Use File::renameTo()
  12602. * src/DefaultBtProgressInfoFile.cc
  12603. Added --no-file-allocation-limit command-line option.
  12604. * src/version_usage.cc
  12605. * src/option_processing.cc
  12606. * src/OptionHandlerFactory.cc
  12607. * src/RequestGroup.{h, cc}
  12608. * src/BtCheckIntegrityEntry.cc
  12609. * src/StreamCheckIntegrityEntry.cc
  12610. * src/prefs.h
  12611. * doc/aria2c.1.txt
  12612. * doc/aria2c.1
  12613. Now prealloc is the default value for --file-allocation option.
  12614. * src/version_usage.cc
  12615. * src/option_processing.cc
  12616. * doc/aria2c.1.txt
  12617. * doc/aria2c.1
  12618. Don't URL-encode user-agent.
  12619. * src/HttpRequest.cc
  12620. Updated translations
  12621. * po/LINGUAS: Added nl for Dutch translation.
  12622. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12623. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12624. * po/POTFILES.in: Updated.
  12625. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12626. Added the ability to recognize url-list in a torrent file.
  12627. The retrieved URLs are attached to the corresponding FileEntry.
  12628. * src/DefaultBtContext.{h, cc}
  12629. * src/FileEntry.{h, cc}
  12630. * test/DefaultBtContextTest.cc
  12631. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12633. after the download finishes.
  12634. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12635. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12636. the data smaller than block length.
  12637. A block length can be specified by constructor's argument.
  12638. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12639. Get a missing piece in the range of given FileEntry. This function is
  12640. not used in the program yet.
  12641. * src/Util.h: Added some macros.
  12642. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. Added HTTP/1.1 keep alive and pipelining support.
  12644. See --enable-http-keep-alive and --enable-http-pipelining option.
  12645. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12646. Segment.
  12647. * src/HttpDownloadCommand.{h, cc}
  12648. * src/OptionHandlerFactory.cc
  12649. * src/HttpConnection.{h, cc}
  12650. * src/version_usage.cc
  12651. * src/HttpInitiateConnectionCommand.cc
  12652. * src/FtpInitiateConnectionCommand.cc
  12653. * src/Segment.h
  12654. * src/HttpRequestCommand.{h, cc}
  12655. * src/option_processing.cc
  12656. * src/prefs.h
  12657. * src/HttpResponseCommand.cc
  12658. * src/SegmentMan.{h, cc}
  12659. * src/FtpNegotiateCommand.cc
  12660. * src/HttpProxyResponseCommand.cc
  12661. * src/Request.cc
  12662. * src/HttpRequest.cc
  12663. * src/DownloadCommand.cc
  12664. * test/HttpRequestTest.cc
  12665. * test/RequestTest.cc
  12666. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12668. finished.
  12669. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12670. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12671. catching it inside the method.
  12672. When no file entry is found in a metalink without querying user
  12673. preferences, throw the exception with the error message that suggests
  12674. metalink file is probably broken.
  12675. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12676. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12678. processed.
  12679. * src/RequestGroupMan.cc (removeStoppedGroup)
  12680. Added debug message.
  12681. * src/BtPostDownloadHandler.cc
  12682. * src/MetalinkPostDownloadHandler.cc
  12683. * src/PostDownloadHandler.{h, cc}
  12684. * src/RequestGroup.cc
  12685. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12686. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12687. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12688. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12689. stops and there are any unfinished or in-progress downloads.
  12690. Added the legend of "stat".
  12691. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12692. Throw exception when chunck checksum verification fails.
  12693. * src/DownloadCommand.cc (validatePieceHash): New function.
  12694. * src/PiecedSegment.{h, cc} (clear): New function.
  12695. * src/GrowSegment.{h, cc} (clear): New function.
  12696. * src/Segment.h (clear): New function.
  12697. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12698. * test/SegmentTest.cc
  12699. * test/GrowSegmentTest.cc
  12700. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12701. Do not send referer when redirected.
  12702. * src/Request.cc (redirectUrl)
  12703. * test/RequestTest.cc
  12704. * test/HttpRequestTest.cc
  12705. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12706. Implemented BitTorrent/http/ftp integrated download.
  12707. I've rewritten lots of files and now some headers have forward
  12708. class declarations to reduce compile time.
  12709. The implementation is extremely alpha stage, I recommend to use this
  12710. for testing purpose only.
  12711. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12712. Fixed the compilation error on 64bit platform.
  12713. * test/HttpHeaderProcessorTest.cc
  12714. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12715. Merged Ross's patch that fixes compilation problem in MinGW
  12716. * test/DefaultBtProgressInfoFileTest.cc
  12717. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. Updated fr.po by sebone
  12719. * po/fr.po
  12720. Updated man page.
  12721. * doc/aria2c.1.txt
  12722. * Release 0.11.3
  12723. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12725. failure in Metalink.
  12726. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12727. Automatically save *.aria2 control file of http/ftp download in every
  12728. 60 seconds.
  12729. * src/AutoSaveCommand.{h, cc}: New class.
  12730. * src/TimeBasedCommand.{h, cc}: New class.
  12731. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12732. Disable parameterized URI support by default. Added -P option to
  12733. enable the feature.
  12734. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12735. * src/OptionHandlerFactory.cc
  12736. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12737. Updated Japanese translation.
  12738. * po/ja.po
  12739. Updated man page.
  12740. * doc/aria2c.1.txt
  12741. * Release 0.11.3-rc
  12742. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12743. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12744. it is successful, then renamed to *.aria2.
  12745. This prevents *.aria2 file from being truncated or corrupted when
  12746. file system becomes out of space.
  12747. * src/DefaultBtProgressInfoFile.cc (save)
  12748. * src/SegmentMan.cc (save)
  12749. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12750. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12751. Reduced the fragmentation of bitfield in http/ftp download.
  12752. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12753. * test/BitfieldManTest.cc
  12754. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12755. Added the ability to disable segmented download in .metalink.
  12756. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12757. 'url' tag.
  12758. * src/MetalinkEntry.{h, cc}
  12759. * src/RequestResource.{h, cc}
  12760. * src/MetalinkRequestInfo.cc
  12761. * src/Xml2MetalinkProcessor.cc
  12762. * test/Xml2MetalinkProcessorTest.cc
  12763. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12764. Added parameterized URI support.
  12765. * src/main.cc: -Z option added.
  12766. * src/OptionHandlerFactory.cc
  12767. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12768. * src/PStringDatum.h: New class.
  12769. * src/PStringSegment.{h,cc}: New class.
  12770. * src/PStringNumLoop.h: New class.
  12771. * src/PStringSelect.h: New class.
  12772. * src/NumberDecorator.h: New class.
  12773. * src/FixedWidthNumberDecorator.h: New class.
  12774. * src/AlphaNumberDecorator.h: New class.
  12775. * src/PStringVisitor.h: New class.
  12776. * src/PStringBuildVisitor.{h,cc}: New class.
  12777. * src/ParameterizedStringParser.{h,cc}: New class.
  12778. * src/Util.{h,cc}
  12779. (isNumber): New function.
  12780. (isLowercase): New function.
  12781. (isUppercase): New function.
  12782. (alphaToNum): New function.
  12783. * test/ParameterizedStringParserTest.cc: New class.
  12784. * test/AlphaNumberDecoratorTest.cc: New class.
  12785. * test/PStringBuildVisitorTest.cc: New class.
  12786. * test/UtilTest.cc
  12787. (testIsNumber): New function.
  12788. (testIsLowercase): New function.
  12789. (testIsUppercase): New function.
  12790. (testAlphaToNum): New function.
  12791. Added '\n' after the error message
  12792. * src/RequestInfo.h (printDownloadAbortMessage)
  12793. Added auto file renaming feature in http(s)/ftp download.
  12794. * src/main.cc: Added --auto-file-renaming command-line option.
  12795. * src/OptionHandlerFactory.cc
  12796. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12797. * src/RequestGroup.{h, cc}
  12798. (shouldCancelDownloadForSafety): Rewritten
  12799. (tryAutoFileRenaming): New function.
  12800. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12801. * src/HttpResponseCommand.cc
  12802. (executeInternal): Removed the call to RequestGroupMan::
  12803. isSameFileBeingDownloaded()
  12804. * src/FtpNegotiateCommand.cc
  12805. (recvSize): Removed the call to RequestGroupMan::
  12806. isSameFileBeingDownloaded()
  12807. * test/RequestGroupTest.cc: New class.
  12808. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12809. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12810. IO.
  12811. * src/DefaultBtProgressInfoFile.cc
  12812. * src/MetaFileUtil.cc
  12813. * src/SimpleLogger.cc
  12814. * src/SegmentMan.cc
  12815. * src/Util.cc
  12816. * src/Platform.cc
  12817. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12819. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12821. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12822. Fixed the bug that prevents file allocation is not done when
  12823. dowloading multi-torrent file.
  12824. * src/AbstractDiskWriter.cc (openFile)
  12825. Increase the maximum number of -j option from 15 to 45.
  12826. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12827. Added fr.po, thanks to Charles Landemaine.
  12828. * po/fr.po
  12829. * po/LINGUAS
  12830. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12831. gcc 3.4.4 support:
  12832. * src/DefaultBtContext.cc: int32_t -> int
  12833. * src/main.cc: int -> int32_t, int32_t -> int
  12834. * src/messageDigest.h: uint32_t -> unsigned int
  12835. * src/NameResolver.h: int32_t -> int
  12836. * src/PeerConnection.cc: int -> int32_t
  12837. * src/SpeedCalc.cc: int32_t -> int
  12838. * src/TrackerUpdateCommand.h: int -> int32_t
  12839. * src/Util.cc: int32_t -> int
  12840. * src/Util.h: int32_t -> int
  12841. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12842. * test/AnnounceListTest.cc: int -> int32_t
  12843. * test/ChunkedEncodingTest.cc: int -> int32_t
  12844. * test/DataTest.cc: int -> int32_t
  12845. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12846. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12847. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12848. * test/FeatureConfigTest.cc: int -> int32_t
  12849. * test/MetalinkEntryTest.cc: int -> int32_t
  12850. * test/MockBtRequestFactory.h: int -> int32_t
  12851. * test/MockPieceStorage.h: int -> int32_t
  12852. * test/OptionTest.cc: int -> int32_t
  12853. * test/RequestTest.cc: int -> int32_t
  12854. * test/SegmentManTest.cc: int -> int32_t
  12855. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12856. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12857. Move sleep functions to Util class:
  12858. * src/Util.cc
  12859. (sleep): New function.
  12860. (usleep): New function.
  12861. * src/DownloadCommand.cc: sleep -> Util::sleep
  12862. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12863. MinGW build enhancements. The following files are added:
  12864. * src/timegm.{c,h}
  12865. Changes to support the above new files:
  12866. * configure.ac
  12867. * src/Makefile.am
  12868. * src/a2time.h
  12869. * src/Util.cc:
  12870. * src/strptime.c: Added support for %Z option.
  12871. Fixed MinGW non-blocking bug.
  12872. * src/SocketCore.cc
  12873. * src/HttpRequestCommand.cc
  12874. Miscellenous build fixes/enhancements.
  12875. * configure.ac: Added summary report.
  12876. * src/Platform.h: Tweaked #include's.
  12877. * src/a2netcompat.h: Tweaked #include's.
  12878. * src/strptime.h: Tweaked #include's.
  12879. * src/gai_strerror.c: Tweaked #include's.
  12880. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12881. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12882. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12883. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12884. Increased the initial connection size in BitTorrent download to 40.
  12885. * src/BtRuntime.h
  12886. Added the usage message of --peer-id-prefix option.
  12887. * src/main.cc
  12888. * Release 0.11.2
  12889. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12890. MessageDigestHelper is introduced in order to simplify the use
  12891. of message digest. Removed repeated code.
  12892. The message digest algorithm is now specified by string, like "sha1",
  12893. "md5".
  12894. * src/messageDigest.{h, cc}
  12895. * src/MessageDigestHelper.{h, cc}: New class.
  12896. * src/DefaultPieceStorage.cc
  12897. * src/DefaultBtContext.{h, cc}
  12898. (computeFastSet): New function.
  12899. (setInfoHash): Added for unit testing.
  12900. (setNumPieces): Added for unit testing.
  12901. * src/DefaultBtInteractive.cc
  12902. * src/BtPieceMessage.cc
  12903. * src/Peer.cc
  12904. * src/Checksum.h
  12905. * src/message.h
  12906. * src/IteratableChecksumValidator.h
  12907. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12908. inside it.
  12909. * src/SegmentMan.{h, cc}
  12910. (checkIntegrity): Removed.
  12911. * src/IteratableChunkChecksumValidator.{h, cc}
  12912. * src/Util.h
  12913. (sha1Sum): Removed.
  12914. (simpleMessageDigest): Removed.
  12915. (fileChecksum): Removed.
  12916. (computeFastSet): Removed.
  12917. * src/ShaVisitor.cc
  12918. * src/ChunkChecksum.h
  12919. * src/DownloadCommand.cc
  12920. Removed messageDigest virtual functions.
  12921. * src/MultiDiskAdaptor.{h, cc}
  12922. * src/DiskAdaptor.h
  12923. * src/ByteArrayDiskWriter.h
  12924. * src/DiskWriter.h
  12925. * src/DiskAdaptorWriter.h
  12926. * src/AbstractSingleDiskAdaptor.{h, cc}
  12927. * src/AbstractDiskWriter.{h, cc}
  12928. Fixed comilation error when message digest is disabled.
  12929. * src/MetalinkEntry.{h, cc}
  12930. * src/MetalinkRequestInfo.cc
  12931. Removed srandom and random.
  12932. * src/SimpleRandomizer.h
  12933. Added size() virtual function to DiskAdaptor
  12934. * src/MultiDiskAdaptor.h
  12935. Fixed the bug that causes that files are not opened correctly in
  12936. multi-file torrent.
  12937. * src/TorrentRequestInfo.cc
  12938. * src/MultiDiskAdaptor.cc
  12939. Added SHA256 support
  12940. * src/messageDigest.cc
  12941. * src/Xml2MetalinkProcessor.cc
  12942. Show supported message digest algorithms
  12943. * src/main.cc
  12944. Updated contact info.
  12945. * src/main.cc
  12946. Applied Ross's patch
  12947. * src/a2netcompat.h
  12948. * src/main.cc
  12949. Fixed the bug that prevents a remote metalink from not being processed
  12950. even if '-o foo.metalink' is specified.
  12951. * src/MetalinkRequestInfo.cc
  12952. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. Merged Dan's patch:
  12954. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12955. Use va_copy to avoid core dump on amd64:
  12956. * src/SimpleLogger.cc
  12957. Updated contact info.
  12958. * src/main.cc
  12959. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12960. digest is not available.
  12961. * src/MetalinkEntry.h
  12962. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12963. Make a2netcompat.h include a2io.h to fix compilation error:
  12964. * src/a2netcompat.h
  12965. * src/SocketCore.cc: Removed include of a2io.h
  12966. * src/Util.cc: Removed include of a2io.h
  12967. Gather time related functions to a2time.h:
  12968. * src/a2time.h: New file.
  12969. * src/DefaultPeerStorage.cc
  12970. * src/SimpleLogger.cc
  12971. * src/Util.{h, cc}
  12972. * src/SimpleRandomizer.h
  12973. * src/TimeA2.{h,cc}
  12974. * src/DownloadCommand.cc
  12975. * src/main.cc
  12976. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12977. a2netcompat.h:
  12978. * src/NameResolver.cc
  12979. Fixed compilation error without openssl:
  12980. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12981. Added default block to suppress compiler warnings:
  12982. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12983. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12984. MinGW build enhancements. The following files are added:
  12985. * src/gai_strerror.{c,h}
  12986. * src/gettimeofday.{c,h}
  12987. Changes to support the above new files:
  12988. * configure.ac
  12989. * src/Makefile.am
  12990. * src/a2netcompat.h
  12991. * src/TimeA2.cc
  12992. * src/DefaultPeerStorage.cc
  12993. * src/NameResolver.cc: removed mingw_strerror() function.
  12994. * src/SocketCore.cc: removed mingw_strerror() function.
  12995. Miscellaneous MinGW build fixes.
  12996. * src/a2io.h: Use _lseeki64() instead of lseek()
  12997. * src/common.h
  12998. * src/DefaultFileAllocator.cc
  12999. * src/GlowFileAllocator.cc
  13000. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13001. * src/NameResolver.cc
  13002. (callback): Changed int32_t to int.
  13003. (resolve): Changed int32_t to int.
  13004. * src/Platform.cc
  13005. * src/Platform.h
  13006. * test/MultiDiskWriterTest.cc
  13007. * test/PeerMessageUtilTest.cc
  13008. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13009. Other enhancements and fixes.
  13010. * src/HttpRequestCommand.cc
  13011. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13012. * src/SocketCore.cc:
  13013. (error): New function to abstract errno/WSAGetLastError().
  13014. (errorMsg): New function to abstract errno/WSAGetLastError().
  13015. (initiateSecureConnection): Added more detailed error reporting.
  13016. * src/SocketCore.h: Added private variable blocking, to allow
  13017. proper handling of OpenSSL psuedo-errors.
  13018. * src/message.h
  13019. (EX_SSL_INIT_FAILURE)
  13020. (EX_SSL_IO_ERROR)
  13021. (EX_SSL_PROTOCOL_ERROR)
  13022. (EX_SSL_UNKNOWN_ERROR)
  13023. (EX_SSL_CONNECT_ERROR)
  13024. (EX_SOCKET_BLOCKING)
  13025. (EX_SOCKET_NONBLOCKING)
  13026. (EX_SOCKET_UNKNOWN_ERROR)
  13027. * src/Util.cc
  13028. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13029. reserved name.
  13030. (httpGMT): Fixed typo.
  13031. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13032. Merged Ross's win32 patch(manually)
  13033. In the course of merging, following files are added.
  13034. * src/strptime.{h,c}
  13035. * src/libgen.{h,c}
  13036. * src/inet_aton.{h,c}
  13037. * src/Platform.{h,cc}
  13038. * src/localtime_r.{h,c}
  13039. * src/getaddrinfo.{h,c}
  13040. I've gethered network related things, and put them to following file:
  13041. * src/a2netcompat.h
  13042. Also io related things are put to following file:
  13043. * src/a2io.h
  13044. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13045. * src/message.h
  13046. (MSG_ALLOCATION_COMPLETED)
  13047. (EX_TOO_LARGE_FILE)
  13048. (EX_SIZE_MISMATCH)
  13049. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13050. (EX_INVALID_CHUNK_CHECKSUM)
  13051. (EX_INVALID_RANGE_HEADER)
  13052. * src/FileAllocationCommand.cc
  13053. * src/HttpResponse.cc
  13054. * src/RequestGroup.cc
  13055. * src/MultiDiskAdaptor.cc
  13056. * src/OptionHandlerImpl.h
  13057. * src/HttpResponseCommand.cc
  13058. * src/FtpNegotiateCommand.cc
  13059. * src/IteratableChecksumValidator.cc
  13060. * src/SegmentMan.cc
  13061. * src/ChunkChecksumValidator.cc
  13062. Added Randomizer::getRandomNumber(long int)
  13063. * src/Randomizer.h (getRandomNumber)
  13064. * src/SimpleRandomizer.h (getRandomNumber)
  13065. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13066. * src/Util.cc (randomAlpha): Use this new function.
  13067. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13068. Converted int's to in32_t. long long int's are also converted to
  13069. int64_t
  13070. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13071. Fixed the bug that prevents cookies from being sent to the server
  13072. if the domain of cookie is FQDN and starts with ".".
  13073. * src/Cookie.cc (match)
  13074. To add the ability to change peer id.
  13075. * src/DefaultBtContext.h
  13076. (_peerIdPrefix): New variable
  13077. (setPeerIdPrefix): New function.
  13078. * src/torrentRequestInfo.cc
  13079. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13080. DefaultBtContext.
  13081. * src/main.cc (main): Added peer-id-prefix command-line option.
  13082. The usage message is not added yet.
  13083. * src/DefaultBtContext.cc
  13084. (generatePeerId): Use _peerIdPrefix.
  13085. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13086. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13087. Fixed the bug that prevents filename in content-disposition from
  13088. being retrieved when filename is not quoted.
  13089. * src/Util.cc (getContentDispositionFilename)
  13090. Fixed the bug that causes infinate loop and memory leak when file open
  13091. operation failed.
  13092. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13093. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13094. Fixed the bug that causes segfault when all URIs specified are
  13095. unsupported.
  13096. * src/RequestGroupMan.cc (getInitialCommands)
  13097. Check if RequestGroup::createNextCommand() returns empty list of
  13098. commands.
  13099. * src/RequestGroup.cc (createNextCommand)
  13100. Change log level from info to error so that users can notice that
  13101. an error occurred.
  13102. Fixed the bug that causes segfault when a zero-sized file is
  13103. downloaded.
  13104. * src/BitfieldMan.cc (isAllBitSet)
  13105. Return true if bitfieldLength is 0.
  13106. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13107. * src/main.cc
  13108. (showUsage): Added 3 usage examples for metalink download.
  13109. Replace MetalinkChunkChecksum with ChunkChecksum.
  13110. * src/MetalinkChunkChecksum.h: Removed.
  13111. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13112. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13113. * src/Xml2MetalinkProcessor.cc
  13114. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13115. * src/MetalinkRequestInfo.cc (execute)
  13116. * Release 0.11.1
  13117. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13118. Reads URIs from stdin when "-i -" is specified.
  13119. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13120. * src/UriListParser.h, src/UriListParser.cc: New class.
  13121. * src/StreamUriListParser.h: New class.
  13122. * src/FileUriListParser.h: New class.
  13123. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13124. instead of UriFileListParser.
  13125. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13126. Made console readout more readable.
  13127. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13128. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. Fix the bug that causes -s option not to work.
  13130. * src/main.cc (main)
  13131. * src/a2algo.h: New file.
  13132. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13133. Create directory structure specified in metalink file.
  13134. * src/RequestGroup.h, src/RequestGroup.cc
  13135. (initAndOpenFile): Create a directory to store files if it does not
  13136. exist.
  13137. (getDir): New function.
  13138. Added ETA and download speed for an individual file to readout.
  13139. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13140. * src/RequestGroup.h
  13141. (calculateDownloadSpeed): New function.
  13142. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13143. Made -S option work with metalink file and provided selective download
  13144. to metalink.
  13145. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13146. (filename): Removed.
  13147. (file): New variable.
  13148. (size): Removed.
  13149. (operator=): Updated.
  13150. (getPath): New function.
  13151. (getLength): New function.
  13152. (toFileEntry): New function.
  13153. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13154. (execute): Use toStream.
  13155. (showFileEntry): Removed.
  13156. * src/MetalinkRequestInfo.h
  13157. (targetFiles): New variable.
  13158. (setTargetFiles): New variable.
  13159. * src/MetalinkRequestInfo.cc
  13160. (execute): Added the ability to print file information included in
  13161. a metalink file.
  13162. Added selective download mode to metalink.
  13163. * src/main.cc
  13164. (showUsage): Updated to denote that -S and --select-file options are
  13165. applicable to metalink.
  13166. * src/FileEntry.h
  13167. (operator=): New function.
  13168. (getBasename): New function.
  13169. (getDirname): New function.
  13170. * src/Util.h, src/Util.cc
  13171. (toStream): New function.
  13172. * src/Xml2MetalinkProcessor.cc: Updated.
  13173. Made aria2 work with metalink with directory structure.
  13174. * src/File.h, src/File.cc
  13175. (getBasename): New function.
  13176. (getDirname): New function.
  13177. * src/RequestGroup.h, src/RequestGroup.cc
  13178. (_topDir): New variable.
  13179. (setTopDir): New function.
  13180. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13181. Rewrote HTTP header parsing with stringstream.
  13182. * src/HttpConnection.h, src/HttpConnection.cc
  13183. (HttpRequestEntry): New class.
  13184. (headerBuf): Removed.
  13185. (headerBufLength): Removed.
  13186. (outstandingHttpRequests): Now its element type is
  13187. HttpRequestEntryHandle.
  13188. (findEndOfHeader): Removed.
  13189. (receiveResponse): Rewritten.
  13190. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13191. Updated doc for -j option to notice that it should be used with -i
  13192. option.
  13193. * src/main.cc (showUsage)
  13194. Removed unused classes.
  13195. * src/RequestInfo.h
  13196. (FileInfo): Removed.
  13197. (checksum): Removed.
  13198. (fileInfo): Removed.
  13199. (setChecksum): Removed.
  13200. (getChecksum): Removed.
  13201. (getFileInfo): Removed.
  13202. Use ISO units.
  13203. * src/ConsoleDownloadEngine.cc
  13204. * src/TorrentConsoleDownloadEngine.cc
  13205. * src/Util.cc (abbrevSize)
  13206. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13207. Added the default listening ports to the help message.
  13208. * src/main.cc (showUsage)
  13209. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13210. Reduce the number of calls to gettimeofday to lower CPU load.
  13211. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13212. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13213. * src/Peer.h (calculateUploadSpeed): New function.
  13214. (calculateDownloadSpeed): New function.
  13215. * src/DefaultPeerStorage.cc
  13216. (CalculateStat): Added _now variable.
  13217. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13218. and Peer::calculateUploadSpeed(const struct timeval&)
  13219. Drop connection if no request or piece message is exchanged in
  13220. a certain interval.
  13221. * src/DefaultBtInteractive.h
  13222. (btRuntime): New variable.
  13223. (inactiveCheckPoint): New variable.
  13224. (checkActiveInteraction): New function.
  13225. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13226. request or piece message is received.
  13227. (checkActiveInteraction): New function.
  13228. (doInteractionProcessing): Call checkActiveInteraction.
  13229. Fixed the bug that causes remote Metalink and Torrent files are not
  13230. processed.
  13231. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13232. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13233. Changed format of log file.
  13234. * src/SimpleLogger.cc
  13235. * Release 0.11.0
  13236. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13237. * src/AbstractCommand.cc
  13238. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13239. MSG_MAX_TRY from error to info.
  13240. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13241. * src/message.h
  13242. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13243. (MSG_DOWNLOAD_ABORTED): Added %s.
  13244. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13245. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13246. * src/PeerAbstractCommand.cc
  13247. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13248. * src/Request.h
  13249. (cookieBox): Made ShardHandle.
  13250. * src/RequestGroup.h, src/RequestGroup.cc
  13251. (createNextCommandWithAdj): New function.
  13252. * src/FileAllocationCommand.cc
  13253. (executeInternal): Use createNextCommandWithAdj().
  13254. * src/CheckIntegrityCommand.cc
  13255. (executeInternal): Use createNextCommandWithAdj().
  13256. Added --load-cookies command-option.
  13257. * src/OptionHandlerFactory.cc
  13258. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13259. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13260. Now aria2 can handle cookie's expiration date.
  13261. * src/Cookie.h (expires): Changed its type to time_t.
  13262. * src/main.cc: Added --load-cookies command-line option.
  13263. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13264. * src/Util.h, src/Util.cc (httpGMT): New function.
  13265. * src/Request.cc (Request): Initialize cookieBox using
  13266. CookieBoxFactory.
  13267. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13268. * src/CookieParser.h, src/CookieParser.cc: New class.
  13269. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13270. * src/HttpResponseCommand.cc
  13271. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13272. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13273. download.
  13274. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13275. Added -j command-line option.
  13276. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13277. * src/main.cc
  13278. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13279. Rewritten using stringstream.
  13280. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13281. Rewritten using stringstream.
  13282. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13283. Make download size shown in MB, KB.
  13284. * src/ConsoleDownloadEngine.h (sendStatistics)
  13285. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13286. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13287. Accept incoming connections if download rate is low.
  13288. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13289. (_lowestSpeedLimit): New variable.
  13290. (setLowestSpeedLimit): New function.
  13291. (execute): Accept incoming connections if download rate is low.
  13292. MAX_PEERS is ignored in this case.
  13293. Disable PREF_OUT in multiple concurrent download:
  13294. * src/RequestGroup.h, src/RequestGroup.cc
  13295. (setUserDefinedFilename): New function.
  13296. * src/DownloadEngineFactory.cc
  13297. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13298. concurrent download.
  13299. * src/DefaultSegmentManFactory.cc
  13300. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13301. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13302. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13303. Added its overloaded method.
  13304. * src/RequestGroup.h
  13305. (_numConcurrentCommand): New variable.
  13306. (setNumConcurrentCommand): New function.
  13307. * src/RequestGroup.cc
  13308. Abort download if same file is being downloaded concurrently.
  13309. * src/RequestGroup.h, src/RequestGroupMan.cc
  13310. (isSameFileBeingDownloaded): New function.
  13311. * src/HttpResponseCommand.cc (executeInternal)
  13312. * src/FtpNegotiateCommand.cc (recvSize)
  13313. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13314. * main.cc: Added help message for -i option.
  13315. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13316. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13317. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13318. * src/MetalinkEntry.h
  13319. (checksum): Changed to ChecksumHandle
  13320. * src/MetalinkRequestInfo.cc
  13321. (checksum): Changed to ChecksumHandle
  13322. * src/File.cc
  13323. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13324. * src/common.h
  13325. (DIR_OPEN_MODE): New definition
  13326. * src/RequestGroup.cc
  13327. (prepareForNextAction): Added an argument.
  13328. * src/message.h
  13329. (MSG_GOOD_CHECKSUM): New definition
  13330. (MSG_BAD_CHECKSUM): New definition
  13331. * src/HttpResponseCommand.cc
  13332. (handleDefaultEncoding): Continue download sequence in new
  13333. non-segmented download.
  13334. * src/FileAllocationEntry.h
  13335. (_nextDownloadCommand): New variable.
  13336. * src/DownloadCommand.cc
  13337. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13338. available.
  13339. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13340. * src/IteratableChecksumValidator.h,
  13341. src/IteratableChecksumValidator.cc: New class.
  13342. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13343. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13344. Change file mode to 666:
  13345. * src/common.h (OPEN_MODE): New definition.
  13346. * src/File.cc
  13347. * src/Util.cc
  13348. * src/Directry.cc
  13349. * src/AbstractDiskWriter.cc
  13350. Change the level of log message "download aborted" to debug:
  13351. * src/PeerAbstractCommand.cc (execute)
  13352. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13353. * src/TrackerWatcherCommand.cc
  13354. (createCommand): Sleep some seconds after request failed.
  13355. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13356. then abort tracker request.
  13357. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13358. * Added the simultaneous download feature.
  13359. * src/main.cc: Print "Exception caught: " when exception is caught.
  13360. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13361. * src/ActivePeerConnectionCommand.cc
  13362. * src/PeerInteractionCommand.cc
  13363. * src/BtRuntime.h
  13364. (cuidCounter): Removed.
  13365. (getNewCuid): Removed.
  13366. * src/DownloadEngineFactory.cc
  13367. * src/PeerListenCommand.cc
  13368. * src/TrackerUpdateCommand.cc
  13369. * src/PeerInitiateConnectionCommand.cc
  13370. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13371. * src/PeerAbstractCommand.cc
  13372. (onAbort): Call PeerStorage::returnPeer()
  13373. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13374. (incomingPeers): New variable.
  13375. (addIncomingPeer): New function.
  13376. (returnPeer): New function.
  13377. (onErasingPeer): New function.
  13378. (addPeer): push_back -> push_front
  13379. (getActivePeers): Rewritten.
  13380. (calculateStat): Rewritten.
  13381. * src/PeerStorage.h
  13382. (TransferStat::copy): New function.
  13383. (TransferStat::TransferStat): New function.
  13384. (TransferStat::operator=): New function.
  13385. (addIncomingPeer): New function.
  13386. (returnPeer): New function.
  13387. * src/PeerListenCommand.cc
  13388. (execute): Use PeerStorage::addIncomingPeer() instead of
  13389. Peer::addPeer().
  13390. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13391. Connect to a peer actively when download speed is lower than specified
  13392. speed in torrent download:
  13393. * src/ActivePeerConnectionCommand.h: New class.
  13394. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13395. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13396. * src/main.cc: Fixed the bug that prevents download if .netrc
  13397. doesn't exist.
  13398. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. To cache resolved hostname:
  13400. * src/AbstractCommand.h, src/AbstractCommand.cc
  13401. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13402. Added dns cache.
  13403. * src/FtpInitiateConnectionCommand.cc
  13404. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13405. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13406. NameResolver working without ares.
  13407. * src/TorrentRequestInfo.cc
  13408. (execute): Don't cache dns in torrent download.
  13409. * src/HttpInitiateConnectionCommand.cc
  13410. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13411. * src/DNSCache.h: New class.
  13412. * src/UrlRequestInfo.cc
  13413. (execute): Use dns cache.
  13414. In http request, suppress port number in http request header if port
  13415. is 80 or 443:
  13416. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13417. request header if port is 80 or 443.
  13418. (createProxyRequest): Allways send port number.
  13419. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13420. To add the command-line option which disables netrc support:
  13421. * src/OptionHandlerFactory.cc
  13422. (createOptionHandlers): Added PREF_NO_NETRC.
  13423. * src/main.cc: Added -n option.
  13424. * src/prefs.h (PREF_NO_NETRC): New definition.
  13425. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13426. V_TRUE.
  13427. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13428. is V_FALSE. This may get configurable in the future release.
  13429. To clear peer's error status by time basis:
  13430. * src/PeerAbstractCommand.cc
  13431. (onAbort): Call Peer::startBadCondition().
  13432. * src/Peer.h, src/Peer.cc
  13433. (error): Removed.
  13434. (_badConditionStartTime): New variable.
  13435. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13436. (startBadCondition): New function.
  13437. (isGood): New function.
  13438. * src/DefaultPeerStorage.cc
  13439. (addPeer): Use Peer::isGood().
  13440. (FindFinePeer): Use Peer::isGood().
  13441. Always include port number in http request header:
  13442. * src/HttpRequest.cc (getHostText): Always include port number in
  13443. http request header.
  13444. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13445. To the ability to read options from a config file:
  13446. * src/main.cc: Command-line parameter validation is delegated to
  13447. OptionHandler class.
  13448. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13449. * src/Option.h, src/Option.cc (clear): New function.
  13450. * src/OptionParser.h, src/OptionParser.cc: New class.
  13451. * src/OptionHandler.h: New class.
  13452. * src/NameMatchOptionHandler.h: New class.
  13453. * src/OptionHandlerImpl.h: New classes.
  13454. * src/prefs.h: '_' -> '-'
  13455. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13456. (FTP_PASV): New definition.
  13457. * src/Util.h, src/Util.cc (getRealSize): New function.
  13458. To disable netrc support if .netrc file does not have correct
  13459. permissions:
  13460. * src/File.h, src/File.cc (mode): New function.
  13461. To prevent confidential information to be logged:
  13462. * src/HttpConnection.h, src/HttpConnection.cc
  13463. (eraseConfidentialInfo): New function.
  13464. (sendRequest): Call eraseConfidentialInfo().
  13465. (sendProxyRequest): Call eraseConfidentialInfo().
  13466. * src/main.cc: Validate permissions of .netrc file.
  13467. To add --user-agent command-line option:
  13468. * src/main.cc: Added new command line option: --user-agent
  13469. * src/prefs.h (PREF_USER_AGENT): New definition.
  13470. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13471. parameter to HttpRequest object.
  13472. * src/AbstractProxyRequestCommand.cc
  13473. (executeInternal): Set user-agent option parameter to HttpRequest
  13474. object.
  13475. Marged the patches from Dan Fandrich.
  13476. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13477. Use filename and size from Metalink file instead of sending HEAD
  13478. request:
  13479. * src/UrlRequestInfo.h
  13480. (_filename): New variable.
  13481. (_totalLength): New variable.
  13482. (setTotalLength): New variable.
  13483. (setFilename): New variable.
  13484. * src/MetalinkRequestInfo.cc
  13485. (execute): Set filename and size to UrlRequestInfo
  13486. * src/UrlRequestInfo.cc
  13487. (execute): Use filename and size from Metalink instead of seding
  13488. HEAD request to servers.
  13489. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13490. To add the ability to resume downloading a partially downloaded file
  13491. which is downloaded from the beginning:
  13492. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13493. takes this role.
  13494. * src/main.cc: Added -c option.
  13495. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13496. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13497. * src/prefs.h (PREF_CONTINUE): New definition.
  13498. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13499. * src/DefaultDiskWriter.cc
  13500. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13501. * src/AbstractDiskWriter.h
  13502. (glowFileAllocator): New variable.
  13503. * src/AbstractDiskWriter.cc
  13504. (openExistingFile): Now preallocate file space from the end of the
  13505. existing file if totalLength argument is specified and grater than 0.
  13506. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13507. to download exists in local, continue the download of the file.
  13508. --allow-overwrite=true is assumed in this context.
  13509. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13510. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13511. Throw exception if --check-integrity=true is specified but chunk
  13512. checksums are not provided:
  13513. * src/UrlRequestInfo.cc
  13514. Do not print URLs to stdout:
  13515. * src/UrlRequestInfo.cc
  13516. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13517. * src/Request.h: Use AuthResolver to get authentication information.
  13518. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13519. set to RequestFactory object.
  13520. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13521. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13522. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13523. create Request object.
  13524. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13525. To integrate Netrc into exsiting classes:
  13526. * src/Request.h
  13527. (_userDefinedAuthConfig): New variable.
  13528. (findNetrcAuthenticator): New function.
  13529. (segment): Removed.
  13530. (setUserDefinedAuthConfig): New function.
  13531. (resolveHttpAuthConfigItem): New function.
  13532. (resolveFtpAuthConfigItem): New function.
  13533. (resolveHttpProxyAuthConfigItem): New function.
  13534. * src/HttpRequest.h
  13535. (authConfig): Removed.
  13536. (proxyAuthConfig): Removed.
  13537. (setAuthConfig): Removed.
  13538. (setProxyAuthConfig): Removed.
  13539. * src/UrlRequest.h
  13540. (getHeadResult): Added a parameter: authConfigHandle
  13541. * src/common.h
  13542. (SingletonHolder.h): New include.
  13543. * src/main.cc
  13544. (Netrc.h): New include.
  13545. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13546. Added initial value of PREF_NETRC_PATH.
  13547. Added the initialization of netrc.
  13548. * src/AuthConfig.h: New class.
  13549. * src/prefs.h
  13550. (PREF_NETRC_PATH): New definition.
  13551. * src/HttpAuthConfig.h: Removed.
  13552. * src/Netrc.cc
  13553. (getRequiredNextToken): New function.
  13554. (skipMacdef): New function.
  13555. (parse): Rewritten.
  13556. * src/Netrc.h
  13557. (getRequiredNextToken): New function.
  13558. (skipMacdef): New function.
  13559. * src/Util.h, src/Util.cc
  13560. (getHomeDir): New function.
  13561. * src/TrackerWatcherComand.cc
  13562. (createRequestCommand): Use AuthConfig.
  13563. * src/FtpConnection.cc
  13564. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13565. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13566. * src/Request.cc
  13567. (findNetrcAuthenticator): New function.
  13568. (resolveHttpAuthConfigItem): New function.
  13569. (resolveFtpAuthConfigItem): New function.
  13570. (resolveHttpProxyAuthConfigItem): New function.
  13571. * src/UrlRequestInfo.cc: Use AuthConfig.
  13572. * src/HttpRequest.cc
  13573. (createRequest): Use authConfig.
  13574. (getProxyAuthString): Use authConfig.
  13575. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13576. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13577. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13578. To reduce overhead to find commands whose socket is either
  13579. readable or writable in the download engine loop:
  13580. * src/Command.h, src/Command.cc
  13581. (STATUS): New enum.
  13582. (status): New variable.
  13583. (statusMatch): New function.
  13584. (setStatusActive): New function.
  13585. (setStatusInactive): New function.
  13586. * src/DownloadEngine.h, src/DownloadEngine.cc
  13587. (executeCommand): New function.
  13588. (run): Simplified.
  13589. (waitData): Call Command::setStatusActive() when command's socket is
  13590. readable or writable.
  13591. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13592. To handle Segment as SegmentHandle:
  13593. * src/AbstractCommand.cc (execute): Rewritten.
  13594. * src/SegmentMan.h: Segment -> SegmentHandle
  13595. Introducded HttpResponse class, HttpRequest class to improve code
  13596. extensiveness and make it clear:
  13597. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13598. HttpResponse class.
  13599. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13600. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13601. * src/HttpConnection.cc: Contruction of http request were moved to
  13602. HttpRequest class.
  13603. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13604. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13605. * src/HttpAuthConfig.h: New class.
  13606. * src/Range.h: New class.
  13607. To make FtpTunnel{Request, Response}Command and
  13608. HttpProxy{Request, Response}Command derived from
  13609. AbstractProxy{Request, Response}Command:
  13610. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13611. Derived from AbstractProxyRequestCommand class.
  13612. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13613. Derived from AbstractProxyResponseCommand class.
  13614. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13615. Derived from AbstractProxyRequestCommand class.
  13616. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13617. Derived from AbstractProxyResponseCommand class.
  13618. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13619. : New class.
  13620. * src/AbstractProxyResponseCommand.h,
  13621. src/AbstractProxyResponseCommand.cc: New class.
  13622. To add netrc support:
  13623. * src/Netrc.h, src/Netrc.cc: New class.
  13624. * src/Util.h, src/Util.cc (split): New function.
  13625. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13626. "Content-Range" header instead of "Range" header.
  13627. * src/HttpHeader.h
  13628. (getStatus): Removed.
  13629. (setStatus): Removed.
  13630. * src/Segment.h
  13631. (getPositionToWrite): New function.
  13632. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13633. * src/HttpHeader.h
  13634. (Range.h): New include.
  13635. (status): New variable.
  13636. (HttpHeader): Initialized status with 0.
  13637. (getStatus): New function.
  13638. (setStatus): New function.
  13639. (getRange): New function.
  13640. (HttpHeaderHandle): New function.
  13641. * src/HttpHeader.cc
  13642. (getRange): New function.
  13643. * src/Request.h
  13644. (RequestWeakHandle): New definition.
  13645. * src/HttpConnection.h
  13646. (HttpConnectionHandle): New type definition.
  13647. * src/HttpConnection.cc
  13648. (receiveResponse): Set HTTP status to headers.
  13649. * src/main.cc
  13650. (showUsage): Fixed typo.
  13651. * src/Segment.h
  13652. (SegmentHandle): New type definition.
  13653. * src/BitfieldMan.h
  13654. (getMissingUnusedLength): New function.
  13655. * src/BitfieldMan.cc
  13656. (getMissingUnusedLength): New function.
  13657. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13658. To fix static initialization order problem:
  13659. * src/BitfieldManFactory.h
  13660. (defaultRandomizer): Removed.
  13661. (factory): New variable.
  13662. (getNewFactory): Removed.
  13663. (getFactoryInstance): New function.
  13664. (setDefaultRandomizer): Rewritten.
  13665. (getDefaultRandomizer): Rewritten.
  13666. * src/BitfieldManFactory.cc
  13667. (defaultRandomizer): Removed.
  13668. (factory): Initialized to 0.
  13669. (BitfieldManFactory): Initialized randomizer to 0.
  13670. * src/DefaultPieceStorage.cc
  13671. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13672. * src/Peer.cc
  13673. (Peer): getNewFactory() -> getFactoryInstance()
  13674. * src/SegmentMan.cc
  13675. (initBitfield): getNewFactory() -> getFactoryInstance()
  13676. * src/Piece.cc
  13677. (Piece): getNewFactory() -> getFactoryInstance()
  13678. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13679. To fix the bug that causes crash on Max OS X:
  13680. * src/SimpleRandomizer.h
  13681. (getInstance): Create new instance if the static variable is null.
  13682. * src/SimpleRandomizer.cc
  13683. (randomizer): Initialized to 0.
  13684. * src/BitfieldManFactory.h
  13685. (getNewFactory): Removed the call to setRandomizer().
  13686. To fix the miscalculation of the range of checksum:
  13687. * src/BitfieldMan.h
  13688. (isBitSetOffsetRange): New function.
  13689. * src/BitfieldMan.cc
  13690. (isBitSetOffsetRange): New function.
  13691. * src/SegmentMan.cc
  13692. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13693. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13694. * Release 0.10.1
  13695. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13696. To lower CPU usage in BitTorrent download when --max-upload-limit
  13697. command-line option specified:
  13698. * src/DefaultBtMessageDispatcher.cc
  13699. (sendMessages): Calculate uploading speed only when current message
  13700. is uploading data and is not sent yet.
  13701. * src/DefaultPeerStorage.h
  13702. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13703. * src/HttpResponseCommand.cc
  13704. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13705. This fixes compile error in Soralis 10.
  13706. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13707. To fix segfault in Metalink download:
  13708. * src/UrlRequestInfo.h
  13709. (filename): Removed.
  13710. (totalLength): Removed.
  13711. (setTotalLength): Removed.
  13712. (setFilename): Removed.
  13713. * src/MetalinkRequestInfo.cc
  13714. (execute): Do not set filename and totalLength to reqInfo.
  13715. Set chunk checksum to reqInfo if it is not null.
  13716. * src/HttpResponseCommand.cc
  13717. (executeInternal): Fixed filename in log.
  13718. (handleDefaultEncoding): Removed the call to initBitfield() and
  13719. markAllPiecesDone().
  13720. (handleOtherEncoding): Added HEAD method handling.
  13721. * src/FtpNegotiateCommand.cc
  13722. (executeInternal): Added SEQ_HEAD_OK handling.
  13723. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13724. return false.
  13725. * src/FtpNegotiateCommand.h
  13726. (SEQ_HEAD_OK): New definition.
  13727. * src/SegmentMan.cc
  13728. (initBitfield): Delete bitfield.
  13729. (isChunkChecksumValidationReady): Fixed the condition.
  13730. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13731. works fine.
  13732. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13733. * src/Xml2MetalinkProcessor.h
  13734. (xpathExists): New function.
  13735. * src/Xml2MetalinkProcessor.cc
  13736. (xpathExists): New function.
  13737. Not to send HEAD request if filename and size are available in Metalink
  13738. file:
  13739. * src/UrlRequestInfo.h
  13740. (filename): New variable.
  13741. (totalLength): New variable.
  13742. (setTotalLength): New function.
  13743. (setFilename): New function.
  13744. * src/MetalinkRequestInfo.cc
  13745. (execute): Set filename and size to UrlRequestInfo.
  13746. * src/MetalinkEntry.cc
  13747. (MetalinkEntry): Initialize size with 0.
  13748. * src/UrlRequestInfo.cc
  13749. (execute): Set filename and size to SegmentMan.
  13750. Not to download rest of the files after selected files are downloaded
  13751. in BitTorrent:
  13752. * src/PieceStorage.h
  13753. (allDownloadFinished): New function.
  13754. * src/DefaultBtAnnounce.cc
  13755. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13756. downloadFinished.
  13757. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13758. * src/DefaultPieceStorage.cc
  13759. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13760. Commented out the call to finishSelectiveDownloadingMode().
  13761. (downloadFinished): Call isFilteredAllBitSet() instead of
  13762. isAllBitSet().
  13763. (allDownloadFinished): New function.
  13764. * src/DefaultBtInteractive.cc
  13765. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13766. downloadFinished().
  13767. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13768. * src/TorrentDownloadEngine.cc
  13769. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13770. * src/BitfieldMan.h
  13771. (isFilteredAllBitSet): New function.
  13772. * src/ShareRatioSeedCriteria.h
  13773. (PieceStorage.h): New include.
  13774. (pieceStorage): New variable.
  13775. (evaluate):
  13776. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13777. * src/BitfieldMan.cc
  13778. (isFilteredAllBitSet): New function.
  13779. (isAllBitSet): Filter is not took into account.
  13780. Rename --force-truncate as --allow-overwrite:
  13781. * src/TorrentRequestInfo.cc
  13782. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13783. * src/main.cc
  13784. (showUsage): --force-truncate -> --allow-overwrite
  13785. * src/message.h
  13786. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13787. * src/prefs.h
  13788. (PREF_FORCE_TRUNCATE): Removed.
  13789. (PREF_ALLOW_OVERWRITE): New definition.
  13790. * src/SegmentMan.cc
  13791. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13792. * src/MetalinkRequestInfo.cc
  13793. (execute): Queueing message are now logged in info level.
  13794. * src/common.h
  13795. (LONG_LONG_MAX): Removed.
  13796. (LONG_LONG_MIN): Removed.
  13797. * src/HttpResponseCommand.cc
  13798. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13799. * src/FtpNegotiateCommand.cc
  13800. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13801. * src/main.cc
  13802. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13803. command-line option.
  13804. (main): Added --check-integriy and --realtime-chunk-checksum
  13805. command-line option.
  13806. --force-truncate -> --allow-overwrite
  13807. Set initial value of --check-integrity option to false.
  13808. Don't show usage when error occurs while persing command-line options.
  13809. Removed deprecated --upload-limit option.
  13810. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13811. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13812. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13813. * src/BtAllowedFastMessage.cc:
  13814. * src/BtBitfieldMessage.cc
  13815. * src/BtCancelMessage.cc
  13816. * src/BtChokeMessage.cc
  13817. * src/BtHaveAllMessage.cc
  13818. * src/BtHaveMessage.cc
  13819. * src/BtHaveNoneMessage.cc
  13820. * src/BtInterestedMessage.cc
  13821. * src/BtNotInterestedMessage.cc
  13822. * src/BtPieceMessage.cc
  13823. * src/BtPortMessage.cc
  13824. * src/BtRejectMessage.cc
  13825. * src/BtRequestMessage.cc
  13826. * src/BtSuggestPieceMessage.cc
  13827. * src/BtUnchokeMessage.cc
  13828. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13829. files are affected.
  13830. * src/ChunkChecksumValidator.cc
  13831. * src/SegmentMan.cc
  13832. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13833. To add chunk checksum validation:
  13834. * src/MetalinkEntry.h
  13835. (MetalinkChunkChecksum.h): New include.
  13836. (chunkChecksum): New variable.
  13837. * src/Request.h
  13838. (method): New variable.
  13839. (setMethod): New function.
  13840. (getMethod): New function.
  13841. (METHOD_GET): New static constant.
  13842. (METHOD_HEAD): New static constant.
  13843. * src/Xml2MetalinkProcessor.h
  13844. (getPieceHash): New function.
  13845. * src/PieceStorage.h
  13846. (markAllPiecesDone): New function.
  13847. (checkIntegrity): New function.
  13848. * src/FileAllocator.h
  13849. (NullFileAllocationMonitor.h): New include.
  13850. (FileAllocator): Initialize fileAllocationMonitor with new
  13851. NullFileAllocationMonitor().
  13852. * src/MultiDiskAdaptor.h
  13853. (messageDigest.h): Remove include.
  13854. (ctx): Removed.
  13855. (hashUpdate): Added ctx.
  13856. (MultiDiskAdaptor): Removed ctx.
  13857. (sha1Sum): Renamed as messageDigest.
  13858. (messageDigest): New function.
  13859. * src/UrlRequestInfo.h
  13860. (HeadResult): New class.
  13861. (digestAlgo): New variable.
  13862. (chunkChecksumLength): New variable.
  13863. (chunkChecksums): New variable.
  13864. (getHeadResult): New function.
  13865. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13866. (setDigestAlgo): New function.
  13867. (setChunkChecksumLength): New function.
  13868. (setChunkChecksums): New function.
  13869. * src/DefaultPieceStorage.cc
  13870. (DiskAdaptorWriter.h): New include.
  13871. (ChunkChecksumValidator.h): New include.
  13872. (markAllPiecesDone): New function.
  13873. (checkIntegrity): New function.
  13874. * src/DefaultBtContext.h
  13875. (getPieceHashes): New function.
  13876. * src/TorrentRequestInfo.cc
  13877. (execute): Try to validate chunk checksum if file already exists and
  13878. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13879. * src/messageDigest.h
  13880. (~MessageDigestContext): Added digestFree().
  13881. * src/MetalinkRequestInfo.cc
  13882. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13883. * src/DiskAdaptor.h
  13884. (messageDigest.h): New include.
  13885. (sha1Sum): Renamed as messageDigest.
  13886. (messageDigest): New function.
  13887. * src/DownloadCommand.h
  13888. (PeerStat.h): New include.
  13889. (maxDownloadSpeedLimit): New variable.
  13890. (startupIdleTime): New variable.
  13891. (lowestDownloadSpeedLimit): New variable.
  13892. (peerStat): New variable.
  13893. (setMaxDownloadSpeedLimit): New function.
  13894. (setStartupIdleTime): New function.
  13895. (setLowestDownloadSPeedLimit): New function.
  13896. * src/BtContext.h
  13897. (getPieceHashes): New function.
  13898. * src/main.cc
  13899. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13900. option to true for testing purpose.
  13901. * src/BtPieceMessage.cc
  13902. (checkPieceHash): Use messageDigest
  13903. * src/DownloadEngine.cc
  13904. (SetDescriptor): Removed.
  13905. (AccumulateActiveCommand): Removed.
  13906. (waitData): Rewritten.
  13907. (updateFdSet): Rewritten.
  13908. * src/MultiDiskAdaptor.cc
  13909. (hashUpdate): Added ctx.
  13910. (sha1Sum): Renamed as messageDigest.
  13911. (messageDigest): New function.
  13912. * src/BitfieldMan.h
  13913. (isBitRangeSet): New function.
  13914. (unsetBitRange): New function.
  13915. * src/ByteArrayDiskWriter.h
  13916. (sha1Sum): Renamed as messageDigest.
  13917. (messageDigest): New function.
  13918. * src/ConsoleDownloadEngine.cc
  13919. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13920. * src/DiskWriter.h
  13921. (messageDigest.h): New include.
  13922. (sha1Sum): Renamed as messageDigest.
  13923. (messageDigest): New function.
  13924. * src/ChunkChecksumValidator.h: New class.
  13925. * src/DiskAdaptorWriter.h: New class.
  13926. * src/prefs.h
  13927. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13928. (PREF_CHECK_INTEGRITY): New definition.
  13929. * src/HttpResponseCommand.cc
  13930. (handleDefaultEncoding): Added method "HEAD" handling.
  13931. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13932. (handleOtherEncoding):
  13933. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13934. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13935. startupIdleTime, lowestDownloadSpeedLimit to command.
  13936. * src/SegmentMan.h
  13937. (getSegmentEntryByIndex): New function.
  13938. (getSegmentEntryByCuid): New function.
  13939. (getSegmentEntryIteratorByCuid): New function.
  13940. (diskWriter): DiskWriter -> DiskWriterHandle
  13941. (pieceHashes): New variable.
  13942. (chunkHashLength): New variable.
  13943. (digestAlgo): New variable.
  13944. (FindPeerStat): Removed.
  13945. (getPeerStat): Rewritten.
  13946. (markAllPiecesDone): New function.
  13947. (checkIntegrity): New function.
  13948. (tryChunkChecksumValidation): New function.
  13949. (isChunkChecksumValidationReady): New function.
  13950. * src/BitfieldMan.cc
  13951. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13952. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13953. blocks to 0.
  13954. (isBitRangeSet): New function.
  13955. (unsetBitRange): New function.
  13956. * src/FtpNegotiateCommand.cc
  13957. (executeInternal): Set maxDownloadSpeedLimit,
  13958. startupIdleTime, lowestDownloadSpeedLimit to command.
  13959. (recvSize): Added method "HEAD" handling.
  13960. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13961. * src/AbstractSingleDiskAdaptor.cc
  13962. (sha1Sum): Renamed as messageDigest.
  13963. (messageDigest): New function.
  13964. * src/AbstractSingleDiskAdaptor.h
  13965. (sha1Sum): Renamed as messageDigest.
  13966. (messageDigest): New function.
  13967. * src/Util.h
  13968. (indexRange): New function.
  13969. * src/MetalinkEntry.cc
  13970. (MetalinkEntry): Initialized chunkChecksum to 0.
  13971. * src/ShaVisitor.cc
  13972. (~ShaVisitor): Removed the call to ctx.digestFree().
  13973. * src/SegmentMan.cc
  13974. (ChunkChecksumValidator.h): New include.
  13975. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13976. to DIGEST_ALGO_SHA1.
  13977. (~SegmentMan): Removed diskWriter.
  13978. (FindSegmentEntryByIndex): Removed.
  13979. (FindSegmentEntryByCuid): Removed.
  13980. (checkoutSegment): Rewritten.
  13981. (findSlowerSegmentEntry): Rewritten.
  13982. (getSegment): Rewritten.
  13983. (updateSegment): Rewritten.
  13984. (completeSegment): Rewritten.
  13985. (markAllPiecesDone): New function.
  13986. (checkIntegrity): New function.
  13987. (isChunkChecksumValidationReady): New function.
  13988. (tryChunkChecksumValidation): New function.
  13989. * src/Xml2MetalinkProcessor.cc
  13990. (getEntry): Get size and set it to entry.
  13991. Get chunk checksum and set it to entry.
  13992. (getPieceHash): New function.
  13993. * src/Util.cc
  13994. (sha1Sum): Removed ctx.digestFree()
  13995. (fileChecksum): Removed ctx.digestFree()
  13996. (indexRange): New function.
  13997. * src/Request.cc
  13998. (METHOD_GET): New variable.
  13999. (METHOD_HEAD): New variable.
  14000. (Request): Added method.
  14001. * src/UrlRequestInfo.cc
  14002. (FatalException.h): New include.
  14003. (message.h): New include.
  14004. (operator<<): Added operator<< for class HeadResult.
  14005. (getHeadResult): New function.
  14006. (execute): Get filename and size in separate download engine.
  14007. * src/ChunkChecksumValidator.cc: New class.
  14008. * src/DownloadCommand.cc:
  14009. (DownloadCommand): Added peerStat.
  14010. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14011. the value from Option.
  14012. The buffer size is now 16KB.
  14013. Use peerStat member instead of getting it from SegmentMan.
  14014. Use startupIdleTime member instead of gettingit from Option.
  14015. Added chunk checksum validation.
  14016. * src/AbstractDiskWriter.cc
  14017. (AbstractDiskWriter): Removed ctx.
  14018. (~AbstractDiskWriter): Removed ctx.digestFree()
  14019. (writeDataInternal): Returns the return value of write.
  14020. (readDataInternal): Returns the return value of read.
  14021. (sha1Sum): Renamed as messageDigest
  14022. (messageDigest): New function.
  14023. * src/AbstractDiwkWriter.h
  14024. (messageDigest.h): Removed include.
  14025. (ctx): Removed.
  14026. (sha1Sum): Renamed as messageDigest
  14027. (messageDigest): New function.
  14028. * src/DefaultPieceStorage.h
  14029. (markAllPiecesDone): New function.
  14030. (checkIntegrity): New function.
  14031. * src/NullFileAllocationMonitor.h: New class.
  14032. * src/MetalinkChunkChecksum.h: New class.
  14033. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14034. To decrease CPU usage in bittorrent download, calculation results in
  14035. BitfieldMan were cached and realtime fetching PeerObject was removed
  14036. with WeakHandle introduced. Option values are set to the objects
  14037. by setter before download begins.
  14038. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14039. * src/DefaultBtRequestFactory.h
  14040. (dispatcher): BtMessageDispatcherHandle ->
  14041. BtMessageDispatcherWeakHandle.
  14042. (messageFactory): New variable.
  14043. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14044. BtMessageDispatcherWeakHandle.
  14045. (setBtMessageFactory): New function.
  14046. * src/DefaultBtMessageDispatcher.cc:
  14047. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14048. from Option.
  14049. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14050. feating the value from Option.
  14051. Use messageFactory member.
  14052. * src/PeerInteractionCommand.cc
  14053. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14054. Add reverse dependencies to factory object.
  14055. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14056. dispatcher.
  14057. Set messageFactory to receiver.
  14058. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14059. btInteractive.
  14060. Set receiver to peerObject.
  14061. Set maxDownloadSpeedLimit to this.
  14062. (executeInternal): Use maxDownloadSpeedLimit member.
  14063. * src/BtChokeMessage.cc
  14064. (doReceivedAction): Use dispatcher, requestFactory member.
  14065. (onSendComplete): Use dispatcher member.
  14066. * src/PeerInteractionCommand.h
  14067. (maxDownloadSpeedLimit): New variable.
  14068. * src/DefaultBtMessageReceiver.h
  14069. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14070. (dispatcher):
  14071. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14072. (messageFactory): New variable.
  14073. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14074. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14075. (setDispatcher):
  14076. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14077. (setBtMessageFactory): New function.
  14078. * src/DefaultBtInteractive.cc
  14079. (initiateHandshake): Use messageFactory member.
  14080. (addBitfieldMessageToQueue): Use messageFactory member.
  14081. (addAllowedFastMessageToQueue): Use messageFactory member.
  14082. (decideChoking): Use messageFactory member.
  14083. (checkHave): Use messageFactory member.
  14084. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14085. (receiveMessages): Use maxDownloadSpeedLimit member.
  14086. (decideInterest): Use messageFactory member.
  14087. * src/BtRequestMessage.cc
  14088. (doReceivedAction): Use messageFactory, dispatcher member.
  14089. (onQueued): Use dispatcher member.
  14090. * src/BtPieceMessage.cc
  14091. (doReceivedAction): Use dispatcher member.
  14092. (send): Use peerConnection member.
  14093. (onWrongPiece): Use requestFactory member.
  14094. (handleChokingEvent): Use messageFactory, dispatcher member.
  14095. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14096. * src/BtMessageDispatcher.h
  14097. (BtMessageDispatcherWeakHandle): New type definition.
  14098. * src/SimpleBtMessage.cc
  14099. (send): Use peerConnection member.
  14100. * src/BtRejectMessage.cc
  14101. (doReceivedAction): Use dispatcher member.
  14102. * src/DefaultBtMessageDispatcher.h
  14103. (Option.h): Removed include.
  14104. (messageFactory): New variable.
  14105. (option): Removed.
  14106. (maxUploadSpeedLimit): New variable.
  14107. (requestTimeout): New variable.
  14108. (DefaultBtMessageDispatcher): Removed option.
  14109. Added maxUploadSpeedLimit, requestTimeout.
  14110. (setOption): Removed.
  14111. (getOption): Removed.
  14112. (setMaxUploadSpeedLimit): New function.
  14113. (setRequestTimeout): New function.
  14114. (setBtMessageFactory): New function.
  14115. * src/DefaultBtInteractive.h
  14116. (btMessageReceiver):
  14117. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14118. (dispatcher):
  14119. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14120. (btRequestFactory):
  14121. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14122. (peerConnection):
  14123. PeerConnectionHandle -> PeerConnectionWeakHandle
  14124. (messageFactory): New variable.
  14125. (option): Removed.
  14126. (keepAliveInterval): New variable.
  14127. (maxDownloadSpeedLimit): New variable.
  14128. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14129. (setBtMessageReceiver):
  14130. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14131. (setDispatcher):
  14132. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14133. (setBtRequestFactory):
  14134. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14135. (setPeerConnection):
  14136. PeerConnectionHandle -> PeerConnectionWeakHandle
  14137. (setOption): Removed.
  14138. (setKeepAliveInterval): New function.
  14139. (setMaxDownloadSpeedLimit): New function.
  14140. (setBtMessageFactory): New function.
  14141. * src/BitfieldMan.h
  14142. (cachedNumMissingBlock): New variable.
  14143. (cachedNumFilteredBlock): New variable.
  14144. (cachedCompletedLength): New variable.
  14145. (cachedFilteredComletedLength): New variable.
  14146. (cachedFilteredTotalLength): New variable.
  14147. (countMissingBlockNow): New function.
  14148. (countFilteredBlockNow): New function.
  14149. (getFilteredTotalLengthNow): New function.
  14150. (getCompletedLengthNow): New function.
  14151. (getFilteredCompletedLengthNow): New function.
  14152. (updateCache): New function.
  14153. * src/AbstractBtMessage.h
  14154. (BtMessageDispatcher.h): New include.
  14155. (PeerConnection.h): New include.
  14156. (BtRequestFactory.h): New include
  14157. (BtMessageFactory.h): New include.
  14158. (dispatcher): New variable.
  14159. (messageFactory): New variable.
  14160. (peerConnection: New variable.
  14161. (setBtMessageDispatcher): New function.
  14162. (setPeerConnection): New function.
  14163. (setBtMessageFactory): New function.
  14164. (setBtRequestFactory): New function.
  14165. * src/DefaultBtMessageFactory.cc
  14166. (setCommonProperty): Set dispatcher, requestFactory, this,
  14167. peerConnection to msg.
  14168. * src/BtRegistry.h
  14169. (BT_MESSAGE_RECEIVER): New macro.
  14170. * src/PeerConnection.h
  14171. (PeerConnectionWeakHandle): New type definition.
  14172. * src/BtMessageFactory.h
  14173. (BtMessageFactoryWeakHandle): New type definition.
  14174. * src/BitfieldMan.cc
  14175. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14176. cachedCompletedLength, cachedFilteredComletedLength,
  14177. cachedFilteredTotalLength.
  14178. Call updateCache().
  14179. (countMissingBlock): Return cachedNumMissingBlock.
  14180. (countMissingBlockNow): New function.
  14181. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14182. (countFilteredBlockNow): New function.
  14183. (setBit): Call updateCache().
  14184. (unsetBit): Call updateCache().
  14185. (setBitfield): Call updateCache().
  14186. (clearAllBit): Call updateCache().
  14187. (setAllBit): Use setBitInternal instead of setBit.
  14188. Call updateCache().
  14189. (addFilter): Call updateCache().
  14190. (enableFilter): Call updateCache().
  14191. (disableFilter): Call updateCache().
  14192. (clearFilter): Call updateCache().
  14193. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14194. (getFilteredTotalLengthNow): New function.
  14195. (getCompletedLength): Return cachedCompletedLength.
  14196. (getCompletedLengthNow): New function.
  14197. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14198. (getFilteredCompletedLengthNow): New function.
  14199. (updateCache): New function.
  14200. * src/BtMessageReceiver.h
  14201. (BtMessageReceiverWeakHandle): New type definition.
  14202. * src/DefaultBtMessageReceiver.cc
  14203. (receiveHandshake): Use messageFactory member.
  14204. (sendHandshake): Use messageFactory member.
  14205. (receiveMessage): Use messageFactory member.
  14206. * src/DefaultBtMessageFactory.h
  14207. (dispatcher): New variable.
  14208. (requestFactory): New variable.
  14209. (peerConnection): New variablle.
  14210. (setBtMessageDispatcher): New function.
  14211. (setBtRequestFactory): New function.
  14212. (setPeerConnection): New function.
  14213. * src/SharedHandle.h
  14214. (RefCount): New class.
  14215. (WeakHandle): New class.
  14216. * src/PeerObject.h
  14217. (BtMessageReceiver.h): New include.
  14218. (PeerObject): Added btMessageReceiver.
  14219. (btMessageReceiver): New variable.
  14220. * src/Util.cc
  14221. (countBit): Simplified.
  14222. * src/BtCancelMessage.cc
  14223. (doReceivedAction): Use dispatcher member.
  14224. * src/BtRequestFactory.h
  14225. (BtRequestFactoryWeakHandle): New type definition.
  14226. * src/PeerStorage.h
  14227. (downloadSpeed): int -> uint32_t
  14228. (uploadSpeed): int -> uint32_t
  14229. (sessionDownloadLength): long long int -> uint64_t
  14230. (sessionUploadLength): long long int -> uint64_t
  14231. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14232. To add RecoverableException, FatalException:
  14233. * src/AbstractCommand.cc
  14234. (onAbort): Exception -> RecoverableException
  14235. * src/PeerAbstractCommand.h
  14236. (RecoverableException.h): New include.
  14237. (onAbort): Exception -> RecoverableException.
  14238. * src/PeerInteractionCommand.cc
  14239. (onAbort): Exception -> RecoverableException.
  14240. * src/PeerAbstractCommand.cc
  14241. (execute): Exception -> RecoverableException.
  14242. (onAbort): Exception -> RecoverableException.
  14243. * src/TorrentRequestInfo.cc
  14244. (execute): Exception -> RecoverableException.
  14245. * src/MetalinkRequestInfo.cc
  14246. (execute): Exception -> RecoverableException.
  14247. * src/MetaFileUtil.cc: RecoverableException.
  14248. * src/AbstractCommand.h
  14249. (onAbort): Exception -> RecoverableException.
  14250. * src/DlRetryEx.h: Exception -> RecoverableException.
  14251. * src/DlAbortEx.h: Exception -> RecoverableException.
  14252. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14253. * src/Util.cc: Exception -> RecoverableException.
  14254. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14255. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14256. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14257. To make ID static const int
  14258. * src/BtInterestedMessage.h
  14259. (ID_t): Removed.
  14260. (ID): New variable.
  14261. (getId): Made non-const.
  14262. * src/BtPieceMessage.h
  14263. (ID_t): Removed.
  14264. (ID): New variable.
  14265. (getId): Made non-const.
  14266. * src/BtChokeMessage.h
  14267. (ID_t): Removed.
  14268. (ID): New variable.
  14269. (getId): Made non-const.
  14270. * src/BtHaveAllMessage.h
  14271. (ID_t): Removed.
  14272. (ID): New variable.
  14273. (getId): Made non-const.
  14274. * src/BtKeepAliveMessage.h
  14275. (ID_t): Removed.
  14276. (ID): New variable.
  14277. (getId): Made non-const.
  14278. * src/BtHandshakeMessage.h
  14279. (ID): New variable.
  14280. (getId): Made non-const.
  14281. * src/BtSuggestPieceMessage.h
  14282. (ID_t): Removed.
  14283. (ID): New variable.
  14284. (getId): Made non-const.
  14285. * src/BtPortMessage.h
  14286. (ID_t): Removed.
  14287. (ID): New variable.
  14288. (getId): Made non-const.
  14289. * src/AbstractBtMessage.h
  14290. (id): Removed.
  14291. (AbstractBtMessage): Removed id.
  14292. (getId): Removed.
  14293. * src/BtHaveMessage.h
  14294. (ID_t): Removed.
  14295. (ID): New variable.
  14296. (getId): Made non-const.
  14297. * src/BtAllowedFastMessage.h
  14298. (ID_t): Removed.
  14299. (ID): New variable.
  14300. (getId): Made non-const.
  14301. * src/BtCancelMessage.h
  14302. (ID_t): Removed.
  14303. (ID): New variable.
  14304. (getId): Made non-const.
  14305. * src/BtNotInterestedMessage.h
  14306. (ID_t): Removed.
  14307. (ID): New variable.
  14308. (getId): Made non-const.
  14309. * src/BtChokeMessage.h
  14310. (ID_t): Removed.
  14311. (ID): New variable.
  14312. (getId): Made non-const.
  14313. * src/BtRejectMessage.h
  14314. (ID_t): Removed.
  14315. (ID): New variable.
  14316. (getId): Made non-const.
  14317. * src/BtBitfieldMessage.h
  14318. (ID_t): Removed.
  14319. (ID): New variable.
  14320. (getId): Made non-const.
  14321. * src/BtUnchokeMessage.h
  14322. (ID_t): Removed.
  14323. (ID): New variable.
  14324. (getId): Made non-const.
  14325. * src/BtRequestMessage.h
  14326. (ID_t): Removed.
  14327. (ID): New variable.
  14328. (getId): Made non-const.
  14329. * src/BtHaveMessage.h
  14330. (ID_t): Removed.
  14331. (ID): New variable.
  14332. (getId): Made non-const.
  14333. To add --force-truncate command-line option and a check whether
  14334. the file already exists:
  14335. * src/DirectDiskAdaptor.h
  14336. (getFilePath): Made virtual public.
  14337. * src/MultiDiskAdaptor.h
  14338. (File.h): New include.
  14339. (DiskWriterEntry::fileEntry): Made private.
  14340. (DiskWriterEntry::fileExists): New function.
  14341. (DiskWriterEntry::getFileEntry): New function.
  14342. (fileExists): New function.
  14343. (getFilePath): New function.
  14344. * src/TorrentRequestInfo.cc
  14345. (FatalException.h): New include.
  14346. (message.h): New include.
  14347. (RecoverableException.h): New include.
  14348. (execute): Added a check whether file is already exists or not.
  14349. * src/DiskAdaptor.h
  14350. (fileExists): New function.
  14351. (getFilePath): New function.
  14352. * src/main.cc
  14353. (showUsage): Added an explanation of --force-truncate command-line
  14354. option.
  14355. (main): Added --force-truncate command-line option.
  14356. * src/Exception.h
  14357. (setMsg): buf[256] -> buf[1024]
  14358. * src/CopyDiskWriter.h
  14359. (getFilePath): Made public virtual.
  14360. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14361. (fileExists): New function.
  14362. * src/DownloadEngineFactory.cc
  14363. (newTorrentConsoleEngine): Don't open file here.
  14364. * src/message.h
  14365. (EX_FILE_ALREADY_EXISTS): New definition.
  14366. * src/prefs.h
  14367. (PREF_FOECE_TRUNCATE): New definition.
  14368. * src/HttpResponseCommand.cc
  14369. (handleDefaultEncoding): Added a check whether the file already exists.
  14370. * src/SegmentMan.h
  14371. (fileExists): New function.
  14372. (shouldCancelDownloadForSafety): New function.
  14373. * src/FtpNegotiateCommand.cc
  14374. (recvSize): Added a check whether the file already exists.
  14375. * src/AbstractSingleDiskAdaptor.cc
  14376. (File.h): New include.
  14377. (fileExists): New function.
  14378. * src/AbstractSingleDiskAdaptor.h
  14379. (getFilePath): Removed.
  14380. (fileExists): New function.
  14381. * src/SegmentMan.cc
  14382. (fileExists): New function.
  14383. (shouldCancelDownloadForSafety): New function.
  14384. To fix regression bug in torrent downloading:
  14385. * src/DefaultBtRequestFactory.cc
  14386. (doChokedAction): New function.
  14387. * src/DefaultBtRequestFactory.h
  14388. (doChokedAction): New function.
  14389. * src/DefaultBtMessageDispatcher.cc
  14390. (doChokedAction): Do not delete request if its target is in allowed
  14391. fast set.
  14392. * src/DefaultBtInteractive.cc
  14393. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14394. (sendKeepAlive): Send keep alive message even if the outgoing message
  14395. queue is not empty.
  14396. (decideInterest): Simplified the code.
  14397. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14398. it is already called when BtChokeMessage is received from a peer.
  14399. * src/BtRequestFactory.h
  14400. (doChokedAction): New function.
  14401. To clean up code:
  14402. * src/PeerInteractionCommand.h
  14403. (executeInternal): Added virtual keyword explicitly.
  14404. (prepareForRetry): Added virtual keyword explicitly.
  14405. (prepareForNextPeer): Added virtual keyword explicitly.
  14406. (onAbort): Added virtual keyword explicitly.
  14407. * src/RequestSlot.cc
  14408. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14409. * src/BtPieceMessage.cc
  14410. (doReceivedAction): Added a debug log of piece's bitfield.
  14411. * src/Piece.h
  14412. (getBitfieldLength): New function.
  14413. * src/ByteArrayDiskWriter.cc
  14414. (clear): Added buf = 0 to avoid double free corruption.
  14415. * src/FileAllocator.cc
  14416. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14417. Added cp.reset().
  14418. * src/BitfieldMan.h
  14419. (operator=): Rewritten.
  14420. * src/BitfieldMan.cc
  14421. (BitfieldMan): Initialized bitfield, useBitfield.
  14422. * src/PeerConnection.cc
  14423. (receiveMessage): Added a call to socket->readable() after getting
  14424. message length to avoid possible EOF.
  14425. * src/Util.cc
  14426. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14427. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14428. To add an ability to pre-allocate file space:
  14429. * src/DirectDiskAdaptor.h: Rewritten.
  14430. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14431. * src/MultiDiskAdaptor.h: Rewritten.
  14432. * src/DefaultPieceStorage.cc
  14433. (MultiDiskWriter.h): Removed include.
  14434. (PreAllocationDiskWriter.h): Removed include.
  14435. (FileAllocationMonitor.h): New include.
  14436. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14437. (initStorage): Rewritten.
  14438. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14439. * src/FileAllocator.h: New class.
  14440. * src/FileAllocator.cc: New class.
  14441. * src/FileAllocationMonitor.h: New class.
  14442. * src/FileAllocationMonitor.cc: New class.
  14443. * src/ConsoleFileAllocationMonitor.h: New class.
  14444. * src/ConsoleFileAllocationMonitor.cc: New class.
  14445. * src/AbstractSingleDiskAdaptor.h: New class.
  14446. * src/AbstractSingleDiskAdaptor.cc: New class.
  14447. * src/DiskAdaptor.h
  14448. (Directory.h): Removed include.
  14449. (DiskWriter.h): Removed include.
  14450. (FileEntry.h): Removed include.
  14451. (diskWriter): Removed.
  14452. (DiskAdaptor): Removed diskWriter.
  14453. (openFile): Made pure virtual.
  14454. (closeFile): Made pure virtual.
  14455. (openExistingFile): Made pure virtual.
  14456. (initAndOpenFile): Made pure virtual.
  14457. (writeData): Made pure virtual.
  14458. (readData): Made pure virtual.
  14459. (sha1Sum): Made pure virtual.
  14460. (getStoreDir): Returns const reference of storeDir.
  14461. (DiskAdaptorHandle): New type definition.
  14462. * src/main.cc
  14463. (ConsoleFileAllocationMonitor.h): New include.
  14464. (showUsage): Added default value description of -s option.
  14465. Added the description of --file-allocation option.
  14466. (main): Set default value of --file-allocation option to 'none'.
  14467. Added --file-allocation command-line option.
  14468. Setup FileAllocationMonitorFactory.
  14469. * src/FtpInitiateConnectionCommand.cc
  14470. (executeInternal): Removed diskWriter related processing, which was
  14471. moved to FtpNegotiationCommand.cc.
  14472. * src/DirectDiskAdaptor.cc
  14473. (getFilePath): Made non-const.
  14474. * src/CopyDiskAdaptor.h
  14475. (DiskAdaptor.h): Removed include.
  14476. (DiskWriter.h): Removed include.
  14477. (AbstractSingleDiskAdaptor.h): New include.
  14478. (getFilePath): Made non-const. Added virtual keyword.
  14479. (CopyDiskAdaptor): Removed diskWriter.
  14480. (getTempFile): Returns const reference.
  14481. (CopyDiskAdaptorHandle): New type definition.
  14482. * src/ByteArrayDiskWriter.cc
  14483. (clear): Simplified.
  14484. (initAndOpenFile): Rewritten.
  14485. (openFile): Call initAndOpenFile()
  14486. * src/MultiDiskAdaptor.cc: Rewritten.
  14487. * src/DownloadEngineFactory.cc
  14488. (FileAllocator.h): New include.
  14489. (FileAllocationMonitor.h): New include.
  14490. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14491. create DefaultDiskWriter with file allocator.
  14492. * src/DiskWriter.h
  14493. (initAndOpenFile): Added totalLength argument.
  14494. (openFile): Added totalLength argument.
  14495. * src/prefs.h
  14496. (PREF_FILE_ALLOCATION): New definition.
  14497. (V_PREALLOC): New definition.
  14498. (V_NONE): New definition.
  14499. * src/HttpResponseCommand.cc
  14500. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14501. size.
  14502. * src/FtpNegotiateCommand.cc
  14503. (Util.h): New include.
  14504. (recvSize): Open file here.
  14505. * src/Util.h
  14506. (ullitos): New function.
  14507. * src/CopyDiskWriter.h
  14508. (getFilePath): Made non-const.
  14509. * src/DefaultDiskWriter.h
  14510. (Option.h): New include.
  14511. (totalLength): Removed.
  14512. (DefaultDiskWriter): Removed totalLength.
  14513. (initAndOpenFile): Added totalLength argument.
  14514. (DefaultDiskWriterHandle): New type definition.
  14515. (createNewDiskWriter): New function.
  14516. * src/Util.cc
  14517. (ullitos): New function.
  14518. * src/DefaultDiskWriter.cc
  14519. (message.h): New include.
  14520. (FileAllocator.h): New include.
  14521. (prefs.h): New include.
  14522. (Util.h): New include.
  14523. (DefaultDiskWriter): Removed totalLength.
  14524. (initAndOpenFile): Added file allocation.
  14525. (createNewDiskWriter): New function. Just for temporary solution.
  14526. It will be rewritten later.
  14527. * src/DiskAdaptor.cc
  14528. (DiskAdaptor): Removed diskWriter.
  14529. * src/AbstractDiskWriter.cc
  14530. (LogFactory.h): New include.
  14531. (AbstractDiskWriter): Added fileAllocator, logger.
  14532. (openFile): Added totalLength argument.
  14533. * src/AbstractDiskWriter.h
  14534. (FileAllocator.h): New include.
  14535. (Logger.h): New include.
  14536. (fileAllocator): New variable.
  14537. (logger): New variable.
  14538. (openFile): Added totalLength argument. Added virtual keyword
  14539. explicitly.
  14540. (openExistingFile): Added totalLength argument. Added virtual keyword
  14541. explicitly.
  14542. (closeFile): Added virtual keyword explicitly.
  14543. (sha1Sum): Added virtual keyword explicitly.
  14544. (writeData): Added virtual keyword explicitly.
  14545. (readData): Added virtual keyword explicitly.
  14546. (setFileAllocator): New function.
  14547. * src/DefaultPieceStorage.h
  14548. (FileAllocator.h): New include.
  14549. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14550. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14551. * src/FileProgressMonitor.h: New class.
  14552. To compile aria2 on PC-BSD:
  14553. * src/DefaultBtContext.cc
  14554. (libgen.h): New include.
  14555. To fix memory leak:
  14556. * src/Exception.h
  14557. (~Exception): Delete cause. Fixed memory leak.
  14558. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14559. Rewritten a portion of bittorrent implementation:
  14560. * src/BtMessageValidator.h: New class.
  14561. * src/BtBitfieldMessageValidator.h: New class.
  14562. * src/BtHandshakeMessageValidator.h: New class.
  14563. * src/BtRequestMessageValidator.h: New class.
  14564. * src/BtSuggestPieceMessageValidator.h: New class.
  14565. * src/BtAllowedFastMessageValidator.h: New class.
  14566. * src/BtRejectMessageValidator.h: New class.
  14567. * src/BtCancelMessageValidator.h: New class.
  14568. * src/BtPieceMessageValidator.h: New class.
  14569. * src/BtHaveMessageValidator.h: New class.
  14570. * src/BtEventListener.h: New class.
  14571. * src/AbstractBtEventListener.h: New class.
  14572. * src/BtEvent.h: New class.
  14573. * src/BtChokingEvent.h: New class.
  14574. * src/BtChokedEvent.h: New class.
  14575. * src/BtCancelSendingPieceEvent.h: New class.
  14576. * src/BtAbortOutstandingRequestEvent.h: New class.
  14577. * src/Randomizer.h: New class.
  14578. * src/SimpleRandomizer.h: New class.
  14579. * src/BtMessage.h: New class.
  14580. * src/AbstractBtMessage.h: New class.
  14581. * src/SimpleBtMessage.h: New class.
  14582. * src/BtHaveMessage.h: New class.
  14583. * src/BtInterestedMessage.h: New class.
  14584. * src/BtAllowedFastMessage.h: New class.
  14585. * src/BtUnchokeMessage.h: New class.
  14586. * src/BtCancelMessage.h: New class.
  14587. * src/BtNotInterestedMessage.h: New class.
  14588. * src/BtChokeMessage.h: New class.
  14589. * src/BtHaveNoneMessage.h: New class.
  14590. * src/BtHandshakeMessage.h: New class.
  14591. * src/BtSuggestPieceMessage.h: New class.
  14592. * src/BtHaveMessage.h: New class.
  14593. * src/BtPieceMessage.h: New class.
  14594. * src/BtHaveAllMessage.h: New class.
  14595. * src/BtKeepAliveMessage.h: New class.
  14596. * src/BtPortMessage.h: New class.
  14597. * src/BtRejectMessage.h: New class.
  14598. * src/BtBitfieldMessage.h: New class.
  14599. * src/BtRequestMessage.h: New class.
  14600. * src/DefaultBtRequestFactory.h: New class.
  14601. * src/DefaultBtMessageReceiver.h: New class.
  14602. * src/BtInteractive.h: New class.
  14603. * src/BtMessageDispatcher.h: New class.
  14604. * src/DefaultBtMessageDispatcher.h: New class.
  14605. * src/DefaultBtInteractive.h: New class.
  14606. * src/BitfieldManFactory.h: New class.
  14607. * src/HandleRegistry.h: New class.
  14608. * src/BtMessageFactory.h: New class.
  14609. * src/BtMessageReceiver.h: New class.
  14610. * src/DefaultBtMessageFactory.h: New class.
  14611. * src/PeerObject.h: New class.
  14612. * src/BtRequestFactory.h: New class.
  14613. * src/SuggestPieceMessage.h: Removed.
  14614. * src/PortMessage.h: Removed.
  14615. * src/SuggestPieceMessage.h: Removed.
  14616. * src/KeepAliveMessage.h: Removed.
  14617. * src/HandshakeMessage.h: Removed.
  14618. * src/PeerInteraction.h: Removed.
  14619. * src/UnchokeMessage.h: Removed.
  14620. * src/PieceMessage.h: Removed.
  14621. * src/RequestMessage.h: Removed.
  14622. * src/InterestedMessage.h: Removed.
  14623. * src/HaveMessage.h: Removed.
  14624. * src/CancelMessage.h: Removed.
  14625. * src/RejectMessage.h: Removed.
  14626. * src/AllowedFastMessage.h: Removed.
  14627. * src/HaveNoneMessage.h: Removed.
  14628. * src/SimplePeerMessage.h: Removed.
  14629. * src/HaveAllMessage.h: Removed.
  14630. * src/BitfieldMessage.h: Removed.
  14631. * src/PeerMessageFactory.h: Removed.
  14632. * src/NotInterestedMessage.h: Removed.
  14633. * src/ChokeMessage.h: Removed.
  14634. * src/PeerMessage.h: Removed.
  14635. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14636. To know root cause of exception:
  14637. * src/Exception.h
  14638. (cause): New variable.
  14639. (Exception): Added a parameter.
  14640. (getMsg): Return const reference to msg.
  14641. (getCause): New function.
  14642. * src/DlRetryEx.h
  14643. (DlRetryEx): Added a parameter 'cause'.
  14644. Added an overloaded constructor.
  14645. (DlAbortEx): Added a parameter 'cause'.
  14646. Added an overloaded constructor.
  14647. * src/SimpleLogger.cc
  14648. (writeLog): Log nested exception messages recursively.
  14649. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14650. * src/DefaultBtProgressInfoFile.cc
  14651. (load): Fixed memory leak when the infohash doesn't match.
  14652. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14653. * src/DefaultPeerStorage.cc
  14654. (calculateStat): Simplified the code by combining 2 loops into 1.
  14655. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14656. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14657. for BitTorrent download:
  14658. * src/PeerAbstractCommand.cc
  14659. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14660. * src/main.cc:
  14661. (timeoutSpecified): Removed.
  14662. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14663. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14664. * src/TorrentRequestInfo.cc
  14665. (timeoutSpecified): Removed.
  14666. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14667. timeout value.
  14668. * src/prefs.h
  14669. (PREF_BT_TIMEOUT): New definition.
  14670. Delete unused variables:
  14671. * src/TorrentRequestInfo.cc
  14672. (requestInfo): Removed.
  14673. Move setSignalHander to Util::setGlobalSignalHandler:
  14674. * src/TorrentRequestInfo.cc:
  14675. setSignalHander -> Util::setGlobalSignalHandler
  14676. * src/main.cc
  14677. (setSignalHander): Removed.
  14678. (main): setSignalHander -> Util::setGlobalSignalHandler
  14679. * src/Util.h
  14680. (setGlobalSignalHandler): New function.
  14681. * src/Util.cc
  14682. (setGlobalSignalHandler): New function.
  14683. * src/UrlRequestInfo.cc:
  14684. setSignalHander -> Util::setGlobalSignalHandler
  14685. Reset peer status in order to exit gracefully:
  14686. * src/PeerAbstractCommand.cc
  14687. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14688. To fix the bug that causes the number of bytes uploaded is not saved
  14689. to .aria2 file:
  14690. * src/DefaultPeerStorage.h
  14691. (removedPeerSessionDownloadLength): New variable.
  14692. (removedPeerSessionUploadLength): New variable.
  14693. * src/DefaultPeerStorage.cc
  14694. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14695. removedPeerSessionUploadLength(0).
  14696. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14697. through all peers, and then add removedPeerSessionDownloadLength(
  14698. removedPeerSessionUploadLength) to it.
  14699. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14700. (to) the peer to removedPeerSessionDownloadLength
  14701. (removedPeerSessionUploadLength).
  14702. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14703. To add Metalink location option:
  14704. * src/MetalinkRequestInfo.cc
  14705. (execute): Call MetalinkEntry::setLocationPreference()
  14706. * src/main.cc
  14707. (showUsage): Added the help message for --metalink-location option.
  14708. (main): Added --metalink-location option.
  14709. * src/prefs.h
  14710. (PREF_METALINK_LOCATION): New definition.
  14711. * src/MetalinkEntry.cc
  14712. (AddLocationPreference): New function object.
  14713. (setLocationPreference): New function.
  14714. * src/Xml2MetalinkProcessor.cc
  14715. (getResource): Set location attribute to MetalinkResource
  14716. To show URLs to download
  14717. * src/UrlRequestInfo.h
  14718. (printUrls): New function.
  14719. To add multiple <file> Metalink support:
  14720. * src/MetalinkEntry.h
  14721. (MetalinkResources): Removed.
  14722. (setLocationPreference): New function.
  14723. (MetalinkEntryHandle): New type definition.
  14724. (MetalinkEntries): New type definition.
  14725. * src/Xml2MetalinkProcessor.h
  14726. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14727. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14728. (parseFile): Metalinker* -> MetalinkerHandle
  14729. * src/UrlRequestInfo.h
  14730. (execute): RequestInfo* -> RequestInfos
  14731. * src/MetalinkRequestInfo.cc
  14732. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14733. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14734. (execute): RequestInfo* -> RequestInfos
  14735. Added multiple <file> support. Print filename when it is queued.
  14736. * src/MetalinkRequestInfo.h
  14737. (execute): RequestInfo* -> RequestInfos
  14738. (getDownloadEngine): Removed.
  14739. * src/RequestInfo.h
  14740. (RequestInfoHandle): New type definition.
  14741. (RequestInfos): New type definition.
  14742. (execute): RequestInfo* -> RequestInfos
  14743. (getDownloadEngine): Removed.
  14744. * src/MetalinkResource.h
  14745. (MetalinkResourceHandle): New type definition.
  14746. (MetalinkResources): New type definition.
  14747. * src/MetalinkEntry.cc
  14748. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14749. because the element is now of type MetalinkResourceHandle.
  14750. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14751. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14752. (dropUnsupportedResource): Removed the deletion of the elements of
  14753. resources because the element is now of type MetalinkResourceHandle.
  14754. * src/Xml2MetalinkProcessor.cc
  14755. (parseFile): Metalinker* -> MetalinkerHandle
  14756. MetalinkEntry* -> MetalinkEntryHandle
  14757. Removed try-catch block.
  14758. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14759. MetalinkResource* -> MetalinkResourceHandle
  14760. Removed try-catch block.
  14761. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14762. Free result by using xmlXPathFreeObject()
  14763. * src/Metalinker.cc
  14764. (~Metalinker): Removed the deletion of entries.
  14765. MetalinkEntry* -> MetalinkEntryHandle
  14766. (queryEntry): Add multiple <file> Metalink support.
  14767. * src/Metalinker.h
  14768. (MetalinkEntries): Removed.
  14769. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14770. * src/MetalinkProcessor.h
  14771. (parseFile): Metalinker* -> MetalinkerHandle
  14772. Bug fixes:
  14773. * src/PeerChokeCommand.cc
  14774. (execute): cat01->cat02
  14775. * src/DefaultPieceStorage.cc
  14776. (DefaultPieceStorage): Added diskAdaptor(0)
  14777. * src/TrackerWatcherComand.cc:
  14778. (execute): Use btAnnounce->noMoreAnnounce()
  14779. to determin whether the function returns true or not.
  14780. * src/TrackerUpdateCommand.cc:
  14781. (execute): Use btAnnounce->noMoreAnnounce()
  14782. to determin whether the function returns true or not.
  14783. * src/FtpConnection.cc
  14784. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14785. This is the fix of the busy loop bug.
  14786. * src/DownloadCommand.cc
  14787. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14788. cached PeerStat.
  14789. The value of "name" entry in torrent file is now set by
  14790. *DiskAdaptor::setTopDir(...) methods.
  14791. * src/MultiDiskAdaptor.h
  14792. (topDir): New variable.
  14793. (setTopDir): New function.
  14794. (getTopDir): New function.
  14795. * src/MultiDiskAdaptor.cc
  14796. (getFilePath): Concat storDir, "/" and topDir.
  14797. (mkdir): Use getFilePath() to get the directory path for output.
  14798. * src/DefaultPieceStorage.cc
  14799. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14800. CopyDiskAdaptor.
  14801. * src/CopyDiskAdaptor.h
  14802. (topDir): New variable.
  14803. (setTopDir): New function.
  14804. (getTopDir): New function.
  14805. * src/CopyDiskAdaptor.cc
  14806. (fixFilename): Updated.
  14807. Misc
  14808. * src/UrlRequestInfo.h
  14809. (e): Removed.
  14810. (UrlRequestInfo): Removed e.
  14811. (getDownloadEngine): Removed.
  14812. * src/UrlRequestInfo.cc
  14813. (handler): Rewritten.
  14814. (printUrls): New function.
  14815. (execute): Call printUrls().
  14816. * src/HandshakeMessage.cc
  14817. (check): peerinteraction->getBtContext() -> btContext
  14818. * src/PeerInteraction.h
  14819. (getBtContext): Removed.
  14820. * src/TorrentRequestInfo.h
  14821. (execute): RequestInfo* -> RequestInfos
  14822. (getDownloadEngine): Removed.
  14823. * src/TorrentRequestInfo.cc
  14824. (haltRequested): Removed.
  14825. (btHaltRequested): New variable.
  14826. (torrentHandler): haltRequested -> btHaltRequested
  14827. (execute): RequestInfo* -> RequestInfos
  14828. * src/TorrentConsoleDownloadEngine.cc
  14829. (afterEachIteration): haltRequested -> btHaltRequested.
  14830. * src/ConsoleDownloadEngine.h
  14831. (initStatistics): Added virtual.
  14832. (calculateStatistics): Added virtual.
  14833. (onEndOfRun): Added virtual.
  14834. (afterEachIteration): Added virtual.
  14835. * src/ConsoleDownloadEngine.cc
  14836. (haltRequested): New variable.
  14837. (afterEachIteration): New function.
  14838. * src/main.cc
  14839. (requestInfo): Removed.
  14840. * src/SegmentMan.cc
  14841. (findSlowerSegmentEntry): Refactored.
  14842. * Release 0.9.0
  14843. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14844. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14845. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14846. * src/TorrentMan.h: Removed.
  14847. * src/TorrentMan.cc: Removed.
  14848. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14849. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14850. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14851. * src/PeerAbstractCommand.cc: Use btRuntime.
  14852. * src/BtContextAwareCommand.h: New class.
  14853. * src/FileEntry.h: Added accessor methods for following variables.
  14854. (path): Made private.
  14855. (length): Made private.
  14856. (offset): Made private.
  14857. (extracted): Made private.
  14858. (requested): Made private.
  14859. (FileEntries): New definition.
  14860. (FileEntryHandle): New definition.
  14861. * src/FileEntry.cc: New file.
  14862. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14863. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14864. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14865. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14866. * src/PieceStorage.h: New file.
  14867. * src/PeerInteractionCommand.h: Use btContext.
  14868. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14869. btRuntime.
  14870. * src/DefaultBtProgressInfoFile.h: New file.
  14871. * src/DefaultBtProgressInfoFile.cc: New file.
  14872. * src/File.cc
  14873. (Util.h): New include.
  14874. (mkdirs): New function.
  14875. * src/MultiDiskAdaptor.h
  14876. (mkdir): New function.
  14877. * src/PeerListProcessor.h
  14878. (Peers): Removed.
  14879. * src/PeerInteraction.h
  14880. (torrentMan): Removed.
  14881. (btContext): New variable.
  14882. (peerStorage): New variable.
  14883. (pieceStorage): New variable.
  14884. (btAnnounce): New variable.
  14885. (getTorrentMan): Removed.
  14886. (getBtContext): New function.
  14887. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14888. btAnnounce.
  14889. * src/HandshakeMessage.h
  14890. (TorrentMan.h): Removed.
  14891. * src/HandshakeMessage.cc: Use btContext.
  14892. * src/DefaultBtAnnounce.cc: New file.
  14893. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14894. * src/DefaultPieceStorage.cc: New file.
  14895. * src/DefaultBtContext.h: New file.
  14896. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14897. Use the accessor methods of FileEntry.
  14898. * src/CookieBox.cc: Updated to use Util::slice().
  14899. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14900. * src/common.h (SharedHandle.h): New include.
  14901. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14902. pieceStorage.
  14903. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14904. * src/DiskAdaptor.h
  14905. (topDir): Removed.
  14906. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14907. (setTopDir): Removed.
  14908. (getTopDir): Removed.
  14909. * src/BtContext.h: New file.
  14910. * src/DefaultPeerStorage.h: New file.
  14911. * src/PieceMessage.h (TorrentMan.h): Removed.
  14912. * src/RequestMessage.h (TorrentMan.h): Removed.
  14913. * src/TorrentDownloadEngine.h
  14914. (uploadLength): New variable.
  14915. (btContext): New variable.
  14916. (btRuntime): New variable.
  14917. (pieceStorage): New variable.
  14918. (peerStorage): New variable.
  14919. (btAnnounce): New variable.
  14920. (btProgressInfoFile): New variable.
  14921. (torrentMan): Removed.
  14922. (setBtContext): New function.
  14923. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14924. peerStorage, btAnnounce, btProgressInfoFile.
  14925. * src/Piece.h
  14926. (toString): New function.
  14927. (Pieces): New type definition.
  14928. * src/Peer.h
  14929. (active): New variable.
  14930. (Peer): Added active.
  14931. (activate): Set active to true.
  14932. (deactivate): Set active to false.
  14933. (isActive): New function.
  14934. (Peers): New type definition.
  14935. * src/DirectDiskAdaptor.cc
  14936. (getFilePath): Use the accessor methods of FileEntry.
  14937. * src/TorrentConsoleDownloadEngine.h
  14938. (afterEachIteration): New function.
  14939. * src/TorrentConsoleDownloadEngine.cc
  14940. (haltRequested): New variable.
  14941. (sendStatistics): Use pieceStorage, btRuntime.
  14942. (afterEachIteration): New function.
  14943. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14944. * src/Directry.h
  14945. (Directory): New function.
  14946. (DirectoryHandle): New type definition.
  14947. * src/BtProgressInfoFile.h: New file.
  14948. * src/RequestMessage.cc: Use pieceStorage.
  14949. * src/BtRuntime.h: New file.
  14950. * src/DefaultBtContext.cc: New file.
  14951. * src/BitfieldMan.h
  14952. (getCompletedLength): New function(private).
  14953. (getCompletedLength): New function.
  14954. (getFilteredCompletedLength): New function.
  14955. * src/BitfieldMan.h
  14956. (getCompletedLength): New function(private).
  14957. (getCompletedLength): New function.
  14958. (getFilteredCompletedLength): New function.
  14959. * src/MultiDiskAdaptor.cc
  14960. (mkdir): New function.
  14961. (openFile): Call mkdir().
  14962. (initAndOpenFile): Call mkdir().
  14963. * src/CancelMessage.h
  14964. (TorrentMan.h): Removed.
  14965. * src/RejectMessage.h
  14966. (TorrentMan.h): Removed.
  14967. * src/DownloadEngineFactory.cc
  14968. (DefaultPieceStorage.h): New include.
  14969. (DefaultPeerStorage.h): New include.
  14970. (DefaultBtAnnounce.h): New include.
  14971. (DefaultBtProgressInfoFile.h): New include.
  14972. (newTorrentConsoleEngine): Rewritten.
  14973. * src/ShareRatioSeedCriteria.h
  14974. (torrentMan): Removed.
  14975. (btContext): New variable.
  14976. (peerStorage): New variable.
  14977. (btRuntime): New variable.
  14978. (evaluate): Use btContext, btRuntime, peerStorage.
  14979. * src/AnnounceTier.h: New file.
  14980. * src/BtAnnounce.h: New file.
  14981. * src/BtRegistry.h: New file.
  14982. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14983. * src/PeerConnection.h (TorrentMan.h): Removed.
  14984. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14985. * src/Util.h
  14986. (slice): Added an argument.
  14987. * src/Util.cc
  14988. (slice): Added an argument to control whether trim is made or not.
  14989. * src/PeerStorage.h: New file.
  14990. * src/BtRegistry.cc: New file.
  14991. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14992. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14993. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14994. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14995. * src/TorrentRequestInfo.h
  14996. (e): Removed.
  14997. (showFileEntry): Added an argument.
  14998. (getDownloadEngine): Return 0.
  14999. * src/DefaultBtAnnounce.h: New file.
  15000. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15001. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15002. * src/PeerMessageFactory.h
  15003. (btContext): New variable.
  15004. (pieceStorage): New variable.
  15005. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15006. btAnnounce.
  15007. * src/DiskAdaptor.cc
  15008. (DiskAdaptor): Removed topDir.
  15009. (~DiskAdaptor): Removed topDir.
  15010. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15011. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15012. * src/File.h (mkdirs): New function.
  15013. * src/DefaultPeerStorage): New file.
  15014. * src/DownloadEngineFactory.h
  15015. (newTorrentConsoleEngine): Use btContext.
  15016. * src/BtContextAwareCommand.cc: New file.
  15017. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15018. * src/PeerMessage.h
  15019. (btContext): New variable.
  15020. (peerStorage): New variable.
  15021. (pieceStorage): New variable.
  15022. (setBtContext): New function.
  15023. * src/Directry.cc
  15024. (Directory): New function.
  15025. (createDir): Do nothing if name.size() == 0.
  15026. * src/AnnounceList.h
  15027. (AnnounceTier): Removed.
  15028. (AnnounceTiers): Removed.
  15029. * src/DefaultPieceStorage.h: New file.
  15030. * src/Piece.cc (toString): New function.
  15031. To fix typo:
  15032. * src/main.cc (showVersion): Fixed typo.
  15033. To fix compile warning:
  15034. * src/DelegatingPeerListProcessor.cc
  15035. (canHandle): Added "return false".
  15036. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15037. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15038. make the process of announce request testable.
  15039. * src/TrackerWatcherCommand.h
  15040. (TimeA2.h): Removed.
  15041. (interval): Removed.
  15042. (checkPoint): Removed.
  15043. (createRequestCommand): Added an argument 'url'.
  15044. (TrackerWatherCommand): Removed interval.
  15045. (createCommand): New function.
  15046. * src/DownloadEngineFactory.cc
  15047. (newTorrentConsoleEngine): Updated according to the changes in
  15048. TrackerWatherCommand.
  15049. * src/TorrentMan.cc
  15050. (DelegatingPeerListProcessor.h): New includes.
  15051. (TorrentMan): Added the initialization of announceInterval.
  15052. (isStoppedAnnounceReady): New function.
  15053. (isCompletedAnnounceReady): New function.
  15054. (isDefaultAnnounceReady): New function.
  15055. (isAnnounceReady): New function.
  15056. (getAnnounceUrl): New function.
  15057. (announceStart): New function.
  15058. (announceFailure): New function.
  15059. (announceSuccess): New function.
  15060. (isAllAnnounceFailed): New function.
  15061. (resetAnnounce): New function.
  15062. (processAnnounceResponse): New function.
  15063. (needMorePeerConnection): New function.
  15064. (noMoreAnnounce): New function.
  15065. * src/TrackerUpdateCommand.h
  15066. (getTrackerResponse): int->size_t
  15067. * src/TorrentMan.h
  15068. (isStoppedAnnounceReady): New function.
  15069. (isCompletedAnnounceReady): New function.
  15070. (isDefaultAnnounceReady): New function.
  15071. (announceInterval): New variable.
  15072. (isAnnounceReady): New function.
  15073. (getAnnounceUrl): New function.
  15074. (announceStart): New function.
  15075. (announceFailure): New function.
  15076. (announceSuccess): New function.
  15077. (isAllAnnounceFailed): New function.
  15078. (resetAnnounce): New function.
  15079. (processAnnounceResponse): New function.
  15080. (needMorePeerConnection): New function.
  15081. (noMoreAnnounce): New function.
  15082. * src/TrackerWatcherCommand.cc
  15083. (TrackerWatherCommand): Removed interval and checkPoint.
  15084. (execute): Rewritten.
  15085. (createCommand): New function.
  15086. (createRequestCommand): Rewritten.
  15087. * src/TrackerUpdateCommand.cc
  15088. (MetaFileUtil.h): Removed.
  15089. (DelegatingPeerListProcessor.h): Removed.
  15090. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15091. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15092. Request -> RequestHandle:
  15093. * src/HttpResponseCommand.h: Request->RequestHandle
  15094. * src/AbstractCommand.cc: Request->RequestHandle
  15095. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15096. * src/HttpRequestCommand.cc: Request->RequestHandle
  15097. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15098. * src/AbstractCommand.h: Request->RequestHandle
  15099. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15100. * src/HttpResponseCommand.cc: Request->RequestHandle
  15101. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15102. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15103. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15104. * src/HttpConnection.h: Request->RequestHandle
  15105. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15106. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15107. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15108. * src/DownloadCommand.h: Request->RequestHandle
  15109. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15110. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15111. * src/HttpRequestCommand.h: Request->RequestHandle
  15112. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15113. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15114. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15115. * src/HttpDownloadCommand.h: Request->RequestHandle
  15116. * src/FtpConnection.cc: Request->RequestHandle
  15117. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15118. * src/UrlRequestInfo.cc: Request->RequestHandle
  15119. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15120. * src/HttpConnection.h: Request->RequestHandle
  15121. * src/DownloadCommand.cc: Request->RequestHandle
  15122. * src/FtpConnection.h: Request->RequestHandle
  15123. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15124. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15125. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15126. * src/Request.h
  15127. (SharedHandle.h): New include.
  15128. (RequestHandle): New type definition.
  15129. (Requests): Redefined.
  15130. To add MULTITRACKER support:
  15131. * src/TrackerWatcherCommand.h
  15132. (createRequestCommand): New function.
  15133. * src/DownloadEngineFactory.cc
  15134. (newTorrentConsoleEngine): Removed req.
  15135. * src/prefs.h
  15136. (PREF_TRACKER_MAX_TRIES): New definition.
  15137. * src/TorrentMan.cc
  15138. (TorrentMan): Removed req. Added trackerNumTry.
  15139. (~TorrentMan): Removed req.
  15140. (setupInternal1): Added announceList.
  15141. * src/TorrentRequestInfo.cc
  15142. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15143. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15144. * src/main.cc
  15145. (main): Added PREF_TRACKER_MAX_TRIES.
  15146. * src/TorrentMan.h
  15147. (Request.h): Removed.
  15148. (AnnounceList.h): New include.
  15149. (trackerNumTry): New variable.
  15150. (req): Removed.
  15151. (announceList): New variable.
  15152. * src/TrackerWatcherCommand.cc
  15153. (execute): Rewritten.
  15154. (createRequestCommand): New function.
  15155. * src/TrackerUpdateCommand.cc
  15156. (execute): Updated with the use of AnnounceList.
  15157. * src/AnnounceList.cc: New class.
  15158. * src/AnnounceList.h: New class.
  15159. To fix typo:
  15160. * src/prefs.h
  15161. (PREF_MAX_TRIES): max_try->max_tries
  15162. To not to decode "+" as space in URL decode:
  15163. * src/Util.cc
  15164. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15165. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15166. To add timeout to async name resolution:
  15167. * src/AbstractCommand.h
  15168. (nameResolveFinished): New function. This is not elegant way. It needs
  15169. to be more refined.
  15170. (nameResolverCheck): New variable.
  15171. * src/AbstractCommand.cc
  15172. (AbstractCommand): Added nameResolverCheck.
  15173. (execute): Added the check whether the name resolution has finished.
  15174. (setNameResolverCheck): Set nameResolverCheck to true.
  15175. (disableNameResolverCheck): Set nameResolverCheck to false.
  15176. (nameResolverFinished): New function.
  15177. * src/FtpInitiateConnectionCommand.h
  15178. (nameResolverFinished): New function.
  15179. * src/FtpInitiateConnectionCommand.cc
  15180. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15181. * src/HttpInitiateConnectionCommand.h
  15182. (nameResolverFinished): New function.
  15183. * src/HttpInitiateConnectionCommand.cc
  15184. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15185. * src/prefs.h
  15186. (PREF_DNS_TIMEOUT): New definition.
  15187. * src/main.cc
  15188. (main): Added PREF_DNS_TIMEOUT.
  15189. To add the support for a non-compact response from a tracker:
  15190. * src/PeerListProcessor.h: New class.
  15191. * src/DefaultPeerListProcessor.h: New class.
  15192. * src/DefaultPeerListProcessor.cc: New class.
  15193. * src/CompactPeerListProcessor.h: New class.
  15194. * src/CompactPeerListProcessor.cc: New class.
  15195. * src/DelegatingPeerListProcessor.h: New class.
  15196. * src/DelegatingPeerListProcessor.cc: New class.
  15197. * src/TorrentMan.cc
  15198. (addPeer): New function(overload).
  15199. (addPeer): Delete unused peers only when new peer is added.
  15200. * src/TorrentMan.h
  15201. (PeerListProcessor.h): Included.
  15202. (Peers): Removed.
  15203. (addPeer): New function(overload).
  15204. * src/TrackerUpdateCommand.cc
  15205. (netinet/in.h): Removed.
  15206. (DelegatingPeerListProcessor.h): Included.
  15207. (execute): Updated to use DelegatingPeerListProcessor.
  15208. To fix the memory leak in TorrentMan::peers:
  15209. * src/PeerAbstractCommand.cc
  15210. (onAbort): Added peer->resetStatus().
  15211. * src/Peer.h
  15212. (resetStatus): Made public.
  15213. To improve the precision of the speed calculation:
  15214. * src/SpeedCalc.h
  15215. (nextInterval): New variable.
  15216. * src/SpeedCalc.cc
  15217. (reset): Added nextInterval.
  15218. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15219. (changeSw): Set nextInterval to 15 seconds relative to the current
  15220. instant time.
  15221. * src/main.cc
  15222. (showVersion): Updated.
  15223. (showUsage): Updated.
  15224. * Release 0.8.1
  15225. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15226. * src/main.cc
  15227. (showUsage): Commented out --min-segment-size option.
  15228. (main): Commented out --min-segment-size option.
  15229. * Release 0.8.0
  15230. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15231. * src/*.{h,cc}:
  15232. Added an exception to the license which allows linking with OpenSSL.
  15233. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15234. * src/AbstractCommand.cc
  15235. (execute): Check whether the download has finished before checking
  15236. socket status.
  15237. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15238. Do not exit even if no segment is available.
  15239. * src/prefs.h
  15240. (PREF_STARTUP_IDLE_TIME): New definition.
  15241. * src/PeerInteractionCommand.cc
  15242. (executeInternal): Removed max speed limit. Because it performs bad.
  15243. (receiveMessages): Added max speed limit. This was better than above,
  15244. but still a little bit to be desired. Sometimes the download speed
  15245. became much faster than I specified.
  15246. * src/SpeedCalc.h
  15247. (start): New variable.
  15248. (accumulatedLength): New variable.
  15249. (getAvgSpeed): New function.
  15250. * src/SpeedCalc.cc
  15251. (reset): Added start, accumulatedLength.
  15252. (update): Added calculation of an average speed.
  15253. (getAvgSpeed): New function.
  15254. * src/DownloadCommand.h
  15255. (sw): Removed.
  15256. * src/main.cc
  15257. (main): Added PREF_STARTUP_IDLE_TIME.
  15258. * src/PeerStat.h
  15259. (STATUS): Added REQUEST_IDLE.
  15260. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15261. (getAvgDownloadSpeed): New function
  15262. (requestIdle): New function.
  15263. * src/SegmentMan.h
  15264. (SegmentEntryHandle): New type definition.
  15265. (SegmentEntries): Now holds SegmentEntryHandle.
  15266. (findSlowerSegmentEntry): New funtion.
  15267. * src/SegmentMan.cc
  15268. (save): Updated according to the changes in SegmentEntries.
  15269. (read): Updated according to the changes in SegmentEntries.
  15270. (FindSegmentEntryByIndex): Updated according to the changes in
  15271. SegmentEntries.
  15272. (FindSegmentEntryByCuid): Updated according to the changes in
  15273. SegmentEntries.
  15274. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15275. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15276. Renamed uitr as itr.
  15277. (findSlowerSegmentEntry): New function.
  15278. (getSegment): Updated according to the changes in SegmentEntries.
  15279. Added the feature that cancels the segment with slow server and fast
  15280. one takes it over.
  15281. (cancelSegment): Updated according to the changes in SegmentEntries.
  15282. (getDownloadLength): Updated according to the changes in
  15283. SegmentEntries.
  15284. (init): Assigned 0 to bitfield after deleting it.
  15285. * src/DownloadCommand.cc
  15286. (STARTUP_IDLE_TIME): Removed.
  15287. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15288. * src/PeerChokeCommand.cc
  15289. (optUnchokingPeer): Updated according to the changes in Peer.
  15290. (ResetDelta): Removed.
  15291. (UploadFaster): Updated according to the changes in Peer.
  15292. (DownloadFaster): Updated according to the changes in Peer.
  15293. (execute): I clarify the meaning of "upload" and "download" here.
  15294. "upload" means the transfer from localhost to remote host.
  15295. "download" means the transfer from remote host to localhost.
  15296. Based on this rule, I swapped orderByUploadRate and
  15297. orderByDownloadRate.
  15298. * src/PeerInteractionCommand.cc
  15299. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15300. (executeInternal): Removed the argument of
  15301. peerInteraction->sendMessages().
  15302. (receiveMessages): Rewritten download speed limit.
  15303. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15304. * src/HttpResponseCommand.cc
  15305. (handleDefaultEncoding): If file size is unknown in torrent request,
  15306. do not call segmentMan->initBitfield() here.
  15307. Disabled persistent connection feature in torrent request.
  15308. * src/UrlRequestInfo.h
  15309. (UrlRequestInfo): Removed const qualifier from option.
  15310. * src/TorrentMan.h
  15311. (TransferStat): New class.
  15312. (deltaDownloadLength): Removed.
  15313. (deltaUploadLength): Removed.
  15314. (addDeltaDownloadLength): Removed.
  15315. (getDeltaDownloadLength): Removed.
  15316. (resetDeltaDownloadLength): Removed.
  15317. (addDeltaUploadLength): Removed.
  15318. (getDeltaUploadLength): Removed.
  15319. (resetDeltaUploadLength): Removed.
  15320. (addActivePeer): Added peer->activate().
  15321. (deleteActivePeer): Added peer->deactivate().
  15322. (calculateStat): New function.
  15323. * src/TorrentMan.cc
  15324. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15325. (calculateStat): New function.
  15326. * src/PeerInteraction.h
  15327. (uploadLimit): Removed.
  15328. (option): New variable.
  15329. (setUploadLimit): Removed.
  15330. (getUploadSpeed): Removed.
  15331. (sendMessages): Removed the argument "currentUploadSpeed".
  15332. * src/PeerInteraction.cc
  15333. (prefs.h): Included.
  15334. (PeerInteraction): Removed uploadLimit. Added option.
  15335. (sendMessages): Rewritten upload speed limit.
  15336. (sendHandshake): Removed the argument from sendMessages().
  15337. (sendBitfield): Removed the argument from sendMessages().
  15338. * src/PeerAbstractCommand.cc
  15339. (execute): Commented out the portion of upload limit.
  15340. (onAbort): Removed peer->resetStatus().
  15341. * src/TorrentRequestInfo.cc
  15342. (timeoutSpecified): Declared extern.
  15343. (execute): Set timeout to 180 if timeout is not specified by.
  15344. command-line.
  15345. * src/PieceMessage.cc
  15346. (receivedAction): Added peer->updateDownloadLength().
  15347. Removed peer->addPeerUpload().
  15348. Removed torrentMan->addDeltaDownloadLength().
  15349. (send): Added peer->updateUploadLength().
  15350. Removed peer->addPeerDownload().
  15351. Removed torrentMan->addDeltaUploadLength().
  15352. * src/main.cc
  15353. (timeoutSpecified): New variable.
  15354. (main): Set timeoutSpecified to false.
  15355. If the command-line option "--upload-limit" is specified, then
  15356. timeoutSpecified is set to true. This option will remain in the next
  15357. release, but be deprecated in the future release.
  15358. * src/TorrentRequestInfo.h
  15359. (TorrentRequestInfo): Removed const qualifier from op.
  15360. * src/PeerStat.h
  15361. (uploadSpeed): New variable.
  15362. (PeerStat): Added default value to cuid.
  15363. (calculateUploadSpeed): New function.
  15364. (updateUploadLength): New function.
  15365. (getMaxUploadSpeed): New function.
  15366. (getAvgUploadSpeed): New function.
  15367. (reset): Added uploadSpeed. Set status to IDLE.
  15368. * src/TorrentDownloadEngine.h
  15369. (cp): Declared as Time.
  15370. (sessionDownloadLengthArray): Removed.
  15371. (sessionUploadLengthArray): Removed.
  15372. (currentCp): Removed.
  15373. (lastCalcStat): New variable
  15374. (lastElapsed): Removed.
  15375. (sessionDownloadLength): Removed.
  15376. (calculateStat): New function.
  15377. * src/TorrentDownloadEngine.cc
  15378. (initStatistics): Removed lastElapsed, cp[],
  15379. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15380. currentCp, sessionDownloadLength.
  15381. Added cp.reset() and lastCalcStat.reset().
  15382. (calculateSpeed): Changed the name of the argument.
  15383. (calculateStatistics): Rewritten.
  15384. (calculateStat): New function.
  15385. * src/Peer.h
  15386. (PeerStat.h): Included.
  15387. (peerUpload): Removed.
  15388. (peerDownload): Removed.
  15389. (peerStat): New variable.
  15390. (sessionUploadLength): New variable.
  15391. (sessionDownloadLength): New variable.
  15392. (deltaUpload): Removed.
  15393. (deltaDownload): Removed.
  15394. (resetStatus): Made private.
  15395. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15396. Removed peerUpload, peerDownload.
  15397. (updateUploadLength): New function.
  15398. (addDeltaUpload): Removed.
  15399. (updateDownloadLength): New function.
  15400. (resetDeltaUpload): Removed.
  15401. (getDeltaUpload): Removed.
  15402. (addDeltaDownload): Removed.
  15403. (calculateUploadSpeed): New function.
  15404. (resetDeltaDownload): Removed.
  15405. (getDeltaDownload): Removed.
  15406. (calculateDownloadSpeed): New function.
  15407. (getSessionUploadLength): New function.
  15408. (getSessionDownloadLength): New function.
  15409. (activate): New function.
  15410. (deactivate): New function.
  15411. (addPeerUpload): Removed.
  15412. (setPeerUpload): Removed.
  15413. (getPeerUpload): Removed.
  15414. (addPeerDownload): Removed.
  15415. (setPeerDownload): Removed.
  15416. (getPeerDownload): Removed.
  15417. * src/Peer.cc
  15418. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15419. * src/MetalinkRequestInfo.h
  15420. (MetalinkRequestInfo): Removed const qualifier from op.
  15421. * src/RequestInfo.h
  15422. (op): Removed const qualifier.
  15423. (RequestInfo): Removed const qualifier from op.
  15424. * src/prefs.h
  15425. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15426. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15427. * src/PeerInteractionCommand.cc
  15428. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15429. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15430. * src/PeerInteraction.cc
  15431. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15432. * src/main.cc
  15433. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15434. Added the description of "--max-download-limit" option.
  15435. Removed the description of "--upload-limit" option.
  15436. Added the description of "--max-upload-limit" option.
  15437. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15438. Added "--max-download-limit" option and "--max-upload-limit" option.
  15439. Added the warning message if "--upload-limit" option is used.
  15440. * src/DownloadCommand.cc
  15441. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15442. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15443. To rewrite segment download mechanism for HTTP/FTP download.
  15444. Use BitfieldMan to manage segment download.
  15445. * src/HttpResponseCommand.h
  15446. (executeInternal): Pass the reference of segment.
  15447. * src/AbstractCommand.cc
  15448. (prepareForRetry): Call segmentMan->cancelSegment here.
  15449. (onAbort): Call segmentMan->cancelSegment here.
  15450. * src/HttpDownloadCommand.cc
  15451. (prepareForNextSegment): New function.
  15452. * src/DownloadEngineFactory.cc
  15453. (newConsoleEngine): Removed splitter.
  15454. (newTorrentConsoleEngine): Removed splitter.
  15455. * src/Request.h
  15456. (segment): Renamed from seg.
  15457. * src/FtpInitiateConnectionCommand.h
  15458. (executeInternal): Pass the reference of segment.
  15459. * src/AbstractCommand.h
  15460. (executeInternal): Pass the reference of segment.
  15461. * src/pref.h
  15462. (PREF_SEGMENT_SIZE): New definition.
  15463. * src/HttpProxyRequestCommand.h
  15464. (executeInternal): Pass the reference of segment.
  15465. * src/HttpResponseCommand.cc
  15466. (checkResponse): Allowed status 206 when a request range starts 0.
  15467. (handleDefaultEncoding): Rewritten the code related to Segment.
  15468. (handleOtherEncoding): Rewritten the code related to Segment.
  15469. * src/SegmentMan.h
  15470. (SegmentEntry): New class.
  15471. (SegmentEntries): New type definition.
  15472. (bitfield): New variable.
  15473. (usedSegmentEntries): New variable.
  15474. (onNullBitfield): New function.
  15475. (checkoutSegment): New function.
  15476. (segments): Removed.
  15477. (splitter): Removed.
  15478. (unregisterId): Removed.
  15479. (getSegment): New function(overload)
  15480. (getDownloadedSize): Removed.
  15481. (cancelSegment): New function.
  15482. (completeSegment): New function.
  15483. (initBitfield): New function.
  15484. (hasSegment): New function.
  15485. (getDownloadLength): New function.
  15486. * src/BitfieldMan.h
  15487. (getStartIndex): New function.
  15488. (getEndIndex): New function.
  15489. (getMissingUnusedIndex): New function(overload).
  15490. (getSparseMissingUnusedIndex): New function.
  15491. * src/BitfieldMan.cc
  15492. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15493. (getMissingUnusedIndex): New function(overload).
  15494. (Range): New class.
  15495. (getStartIndex): New function.
  15496. (getEndIndex): New function.
  15497. (getSparseMissingUnusedIndex): New function.
  15498. (isBitSetInternal): Return false if the given index is less than 0.
  15499. * src/HttpInitiateConnectionCommand.h
  15500. (executeInternal): Pass the reference of segment.
  15501. * src/FtpNegotiateCommand.h
  15502. (executeInternal): Pass the reference of segment.
  15503. * src/FtpNegotiateCommand.cc
  15504. (recvSize): Initialize bitfield here.
  15505. * src/FtpTunnelResponseCommand.h
  15506. (executeInternal): Pass the reference of segment.
  15507. * src/HttpConnection.cc
  15508. (createRequest): Rewritten range header processing.
  15509. * src/DownloadCommand.h
  15510. (executeInternal): Pass the reference of segment.
  15511. (prepareForRetry): Removed.
  15512. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15513. function.
  15514. * src/main.cc
  15515. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15516. * src/SegmentMan.cc
  15517. (SegmentMan): Added bitfield. Removed splitter.
  15518. (~SegmentMan): Added bitfield. Removed splitter.
  15519. (unregisterId): Removed.
  15520. (getSegment): Rewritten.
  15521. (updateSegment): Rewritten.
  15522. (save): Rewritten.
  15523. (read): Rewritten.
  15524. (finished): Rewritten.
  15525. (getDownloadedSize): Removed.
  15526. (initBitfield): New function.
  15527. (FindSegmentEntryByIndex): New function object.
  15528. (FindSegmentEntryByCuid): New function object.
  15529. (checkoutSegment): New function.
  15530. (onNullBitfield): New function.
  15531. (getSegment): New function(overload).
  15532. (CancelSegment): New function object.
  15533. (cancelSegment): New function.
  15534. (completeSegment): New function.
  15535. (hasSegment): New function.
  15536. (getDownloadLength): New function.
  15537. * src/FtpInitiateConnectionCommand.cc
  15538. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15539. * src/Segment.h: Rewritten.
  15540. * src/Segment.cc (operator<<): New function.
  15541. * src/HttpDownloadCommand.h
  15542. (prepareForNextSegment): New function.
  15543. * src/Request.cc
  15544. (resetUrl): Made segment null.
  15545. * src/DownloadEngine.cc
  15546. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15547. * src/HttpProxyRequestCommand.h
  15548. (executeInternal): Pass the reference of segment.
  15549. * src/DownloadCommand.cc
  15550. (executeInternal): Rewritten the code related to Segment.
  15551. (prepareForRetry): Removed.
  15552. (prepareForNextSegment): Rewritten.
  15553. * src/FtpTunnelResponseCommand.h
  15554. (executeInternal): Pass the reference of segment.
  15555. To add HTTP 1.1 persistent connection support(experimental)
  15556. * src/HttpRequestCommand.cc
  15557. (executeInternal): Disable keep alive if it is disabled by
  15558. configuration.
  15559. * src/Request.h
  15560. (keepAlive): New variable.
  15561. (isKeepAlive): New function.
  15562. (setKeepAlive): New function.
  15563. * src/pref.h
  15564. (PREF_HTTP_KEEP_ALIVE): New definition.
  15565. * src/HttpResponseCommand.cc
  15566. (executeInternal): Check the remote server supports keep alive.
  15567. * src/HttpConnection.cc
  15568. (createRequest): Send "Connection: close" only if keep alive is
  15569. disabled.
  15570. * src/main.cc
  15571. (main):
  15572. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15573. To add max download speed limit:
  15574. * src/pref.h
  15575. (PREF_MAX_SPEED_LIMIT): New definition.
  15576. * src/PeerInteractionCommand.cc
  15577. (executeInternal): Added max download speed limit. Not tested yet.
  15578. * src/SegmentMan.h
  15579. (PeerStats): New type definition.
  15580. (peerStats): New variable.
  15581. (registerPeerStat): New function.
  15582. (FindPeerStat): New function object.
  15583. (getPeerStat): New function.
  15584. (calculateDownloadSpeed): New function.
  15585. * src/SpeedCalc.h: New class.
  15586. * src/SpeedCalc.cc: New class.
  15587. * src/main.cc
  15588. (main):
  15589. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15590. download speed is not restricted).
  15591. * src/PeerStat.h: New class.
  15592. * src/SegmentMan.cc
  15593. (registerPeerStat): New function.
  15594. (calculateDownloadSpeed): New function.
  15595. * src/DownloadCommand.cc
  15596. (STARTUP_IDLE_TIME): New definition.
  15597. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15598. downloadStart.
  15599. (~DownloadCommand): Call peerStat->downloadStop.
  15600. (executeInternal): Added download speed limitter. Rewritten lowest
  15601. speed limitter.
  15602. * src/HttpConnection.cc
  15603. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15604. * src/AbstractCommand.cc
  15605. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15606. Added hostname to the error message.
  15607. * src/ConsoleDownloadEngine.cc
  15608. (calculateStatistics): Initialize psize with dlSize.
  15609. * src/PieceMessage.cc
  15610. (receivedAction): Do not call peerInteraction->abortPiece here.
  15611. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15612. * src/BitfieldMan.h
  15613. (clearAllUseBit): New function.
  15614. (setAllUseBit): New function.
  15615. * src/BitfieldMan.cc
  15616. (clearAllBit): Do not clear useBitfield here.
  15617. (clearAllUseBit): New function.
  15618. (setAllUseBit): New function.
  15619. * src/Piece.cc
  15620. (clearAllBlock): Call bitfield->clearAllUseBit().
  15621. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15622. To make filename URL-decoded:
  15623. * src/HttpResponseCommand.h: Updated doc.
  15624. * src/HttpResponseCommand.cc
  15625. (determinFilename): Made filename URL-decoded.
  15626. * src/FtpInitiateConnectionCommand.cc
  15627. (executeInternal): Made filename URL-decoded.
  15628. * src/Util.h (urldecode): New function.
  15629. * src/Util.cc (urldecode): New function.
  15630. To fix a bug that caused assertion failure in ares_strerror:
  15631. * src/NameResolver.cc (callback): Fixed the bug.
  15632. * Release 0.7.3
  15633. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15634. To add --seed-time and --seed-ratio command-line option:
  15635. * src/Option.h (getAsDouble): New function.
  15636. * src/Option.cc (getAsDouble): New function.
  15637. * src/SeedCheckCommand.h: New class.
  15638. * src/SeedCheckCommand.cc: New class.
  15639. * src/DownloadEngineFactory.cc
  15640. (SeedCheckCommand.h): Included.
  15641. (UnionSeedCriteria.h): Included.
  15642. (TimeSeedCriteria.h): Included.
  15643. (ShareRatioSeedCriteria.h): Included.
  15644. (newTorrentConsoleEngine): Added the processing of seed option.
  15645. * src/SeedCriteria.h: New class.
  15646. * src/ShareRatioSeedCriteria.h: New class.
  15647. * src/TimeSeedCriteria.h: New class.
  15648. * src/UnionSeedCriteria.h: New class.
  15649. * src/prefs.h
  15650. (PREF_SEED_TIME): New definition.
  15651. (PREF_SEED_RATIO): New definition.
  15652. * src/main.cc
  15653. (showUsage): Added --seed-time and --seed-ratio option.
  15654. (main): Added --seed-time and --seed-ratio option.
  15655. Made default log file name "/dev/null".
  15656. * src/SharedHandle.h
  15657. (SharedHandle): Copy constructor. Made it assignable from the
  15658. SharedHandle of the subclasses.
  15659. (operator=): Made it assignable from the SharedHandle of the
  15660. subclasses.
  15661. (getRefCount): New function.
  15662. To add notice log level and the switch to write log to stdout. This
  15663. switch is configurable per log level.
  15664. * src/Logger.h
  15665. (notice): New function.
  15666. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15667. constant.
  15668. * src/LogFactory.cc
  15669. (getInstance): The use of NullLogger was removed. A log message with
  15670. notice log level was made written to stdout along with log file.
  15671. * src/NullLogger.h
  15672. (notice): New function.
  15673. * src/SimpleLogger.h
  15674. (writeHeader): Added the 'file' argument.
  15675. (writeLog): Added the 'file' argument.
  15676. (writeFile): New function.
  15677. (stdoutField): New variable.
  15678. (SimpleLogger): Removed the default constructor.
  15679. (SimpleLogger): Made the default value of logfile 0.
  15680. (debug): Added 'virtual' keyword.
  15681. (info): Added 'virtual' keyword.
  15682. (warn): Added 'virtual' keyword.
  15683. (error): Added 'virtual' keyword.
  15684. (notice): New function.
  15685. (setStdout): New function.
  15686. * src/SimpleLogger.cc
  15687. (WRITE_LOG): Replaced writeLog with writeFile.
  15688. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15689. (SimpleLogger): Removed the default constructor.
  15690. (setStdout): New function.
  15691. (writeLog): Added the handling of NOTICE log level.
  15692. (writeFile): New function.
  15693. (notice): New function.
  15694. * src/TorrentMan.h: Updated doc.
  15695. * src/BitfieldMan.h: Updated doc.
  15696. * src/TrackerWatcherCommand.cc
  15697. (execute): Return true if error occurred in the request to the tracker
  15698. and halt is requested.
  15699. * src/TrackerUpdateCommand.cc
  15700. (execute): Return true if error occurred in the request to the tracker
  15701. and halt is requested.
  15702. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15703. DownloadEngine:
  15704. * src/TorrentConsoleDownloadEngine.h
  15705. (onSelectiveDownloadingCompletes): Removed.
  15706. * src/TorrentConsoleDownloadEngine.cc
  15707. (onSelectiveDownloadingCompletes): Removed.
  15708. * src/TorrentDownloadEngine.h
  15709. (onEndOfRun): Added 'virtual' keyword.
  15710. (afterEachIteration): Removed.
  15711. (onSelectiveDownloadingCompletes): Removed.
  15712. * src/TorrentDownloadEngine.cc
  15713. (onEndOfRun): Removed filenameFixed.
  15714. (afterEachIteration): Removed.
  15715. * src/TorrentMan.cc
  15716. (completePiece): Call onDownloadComplete here.
  15717. (onDownloadComplete): Added 2 log messages.
  15718. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15719. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15720. * src/NameResolver.h: Added the prototype declaration of callback().
  15721. To support c-ares library:
  15722. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15723. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15724. * src/FtpInitiateConnectionCommand.h:
  15725. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15726. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15727. * src/HttpInitiateConnectionCommand.h:
  15728. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15729. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15730. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15731. #1542285 by tizianomueller)
  15732. * src/HttpInitiateConnectionCommand.cc:
  15733. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15734. * src/FtpInitiateConnectionCommand.cc:
  15735. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15736. * src/DownloadEngine.h:
  15737. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15738. * src/DownloadEngine.cc:
  15739. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15740. To fix the bug that causes compilation failure with metalink-support
  15741. disabled(bug#1543587):
  15742. * src/main.cc: Fixed with the patch by tizianomueller.
  15743. * Release 0.7.2
  15744. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15745. * src/main.cc
  15746. (main): Added a message to inform users that aria2 is starting to
  15747. verify checksum.
  15748. * src/RequestInfo.cc
  15749. (printDownloadAbortMessage): Added a message to inform users that
  15750. transfer can be resumed.
  15751. * src/FeatureConfig.cc
  15752. (FEATURE_ASYNC_DNS): New definition.
  15753. (FeatureConfig): Added aysnc DNS entry.
  15754. To replace CommandUuid with Command* in SocketEntry and
  15755. NameResolverEntry:
  15756. * src/DownloadEngine.h
  15757. (CommandUuids): Removed.
  15758. (SocketEntry::commandUuid): Removed.
  15759. (SocketEntry::command): New variable.
  15760. (SocketEntry::SocketEntry): Updated.
  15761. (SocketEntry::operator==): Updated.
  15762. (NameResolverEntry::commandUuid): Removed.
  15763. (NameResolverEntry::command): New variable.
  15764. (NameResolverEntry::NameResolverEntry): Updated.
  15765. (NameResolverEntry::operator==): Updated.
  15766. (waitData): Changed the argument type.
  15767. (addSocketForReadCheck): Changed the argument type.
  15768. (deleteSocketForReadCheck): Changed the argument type.
  15769. (addSocketForWriteCheck): Changed the argument type.
  15770. (deleteSocketForWriteCheck): Changed the argument type.
  15771. (addNameResolverCheck): Changed the argument type.
  15772. (deleteNameResolverCheck): Changed the argument type.
  15773. * src/DownloadEngine.cc
  15774. (FindCommand): Removed.
  15775. (run): Removed activeUuid. Added activeCommands instead.
  15776. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15777. (AccumulateActiveCommand): New function object.
  15778. (waitData): Use AccumulateActiveCommand.
  15779. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15780. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15781. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15782. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15783. (addNameResolverCheck): Use Command instead of CommandUuid.
  15784. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15785. * src/AbstractCommand.cc
  15786. (disableReadCheckSocket): Updated according to the changes in
  15787. DownloadEngine.
  15788. (setReadCheckSocket): Updated according to the changes in
  15789. DownloadEngine.
  15790. (disableWriteCheckSocket): Updated according to the changes in
  15791. DownloadEngine.
  15792. (setWriteCheckSocket): Updated according to the changes in
  15793. DownloadEngine.
  15794. (setNameResolverCheck): Updated according to the changes in
  15795. DownloadEngine.
  15796. (disableNameResolverCheck): Updated according to the changes in
  15797. DownloadEngine.
  15798. * src/AbstractCommand.cc
  15799. (disableReadCheckSocket): Updated according to the changes in
  15800. DownloadEngine.
  15801. (setReadCheckSocket): Updated according to the changes in
  15802. DownloadEngine.
  15803. (disableWriteCheckSocket): Updated according to the changes in
  15804. DownloadEngine.
  15805. (setWriteCheckSocket): Updated according to the changes in
  15806. DownloadEngine.
  15807. * release 0.7.1
  15808. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15809. To handle the case where some BitTorrent tracker requires all letters
  15810. except for [A-Za-z0-9] is URL encoded.
  15811. * src/Util.h
  15812. (torrentUrlencode): New function.
  15813. * src/Util.cc
  15814. (ctype.h): Included.
  15815. (torrentUrlencode): New function.
  15816. * src/TrackerWatcherCommand.cc
  15817. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15818. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15819. To add asynchronous DNS support(libares):
  15820. * src/AbstractCommand.h
  15821. (setNameResolverCheck): New function.
  15822. (disableNameResolverCheck): New function
  15823. (resolveHostname): New function.
  15824. * src/AbstractCommand.cc
  15825. (setNameResolverCheck): New function.
  15826. (disableNameResolverCheck): New function
  15827. (resolveHostname): New function.
  15828. * src/FtpInitiateConnectionCommand.h
  15829. (nameResolver): New function.
  15830. * src/FtpInitiateConnectionCommand.cc
  15831. (Util.h): Included.
  15832. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15833. disableWriteCheckSocket.
  15834. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15835. (executeInternal): Added async DNS support.
  15836. * src/HttpInitiateConnectionCommand.h
  15837. (nameResolver): New function.
  15838. * src/HttpInitiateConnectionCommand.cc
  15839. (DlRetryEx.h): Included.
  15840. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15841. disableWriteCheckSocket.
  15842. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15843. (executeInternal): Added async DNS support.
  15844. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15845. by extern "C" declaration.
  15846. * src/NameResolver.cc: New class.
  15847. * src/Util.h:
  15848. (isNumberAndDotsNotation): New function
  15849. * src/Util.cc
  15850. (isNumberAndDotsNotation): New function.
  15851. * src/DownloadEngine.h
  15852. (NameResolver.h): Included.
  15853. (NameResolverEntry): New class.
  15854. (NameResolverEntries): New type definition.
  15855. (addNameResolverCheck): New function.
  15856. (deleteNameResolverCheck): New function.
  15857. * src/DownloadEngine.cc
  15858. (run): Initialize cp with 0.
  15859. (SetDescriptor::operator()): Added for NameResolverEntry.
  15860. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15861. (waitData): Check nameResolver entries.
  15862. (updateFdSet): Update fds in nameResolver entries.
  15863. (addNameResolverCheck): New function.
  15864. (deleteNameResolverCheck): new function.
  15865. * src/PeerInteractionCommand.cc
  15866. (executeInternal): Fixed wrong socket handling.
  15867. * src/main.cc
  15868. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15869. * src/Util.cc
  15870. (fileChecksum): Removed the call to ctx.digestReset().
  15871. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15872. * po/ru.po: Azamat sent me Russian translation.
  15873. * src/FtpNegotiateCommand.cc
  15874. (recvGreeting): Call disableWriteCheckSocket just after
  15875. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15876. (recvRetr): Recognized status code 125 as a acceptable response code.
  15877. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15878. case-insesitive filesystem(BUG#1531057).
  15879. * src/Time.h: Renamed as TimeA2.h.
  15880. * src/Time.cc: Renamed as TimeA2.cc.
  15881. * src/TimeA2.h: New class.
  15882. * src/TimeA2.cc: New class.
  15883. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15884. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15885. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15886. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15887. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15888. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15889. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15890. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15891. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15892. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15893. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15894. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15895. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15896. * release 0.7.0
  15897. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15898. * src/PeerChokeCommand.h
  15899. (PeerChokeCommand): Rearranged the arguments.
  15900. * src/PeerChokeCommand.cc
  15901. (PeerChokeCommand): Rearranged the arguments.
  15902. * src/MetalinkEntry.h
  15903. (Checksum.h): Included.
  15904. (md5): Removed.
  15905. (sha1): Removed.
  15906. (checksum): New variable.
  15907. (operator=): Updated.
  15908. (check): Removed.
  15909. * src/prefs.h
  15910. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15911. (PREF_FOLLOW_TORRENT): New definition.
  15912. (PREF_SELECT_FILE): New definition.
  15913. (PREF_FOLLOW_METALINK): New definition.
  15914. * src/MetalinkResource.h
  15915. (TYPE_HTTPS): Added to enum TYPE.
  15916. * src/TorrentMan.cc
  15917. (~TorrentMan): Rewritten.
  15918. * src/MultiDiskWriter.cc
  15919. (MultiDiskAdaptor): Updated according to the changes in
  15920. MessageDigestContext.
  15921. (~MultiDiskAdaptor): Updated according to the changes in
  15922. MessageDigestContext.
  15923. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15924. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15925. * src/Util.h
  15926. (fileChecksum): Updated according to the changes in
  15927. MessageDigestContext.
  15928. * src/Util.cc
  15929. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15930. (fileChecksum): Updated according to the changes in
  15931. MessageDigestContext.
  15932. * src/messageDigest.h: Rewritten.
  15933. * src/MetalinkEntry.cc
  15934. (check): Removed.
  15935. (Supported): Updated.
  15936. (dropUnsupportedResource): Fixed a memory leak.
  15937. * src/ShaVisitor.cc
  15938. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15939. (~ShaVisitor): Updated according to the changes in
  15940. MessageDigestContext.
  15941. (visit): Updated according to the changes in MessageDigestContext.
  15942. * src/main.cc
  15943. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15944. command-line option added.
  15945. * src/DownloadEngine.h
  15946. (SocketEntry): New class.
  15947. (SocketEntries): New definition.
  15948. (PairFind): Removed.
  15949. (SockCmdMap): Removed.
  15950. * src/DownloadEngine.cc
  15951. (DownloadEngine): Rewritten.
  15952. (~DownloadEngine): Rewritten.
  15953. (run): Renamed activeCommandUuids as activeUuids.
  15954. (SetDescriptor): Rewritten.
  15955. (AccumulateActiveCommandUuid): Removed.
  15956. (AccumulateActiveUuid): New function object.
  15957. (waitData): Rewritten.
  15958. (updateFdSet): Rewritten.
  15959. (addSocket): Rewritten.
  15960. (deleteSocket): Rewritten.
  15961. (addSocketForReadCheck): Rewritten.
  15962. (deleteSocketForReadCheck): Rewritten.
  15963. (addSocketForWriteCheck): Rewritten.
  15964. (deleteSocketForWriteCheck): Rewritten.
  15965. * src/Xml2MetalinkProcessor.cc
  15966. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15967. * src/DownloadCommand.cc
  15968. (executeInternal): Added the check routine for lowest speed limit.
  15969. * src/AbstractDiskWriter.cc
  15970. (AbstractDiskWriter): Updated according to the changes in
  15971. MessageDigestContext.
  15972. (~AbstractDiskWriter): Updated according to the changes in
  15973. MessageDigestContext.
  15974. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15975. * src/RequestInfo.h: New class.
  15976. * src/UrlRequestInfo.h: New class.
  15977. * src/UrlRequestInfo.cc: New class.
  15978. * src/TorrentRequestInfo.h: New class.
  15979. * src/TorrentRequestInfo.cc: New class.
  15980. * src/MetalinkRequestInfo.h: New class.
  15981. * src/MetalinkRequestInfo.cc: New class.
  15982. * src/Checksum.h: New class.
  15983. * src/DownloadEngineFactory.h: New class.
  15984. * src/DownloadEngineFactory.cc: New class.
  15985. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15986. * src/Option.h
  15987. (getAsBool): New function.
  15988. * src/Option.cc
  15989. (prefs.h): Included.
  15990. (defined): 0-length value is now recognized as undefined.
  15991. (getAsInt): Rewritten.
  15992. (getAsLLInt): Rewritten.
  15993. (getAsBool): New function.
  15994. * src/FeatureConfig.h: Rewritten.
  15995. * src/FeatureConfig.cc: Rewritten.
  15996. * src/prefs.h
  15997. (PREF_STDOUT_LOG): New definition.
  15998. (PREF_LOG): New definition.
  15999. (PREF_DIR): New definition.
  16000. (PREF_OUT): New definition.
  16001. (PREF_SPLIT): New definition.
  16002. (PREF_DAEMON): New definition.
  16003. (PREF_REFERER): New definition.
  16004. (PREF_TORRENT_FILE): New definition.
  16005. (PREF_LISTEN_PORT): New definition.
  16006. (PREF_METALINK_FILE): New definition.
  16007. (PREF_METALINK_VERSION): New definition.
  16008. (PREF_METALINK_LANGUAGE): New definition.
  16009. (PREF_METALINK_OS): New definition.
  16010. (PREF_METALINK_SERVERS): New definition.
  16011. * src/main.cc
  16012. (main): Following command-line parameters are now put into Option
  16013. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16014. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16015. metalinkLanguage, metalinkOs, metalinkServers
  16016. To fix the bug that aria2 can not handle http response header properly.
  16017. * src/HttpHeader.cc
  16018. (put): Made name lowercased.
  16019. (defined): Made name lowercased.
  16020. (getFirst): Made name lowercased.
  16021. (get): Made name lowercased.
  16022. (getFirstAsInt): Rewritten.
  16023. (getFirstAsLLInt): Rewritten.
  16024. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16025. * src/TorrentMan.h:
  16026. (advertisePiece): Updated doc.
  16027. (getAdvertisedPieceIndexes): Updated doc.
  16028. (removeAdvertisedPiece); New function.
  16029. * src/TorrentMan.cc
  16030. (FindElapsedHave): New function object.
  16031. (removeAdvertisedPiece): New function.
  16032. * src/HaveEraseCommand.h: New class.
  16033. * src/HaveEraseCommand.cc: New class.
  16034. * src/FeatureConfig.h: New class.
  16035. * src/FeatureConfig.cc: New class.
  16036. * src/Request.h
  16037. (defaultPorts): Removed.
  16038. * src/Request.cc
  16039. (FeatureConfig.h): Included.
  16040. (Request): Removed the statements related to defaultPorts.
  16041. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16042. A default port number is now retrieved from FeatureConfig.
  16043. * src/main.cc
  16044. (HaveEraseCommand.h): Included.
  16045. (showVersion): Added the output of feature list.
  16046. (main): Added HaveEraseCommand to command queue in BitTorrent
  16047. downloading.
  16048. * src/PeerInteractionCommand.h
  16049. (chokeCheckPoint): Commented out.
  16050. (periodicExecPoint): New variable.
  16051. * src/PeerInteractionCommand.cc
  16052. (executeInternal): Following methods are now called in at least every
  16053. 0.5 seconds to reduce CPU usage:
  16054. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16055. checkHave(), sendKeepAlive().
  16056. (checkLongTimePeerChoking): Commented out.
  16057. * src/BitfieldMan.h
  16058. (getNthBitIndex): Changed the method signature.
  16059. (getMissingIndexRandomly): Changed the method signature.
  16060. * src/BitfieldMan.cc
  16061. (getNthBitIndex): Rewritten
  16062. (getMissingIndexRandomly): Rewritten.
  16063. (hasMissingPiece): Rewritten.
  16064. (getMissingIndex): Refactored.
  16065. (getMissingUnusedIndex); Refactored.
  16066. (getMissingIndex): Refactored.
  16067. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16068. * src/PeerMessage.h
  16069. (Piece.h): Included.
  16070. (SharedHandle.h): Included.
  16071. (invalidate): New variable.
  16072. (uploading): New variable.
  16073. (isInvalidate): New function.
  16074. (isUploading): New function.
  16075. (onPush): New function.
  16076. (onChoked): New function.
  16077. (onCanceled): New function.
  16078. (onAbortPiece): New function.
  16079. (PeerMessageHandle): New type definition.
  16080. * src/PeerMessage.cc
  16081. (PeerMessage): Added the initialization for invalidate and uploading.
  16082. * src/CancelMessage.h
  16083. (CancelMessage): Rewritten.
  16084. * src/RejectMessage.h
  16085. (RejectMessage): Rewritten.
  16086. * src/Metalinker.h
  16087. (operator=): Defined.
  16088. * src/MetaEntry.h
  16089. (operator=): Defined.
  16090. * src/MetalinkResource.h
  16091. (operator=): Defined.
  16092. * src/AllowedFastMessage.h
  16093. (AllowedFastMessage): Rewritten.
  16094. * src/HandshakeMessage.h
  16095. (HandshakeMessage): New function(overload).
  16096. * src/HandshakeMessage.cc
  16097. (HandshakeMessage): Rewritten.
  16098. (init): New function.
  16099. * src/HaveMessage.h
  16100. (HaveMessage): Rewritten.
  16101. * src/Time.h
  16102. (operator=): Defined the function body here.
  16103. * src/Time.cc
  16104. (operator=): Removed.
  16105. * src/SocketCore.h
  16106. (operator==): Defined here.
  16107. (operator!=): Defined here.
  16108. (operator<): Defined here.
  16109. * src/SocketCore.cc
  16110. (operator==): Removed.
  16111. (operator<): Removed.
  16112. * src/BitfieldMan.h
  16113. (operator=): Defined the function body here.
  16114. * src/BitfieldMan.cc
  16115. (operator=): Removed.
  16116. * src/TorrentMan.h
  16117. (deleteErrorPeer): Removed.
  16118. (deleteUnusedPeer); New function.
  16119. * src/TorrentMan.cc
  16120. (addPeer): Call deleteUnusedPeer.
  16121. (deleteErrorPeer): Removed.
  16122. (deleteUnusedPeer): New function.
  16123. * src/PeerAbstractCommand.h
  16124. (setNoCheck): New function.
  16125. (noCheck): New variable.
  16126. * src/PeerAbstractCommand.cc
  16127. (PeerAbstractCommand): Added the initialization of noCheck.
  16128. (execute): Added a check for noCheck.
  16129. (setNoCheck): New function.
  16130. * src/Util.h
  16131. (stdio.h): Included.
  16132. * src/Util.cc
  16133. (unistd.h): Included.
  16134. * src/DefaultDiskWriter.cc
  16135. (unistd.h): Included.
  16136. * src/Peer.h
  16137. (operator==): Defined the function body here.
  16138. (operator!=): Defined the function body here.
  16139. * src/Peer.cc
  16140. (operator==): Removed.
  16141. (operator!=): Removed.
  16142. * src/Piece.h
  16143. (Piece): Defined the function body here(copy constructor).
  16144. (operator=): Defined the function body here.
  16145. (operator==): Defined the function body here.
  16146. * src/Piece.cc
  16147. (Piece): Removed(copy constructor).
  16148. (operator=): Removed.
  16149. (operator==): Removed.
  16150. * src/PeerMessageUtil.h
  16151. (ChokeMessage.h): Removed.
  16152. (UnchokeMessage.h): Removed.
  16153. (InterestedMessage.h): Removed.
  16154. (NotInterestedMessage.h): Removed.
  16155. (HaveMessage.h): Removed.
  16156. (BitfieldMessage.h): Removed.
  16157. (RequestMessage.h): Removed.
  16158. (CancelMessage.h): Removed.
  16159. (PieceMessage.h): Removed.
  16160. (HandshakeMessage.h): Removed.
  16161. (KeepAliveMessage.h): Removed.
  16162. (PortMessage.h): Removed.
  16163. (HaveAllMessage.h): Removed.
  16164. (HaveNoneMessage.h): Removed.
  16165. (PeerConnection.h): Removed.
  16166. (HandshakeMessage.h): Included.
  16167. * src/BitfieldMessage.h
  16168. (init): New function.
  16169. (BitfieldMessage): Rewritten.
  16170. (BitfieldMessage): New function(overload).
  16171. * src/RequestSlot.h
  16172. (operator=): Defined the function body here.
  16173. (operator==): Defined the function body here.
  16174. * src/RequestSlot.cc
  16175. (operator=): Removed.
  16176. (operator==): Removed.
  16177. To remove the dependency on the PeerMessage subclass from
  16178. PeerInteraction:
  16179. * src/PeerMessageFactory.h: New class.
  16180. * src/PeerMessageFactory.cc: New class.
  16181. * src/SimplePeerMessage.cc
  16182. (send): If invalidate is true then do nothing.
  16183. * src/PeerInteractionCommand.cc
  16184. (HandshakeMessage.h): Included.
  16185. (KeepAliveMessage.h): Included.
  16186. (ChokeMessage.h): Included.
  16187. (UnchokeMessage.h): Included.
  16188. (HaveMessage.h): Included.
  16189. (executeInternal): Call setNoCheck().
  16190. Removed setWriteCheckSocket(socket).
  16191. * src/PeerInteraction.h
  16192. (ChokeMessage.h): Removed.
  16193. (UnchokeMessage.h): Removed.
  16194. (InterestedMessage.h): Removed.
  16195. (NotInterestedMessage.h): Removed.
  16196. (HaveMessage.h): Removed.
  16197. (BitfieldMessage.h): Removed.
  16198. (RequestMessage.h): Removed.
  16199. (CancelMessage.h): Removed.
  16200. (PieceMessage.h): Removed.
  16201. (HandshakeMessage.h): Removed.
  16202. (KeepAliveMessage.h): Removed.
  16203. (PortMessage.h): Removed.
  16204. (HaveAllMessage.h): Removed.
  16205. (HaveNoneMessage.h): Removed.
  16206. (RejectMessage.h): Removed.
  16207. (AllowedFastMessage.h): Removed.
  16208. (SuggestPieceMessage.h): Removed.
  16209. (PeerMessageFactory.h): Included.
  16210. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16211. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16212. (PeerMessageFactory): New variable.
  16213. (createPeerMessage): Removed.
  16214. (createHandshakeMessage): Removed.
  16215. (setPeerMessageCommonProperty): Removed.
  16216. (addRequestSlot): New function.
  16217. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16218. (getPeerMessageFactory): New function.
  16219. (createRequestMessage): Removed.
  16220. (createCancelMessage): Removed.
  16221. (createPieceMessage): Removed.
  16222. (createHaveMessage): Removed.
  16223. (createChokeMessage): Removed.
  16224. (createUnchokeMessage): Removed.
  16225. (createInterestedMessage): Removed.
  16226. (createNotInterestedMessage): Removed.
  16227. (createBitfieldMessage): Removed.
  16228. (createKeepAliveMessage): Removed.
  16229. (createHaveAllMessage): Removed.
  16230. (createHaveNoneMessage): Removed.
  16231. (createRejectMessage): Removed.
  16232. (createAllowedFastMessage): Removed.
  16233. * src/PeerInteraction.cc
  16234. (PeerInteraction): Allocate PeerMessageFactory here.
  16235. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16236. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16237. PieceMessage::ID.
  16238. (addMessage): Simplified by using PeerMessage::onPush().
  16239. (addRequestSlot): New function.
  16240. (rejectAllPieceMessageInQueue): Simplified by using
  16241. PeerMessage::onChoked().
  16242. (rejectPieceMessageInQueue): Simplified by using
  16243. PeerMessage::onCanceled().
  16244. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16245. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16246. (createHandshakeMessage): Removed.
  16247. (createPeerMessage): Removed.
  16248. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16249. (setPeerMessageCommonProperty): Removed.
  16250. (createRequestMessage): Removed.
  16251. (createCancelMessage): Removed.
  16252. (createPieceMessage): Removed.
  16253. (createHaveMessage): Removed.
  16254. (createChokeMessage): Removed.
  16255. (createUnchokeMessage): Removed.
  16256. (createInterestedMessage): Removed.
  16257. (createNotInterestedMessage): Removed.
  16258. (createBitfieldMessage): Removed.
  16259. (createKeepAliveMessage): Removed.
  16260. (createHaveAllMessage): Removed.
  16261. (createHaveNoneMessage): Removed.
  16262. (createRejectMessage): Removed.
  16263. (createAllowedFastMessage): Removed.
  16264. * src/PieceMessage.h
  16265. (createRejectMessage): New function.
  16266. (PieceMessage): Rewritten.
  16267. (onChoked): New function.
  16268. (onCanceled): New function.
  16269. * src/PieceMessage.cc
  16270. (send): If invalidate is true then do nothing, just return.
  16271. (createRejectMessage): New function.
  16272. (onChoked): New function.
  16273. (onCanceled): New function.
  16274. * src/RequestMessage.h
  16275. (RequestMessage): Rewritten.
  16276. (onPush): New function.
  16277. (onAbortPiece): New function.
  16278. * src/RequestMessage.cc
  16279. (onPush): New function.
  16280. (onAbortPiece): New function.
  16281. Update fd_set when a socket is added or deleted in order to improve
  16282. performance:
  16283. * src/DownloadEngine.h
  16284. (rfdset): New variable.
  16285. (wfdset): New variable.
  16286. (updateFdSet): New function.
  16287. * src/DownloadEngine.cc
  16288. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16289. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16290. (waitData): Copy rfdset and wfdset.
  16291. (updateFdSet): New function.
  16292. (addSocket): Call updateFdSet.
  16293. (deleteSocket): Call updateFdSet.
  16294. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16295. To add the support for Metalink3.0 backward compatible links:
  16296. * src/Request.h
  16297. (SAFE_CHARS): Added '#'.
  16298. (METALINK_MARK): New definition.
  16299. * src/Request.cc
  16300. (parseUrl): Added the support for Metalink3.0 backward compatible
  16301. links.
  16302. etc
  16303. * src/PeerInteraction.cc
  16304. (MsgPushBack): Removed.
  16305. (sendMessages): Use STL copy and back_inserter.
  16306. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16307. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16308. * src/TorrentMan.h
  16309. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16310. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16311. * src/SharedHandle.h: New class.
  16312. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16313. * src/HttpResponseCommand.h
  16314. (HttpResponseCommand): Wrapped Socket.
  16315. * src/SocketCore.h
  16316. (operator==): New function.
  16317. (operator!=): New function.
  16318. (operator<): New function.
  16319. (getSockfd): New function.
  16320. (isOpen): New function.
  16321. (writeData): New function.
  16322. * src/SocketCore.cc
  16323. (operator==): New function.
  16324. (operator!=): New function.
  16325. (operator<): New function.
  16326. * src/AbstractCommand.h
  16327. (socket): Changed its type to SocketHandle.
  16328. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16329. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16330. (disableReadCheckSocket): New function.
  16331. (disableWriteCheckSocket): New function.
  16332. (readCheckTarget): Changed its type to SocketHandle.
  16333. (writeCheckTarget): Changed its type to SocketHandle.
  16334. (AbstractCommand): Replaced Socket with SocketHandle.
  16335. * src/AbstractCommand.cc
  16336. (AbstractCommand): Replaced Socket with SocketHandle.
  16337. (~AbstractCommand): Removed the deallocation for Socket object.
  16338. (disableReadCheckSocket): New function.
  16339. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16340. (disableWriteCheckSocket): New function.
  16341. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16342. * src/HttpDownloadCommand.cc
  16343. (DownloadCommand): Replaced Socket with SocketHandle.
  16344. * src/PeerAbstractCommand.h
  16345. (socket): Changed its type to SocketHandle.
  16346. (peer): Changed its type to PeerHandle.
  16347. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16348. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16349. (disableReadCheckSocket): New function.
  16350. (disableWriteCheckSocket): New function.
  16351. (readCheckTarget): Changed its type to SocketHandle.
  16352. (writeCheckTarget): Changed its type to SocketHandle.
  16353. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16354. Replaced Peer with PeerHandle.
  16355. * src/HttpRequestCommand.cc
  16356. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16357. Use disableReadCheckSocket.
  16358. * src/PeerInitiateConnectionCommand.h
  16359. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16360. * src/PeerChokeCommand.cc
  16361. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16362. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16363. (execute): Use PeerHandle.
  16364. * src/PeerConnection.h
  16365. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16366. (socket): Changed its type to SocketHandle.
  16367. (PeerConnection): Replaced Socket with SocketHandle.
  16368. * src/PeerConnection.cc
  16369. (PeerConnection): Replaced Socket with SocketHandle.
  16370. * src/PeerInteractionCommand.h
  16371. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16372. Replaced Peer with PeerHandle.
  16373. * src/PeerInteractionCommand.cc
  16374. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16375. Replaced Peer with PeerHandle.
  16376. (executeInternal): Use disableWriteCheckSocket.
  16377. Use HandshakeMessageHandle.
  16378. (receiveMessages): Use PeerMessageHandle.
  16379. (prepareForNextPeer): Use PeerHandle.
  16380. * src/HttpProxyRequestCommand.h
  16381. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16382. * src/HttpResponseCommand.cc
  16383. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16384. * src/TorrentMan.cc
  16385. (nullPeer): Added external reference.
  16386. (~TorrentMan): Removed the deallocation of the elements of peers.
  16387. (addPeer): Rewritten.
  16388. (isPeerAvailable): Use nullPeer.
  16389. (deleteOldpeers): Replaced with deleteErrorPeer.
  16390. (deleteErrorPeer): New function.
  16391. (getPeer): Use PeerHandle and nullPeer.
  16392. (hasMissingPiece): Replaced Peer with PeerHandle.
  16393. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16394. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16395. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16396. (getMissingPiece): Replaced Peer with PeerHandle.
  16397. * src/FtpNegotiateCommand.cc
  16398. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16399. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16400. (recvGreeting): Use disableWriteCheckSocket.
  16401. (recvPasv): Removed the allocation of Socket.
  16402. Use disableReadCheckSocket.
  16403. (sendRestPasv): Use disableWriteCheckSocket.
  16404. (recvRetr): Changed assertion.
  16405. * src/PeerInteraction.h
  16406. (SharedHandle.h): Included SharedHandle.h.
  16407. (PeerMessageHandle): New type definition.
  16408. (HandshakeMessageHandle): New type definition.
  16409. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16410. (peer): Changed its type to PeerHandle.
  16411. (createHandshakeMessage): Replaced HandshakeMessage with
  16412. HandshakeMessageHandle.
  16413. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16414. (PeerInteraction): Replaced Peer with PeerHandle.
  16415. Replaced Socket with SocketHandle.
  16416. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16417. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16418. (receiveHandshake): Replaced HandshakeMessage with
  16419. HandshakeMessageHandle.
  16420. * src/PeerInteraction.cc
  16421. (PeerInteraction): Replaced Peer with PeerHandle.
  16422. Replaced Socket with SocketHandle.
  16423. (~PeerInteraction): Removed the deallocation of the elements of
  16424. messageQueue.
  16425. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16426. (isSendingMessageInProgress): Replaced PeerMessage with
  16427. PeerMessageHandle.
  16428. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16429. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16430. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16431. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16432. (abortPiece): Use PeerMessageHandle.
  16433. (receiveHandshake): Replaced HandshakeMessage with
  16434. HandshakeMessageHandle. Removed try-catch block.
  16435. (createHandshakeMessage): Replaced HandshakeMessage with
  16436. HandshakeMessageHandle.
  16437. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16438. Removed try-catch block.
  16439. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16440. * src/HttpProxyResponseCommand.cc
  16441. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16442. * src/FtpTunnelResponseCommand.h
  16443. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16444. * src/HttpConnection.cc
  16445. (HttpConnection): Replaced Socket with SocketHandle.
  16446. * src/PeerAbstractCommand.cc
  16447. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16448. (~PeerAbstractCommand): Removed the deallocation of socket.
  16449. Use disableReadCheckSocket, disableWriteCheckSocket.
  16450. (disableReadCheckSocket): New function.
  16451. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16452. (disableWriteCheckSocket): New function.
  16453. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16454. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16455. * src/FtpTunnelRequestCommand.cc
  16456. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16457. (~FtpTunnelRequestCommand): Corrected indentation.
  16458. * src/DownloadCommand.h
  16459. (DownloadCommand): Replaced Socket with SocketHandle.
  16460. * src/PeerListenCommand.cc
  16461. (PeerListenCommand): Removed the initialization of socket.
  16462. (~PeerListenCommand): Removed the deallocation of socket.
  16463. (bindPort): Use SocketHandle.
  16464. (execute): Use SocketHandle and PeerHandle.
  16465. * src/FtpDowndloadCommand.cc
  16466. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16467. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16468. * src/main.cc
  16469. (main): Corrected indentation.
  16470. * src/HttpInitiateConnectionCommand.cc
  16471. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16472. (executeInternal): Removed the allocation of socket.
  16473. * src/HttpRequestCommand.h
  16474. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16475. * src/FtpNegotiationCommand.h
  16476. (dataSocket): Changed its type to SocketHandle.
  16477. (serverSocket): Changed its type to SocketHandle.
  16478. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16479. * src/TorrentMan.h
  16480. (MAX_PEER_UPDATE): Removed.
  16481. (MAX_PEERS): New definition.
  16482. (Peers): The element is now of type PeerHandle.
  16483. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16484. (getPeer): Replaced Peer with PeerHandle.
  16485. (deleteOldErrorPeers): Removed.
  16486. (deleteErrorPeer): New function.
  16487. (hasMissingPiece): Replaced Peer with PeerHandle.
  16488. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16489. (getMissingPiece): Replaced Peer with PeerHandle.
  16490. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16491. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16492. (addActivePeer): Replaced Peer with PeerHandle.
  16493. (deleteActivePeer): Replaced Peer with PeerHandle.
  16494. Added a check for the return value of find.
  16495. * src/FtpTunnelResponseCommand.cc
  16496. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16497. * src/FtpInitiateConnectionCommand.cc
  16498. (executeInternal): Removed the allocation of socket.
  16499. * src/DownloadEngine.h
  16500. (Sockets): An element is now of type SocketHandle.
  16501. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16502. (CommandUuids): New type definition.
  16503. (rsockets): Changed its type to SockCmdMap.
  16504. (wsockets): Changed its type to SockCmdMap.
  16505. (addSocket): Rewritten.
  16506. (deleteSocket): Rewritten.
  16507. (addSocketForReadCheck): Rewritten.
  16508. (deleteSocketForReadCheck): Rewritten.
  16509. (addSocketForWriteCheck): Rewritten.
  16510. (deleteSocketForWriteCheck): Rewritten.
  16511. (PairFind): New template class.
  16512. * src/HttpDownloadCommand.h
  16513. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16514. * src/FtpConnection.cc
  16515. (FtpConnection): Replaced Socket with SocketHandle.
  16516. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16517. block.
  16518. * src/InitiateConnectionCommandFactory.cc
  16519. (DlAbortEx.h): Included DlAbortEx.h.
  16520. (createInitiateConnectionCommand): Throw exception if the protocol of
  16521. requested URI is not supported.
  16522. * src/Peer.cc
  16523. (nullPeer): Changed its type to PeerHandle.
  16524. (operator==): New function.
  16525. (operator!=): New function.
  16526. * src/Peer.h
  16527. (SharedHandle.h): Included SharedHandle.h.
  16528. (operator==): New function.
  16529. (operator!=): New function.
  16530. (Peer): Added the default constructor.
  16531. Use resetStatus() to initialize member variables.
  16532. (nullPeer): Removed.
  16533. * src/TrackerUpdateCommand.cc
  16534. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16535. with MIN_PEERS.
  16536. * src/PeerListenCommand.h
  16537. (socket): Changed its type to SocketHandle.
  16538. * src/Command.h
  16539. (CommandUuid): New type definition.
  16540. (uuid): New variable.
  16541. (uuidGen): New variable.
  16542. (Command): Added the initialization of uuid.
  16543. (getUuid): New function.
  16544. * src/Socket.h
  16545. (Socket): Removed.
  16546. (SocketHandle): New type definition.
  16547. * src/DownloadEngine.h
  16548. (FindCommand): New function object.
  16549. (run): The portion of socket check was rewritten.
  16550. (SetDescriptor): New function object.
  16551. (AccumulateActiveCommandUuid): New function object.
  16552. (waitData): Rewritten.
  16553. (addSocket): Rewritten.
  16554. (deleteSocket): Rewritten.
  16555. (addSocketForReadCheck): Rewritten.
  16556. (addSocketForWriteCheck): Rewritten.
  16557. (deleteSocketForReadCheck): Rewritten.
  16558. (deleteSocketForWriteCheck): Rewritten.
  16559. * src/HttpProxyResponseCommand.h
  16560. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16561. * src/HttpConnection.h
  16562. (socket): Changed its type to SocketHandle.
  16563. (HttpConnection): Replaced Socket with SocketHandle.
  16564. * src/PeerInitiateConnectionCommand.cc
  16565. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16566. (executeInternal): Removed the allocation of socket.
  16567. (prepareForNextPeer): Use PeerHandle.
  16568. * src/PeerMessage.h
  16569. (peer): Changed its type to PeerHandle.
  16570. (getPeer): Replaced Peer with PeerHandle.
  16571. (setPeer): Replaced Peer with PeerHandle.
  16572. * src/DownloadCommand.cc
  16573. (DownloadCommand): Replaced Socket with SocketHandle.
  16574. * src/FtpConnection.h
  16575. (socket): Changed its type to SocketHandle.
  16576. (FtpConnection): Replaced Socket with SocketHandle.
  16577. (sendPort); Replaced Socket with SocketHandle.
  16578. * src/FtpDowndloadCommand.h
  16579. (ctrlSocket): Changed its type to SocketHandle.
  16580. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16581. * src/HttpProxyRequestCommand.cc
  16582. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16583. * src/FtpTunnelRequestCommand.h
  16584. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16585. etc
  16586. * src/PeerChokeCommand.h
  16587. (setAllPeerChoked): Removed.
  16588. (setAllPeerResetDelta): Removed.
  16589. * src/PeerChokeCommand.cc
  16590. (setAllPeerChoked): Removed.
  16591. (ChokePeer): New function object.
  16592. (setAllPeerResetDelta): Removed.
  16593. (ResetDelta): New function object.
  16594. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16595. (execute): Show download speed when the local node is a seeder.
  16596. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16597. using STL.
  16598. * src/TrackerWatcherCommand.h
  16599. (MIN_PEERS): Removed.
  16600. * src/TorrentMan.cc
  16601. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16602. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16603. To fix the bug that .aria2 file is not saved if downloading is stopped
  16604. by the errors:it results that aria2 can not resume downloading:
  16605. * src/main.cc
  16606. (normalDownload): Added the call to save().
  16607. (main): Added the deletion of the elements in 'reserved'.
  16608. To fix log:
  16609. * src/PeerInteraction.cc
  16610. (receiveHandshake): Fixed log.
  16611. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16612. To improve download performance in BitTorrent:
  16613. * src/TorrentMan.cc
  16614. (getPeer): Check the number of connections. Return nullPeer if
  16615. it is greater than MAX_PEER_UPDATE.
  16616. This code was originally here, but was removed in 0.5.1.
  16617. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16618. To improve the conditional compilation:
  16619. * src/MultiDiskWriter.h:
  16620. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16621. * src/MultiDiskWriter.cc:
  16622. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16623. * src/Util.h:
  16624. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16625. Added ENABLE_BITTORRENT around computeFastSet().
  16626. * src/Util.cc:
  16627. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16628. Added ENABLE_BITTORRENT around computeFastSet().
  16629. * src/messageDigest.h:
  16630. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16631. * src/ShaVisitor.h:
  16632. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16633. * src/ShaVisitor.cc:
  16634. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16635. * src/main.cc:
  16636. Added ENABLE_BITTORRENT around includes and blocks related to
  16637. BitTorrent.
  16638. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16639. digest support is not available.
  16640. * src/AbstractDiskWriter.h:
  16641. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16642. * src/AbstractDiskWriter.cc:
  16643. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16644. * src/MetalinkEntry.cc
  16645. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16646. support is not available.
  16647. To add command-line options for Metalink:
  16648. * src/main.cc:
  16649. Added metalink-version, metalink-language, metalink-os,
  16650. follow-metalink.
  16651. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16652. * src/main.cc: Use these definition.
  16653. * Release 0.6.0
  16654. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16655. To add Metalink support(http/ftp only):
  16656. * src/AbstractCommand.h
  16657. (tryReserved): New function.
  16658. * src/AbstractCommand.cc
  16659. (execute): Call tryReserved().
  16660. (tryReserved): New function.
  16661. * src/Request.h
  16662. (Requests): New type definition.
  16663. * src/SegmentMan.h
  16664. (reserved): New variable.
  16665. * src/Util.h
  16666. (fileChecksum): New function.
  16667. (toUpper): New function.
  16668. (toLower): New function.
  16669. * src/Util.cc
  16670. (messageDigest.h): Included.
  16671. (trim): Trim \r\n\t.
  16672. (fileChecksum): New function.
  16673. (toUpper): New function.
  16674. (toLower): New function.
  16675. * src/main.cc
  16676. (normalDownload): New function.
  16677. (main): Added 2 command-line options: metalink-file,
  16678. metalink-connection. Their usage has not been written yet.
  16679. * src/MetalinkProcessor.h: New class.
  16680. * src/Xml2MetalinkProcessor.h: New class.
  16681. * src/Xml2MetalinkProcessor.cc: New class.
  16682. * src/MetalinkEntry.h: New class.
  16683. * src/MetalinkEntry.cc: New class.
  16684. * src/MetalinkResource.h: New class.
  16685. * src/MetalinkResource.cc: New class.
  16686. To add md5 message digest checking:
  16687. * src/messageDigest.h: Rewritten.
  16688. * src/MultiDiskWriter.cc: Updated according to the changes in
  16689. messageDigest.h.
  16690. * src/ShaVisitor.cc: Updated according to the changes in
  16691. messageDigest.h.
  16692. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16693. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16694. messageDigest.h.
  16695. To fix a bug that causes segfault when the payload length in peer
  16696. message is less than 0:
  16697. * src/PeerConnection.cc:
  16698. (receiveMessage): Fixed the bug.
  16699. * src/PeerMessageUtil.cc
  16700. (checkLength): Throw an exception if length is less than or equals to
  16701. 0.
  16702. To add new interfaces to Base64 encoding/decoding:
  16703. * src/Base64.h
  16704. (part_encode): Changed the method signature.
  16705. (encode): New function(overload).
  16706. (decode): New function(overload).
  16707. * src/Base64.cc
  16708. (part_encode): Rewritten.
  16709. (encode): Rewritten.
  16710. (encode): New function(overload).
  16711. To prevent a peer to download same piece if there is an error in
  16712. checksum:
  16713. * src/PieceMessage.cc
  16714. (receivedAction): Call peerInteraction->abortPiece().
  16715. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16716. To fix the bug that causes same have message is sent many times to
  16717. a single peer.
  16718. * src/Time.cc
  16719. (isNewer): Use Util::difftv().
  16720. * src/Util.cc
  16721. (difftv): Added a cast to (long long int).
  16722. * src/TorrentMan.cc
  16723. (advertisePiece): Use push_front.
  16724. (getAdvertisedPieceIndexes): A performance improvement was made.
  16725. To fix the bug that sends tracker requests without a sleep interval
  16726. when the number of connections is less than 15.
  16727. * src/TrackerWatcherCommand.cc
  16728. (execute): Now the number of connections is not a factor to decide
  16729. whether or not a tracker request should be sent or not.
  16730. * src/Time.h
  16731. (setTimeInSec): New function.
  16732. * src/Time.cc
  16733. (setTimeInSec): New function.
  16734. etc.
  16735. * src/ChokeMessage.cc
  16736. (receivedAction): Removed peer->snubbing = false
  16737. * src/PeerConnection.h
  16738. (receiveHandshake): Updated doc.
  16739. * src/TorrentMan.h
  16740. (getAdvertisedPieceIndexes): Updated the method signature.
  16741. * src/TorrentMan.cc
  16742. (getAdvertisedPieceIndexes): Updated the method signature.
  16743. * src/Time.h
  16744. (getTimeInMicros): Added a cast to (long long int).
  16745. (getTimeInMillis): Added a cast to (long long int).
  16746. * Release 0.5.2
  16747. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16748. To make a listening socket non-block:
  16749. * src/SocketCore.h
  16750. (setNonBlockingMode): New function.
  16751. * src/SocketCore.cc
  16752. (setNonBlockingMode): New function.
  16753. (beginListen): Added a call to setNonBlockingMode().
  16754. (acceptConnection): Call setNonBlockingMode().
  16755. (setBlockingMode): Updated.
  16756. To handle tracker's NAT-checking:
  16757. * src/PeerConnection.cc
  16758. (receiveHandshake): 'msg' param is filled with received data and
  16759. its length is assigned to 'length' param, even if all handshake
  16760. message is not yet received.
  16761. * src/PeerInteractionCommand.cc
  16762. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16763. a new peer connects to localhost.
  16764. A call to peerInteraction->sendHandshake() was removed because
  16765. it is called from peerInteraction->receiveHandshake(true).
  16766. * src/PeerInteraction.h
  16767. (quickReplied): New variable.
  16768. (receiveHandshake): Added an argument.
  16769. * src/PeerInteraction.cc
  16770. (PeerInteraction): Added the initialization of quickReplied.
  16771. (receiveHandshake): Send handshake message as soon as the info hash
  16772. in a handshake message from a peer is correct.
  16773. To change the random part of peer id and key parameter:
  16774. * src/TorrentMan.h
  16775. (key): New variable.
  16776. * src/TorrentMan.cc
  16777. (setupInternal1): Use Util::randomAlpha() to generate random part
  16778. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16779. key is also generated by Util::randomAlpha() and it is now 8 character
  16780. long.
  16781. * src/Util.h
  16782. (randomAlpha): New function.
  16783. * src/Util.cc
  16784. (randomAlpha): New function.
  16785. * src/TrackerWatcherCommand.cc
  16786. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16787. Added no_peer_id=1.
  16788. Set snubbing flag to false when a choke message is received from a
  16789. snubbed peer.
  16790. * src/ChokeMessage.cc
  16791. (receivedAction): Set snubbing flag to false.
  16792. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16793. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16794. * src/SimpleLogger.h (writeHeader): New function.
  16795. * src/SimpleLogger.cc (writeHeader): New function.
  16796. (writeLog): Fixed the bug that causes segfaults if exception message
  16797. contains an unescaped "%" character.
  16798. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16799. when a tracker request fails.
  16800. * src/Request.cc (parseUrl): Query string is now handled properly.
  16801. * Release 0.5.1
  16802. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16803. To add Time class which represents a specific instant in time and
  16804. its precision is microseconds. Time checking procedures were rewritten
  16805. using this object.
  16806. * src/Time.h: New class.
  16807. * src/Time.cc: New class.
  16808. * src/AbstractCommand.h
  16809. (updateCheckPoint): Removed.
  16810. (isTimeoutDetected): Removed.
  16811. (checkPoint): Changed the type to Time.
  16812. (timeout): New variable.
  16813. (setTimeout): New function.
  16814. * src/AbstractCommand.cc
  16815. (AbstractCommand): Removed the initialization of checkPoint.
  16816. Added the initialization of timeout.
  16817. (updateCheckPoint): Removed.
  16818. (isTimeoutDetected): Removed.
  16819. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16820. * src/PeerChokeCommand.h
  16821. (checkPoint): Changed the type to Time.
  16822. * src/PeerChokeCommand.cc
  16823. (PeerChokeCommand): Removed the initialization of checkPoint.
  16824. (execute): Rewritten using Time object.
  16825. * src/TrackerWatcherCommand.h
  16826. (checkPoint): Changed the type to Time.
  16827. * src/TrackerWatcherCommand.cc
  16828. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16829. (execute): Rewritten.
  16830. * src/ConsoleDownloadEngine.h
  16831. (cp): Changed the type to Time.
  16832. (startup): Changed the type to Time.
  16833. * src/ConsoleDownloadEngine.cc
  16834. (initStatistics): Use cp.reset(), startup.reset().
  16835. (calculateStatistics): Rewritten using Time object.
  16836. * src/PeerAbstractCommand.h
  16837. (updateCheckPoint): Removed.
  16838. (isTimeoutDetected): Removed.
  16839. (checkPoint): Changed the type to Time.
  16840. * src/PeerAbstractCommand.cc
  16841. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16842. (updateCheckPoint): Removed.
  16843. (isTimeoutDetected): Removed.
  16844. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16845. * src/PeerInteractionCommand.cc
  16846. (PeerInteractionCommand): Removed the initializations of struct
  16847. timeval variables.
  16848. * src/PeerInteractionCommand.h
  16849. (keepAliveCheckPoint): Changed the type to Time.
  16850. (chokeCheckPoint): Changed the type to Time.
  16851. (freqCheckPoint): Changed the type to Time.
  16852. (haveCheckTime): Changed the type to Time.
  16853. * src/PeerInteractionCommand.cc
  16854. (executeInternal): Rewritten using Time object.
  16855. (detectMessageFlooding): Rewritten using Time object.
  16856. (checkLongTimePeerChoking): Rewritten using Time object.
  16857. (sendKeepAlive): Rewritten using Time object.
  16858. (checkHave): Rewritten using Time object.
  16859. * src/SleepCommand.h
  16860. (checkPoint): Changed the type to Time.
  16861. * src/SleepCommand.cc
  16862. (SleepCommand): Removed the initialization of checkPoint.
  16863. (execute): Rewritten using Time object.
  16864. * src/TorrentAutoSaveCommand.h
  16865. (checkPoint): Changed the type to Time.
  16866. * src/TorrentAutoSaveCommand.cc
  16867. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16868. (execute): Rewritten.
  16869. * src/DownloadCommand.h
  16870. (sw): Changed the type to Time.
  16871. * src/DownloadCommand.cc
  16872. (DownloadCommand): Removed the initialization of sw.
  16873. (executeInternal): Rewritten.
  16874. * src/RequestSlot.h
  16875. (dispatchedTime): Changed the type to Time.
  16876. * src/RequestSlot.cc
  16877. (RequestSlot): Removed the call to setDispatchedTime().
  16878. (setDispatchedTime): Rewirtten.
  16879. (isTimeout): Rewritten.
  16880. (getLatencyInMillis): Rewritten.
  16881. * src/TorrentDownloadEngine.h
  16882. (cp): Changed the type to Time[2].
  16883. (startup): Changed the type to Time.
  16884. * src/TorrentDownloadEngine.cc
  16885. (initStatistics): Rewritten.
  16886. (calculateStatistics): Rewritten.
  16887. * src/DownloadEngine.cc
  16888. (run): Rewritten.
  16889. To detect all attempts to connect to the tracker are failed:
  16890. * src/AbstractCommand.cc
  16891. (execute): Increment e->segmentMan->errors if a command aborted.
  16892. * src/SegmentMan.h
  16893. (errors): New variable.
  16894. * src/SegmentMan.cc
  16895. (SegmentMan): Added the initialization of errors.
  16896. (init): Added the initialization of errors.
  16897. * src/TrackerWatcherCommand.cc
  16898. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16899. request was failed.
  16900. To handle snubbed peers:
  16901. * src/PeerChokeCommand.cc
  16902. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16903. (execute): Snubbed peers don't get unchoked.
  16904. * src/PeerInteraction.h
  16905. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16906. * src/PeerInteraction.cc
  16907. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16908. back the requested 16k block in 60 seconds.
  16909. * src/PieceMessage.cc
  16910. (receivedAction): A peer's snubbed state is cleard if it sends
  16911. the requested 16k block in 60 seconds.
  16912. * src/Peer.h
  16913. (snubbing): New variable.
  16914. * src/Peer.cc
  16915. (resetStatus): Added snubbed = false.
  16916. To fix the bug that causes have message is not sent:
  16917. * src/PeerInteractionCommand.cc
  16918. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16919. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16920. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16921. * src/TorrentMan.h
  16922. (HaveEntry): New class.
  16923. (advertisePiece): Rewritten.
  16924. (getAdvertisedPieceIndexes): Rewritten.
  16925. (Haves): Changed the type.
  16926. (getAdvertisedPieceIndexes): Added an argument.
  16927. Others:
  16928. * src/TorrentMan.h
  16929. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16930. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16931. * src/TorrentMan.cc
  16932. (getPeer): Don't check the number of connections here.
  16933. (setupInternal1): Changed peerId.
  16934. * src/PeerInteractionCommand.h
  16935. (KEEP_ALIVE_INTERVAL): New definition.
  16936. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16937. * src/main.cc
  16938. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16939. * src/DownloadEngine.h: Removed unnecessary header includes.
  16940. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16941. To fix the bug that causes segfaults if a tracker returns a zero-length
  16942. list as "peers":
  16943. * src/TrackerUpdateCommand.cc
  16944. (execute): Added a check to see wether the type of peers is Data*.
  16945. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16946. * Release 0.5.0
  16947. To fix compile issue with gcc3:
  16948. * src/CancelMessage.h
  16949. (ID): Renamed as ID_t
  16950. (ID_t): New enum.
  16951. * src/RejectMessage.h
  16952. (ID): Renamed as ID_t
  16953. (ID_t): New enum.
  16954. * src/SuggestPieceMessage.h
  16955. (ID): Renamed as ID_t
  16956. (ID_t): New enum.
  16957. * src/AllowedFastMessage.h
  16958. (ID): Renamed as ID_t
  16959. (ID_t): New enum.
  16960. * src/PortMessage.h
  16961. (ID): Renamed as ID_t
  16962. (ID_t): New enum.
  16963. * src/HaveNoneMessage.h
  16964. (ID): Renamed as ID_t
  16965. (ID_t): New enum.
  16966. * src/KeepAliveMessage.h
  16967. (ID): Renamed as ID_t
  16968. (ID_t): New enum.
  16969. * src/HaveAllMessage.h
  16970. (ID): Renamed as ID_t
  16971. (ID_t): New enum.
  16972. * src/UnchokeMessage.h
  16973. (ID): Renamed as ID_t
  16974. (ID_t): New enum.
  16975. * src/BitfieldMessage.h
  16976. (ID): Renamed as ID_t
  16977. (ID_t): New enum.
  16978. * src/PieceMessage.h
  16979. (ID): Renamed as ID_t
  16980. (ID_t): New enum.
  16981. * src/RequestMessage.h
  16982. (ID): Renamed as ID_t
  16983. (ID_t): New enum.
  16984. * src/NotInterestedMessage.h
  16985. (ID): Renamed as ID_t
  16986. (ID_t): New enum.
  16987. * src/ChokeMessage.h
  16988. (ID): Renamed as ID_t
  16989. (ID_t): New enum.
  16990. * src/InterestedMessage.h
  16991. (ID): Renamed as ID_t
  16992. (ID_t): New enum.
  16993. * src/HaveMessage.h
  16994. (ID): Renamed as ID_t
  16995. (ID_t): New enum.
  16996. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16997. * src/PeerAbstractCommand.h
  16998. (beforeSocketCheck): Removed.
  16999. * src/PeerAbstractCommand.cc
  17000. Modified in order to call executeInternal() even if socket check
  17001. and upload limit check fail.
  17002. * src/PeerInteractionCommand.h
  17003. (keepAlive): Removed.
  17004. (sendKeepAlive): New function.
  17005. (checkHave): New function.
  17006. (beforeSocketCheck): Removed.
  17007. * src/PeerInteractionCommand.cc
  17008. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17009. calls to checkHave() and sendKeepAlive().
  17010. (keepAlive): Renamed to sendKeepAlive().
  17011. (sendKeepAlive): New function.
  17012. (beforeSocketCheck): Removed.
  17013. (checkHave): New function.
  17014. * src/BitfieldMan.cc
  17015. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17016. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17017. 0.
  17018. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17019. * src/TorrentMan.h
  17020. (UsedPieces): Removed.
  17021. (Pieces): New type definition.
  17022. * src/Piece.h: Updated doc.
  17023. * src/Peer.h
  17024. (totalLength): Removed.
  17025. * src/Peer.cc
  17026. (updateLatency): Fixed the latency calculation.
  17027. * src/TorrentMan.cc
  17028. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17029. than or equal to MAX_PEER_LIST_SIZE.
  17030. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17031. then return false.
  17032. (deleteOldErrorPeers): Rewritten.
  17033. (deleteUsedPiece): Fixed the miss use of STL remove.
  17034. * src/PeerInteraction.h
  17035. (Pieces): Removed.
  17036. (deleteTimeoutRequestSlot): Removed.
  17037. (deleteCompletedRequestSlot): Removed.
  17038. (checkRequestSlot): New function.
  17039. * src/PeerInteraction.cc
  17040. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17041. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17042. (checkRequestSlot): New function.
  17043. * src/DownloadEngine.cc
  17044. (run): Clear activeSockets before calling waitData().
  17045. (waitData): Removed a call to activeSockets.clear().
  17046. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17047. To attempt to handle EINTR:
  17048. * src/SocketCore.cc
  17049. (isReadable): Added EINTR handling.
  17050. (isWritable): Added EINTR handling.
  17051. To improve the performance:
  17052. * src/AbstractCommand.cc
  17053. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17054. * src/PeerInteractionCommand.h
  17055. (receiveMessage): Renamed as receiveMessages().
  17056. (receiveMessages): New function.
  17057. * src/PeerInteractionCommand.cc
  17058. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17059. () function. detectMessageFlooding() is moved here.
  17060. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17061. (). The flooding detection for have message is comment out.
  17062. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17063. Util::difftv().
  17064. (receiveMessage): Renamed as receiveMessages().
  17065. (receiveMessages): New function.
  17066. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17067. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17068. * src/SleepCommand.cc
  17069. (execute): Use Util::difftvsec() instead of Util::difftv().
  17070. * src/BitfieldMan.h
  17071. (getNthBitIndex): New function.
  17072. (hasMissingPiece): New function.
  17073. (getAllMissingIndexes): New function.
  17074. * src/BitfieldMan.cc
  17075. (countSetBit): Rewritten.
  17076. (getNthBitIndex): New function.
  17077. (getMissingIndexRandomly): Rewritten.
  17078. (hasMissingPiece): New function.
  17079. (getAllMissingIndexes): New function.
  17080. * src/TorrentMan.cc
  17081. (hasMissingPiece): New function.
  17082. (deleteUsedPiece): Rewritten using STL.
  17083. * src/PeerInteraction.cc
  17084. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17085. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17086. (addRequests): Updated the number of pending requests.
  17087. * src/PeerAbstractCommand.cc
  17088. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17089. (execute): Returns true if TorrentMan::isHalt() is true.
  17090. Corrected the condition of upload limit checking.
  17091. * src/Util.h
  17092. (countBit): New function.
  17093. * src/Util.cc
  17094. (nbits): New variable.
  17095. (countBit): New function.
  17096. * src/DownloadEngine.h
  17097. (SockCmdMap): New type definition.
  17098. (waitData): Added an argument.
  17099. (addSocket): Added an argument.
  17100. (addSocketForReadCheck): Added an argument.
  17101. (addSocketForWriteCheck): Added an argument.
  17102. * src/DownloadEngine.cc
  17103. (run): Executes only commands whose sockets are ready to read or write.
  17104. All commands are executed in every 1 second.
  17105. (waitData): Calls select() again if it returned
  17106. EINTR.
  17107. (addSocket): Saves socket and command object pair to the map.
  17108. (deleteSocket): Deletes socket and command object pair from the map.
  17109. (addSocketForReadCheck): Added an argument.
  17110. (addSocketForWriteCheck): Added an argument.
  17111. * src/DownloadCommand.cc
  17112. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17113. To send "event=stopped" to the tracker when the application finishes:
  17114. * src/PeerChokeCommand.h
  17115. (checkPoint): New variable.
  17116. * src/PeerChokeCommand.cc
  17117. (PeerChokeCommand): Added the initialization of checkPoint.
  17118. (execute): The interval check is now done by checkPoint, not
  17119. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17120. * src/TorrentMan.h
  17121. (halt): New function.
  17122. (hasMissingPiece): New function.
  17123. (isHalt): New function.
  17124. (setHalt): New function.
  17125. * src/TorrentMan.cc
  17126. (TorrentMan): Added the initialization of halt.
  17127. * src/TorrentAutoSaveCommand.h
  17128. (checkPoint): New variable.
  17129. * src/PeerListenCommand.cc
  17130. (execute): Returns true if TorrentMan::isHalt() is true.
  17131. * src/main.cc
  17132. (setSignalHander): Added flags argument.
  17133. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17134. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17135. Removed printDownloadAbortMessage() after torrent downloading loop.
  17136. * src/TorrentAutoSaveCommand.cc
  17137. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17138. (execute): Returns true if TorrentMan::isHalt() is true.
  17139. The interval check is now done by checkPoint, not SleepCommand.
  17140. * src/TrackerWatcherCommand.cc
  17141. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17142. event=stopped.
  17143. * src/TrackerUpdateCommand.cc
  17144. (prepareForRetry): Do not use SleepCommand here.
  17145. (execute): Returns true if TorrentMan::isHalt() is true.
  17146. Others:
  17147. * src/TorrentMan.cc
  17148. (getMissingPieceIndex): Updated log message.
  17149. * src/PeerInteraction.cc
  17150. (createPeerMessag): Updated log message.
  17151. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17152. To add the ability to download several pieces in mix in a command and
  17153. increase the number of request slots according to request-cancel
  17154. latency:
  17155. * src/PeerInteractionCommand.cc
  17156. (executeInternal): The number of messages to be received at a time
  17157. is increased from 10 to 50.
  17158. * src/LogFactory
  17159. (getInstance): Added NullLogger.
  17160. * src/NullLogger.h: New class.
  17161. * src/BitfieldMan.h
  17162. (getMissingIndex): New function.
  17163. * src/BitfieldMan.cc
  17164. (getMissingIndex): New function.
  17165. * src/TorrentMan.h
  17166. (checkOutPiece): New function.
  17167. (getMissingPieceIndex): New function.
  17168. (getMissingFastPieceIndex): New function.
  17169. (getMissingFastPiece): New function.
  17170. * src/TorrentMan.cc
  17171. (updatePiece): Rewritten using STL.
  17172. (syncPiece): Rewritten using STL.
  17173. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17174. checkOutPiece().
  17175. (getMissingPieceIndex): New function.
  17176. (getMissingFastPieceIndex): New function.
  17177. (getMissingFastPiece): New function.
  17178. (checkOutPiece): New function.
  17179. * src/PeerInteraction.h
  17180. (Pieces): New type definition.
  17181. (piece): Removed.
  17182. (pieces): New variable.
  17183. (getNewPieceAndSendInterest): Added the "piece" argument.
  17184. (abortPiece): Added the "piece" argument.
  17185. (abortAllPieces): New function.
  17186. (isInRequestSlot): New function.
  17187. (hasDownloadPiece): Added the "index" argument.
  17188. (setDownloadPiece): Removed.
  17189. (getDownloadPiece): Added the "index" argument.
  17190. (updatePiece): New function.
  17191. (createRequestMessage): Added the "index" argument.
  17192. * src/PeerInteraction.cc
  17193. (onChoked): Rewritten.
  17194. (abortPiece): Rewirtten.
  17195. (abortAllPieces): New function.
  17196. (deleteTimeoutRequestSlot): Rewritten.
  17197. Clarified code a little bit.
  17198. (deleteCompletedRequestSlot): Rewritten.
  17199. (isInRequestSlot): New function.
  17200. (syncPiece): Rewritten.
  17201. (updatePiece): New function.
  17202. (getNewPieceAndSendInterest): Rewritten.
  17203. (addRequests): Rewritten.
  17204. (getDownloadPiece): Rewritten.
  17205. (hasDownloadPiece): Rewritten.
  17206. (createRequestMessage): Added the "index" argument.
  17207. * src/common.h
  17208. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17209. (DIV_FLOOR): New definition.
  17210. * src/PieceMessage.cc
  17211. (receivedAction): Update request-piece latency here.
  17212. * src/RequestSlot.h
  17213. (getLatencyInMillis): New function.
  17214. * src/RequestSlot.cc
  17215. (isTimeout): Rewritten using getLatencyInMillis.
  17216. (getLatencyInMillis): New function.
  17217. * src/Piece.h
  17218. (operator==): New function.
  17219. (getMissingBlockIndex): New function.
  17220. * src/Piece.cc
  17221. (operator==): New function.
  17222. (getMissingBlockIndex): New function.
  17223. * src/Peer.h
  17224. (DEFAULT_LATENCY): New definition.
  17225. (latency): New variable.
  17226. (updateLatency): New function.
  17227. (getLatency): New function.
  17228. * src/Peer.cc
  17229. (resetStatus): Reset latecy.
  17230. (updateLatency): New function.
  17231. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17232. * src/SocketCore.cc
  17233. (isReadable): Added secure to the condition.
  17234. * src/HttpConnection.cc
  17235. (receiveResponse): Fixed a bug that causes no response header
  17236. exception.
  17237. * src/Peer.h
  17238. (getFastSet): Fixed the return value type.
  17239. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17240. To remove a wait from download loop:
  17241. * src/DownloadEngine.cc
  17242. (run): Comment out shortSleep.
  17243. To rewrite the message handling:
  17244. * src/SimplePeerMessage.h: New class.
  17245. * src/SimplePeerMessage.cc: New class.
  17246. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17247. (msg): New variable.
  17248. (create): New function.
  17249. (send): Removed.
  17250. (getMessage): New function.
  17251. (getMessageLength): New function.
  17252. * src/CancelMessage.cc
  17253. (create): New function.
  17254. (receivedAction): Replaced deleteRequestMessageInQueue with
  17255. rejectPieceMessageInQueue.
  17256. (send): Removed.
  17257. (getMessage): New function.
  17258. (getMessageLength): New function.
  17259. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17260. (msg): New variable.
  17261. (msgLength): New variable.
  17262. (~BitfieldMessage): Deleted msg.
  17263. (send): Removed.
  17264. (getMessage): New function.
  17265. (getMessageLength): New function.
  17266. * src/BitfieldMessage.cc
  17267. (create): New function.
  17268. (send): Removed.
  17269. (getMessage): New function.
  17270. (getMessageLength): New function.
  17271. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17272. (msg): New variable.
  17273. (sendPredicate): New function.
  17274. (onSendComplete): New function.
  17275. (send): Removed.
  17276. (getMessage): New function.
  17277. (getMessageLength): New function.
  17278. (create): New function.
  17279. * src/ChokeMessage.cc
  17280. (create): New function.
  17281. (send): Removed.
  17282. (sendPredicate): New function.
  17283. (getMessage): New function.
  17284. (getMessageLength): New function.
  17285. (onSendComplete): New function.
  17286. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17287. (msg): New variable.
  17288. (send): Removed.
  17289. (getMessage): New function.
  17290. (getMessageLength): New function.
  17291. * src/KeepAliveMessage.cc
  17292. (send): Removed.
  17293. (getMessage): New function.
  17294. (getMessageLength): New function.
  17295. * src/PortMessage.h
  17296. (create): New function.
  17297. (receivedAction): Updated log message.
  17298. * src/PortMessage.cc: New file.
  17299. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17300. (msg): New variable.
  17301. (sendPredicate): New function.
  17302. (onSendComplete): New function.
  17303. (create): New function.
  17304. (send): Removed.
  17305. (getMessage): New function.
  17306. (getMessageLength): New function.
  17307. * src/UnchokeMessage.cc
  17308. (create): New function.
  17309. (send): Removed.
  17310. (sendPredicate): New function.
  17311. (getMessage): New function.
  17312. (getMessageLength): New function.
  17313. (onSendComplete): New function.
  17314. * src/PieceMessage.h
  17315. (leftPieceDataLength): Removed.
  17316. (leftDataLength): New variable.
  17317. (headerSend): New variable.
  17318. (pendingCount): New variable.
  17319. (msgHeader): New variable.
  17320. (sendPieceData): New function.
  17321. (incrementPendingCount): New function.
  17322. (isPendingCountMax): New function.
  17323. (create): New function.
  17324. (getMessageHeader): New function.
  17325. (getMessageHeaderLength): New function.
  17326. * src/PieceMessage.cc
  17327. (create): New function.
  17328. (getMessageHeader): New function.
  17329. (getMessageHeaderLength): New function.
  17330. (send): Rewritten.
  17331. (sendPieceData): New function.
  17332. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17333. (msg): New variable.
  17334. (create): New function.
  17335. (getMessage): New function.
  17336. (getMessageLength): New function.
  17337. * src/HaveMessage.cc
  17338. (create): New function.
  17339. (send): Removed.
  17340. (sendPieceData): New function.
  17341. (getMessage): New function.
  17342. (getMessageLength): New function.
  17343. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17344. (msg): New variable.
  17345. (create): New function.
  17346. (send): Removed.
  17347. (getMessage): New function.
  17348. (getMessageLength): New function.
  17349. * src/RequestMessage.cc
  17350. (create): New function.
  17351. (receivedAction): Added the handling of fast extension.
  17352. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17353. (send): Removed.
  17354. (getMessage): New function.
  17355. (getMessageLength): New function.
  17356. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17357. (msg): New variable.
  17358. (sendPredicate): New function.
  17359. (onSendComplete): New function.
  17360. (create): New function.
  17361. (getMessage): New function.
  17362. (getMessageLength): New function.
  17363. * src/InterestedMessage.cc
  17364. (create): New function.
  17365. (send): Removed.
  17366. (sendPieceData): New function.
  17367. (getMessage): New function.
  17368. (getMessageLength): New function.
  17369. (onSendComplete): New function.
  17370. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17371. (msg): New variable.
  17372. (sendPieceData): New function.
  17373. (onSendComplete): New function.
  17374. (create): New function.
  17375. (send): Removed.
  17376. (getMessage): New function.
  17377. (getMessageLength): New function.
  17378. * src/NotInterestedMessage.cc
  17379. (create): New function.
  17380. (send): Removed.
  17381. (sendPredicate): New function.
  17382. (getMessage): New function.
  17383. (getMessageLength): New function.
  17384. (onSendComplete): New function.
  17385. * src/AllowedFastMessage.h: New class.
  17386. * src/AllowedFastMessage.cc: New class.
  17387. * src/RejectMessage.h: New class.
  17388. * src/RejectMessage.cc: New class.
  17389. * src/SuggestPieceMessage.h: New class.
  17390. * src/SuggestPieceMessage.cc: New class.
  17391. * src/HaveAllMessage.h: New class.
  17392. * src/HaveAllMessage.cc: New class.
  17393. * src/HaveNoneMessage.h: New class.
  17394. * src/HaveNoneMessage.cc: New class.
  17395. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17396. (msg): New variable.
  17397. (reserved): New variable.
  17398. (create): New function.
  17399. (getId): New function.
  17400. (receivedAction): New function.
  17401. (getMessage): New function.
  17402. (getMessageLength): New function.
  17403. (isFastExtensionSupported): New function.
  17404. * src/HandshakeMessage.cc
  17405. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17406. (create): New function.
  17407. (getMessage): New function.
  17408. (getMessageLength): New function.
  17409. (toString): Added the output of reserved field.
  17410. (check): Added const qualifier.
  17411. (isFastExtensionSupported): New function.
  17412. * src/PeerMessageUtil.h
  17413. (createChokeMessage): Removed.
  17414. (createUnchokeMessage): Removed.
  17415. (createInterestedMessage): Removed.
  17416. (createNotInterestedMessage): Removed.
  17417. (createHaveMessage): Removed.
  17418. (createBitfieldMessage): Removed.
  17419. (createRequestMessage): Removed.
  17420. (createCancelMessage): Removed.
  17421. (createPieceMessage): Removed.
  17422. (createPortMessage): Removed.
  17423. (createChokeMessage): Removed.
  17424. (createUnchokeMessage): Removed.
  17425. (createInterestedMessage): Removed.
  17426. (createNotInterestedMessage): Removed.
  17427. (createHaveMessage): Removed.
  17428. (createBitfieldMessage): Removed.
  17429. (createRequestMessage): Removed.
  17430. (createCancelMessage): Removed.
  17431. (createPieceMessage): Removed.
  17432. (createKeepAliveMessage): Removed.
  17433. (createHandshakeMessage): Removed.
  17434. (setIntParam): New function.
  17435. (createPeerMessageString): New function.
  17436. * src/PeerMessageUtil.cc
  17437. (createChokeMessage): Removed.
  17438. (createUnchokeMessage): Removed.
  17439. (createInterestedMessage): Removed.
  17440. (createNotInterestedMessage): Removed.
  17441. (createHaveMessage): Removed.
  17442. (createBitfieldMessage): Removed.
  17443. (createRequestMessage): Removed.
  17444. (createCancelMessage): Removed.
  17445. (createPieceMessage): Removed.
  17446. (createPortMessage): Removed.
  17447. (createRequestMessage): Removed.
  17448. (createCancelMessage): Removed.
  17449. (createPieceMessage): Removed.
  17450. (createHaveMessage): Removed.
  17451. (createChokeMessage): Removed.
  17452. (createUnchokeMessage): Removed.
  17453. (createInterestedMessage): Removed.
  17454. (createNotInterestedMessage): Removed.
  17455. (createBitfieldMessage): Removed.
  17456. (createKeepAliveMessage): Removed.
  17457. (createHandshakeMessage): Removed.
  17458. (setIntParam): New function.
  17459. (createPeerMessageString): New function.
  17460. * src/PeerConnection.h
  17461. (peer): Removed.
  17462. (torrentMan): Removed.
  17463. (createNLengthMessage): Removed.
  17464. (setIntParam): Removed.
  17465. (writeOutgoingMessageLog): Removed all overloaded functions.
  17466. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17467. (sendMessage): New function.
  17468. (sendHandshake): Removed.
  17469. (sendKeepAlive): Removed.
  17470. (sendChoke): Removed.
  17471. (sendUnchoke): Removed.
  17472. (sendInterested): Removed.
  17473. (sendNotInterested): Removed.
  17474. (sendHave): Removed.
  17475. (sendBitfield): Removed.
  17476. (sendRequest): Removed.
  17477. (sendPiece): Removed.
  17478. (sendPieceHeader): Removed.
  17479. (sendPieceData): Removed.
  17480. (sendCancel): Removed.
  17481. (getPeer): Removed.
  17482. * src/PeerConnection.cc
  17483. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17484. (sendHandshake): Removed.
  17485. (sendKeepAlive): Removed.
  17486. (createNLengthMessage): Removed.
  17487. (setIntParam): Removed.
  17488. (writeOutgoingMessageLog): Removed all overloaded functions.
  17489. (sendChoke): Removed.
  17490. (sendUnchoke): Removed.
  17491. (sendInterested): Removed.
  17492. (sendNotInterested): Removed.
  17493. (sendHave): Removed.
  17494. (sendBitfield): Removed.
  17495. (sendRequest): Removed.
  17496. (sendPiece): Removed.
  17497. (sendPieceHeader): Removed.
  17498. (sendPieceData): Removed.
  17499. (sendMessage): New function.
  17500. (sendCancel): Removed.
  17501. * src/PeerInteractionCommand.cc
  17502. (PeerInteractionCommand): Call setUploadLimit.
  17503. (executeInternal): Call setUploadLimit.
  17504. Added the handling of "inProgress" state of handshake message.
  17505. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17506. sendNow().
  17507. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17508. sendNow().
  17509. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17510. * src/TorrentMan.h
  17511. (PEER_ID_LENGTH): New definition.
  17512. (hasAllPieces): New function.
  17513. * src/TorrentMan.cc
  17514. (getMissingPiece): Added the handling of fast extension.
  17515. (cancelPiece): Call updatePiece().
  17516. (hasAllPieces): New function.
  17517. * src/PeerInteraction.h
  17518. (fastSet): New variable.
  17519. (getNewPieceAndSendInterest): Changed the return type to void.
  17520. (send): Renamed as sendMessages.
  17521. (deleteAllRequestSlot): Removed.
  17522. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17523. (cancelAllRequest): Removed all overloaded functions.
  17524. (deleteAllRequestSlot): Removed.
  17525. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17526. (rejectPieceMessageInQueue): New function.
  17527. (rejectAllPieceMessageInQueue): New function.
  17528. (onChoked): New function.
  17529. (isSendingMessageInProgress): New function.
  17530. (getCorrespondingRequestSlot): Changed its arguments.
  17531. (isInFastSet): New function.
  17532. (addFastSetIndex): New function.
  17533. (addRequests): New function.
  17534. (sendNow): Removed.
  17535. (trySendNow): Removed.
  17536. (sendBitfield): New function.
  17537. (sendAllowdFast): New function.
  17538. (createHaveAllMessage): New function.
  17539. (createHaveNoneMessage): New function.
  17540. (createRejectMessage): New function.
  17541. (createAllowedFastMessage): New function.
  17542. * src/PeerInteraction.cc
  17543. (send): Renamed as sendMessages.
  17544. (sendMessages): New function.
  17545. (MsgPushBack): New class.
  17546. (isSendingMessageInProgress): New function.
  17547. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17548. (rejectAllPieceMessageInQueue): New function.
  17549. Added the handling of fast extension.
  17550. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17551. (rejectPieceMessageInQueue): New function.
  17552. Added the handling of fast extension.
  17553. (deleteRequestSlot): Replaced for loop with std::find.
  17554. (onChoked): New function.
  17555. (deleteAllRequestSlot): Removed.
  17556. (abortPiece): Rewirtten.
  17557. (deleteTimeoutRequestSlot): Updated log messages.
  17558. (getCorrespondingRequestSlot): Changed its arguments.
  17559. (cancelAllRequest): Removed all overloaded functions.
  17560. (receiveHandshake): Added the check to see whether an incoming peer
  17561. supports fast extension.
  17562. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17563. PeerMessageUtil.
  17564. (createPeerMessage): Use create() of each message class instead of
  17565. PeerMessageUtil.
  17566. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17567. AllowedFastMessage were added.
  17568. (getNewPieceAndSendInterest): Changed its return value type to void.
  17569. Added the handling of fast extension.
  17570. (addRequests): New function.
  17571. (sendNow): Removed.
  17572. (sendHandshake): Rewritten.
  17573. (trySendNow): Removed.
  17574. (sendBitfield): New function.
  17575. (sendAllowdFast): New function.
  17576. (isInFastSet): New function.
  17577. (addFastSetIndex): New function.
  17578. (createRequestMessage): Use RequestMessage::create instead of
  17579. PeerMessageUtil.
  17580. (createCancelMessage): Use CancelMessage::create instead of
  17581. PeerMessageUtil.
  17582. (createPieceMessage): Use PieceMessage::create instead of
  17583. PeerMessageUtil.
  17584. (createHaveMessage): Use HaveMessage::create instead of
  17585. PeerMessageUtil.
  17586. (createChokeMessage): Use ChokeMessage::create instead of
  17587. PeerMessageUtil.
  17588. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17589. PeerMessageUtil.
  17590. (createInterestedMessage): Use InterestedMessage::create instead of
  17591. PeerMessageUtil.
  17592. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17593. of PeerMessageUtil.
  17594. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17595. PeerMessageUtil.
  17596. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17597. PeerMessageUtil.
  17598. (createHaveAllMessage): New function.
  17599. (createHaveNoneMessage): New function.
  17600. (createRejectMessage): New function.
  17601. (createAllowedFastMessage: New function.
  17602. * src/Util.h
  17603. (sha1Sum): New function.
  17604. (computeFastSet): New function.
  17605. * src/Util.cc
  17606. (sha1Sum): New function.
  17607. (computeFastSet): New function.
  17608. * src/Peer.h
  17609. (fastExtensionEnabled): New variable.
  17610. (fastSet): New variable.
  17611. (setAllBitfield): New function.
  17612. (setFastExtensionEnabled): New function.
  17613. (isFastExtensionEnabled): New function.
  17614. (addFastSetIndex): New function.
  17615. (getFastSet): New function.
  17616. (isInFastSet): New function.
  17617. (countFastSet): New function.
  17618. * src/Peer.cc
  17619. (isInFastSet): New function.
  17620. (addFastSetIndex): New function.
  17621. (setAllBitfield): New function.
  17622. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17623. sockets.
  17624. * src/PeerAbstractCommand.cc
  17625. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17626. and uploadLimit.
  17627. (execute): Changed the procedure of checking sockets. The upload speed
  17628. checking were added.
  17629. (setUploadLimit): New function.
  17630. (setUploadLimitCheck): New function.
  17631. * src/PeerAbstractCommand.h
  17632. (setUploadLimit): New function.
  17633. (setUploadLimitCheck): New function.
  17634. (uploadLimit): New variable.
  17635. (uploadLimitCheck): New variable.
  17636. To contact a tracker regularly:
  17637. * src/TrackerWatcherCommand.h (interval): New variable.
  17638. (checkPoint): New variable.
  17639. (TrackerWatcherCommand): Added interval argument.
  17640. * src/TrackerWatcherCommand.cc
  17641. (TrackerWatcherCommand): Initialized checkPoint.
  17642. (execute): Now a tracker is contacted in every specified period.
  17643. If peer list is not needed, send request with numwant=0.
  17644. * src/TrackerUpdateCommand.cc
  17645. (execute): Updated log messages.
  17646. * src/DownloadEngine.cc
  17647. (~DownloadEngine): Removed two asserts.
  17648. (waitData): Uncommented wfds. May be a bug fix.
  17649. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17650. * src/PeerInteractionCommand.h
  17651. (checkInactiveConnection): Removed.
  17652. * src/PeerInteractionCommand.cc
  17653. (executeInternal): Removed following function calls:
  17654. detectMessageFlooding(), checkLongTimePeerChoking and
  17655. checkInactiveConnection().
  17656. (checkInactiveConnection): Removed.
  17657. (detectMessageFlooding): Removed function call to
  17658. checkInactiveConnection().
  17659. * src/PeerMessageUtil.h
  17660. (createChokeMessage): New function. Overload.
  17661. (createUnchokeMessage): New function. Overload.
  17662. (createInterestedMessage): New function. Overload.
  17663. (createNotInterestedMessage): New function. Overload.
  17664. (createHaveMessage): New function. Overload.
  17665. (createBitfieldMessage): New function. Overload.
  17666. (createRequestMessage): New function. Overload.
  17667. (createCancelMessage): New function. Overload.
  17668. (createPieceMessage): New function. Overload.
  17669. (createKeepAliveMessage): New function. Overload.
  17670. * src/PeerMessageUtil.cc
  17671. (createChokeMessage): New function. Overload.
  17672. (createUnchokeMessage): New function. Overload.
  17673. (createInterestedMessage): New function. Overload.
  17674. (createNotInterestedMessage): New function. Overload.
  17675. (createHaveMessage): New function. Overload.
  17676. (createBitfieldMessage): New function. Overload.
  17677. (createRequestMessage): New function. Overload.
  17678. (createCancelMessage): New function. Overload.
  17679. (createPieceMessage): New function. Overload.
  17680. (createKeepAliveMessage): New function. Overload.
  17681. * src/SendMessageQueue.cc
  17682. (createRequestMessage): Use PeerMessageUtil.
  17683. (createCancelMessage): Use PeerMessageUtil.
  17684. (createPieceMessage): Use PeerMessageUtil.
  17685. (createHaveMessage): Use PeerMessageUtil.
  17686. (createChokeMessage): Use PeerMessageUtil.
  17687. (createUnchokeMessage): Use PeerMessageUtil.
  17688. (createInterestedMessage): Use PeerMessageUtil.
  17689. (createNotInterestedMessage): Use PeerMessageUtil.
  17690. (createBitfieldMessage): Use PeerMessageUtil.
  17691. (createKeepAliveMessage): Use PeerMessageUtil.
  17692. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17693. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17694. * src/PeerInteraction.h: New class.
  17695. * src/PeerInteraction.cc: New class.
  17696. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17697. Each peer message has its own class.
  17698. * src/PendingMessages.h: Removed.
  17699. * src/PendingMessages.cc: Removed. The sending process was moved to
  17700. each message class.
  17701. * src/RequestSlotMan.h: Removed.
  17702. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17703. SendMessageQueue.
  17704. * src/RequestMessage.h: New class.
  17705. * src/RequestMessage.cc: New class.
  17706. * src/CancelMessage.h: New class.
  17707. * src/CancelMessage.cc: New class.
  17708. * src/BitfieldMessage.h: New class.
  17709. * src/BitfieldMessage.cc: New class.
  17710. * src/ChokeMessage.h: New class.
  17711. * src/ChokeMessage.cc: New class.
  17712. * src/KeepAliveMessage.h: New class.
  17713. * src/KeepAliveMessage.cc: New class.
  17714. * src/PortMessage.h: New class.
  17715. * src/UnchokeMessage.h: New class.
  17716. * src/UnchokeMessage.cc: New class.
  17717. * src/PieceMessage.h: New class.
  17718. * src/PieceMessage.cc: New class.
  17719. * src/HaveMessage.h: New class.
  17720. * src/HaveMessage.cc: New class.
  17721. * src/BitfieldMessage.h: New class.
  17722. * src/BitfieldMessage.cc: New class.
  17723. * src/NotInterestedMessage.h: New class.
  17724. * src/NotInterestedMessage.cc: New class.
  17725. * src/InterestedMessage.h: New class.
  17726. * src/InterestedMessage.cc: New class.
  17727. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17728. (getSendMessageQueue): New function.
  17729. (setSendMessageQueue): New function.
  17730. * src/HandshakeMessage.cc: New class.
  17731. * src/PeerConnection.h (receiveMessage): Changed return value and
  17732. arguments.
  17733. (receiveHandshake): Changed return value and arguments.
  17734. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17735. here.
  17736. (receiveHandshake): Do not create handshake class here.
  17737. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17738. (piece): Removed.
  17739. (syncPiece): Removed.
  17740. (sendInterest): Removed.
  17741. (sendMessages): Removed.
  17742. (createRequestPendingMessage): Removed.
  17743. (checkPieceHash): Removed.
  17744. (erasePieceOnDisk): Removed.
  17745. (getNewPieceAndSendInterest): Removed.
  17746. (onGotNewPice): Removed.
  17747. (onGotWrongPiece): Removed.
  17748. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17749. Removed peerConnection, piece.
  17750. (~PeerInteractionCommand): Removed peerConnection.
  17751. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17752. (syncPiece): Moved to SendMessageQueue.
  17753. (decideChoking): Removed PendingMessage.
  17754. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17755. The action after receiving peer message was moved to each message
  17756. class.
  17757. (onGotNewPice): Moved to SendMessageQueue.
  17758. (onGotWrongPiece): Moved to SendMessageQueue.
  17759. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17760. (sendInterest): Moved to SendMessageQueue.
  17761. (createRequestPendingMessage): Removed.
  17762. (sendMessages): Moved to SendMessageQueue.
  17763. (onAbort): Use SendMessageQueue::abortPiece()
  17764. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17765. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17766. (checkPieceHash): Moved to SendMessageQueue.
  17767. (erasePieceOnDisk): Moved to SendMessageQueue.
  17768. * src/PeerMessageUtil.h
  17769. (createBitfieldMessage): Removed.
  17770. (createHaveMessage): Changed return value and arguments.
  17771. (createBitfieldMessage): Changed return value and arguments.
  17772. (createRequestCancelMessage): Removed.
  17773. (createPieceMessage): Changed return value and arguments.
  17774. (getShortIntParam): New function.
  17775. (checkIndex): Changed arguments.
  17776. (checkBegin): Changed arguments.
  17777. (checkLength): Changed arguments.
  17778. (checkPieceOffset): Removed.
  17779. (checkRange): New function.
  17780. (checkBitfield): Changed arguments.
  17781. (createPeerMessage): Removed.
  17782. (checkIntegrity): Removed.
  17783. (createHandshakeMessage): Changed arguments.
  17784. (createChokeMessage): New function.
  17785. (createUnchokeMessage): New function.
  17786. (createInterestedMessage): New function.
  17787. (createNotInterestedMessage): New function.
  17788. (createRequestMessage): New function.
  17789. (createCancelMessage): New function.
  17790. (createPortMessage): New function.
  17791. * src/PeerMessageUtil.cc
  17792. (createBitfieldMessage): Removed.
  17793. (createHaveMessage): Changed return value and arguments.
  17794. (createBitfieldMessage): Changed return value and arguments.
  17795. (createRequestCancelMessage): Removed.
  17796. (createPieceMessage): Changed return value and arguments.
  17797. (getShortIntParam): New function.
  17798. (checkIndex): Changed arguments.
  17799. (checkBegin): Changed arguments.
  17800. (checkLength): Changed arguments.
  17801. (checkPieceOffset): Removed.
  17802. (checkRange): New function.
  17803. (checkBitfield): Changed arguments.
  17804. (createPeerMessage): Removed.
  17805. (checkIntegrity): Removed.
  17806. (createHandshakeMessage): Changed arguments.
  17807. (createChokeMessage): New function.
  17808. (createUnchokeMessage): New function.
  17809. (createInterestedMessage): New function.
  17810. (createNotInterestedMessage): New function.
  17811. (createRequestMessage): New function.
  17812. (createCancelMessage): New function.
  17813. (createPortMessage): New function.
  17814. * src/PeerMessage.h
  17815. (id): Removed.
  17816. (index): Removed.
  17817. (begin): Removed.
  17818. (length): Removed.
  17819. (bitfield): Removed.
  17820. (bitfieldLength): Removed.
  17821. (block): Removed.
  17822. (blockLength): Removed.
  17823. (inProgress): New variable.
  17824. (cuid): New variable.
  17825. (peer): New variable.
  17826. (sendMessageQueue): New variable.
  17827. (logger): New variable.
  17828. (setBitfield): Removed.
  17829. (getBitfield): Removed.
  17830. (setBlock): Removed.
  17831. (getBlock): Removed.
  17832. (getBitfieldLength): Removed.
  17833. (getBlockLength): Removed.
  17834. (isInProgress): New function.
  17835. (toString): Made pure virtual.
  17836. (check): New function.
  17837. (send): New function.
  17838. (receivedAction): New function.
  17839. (getId): Made pure virtual.
  17840. (setId): Removed.
  17841. (getIndex): Removed.
  17842. (setIndex): Removed.
  17843. (getBegin): Removed.
  17844. (setBegin): Removed.
  17845. (getLength): Removed.
  17846. (setLength): Removed.
  17847. (getCuid): New function.
  17848. (setCuid): New function.
  17849. (getPeer): New function.
  17850. (setPeer): New function.
  17851. (getSendMessageQueue): New function.
  17852. (setSendMessageQueue): New function.
  17853. (ID): Removed.
  17854. * src/PeerMessage.cc
  17855. (setBitfield): Removed.
  17856. (setBlock): Removed.
  17857. (toString): Removed.
  17858. * src/TorrentMan.h
  17859. (getPieceLength): New function.
  17860. (getPieceLength): New function.
  17861. * src/SendMessageQueue.h
  17862. (REQUEST_TIME_OUT): New definition.
  17863. (RequestSlots): New definition.
  17864. (MessageQueue): New definition.
  17865. (requestSlotMan): Removed.
  17866. (pendingMessages): Removed.
  17867. (requestSlots): New variable.
  17868. (messageQueue): New variable.
  17869. (torrentMan): New variable.
  17870. (peerConnection): New variable.
  17871. (peer): New variable.
  17872. (piece): New variable.
  17873. (getNewPieceAndSendInterest): New function.
  17874. (createPeerMessage): New function.
  17875. (createHandshakeMessage): New function.
  17876. (send): Made private.
  17877. (setPeerMessageCommonProperty): New function.
  17878. (deleteAllRequestSlot): New function.
  17879. (deleteRequestMessageInQueue): New function.
  17880. (cancelAllRequest): Made private.
  17881. (cancelAllRequest): Made private.
  17882. (countRequestSlot): Made private.
  17883. (addPendingMessage): Removed.
  17884. (deletePendingPieceMessage): Removed.
  17885. (deletePendingRequestMessage): Removed.
  17886. (addMessage): New function.
  17887. (deletePieceMessageInQueue): New function.
  17888. (deleteTimeoutRequestSlot): Changed argument.
  17889. (deleteCompletedRequestSlot): Changed argument.
  17890. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17891. (getCorrespondingRequestSlot): New function.
  17892. (countPendingMessage): Removed.
  17893. (countMessageInQueue): New function.
  17894. (getTorrentMan): New function.
  17895. (getPeerConnection): New function.
  17896. (hasDownloadPiece): New function.
  17897. (getDownloadPiece): New function.
  17898. (setDownloadPiece): New function.
  17899. (syncPiece): New function.
  17900. (sendMessages): New function.
  17901. (sendNow): New function.
  17902. (trySendNow): New function.
  17903. (abortPiece): New function.
  17904. (sendHandshake): New function.
  17905. (receiveMessage): New function.
  17906. (receiveHandshake): New function.
  17907. (createRequestMessage): New function.
  17908. (createCancelMessage): New function.
  17909. (createPieceMessage): New function.
  17910. (createHaveMessage): New function.
  17911. (createChokeMessage): New function.
  17912. (createUnchokeMessage): New function.
  17913. (createInterestedMessage): New function.
  17914. (createNotInterestedMessage): New function.
  17915. (createBitfieldMessage): New function.
  17916. (createKeepAliveMessage): New function.
  17917. * src/SendMessageQueue.cc
  17918. (SendMessageQueue): Removed requestSlotMan.
  17919. Instantiated peerConnection here.
  17920. (~SendMessageQueue): Removed requestSlotMan.
  17921. Added deletion of peerConnection and the contents of messageQueue.
  17922. (send): Updated according to the change of messageQueue.
  17923. (addPendingMessage): Renamed to addMessage.
  17924. (addMessage): New function.
  17925. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17926. (deletePieceMessageInQueue): New function.
  17927. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17928. (deleteRequestMessageInQueue): New function.
  17929. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17930. here.
  17931. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17932. (...) was moved here.
  17933. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17934. moved here.
  17935. (deleteCompletedRequestSlot):
  17936. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17937. (getCorrespondingRequestSlot):
  17938. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17939. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17940. (countPendingMessage): Renamed to countMessageInQueue.
  17941. (countMessageInQueue): New function.
  17942. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17943. (receiveHandshake): New function.
  17944. (createHandshakeMessage): New function.
  17945. (receiveMessage): New function.
  17946. (createPeerMessage): New function.
  17947. (syncPiece): New function.
  17948. (getNewPieceAndSendInterest): New function.
  17949. (sendMessages): New function.
  17950. (sendNow): New function.
  17951. (trySendNow): New function.
  17952. (sendHandshake): New function.
  17953. (abortPiece): New function.
  17954. (getDownloadPiece): New function.
  17955. (getPeerMessageCommonProperty): New function.
  17956. (createRequestMessage): New function.
  17957. (createCancelMessage): New function.
  17958. (createPieceMessage): New function.
  17959. (createHaveMessage): New function.
  17960. (createChokeMessage): New function.
  17961. (createUnchokeMessage): New function.
  17962. (createInterestedMessage): New function.
  17963. (createNotInterestedMessage): New function.
  17964. (createBitfieldMessage): New function.
  17965. (createKeepAliveMessage): New function.
  17966. To add simple Content-Disposition support:
  17967. * src/HttpResponseCommand.h (determinFilename): New function.
  17968. * src/HttpResponseCommand.cc (executeInternal):
  17969. Use determinFilename(headers) instead of req->getFile() when comparing
  17970. filename.
  17971. (determinFilename): New function.
  17972. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17973. req->getFile().
  17974. (handleOtherEncoding): Use determinFilename(headers) instead of
  17975. req->getFile().
  17976. * src/Util.h (getContentDispositionFilename): New function.
  17977. * src/Util.cc (getContentDispositionFilename): New function.
  17978. * src/LogFactory.h (release): New function.
  17979. * src/LogFactory.cc (release): New function.
  17980. To fix a bug that causes out-of-bound exception when HTTP status
  17981. line is wrong:
  17982. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17983. size.
  17984. * src/common.h (Deleter): New class.
  17985. * src/SegmentMan.cc
  17986. (~SegmentMan): Added deletion of splitter and diskWriter.
  17987. * src/DownloadEngine.h
  17988. (Commands): Use deque.
  17989. (clearQueue): New function.
  17990. * src/DownloadEngine.cc
  17991. (~DownloadEngine): Added deletion of segmentMan.
  17992. (cleanQueue): New function.
  17993. * src/TorrentDownloadEngine.h
  17994. (TorrentDownloadEngine): The implementation was moved to
  17995. TorrentDownloadEngine.cc.
  17996. (~TorrentDownloadEngine): The implementation was moved to
  17997. TorrentDownloadEngine.cc.
  17998. * src/TorrentDownloadEngine.cc
  17999. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18000. * src/main.cc
  18001. (clearRequest): Removed.
  18002. (handler): Added deletion of e.
  18003. (torrentHandler): Added deletion of te.
  18004. (main): Do not share splitter.
  18005. Use Deleter instead of clearRequest.
  18006. Deletion of classes were updated.
  18007. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18008. * src/main.cc (main): Fixed typo.
  18009. * src/message.h: Fixed typo.
  18010. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18011. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18012. To add --select-file command-line option:
  18013. * src/Util.cc
  18014. (unfoldRange): New function.
  18015. (getNum): New function.
  18016. (unfoldSubRange): New function
  18017. * src/main.cc
  18018. (showUsage): Added help message.
  18019. (main): Added --select-file command-line option. Updated the layout of
  18020. file listing.
  18021. * src/common.h
  18022. (Integers): New definition.
  18023. * src/SocketCore.cc
  18024. (writeData): Removed timeout argument.
  18025. (readData): Removed timeout argument.
  18026. (peekData): Removed timeout argument.
  18027. * src/Socket.cc
  18028. (writeData): Removed timeout argument.
  18029. (readData): Removed timeout argument.
  18030. (peekData): Removed timeout argument.
  18031. * Release 0.4.1
  18032. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18033. To deploy upload rate based choking algorithm:
  18034. * src/PeerInteractionCommand.cc
  18035. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18036. peer currently used.
  18037. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18038. download completes. Simplified.
  18039. (receiveMessage): Updated.
  18040. * src/TorrentMan.h
  18041. (activePeers): New variable.
  18042. (addActivePeer): New function.
  18043. (getActivePeers): New function.
  18044. (deleteActivePeer): New function.
  18045. * src/TorrentMan.cc
  18046. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18047. * src/PeerAbstractCommand.cc
  18048. (onAbort): Use peer->resetStatus().
  18049. * src/main.cc
  18050. (PeerChokeCommand.h): Included.
  18051. (main): Added the instance of ChokingCommand to the command queue.
  18052. * src/Peer.h
  18053. (amChoking): Renamed from amChocking
  18054. (chokingRequired): New variable.
  18055. (optUnchoking): New variable.
  18056. (deltaUpload): New variable.
  18057. (deltaDownload): New variable.
  18058. (addDeltaUpload): New function.
  18059. (resetDeltaUpload): New function.
  18060. (addDeltaDownload): New function.
  18061. (resetDeltaDownload): New function.
  18062. (addPeerUpload): Added a call to addDeltaUpload.
  18063. (addPeerDownload): Added a call to addDeltaDownload.
  18064. * src/Peer.cc
  18065. (shouldBeChoking): Renamed from shouldChoke.
  18066. (resetStatus): New function.
  18067. * src/PeerChokeCommand.h: New class.
  18068. * src/PeerChokeCommand.cc: New class.
  18069. To add lazy upload speed limiter:
  18070. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18071. statistics calculation to TorrentDownloadEngine.
  18072. * src/TorrentConsoleDownloadEngine.cc
  18073. (sendStatistics): Renamed from printStatistics.
  18074. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18075. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18076. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18077. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18078. calculation.
  18079. (sendStatistics): New function as pure virtual function.
  18080. (getUploadSpeed): New function.
  18081. * src/TorrentDownloadEngine.cc
  18082. (initStatistics): New function.
  18083. (calculateSpeed): New function.
  18084. (calculateStatistics): New function.
  18085. * src/SendMessageQueue.h
  18086. (uploadLength): New variable.
  18087. (send): Added an argument.
  18088. (setUploadLimit): New function.
  18089. (getUploadLimit): New function.
  18090. * src/SendMessageQueue.cc
  18091. (send): Added upload speed limiter.
  18092. * src/prefs.h
  18093. (PREF_UPLOAD_LIMIT): New definition.
  18094. * src/PeerInteractionCommand.cc
  18095. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18096. * src/main.cc
  18097. (main): Added --upload-limit option
  18098. For bug fixes:
  18099. * src/main.cc
  18100. (showUsage): Corrected --listen-port help
  18101. Other changes:
  18102. * src/TorrentMan.cc
  18103. (getPeer): Return nullPeer if connection is grather than
  18104. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18105. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18106. To add some useful information to the exception message:
  18107. * src/SocketCore.cc : Updated messages.
  18108. * src/SegmentMan.cc :
  18109. * src/TorrentMan.cc : Updated messages.
  18110. * src/MultiDiskWriter.cc : Updated messages.
  18111. * src/Util.cc : Updated messages.
  18112. * src/AbstractDiskWriter.cc : Updated messages.
  18113. * src/PreAllocationDiskWriter.cc : Updated messages.
  18114. * src/message.cc : Added new messages. Updated some messages.
  18115. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18116. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18117. Updated threshold from 30 to 15.
  18118. * src/AbstractDiskWriter.h (filename): New variable.
  18119. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18120. (createFile): Assigned filename.
  18121. * src/main.cc: Updated the help message for http-auth-scheme.
  18122. * Release 0.4.0
  18123. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18124. To add TrackerUpdateCommand with which replaces
  18125. CompactTrackerResponseProcessor:
  18126. * src/TrackerWatcherCommand.h (req): Removed.
  18127. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18128. if the number of peer connections are less than 30.
  18129. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18130. * src/SegmentMan.h (diskWriter): New function.
  18131. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18132. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18133. (main): Use TrackerUpdateCommand.
  18134. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18135. (req): New variable.
  18136. (setTrackerResponseProcessor): Removed.
  18137. (getTrackerResponseProcessor): Removed.
  18138. (processTrackerResponse): Removed.
  18139. * src/DownloadEngine.h (diskWriter): Removed.
  18140. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18141. to torrentMan->processTrackerResponse().
  18142. To add Util::expandBuffer:
  18143. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18144. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18145. * src/Util.h (expandBuffer): New function.
  18146. To fix the bug that causes segmentation fault when "-l ." is specified
  18147. in command-line option:
  18148. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18149. (openFile): New function.
  18150. (closeFile): New function.
  18151. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18152. (~SimpleLogger): Call closeFile();
  18153. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18154. * src/main.cc (main): Added a check to see logger is configured
  18155. properly.
  18156. To enable HTTP authentication without specifying "--http-auth-scheme"
  18157. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18158. * src/HttpConnection.cc (createRequest): Send Authorization header
  18159. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18160. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18161. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18162. * src/Peer.cc (shouldChoke): Updated algorithm.
  18163. * src/message.h (EX_AUTH_FAILED): New definition.
  18164. (EX_FILE_OPEN): New definition.
  18165. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18166. if status == 401.
  18167. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18168. if req->isTorrent == true.
  18169. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18170. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18171. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18172. (createFile): Updated message.
  18173. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18174. To add a readout of estimated remaining time to normal HTTP/FTP
  18175. downloads:
  18176. * src/ConsoleDownloadEngine.h (startup): New variable.
  18177. (startupLength): New variable.
  18178. (isStartupLengthSet): New variable.
  18179. (avgSpeed): New variable.
  18180. (eta): New variable.
  18181. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18182. estimated remaining time.
  18183. (initStatistics): Initialized newly added variables.
  18184. (calculateStatistics): Calculate average speed and estimated remaining
  18185. time.
  18186. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18187. * src/TrackerDownloadCommand.h: Removed.
  18188. * src/TrackerDownloadCommand.cc: Removed.
  18189. * src/TrackerInitCommand.h: Removed.
  18190. * src/TrackerInitCommand.cc: Removed.
  18191. * src/TrackerUpdateCommand.h: Removed.
  18192. * src/TrackerUpdateCommand.cc: Removed.
  18193. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18194. url written in TrackerInitCommand was moved here. Do not create
  18195. tracker request command if torrentMan->trackers != 0.
  18196. * src/CompactTrackerResponseProcessor.h: New class.
  18197. * src/CompactTrackerResponseProcessor.cc: New class.
  18198. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18199. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18200. Decoupled TorrentDownloadEngine from this.
  18201. * src/SegmentMan.h (init): New function.
  18202. * src/SegmentMan.cc (init): New function.
  18203. * src/TorrentMan.h (responseProcessor): New variable.
  18204. (trackers): New variable.
  18205. (setTrackerResponseProcessor): New function.
  18206. (getTrackerResponseProcessor): New function.
  18207. (processTrackerResponse): New function.
  18208. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18209. (processTrackerResponse): New function.
  18210. * src/main.cc (main): Use ByteArrayDiskWriter and
  18211. CompactTrackerResponseProcessor.
  18212. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18213. processTrackerResponse().
  18214. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18215. readout.
  18216. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18217. which indicates download has completed.
  18218. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18219. (closeFile): fd >= 0, not fd > 0
  18220. * src/main.cc (main): Added short cut for show-files.
  18221. Added short cut for torrent-file.
  18222. Added new command-line option listen-port.
  18223. Updated i18n messages.
  18224. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18225. To add LogFactory which creates singleton logger:
  18226. * src/LogFactory.h: New class.
  18227. * src/LogFactory.cc: New class.
  18228. * src/Command.h (logger): New variable.
  18229. (Constructor): Use LogFactory.
  18230. * src/AbstractCommand.cc: Use Command::logger
  18231. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18232. Use LogFactory.
  18233. * src/SegmentSplitter.h : Made logger protected.
  18234. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18235. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18236. * src/DownloadEngine.h : Made logger protected.
  18237. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18238. * src/PeerInteractionCommand.cc : Use Command::logger.
  18239. * src/HttpResponseCommand.cc : Use Command::logger.
  18240. * src/SegmentMan.h : Made logger private.
  18241. * src/TorrentMan.h : Made logger private.
  18242. * src/TorrentMan.cc : Use LogFactory.
  18243. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18244. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18245. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18246. Use LogFactory.
  18247. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18248. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18249. Use LogFactory.
  18250. * src/DownloadCommand.cc : Use Command::logger.
  18251. * src/PeerAbstractCommand.cc : Use Command::logger.
  18252. * src/PeerListenCommand.cc : Use Command::logger.
  18253. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18254. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18255. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18256. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18257. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18258. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18259. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18260. Use LogFactory.
  18261. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18262. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18263. Use LogFactory.
  18264. * src/main.cc (main): Use LogFactory.
  18265. * src/DiskAdaptor.h (logger): New variable.
  18266. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18267. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18268. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18269. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18270. parameter to a tracker request.
  18271. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18272. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18273. * src/main.cc (setSignalHander): New function.
  18274. (main): Added a handler for SIGTERM.
  18275. (handler): Updated message.
  18276. (torrentHandler): Updated message.
  18277. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18278. * src/TorrentConsoleDownloadEngine.cc
  18279. (onPartialDownloadingCompletes): Renamed as
  18280. onSelectiveDownloadingCompletes.
  18281. (onSelectiveDownloadingCompletes): Updated message.
  18282. To add DiskAdaptor which abstract DiskWriter family:
  18283. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18284. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18285. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18286. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18287. MultiDiskAdaptor.h.
  18288. (readFileEntry): Changed its arguments.
  18289. (setup): setupDiskWriter is merged into this function.
  18290. (setupDiskWriter): Removed.
  18291. (setFileFilter): New function.
  18292. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18293. made in readFileEntry.
  18294. (getFilePath): Removed.
  18295. (getTempFilePath): Removed.
  18296. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18297. (fixFilename): Removed.
  18298. (copySingleFile): Removed.
  18299. (splitMultiFile): Removed.
  18300. (deleteTempFile): Removed.
  18301. (setFileEntriesToDownload): Removed.
  18302. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18303. (isSelectiveDownloadingMode): New function.
  18304. (setAllMultiFileRequestedState): Removed.
  18305. (finishPartialDownloadingMode): Renamed as
  18306. finishSelectiveDownloadingMode.
  18307. (finishSelectiveDownloadingMode): New function.
  18308. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18309. (getSelectedTotalLength): New function.
  18310. (onDownloadComplete): Use diskAdaptor.
  18311. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18312. (Range): Removed.
  18313. (setMultiFileEntries): Renamed as setFileEntries.
  18314. (setFileEntries): New function.
  18315. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18316. (pieceLength): New variable.
  18317. * src/main.cc (printDownloadCompeleteMessage): New function.
  18318. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18319. (main): Renamed torrent-show-files to show-files.
  18320. Rewritten file contents listing.
  18321. * src/TorrentMan.h (FileEntry): Removed.
  18322. (multiFileTopDir): Removed.
  18323. (multiFileEntries): Removed.
  18324. (diskWriter): Removed.
  18325. (diskAdaptor): New variable.
  18326. * src/DefaultDiskWriter.h (totalLength): New variable.
  18327. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18328. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18329. diskWriter.
  18330. * src/TorrentConsoleDownloadEngine.h
  18331. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18332. (partialTotalLength): Renamed as selectedTotalLength.
  18333. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18334. openExistingFile, otherwise call initAndOpenFile.
  18335. (closeFile): fd > 0, not fd != 0.
  18336. * src/DirectDiskAdaptor.h: New class.
  18337. * src/DirectDiskAdaptor.cc: New class.
  18338. * src/MultiDiskAdaptor.h: New class.
  18339. * src/MultiDiskAdaptor.cc: New class.
  18340. * src/CopyDiskAdaptor.h: New class.
  18341. * src/CopyDiskAdaptor.cc: New class.
  18342. * src/DiskAdaptor.h: New class.
  18343. * src/DiskAdaptor.cc: New class.
  18344. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18345. (PREF_SHOW_FILES): New definition.
  18346. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18347. To add the ability to download multi torrent into respective files
  18348. directly:
  18349. * src/DiskWriter.h (openFile): New function.
  18350. (seek): Removed.
  18351. * src/MultiDiskWriter.h: New class.
  18352. * src/MultiDiskWriter.cc: New class.
  18353. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18354. protected.
  18355. (openFile): New function.
  18356. * src/AbstractDiskWriter.cc (openFile): New function.
  18357. * src/prefs.h (V_FALSE): New definition.
  18358. (PREF_DIRECT_FILE_MAPPING): New definition.
  18359. * src/TorrentMan.h (setupDiskWriter): New function.
  18360. (setAllMultiFileRequestedState): New function.
  18361. (onDownloadComplete): New function.
  18362. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18363. (setupDiskWriter): New function.
  18364. (getFilePath): Updated.
  18365. (getTempFilePath): Updated.
  18366. (getSegmentFilePath): Updated.
  18367. (fixFilename): Updated.
  18368. (deleteTempFile): Updated.
  18369. (setAllMultiFileRequestedState): New function.
  18370. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18371. (finishPartialDownloadingMode): Reset requested flags.
  18372. (onDownloadComplete): New function.
  18373. * src/main.cc: Added --direct-file-mapping option.
  18374. Use TorrentMan::setupDiskWriter().
  18375. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18376. onDownloadComplete().
  18377. To fix ETA bug:
  18378. * src/Util.h (difftvsec): New function.
  18379. * src/Util.cc (difftvsec): New function.
  18380. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18381. type of "elapsed" instead of long long int.
  18382. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18383. The updates of statistics takes place every 1 seconds.
  18384. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18385. (calculateSpeed): Changed its argument signature.
  18386. * src/PeerMessage.cc (toString): Fixed message.
  18387. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18388. To print ETA:
  18389. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18390. completion handling when dealing with
  18391. TorrentMan::isPartialDownloadingMode() == true.
  18392. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18393. New function.
  18394. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18395. (sessionDownloadLength): New variable.
  18396. (avgSpeed): New variable.
  18397. (eta): New variable.
  18398. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18399. new variables: eta, avgSpeed, startup.
  18400. (calculateSpeed): Calculate average speed and ETA.
  18401. (printStatistics): Added ETA.
  18402. * src/Util.h (secfmt): New function.
  18403. * src/Util.cc (secfmt): New function.
  18404. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18405. To detect "keep alive" flooding:
  18406. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18407. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18408. variable: keepAliveCount.
  18409. (detectMessageFlooding): Added "keep alive" flooding detection.
  18410. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18411. received.
  18412. To add the ability to download only specified files in multi-file
  18413. torrent:
  18414. * src/BitfieldMan.h (filterBitfield): New variable.
  18415. (filterEnabled): New variable.
  18416. (setFilterBit): New function.
  18417. (enableFilter): New function.
  18418. (disableFilter): New function.
  18419. (isFilterEnabled): New function.
  18420. (getFilteredTotalLength): New function.
  18421. (getCompletedLength): New function.
  18422. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18423. filterBitfield, filterEnabled.
  18424. (CopyConstructor): Added filterBitfield and filterEnabled.
  18425. (operator==): Added filterBitfield and filterEnabled.
  18426. (Destructor): Added filterBitfield.
  18427. (getMissingIndex): Use filterBitfield.
  18428. (getMissingUnusedIndex): Use filterBitfield.
  18429. (getFirstMissingUnusedIndex): Use filterBitfield.
  18430. (getFirstMissingUnusedIndex): Use filterBitfield.
  18431. (getAllMissingIndexes): Use filterBitfield.
  18432. (countMissingBlock): Use filterBitfield.
  18433. (countBlock): Use filterBitfield.
  18434. (setBitInternal): Added new argument on.
  18435. (setUseBit): Use setBitInternal.
  18436. (unsetUseBit): Use setBitInternal.
  18437. (setBit): Use setBitInternal.
  18438. (unsetBit): Use setBitInternal.
  18439. (isAllBitSet): Use filterBitfield.
  18440. (setFilterBit): New function.
  18441. (addFilter): New function.
  18442. (enableFilter): New function.
  18443. (disableFilter): New function.
  18444. (clearFilter): New function.
  18445. (isFilterEnabled): New function.
  18446. (getFilteredTotalLength): New function.
  18447. (getCompletedLength): New function.
  18448. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18449. Initalized newly added variables.
  18450. [FileEntry](offset): New variable.
  18451. [FileEntry](extracted): New variable.
  18452. [FileEntry](requested): New variable.
  18453. (readFileEntry): New function.
  18454. (option): New variable.
  18455. (splitMultiFile): Removed const qualifier.
  18456. (fixFilename): Removed const qualifier.
  18457. (readFileEntryFromMetaInfoFile): New function.
  18458. (finishPartialDownloadingMode): New function.
  18459. (isPartialDownloadingMode): New function.
  18460. (setFileEntriesToDownload): New function.
  18461. (getCompletedLength): New function.
  18462. (getPartialTotalLength): New function.
  18463. * src/TorrentMan.cc (readFileEntry): New function.
  18464. (setup): Use readFileEntry. If no-preallocation option is specified,
  18465. use DefaultDiskWriter.
  18466. (readFileEntryFromMetaInfoFile): New function.
  18467. (fixFilename): Removed const qualifier.
  18468. (splitMultiFile): Removed const qualifier.
  18469. (setFileEntriesToDownload): New function.
  18470. (isPartialDownloadingMode): New function.
  18471. (finishPartialDownloadingMode): New function.
  18472. (getCompletedLength): New function.
  18473. (getPartialTotalLength): New function.
  18474. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18475. New variable.
  18476. (partialTotalLength): New variable.
  18477. (downloadLength): New variable.
  18478. (totalLength): New variable.
  18479. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18480. Added log.
  18481. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18482. partialTotalLength, downloadLength, totalLength.
  18483. (calculate): Calculate downloadLength and totalLength.
  18484. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18485. * src/main.cc (addCommand): Changed argument signature.
  18486. (main): Added new variable: args. Added new option "torrent-show-files"
  18487. "no-preallocation". Usage is not updated yet.
  18488. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18489. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18490. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18491. Attempt to add the ability to listing file entries in a .torrent file.
  18492. This feature is not yet complete.
  18493. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18494. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18495. (getName): New function.
  18496. * src/TorrentMan.h (getMultiFileEntries): New function.
  18497. (getName): New function.
  18498. * src/main.cc (main): Use above 2 funtion.
  18499. * Release 0.3.2
  18500. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18501. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18502. (detectMessageFlooding): Updated threshold value.
  18503. (checkLongTimePeerChoking): Updated timeout value.
  18504. (getNewPieceAndSendInterest): Added debug log.
  18505. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18506. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18507. (getPeer): Updated.
  18508. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18509. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18510. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18511. is localhost.
  18512. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18513. * src/PendingMessage.cc (processMessage): Not to send piece message
  18514. if peer is not interested in the pieces localhost has.
  18515. * src/Peer.cc (shouldChoke): Updated.
  18516. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18517. * src/Util.cc (isPowerOf): New function.
  18518. * src/Util.h (isPowerOf): New function.
  18519. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18520. whether or not it is power of 2.
  18521. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18522. Added new class SendMessageQueue that includes PendingMessages and
  18523. RequestSlotMan.
  18524. * src/SendMessageQueue.h: New class.
  18525. * src/SendMessageQueue.cc: New class.
  18526. * src/PendingMessage.h: Added new member variable blockIndex and its
  18527. accessors.
  18528. (createRequestMessage): Updated.
  18529. * src/PendingMessage.cc (createRequestMessage): Updated.
  18530. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18531. SendMessageQueue.
  18532. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18533. (receiveMessage): Updated with SendMessageQueue.
  18534. (deletePendingPieceMessage): Removed.
  18535. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18536. (sendInterest): Updated with SendMessageQueue.
  18537. (createRequestPendingMessage): Updated with SendMessageQueue.
  18538. (sendMessages): Updated with SendMessageQueue.
  18539. (onAbort): Updated with SendMessageQueue.
  18540. (keepAlive): Updated with SendMessageQueue.
  18541. (beforeSocketCheck): Updated SendMessageQueue.
  18542. * src/PeerInteractionCommand (sendMessages): Shuffle
  18543. missingBLockIndexes before using it.
  18544. Added its own timeout for peer connection.
  18545. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18546. setter.
  18547. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18548. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18549. Added setTimeout() call.
  18550. (executeInternal): Added setTimeout() call.
  18551. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18552. Added timeout.
  18553. (isTimeoutDetected): Updated.
  18554. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18555. option.
  18556. Added *simple* message flooding checker.
  18557. * src/PeerInteractionCommand.cc (executeInternal):
  18558. Added detectMessageFlooding() call.
  18559. (detectMessageFlooding): New function.
  18560. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18561. (beforeSocketCheck): Added detectMessageFlooding() call.
  18562. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18563. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18564. Removed deletePendingPieceMessage(), getRequestSlot(),
  18565. deleteRequestSlot(), deleteAllRequestSlot().
  18566. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18567. Added checkLongTimePeerChoking() call.
  18568. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18569. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18570. if duplicate == false.
  18571. The parameter "uploaded" and "downloaded" in the tracker request are
  18572. the size since the client sent the "started" event to the tracker.
  18573. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18574. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18575. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18576. getSessionDownloadedSize(), getSessionUploadedSize().
  18577. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18578. getSessionUploadedSize() instead of getDownloadedSize(),
  18579. getUploadedSize().
  18580. * src/PendingMessage.cc (processMessage): Do not send request message
  18581. if the peer is choking the client.
  18582. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18583. less than interval.
  18584. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18585. * configure.in: Added gnutls support. Added several CPP macros.
  18586. * m4/openssl.m4: Added.
  18587. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18588. readData(), peekData(). Added gnutls support.
  18589. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18590. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18591. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18592. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18593. Instead, added a check for whether setup method has executed
  18594. successfully.
  18595. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18596. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18597. * src/Makefile.am: Updated.
  18598. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18599. using whether OpenSSL or gcrypt, depending on the result of configure
  18600. script.
  18601. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18602. messageDigest.h.
  18603. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18604. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18605. Fixed memory leak.
  18606. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18607. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18608. Removed instantiation of TrackerInitCommand. Instead,
  18609. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18610. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18611. ENABLE_SSL.
  18612. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18613. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18614. If a piece is already acquired by another command, delete the request
  18615. slots for the piece.
  18616. * src/TrackerUpdateCommand.cc (execute):
  18617. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18618. Added a check whether peer list is null.
  18619. Fixed the bug that causes sending completed event to the tracker
  18620. several times.
  18621. * src/TrackerInitCommand.cc (execute):
  18622. Fixed the bug that causes sending completed event to the tracker
  18623. several times.
  18624. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18625. by using messageDigest.h.
  18626. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18627. * PeerConnection.cc: Replaced log message "keep-alive" with
  18628. "keep alive".
  18629. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18630. localhost long time.
  18631. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18632. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18633. at most 100 failure entry from the list. If with duplicate = false,
  18634. MAX_PEER_LIST is not checked.
  18635. * PeerListenCommand.cc: Fixed the argument order of log message.
  18636. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18637. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18638. Added warn().
  18639. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18640. Implemented warn().
  18641. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18642. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18643. * Request.h: Added AFTER_COMPLETED event.
  18644. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18645. instead of downloaded size and progress(%) after download completes.
  18646. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18647. message to the peer if it is interested in what localhost has
  18648. downloaded.
  18649. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18650. destination instead of just renaming it.
  18651. * TorrentMan.cc: Added deleteTempFile().
  18652. * PeerAbstractCommand.cc: do not stop execution after download
  18653. completes. This makes localhost a seeder.
  18654. * Util.{h,cc}: Added fileCopy().
  18655. * PeerListenCommand.cc: do not stop execution after download completes.
  18656. This makes localhost a seeder.
  18657. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18658. Added TorrentMan::deleteTempFile() to torrentHandler.
  18659. Initialized the variable dir as ".".
  18660. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18661. Deleted renameSingleFile().
  18662. Added copySingleFile(), deleteTempFile().
  18663. * DownloadEngine.h: Added virtual function afterEachIteration().
  18664. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18665. in onEndOfRun() to afterEachIteration().
  18666. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18667. true.
  18668. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18669. In rangedFileCopy(), added try-catch block to properly close file
  18670. descriptors.
  18671. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18672. Added afterEachIteration(), isFilenameFixed().
  18673. * Peer.cc: Changed choking strategy.
  18674. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18675. * TrackerInitCommand.cc: Send completed event only once.
  18676. * DownloadEngine.cc: Added a call to afterEachIteration().
  18677. * TrackerUpdateCommand.cc: Do not stop execution after download
  18678. completes.
  18679. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18680. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18681. received from a tracker.
  18682. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18683. Decreased the number of failure peers to delete to 0(just comment out
  18684. the line).
  18685. * Release 0.3.1
  18686. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18687. * PeerInteractionCommand.cc: added a call to
  18688. TorrentMan::unadvertisePiece in Destructor.
  18689. * PeerInteractionCommand.cc: make have message sent immediately
  18690. if the size of pending message queue is zero.
  18691. * TorrentMan.cc: set the maximum size of peer list to 250.
  18692. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18693. to deque.
  18694. * Util.cc: fixed rangedFileCopy.
  18695. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18696. to Constructor. Also, moved digest cleanup to Destructor.
  18697. * MetaFileUtil.cc: fixed memory leak
  18698. * replaced std::vector with std::deque.
  18699. * AbstractCommand.cc: casted timeout value to long long int.
  18700. * ChunkedEncoding.cc: fixed memory leak.
  18701. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18702. * SleepCommand.cc: casted timeout value to long long int.
  18703. * Data.cc: fixed memory leak.
  18704. * Data.cc: fixed toLLInt().
  18705. * BitfieldMan.cc: fixed memory leak.
  18706. * TorrentMan.cc: initialized storeDir to ".".
  18707. * TorrentMan.cc: fixed memory leak.
  18708. * TorrentMan.cc: corrected file paths of splitted files.
  18709. * PeerAbstractCommand.cc: casted timeout to long long int.
  18710. * main.cc: added delete(req) and delete(te->diskWriter).
  18711. * RequestSlot.cc: casted timeout value to long long int.
  18712. * Request.cc: fixed memory leak.
  18713. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18714. have the piece.
  18715. * Peer.{h,cc}: added hasPiece(int index).
  18716. * main.cc: corrected addCommand.
  18717. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18718. * BitTorrent protocol support added.
  18719. * Release 0.3.0
  18720. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18721. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18722. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18723. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18724. decoding did not work properly.
  18725. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18726. * DownloadEngine.h: included sys/time.h
  18727. * DownloadEngine.cc: remove sys/time.h
  18728. * Makefile.am (SUBDIRS): Add intl.
  18729. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18730. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18731. * main.cc: correct help message for --http-auth-scheme.
  18732. * main.cc: changed e-mail address for bug reports.
  18733. * ja.po: added japanese translation.
  18734. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18735. * SimpleLogger.cc: flush log file instead of stdout.
  18736. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18737. * main.cc: Fixed command-line option: max-tries
  18738. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18739. does not equal to seg.sp.
  18740. * DownloadCommand.cc: If EOF is got from the server and the total size
  18741. of file is not zero, then throw DlRetryEx.
  18742. * main.cc: Set the minium value of min-segment-size to 1024.
  18743. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18744. fails because of a regression since 0.2.0 release.
  18745. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18746. * HttpConnection.cc:
  18747. * common.h: defined the user agent name as macro
  18748. * DownloadEngine.{h, cc}:
  18749. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18750. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18751. * main.cc: Download complete/abort message is now generated by main.
  18752. * Makefile.am (SUBDIRS): Add m4.
  18753. (ACLOCAL_AMFLAGS): New variable.
  18754. (EXTRA_DIST): New variable.
  18755. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18756. * gettext: added gettext functionality
  18757. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18758. * AbstractCommand.cc:
  18759. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18760. unregister its cuid from SegmentMan.
  18761. * DownloadEngine.cc: .aria2 file was written when a downloading
  18762. failed with errors.
  18763. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18764. Added "User-Agent" header to CONNECT proxy request.
  18765. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18766. properly.
  18767. * Logger.h:
  18768. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18769. * ChunkedEncoding.cc: Added #include directive for strings.h
  18770. * Release 0.2.1
  18771. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18772. * Util.{h,cc}: added startsWith().
  18773. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18774. Util::endsWith().
  18775. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18776. * common.h: added #include directive of limit.h.
  18777. * DownloadEngine.cc: added #include directive of sys/time.h and
  18778. algorithm.
  18779. * Exception.h: added #include directive of stdio.h.
  18780. * AbstractCommand.h: added #include directive of sys/time.h.
  18781. * DownloadCommand.h: added #include directive of sys/time.h.
  18782. * *.h: added #include directive of common.h to all base classes.
  18783. subclasses' one was removed.
  18784. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18785. does not define these macros.
  18786. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18787. * Release 0.2.0
  18788. * main.cc:
  18789. * HttpInitiateConnectionCommand.{h,cc}:
  18790. * prefs.h:
  18791. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18792. We can now use GET command in http proxy.
  18793. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18794. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18795. that splits slowest segment of SegmentMan::commands vector.
  18796. This is the default split algorithm of aria2.
  18797. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18798. that splits first segment of SegmentMan::commands vector.
  18799. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18800. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18801. * Segment.h:
  18802. * SegmentMan.cc: Added speed field to Segment.h
  18803. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18804. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18805. * message.h: Change file size related %d to %lld.
  18806. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18807. * FtpInitiateConnectionCommand.{h,cc}:
  18808. * FtpNegotiationCommand.{h,cc}:
  18809. * FtpDownloadCommand.{h,cc}:
  18810. * FtpConnection.{h,cc}: Added FTP support
  18811. * SimpleLogger.cc: Log message now includes time information.
  18812. * main.cc: The value of --http-auth-scheme option is chagned from
  18813. 'BASIC' to 'basic'
  18814. * main.cc: Added --timeout command-line option.
  18815. * main.cc: Added --min-segment-size command-line option.
  18816. * main.cc: Added --max-retries command-line option.
  18817. * prefs.h: option string constants are now defined in prefs.h
  18818. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18819. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18820. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18821. with version 0.1.0's one.
  18822. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18823. * configure.in: Added --enable-ssl option to configure script.
  18824. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18825. cannot permit absoluteURI as Request-URI.
  18826. * HttpConnection.cc: Added Referer support.
  18827. * main.cc: Added referer command-line option.
  18828. * main.cc: Added rety-wait command-line option.
  18829. * Exception.h: Fixed formating bug in Exception::setMsg()
  18830. * SocketCore.{h,cc}:
  18831. * Socket.{h, cc}:
  18832. * Request.cc:
  18833. * InitiateConnectionCommandFactory.cc:
  18834. * HttpRequestCommand.cc: Added HTTPS support.
  18835. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18836. for SocketCore.
  18837. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18838. size is wrong
  18839. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18840. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18841. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18842. * Release 0.1.0