ChangeLog 704 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725
  1. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewritten SocketBuffer. Old implementation uses single std::string
  3. to store data and erase sent data, which is costly. New
  4. implementation uses deque to hold each data to avoid to mutate
  5. string.
  6. * src/SocketBuffer.cc
  7. * src/SocketBuffer.h
  8. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Removed unused FileEntry::extracted
  10. * src/FileEntry.cc
  11. * src/FileEntry.h
  12. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Wait until data arrives.
  14. * test/LpdMessageReceiverTest.cc
  15. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. In Metalink4, if size element contains invalid size, discard whole
  17. document. Added strict hash value check for metalink3/4.
  18. * src/MetalinkParserController.cc
  19. * src/MetalinkParserStateMachine.cc
  20. * src/MetalinkParserStateMachine.h
  21. * src/MetalinkParserStateV3Impl.cc
  22. * src/MetalinkParserStateV4Impl.cc
  23. * src/util.cc
  24. * src/util.h
  25. * test/MetalinkParserControllerTest.cc
  26. * test/MetalinkProcessorTest.cc
  27. * test/metalink4.xml
  28. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Added strict attribute validation for metalink4. When
  30. specification violation is found, discard the whole document.
  31. * src/ExpatMetalinkProcessor.cc
  32. * src/MetalinkParserStateMachine.cc
  33. * src/MetalinkParserStateMachine.h
  34. * src/MetalinkParserStateV4Impl.cc
  35. * src/XML2SAXMetalinkProcessor.cc
  36. * test/Makefile.am
  37. * test/MetalinkProcessorTest.cc
  38. * test/metalink4-attrs.xml: Removed
  39. * test/metalink4-dirtraversal.xml: Removed
  40. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Added test for Metaurl transaction.
  42. * src/MetalinkParserController.cc
  43. * test/MetalinkParserControllerTest.cc
  44. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Avoid costly BtMessage::toString() if info level log is not
  46. required.
  47. * src/DefaultBtInteractive.cc
  48. * src/Logger.h
  49. * src/SimpleBtMessage.cc
  50. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Reserved vector elements based on profiler results.
  52. * src/DefaultBtInteractive.cc
  53. * src/DefaultBtProgressInfoFile.cc
  54. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Avoid to calculate end() iterator in each loop. std::deque is
  56. particularly slow. Make sure that recalculate end iterator if
  57. element is erased during loop.
  58. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Use vector instead of deque for containers which is used for
  60. mostly read-only purpose.
  61. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Fixed typo
  63. * test/Makefile.am
  64. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  66. * test/Makefile.am
  67. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Small optimization: In updateTransferStatFor(), don't search peer
  69. ID twice.
  70. * src/DefaultPeerStorage.cc
  71. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Use vector instead of deque for MetalinkEntry and MetalinkResource
  73. objects.
  74. * src/Metalink2RequestGroup.cc
  75. * src/Metalink2RequestGroup.h
  76. * src/MetalinkEntry.cc
  77. * src/MetalinkEntry.h
  78. * src/MetalinkHelper.cc
  79. * src/MetalinkHelper.h
  80. * src/Metalinker.cc
  81. * src/Metalinker.h
  82. * src/main.cc
  83. * test/MetalinkEntryTest.cc
  84. * test/MetalinkHelperTest.cc
  85. * test/MetalinkProcessorTest.cc
  86. * test/MetalinkerTest.cc
  87. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Fixed the bug that grouped FileEntry objects are not used but
  89. instead all FileEntry objects are used for each metaurl group.
  90. * src/Metalink2RequestGroup.cc
  91. * test/Metalink2RequestGroupTest.cc
  92. * test/metalink4-groupbymetaurl.xml
  93. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Use vector instead of deque for ChunkChecksum.
  95. * src/ChunkChecksum.h
  96. * src/MetalinkParserController.cc
  97. * src/MetalinkParserController.h
  98. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  100. algorithm in Metalink properly
  101. * src/MetalinkParserController.cc
  102. * src/MetalinkParserController.h
  103. * src/messageDigest.cc
  104. * src/messageDigest.h
  105. * test/MetalinkProcessorTest.cc
  106. * test/metalink4.xml
  107. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Replaced null or control characters in file path with '_'. For
  109. MinGW32 build, additional characters which is not allowed in
  110. Windows kernel are also replaced. util::detectDirTraversal() now
  111. returns true if given string contains null or control characters.
  112. * src/DownloadContext.cc
  113. * src/DownloadContext.h
  114. * src/Metalink2RequestGroup.cc
  115. * src/MetalinkParserController.cc
  116. * src/bittorrent_helper.cc
  117. * src/util.cc
  118. * src/util.h
  119. * test/UtilTest.cc
  120. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Discard metalink:file if its name attribute is empty string.
  122. Removed FileEntry instantiation in
  123. MetalinkParserController::setFileLengthOfEntry()
  124. * src/MetalinkParserController.cc
  125. * src/MetalinkParserStateV3Impl.cc
  126. * src/MetalinkParserStateV4Impl.cc
  127. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Discard torrent file if path data in it contains directory
  129. traversal directives. Discard metalink:file element in Metalink3
  130. format if its name attribute contains directory traversal
  131. directives. Ignore name attribute of metalink:signature element
  132. in Metalink3 format if it contains directory traversal directives.
  133. * src/MetalinkParserStateV3Impl.cc
  134. * src/bittorrent_helper.cc
  135. * src/message.h
  136. * test/BittorrentHelperTest.cc
  137. * test/Makefile.am
  138. * test/MetalinkProcessorTest.cc
  139. * test/metalink3-dirtraversal.xml
  140. * test/test.xml
  141. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Removed useless comment
  143. * src/MetalinkParserStateV4Impl.cc
  144. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Supported name attribute of metalink::metaurl element and
  146. multi-file torrent with Metalink4. Files with same metaurl are
  147. grouped and downloaded in one RequestGroup.
  148. * src/BtDependency.cc
  149. * src/FileEntry.h
  150. * src/Metalink2RequestGroup.cc
  151. * src/Metalink2RequestGroup.h
  152. * src/MetalinkEntry.cc
  153. * src/MetalinkEntry.h
  154. * src/MetalinkHelper.cc
  155. * src/MetalinkHelper.h
  156. * src/MetalinkMetaurl.cc
  157. * src/MetalinkMetaurl.h
  158. * src/MetalinkParserController.cc
  159. * src/RequestGroup.cc
  160. * src/RequestGroup.h
  161. * src/bittorrent_helper.cc
  162. * test/BittorrentHelperTest.cc
  163. * test/BtDependencyTest.cc
  164. * test/MetalinkHelperTest.cc
  165. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  167. * src/MetalinkMetaurl.h
  168. * src/MetalinkParserController.cc
  169. * src/MetalinkParserController.h
  170. * src/MetalinkParserStateMachine.cc
  171. * src/MetalinkParserStateMachine.h
  172. * src/MetalinkParserStateV4Impl.cc
  173. * test/MetalinkProcessorTest.cc
  174. * test/metalink4-dirtraversal.xml
  175. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  177. element.
  178. * src/Makefile.am
  179. * src/Metalink2RequestGroup.cc
  180. * src/MetalinkEntry.cc
  181. * src/MetalinkEntry.h
  182. * src/MetalinkMetaurl.cc
  183. * src/MetalinkMetaurl.h
  184. * src/MetalinkParserController.cc
  185. * src/MetalinkParserController.h
  186. * src/MetalinkParserStateMachine.cc
  187. * src/MetalinkParserStateMachine.h
  188. * src/MetalinkParserStateV4Impl.cc
  189. * src/MetalinkParserStateV4Impl.h
  190. * test/MetalinkProcessorTest.cc
  191. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Added Metalink4 support. Currently, name attribute of
  193. metalink::metaurl is ignored and multi-file torrent cannot be used
  194. with Metalink4.
  195. * doc/aria2c.1.txt
  196. * src/DownloadHandlerConstants.cc
  197. * src/ExpatMetalinkProcessor.cc
  198. * src/Makefile.am
  199. * src/Metalink2RequestGroup.cc
  200. * src/MetalinkEntry.cc
  201. * src/MetalinkEntry.h
  202. * src/MetalinkParserController.cc
  203. * src/MetalinkParserController.h
  204. * src/MetalinkParserState.h
  205. * src/MetalinkParserStateImpl.cc
  206. * src/MetalinkParserStateImpl.h
  207. * src/MetalinkParserStateMachine.cc
  208. * src/MetalinkParserStateMachine.h
  209. * src/MetalinkParserStateV3Impl.cc
  210. * src/MetalinkParserStateV3Impl.h
  211. * src/MetalinkParserStateV4Impl.cc
  212. * src/MetalinkParserStateV4Impl.h
  213. * src/MetalinkResource.cc
  214. * src/MetalinkResource.h
  215. * src/Metalinker.cc
  216. * src/RequestGroup.cc
  217. * src/RequestGroup.h
  218. * src/XML2SAXMetalinkProcessor.cc
  219. * src/messageDigest.cc
  220. * src/util.cc
  221. * src/util.h
  222. * test/Makefile.am
  223. * test/MetalinkEntryTest.cc
  224. * test/MetalinkParserControllerTest.cc
  225. * test/MetalinkProcessorTest.cc
  226. * test/MetalinkerTest.cc
  227. * test/UtilTest.cc
  228. * test/metalink4-attrs.xml
  229. * test/metalink4-dirtraversal.xml
  230. * test/metalink4.xml
  231. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Added aiFlags argument to getInterfaceAddress(). Use
  233. AI_NUMERICHOST to find interface specified using
  234. --bt-lpd-interface option to avoid time-consuming address lookup.
  235. * src/BtSetup.cc
  236. * src/SocketCore.cc
  237. * src/SocketCore.h
  238. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  240. is bad in LpdMessageReceiver.
  241. * src/LpdMessage.h
  242. * src/LpdMessageReceiver.cc
  243. * src/LpdMessageReceiver.h
  244. * src/LpdReceiveMessageCommand.cc
  245. * test/LpdMessageReceiverTest.cc
  246. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Added --bt-lpd-interface option to specify the interface to use
  248. for Local Peer Discovery. LpdMessageDispatcher object now has its
  249. own socket. LpdMessageReceiver's socket is binded to multicast
  250. address to only receive multicast packets.
  251. * src/BtSetup.cc
  252. * src/LpdMessageDispatcher.cc
  253. * src/LpdMessageDispatcher.h
  254. * src/LpdMessageReceiver.cc
  255. * src/LpdMessageReceiver.h
  256. * src/LpdReceiveMessageCommand.cc
  257. * src/LpdReceiveMessageCommand.h
  258. * src/OptionHandlerFactory.cc
  259. * src/SocketCore.cc
  260. * src/SocketCore.h
  261. * src/prefs.cc
  262. * src/prefs.h
  263. * src/usage_text.h
  264. * test/LpdMessageDispatcherTest.cc
  265. * test/LpdMessageReceiverTest.cc
  266. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Put the portion of code to get interface addresses in
  268. SocketCore::bindAddress() into newly added getInterfaceAddress().
  269. * src/SocketCore.cc
  270. * src/SocketCore.h
  271. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Rewritten util::parseInt() and parseUInt()
  273. * src/util.cc
  274. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Fixed compile error with mingw32 cross compiler. Defined
  276. a2_sockopt_t as void* for the target systems other than mingw32.
  277. * src/SocketCore.cc
  278. * src/a2netcompat.h
  279. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Removed 'always true' condition
  281. * src/util.cc
  282. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Documented --bt-enable-lpd option in man page.
  284. * doc/aria2c.1.txt
  285. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Added Local Peer Discovery. It is disabled by default. Use
  287. --bt-enable-lpd to enable the function.
  288. * src/BtConstants.h
  289. * src/BtSetup.cc
  290. * src/LpdDispatchMessageCommand.cc
  291. * src/LpdDispatchMessageCommand.h
  292. * src/LpdMessage.h
  293. * src/LpdMessageDispatcher.cc
  294. * src/LpdMessageDispatcher.h
  295. * src/LpdMessageReceiver.cc
  296. * src/LpdMessageReceiver.h
  297. * src/LpdReceiveMessageCommand.cc
  298. * src/LpdReceiveMessageCommand.h
  299. * src/Makefile.am
  300. * src/OptionHandlerFactory.cc
  301. * src/Peer.cc
  302. * src/Peer.h
  303. * src/PeerInteractionCommand.cc
  304. * src/SocketCore.cc
  305. * src/SocketCore.h
  306. * src/prefs.cc
  307. * src/prefs.h
  308. * src/usage_text.h
  309. * src/util.cc
  310. * src/util.h
  311. * test/LpdMessageDispatcherTest.cc
  312. * test/LpdMessageReceiverTest.cc
  313. * test/Makefile.am
  314. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. User-defined custom request headers specified by --header option
  316. now override builtin headers if they have same name.
  317. * src/HttpRequest.cc
  318. * src/HttpRequest.h
  319. * test/HttpRequestTest.cc
  320. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Rewirtten util::isNumber()
  322. * src/util.cc
  323. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  325. because without it localized error messages are not printed
  326. correctly.
  327. * src/Platform.cc
  328. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Added unit tests for util::getContentDispositionFilename() from
  330. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  331. tests are passed.
  332. * src/util.cc
  333. * test/UtilTest.cc
  334. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  336. util.cc
  337. * src/Platform.cc
  338. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Support RFC2231 "Parameter Value Character Set and Language
  340. Information" in Content-Disposition header.
  341. * src/HttpResponse.cc
  342. * src/util.cc
  343. * src/util.h
  344. * test/UtilTest.cc
  345. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Print CXXFLAGS
  347. * configure.ac
  348. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Small optimization for A2_WOULDBLOCK(e)
  350. * src/SocketCore.cc
  351. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Removed test file
  353. * test/CookieStorageTest.cc
  354. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Check both EAGAIN and EWOULDBLOCK
  356. * src/SocketCore.cc
  357. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Removed ret == 0 checking for SSL_read(), SSL_write() and
  359. SSL_peek() because the checks are done in the caller. In
  360. SocketBuffer::send(), throw exception if nothing could be written
  361. and socket error was not EWOULDBLOCK
  362. * src/SocketBuffer.cc
  363. * src/SocketCore.cc
  364. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Fixed error code handling so that it can handle Winsock2 error
  366. code.
  367. * src/SocketCore.cc
  368. * src/SocketCore.h
  369. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Bump up version number to 1.9.0a
  371. * configure.ac
  372. * doc/aria2c.1.txt
  373. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Fixed the bug that aria2 doesn't handle return value if error
  375. occurred before download begins.
  376. * src/MultiUrlRequestInfo.cc
  377. * src/main.cc
  378. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Removed SegmentManFactory class.
  380. * src/AbstractSegmentManFactory.h
  381. * src/DefaultSegmentManFactory.cc
  382. * src/DefaultSegmentManFactory.h
  383. * src/Makefile.am
  384. * src/RequestGroup.cc
  385. * src/RequestGroup.h
  386. * src/SegmentManFactory.h
  387. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Destroyed digest context after getting calculated hash.
  389. * src/Piece.cc
  390. * src/Piece.h
  391. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Removed BitfieldManFactory class.
  393. * src/BitfieldManFactory.cc
  394. * src/BitfieldManFactory.h
  395. * src/DefaultPieceStorage.cc
  396. * src/Makefile.am
  397. * src/PeerSessionResource.cc
  398. * src/Piece.cc
  399. * src/main.cc
  400. * test/DefaultPieceStorageTest.cc
  401. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Removed unused methods from BitfieldMan class. Moved
  403. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  404. class.
  405. * src/BitfieldMan.cc
  406. * src/BitfieldMan.h
  407. * src/BitfieldManFactory.cc
  408. * src/BitfieldManFactory.h
  409. * src/bitfield.h
  410. * src/main.cc
  411. * test/BitfieldManTest.cc
  412. * test/DefaultPieceStorageTest.cc
  413. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Moved getFirstNMissingIndex to bitfield.h and made it return the
  415. number of appended indexes.
  416. * src/BitfieldMan.cc
  417. * src/BitfieldMan.h
  418. * src/Piece.cc
  419. * src/Piece.h
  420. * src/bitfield.h
  421. * test/BitfieldManTest.cc
  422. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Added more tests.
  424. * test/BitfieldManTest.cc
  425. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  427. unused block indexes at once instead of calling
  428. getFirstMissingUnusedIndex() multiple times. Made use of it in
  429. Piece class and DefaultBtRequestFactory class via Piece class.
  430. * src/BitfieldMan.cc
  431. * src/BitfieldMan.h
  432. * src/DefaultBtRequestFactory.cc
  433. * src/Piece.cc
  434. * src/Piece.h
  435. * test/BitfieldManTest.cc
  436. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Use std::make_pair(...)
  438. * src/DHTMessageTracker.cc
  439. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Use std::make_pair(...)
  441. * src/bittorrent_helper.cc
  442. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. urlencode(removeFragment(...)) in parseUrl(...)
  444. * src/Request.cc
  445. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  447. * src/AbstractCommand.cc
  448. * src/AdaptiveURISelector.cc
  449. * src/BtPieceMessage.cc
  450. * src/BtPortMessage.cc
  451. * src/CreateRequestCommand.cc
  452. * src/DHTAbstractNodeLookupTask.cc
  453. * src/DHTBucket.cc
  454. * src/DHTGetPeersCommand.cc
  455. * src/DHTMessageDispatcherImpl.cc
  456. * src/DHTMessageFactoryImpl.cc
  457. * src/DHTMessageTracker.cc
  458. * src/DHTPeerAnnounceStorage.cc
  459. * src/DHTRoutingTable.cc
  460. * src/DHTSetup.cc
  461. * src/DefaultBtAnnounce.cc
  462. * src/DefaultBtInteractive.cc
  463. * src/DefaultBtMessageDispatcher.cc
  464. * src/DefaultBtMessageReceiver.cc
  465. * src/DefaultBtProgressInfoFile.cc
  466. * src/DefaultBtRequestFactory.cc
  467. * src/DefaultPeerStorage.cc
  468. * src/DefaultPieceStorage.cc
  469. * src/DownloadCommand.cc
  470. * src/DownloadEngine.cc
  471. * src/EpollEventPoll.cc
  472. * src/FileAllocationCommand.cc
  473. * src/FileEntry.cc
  474. * src/FtpNegotiationCommand.cc
  475. * src/HandshakeExtensionMessage.cc
  476. * src/HttpListenCommand.cc
  477. * src/HttpServer.cc
  478. * src/HttpSkipResponseCommand.cc
  479. * src/IteratableChunkChecksumValidator.cc
  480. * src/Logger.h
  481. * src/MSEHandshake.cc
  482. * src/MetalinkPostDownloadHandler.cc
  483. * src/MultiDiskAdaptor.cc
  484. * src/PeerAbstractCommand.cc
  485. * src/PeerConnection.cc
  486. * src/PeerListenCommand.cc
  487. * src/PeerReceiveHandshakeCommand.cc
  488. * src/RequestGroup.cc
  489. * src/RequestGroupMan.cc
  490. * src/SegmentMan.cc
  491. * src/SelectEventPoll.cc
  492. * src/ServerStat.cc
  493. * src/SimpleBtMessage.cc
  494. * src/SocketCore.cc
  495. * src/TrackerWatcherCommand.cc
  496. * src/UTMetadataDataExtensionMessage.cc
  497. * src/UTMetadataRequestFactory.cc
  498. * src/UTMetadataRequestTracker.cc
  499. * src/XmlRpcMethod.cc
  500. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Changed log level from debug to info
  502. * src/BtDependency.cc
  503. * src/BtPostDownloadHandler.cc
  504. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Removed unused PeerSessionResource::_latency.
  506. * src/BtConstants.h
  507. * src/BtPieceMessage.cc
  508. * src/Peer.cc
  509. * src/Peer.h
  510. * src/PeerSessionResource.cc
  511. * src/PeerSessionResource.h
  512. * test/PeerSessionResourceTest.cc
  513. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Fixed the bug that --file-allocation=falloc doesn't work with
  515. single file download.
  516. * src/AbstractSingleDiskAdaptor.cc
  517. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Release 1.8.2
  519. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added Portuguese translation. Updated Ukrainian and Spanish
  521. translation. Thanks to all translators.
  522. * po/LINGUAS
  523. * po/es.po
  524. * po/pt.po
  525. * po/uk.po
  526. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Remove fragment from redirected URI.
  528. * src/Request.cc
  529. * test/RequestTest.cc
  530. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Updated po templates.
  532. * po/aria2.pot
  533. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Drop legacy ifdef for ares support and code cleanup.
  535. * src/AsyncNameResolver.cc
  536. * src/AsyncNameResolver.h
  537. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Call ares_library_init and ares_library_cleanup if they are
  539. available. Some code cleanups.
  540. * src/Platform.cc
  541. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Call ares_process_fd() each time after epoll to handle timeout.
  543. * src/EpollEventPoll.cc
  544. * src/EpollEventPoll.h
  545. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Suppressed type-cast compiler warning
  547. * src/CookieStorage.cc
  548. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Fixed compile error on Mac OS X.
  550. * src/CookieStorage.h
  551. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Removed cookietest.txt from Makefile.am
  553. * test/Makefile.am
  554. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Updated version number in man page.
  556. * doc/aria2c.1.txt
  557. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Rewritten help message for --allow-overwrite option.
  559. * doc/aria2c.1.txt
  560. * src/usage_text.h
  561. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Added bittorrent key to the response of tellStatus XML-RPC method.
  563. The associated value of the key is a struct and contains data
  564. retrieved from .torrent file, such as name, announce-list,
  565. comment, etc.
  566. * doc/aria2c.1.txt
  567. * src/XmlRpcMethodImpl.cc
  568. * src/XmlRpcMethodImpl.h
  569. * test/XmlRpcMethodTest.cc
  570. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Removed parse(std::istream&) and parse(const std::string&) from
  572. CookieParser.
  573. * src/CookieParser.cc
  574. * src/CookieParser.h
  575. * test/CookieParserTest.cc
  576. * test/cookietest.txt: Removed
  577. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Fixed the bug that cookie for domain a.b.c is not sent to the host
  579. a.b.c if no other cookies are stored. Fixed the bug that
  580. Cookie::markOriginServerOnly() is not called when cookies are
  581. loaded from file/sqlite3 database.
  582. * src/Cookie.h
  583. * src/CookieStorage.cc
  584. * src/NsCookieParser.cc
  585. * src/Sqlite3MozCookieParser.cc
  586. * test/CookieStorageTest.cc
  587. * test/NsCookieParserTest.cc
  588. * test/Sqlite3MozCookieParserTest.cc
  589. * test/cookies.sqlite
  590. * test/nscookietest.txt
  591. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  593. both _pieceStorage and _segmentMan are initialized or they are
  594. not.
  595. * src/RequestGroup.cc
  596. * src/RequestGroup.h
  597. * test/BtDependencyTest.cc
  598. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Bump up version number to 1.8.2
  600. * configure.ac
  601. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Replaced "." with A2STR::DOT_C
  603. * src/AbstractCommand.cc
  604. * src/Cookie.cc
  605. * src/DownloadContext.cc
  606. * src/FtpConnection.cc
  607. * src/RequestGroup.cc
  608. * src/util.cc
  609. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Replaced isNumberAndDotsNotation() with isNumericHost().
  611. isNumericHost() can handle IPv6 address.
  612. * src/Cookie.cc
  613. * src/CookieStorage.cc
  614. * src/util.cc
  615. * src/util.h
  616. * test/CookieTest.cc
  617. * test/UtilTest.cc
  618. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Included A2STR.h
  620. * src/CookieStorage.cc
  621. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Rewritten Cookie storage.
  623. * src/Cookie.cc
  624. * src/Cookie.h
  625. * src/CookieParser.cc
  626. * src/CookieStorage.cc
  627. * src/CookieStorage.h
  628. * src/a2functional.h
  629. * test/CookieParserTest.cc
  630. * test/CookieStorageTest.cc
  631. * test/CookieTest.cc
  632. * test/HttpResponseTest.cc
  633. * test/TestUtil.h
  634. * test/a2functionalTest.cc
  635. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Handle redirected URI which is not properly percent encoded.
  637. * src/Request.cc
  638. * test/RequestTest.cc
  639. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  641. not found' in the N times(N is where --max-file-not-found=N, N>0)
  642. in a row without single '200 OK' response.
  643. * src/RequestGroup.cc.
  644. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  646. readout by 80 characters in mingw32 build. Catch exception in
  647. DHTMessageReceiver::receiveMessage().
  648. * src/AbstractDiskWriter.cc
  649. * src/ConsoleStatCalc.cc
  650. * src/DHTMessageReceiver.cc
  651. * src/File.cc
  652. * src/RequestGroupMan.cc
  653. * src/a2io.h
  654. * test/FileTest.cc
  655. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Fixed compile error with intel compiler
  657. * src/XmlRpcMethodImpl.cc
  658. * src/XmlRpcMethodImpl.h
  659. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Release 1.8.1
  661. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Updated Swedish, Russian and Italian translations. Thanks to all
  663. translators.
  664. * po/it.po
  665. * po/ru.po
  666. * po/sv.po
  667. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Fixed broken OptionParser::findByName().
  669. * src/OptionParser.cc
  670. * test/OptionParserTest.cc
  671. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Fixed test error without BitTorrent support.
  673. * test/XmlRpcMethodTest.cc
  674. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Fixed compile error without GNUTLS/OpenSSL.
  676. * src/util.cc
  677. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Changed compression level to Z_DEFAULT_COMPRESSION.
  679. * src/GZipEncoder.cc
  680. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Added missing command line options: --http-no-cache,
  682. --bt-save-metadata and --bt-metadata-only.
  683. * doc/xmlrpc/aria2rpc
  684. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  686. client accepts gzip content encoding.
  687. * src/A2STR.cc
  688. * src/A2STR.h
  689. * src/GZipEncoder.cc
  690. * src/GZipEncoder.h
  691. * src/HttpHeader.cc
  692. * src/HttpHeader.h
  693. * src/HttpServer.cc
  694. * src/HttpServer.h
  695. * src/HttpServerBodyCommand.cc
  696. * src/HttpServerCommand.cc
  697. * src/Makefile.am
  698. * src/XmlRpcResponse.cc
  699. * src/XmlRpcResponse.h
  700. * test/GZipEncoderTest.cc
  701. * test/Makefile.am
  702. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Added XML-RPC client sample code in Python.
  704. * doc/aria2c.1.txt
  705. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Updated po templates.
  707. * po/aria2.pot
  708. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Bump up version number to 1.8.1
  710. * configure.ac
  711. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Added version number to man page. Updated copyright year in man
  713. page.
  714. * doc/aria2c.1.txt
  715. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Rewritten toTagString
  717. * src/NameMatchOptionHandler.cc
  718. * test/OptionHandlerTest.cc
  719. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Added dir and files key to the response struct of aria2.tellStatus
  721. XML-RPC method. The value associated with files key is the list
  722. of files. Its element is the same struct used in aria2.getFiles
  723. XML-RPC method. Added uris key to the response struct of
  724. aria2.getFiles XML-RPC method. The value associated with uris key
  725. is the list of URIs. Its element is the same struct used in
  726. aria2.getUris XML-RPC method.
  727. * doc/aria2c.1.txt
  728. * src/XmlRpcMethodImpl.cc
  729. * test/XmlRpcMethodTest.cc
  730. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Added aria2.getSessionInfo XML-RPC method. This method returns a
  732. struct containing Session ID, which is generated each time when
  733. aria2 is invoked.
  734. * doc/aria2c.1.txt
  735. * doc/xmlrpc/aria2rpc
  736. * src/DownloadEngine.cc
  737. * src/DownloadEngine.h
  738. * src/XmlRpcMethodFactory.cc
  739. * src/XmlRpcMethodImpl.cc
  740. * src/XmlRpcMethodImpl.h
  741. * test/XmlRpcMethodTest.cc
  742. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Moved generateRandomKey() from bittorrent_helper to util.
  744. * src/DHTBucket.cc
  745. * src/DHTNode.cc
  746. * src/bittorrent_helper.cc
  747. * src/bittorrent_helper.h
  748. * src/util.cc
  749. * src/util.h
  750. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Updated doc about GID.
  752. * doc/aria2c.1.txt
  753. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  755. accepts a negative integer. 'offset' == -1 points last download
  756. in the waiting queue and 'offset' == -2 points the download before
  757. the last download, and so on. The downloads in the response are in
  758. reversed order.
  759. * doc/aria2c.1.txt
  760. * src/XmlRpcMethodImpl.cc
  761. * src/XmlRpcMethodImpl.h
  762. * test/XmlRpcMethodTest.cc
  763. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Added --human-readable option. This option, when true is given,
  765. prints sizes and speed in human readable format(e.g., 1.2Ki,
  766. 3.4Mi) in the console readout. The default value is true and it
  767. looks exactly the same as aria2-1.8.0. So the 'new feature'
  768. appears when false is given. In this case, sizes and speed are
  769. printed without in bytes. No Ki, Mi units conversion is used.
  770. This may be useful for a program to parse the output of aria2.
  771. * doc/aria2c.1.txt
  772. * src/ConsoleStatCalc.cc
  773. * src/ConsoleStatCalc.h
  774. * src/OptionHandlerFactory.cc
  775. * src/main.cc
  776. * src/prefs.cc
  777. * src/prefs.h
  778. * src/usage_text.h
  779. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  781. option accepts empty string "". When "" is given, it erases
  782. previously defined proxy.
  783. * doc/aria2c.1.txt
  784. * src/OptionHandlerImpl.h
  785. * src/usage_text.h
  786. * test/OptionHandlerTest.cc
  787. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Code cleanup for proxy URI handling.
  789. * src/AbstractCommand.cc
  790. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Added --bt-metadata-only option. If true is given to this option,
  792. aria2 downloads metadata only. The file(s) described in metadata
  793. will not be downloaded. This option has effect only when
  794. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  795. * doc/aria2c.1.txt
  796. * src/OptionHandlerFactory.cc
  797. * src/UTMetadataPostDownloadHandler.cc
  798. * src/download_helper.cc
  799. * src/prefs.cc
  800. * src/prefs.h
  801. * src/usage_text.h
  802. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Fixed memory leak. Commands stored in std::deque<Command*> are not
  804. deleted when exception is thrown. Make sure that when passing
  805. std::deque<Command*> to function to store Commands, handle
  806. exception and delete these Commands.
  807. * src/AbstractCommand.cc
  808. * src/CheckIntegrityCommand.cc
  809. * src/FileAllocationCommand.cc
  810. * src/RequestGroup.cc
  811. * src/TrackerWatcherCommand.cc
  812. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  814. * src/A2STR.cc
  815. * src/A2STR.h
  816. * src/FtpNegotiationCommand.cc
  817. * src/HttpResponseCommand.cc
  818. * src/util.cc
  819. * src/util.h
  820. * test/UtilTest.cc
  821. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Treat --dir="" as --dir="."
  823. * src/FtpNegotiationCommand.cc
  824. * src/HttpResponseCommand.cc
  825. * src/Metalink2RequestGroup.cc
  826. * src/UTMetadataPostDownloadHandler.cc
  827. * src/bittorrent_helper.cc
  828. * src/download_helper.cc
  829. * src/util.cc
  830. * src/util.h
  831. * test/UtilTest.cc
  832. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Code clean up.
  834. * src/main.cc
  835. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Reset GID to 1 when they reach maximum value. Rewritten
  837. CUIDCounter::newID()
  838. * src/CUIDCounter.h
  839. * src/RequestGroup.cc
  840. * src/RequestGroup.h
  841. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Documented --http-no-cache option in man page.
  843. * doc/aria2c.1.txt
  844. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Added --http-no-cache option. When true is given, aria2 sends
  846. Cache-Control: no-cache and Pragma: no-cache header to avoid
  847. cached content. If false is given , these headers are not sent
  848. and you can add Cache-Control header with a directive you like
  849. using --header option.
  850. * src/HttpRequest.cc
  851. * src/HttpRequest.h
  852. * src/HttpRequestCommand.cc
  853. * src/OptionHandlerFactory.cc
  854. * src/download_helper.cc
  855. * src/prefs.cc
  856. * src/prefs.h
  857. * src/usage_text.h
  858. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Removed Logger from OptionParser. When OptionParser is used to
  860. parse options at bootstrap, LogFactory is not configured yet
  861. properly. When LogFactory is used in OptionParser, it initializes
  862. itself to return a logger which has no ability to write log to the
  863. disk.
  864. * src/OptionParser.cc
  865. * src/OptionParser.h
  866. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Added following sentance to the help message of --out option:
  868. --out option is ignored when -Z is used.
  869. * doc/aria2c.1.txt
  870. * src/usage_text.h
  871. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Added --bt-save-metadata option to -i list options.
  873. * doc/aria2c.1.txt
  874. * src/download_helper.cc
  875. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  877. additional libraries.
  878. * src/MultiUrlRequestInfo.cc
  879. * src/NameResolver.cc
  880. * src/SelectEventPoll.cc
  881. * src/SelectEventPoll.h
  882. * src/SocketCore.cc
  883. * src/SocketCore.h
  884. * src/a2netcompat.h
  885. * src/daemon.cc
  886. * src/main.cc
  887. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Fixed typo.
  889. * src/DHTMessageReceiver.cc
  890. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Fixed the bug that causes segmentation fault if unknown option is
  892. put in aria2.conf file. BUG#2928303
  893. * src/OptionParser.cc
  894. * src/OptionParser.h
  895. * src/option_processing.cc
  896. * test/OptionParserTest.cc
  897. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Ignore port message with port=0.
  899. * src/BtPortMessage.cc
  900. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Run autoupdate
  902. * configure.ac
  903. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Updated autoconf/automake auxiliary files.
  905. * INSTALL
  906. * config.guess
  907. * config.sub
  908. * depcomp
  909. * install-sh
  910. * m4/intldir.m4
  911. * missing
  912. * mkinstalldirs
  913. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Removed unused function.
  915. * src/SharedHandle.h
  916. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Find pooled socket using all cached addresses.
  918. * src/DNSCache.h
  919. * src/DownloadEngine.cc
  920. * src/DownloadEngine.h
  921. * src/InitiateConnectionCommand.cc
  922. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Updated copyright year.
  924. * src/version_usage.cc
  925. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Pool connection if _contentEncodingDecoder is used and server
  927. supports persistent connection.
  928. * src/HttpDownloadCommand.cc
  929. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Updated doc.
  931. * src/DownloadCommand.cc
  932. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Untabify. Fixed one line in copyright which is longer than 80
  934. columns.
  935. * src
  936. * test
  937. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Release 1.8.0
  939. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Updated po templates.
  941. * po/aria2.pot
  942. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Documented --bt-save-metadata option in man page.
  944. * doc/aria2c.1.txt
  945. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Fixed usage of --bt-save-metadata option.
  947. * src/usage_text.h
  948. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Updated po templates.
  950. * po/aria2.pot
  951. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  953. causes name resolution error when none of network interface has
  954. IPv4 address.
  955. * src/main.cc
  956. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Bump up version number to 1.8.0.
  958. * configure.ac
  959. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Use info hash as a filename when saving BitTorrent metadata.
  961. * src/UTMetadataPostDownloadHandler.cc
  962. * test/UTMetadataPostDownloadHandlerTest.cc
  963. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Documented system.multicall XML-RPC method in man page.
  965. * doc/aria2c.1.txt
  966. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Added signal handler for SIGHUP to save .aria2 file when terminal
  968. is closed. The handler is the same one for SIGINT and SIGTERM.
  969. * src/MultiUrlRequestInfo.cc
  970. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Defined method name in XmlRpcMethod subclasses.
  972. * src/XmlRpcMethodFactory.cc
  973. * src/XmlRpcMethodImpl.cc
  974. * src/XmlRpcMethodImpl.h
  975. * test/XmlRpcMethodTest.cc
  976. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Added system.multicall XML-RPC method.
  978. * src/XmlRpcMethod.cc
  979. * src/XmlRpcMethod.h
  980. * src/XmlRpcMethodFactory.cc
  981. * src/XmlRpcMethodImpl.cc
  982. * src/XmlRpcMethodImpl.h
  983. * test/XmlRpcMethodTest.cc
  984. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Check structure depth when decoding.
  986. * src/bencode.cc
  987. * src/bencode.h
  988. * test/BencodeTest.cc
  989. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Documented tellStopped XML-RPC method in man page.
  991. * doc/aria2c.1.txt
  992. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Added tellStopped XML-RPC method to aria2rpc.
  994. * doc/xmlrpc/aria2rpc
  995. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Added tellStopped XML-RPC method. This method returns stopped
  997. download in the specified range. It takes same parameters with
  998. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  999. * src/XmlRpcMethodFactory.cc
  1000. * src/XmlRpcMethodImpl.cc
  1001. * src/XmlRpcMethodImpl.h
  1002. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1004. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1005. when conducting unit tests because they fail if networking
  1006. interface is not configured with IPv4 address.
  1007. * src/NameResolver.cc
  1008. * src/SocketCore.cc
  1009. * src/SocketCore.h
  1010. * src/a2netcompat.h
  1011. * test/AllTest.cc
  1012. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Fixed unit test error
  1014. * test/UTMetadataPostDownloadHandlerTest.cc
  1015. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Defined static string constants for efficiency.
  1017. * src/XmlRpcMethodImpl.cc
  1018. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Added --bt-save-metadata option. When true is given, it saves
  1020. metadata as .torrent file. This option has effect only when
  1021. BitTorrent Magnet URI is used. The filename is name in metadata
  1022. with suffix .torrent. The directory to be saved is the same
  1023. directory where download file is saved. If the same file already
  1024. exists, metdata is not saved.
  1025. * src/OptionHandlerFactory.cc
  1026. * src/UTMetadataPostDownloadHandler.cc
  1027. * src/UTMetadataPostDownloadHandler.h
  1028. * src/message.h
  1029. * src/prefs.cc
  1030. * src/prefs.h
  1031. * src/usage_text.h
  1032. * test/UTMetadataDataExtensionMessageTest.cc
  1033. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added util::saveAs() function. Use it in Signature::save().
  1035. * src/Signature.cc
  1036. * src/util.cc
  1037. * src/util.h
  1038. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Upcase info hash in Magnet URI.
  1040. * doc/aria2c.1.txt
  1041. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Refactored RequestGroupMan::changeReservedGroupPosition()
  1043. * src/RequestGroupMan.cc
  1044. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Updated the description for aria2.addTorrent XML-RPC method.
  1046. * doc/aria2c.1.txt
  1047. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1048. Added changePosition to aria2rpc.
  1049. * doc/xmlrpc/aria2rpc
  1050. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Documented changePosition XML-RPC method in man page.
  1052. * doc/aria2c.1.txt
  1053. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1055. pos and how. This method changes the position of download denoted
  1056. by gid. If how is POS_SET, it moves the download to a position
  1057. relative to the beginning of the queue. If how is POS_CUR, it
  1058. moves the download to a position relative to the current
  1059. position. If how is POS_END, it moves the download to a position
  1060. relative to the end of the queue. If the destination position is
  1061. less than 0 or beyond the end of the queue, it moves the download
  1062. to the beginning or the end of the queue respectively. Returns
  1063. the destination position.
  1064. * src/RequestGroupMan.cc
  1065. * src/RequestGroupMan.h
  1066. * src/XmlRpcMethodFactory.cc
  1067. * src/XmlRpcMethodImpl.cc
  1068. * src/XmlRpcMethodImpl.h
  1069. * test/RequestGroupManTest.cc
  1070. * test/XmlRpcMethodTest.cc
  1071. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Added getOption and getGlobalOption to aria2rpc.
  1073. * doc/xmlrpc/aria2rpc
  1074. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Documented getOption and getGlobalOption XML-RPC method in man
  1076. page
  1077. * doc/aria2c.1.txt
  1078. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Added getOption and getGlobalOption XML-RPC method. getOption
  1080. takes GID as a parameter and returns its options as struct.
  1081. getGlobalOption takes no parameter and returns global
  1082. options. Because global option is used as a template for the
  1083. option of newly added downloads, it includes options returned by
  1084. getOption.
  1085. * src/Option.h
  1086. * src/XmlRpcMethodFactory.cc
  1087. * src/XmlRpcMethodImpl.cc
  1088. * src/XmlRpcMethodImpl.h
  1089. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Sort _optionHandlers in OptionParser by name in ascending order.
  1091. Use vector instead of deque for efficiency.
  1092. * src/OptionHandler.h
  1093. * src/OptionHandlerFactory.h
  1094. * src/OptionParser.cc
  1095. * src/OptionParser.h
  1096. * src/version_usage.cc
  1097. * test/OptionParserTest.cc
  1098. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Code cleanup
  1100. * src/XmlRpcMethod.cc
  1101. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Documented about followedBy and belongsTo in man page.
  1103. * doc/aria2c.1.txt
  1104. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Added following 2 keys, followedBy and belongsTo, to the response
  1106. of tellStatus.
  1107. followedBy: List of GIDs which are generated by the consequence of
  1108. this download. For example, when aria2 downloaded Metalink file,
  1109. it generates downloads described in it(see *--follow-metalink*
  1110. option). This value is useful to track these auto generated
  1111. downloads. If there is no such downloads, this key will not be
  1112. included in the response.
  1113. belongsTo: GID of a parent download. Some downloads are a part of
  1114. another download. For example, if a file in Metalink has
  1115. BitTorrent resource, the download of .torrent is a part of that
  1116. file. If this download has no parent, this key will not be
  1117. included in the response.
  1118. * src/BtPostDownloadHandler.cc
  1119. * src/DownloadResult.h
  1120. * src/Metalink2RequestGroup.cc
  1121. * src/MetalinkPostDownloadHandler.cc
  1122. * src/RequestGroup.cc
  1123. * src/RequestGroup.h
  1124. * src/UTMetadataPostDownloadHandler.cc
  1125. * src/XmlRpcMethodImpl.cc
  1126. * src/XmlRpcMethodImpl.h
  1127. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Assigned BObject in BDE() to avoid segmentation fault when calling
  1129. methods of BDE::none().
  1130. * src/BDE.cc
  1131. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Show info hash in Magnet URI in upper case letters in -S output.
  1133. * src/bittorrent_helper.cc
  1134. * test/BittorrentHelperTest.cc
  1135. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Removed old useless comment
  1137. * src/MultiUrlRequestInfo.cc
  1138. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1140. not properly used in configure script and failed to detect gnutls.
  1141. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1142. and the initialization of pkg-config is done in first occurrence
  1143. of PKG_CHECK_MODULES which is not executed because it is inside of
  1144. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1145. * configure.ac
  1146. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Release 1.7.2
  1148. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1150. true even if all downloads haven't finished, especially when
  1151. PostDownloadHandler is involved. Changed the condition so that it
  1152. only returns true if both _requestGroups and _reservedGroups are
  1153. empty.
  1154. * src/RequestGroupMan.cc
  1155. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Log listening port for BitTorrent/DHT in notice level.
  1157. * src/DHTConnectionImpl.cc
  1158. * src/PeerListenCommand.cc
  1159. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Updated po templates.
  1161. * po/aria2.pot
  1162. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Bump up version number to 1.7.2
  1164. * configure.ac
  1165. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Changed default value of --enable-dht from 'false' to 'true'.
  1167. * doc/aria2c.1.txt
  1168. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Enabled DHT by default because of Magnet URI support. To disable
  1170. DHT, use --enable-dht=false
  1171. * src/OptionHandlerFactory.cc
  1172. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Print Magnet URI in -S output.
  1174. * src/AnnounceList.cc
  1175. * src/bittorrent_helper.cc
  1176. * src/bittorrent_helper.h
  1177. * test/BittorrentHelperTest.cc
  1178. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Added --bt-prioritize-piece option to aria2rpc.
  1180. * doc/xmlrpc/aria2rpc
  1181. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Refer Magnet URI in --help. Made some cosmetic changes.
  1183. * src/version_usage.cc
  1184. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Updated -T and -M option.
  1186. * doc/aria2c.1.txt
  1187. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Fixed typo
  1189. * doc/aria2c.1.txt
  1190. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Fixed the bug that line separator is missing in horizontal bar.
  1192. * doc/xmlrpc/aria2mon
  1193. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Updated usage text for --metalink-file option.
  1195. * src/usage_text.h
  1196. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. If '-' is given as an argument to --metalink-file option, aria2
  1198. reads Metalink file from stdin.
  1199. * src/OptionHandlerFactory.cc
  1200. * src/OptionHandlerImpl.h
  1201. * src/a2io.h
  1202. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Fixed the bug that aria2 listens wrong port if --interface option
  1204. is used.
  1205. * src/SocketCore.cc
  1206. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Fixed the bug that query parameter in magnet URI is not decoded.
  1208. * src/magnet.cc
  1209. * test/MagnetTest.cc
  1210. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Specified defaultSize as an argument for easy testing.
  1212. * src/util.cc
  1213. * src/util.h
  1214. * test/UtilTest.cc
  1215. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Release 1.7.1
  1217. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Bump up version number to 1.7.1
  1219. * configure.ac
  1220. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Fixed the bug --bt-prioritize-piece=tail is not working.
  1222. * src/util.cc
  1223. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Release 1.7.0
  1225. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Updated po templates.
  1227. * po/aria2.pot
  1228. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Updated help message for --bt-prioritize-piece. Some cosmetic
  1230. changes.
  1231. * doc/aria2c.1.txt
  1232. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1234. * src/usage_text.h
  1235. * src/util.cc
  1236. * test/UtilTest.cc
  1237. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Updated Russian, Ukrainian, German and French translations.
  1239. Thanks to all translators involved.
  1240. * po/de.po
  1241. * po/fr.po
  1242. * po/ru.po
  1243. * po/uk.po
  1244. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Mentioned about pkg-config
  1246. * README
  1247. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Fixed typo. Referred --index-out option in BitTorrent notes.
  1249. * README
  1250. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1252. bind, try all addresses until success
  1253. * src/SocketCore.cc
  1254. * src/SocketCore.h
  1255. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Updated po templates.
  1257. * po/aria2.pot
  1258. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Bump up version number to 1.7.0
  1260. * configure.ac
  1261. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1263. * src/DefaultPieceStorage.cc
  1264. * src/DefaultPieceStorage.h
  1265. * src/PieceStorage.h
  1266. * src/UnknownLengthPieceStorage.cc
  1267. * src/UnknownLengthPieceStorage.h
  1268. * test/MockPieceStorage.h
  1269. * test/ProtocolDetectorTest.cc
  1270. * test/XmlRpcMethodTest.cc
  1271. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Documented in man page that if getifaddrs() is missing,
  1273. --interface option doesn't accept interface name.
  1274. * doc/aria2c.1.txt
  1275. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1277. * src/DefaultBtAnnounce.cc
  1278. * src/DefaultBtAnnounce.h
  1279. * test/DefaultBtAnnounceTest.cc
  1280. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Fixed the bug that connection is always dropped if handshake
  1282. message in extension protocol don't have metadata_size.
  1283. src/HandshakeExtensionMessage.cc
  1284. * src/HandshakeExtensionMessage.cc
  1285. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1287. text saying DHT is recommended when Magnet URI is provided.
  1288. * doc/aria2c.1.txt
  1289. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1291. URI is supplied. Notify user that they should consider enabling
  1292. DHT if they use Magnet URI.
  1293. * src/RequestGroup.cc
  1294. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Added --disable-ipv6 option to disable IPv6.
  1296. * doc/aria2c.1.txt
  1297. * src/InitiateConnectionCommand.cc
  1298. * src/NameResolver.cc
  1299. * src/NameResolver.h
  1300. * src/OptionHandlerFactory.cc
  1301. * src/main.cc
  1302. * src/prefs.cc
  1303. * src/prefs.h
  1304. * src/usage_text.h
  1305. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated usage text for --bt-prioritize-piece option.
  1307. * doc/aria2c.1.txt
  1308. * src/usage_text.h
  1309. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1311. given and PACKAGE is missing in the system or FEATURE cannot be
  1312. enabled, print error message and stop the script.
  1313. * configure.ac
  1314. * m4/aria2_arg.m4
  1315. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Halt metadata download immediately when metadata download is done.
  1317. Don't wait unresponsive tracker.
  1318. * src/ByteArrayDiskWriter.h
  1319. * src/DefaultBtInteractive.cc
  1320. * src/DefaultExtensionMessageFactory.cc
  1321. * src/DefaultExtensionMessageFactory.h
  1322. * src/PeerInteractionCommand.cc
  1323. * src/UTMetadataDataExtensionMessage.cc
  1324. * src/UTMetadataDataExtensionMessage.h
  1325. * src/UTMetadataRequestExtensionMessage.cc
  1326. * test/UTMetadataDataExtensionMessageTest.cc
  1327. * test/UTMetadataRequestExtensionMessageTest.cc
  1328. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Documented --interface option in man page.
  1330. * doc/aria2c.1.txt
  1331. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Try resolved address in the order received from the resolver.
  1333. * src/DNSCache.h
  1334. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Added debug logs.
  1336. * src/SocketCore.cc
  1337. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Fixed type of tail to uint64_t
  1339. * src/util.cc
  1340. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added --interface option. This feature binds sockets to given
  1342. interface. You can specify interface name, IP address and
  1343. hostname.
  1344. * configure.ac
  1345. * src/OptionHandlerFactory.cc
  1346. * src/SocketCore.cc
  1347. * src/SocketCore.h
  1348. * src/main.cc
  1349. * src/message.h
  1350. * src/prefs.cc
  1351. * src/prefs.h
  1352. * src/usage_text.h
  1353. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Updated man page for bt-prioritize-piece option in -i list.
  1355. * doc/aria2c.1.txt
  1356. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Added bt-prioritize-piece option to -i list.
  1358. * src/download_helper.cc
  1359. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Removed --http-auth-scheme option from man page.
  1361. * doc/aria2c.1.txt
  1362. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Removed --http-auth-scheme option since it doesn't do nothing.
  1364. * src/OptionHandlerFactory.cc
  1365. * src/prefs.cc
  1366. * src/prefs.h
  1367. * src/usage_text.h
  1368. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Adjusted the number of peer info which get_peers reply message can
  1370. carry.
  1371. * src/DHTGetPeersReplyMessage.cc
  1372. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Added extension_message_test_helper.h to aria2c_SOURCES.
  1374. * test/Makefile.am
  1375. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Documented --bt-prioritize-piece option in man page.
  1377. * doc/aria2c.1.txt
  1378. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Added option --bt-prioritize-piece. This option instruct aria2 to
  1380. try to download first and last pieces of each file first. The
  1381. argument can contain 2 keywords:head and tail. To include both
  1382. keywords, they must be separated by comma. These keywords can take
  1383. one parameter, SIZE. For example , if head=SIZE is specified,
  1384. pieces in the range of first SIZE bytes of each file get higher
  1385. priority. tail=SIZE means the range of last SIZE bytes of each
  1386. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1387. * src/DefaultPieceStorage.h
  1388. * src/Makefile.am
  1389. * src/OptionHandlerFactory.cc
  1390. * src/OptionHandlerImpl.h
  1391. * src/PriorityPieceSelector.cc
  1392. * src/PriorityPieceSelector.h
  1393. * src/RequestGroup.cc
  1394. * src/prefs.cc
  1395. * src/prefs.h
  1396. * src/usage_text.h
  1397. * src/util.cc
  1398. * src/util.h
  1399. * test/Makefile.am
  1400. * test/MockPieceSelector.h
  1401. * test/PriorityPieceSelectorTest.cc
  1402. * test/UtilTest.cc
  1403. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Fixed typo
  1405. * src/HttpRequest.h
  1406. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. In Magnet URI with tr parameter, put each announce URI in separate
  1408. tier.
  1409. * src/bittorrent_helper.cc
  1410. * test/BittorrentHelperTest.cc
  1411. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Renamed ExtensionMessage::getBencodedData() as
  1413. ExtensionMessage::getPayload()
  1414. * src/BtExtendedMessage.cc
  1415. * src/ExtensionMessage.h
  1416. * src/HandshakeExtensionMessage.cc
  1417. * src/HandshakeExtensionMessage.h
  1418. * src/UTMetadataDataExtensionMessage.cc
  1419. * src/UTMetadataDataExtensionMessage.h
  1420. * src/UTMetadataRejectExtensionMessage.cc
  1421. * src/UTMetadataRejectExtensionMessage.h
  1422. * src/UTMetadataRequestExtensionMessage.cc
  1423. * src/UTMetadataRequestExtensionMessage.h
  1424. * src/UTPexExtensionMessage.cc
  1425. * src/UTPexExtensionMessage.h
  1426. * test/HandshakeExtensionMessageTest.cc
  1427. * test/MockExtensionMessage.h
  1428. * test/UTMetadataDataExtensionMessageTest.cc
  1429. * test/UTMetadataRejectExtensionMessageTest.cc
  1430. * test/UTMetadataRequestExtensionMessageTest.cc
  1431. * test/UTPexExtensionMessageTest.cc
  1432. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Updated man page for BitTorrent Magnet URI.
  1434. * doc/aria2c.1.txt
  1435. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Call DownloadContext::setOwnerRequestGroup() in
  1437. RequestGroup::setDownloadContext().
  1438. * src/BtDependency.cc
  1439. * src/RequestGroup.cc
  1440. * src/RequestGroup.h
  1441. * src/download_helper.cc
  1442. * test/DefaultBtMessageDispatcherTest.cc
  1443. * test/DefaultExtensionMessageFactoryTest.cc
  1444. * test/HandshakeExtensionMessageTest.cc
  1445. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1447. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1448. from metadata, use new metadata2Torrent() function.
  1449. * src/BtDependency.cc
  1450. * src/UTMetadataPostDownloadHandler.cc
  1451. * src/bittorrent_helper.cc
  1452. * src/bittorrent_helper.h
  1453. * test/BittorrentHelperTest.cc
  1454. * test/BtDependencyTest.cc
  1455. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Use createRequestGroupForUri to create the download for torrent
  1457. file.
  1458. * src/Metalink2RequestGroup.cc
  1459. * test/Metalink2RequestGroupTest.cc
  1460. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Fixed typo
  1462. * src/DownloadContext.h
  1463. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Use createRequestGroupForBitTorrent()
  1465. * src/BtPostDownloadHandler.cc
  1466. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Added remove().
  1468. * src/Option.cc
  1469. * src/Option.h
  1470. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Removed options which is only valid for URIs specified in
  1472. command-line. If they are left, because op is used as a template
  1473. for new RequestGroup(such as created in XML-RPC command,
  1474. BtPostDownloadHandler etc), they causes unintentional effect.
  1475. * src/main.cc
  1476. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Refer to option value of PREF_OUT only in download_helper.
  1478. * src/FtpNegotiationCommand.cc
  1479. * src/HttpResponseCommand.cc
  1480. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1482. * src/download_helper.cc
  1483. * src/download_helper.h
  1484. * src/XmlRpcMethodImpl.cc
  1485. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Updated man page for changeOption XML-RPC method.
  1487. * doc/aria2c.1.txt
  1488. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Added --bt-max-peers option to changeOption XML-RPC method.
  1490. * src/XmlRpcMethod.cc
  1491. * src/XmlRpcMethodImpl.cc
  1492. * test/XmlRpcMethodTest.cc
  1493. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1495. * test/XmlRpcMethodTest.cc
  1496. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Removed redundant DownloadContext::hasAttribute(...) calls.
  1498. * src/ConsoleStatCalc.cc
  1499. * src/RequestGroup.cc
  1500. * src/XmlRpcMethodImpl.cc
  1501. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Changed the number of tracker request attempt from 5 to 2.
  1503. * src/TrackerWatcherCommand.cc
  1504. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Use host and protocol in original URI, because URI selector
  1506. selects URI based on original URI, not redirected one.
  1507. * src/Request.cc
  1508. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Fixed the bug which causes segmentation fault with tellWaiting
  1510. XML-RPC method when BitTorrent download is waiting. The key of
  1511. BtRegistry is changed from info hash to GID, because it is
  1512. registered per RequestGroup, not info hash.
  1513. * src/BtRegistry.cc
  1514. * src/BtRegistry.h
  1515. * src/BtSetup.cc
  1516. * src/ConsoleStatCalc.cc
  1517. * src/InitiatorMSEHandshakeCommand.cc
  1518. * src/PeerInitiateConnectionCommand.cc
  1519. * src/PeerInteractionCommand.cc
  1520. * src/PeerInteractionCommand.h
  1521. * src/PeerReceiveHandshakeCommand.cc
  1522. * src/RequestGroup.cc
  1523. * src/XmlRpcMethodImpl.cc
  1524. * test/BtRegistryTest.cc
  1525. * test/XmlRpcMethodTest.cc
  1526. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Updated man page for changeOption XML-RPC method.
  1528. * doc/aria2c.1.txt
  1529. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1531. method.
  1532. * src/XmlRpcMethod.cc
  1533. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Documented about BitTorrent Magnet URI in man page.
  1535. * doc/aria2c.1.txt
  1536. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1538. inherited to generated RequestGroup.
  1539. * src/UTMetadataPostDownloadHandler.cc
  1540. * test/UTMetadataPostDownloadHandlerTest.cc
  1541. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Prepended "[METADATA]" before dn.
  1543. * src/bittorrent_helper.cc
  1544. * test/BittorrentHelperTest.cc
  1545. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Rewritten Magnet URI parser.
  1547. * src/Makefile.am
  1548. * src/ProtocolDetector.cc
  1549. * src/bittorrent_helper.cc
  1550. * src/bittorrent_helper.h
  1551. * src/download_helper.cc
  1552. * src/magnet.cc
  1553. * src/magnet.h
  1554. * test/BittorrentHelperTest.cc
  1555. * test/MagnetTest.cc
  1556. * test/Makefile.am
  1557. * test/ProtocolDetectorTest.cc
  1558. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Use hton64
  1560. * src/base32.cc
  1561. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Added Base32 encoded BitTorrent Magnet Link support.
  1563. * src/Makefile.am
  1564. * src/base32.cc
  1565. * src/base32.h
  1566. * src/bittorrent_helper.cc
  1567. * test/Base32Test.cc
  1568. * test/BittorrentHelperTest.cc
  1569. * test/Makefile.am
  1570. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1572. supported yet. Fixed typo in method name in RequestGroup. In
  1573. metadataGetMode, don't show "Your share ratio was ..." message.
  1574. * src/DefaultBtInteractive.cc
  1575. * src/DefaultBtInteractive.h
  1576. * src/DownloadHandlerFactory.cc
  1577. * src/DownloadHandlerFactory.h
  1578. * src/HandshakeExtensionMessage.cc
  1579. * src/Makefile.am
  1580. * src/Metalink2RequestGroup.cc
  1581. * src/PeerInteractionCommand.cc
  1582. * src/RequestGroup.cc
  1583. * src/RequestGroup.h
  1584. * src/UTMetadataPostDownloadHandler.cc
  1585. * src/UTMetadataPostDownloadHandler.h
  1586. * src/download_helper.cc
  1587. * test/HandshakeExtensionMessageTest.cc
  1588. * test/Makefile.am
  1589. * test/UTMetadataPostDownloadHandlerTest.cc
  1590. * test/UTMetadataRejectExtensionMessageTest.cc
  1591. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. In metadataGetMode, don't show SEEDING.
  1593. * src/ConsoleStatCalc.cc
  1594. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Fixed ut_metadata data handling. Implemented
  1596. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1597. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1598. metadata_size is received.
  1599. * src/DefaultExtensionMessageFactory.cc
  1600. * src/DefaultExtensionMessageFactory.h
  1601. * src/HandshakeExtensionMessage.cc
  1602. * src/HandshakeExtensionMessage.h
  1603. * src/UTMetadataDataExtensionMessage.cc
  1604. * src/UTMetadataDataExtensionMessage.h
  1605. * src/UTMetadataRequestExtensionMessage.cc
  1606. * src/UTMetadataRequestFactory.cc
  1607. * src/UTMetadataRequestFactory.h
  1608. * src/UTMetadataRequestTracker.cc
  1609. * src/UTMetadataRequestTracker.h
  1610. * test/DefaultExtensionMessageFactoryTest.cc
  1611. * test/HandshakeExtensionMessageTest.cc
  1612. * test/MockBtMessage.h
  1613. * test/UTMetadataDataExtensionMessageTest.cc
  1614. * test/UTMetadataRequestExtensionMessageTest.cc
  1615. * test/UTMetadataRequestFactoryTest.cc
  1616. * test/UTMetadataRequestTrackerTest.cc
  1617. * test/extension_message_test_helper.h
  1618. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Drop connection if ut_metadata reject message is received.
  1620. * src/UTMetadataRejectExtensionMessage.cc
  1621. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1623. get high enough in that mode.
  1624. * src/ActivePeerConnectionCommand.cc
  1625. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Added BitTorrent magnet link support to ProtocolDetector.
  1627. * src/ProtocolDetector.cc
  1628. * src/ProtocolDetector.h
  1629. * test/ProtocolDetectorTest.cc
  1630. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Don't inject validator into BtMessage in metadataGetMode because
  1632. most of the checks depends on the total length of download but it
  1633. is unknown. Delegate metadataGetMode to BtMessage.
  1634. * src/DefaultBtMessageFactory.cc
  1635. * src/DefaultBtMessageFactory.h
  1636. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1638. * src/DefaultPieceStorage.h
  1639. * src/PieceStorage.h
  1640. * src/UnknownLengthPieceStorage.h
  1641. * test/MockPieceStorage.h
  1642. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Added markTotalLengthIsKnown().
  1644. * src/DownloadContext.h
  1645. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1647. missing. If metadata is missing, always use DHT when it is ready.
  1648. * src/BtSetup.cc
  1649. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Added parseMagnetLink(). Hex encoded info hash is supported.
  1651. Base32 encoded info hash is not supported yet.
  1652. * src/bittorrent_helper.cc
  1653. * src/bittorrent_helper.h
  1654. * test/BittorrentHelperTest.cc
  1655. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Added FromHex()
  1657. * src/util.cc
  1658. * src/util.h
  1659. * test/UtilTest.cc
  1660. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Added _metadataGetMode member variable. It toggles the action when
  1662. messages are received: usually they almost do nothing if
  1663. _metadataGetMode is true.
  1664. * src/AbstractBtMessage.cc
  1665. * src/AbstractBtMessage.h
  1666. * src/BtAllowedFastMessage.cc
  1667. * src/BtBitfieldMessage.cc
  1668. * src/BtCancelMessage.cc
  1669. * src/BtChokeMessage.cc
  1670. * src/BtHaveAllMessage.cc
  1671. * src/BtHaveMessage.cc
  1672. * src/BtInterestedMessage.cc
  1673. * src/BtNotInterestedMessage.cc
  1674. * src/BtPieceMessage.cc
  1675. * src/BtRejectMessage.cc
  1676. * src/BtRequestMessage.cc
  1677. * src/BtUnchokeMessage.cc
  1678. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Added bencode::decode overload functions. They have extra argument
  1680. 'end', passed by reference. 'end' points to the beyond the last
  1681. position of data used in decoding process.
  1682. * src/bencode.cc
  1683. * src/bencode.h
  1684. * test/BencodeTest.cc
  1685. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Initial support of Extension for Peers to Send Metadata
  1687. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1688. metadata from swarm.
  1689. * src/BtConstants.h
  1690. * src/DefaultBtInteractive.cc
  1691. * src/DefaultExtensionMessageFactory.cc
  1692. * src/DefaultExtensionMessageFactory.h
  1693. * src/ExtensionMessage.h
  1694. * src/ExtensionMessageRegistry.h
  1695. * src/HandshakeExtensionMessage.cc
  1696. * src/HandshakeExtensionMessage.h
  1697. * src/Makefile.am
  1698. * src/PeerConnection.h
  1699. * src/PeerInteractionCommand.cc
  1700. * src/UTMetadataDataExtensionMessage.cc
  1701. * src/UTMetadataDataExtensionMessage.h
  1702. * src/UTMetadataExtensionMessage.cc
  1703. * src/UTMetadataExtensionMessage.h
  1704. * src/UTMetadataRejectExtensionMessage.cc
  1705. * src/UTMetadataRejectExtensionMessage.h
  1706. * src/UTMetadataRequestExtensionMessage.cc
  1707. * src/UTMetadataRequestExtensionMessage.h
  1708. * src/bittorrent_helper.cc
  1709. * src/bittorrent_helper.h
  1710. * test/BittorrentHelperTest.cc
  1711. * test/DefaultExtensionMessageFactoryTest.cc
  1712. * test/HandshakeExtensionMessageTest.cc
  1713. * test/Makefile.am
  1714. * test/UTMetadataDataExtensionMessageTest.cc
  1715. * test/UTMetadataRejectExtensionMessageTest.cc
  1716. * test/UTMetadataRequestExtensionMessageTest.cc
  1717. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Cancel segment in prepareForRetry() because there is a chance that
  1719. the command has segments.
  1720. * src/CreateRequestCommand.cc
  1721. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Fixed the bug that slow server is not knocked down in favor of
  1723. faster one.
  1724. * src/AbstractCommand.cc
  1725. * src/DefaultPieceStorage.cc
  1726. * src/DefaultPieceStorage.h
  1727. * src/PieceStorage.h
  1728. * src/UnknownLengthPieceStorage.cc
  1729. * src/UnknownLengthPieceStorage.h
  1730. * test/MockPieceStorage.h
  1731. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Fixed the bug that Request object is not added to
  1733. _inFlightRequests in findFasterRequest().
  1734. * src/FileEntry.cc
  1735. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Changed the strategry of how to increase the number of outstanding
  1737. requests. Now the number is doubled if there are no outstanding
  1738. requests after receiving messages.
  1739. * src/BtConstants.h
  1740. * src/DefaultBtInteractive.cc
  1741. * src/DefaultBtInteractive.h
  1742. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Check socket for reading if there are outstanding requests.
  1744. * src/PeerInteractionCommand.cc
  1745. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Moved frequently called methods to header file so they get
  1747. inlined.
  1748. * src/RequestSlot.cc
  1749. * src/RequestSlot.h
  1750. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Copied in_addr instead of just casting from char* which might
  1752. violate strict aliasing rules.
  1753. * src/AsyncNameResolver.cc
  1754. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Use dynamic_pointer_cast
  1756. * test/BtPieceMessageTest.cc
  1757. * test/BtRequestMessageTest.cc
  1758. * test/DefaultBtRequestFactoryTest.cc
  1759. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Added testSetUrl20()
  1761. * test/RequestTest.cc
  1762. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Code cleanup
  1764. * src/bittorrent_helper.cc
  1765. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Use C++ style cast
  1767. * src/AsyncNameResolver.cc
  1768. * src/Base64.h
  1769. * src/BtBitfieldMessage.cc
  1770. * src/BtHandshakeMessage.cc
  1771. * src/DefaultBtMessageFactory.cc
  1772. * src/DefaultBtProgressInfoFile.cc
  1773. * src/EpollEventPoll.cc
  1774. * src/ExpatMetalinkProcessor.cc
  1775. * src/IteratableChecksumValidator.cc
  1776. * src/IteratableChunkChecksumValidator.cc
  1777. * src/MessageDigestHelper.cc
  1778. * src/Platform.cc
  1779. * src/RequestGroupMan.cc
  1780. * src/SingleFileAllocationIterator.cc
  1781. * src/Sqlite3MozCookieParser.cc
  1782. * src/XML2SAXMetalinkProcessor.cc
  1783. * src/Xml2XmlRpcRequestProcessor.cc
  1784. * src/util.cc
  1785. * src/util.h
  1786. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Fixed integer potential alignment problem.
  1788. * src/bitfield.h
  1789. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1791. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1792. include file ordering.
  1793. * src/PeerListProcessor.h
  1794. * src/bittorrent_helper.cc
  1795. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1797. * src/Request.cc
  1798. * src/util.cc
  1799. * src/util.h
  1800. * test/RequestTest.cc
  1801. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Rewritten util::uitos()
  1803. * src/util.h
  1804. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Code cleanup
  1806. * src/Request.cc
  1807. * src/Request.h
  1808. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. Rewritten Request::parseUrl()
  1810. * src/Request.cc
  1811. * test/RequestTest.cc
  1812. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Removed unused macro SAFE_CHARS
  1814. * src/Request.cc
  1815. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Updated doc
  1817. * src/DHTRoutingTableDeserializer.cc
  1818. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Release 1.6.3
  1820. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Removed unused function.
  1822. * test/DHTPeerAnnounceStorageTest.cc
  1823. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Only decrement cols if cols > 0
  1825. * src/ConsoleStatCalc.cc
  1826. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1828. translations. Thanks to all translators.
  1829. * po/ca.po
  1830. * po/fr.po
  1831. * po/it.po
  1832. * po/ja.po
  1833. * po/pl.po
  1834. * po/ru.po
  1835. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Updated translation template
  1837. * po
  1838. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Fixed compile error without ssl library.
  1840. * src/util.cc
  1841. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Logged received nodes in get_peers reply message.
  1843. * src/DHTAbstractNodeLookupTask.cc
  1844. * src/DHTAbstractNodeLookupTask.h
  1845. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1847. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1848. * src/DHTMessageDispatcherImpl.cc
  1849. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Don't reuse URI if Request pool is not empty.
  1851. * src/CreateRequestCommand.cc
  1852. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1854. receive get_peers request for torrent which the client is now
  1855. downloading.
  1856. * src/BtSetup.cc
  1857. * src/DHTPeerAnnounceEntry.cc
  1858. * src/DHTPeerAnnounceEntry.h
  1859. * src/DHTPeerAnnounceStorage.cc
  1860. * src/DHTPeerAnnounceStorage.h
  1861. * src/RequestGroup.cc
  1862. * test/DHTPeerAnnounceEntryTest.cc
  1863. * test/DHTPeerAnnounceStorageTest.cc
  1864. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Fixed the bug that in Windows environment new blank line is
  1866. inserted when console readout is updated.
  1867. * src/ConsoleStatCalc.cc
  1868. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Throw exception if binding listening port is failed. Removed
  1870. RequestGroupMan::getInitialCommand(). Use
  1871. fillRequestGroupFromReserver() instead. Delete commands for
  1872. RequestGroup which has errors when it is being added.
  1873. * src/BtSetup.cc
  1874. * src/DownloadEngine.cc
  1875. * src/DownloadEngine.h
  1876. * src/DownloadEngineFactory.cc
  1877. * src/MultiUrlRequestInfo.cc
  1878. * src/RequestGroupMan.cc
  1879. * src/RequestGroupMan.h
  1880. * test/RequestGroupManTest.cc
  1881. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Fixed the bug that when downloading more than one torrent,
  1883. listening port is not reported properly to tracker for 2nd or
  1884. later torrents.
  1885. * src/BtSetup.cc
  1886. * src/PeerListenCommand.cc
  1887. * src/PeerListenCommand.h
  1888. * src/RequestGroup.cc
  1889. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Bump up version number to 1.6.3
  1891. * configure.ac
  1892. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Removed Util.cc from POTFILES.in
  1894. * po/POTFILES.in
  1895. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Updated man page for previous change.
  1897. * doc/aria2c.1.txt
  1898. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. If user name is embedded but password is missing in URI, first
  1900. resolve password using .netrc. If password is found in .netrc,
  1901. then use it as password. If not, use the password specified in
  1902. --ftp-passwd.
  1903. * src/AuthConfigFactory.cc
  1904. * src/Request.cc
  1905. * src/Request.h
  1906. * test/AuthConfigFactoryTest.cc
  1907. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Fixed typo
  1909. * doc/aria2c.1.txt
  1910. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Fixed typo
  1912. * src/usage_text.h
  1913. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Added missing bitfield.cc
  1915. * src/bitfield.cc
  1916. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Renamed Util.{cc,h} as util.{cc,h}
  1918. * src/Util.cc
  1919. * src/Util.h
  1920. * src/util.cc
  1921. * src/util.h
  1922. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Moved static functions in Util class to namespace util.
  1924. * src
  1925. * test
  1926. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1928. Moved generateRandomKey to bittorrent_helper.cc.
  1929. * src/DHTBucket.cc
  1930. * src/DHTGetPeersMessage.cc
  1931. * src/DHTGetPeersReplyMessage.cc
  1932. * src/DHTMessage.cc
  1933. * src/DHTNode.cc
  1934. * src/DHTTokenTracker.cc
  1935. * src/DHTUtil.cc: Removed.
  1936. * src/DHTUtil.h: Removed.
  1937. * src/Makefile.am
  1938. * src/Util.cc
  1939. * src/Util.h
  1940. * src/bitfield.h
  1941. * src/bittorrent_helper.cc
  1942. * src/bittorrent_helper.h
  1943. * test/ARC4Test.cc
  1944. * test/BNodeTest.cc
  1945. * test/DHTAnnouncePeerMessageTest.cc
  1946. * test/DHTAnnouncePeerReplyMessageTest.cc
  1947. * test/DHTFindNodeMessageTest.cc
  1948. * test/DHTFindNodeReplyMessageTest.cc
  1949. * test/DHTGetPeersMessageTest.cc
  1950. * test/DHTGetPeersReplyMessageTest.cc
  1951. * test/DHTPingMessageTest.cc
  1952. * test/DHTPingReplyMessageTest.cc
  1953. * test/DHTTokenTrackerTest.cc
  1954. * test/DHTUtilTest.cc: Removed.
  1955. * test/Makefile.am
  1956. * test/UtilTest.cc
  1957. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Removed the call to trim() because trim() is called for each
  1959. element in split().
  1960. * src/CookieParser.cc
  1961. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Replaced Util::slice() with split()
  1963. * src/AbstractCommand.cc
  1964. * src/CookieParser.cc
  1965. * src/File.cc
  1966. * src/HttpHeaderProcessor.cc
  1967. * src/HttpRequest.cc
  1968. * src/Metalink2RequestGroup.cc
  1969. * src/MetalinkParserController.cc
  1970. * src/Netrc.cc
  1971. * src/NsCookieParser.cc
  1972. * src/ParameterizedStringParser.cc
  1973. * src/ServerStatMan.cc
  1974. * src/UriListParser.cc
  1975. * src/Util.cc
  1976. * src/Util.h
  1977. * src/bittorrent_helper.cc
  1978. * test/UtilTest.cc
  1979. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Use request->getDir() instead of "/" for embedded user/pass in
  1981. URI.
  1982. * src/AuthConfigFactory.cc
  1983. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Fixed wrong insertion point for BasicCred.
  1985. * src/AuthConfigFactory.cc
  1986. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Allowed non-regular file in LocalFilePathOptionHandler
  1988. * src/OptionHandlerImpl.h
  1989. * src/message.h
  1990. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1992. * src/Netrc.cc
  1993. * src/Util.h
  1994. * test/NetrcTest.cc
  1995. * test/sample.netrc
  1996. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Fixed typo
  1998. * src/BtDependency.cc
  1999. * src/BtRejectMessage.cc
  2000. * src/FtpConnection.cc
  2001. * src/HttpHeaderProcessor.h
  2002. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Fixed lintian report in man page
  2004. * doc/aria2c.1.txt
  2005. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Release 1.6.2
  2007. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Updated Ukrainian translation. Thanks to all translators.
  2009. * po/uk.po
  2010. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Updated translation template
  2012. * po
  2013. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Bump up version number to 1.6.2
  2015. * configure.ac
  2016. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Updated licence message in -v output.
  2018. * src/version_usage.cc
  2019. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Replaced aria2 with aria2c in help message.
  2021. * src/version_usage.cc
  2022. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2024. * src/version_usage.cc
  2025. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Quoted localedir
  2027. * src/Makefile.am
  2028. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2030. utime. Check header for utime.h.
  2031. * configure.ac
  2032. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2034. * configure.ac
  2035. * src/daemon.cc
  2036. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Don't set localedir manually. Leave it to autoconf.
  2038. * configure.ac
  2039. * src/Makefile.am
  2040. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Added --install to ACLOCAL_AMFLAGS.
  2042. Removed m4 from SUBDIRS.
  2043. Updated automake 1.11 and autoconf 2.64.
  2044. Replaced some obsolute macros with new one.
  2045. * Makefile.am
  2046. * configure.ac
  2047. * m4/aria2_arg.m4
  2048. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Removed Makefile.am in m4 directory.
  2050. * configure.ac
  2051. * m4/ChangeLog
  2052. * m4/Makefile.am
  2053. * m4/Makefile.in
  2054. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Removed unused m4 macros.
  2056. * m4/intldir.m4
  2057. * m4/inttypes.m4
  2058. * m4/isc-posix.m4
  2059. * m4/libgnutls-extra.m4
  2060. * m4/ulonglong.m4
  2061. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Fixed the bug that causes segmentation fault if
  2063. req->getCurrentUrl() contains printf formatting characters such as
  2064. %d. The statement that causes this bug is useless and removed.
  2065. * src/AbstractCommand.cc
  2066. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. * Release 1.6.1
  2068. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Updated Simplified Chinese translation. Thanks to translators.
  2070. * po/zh_CN.po
  2071. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Updated translation template
  2073. * po
  2074. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. Bump up version number to 1.6.1
  2076. * configure.ac
  2077. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Changed interval from 120 to 60 for dropping inactive peer.
  2079. * src/DefaultBtInteractive.cc
  2080. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Updated man page for --user-agent and --peer-id-prefix option.
  2082. * doc/aria2c.1.txt
  2083. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Code clean up
  2085. * src/BtPostDownloadHandler.cc
  2086. * src/ContentTypeRequestGroupCriteria.cc
  2087. * src/ContentTypeRequestGroupCriteria.h
  2088. * src/DownloadHandlerConstants.cc
  2089. * src/DownloadHandlerConstants.h
  2090. * src/DownloadHandlerFactory.cc
  2091. * src/MetalinkPostDownloadHandler.cc
  2092. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Don't save control file when aria2 exists while checking piece
  2094. hash(behavior of -V option). If control file doesn't exist when
  2095. aria2 launched, the completed length in saved control file will be
  2096. 0 byte and this confuses user. disableSaveControlFile() is called
  2097. in RequestGroup::processCheckIntegrityEntry().
  2098. enableSaveControlFile() will be called after hash checking is
  2099. done. See CheckIntegrityCommand.
  2100. * src/CheckIntegrityCommand.cc
  2101. * src/RequestGroup.cc
  2102. * src/RequestGroup.h
  2103. * src/RequestGroupMan.cc
  2104. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Included version number in Peer ID and client version. Peer ID
  2106. now starts with "aria2/VERSION-", where VERSION is
  2107. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2108. * src/DefaultBtInteractive.cc
  2109. * src/OptionHandlerFactory.cc
  2110. * src/bittorrent_helper.cc
  2111. * src/bittorrent_helper.h
  2112. * src/main.cc
  2113. * src/usage_text.h
  2114. * test/BittorrentHelperTest.cc
  2115. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Fixed memory leak.
  2117. * src/DownloadCommand.cc
  2118. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Removed server, port, user and passwd key from options before
  2120. XMLRPC::Client.call since they are not options of aria2.
  2121. * doc/xmlrpc/aria2mon
  2122. * doc/xmlrpc/aria2rpc
  2123. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Included version number in user-agent string.
  2125. * src/OptionHandlerFactory.cc
  2126. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Fixed the bug that the option values changed by XML-RPC
  2128. method(changeOption and changeGlobalOption) are overwritten to the
  2129. previous value by the next these request which doesn't contain
  2130. that option value. Supporse max-download-limit is initially 0. You
  2131. changed this value to 100K by changeOption. Then you issue
  2132. changeOption request to change max-upload-limit to 50K. This
  2133. second request doesn't contain xml-download-limit, so it is back
  2134. to initial value, 0. Another improvement is that exception is
  2135. thrown when changeOption and changeGlobalOption request contains
  2136. option name which doesn't allowed in each request.
  2137. * src/DownloadEngine.h
  2138. * src/XmlRpcMethod.cc
  2139. * src/XmlRpcMethod.h
  2140. * src/XmlRpcMethodImpl.cc
  2141. * src/download_helper.cc
  2142. * src/download_helper.h
  2143. * test/XmlRpcMethodTest.cc
  2144. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Added missing MetalinkParserStateImpl.{cc,h}
  2146. * src/MetalinkParserStateImpl.cc
  2147. * src/MetalinkParserStateImpl.h
  2148. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Put all MetalinkParserState subclasses into
  2150. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2151. * src/FileMetalinkParserState.cc: Removed
  2152. * src/FileMetalinkParserState.h: Removed
  2153. * src/FilesMetalinkParserState.cc: Removed
  2154. * src/FilesMetalinkParserState.h: Removed
  2155. * src/FinMetalinkParserState.cc: Removed
  2156. * src/FinMetalinkParserState.h: Removed
  2157. * src/HashMetalinkParserState.cc: Removed
  2158. * src/HashMetalinkParserState.h: Removed
  2159. * src/InitialMetalinkParserState.cc: Removed
  2160. * src/InitialMetalinkParserState.h: Removed
  2161. * src/LanguageMetalinkParserState.cc: Removed
  2162. * src/LanguageMetalinkParserState.h: Removed
  2163. * src/Makefile.am
  2164. * src/MetalinkMetalinkParserState.cc: Removed
  2165. * src/MetalinkMetalinkParserState.h: Removed
  2166. * src/MetalinkParserState.h
  2167. * src/MetalinkParserStateMachine.cc
  2168. * src/MetalinkParserStateMachine.h
  2169. * src/OSMetalinkParserState.cc: Removed
  2170. * src/OSMetalinkParserState.h: Removed
  2171. * src/PieceHashMetalinkParserState.cc: Removed
  2172. * src/PieceHashMetalinkParserState.h: Removed
  2173. * src/PiecesMetalinkParserState.cc: Removed
  2174. * src/PiecesMetalinkParserState.h: Removed
  2175. * src/ResourcesMetalinkParserState.cc: Removed
  2176. * src/ResourcesMetalinkParserState.h: Removed
  2177. * src/SignatureMetalinkParserState.cc: Removed
  2178. * src/SignatureMetalinkParserState.h: Removed
  2179. * src/SizeMetalinkParserState.cc: Removed
  2180. * src/SizeMetalinkParserState.h: Removed
  2181. * src/SkipTagMetalinkParserState.cc: Removed
  2182. * src/SkipTagMetalinkParserState.h: Removed
  2183. * src/URLMetalinkParserState.cc: Removed
  2184. * src/URLMetalinkParserState.h: Removed
  2185. * src/VerificationMetalinkParserState.cc: Removed
  2186. * src/VerificationMetalinkParserState.h: Removed
  2187. * src/VersionMetalinkParserState.cc: Removed
  2188. * src/VersionMetalinkParserState.h: Removed
  2189. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Move all functions in PeerMessageUtil to bittorrent_helper.
  2191. * src/BtBitfieldMessage.cc
  2192. * src/BtBitfieldMessageValidator.h
  2193. * src/BtExtendedMessage.cc
  2194. * src/BtHandshakeMessage.cc
  2195. * src/BtHandshakeMessageValidator.h
  2196. * src/BtPieceMessage.cc
  2197. * src/BtPieceMessageValidator.h
  2198. * src/BtPortMessage.cc
  2199. * src/DHTFindNodeReplyMessage.cc
  2200. * src/DHTGetPeersReplyMessage.cc
  2201. * src/DHTMessageFactoryImpl.cc
  2202. * src/DHTRoutingTableDeserializer.cc
  2203. * src/DHTRoutingTableSerializer.cc
  2204. * src/DHTTokenTracker.cc
  2205. * src/DefaultBtMessageFactory.cc
  2206. * src/IndexBtMessage.cc
  2207. * src/IndexBtMessage.h
  2208. * src/IndexBtMessageValidator.h
  2209. * src/Makefile.am
  2210. * src/PeerMessageUtil.cc: Removed.
  2211. * src/PeerMessageUtil.h: Removed.
  2212. * src/RangeBtMessage.cc
  2213. * src/RangeBtMessage.h
  2214. * src/RangeBtMessageValidator.h
  2215. * src/UTPexExtensionMessage.cc
  2216. * src/ZeroBtMessage.cc
  2217. * src/ZeroBtMessage.h
  2218. * src/bittorrent_helper.cc
  2219. * src/bittorrent_helper.h
  2220. * test/BittorrentHelperTest.cc
  2221. * test/BtAllowedFastMessageTest.cc
  2222. * test/BtBitfieldMessageTest.cc
  2223. * test/BtCancelMessageTest.cc
  2224. * test/BtChokeMessageTest.cc
  2225. * test/BtExtendedMessageTest.cc
  2226. * test/BtHandshakeMessageTest.cc
  2227. * test/BtHaveAllMessageTest.cc
  2228. * test/BtHaveMessageTest.cc
  2229. * test/BtHaveNoneMessageTest.cc
  2230. * test/BtInterestedMessageTest.cc
  2231. * test/BtNotInterestedMessageTest.cc
  2232. * test/BtPieceMessageTest.cc
  2233. * test/BtPortMessageTest.cc
  2234. * test/BtRejectMessageTest.cc
  2235. * test/BtRequestMessageTest.cc
  2236. * test/BtSuggestPieceMessageTest.cc
  2237. * test/BtUnchokeMessageTest.cc
  2238. * test/DHTFindNodeReplyMessageTest.cc
  2239. * test/DHTGetPeersReplyMessageTest.cc
  2240. * test/DHTMessageFactoryImplTest.cc
  2241. * test/DHTRoutingTableDeserializerTest.cc
  2242. * test/DHTRoutingTableSerializerTest.cc
  2243. * test/DefaultBtMessageFactoryTest.cc
  2244. * test/DefaultExtensionMessageFactoryTest.cc
  2245. * test/Makefile.am
  2246. * test/PeerListProcessorTest.cc
  2247. * test/PeerMessageUtilTest.cc: Removed.
  2248. * test/UTPexExtensionMessageTest.cc
  2249. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Limit the size of values list when sending get_peers reply.
  2251. * src/DHTGetPeersReplyMessage.cc
  2252. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. Updated banner
  2254. * doc/xmlrpc/aria2rpc
  2255. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Added missing help message for remove command.
  2257. * doc/xmlrpc/aria2rpc
  2258. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Generated configure and config.h.in
  2260. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2261. Add check for fork(), which is missing on MinGW
  2262. * src/daemon.cc
  2263. * configure.ac
  2264. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2266. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2267. Util::httpGMT().
  2268. * src/Util.cc
  2269. * src/Util.h
  2270. * test/UtilTest.cc
  2271. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. * Release 1.6.0
  2273. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Fixed a path to xmlrpc/README.txt
  2275. * doc/Makefile.am
  2276. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Added XML-RPC in -v Configuration output.
  2278. * src/FeatureConfig.cc
  2279. * src/FeatureConfig.h
  2280. * test/FeatureConfigTest.cc
  2281. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Updated Bulgarian, Russian, Slovak and Japanese
  2283. translations. Thanks to all translators.
  2284. * po/bg.po
  2285. * po/ja.po
  2286. * po/ru.po
  2287. * po/sk.po
  2288. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Removed --retry-wait option from aria2rpc
  2290. * doc/xmlrpc/aria2rpc
  2291. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Removed --retry-wait option from man page.
  2293. * doc/aria2c.1.txt
  2294. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Removed --retry-wait option since the current architecture doesn't
  2296. allow sleep for particular URI.
  2297. * src/AbstractCommand.cc
  2298. * src/OptionHandlerFactory.cc
  2299. * src/download_helper.cc
  2300. * src/prefs.cc
  2301. * src/prefs.h
  2302. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Removed Retry-After header support. Since the current architecture
  2304. doesn't allow sleep for particular URI.
  2305. * src/HttpSkipResponseCommand.cc
  2306. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Updated the help message for --daemon option.
  2308. * doc/aria2c.1.txt
  2309. * src/usage_text.h
  2310. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Added our own daemon() function for systems which desn't have
  2312. daemon(3).
  2313. * configure.ac
  2314. * src/Makefile.am
  2315. * src/daemon.cc
  2316. * src/daemon.h
  2317. * src/option_processing.cc
  2318. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Simplified File::getCurrentDir()
  2320. * src/File.cc
  2321. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Use exit() instead of _exit
  2323. * src/RequestGroupMan.cc
  2324. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Replaced "CATEGORY" with "TAGS".
  2326. * src/usage_text.h
  2327. * doc/aria2c.1.txt
  2328. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Updated the help message for --help option.
  2330. * src/usage_text.h
  2331. * doc/aria2c.1.txt
  2332. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Updated man page for added help tags.
  2334. * doc/aria2c.1.txt
  2335. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Added help category #file. Added #file tag to the options related
  2337. to downloaded file.
  2338. * src/OptionHandlerFactory.cc
  2339. * src/help_tags.h
  2340. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Added help categories: #cookie and #hook. Added #https tag to
  2342. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2343. * src/OptionHandlerFactory.cc
  2344. * src/help_tags.h
  2345. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Made MSG_NOT_FILE translatable.
  2347. * src/message.h
  2348. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Updated man page for --help option.
  2350. * doc/aria2c.1.txt
  2351. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Updated doc.
  2353. * src/XmlRpcMethod.h
  2354. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Help category now starts with "#" to distinguish a category from
  2356. keyword search. For example, "http" categroy is now "#http". You
  2357. can type "--help=#http" to get explanation of options related to
  2358. http. If '#' is omitted, then the argument is treated as a keyword
  2359. and aria2 searches options whose name includes the keyword and
  2360. print matched ones. For example, "--help=http" will show options
  2361. whose name includes "http".
  2362. * src/OptionHandlerFactory.cc
  2363. * src/help_tags.h
  2364. * src/usage_text.h
  2365. * src/version_usage.cc
  2366. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Documented missing experimental tag and newly added xml-rpc tag in
  2368. man page.
  2369. * doc/aria2c.1.txt
  2370. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Added xml-rpc help tag. Tagged xml-rpc related options with
  2372. xml-rpc tag.
  2373. * src/OptionHandlerFactory.cc
  2374. * src/help_tags.h
  2375. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Updated message when a path is not a file. Updated common message
  2377. for wrong option.
  2378. * src/OptionHandlerException.cc
  2379. * src/message.h
  2380. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Use File::isFile() instead of File::exists(). Updated message when
  2382. a path is not a file.
  2383. * src/OptionHandlerImpl.cc
  2384. * src/message.h
  2385. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Fixed the bug that server performence profile is not updated when
  2387. aria2c was terminated by emergency shutdown.
  2388. * src/TrackerWatcherCommand.cc
  2389. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Use LocalFilePathOptionHandler for -T and -M option.
  2391. Updated message of MSG_FILE_NOT_EXIST.
  2392. * src/OptionHandlerFactory.cc
  2393. * src/message.h
  2394. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Added LocalFilePathOptionHandler which check whether the specified
  2396. file path does exist or not.
  2397. * src/OptionHandlerImpl.cc
  2398. * src/message.h
  2399. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Updated wiki page URI.
  2401. * README
  2402. * doc/aria2c.1.txt
  2403. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Added README.txt for xmlrpc directory.
  2405. * doc/Makefile.am
  2406. * doc/xmlrpc/README.txt
  2407. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Bump up version number to 1.6.0.
  2409. * configure.ac
  2410. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Added XML-RPC client scripts written in ruby.
  2412. * doc/Makefile.am
  2413. * doc/xmlrpc/aria2mon
  2414. * doc/xmlrpc/aria2rpc
  2415. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Added support for IPv6 literal address in URI. Now aria2 can
  2417. handle URI such as http://[::1]/
  2418. * src/HttpRequest.cc
  2419. * src/HttpRequest.h
  2420. * src/Request.cc
  2421. * src/Request.h
  2422. * test/HttpRequestTest.cc
  2423. * test/OptionHandlerTest.cc
  2424. * test/RequestTest.cc
  2425. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2426. Fixed the bug that HTTP request header for XML-RPC request is not
  2427. parsed properly.
  2428. * src/HttpHeader.cc
  2429. * src/HttpHeaderProcessor.cc
  2430. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Fixed the bug that XML-RPC authorization might be done before HTTP
  2432. request header is fully received.
  2433. * src/HttpServerCommand.cc
  2434. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Documented --xml-rpc-listen-all option in man page.
  2436. * doc/aria2c.1.txt
  2437. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Added --xml-rpc-listen-all option. If true is given to this
  2439. option, aria2 listens incoming XML-RPC requests on all network
  2440. interfaces. If false is given, listens only on local loopback
  2441. interface. The default value is false.
  2442. * src/HttpListenCommand.cc
  2443. * src/OptionHandlerFactory.cc
  2444. * src/SocketCore.cc
  2445. * src/SocketCore.h
  2446. * src/prefs.cc
  2447. * src/prefs.h
  2448. * src/usage_text.h
  2449. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. * Release 1.5.2
  2451. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Updated Ukrainian and Russian translations. Thanks to all
  2453. translators.
  2454. * po/ru.po
  2455. * po/uk.po
  2456. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Bump up version number to 1.5.2
  2458. * configure.ac
  2459. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Get comment, comment.utf-8, created by and creation date from
  2461. .torrent file and print them in -S output.
  2462. * src/bittorrent_helper.cc
  2463. * src/bittorrent_helper.h
  2464. * test/BittorrentHelperTest.cc
  2465. * test/test.torrent
  2466. * test/utf8.torrent
  2467. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Show exact file size along in -S option output.
  2469. * src/Util.h
  2470. * src/bittorrent_helper.cc
  2471. * test/UtilTest.cc
  2472. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Avoided unnecessary memory allocation in
  2474. BitfieldMan::getCompletedLength().
  2475. * src/BitfieldMan.cc
  2476. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Fixed the bug that download fails if
  2478. SocketCore::establishConnection() throws exception and aria2
  2479. doesn't try another address.
  2480. * src/AbstractCommand.cc
  2481. * src/InitiateConnectionCommand.cc
  2482. * src/message.h
  2483. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2485. detected properly.
  2486. * m4/sqlite3.m4
  2487. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2489. because it causes compile error if PARAMS macro is defined.
  2490. * src/XmlRpcElements.cc
  2491. * src/XmlRpcElements.h
  2492. * src/XmlRpcRequestParserStateImpl.cc
  2493. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. * Release 1.5.1
  2495. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Bump up version number to 1.5.1
  2497. * configure.ac
  2498. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Fixed compile error without BitTorrent support
  2500. * src/DefaultBtProgressInfoFile.cc
  2501. * src/DownloadEngine.cc
  2502. * src/DownloadEngine.h
  2503. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Added missing '=' in Download Results
  2505. * src/RequestGroupMan.cc
  2506. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Fixed compiler warning
  2508. * src/DefaultBtProgressInfoFile.cc
  2509. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Fixed compiler warning on 32bit systems.
  2511. * src/DownloadCommand.cc
  2512. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Call flush from ServerStatMan::save()
  2514. * src/ServerStatMan.cc
  2515. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Check stream status after file is opened.
  2517. * src/CookieStorage.cc
  2518. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Rewritten Signature::save()
  2520. * src/Signature.cc
  2521. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Rewritten RequestGroupMan::saveServerStat()
  2523. * src/RequestGroupMan.cc
  2524. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Rewritten stream error handling
  2526. * src/DHTAutoSaveCommand.cc
  2527. * src/DHTRoutingTableDeserializer.cc
  2528. * src/DHTRoutingTableSerializer.cc
  2529. * src/DHTSetup.cc
  2530. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Check stream status after file is opened.
  2532. * src/DefaultBtProgressInfoFile.cc
  2533. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Rewritten stream error handling
  2535. * src/DefaultBtProgressInfoFile.cc
  2536. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Make sure that stream is closed before renaming file. Unit test
  2538. fails on mingw32 in the previous implementation.
  2539. * src/CookieStorage.cc
  2540. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Fixed the unit test error without sqlite3
  2542. * test/CookieStorageTest.cc
  2543. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Fixed the undefined reference error
  2545. * test/HttpResponseTest.cc
  2546. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. * Release 1.5.0
  2548. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2550. Ukrainian translations. Thanks to all translators.
  2551. * po/ru.po
  2552. * po/it.po
  2553. * po/da.po
  2554. * po/bg.po
  2555. * po/ja.po
  2556. * po/uk.po
  2557. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Added missing src/Logger.cc
  2559. * src/Logger.cc
  2560. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Rewritten Logger to avoiding constly virtual call.
  2562. * src/LogFactory.cc
  2563. * src/LogFactory.h
  2564. * src/Logger.h
  2565. * src/Makefile.am
  2566. * src/Makefile.in
  2567. * src/NullLogger.h: Removed.
  2568. * src/SimpleLogger.cc
  2569. * src/SimpleLogger.h
  2570. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Updated doc
  2572. * src/main.cc
  2573. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Updated debug log message
  2575. * src/AbstractCommand.cc
  2576. * src/message.h
  2577. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Avoid to create zombie process when commands specified in
  2579. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2580. X and NetBSD.
  2581. * src/main.cc
  2582. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Fixed typo
  2584. * src/usage_text.h
  2585. * doc/aria2c.1.txt
  2586. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2587. Documented 'errorCode' of tellStatus in man page.
  2588. * doc/aria2c.1.txt
  2589. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2591. This key is only available for stopped/completed downloads and its
  2592. value is the error code defined in EXIT STATUS in man page.
  2593. * src/XmlRpcMethodImpl.cc
  2594. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Fixed the bug that session download length is not updated when
  2596. PeerStat is not fastest one.
  2597. * src/SegmentMan.cc
  2598. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Updated doc.
  2600. * doc/aria2c.1.txt
  2601. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Updated doc.
  2603. * src/AbstractCommand.cc
  2604. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Handle the case when DownloadContext has no FileEntry.
  2606. * src/XmlRpcMethodImpl.cc
  2607. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Handle the situation where struct option.name is char *.
  2609. * configure.ac
  2610. * src/OptionParser.cc
  2611. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Code cleanup
  2613. * src/AbstractCommand.cc
  2614. * src/DownloadCommand.cc
  2615. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Use option of each download to create AuthConfig instead of global
  2617. option.
  2618. * src/AuthConfigFactory.cc
  2619. * src/AuthConfigFactory.h
  2620. * src/FtpNegotiationCommand.cc
  2621. * src/HttpRequest.cc
  2622. * src/HttpRequest.h
  2623. * src/HttpRequestCommand.cc
  2624. * src/HttpSkipResponseCommand.cc
  2625. * src/MultiUrlRequestInfo.cc
  2626. * test/AuthConfigFactoryTest.cc
  2627. * test/FtpConnectionTest.cc
  2628. * test/HttpRequestTest.cc
  2629. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Don't call prepareForRetry(1) if all segments are ignored in
  2631. SegmentMan.
  2632. * src/AbstractCommand.cc
  2633. * src/BitfieldMan.cc
  2634. * src/BitfieldMan.h
  2635. * src/SegmentMan.cc
  2636. * src/SegmentMan.h
  2637. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Removed FileEntry::getAssociatedUris()
  2639. * src/FileEntry.h
  2640. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Updated doc: TODO1.5 -> TODO
  2642. * src/FileEntry.cc
  2643. * src/HttpResponseCommand.cc
  2644. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2646. involved.
  2647. * src/RequestGroup.cc
  2648. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Eliminated duplicated filterBitfield initialization code.
  2650. * src/BitfieldMan.cc
  2651. * src/BitfieldMan.h
  2652. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2654. relatively naive approach, though). For DownloadFailureException,
  2655. we handle the case when req is null properly.
  2656. * src/AbstractCommand.cc
  2657. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Added function returning suffix of control file to
  2659. DefaultBtProgressInfoFile.
  2660. * src/DefaultBtProgressInfoFile.cc
  2661. * src/DefaultBtProgressInfoFile.h
  2662. * src/RequestGroup.cc
  2663. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2664. Documented getVersion in man page.
  2665. * doc/aria2c.1.txt
  2666. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Documented type of offset and num for tellWaiting xml-rpc method.
  2668. * doc/aria2c.1.txt
  2669. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Implemented getVersion xml-rpc method. This method returns struct
  2671. which has 2 key-value pairs: "version" key is associated to the
  2672. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2673. associated to the list of enabled features, such as "Async DNS",
  2674. "BitTorrent".
  2675. * src/FeatureConfig.h
  2676. * src/XmlRpcMethodFactory.cc
  2677. * src/XmlRpcMethodImpl.cc
  2678. * src/XmlRpcMethodImpl.h
  2679. * test/XmlRpcMethodTest.cc
  2680. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2682. for compatibility issue.
  2683. * src/SocketCore.cc
  2684. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Fixed compile error with openSSL
  2686. * src/bittorrent_helper.cc
  2687. * src/messageDigest.h
  2688. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Removed bad code: setting certificate type priority to key
  2690. exchange priority.
  2691. * src/SocketCore.cc
  2692. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Disconnect seeder if client is also in seed state.
  2694. * src/BtBitfieldMessage.cc
  2695. * src/BtHaveAllMessage.cc
  2696. * src/BtHaveMessage.cc
  2697. * src/message.h
  2698. * test/BtBitfieldMessageTest.cc
  2699. * test/BtHaveAllMessageTest.cc
  2700. * test/BtHaveMessageTest.cc
  2701. * test/MockPieceStorage.h
  2702. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Keep CreateRequestCommand in queue when no segment is available so
  2704. that they can pick up pieces which slow BitTorrent peers are
  2705. downloading.
  2706. * src/AbstractCommand.cc
  2707. * src/CreateRequestCommand.cc
  2708. * src/CreateRequestCommand.h
  2709. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. --bt-stop-timeout now only checks download speed.
  2711. * src/BtStopDownloadCommand.cc
  2712. * src/BtStopDownloadCommand.h
  2713. * src/BtSetup.cc
  2714. * src/usage_text.h
  2715. * doc/aria2c.1.txt
  2716. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Fixed compile error regarding BUFSIZE.
  2718. * src/DownloadCommand.cc
  2719. * src/DownloadCommand.h
  2720. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Documented tellWaiting xml-rpc method in man page.
  2722. * doc/aria2c.1.txt
  2723. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Bump up version number to 1.5.0
  2725. * configure.ac
  2726. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Removed resolved TODO1.5
  2728. * src/AbstractCommand.cc
  2729. * src/DownloadCommand.cc
  2730. * src/RequestGroup.cc
  2731. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Release pooled and in-flight Request objectsand URIResult objects
  2733. in FileEntry after download completed.
  2734. * src/DownloadContext.cc
  2735. * src/DownloadContext.h
  2736. * src/FileEntry.cc
  2737. * src/FileEntry.h
  2738. * src/RequestGroup.cc
  2739. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Set manual and source attribute in aria2c.1.txt
  2741. * doc/aria2c.1.txt
  2742. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Documented that the default value of --use-head is 'false' in man
  2744. page.
  2745. * doc/aria2c.1.txt
  2746. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Added bt-stop-timeout option to -i list.
  2748. * doc/aria2c.1.txt
  2749. * src/download_helper.cc
  2750. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Fixed typo
  2752. * doc/aria2c.1.txt
  2753. * src/usage_text.h
  2754. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Removed peer-id-prefix option from -i list.
  2756. * doc/aria2c.1.txt
  2757. * src/download_helper.cc
  2758. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Fixed typo
  2760. * doc/aria2c.1.txt
  2761. * src/usage_text.h
  2762. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Documented --bt-stop-timeout option in man page.
  2764. * doc/aria2c.1.txt
  2765. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Updated README regarding multi-file torrent web-seeding.
  2767. * doc/README.txt
  2768. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2769. Updated man page regarding multi-file torrent web-seeding.
  2770. * doc/aria2c.1.txt
  2771. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Updated doc
  2773. * src/version_usage.cc
  2774. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Winsock select() doesn't work if no socket is in FD_SET. To
  2776. overcome this problem, a dummy socket is added to FD_SET and it is
  2777. given to select().
  2778. * src/SelectEventPoll.cc
  2779. * src/SelectEventPoll.h
  2780. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Disabled --use-head option by default because --use-head=true
  2782. causes problems on some web sites.
  2783. * src/OptionHandlerFactory.cc
  2784. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Print URL List in -S option for torrent.
  2786. * src/bittorrent_helper.cc
  2787. * src/bittorrent_helper.h
  2788. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Allocate buffer in ctor of DownloadCommand.
  2790. * src/DownloadCommand.cc
  2791. * src/DownloadCommand.h
  2792. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Removed DiskAdaptor::onDownloadComplete()
  2794. * src/DirectDiskAdaptor.cc
  2795. * src/DirectDiskAdaptor.h
  2796. * src/DiskAdaptor.h
  2797. * src/MultiDiskAdaptor.cc
  2798. * src/MultiDiskAdaptor.h
  2799. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Committed missing BtStopDownloadCommand.{cc,h}
  2801. * src/BtStopDownloadCommand.cc
  2802. * src/BtStopDownloadCommand.h
  2803. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2805. download if the download speed is 0 and the number of seeder is 0
  2806. in consecutive SEC seconds. By default, this function is disabled.
  2807. * src/BtSetup.cc
  2808. * src/Makefile.am
  2809. * src/OptionHandlerFactory.cc
  2810. * src/prefs.cc
  2811. * src/prefs.h
  2812. * src/usage_text.h
  2813. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Removed the call to DiskAdaptor::onDownloadComplete() from
  2815. BtCheckIntegrityEntry and DefaultPieceStorage.
  2816. * src/BtCheckIntegrityEntry.cc
  2817. * src/DefaultPieceStorage.cc
  2818. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Commented out throw statements when number of piece is 0 to
  2820. download 0 length torrent.
  2821. * src/bittorrent_helper.cc
  2822. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Call RequestGroup::createNextCommandWithAdj() from
  2824. BtFileAllocationEntry if at least one FileEntry has URI. The
  2825. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2826. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2827. * src/BtFileAllocationEntry.cc
  2828. * src/FileEntry.h
  2829. * src/RequestGroup.cc
  2830. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Generate peer ID after SimpleRandomizer is initialized.
  2832. * src/main.cc
  2833. * src/option_processing.cc
  2834. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. Removed unused method argument.
  2836. * src/CreateRequestCommand.cc
  2837. * src/RequestGroup.cc
  2838. * src/RequestGroup.h
  2839. * src/RequestGroupMan.cc
  2840. * src/TrackerWatcherCommand.cc
  2841. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Made URI reusing function work.
  2843. * src/CreateRequestCommand.cc
  2844. * src/FileEntry.cc
  2845. * src/FileEntry.h
  2846. * test/FileEntryTest.cc
  2847. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Add formerly fastest PeerStat's sessionDownloadLength to new
  2849. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2850. bytes in a session.
  2851. * src/PeerStat.cc
  2852. * src/SegmentMan.cc
  2853. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. If pipelining is enabled, we can always pool socket.
  2855. * src/HttpDownloadCommand.cc
  2856. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. In a single file download, file size becomes known just after
  2858. downloading, set total length to FileEntry object when download
  2859. completed.
  2860. * src/DownloadCommand.cc
  2861. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Use std::vector::reserve() for fileEntries and pieceHashes in
  2863. bittorrent_helper
  2864. * src/bittorrent_helper.cc
  2865. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2866. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2867. Removed hidden option PREF_RESET_URI.
  2868. * src/AbstractCommand.cc
  2869. * src/OptionHandlerFactory.cc
  2870. * src/prefs.cc
  2871. * src/prefs.h
  2872. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Removed unused variable/function.
  2874. * src/PeerStat.h
  2875. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Show first URL in Download Results if file path is not available.
  2877. * src/FileEntry.h
  2878. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Throw exception if file path doesn't exist in FTP URL.
  2880. * src/InitiateConnectionCommandFactory.cc
  2881. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2883. * src/BitfieldMan.cc
  2884. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2886. of PeerStat in SegmentMan. peerStats is used for calculating
  2887. download speed. Therefore all active PeerStats should be in
  2888. there. Another one is _fastestPeerStats and it only contains
  2889. fastest PeerStat for each hostname/protocol pair. They are used
  2890. for updating ServerStat.
  2891. * src/DownloadCommand.cc
  2892. * src/Request.h
  2893. * src/RequestGroupMan.cc
  2894. * src/SegmentMan.cc
  2895. * src/SegmentMan.h
  2896. * test/SegmentManTest.cc
  2897. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Try all available addresses returned by DNS until it gets
  2899. connected in HTTP(S)/FTP download
  2900. * src/AbstractCommand.cc
  2901. * src/AbstractCommand.h
  2902. * src/AbstractProxyRequestCommand.cc
  2903. * src/AbstractProxyRequestCommand.h
  2904. * src/DNSCache.h
  2905. * src/DownloadEngine.cc
  2906. * src/DownloadEngine.h
  2907. * src/FtpInitiateConnectionCommand.cc
  2908. * src/FtpInitiateConnectionCommand.h
  2909. * src/FtpNegotiationCommand.cc
  2910. * src/FtpNegotiationCommand.h
  2911. * src/HttpInitiateConnectionCommand.cc
  2912. * src/HttpInitiateConnectionCommand.h
  2913. * src/HttpRequestCommand.cc
  2914. * src/HttpRequestCommand.h
  2915. * src/InitiateConnectionCommand.cc
  2916. * src/InitiateConnectionCommand.h
  2917. * test/DNSCacheTest.cc
  2918. * test/Makefile.am
  2919. * test/SimpleDNSCacheTest.cc
  2920. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Updated doc
  2922. * src/download_helper.cc
  2923. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Refactored fieldMan ctor.
  2925. * src/BitfieldMan.cc
  2926. * src/BitfieldMan.h
  2927. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Don't print "No files to download." message if -S is given.
  2929. * src/main.cc
  2930. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Set referer and method to newly created Request object.
  2932. * src/CreateRequestCommand.cc
  2933. * src/FileEntry.cc
  2934. * src/FileEntry.h
  2935. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2937. * src/AbstractCommand.cc
  2938. * src/AbstractCommand.h
  2939. * src/CreateRequestCommand.cc
  2940. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Get proxy download working
  2942. * src/AbstractProxyRequestCommand.cc
  2943. * src/AbstractProxyRequestCommand.h
  2944. * src/AbstractProxyResponseCommand.cc
  2945. * src/AbstractProxyResponseCommand.h
  2946. * src/FtpInitiateConnectionCommand.cc
  2947. * src/FtpTunnelRequestCommand.cc
  2948. * src/FtpTunnelRequestCommand.h
  2949. * src/FtpTunnelResponseCommand.cc
  2950. * src/FtpTunnelResponseCommand.h
  2951. * src/HttpInitiateConnectionCommand.cc
  2952. * src/HttpProxyRequestCommand.cc
  2953. * src/HttpProxyRequestCommand.h
  2954. * src/HttpProxyResponseCommand.cc
  2955. * src/HttpProxyResponseCommand.h
  2956. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Use SegmentMan::getSegment(cuid) for single file download.
  2958. * src/AbstractCommand.cc
  2959. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Fixed bufSize calculation
  2961. * src/DownloadCommand.cc
  2962. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Don't append "/" if base URI ends with "/".
  2964. * src/bittorrent_helper.cc
  2965. * test/url-list-multiFile.torrent
  2966. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. HTTP pipelining is now working. Fixed Segmention fault in
  2968. BitfieldMan's copy ctor.
  2969. * src/AbstractCommand.cc
  2970. * src/BitfieldMan.cc
  2971. * src/BitfieldMan.h
  2972. * src/DownloadCommand.cc
  2973. * src/HttpDownloadCommand.cc
  2974. * src/HttpRequest.cc
  2975. * src/SegmentMan.cc
  2976. * src/SegmentMan.h
  2977. * test/BitfieldManTest.cc
  2978. * test/SegmentManTest.cc
  2979. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Removed ServerHost. Same functionality is implemented using
  2981. FileEntry's in-flight Request objects.
  2982. * src/AbstractCommand.cc
  2983. * src/BtDependency.cc
  2984. * src/CreateRequestCommand.cc
  2985. * src/FileEntry.cc
  2986. * src/FileEntry.h
  2987. * src/FtpNegotiationCommand.cc
  2988. * src/HttpResponseCommand.cc
  2989. * src/Makefile.am
  2990. * src/Metalink2RequestGroup.cc
  2991. * src/RequestGroup.cc
  2992. * src/RequestGroup.h
  2993. * src/ServerHost.cc: Removed
  2994. * src/ServerHost.h: Removed
  2995. * test/BtDependencyTest.cc
  2996. * test/FileEntryTest.cc
  2997. * test/RequestGroupTest.cc
  2998. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Rewritten PeerStat handling. In the previous implementation,
  3000. faster command tries to find slower command. In this new
  3001. implementation, slower command tries to find faster command.
  3002. PeerStat is now created in each HTTP/FTP request to get download
  3003. rate correctly. If the download range is small, the download rate
  3004. tends to small and this will occur at the later stage of download.
  3005. * src/AbstractCommand.cc
  3006. * src/DownloadCommand.cc
  3007. * src/FileEntry.cc
  3008. * src/FileEntry.h
  3009. * src/Request.cc
  3010. * src/Request.h
  3011. * src/RequestGroup.h
  3012. * src/RequestGroupMan.cc
  3013. * src/SegmentMan.cc
  3014. * src/SegmentMan.h
  3015. * test/SegmentManTest.cc
  3016. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Removed _uris from RequestGroup. All functions that refer to _uris
  3018. were moved to FileEntry. Exit status code are now defined in
  3019. DownloadResultCode.h.
  3020. * src/AbstractCommand.cc
  3021. * src/AdaptiveURISelector.cc
  3022. * src/AdaptiveURISelector.h
  3023. * src/AutoSaveCommand.cc
  3024. * src/BtPostDownloadHandler.cc
  3025. * src/CheckIntegrityDispatcherCommand.cc
  3026. * src/CookieStorage.cc
  3027. * src/DHTAutoSaveCommand.cc
  3028. * src/DHTBucketRefreshCommand.cc
  3029. * src/DHTEntryPointNameResolveCommand.cc
  3030. * src/DHTInteractionCommand.cc
  3031. * src/DHTPeerAnnounceCommand.cc
  3032. * src/DHTTokenUpdateCommand.cc
  3033. * src/DlAbortEx.h
  3034. * src/DlRetryEx.h
  3035. * src/DownloadCommand.cc
  3036. * src/DownloadContext.h
  3037. * src/DownloadFailureException.h
  3038. * src/DownloadResult.h
  3039. * src/DownloadResultCode.h
  3040. * src/FeedbackURISelector.cc
  3041. * src/FeedbackURISelector.h
  3042. * src/FileEntry.cc
  3043. * src/FileEntry.h
  3044. * src/FtpNegotiationCommand.cc
  3045. * src/HttpListenCommand.cc
  3046. * src/HttpResponseCommand.cc
  3047. * src/HttpServerResponseCommand.cc
  3048. * src/HttpSkipResponseCommand.cc
  3049. * src/InOrderURISelector.cc
  3050. * src/InOrderURISelector.h
  3051. * src/Makefile.am
  3052. * src/Makefile.in
  3053. * src/Metalink2RequestGroup.cc
  3054. * src/MultiUrlRequestInfo.cc
  3055. * src/MultiUrlRequestInfo.h
  3056. * src/OptionHandlerFactory.cc
  3057. * src/PeerListenCommand.cc
  3058. * src/RecoverableException.h
  3059. * src/RequestGroup.cc
  3060. * src/RequestGroup.h
  3061. * src/RequestGroupMan.cc
  3062. * src/RequestGroupMan.h
  3063. * src/TimedHaltCommand.cc
  3064. * src/TrackerWatcherCommand.cc
  3065. * src/URIResult.cc
  3066. * src/URIResult.h
  3067. * src/URISelector.h
  3068. * src/XmlRpcMethodImpl.cc
  3069. * src/bittorrent_helper.cc
  3070. * src/bittorrent_helper.h
  3071. * src/download_helper.cc
  3072. * src/main.cc
  3073. * src/option_processing.cc
  3074. * test/BtDependencyTest.cc
  3075. * test/BtPostDownloadHandlerTest.cc
  3076. * test/CookieStorageTest.cc
  3077. * test/DefaultBtMessageDispatcherTest.cc
  3078. * test/DownloadHandlerFactoryTest.cc
  3079. * test/DownloadHelperTest.cc
  3080. * test/FeedbackURISelectorTest.cc
  3081. * test/FileEntryTest.cc
  3082. * test/InOrderURISelectorTest.cc
  3083. * test/Metalink2RequestGroupTest.cc
  3084. * test/MetalinkPostDownloadHandlerTest.cc
  3085. * test/RequestGroupManTest.cc
  3086. * test/RequestGroupTest.cc
  3087. * test/XmlRpcMethodTest.cc
  3088. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Removed MockBtContext.h
  3090. * test/Makefile.am
  3091. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Removed _currentRequest from StreamCheckIntegrityEntry and
  3093. StreamFileAllocationEntry.
  3094. * src/AbstractCommand.cc
  3095. * src/HttpResponseCommand.cc
  3096. * src/RequestGroup.cc
  3097. * src/StreamCheckIntegrityEntry.cc
  3098. * src/StreamCheckIntegrityEntry.h
  3099. * src/StreamFileAllocationEntry.cc
  3100. * src/StreamFileAllocationEntry.h
  3101. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3102. Rewritten DownloadContext and removed SingleFileDownloadContext
  3103. and BtContext and its derived classes. BitTorrent specific
  3104. attributes are now set by DownloadContext::setAttribute() with key
  3105. bittorrent::BITTORRENT.
  3106. * src/AbstractBtMessage.cc
  3107. * src/AbstractBtMessage.h
  3108. * src/AbstractCommand.cc
  3109. * src/AbstractCommand.h
  3110. * src/AbstractProxyRequestCommand.cc
  3111. * src/AbstractProxyResponseCommand.cc
  3112. * src/ActivePeerConnectionCommand.cc
  3113. * src/ActivePeerConnectionCommand.h
  3114. * src/AnnounceList.cc
  3115. * src/BtCheckIntegrityEntry.cc
  3116. * src/BtConstants.h
  3117. * src/BtContext.h: Removed
  3118. * src/BtDependency.cc
  3119. * src/BtExtendedMessage.cc
  3120. * src/BtPieceMessage.cc
  3121. * src/BtPieceMessage.h
  3122. * src/BtPostDownloadHandler.cc
  3123. * src/BtRegistry.cc
  3124. * src/BtRegistry.h
  3125. * src/BtSetup.cc
  3126. * src/CheckIntegrityCommand.cc
  3127. * src/CheckIntegrityEntry.cc
  3128. * src/ChecksumCheckIntegrityEntry.cc
  3129. * src/ConsoleStatCalc.cc
  3130. * src/ContentTypeRequestGroupCriteria.cc
  3131. * src/DHTGetPeersCommand.cc
  3132. * src/DHTGetPeersCommand.h
  3133. * src/DHTPeerLookupTask.cc
  3134. * src/DHTPeerLookupTask.h
  3135. * src/DHTTaskFactory.h
  3136. * src/DHTTaskFactoryImpl.cc
  3137. * src/DHTTaskFactoryImpl.h
  3138. * src/DefaultBtAnnounce.cc
  3139. * src/DefaultBtAnnounce.h
  3140. * src/DefaultBtContext.cc: Removed
  3141. * src/DefaultBtContext.h: Removed
  3142. * src/DefaultBtInteractive.cc
  3143. * src/DefaultBtInteractive.h
  3144. * src/DefaultBtMessageDispatcher.cc
  3145. * src/DefaultBtMessageDispatcher.h
  3146. * src/DefaultBtMessageFactory.cc
  3147. * src/DefaultBtMessageFactory.h
  3148. * src/DefaultBtMessageReceiver.cc
  3149. * src/DefaultBtMessageReceiver.h
  3150. * src/DefaultBtProgressInfoFile.cc
  3151. * src/DefaultBtRequestFactory.cc
  3152. * src/DefaultBtRequestFactory.h
  3153. * src/DefaultExtensionMessageFactory.cc
  3154. * src/DefaultExtensionMessageFactory.h
  3155. * src/DefaultPeerStorage.cc
  3156. * src/DefaultPeerStorage.h
  3157. * src/DefaultPieceStorage.cc
  3158. * src/DefaultSegmentManFactory.cc
  3159. * src/DiskAdaptor.cc
  3160. * src/DiskAdaptor.h
  3161. * src/DownloadContext.cc
  3162. * src/DownloadContext.h
  3163. * src/DownloadEngine.cc
  3164. * src/DownloadEngineFactory.cc
  3165. * src/DownloadHandler.cc
  3166. * src/DownloadResult.h
  3167. * src/FileAllocationCommand.cc
  3168. * src/FileAllocationDispatcherCommand.cc
  3169. * src/FileAllocationEntry.cc
  3170. * src/FileEntry.h
  3171. * src/FillRequestGroupCommand.cc
  3172. * src/FtpDownloadCommand.cc
  3173. * src/FtpFinishDownloadCommand.cc
  3174. * src/FtpInitiateConnectionCommand.cc
  3175. * src/FtpNegotiationCommand.cc
  3176. * src/FtpTunnelRequestCommand.cc
  3177. * src/FtpTunnelResponseCommand.cc
  3178. * src/HandshakeExtensionMessage.cc
  3179. * src/HandshakeExtensionMessage.h
  3180. * src/HaveEraseCommand.cc
  3181. * src/HttpDownloadCommand.cc
  3182. * src/HttpInitiateConnectionCommand.cc
  3183. * src/HttpProxyRequestCommand.cc
  3184. * src/HttpProxyResponseCommand.cc
  3185. * src/HttpRequest.cc
  3186. * src/HttpRequest.h
  3187. * src/HttpRequestCommand.cc
  3188. * src/HttpResponseCommand.cc
  3189. * src/HttpServerBodyCommand.cc
  3190. * src/HttpServerCommand.cc
  3191. * src/HttpSkipResponseCommand.cc
  3192. * src/InitiateConnectionCommandFactory.cc
  3193. * src/InitiatorMSEHandshakeCommand.cc
  3194. * src/InitiatorMSEHandshakeCommand.h
  3195. * src/IteratableChecksumValidator.cc
  3196. * src/IteratableChecksumValidator.h
  3197. * src/IteratableChunkChecksumValidator.cc
  3198. * src/MSEHandshake.cc
  3199. * src/MSEHandshake.h
  3200. * src/Makefile.am
  3201. * src/Makefile.in
  3202. * src/Metalink2RequestGroup.cc
  3203. * src/MetalinkPostDownloadHandler.cc
  3204. * src/MultiDiskAdaptor.cc
  3205. * src/MultiDiskAdaptor.h
  3206. * src/MultiFileAllocationIterator.cc
  3207. * src/MultiUrlRequestInfo.cc
  3208. * src/PeerChokeCommand.cc
  3209. * src/PeerChokeCommand.h
  3210. * src/PeerInitiateConnectionCommand.cc
  3211. * src/PeerInitiateConnectionCommand.h
  3212. * src/PeerInteractionCommand.cc
  3213. * src/PeerInteractionCommand.h
  3214. * src/PeerReceiveHandshakeCommand.cc
  3215. * src/PieceHashCheckIntegrityEntry.cc
  3216. * src/RealtimeCommand.cc
  3217. * src/ReceiverMSEHandshakeCommand.cc
  3218. * src/RequestGroup.cc
  3219. * src/RequestGroup.h
  3220. * src/RequestGroupEntry.cc
  3221. * src/RequestGroupMan.cc
  3222. * src/SeedCheckCommand.cc
  3223. * src/SeedCheckCommand.h
  3224. * src/SegmentMan.cc
  3225. * src/ShareRatioSeedCriteria.h
  3226. * src/SingleFileDownloadContext.cc: Removed
  3227. * src/SingleFileDownloadContext.h: Removed
  3228. * src/SleepCommand.cc
  3229. * src/StreamCheckIntegrityEntry.cc
  3230. * src/TrackerWatcherCommand.cc
  3231. * src/TrackerWatcherCommand.h
  3232. * src/UnknownLengthPieceStorage.cc
  3233. * src/Util.cc
  3234. * src/Util.h
  3235. * src/XmlRpcMethodImpl.cc
  3236. * src/bittorrent_helper.cc
  3237. * src/bittorrent_helper.h
  3238. * src/download_helper.cc
  3239. * src/main.cc
  3240. * src/option_processing.cc
  3241. * test/BitfieldManTest.cc
  3242. * test/BittorrentHelperTest.cc
  3243. * test/BtCancelMessageTest.cc
  3244. * test/BtChokeMessageTest.cc
  3245. * test/BtDependencyTest.cc
  3246. * test/BtPieceMessageTest.cc
  3247. * test/BtPostDownloadHandlerTest.cc
  3248. * test/BtRegistryTest.cc
  3249. * test/BtRejectMessageTest.cc
  3250. * test/BtRequestMessageTest.cc
  3251. * test/DHTPeerAnnounceStorageTest.cc
  3252. * test/DefaultBtAnnounceTest.cc
  3253. * test/DefaultBtContextTest.cc: Removed
  3254. * test/DefaultBtMessageDispatcherTest.cc
  3255. * test/DefaultBtMessageFactoryTest.cc
  3256. * test/DefaultBtProgressInfoFileTest.cc
  3257. * test/DefaultBtRequestFactoryTest.cc
  3258. * test/DefaultExtensionMessageFactoryTest.cc
  3259. * test/DefaultPeerStorageTest.cc
  3260. * test/DefaultPieceStorageTest.cc
  3261. * test/DirectDiskAdaptorTest.cc
  3262. * test/DownloadContextTest.cc
  3263. * test/DownloadHandlerFactoryTest.cc
  3264. * test/DownloadHelperTest.cc
  3265. * test/HandshakeExtensionMessageTest.cc
  3266. * test/HttpRequestTest.cc
  3267. * test/HttpResponseTest.cc
  3268. * test/IteratableChecksumValidatorTest.cc
  3269. * test/IteratableChunkChecksumValidatorTest.cc
  3270. * test/MSEHandshakeTest.cc
  3271. * test/Makefile.am
  3272. * test/Makefile.in
  3273. * test/Metalink2RequestGroupTest.cc
  3274. * test/MetalinkPostDownloadHandlerTest.cc
  3275. * test/MockBtContext.h: Removed
  3276. * test/MockDHTTaskFactory.h
  3277. * test/MockDownloadContext.h: Removed
  3278. * test/MockPieceStorage.h
  3279. * test/MultiDiskAdaptorTest.cc
  3280. * test/MultiFileAllocationIteratorTest.cc
  3281. * test/RequestGroupManTest.cc
  3282. * test/RequestGroupTest.cc
  3283. * test/SegmentManTest.cc
  3284. * test/ShareRatioSeedCriteriaTest.cc
  3285. * test/SingleFileDownloadContextTest.cc: Removed
  3286. * test/UtilTest.cc
  3287. * test/XmlRpcMethodTest.cc
  3288. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Added experimental support of WEB-Seeding for multi-file torrent.
  3290. Due to fundamental changes in file handling in HTTP/FTP code, many
  3291. functions are not working: PeerStat, ServerHost, proxy..etc
  3292. * src/AbstractCommand.cc
  3293. * src/AbstractCommand.h
  3294. * src/BitfieldMan.cc
  3295. * src/BitfieldMan.h
  3296. * src/CreateRequestCommand.cc
  3297. * src/CreateRequestCommand.h
  3298. * src/DefaultPieceStorage.cc
  3299. * src/DefaultPieceStorage.h
  3300. * src/DownloadCommand.cc
  3301. * src/DownloadCommand.h
  3302. * src/DownloadContext.cc
  3303. * src/DownloadContext.h
  3304. * src/FileEntry.cc
  3305. * src/FileEntry.h
  3306. * src/FtpDownloadCommand.cc
  3307. * src/FtpDownloadCommand.h
  3308. * src/FtpFinishDownloadCommand.cc
  3309. * src/FtpFinishDownloadCommand.h
  3310. * src/FtpInitiateConnectionCommand.cc
  3311. * src/FtpInitiateConnectionCommand.h
  3312. * src/FtpNegotiationCommand.cc
  3313. * src/FtpNegotiationCommand.h
  3314. * src/FtpTunnelResponseCommand.cc
  3315. * src/HttpDownloadCommand.cc
  3316. * src/HttpDownloadCommand.h
  3317. * src/HttpInitiateConnectionCommand.cc
  3318. * src/HttpInitiateConnectionCommand.h
  3319. * src/HttpProxyResponseCommand.cc
  3320. * src/HttpRequest.cc
  3321. * src/HttpRequest.h
  3322. * src/HttpRequestCommand.cc
  3323. * src/HttpRequestCommand.h
  3324. * src/HttpResponseCommand.cc
  3325. * src/HttpResponseCommand.h
  3326. * src/HttpSkipResponseCommand.cc
  3327. * src/HttpSkipResponseCommand.h
  3328. * src/InitiateConnectionCommand.cc
  3329. * src/InitiateConnectionCommand.h
  3330. * src/InitiateConnectionCommandFactory.cc
  3331. * src/InitiateConnectionCommandFactory.h
  3332. * src/Makefile.am
  3333. * src/PieceStorage.h
  3334. * src/RequestGroup.cc
  3335. * src/RequestGroup.h
  3336. * src/RequestGroupMan.cc
  3337. * src/SegmentMan.cc
  3338. * src/SegmentMan.h
  3339. * src/SingleFileDownloadContext.h
  3340. * src/StreamFileAllocationEntry.cc
  3341. * src/TrackerWatcherCommand.cc
  3342. * src/UnknownLengthPieceStorage.cc
  3343. * src/UnknownLengthPieceStorage.h
  3344. * src/array_fun.h
  3345. * src/bitfield.h
  3346. * src/download_helper.cc
  3347. * test/DownloadContextTest.cc
  3348. * test/Makefile.am
  3349. * test/MockDownloadContext.h
  3350. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Added tellWaiting XML-RPC method.
  3352. * src/SingleFileDownloadContext.cc
  3353. * src/XmlRpcMethodFactory.cc
  3354. * src/XmlRpcMethodImpl.cc
  3355. * src/XmlRpcMethodImpl.h
  3356. * test/XmlRpcMethodTest.cc
  3357. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Updated CookieStorageTest
  3359. * test/CookieStorageTest.cc
  3360. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3361. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3362. handle excepion inside these functions.
  3363. * src/LibgnutlsTLSContext.cc
  3364. * src/LibgnutlsTLSContext.h
  3365. * src/LibsslTLSContext.cc
  3366. * src/LibsslTLSContext.h
  3367. * src/MultiUrlRequestInfo.cc
  3368. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3369. Added comment
  3370. * src/RequestGroup.cc
  3371. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. In CookieStorage::load() and saveNsFormat(), handle exception
  3373. inside the functions. When saving Cookies, first write temporary
  3374. file and after successful writes, then renames it to final
  3375. destination.
  3376. * src/CookieStorage.cc
  3377. * src/CookieStorage.h
  3378. * src/MultiUrlRequestInfo.cc
  3379. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. The default value of --dir option is the absolute path to the
  3381. current directory. If getcwd() is failed, then it is ".", which is
  3382. the same value with old implementation. This change is necessary
  3383. because after daemon() call, the current working directory is
  3384. changed to /.
  3385. * src/File.cc
  3386. * src/File.h
  3387. * src/OptionHandlerFactory.cc
  3388. * src/option_processing.cc
  3389. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3390. Call daemon() with arguments(0,0), which means daemon() changes
  3391. current working directory to / and redirects stdin, stdout and
  3392. stderr to /dev/null.
  3393. * src/option_processing.cc
  3394. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3395. Small performance optimizations.
  3396. * src/RequestGroupMan.cc
  3397. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3399. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3400. * src/RequestGroupMan.cc
  3401. * src/RequestGroupMan.h
  3402. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3404. setNoWiat(true) if newly created command calls
  3405. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3406. * src/HttpListenCommand.cc
  3407. * src/HttpServerBodyCommand.cc
  3408. * src/HttpServerCommand.cc
  3409. * src/HttpServerResponseCommand.cc
  3410. * src/InitiateConnectionCommand.cc
  3411. * src/RequestGroup.cc
  3412. * src/StreamFileAllocationEntry.cc
  3413. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Removed include vector
  3415. * src/BtRegistry.h
  3416. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Rewritten BtRegistry
  3418. * src/BtRegistry.cc
  3419. * src/BtRegistry.h
  3420. * src/BtSetup.cc
  3421. * src/ConsoleStatCalc.cc
  3422. * src/PeerInteractionCommand.cc
  3423. * src/PeerReceiveHandshakeCommand.cc
  3424. * src/ReceiverMSEHandshakeCommand.cc
  3425. * src/RequestGroup.cc
  3426. * src/XmlRpcMethodImpl.cc
  3427. * test/BtRegistryTest.cc
  3428. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3430. * src/DefaultBtProgressInfoFile.cc
  3431. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Throw an exception if position is less than 0.
  3433. * src/XmlRpcMethodImpl.cc
  3434. * test/XmlRpcMethodTest.cc
  3435. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Use writeFilePath() in ConsoleStatCalc.cc
  3437. * src/ConsoleStatCalc.cc
  3438. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Receive the return value as const reference from
  3440. DownloadContext::getFileEntries().
  3441. * src/DefaultPieceStorage.cc
  3442. * src/RequestGroupMan.cc
  3443. * src/XmlRpcMethodImpl.cc
  3444. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3445. DownloadContext now has _fileEntries so that
  3446. DownloadContext::getFileEntries() can returns its const reference.
  3447. * src/DefaultBtContext.cc
  3448. * src/DefaultBtContext.h
  3449. * src/DownloadContext.cc
  3450. * src/DownloadContext.h
  3451. * src/SingleFileDownloadContext.cc
  3452. * src/SingleFileDownloadContext.h
  3453. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3455. writeFilePath() function template from RequestGroupMan.cc to
  3456. FileEntry.h
  3457. * src/FileEntry.h
  3458. * src/RequestGroupMan.cc
  3459. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Documented 'position' parameter is starting from 0 in man page.
  3461. * doc/aria2c.1.txt
  3462. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Updated doc.
  3464. * src/MSEHandshake.cc
  3465. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Removed _acceptFeatures and its accessor functions from
  3467. RequestGroup since they are not used practically.
  3468. * src/HttpRequestCommand.cc
  3469. * src/RequestGroup.cc
  3470. * src/RequestGroup.h
  3471. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Removed member _maxTries from RequestGroup class to avoid
  3473. duplicate option value. Those classes who refer this variable
  3474. should use option value of PREF_MAX_TRIES directly.
  3475. * src/AbstractCommand.cc
  3476. * src/RequestGroup.cc
  3477. * src/RequestGroup.h
  3478. * src/TrackerWatcherCommand.cc
  3479. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. * Release 1.4.1
  3481. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Fixed compiler warnings on netbsd
  3483. * src/DHTConnectionImpl.cc
  3484. * src/PeerListenCommand.cc
  3485. * src/PeerSessionResource.cc
  3486. * src/SegmentMan.cc
  3487. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Updated Ukrainian translation. Thanks to all translators.
  3489. * po/uk.po
  3490. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Bump up version number to 1.4.1.
  3492. * configure.ac
  3493. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Added unit tests for strjoin, strconcat and strappend.
  3495. * test/a2functionalTest.cc
  3496. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Rewritten strconcat and strappend using operator+ instead of
  3498. append().
  3499. * src/a2functional.h
  3500. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3502. is enabled.
  3503. * src/Makefile.am
  3504. * test/Makefile.am
  3505. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. Added countSeeder() function which counts seeder in the given
  3507. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3508. * src/ConsoleStatCalc.cc
  3509. * src/Peer.h
  3510. * src/XmlRpcMethodImpl.cc
  3511. * test/PeerTest.cc
  3512. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Documented missing seeder in getPeers xml-rpc method.
  3514. Documented uploadLength and numSeeders.
  3515. * doc/aria2c.1.txt
  3516. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Added uploadLength and numSeeders to the response of tellStatus
  3518. xml-rpc method. Assert that PeerStorage instance is not null
  3519. instead of checking if statement. It should be non-null in this
  3520. context.
  3521. * src/XmlRpcMethodImpl.cc
  3522. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3524. * src/XmlRpcResponse.cc
  3525. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. Avoid intermediate object during string concatenation.
  3527. * src/HttpRequest.cc
  3528. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Added strjoin function template. Use it in pathJoin()
  3530. * src/Util.h
  3531. * src/a2functional.h
  3532. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Avoid intermediate object during string concatenation. Replaced
  3534. post-increment unary operator with pre-increment one in for loop.
  3535. * src/AdaptiveURISelector.cc
  3536. * src/AnnounceList.cc
  3537. * src/AuthConfig.h
  3538. * src/BtBitfieldMessage.cc
  3539. * src/BtExtendedMessage.cc
  3540. * src/BtHandshakeMessage.cc
  3541. * src/BtPieceMessage.cc
  3542. * src/BtPortMessage.cc
  3543. * src/Cookie.cc
  3544. * src/DHTAnnouncePeerMessage.cc
  3545. * src/DHTAutoSaveCommand.cc
  3546. * src/DHTGetPeersReplyMessage.cc
  3547. * src/DHTNode.cc
  3548. * src/DHTQueryMessage.cc
  3549. * src/DHTResponseMessage.cc
  3550. * src/DHTUnknownMessage.cc
  3551. * src/DefaultBtAnnounce.cc
  3552. * src/DefaultBtContext.cc
  3553. * src/DefaultBtInteractive.cc
  3554. * src/DefaultBtProgressInfoFile.cc
  3555. * src/DefaultPeerStorage.cc
  3556. * src/DownloadEngine.cc
  3557. * src/FeatureConfig.cc
  3558. * src/File.cc
  3559. * src/FtpConnection.cc
  3560. * src/FtpNegotiationCommand.cc
  3561. * src/HandshakeExtensionMessage.cc
  3562. * src/HttpConnection.cc
  3563. * src/HttpRequest.cc
  3564. * src/HttpResponseCommand.cc
  3565. * src/HttpServer.cc
  3566. * src/IndexBtMessage.cc
  3567. * src/Metalink2RequestGroup.cc
  3568. * src/OptionHandlerImpl.h
  3569. * src/PStringBuildVisitor.cc
  3570. * src/Peer.cc
  3571. * src/PeerListenCommand.cc
  3572. * src/Piece.cc
  3573. * src/RangeBtMessage.cc
  3574. * src/Request.cc
  3575. * src/Request.h
  3576. * src/RequestGroup.cc
  3577. * src/RequestGroupMan.cc
  3578. * src/ServerStat.cc
  3579. * src/ServerStatMan.cc
  3580. * src/UTPexExtensionMessage.cc
  3581. * src/Util.cc
  3582. * src/a2functional.h
  3583. * src/download_helper.cc
  3584. * src/messageDigest.cc
  3585. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Unchoke a peer randomly at first and second choke round in seed
  3587. state.
  3588. * src/BtSeederStateChoke.cc
  3589. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3590. Added (sock_t) to quiet compiler warnings in MinGW
  3591. * src/SocketCore.cc
  3592. * src/SocketCore.h
  3593. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3595. * src/EpollEventPoll.h
  3596. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3597. Added fork() emulation using CreateProcess() in MinGW
  3598. * src/RequestGroupMan.cc
  3599. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. * Release 1.4.0
  3601. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Added utf8.torrent to EXTRA_DIST
  3603. * test/Makefile.am
  3604. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Fixed docs of aria2.addMetalink xml-rpc method.
  3606. * doc/aria2c.1.txt
  3607. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Added Slovak translation. Updated Ukrainian and Brazilian
  3609. Portuguese translation. Thanks to all translators.
  3610. * po/sk.po
  3611. * po/uk.po
  3612. * po/pt_BR.po
  3613. * po/LINGUAS
  3614. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Added test case for XmlRpcProcessor to fail to parse malformed
  3616. document.
  3617. * test/XmlRpcRequestProcessorTest.cc
  3618. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Removed *.gmo files in po because they are generated on 'make
  3620. dist'
  3621. * po/*.gmo
  3622. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Documented max-concurrent-downloads of changeGlobalOption method
  3624. in man page.
  3625. * doc/aria2c.1.txt
  3626. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Added max-concurrent-downloads option to changeGlobalOption
  3628. xml-rpc method. Rewritten loop conditional in
  3629. RequestGroupMan::fillRequestGroupFromReserver().
  3630. * src/RequestGroupMan.cc
  3631. * src/RequestGroupMan.h
  3632. * src/XmlRpcMethod.cc
  3633. * src/XmlRpcMethodImpl.cc
  3634. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Documented position parameter in man page.
  3636. * doc/aria2c.1.txt
  3637. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Added 'position' parameter to addUri, addTorrent and addMetalink
  3639. xml-rpc method.
  3640. * src/RequestGroupMan.cc
  3641. * src/RequestGroupMan.h
  3642. * src/XmlRpcMethodImpl.cc
  3643. * test/XmlRpcMethodTest.cc
  3644. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Removed Peer.cc from compile source list when --disable-bittorrent
  3646. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3647. takes Peer.
  3648. * src/DefaultPieceStorage.cc
  3649. * src/DefaultPieceStorage.h
  3650. * src/Makefile.am
  3651. * src/PieceStorage.h
  3652. * src/UnknownLengthPieceStorage.cc
  3653. * src/UnknownLengthPieceStorage.h
  3654. * test/MockPieceStorage.h
  3655. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Implemented getter methods in header files to give them more
  3657. chance of optimization.
  3658. Return const reference for SharadHandle if possible.
  3659. * src/AbstractAuthResolver.cc
  3660. * src/AbstractAuthResolver.h
  3661. * src/AbstractBtMessage.cc
  3662. * src/AbstractBtMessage.h
  3663. * src/AbstractSingleDiskAdaptor.cc
  3664. * src/AbstractSingleDiskAdaptor.h
  3665. * src/AsyncNameResolver.cc
  3666. * src/AsyncNameResolver.h
  3667. * src/BNode.cc
  3668. * src/BNode.h
  3669. * src/BitfieldMan.cc
  3670. * src/BitfieldMan.h
  3671. * src/BtAbortOutstandingRequestEvent.h
  3672. * src/BtExtendedMessage.cc
  3673. * src/BtExtendedMessage.h
  3674. * src/BtSeederStateChoke.cc
  3675. * src/BtSeederStateChoke.h
  3676. * src/Cookie.cc
  3677. * src/Cookie.h
  3678. * src/DHTBucket.cc
  3679. * src/DHTBucket.h
  3680. * src/DHTConnectionImpl.cc
  3681. * src/DHTConnectionImpl.h
  3682. * src/DHTFindNodeReplyMessage.cc
  3683. * src/DHTFindNodeReplyMessage.h
  3684. * src/DHTGetPeersReplyMessage.cc
  3685. * src/DHTGetPeersReplyMessage.h
  3686. * src/DHTInteractionCommand.cc
  3687. * src/DHTMessage.cc
  3688. * src/DHTMessage.h
  3689. * src/DHTMessageDispatcherImpl.cc
  3690. * src/DHTMessageEntry.cc
  3691. * src/DHTMessageReceiver.cc
  3692. * src/DHTMessageReceiver.h
  3693. * src/DHTMessageTrackerEntry.cc
  3694. * src/DHTMessageTrackerEntry.h
  3695. * src/DHTPeerAnnounceEntry.cc
  3696. * src/DHTPeerAnnounceEntry.h
  3697. * src/DHTPeerLookupTask.cc
  3698. * src/DHTPeerLookupTask.h
  3699. * src/DHTRoutingTableDeserializer.cc
  3700. * src/DHTRoutingTableDeserializer.h
  3701. * src/DefaultBtAnnounce.cc
  3702. * src/DefaultBtAnnounce.h
  3703. * src/DefaultBtMessageDispatcher.cc
  3704. * src/DefaultBtMessageDispatcher.h
  3705. * src/DefaultBtRequestFactory.cc
  3706. * src/DefaultBtRequestFactory.h
  3707. * src/DiskAdaptor.cc
  3708. * src/DiskAdaptor.h
  3709. * src/DownloadContext.cc
  3710. * src/DownloadContext.h
  3711. * src/DownloadEngine.cc
  3712. * src/DownloadEngine.h
  3713. * src/EpollEventPoll.cc
  3714. * src/EpollEventPoll.h
  3715. * src/FtpConnection.cc
  3716. * src/FtpConnection.h
  3717. * src/HttpConnection.cc
  3718. * src/HttpConnection.h
  3719. * src/HttpHeader.cc
  3720. * src/HttpHeader.h
  3721. * src/HttpRequest.cc
  3722. * src/HttpRequest.h
  3723. * src/HttpResponse.cc
  3724. * src/HttpResponse.h
  3725. * src/LibsslTLSContext.cc
  3726. * src/LibsslTLSContext.h
  3727. * src/MSEHandshake.cc
  3728. * src/MSEHandshake.h
  3729. * src/MetalinkEntry.cc
  3730. * src/MetalinkEntry.h
  3731. * src/MetalinkParserController.cc
  3732. * src/MetalinkParserController.h
  3733. * src/MetalinkParserStateMachine.cc
  3734. * src/MetalinkParserStateMachine.h
  3735. * src/MultiDiskAdaptor.cc
  3736. * src/MultiDiskAdaptor.h
  3737. * src/NetrcAuthResolver.cc
  3738. * src/NetrcAuthResolver.h
  3739. * src/Peer.cc
  3740. * src/Peer.h
  3741. * src/PeerSessionResource.cc
  3742. * src/PeerSessionResource.h
  3743. * src/Piece.cc
  3744. * src/Piece.h
  3745. * src/PieceStatMan.cc
  3746. * src/PieceStatMan.h
  3747. * src/Request.cc
  3748. * src/Request.h
  3749. * src/RequestGroup.cc
  3750. * src/RequestGroup.h
  3751. * src/RequestGroupMan.cc
  3752. * src/RequestGroupMan.h
  3753. * src/RequestSlot.cc
  3754. * src/RequestSlot.h
  3755. * src/SegmentMan.cc
  3756. * src/SegmentMan.h
  3757. * src/SelectEventPoll.cc
  3758. * src/SelectEventPoll.h
  3759. * src/ServerStat.cc
  3760. * src/ServerStat.h
  3761. * src/Signature.cc
  3762. * src/Signature.h
  3763. * src/URIResult.cc
  3764. * src/URIResult.h
  3765. * src/UTPexExtensionMessage.cc
  3766. * src/UTPexExtensionMessage.h
  3767. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3768. Fixed compile error without BitTorrent and Metalink support.
  3769. * src/XmlRpcMethod.cc
  3770. * src/XmlRpcMethodFactory.cc
  3771. * src/XmlRpcMethodImpl.cc
  3772. * src/XmlRpcMethodImpl.h
  3773. * test/XmlRpcMethodTest.cc
  3774. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Rewritten the help message for --allow-overwrite option.
  3776. * doc/aria2c.1.txt
  3777. * src/usage_text.h
  3778. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Fixed typo
  3780. * doc/aria2c.1.txt
  3781. * src/usage_text.h
  3782. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Updated README for 1.4.0 release. Use new table syntax of
  3784. asciidoc.
  3785. * README
  3786. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Documented --xml-rpc-max-request-size option in man page.
  3788. * doc/aria2c.1.txt
  3789. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Moved C_* constants from BtContext to DefaultBtContext.
  3791. * src/BtContext.cc: Removed.
  3792. * src/BtContext.h
  3793. * src/DefaultBtContext.cc
  3794. * src/DefaultBtContext.h
  3795. * src/Makefile.am
  3796. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3798. path key respectively when persing .torrent file.
  3799. * src/BtContext.cc
  3800. * src/BtContext.h
  3801. * src/DefaultBtContext.cc
  3802. * test/DefaultBtContextTest.cc
  3803. * test/utf8.torrent
  3804. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. Added --xml-rpc-max-request-size option to limit the size of
  3806. XML-RPC request.
  3807. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Documented XML-RPC API in man page.
  3809. * doc/aria2c.1.txt
  3810. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3812. will break strict-aliasing rules
  3813. * src/PeerConnection.cc
  3814. * test/DHTRoutingTableSerializerTest.cc
  3815. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3817. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3818. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3819. PKG_CHECK_MODULES macro uses latter name.
  3820. * m4/sqlite3.m4
  3821. * src/Makefile.am
  3822. * test/Makefile.am
  3823. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Fixed typo
  3825. * configure.ac
  3826. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3828. presence of libgnutls using pkg-config first. If it fails, fall
  3829. back to old macro libgnutls.m4.
  3830. * configure.ac
  3831. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Use s itself instead of !s.bad()
  3833. * src/CookieStorage.cc
  3834. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3835. Documented --on-download-* option and --save-cookies option in man
  3836. page.
  3837. * doc/aria2c.1.txt
  3838. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Set possible values for --load-cookie option to "/path/to/file".
  3840. * src/OptionHandlerFactory.cc
  3841. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Added --save-cookies option.
  3843. * src/Cookie.cc
  3844. * src/Cookie.h
  3845. * src/CookieStorage.cc
  3846. * src/CookieStorage.h
  3847. * src/MultiUrlRequestInfo.cc
  3848. * src/OptionHandlerFactory.cc
  3849. * src/prefs.cc
  3850. * src/prefs.h
  3851. * src/usage_text.h
  3852. * test/CookieStorageTest.cc
  3853. * test/CookieTest.cc
  3854. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3855. Removed tellAll XML-RPC command because its reponse tends to be
  3856. big if stopped/waiting downloads pile up.
  3857. * src/XmlRpcMethodFactory.cc
  3858. * src/XmlRpcMethodImpl.cc
  3859. * src/XmlRpcMethodImpl.h
  3860. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Added the ability to execute command when download starts and
  3862. stops. You can also specify command for particular cases such as
  3863. complete/error download. Added --on-download-start,
  3864. --on-download-stop, --on-download-complete and --on-download-error
  3865. option.
  3866. * src/OptionHandlerFactory.cc
  3867. * src/RequestGroupMan.cc
  3868. * src/prefs.cc
  3869. * src/prefs.h
  3870. * src/usage_text.h
  3871. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Fixed test error
  3873. * test/BencodeTest.cc
  3874. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Added unit tests.
  3876. * test/XmlRpcMethodTest.cc
  3877. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Made exception message more verbose.
  3879. * src/bencode.cc
  3880. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3882. space in console readout. Also they are now shown in MiB/s if
  3883. speed > 1024KiB/s.
  3884. * src/ConsoleStatCalc.cc
  3885. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Added SEED to console output, which represents the number of
  3887. seeders currently the client is connecting to.
  3888. * src/ConsoleStatCalc.cc
  3889. * src/ConsoleStatCalc.h
  3890. * src/DownloadEngine.cc
  3891. * src/NullStatCalc.h
  3892. * src/StatCalc.h
  3893. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Added source filename(__FILE__) and line number(__LINE__) to
  3895. exception message.
  3896. * src/AbstractCommand.cc
  3897. * src/AbstractDiskWriter.cc
  3898. * src/AbstractProxyResponseCommand.cc
  3899. * src/BDE.h
  3900. * src/BtAllowedFastMessage.cc
  3901. * src/BtHandshakeMessageValidator.h
  3902. * src/BtHaveAllMessage.cc
  3903. * src/BtHaveNoneMessage.cc
  3904. * src/BtPieceMessage.cc
  3905. * src/BtRejectMessage.cc
  3906. * src/ChunkedDecoder.cc
  3907. * src/CookieStorage.cc
  3908. * src/DHTAnnouncePeerMessage.cc
  3909. * src/DHTEntryPointNameResolveCommand.cc
  3910. * src/DHTMessageFactoryImpl.cc
  3911. * src/DHTMessageTracker.cc
  3912. * src/DHTRoutingTableDeserializer.cc
  3913. * src/DHTRoutingTableSerializer.cc
  3914. * src/DHTSetup.cc
  3915. * src/DHTTokenTracker.cc
  3916. * src/DefaultBtAnnounce.cc
  3917. * src/DefaultBtContext.cc
  3918. * src/DefaultBtInteractive.cc
  3919. * src/DefaultBtMessageFactory.cc
  3920. * src/DefaultBtProgressInfoFile.cc
  3921. * src/DefaultExtensionMessageFactory.cc
  3922. * src/DlAbortEx.h
  3923. * src/DlRetryEx.h
  3924. * src/DownloadCommand.cc
  3925. * src/DownloadEngineFactory.cc
  3926. * src/DownloadFailureException.h
  3927. * src/Exception.cc
  3928. * src/Exception.h
  3929. * src/ExpatMetalinkProcessor.cc
  3930. * src/ExpatXmlRpcRequestProcessor.cc
  3931. * src/FallocFileAllocationIterator.cc
  3932. * src/FatalException.h
  3933. * src/FtpConnection.cc
  3934. * src/FtpFinishDownloadCommand.cc
  3935. * src/FtpInitiateConnectionCommand.cc
  3936. * src/FtpNegotiationCommand.cc
  3937. * src/GZipDecoder.cc
  3938. * src/HandshakeExtensionMessage.cc
  3939. * src/HttpConnection.cc
  3940. * src/HttpHeaderProcessor.cc
  3941. * src/HttpInitiateConnectionCommand.cc
  3942. * src/HttpResponse.cc
  3943. * src/HttpResponseCommand.cc
  3944. * src/HttpServer.cc
  3945. * src/HttpSkipResponseCommand.cc
  3946. * src/InitiateConnectionCommandFactory.cc
  3947. * src/IteratableChunkChecksumValidator.cc
  3948. * src/LibgcryptARC4Context.h
  3949. * src/LibgcryptARC4Decryptor.h
  3950. * src/LibgcryptARC4Encryptor.h
  3951. * src/LibgcryptDHKeyExchange.h
  3952. * src/LibgnutlsTLSContext.cc
  3953. * src/LibsslARC4Context.h
  3954. * src/LibsslARC4Decryptor.h
  3955. * src/LibsslARC4Encryptor.h
  3956. * src/LibsslDHKeyExchange.h
  3957. * src/LibsslTLSContext.cc
  3958. * src/MSEHandshake.cc
  3959. * src/MessageDigestHelper.cc
  3960. * src/MetalinkHelper.cc
  3961. * src/MultiDiskAdaptor.cc
  3962. * src/NameMatchOptionHandler.h
  3963. * src/NameResolver.cc
  3964. * src/Netrc.cc
  3965. * src/NsCookieParser.cc
  3966. * src/OptionHandlerException.cc
  3967. * src/OptionHandlerException.h
  3968. * src/OptionHandlerImpl.h
  3969. * src/OptionParser.cc
  3970. * src/ParameterizedStringParser.cc
  3971. * src/PeerAbstractCommand.cc
  3972. * src/PeerConnection.cc
  3973. * src/PeerMessageUtil.cc
  3974. * src/PeerReceiveHandshakeCommand.cc
  3975. * src/Platform.cc
  3976. * src/ReceiverMSEHandshakeCommand.cc
  3977. * src/RecoverableException.h
  3978. * src/RequestGroup.cc
  3979. * src/SimpleLogger.cc
  3980. * src/SocketCore.cc
  3981. * src/Sqlite3MozCookieParser.cc
  3982. * src/UTPexExtensionMessage.cc
  3983. * src/Util.cc
  3984. * src/XML2SAXMetalinkProcessor.cc
  3985. * src/Xml2XmlRpcRequestProcessor.cc
  3986. * src/XmlRpcMethodImpl.cc
  3987. * src/bencode.cc
  3988. * src/download_helper.cc
  3989. * src/messageDigest.h
  3990. * test/ExceptionTest.cc
  3991. * test/TestUtil.cc
  3992. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3993. Bump up version number to 1.4.0
  3994. * configure.ac
  3995. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Added 2files.metalink to EXTRA_DIST
  3997. * test/Makefile.am
  3998. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Added missing 2files.metalink
  4000. * test/2files.metalink
  4001. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4002. Show "[MEMORY]" prefix before filename in download summary if it
  4003. is downloaded into memory.
  4004. * src/DownloadResult.h
  4005. * src/RequestGroup.cc
  4006. * src/RequestGroupMan.cc
  4007. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4009. * src/ExpatXmlRpcRequestProcessor.cc
  4010. * src/Xml2XmlRpcRequestProcessor.cc
  4011. * src/message.h
  4012. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4013. Defined const BDEs to avoid duplicate instantiation.
  4014. Defined MSG_GID_NOT_PROVIDED.
  4015. * src/XmlRpcMethodImpl.cc
  4016. * src/message.h
  4017. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Code cleanup
  4019. * src/Xml2XmlRpcRequestProcessor.cc
  4020. * src/Xml2XmlRpcRequestProcessor.h
  4021. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Defined ENABLE_XML_RPC
  4023. * configure.ac
  4024. * configure
  4025. * config.h.in
  4026. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Added ExpatXmlRpcRequestProcessor
  4028. * src/ExpatXmlRpcRequestProcessor.cc
  4029. * src/ExpatXmlRpcRequestProcessor.h
  4030. * src/Makefile.am
  4031. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4032. Added tests for addTorrent and addMetalink command.
  4033. * test/TestUtil.cc
  4034. * test/TestUtil.h
  4035. * test/XmlRpcMethodTest.cc
  4036. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Corrected the description of --file-allocation option.
  4038. * doc/aria2c.1.txt
  4039. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Added tellAll command.
  4041. * src/XmlRpcMethodFactory.cc
  4042. * src/XmlRpcMethodImpl.cc
  4043. * src/XmlRpcMethodImpl.h
  4044. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4046. * src/XmlRpcMethodImpl.cc
  4047. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Added changeGlobalOption command. Currently,
  4049. max-overall-download-limit and max-overall-upload-limit option are
  4050. available.
  4051. * src/RequestGroupMan.h
  4052. * src/XmlRpcMethod.cc
  4053. * src/XmlRpcMethod.h
  4054. * src/XmlRpcMethodFactory.cc
  4055. * src/XmlRpcMethodImpl.cc
  4056. * src/XmlRpcMethodImpl.h
  4057. * test/XmlRpcMethodTest.cc
  4058. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Added changeOption command. Currently, max-download-limit,
  4060. max-upload-limit option are available in this command.
  4061. * src/RequestGroup.h
  4062. * src/XmlRpcMethod.cc
  4063. * src/XmlRpcMethod.h
  4064. * src/XmlRpcMethodFactory.cc
  4065. * src/XmlRpcMethodImpl.cc
  4066. * src/XmlRpcMethodImpl.h
  4067. * test/XmlRpcMethodTest.cc
  4068. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Added purgeDownloadResult command.
  4070. * src/RequestGroupMan.cc
  4071. * src/RequestGroupMan.h
  4072. * src/XmlRpcMethodFactory.cc
  4073. * src/XmlRpcMethodImpl.cc
  4074. * src/XmlRpcMethodImpl.h
  4075. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. Refactored.
  4077. * src/XmlRpcMethod.cc
  4078. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4080. XmlRpcResponse.
  4081. * src/HttpServerBodyCommand.cc
  4082. * src/Makefile.am
  4083. * src/XmlRpcMethod.cc
  4084. * src/XmlRpcMethod.h
  4085. * src/XmlRpcMethodImpl.cc
  4086. * src/XmlRpcResponse.cc
  4087. * src/XmlRpcResponse.h
  4088. * test/XmlRpcMethodTest.cc
  4089. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. In XML-RPC option struct, header and index-out option can take
  4091. array as value.
  4092. * src/XmlRpcMethod.cc
  4093. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Removed unused option member from PeerConnection.
  4095. * src/InitiatorMSEHandshakeCommand.cc
  4096. * src/PeerConnection.cc
  4097. * src/PeerConnection.h
  4098. * src/PeerInteractionCommand.cc
  4099. * src/PeerReceiveHandshakeCommand.cc
  4100. * src/ReceiverMSEHandshakeCommand.cc
  4101. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Added "seeder" key to getPeers response.
  4103. * src/XmlRpcMethodImpl.cc
  4104. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Added addMetalink XML-RPC command.
  4106. * src/XmlRpcMethodFactory.cc
  4107. * src/XmlRpcMethodImpl.cc
  4108. * src/XmlRpcMethodImpl.h
  4109. * src/download_helper.cc
  4110. * src/download_helper.h
  4111. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4112. Fixed the bug that POU peers are never choked in seeding.
  4113. * src/BtSeederStateChoke.cc
  4114. * src/BtSeederStateChoke.h
  4115. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4116. Added web-seeding URI handling in addTorrent command.
  4117. * src/XmlRpcMethodImpl.cc
  4118. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4119. Added "length" key to getFiles response.
  4120. * src/XmlRpcMethodImpl.cc
  4121. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Moved --no-netrc option from ftp option section to http/ftp option
  4123. section.
  4124. * doc/aria2c.1.txt
  4125. * src/OptionHandlerFactory.cc
  4126. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Removed garbage "\" character before '
  4128. * doc/aria2c.1.txt
  4129. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4130. Removed garbage "\" character before http.
  4131. * doc/aria2c.1.txt
  4132. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Documented additional options that can be specified in -i list.
  4134. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4135. and --xml-rpc-passwd. Removed --enable-http-server and
  4136. --http-server-listen-port.
  4137. * doc/aria2c.1.txt
  4138. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4139. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4140. * src/DefaultPeerStorage.cc
  4141. * src/DefaultPeerStorage.h
  4142. * src/PeerStorage.h
  4143. * src/XmlRpcMethodImpl.cc
  4144. * test/MockPeerStorage.h
  4145. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4146. Put a call to Socket::isReadable() in try block.
  4147. * src/HttpServerBodyCommand.cc
  4148. * src/HttpServerCommand.cc
  4149. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4151. exception , so it is now in try block.
  4152. * src/HttpServerResponseCommand.cc
  4153. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Added "amChoking" and "peerChoking" key in getPeers response.
  4155. * src/XmlRpcMethodImpl.cc
  4156. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4157. Added test case for zero-length filter.
  4158. * test/BitfieldManTest.cc
  4159. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. getFiles command now returns file data for finished/stopped
  4161. downloads.
  4162. * src/XmlRpcMethodImpl.cc
  4163. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. DownloadResult now has the list of FileEntry. The download
  4165. summary displays the path of first selected file and the number of
  4166. remaining files for multi-file torrent.
  4167. * src/DownloadResult.h
  4168. * src/RequestGroup.cc
  4169. * src/RequestGroupMan.cc
  4170. * test/RequestGroupTest.cc
  4171. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4172. Fixed segmentation fault error when no file is selected in
  4173. multi-file torrent.
  4174. * src/BitfieldMan.cc
  4175. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Escaped <,>,& character in XML-RPC response.
  4177. * src/XmlRpcMethod.cc
  4178. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4179. Throw DlAbortEx instead of FatalException during parsing options
  4180. because we don't want for aria2 to quit when bad option is passed
  4181. via XML-RPC.
  4182. * src/OptionHandlerException.cc
  4183. * src/OptionHandlerException.h
  4184. * src/OptionHandlerImpl.h
  4185. * src/OptionParser.cc
  4186. * src/OptionParser.h
  4187. * src/PStringSegment.cc
  4188. * src/ParameterizedStringParser.cc
  4189. * src/download_helper.cc
  4190. * test/ParameterizedStringParserTest.cc
  4191. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4192. Selecting files are now done in
  4193. DefaultBtContext::setFileFileter().
  4194. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4195. functions are removed because they are no longer used. Creating
  4196. filter in BitfieldMan is done in new funtion
  4197. PieceStorage::setupFileFilter()
  4198. * src/BtContext.cc
  4199. * src/BtContext.h
  4200. * src/DefaultBtContext.cc
  4201. * src/DefaultBtContext.h
  4202. * src/DefaultPieceStorage.cc
  4203. * src/DefaultPieceStorage.h
  4204. * src/DiskAdaptor.cc
  4205. * src/DiskAdaptor.h
  4206. * src/PieceStorage.h
  4207. * src/RequestGroup.cc
  4208. * src/UnknownLengthPieceStorage.h
  4209. * src/XmlRpcMethodImpl.cc
  4210. * test/DefaultBtContextTest.cc
  4211. * test/MockBtContext.h
  4212. * test/MockPieceStorage.h
  4213. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Fixed compile error on Mac OS X
  4215. * src/HttpServer.cc
  4216. * src/XmlRpcMethod.h
  4217. * src/XmlRpcMethodImpl.cc
  4218. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4219. Use std::binary_search instead of std::find
  4220. * src/DefaultPieceStorage.cc
  4221. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Removed unnecessary BDE() call; leave them to implicit conversion.
  4223. * src/XmlRpcMethodImpl.cc
  4224. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Return connections and gid in string
  4226. * src/XmlRpcMethodImpl.cc
  4227. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. Renamed addURI as addUri
  4229. * src/XmlRpcMethodFactory.cc
  4230. * src/XmlRpcMethodImpl.cc
  4231. * src/XmlRpcMethodImpl.h
  4232. * test/XmlRpcMethodTest.cc
  4233. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Renamed addTorrentFile as addTorrent
  4235. * src/XmlRpcMethodFactory.cc
  4236. * src/XmlRpcMethodImpl.cc
  4237. * src/XmlRpcMethodImpl.h
  4238. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4239. The information for files, URIs, peers are removed from the
  4240. reponse of TellaActive, TellStatus command because they tend to be
  4241. large. Instead they can be retrieved by the dedicated commands:
  4242. getFiles, getUris and getPeers respectively.
  4243. * src/XmlRpcMethodFactory.cc
  4244. * src/XmlRpcMethodImpl.cc
  4245. * src/XmlRpcMethodImpl.h
  4246. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Removed --max-overall-upload-limit and
  4248. --max-overall-download-limit option from listRequestOptions.
  4249. * src/download_helper.cc
  4250. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Log incoming host in HttpListenCommand.
  4252. * src/HttpListenCommand.cc
  4253. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4254. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4255. --xml-rpc-passwd option.
  4256. * src/HttpServer.cc
  4257. * src/HttpServer.h
  4258. * src/HttpServerCommand.cc
  4259. * src/OptionHandlerFactory.cc
  4260. * src/prefs.cc
  4261. * src/prefs.h
  4262. * src/usage_text.h
  4263. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4265. processing 0 length request.
  4266. * src/HttpServerBodyCommand.cc
  4267. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4268. Removed --enable-http-server and --http-server-listen-port
  4269. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4270. instead. The original feature for --enable-http-server that
  4271. reports download progress in HTML was officially removed. Persist
  4272. XML-RPC connection if client supports keep-alive.
  4273. * src/DownloadEngineFactory.cc
  4274. * src/HttpServerCommand.cc
  4275. * src/HttpServerResponseCommand.cc
  4276. * src/Makefile.am
  4277. * src/Makefile.in
  4278. * src/OptionHandlerFactory.cc
  4279. * src/RequestGroupMan.cc
  4280. * src/main.cc
  4281. * src/option_processing.cc
  4282. * src/prefs.cc
  4283. * src/prefs.h
  4284. * src/usage_text.h
  4285. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4286. Added "uris" key to the response of tellStatus command. Added
  4287. "connections" key to the response of tellStatus and tellActive
  4288. command.
  4289. * src/XmlRpcMethodImpl.cc
  4290. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4291. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4292. Added TellStatusXmlRpcMethod. Remove command can now remove
  4293. waiting RequestGroup.
  4294. * src/RequestGroupMan.cc
  4295. * src/RequestGroupMan.h
  4296. * src/XmlRpcMethodFactory.cc
  4297. * src/XmlRpcMethodImpl.cc
  4298. * src/XmlRpcMethodImpl.h
  4299. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Initialized _peerId
  4301. * src/Peer.cc
  4302. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Return fault structure for error. FailXmlRpcMethod is renamed as
  4304. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4305. in non-torrent download. Return single param value.
  4306. * src/XmlRpcMethod.cc
  4307. * src/XmlRpcMethodFactory.cc
  4308. * src/XmlRpcMethodImpl.cc
  4309. * src/XmlRpcMethodImpl.h
  4310. * test/XmlRpcMethodTest.cc
  4311. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4312. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4313. command.
  4314. * src/RequestGroup.cc
  4315. * src/RequestGroup.h
  4316. * src/RequestGroupMan.cc
  4317. * src/XmlRpcMethodImpl.cc
  4318. * test/RequestGroupTest.cc
  4319. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Added more options that can be specified in -i list and xml-rpc
  4321. add* command.
  4322. * src/download_helper.h
  4323. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4324. The available options in -i list should be listed in
  4325. listRequestOptions().
  4326. * src/download_helper.cc
  4327. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4329. command.
  4330. * src/XmlRpcMethodImpl.cc
  4331. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Now RequestGroup has its own copy of Option object. This will help
  4333. to give custom option for each RequestGroup.
  4334. addTorrentFile command now takes options.
  4335. * src/AbstractCommand.cc
  4336. * src/AbstractCommand.h
  4337. * src/AbstractProxyRequestCommand.cc
  4338. * src/ActivePeerConnectionCommand.cc
  4339. * src/ActivePeerConnectionCommand.h
  4340. * src/AdaptiveURISelector.cc
  4341. * src/BtCheckIntegrityEntry.cc
  4342. * src/BtDependency.cc
  4343. * src/BtDependency.h
  4344. * src/BtFileAllocationEntry.cc
  4345. * src/BtPostDownloadHandler.cc
  4346. * src/CheckIntegrityEntry.cc
  4347. * src/DownloadCommand.cc
  4348. * src/FtpDownloadCommand.cc
  4349. * src/FtpFinishDownloadCommand.cc
  4350. * src/FtpInitiateConnectionCommand.cc
  4351. * src/FtpNegotiationCommand.cc
  4352. * src/HttpInitiateConnectionCommand.cc
  4353. * src/HttpRequestCommand.cc
  4354. * src/HttpResponseCommand.cc
  4355. * src/HttpSkipResponseCommand.cc
  4356. * src/InitiateConnectionCommand.cc
  4357. * src/InitiateConnectionCommandFactory.cc
  4358. * src/InitiatorMSEHandshakeCommand.cc
  4359. * src/InitiatorMSEHandshakeCommand.h
  4360. * src/Metalink2RequestGroup.cc
  4361. * src/Metalink2RequestGroup.h
  4362. * src/MetalinkPostDownloadHandler.cc
  4363. * src/MultiUrlRequestInfo.cc
  4364. * src/MultiUrlRequestInfo.h
  4365. * src/PeerAbstractCommand.cc
  4366. * src/PeerInteractionCommand.cc
  4367. * src/PeerInteractionCommand.h
  4368. * src/PeerReceiveHandshakeCommand.cc
  4369. * src/PeerReceiveHandshakeCommand.h
  4370. * src/RequestGroup.cc
  4371. * src/RequestGroup.h
  4372. * src/TrackerWatcherCommand.cc
  4373. * src/TrackerWatcherCommand.h
  4374. * src/XmlRpcMethod.cc
  4375. * src/XmlRpcMethod.h
  4376. * src/XmlRpcMethodImpl.cc
  4377. * src/download_helper.cc
  4378. * src/download_helper.h
  4379. * src/main.cc
  4380. * test/BtDependencyTest.cc
  4381. * test/BtPostDownloadHandlerTest.cc
  4382. * test/DefaultBtMessageDispatcherTest.cc
  4383. * test/DownloadHandlerFactoryTest.cc
  4384. * test/DownloadHelperTest.cc
  4385. * test/Metalink2RequestGroupTest.cc
  4386. * test/MetalinkPostDownloadHandlerTest.cc
  4387. * test/RequestGroupManTest.cc
  4388. * test/RequestGroupTest.cc
  4389. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Added tellActiveStatus xml-rpc command which reports download
  4391. status of active downloads.
  4392. * src/XmlRpcMethodFactory.cc
  4393. * src/XmlRpcMethodImpl.cc
  4394. * src/XmlRpcMethodImpl.h
  4395. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Added addTorrentFile xml-rpc command which receives uploaded
  4397. torrent file and add download for it.
  4398. * src/RequestGroupMan.cc
  4399. * src/XmlRpcMethodFactory.cc
  4400. * src/XmlRpcMethodImpl.cc
  4401. * src/XmlRpcMethodImpl.h
  4402. * src/download_helper.cc
  4403. * src/download_helper.h
  4404. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Added remove xml-rpc command which removes specified download.
  4406. There is a known issue: the removed unfinished downloads are
  4407. reported ERR when aria2 exits. They should be reported as INPR.
  4408. * src/RequestGroupMan.cc
  4409. * src/RequestGroupMan.h
  4410. * src/XmlRpcMethodFactory.cc
  4411. * src/XmlRpcMethodImpl.cc
  4412. * src/XmlRpcMethodImpl.h
  4413. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. If --enable-http-server is enabled, don't stop aria2 when all
  4415. download finished and don't quit when no files to download at
  4416. start up.
  4417. * src/RequestGroupMan.cc
  4418. * src/main.cc
  4419. * src/option_processing.cc
  4420. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4421. Added missing AM_CONDITIONAL
  4422. * configure.ac
  4423. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4424. Added xml-rpc functionality. Currently only addURI commad is
  4425. supported. To enable xml-rpc, run aria2 with
  4426. --enable-http-server. This option name is temporal and will be
  4427. changed. The feature that reports download progress in html format
  4428. is temporarily disabled.
  4429. * src/HttpServer.cc
  4430. * src/HttpServer.h
  4431. * src/HttpServerBodyCommand.cc
  4432. * src/HttpServerBodyCommand.h
  4433. * src/HttpServerCommand.cc
  4434. * src/HttpServerResponseCommand.cc
  4435. * src/Makefile.am
  4436. * src/OptionParser.cc
  4437. * src/OptionParser.h
  4438. * src/RequestGroupMan.cc
  4439. * src/RequestGroupMan.h
  4440. * src/XmlRpcMethod.cc
  4441. * src/XmlRpcMethod.h
  4442. * src/XmlRpcMethodFactory.cc
  4443. * src/XmlRpcMethodFactory.h
  4444. * src/XmlRpcMethodImpl.cc
  4445. * src/XmlRpcMethodImpl.h
  4446. * src/download_helper.cc
  4447. * src/download_helper.h
  4448. * test/Makefile.am
  4449. * test/XmlRpcMethodTest.cc
  4450. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Added xml-rpc request parser. The supported value types are:
  4452. i4/int, string, double, struct, array, base64. Currently only
  4453. libxml2 version is provided.
  4454. * src/Xml2XmlRpcRequestProcessor.cc
  4455. * src/Xml2XmlRpcRequestProcessor.h
  4456. * src/XmlRpcElements.cc
  4457. * src/XmlRpcElements.h
  4458. * src/XmlRpcRequest.h
  4459. * src/XmlRpcRequestParserController.cc
  4460. * src/XmlRpcRequestParserController.h
  4461. * src/XmlRpcRequestParserState.h
  4462. * src/XmlRpcRequestParserStateImpl.cc
  4463. * src/XmlRpcRequestParserStateImpl.h
  4464. * src/XmlRpcRequestParserStateMachine.cc
  4465. * src/XmlRpcRequestParserStateMachine.h
  4466. * src/XmlRpcRequestProcessor.h
  4467. * test/XmlRpcRequestParserControllerTest.cc
  4468. * test/XmlRpcRequestProcessorTest.cc
  4469. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. * Release 1.3.3
  4471. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4472. Fixed compile error since r1202.
  4473. * src/ExpatMetalinkProcessor.cc
  4474. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Updated Ukrainian, Russian and Simplified Chinese
  4476. translations. Thanks to all translators.
  4477. * po/ru.po
  4478. * po/uk.po
  4479. * po/zh_CN.po
  4480. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Pass reference of Option object instead of pointer.
  4482. * src/download_helper.cc
  4483. * src/download_helper.h
  4484. * src/main.cc
  4485. * test/DownloadHelperTest.cc
  4486. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4488. from option directly. Instead, get them from RequestGroup.
  4489. * src/ActivePeerConnectionCommand.cc
  4490. * src/ActivePeerConnectionCommand.h
  4491. * src/PeerReceiveHandshakeCommand.cc
  4492. * src/RequestGroup.h
  4493. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Removed unused uploadLimitCheck and uploadLimit from
  4495. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4496. PeerInteractionCommand.
  4497. * src/PeerAbstractCommand.cc
  4498. * src/PeerAbstractCommand.h
  4499. * src/PeerInteractionCommand.cc
  4500. * src/PeerInteractionCommand.h
  4501. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Fixed broken file renaming feature since r1202.
  4503. * src/FtpNegotiationCommand.cc
  4504. * src/FtpNegotiationCommand.h
  4505. * src/HttpResponseCommand.cc
  4506. * src/RequestGroup.cc
  4507. * src/RequestGroup.h
  4508. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4509. Removed unused debug log
  4510. * src/SocketCore.cc
  4511. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Generated configure and Makefile.in using autoconf 2.63 and
  4513. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4514. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4515. * configure.ac
  4516. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Moved piece statistics stuff to new PieceStatMan class.
  4518. Refactored PieceSelector interface.
  4519. * src/DefaultPieceStorage.cc
  4520. * src/DefaultPieceStorage.h
  4521. * src/LongestSequencePieceSelector.cc
  4522. * src/LongestSequencePieceSelector.h
  4523. * src/Makefile.am
  4524. * src/PieceSelector.h
  4525. * src/PieceStatMan.cc
  4526. * src/PieceStatMan.h
  4527. * src/RarestPieceSelector.cc
  4528. * src/RarestPieceSelector.h
  4529. * src/RequestGroup.cc
  4530. * test/DefaultPieceStorageTest.cc
  4531. * test/InOrderPieceSelector.h
  4532. * test/Makefile.am
  4533. * test/PieceStatManTest.cc
  4534. * test/RarestPieceSelectorTest.cc
  4535. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Added static member _protocolFamily to SocketCore. By default,
  4537. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4538. address. Sometime SocketCore::bind() and
  4539. SocketCore::establishConnection() use difference protocl family
  4540. and latter cannot connect to former. To avoid this situation, we
  4541. limit protocol family to AF_INET for unit tests.
  4542. * src/SocketCore.cc
  4543. * src/SocketCore.h
  4544. * test/AllTest.cc
  4545. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Avoid std::bad_alloc for negative bencode string length.
  4547. * src/bencode.cc
  4548. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Supported segmented downloading with chunked transfer encoding and
  4550. content-length.
  4551. * src/DownloadCommand.cc
  4552. * src/HttpResponseCommand.cc
  4553. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Bump up version number to 1.3.3
  4555. * configure.ac
  4556. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4558. from 4096 to 65536 (for insanely large ftp login banners)
  4559. * src/FtpConnection.h
  4560. * test/FtpConnectionTest.cc
  4561. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. In DefaultBtContext::getActualBasePath(), return first
  4563. FileEntry::getPath() for single file torrent.
  4564. * src/DefaultBtContext.cc
  4565. * test/DefaultBtContextTest.cc
  4566. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4568. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4569. Removed _directIOAllowed member from DiskWriter.
  4570. * src/AbstractDiskWriter.cc
  4571. * src/AbstractDiskWriter.h
  4572. * src/AbstractSingleDiskAdaptor.cc
  4573. * src/AbstractSingleDiskAdaptor.h
  4574. * src/BinaryStream.h
  4575. * src/ByteArrayDiskWriter.h
  4576. * src/DefaultPieceStorage.cc
  4577. * src/DiskWriter.h
  4578. * src/MultiDiskAdaptor.cc
  4579. * src/MultiDiskAdaptor.h
  4580. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Now the constructor of AbstractDiskWriter takes filename as an
  4582. argument and filename argument is removed from openFile(),
  4583. initAndOpenFile(), openExistingFile() interface. storeDir member
  4584. and its accessor functions are removed from DiskAdaptor because it
  4585. is not used anymore. size() member function of DefaultDiskWriter,
  4586. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4587. opening file.
  4588. * src/AbstractDiskWriter.cc
  4589. * src/AbstractDiskWriter.h
  4590. * src/AbstractSingleDiskAdaptor.cc
  4591. * src/AbstractSingleDiskAdaptor.h
  4592. * src/ByteArrayDiskWriter.cc
  4593. * src/ByteArrayDiskWriter.h
  4594. * src/ByteArrayDiskWriterFactory.cc
  4595. * src/ByteArrayDiskWriterFactory.h
  4596. * src/DefaultDiskWriter.cc
  4597. * src/DefaultDiskWriter.h
  4598. * src/DefaultDiskWriterFactory.cc
  4599. * src/DefaultDiskWriterFactory.h
  4600. * src/DefaultPieceStorage.cc
  4601. * src/DirectDiskAdaptor.cc
  4602. * src/DirectDiskAdaptor.h
  4603. * src/DiskAdaptor.h
  4604. * src/DiskWriter.h
  4605. * src/DiskWriterFactory.h
  4606. * src/MessageDigestHelper.cc
  4607. * src/MultiDiskAdaptor.cc
  4608. * src/RequestGroup.cc
  4609. * src/UnknownLengthPieceStorage.cc
  4610. * src/Util.cc
  4611. * test/DefaultDiskWriterTest.cc
  4612. * test/DirectDiskAdaptorTest.cc
  4613. * test/FallocFileAllocationIteratorTest.cc
  4614. * test/MessageDigestHelperTest.cc
  4615. * test/MetalinkProcessorTest.cc
  4616. * test/MultiDiskAdaptorTest.cc
  4617. * test/MultiFileAllocationIteratorTest.cc
  4618. * test/SingleFileAllocationIteratorTest.cc
  4619. * test/UtilTest.cc
  4620. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Fixed the bug that aria2 aborts when --select-file is used. This
  4622. bug was introduced in r1199.
  4623. * src/MultiDiskAdaptor.cc
  4624. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Code cleanup
  4626. * test/MockPieceStorage.cc
  4627. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Fixed the bug that read-only file with wrong file size will cause
  4629. error because it cannot be truncated to the correct size. Now if
  4630. file size is different than the expected one, re-open file in
  4631. writable mode.
  4632. * src/AbstractSingleDiskAdaptor.cc
  4633. * src/AbstractSingleDiskAdaptor.h
  4634. * src/BtCheckIntegrityEntry.cc
  4635. * src/DiskAdaptor.h
  4636. * src/MultiDiskAdaptor.h
  4637. * src/RequestGroup.cc
  4638. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4639. Fixed the bug that with --check-integrity option aria2 reports
  4640. downloaded file size is 0 even if some parts of file is correctly
  4641. downloaded. This bug is reproducible for the download that a file
  4642. includes last piece is missing. This bug doesn't reveal for
  4643. single-torrent with file allocation on.
  4644. * src/IteratableChecksumValidator.cc
  4645. * test/IteratableChecksumValidatorTest.cc
  4646. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4647. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4648. * src/RequestGroupMan.cc
  4649. * src/AdaptiveURISelector.cc
  4650. * src/AdaptiveURISelector.h
  4651. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. * Release 1.3.2
  4653. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Updated README
  4655. * README
  4656. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Updated Ukrainian translations. Thanks to Alexander10.
  4658. * po/uk.po
  4659. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Code cleanup
  4661. * src/MetalinkParserStateMachine.cc
  4662. * src/MetalinkParserStateMachine.h
  4663. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4665. and expat simultaneously, MetalinkProcessor is now not base class
  4666. and it is directly implemented in XML2SAXMetalinkProcessor and
  4667. ExpatMetalinkProcessor.
  4668. * src/ExpatMetalinkProcessor.cc
  4669. * src/ExpatMetalinkProcessor.h
  4670. * src/Makefile.am
  4671. * src/MetalinkHelper.cc
  4672. * src/MetalinkProcessor.h
  4673. * src/MetalinkProcessorFactory.cc: Removed.
  4674. * src/MetalinkProcessorFactory.h: Removed
  4675. * src/XML2SAXMetalinkProcessor.cc
  4676. * src/XML2SAXMetalinkProcessor.h
  4677. * test/MetalinkProcessorTest.cc
  4678. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Bump up version number to 1.3.2
  4680. * configure.ac
  4681. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Added missing file.
  4683. * test/Makefile.am
  4684. * test/url-list-singleFileEndsWithSlash.torrent
  4685. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4687. request.
  4688. * src/AnnounceList.cc
  4689. * src/AnnounceList.h
  4690. * src/BDE.cc: Added
  4691. * src/BDE.h: Added
  4692. * src/DHTAbstractMessage.cc
  4693. * src/DHTAbstractMessage.h
  4694. * src/DHTAnnouncePeerMessage.cc
  4695. * src/DHTAnnouncePeerMessage.h
  4696. * src/DHTAnnouncePeerReplyMessage.cc
  4697. * src/DHTAnnouncePeerReplyMessage.h
  4698. * src/DHTFindNodeMessage.cc
  4699. * src/DHTFindNodeMessage.h
  4700. * src/DHTFindNodeReplyMessage.cc
  4701. * src/DHTFindNodeReplyMessage.h
  4702. * src/DHTGetPeersMessage.cc
  4703. * src/DHTGetPeersMessage.h
  4704. * src/DHTGetPeersReplyMessage.cc
  4705. * src/DHTGetPeersReplyMessage.h
  4706. * src/DHTMessageFactory.h
  4707. * src/DHTMessageFactoryImpl.cc
  4708. * src/DHTMessageFactoryImpl.h
  4709. * src/DHTMessageReceiver.cc
  4710. * src/DHTMessageTracker.cc
  4711. * src/DHTMessageTracker.h
  4712. * src/DHTPingMessage.cc
  4713. * src/DHTPingMessage.h
  4714. * src/DHTPingReplyMessage.cc
  4715. * src/DHTPingReplyMessage.h
  4716. * src/DHTQueryMessage.cc
  4717. * src/DHTQueryMessage.h
  4718. * src/DHTResponseMessage.cc
  4719. * src/DHTResponseMessage.h
  4720. * src/DefaultBtAnnounce.cc
  4721. * src/DefaultBtContext.cc
  4722. * src/DefaultBtContext.h
  4723. * src/HandshakeExtensionMessage.cc
  4724. * src/Makefile.am
  4725. * src/PeerListProcessor.h
  4726. * src/UTPexExtensionMessage.cc
  4727. * src/bencode.cc
  4728. * src/bencode.h
  4729. * test/AnnounceListTest.cc
  4730. * test/BDETest.cc: Added
  4731. * test/BencodeTest.cc
  4732. * test/DHTAnnouncePeerMessageTest.cc
  4733. * test/DHTAnnouncePeerReplyMessageTest.cc
  4734. * test/DHTFindNodeMessageTest.cc
  4735. * test/DHTFindNodeReplyMessageTest.cc
  4736. * test/DHTGetPeersMessageTest.cc
  4737. * test/DHTGetPeersReplyMessageTest.cc
  4738. * test/DHTMessageFactoryImplTest.cc
  4739. * test/DHTMessageTrackerTest.cc
  4740. * test/DHTPingMessageTest.cc
  4741. * test/DHTPingReplyMessageTest.cc
  4742. * test/Makefile.am
  4743. * test/MockDHTMessageFactory.h
  4744. * test/PeerListProcessorTest.cc
  4745. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Use url-list (web-seeding) only for single-file torrent. This is
  4747. basically the same behavior with Metalink file with torrent and
  4748. URIs.
  4749. * src/RequestGroup.cc
  4750. * src/DefaultBtContext.cc
  4751. * test/DefaultBtContextTest.cc
  4752. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4753. Rewritten expr
  4754. * src/array_fun.h
  4755. * test/array_funTest.cc
  4756. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4758. * src/DefaultBtMessageDispatcher.cc
  4759. * src/a2algo.h
  4760. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Removed ExtendedMessagingAware. Instead of using inheritance,
  4762. added ExtensionMessageRegistry and it is passed to
  4763. DefaultExtensionMessageFactory.
  4764. * src/DefaultBtInteractive.cc
  4765. * src/DefaultBtInteractive.h
  4766. * src/DefaultExtensionMessageFactory.cc
  4767. * src/DefaultExtensionMessageFactory.h
  4768. * src/ExtendedMessagingAware.h: Removed.
  4769. * src/ExtensionMessageFactory.h
  4770. * src/ExtensionMessageRegistry.h: Added.
  4771. * src/Makefile.am
  4772. * src/PeerInteractionCommand.cc
  4773. * test/DefaultExtensionMessageFactoryTest.cc
  4774. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. Fixed typo in log messages
  4776. * src/MSEHandshake.cc
  4777. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Fixed the bug that prevents torrent download from finishing. The
  4779. bug doesn't reveal for all torrents. The torrents affected this
  4780. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4781. of pieces.
  4782. * src/bitfield.h
  4783. * test/bitfieldTest.cc
  4784. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Code cleanup
  4786. * src/PeerListProcessor.h
  4787. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4788. Removed RequestGroupAware
  4789. * src/AbstractCommand.cc
  4790. * src/AbstractCommand.h
  4791. * src/ActivePeerConnectionCommand.cc
  4792. * src/ActivePeerConnectionCommand.h
  4793. * src/DHTGetPeersCommand.cc
  4794. * src/DHTGetPeersCommand.h
  4795. * src/InitiatorMSEHandshakeCommand.cc
  4796. * src/InitiatorMSEHandshakeCommand.h
  4797. * src/Makefile.am
  4798. * src/PeerInitiateConnectionCommand.cc
  4799. * src/PeerInitiateConnectionCommand.h
  4800. * src/PeerInteractionCommand.cc
  4801. * src/PeerInteractionCommand.h
  4802. * src/RealtimeCommand.cc
  4803. * src/RealtimeCommand.h
  4804. * src/RequestGroupAware.cc: Removed
  4805. * src/RequestGroupAware.h: Removed
  4806. * src/SeedCheckCommand.cc
  4807. * src/SeedCheckCommand.h
  4808. * src/SleepCommand.cc
  4809. * src/TrackerWatcherCommand.cc
  4810. * src/TrackerWatcherCommand.h
  4811. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Rewritten PeerListProcessor
  4813. * src/PeerListProcessor.h
  4814. * src/CompactPeerListProcessor.h: Removed
  4815. * src/CompactPeerListProcessor.cc: Removed
  4816. * src/DelegatingPeerListProcessor.cc: Removed.
  4817. * src/DefaultBtAnnounce.cc
  4818. * src/Makefile.am
  4819. * src/UTPexExtensionMessage.cc
  4820. * src/DefaultPeerListProcessor.h: Removed.
  4821. * src/DefaultPeerListProcessor.cc: Removed.
  4822. * src/DelegatingPeerListProcessor.h: Removed.
  4823. * test/Makefile.am
  4824. * test/PeerListProcessorTest.cc
  4825. * test/DefaultPeerListProcessorTest.cc: Removed.
  4826. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Rewritten RequestGroupMan::calculateStat()
  4828. * src/RequestGroupMan.cc
  4829. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. Removed unnecessary virtual destructor for Request class.
  4831. * src/Request.cc
  4832. * src/Request.h
  4833. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Avoid dynamic_pointer_cast.
  4835. * src/DHTGetPeersCommand.cc
  4836. * src/DHTGetPeersCommand.h
  4837. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4839. BtEvent.
  4840. * src/AbstractBtEventListener.h: Removed.
  4841. * src/AbstractBtMessage.cc
  4842. * src/AbstractBtMessage.h
  4843. * src/BtAbortOutstandingRequestEvent.h
  4844. * src/BtCancelSendingPieceEvent.h
  4845. * src/BtChokedEvent.h: Removed.
  4846. * src/BtChokingEvent.h
  4847. * src/BtEvent.h: Removed
  4848. * src/BtEventListener.h: Removed.
  4849. * src/BtMessage.h
  4850. * src/BtPieceMessage.cc
  4851. * src/BtPieceMessage.h
  4852. * src/BtRequestMessage.cc
  4853. * src/BtRequestMessage.h
  4854. * src/DefaultBtMessageDispatcher.cc
  4855. * src/Makefile.am
  4856. * src/a2functional.h
  4857. * test/BtPieceMessageTest.cc
  4858. * test/BtRequestMessageTest.cc
  4859. * test/DefaultBtMessageDispatcherTest.cc
  4860. * test/MockBtMessage.h
  4861. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Code cleanup
  4863. * src/RequestGroupMan.cc
  4864. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. Code cleanup
  4866. * src/DownloadCommand.cc
  4867. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4869. byte.
  4870. * src/DownloadCommand.cc
  4871. * src/bitfield.h
  4872. * test/bitfieldTest.cc
  4873. Fixed the bug that causes infinite loop if broken web server
  4874. returns chunked response without last "0" chunk-size marker and
  4875. closes connection.
  4876. * src/DownloadCommand.cc
  4877. Instantiate properly configured HttpDownloadCommand for
  4878. non-resumable downlaods.
  4879. * src/HttpResponseCommand.cc
  4880. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Rewritten array operation functions.
  4882. * src/BitfieldMan.cc
  4883. * src/array_fun.h
  4884. * test/array_funTest.cc
  4885. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4886. Removed unused variable 'query'
  4887. * src/Request.cc
  4888. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4890. accidentally set to false in r1162.
  4891. * configure.ac
  4892. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4893. Code cleanup
  4894. * src/BNode.cc
  4895. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Increase prefixLength for the bucket which doesn't own local node
  4897. ID when splitting bucket.
  4898. * src/DHTBucket.cc
  4899. * test/DHTBucketTest.cc
  4900. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. * Release 1.3.1
  4902. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4903. Bump up version number to 1.3.1
  4904. * configure.ac
  4905. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4906. Removed unused variable checkPoint. Also removed include directive
  4907. for TimeA2.h.
  4908. * src/SeedCheckCommand.h
  4909. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4910. Fixed the bug that upload limit exceeds the value specified in
  4911. --seed-ratio option depending on the timing of the execution of
  4912. SeedCheckCommand.
  4913. * src/SeedCheckCommand.cc
  4914. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Fixed the bug that removed peer's session upload/download length
  4916. are counted twice in _cachedTransferStat before it is
  4917. re-calculated. This affected the calculation of shara ratio,
  4918. resulting aria2 wrongly determines that specified share ratio is
  4919. reached. Also fixed the typo in calculateStatFor function name.
  4920. * src/BtSetup.cc
  4921. * src/DefaultPeerStorage.cc
  4922. * src/ShareRatioSeedCriteria.h
  4923. * test/ShareRatioSeedCriteriaTest.cc
  4924. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. * Release 1.3.0
  4926. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4927. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4928. Nynorsk translations. Thanks to all translators.
  4929. * po/es.po
  4930. * po/ja.po
  4931. * po/nn.po
  4932. * po/ru.po
  4933. * po/uk.po
  4934. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4935. Rewritten isInRange()
  4936. * src/DHTBucket.cc
  4937. * test/DHTBucketTest.cc
  4938. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4939. Fixed typo
  4940. * doc/aria2c.1.txt
  4941. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4943. malloc/realloc is not used.
  4944. * src/configure.ac
  4945. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4946. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4947. char* bitfield instead of stl container for efficiency.
  4948. PieceSelector::select now takes this
  4949. bitfield. RarestPieceSelector::select now also performs
  4950. efficiently for this change. bitfield namespace is introduced and
  4951. it has several helper functions to handle basic bitfield
  4952. operations such as test, count set bits, etc.
  4953. * src/BitfieldMan.cc
  4954. * src/BitfieldMan.h
  4955. * src/DefaultBtRequestFactory.cc
  4956. * src/DefaultPieceStorage.cc
  4957. * src/DefaultPieceStorage.h
  4958. * src/LongestSequencePieceSelector.cc
  4959. * src/LongestSequencePieceSelector.h
  4960. * src/Makefile.am
  4961. * src/Piece.cc
  4962. * src/Piece.h
  4963. * src/PieceSelector.h
  4964. * src/RarestPieceSelector.cc
  4965. * src/RarestPieceSelector.h
  4966. * src/Util.cc
  4967. * src/Util.h
  4968. * src/bitfield.h
  4969. * test/BitfieldManTest.cc
  4970. * test/LongestSequencePieceSelectorTest.cc
  4971. * test/Makefile.am
  4972. * test/RarestPieceSelectorTest.cc
  4973. * test/UtilTest.cc
  4974. * test/bitfieldTest.cc
  4975. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4976. Made accepted socket non-block.
  4977. * src/FtpNegotiationCommand.cc
  4978. * src/HttpListenCommand.cc
  4979. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4981. * src/AbstractSingleDiskAdaptor.cc
  4982. * src/DefaultPieceStorage.cc
  4983. * src/DiskAdaptor.h
  4984. * src/DiskAdaptor.h
  4985. * src/MultiFileAllocationIterator.cc
  4986. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4987. Run
  4988. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4989. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4990. it doesn't need to be called every time when
  4991. DefaultBtInteractive::doInteractionProcessing() is called.
  4992. * src/DefaultBtInteractive.cc
  4993. * src/DefaultBtInteractive.h
  4994. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Documented 'falloc' in man page.
  4996. * doc/aria2c.1.txt
  4997. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4998. Updated doc
  4999. * src/usage_text.h
  5000. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5001. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5002. allocation mode uses posix_fallocate() system call to allocate
  5003. file on disk. If you are using newer file systems such as ext4
  5004. (with extents support), btrfs or xfs, 'falloc' is your best
  5005. choice. It allocates large(few GiB) files almost instantly. Don't
  5006. use 'falloc' with legacy file systems such as ext3 because it
  5007. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5008. until allocation finishes. 'falloc' may not be available if your
  5009. system doesn't have posix_fallocate() system call.
  5010. * configure.ac
  5011. * src/AbstractDiskWriter.cc
  5012. * src/AbstractDiskWriter.h
  5013. * src/AbstractSingleDiskAdaptor.cc
  5014. * src/BinaryStream.h
  5015. * src/BtCheckIntegrityEntry.cc
  5016. * src/ByteArrayDiskWriter.h
  5017. * src/CheckIntegrityEntry.cc
  5018. * src/CheckIntegrityEntry.h
  5019. * src/DefaultPieceStorage.cc
  5020. * src/DiskAdaptor.cc
  5021. * src/DiskAdaptor.h
  5022. * src/DiskWriter.h
  5023. * src/FallocFileAllocationIterator.cc
  5024. * src/FallocFileAllocationIterator.h
  5025. * src/FileAllocationEntry.cc
  5026. * src/FileAllocationEntry.h
  5027. * src/Makefile.am
  5028. * src/MultiFileAllocationIterator.cc
  5029. * src/MultiFileAllocationIterator.h
  5030. * src/OptionHandlerFactory.cc
  5031. * src/RequestGroup.cc
  5032. * src/StreamCheckIntegrityEntry.cc
  5033. * src/prefs.cc
  5034. * src/prefs.h
  5035. * src/usage_text.h
  5036. * test/FallocFileAllocationIteratorTest.cc
  5037. * test/Makefile.am
  5038. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Removed duplicate enableDirectIO() call.
  5040. * src/MultiFileAllocationIterator.cc
  5041. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5043. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5044. cost of std::rotate().
  5045. * src/RarestPieceSelector.cc
  5046. * src/RarestPieceSelector.h
  5047. * test/RarestPieceSelectorTest.cc
  5048. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Updated usage doc for --bt-tracker-interval option.
  5050. * src/usage_text.h
  5051. * doc/aria2c.1.txt
  5052. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Documented --bt-tracker-interval option in man page.
  5054. * doc/aria2c.1.txt
  5055. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Added an option to specify the interval between tracker requests.
  5057. If non-zero value is specified, aria2 uses it and ignores the
  5058. interval value in the response of tracker. If zero is specified,
  5059. aria2 determines the inteval value based on the tarcker response
  5060. and download progress.
  5061. * src/DefaultBtAnnounce.cc
  5062. * src/DefaultBtAnnounce.h
  5063. * src/OptionHandlerFactory.cc
  5064. * src/RequestGroup.cc
  5065. * src/prefs.cc
  5066. * src/prefs.h
  5067. * src/usage_text.h
  5068. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Added operator+=, operator-=, operator-
  5070. * src/TransferStat.cc
  5071. * src/TransferStat.h
  5072. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Refactored RarestPieceSelector to reduce CPU load, especially for
  5074. addPieceStats.
  5075. * src/RarestPieceSelector.cc
  5076. * src/RarestPieceSelector.h
  5077. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5079. getAllMissingBlockIndexes to reduce a call to
  5080. array_function_base::operator[].
  5081. * src/BitfieldMan.cc
  5082. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Cached TransferStat/download speed to avoid to sum them up in each
  5084. call.
  5085. * src/DefaultPeerStorage.cc
  5086. * src/DefaultPeerStorage.h
  5087. * src/SegmentMan.cc
  5088. * src/SegmentMan.h
  5089. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Typedefed cuid_t as int32_t in Command.h
  5091. * src/CUIDCounter.h
  5092. * src/Command.cc
  5093. * src/Command.h
  5094. * src/DownloadEngine.cc
  5095. * src/DownloadEngine.h
  5096. * src/PeerStat.h
  5097. * src/SegmentMan.cc
  5098. * src/SegmentMan.h
  5099. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Reduced the number of calls to PeerStorage::calculateStat() and
  5101. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5102. transfer rate.
  5103. * src/DefaultBtInteractive.cc
  5104. * src/DefaultBtMessageDispatcher.cc
  5105. * src/DefaultPeerStorage.cc
  5106. * src/DefaultPeerStorage.h
  5107. * src/DownloadCommand.cc
  5108. * src/DownloadEngine.cc
  5109. * src/PeerStorage.h
  5110. * src/SegmentMan.cc
  5111. * src/SegmentMan.h
  5112. * test/MockPeerStorage.h
  5113. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Prepended _dir+"/" after joining path elements in torrent file.
  5115. * src/DefaultBtContext.cc
  5116. * test/DefaultBtContextTest.cc
  5117. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5118. Added missing IndexBtMessageValidator.h
  5119. * src/Makefile.am
  5120. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5122. Chinese translations. Thank you for contributing our project.
  5123. * po/id.po
  5124. * po/it.po
  5125. * po/ru.po
  5126. * po/uk.po
  5127. * po/zh_CN.po
  5128. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5129. Updated README
  5130. * README
  5131. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5132. Bump up version number to 1.3.0
  5133. * configure.ac
  5134. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5135. Updated doc
  5136. * src/DefaultBtContext.h
  5137. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Slice/joinPath for name of single torrent.
  5139. * src/DefaultBtContext.cc
  5140. * test/DefaultBtContextTest.cc
  5141. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Updated man page: Documented --dry-run and --index-out
  5143. options. Changed the default value of --uri-selector and
  5144. --http-auth-challenge options. Removed --direct-file-mapping
  5145. option. Added example for --index-out
  5146. * doc/aria2c.1.txt
  5147. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Updated TEXT_DRY_RUN
  5149. * src/usage_text.h
  5150. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5151. Changed the default value of --uri-selector option from 'inorder'
  5152. to 'feedback'
  5153. * src/OptionHandlerFactory.cc
  5154. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Included current URI in exception message.
  5156. * src/AbstractCommand.cc
  5157. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Renamed ServerStatURISelector as FeedbackURISelector.
  5159. * src/FeedbackURISelector.cc
  5160. * src/FeedbackURISelector.h
  5161. * src/Makefile.am
  5162. * src/RequestGroupMan.cc
  5163. * src/ServerStatURISelector.cc
  5164. * src/ServerStatURISelector.h
  5165. * test/FeedbackURISelectorTest.cc
  5166. * test/Makefile.am
  5167. * test/ServerStatURISelectorTest.cc
  5168. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5170. all URIs are tested and their timeout is not reached.
  5171. * src/AdaptiveURISelector.cc
  5172. * src/AdaptiveURISelector.h
  5173. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5174. Changed the default value of --http-auth-challenge option to false.
  5175. * src/OptionHandlerFactory.cc
  5176. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5177. Reuse URIs when all unused URIs run out.
  5178. * src/OptionHandlerFactory.cc
  5179. * src/RequestGroup.cc
  5180. * src/prefs.cc
  5181. * src/prefs.h
  5182. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5184. and BtRejectMessage are derived from RangeBtMessage class.
  5185. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5186. derived from IndexBtMessage class. BtChokeMessage,
  5187. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5188. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5189. ZeroBtMessage class.
  5190. * src/AbstractBtMessage.cc
  5191. * src/AbstractBtMessage.h
  5192. * src/BtAllowedFastMessage.cc
  5193. * src/BtAllowedFastMessage.h
  5194. * src/BtAllowedFastMessageValidator.h: Removed
  5195. * src/BtBitfieldMessage.cc
  5196. * src/BtBitfieldMessage.h
  5197. * src/BtCancelMessage.cc
  5198. * src/BtCancelMessage.h
  5199. * src/BtCancelMessageValidator.h: Removed
  5200. * src/BtChokeMessage.cc
  5201. * src/BtChokeMessage.h
  5202. * src/BtExtendedMessage.cc
  5203. * src/BtExtendedMessage.h
  5204. * src/BtHandshakeMessage.cc
  5205. * src/BtHandshakeMessage.h
  5206. * src/BtHaveAllMessage.cc
  5207. * src/BtHaveAllMessage.h
  5208. * src/BtHaveMessage.cc
  5209. * src/BtHaveMessage.h
  5210. * src/BtHaveMessageValidator.h: Removed
  5211. * src/BtHaveNoneMessage.cc
  5212. * src/BtHaveNoneMessage.h
  5213. * src/BtInterestedMessage.cc
  5214. * src/BtInterestedMessage.h
  5215. * src/BtKeepAliveMessage.cc
  5216. * src/BtKeepAliveMessage.h
  5217. * src/BtNotInterestedMessage.cc
  5218. * src/BtNotInterestedMessage.h
  5219. * src/BtPieceMessage.cc
  5220. * src/BtPieceMessage.h
  5221. * src/BtPortMessage.cc
  5222. * src/BtPortMessage.h
  5223. * src/BtRejectMessage.cc
  5224. * src/BtRejectMessage.h
  5225. * src/BtRejectMessageValidator.h: Removed
  5226. * src/BtRequestMessage.cc
  5227. * src/BtRequestMessage.h
  5228. * src/BtRequestMessageValidator.h: Removed
  5229. * src/BtSuggestPieceMessage.cc
  5230. * src/BtSuggestPieceMessage.h
  5231. * src/BtSuggestPieceMessageValidator.h: Removed
  5232. * src/BtUnchokeMessage.cc
  5233. * src/BtUnchokeMessage.h
  5234. * src/DefaultBtMessageFactory.cc
  5235. * src/IndexBtMessage.cc
  5236. * src/IndexBtMessage.h
  5237. * src/IndexBtMessageValidator.h
  5238. * src/Makefile.am
  5239. * src/PeerMessageUtil.cc
  5240. * src/PeerMessageUtil.h
  5241. * src/RangeBtMessage.cc
  5242. * src/RangeBtMessage.h
  5243. * src/RangeBtMessageValidator.h
  5244. * src/SimpleBtMessage.cc
  5245. * src/SimpleBtMessage.h
  5246. * src/ZeroBtMessage.cc
  5247. * src/ZeroBtMessage.h
  5248. * test/BtRequestMessageTest.cc
  5249. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5250. Reverted usage_text.h to r1093 to avoid to lose translated
  5251. messages.
  5252. * src/usage_text.h
  5253. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5254. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5255. declared as non-const previously is now const and defined in class
  5256. definition.
  5257. * src/AbstractBtMessage.cc
  5258. * src/AbstractBtMessage.h
  5259. * src/BtAllowedFastMessage.cc
  5260. * src/BtAllowedFastMessage.h
  5261. * src/BtBitfieldMessage.h
  5262. * src/BtCancelMessage.cc
  5263. * src/BtCancelMessage.h
  5264. * src/BtChokeMessage.cc
  5265. * src/BtChokeMessage.h
  5266. * src/BtExtendedMessage.cc
  5267. * src/BtExtendedMessage.h
  5268. * src/BtHandshakeMessage.cc
  5269. * src/BtHandshakeMessage.h
  5270. * src/BtHaveAllMessage.cc
  5271. * src/BtHaveAllMessage.h
  5272. * src/BtHaveMessage.cc
  5273. * src/BtHaveMessage.h
  5274. * src/BtHaveNoneMessage.cc
  5275. * src/BtHaveNoneMessage.h
  5276. * src/BtInterestedMessage.cc
  5277. * src/BtInterestedMessage.h
  5278. * src/BtKeepAliveMessage.cc
  5279. * src/BtKeepAliveMessage.h
  5280. * src/BtMessage.h
  5281. * src/BtNotInterestedMessage.cc
  5282. * src/BtNotInterestedMessage.h
  5283. * src/BtPieceMessage.h
  5284. * src/BtPortMessage.cc
  5285. * src/BtPortMessage.h
  5286. * src/BtRejectMessage.cc
  5287. * src/BtRejectMessage.h
  5288. * src/BtRequestMessage.cc
  5289. * src/BtRequestMessage.h
  5290. * src/BtSuggestPieceMessage.cc
  5291. * src/BtSuggestPieceMessage.h
  5292. * src/BtUnchokeMessage.cc
  5293. * src/BtUnchokeMessage.h
  5294. * src/SimpleBtMessage.cc
  5295. * src/SimpleBtMessage.h
  5296. * test/MockBtMessage.h
  5297. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Use FileEntry::exists()
  5299. * src/MultiDiskAdaptor.cc
  5300. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Added exists()
  5302. * src/FileEntry.cc
  5303. * src/FileEntry.h
  5304. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5305. Added missing prefix dir.
  5306. * src/download_helper.cc
  5307. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5309. * src/CopyDiskAdaptor.cc: Removed
  5310. * src/CopyDiskAdaptor.h: Removed
  5311. * src/DefaultPieceStorage.cc
  5312. * src/Makefile.am
  5313. * src/OptionHandlerFactory.cc
  5314. * src/prefs.cc
  5315. * src/prefs.h
  5316. * src/usage_text.h
  5317. * test/CopyDiskAdaptorTest.cc: Removed
  5318. * test/Makefile.am
  5319. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5320. Rewritten isSameFileBeingDownloaded()
  5321. * src/RequestGroupMan.cc
  5322. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Removed getName() from DownloadContext. getName() is declared in
  5324. BtContext.
  5325. * src/BtContext.h
  5326. * src/DownloadContext.h
  5327. * src/SingleFileDownloadContext.cc
  5328. * src/SingleFileDownloadContext.h
  5329. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5330. in AbstractSingleDiskAdaptor.
  5331. * src/AbstractSingleDiskAdaptor.h
  5332. * src/DiskAdaptor.h
  5333. * src/MultiDiskAdaptor.h
  5334. * src/RequestGroup.cc
  5335. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5336. MultiDiskAdaptor.
  5337. * src/DefaultPieceStorage.cc
  5338. * src/MultiDiskAdaptor.cc
  5339. * src/MultiDiskAdaptor.h
  5340. * test/MultiDiskAdaptorTest.cc
  5341. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. FileEntry::getPath() contains store(top level) directory to
  5343. simplify path handling operation. In the previous implementation,
  5344. store directory is concatenated to FileEntry::getPath() in
  5345. DownloadContext.
  5346. * src/BtDependency.cc
  5347. * src/BtPostDownloadHandler.cc
  5348. * src/CopyDiskAdaptor.cc
  5349. * src/DefaultBtContext.cc
  5350. * src/DirectDiskAdaptor.cc
  5351. * src/FileEntry.cc
  5352. * src/FileEntry.h
  5353. * src/FtpNegotiationCommand.cc
  5354. * src/HttpResponse.cc
  5355. * src/HttpResponseCommand.cc
  5356. * src/Metalink2RequestGroup.cc
  5357. * src/MultiDiskAdaptor.cc
  5358. * src/MultiDiskAdaptor.h
  5359. * src/MultiFileAllocationIterator.cc
  5360. * src/RequestGroup.cc
  5361. * src/SingleFileDownloadContext.cc
  5362. * src/SingleFileDownloadContext.h
  5363. * src/download_helper.cc
  5364. * test/BtDependencyTest.cc
  5365. * test/CopyDiskAdaptorTest.cc
  5366. * test/DefaultBtContextTest.cc
  5367. * test/DefaultBtProgressInfoFileTest.cc
  5368. * test/DirectDiskAdaptorTest.cc
  5369. * test/DownloadHelperTest.cc
  5370. * test/FileEntryTest.cc
  5371. * test/MultiDiskAdaptorTest.cc
  5372. * test/MultiFileAllocationIteratorTest.cc
  5373. * test/RequestGroupTest.cc
  5374. * test/SingleFileDownloadContextTest.cc
  5375. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Fixed compiler warning
  5377. * src/download_helper.cc
  5378. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Throw exception if same infohash torrent is now downloading.
  5380. * src/RequestGroup.cc
  5381. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Added --dry-run option. In this mode, aria2 just checks whether
  5383. the remote file is available and doesn't download data. This
  5384. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5385. are canceled in this mode.
  5386. * src/FtpNegotiationCommand.cc
  5387. * src/HttpResponseCommand.cc
  5388. * src/HttpResponseCommand.h
  5389. * src/OptionHandlerFactory.cc
  5390. * src/RequestGroup.cc
  5391. * src/RequestGroupMan.cc
  5392. * src/prefs.cc
  5393. * src/prefs.h
  5394. * src/usage_text.h
  5395. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Fixed compiler waring
  5397. * test/UriListParserTest.cc
  5398. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Parse options in -i list using OptionParser.
  5400. * src/UriListParser.cc
  5401. * src/UriListParser.h
  5402. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Don't reset URI in retry to avoid additional round trips because
  5404. of redirects.
  5405. * src/AbstractCommand.cc
  5406. * src/OptionHandlerFactory.cc
  5407. * src/prefs.cc
  5408. * src/prefs.h
  5409. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Declared hide() in OptionHandler.
  5411. * src/NameMatchOptionHandler.h
  5412. * src/OptionHandler.h
  5413. * src/OptionHandlerImpl.h
  5414. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Updated doc
  5416. * src/Peer.h
  5417. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5418. Added log message in setStatusInternal()
  5419. * src/ServerStat.cc
  5420. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5422. effectively exclude failed server.
  5423. * src/AbstractCommand.cc
  5424. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Added --index-out option to specify each file path for torrent.
  5426. Here index shown in --show-files option is used to specify which
  5427. file path should be altered. For example, to change the file path
  5428. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5429. option multiple times: --index-out=1=aria2.tar.bz2
  5430. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5431. available. This option can be specified in -i list.
  5432. * src/DefaultBtContext.cc
  5433. * src/DefaultBtContext.h
  5434. * src/MultiDiskAdaptor.cc
  5435. * src/MultiDiskAdaptor.h
  5436. * src/MultiFileAllocationIterator.cc
  5437. * src/OptionHandlerFactory.cc
  5438. * src/OptionHandlerImpl.h
  5439. * src/Util.cc
  5440. * src/Util.h
  5441. * src/download_helper.cc
  5442. * src/prefs.cc
  5443. * src/prefs.h
  5444. * src/usage_text.h
  5445. * test/DefaultBtContextTest.cc
  5446. * test/MultiDiskAdaptorTest.cc
  5447. * test/MultiFileAllocationIteratorTest.cc
  5448. * test/UtilTest.cc
  5449. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Use Util::pathJoin()
  5451. * src/MetalinkParserController.cc
  5452. * test/test.xml
  5453. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. Use Util::pathJoin()
  5455. * src/DefaultBtContext.cc
  5456. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. Added Util::pathJoin()
  5458. * src/Util.h
  5459. * test/UtilTest.cc
  5460. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Applied basename function to remove directory element in
  5462. content-disposition value.
  5463. Return empty string if content-disposition value is ".." or ".".
  5464. * src/Util.cc
  5465. * test/UtilTest.cc
  5466. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5467. Added --max-overall-download-limit in man page.
  5468. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5469. * doc/aria2c.1.txt
  5470. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Added --max-overall-download-limit option. Now --max-upload-limit
  5472. option is not ignored when --max-overall-upload-limit option has
  5473. non-zero value. aria2 checks download(upload) speed in the order:
  5474. first checks overall speed limit and if it is not exceeded, then
  5475. checks speed limit per download. Thus you can specify both
  5476. value. For example, set --max-overall-download-limit=1M and
  5477. --max-download-limit=500K to prevent from one download from eating
  5478. all overall speed limit.
  5479. * src/DefaultBtInteractive.cc
  5480. * src/DefaultBtInteractive.h
  5481. * src/DefaultBtMessageDispatcher.cc
  5482. * src/DefaultBtMessageDispatcher.h
  5483. * src/DownloadCommand.cc
  5484. * src/DownloadCommand.h
  5485. * src/FtpNegotiationCommand.cc
  5486. * src/HttpResponseCommand.cc
  5487. * src/OptionHandlerFactory.cc
  5488. * src/PeerInteractionCommand.cc
  5489. * src/RequestGroup.cc
  5490. * src/RequestGroup.h
  5491. * src/RequestGroupMan.cc
  5492. * src/RequestGroupMan.h
  5493. * src/prefs.cc
  5494. * src/prefs.h
  5495. * src/usage_text.h
  5496. * test/DefaultBtMessageDispatcherTest.cc
  5497. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5498. Documented select-file option in Input File section.
  5499. Documented --http-auth-challenge option.
  5500. * doc/aria2c.1.txt
  5501. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. Now select-file can be specified in the uri list(-i list).
  5503. * src/BtContext.cc
  5504. * src/BtContext.h
  5505. * src/RequestGroup.cc
  5506. * src/Sequence.h
  5507. * src/download_helper.cc
  5508. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Made the upper value of --max-concurrent-downloads options unlimited.
  5510. * src/OptionHandlerFactory.cc
  5511. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5512. Fixed the bug that disk writer is not created even if it shares
  5513. same piece with the preceding file if the length of previous file
  5514. is 0.
  5515. * src/MultiDiskAdaptor.cc
  5516. * test/MultiDiskAdaptorTest.cc
  5517. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5518. In BitTorrent, Open files in read-only mode for hash check. After
  5519. that, re-open file in read/write mode only when the download is
  5520. not finished.
  5521. * src/AbstractDiskWriter.cc
  5522. * src/AbstractDiskWriter.h
  5523. * src/AbstractSingleDiskAdaptor.cc
  5524. * src/AbstractSingleDiskAdaptor.h
  5525. * src/BtCheckIntegrityEntry.cc
  5526. * src/DiskAdaptor.h
  5527. * src/DiskWriter.h
  5528. * src/MultiDiskAdaptor.cc
  5529. * src/MultiDiskAdaptor.h
  5530. * src/RequestGroup.cc
  5531. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5532. Added --http-auth-challenge option. If it is set to true(by
  5533. default), aria2 sends HTTP authorization header only when it is
  5534. requested by the server. If false is set, then authorization
  5535. header is always sent to the server. This is useful for servers
  5536. that don't respond 401 code when authentication is required.
  5537. There is an exception: if username and password are embedded in
  5538. URI, authorization header is always sent to the server regardless
  5539. of this option.
  5540. * src/AuthConfigFactory.cc
  5541. * src/HttpSkipResponseCommand.cc
  5542. * src/OptionHandlerFactory.cc
  5543. * src/prefs.cc
  5544. * src/prefs.h
  5545. * src/usage_text.h
  5546. * test/AuthConfigFactoryTest.cc
  5547. * test/HttpRequestTest.cc
  5548. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. * Release 1.2.0
  5550. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5551. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5552. Thanks to all translators.
  5553. * po/es.po
  5554. * po/ja.po
  5555. * po/ru.po
  5556. * po/uk.po
  5557. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Call deleteSocketForReadCheck() before socket is closed.
  5559. * src/HttpListenCommand.cc
  5560. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5561. Defined virtual destructor for BObject.
  5562. * src/bencode.h
  5563. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Rewritten BDE to make it efficient.
  5565. * src/bencode.cc
  5566. * src/bencode.h
  5567. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Removed function throw list.
  5569. * src/bencode.cc
  5570. * src/bencode.h
  5571. * test/BencodeTest.cc
  5572. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Enclosed all URLs in double quotes in command-line examples.
  5574. * doc/aria2c.1.txt
  5575. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Updated reference/see also section.
  5577. * README
  5578. * doc/aria2c.1.txt
  5579. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. Reorganized man page based on man man-pages.
  5581. * doc/aria2c.1.txt
  5582. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5583. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5584. because same documents are available in man page. Added
  5585. References section.
  5586. * README
  5587. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5589. PERFORMANCE PROFILE section.
  5590. * doc/aria2c.1.txt
  5591. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5592. Rewritten the section for configuration file.
  5593. * README
  5594. * doc/aria2c.1.txt
  5595. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Fixed the segmentation fault during execution of choking algorithm
  5597. in leecher state because of broken compare operator
  5598. implementation.
  5599. * src/BtLeecherStateChoke.cc
  5600. * src/BtLeecherStateChoke.h
  5601. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5602. Open file in binary mode.
  5603. * src/CookieStorage.cc
  5604. * src/DHTSetup.cc
  5605. * src/DHTUtil.cc
  5606. * src/Netrc.cc
  5607. * src/NsCookieParser.cc
  5608. * src/ProtocolDetector.cc
  5609. * src/RequestGroupMan.cc
  5610. * src/Signature.cc
  5611. * src/bencode.cc
  5612. * src/download_helper.cc
  5613. * src/option_processing.cc
  5614. * test/CookieParserTest.cc
  5615. * test/DefaultBtProgressInfoFileTest.cc
  5616. * test/FileTest.cc
  5617. * test/GZipDecoderTest.cc
  5618. * test/RequestGroupManTest.cc
  5619. * test/SignatureTest.cc
  5620. * test/SingleFileAllocationIteratorTest.cc
  5621. * test/UriListParserTest.cc
  5622. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Removed operator[] because it is ambiguous with built-in []
  5624. operator.
  5625. * src/array_fun.h
  5626. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Fixed compile error
  5628. * src/OptionParser.cc
  5629. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5630. Added missing call to arrayWrapperConst
  5631. * test/array_funTest.cc
  5632. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5633. Use array_wrapper instead of array_ptr.
  5634. * src/DHTRoutingTableDeserializer.cc
  5635. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5637. * src/array_fun.h
  5638. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5639. Added array_wrapper template.
  5640. * src/array_fun.h
  5641. * test/array_funTest.cc
  5642. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5643. Use operator T* of array_ptr.
  5644. * src/OptionParser.cc
  5645. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Use localhost instead of 127.0.0.1
  5647. * test/FtpConnectionTest.cc
  5648. * test/MSEHandshakeTest.cc
  5649. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5650. Added operator T*
  5651. * src/array_fun.h
  5652. * test/array_funTest.cc
  5653. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5654. Use dynamically allocated char array to detect memory access
  5655. violation.
  5656. * src/DHTRoutingTableDeserializer.cc
  5657. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5658. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5659. defined.
  5660. * src/PeerMessageUtil.cc
  5661. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5662. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5663. * configure.ac
  5664. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5665. Added a check to see struct sockaddr_in has sin_len member.
  5666. * configure.ac
  5667. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5668. Fixed buffer overrun.
  5669. * src/DHTRoutingTableDeserializer.cc
  5670. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Added LL for long long int constant.
  5672. * test/FtpConnectionTest.cc
  5673. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5674. Casted to unsigned int to suppress compiler warning on netbsd.
  5675. * src/BtRuntime.h
  5676. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5677. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5678. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5679. type time_t.
  5680. * src/SimpleLogger.cc
  5681. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5682. Added test for FtpConnection::receiveSizeResponse().
  5683. * test/FtpConnectionTest.cc
  5684. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5685. Fix epoll error on the old kernel 2.6.8 or ealier.
  5686. * src/EpollEventPoll.cc
  5687. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5688. Use Util::parseLLInt instead of sscanf for portability. The
  5689. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5690. * src/FtpConnection.cc
  5691. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5692. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5693. block. It should not filter anything.
  5694. * src/BitfieldMan.cc
  5695. * src/ConsoleStatCalc.cc
  5696. * test/BitfieldManTest.cc
  5697. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Fixed the bug that the boolean options that don't take arguments
  5699. don't work.
  5700. * src/OptionHandlerImpl.h
  5701. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5702. Fixed broken selected file BitTorrent download.
  5703. * src/MultiDiskAdaptor.cc
  5704. * test/MultiDiskAdaptorTest.cc
  5705. * test/MultiFileAllocationIteratorTest.cc
  5706. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Fixed #define guard for EpollEventPoll
  5708. * src/EpollEventPoll.h
  5709. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5710. Wait 2 seconds. 1 second is sometimes not enough.
  5711. * test/TimeSeedCriteriaTest.cc
  5712. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Use localhost instead of 127.0.0.1.
  5714. * test/DHTConnectionImplTest.cc
  5715. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Suppressed compiler warning.
  5717. * src/AdaptiveURISelector.cc
  5718. * src/DefaultPieceStorage.cc
  5719. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5720. Defined virtual destructor.
  5721. * src/MetalinkParserState.h
  5722. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5723. Give NULL for second argument of getaddrinfo instead of "0".
  5724. * src/NameResolver.cc
  5725. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5727. included strptime doesn't parse data for this format.
  5728. * src/FtpConnection.cc
  5729. * test/FtpConnectionTest.cc
  5730. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Removed tests giving -1 for unsigned argument.
  5732. * test/SingleFileDownloadContextTest.cc
  5733. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5734. Don't use sha256 in tests because it might not be supported by the
  5735. SSL library.
  5736. * test/MetalinkProcessorTest.cc
  5737. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5738. Removed tests giving -1 for unsigned argument.
  5739. * test/AlphaNumberDecoratorTest
  5740. * test/BitfieldManTest.cc
  5741. * test/DefaultBtContextTest.cc
  5742. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5743. Fixed compile error without libcares when epoll is available.
  5744. * src/EpollEventPoll.cc
  5745. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5746. Included fstream instead of iostream.
  5747. * test/SignatureTest.cc
  5748. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5749. Removed #include <algorithm>
  5750. * test/RequestGroupTest.cc
  5751. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5752. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5753. using RequestGroup::extractURIResult().
  5754. * src/AdaptiveURISelector.cc
  5755. * src/RequestGroup.cc
  5756. * src/RequestGroup.h
  5757. * test/RequestGroupTest.cc
  5758. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Added tests for array_ptr.
  5760. * test/array_funTest.cc
  5761. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5762. Don't send ip parameter to a tracker if ip parameter is empty
  5763. string.
  5764. * src/DefaultBtAnnounce.cc
  5765. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Adjusted line feed.
  5767. * src/version_usage.cc
  5768. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5769. Print tags, possible values when OptionHandlerException is caught.
  5770. * src/option_processing.cc
  5771. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5772. Changed the message for FatalException.
  5773. * src/OptionParser.cc
  5774. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5775. Documented --bt-external-ip option in man page. Updated man pages
  5776. for --proxy-method option.
  5777. * doc/aria2c.1.txt
  5778. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5779. Use GET method for FTP via HTTP proxy.
  5780. * src/FtpInitiateConnectionCommand.cc
  5781. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Changed the default value of --proxy-method option from 'tunnel'
  5783. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5784. option.
  5785. * src/AbstractCommand.cc
  5786. * src/AbstractCommand.h
  5787. * src/FtpInitiateConnectionCommand.cc
  5788. * src/HttpDownloadCommand.cc
  5789. * src/HttpInitiateConnectionCommand.cc
  5790. * src/HttpInitiateConnectionCommand.h
  5791. * src/OptionHandlerFactory.cc
  5792. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5793. Initialized _logger
  5794. * src/SelectEventPoll.cc
  5795. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5796. Defined a copy constructor for the same type.
  5797. * src/SharedHandle.h
  5798. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5799. Added OptionParser::parseArg() which internally uses getopt_long
  5800. to parse command-line options. All command-line options are now
  5801. configured by OptionHandler. No manual editing of struct option*
  5802. is required any more.
  5803. * src/NameMatchOptionHandler.h
  5804. * src/OptionHandler.h
  5805. * src/OptionHandlerFactory.cc
  5806. * src/OptionHandlerImpl.h
  5807. * src/OptionParser.cc
  5808. * src/OptionParser.h
  5809. * src/array_fun.h
  5810. * src/main.cc
  5811. * src/option_processing.cc
  5812. * test/OptionHandlerTest.cc
  5813. * test/OptionParserTest.cc
  5814. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5815. Fixed configure error with --disable-epoll
  5816. * configure.ac
  5817. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5818. Fixed compile error when HAVE_EPOLL is not defined.
  5819. Fixed linker error on bigendian systems.
  5820. * src/SocketCore.cc
  5821. * src/SocketCore.h
  5822. * test/DefaultBtProgressInfoFileTest.cc
  5823. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5824. Added --bt-external-ip option. You can specify the external IP
  5825. address to report to a BitTorrent tracker. Although this function
  5826. is named 'external', it can accept any kind of IP addresses.
  5827. * src/DefaultBtAnnounce.cc
  5828. * src/OptionHandlerFactory.cc
  5829. * src/option_processing.cc
  5830. * src/prefs.cc
  5831. * src/prefs.h
  5832. * src/usage_text.h
  5833. * test/DefaultBtAnnounceTest.cc
  5834. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Extracted the algorithm to find the longest incremental sequence
  5836. as max_sequence template.
  5837. * src/LongestSequencePieceSelector.cc
  5838. * src/a2algo.h
  5839. * test/Makefile.am
  5840. * test/a2algoTest.cc
  5841. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5842. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5843. * src/usage_text.h
  5844. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5845. Updated doc for --uri-selector, --http-server-listen-port and
  5846. --enable-http-server option. Documented --event-poll option.
  5847. * doc/aria2c.1.txt
  5848. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5849. Updated doc for --enable-http-server.
  5850. * src/usage_text.h
  5851. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5852. Documented --http-server-listen-port and --enable-http-server in
  5853. man page.
  5854. * doc/aria2c.1.txt
  5855. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5857. translations. Thanks to all translators.
  5858. * po/es.po
  5859. * po/id.po
  5860. * po/it.po
  5861. * po/ru.po
  5862. * po/uk.po
  5863. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5864. Bump up version number to 1.2.0
  5865. * configure.ac
  5866. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. BtContext::getAnnounceTiers() now returns const reference.
  5868. * src/BtContext.h
  5869. * src/DefaultBtContext.cc
  5870. * src/DefaultBtContext.h
  5871. * test/MockBtContext.h
  5872. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5873. Change the number of retries for tracker request based on the
  5874. number of available tracker in a torrent file.
  5875. * src/TrackerWatcherCommand.cc
  5876. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Added _maxTries property to RequestGroup and assign the option
  5878. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5879. RequestGroup::getMaxTries() instead of
  5880. Option::getAsInt(PREF_MAX_TRIES).
  5881. * src/AbstractCommand.cc
  5882. * src/RequestGroup.cc
  5883. * src/RequestGroup.h
  5884. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5885. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5886. Mandriva. I modified the patch: make RequestGroup have the
  5887. timeout value and AdaptiveURISelector directly modifies that
  5888. value.
  5889. * src/AbstractCommand.cc
  5890. * src/AdaptiveURISelector.cc
  5891. * src/AdaptiveURISelector.h
  5892. * src/FtpNegotiationCommand.cc
  5893. * src/RequestGroup.cc
  5894. * src/RequestGroup.h
  5895. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5896. Fixed compiler warning
  5897. * test/IteratableChecksumValidatorTest.cc
  5898. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5900. integrated downloads. This PieceSelector subclass finds the
  5901. longest continuous sequence in the available missing pieces and
  5902. selects the last index of such sequence. This makes HTTP/FTP
  5903. connections less interrupted by the pieces obtained by BitTorrent
  5904. peers.
  5905. * src/DefaultPieceStorage.cc
  5906. * src/DefaultPieceStorage.h
  5907. * src/LongestSequencePieceSelector.cc
  5908. * src/LongestSequencePieceSelector.h
  5909. * src/Makefile.am
  5910. * src/PieceSelector.h
  5911. * src/RarestPieceSelector.h
  5912. * src/RequestGroup.cc
  5913. * test/BtDependencyTest.cc
  5914. * test/DefaultPieceStorageTest.cc
  5915. * test/IteratableChecksumValidatorTest.cc
  5916. * test/LongestSequencePieceSelectorTest.cc
  5917. * test/Makefile.am
  5918. * test/SegmentManTest.cc
  5919. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. Fixed the bug that the average speed is wrong in
  5921. http/ftp/BitTorrent integrated download. Only the download bytes
  5922. in BitTorrent were considered.
  5923. * src/RequestGroup.cc
  5924. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5925. Choose port for BitTorrent/DHT randomly from the specified range.
  5926. * src/DHTConnectionImpl.cc
  5927. * src/PeerListenCommand.cc
  5928. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5929. Send HTTP Authorization header only if it is requested by the
  5930. server(response 401). There are some exceptions. The authorization
  5931. header for proxy is always sent if it is available without request
  5932. by the server. If username/password is specified in the URI, it
  5933. is immediately sent to the server without request by the server.
  5934. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5935. SharedHandle<AuthConfig>().
  5936. NetrcAuthResolver::resolveAuthConfig() returns
  5937. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5938. * src/AbstractAuthResolver.cc
  5939. * src/AbstractProxyRequestCommand.cc
  5940. * src/AuthConfigFactory.cc
  5941. * src/AuthConfigFactory.h
  5942. * src/HttpConnection.cc
  5943. * src/HttpRequest.cc
  5944. * src/HttpRequest.h
  5945. * src/HttpResponse.cc
  5946. * src/HttpResponseCommand.cc
  5947. * src/HttpSkipResponseCommand.cc
  5948. * test/AuthConfigFactoryTest.cc
  5949. * test/HttpRequestTest.cc
  5950. * test/HttpResponseTest.cc
  5951. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Remove leading "--" from help keyword and a substring after "="
  5953. from help keyword, so that one can query options by '-h--max-' or
  5954. '-hmax-peers=10'.
  5955. * src/option_processing.cc
  5956. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Rewritten PStringVisitor and its implementation.
  5958. * src/PStringBuildVisitor.cc
  5959. * src/PStringBuildVisitor.h
  5960. * src/PStringDatum.h
  5961. * src/PStringNumLoop.h
  5962. * src/PStringSegment.cc
  5963. * src/PStringSegment.h
  5964. * src/PStringSelect.h
  5965. * src/PStringVisitor.h
  5966. * src/download_helper.cc
  5967. * test/PStringBuildVisitorTest.cc
  5968. * test/ParameterizedStringParserTest.cc
  5969. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5970. Persist connection between the built-in HTTP server and a client
  5971. if a client supports keep-alive. Fixed the bug that aria2 exits
  5972. when the HTTP server receives EOF from a client.
  5973. * src/HttpServer.cc
  5974. * src/HttpServer.h
  5975. * src/HttpServerCommand.cc
  5976. * src/HttpServerCommand.h
  5977. * src/HttpServerResponseCommand.cc
  5978. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5979. Added experimental built-in HTTP server. Currently, when a client
  5980. accesses to the server, it responds with the current download
  5981. progress. By default, it is disabled. To enable the server, give
  5982. --enable-http-server option. To change the default port number
  5983. for the server to listen to, use --http-server-listen-port option.
  5984. The response HTML is very simple and refreshes it self each 1
  5985. second. Because of this refresh, you see flicker in normal web
  5986. browser such as Firefox. I recommend to use console-based browser
  5987. such as elinks, w3m. To connect to the server, run 'elinks
  5988. http://localhost:6800/' while running aria2. Please replace port
  5989. number '6800'(which is default) with your preference.
  5990. * src/DownloadEngineFactory.cc
  5991. * src/HttpHeader.cc
  5992. * src/HttpHeader.h
  5993. * src/HttpHeaderProcessor.cc
  5994. * src/HttpHeaderProcessor.h
  5995. * src/HttpListenCommand.cc
  5996. * src/HttpListenCommand.h
  5997. * src/HttpServer.cc
  5998. * src/HttpServer.h
  5999. * src/HttpServerCommand.cc
  6000. * src/HttpServerCommand.h
  6001. * src/HttpServerResponseCommand.cc
  6002. * src/HttpServerResponseCommand.h
  6003. * src/Makefile.am
  6004. * src/OptionHandlerFactory.cc
  6005. * src/Util.cc
  6006. * src/Util.h
  6007. * src/help_tags.h
  6008. * src/option_processing.cc
  6009. * src/prefs.cc
  6010. * src/prefs.h
  6011. * src/usage_text.h
  6012. * test/HttpHeaderProcessorTest.cc
  6013. * test/UtilTest.cc
  6014. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6015. Removed.
  6016. * src/CheckIntegrityMan.cc
  6017. * src/FileAllocationMan.cc
  6018. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Made (piece) hash check sequential for each RequestGroup because
  6020. simultaneous hash check is slower than sequential execution.
  6021. * src/CheckIntegrityCommand.cc
  6022. * src/CheckIntegrityDispatcherCommand.cc
  6023. * src/CheckIntegrityDispatcherCommand.h
  6024. * src/CheckIntegrityMan.h
  6025. * src/ConsoleStatCalc.cc
  6026. * src/DownloadCommand.cc
  6027. * src/DownloadEngine.cc
  6028. * src/DownloadEngine.h
  6029. * src/DownloadEngineFactory.cc
  6030. * src/Makefile.am
  6031. * src/Makefile.in
  6032. * src/RequestGroup.cc
  6033. * src/StatCalc.h
  6034. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6035. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6036. SequentialDispatcherCommand.
  6037. * src/FileAllocationDispatcherCommand.cc
  6038. * src/SequentialDispatcherCommand.h
  6039. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Rewritten FileAllocationDispatcherCommand using brand new
  6041. SequentialDispatcherCommand.
  6042. * src/DownloadEngineFactory.cc
  6043. * src/FileAllocationCommand.cc
  6044. * src/FileAllocationDispatcherCommand.cc
  6045. * src/FileAllocationDispatcherCommand.h
  6046. * src/Makefile.am
  6047. * src/SequentialDispatcherCommand.h
  6048. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. Replaced FileAllocationMan with
  6050. SequentialPicker<FileAllocationEntry>.
  6051. * src/BtCheckIntegrityEntry.cc
  6052. * src/ConsoleStatCalc.cc
  6053. * src/DownloadEngine.cc
  6054. * src/DownloadEngine.h
  6055. * src/DownloadEngineFactory.cc
  6056. * src/FileAllocationCommand.cc
  6057. * src/FileAllocationDispatcherCommand.cc
  6058. * src/FileAllocationMan.h
  6059. * src/Makefile.am
  6060. * src/SequentialPicker.h
  6061. * src/StatCalc.h
  6062. * src/StreamCheckIntegrityEntry.cc
  6063. * test/Makefile.am
  6064. * test/SequentialPickerTest.cc
  6065. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6066. Added doc for adaptive URI selector.
  6067. * doc/aria2c.1.txt
  6068. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6069. Added doc for adaptive URI selector.
  6070. * src/usage_text.h
  6071. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Added doc for --bt-max-peers option.
  6073. * doc/aria2c.1.txt
  6074. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Added doc for --bt-hash-check-seed option.
  6076. * doc/aria2c.1.txt
  6077. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6078. Documented exit codes.
  6079. * doc/aria2c.1.txt
  6080. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6081. Added --bt-max-peers option to specify the maximum number of peers
  6082. per torrent. 0 means unlimited number of peers.
  6083. * src/ActivePeerConnectionCommand.cc
  6084. * src/BtRuntime.h
  6085. * src/DefaultPeerStorage.cc
  6086. * src/DefaultPeerStorage.h
  6087. * src/OptionHandlerFactory.cc
  6088. * src/RequestGroup.cc
  6089. * src/option_processing.cc
  6090. * src/prefs.cc
  6091. * src/prefs.h
  6092. * src/usage_text.h
  6093. * test/DefaultPeerStorageTest.cc
  6094. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6095. Added --bt-hash-check-seed option. If true is given to this
  6096. option, after hash check using --check-integrity option and file
  6097. is complete, continue to seed file. If you want to check file and
  6098. download it only when it is damaged or incomplete, set this option
  6099. to false. This option has effect only on BitTorrent download.
  6100. The default value is true(This is the same behavior with the
  6101. previous release).
  6102. * src/BtCheckIntegrityEntry.cc
  6103. * src/OptionHandlerFactory.cc
  6104. * src/option_processing.cc
  6105. * src/prefs.cc
  6106. * src/prefs.h
  6107. * src/usage_text.h
  6108. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6109. Updated copyright year.
  6110. * src/version_usage.cc
  6111. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6112. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6113. * doc/aria2c.1.txt
  6114. * src/usage_text.h
  6115. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6116. Made the max value of split option unlimited.
  6117. * doc/aria2c.1.txt
  6118. * src/OptionHandlerFactory.cc
  6119. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Fixed compile warning/error.
  6121. * src/DownloadResult.h
  6122. * src/HttpDownloadCommand.cc
  6123. * src/ServerStat.cc
  6124. * test/RequestGroupTest.cc
  6125. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6126. Added --event-poll option to select the method for polling events.
  6127. The available methods are "select" and "epoll". "epoll" is
  6128. available on Linux only. The earlier release has the compile
  6129. option to choose from these methods.
  6130. * configure.ac
  6131. * src/RequestGroupMan.cc
  6132. * src/OptionHandlerFactory.cc
  6133. * src/EpollEventPoll.h
  6134. * src/StreamFileAllocationEntry.cc
  6135. * src/a2io.h
  6136. * src/SelectEventPoll.h
  6137. * src/option_processing.cc
  6138. * src/prefs.h
  6139. * src/EpollEventPoll.cc
  6140. * src/EventPoll.h
  6141. * src/SocketCore.h
  6142. * src/Makefile.am
  6143. * src/main.cc
  6144. * src/DownloadEngine.h
  6145. * src/SelectEventPoll.cc
  6146. * src/DownloadEngine.cc
  6147. * src/SocketCore.cc
  6148. * src/DownloadEngineFactory.cc
  6149. * src/Makefile.in
  6150. * src/prefs.cc
  6151. * src/usage_text.h
  6152. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. Included RecoverableException.h from main.cc
  6154. * src/main.cc
  6155. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6156. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6157. now returns last error encountered in the HTTP/FTP downloads as a
  6158. exit status value. If all downloads finished successfully, aria2
  6159. returns 0. The error code is defined in src/DownloadResult.h.
  6160. The error occurred in the download currently in progress is not
  6161. reported as a last error. If no error has encountered but there
  6162. are in progress or waiting downloads, aria2 returns 7.
  6163. * src/AbstractCommand.cc
  6164. * src/DlAbortEx.h
  6165. * src/DlRetryEx.h
  6166. * src/DownloadCommand.cc
  6167. * src/DownloadFailureException.h
  6168. * src/DownloadResult.h
  6169. * src/FtpNegotiationCommand.cc
  6170. * src/HttpSkipResponseCommand.cc
  6171. * src/Makefile.am
  6172. * src/MultiUrlRequestInfo.cc
  6173. * src/MultiUrlRequestInfo.h
  6174. * src/RecoverableException.h
  6175. * src/RequestGroup.cc
  6176. * src/RequestGroup.h
  6177. * src/RequestGroupMan.cc
  6178. * src/RequestGroupMan.h
  6179. * src/URIResult.cc
  6180. * src/URIResult.h
  6181. * src/main.cc
  6182. * src/option_processing.cc
  6183. * test/RequestGroupTest.cc
  6184. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6185. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6186. patch adds AdaptiveURISelector, which selects one of the bests
  6187. mirrors for first and reserved connections. For supplementary
  6188. ones, it returns mirrors which has not been tested yet, and if
  6189. each of them already tested, returns mirrors which has to be
  6190. tested again. Otherwise, it doesn't return anymore mirrors.
  6191. * src/AdaptiveURISelector.cc
  6192. * src/AdaptiveURISelector.h
  6193. * src/FtpNegotiationCommand.cc
  6194. * src/HttpResponseCommand.cc
  6195. * src/Makefile.am
  6196. * src/Makefile.in
  6197. * src/OptionHandlerFactory.cc
  6198. * src/RequestGroup.cc
  6199. * src/RequestGroup.h
  6200. * src/RequestGroupMan.cc
  6201. * src/ServerStat.cc
  6202. * src/ServerStat.h
  6203. * src/ServerStatMan.cc
  6204. * src/SpeedCalc.cc
  6205. * src/URISelector.h
  6206. * src/prefs.cc
  6207. * src/prefs.h
  6208. * test/RequestGroupManTest.cc
  6209. * test/ServerStatManTest.cc
  6210. * test/ServerStatTest.cc
  6211. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Fixed unit test error.
  6213. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6214. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. * Release 1.1.2
  6216. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Updated Russian translation. Thanks to the translators.
  6218. * po/ru.po
  6219. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Added the description of --use-head option to man page.
  6221. * doc/aria2c.1.txt
  6222. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Bump up version number to 1.1.2
  6224. * configure.ac
  6225. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6226. Added --use-head option to toggle whether HEAD method should be
  6227. used in the first HTTP request. By default aria2 uses HEAD method
  6228. as the first request. When the server doesn't recognize HEAD, then
  6229. give aria2 --use-head=false to force aria2 to use GET method
  6230. instead.
  6231. * src/OptionHandlerFactory.cc
  6232. * src/RequestGroupMan.cc
  6233. * src/option_processing.cc
  6234. * src/prefs.cc
  6235. * src/prefs.h
  6236. * src/usage_text.h
  6237. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6239. message is received before CHOKE message. The old implementation
  6240. doen't clear the use-bit of the piece when recieved REJECT
  6241. message.
  6242. * src/DefaultBtMessageDispatcher.cc
  6243. * test/DefaultBtMessageDispatcherTest.cc
  6244. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6245. * Release 1.1.1
  6246. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Bump up version number to 1.1.1.
  6248. * configure.ac
  6249. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6250. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6251. is printed repeatedly.
  6252. * src/ConsoleStatCalc.cc
  6253. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. * Release 1.1.0
  6255. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. Added ifdef clause for conditional compilation.
  6257. * src/main.cc
  6258. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6260. translations. Thanks to all translators.
  6261. * po/ja.po
  6262. * po/ru.po
  6263. * po/uk.po
  6264. * po/zh_CN.po
  6265. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6266. Added the preceding ">>> " before the message "Printing the
  6267. contents of file..." to make the output more readable.
  6268. * src/main.cc
  6269. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6270. Added try-catch block in the loop in showFiles() to continue the
  6271. operation even if the exception occurred in one file.
  6272. * src/main.cc (showFiles)
  6273. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6274. Made messages in showFiles() translatable.
  6275. * po/aria2.pot
  6276. * src/main.cc
  6277. * src/message.h
  6278. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6279. Print the contents of Torrent/Metalink files are printed without
  6280. -T/-M options.
  6281. * src/main.cc
  6282. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. Escaped '--' with '\--'
  6284. * README
  6285. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6286. Updated "How to build" section in README. Mentioned about
  6287. --with-ca-bundle compile option.
  6288. * README
  6289. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6290. Bump up version number to 1.1.0.
  6291. * configure.ac
  6292. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6293. Added a note for --dht-listen-port option.
  6294. * doc/aria2c.1.txt
  6295. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Update doc for --realtime-chunk-checksum option.
  6297. * doc/aria2c.1.txt
  6298. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Update doc for --realtime-chunk-checksum option.
  6300. * src/usage_text.h
  6301. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. Updated French, Japanese, Russian and Ukrainian translations.
  6303. Thanks to all translators.
  6304. * po/fr.po
  6305. * po/ja.po
  6306. * po/ru.po
  6307. * po/uk.po
  6308. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6309. Renamed aria2c.pot to aria2.pot
  6310. * po/aria2.pot
  6311. * po/aria2c.pot: Removed.
  6312. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6313. Removed MetaEntry.h
  6314. * src/Makefile.am
  6315. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6316. Rename file by appending digits if a local file exists and its
  6317. file size is larger than that of remote file with --continue
  6318. option. The old implementation just throws exception in such case.
  6319. * src/RequestGroup.cc
  6320. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6321. Fixed the bug that download progress summary is not printed in the
  6322. interval specified by the option.
  6323. * src/ConsoleStatCalc.cc
  6324. * src/ConsoleStatCalc.h
  6325. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6326. Fixed compiler warning
  6327. * src/Cookie.cc
  6328. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6329. Fixed the cookie implementation based on RFC2965.
  6330. Now if a value in domain field is not started with dot, then
  6331. prepend dot. That means a cookie with domain=sf.net is sent to
  6332. wiki.sf.net.
  6333. * src/Cookie.cc
  6334. * test/CookieParserTest.cc
  6335. * test/CookieStorageTest.cc
  6336. * test/CookieTest.cc
  6337. * test/NsCookieParserTest.cc
  6338. * test/Sqlite3MozCookieParserTest.cc
  6339. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6340. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6341. is enabled and the server doesn't support keep-alive.
  6342. * src/AbstractCommand.cc
  6343. * src/DownloadCommand.cc
  6344. * src/HttpDownloadCommand.cc
  6345. * src/HttpDownloadCommand.h
  6346. * src/HttpResponseCommand.cc
  6347. * src/Request.cc
  6348. * src/Request.h
  6349. * test/RequestTest.cc
  6350. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6351. Removed Dictionary/List/Data and its related classes.
  6352. * src/BencodeVisitor.cc: Removed.
  6353. * src/BencodeVisitor.h: Removed.
  6354. * src/Data.cc: Removed.
  6355. * src/Data.h: Removed.
  6356. * src/Dictionary.cc: Removed.
  6357. * src/Dictionary.h: Removed.
  6358. * src/List.cc: Removed.
  6359. * src/List.h: Removed.
  6360. * src/Makefile.am
  6361. * src/MetaEntry.h: Removed.
  6362. * src/MetaEntryVisitor.h: Removed.
  6363. * src/MetaFileUtil.cc: Removed.
  6364. * src/MetaFileUtil.h: Removed.
  6365. * test/BencodeVisitorTest.cc: Removed.
  6366. * test/DataTest.cc: Removed.
  6367. * test/DictionaryTest.cc: Removed.
  6368. * test/ListTest.cc: Removed.
  6369. * test/Makefile.am
  6370. * test/MetaFileUtilTest.cc: Removed.
  6371. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Removed include of MetaEntry.h
  6373. * test/DHTMessageTrackerEntryTest.cc
  6374. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6375. Use BDE instead of Dictionary/List/Data.
  6376. * src/AnnounceList.cc
  6377. * src/AnnounceList.h
  6378. * test/AnnounceListTest.cc
  6379. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6380. Use BDE instead of Dictionary/List/Data.
  6381. * src/DHTAbstractMessage.cc
  6382. * src/DHTAbstractMessage.h
  6383. * src/DHTAnnouncePeerMessage.cc
  6384. * src/DHTAnnouncePeerMessage.h
  6385. * src/DHTAnnouncePeerReplyMessage.cc
  6386. * src/DHTAnnouncePeerReplyMessage.h
  6387. * src/DHTFindNodeMessage.cc
  6388. * src/DHTFindNodeMessage.h
  6389. * src/DHTFindNodeReplyMessage.cc
  6390. * src/DHTFindNodeReplyMessage.h
  6391. * src/DHTGetPeersMessage.cc
  6392. * src/DHTGetPeersMessage.h
  6393. * src/DHTGetPeersReplyMessage.cc
  6394. * src/DHTGetPeersReplyMessage.h
  6395. * src/DHTMessageFactory.h
  6396. * src/DHTMessageFactoryImpl.cc
  6397. * src/DHTMessageFactoryImpl.h
  6398. * src/DHTMessageReceiver.cc
  6399. * src/DHTMessageTracker.cc
  6400. * src/DHTMessageTracker.h
  6401. * src/DHTPingMessage.cc
  6402. * src/DHTPingMessage.h
  6403. * src/DHTPingReplyMessage.cc
  6404. * src/DHTPingReplyMessage.h
  6405. * src/DHTQueryMessage.cc
  6406. * src/DHTQueryMessage.h
  6407. * src/DHTResponseMessage.cc
  6408. * src/DHTResponseMessage.h
  6409. * test/DHTAnnouncePeerMessageTest.cc
  6410. * test/DHTAnnouncePeerReplyMessageTest.cc
  6411. * test/DHTFindNodeMessageTest.cc
  6412. * test/DHTFindNodeReplyMessageTest.cc
  6413. * test/DHTGetPeersMessageTest.cc
  6414. * test/DHTGetPeersReplyMessageTest.cc
  6415. * test/DHTMessageFactoryImplTest.cc
  6416. * test/DHTMessageTrackerTest.cc
  6417. * test/DHTPingMessageTest.cc
  6418. * test/DHTPingReplyMessageTest.cc
  6419. * test/MockDHTMessageFactory.h
  6420. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Added tests the case where length < 0 is specified.
  6422. * test/BencodeTest.cc
  6423. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6424. Fixed memory leak in decoderawstring()
  6425. * src/bencode.cc
  6426. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6427. Added missing #ifdef guard. Added uc() function for String and
  6428. removeKey() for Dict.
  6429. * src/bencode.cc
  6430. * src/bencode.h
  6431. * test/BencodeTest.cc
  6432. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6433. Use BDE instead of Dictionary/List/Data.
  6434. * src/HandshakeExtensionMessage.cc
  6435. * src/HandshakeExtensionMessage.h
  6436. * test/HandshakeExtensionMessageTest.cc
  6437. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Added --max-overall-upload-limit option. This option limits the
  6439. overall upload speed. Stated in help message that the existing
  6440. --max-upload-limit option limits the upload speed per each
  6441. torrent. Man page is also updated.
  6442. * doc/aria2c.1.txt
  6443. * src/DefaultBtMessageDispatcher.cc
  6444. * src/DefaultBtMessageDispatcher.h
  6445. * src/OptionHandlerFactory.cc
  6446. * src/PeerInteractionCommand.cc
  6447. * src/option_processing.cc
  6448. * src/prefs.cc
  6449. * src/prefs.h
  6450. * src/usage_text.h
  6451. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Use BDE instead of Dictionary/List/Data classes.
  6453. * src/CompactPeerListProcessor.cc
  6454. * src/CompactPeerListProcessor.h
  6455. * src/DefaultBtAnnounce.cc
  6456. * src/DefaultBtContext.cc
  6457. * src/DefaultBtContext.h
  6458. * src/DefaultPeerListProcessor.cc
  6459. * src/DefaultPeerListProcessor.h
  6460. * src/DelegatingPeerListProcessor.cc
  6461. * src/DelegatingPeerListProcessor.h
  6462. * src/PeerListProcessor.h
  6463. * src/UTPexExtensionMessage.cc
  6464. * src/Util.h
  6465. * src/message.h
  6466. * test/DefaultBtContextTest.cc
  6467. * test/DefaultPeerListProcessorTest.cc
  6468. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6469. Added bencode helper functions and BDE class.
  6470. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6471. * src/Makefile.am
  6472. * src/bencode.cc
  6473. * src/bencode.h
  6474. * test/BencodeTest.cc
  6475. * test/Makefile.am
  6476. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6477. Fixed the bug that bad URI is sent to the tracker when the announe
  6478. URI in torrent file includes query.
  6479. * src/DefaultBtAnnounce.cc
  6480. * test/DefaultBtAnnounceTest.cc
  6481. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6482. Added Option::blank().
  6483. Use !Option::blank(name) instead of Option::defined(name) for
  6484. the options that take filename.
  6485. * src/MultiUrlRequestInfo.cc
  6486. * src/Option.cc
  6487. * src/Option.h
  6488. * src/main.cc
  6489. * src/option_processing.cc
  6490. * test/OptionTest.cc
  6491. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6492. Documented the default value of --check-certificate option in man
  6493. page.
  6494. * doc/aria2c.1.txt
  6495. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6496. Enabled --check-certificate by default. Added compile
  6497. time(configure) option --with-ca-bundle to specify CA bundle.
  6498. Warn if --check-certificate=true and --ca-certificate is not
  6499. specified or loading CA certificate is failed.
  6500. * configure.ac
  6501. * src/MultiUrlRequestInfo.cc
  6502. * src/OptionHandlerFactory.cc
  6503. * src/message.h
  6504. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6505. Mentioned https tag in help option.
  6506. * doc/aria2c.1.txt
  6507. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6508. Added `https' tag to help option category. Added https tag to
  6509. --ca-certificate, --certificate, --check-certificate and
  6510. --private-key option.
  6511. * src/OptionHandlerFactory.cc
  6512. * src/help_tags.h
  6513. * src/option_processing.cc
  6514. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Changed the package name from `aria2c' to `aria2' in order to fix
  6516. the packaging issue in Debian and Fedora. The name of the
  6517. executable is not changed.
  6518. * configure.ac
  6519. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6520. Fixed typos
  6521. * src/usage_text.h
  6522. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6523. Fixed typos and updated doc.
  6524. * README
  6525. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6526. Fixed typos
  6527. * doc/aria2c.1.txt
  6528. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6529. Fixed typos
  6530. * src/usage_text.h
  6531. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6532. Print a message when no files to download.
  6533. * src/download_helper.cc
  6534. * src/main.cc
  6535. * src/message.h
  6536. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6537. RFC3986 complied Percent-Encoding(urlencode).
  6538. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6539. ones.
  6540. * src/Request.cc
  6541. * src/Util.cc
  6542. * src/Util.h
  6543. * test/BtHandshakeMessageTest.cc
  6544. * test/DefaultBtAnnounceTest.cc
  6545. * test/DefaultBtContextTest.cc
  6546. * test/RequestTest.cc
  6547. * test/UtilTest.cc
  6548. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6549. Fixed the bug that prevents aria2 from downloading 0-length files
  6550. via HTTP/FTP.
  6551. * src/DefaultBtContext.cc
  6552. * src/DefaultBtContext.h
  6553. * src/DownloadContext.h
  6554. * src/FtpNegotiationCommand.cc
  6555. * src/HttpResponseCommand.cc
  6556. * src/HttpResponseCommand.h
  6557. * src/RequestGroup.cc
  6558. * src/SingleFileDownloadContext.cc
  6559. * src/SingleFileDownloadContext.h
  6560. * test/BtPostDownloadHandlerTest.cc
  6561. * test/MetalinkPostDownloadHandlerTest.cc
  6562. * test/MockBtContext.h
  6563. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6565. * src/option_processing.cc
  6566. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Applied aria2-1.0.1-mingw.patch.
  6568. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6569. mingw.
  6570. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6571. * src/SocketCore.cc
  6572. * src/a2netcompat.h
  6573. * test/SocketCoreTest.cc
  6574. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6575. * Release 1.0.1
  6576. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Updated Ukrainian and Norwegian Nynorsk translations.
  6578. Thanks to all translators.
  6579. * po/nn.po
  6580. * po/uk.po
  6581. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6582. Don't show download result when -S option is used.
  6583. * src/main.cc
  6584. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6585. Bump up version number to 1.0.1
  6586. * configure.ac
  6587. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6588. Closed files after the test cases in MultiDiskWriterTest::
  6589. testResetDiskWriterEntries(). This will fix the unit test error
  6590. in mingw32 build.
  6591. * test/MultiDiskWriterTest.cc
  6592. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6593. Use HEAD method to get file size from HTTP server for segmented
  6594. downloading.
  6595. The request to the BitTorrent Tracker always uses GET method because
  6596. the response of the tracker is small and it doesn't need segmented
  6597. download.
  6598. * src/FtpNegotiationCommand.cc
  6599. * src/HttpRequest.cc
  6600. * src/HttpResponseCommand.cc
  6601. * src/HttpSkipResponseCommand.cc
  6602. * src/RequestGroup.cc
  6603. * src/RequestGroup.h
  6604. * src/TrackerWatcherCommand.cc
  6605. * test/HttpRequestTest.cc
  6606. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Fixed the bug that causes floating exception when -T option is used and
  6608. no URIs are given.
  6609. * src/download_helper.cc
  6610. * test/DownloadHelperTest.cc
  6611. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6612. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6613. errors in MinGW:
  6614. Closed file after saving server stats (RequestGroupMan.cc)
  6615. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6616. Ignored case & handled 2-digit years (strptime.c)
  6617. Added missing suseconds_t definition (a2time.h)
  6618. Fixed socket CLOSE() define (SocketCore.cc)
  6619. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6620. Changed utime() test values from x000 to x00000 as MinGW failed on
  6621. values less than timezone offset from Unix epoch
  6622. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6623. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6624. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6625. handle negative dates (CookieParserTest.cc)
  6626. * src/a2time.h
  6627. * src/FtpConnection.cc
  6628. * src/RequestGroupMan.cc
  6629. * src/SocketCore.cc
  6630. * src/strptime.c
  6631. * test/CookieParserTest.cc
  6632. * test/CopyDiskAdaptorTest.cc
  6633. * test/FileTest.cc
  6634. * test/FtpConnectionTest.cc
  6635. * test/MultiDiskAdaptorTest.cc
  6636. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6637. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6638. * doc/aria2c.1.txt
  6639. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6640. * Release 1.0.0
  6641. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6642. Added '~' to reserved characters.
  6643. * src/Util.cc
  6644. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6645. Do not urlencode Request::url in setUrl() because we want unmodified
  6646. URL using Request::getUrl()
  6647. * src/Request.cc
  6648. * src/Request.h
  6649. * test/RequestTest.cc
  6650. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6651. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6652. Thanks to all translators.
  6653. * po/bg.po
  6654. * po/fr.po
  6655. * po/ja.po
  6656. * po/ru.po
  6657. * po/uk.po
  6658. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6659. Bump up version number to 1.0.0
  6660. * configure.ac
  6661. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6662. Added nosqlite3 build to build_test.sh.
  6663. Renamed noxml as expat.
  6664. * build_test.sh
  6665. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Updated INPUT FILE section.
  6667. * doc/aria2c.1.txt
  6668. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6670. on big endian systems because test .aria2 files are made for little
  6671. endian systems.
  6672. * test/DefaultBtProgressInfoFileTest.cc
  6673. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6674. Dropped ares support.
  6675. * README
  6676. * configure.ac
  6677. * m4/libares.m4: Removed.
  6678. * src/AsyncNameResolver.cc
  6679. * src/Makefile.am
  6680. * test/Makefile.am
  6681. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6683. Removed const qualifier from DiskWriter::size().
  6684. * src/AbstractDiskWriter.cc
  6685. * src/AbstractDiskWriter.h
  6686. * src/ByteArrayDiskWriter.cc
  6687. * src/ByteArrayDiskWriter.h
  6688. * src/DiskWriter.h
  6689. * test/ByteArrayDiskWriterTest.cc
  6690. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6691. Fixed the bug that causes segmentation fault/bus error during executing
  6692. choking algorithm while seeding. This is caused by improper
  6693. implementation of compare function which returns inconsistent results
  6694. depending on the timing of last unchoke.
  6695. * src/BtSeederStateChoke.cc
  6696. * src/BtSeederStateChoke.h
  6697. * src/DefaultPeerStorage.cc
  6698. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6699. Removed TODO
  6700. * TODO
  6701. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6702. Added a section that explains how to pass argument to options that
  6703. takes optional arguments with its short form.
  6704. * doc/aria2c.1.txt
  6705. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Added -u for the short form of --max-upload-limit option.
  6707. * doc/aria2c.1.txt
  6708. * src/option_processing.cc
  6709. * src/usage_text.h
  6710. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6711. Added -V for the short form of --check-integrity option.
  6712. Now the argument of --check-integrity option is optional:
  6713. if it is omitted, it is evaluated as true.
  6714. * doc/aria2c.1.txt
  6715. * src/option_processing.cc
  6716. * src/usage_text.h
  6717. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6718. Made the default value of --ftp-pasv option set to true and it can take
  6719. true/false values.
  6720. * src/OptionHandlerFactory.cc
  6721. * src/option_processing.cc
  6722. * src/usage_text.h
  6723. * doc/aria2c.1.txt
  6724. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6725. Given custom random number generator to std::random_shuffle.
  6726. * src/AnnounceList.cc
  6727. * src/BtLeecherStateChoke.cc
  6728. * src/BtSeederStateChoke.cc
  6729. * src/DefaultBtRequestFactory.cc
  6730. * src/MetalinkEntry.cc
  6731. * src/RarestPieceSelector.cc
  6732. * src/SimpleRandomizer.cc
  6733. * src/SimpleRandomizer.h
  6734. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6735. Now the default value of --enable-direct-io is true.
  6736. * src/OptionHandlerFactory.cc
  6737. * doc/aria2c.1.txt
  6738. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6739. Erase peer before executing onReturningPeer and onErasingPeer
  6740. because choking algorithm called from onReturningPeer doesn't
  6741. like erasing peer in the active peer list.
  6742. * src/DefaultPeerStorage.cc
  6743. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6744. Instead of creating special filename in createDownloadResult() if
  6745. inMemoryDownload() is true, now it is done in getFilePath().
  6746. * src/RequestGroup.cc
  6747. * test/RequestGroupTest.cc
  6748. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6749. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6750. processed in memory. This is the fix for previous comment out.
  6751. * src/MemoryBufferPreDownloadHandler.cc
  6752. * src/RequestGroup.cc
  6753. * src/RequestGroup.h
  6754. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6755. Commented out the code which sets virtual directory path "[MEMORY]"
  6756. propagate directory to store to following RequestGroup.
  6757. * src/MemoryBufferPreDownloadHandler.cc
  6758. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Bump up version number to 1.0.0b
  6760. * configure.ac
  6761. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6762. Added input_uris.txt to EXTRA_DIST
  6763. * test/Makefile.am
  6764. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6765. Removed PeerObject.h from Makefile.am
  6766. * src/Makefile.am
  6767. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6768. Avoid slow seeding
  6769. * src/PeerInteractionCommand.cc
  6770. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6771. Updated usage for -i option.
  6772. * src/usage_text.h (TEXT_INPUT_FILE)
  6773. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. Added INPUT FILE section to man page.
  6775. Escaped fake URLs.
  6776. * doc/aria2c.1.txt
  6777. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6778. Fixed wrong note position for -o option.
  6779. * doc/aria2c.1.txt
  6780. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6781. Fixed compile error without SSL/XML library.
  6782. * src/DefaultBtProgressInfoFile.cc
  6783. * src/DefaultBtProgressInfoFile.h
  6784. * src/FileMetalinkParserState.cc
  6785. * src/RequestGroup.h
  6786. * src/SocketCore.cc
  6787. * src/SocketCore.h
  6788. * src/VerificationMetalinkParserState.cc
  6789. * src/download_helper.h
  6790. * src/main.cc
  6791. * test/DefaultBtProgressInfoFileTest.cc
  6792. * test/DownloadHelperTest.cc
  6793. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Rewritten URI handling functions. They are now provided as a testable
  6795. functions.
  6796. * src/Makefile.am
  6797. * src/RequestGroup.cc
  6798. * src/RequestGroup.h
  6799. * src/download_helper.cc
  6800. * src/download_helper.h
  6801. * src/main.cc
  6802. * test/DownloadHelperTest.cc
  6803. * test/Makefile.am
  6804. * test/input_uris.txt
  6805. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6806. Quickly terminate commands when ctrl-c is pressed.
  6807. * src/DownloadEngine.cc
  6808. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6809. Quickly terminate idle commands when download finished.
  6810. * src/AbstractCommand.cc
  6811. * src/DownloadCommand.cc
  6812. * src/DownloadEngine.cc
  6813. * src/DownloadEngine.h
  6814. * src/SleepCommand.cc
  6815. * src/SleepCommand.h
  6816. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Added the ability to specify output filename and directory in input
  6818. file.
  6819. Additional parameters are added in the following line of URIs
  6820. with proceeding white space(s), 1 parameter in 1 line.
  6821. The parameter names are the same with the command-line option name
  6822. without proceeding "--". Not all the options are available here:
  6823. at the moment, 'dir' and 'out' options are avialable.
  6824. Please note that out option has no effect against Metalink or BitTorrent
  6825. downloads.
  6826. Example input file:
  6827. http://host/foo-1.1.tar.bz2
  6828. out=foo.tar.bz2
  6829. dir=/tmp/downloads
  6830. http://host/thundermonkey-2.0.tar.bz2
  6831. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6832. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6833. thundermonkey-2.0.tar.bz2 is saved as
  6834. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6835. * src/BtPostDownloadHandler.cc
  6836. * src/Metalink2RequestGroup.cc
  6837. * src/Metalink2RequestGroup.h
  6838. * src/MetalinkPostDownloadHandler.cc
  6839. * src/UriListParser.cc
  6840. * src/UriListParser.h
  6841. * src/main.cc
  6842. * test/Metalink2RequestGroupTest.cc
  6843. * test/UriListParserTest.cc
  6844. * test/filelist1.txt
  6845. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6846. Fixed error when SSL library is not found.
  6847. * configure.ac
  6848. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6849. Cross referenced among -s, -C and -j options.
  6850. Updated usage of -C and -s options.
  6851. * src/usage_text.h
  6852. * doc/aria2c.1.txt
  6853. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6854. Fixed bad cast in 32bit platforms.
  6855. * test/DefaultPieceStorageTest.cc
  6856. (DefaultPieceStorageTest::testGetCompletedLength)
  6857. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Fixed unit test fails on 32bit platforms.
  6859. * test/CookieParserTest.cc
  6860. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6861. Show an average download speed in Download results.
  6862. * src/BtFileAllocationEntry.cc
  6863. * src/DefaultPieceStorage.cc
  6864. * src/DownloadContext.cc
  6865. * src/DownloadContext.h
  6866. * src/DownloadResult.h
  6867. * src/RequestGroup.cc
  6868. * src/RequestGroupMan.cc
  6869. * src/StreamFileAllocationEntry.cc
  6870. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Fixed the bug that metalink file is not processed if Content-Type
  6872. field has a paramter.
  6873. * src/HttpResponse.cc
  6874. * src/HttpResponse.h
  6875. * test/HttpResponseTest.cc
  6876. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6877. Removed unused code.
  6878. * src/DefaultBtAnnounce.cc
  6879. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6880. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6881. the value larger than DefaultPieceStorage::getTotalLength() when
  6882. in flight pieces are involved.
  6883. * src/DefaultPieceStorage.cc
  6884. * test/DefaultPieceStorageTest.cc
  6885. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6886. Bump up version number to 1.0.0a.
  6887. * configure.ac
  6888. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6889. Updated configure.ac
  6890. * configure.ac
  6891. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6892. Added usege for proxy.
  6893. * doc/aria2c.1.txt
  6894. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Added usage for --ca-certificate, --certificate, --private-key and
  6896. --check-certificate options.
  6897. * doc/aria2c.1.txt
  6898. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6899. Updated man page
  6900. * doc/aria2c.1.txt
  6901. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6902. Added --no-proxy option. It receives comman separated hostname or
  6903. domains to which proxy should not be used.
  6904. aria2 honors the environment variable no_proxy to override no-proxy
  6905. value in configuration file. The user can override the environment
  6906. variable no_proxy with --no-proxy command-line option.
  6907. * src/AbstractCommand.cc
  6908. * src/OptionHandlerFactory.cc
  6909. * src/option_processing.cc
  6910. * src/prefs.cc
  6911. * src/prefs.h
  6912. * src/usage_text.h
  6913. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6915. The CA certificates are specified in --ca-certificate option.
  6916. By default, the verification is disabled. Use --check-certificate
  6917. option to enable it.
  6918. * src/HttpRequestCommand.cc
  6919. * src/LibgnutlsTLSContext.cc
  6920. * src/LibgnutlsTLSContext.h
  6921. * src/LibsslTLSContext.cc
  6922. * src/LibsslTLSContext.h
  6923. * src/MultiUrlRequestInfo.cc
  6924. * src/OptionHandlerFactory.cc
  6925. * src/SocketCore.cc
  6926. * src/SocketCore.h
  6927. * src/a2functional.h
  6928. * src/message.h
  6929. * src/option_processing.cc
  6930. * src/prefs.cc
  6931. * src/prefs.h
  6932. * src/usage_text.h
  6933. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6934. Added client certificate authentication for SSL/TLS.
  6935. Currently a private key must be decrypted for use with aria2.
  6936. If a user accidentally gives encrypted file to aria2 then following
  6937. thing happens:
  6938. If encrypted private key is given to aria2, it behaves differently
  6939. depending on the ssl library it uses. If aria2 built with openssl then
  6940. openssl prompts the user for password. If aria2 build with gnutls then
  6941. aria2 exists with error at start up.
  6942. * src/DownloadEngineFactory.cc
  6943. * src/MultiUrlRequestInfo.cc
  6944. * src/OptionHandlerFactory.cc
  6945. * src/option_processing.cc
  6946. * src/prefs.cc
  6947. * src/prefs.h
  6948. * src/usage_text.h
  6949. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6950. Introduced TLSContext that holds TLS related data that can be shared
  6951. with multiple SSL connections.
  6952. * src/DownloadEngineFactory.cc
  6953. * src/LibgnutlsTLSContext.cc
  6954. * src/LibgnutlsTLSContext.h
  6955. * src/LibsslTLSContext.cc
  6956. * src/LibsslTLSContext.h
  6957. * src/Makefile.am
  6958. * src/SocketCore.cc
  6959. * src/SocketCore.h
  6960. * src/TLSContext.h
  6961. * src/message.h
  6962. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Fixed the bug that the DiskWriter of the first FileEntry whose
  6964. `needsFileAllocation' property is false is not created
  6965. even if it shares a piece with next FileEntry which `requested' property
  6966. is true.
  6967. Fixed the bug that zero-length file is not created if pre file
  6968. allocation is not done.
  6969. * src/MultiDiskAdaptor.cc
  6970. * src/MultiDiskAdaptor.h
  6971. * test/MultiDiskAdaptorTest.cc
  6972. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Added the ability to pool proxy connection.
  6974. The conneciton in FTP with proxy-method=GET is not pooled.
  6975. Proxy-Connection header will not be sent when sending CONNECT method.
  6976. * src/DownloadEngine.cc
  6977. * src/DownloadEngine.h
  6978. * src/FtpFinishDownloadCommand.cc
  6979. * src/FtpInitiateConnectionCommand.cc
  6980. * src/FtpNegotiationCommand.cc
  6981. * src/HttpDownloadCommand.cc
  6982. * src/HttpInitiateConnectionCommand.cc
  6983. * src/HttpRequest.cc
  6984. * src/HttpRequest.h
  6985. * src/HttpResponse.cc
  6986. * src/HttpSkipResponseCommand.cc
  6987. * test/HttpRequestTest.cc
  6988. * test/HttpResponseTest.cc
  6989. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Handle date before epoch.
  6991. To create *bad* Time object, call Time::null().
  6992. * src/CookieParser.cc
  6993. * src/FtpConnection.cc
  6994. * src/FtpConnection.h
  6995. * src/FtpNegotiationCommand.cc
  6996. * src/RequestGroup.cc
  6997. * src/TimeA2.cc
  6998. * src/TimeA2.h
  6999. * test/CookieParserTest.cc
  7000. * test/FtpConnectionTest.cc
  7001. * test/TimeTest.cc
  7002. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Added support for following envrionment variables: http_proxy,
  7004. https_proxy, ftp_proxy and all_proxy.
  7005. Each variable is equivalent to the aria2 option whose name is the
  7006. variable name with '_' replaced with '-'.
  7007. They overrides options specified in aria2.conf file.
  7008. The envrionment variables can be overrode using command-line option.
  7009. * src/option_processing.cc
  7010. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7011. Renamed --http-proxy-method as --proxy-method.
  7012. * src/AbstractCommand.cc
  7013. * src/FtpInitiateConnectionCommand.cc
  7014. * src/HttpInitiateConnectionCommand.cc
  7015. * src/OptionHandlerFactory.cc
  7016. * src/option_processing.cc
  7017. * src/prefs.cc
  7018. * src/prefs.h
  7019. * src/usage_text.h
  7020. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7022. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7023. Above 3 options and --http-proxy option can handle proxy in URL format
  7024. like: http://user:passwd@host:port.
  7025. If a proxy requires user/password, they must be specified in a URL.
  7026. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7027. instead.
  7028. * src/AbstractCommand.cc
  7029. * src/AbstractCommand.h
  7030. * src/AbstractProxyRequestCommand.cc
  7031. * src/AbstractProxyRequestCommand.h
  7032. * src/AuthConfigFactory.cc
  7033. * src/AuthConfigFactory.h
  7034. * src/FtpFinishDownloadCommand.cc
  7035. * src/FtpInitiateConnectionCommand.cc
  7036. * src/FtpInitiateConnectionCommand.h
  7037. * src/FtpNegotiationCommand.cc
  7038. * src/FtpTunnelRequestCommand.cc
  7039. * src/FtpTunnelRequestCommand.h
  7040. * src/HttpDownloadCommand.cc
  7041. * src/HttpInitiateConnectionCommand.cc
  7042. * src/HttpInitiateConnectionCommand.h
  7043. * src/HttpProxyRequestCommand.cc
  7044. * src/HttpProxyRequestCommand.h
  7045. * src/HttpRequest.cc
  7046. * src/HttpRequest.h
  7047. * src/HttpRequestCommand.cc
  7048. * src/HttpRequestCommand.h
  7049. * src/HttpSkipResponseCommand.cc
  7050. * src/InitiateConnectionCommand.cc
  7051. * src/InitiateConnectionCommand.h
  7052. * src/OptionHandlerFactory.cc
  7053. * src/OptionHandlerImpl.h
  7054. * src/Request.cc
  7055. * src/option_processing.cc
  7056. * src/prefs.cc
  7057. * src/prefs.h
  7058. * src/usage_text.h
  7059. * test/AuthConfigFactoryTest.cc
  7060. * test/HttpRequestTest.cc
  7061. * test/OptionHandlerTest.cc
  7062. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Execute choking algorithm when unchoked and interested peer is
  7064. disconected.
  7065. * src/DefaultPeerStorage.cc
  7066. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Added testcase for BtNotInterestedMessage from unchoked peer.
  7068. * test/BtNotInterestedMessageTest.cc
  7069. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Execute choking algorithm when BtInterestedMessage arrives from
  7071. unchoked peer.
  7072. * src/BtInterestedMessage.cc
  7073. * src/BtInterestedMessage.h
  7074. * src/DefaultBtMessageFactory.cc
  7075. * test/BtInterestedMessageTest.cc
  7076. * test/MockPeerStorage.h
  7077. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. AuthConfigFactory is now part of DownloadEngine.
  7079. * src/AbstractProxyRequestCommand.cc
  7080. * src/AuthConfigFactory.h
  7081. * src/DownloadEngine.cc
  7082. * src/DownloadEngine.h
  7083. * src/FtpConnection.cc
  7084. * src/FtpConnection.h
  7085. * src/FtpNegotiationCommand.cc
  7086. * src/HttpConnection.cc
  7087. * src/HttpRequest.cc
  7088. * src/HttpRequest.h
  7089. * src/HttpRequestCommand.cc
  7090. * src/HttpResponse.cc
  7091. * src/HttpResponseCommand.cc
  7092. * src/HttpSkipResponseCommand.cc
  7093. * src/MultiUrlRequestInfo.cc
  7094. * src/main.cc
  7095. * test/FtpConnectionTest.cc
  7096. * test/HttpRequestTest.cc
  7097. * test/HttpResponseTest.cc
  7098. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Corrected catched exception type.
  7100. * src/ServerStatMan.cc
  7101. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. DNSCache is now part of DownloadEngine.
  7103. * src/DNSCache.h
  7104. * src/DownloadEngine.cc
  7105. * src/DownloadEngine.h
  7106. * src/InitiateConnectionCommand.cc
  7107. * src/MultiUrlRequestInfo.cc
  7108. * test/Makefile.am
  7109. * test/Makefile.in
  7110. * test/SimpleDNSCacheTest.cc
  7111. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7113. DownloadEngine.
  7114. * src/ActivePeerConnectionCommand.cc
  7115. * src/BtSetup.cc
  7116. * src/CUIDCounter.h
  7117. * src/DHTSetup.cc
  7118. * src/DownloadCommand.cc
  7119. * src/DownloadEngine.cc
  7120. * src/DownloadEngine.h
  7121. * src/DownloadEngineFactory.cc
  7122. * src/FileAllocationDispatcherCommand.cc
  7123. * src/InitiatorMSEHandshakeCommand.cc
  7124. * src/PeerInitiateConnectionCommand.cc
  7125. * src/PeerInteractionCommand.cc
  7126. * src/PeerListenCommand.cc
  7127. * src/RequestGroup.cc
  7128. * src/StreamFileAllocationEntry.cc
  7129. * src/TrackerWatcherCommand.cc
  7130. * src/main.cc
  7131. * test/RequestGroupManTest.cc
  7132. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Implemented commented code in BtSeederStateChoke
  7134. * src/BtSeederStateChoke.cc
  7135. * src/Peer.cc
  7136. * src/Peer.h
  7137. * src/PeerInteractionCommand.cc
  7138. * src/PeerSessionResource.cc
  7139. * src/PeerSessionResource.h
  7140. * test/MockBtMessageDispatcher.h
  7141. * test/PeerSessionResourceTest.cc
  7142. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7144. its object.
  7145. * src/AbstractBtMessage.cc
  7146. * src/ActivePeerConnectionCommand.cc
  7147. * src/ActivePeerConnectionCommand.h
  7148. * src/BtContextAwareCommand.cc
  7149. * src/BtContextAwareCommand.h
  7150. * src/BtExtendedMessage.cc
  7151. * src/BtExtendedMessage.h
  7152. * src/BtInterestedMessage.cc
  7153. * src/BtInterestedMessage.h
  7154. * src/BtNotInterestedMessage.cc
  7155. * src/BtNotInterestedMessage.h
  7156. * src/BtRegistry.cc
  7157. * src/BtRegistry.h
  7158. * src/BtSeederStateChoke.cc
  7159. * src/BtSetup.cc
  7160. * src/DHTGetPeersCommand.cc
  7161. * src/DHTGetPeersCommand.h
  7162. * src/DHTPeerAnnounceEntry.cc
  7163. * src/DHTPeerAnnounceEntry.h
  7164. * src/DHTPeerAnnounceStorage.cc
  7165. * src/DHTPeerAnnounceStorage.h
  7166. * src/DHTPeerLookupTask.cc
  7167. * src/DHTPeerLookupTask.h
  7168. * src/DHTSetup.cc
  7169. * src/DHTSetup.h
  7170. * src/DHTTaskFactory.h
  7171. * src/DHTTaskFactoryImpl.cc
  7172. * src/DHTTaskFactoryImpl.h
  7173. * src/DefaultBtAnnounce.cc
  7174. * src/DefaultBtInteractive.cc
  7175. * src/DefaultBtInteractive.h
  7176. * src/DefaultBtMessageDispatcher.cc
  7177. * src/DefaultBtMessageDispatcher.h
  7178. * src/DefaultBtMessageFactory.cc
  7179. * src/DefaultBtMessageFactory.h
  7180. * src/DefaultBtMessageReceiver.cc
  7181. * src/DefaultBtProgressInfoFile.cc
  7182. * src/DefaultBtProgressInfoFile.h
  7183. * src/DefaultBtRequestFactory.cc
  7184. * src/DefaultBtRequestFactory.h
  7185. * src/DefaultExtensionMessageFactory.cc
  7186. * src/DefaultExtensionMessageFactory.h
  7187. * src/DefaultPeerStorage.cc
  7188. * src/DefaultPeerStorage.h
  7189. * src/DownloadEngine.cc
  7190. * src/DownloadEngine.h
  7191. * src/InitiatorMSEHandshakeCommand.cc
  7192. * src/InitiatorMSEHandshakeCommand.h
  7193. * src/MSEHandshake.cc
  7194. * src/MSEHandshake.h
  7195. * src/Makefile.am
  7196. * src/Makefile.in
  7197. * src/PeerChokeCommand.cc
  7198. * src/PeerChokeCommand.h
  7199. * src/PeerInitiateConnectionCommand.cc
  7200. * src/PeerInitiateConnectionCommand.h
  7201. * src/PeerInteractionCommand.cc
  7202. * src/PeerInteractionCommand.h
  7203. * src/PeerObject.h
  7204. * src/PeerReceiveHandshakeCommand.cc
  7205. * src/PeerReceiveHandshakeCommand.h
  7206. * src/ReceiverMSEHandshakeCommand.cc
  7207. * src/RequestGroup.cc
  7208. * src/RequestGroup.h
  7209. * src/RequestGroupMan.cc
  7210. * src/RequestGroupMan.h
  7211. * src/SeedCheckCommand.cc
  7212. * src/SeedCheckCommand.h
  7213. * src/ShareRatioSeedCriteria.h
  7214. * src/SimpleBtMessage.cc
  7215. * src/TrackerWatcherCommand.cc
  7216. * src/TrackerWatcherCommand.h
  7217. * src/UTPexExtensionMessage.cc
  7218. * src/UTPexExtensionMessage.h
  7219. * test/BtCancelMessageTest.cc
  7220. * test/BtChokeMessageTest.cc
  7221. * test/BtExtendedMessageTest.cc
  7222. * test/BtInterestedMessageTest.cc
  7223. * test/BtNotInterestedMessageTest.cc
  7224. * test/BtPieceMessageTest.cc
  7225. * test/BtPortMessageTest.cc
  7226. * test/BtRegistryTest.cc
  7227. * test/BtRejectMessageTest.cc
  7228. * test/BtRequestMessageTest.cc
  7229. * test/DHTPeerAnnounceEntryTest.cc
  7230. * test/DHTPeerAnnounceStorageTest.cc
  7231. * test/DefaultBtMessageDispatcherTest.cc
  7232. * test/DefaultBtMessageFactoryTest.cc
  7233. * test/DefaultBtProgressInfoFileTest.cc
  7234. * test/DefaultBtRequestFactoryTest.cc
  7235. * test/DefaultExtensionMessageFactoryTest.cc
  7236. * test/MSEHandshakeTest.cc
  7237. * test/MockDHTTaskFactory.h
  7238. * test/ShareRatioSeedCriteriaTest.cc
  7239. * test/UTPexExtensionMessageTest.cc
  7240. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Fixed compiler warning.
  7242. * test/UtilTest.cc
  7243. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Treat Cookie object as session cookie if expiry = 0 is given.
  7245. With this change, you can specify session scoped cookies in an external
  7246. file setting expiry value to 0.
  7247. * src/Cookie.cc
  7248. * src/Cookie.h
  7249. * test/CookieParserTest.cc
  7250. * test/CookieStorageTest.cc
  7251. * test/CookieTest.cc
  7252. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Changed signature of DHTMessageFactory::createResponseMessage().
  7254. Removed unused validateIDMatch.
  7255. * src/DHTMessageFactory.h
  7256. * src/DHTMessageFactoryImpl.cc
  7257. * src/DHTMessageFactoryImpl.h
  7258. * src/DHTMessageTracker.cc
  7259. * test/DHTMessageFactoryImplTest.cc
  7260. * test/MockDHTMessageFactory.h
  7261. Dropped DHT message coming from same ID of localhost.
  7262. * src/DHTMessageReceiver.cc
  7263. Rejected adding node whose ID is the same as localhost's.
  7264. * src/DHTRoutingTable.cc
  7265. * test/BtPortMessageTest.cc
  7266. * test/DHTRoutingTableTest.cc
  7267. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Pool connection when redirection occurs with Content-Length = 0.
  7269. * src/HttpSkipResponseCommand.cc
  7270. * src/HttpSkipResponseCommand.h
  7271. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Fixed the bug that causes time out when redirection occurs with
  7273. content-length 0.
  7274. * src/HttpResponseCommand.cc
  7275. * src/HttpSkipResponseCommand.cc
  7276. * src/HttpSkipResponseCommand.h
  7277. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Now each status legends is shown only when it appears in Download
  7279. Result. If Download Result has no item, then status legend will not
  7280. be printed.
  7281. * src/RequestGroupMan.cc
  7282. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Removed duplicate creation of OptionHandlers.
  7284. * src/option_processing.cc
  7285. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Fixed the bug that causes segmentation fault when accessing files which
  7287. don't exist or are not included in --select-file option while
  7288. validating chunk checksum.
  7289. * src/MultiDiskAdaptor.cc
  7290. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Fixed compiler warning.
  7292. * test/UtilTest.cc
  7293. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7295. * src/IteratableChecksumValidator.cc
  7296. * src/IteratableChunkChecksumValidator.cc
  7297. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. * Release 0.16.2
  7299. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Added Serbian translation. Updated Ukrainian translation.
  7301. Thanks to all translators.
  7302. * po/sr.po
  7303. * po/uk.po
  7304. * po/LINGUAS
  7305. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Bump up version number to 0.16.2
  7307. * configure.ac
  7308. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Added length equality test to operator== to drop a piece message
  7310. whose length does not match to the requested one.
  7311. * src/RequestSlot.cc
  7312. * test/DefaultBtMessageDispatcherTest.cc
  7313. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7315. recieved.
  7316. In this fix, if a request larger than 16KiB length is received, aria2
  7317. disconnects the peer.
  7318. * src/BtConstants.h
  7319. * src/PeerMessageUtil.cc
  7320. * src/PeerMessageUtil.h
  7321. * test/BtRequestMessageTest.cc
  7322. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. * Release 0.16.1
  7324. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7326. * doc/aria2c.1.txt
  7327. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7329. Updated French, Simplified Chinese and Japanese translations.
  7330. Thanks to all translators.
  7331. en@quot and en@boldquot are also added.
  7332. * po/LINGUAS
  7333. * po/fr.po
  7334. * po/ja.po
  7335. * po/uk.po
  7336. * po/vi.po
  7337. * po/zh_CN.po
  7338. * po/zh_TW.po
  7339. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Bump up version number to 0.16.1.
  7341. * configure.ac
  7342. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Updated README.
  7344. * README
  7345. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7347. not to replace '--' with em dash character.
  7348. * doc/aria2c.1.txt
  7349. * doc/makeman
  7350. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7352. every SEC seconds.
  7353. * src/DownloadEngineFactory.cc
  7354. * src/OptionHandlerFactory.cc
  7355. * src/option_processing.cc
  7356. * src/usage_text.h
  7357. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Fixed compile warning on linux-amd64
  7359. * src/FtpConnection.cc
  7360. * src/IteratableChunkChecksumValidator.cc
  7361. * src/MultiDiskAdaptor.cc
  7362. Fixed the bug that unit test fails on linux-amd64
  7363. * test/UtilTest.cc
  7364. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Added --dht-file-path option to change the path to dht.dat, which is a
  7366. serialized DHT routing table.
  7367. * src/OptionHandlerFactory.cc
  7368. * src/option_processing.cc
  7369. * src/usage_text.h
  7370. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Fixed possible underflow.
  7372. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7373. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Fixed the bug that last character in URI is not encoded.
  7375. * src/Request.cc
  7376. * test/RequestTest.cc
  7377. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Fixed the bug that referer header field contains fragment.
  7379. Now Request class removes fragment part of URI and encodes it
  7380. in Request::setUri() and setReferer().
  7381. * src/Request.h
  7382. * src/Request.cc
  7383. * test/RequestTest.cc
  7384. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Added missing m4 macros.
  7386. * m4/cppunit.m4
  7387. * m4/libgcrypt.m4
  7388. * m4/libgnutls-extra.m4
  7389. * m4/libgnutls.m4
  7390. * m4/libxml2.m4
  7391. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Fixed compile error with gcc-4.4(snapshot)
  7393. * src/File.cc
  7394. * src/FtpConnection.cc
  7395. * src/OptionHandlerImpl.h
  7396. * src/Util.cc
  7397. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Removed assert()
  7399. * src/SocketBuffer.cc (SocketBuffer::send)
  7400. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Changed the type of _numNewConnection to unsigned int.
  7402. * src/ActivePeerConnectionCommand.cc
  7403. * src/ActivePeerConnectionCommand.h
  7404. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. * Release 0.16.0
  7406. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Updated doc
  7408. * README
  7409. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7411. translations. Thanks to all translators.
  7412. * po/bg.po
  7413. * po/de.po
  7414. * po/fr.po
  7415. * po/ja.po
  7416. * po/zh_CN.po
  7417. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Bump up version number to 0.16.0.
  7419. * configure.ac
  7420. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7422. int32_t.
  7423. Changed the type of count to int32_t.
  7424. * src/Metalink2RequestGroup.cc
  7425. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Added test for Time::elapsed(time_t).
  7427. * test/TimeTest.cc
  7428. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7430. Util::difftv() should be used instead.
  7431. * src/TimeA2.cc
  7432. * src/TimeA2.h
  7433. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Made socket for dht connections non-blocking
  7435. * src/DHTAbstractMessage.cc
  7436. * src/DHTAbstractMessage.h
  7437. * src/DHTConnection.h
  7438. * src/DHTConnectionImpl.cc
  7439. * src/DHTConnectionImpl.h
  7440. * src/DHTMessage.h
  7441. * src/DHTMessageDispatcherImpl.cc
  7442. * src/DHTMessageDispatcherImpl.h
  7443. * src/DHTUnknownMessage.cc
  7444. * src/DHTUnknownMessage.h
  7445. * src/SocketCore.cc
  7446. * src/SocketCore.h
  7447. * test/MockDHTMessage.h
  7448. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Changed the type of offset to int.
  7450. * src/ParameterizedStringParser.cc
  7451. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Made getAsInt() return int32_t
  7453. * src/Option.h
  7454. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7456. build.
  7457. * configure.ac
  7458. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Use sqlite3_open if sqlite3_open_v2 is not available.
  7460. * src/Sqlite3MozCookieParser.cc
  7461. * src/Sqlite3MozCookieParser.h
  7462. * m4/sqlite3.m4
  7463. * test/Sqlite3MozCookieParserTest.cc
  7464. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7466. * src/BtPieceMessage.cc
  7467. * src/DHTPeerAnnounceStorage.cc
  7468. * src/DefaultPieceStorage.cc
  7469. * src/DownloadCommand.cc
  7470. * src/DownloadEngine.cc
  7471. * src/FtpConnection.cc
  7472. * src/PeerConnection.cc
  7473. * src/PeerMessageUtil.cc
  7474. * src/RequestGroup.cc
  7475. * src/RequestGroupMan.cc
  7476. * src/SimpleBtMessage.cc
  7477. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7479. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7480. * src/AbstractDiskWriter.cc
  7481. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Don't set Request::supportsPersistentConnection() in HttpConnection
  7483. since this code is also used in AbstractProxyResponseCommand.
  7484. Moved those code to HttpResponse.
  7485. * src/HttpResponse.cc
  7486. * src/HttpResponse.h
  7487. * src/HttpConnection.cc
  7488. * src/HttpConnection.h
  7489. * src/HttpResponseCommand.cc
  7490. * test/HttpResponseTest.cc
  7491. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7493. The configuration is minimum: no torrent, no metalink, so there may be
  7494. other compile error on their code.
  7495. * src/a2netcompat.h
  7496. * src/File.cc
  7497. * src/File.h
  7498. * src/SocketCore.cc
  7499. * src/SocketCore.h
  7500. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Made a socket of incoming peer non-blocking.
  7502. * src/PeerListenCommand.cc
  7503. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7505. whole message data is not sent in one send() call.
  7506. * src/BtPieceMessage.cc
  7507. * src/BtPieceMessage.h
  7508. * src/PeerConnection.cc
  7509. * src/PeerConnection.h
  7510. * src/SimpleBtMessage.cc
  7511. * src/SimpleBtMessage.h
  7512. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Fixed the bug that aria2 downloads faster than max-download-limit when
  7514. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7515. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7516. , instead of sum of them.
  7517. * src/ActivePeerConnectionCommand.cc
  7518. * src/DefaultBtInteractive.cc
  7519. * src/DownloadCommand.cc
  7520. * src/PeerInteractionCommand.cc
  7521. * src/PeerReceiveHandshakeCommand.cc
  7522. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. Fixed the bug that HTTPS download fails.
  7524. * src/AbstractCommand.cc
  7525. * src/AbstractCommand.h
  7526. * src/DownloadCommand.cc
  7527. * src/FtpConnection.cc
  7528. * src/HttpConnection.cc
  7529. * src/HttpRequestCommand.cc
  7530. * src/HttpResponseCommand.cc
  7531. * src/HttpSkipResponseCommand.cc
  7532. * src/MSEHandshake.cc
  7533. * src/PeerConnection.cc
  7534. * src/SocketCore.cc
  7535. * src/SocketCore.h
  7536. Fixed the bug that aria2 doesn't download whole content body and cannot
  7537. reuse connection if chunked transfer encoding and gzip content encoding
  7538. are set.
  7539. * src/DownloadCommand.cc
  7540. * src/HttpSkipResponseCommand.cc
  7541. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Updated man page.
  7543. * doc/aria2c.1.txt
  7544. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. When error occurred while aria2 was parsing an .aria2.conf file, print
  7546. the usage of the option that caused error.
  7547. * src/option_processing.cc
  7548. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Fixed compile error on OptionHandlerException
  7550. * src/Makefile.am
  7551. * src/OptionHandlerException.cc
  7552. * src/OptionHandlerException.h
  7553. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Moved message of the error to OptionHandlerException.h
  7555. * src/NameMatchOptionHandler.h
  7556. * src/OptionHandlerException.h
  7557. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. When error occurs while aria2 is parsing an command-line option, print
  7559. the usage of the option.
  7560. * src/Makefile.am
  7561. * src/NameMatchOptionHandler.h
  7562. * src/OptionHandlerException.h
  7563. * src/option_processing.cc
  7564. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Reverted previous change.
  7566. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7567. username is not in URI.
  7568. * src/HttpRequest.cc
  7569. * src/Request.cc
  7570. * test/HttpRequestTest.cc
  7571. * test/RequestTest.cc
  7572. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Now colon is required for username and password in FTP URL, like:
  7574. ftp://username:password@host.
  7575. If colon is not there, aria2 don't parse it as a username. For example,
  7576. aria2 don't retrieve username from ftp://username@host.
  7577. This fix was made in order to login FTP server via non-transparent ftp
  7578. proxy.
  7579. * src/Request.cc
  7580. * test/RequestTest.cc
  7581. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Use netrc for HTTP.
  7583. Now FTP user/password is sent in Authorization header when
  7584. --ftp-via-http-proxy=get is given.
  7585. * src/AuthConfigFactory.cc
  7586. * src/HttpRequest.cc
  7587. * src/HttpRequest.h
  7588. * src/NetrcAuthResolver.cc
  7589. * src/NetrcAuthResolver.h
  7590. * src/OptionHandlerFactory.cc
  7591. * src/option_processing.cc
  7592. * src/prefs.cc
  7593. * src/prefs.h
  7594. * test/AuthConfigFactoryTest.cc
  7595. * test/HttpRequestTest.cc
  7596. * test/NetrcAuthResolverTest.cc
  7597. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Issue PWD command first and get working directory and use it as a prefix
  7599. for CWD command.
  7600. * src/DownloadEngine.cc
  7601. * src/DownloadEngine.h
  7602. * src/FtpConnection.cc
  7603. * src/FtpConnection.h
  7604. * src/FtpFinishDownloadCommand.cc
  7605. * src/FtpInitiateConnectionCommand.cc
  7606. * src/FtpNegotiationCommand.cc
  7607. * src/FtpNegotiationCommand.h
  7608. * test/FtpConnectionTest.cc
  7609. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Removed default user/pass for FTP user/pass, since it should not have
  7611. precedence over netrc configuration by default.
  7612. * src/OptionHandlerFactory.cc
  7613. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Added debug log for socket event.
  7615. * src/AbstractCommand.cc
  7616. * src/PeerAbstractCommand.cc
  7617. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Log microseconds.
  7619. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7620. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Replaced HelpItem.cc with OptionHandler.cc.
  7622. * po/POTFILES.in
  7623. Updated po files with 'make update-po'
  7624. * po/aria2c.pot
  7625. * po/*.po
  7626. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Removed possible values from the text.
  7628. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7629. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. Removed unused preferences:
  7631. PREF_NO_PREALLOCATION
  7632. PREF_STDOUT_LOG
  7633. PREF_TRACKER_MAX_TRIES
  7634. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7635. PREF_MIN_SEGMENT_SIZE
  7636. * src/option_processing.cc
  7637. * src/prefs.cc
  7638. * src/prefs.h
  7639. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Integrated HelpItem into OptionParser to ease the workload for adding
  7641. new options. Removed default value from usage text.
  7642. * src/HelpItem.cc: Removed.
  7643. * src/HelpItem.h: Removed.
  7644. * src/HelpItemFactory.cc: Removed.
  7645. * src/HelpItemFactory.h: Removed.
  7646. * src/Makefile.am
  7647. * src/Makefile.in
  7648. * src/NameMatchOptionHandler.h
  7649. * src/OptionHandler.cc
  7650. * src/OptionHandler.h
  7651. * src/OptionHandlerFactory.cc
  7652. * src/OptionHandlerImpl.h
  7653. * src/OptionParser.cc
  7654. * src/OptionParser.h
  7655. * src/TagContainer.cc: Removed.
  7656. * src/TagContainer.h: Removed.
  7657. * src/TaggedItem.cc: Removed.
  7658. * src/TaggedItem.h: Removed.
  7659. * src/main.cc
  7660. * src/option_processing.cc
  7661. * src/usage_text.h
  7662. * src/version_usage.cc
  7663. * test/HelpItemTest.cc: Removed.
  7664. * test/Makefile.am
  7665. * test/Makefile.in
  7666. * test/OptionHandlerTest.cc
  7667. * test/OptionParserTest.cc
  7668. * test/TagContainerTest.cc: Removed.
  7669. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Moved `TransferStat stat = ...' to inside the `if' clause.
  7671. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7672. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Fixed the bug that a block in a piece is requested when same block is
  7674. already requested to the same peer in end game mode.
  7675. * src/BtRequestFactory.h
  7676. * src/DefaultBtInteractive.cc
  7677. * src/DefaultBtRequestFactory.cc
  7678. * src/DefaultBtRequestFactory.h
  7679. * src/DefaultPieceStorage.cc
  7680. * src/DefaultPieceStorage.h
  7681. * src/PieceStorage.h
  7682. * src/UnknownLengthPieceStorage.cc
  7683. * src/UnknownLengthPieceStorage.h
  7684. * test/DefaultBtRequestFactoryTest.cc
  7685. * test/DefaultPieceStorageTest.cc
  7686. * test/MockBtRequestFactory.h
  7687. * test/MockPieceStorage.h
  7688. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Removed _uploadLength and _downloadLength from PeerSessionResource
  7690. and use PeerStat::_sessionUploadLength and
  7691. PeerStat::_sessionDownloadLength.
  7692. * src/PeerSessionResource.cc
  7693. * src/PeerSessionResource.h
  7694. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Fixed the bug that prefixLength of split bucket which doesn't include
  7696. local node ID is incremented.
  7697. * src/DHTBucket.cc
  7698. * src/DHTBucket.h
  7699. * test/DHTBucketTest.cc
  7700. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Added cookies.sqlite to EXTRA_DIST
  7702. * test/Makefile.am
  7703. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Added Turkish translation. Updated French, German, Russian and
  7705. Simplified Chinese translations. Thanks to all translators.
  7706. * po/LINGUAS
  7707. * po/de.po
  7708. * po/fr.po
  7709. * po/ru.po
  7710. * po/tr.po
  7711. * po/zh_CN.po
  7712. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Added deliminating text to the beginning of the log so that one can find
  7714. where the log starts easily.
  7715. * src/main.cc
  7716. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7718. to fix compile error when async DNS is not enabled by configuration.
  7719. * src/AbstractCommand.cc
  7720. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. If establishing conneciton to a server is failed, then mark error on
  7722. its ServerStat.
  7723. Added the cause of error to log when error event occurred.
  7724. Moved message string to message.h for translation.
  7725. * src/AbstractCommand.cc
  7726. * src/AbstractCommand.h
  7727. * src/FtpNegotiationCommand.cc
  7728. * src/HttpRequestCommand.cc
  7729. * src/PeerAbstractCommand.cc
  7730. * src/message.h
  7731. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Added the function to get error message from socket.
  7733. * src/SocketCore.cc
  7734. * src/SocketCore.h
  7735. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7737. * src/RequestGroupMan.cc
  7738. * src/RequestGroupMan.h
  7739. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. If error event is received in epoll, then abort download immediately.
  7741. * src/AbstractCommand.cc
  7742. * src/Command.cc
  7743. * src/Command.h
  7744. * src/DownloadEngine.cc
  7745. * src/PeerAbstractCommand.cc
  7746. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Added usage message for --uri-selector, --server-stat-of,
  7748. --server-stat-in, --server-stat-timeout options.
  7749. * src/HelpItemFactory.cc
  7750. * src/usage_text.h
  7751. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Added upper limit of FTP response buffer. The current implementation
  7753. uses 4096bytes as a limit.
  7754. * src/FtpConnection.cc
  7755. * src/FtpConnection.h
  7756. * test/FtpConnectionTest.cc
  7757. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Use non-blocking socket for TCP communication to avoid possible
  7759. blocking due to buffer full.
  7760. * src/AbstractProxyRequestCommand.cc
  7761. * src/FtpConnection.cc
  7762. * src/FtpConnection.h
  7763. * src/FtpNegotiationCommand.cc
  7764. * src/FtpNegotiationCommand.h
  7765. * src/HttpConnection.cc
  7766. * src/HttpConnection.h
  7767. * src/HttpRequestCommand.cc
  7768. * src/InitiatorMSEHandshakeCommand.cc
  7769. * src/InitiatorMSEHandshakeCommand.h
  7770. * src/MSEHandshake.cc
  7771. * src/MSEHandshake.h
  7772. * src/Makefile.am
  7773. * src/PeerConnection.cc
  7774. * src/PeerConnection.h
  7775. * src/PeerInteractionCommand.cc
  7776. * src/PeerListenCommand.cc
  7777. * src/ReceiverMSEHandshakeCommand.cc
  7778. * src/ReceiverMSEHandshakeCommand.h
  7779. * src/SocketBuffer.cc
  7780. * src/SocketBuffer.h
  7781. * src/SocketCore.cc
  7782. * src/SocketCore.h
  7783. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Call setStatusRealtime() in constructor.
  7785. * src/RealtimeCommand.cc
  7786. * src/RealtimeCommand.h
  7787. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Call Download::setNoWait(true) to execute newly created command without
  7789. a pause.
  7790. * src/AbstractCommand.cc
  7791. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7793. found' error from HTTP/FTP server NUM times without getting single
  7794. bytes of data, then force the download to fail.
  7795. Basically aria2 tris all URIs available. So if long list of URIs are
  7796. specified in Metalink, then aria2 will take a long time to fail
  7797. eventually if all URIs are outdated. This option eases this situation
  7798. to limit the number of servers to try.
  7799. * src/FtpNegotiationCommand.cc
  7800. * src/HelpItemFactory.cc
  7801. * src/HttpResponseCommand.cc
  7802. * src/OptionHandlerFactory.cc
  7803. * src/PeerStat.h
  7804. * src/RequestGroup.cc
  7805. * src/RequestGroup.h
  7806. * src/SegmentMan.cc
  7807. * src/SegmentMan.h
  7808. * src/option_processing.cc
  7809. * src/prefs.cc
  7810. * src/prefs.h
  7811. * src/usage_text.h
  7812. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7814. response even if more than one response is in it.
  7815. * src/FtpConnection.cc
  7816. * src/FtpConnection.h
  7817. * test/FtpConnectionTest.cc
  7818. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Merged from stable-0.15
  7820. * m4/libcares.m4
  7821. Use pkg-config
  7822. * m4/sqlite3.m4
  7823. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Removed unnecessary if statement.
  7825. * src/DefaultPieceStorage.cc (initPieceStorage)
  7826. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Added --connect-timeout option to specify connect timeout in seconds.
  7828. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7829. connecting to BitTorrent peer is not controlled by this option.
  7830. * src/AbstractProxyRequestCommand.cc
  7831. * src/FtpNegotiationCommand.cc
  7832. * src/HelpItemFactory.cc
  7833. * src/HttpRequestCommand.cc
  7834. * src/OptionHandlerFactory.cc
  7835. * src/option_processing.cc
  7836. * src/prefs.cc
  7837. * src/prefs.h
  7838. * src/usage_text.h
  7839. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Added help message for -R option.
  7841. * src/HelpItemFactory.cc
  7842. * src/usage_text.h
  7843. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Added the message that the time is in local time zone.
  7845. * src/RequestGroup.cc
  7846. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Implemented the ability to get timestamp from remote FTP server using
  7848. MDTM command described in RFC3659.
  7849. * src/FtpConnection.cc
  7850. * src/FtpConnection.h
  7851. * src/FtpNegotiationCommand.cc
  7852. * src/FtpNegotiationCommand.h
  7853. * test/FtpConnectionTest.cc
  7854. * test/Makefile.am
  7855. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Implemented the ability to get timestamp from remote HTTP server and
  7857. apply it to local file. To enable this feature, --remote-time option
  7858. is added. No usage text has been written yet.
  7859. If several servers returns difference timestamp, then aria2 uses latest
  7860. one.
  7861. * src/CopyDiskAdaptor.cc
  7862. * src/CopyDiskAdaptor.h
  7863. * src/DirectDiskAdaptor.cc
  7864. * src/DirectDiskAdaptor.h
  7865. * src/DiskAdaptor.h
  7866. * src/File.cc
  7867. * src/File.h
  7868. * src/HttpHeader.cc
  7869. * src/HttpHeader.h
  7870. * src/HttpResponse.cc
  7871. * src/HttpResponse.h
  7872. * src/HttpResponseCommand.cc
  7873. * src/HttpResponseCommand.h
  7874. * src/MultiDiskAdaptor.cc
  7875. * src/MultiDiskAdaptor.h
  7876. * src/OptionHandlerFactory.cc
  7877. * src/RequestGroup.cc
  7878. * src/RequestGroup.h
  7879. * src/RequestGroupMan.cc
  7880. * src/option_processing.cc
  7881. * src/prefs.cc
  7882. * src/prefs.h
  7883. * test/CopyDiskAdaptorTest.cc
  7884. * test/FileTest.cc
  7885. * test/Makefile.am
  7886. * test/Makefile.in
  7887. * test/MultiDiskAdaptorTest.cc
  7888. * test/TestUtil.cc
  7889. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Fixed the bug that DiskWriterEntry is not created when its
  7891. FileEntry.isRequested() is false and it doesn't share a piece with
  7892. other FileEntries that are requested. This bug causes segmentation fault
  7893. in the end.
  7894. * src/MultiDiskAdaptor.cc
  7895. * src/MultiDiskAdaptor.h
  7896. * src/MultiFileAllocationIterator.cc
  7897. * test/MultiDiskAdaptorTest.cc
  7898. * test/MultiFileAllocationIteratorTest.cc
  7899. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7901. called if the number of file entries are greater than max open files.
  7902. * src/AbstractSingleDiskAdaptor.cc
  7903. * src/AbstractSingleDiskAdaptor.h
  7904. * src/DiskAdaptor.h
  7905. * src/MultiDiskAdaptor.cc
  7906. * src/MultiDiskAdaptor.h
  7907. * test/MultiDiskAdaptorTest.cc
  7908. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7909. Added a constuctor that receives struct timeval.
  7910. Added operator<.
  7911. * src/TimeA2.cc
  7912. * src/TimeA2.h
  7913. * test/TimeTest.cc
  7914. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7916. * src/CookieParser.cc
  7917. * test/CookieParserTest.cc
  7918. * test/HttpResponseTest.cc
  7919. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. Implmented the functions to parse date.
  7921. * src/TimeA2.cc
  7922. * src/TimeA2.h
  7923. * test/TimeTest.cc
  7924. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Added "Firefox3 Cookie" feature to FeatureConfig
  7926. * src/FeatureConfig.cc
  7927. * src/FeatureConfig.h
  7928. * test/FeatureConfigTest.cc
  7929. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Bump up version number to 0.16.0b
  7931. * configure.ac
  7932. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Use pkg-config if is is available.
  7934. * m4/openssl.m4
  7935. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7937. * src/BtAnnounce.h
  7938. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7939. If an error occurred with a URI, remove identical URI from remaining
  7940. URI list because it is likely that same error occurred in the end and it
  7941. is waste of time.
  7942. * src/AbstractCommand.cc
  7943. * src/RequestGroup.cc
  7944. * src/RequestGroup.h
  7945. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Removed wrong comment.
  7947. * src/DefaultPeerStorage.cc
  7948. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7950. Added return value of getpid() to argument of srand() to achieve more
  7951. randomized value.
  7952. * src/SimpleRandomizer.cc
  7953. * src/SimpleRandomizer.h
  7954. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Contact tracker frequently when the number of connections are 0 and
  7956. download is not finished yet.
  7957. * src/ActivePeerConnectionCommand.cc
  7958. * src/BtAnnounce.h
  7959. * src/DefaultBtAnnounce.cc
  7960. * src/DefaultBtAnnounce.h
  7961. * test/MockBtAnnounce.h
  7962. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Moved threshold values to UTPexExtensionMessage.
  7964. * src/DefaultBtInteractive.cc
  7965. * src/Peer.cc
  7966. * src/Peer.h
  7967. * src/UTPexExtensionMessage.cc
  7968. * src/UTPexExtensionMessage.h
  7969. * test/UTPexExtensionMessageTest.cc
  7970. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Added _incoming member to Peer class and made it true if the peer
  7972. initiated connection. Don't add those peer to UTPex message.
  7973. If extended handshake is received, assign _incoming to false.
  7974. * src/DefaultBtInteractive.cc
  7975. * src/HandshakeExtensionMessage.cc
  7976. * src/Peer.cc
  7977. * src/Peer.h
  7978. * src/PeerListenCommand.cc
  7979. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7981. Encoding Decoder. Removed size threshold for turning off on the fly
  7982. inflation because resulting file may or may not be inflated depending
  7983. on the file size and I think it is not expected by users.
  7984. This change fixes segmentation fault when Metalink file contains gzipped
  7985. file and its filesize is provided.
  7986. * src/HttpResponseCommand.cc
  7987. * src/HttpResponseCommand.h
  7988. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Made Cookie immutable.
  7990. * src/Cookie.cc
  7991. * src/Cookie.h
  7992. * src/CookieParser.cc
  7993. * src/CookieParser.h
  7994. * src/CookieStorage.cc
  7995. * test/CookieParserTest.cc
  7996. * test/CookieStorageTest.cc
  7997. * test/NsCookieParserTest.cc
  7998. * test/Sqlite3MozCookieParserTest.cc
  7999. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Removed CookieBox, CookieBoxFactory.
  8001. * src/CookieBox.cc
  8002. * src/CookieBox.h
  8003. * src/CookieBoxFactory.cc
  8004. * src/CookieBoxFactory.h
  8005. * src/Makefile.am
  8006. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Use CookieStorage class instead of CookieBox class.
  8008. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8009. * src/AbstractProxyRequestCommand.cc
  8010. * src/CookieStorage.cc
  8011. * src/DownloadEngine.cc
  8012. * src/DownloadEngine.h
  8013. * src/HttpConnection.cc
  8014. * src/HttpConnection.h
  8015. * src/HttpRequest.cc
  8016. * src/HttpRequest.h
  8017. * src/HttpRequestCommand.cc
  8018. * src/HttpResponse.cc
  8019. * src/HttpResponseCommand.cc
  8020. * src/HttpSkipResponseCommand.cc
  8021. * src/Makefile.am
  8022. * src/MultiUrlRequestInfo.cc
  8023. * src/Request.cc
  8024. * src/Request.h
  8025. * src/main.cc
  8026. * test/AllTest.cc
  8027. * test/CookieStorageTest.cc
  8028. * test/CookieTest.cc
  8029. * test/HttpRequestTest.cc
  8030. * test/HttpResponseTest.cc
  8031. * test/Makefile.am
  8032. * test/NsCookieParserTest.cc
  8033. * test/Sqlite3MozCookieParserTest.cc
  8034. * test/nscookietest.txt
  8035. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Updated
  8037. * test/Cookies.sqlite
  8038. * test/nscookietest.txt
  8039. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Added tests for CookieStorage::load()
  8041. * test/CookieStorageTest.cc
  8042. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Added CookieStorage class which is based on RFC2109 and manages cookies
  8044. more strictly than CookieBox and CookieBoxFactory class.
  8045. * src/CookieStorage.cc
  8046. * src/CookieStorage.h
  8047. * src/Cookie.cc
  8048. * src/Cookie.h
  8049. * test/CookieStorageTest.cc
  8050. * test/CookieTest.cc
  8051. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Fixed the bug that commands are created more than the number of pieces.
  8053. * src/RequestGroup.cc
  8054. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Fixed infinite loop bug in FTP when SIZE command failed.
  8056. * src/FtpNegotiationCommand.cc
  8057. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. Removed DirectDiskAdaptorTest.h
  8059. * test/Makefile.am
  8060. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Fixed chunk checksum validation cannot detect trailing garbage data.
  8062. BUG#2074141
  8063. * src/AbstractSingleDiskAdaptor.cc
  8064. * src/AbstractSingleDiskAdaptor.h
  8065. * src/CheckIntegrityEntry.cc
  8066. * src/CheckIntegrityEntry.h
  8067. * src/DiskAdaptor.h
  8068. * src/MultiDiskAdaptor.cc
  8069. * src/MultiDiskAdaptor.h
  8070. * src/RequestGroup.cc
  8071. * test/DirectDiskAdaptorTest.cc
  8072. * test/MultiDiskAdaptorTest.cc
  8073. * test/TestUtil.cc
  8074. * test/TestUtil.h
  8075. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Bump up version number of dht.dat file to 3. In version 3 format, time
  8077. is stored in 64bit, network byte order.
  8078. New build can load old format(version 2) but it saves the file in new
  8079. format. It means once you used new build, your dht.dat becomes
  8080. incompatible with older build.
  8081. * src/DHTRoutingTableDeserializer.cc
  8082. * src/DHTRoutingTableSerializer.cc
  8083. * test/DHTRoutingTableSerializerTest.cc
  8084. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8086. * test/Makefile.am
  8087. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Bump up version number of .aria2 control file to 0001.
  8089. New aria2 can still load version 0000 file but it saves the file in
  8090. version 0001 format. It means that new aria2 can resume download
  8091. started by old aria2 but the opposite is not true.
  8092. * src/DefaultBtProgressInfoFile.cc
  8093. * src/DefaultBtProgressInfoFile.h
  8094. * test/DefaultBtProgressInfoFileTest.cc
  8095. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. Added ntoh64 and hton64 as inline functions.
  8097. * src/Util.cc
  8098. * test/UtilTest.cc
  8099. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Added sqlite3 depenency and Firefox3 cookie support.
  8101. * README
  8102. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. State that firefox3 cookie is supported explicitly in the usage.
  8104. * src/usage_text.h
  8105. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Externalized message.
  8107. * src/RequestGroupMan.cc
  8108. * src/message.h
  8109. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Save temporary file first and rename to the destination on success.
  8111. Added test cases.
  8112. * src/RequestGroupMan.cc
  8113. * test/RequestGroupManTest.cc
  8114. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Fixed the bug that the number of connected peer is exceeding the limit
  8116. (55 by default) in seeding mode.
  8117. Multiplied 0.8 to _maxUploadSpeedLimit.
  8118. * src/ActivePeerConnectionCommand.cc
  8119. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Clear table item.
  8121. * src/Dictionary.cc
  8122. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Fixed error handling of lseek.
  8124. * src/AbstractDiskWriter.cc
  8125. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8127. style cookie file.
  8128. * src/usage_text.h
  8129. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8131. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8132. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8133. * src/Util.cc
  8134. * src/Util.h
  8135. * src/CookieParser.cc
  8136. * test/UtilTest.cc
  8137. * test/CookieParserTest.cc
  8138. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Separate the implementation to load old mozilla format of cookie to
  8140. NsCookieParser class.
  8141. * src/CookieBoxFactory.cc
  8142. * src/CookieBoxFactory.h
  8143. * src/NsCookieParser.cc
  8144. * src/NsCookieParser.h
  8145. * test/NsCookieParserTest.cc
  8146. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Made parse() const
  8148. * src/Sqlite3MozCookieParser.cc
  8149. * src/Sqlite3MozCookieParser.h
  8150. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Added firefox3 cookie support based on the patch submitted by
  8152. tizianomueller.
  8153. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8154. this functionality.
  8155. * configure.ac
  8156. * m4/sqlite3.m4
  8157. * src/CookieBoxFactory.cc
  8158. * src/CookieBoxFactory.h
  8159. * src/Makefile.am
  8160. * src/Makefile.in
  8161. * src/Sqlite3MozCookieParser.cc
  8162. * src/Sqlite3MozCookieParser.h
  8163. * src/main.cc
  8164. * test/CookieBoxFactoryTest.cc
  8165. * test/Makefile.am
  8166. * test/Makefile.in
  8167. * test/Sqlite3MozCookieParserTest.cc
  8168. * test/badcookies.sqlite
  8169. * test/cookies.sqlite
  8170. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Added Danish and Greek translations.
  8172. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8173. Great thanks to all translators.
  8174. * po/LINGUAS
  8175. * po/el.po
  8176. * po/da.po
  8177. * po/es.po
  8178. * po/ca.po
  8179. * po/nn.po
  8180. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Fixed man page: --follow-bittorrent should be --follow-torrent
  8182. * doc/aria2c.1.txt
  8183. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. Fixed: numCommand is less than the value specified in -C option.
  8185. * src/RequestGroup.cc
  8186. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Fixed occasional assertion failure in PieceSegment.
  8188. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8189. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8190. creation of duplicate segments and one of the segment was finished then
  8191. assertion failure was caused.
  8192. * src/SegmentMan.cc
  8193. * test/SegmentManTest.cc
  8194. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Added options to load/save the server's performance/status to a file
  8196. and the timeout to drop their data.
  8197. --server-stat-of=FILE specifies the file to which performance data
  8198. is saved.
  8199. --server-stat-if=FILE specifies the file to read previously saved
  8200. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8201. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8202. TIMEOUT is specified in seconds and the default value is 24hours.
  8203. * src/MultiUrlRequestInfo.cc
  8204. * src/OptionHandlerFactory.cc
  8205. * src/RequestGroupMan.cc
  8206. * src/RequestGroupMan.h
  8207. * src/ServerStatMan.cc
  8208. * src/ServerStatMan.h
  8209. * src/option_processing.cc
  8210. * src/prefs.cc
  8211. * src/prefs.h
  8212. * test/ServerStatManTest.cc
  8213. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8215. * src/ServerStatMan.cc
  8216. * src/ServerStatMan.h
  8217. * test/ServerStatManTest.cc
  8218. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Implemented ServerStatMan::load(...) function and its test case.
  8220. * src/ServerStat.cc
  8221. * src/ServerStat.h
  8222. * src/ServerStatMan.cc
  8223. * test/ServerStatManTest.cc
  8224. * test/ServerStatTest.cc
  8225. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Use time_t instead of int32_t. Use int64_t where milli second is
  8227. expected.
  8228. * src/TimeA2.cc
  8229. * src/TimeA2.h
  8230. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Implemented ServerStatMan::save(...) function and its test case.
  8232. * src/ServerStat.cc
  8233. * src/ServerStat.h
  8234. * src/ServerStatMan.cc
  8235. * src/ServerStatMan.h
  8236. * test/ServerStatManTest.cc
  8237. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Now aria2 uses name attribute in Metalink as local filename in
  8239. BitTorrent downloads. BUG#2033999
  8240. * src/BtContext.h
  8241. * src/BtDependency.cc
  8242. * src/DefaultBtContext.cc
  8243. * src/DefaultBtContext.h
  8244. * src/SingleFileDownloadContext.cc
  8245. * src/SingleFileDownloadContext.h
  8246. * test/BtDependencyTest.cc
  8247. * test/DefaultBtContextTest.cc
  8248. * test/MockBtContext.h
  8249. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Added AC_C_BIGENDIAN
  8251. * src/configure.ac
  8252. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Limited numCommand less than or equal to the number of piece.
  8254. * src/RequestGroup.cc
  8255. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8257. directive.
  8258. * test/DefaultPieceStorageTest.cc
  8259. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Fixed memory leak in test code
  8261. * test/AnnounceListTest.cc
  8262. * test/DefaultPeerListProcessorTest.cc
  8263. * test/DefaultPeerStorageTest.cc
  8264. * test/MetaFileUtilTest.cc
  8265. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8267. * src/DefaultPieceStorage.cc
  8268. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Initialized _directIOAllowed
  8270. * src/MultiDiskAdaptor.cc
  8271. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Fixed memory leak
  8273. * src/GZipDecoder.cc
  8274. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Fixed memory leak
  8276. * src/MetalinkParserStateMachine.cc
  8277. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Fixed memory leak
  8279. * src/Dictionary.cc
  8280. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Fixed memory leak
  8282. * src/IteratableChunkChecksumValidator.h
  8283. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Fixed unmatched malloc/free.
  8285. * src/IteratableChunkChecksumValidator.cc
  8286. * src/IteratableChecksumValidator.cc
  8287. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Removed max chunk size check. This change fixes BUG#2040169
  8289. * src/ChunkedDecoder.cc
  8290. * src/ChunkedDecoder.h
  8291. * test/ChunkedDecoderTest.cc
  8292. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Implemented download speed based URI selection algorithm.
  8294. Introduced new option --uri-selector.
  8295. If --uri-selector=feedback is given, aria2 uses download speed observed
  8296. in the previous downloads and chooses fastest server in the URI list.
  8297. Currently at most 10 URIs are considered to introduce randomeness for
  8298. finding better servers. The speed is average download speed in the
  8299. downloads.
  8300. On the other hand, if --uri-selector=inorder is given, which is default,
  8301. URI is tried in order in URI list.
  8302. The usage text for the new option has not been written yet.
  8303. * src/AbstractCommand.cc
  8304. * src/DownloadCommand.cc
  8305. * src/DownloadEngine.cc
  8306. * src/DownloadEngineFactory.cc
  8307. * src/InOrderURISelector.cc
  8308. * src/InOrderURISelector.h
  8309. * src/OptionHandlerFactory.cc
  8310. * src/PeerStat.h
  8311. * src/RequestGroup.cc
  8312. * src/RequestGroup.h
  8313. * src/RequestGroupMan.cc
  8314. * src/RequestGroupMan.h
  8315. * src/SegmentMan.cc
  8316. * src/SegmentMan.h
  8317. * src/ServerStat.cc
  8318. * src/ServerStat.h
  8319. * src/ServerStatMan.cc
  8320. * src/ServerStatMan.h
  8321. * src/ServerStatURISelector.cc
  8322. * src/ServerStatURISelector.h
  8323. * src/URISelector.h
  8324. * src/option_processing.cc
  8325. * src/prefs.cc
  8326. * src/prefs.h
  8327. * test/InOrderURISelectorTest.cc
  8328. * test/RequestGroupManTest.cc
  8329. * test/ServerStatManTest.cc
  8330. * test/ServerStatURISelectorTest.cc
  8331. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. * Release 0.15.1+2
  8333. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Bump up version number to 0.15.1+2
  8335. * configure.ac
  8336. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8338. * m4/aria2_arg.m4
  8339. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. * Release 0.15.1+1
  8341. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Bump up version number to 0.15.1+1
  8343. * configure.ac
  8344. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Fixed the bug that causes segmentaion fault when resuming download
  8346. using metalink without size tag. Reproducible only using HTTP URI.
  8347. * src/HttpResponseCommand.cc
  8348. * src/FtpNegotiationCommand.cc
  8349. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. * Release 0.15.1
  8351. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Updated Bulgarian and French translations, thanks to all translators.
  8353. * po/bg.po
  8354. * po/fr.po
  8355. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Bump up version number to 0.15.1
  8357. * configure.ac
  8358. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Avoid repeated call of gettimeofday() when calculating speed.
  8360. * src/SpeedCalc.cc
  8361. * src/SpeedCalc.h
  8362. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Removed writable check when socket's send buffer is full in BitTorrent
  8364. downloads to lower CPU usage.
  8365. * src/PeerInteractionCommand.cc
  8366. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Fixed broken gzip inflation.
  8368. Turn off segmented downloading if gzip content is smaller than or equal
  8369. to 1MiB and inflate the data on the fly, because HTTP response header
  8370. doesn't contain the length of inflated file we can't determin where
  8371. the chunk of data should be written.
  8372. On the other hand, if gzip content is larger than 1MB, then turn off
  8373. on the fly inflation, because some servers returns "content-type: gzip"
  8374. for *.tgz, *.gz files.
  8375. * src/DownloadCommand.cc
  8376. * src/HttpResponseCommand.cc
  8377. * src/HttpResponseCommand.h
  8378. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Applied tizianomueller's patch to fix compile error.
  8380. * test/BitfieldManTest.cc
  8381. * test/BtRequestMessageTest.cc
  8382. * test/DefaultBtContextTest.cc
  8383. * test/DefaultDiskWriterTest.cc
  8384. * test/DefaultPieceStorageTest.cc
  8385. * test/HttpHeaderProcessorTest.cc
  8386. * test/HttpResponseTest.cc
  8387. * test/Metalink2RequestGroupTest.cc
  8388. * test/MetalinkParserControllerTest.cc
  8389. * test/MetalinkProcessorTest.cc
  8390. * test/PeerSessionResourceTest.cc
  8391. * test/UtilTest.cc
  8392. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. * Release 0.15.0
  8394. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Reordered src files in POTFILES.in so that usage text appears first.
  8396. * po/POTFILES.in
  8397. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Bump up version number to 0.15.0
  8399. * configure.ac
  8400. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Added Bulgarian translation.
  8402. Updated Catalan, Spanish, French and Japanese translations.
  8403. Thanks to all translators.
  8404. * po/LINGUAS
  8405. * po/bg.po
  8406. * po/ca.po
  8407. * po/es.po
  8408. * po/fr.po
  8409. * po/ja.po
  8410. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Updated feature list. Added libz for dependency section.
  8412. Added a description about unit testing using CppUnit.
  8413. * README
  8414. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Added a test for libz. Quoted where it is necessary.
  8416. * build_test.sh
  8417. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Added GZip to `Enabled Features' list.
  8419. * src/FeatureConfig.cc
  8420. * src/FeatureConfig.h
  8421. * test/FeatureConfigTest.cc
  8422. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8424. the transfer has not yet started.
  8425. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8426. * src/SegmentMan.cc
  8427. * src/SegmentMan.h
  8428. * test/SegmentManTest.cc
  8429. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Cache last calculated average download/upload speed.
  8431. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8432. cached value.
  8433. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8434. * src/PeerStat.h
  8435. * src/SpeedCalc.cc
  8436. * src/SpeedCalc.h
  8437. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Call parseUrl directly.
  8439. * src/Request.cc (resetUrl)
  8440. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Supported absolute/relative path in Location header field.
  8442. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8443. * src/HttpHeader.cc
  8444. * src/HttpHeader.h
  8445. * src/HttpResponse.cc
  8446. * src/HttpSkipResponseCommand.cc
  8447. * src/Request.cc
  8448. * test/HttpHeaderTest.cc
  8449. * test/HttpResponseTest.cc
  8450. * test/RequestTest.cc
  8451. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Changed help text for --load-cookie option.
  8453. * doc/aria2c.1.txt
  8454. * src/usage_text.h
  8455. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. Regenerated test/Makefile.in to remove stale ChangeLog.
  8457. * test/Makefile.in
  8458. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Updated po files.
  8460. * po/aria2c.pot
  8461. * po/*.po
  8462. * po/*.gmo
  8463. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Bump up version number to 0.15.0b
  8465. * configure.ac
  8466. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Externalize messages.
  8468. * src/RequestGroupMan.cc
  8469. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8470. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Use File::exists() instead of File::isFile() to allow non-regular file
  8472. such as block special files.
  8473. * src/AbstractDiskWriter.cc
  8474. * src/MultiDiskWriter.cc
  8475. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8477. * src/gai_strerror.h
  8478. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Fixed compile error. Thanks gknauf for the patch.
  8480. * src/asctime_r.c
  8481. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Included asctime_r.h from a2time.h.
  8483. * src/a2time.h
  8484. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Added a message "aria2 doesn't verify signature" to log message when
  8486. signature file is saved.
  8487. * src/RequestGroupMan.cc
  8488. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Added the ability to save signature when download is completed if
  8490. signature is available. The filename of signature file is the path to
  8491. download file followed by ".sig". If it already exists, then signature
  8492. will not be saved.
  8493. * src/RequestGroupMan.cc
  8494. * src/Signature.cc
  8495. * test/SignatureTest.cc
  8496. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Updated the descriptions for --bt-seed-unverified.
  8498. * doc/aria2c.1
  8499. * doc/aria2c.1.html
  8500. * doc/aria2c.1.txt
  8501. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8503. that this is not going to verify files using piece hashes.
  8504. * src/HelpItemFactory.cc
  8505. * src/OptionHandlerFactory.cc
  8506. * src/RequestGroup.cc
  8507. * src/option_processing.cc
  8508. * src/prefs.cc
  8509. * src/prefs.h
  8510. * src/usage_text.h
  8511. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Added the ability to retrieve signature from Metalink file.
  8513. A retrieved signature is stored in Signature class and it is held by
  8514. DownloadContext class. Note that aria2 doesn't verify signature.
  8515. * src/DownloadContext.cc
  8516. * src/DownloadContext.h
  8517. * src/Makefile.am
  8518. * src/Makefile.in
  8519. * src/Metalink2RequestGroup.cc
  8520. * src/MetalinkEntry.cc
  8521. * src/MetalinkEntry.h
  8522. * src/MetalinkParserController.cc
  8523. * src/MetalinkParserController.h
  8524. * src/MetalinkParserStateMachine.cc
  8525. * src/MetalinkParserStateMachine.h
  8526. * src/Signature.cc
  8527. * src/Signature.h
  8528. * src/SignatureMetalinkParserState.cc
  8529. * src/SignatureMetalinkParserState.h
  8530. * src/VerificationMetalinkParserState.cc
  8531. * src/VerificationMetalinkParserState.h
  8532. * test/Metalink2RequestGroupTest.cc
  8533. * test/MetalinkParserControllerTest.cc
  8534. * test/MetalinkProcessorTest.cc
  8535. * test/test.xml
  8536. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Close DiskAdaptor after renaming file.
  8538. * src/RequestGroup.cc
  8539. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Corrected indentation
  8541. * src/DefaultBtProgressInfoFile.cc
  8542. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Moved the calls of std::ios::exceptions() inside of try-catch block
  8544. because if an error occurred in constructor of std::fstream, then
  8545. exception is thrown immediately when std::ios::exceptions() is called
  8546. which results unhandled exception and aria2c aborts.
  8547. * src/DefaultBtProgressInfoFile.cc
  8548. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Added the test for the previous change in DefaultBtContext.cc
  8550. * test/DefaultBtContextTest.cc
  8551. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Fixed the bug that causes infinite loop when the number of pieces are
  8553. fewer than allowed fast set size which is 10 by default.
  8554. * src/DefaultBtContext.cc
  8555. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Updated the descriptions for -j, -s. Added --bt-seed.
  8557. * doc/aria2c.1
  8558. * doc/aria2c.1.html
  8559. * doc/aria2c.1.txt
  8560. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8562. aria2 seeds previously downloaded files without validating piece hashs.
  8563. * src/HelpItemFactory.cc
  8564. * src/OptionHandlerFactory.cc
  8565. * src/RequestGroup.cc
  8566. * src/option_processing.cc
  8567. * src/prefs.cc
  8568. * src/prefs.h
  8569. * src/usage_text.h
  8570. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Updated DESCRIPTION of man page.
  8572. * doc/aria2c.1
  8573. * doc/aria2c.1.html
  8574. * doc/aria2c.1.txt
  8575. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8577. Don't define `struct addrinfo' when __sun is defined.
  8578. * src/getaddrinfo.h
  8579. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8581. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8582. second argument is of type `struct _stati64'. Otherwise it is defined as
  8583. `struct stat'.
  8584. * src/AbstractDiskWriter.cc
  8585. * src/File.cc
  8586. * src/File.h
  8587. * src/a2io.h
  8588. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Fixed the compile error in hurd-i386
  8590. See the original bug report:
  8591. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8592. * src/a2io.h
  8593. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Code cleanup.
  8595. * src/PeerAbstractCommand.cc
  8596. * src/PeerAbstractCommand.h
  8597. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Removed TransferEncoding.
  8599. * src/DownloadCommand.cc
  8600. * src/DownloadCommand.h
  8601. * src/HttpResponseCommand.cc
  8602. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Updated po files.
  8604. * po/aria2c.pot
  8605. * po/*.po
  8606. * po/*.gmo
  8607. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8609. * src/A2STR.cc
  8610. * src/A2STR.h
  8611. * src/ChunkedDecoder.cc
  8612. * src/ChunkedDecoder.h
  8613. * src/ChunkedEncoding.cc: Removed
  8614. * src/ChunkedEncoding.h: Removed
  8615. * src/DownloadCommand.cc
  8616. * src/DownloadCommand.h
  8617. * src/HttpDownloadCommand.cc
  8618. * src/HttpResponse.cc
  8619. * src/HttpResponse.h
  8620. * src/HttpResponseCommand.cc
  8621. * src/HttpSkipResponseCommand.cc
  8622. * src/HttpSkipResponseCommand.h
  8623. * src/Makefile.am
  8624. * src/TransferEncoding.h: Removed
  8625. * test/ChunkedDecoderTest.cc
  8626. * test/ChunkedEncodingTest.cc: Removed
  8627. * test/HttpResponseTest.cc
  8628. * test/Makefile.am
  8629. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Use append instead of insert.
  8631. * src/GZipDecoder.cc
  8632. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Updated doc
  8634. * src/Decoder.h
  8635. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Updated usage text for -s option.
  8637. * src/usage_text.h
  8638. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8640. * src/Request.cc
  8641. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Cleaned up configure.ac.
  8643. * configure.ac
  8644. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8646. AC_ARG_ENABLE.
  8647. * configure.ac
  8648. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8650. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8651. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8652. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8653. fly and writes decoded data to a local disk.
  8654. * README
  8655. * README.html
  8656. * configure.ac
  8657. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8658. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8659. * m4/libz.m4
  8660. * src/Decoder.h
  8661. * src/DownloadCommand.cc
  8662. * src/DownloadCommand.h
  8663. * src/Exception.h
  8664. * src/GZipDecoder.cc
  8665. * src/GZipDecoder.h
  8666. * src/HttpHeader.cc
  8667. * src/HttpHeader.h
  8668. * src/HttpRequest.cc
  8669. * src/HttpRequest.h
  8670. * src/HttpResponse.cc
  8671. * src/HttpResponse.h
  8672. * src/HttpResponseCommand.cc
  8673. * src/Makefile.am
  8674. * test/GZipDecoderTest.cc
  8675. * test/HttpRequestTest.cc
  8676. * test/HttpResponseTest.cc
  8677. * test/Makefile.am
  8678. * test/Makefile.in
  8679. * test/gzip_decode_test.gz
  8680. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Clarified usage of -j option.
  8682. * src/usage_text.h
  8683. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Disabled getting size from the response of RETR.
  8685. If SIZE command failed, then disable resuming and segmented downloading.
  8686. * src/FtpConnection.cc
  8687. * src/FtpConnection.h
  8688. * src/FtpNegotiationCommand.cc
  8689. * src/FtpNegotiationCommand.h
  8690. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Use digits to find first byte of file size, which makes the intention
  8692. of the code clearer.
  8693. * src/FtpConnection.cc
  8694. Don't call validateTotalLength() when size is 0.
  8695. * src/FtpNegotiationCommand.cc
  8696. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Updated po files.
  8698. * po/aria2c.pot
  8699. * po/*.gmo
  8700. * po/*.po
  8701. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Clarified usage text for --split option.
  8703. * src/usage_text.h
  8704. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Bump up version number to 0.15.0dev. "dev" means "development"
  8706. version, which means I started the development of the next release!
  8707. * src/configure.ac
  8708. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. If FTP server returns negative response with REST raw command and
  8710. requested range is not 0, throw exception. If requested range is 0,
  8711. continue download a file from 0 byte.
  8712. * src/FtpNegotiationCommand.cc
  8713. * src/FtpNegotiationCommand.h
  8714. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Supported FTP server which don't recognize SIZE raw command.
  8716. If SIZE raw command is failed, aria2 will try to get file size
  8717. from the response of RETR raw command. If both attempts are failed,
  8718. then resuming and segmented downloading are disabled.
  8719. * src/FtpConnection.cc
  8720. * src/FtpConnection.h
  8721. * src/FtpNegotiationCommand.cc
  8722. * src/FtpNegotiationCommand.h
  8723. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. * Release 0.14.0+1
  8725. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Bump up version number to 0.14.0+1
  8727. * src/configure.ac
  8728. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Fixed the code that refers static member variable from non-static
  8730. context.
  8731. * src/DefaultPeerStorage.cc
  8732. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. * Release 0.14.0
  8734. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Added build test script
  8736. * build_test.sh
  8737. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Updated ja.po
  8739. * src/ja.po
  8740. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Bump up version number to 0.14.0
  8742. * src/configure.ac
  8743. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Updated ja.po and fr.po. Great thanks for french translators and
  8745. Sebastien WILLEMIJNS.
  8746. * po/fr.po
  8747. * po/ja.po
  8748. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Added configure option to enable/disable epoll support.
  8750. * configure.ac
  8751. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Updated man page.
  8753. * doc/aria2c.1.txt
  8754. * doc/aria2c.1
  8755. * doc/aria2c.1.html
  8756. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Added missing default value '5' to the usage of --split option.
  8758. * src/HelpItemFactory.cc
  8759. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Filled up pieces based on the number of missing blocks, rather than
  8761. simplay the number of piece * block length.
  8762. * src/BtRequestFactory.h
  8763. * src/DefaultBtInteractive.cc
  8764. * src/DefaultBtInteractive.h
  8765. * src/DefaultBtRequestFactory.cc
  8766. * src/DefaultBtRequestFactory.h
  8767. * src/Piece.cc
  8768. * src/Piece.h
  8769. * test/BitfieldManTest.cc
  8770. * test/DefaultBtRequestFactoryTest.cc
  8771. * test/MockBtRequestFactory.h
  8772. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Made _epEvents a member variable.
  8774. * src/DownloadEngine.cc
  8775. * src/DownloadEngine.h
  8776. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Cancel download if http redirect is bounded more than 20 times.
  8778. * src/AbstractCommand.cc
  8779. * src/HttpSkipResponseCommand.cc
  8780. * src/Request.cc
  8781. * src/Request.h
  8782. * test/RequestTest.cc
  8783. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Fixed unhandled exception(removed keyword `new').
  8785. * src/SocketCore.cc (initEPOLL)
  8786. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Removed visit(const MetaEntry*)
  8788. * src/MetaEntryVisitor.h:
  8789. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8790. and made them virtual.
  8791. * src/BencodeVisitor.h
  8792. * src/BencodeVisitor.cc
  8793. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Updated po files.
  8795. * po/aria2c.pot
  8796. * po/*.po
  8797. * po/*.gmo
  8798. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8800. the number of socket to watch out.
  8801. * src/PeerInteractionCommand.cc
  8802. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. When there is not enough space in disk when writing a chunk of data,
  8804. aria2 now prints the message to the console to warn user and aborts
  8805. its download. Not all downloads are canceled because some downloads
  8806. may use another disk or partition. BUG#1640332
  8807. * src/AbstractDiskWriter.cc
  8808. * src/PeerAbstractCommand.cc
  8809. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8810. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8811. setHaltRequested(true) to cancel download.
  8812. * src/PeerInteractionCommand.h
  8813. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8815. socket from int to sock_t as sockets are unsigned in Windows.
  8816. For AsyncNameResolver, DownloadEngine, I did additional modification
  8817. for the portion of the code changed according to epoll support.
  8818. I defined sock_t in a2netcompat.h to use sock_t without including
  8819. SocketCore.h.
  8820. * src/AsyncNameResolver.cc
  8821. * src/AsyncNameResolver.h
  8822. * src/DownloadEngine.cc
  8823. * src/DownloadEngine.h
  8824. * src/SocketCore.cc
  8825. * src/SocketCore.h
  8826. * src/a2netcompat.h
  8827. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8829. changes in the patch were applied.
  8830. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8831. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8832. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8833. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8835. a2io.h and common.h were modified.
  8836. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8837. MinGW.
  8838. * src/common.h: Changed off_t to 64 bit in MinGW.
  8839. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8841. only a2netcompat.h is modified.
  8842. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8843. directives.
  8844. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8846. only gai_strerror.h is modified.
  8847. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8848. winsock errors in MinGW.
  8849. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8851. follow sources are applied.
  8852. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8853. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8854. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8855. I included locale.h from Platform.cc.
  8856. * src/main.cc: Moved common setup/teardown code to Platform class.
  8857. * test/AllTest.cc: Use Platform class.
  8858. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8859. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8861. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8862. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8863. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8865. aria2-0.13.2+1-mingw-2.patch.
  8866. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8867. systems which don't have termious.h. I moved the directive inside of
  8868. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8869. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8870. anyway.
  8871. * src/asctime_r.h
  8872. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8873. I added 2nd argument to the prototype declaration.
  8874. * src/StringFormat.cc: Get rid of vasprintf.
  8875. * src/getaddrinfo.h: Fixed constants.
  8876. * configure.ac: Added the check for asctime_r function.
  8877. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8878. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Added writable test for Socket when the sending message is in progress.
  8880. Usually the sending message is piece message. Without wriable check,
  8881. upload latency is dropped to more than 1sec.
  8882. * src/PeerInteractionCommand.cc
  8883. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Create only requested files and files which shares a piece with
  8885. requested file in multi-torrent downloads. Directory structures are
  8886. also created in the same rule.
  8887. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8888. DiskWriterEntry as in the previous implementation.
  8889. * src/MultiDiskWriter.cc
  8890. * src/MultiFileAllocationIterator.cc
  8891. * src/MultiFileAllocationIterator.h
  8892. * test/MultiFileAllocationIteratorTest.cc
  8893. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Commented out -lprofiler
  8895. * src/Makefile.am
  8896. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Bump up version number to 0.14.0b.
  8898. * src/configure.ac
  8899. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Actively establish connection to peers in seeding, when peer cache
  8901. is not full and max upload speed limit is not reached.
  8902. * src/ActivePeerConnectionCommand.cc
  8903. * src/ActivePeerConnectionCommand.h
  8904. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8906. to make room more fleshy, recently found peers.
  8907. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8908. it.
  8909. * src/DefaultPeerStorage.cc
  8910. * test/DefaultPeerStorageTest.cc
  8911. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Returns cached data only when the previous receiveHandshake() is called
  8913. with peek = true.
  8914. * src/PeerConnection.cc (receiveHandshake)
  8915. * src/PeerConnection.h (receiveHandshake)
  8916. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. Changed default value of -s option from 1 to 5.
  8918. Also max value of -s option is changed from 5 to 16.
  8919. * src/HelpItemFactory.cc
  8920. * src/OptionHandlerFactory.cc
  8921. * src/option_processing.cc
  8922. * src/usage_text.h
  8923. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8924. Changed -s options behavior. Now it means the number of connections
  8925. made simultaneously in each http/ftp download.
  8926. If 1 URL is specified, the behavior is the same with old implementation.
  8927. If -s N is given and more than N URLs are specified, first N URLs are
  8928. used and remaining URLs are used for backup. If less than N URLs are
  8929. specified, some of URLs are used more than once so that totally N
  8930. connections are made simultaneously.
  8931. * src/main.cc
  8932. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Included missing iosfwd or ostream header.
  8934. * src/RequestGroupMan.cc
  8935. * src/TaggedItem.cc
  8936. * src/TaggedItem.h
  8937. * src/Util.cc
  8938. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8940. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8941. * src/HttpConnection.cc: Included missing sstream.
  8942. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Added --bt-max-open-files option.
  8944. * src/DefaultPieceStorage.cc
  8945. * src/HelpItemFactory.cc
  8946. * src/MultiDiskAdaptor.cc
  8947. * src/MultiDiskAdaptor.h
  8948. * src/OptionHandlerFactory.cc
  8949. * src/option_processing.cc
  8950. * src/prefs.cc
  8951. * src/prefs.h
  8952. * src/usage_text.h
  8953. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Fixed the bug that aria2 aborts when a path to a directory is given
  8955. in command-line.
  8956. * src/ProtocolDetector.cc
  8957. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Limited the number files opened in each BitTorrent download. The default
  8959. value is 100. The option to change this value will be added.
  8960. * src/MultiDiskAdaptor.cc
  8961. * src/MultiDiskAdaptor.h
  8962. * src/MultiFileAllocationIterator.cc
  8963. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Fixed the bug that HTTP downloads don't start with old libraries.
  8965. * src/HttpHeaderProcessor.cc
  8966. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Use empty() instead of size() > 0.
  8968. * src/HttpConnection.cc
  8969. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Drop connection if the incoming peer ID is the same with localhost's
  8971. one. The previous implementation drops connection when incoming peer's
  8972. IP address is the same with localhost's one.
  8973. * src/PeerListenCommand.cc
  8974. * src/DefaultBtInteractive.cc
  8975. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Returns cached data without checking whether socket is readable
  8977. if the cache is available.
  8978. * src/PeerConnection.cc (receiveHandshake)
  8979. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Included stdint.h
  8981. * src/common.h
  8982. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Removed duplicate HAVE_GETTIMEOFDAY
  8984. * src/Makefile.am
  8985. * src/Makefile.in
  8986. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Use interval as a minInterval when minInterval is not supplied.
  8988. * src/DefaultBtAnnounce.cc
  8989. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8991. attempt is failed, then 2nd attempt get kicked out more quickly.
  8992. And it is now static const member of DefaultBtAnnounce.
  8993. * src/DefaultBtAnnounce.h
  8994. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8996. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8997. * src/ActivePeerConnectionCommand.cc
  8998. * src/BtConstants.h
  8999. * src/BtRuntime.h
  9000. * src/DHTGetPeersCommand.cc
  9001. * src/DefaultBtAnnounce.cc
  9002. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9003. BtRuntime::MAX_PEERS.
  9004. * src/DefaultPeerStorage.h
  9005. * src/InitiatorMSEHandshakeCommand.cc
  9006. * src/PeerInitiateConnectionCommand.cc
  9007. * src/PeerInteractionCommand.cc
  9008. * src/PeerReceiveHandshakeCommand.cc
  9009. * src/TrackerWatcherCommand.cc
  9010. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Always Connect to _numNewConnection
  9012. * src/ActivePeerConnectionCommand.cc
  9013. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Made `begin' unsigned int.
  9015. * src/GrowSegment.h
  9016. * src/Piece.cc
  9017. * src/Piece.h
  9018. * src/PiecedSegment.cc
  9019. * src/PiecedSegment.h
  9020. * src/Segment.h
  9021. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Calculate piece hash when data is arrived if the data is arrived in
  9023. order. This removes additional read operation for hash calculation.
  9024. If the data is arrived in out of order, the hash is calucated when the
  9025. piece is completed. This is the same behavior as the old implementation.
  9026. * src/BtPieceMessage.cc
  9027. * src/DefaultBtProgressInfoFile.cc
  9028. * src/DefaultPieceStorage.cc
  9029. * src/DownloadCommand.cc
  9030. * src/DownloadCommand.h
  9031. * src/DownloadEngine.cc
  9032. * src/GrowSegment.cc
  9033. * src/GrowSegment.h
  9034. * src/Piece.cc
  9035. * src/Piece.h
  9036. * src/PiecedSegment.cc
  9037. * src/PiecedSegment.h
  9038. * src/Segment.h
  9039. * test/PieceTest.cc
  9040. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Try to keep the ordering of outgoing piece message.
  9042. * src/DefaultBtMessageDispatcher.cc
  9043. (DefaultBtMessageDispatcher::sendMessages)
  9044. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Fixed busy loop when error/hup epoll events occur.
  9046. * src/AbstractCommand.cc
  9047. * src/PeerAbstractCommand.cc
  9048. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9049. Added --bt-request-peer-speed-limit option, which was a constant
  9050. SLOW_SPEED_THRESHOLD.
  9051. * src/ActivePeerConnectionCommand.cc
  9052. * src/ActivePeerConnectionCommand.h
  9053. * src/BtConstants.h
  9054. * src/HelpItemFactory.cc
  9055. * src/OptionHandlerFactory.cc
  9056. * src/PeerReceiveHandshakeCommand.cc
  9057. * src/option_processing.cc
  9058. * src/prefs.cc
  9059. * src/prefs.h
  9060. * src/usage_text.h
  9061. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Removed repeated call of getTopDirPath(). Instead, call it once and
  9063. cache the result.
  9064. * src/MultiDiskAdaptor.cc
  9065. * src/MultiDiskAdaptor.h
  9066. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9067. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Fixed compile error on debian etch.
  9069. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9070. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9071. it is undefined.
  9072. * src/Util.cc (ULLONG_MAX)
  9073. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Added epoll support. Use epoll if it is available. If not, use select.
  9075. When async dns is enabled in compile time, epoll support is enabled
  9076. only when aria2 is built with c-ares. This condition statement is
  9077. defined in a2io.h.
  9078. Currently aria2 supports both c-ares and ares, but ares is maintained
  9079. for quite a while and debian already has c-ares package, ares support
  9080. will be dropped in the future version.
  9081. * configure.ac
  9082. * src/AbstractCommand.cc
  9083. * src/AsyncNameResolver.cc
  9084. * src/AsyncNameResolver.h
  9085. * src/Command.cc
  9086. * src/Command.h
  9087. * src/DownloadEngine.cc
  9088. * src/DownloadEngine.h
  9089. * src/PeerAbstractCommand.cc
  9090. * src/SocketCore.cc
  9091. * src/SocketCore.h
  9092. * src/a2io.h
  9093. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9095. directive.
  9096. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Do not do write operation to /dev/null file.
  9098. * src/LogFactory.cc
  9099. * src/SimpleLogger.cc
  9100. Replaced vasprintf with vsnprintf
  9101. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9102. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. * src/BtRequestMessage.cc
  9104. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9105. for segmentation fault caused by previous commit.
  9106. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Reduced the usage of gettimeofday().
  9108. * src/DefaultBtMessageDispatcher.cc
  9109. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9110. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9111. * src/RequestSlot.cc
  9112. * src/RequestSlot.h
  9113. (RequestSlot::isTimeout)
  9114. Made RequestSlot have a reference to Piece object to avoid find
  9115. Piece repeatedly.
  9116. * src/DefaultBtMessageDispatcher.cc
  9117. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9118. * src/RequestSlot.cc
  9119. * src/RequestSlot.h
  9120. (RequestSlot::getPiece)
  9121. * test/DefaultBtMessageDispatcherTest.cc
  9122. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. * src/TimeA2.cc
  9124. * src/TimeA2.h
  9125. (Time::difference): New function.
  9126. (Time::elapsed): Done optimization.
  9127. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9129. directive.
  9130. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. * src/option_processing.cc: Added missing `defined' keyword to #if
  9132. directive.
  9133. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Bump up version number to 0.13.2+1
  9135. * src/configure.ac
  9136. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Refactored broken outstanding piece handling.
  9138. * src/DefaultPieceStorage.cc
  9139. * src/DefaultPieceStorage.h
  9140. * src/Piece.cc
  9141. * src/Piece.h
  9142. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9144. name collision of static variable and predefined macro.
  9145. * src/BtContext.cc
  9146. * src/BtContext.h
  9147. * src/CookieBoxFactory.cc
  9148. * src/CookieBoxFactory.h
  9149. * src/CookieParser.cc
  9150. * src/CookieParser.h
  9151. * src/DefaultBtContext.cc
  9152. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. * src/RequestGroup.cc
  9154. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9155. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. * Release 0.13.2
  9157. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9159. * po/fr.po
  9160. * po/ja.po
  9161. * po/aria2c.pot
  9162. * po/*.po
  9163. * po/*.gmo
  9164. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Bump up version number to 0.13.2
  9166. * src/configure.ac
  9167. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Refactord.
  9169. * src/RequestGroupMan.cc
  9170. (removeStoppedGroup)
  9171. (fillRequestGroupFromReserver)
  9172. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Fixed compile error on Ubuntu.
  9174. * src/BtPieceMessage.cc
  9175. * src/MessageDigestHelper.cc
  9176. * src/Util.cc
  9177. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Fixed compile error when configured with --disable-bittorrent
  9179. * test/DownloadHandlerFactoryTest.cc
  9180. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Done make update-po
  9182. * po/aria2c.pot
  9183. * po/*.po
  9184. * po/*.gmo
  9185. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Bump up version number to 0.13.2rc.
  9187. * src/configure.ac
  9188. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Made option name bold. Updated SYNOPSIS to make it more readable.
  9190. * doc/aria2c.1.txt
  9191. * doc/aria2c.1
  9192. * doc/aria2c.1.html
  9193. * src/version_usage.cc
  9194. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Refactored. Use std::string instead of size and char*.
  9196. * Data.cc
  9197. * Data.h
  9198. * test/Data.cc
  9199. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Added trimSelf(). Rewritten trim() to use trimSelf().
  9201. * Util.cc
  9202. * Util.h
  9203. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9204. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9205. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Fixed compile error when configured with --disable-metalink.
  9207. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9208. * test/FeatureConfigTest.cc
  9209. * test/DownloadHandlerFactoryTest.cc
  9210. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Fixed compile error when configured with --without-gnutls
  9212. --without-openssl
  9213. * src/main.cc
  9214. * test/DefaultBtProgressInfoFileTest.cc
  9215. * test/SegmentManTest.cc
  9216. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Fixed compile error with OpenSSL.
  9218. * src/IteratableChunkChecksumValidator.cc
  9219. * src/LibsslDHKeyExchange.h
  9220. * src/MessageDigestHelper.cc
  9221. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Revert the default value of --max-concurrent-downloads to 5.
  9223. Revert the default value of --metalink-servers to 5.
  9224. Man pages was also updated.
  9225. * src/option_processing.cc
  9226. * doc/aria2c.1.txt
  9227. * doc/aria2c.1.html
  9228. * doc/aria2c.1
  9229. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Returns const reference:
  9231. DownloadContext::getPieceHash, DownloadContext::getName,
  9232. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9233. BtContext::getInfoHashAsString,
  9234. * src/BtContext.h
  9235. * src/DefaultBtContext.cc
  9236. * src/DefaultBtContext.h
  9237. * src/DownloadContext.h
  9238. * src/SingleFileDownloadContext.h
  9239. * test/MockBtContext.h
  9240. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. * src/RequestGroup.h (getDir): Removed.
  9242. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Returns const reference. The internal urlencode function was optimized
  9244. a little bit.
  9245. * src/Request.cc
  9246. * src/Request.h
  9247. * src/HttpRequest.cc
  9248. * src/HttpRequest.h
  9249. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Defined option name and possible values as std::string to reduce
  9251. temporary string object creation in runtime.
  9252. * src/HelpItemFactory.cc
  9253. * src/LogFactory.cc
  9254. * src/Option.cc
  9255. * src/OptionHandlerFactory.cc
  9256. * src/option_processing.cc
  9257. * src/prefs.cc
  9258. * src/prefs.h
  9259. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Return const reference.
  9261. * src/DownloadHandlerConstants.cc
  9262. * src/DownloadHandlerConstants.h
  9263. (getMetalinkExtensions)
  9264. (getMetalinkContentTypes)
  9265. (getBtExtensions)
  9266. (getBtContentTypes)
  9267. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. * src/HttpHeader.cc (get): Rewritten.
  9269. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Make HttpHeader::getFirst(...) return const reference.
  9271. * src/HttpHeader.cc
  9272. * src/HttpHeader.h
  9273. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9275. it with V_TRUE.
  9276. * src/DefaultPieceStorage.cc
  9277. * src/DownloadCommand.cc
  9278. * src/FtpNegotiationCommand.cc
  9279. * src/HttpRequest.cc
  9280. * src/InitiateConnectionCommand.cc
  9281. * src/RequestGroup.cc
  9282. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Made Option::get(...) return const reference of std::string.
  9284. * src/Option.cc
  9285. * src/Option.h
  9286. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Replaced std:copy with insert.
  9288. * src/DefaultBtMessageDispatcher.cc
  9289. * src/DefaultPieceStorage.cc
  9290. * src/DownloadEngineFactory.cc
  9291. * src/RequestGroup.cc
  9292. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Included SocketCore.h to fix compiler warning.
  9294. * src/InitiateConnectionCommand.cc
  9295. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Put piece selection strategy algorithm to RarestPieceSelector class,
  9297. Added a switch to choose whether randomized selection so that unit
  9298. tests emit same results in, possibly, win32.
  9299. * src/DefaultPieceStorage.cc
  9300. * src/DefaultPieceStorage.h
  9301. * src/RarestPieceSelector.cc
  9302. * src/RarestPieceSelector.h
  9303. * test/DefaultPieceStorageTest.cc
  9304. * test/RarestPieceSelectorTest.cc
  9305. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Don't pool connection if HTTP proxy is enabled.
  9307. * src/FtpFinishDownloadCommand.cc
  9308. * src/FtpNegotiationCommand.cc
  9309. * src/HttpSkipResponseCommand.cc
  9310. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9312. * src/AbstractCommand.cc
  9313. * src/AbstractCommand.h
  9314. * src/ActivePeerConnectionCommand.cc
  9315. * src/FtpInitiateConnectionCommand.cc
  9316. * src/HttpInitiateConnectionCommand.cc
  9317. * src/InitiateConnectionCommandFactory.cc
  9318. * src/PeerAbstractCommand.cc
  9319. * src/PeerAbstractCommand.h
  9320. * src/PeerInitiateConnectionCommand.cc
  9321. * src/TrackerWatcherCommand.cc
  9322. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9323. Sort RequestSlot in ascending order and manipulate them using
  9324. lower_bound.
  9325. * src/DefaultBtMessageDispatcher.cc
  9326. * src/DefaultBtMessageDispatcher.h
  9327. (getMessageQueue): Added const qualifier.
  9328. (getRequestSlots): Added const qualifier.
  9329. (sendMessages): Use empty() instead of size().
  9330. (doCancelSendingPieceAction): Use HandleEvent object.
  9331. (doAbortOutstandingRequestAction): Rewritten.
  9332. (doChokedAction): Rewritten.
  9333. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9334. (isOutstandingRequest): Rewritten.
  9335. (getOutstandingRequest): Rewritten.
  9336. (removeOutstandingRequest): Rewritten.
  9337. (addOutstandingRequest): Rewritten.
  9338. * src/RequestSlot.cc
  9339. * src/RequestSlot.h
  9340. (operator=): Rewritten.
  9341. (operator!=): New function.
  9342. (operator<): New function.
  9343. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. * src/DefaultBtRequestFactory.cc
  9345. (doChokedAction): Rewritten.
  9346. (removeCompletedPiece): Rewritten.
  9347. (removeTargetPiece): Rewritten.
  9348. (createRequestMessages): Added the debug log.
  9349. (createRequestMessagesOnEndGame: Added the debug log.
  9350. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Added the debug log message.
  9352. * src/BtPieceMessage.cc (doReceivedAction)
  9353. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9355. used lower_bound to process them rather than linear search.
  9356. * src/DHTPeerAnnounceStorage.cc
  9357. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9359. peer has at least one completed piece.
  9360. * src/Peer.cc
  9361. * src/Peer.h
  9362. * src/PeerInteractionCommand.cc
  9363. * src/PeerSessionResource.cc
  9364. * src/PeerSessionResource.h
  9365. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Removed unnecessary sorting
  9367. * src/DefaultPieceStorage (DefaultPieceStorage)
  9368. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Rewritten the portion of the code that mangaes allowed fast indexes.
  9370. * src/PeerSessionResource.cc
  9371. * src/PeerSessionResource.h
  9372. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Removed the invalid string including '\r' from ru.po and
  9374. did make update-po.
  9375. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Added --log-level and --summary-interval to man page.
  9377. * doc/aria2c.1.txt
  9378. * doc/aria2c.1.html
  9379. * doc/aria2c.1
  9380. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Added --log-level option to specify log level. Log messages under
  9382. the specified level are not output. Default value is `debug'.
  9383. * src/HelpItemFactory.cc
  9384. * src/LogFactory.cc
  9385. * src/LogFactory.h
  9386. * src/Logger.h
  9387. * src/OptionHandlerFactory.cc
  9388. * src/SimpleLogger.cc
  9389. * src/SimpleLogger.h
  9390. * src/main.cc
  9391. * src/option_processing.cc
  9392. * src/prefs.h
  9393. * src/usage_text.h
  9394. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Print download progress summary of all parallel downloads in specified
  9396. interval, default 60 secs. While aria2 could download several files
  9397. in parallel (see -j option), it displayed just first download progress,
  9398. and the other downloads are hidden from the users. This new feature
  9399. prints all downloads currently in-progress to the console so that you
  9400. can check the status of all downloads. The interval can be adjusted
  9401. by --summary-interval option.
  9402. The progress readout is now cut so that all fits in the one line of
  9403. console.
  9404. * src/ConsoleStatCalc.cc
  9405. * src/ConsoleStatCalc.h
  9406. * src/HelpItemFactory.cc
  9407. * src/OptionHandlerFactory.cc
  9408. * src/RequestGroupMan.cc
  9409. * src/RequestGroupMan.h
  9410. * src/main.cc
  9411. * src/option_processing.cc
  9412. * src/prefs.h
  9413. * src/usage_text.h
  9414. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9416. * src/DownloadEngine.cc (DownloadEngine)
  9417. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9418. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9419. defined.
  9420. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9421. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Use erase+lower_bound+insert instead of sort.
  9423. * src/DefaultPieceStorage.cc (addPieceStats)
  9424. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9426. * src/A2STR.cc
  9427. * src/A2STR.h
  9428. * src/OptionParser.cc (parse)
  9429. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Defined fake filename `[tracker.announce]' as static const std::string.
  9431. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9432. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Defined default filename `index.html' as static const std::string
  9434. * src/SingleFileDownloadContext.cc
  9435. * src/SingleFileDownloadContext.h
  9436. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Defined "[MEMORY]" as static const std::string.
  9438. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9439. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Defined control file's version number as static const std::string.
  9441. * src/DefaultBtProgressInfoFile.cc
  9442. * src/DefaultBtProgressInfoFile.h
  9443. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Use Request::METHOD_GET
  9445. * src/RequestGroup.cc (createNextCommandWithAdj)
  9446. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Defined "OK", "ERR", "INPR" as static const std::string
  9448. * src/RequestGroupMan.cc (showDownloadResults)
  9449. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Defined default client used in extended handshake as static const
  9451. std::string
  9452. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9453. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9455. * src/HttpConnection.cc (eraseConfidentialInfo)
  9456. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Defined default ftp user and password as static const std::string
  9458. * src/AuthConfigFactory.cc
  9459. * src/AuthConfigFactory.h
  9460. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Defined strings used in netrc as static const std::string
  9462. * src/Netrc.cc
  9463. * src/Netrc.h
  9464. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Defined HTTP status as static const std::string
  9466. * src/AbstractProxyResponseCommand.cc
  9467. * src/HttpHeader.cc
  9468. * src/HttpHeader.h
  9469. * src/HttpResponse.cc
  9470. * src/HttpResponseCommand.cc
  9471. * src/HttpSkipResponseCommand.cc
  9472. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. Defined "\r\n", "A", "I" as static const std::string
  9474. * src/A2STR.cc
  9475. * src/A2STR.h
  9476. * src/FtpConnection.cc
  9477. * src/FtpConnection.h
  9478. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Added COLON_C(".") and used it in Request::parseUrl()
  9480. * src/A2STR.cc
  9481. * src/A2STR.h
  9482. * src/Request.cc (parseUrl)
  9483. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Changed the type of padName from `const std::string&' to `const char*'.
  9485. * src/MSEHandshake.cc (verifyPadLength)
  9486. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Defined "sha1" as static const std::string.
  9488. * src/MetalinkParserController.cc
  9489. * src/MetalinkParserController.h
  9490. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Defined message digest algorithm name as static const std::string
  9492. * src/DHTTokenTracker.cc
  9493. * src/DHTUtil.cc
  9494. * src/DefaultBtContext.cc
  9495. * src/MSEHandshake.cc
  9496. * src/MessageDigestHelper.cc
  9497. * src/Peer.cc
  9498. * src/messageDigest.cc
  9499. * src/messageDigest.h
  9500. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Made string literals used in SAX parser static const std::string.
  9502. * src/FileMetalinkParserState.cc
  9503. * src/FileMetalinkParserState.h
  9504. * src/FilesMetalinkParserState.cc
  9505. * src/FilesMetalinkParserState.h
  9506. * src/InitialMetalinkParserState.cc
  9507. * src/InitialMetalinkParserState.h
  9508. * src/MetalinkMetalinkParserState.cc
  9509. * src/MetalinkMetalinkParserState.h
  9510. * src/PiecesMetalinkParserState.cc
  9511. * src/PiecesMetalinkParserState.h
  9512. * src/ResourcesMetalinkParserState.cc
  9513. * src/ResourcesMetalinkParserState.h
  9514. * src/VerificationMetalinkParserState.cc
  9515. * src/VerificationMetalinkParserState.h
  9516. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9518. * src/A2STR.cc
  9519. * src/A2STR.h
  9520. * src/File.cc
  9521. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Defined static const std::string IP("ip"), PORT("port") and use them
  9523. instead of string literals.
  9524. * src/DefaultPeerListProcessor.cc
  9525. * src/DefaultPeerListProcessor.h
  9526. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Made string literals for torrent file processing static const
  9528. std::string.
  9529. * src/BtContext.cc
  9530. * src/BtContext.h
  9531. * src/DefaultBtContext.cc
  9532. * src/DefaultBtContext.h
  9533. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9534. Made string literal for tracker response static const std::string
  9535. * src/BtAnnounce.cc
  9536. * src/BtAnnounce.h
  9537. * src/DefaultBtAnnounce.cc
  9538. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Use DHTMessage::T instead of "t".
  9540. * src/DHTMessageTracker.cc (messageArrived)
  9541. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Made keyName static const. Made trimmed charset static const
  9543. std::string.
  9544. * src/Util.cc (getContentDispositionFilename)
  9545. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Made USER_AGENT const. Made "/" static const std::string.
  9547. * src/A2STR.cc
  9548. * src/A2STR.h
  9549. * src/HttpRequest.cc
  9550. * src/HttpRequest.h
  9551. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Made string listeral to static const std::string:
  9553. "Content-Range", "Content-Length"
  9554. * src/HttpHeader.cc
  9555. * src/HttpHeader.h
  9556. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Made string listeral to static const std::string.
  9558. * src/HttpConnection.cc
  9559. * src/HttpHeader.cc
  9560. * src/HttpHeader.h
  9561. * src/HttpResponse.cc
  9562. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Made string listeral to static const std::string.
  9564. * src/A2STR.cc
  9565. * src/A2STR.h
  9566. * src/SimpleLogger.cc
  9567. * src/SimpleLogger.h
  9568. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Made string literal to static const std::string.
  9570. Rewritten CookieParser::setField.
  9571. * src/A2STR.cc
  9572. * src/A2STR.h
  9573. * src/CookieBoxFactory.cc
  9574. * src/CookieBoxFactory.h
  9575. * src/CookieParser.cc
  9576. * src/CookieParser.h
  9577. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Made string literal to static const std::string
  9579. * src/DHTAbstractMessage.cc
  9580. * src/DHTAnnouncePeerMessage.cc
  9581. * src/DHTAnnouncePeerMessage.h
  9582. * src/DHTAnnouncePeerReplyMessage.cc
  9583. * src/DHTAnnouncePeerReplyMessage.h
  9584. * src/DHTFindNodeMessage.cc
  9585. * src/DHTFindNodeMessage.h
  9586. * src/DHTFindNodeReplyMessage.cc
  9587. * src/DHTFindNodeReplyMessage.h
  9588. * src/DHTGetPeersMessage.cc
  9589. * src/DHTGetPeersMessage.h
  9590. * src/DHTGetPeersReplyMessage.cc
  9591. * src/DHTGetPeersReplyMessage.h
  9592. * src/DHTMessage.cc
  9593. * src/DHTMessage.h
  9594. * src/DHTMessageFactoryImpl.cc
  9595. * src/DHTMessageReceiver.cc
  9596. * src/DHTPingMessage.cc
  9597. * src/DHTPingMessage.h
  9598. * src/DHTPingReplyMessage.cc
  9599. * src/DHTPingReplyMessage.h
  9600. * src/DHTQueryMessage.cc
  9601. * src/DHTQueryMessage.h
  9602. * src/DHTResponseMessage.cc
  9603. * src/DHTResponseMessage.h
  9604. * src/DHTUnknownMessage.cc
  9605. * src/DHTUnknownMessage.h
  9606. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Made string literal to static const std::string
  9608. * src/BtChokeMessage.cc (toString)
  9609. * src/BtHaveAllMessage.cc (toString)
  9610. * src/BtHaveNoneMessage.cc (toString)
  9611. * src/BtInterestedMessage.cc (toString)
  9612. * src/BtNotInterestedMessage.cc (toString)
  9613. * src/BtUnchokeMessage.cc (toString)
  9614. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Replaced "" with static const variable A2STR::NIL.
  9616. Replaced string comparison against "" with std::string::empty().
  9617. Added PROTO_* to Request class and use them as a protocol string
  9618. constant.
  9619. Made "started", "stopped", "completed" static const variable in
  9620. AnnounceList class.
  9621. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Updated translations. Great thanks to translators.
  9623. * po/ca.po
  9624. * po/de.po
  9625. * po/fr.po
  9626. * po/it.po
  9627. * po/ja.po
  9628. * po/ru.po
  9629. * po/zh_CN.po
  9630. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Updated man page; categorized options and fixed typo.
  9632. * doc/aria2c.1.txt
  9633. * doc/aria2c.1.html
  9634. * doc/aria2c.1
  9635. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Removed const ref
  9637. * src/MetalinkEntry.cc (AddProtocolPreference)
  9638. * src/RequestGroup.cc (FindServerHostByHostname)
  9639. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. Rewritten Accept-Features handling.
  9641. * src/HttpRequestCommand.cc (createHttpRequest)
  9642. * src/a2functional.h
  9643. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. Changed method signature:
  9645. DHTAbstractNodeLookupTask::toEntries
  9646. * src/DHTAbstractNodeLookupTask.cc
  9647. * src/DHTAbstractNodeLookupTask.h
  9648. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Changed method signature:
  9650. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9651. * src/BtContext.h
  9652. * src/DefaultBtContext.cc
  9653. * src/DefaultBtContext.h
  9654. * src/DefaultBtInteractive.cc
  9655. * test/DefaultBtContextTest.cc
  9656. * test/MockBtContext.h
  9657. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Changed method signature:
  9659. MultiFileAllocationIterator::makeDiskWriterEntries
  9660. * src/MultiFileAllocationIterator.cc
  9661. * src/MultiFileAllocationIterator.h
  9662. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Changed method sinature:
  9664. MetalinkEntry::toFileEntry,
  9665. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9666. Metalinker::queryEntry
  9667. * src/Metalink2RequestGroup.cc
  9668. * src/MetalinkEntry.cc
  9669. * src/MetalinkEntry.h
  9670. * src/MetalinkHelper.cc
  9671. * src/MetalinkHelper.h
  9672. * src/Metalinker.cc
  9673. * src/Metalinker.h
  9674. * src/main.cc
  9675. * test/MetalinkHelperTest.cc
  9676. * test/MetalinkerTest.cc
  9677. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Changed method sinature:
  9679. RequestGroup::getURIs
  9680. * src/RequestGroup.cc
  9681. * src/RequestGroup.h
  9682. * test/Metalink2RequestGroupTest.cc
  9683. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Changed method signature:
  9685. PeerListProcessor::extractPeer
  9686. * src/CompactPeerListProcessor.cc
  9687. * src/CompactPeerListProcessor.h
  9688. * src/DefaultBtAnnounce.cc
  9689. * src/DefaultPeerListProcessor.cc
  9690. * src/DefaultPeerListProcessor.h
  9691. * src/DelegatingPeerListProcessor.cc
  9692. * src/DelegatingPeerListProcessor.h
  9693. * src/PeerListProcessor.h
  9694. * src/UTPexExtensionMessage.cc
  9695. * test/DefaultPeerListProcessorTest.cc
  9696. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Changed method signature:
  9698. BtRequestFactory::createRequestMessages,
  9699. BtRequestFactory::createRequestMessagesOnEndGame
  9700. * src/BtRequestFactory.h
  9701. * src/DefaultBtInteractive.cc
  9702. * src/DefaultBtRequestFactory.cc
  9703. * src/DefaultBtRequestFactory.h
  9704. * test/DefaultBtRequestFactoryTest.cc
  9705. * test/MockBtRequestFactory.h
  9706. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Changed method signature:
  9708. PieceStorage::getInFlightPieces
  9709. * src/DefaultBtProgressInfoFile.cc
  9710. * src/DefaultPieceStorage.cc
  9711. * src/DefaultPieceStorage.h
  9712. * src/PieceStorage.h
  9713. * src/UnknownLengthPieceStorage.cc
  9714. * src/UnknownLengthPieceStorage.h
  9715. * test/DefaultBtProgressInfoFileTest.cc
  9716. * test/MockPieceStorage.h
  9717. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Changed method signature:
  9719. PostDownloadHandler::getNextRequestGroups
  9720. Metalink2RequestGroup::generate
  9721. RequestGroup::postDownloadProcessing
  9722. * src/BtPostDownloadHandler.cc
  9723. * src/BtPostDownloadHandler.h
  9724. * src/Metalink2RequestGroup.cc
  9725. * src/Metalink2RequestGroup.h
  9726. * src/MetalinkPostDownloadHandler.cc
  9727. * src/MetalinkPostDownloadHandler.h
  9728. * src/PostDownloadHandler.h
  9729. * src/RequestGroup.cc
  9730. * src/RequestGroup.h
  9731. * src/RequestGroupMan.cc
  9732. * src/main.cc
  9733. * test/BtPostDownloadHandlerTest.cc
  9734. * test/Metalink2RequestGroupTest.cc
  9735. * test/MetalinkPostDownloadHandlerTest.cc
  9736. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Rewritten AccRequestGroup
  9738. * src/main.cc
  9739. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Rewritten.
  9741. * src/TaggedItem.cc (toTagString)
  9742. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Rewritten Accept-Features handling.
  9744. * src/HttpRequestCommand.cc (createHttpRequest)
  9745. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Rewritten accept types handling.
  9747. * HttpRequest.cc (createRequest)
  9748. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Rewritten
  9750. * src/FeatureConfig.cc (featureSummary)
  9751. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Changed method signature:
  9753. PeerStorage::getActivePeers
  9754. * src/DHTPeerAnnounceEntry.cc
  9755. * src/DefaultPeerStorage.cc
  9756. * src/DefaultPeerStorage.h
  9757. * src/PeerStorage.h
  9758. * test/DefaultPeerStorageTest.cc
  9759. * test/MockPeerStorage.h
  9760. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. Changed method signature:
  9762. DHTPeerAnnounceStorage::getPeers,
  9763. DHTPeerAnnounceEntry::getPeers
  9764. * src/DHTGetPeersMessage.cc
  9765. * src/DHTPeerAnnounceEntry.cc
  9766. * src/DHTPeerAnnounceEntry.h
  9767. * src/DHTPeerAnnounceStorage.cc
  9768. * src/DHTPeerAnnounceStorage.h
  9769. * test/DHTAnnouncePeerMessageTest.cc
  9770. * test/DHTPeerAnnounceEntryTest.cc
  9771. * test/DHTPeerAnnounceStorageTest.cc
  9772. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Changed method signature:
  9774. NameResolver::resolve
  9775. * src/DHTEntryPointNameResolveCommand.cc
  9776. * src/InitiateConnectionCommand.cc
  9777. * src/NameResolver.cc
  9778. * src/NameResolver.h
  9779. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9780. Changed method signature:
  9781. PieceStorage::getAdvertisedPieceIndexes
  9782. * src/DefaultBtInteractive.cc
  9783. * src/DefaultPieceStorage.cc
  9784. * src/DefaultPieceStorage.h
  9785. * src/PieceStorage.h
  9786. * src/UnknownLengthPieceStorage.h
  9787. * test/MockPieceStorage.h
  9788. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Changed method signature:
  9790. SegmentMan::getInFlightSegment
  9791. * src/AbstractCommand.cc
  9792. * src/SegmentMan.cc
  9793. * src/SegmentMan.h
  9794. * test/SegmentManTest.cc
  9795. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Changed method signature:
  9797. DHTAbstractNodeLookupTask::getNodesFromMessage
  9798. * src/DHTAbstractNodeLookupTask.cc
  9799. * src/DHTAbstractNodeLookupTask.h
  9800. * src/DHTNodeLookupTask.cc
  9801. * src/DHTNodeLookupTask.h
  9802. * src/DHTPeerLookupTask.cc
  9803. * src/DHTPeerLookupTask.h
  9804. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9806. * src/AbstractCommand.cc
  9807. * src/BtCheckIntegrityEntry.cc
  9808. * src/BtCheckIntegrityEntry.h
  9809. * src/BtFileAllocationEntry.cc
  9810. * src/BtFileAllocationEntry.h
  9811. * src/BtSetup.cc
  9812. * src/BtSetup.h
  9813. * src/CheckIntegrityCommand.cc
  9814. * src/CheckIntegrityEntry.h
  9815. * src/ChecksumCheckIntegrityEntry.cc
  9816. * src/ChecksumCheckIntegrityEntry.h
  9817. * src/DHTSetup.cc
  9818. * src/DHTSetup.h
  9819. * src/DownloadEngine.cc
  9820. * src/FileAllocationCommand.cc
  9821. * src/FileAllocationEntry.h
  9822. * src/RequestGroup.cc
  9823. * src/RequestGroup.h
  9824. * src/RequestGroupMan.cc
  9825. * src/RequestGroupMan.h
  9826. * src/StreamCheckIntegrityEntry.cc
  9827. * src/StreamCheckIntegrityEntry.h
  9828. * src/StreamFileAllocationEntry.cc
  9829. * src/StreamFileAllocationEntry.h
  9830. * src/TrackerWatcherCommand.cc
  9831. * src/a2functional.h
  9832. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9833. Changed method signature:
  9834. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9835. DHTBucket::getGoodNodes,
  9836. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9837. * src/BNode.cc
  9838. * src/BNode.h
  9839. * src/DHTAbstractNodeLookupTask.cc
  9840. * src/DHTAutoSaveCommand.cc
  9841. * src/DHTBucket.cc
  9842. * src/DHTBucket.h
  9843. * src/DHTBucketRefreshTask.cc
  9844. * src/DHTFindNodeMessage.cc
  9845. * src/DHTGetPeersMessage.cc
  9846. * src/DHTRoutingTable.cc
  9847. * src/DHTRoutingTable.h
  9848. * test/BNodeTest.cc
  9849. * test/DHTBucketTest.cc
  9850. * test/DHTRoutingTableTest.cc
  9851. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. In piece selection functions, Pass std::deque<...> by reference rather
  9853. than returning it.
  9854. * src/BitfieldMan.cc
  9855. * src/BitfieldMan.h
  9856. * src/DefaultBtRequestFactory.cc
  9857. * src/DefaultPieceStorage.cc
  9858. * src/Piece.cc
  9859. * src/Piece.h
  9860. * test/BitfieldManTest.cc
  9861. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Implemented rarest piece first piece selection strategy.
  9863. * src/AbstractBtMessage.cc
  9864. * src/AbstractBtMessage.h
  9865. * src/BitfieldMan.cc
  9866. * src/BitfieldMan.h
  9867. * src/BtBitfieldMessage.cc
  9868. * src/BtHaveAllMessage.cc
  9869. * src/BtHaveMessage.cc
  9870. * src/DefaultPieceStorage.cc
  9871. * src/DefaultPieceStorage.h
  9872. * src/PeerInteractionCommand.cc
  9873. * src/PieceStorage.h
  9874. * src/UnknownLengthPieceStorage.h
  9875. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Rewritten readData and writeData.
  9877. * src/MultiDiskAdaptor.cc
  9878. * src/MultiDiskAdaptor.h
  9879. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Move \n out of the message "Usage: ...".
  9881. * src/version_usage.cc
  9882. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Bump up version number to 0.13.2b.
  9884. * configure.ac
  9885. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Added const qualifier to argument Exception& e.
  9887. * src/Logger.h
  9888. * src/SimpleLogger.cc
  9889. * src/SimpleLogger.h
  9890. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. Pool connection when CWD, SIZE command fails.
  9892. * src/FtpNegotiationCommand.cc
  9893. * src/FtpNegotiationCommand.h
  9894. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9896. * src/HttpResponseCommand.cc
  9897. * src/HttpSkipResponseCommand.cc
  9898. * src/HttpSkipResponseCommand.h
  9899. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Pool connection when a server returns 4xx, 5xx responses.
  9901. * src/HttpNullDownloadCommand.cc
  9902. * src/HttpNullDownloadCommand.h
  9903. * src/HttpResponse.cc
  9904. * src/HttpResponse.h
  9905. * src/HttpResponseCommand.cc
  9906. * src/HttpResponseCommand.h
  9907. * test/HttpResponseTest.cc
  9908. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9909. Print usage when no URL is specifed or bad command-line option is
  9910. specified.
  9911. * src/HelpItemFactory.cc
  9912. * src/help_tags.h
  9913. * src/option_processing.cc
  9914. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9915. Removed duplicate log message.
  9916. * src/AbstractCommand.cc (asyncResolveHostname)
  9917. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9919. Changed -j option's default value from 5 to 1.
  9920. Added new examples using protocol auto detection feature.
  9921. Removed -T, -M usage where it can be omitted.
  9922. * doc/aria2c.1.txt
  9923. * doc/aria2c.1.html
  9924. * doc/aria2c.1.txt
  9925. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Updated command-line usage text, so that it tells users that they
  9927. can specify any number of torrent files and metalink files in
  9928. command-line.
  9929. * src/version_usage.cc
  9930. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Changed the default value of -j option to 1.
  9932. * src/HelpItemFactory.cc
  9933. * src/option_processing.cc
  9934. * src/usage_text.h
  9935. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Added the ability to reuse connection in FTP and it is enabled by
  9937. default. It can be disabled by --ftp-reuse-connection=false option.
  9938. * src/Command.cc
  9939. * src/DownloadCommand.cc
  9940. * src/FtpDownloadCommand.cc
  9941. * src/FtpDownloadCommand.h
  9942. * src/FtpFinishDownloadCommand.cc
  9943. * src/FtpFinishDownloadCommand.h
  9944. * src/FtpInitiateConnectionCommand.cc
  9945. * src/FtpNegotiationCommand.cc
  9946. * src/FtpNegotiationCommand.h
  9947. * src/HelpItemFactory.cc
  9948. * src/Makefile.am
  9949. * src/Makefile.in
  9950. * src/OptionHandlerFactory.cc
  9951. * src/option_processing.cc
  9952. * src/prefs.h
  9953. * src/usage_text.h
  9954. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Call Command::transitStatus() before calling Command::execute(),
  9956. so that the status change made in execute() is not cleared.
  9957. * src/DownloadEngine.cc
  9958. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Removed forward declaration of SocketCore class.
  9960. * src/HttpDownloadCommand.h
  9961. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9963. in InitiateConnectionCommandFactory. They should be set only when
  9964. the protocol is HTTP or HTTPS.
  9965. * src/InitiateConnectionCommandFactory.cc
  9966. * src/RequestGroup.cc
  9967. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Fixed infinite loop in checksum checking.
  9969. * src/IteratableChecksumValidator.cc
  9970. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Set _supportsPersistentConnection to true by default.
  9972. * src/Request.cc
  9973. * src/RequestGroup.cc
  9974. * test/HttpRequestTest.cc
  9975. * test/RequestTest.cc
  9976. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9977. Added timeout to socket pool. The default timeout is 15 seconds,
  9978. which is the same value Apache uses.
  9979. * src/DownloadEngine.cc
  9980. * src/DownloadEngine.h
  9981. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Fixed misuse of multimap::find()
  9983. * src/HttpHeader.cc
  9984. * test/HttpHeaderTest.cc
  9985. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9987. option.
  9988. The asynchronous DNS is not capable of IPv6 yet.
  9989. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9990. least for HTTP download.
  9991. * src/AbstractCommand.cc
  9992. * src/AbstractCommand.h
  9993. * src/AsyncNameResolver.cc
  9994. * src/AsyncNameResolver.h
  9995. * src/DHTEntryPointNameResolveCommand.cc
  9996. * src/DHTEntryPointNameResolveCommand.h
  9997. * src/DownloadEngine.cc
  9998. * src/DownloadEngine.h
  9999. * src/FtpInitiateConnectionCommand.cc
  10000. * src/FtpInitiateConnectionCommand.h
  10001. * src/HelpItemFactory.cc
  10002. * src/HttpInitiateConnectionCommand.cc
  10003. * src/HttpInitiateConnectionCommand.h
  10004. * src/InitiateConnectionCommand.cc
  10005. * src/InitiateConnectionCommand.h
  10006. * src/Makefile.am
  10007. * src/Makefile.in
  10008. * src/NameResolver.cc
  10009. * src/NameResolver.h
  10010. * src/OptionHandlerFactory.cc
  10011. * src/SocketCore.cc
  10012. * src/SocketCore.h
  10013. * src/Util.cc
  10014. * src/Util.h
  10015. * src/option_processing.cc
  10016. * src/prefs.h
  10017. * src/usage_text.h
  10018. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Updated man page: --quiet, --header were added.
  10020. --metalink-servers and --enable-http-keep-alive option were updated.
  10021. * doc/aria2c.1
  10022. * doc/aria2c.1.html
  10023. * doc/aria2c.1.txt
  10024. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10025. Enable HTTP keep-alive by default.
  10026. * src/HelpItemFactory.cc
  10027. * src/option_processing.cc
  10028. * src/usage_text.h
  10029. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Disable http keep-alive if the remote server is not HTTP/1.1.
  10031. * src/HttpConnection.cc
  10032. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Receive content body of 302 response so that the connection can be
  10034. reused later when http keep-alive is enabled.
  10035. * src/HttpNullDownloadCommand.cc
  10036. * src/HttpNullDownloadCommand.h
  10037. * src/HttpResponseCommand.cc
  10038. * src/HttpResponseCommand.h
  10039. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. const SharedHandle<Request> -> const SharedHandle<Request>&
  10041. * src/FtpDowndloadCommand.cc
  10042. * src/FtpDowndloadCommand.h
  10043. * src/HttpDownloadCommand.cc
  10044. * src/HttpDownloadCommand.h
  10045. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Fixed the bug that the control file(.aria2 file) is not renamed
  10047. according to tryAutoFileRenaming().
  10048. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10049. its control file exist, use them and continue download.
  10050. The old implementation didn't take into account of control file's
  10051. existence, so basically you couldn't continue download of renamed file.
  10052. * src/BtProgressInfoFile.h
  10053. * src/DefaultBtProgressInfoFile.cc
  10054. * src/DefaultBtProgressInfoFile.h
  10055. * src/NullProgressInfoFile.h
  10056. * src/RequestGroup.cc
  10057. * test/DefaultBtProgressInfoFileTest.cc
  10058. * test/MockBtProgressInfoFile.h
  10059. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Change the default value of --metalink-servers option from `5' to `1'.
  10061. * src/HelpItemFactory.cc
  10062. * src/option_processing.cc
  10063. * src/usage_text.h
  10064. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. Reimplemented transparent metalink using Accept request header.
  10066. * src/HttpRequest.cc
  10067. * src/HttpRequest.h
  10068. * src/HttpRequestCommand.cc
  10069. * src/Metalink2RequestGroup.cc
  10070. * src/RequestGroup.cc
  10071. * src/RequestGroup.h
  10072. * test/HttpRequestTest.cc
  10073. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Bump up version number to 0.13.2a
  10075. * configure.ac
  10076. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. Updated configure.ac using the result of autoscan.
  10078. * configure.ac
  10079. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. Fixed compilation error without gcrypt/openssl.
  10081. * src/DownloadCommand.cc
  10082. * src/DownloadCommand.h
  10083. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Reorganized version information so that it can be displayed in a
  10085. standard terminal screen without scrolling.
  10086. Removed http, ftp from Configuration section, because they are always
  10087. enabled.
  10088. * src/FeatureConfig.cc
  10089. * src/FeatureConfig.h
  10090. * src/main.cc
  10091. * src/messageDigest.cc
  10092. * src/messageDigest.h
  10093. * src/version_usage.cc
  10094. * test/FeatureConfigTest.cc
  10095. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Masked user ID in log.
  10097. * src/FtpConnection.cc (sendUser)
  10098. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Removed query part from filename in HTTP download. The query part means
  10100. the substring after "?" in URL. Firefox seems do the same thing.
  10101. A query part is sometimes very long and not suitable to filename,
  10102. so I think it is better to remove it from filename.
  10103. * src/HttpRequest.cc
  10104. * src/HttpRequest.h
  10105. * src/Request.cc
  10106. * src/Request.h
  10107. * test/HttpRequestTest.cc
  10108. * test/RequestTest.cc
  10109. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10110. Rewritten Exception class. Throw exception object, not its pointer and
  10111. catch by reference, so that remove problematic delete operator for
  10112. catched exception.
  10113. * src/Exception.cc
  10114. * src/Exception.h
  10115. * test/ExceptionTest.cc
  10116. * src/*: All files throwing/catching exception.
  10117. * test/*: All files throwing/catching exception.
  10118. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Now auto protocol detection is enabled without -Z option.
  10120. But there is a important difference between with/without -Z optoin.
  10121. For example, if you type:
  10122. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10123. then, aria2 interprets there are 3 request groups:
  10124. (1) http://host/file, http://mirror/file <-- multi-source download
  10125. (2) file1.torrent
  10126. (3) file2.metalink
  10127. On the other hand, if you invoke above command with -Z option, it is
  10128. interpreted as 4 request groups:
  10129. (1) http://host/file
  10130. (2) file1.torrent
  10131. (3) file2.metalink
  10132. (4) http://mirror/file
  10133. I think usually user don't mix multi-source URLs and torrent files, so
  10134. there is no big problem here.
  10135. * src/main.cc
  10136. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. Fixed the bug that causes segmentaion fault when reading XML containing
  10138. unescapsed character like '&'.
  10139. Also a modification was made which avoids adding unnecessary
  10140. characters stack and appending unused string.
  10141. * src/ExpatMetalinkProcessor.cc
  10142. * src/FileMetalinkParserState.h
  10143. * src/FilesMetalinkParserState.h
  10144. * src/FinMetalinkParserState.h
  10145. * src/HashMetalinkParserState.h
  10146. * src/InitialMetalinkParserState.h
  10147. * src/LanguageMetalinkParserState.h
  10148. * src/MetalinkMetalinkParserState.h
  10149. * src/MetalinkParserState.h
  10150. * src/MetalinkParserStateMachine.cc
  10151. * src/MetalinkParserStateMachine.h
  10152. * src/OSMetalinkParserState.h
  10153. * src/PieceHashMetalinkParserState.h
  10154. * src/PiecesMetalinkParserState.h
  10155. * src/ResourcesMetalinkParserState.h
  10156. * src/SizeMetalinkParserState.h
  10157. * src/SkipTagMetalinkParserState.h
  10158. * src/URLMetalinkParserState.h
  10159. * src/VerificationMetalinkParserState.h
  10160. * src/VersionMetalinkParserState.h
  10161. * src/XML2SAXMetalinkProcessor.cc
  10162. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Added StringFormat class, which internally calls vasprintf.
  10164. operator<< is defined for this class, so it can be used with iostream
  10165. classes nicely. SimpleLogger and following functions are rewritten
  10166. using StringFormat class.
  10167. Besides, now Logger class's methods are non-const, many classes
  10168. that has a const Logger* as a member variable are modified to remove
  10169. const qualifier from the variable declaration.
  10170. * src/HelpItemFactory.cc
  10171. * src/Request.cc
  10172. * src/SimpleLogger.cc
  10173. * src/StringFormat.cc
  10174. * src/StringFormat.h
  10175. * src/Util.cc
  10176. * src/option_processing.cc
  10177. * src/version_usage.cc
  10178. * test/StringFormatTest.cc
  10179. * src/*.h: The classes that has const Logger* as a member variable.
  10180. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10182. failed. Also fixed memory link when exception is thrown there.
  10183. * src/main.cc (AccRequestGroup)
  10184. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. Added build-in "Accept-Features" support. For now only "metalink" is
  10186. used in this header field.
  10187. This "metalink" value is removed from the list when connecting URLs
  10188. fed by metalink file to avoid loop in "transparent" metlaink.
  10189. * src/HttpRequest.cc
  10190. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10191. header is also held in this variable. Also renamed setUserHeaders as
  10192. addHeader and it was rewritten to add header not just to clear the old
  10193. value.
  10194. * src/HttpRequestCommand.cc
  10195. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10196. from "Accept-Features" list.
  10197. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10198. default.
  10199. * src/RequestGroup.h
  10200. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10201. * src/a2functional.h: Included <string> because Concat class depends on
  10202. it.
  10203. * test/HttpRequestTest.cc
  10204. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Added comment
  10206. * src/RequestGroup.cc (createNextCommand)
  10207. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10208. Capitalized METHOD_GET and METHOD_HEAD
  10209. * src/Request.cc
  10210. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. Added getDownloadResults() method
  10212. * src/RequestGroupMan.cc
  10213. * src/RequestGroupMan.h
  10214. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Fixed the bug that aria2 exits when commands is empty() but
  10216. _routineCommands are not.
  10217. * src/DownloadEngine.cc
  10218. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10219. Use the default value pulled from Option object in HelpItemFactory.
  10220. except options whose defualt value is embedded in a usage text.
  10221. * src/HelpItemFactory.cc
  10222. * src/HelpItemFactory.h
  10223. * src/option_processing.cc
  10224. * src/version_usage.cc
  10225. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Added --quiet option to make aria2 quiet (no console output).
  10227. --quiet option is tagged with ADVANCED.
  10228. * src/HelpItemFactory.cc
  10229. * src/LogFactory.cc
  10230. * src/LogFactory.h
  10231. * src/MultiUrlRequestInfo.cc
  10232. * src/MultiUrlRequestInfo.h
  10233. * src/NullStatCalc.h: New class. This class prints nothing.
  10234. * src/OptionHandlerFactory.cc
  10235. * src/main.cc
  10236. * src/option_processing.cc
  10237. * src/prefs.h
  10238. * src/usage_text.h
  10239. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10241. * src/HelpItemFactory.cc (createHelpItems):
  10242. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. Fixed compilation error in ExpatMetalinkProcessor.cc
  10244. * src/ExpatMetalinkProcessor.cc
  10245. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Reuse socket if the origin server supports HTTP keep-alive and
  10247. --enable-http-keep-alive or --enable-http-pipelining is given.
  10248. The current implementation doesn't reuse the connections established
  10249. against proxy server.
  10250. * src/AbstractCommand.cc
  10251. * src/DownloadEngine.cc
  10252. * src/DownloadEngine.h
  10253. * src/HttpDownloadCommand.cc
  10254. * src/HttpInitiateConnectionCommand.cc
  10255. * src/HttpResponseCommand.cc
  10256. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Rewritten HTTP keep-alive and pipelining routine.
  10258. * src/AbstractCommand.cc
  10259. * src/HttpConnection.cc
  10260. * src/HttpDownloadCommand.cc
  10261. * src/HttpRequest.cc
  10262. * src/HttpRequestCommand.cc
  10263. * src/HttpResponseCommand.cc
  10264. * src/Request.cc
  10265. * src/Request.h
  10266. * src/RequestGroup.cc
  10267. * test/HttpRequestTest.cc
  10268. * test/HttpResponseTest.cc
  10269. * test/RequestTest.cc
  10270. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Added missing setUserHeaders call
  10272. * src/HttpRequestCommand.cc
  10273. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10275. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10276. waste of time because it is more likey false.
  10277. * src/FileAllocationDispatcherCommand.cc (execute)
  10278. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10279. Now HTTP status and version are a member variable of HttpHeader.
  10280. HTTP status is processed as a string, not integer.
  10281. * src/AbstractProxyResponseCommand.cc
  10282. * src/HttpConnection.cc
  10283. * src/HttpHeader.cc
  10284. * src/HttpHeader.h
  10285. * src/HttpHeaderProcessor.cc
  10286. * src/HttpHeaderProcessor.h
  10287. * src/HttpResponse.cc
  10288. * src/HttpResponse.h
  10289. * test/HttpHeaderProcessorTest.cc
  10290. * test/HttpResponseTest.cc
  10291. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Added --header option. You can specify any number of additional HTTP headers
  10293. like:
  10294. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10295. Unlike other commad-line option, you can use --header option multiple times.
  10296. * src/HelpItemFactory.cc
  10297. * src/HttpRequest.{cc, h}
  10298. * src/HttpRequestCommand.cc
  10299. * src/OptionHandlerFactory.cc
  10300. * src/OptionHandlerImpl.h
  10301. * src/option_processing.cc
  10302. * src/prefs.h
  10303. * src/usage_text.h
  10304. * test/HttpRequestTest.cc (testUserHeaders)
  10305. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Eliminates the time lag between sequential downloads and commands in
  10307. the same RequestGroup.
  10308. In old implementation, aria2 occasionally waits 1 seconds before
  10309. executing next command or RequestGroup.
  10310. This is really a waste of time, and new implementation eliminates
  10311. this unnecessary time lag.
  10312. * src/AbstractCommand.cc
  10313. * src/AutoSaveCommand.cc
  10314. * src/CheckIntegrityCommand.cc
  10315. * src/Command.{cc, h}
  10316. * src/DownloadEngine.{cc, h}
  10317. * src/DownloadEngineFactory.cc
  10318. * src/FileAllocationCommand.cc
  10319. * src/FileAllocationDispatcherCommand.cc
  10320. * src/FillRequestGroupCommand.cc
  10321. * src/FtpInitiateConnectionCommand.cc
  10322. * src/HaveEraseCommand.cc
  10323. * src/HttpInitiateConnectionCommand.cc
  10324. * src/HttpResponseCommand.cc
  10325. * src/RealtimeCommand.cc
  10326. * src/RequestGroup.cc
  10327. * src/RequestGroupMan.cc
  10328. * src/StreamFileAllocationEntry.cc
  10329. * src/TimeBasedCommand.{cc, h}
  10330. * src/TimedHaltCommand.cc
  10331. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10333. keyword explicit and SharedHandle's default constructor initializes
  10334. its internal obj to null, old implementation initializes it using
  10335. obj's default constructor.
  10336. To assign null, write SharedHandle<T> x(...); x.reset();
  10337. TODO: test/SharedHandleTest.cc needs more tests.
  10338. * src/SharedHandle.h
  10339. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. Fixed type in man page.
  10341. * doc/aria2c.1.txt
  10342. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10344. * src/SimpleLogger.{cc, h}
  10345. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. Implemented auto protocol detection.
  10347. Now you can do:
  10348. aria2c -Z http://host/file file1.torrent file2.metalink
  10349. (Note: -Z option is required for auto protcol detection.)
  10350. Then aria2c downloads 3 files simultaneously:
  10351. 1. http://host/file
  10352. 2. file1.torrent <-- read local torrent file
  10353. 3. file2.metalink <-- read local Metalink file.
  10354. Same thing goes with -i option. Assume your uris.txt contans:
  10355. http://host/file
  10356. file1.torrent
  10357. file2.metalink
  10358. Then you can do: aria2c -i uris.txt
  10359. (Note: -Z option is not needed if -i option is given.)
  10360. * src/main.cc
  10361. * src/ProtocolDetector.{cc, h}
  10362. * test/ProtocolDetectorTest.cc
  10363. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10365. installed
  10366. * src/ARC4Encryptor.h
  10367. * src/ARC4Decryptor.h
  10368. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Renamed argument from 'errno' to 'err', since errno is confused with
  10370. errno defined in errno.h.
  10371. * src/LibgcryptARC4Decryptor.h
  10372. * src/LibgcryptARC4Context.h
  10373. * src/LibgcryptDHKeyExchange.h
  10374. * src/LibgcryptARC4Encryptor.h
  10375. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Rewritten choking algorithm.
  10377. * src/PeerChokeCommand.{cc, h}
  10378. * src/BtInterestedMessage.cc
  10379. * src/PeerSessionResource.{cc, h}
  10380. * src/DefaultPeerStorage.{cc, h}
  10381. * src/BtNotInterestedMessage.cc
  10382. * src/DefaultBtMessageDispatcher.{cc, h}
  10383. * src/BtMessageDispatcher.h
  10384. * src/Peer.{cc, h}
  10385. * src/BtLeecherStateChoke.{cc, h}
  10386. * src/BtSetup.cc
  10387. * src/BtSeederStateChoke.{cc, h}
  10388. * src/PeerStorage.h
  10389. * test/MockPeerStorage.h
  10390. * test/MockBtMessageDispatcher.h
  10391. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Fixed compilation error on x84-64 platform.
  10393. * src/AuthConfig.cc: Included ostream.
  10394. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Rewritten getBasename() and getDirname(), without standard library
  10396. basename(), dirname().
  10397. * src/File.cc
  10398. * test/FileTest.cc
  10399. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Added Simplified Chinese translation. Also updated the following
  10401. translations: Polish, Dutch, German. Great thanks to all translators.
  10402. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Suppress content-range error when 'Content-Range' response header
  10404. doesn't contains bytes-unit specifier 'bytes'
  10405. * src/HttpHeader.cc (getRange)
  10406. * test/HttpHeaderTest.cc
  10407. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10408. Fixed compilation error with g++-4.3
  10409. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Added missing include files for MinGW
  10411. * test/HttpHeaderProcessorTest.cc
  10412. * test/DHTRoutingTableSerializerTest.cc
  10413. * test/DHTRoutingTableDeserializerTest.cc
  10414. * test/UriListParserTest.cc
  10415. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. Now download line is printed nicely with no garbage at the end of
  10417. line. I use ioctl to get the columns of terminal.
  10418. If stdout is redirected to another device, instead of carriage return,
  10419. end of line '\n' character is used. This is feature request#1909659
  10420. * src/ConsoleStatCalc.cc (calculateStat)
  10421. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Included a2time.h
  10423. * src/DHTMessageDispatcher.h
  10424. * src/DHTMessageEntry.h
  10425. * src/DHTReplaceNodeTask.h
  10426. * src/DHTMessageTracker.h
  10427. * src/Util.h
  10428. * src/CookieBox.h
  10429. * src/SocketCore.h
  10430. * src/DefaultBtMessageDispatcher.h
  10431. * src/SocketCore.cc
  10432. * src/Util.cc
  10433. * src/DHTPingTask.h
  10434. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Fixed high memory footprint when DHT is enabled.
  10436. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10437. queued than it is processed and the queue is getting longer. As a
  10438. consequence, momory usage is increased.
  10439. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10440. replacement cache in DHTBucket which is described in Kademlia paper.
  10441. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10442. DHTReplaceNodeTask.
  10443. * src/DHTBucket.{h, cc}
  10444. (cacheNode): New function.
  10445. (getCachedNodes): New function.
  10446. (dropNode): Push back cached node to _nodes.
  10447. * test/DHTBucketTest.cc
  10448. (testCacheNode): New test
  10449. (testDropNode): New test
  10450. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10452. the unused 4KB memory when ssl is not used.
  10453. * src/SocketCore.cc
  10454. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Added summary log for peer announce storage.
  10456. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10457. Removed cast
  10458. * src/DefaultPeerStorage.cc (addPeer)
  10459. Log exception message
  10460. * src/DHTMessageTracker.cc (handleTimeout)
  10461. Fixed casting
  10462. * test/HttpRequestTest.cc
  10463. * test/MetalinkProcessorTest.cc
  10464. * test/PieceTest.cc
  10465. * test/MetalinkEntryTest.cc
  10466. * test/SequenceTest.cc
  10467. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. * src/ParameterizedStringParser.cc (createLoop):
  10469. Removed unused variable sstep.
  10470. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10471. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10472. * src/Util.{h, cc}
  10473. (parseUInt): New function.
  10474. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10475. The actual range is uint32_t.
  10476. * test/UtilTest.cc
  10477. * src/ParameterizedStringParser.cc:
  10478. Use Util::parseUInt() for loop variables.
  10479. * test/ParameterizedStringParserTest.cc
  10480. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10481. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Rewritten the functions for binding port.
  10483. * src/DHTConnectionImpl.{h, cc}
  10484. * src/PeerListenCommand.{h, cc}
  10485. * src/DHTSetup.cc
  10486. * src/BtSetup.cc
  10487. * test/DHTConnectionImplTest.cc
  10488. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. type cleanup for allmost all remaining files.
  10490. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10491. Type clarification
  10492. * src/PeerSessionResource.{h, cc}
  10493. * src/DefaultPieceStorage.{h, cc}
  10494. * src/Peer.{h, cc}
  10495. * test/PeerSessionResourceTest.cc
  10496. Use div function
  10497. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10498. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Type clarification
  10500. * src/DefaultPeerStorage.{h, cc}
  10501. * test/DefaultPeerStorageTest.cc
  10502. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Type clarification: size_t for length or size, uint64_t for file
  10504. length, off_t for file offset.
  10505. * src/DefaultBtProgressInfoFile.cc
  10506. * src/DefaultBtContext.{h, cc}
  10507. * src/DefaultBtInteractive.cc
  10508. * src/DownloadCommand.{h, cc}
  10509. * src/IteratableChunkChecksumValidator.{h, cc}
  10510. * src/SegmentMan.{h, cc}
  10511. * src/SingleFileDownloadContext.{h, cc}
  10512. * src/IteratableChecksumValidator.{h, cc}
  10513. * src/BtContext.h
  10514. * src/IteratableValidator.h
  10515. * src/DownloadContext.h
  10516. * test/SingleFileDownloadContextTest.cc
  10517. * test/DefaultBtContextTest.cc
  10518. * test/MockBtContext.h
  10519. * test/Metalink2RequestGroupTest.cc
  10520. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. Type clarification: size_t for length or size, uint64_t for file
  10522. length, off_t for file offset.
  10523. * src/PiecedSegment.cc
  10524. * src/GrowSegment.h
  10525. * src/DefaultBtRequestFactory.h
  10526. * src/DefaultBtProgressInfoFile.cc
  10527. * src/UnknownLengthPieceStorage.h
  10528. * src/DefaultPieceStorage.cc
  10529. * src/UnknownLengthPieceStorage.cc
  10530. * src/DefaultBtInteractive.cc
  10531. * src/GrowSegment.cc
  10532. * src/BitfieldMan.h
  10533. * src/DownloadCommand.cc
  10534. * src/BtRequestFactory.h
  10535. * src/PiecedSegment.h
  10536. * src/DefaultPieceStorage.h
  10537. * src/Piece.cc
  10538. * src/DefaultBtRequestFactory.cc
  10539. * src/PieceStorage.h
  10540. * src/Segment.h
  10541. * src/Piece.h
  10542. * src/BitfieldMan.cc
  10543. * src/Util.cc
  10544. * test/DefaultBtProgressInfoFileTest.cc
  10545. * test/DefaultPieceStorageTest.cc
  10546. * test/MockPieceStorage.h
  10547. * test/BtRequestMessageTest.cc
  10548. * test/DefaultBtMessageDispatcherTest.cc
  10549. * test/BitfieldManTest.cc
  10550. * test/GrowSegmentTest.cc
  10551. * test/PieceTest.cc
  10552. * test/SegmentTest.cc
  10553. * test/SegmentManTest.cc
  10554. * test/DefaultBtRequestFactoryTest.cc
  10555. * test/MockBtRequestFactory.h
  10556. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Fixed compilation error with --disable-nls
  10558. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10559. in gettext.h causes the problem.
  10560. * src/common.h
  10561. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Removed subPiece related functions.
  10563. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10564. * src/DefaultPieceStorage.{h, cc}
  10565. * test/PieceTest.cc
  10566. * test/DefaultPieceStorageTest.cc
  10567. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Use unsigned char for data store.
  10569. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. Bump up version number to 0.13.0+1
  10571. * configure.ac
  10572. * Release 0.13.0+1
  10573. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Changed inactive connection timeout to 120.
  10575. To accept more mulually interested peers, disconnect peer when there
  10576. is no interest between us after certain time passed.
  10577. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10578. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10580. when compiled with async DNS support.
  10581. * src/DownloadEngine.cc
  10582. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10583. value '10' will be a little bit short when some DNS servers are
  10584. offline and several DNS servers are tried. It should be configured
  10585. by command-line option.
  10586. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Merged Ross's mingw patch.
  10588. * src/DHTRoutingTableDeserializer.cc
  10589. * src/DHTRoutingTableSerializer.cc
  10590. * src/Platform.{h, cc}
  10591. * src/timegm.h
  10592. * src/gettimeofday.h
  10593. * src/getaddrinfo.h
  10594. * src/SocketCore.h
  10595. * src/common.h
  10596. * src/inet_aton.h
  10597. * src/DownloadEngine.h
  10598. * src/gai_strerror.h
  10599. * src/a2netcompat.h
  10600. * configure.ac
  10601. * configure
  10602. * aclocal.m4
  10603. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Included missing iostream.
  10605. * test/AllTest.cc
  10606. * test/BtDependencyTest.cc
  10607. * test/BtExtendedMessageTest.cc
  10608. * test/DHTConnectionImplTest.cc
  10609. * test/DHTMessageFactoryImplTest.cc
  10610. * test/DHTMessageTrackerEntryTest.cc
  10611. * test/DHTNodeTest.cc
  10612. * test/DHTRoutingTableSerializerTest.cc
  10613. * test/DefaultBtAnnounceTest.cc
  10614. * test/DefaultBtContextTest.cc
  10615. * test/DefaultBtMessageFactoryTest.cc
  10616. * test/DefaultExtensionMessageFactoryTest.cc
  10617. * test/HandshakeExtensionMessageTest.cc
  10618. * test/HttpResponseTest.cc
  10619. * test/MetalinkProcessorTest.cc
  10620. * test/MultiFileAllocationIteratorTest.cc
  10621. * test/SocketCoreTest.cc
  10622. * test/UTPexExtensionMessageTest.cc
  10623. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Reorganized includes.
  10625. * src/NameResolver.cc
  10626. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10627. Fixed compilation error without ares/c-ares
  10628. * src/NameResolver.h:
  10629. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Added a test for large file.
  10631. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10632. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Fixed the bug that file size is ignored if size > INT32_MAX
  10634. * src/SizeMetalinkParserState.cc (endElement):
  10635. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Bump up version number to 0.13.0
  10637. * configure.ac
  10638. * Release 0.13.0
  10639. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Updated Makfefile.am to make 'make dist' work.
  10641. Now packaged filename is aria2c-VERSION.tar.bz2.
  10642. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10643. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10644. Large file support is now configured by configure script.
  10645. * configure.ac
  10646. Removed unsused source files
  10647. * src/
  10648. * test/
  10649. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10650. Peer.h and BtContext.h respectively.
  10651. * src/Peer.h
  10652. * src/BtContext.h
  10653. Updated translations.
  10654. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10655. translations. Great thanks to all translators!;)
  10656. * po/*.{po, gmo}
  10657. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10659. statically declared sha1 MessageDigestContext.
  10660. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10661. initialization of short-lived MessageDigestContext.
  10662. * src/MessageDigestHelper.{h, cc}
  10663. * src/main.cc
  10664. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10665. the initialization of MessageDigestContext every time in validating
  10666. chunk checksum.
  10667. * src/DownloadCommand.{h, cc}
  10668. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Add a file descriptor which connected to fast peer(latency<1500) to
  10670. select(). This change reduced CPU load.
  10671. * src/PeerInteractionCommand.cc
  10672. * src/DefaultBtInteractive.{h, cc}
  10673. * src/BtInteractive.h
  10674. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. Fixed the previous insufficient fix for possible busy loop.
  10676. * src/MSEHandshake.cc (identifyHandshakeType)
  10677. Removed unused functions.
  10678. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10679. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Fixed possible busy loop if first 20 bytes are not received for a few
  10681. minutes.
  10682. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10683. * src/ReceiverMSEHandshakeCommand.cc
  10684. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Fixed compilation error
  10686. * src/ExpatMetalinkProcessor.cc
  10687. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10688. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10689. * src/DHTBucket.cc
  10690. Removed unnecessary cast.
  10691. * src/HandshakeExtensionMessage.cc
  10692. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10694. is missing.
  10695. * src/OptionHandlerFactory.cc
  10696. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. Fixed the bug that HAVE message is not sent for a piece they are
  10698. downloaded fom http/ftp server before any BitTorrent handshake is done
  10699. with peers.
  10700. * src/DefaultBtInteractive.cc
  10701. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10703. * src/Makefile.am
  10704. * src/Makefile.in
  10705. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Updated README. Added html version of README and man page.
  10707. * README
  10708. * README.html
  10709. * readme2html: Shell script to generate README.html from README using
  10710. asciidoc.
  10711. * doc/aria2c.1.html
  10712. * doc/makeman: Added the line to generate aria2c.1.html
  10713. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Fixed offset calculation.
  10715. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10716. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Rewritten itos and uitos using template. llitos and ullitos are
  10718. replaced with itos and uitos respectively.
  10719. * src/Util.{h, cc}
  10720. * test/UtilTest.cc
  10721. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10722. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10723. of the number of bytes required for storing public key and shared
  10724. secret.
  10725. * src/LibgcryptDHKeyExchange.h
  10726. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10727. * src/MSEHandshake.cc
  10728. * test/DHKeyExchangeTest.cc
  10729. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. Removed since they are not used.
  10731. * src/Xml2MetalinkProcessor.{h, cc}
  10732. * src/Socket.cc
  10733. * src/SegmentSplitter.{h, cc}
  10734. * test/Xml2MetalinkProcessorTest.cc
  10735. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. Fixed the bug that prevents aria2 from stopping other than by pressing
  10737. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10738. option. aria2 doesn't stop even after --seed-time is satisfied and
  10739. continues to output blank lines in the console.
  10740. * src/ReceiverMSEHandshakeCommand.cc
  10741. * src/PeerReceiveHandshakeCommand.cc
  10742. * src/PeerListenCommand.cc
  10743. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. Bump up version number to 0.13.0rc
  10745. * configure.ac
  10746. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. Updated man page and some usage text.
  10748. * doc/aria2c.1.txt
  10749. * src/usage_text.h
  10750. * po/*.{po, gmo}
  10751. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Updated translations. Added Finnish and Hebrew translations.
  10753. Great thanks to all translators!
  10754. * po/*.{po, gmo}
  10755. * po/LINGUAS
  10756. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. Log more detailed information about each message.
  10758. * src/DHTQueryMessage.{h, cc}
  10759. * src/DHTGetPeersMessage.{h, cc}
  10760. * src/DHTFindNodeReplyMessage.{h, cc}
  10761. * src/DHTGetPeersReplyMessage.{h, cc}
  10762. * src/DHTAnnouncePeerMessage.{h, cc}
  10763. * src/DHTResponseMessage.{h, cc}
  10764. * src/DHTFindNodeMessage.{h, cc}
  10765. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Use constants defined in prefs.h
  10767. * src/option_processing.cc
  10768. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10770. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Make room for future enchancements for IPv6 addresses.
  10772. Bump up version number of dht.dat file format to 2.
  10773. Not compatible with previous version.
  10774. * src/DHTRoutingTableSerializer.cc
  10775. * src/DHTRoutingTableDeserializer.cc
  10776. * test/DHTRoutingTableSerializerTest.cc
  10777. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Added handling for the return values from
  10779. PeerMessageUtil::createcompact().
  10780. * src/DefaultBtContext.cc (computeFastSet):
  10781. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Fixed abort when peer's ip address is IPv4-mapped address.
  10783. * src/DefaultBtContext.cc (computeFastSet)
  10784. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10785. cannot handle IPv4-mapped addresses.
  10786. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10787. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Proper return value handling for OpenSSL functions.
  10789. * src/LibsslDHKeyExchange.h
  10790. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. Random bytes generation using libgcrypt and OpenSSL.
  10792. * src/DHTUtil.{h, cc}
  10793. * test/DHTUtilTest.cc
  10794. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10795. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10796. received.
  10797. * src/DHTMessageReceiver.cc (receiveMessage)
  10798. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10799. Fixed the bug that a return code is always 0. BUG#1897704
  10800. If error occurred during the download or there exist unfinished
  10801. downloads, aria2 returns with code 1.
  10802. * src/RequestGroupMan.{h, cc}
  10803. * src/MultiUrlRequestInfo.{h, cc}
  10804. * src/main.cc
  10805. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. IPv6 support for SocketCore class.
  10807. TODO: In SocketCore::establishConnection(), this is insufficient to
  10808. determin the failure of connect() here because the socket is
  10809. non-blocking state. The next addresses should be tried after select().
  10810. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10811. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10812. instead which address family independent.
  10813. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10814. information in a compact peer format which is for IPv4 only.
  10815. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10816. this is a spec of BitTorrent protocol.
  10817. * src/SocketCore.{h, cc}
  10818. * src/PeerMessageUtil.cc
  10819. * test/SocketCoreTest.cc
  10820. * test/PeerMessageUtilTest.cc
  10821. * test/DHTConnectionImplTest.cc
  10822. Handle IPv4-mapped addresses.
  10823. * src/DHTNode.cc: Now identity is determined by node id.
  10824. * src/DHTMessageTrackerEntry.cc
  10825. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10826. should handle it.
  10827. * src/DHTRoutingTableDeserializer.cc
  10828. * src/DHTMessageFactoryImpl.cc
  10829. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10830. Change the unit of --stop option from a minute to a second.
  10831. * src/usage_text.h
  10832. * src/DownloadEngineFactory.cc
  10833. * src/OptionHandlerFactory.cc
  10834. * src/message.h
  10835. * src/TimedHaltCommand.cc
  10836. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Make listening socket non-block mode.
  10838. * src/FtpConnection.cc
  10839. * src/FtpNegotiationCommand.{h, cc}
  10840. * src/PeerListenCommand.cc
  10841. Fixed the bug that cause slow ftp negotiation.
  10842. * src/FtpNegotiationCommand.{h, cc}
  10843. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10844. Added basic tag to --enable-dht, --dht-listen-port option.
  10845. * src/HelpItemFactory.cc (createHelpItems)
  10846. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Updated text.
  10848. * src/usage_text.h
  10849. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10851. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. Determin _threadtholdSpeed in each constructor for
  10853. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10854. * src/ActivePeerConnectionCommand.{h, cc}
  10855. * src/PeerReceiveHandshakeCommand.{h, cc}
  10856. * src/BtSetup.cc
  10857. * src/BtConstants.h
  10858. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Added --bt-min-crypto-level and --bt-require-crypto options.
  10860. * src/OptionHandlerFactory.cc
  10861. * src/MSEHandshake.cc
  10862. * src/HelpItemFactory.cc
  10863. * src/option_processing.cc
  10864. * src/ReceiverMSEHandshakeCommand.cc
  10865. * src/prefs.h
  10866. * src/DefaultBtAnnounce.cc
  10867. * src/InitiatorMSEHandshakeCommand.cc
  10868. * src/usage_text.h
  10869. * test/MSEHandshakeTest.cc
  10870. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. Bump version number to 0.13.0b
  10872. * configure.ac
  10873. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. Updated doc.
  10875. * src/MessageDigestHelper.h:
  10876. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10877. Use raw message digest as a token instead of its hexadecimal
  10878. representation.
  10879. * src/DHTTokenTracker.cc (generateToken)
  10880. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. Added Message Stream Encryption(MSE) support.
  10882. Currently, aria2 accepts incoming connections with Obfuscation Header
  10883. and legacy BitTorrent Header and establishes connections with
  10884. Obfuscation Header first and if failed then retry with legacy
  10885. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10886. choose ARC4. The new option to change the default behavior is planned.
  10887. For tracker extension, "supportcrypto=1" is added statically.
  10888. * src/PeerInitiateConnectionCommand.{h, cc}
  10889. * src/PeerConnection.{h, cc}
  10890. * src/HandleRegistry.h
  10891. * src/SocketCore.h
  10892. * src/PeerReceiveHandshakeCommand.{h, cc}
  10893. * src/BtRegistry.{h, cc}
  10894. * src/PeerListenCommand.cc
  10895. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10896. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10897. * src/MSEHandshake.{h, cc}
  10898. * src/ARC4Encryptor.h
  10899. * src/ARC4Decryptor.h
  10900. * src/LibgcryptARC4Encryptor.h
  10901. * src/LibgcryptARC4Decryptor.h
  10902. * src/LibgcryptARC4Context.h
  10903. * src/LibsslARC4Encryptor.h
  10904. * src/LibsslARC4Decryptor.h
  10905. * src/LibsslARC4Context.h
  10906. * src/DHKeyExchange.h
  10907. * src/LibgcryptDHKeyExchange.h
  10908. * src/LibsslDHKeyExchange.h
  10909. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10910. * test/DefaultBtAnnounceTest.cc
  10911. * test/ARC4Test.cc
  10912. * test/DHKeyExchangeTest.cc
  10913. Removed prepareForRetry() because it is not used.
  10914. * src/PeerAbstractCommand.{h, cc}
  10915. * src/PeerInteractionCommand.{h, cc}
  10916. * src/PeerInitiateConnectionCommand.{h, cc}
  10917. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. Added the ability to load nodes from torrent file. These nodes are
  10919. added to the routing table when downloading that torrent.
  10920. * src/BtContext.h
  10921. * src/DefaultBtContext.{h, cc}
  10922. * src/DHTSetup.cc
  10923. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10924. hostname and port pair, and resolves all of them.
  10925. * src/NameResolver.{h, cc}: Added reset().
  10926. * src/RequestGroup.cc
  10927. * test/DefaultBtContextTest.cc
  10928. * test/MockBtContext.h
  10929. Removed assert() from DefaultBtContext and throw exception instead.
  10930. * src/DefaultBtContext.cc
  10931. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. Fixed segmentation fault bug when exiting if dht is disabled.
  10933. * src/RequestGroup.cc
  10934. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Fixed typo in log message and define the message in message.h
  10936. * src/TimedHaltCommand.cc
  10937. * src/message.h
  10938. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Included RecoverableException.h to fix compilation error.
  10940. * test/DHTMessageFactoryImplTest.cc
  10941. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10943. * test/DHTPingMessageTest.cc
  10944. * test/DHTGetPeersMessageTest.cc
  10945. * test/DHTFindNodeMessageTest.cc
  10946. * test/DHTAnnouncePeerMessageTest.cc
  10947. * test/MockDHTMessage.h
  10948. * test/MockDHTMessageFactory.h
  10949. * test/MockDHTMessageDispatcher.h: New class.
  10950. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10952. virtual.
  10953. * src/DHTMessageDispatcher.h
  10954. * src/DHTMessageDispatcherImpl.{h, cc}
  10955. * src/DHTSetup.cc
  10956. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Adding handling of DHT error message. Just log error message and
  10958. throw exception.
  10959. * src/DHTMessageFactoryImpl.cc
  10960. * test/DHTMessageFactoryImplTest.cc
  10961. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10962. Added handling of dynamic cast failure.
  10963. * src/DHTNodeLookupTask.cc
  10964. * src/DHTPeerLookupTask.cc
  10965. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10966. Added the ability to stop aria2 itself when given time has passed
  10967. from start. Use --stop option to specify time in minutes.
  10968. When 0 is given, this feature is disabled.
  10969. * src/OptionHandlerFactory.cc
  10970. * src/TimeBasedCommand.h: Make _interval protected scope.
  10971. * src/HelpItemFactory.cc
  10972. * src/option_processing.cc
  10973. * src/prefs.h
  10974. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10975. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10976. Without this modification, the result list shows "ERR" when aria2 is
  10977. stopped by --stop option. It should be "INPR".
  10978. * src/DownloadEngine.{h, cc}
  10979. * src/DownloadEngineFactory.cc
  10980. * src/usage_text.h
  10981. * src/TimedHaltCommand.{h, cc}: New class.
  10982. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Bootstrap through node added by port message.
  10984. Currently bootstrap is executed if the number of buckets in routing
  10985. table is 1.
  10986. * src/BtPortMessage.{h, cc}
  10987. * src/DefaultBtMessageFactory.{h, cc}
  10988. * src/PeerInteractionCommand.cc
  10989. * test/BtPortMessageTest.cc
  10990. * test/MockDHTTask.h
  10991. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. Extract the Peer class's member variables, which are only needed after
  10993. PeerInteractionCommand, into PeerSessionResource class.
  10994. This class is instantiated in PeerInteractionCommand class's ctor and
  10995. released in its dtor.
  10996. This will make Peer class lightweight and uses less memory for peers
  10997. which are not connected and wait in the queue.
  10998. * src/PeerChokeCommand.cc
  10999. * src/PeerSessionResource.{h, cc}
  11000. * src/PeerInteractionCommand.cc
  11001. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11002. * src/DefaultBtInteractive.cc
  11003. * src/BtPieceMessage.cc
  11004. * src/BtInterestedMessage.cc
  11005. * src/BtUnchokeMessage.cc
  11006. * src/DefaultPeerStorage.{h, cc}
  11007. * src/PeerInitiateConnectionCommand.cc
  11008. * src/ActivePeerConnectionCommand.cc
  11009. * src/BtNotInterestedMessage.cc
  11010. * src/DefaultBtMessageDispatcher.cc
  11011. * src/BtChokeMessage.cc
  11012. * src/BtRequestMessage.cc
  11013. * src/Peer.{h, cc}
  11014. * src/BtRegistry.h
  11015. * src/TrackerWatcherCommand.cc
  11016. * src/PeerReceiveHandshakeCommand.cc
  11017. * test/BtExtendedMessageTest.cc
  11018. * test/BtAllowedFastMessageTest.cc
  11019. * test/BtCancelMessageTest.cc
  11020. * test/DefaultPieceStorageTest.cc
  11021. * test/BtBitfieldMessageTest.cc
  11022. * test/BtHaveMessageTest.cc
  11023. * test/BtNotInterestedMessageTest.cc
  11024. * test/BtRequestMessageTest.cc
  11025. * test/PeerSessionResourceTest.cc
  11026. * test/DefaultBtMessageDispatcherTest.cc
  11027. * test/PeerTest.cc
  11028. * test/BtInterestedMessageTest.cc
  11029. * test/BtRejectMessageTest.cc
  11030. * test/BtChokeMessageTest.cc
  11031. * test/DefaultPeerStorageTest.cc
  11032. * test/BtHaveNoneMessageTest.cc
  11033. * test/BtHaveAllMessageTest.cc
  11034. * test/DefaultExtensionMessageFactoryTest.cc
  11035. * test/BtUnchokeMessageTest.cc
  11036. * test/DefaultBtMessageFactoryTest.cc
  11037. * test/HandshakeExtensionMessageTest.cc
  11038. * test/UTPexExtensionMessageTest.cc
  11039. * test/DefaultBtRequestFactoryTest.cc
  11040. * test/BtPieceMessageTest.cc
  11041. Removed typedef PeerStats.
  11042. * src/PeerStat.h
  11043. * src/SegmentMan.cc
  11044. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Added std namespace to copy, remove_copy, back_inserter,
  11046. front_inserter.
  11047. * src/RequestGroupMan.cc
  11048. * src/DefaultPieceStorage.cc
  11049. * src/StreamFileAllocationEntry.cc
  11050. * src/BtFileAllocationEntry.cc
  11051. * src/RequestGroup.cc
  11052. * src/MetalinkEntry.cc
  11053. * src/DelegatingPeerListProcessor.cc
  11054. * src/DefaultBtRequestFactory.cc
  11055. * src/DefaultBtMessageDispatcher.cc
  11056. * src/version_usage.cc: Included <algorithm>
  11057. * src/main.cc
  11058. * src/MetalinkParserController.cc
  11059. * src/DefaultBtContext.cc
  11060. * src/DownloadEngineFactory.cc
  11061. * src/a2algo.h
  11062. Removed.
  11063. * test/StreamUriListParserTest.cc
  11064. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11066. ActivePeerConnectionCommand when it is given and
  11067. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11068. * src/ActivePeerConnectionCommand.{h, cc}
  11069. * src/BtSetup.cc
  11070. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Only add socket to DownloadEngine's select routine when peer or
  11072. localhost is unchoked and interested. This lowers CPU usage a
  11073. little bit.
  11074. * src/PeerInteractionCommand.cc
  11075. * src/PeerAbstractCommand.{h, cc}
  11076. * src/BtInteractive.h
  11077. * src/DefaultBtInteractive.{h, cc}
  11078. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Revert previous change because get_peers message is needed for
  11080. announce_peer anyway.
  11081. * src/DHTGetPeersCommand.cc
  11082. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Request peers thought DHT only when download hasn't finished.
  11084. * src/DHTGetPeersCommand.cc
  11085. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11087. * src/DHTBucketRefreshTask.{h, cc}
  11088. * src/DHTSetup.cc
  11089. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11090. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11091. standard classes.
  11092. Included string.h where mem* function are used.
  11093. Added namespace aria2.
  11094. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Create directory before saving DHT routing table.
  11096. Now ios::failure is now handled properly.
  11097. * src/DHTAutoSaveCommand.cc
  11098. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Removed unnecessary cerr.
  11100. * src/DownloadEngine.cc
  11101. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11102. Catch exception inside DHTMessageReceiver::receiveMessage().
  11103. Log unknown message.
  11104. * src/DHTMessageReceiver.{h, cc}
  11105. * src/DHTMessageFactory.h
  11106. * src/DHTMessageFactoryImpl.{h, cc}
  11107. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11108. * src/DHTInteractionCommand.cc
  11109. * src/DHTUnknownMessage.{h, cc}
  11110. * test/DHTUnknownMessageTest.cc
  11111. * test/MockDHTMessageFactory.h
  11112. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Commented out ip address comparison because a host can have multiple
  11114. ip addresses and it is hard to predict the hostname is resolved into
  11115. which one.
  11116. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11117. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. * po/Makefile.in: Removed since this is generated by configure.
  11119. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11120. Fixed compiler warning about redefinition of SIZE_MAX.
  11121. Use common.h instead of config.h directly here.
  11122. * src/Platform.{h, cc}
  11123. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11124. here.
  11125. * common.h
  11126. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11127. Updated gettext related files.
  11128. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11129. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11130. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Added DHT functionality, compatible with mainline.
  11132. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11133. You may need to specify entry point to DHT network using
  11134. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11135. Use --dht-listen-port to specify port number. Make sure that your
  11136. firewall configuration can pass through UDP traffic to the port.
  11137. The routing table is saved in $HOME/.aria2/dht.dat.
  11138. * src/DHT*
  11139. * src/BNode.{h, cc}
  11140. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11141. particular torrent.
  11142. * src/Data.cc: Rewritten ctor.
  11143. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11144. --dht-entry-point.
  11145. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11146. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11147. ends, remove BtContext from DHTPeerAnnounceStorage.
  11148. * src/BtPortMessage.{h, cc}: Rewritten.
  11149. * src/message.h
  11150. * src/OptionHandlerImpl.cc
  11151. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11152. --dht-entry-point.
  11153. * src/Dictionary.{h, cc} (remove): New function.
  11154. * src/prefs.h
  11155. * src/DefaultBtMessageFactory.h
  11156. * src/BtHandshakeMessage.cc
  11157. * src/ActivePeerConnectionCommand.cc
  11158. * src/SocketCore.{h, cc}: Added datagram socket support.
  11159. * src/DefaultBtMessageFactory.cc
  11160. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11161. Create DHT commands.
  11162. * src/BtMessageFactory.h
  11163. * src/PeerMessageUtil.{h, cc}
  11164. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Fixed the bug that log file is not written when configuration file doesn't exist.
  11166. This is caused by using Logger class before LogFactory is not configured.
  11167. BUG #1875079
  11168. * src/option_processing.cc
  11169. Warning message "configuration doesn't exist" is only printed when --conf is
  11170. given.
  11171. * src/option_processing.cc
  11172. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11174. ShaVisitor is now deprecated and slated to be removed.
  11175. * src/DefaultBtContext.cc
  11176. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11177. Externalize message to message.h
  11178. * src/Platform.cc
  11179. * src/message.h
  11180. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11181. Set default domain and default path to cookie.
  11182. * src/HttpResponse.cc
  11183. * src/CookieBox.{h, cc}
  11184. * src/CookieParser.{h, cc}
  11185. * test/CookieParserTest.cc
  11186. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. Added --no-conf and --conf-path command-line option.
  11188. --no-conf option disables loading aria2.conf file.
  11189. --conf-path option changes the configuration file path. The default
  11190. file path is $HOME/.aria2/aria2.conf
  11191. Added a warning message when the configuration file is not found.
  11192. * src/HelpItemFactory.cc
  11193. * src/option_processing.cc
  11194. * src/prefs.h
  11195. * src/usage_text.h
  11196. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Added the message to inform users that other help categories are
  11198. available in -h option.
  11199. * src/version_usage.cc
  11200. * src/TagContainer.{h, cc}
  11201. * test/TagContainerTest.cc
  11202. * src/TaggedItem.{h, cc}
  11203. * test/TaggedItemTest.cc
  11204. * src/HelpItem.h
  11205. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11207. from PiecedSegment's ctor.
  11208. Previously Piece::getAllMissingBlockIndexes() is called from
  11209. PiecedSegment() but it is rather expensive since only first element is
  11210. used.
  11211. * src/PiecedSegment.cc
  11212. * src/Piece.{h, cc}
  11213. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11215. each time these functions are called.
  11216. * src/BitfieldMan.{h, cc}
  11217. * test/BitfieldManTest.cc
  11218. * src/array_fun.h
  11219. * test/array_funTest.cc
  11220. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11221. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11222. filtered. Removed unnecessary cast to int32_t.
  11223. * src/BitfieldMan.{h, cc}
  11224. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11226. payload length(4bytes) are received. This happens because lenbufLength
  11227. is not updated in this particular case and successive call of
  11228. receiveMessage() overwrites payload length with bytes recieved which
  11229. are payload body.
  11230. * src/PeerConnection.{h, cc}
  11231. * src/message.h
  11232. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11234. peer if there are peers that have same ipaddr and port.
  11235. I've experiened segmentation fault and "pure virtual function was
  11236. called" error.
  11237. * src/Peer.h
  11238. * test/PeerTest.cc
  11239. * src/DefaultPeerStorage.cc
  11240. * test/DefaultPeerStorageTest.cc
  11241. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Removed a call to isPowerOf() because it is no longer necessary here
  11243. and a request block is not always power of 2.
  11244. BUG#1866924
  11245. * src/PeerMessageUtil.cc (checkLength)
  11246. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11247. Fixed the bug that always first found Segment is removed from
  11248. usedSegmentEntries. Removed unused functions.
  11249. * src/SegmentMan.{h, cc}
  11250. * test/SegmentManTest.cc
  11251. Fixed the bug that ServerHost is not removed.
  11252. * src/RequestGroup.cc
  11253. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11254. Fixed the bug that SegmentMan::completeSegment() is not called
  11255. even if Segment is complete when --lowest-speed-limit is enabled.
  11256. BUG#1864525
  11257. * src/DownloadCommand.{h, cc}
  11258. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11259. Fixed: hash algorithm 'sha1' is always used.
  11260. * src/DownloadCommand.cc (validatePieceHash)
  11261. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11262. Added --enable-peer-exchange command-line option.
  11263. * src/OptionHandlerFactory.cc
  11264. * src/HelpItemFactory.cc
  11265. * src/option_processing.cc
  11266. * src/usage_text.h
  11267. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. Move extension from BtRuntime to ExtensionMessageFactory, because
  11269. extension can be specified per peer, not per torrent.
  11270. * src/DefaultBtInteractive.cc
  11271. * src/BtRuntime.h
  11272. * src/ExtendedMessagingAware.h
  11273. * src/ExtensionMessageFactory.h
  11274. * src/DefaultExtensionMessageFactory.cc
  11275. * test/DefaultExtensionMessageFactoryTest.cc
  11276. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. Added categorized option help. Specify category using --help option.
  11278. Also added the ability to search options in forward match.
  11279. * src/HelpItem.{h, cc}
  11280. * test/HelpItemTest.cc
  11281. * src/HelpItemFactory.{h, cc}
  11282. * src/TagContainer.{h, cc}
  11283. * test/TagContainerTest.cc
  11284. * src/option_processing.cc
  11285. * src/prefs.h
  11286. * src/TaggedItem.{h, cc}
  11287. * test/TaggedItemTest.cc
  11288. * src/version_usage.cc
  11289. * src/help_tags.h
  11290. * src/usage_text.h
  11291. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Fixed segmentation fault when bad torrent metainfo is parsed.
  11293. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11294. and then throw exception or skip it.
  11295. * src/DefaultBtContext.{h, cc}
  11296. * test/DefaultBtContextTest.cc
  11297. * src/AnnounceList.cc
  11298. * src/CompactPeerListProcessor.cc
  11299. * src/message.h
  11300. * src/DefaultBtAnnounce.{h, cc}
  11301. * test/DefaultBtAnnounceTest.cc
  11302. * src/BencodeVisitor.cc
  11303. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11304. Added missing "B"(=Byte). So now the message looks like this:
  11305. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11306. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11307. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Show the seed ratio after torrent downloads.
  11309. For example, after torrent download completed and --seed-time and
  11310. --seed-ratio conditions are fulfilled, following message is printed
  11311. right after "Download complete: .....":
  11312. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11313. * src/RequestGroupMan.cc
  11314. * src/RequestGroup.{h, cc}
  11315. * src/message.h
  11316. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11317. Remove a defunct control file. A defunct control file means that while
  11318. it exists, but the corresponding download file is missing.
  11319. After its removal, a download restarts from the beginning.
  11320. * src/RequestGroup.cc
  11321. * src/message.h
  11322. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Allocate bitfield in Peer when it is really used. More specifically,
  11324. bitfield in Peer is allocated after the connection is established and
  11325. deallocated when the connection is dropped.
  11326. Since 2 parameters(piece length and total length) was removed from the
  11327. constructor of Peer class, many test classes were modified accordingly.
  11328. See svn log for more detailed information.
  11329. * src/PeerInteractionCommand.cc
  11330. * src/CompactPeerListProcessor.cc
  11331. * src/Peer.cc
  11332. * src/DefaultPeerListProcessor.cc
  11333. * src/PeerListenCommand.cc
  11334. * src/PeerReceiveHandshakeCommand.cc
  11335. Fixed memory leak
  11336. * src/Piece.cc
  11337. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11338. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11339. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11340. command-line options.
  11341. * src/option_processing.cc
  11342. * src/ActivePeerConnectionCommand.cc
  11343. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Send have message to peer if it already has the piece.
  11345. * src/BtHaveMessage.{h, cc}
  11346. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11347. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11348. port.
  11349. * src/DefaultPeerStorage.{h, cc}
  11350. * test/DefaultPeerStorageTest.cc
  11351. * src/HandshakeExtensionMessage.cc
  11352. * test/HandshakeExtensionMessageTest.cc
  11353. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11354. * src/PeerStorage.h
  11355. * test/MockPeerStorage.h
  11356. * src/PeerListenCommand.cc
  11357. * src/PeerReceiveHandshakeCommand.cc
  11358. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11359. Added --metalink-enable-unique-protocol option.
  11360. * src/Metalink2RequestGroup.cc
  11361. * src/option_processing.cc
  11362. * src/prefs.h
  11363. * src/version_usage.cc
  11364. * doc/aria2c.1.txt
  11365. * doc/aria2c.1
  11366. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11367. Allow a peer in incomingPeer to be added peers.
  11368. * src/DefaultPeerStorage.cc
  11369. * test/DefaultPeerStorageTest.cc
  11370. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11372. I could reproduce this bug in following procedure:
  11373. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11374. 2. Restart aria2.
  11375. 3. You see the download stopped around 99%.
  11376. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11377. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11378. If timeout is reached, then _nextCommand is unused and it may contains
  11379. segments and they won't be canceled. Actually, timeout is not needed
  11380. here because if the server dropped connection, then retry is made.
  11381. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11382. Added uTorrent compatible Peer Exchange.
  11383. * src/BencodeVisitor.{h, cc}
  11384. * test/BencodeVisitorTest.cc
  11385. * src/BtConstants.h
  11386. * src/BtContext.h: Added 'private' flag.
  11387. * src/BtExtendedMessage.{h, cc}
  11388. * test/BtExtendedMessageTest.cc
  11389. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11390. reserved field.
  11391. * test/BtHandshakeMessageTest.cc
  11392. * src/BtMessageFactory.h
  11393. * src/BtRegistry.h
  11394. * src/BtRuntime.h: This class holds default extension message IDs for
  11395. aria2. By default, aria2 uses ID 8 for ut_pex.
  11396. * src/DefaultBtContext.cc
  11397. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11398. When it is true, aria2 enables ut_pex. This value is set by
  11399. PeerInteractionCommand.
  11400. * src/DefaultBtMessageFactory.{h, cc}
  11401. * test/DefaultBtMessageFactoryTest.cc
  11402. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11403. handling to DefaultBtInteractive class.
  11404. * src/DefaultExtensionMessageFactory.{h, cc}
  11405. * test/DefaultExtensionMessageFactoryTest.cc
  11406. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11407. the container(peers and incomingPeers. The equality is determined by
  11408. Peer::id).
  11409. * test/DefaultPeerStorageTest.cc
  11410. * src/ExtensionMessage.h
  11411. * test/MockExtensionMessage.h
  11412. * src/ExtensionMessageFactory.h
  11413. * test/MockExtensionMessageFactory.h
  11414. * src/HandshakeExtensionMessage.{h, cc}
  11415. * test/HandshakeExtensionMessageTest.cc
  11416. * src/MetaEntry.h
  11417. * src/Peer.{h, cc}
  11418. * src/PeerInteractionCommand.cc
  11419. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11420. addIncomingPeer.
  11421. * src/PeerMessageUtil.{h, cc}
  11422. * src/PeerObject.h
  11423. * src/UTPexExtensionMessage.{h, cc}
  11424. * test/UTPexExtensionMessageTest.cc
  11425. * src/message.h
  11426. * src/prefs.h
  11427. Fixed the bug that returns incomplete data when it contains null
  11428. character. A convenient constructor was also added.
  11429. * src/Data.{h, cc}
  11430. Rewritten.
  11431. * src/CompactPeerListProcessor.cc
  11432. Fixed typos.
  11433. * src/message.h
  11434. * src/MetaFileUtil.cc
  11435. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. Added "Status Legend" label to the explanation text of 'stat' in
  11437. download result and moved it to the last. BUG#1848214
  11438. * src/RequestGroupMan.cc
  11439. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11440. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11441. * src/Makefie.am
  11442. * test/Makefile.am
  11443. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. Fixed the bug that prevents aria2 from loading cookie file when expire
  11445. value is greater than 2^31-1. BUG#1851066
  11446. * src/CookieBoxFactory.cc
  11447. * test/CookieBoxFactoryTest.cc
  11448. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Fixed possible memory leak when an exception is thrown.
  11450. * src/XML2SAXMetalinkProcessor.cc
  11451. Added Expat support. If both libxml2 and Expat are installed, then
  11452. libxml2 is used by default.
  11453. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11454. ExpatMetalinkProcessor according to the configuration.
  11455. * src/ExpatMetalinkProcessor.{h, cc}
  11456. * src/main.cc: Removed libxml2 specific header and init/free function.
  11457. * src/MetalinkProcessorFactory.{h, cc}
  11458. * src/MetalinkHelper.cc
  11459. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11460. * src/MetalinkProcessor.h
  11461. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11462. MetalinkProcessorTest is used instead.
  11463. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11464. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11465. MetalinkProcessorFactory::newInstance().
  11466. * m4/libexpat.m4
  11467. * configure.ac: Added configuration options for libexpat.
  11468. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. Disabled -s option in metalink download.
  11470. * src/Metalink2RequestGroup.cc
  11471. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. If several protocols are available for a mirror in metalink file,
  11473. aria2 now use one of them. --metalink-preferred-protocol option was
  11474. added to specify the preference of protocol.
  11475. * src/AbstractCommand.cc
  11476. * src/OptionHandlerFactory.cc
  11477. * src/ServerHost.{h, cc}
  11478. * src/Metalink2RequestGroup.cc
  11479. * src/RequestGroup.{h, cc}
  11480. * test/RequestGroupTest.cc
  11481. * src/option_processing.cc
  11482. * src/prefs.h
  11483. * src/HttpResponseCommand.cc
  11484. * src/MetalinkResource.{h, cc}
  11485. * src/FtpNegotiationCommand.cc
  11486. * src/MetalinkEntry.{h, cc}
  11487. * src/MetalinkEntryTest.cc
  11488. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Code cleanup and added debug log.
  11490. * src/PeerConnection.cc
  11491. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11492. Compiler error fix: applied the patch by Tiziano Mueller
  11493. * src/RequestGroup.cc
  11494. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11496. in stopped and completed event.
  11497. * src/AnnounceList.{h, cc}
  11498. * test/AnnounceListTest.cc
  11499. * src/DefaultBtAnnounce.cc
  11500. * test/DefaultBtAnnounceTest.cc
  11501. Sorted URLs.
  11502. * test/Metalink2RequestGroupTest.cc
  11503. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Removed unnecessary string copy. Updated doc and corrected indentation.
  11505. * src/Base64.cc
  11506. Fixed compilation warnings
  11507. * test/DataTest.cc
  11508. * test/HttpRequestTest.cc
  11509. * test/MetaFileUtilTest.cc
  11510. * test/RequestTest.cc
  11511. * Release 0.12.0
  11512. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11513. Updated translations
  11514. * po/{de,fr,ja,nl,ru}.po
  11515. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11516. translations. Many thanks to translators.
  11517. * po/{ca,es,it,pt_BR,sv}.po
  11518. * po/LINGUAS
  11519. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11520. Added a notice about URL
  11521. * src/version_usage.cc
  11522. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11523. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11524. aria2 repeatedly sends stopped request when tracker returns error code.
  11525. * src/AnnounceList.cc
  11526. * test/AnnounceListTest.cc
  11527. * src/AnnounceTier.h
  11528. Added a message when ctrl-c is hit.
  11529. Now second ctrl-c is also handled in signal handler.
  11530. * src/RequestGroupMan.{h, cc}
  11531. * src/RequestGroup.{h, cc}
  11532. * src/MultiUrlRequestInfo.cc
  11533. * src/DownloadEngine.cc
  11534. * src/TrackerWatcherCommand.cc
  11535. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. Code cleanup
  11537. * src/Base64.cc (encode)
  11538. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11539. Changed Direct/IO enable/disable procesure in file allocation routine.
  11540. * src/SingleFileAllocationIterator.cc
  11541. (SingleFileAllocationIterator):
  11542. Disable directIO if offset is not multiple of 512.
  11543. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11544. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11545. Enable created SingleFileAllocationIterator's directIO.
  11546. * src/FileAllocationEntry.cc
  11547. (FileAllocationEntry): Enable directIO here.
  11548. (~FileAllocationEntry): Disable directIO here.
  11549. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11550. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11551. * src/Peer.{h, cc}
  11552. * src/DefaultPieceStorage.cc
  11553. * test/DefaultPieceStorageTest.cc
  11554. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11555. Rewritten direct I/O support routine
  11556. * src/SingleFileAllocationIterator.cc
  11557. * src/MultiDiskAdaptor.{h, cc}
  11558. * src/ByteArrayDiskWriter.h
  11559. * src/AbstractSingleDiskAdaptor.h
  11560. * src/AbstractDiskWriter.cc
  11561. * src/DefaultPieceStorage.cc
  11562. * src/DiskWriter.h
  11563. * src/BinaryStream.h
  11564. * src/IteratableChunkChecksumValidator.cc
  11565. * src/IteratableChecksumValidator.cc
  11566. * src/CheckIntegrityEntry.cc
  11567. * src/FileAllocationEntry.cc
  11568. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11569. Fixed typo
  11570. * src/version_usage.cc
  11571. Updated doc
  11572. * doc/aria2c.1.txt
  11573. * doc/aria2c.1
  11574. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11575. Fixed compile error without message digest support.
  11576. * src/FileMetalinkParserState.cc
  11577. * src/MetalinkParserController.{h, cc}
  11578. * test/XML2SAXMetalinkProcessorTest.cc
  11579. * test/MetalinkParserControllerTest.cc
  11580. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. Enable direct I/O support in checksum checking.
  11582. * src/IteratableChunkChecksumValidator.{h, cc}
  11583. * test/IteratableChunkChecksumValidatorTest.cc
  11584. * src/CheckIntegrityEntry.cc
  11585. * src/PieceHashCheckIntegrityEntry.cc
  11586. * src/IteratableChecksumValidator.{h, cc}
  11587. * src/BtCheckIntegrityEntry.cc: Added doc.
  11588. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11589. Added --allow-piece-length-change option.
  11590. * src/DefaultBtProgressInfoFile.cc
  11591. * test/DefaultBtProgressInfoFileTest.cc
  11592. * src/OptionHandlerFactory.cc
  11593. * src/option_processing.cc
  11594. * src/prefs.h
  11595. * src/version_usage.cc
  11596. * doc/aria2c.1.txt
  11597. * doc/aria2c.1
  11598. Fixed: duplicated result entry appears when exception is thrown in
  11599. RequestGroup::createInitiateConnectionCommand().
  11600. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11601. Add RequestGroup to _requestGroup after RequetGroup::
  11602. createInitiateConnectionCommand() succeeds.
  11603. Externalized message
  11604. * src/XML2SAXMetalinkProcessor.cc
  11605. * src/message.h
  11606. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11607. Forced download abort when received negative response from http/ftp
  11608. server.
  11609. * src/HttpResponseCommand.cc
  11610. * src/FtpNegotiationCommand.cc
  11611. * src/HttpResponse.cc
  11612. * src/FtpConnection.cc
  11613. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11614. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11615. the predecessor, Xml2MetalinkParser class.
  11616. I tested them against 94KB metalink file with 1234 chunk checksums.
  11617. The new one parsed it in 22msec, while it took 6000msec with old one.
  11618. * src/XML2SAXMetalinkProcessor.{h, cc}
  11619. * test/XML2SAXMetalinkProcessorTest.cc
  11620. * src/MetalinkParserController.{h, cc}
  11621. * test/MetalinkParserControllerTest.cc
  11622. * src/MetalinkParserState.h: Also added 16 subclasses.
  11623. * src/main.cc
  11624. * src/Metalink2RequestGroup.cc
  11625. * src/MetalinkHelper.cc
  11626. * src/MetalinkEntry.cc
  11627. * src/ChunkChecksum.h
  11628. Rewritten Base64 class for better performance.
  11629. * src/Base64.{h, cc}
  11630. * test/Base64Test.cc
  11631. * src/HttpRequest.cc
  11632. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11633. Fixed the bug#1841757: aria2 will connect to server to only get
  11634. file size.
  11635. * src/StreamFileAllocationEntry.cc
  11636. * src/option_processing.cc
  11637. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11638. downloads.
  11639. * src/FtpNegotiationCommand.cc
  11640. Suppressed wrong message when finding PreDownloadHandler
  11641. * src/RequestGroup.cc
  11642. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. Updated usage
  11644. * src/version_usage.cc
  11645. Updated man page
  11646. * doc/aria2c.1.txt
  11647. * doc/aria2c.1
  11648. Updated po files
  11649. * po/aria2c.pot
  11650. * po/*.po
  11651. * po/*.gmo
  11652. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11653. Eliminated g++-4.2 warning
  11654. * src/DownloadHandlerConstants.{h, cc}
  11655. * src/Util.cc
  11656. * test/MetaFileUtilTest.cc
  11657. * test/PStringBuildVisitorTest.cc
  11658. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11659. * src/RequestGroup.cc
  11660. * src/BtCheckIntegrityEntry.cc
  11661. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. Fixed a2io.h
  11663. * src/a2io.h
  11664. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11665. Added direct I/O support. The current implementation uses O_DIRECT,
  11666. which is not posix standard and is tested on linux 2.6.21.
  11667. Currently only file allocation uses direct I/O.
  11668. * src/SingleFileAllocationIterator.{h, cc}
  11669. * test/SingleFileAllocationIteratorTest.cc
  11670. * src/MultiFileAllocationIterator.{h, cc}
  11671. * test/MultiFileAllocationIteratorTest.cc
  11672. * src/BinaryStream.h
  11673. * src/DiskWriter.h
  11674. * src/AbstractDiskWriter.{h, cc}
  11675. * src/ByteArrayDiskWriter.h
  11676. * src/DiskAdaptor.h
  11677. * src/AbstractSingleDiskAdaptor.{h, cc}
  11678. * src/MultiDiskAdaptor.{h, cc}
  11679. * src/FileAllocationEntry.cc
  11680. * src/Util.{h, cc}
  11681. * src/OptionHandlerFactory.cc
  11682. * src/prefs.h
  11683. * src/version_usage.cc
  11684. * src/option_processing.cc
  11685. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11686. handleException.
  11687. * src/MultiFileAllocationIterator.cc
  11688. Added EINTR handling
  11689. * src/SocketCore.cc
  11690. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11691. Updated usage
  11692. * src/version_usage.cc
  11693. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. Applied Ross's patch for MinGW port.
  11695. * src/DownloadEngine.h
  11696. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11697. Set Content-Type to SingleFileDownloadContext when http response is
  11698. received.
  11699. * src/HttpResponseCommand.cc
  11700. * src/HttpResponse.{h, cc}
  11701. * test/HttpResponseTest.cc
  11702. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. Rewritten to add content-type support.
  11704. * src/DownloadHandler.{h, cc}
  11705. * src/BtPostDownloadHandler.{h, cc}
  11706. * test/BtPostDownloadHandlerTest.cc
  11707. * src/MetalinkPostDownloadHandler.{h, cc}
  11708. * test/MetalinkPostDownloadHandlerTest.cc
  11709. * src/PostDownloadHandler.{h, cc}
  11710. * src/DownloadHandlerConstants.{h, cc}
  11711. * src/RequestGroup.cc
  11712. * src/HttpResponseCommand.cc
  11713. * src/FtpNegotiationCommand.cc
  11714. * src/SingleFileDownloadContext.{h, cc}
  11715. * src/RequestGroup.h
  11716. * src/RequestGroupCriteria.h
  11717. * src/ContentTypeRequestGroupCriteria.h
  11718. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11719. If it is give, metalink/torrent file is not written to the disk, but
  11720. just is kept in memory. Parsing is occurred on memory.
  11721. * src/MetalinkHelper.{h, cc}
  11722. * src/MetalinkProcessor.h
  11723. * src/Xml2MetalinkProcessor.{h, cc}
  11724. * test/Xml2MetalinkProcessorTest.cc
  11725. * src/DownloadHandlerFactory.{h, cc}
  11726. * test/DownloadHandlerFactoryTest.cc
  11727. * src/PreDownloadHandler.{h, cc}
  11728. * src/OptionHandlerFactory.cc
  11729. * src/DefaultBtContext.{h, cc}
  11730. * test/DefaultBtContextTest.cc
  11731. * src/version_usage.cc
  11732. * src/Metalink2RequestGroup.{h, cc}
  11733. * src/RequestGroup.{h, cc}
  11734. * src/a2functional.h
  11735. * test/a2functionalTest.cc
  11736. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11737. * src/OptionHandlerImpl.h
  11738. * src/prefs.h
  11739. * src/Util.{h, cc}
  11740. * test/UtilTest.cc
  11741. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11742. memory usage.
  11743. * src/RequestGroupMan.{h, cc}
  11744. * src/DownloadEngine.cc
  11745. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11746. WeakHandle to SharedHandle because WeakHandle could be null.
  11747. * src/RequestGroup.{h, cc}
  11748. * src/DownloadEngineFactory.cc
  11749. * src/DownloadResult.h
  11750. Set totalLength after download finished
  11751. * src/UnknownLengthPieceStorage.{h, cc}
  11752. Keep torrent file specified in metalink in memory.
  11753. * src/Metalink2RequestGroup.cc
  11754. * src/BtDependency.cc
  11755. * src/TrueRequestGroupCriteria.h
  11756. Fixed the bug: seekg is used where seekp should be used.
  11757. * src/ByteArrayDiskWriter.cc
  11758. * test/ByteArraydiskWriterTest.cc
  11759. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Fixed syntax error
  11761. * test/SequenceTest.cc
  11762. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11763. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11764. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11765. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11766. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11767. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11768. Added the check to see whether ares_host_callback accepts timeouts
  11769. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11770. * src/NameResolver.{h, cc}
  11771. * m4/libcares.m4
  11772. * configure.ac: Set C++ for language choice.
  11773. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. Fixed: compilation fails without c-ares/ares
  11775. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11776. Generate http/ftp commands only when download is incomplete.
  11777. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11778. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. Corrected typo. Examples are removed since they are available in man
  11780. page.
  11781. * src/version_usage.cc
  11782. Updated man page.
  11783. * doc/aria2c.1
  11784. * doc/aria2c.1.txt
  11785. * doc/makeman: Commented out sed command.
  11786. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Throw DlAbortEx when a remote file is not found.
  11788. * src/HttpResponse.cc
  11789. * src/FtpNegotiationCommand.cc
  11790. * src/message.h
  11791. Overwrite an existing file if --allow-overwrite=true is given.
  11792. * src/RequestGroup.cc
  11793. Removed unused functions
  11794. * src/AbstractCommand.h
  11795. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11796. Removed 'extern' from 'extern typedef ...' in src/*.h
  11797. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11798. Updated usage
  11799. * src/version_usage.cc
  11800. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11801. Trim announce URL
  11802. * src/DefaultBtContext.cc
  11803. * test/ShaVisitorTest.cc
  11804. Trim argument s. Give trimed s to exception constructor.
  11805. * src/Util.cc (parseInt)(parseLLInt)
  11806. * test/UtilTest.cc
  11807. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Set precision back to 1.
  11809. * src/ConsoleStatCalc.cc (calculateStat)
  11810. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. Replaced strtol with Util::parseInt
  11812. * src/ChunkedEncoding.cc
  11813. * src/HttpConnection.cc
  11814. * src/CookieBoxFactory.cc
  11815. * src/ParameterizedStringParser.cc
  11816. * src/Util.cc
  11817. * test/UtilTest.cc
  11818. * test/OptionHandlerTest.cc
  11819. * src/Request.cc
  11820. Throw exception when empty string is given. The message for exception
  11821. changed.
  11822. * src/Util.cc (parseInt)(parseLLInt)
  11823. * src/message.h
  11824. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11825. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11826. set to 1.
  11827. * src/ConsoleStatCalc.cc (calculateStat)
  11828. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. Preallocate non-requested file which is adjacent forward to requested
  11830. file('requested' files means the files given in --select-file option)
  11831. if they share a same piece.
  11832. This fixes long pause in the file system which doesn't support sparse
  11833. files like FAT32 while downloading.
  11834. * src/MultiFileAllocationIterator.{h, cc}
  11835. * test/MultiFileAllocationIteratorTest.cc
  11836. * src/FileEntry.{h, cc}
  11837. Removed unused _option.
  11838. * src/MultiDiskAdaptor.h
  11839. * test/MultiDiskAdaptorTest.cc
  11840. * src/DefaultPieceStorage.cc
  11841. Set the default value of --seed-ratio to 1.0.
  11842. If 0.0 is given, then seeding continues regardless of share ratio.
  11843. * src/version_usage.cc
  11844. * src/option_processing.cc
  11845. * src/BtSetup.cc
  11846. * doc/aria2c.1.txt
  11847. * doc/aria2c.1
  11848. Fixed: Selective download is not working in BitTorrent
  11849. * src/RequestGroup.cc
  11850. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11851. * src/PieceStorage.h
  11852. * test/MockPieceStorage.h
  11853. * src/UnknownLengthPieceStorage.h
  11854. * src/DefaultPieceStorage.{h, cc}
  11855. * src/Metalink2RequestGroup.cc
  11856. * src/RequestGroup.cc
  11857. * src/Sequence.h
  11858. * test/SequenceTest.cc
  11859. * src/IntSequence.h
  11860. * src/message.h
  11861. * src/Util.{h, cc}
  11862. * test/UtilTest.cc
  11863. Added new function 'parse' to catch exception thrown by subclass's
  11864. parseArg
  11865. * src/OptionHandler.h
  11866. * src/OptionParser.cc
  11867. * src/NameMatchOptionHandler.h
  11868. * src/OptionHandlerImpl.h
  11869. * test/OptionHandlerTest.cc
  11870. Added IntegerRangeOptionHandler. Used for --listen-port and
  11871. --select-file. Now --listen-port accepts range of port.
  11872. * src/OptionHandlerFactory.cc
  11873. * src/version_usage.cc
  11874. * src/OptionHandlerImpl.h
  11875. * src/option_processing.cc
  11876. * src/BtSetup.cc
  11877. * src/PeerListenCommand.{h, cc}
  11878. * doc/aria2c.1.txt
  11879. * doc/aria2c.1
  11880. Implemented operator< for Exception class to provide easy way to print
  11881. exception stack trace.
  11882. * src/Exception.{h, cc}
  11883. * src/main.cc
  11884. * src/option_processing.cc
  11885. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11886. * src/version_usage.cc
  11887. (showVersion): Reworked.
  11888. (showUsage): Added examples.
  11889. Removed Hint for total length and file name.
  11890. * src/Metalink2RequestGroup.cc
  11891. * src/RequestGroup.{h, cc}
  11892. * src/HttpResponseCommand.cc
  11893. * src/FtpNegotiationCommand.cc
  11894. Now --follow-torrent and --follow-metalink option work properly.
  11895. * src/RequestGroup.cc
  11896. Updated man page
  11897. * doc/aria2c.1.txt
  11898. * doc/aria2c.1
  11899. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. Removed.
  11901. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11902. Use Segment::operator==()
  11903. * src/HttpConnection.cc
  11904. * src/Segment.h
  11905. Updated usage
  11906. * src/version_usage.cc
  11907. Added EINTR treatment.
  11908. * src/SocketCore.cc
  11909. * src/AbstractDiskWriter.cc
  11910. Rewritten.
  11911. * src/Util.cc (rangedFileCopy)
  11912. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11913. Fixed typo.
  11914. * src/version_usage.cc
  11915. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11916. Implemented. Now -c option works fine.
  11917. * src/DefaultPieceStorage.cc (markPiecesDone)
  11918. * test/DefaultPieceStorageTest.cc
  11919. Removed.
  11920. * src/SegmentMan.{h, cc}
  11921. (markAllPiecesDone)
  11922. (markPieceDone)
  11923. Synchronized po files with
  11924. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11925. * src/fr.po
  11926. * src/ru.po
  11927. * src/de.po
  11928. * src/ja.po
  11929. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11930. Added ifdef and some modifications to compile without BitTorrent,
  11931. Metalink, MessageDigest
  11932. support.
  11933. * src/PieceHashCheckIntegrityEntry.cc
  11934. * src/MetalinkEntry.h
  11935. * src/version_usage.cc
  11936. * src/main.cc
  11937. * src/DownloadEngine.{h, cc}
  11938. * src/Metalink2RequestGroup.cc
  11939. * src/Peer.cc
  11940. * src/RequestGroup.cc
  11941. * src/MetalinkHelper.cc
  11942. * test/DefaultPieceStorageTest.cc
  11943. * test/MetalinkPostDownloadHandlerTest.cc
  11944. * test/Metalink2RequestGroupTest.cc
  11945. Hide TOTAL SPD when all downloads complete.
  11946. * src/ConsoleStatCalc.cc
  11947. Log target system information.
  11948. * src/main.cc
  11949. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11950. Now --metalink-location accepts a comma-deliminated list of locations.
  11951. * src/MetalinkEntry.{h, cc}
  11952. * test/MetalinkEntryTest.cc
  11953. * src/version_usage.cc
  11954. * src/Metalink2RequestGroup.cc
  11955. * src/Xml2MetalinkProcessor.cc
  11956. * test/Xml2MetalinkProcessorTest.cc
  11957. * doc/aria2c.1.txt
  11958. * doc/aria2c.1
  11959. * src/Util.cc (toUpper)(toLower): Rewritten.
  11960. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. Added the ability to detect duplicate download entry which is about to
  11962. download the same file other RequestGroup is downloading.
  11963. * src/RequestGroup.cc
  11964. * src/HttpResponseCommand.cc
  11965. * src/FtpNegotiationCommand.cc
  11966. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. Recalculates download progress when loading a control file,
  11968. if the piece length of DownloadContext is different from the one saved
  11969. in the control file. Currently in-flight pieces are ignored.
  11970. * src/DefaultBtProgressInfoFile.cc
  11971. * test/DefaultBtProgressInfoFileTest.cc
  11972. * src/Util.{h, cc}
  11973. * test/UtilTest.cc
  11974. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. Do not rotate tiers in announce-list.
  11976. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11977. AnnounceList::allTiersFailed() used instead to detect whether all
  11978. tiers are tried and failed.
  11979. * test/DefaultBtAnnounceTest.cc
  11980. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11981. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11982. * test/AnnounceListTest.cc
  11983. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11984. clause. Catch RecoverableException instead of DlRetryEx instead.
  11985. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11986. Implemented checksum validation feature(1 checksum for each file)
  11987. The validation takes place after the download.
  11988. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11989. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11990. * src/CheckIntegrityCommand.cc: Changed log message.
  11991. * src/Metalink2RequestGroup.cc: Set checksum to
  11992. SingleFileDownloadContext.
  11993. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11994. PieceHashCheckIntegrity class.
  11995. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11996. PieceHashCheckIntegrity class.
  11997. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11998. * src/IteratableValidator.h: New class.
  11999. * src/message.h
  12000. * src/CheckIntegrityEntry.{h, cc}
  12001. * src/IteratableChunkChecksumValidator.{h, cc}
  12002. * src/SingleFileDownloadContext.h
  12003. * src/DownloadCommand.cc
  12004. --allow-overwrite=true is no longer needed to check file integrity
  12005. before download in BitTorrent download.
  12006. * src/RequestGroup.cc (getInitialCommand)
  12007. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12008. throws exception.
  12009. * src/RequestGroupMan.cc (getInitialCommands)
  12010. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. urlencode the given url inside Request::parseUrl(...)
  12012. * src/Request.{h, cc}
  12013. * src/Util.{h, cc}
  12014. * test/RequestTest.cc
  12015. Removed #!metalink3! notation support because it is deleted from
  12016. the metalink specification.
  12017. * src/Request.{h, cc}
  12018. * test/RequestTest.cc
  12019. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12020. Don't connect server before checking file integrity at startup, if
  12021. filesize and output file path are known.
  12022. * src/AbstractCommand.cc
  12023. * src/StreamFileAllocationEntry.cc
  12024. * src/Metalink2RequestGroup.cc
  12025. * src/RequestGroup.{h, cc}
  12026. * src/HttpResponseCommand.cc
  12027. * src/FtpNegotiationCommand.cc
  12028. Added DownloadFailureException. If it is thrown, RequestGroup should
  12029. halt.
  12030. * src/AbstractCommand.cc
  12031. * src/DownloadFailureException.h
  12032. * src/RequestGroup.cc
  12033. Catch RecoverableException, instead of DlAbortEx.
  12034. * src/RequestGroupMan.cc
  12035. * src/FillRequestGroupCommand.cc
  12036. * src/MetaFileUtil.cc
  12037. * src/IteratableChunkChecksumValidator.cc
  12038. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12039. getGID())
  12040. * src/CheckIntegrityCommand.cc
  12041. * src/message.h
  12042. Print gid instead of idx.
  12043. * src/RequestGroupMan.cc
  12044. Removed exception throwers declaration.
  12045. * src/DirectDiskAdaptor.{h, cc}
  12046. * src/SocketCore.{h, cc}
  12047. * src/MultiDiskAdaptor.{h, cc}
  12048. * src/HttpConnection.{h, cc}
  12049. * src/HttpResponse.{h, cc}
  12050. * src/DiskAdaptor.{h, cc}
  12051. * src/CopyDiskAdaptor.{h, cc}
  12052. * src/MultiDiskAdaptor.{h, cc}
  12053. * src/HttpHeaderProcessor.{h, cc}
  12054. * src/AbstractSingleDiskAdaptor.{h, cc}
  12055. * src/Util.{h, cc}
  12056. * test/UtilTest.cc
  12057. * src/DefaultDiskWriter.{h, cc}
  12058. * src/FtpConnection.{h, cc}
  12059. * src/AbstractDiskWriter.{h, cc}
  12060. Removed duplicate code.
  12061. * src/StreamCheckIntegrityEntry.cc
  12062. Removed unnecessary include.
  12063. * src/DiskWriter.h
  12064. Included Exception.h
  12065. * src/option_processing.cc
  12066. Included 2 files and added doc
  12067. * src/TrackerWatcherCommand.cc
  12068. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12069. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12070. Changed CheckIntegrityEntry interface so that it can define
  12071. the action when all the chunk checksums are valid.
  12072. * src/CheckIntegrityEntry.h
  12073. * src/StreamCheckIntegrityEntry.{h, cc}
  12074. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12075. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12076. to exit rather than doing seeding. So, it would be good to toggle this
  12077. behavior.
  12078. * src/CheckIntegrityCommand.cc
  12079. * src/AbstractCommand.cc
  12080. * src/RequestGroup.cc
  12081. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Reflect the download length of in-flight pieces.
  12083. It makes the download length readout more precise.
  12084. * src/DefaultPieceStorage.{h, cc}
  12085. * test/DefaultPieceStorageTest.cc
  12086. * src/a2functional.h
  12087. * test/a2functionalTest.cc
  12088. Lower CPU load when --max-download-limit is used.
  12089. There is up and down in speed indicator when enabling
  12090. http-pipelining but a download goes well. I think the problem is that
  12091. because http-pipelining is enabled, DownloadCommand is created for
  12092. each segment and in its constructor, PeerStat::downloadStart() is
  12093. called. In PeerStat::downloadStart(), speed calculation object is
  12094. reseted, which makes download speed zero.
  12095. * src/DownloadCommand.cc
  12096. Rewritten using accumulate.
  12097. * src/RequestGroupMan.cc (calculateStat)
  12098. Code clearnup.
  12099. * src/FtpNegotiationCommand.cc
  12100. * src/HttpResponseCommand.cc
  12101. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12102. Fixed: Can not resume: aria2 reports download already finished.
  12103. * src/AbstractCommand.{h, cc}
  12104. * src/HttpResponseCommand.cc
  12105. * src/FtpNegotiateCommand.cc
  12106. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12107. Now a file is stored in the directory specified in .metalnk file
  12108. (file[@name]).
  12109. * src/Metalink2RequestGroup.cc
  12110. Create the directory structure when opening the file if it doesn't
  12111. exist.
  12112. * src/AbstractDiskWriter.cc
  12113. * src/Util.{h, cc}
  12114. * src/File.h
  12115. * test/UtilTest.cc
  12116. Removed file name comparison
  12117. * src/Metalink2RequestGroup.cc
  12118. * src/HttpResponseCommand.cc
  12119. Rewritten using Util::mkdirs()
  12120. * src/FileEntry.cc (setupDir)
  12121. * test/FileEntryTest.cc
  12122. Updated doc
  12123. * src/SingleFileDownloadContext.h
  12124. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12125. Now SleepCommand dispatches nextCommand when halt is requested.
  12126. It avoids a possible long wait after hitting CTRL-C.
  12127. * src/SleepCommand.{h, cc}
  12128. * src/RequestGroupAware.{h, cc}
  12129. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12130. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12131. to open listen port, then remove the port number from the tracker
  12132. request.
  12133. * src/DefaultBtAnnounce.cc
  12134. * test/DefaultBtAnnounceTest.cc
  12135. * test/MockPieceStorage.h
  12136. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12137. them more testable.
  12138. * src/DefaultBtAnnounce.{h, cc}
  12139. * src/DefaultBtContext.{h, cc}
  12140. * src/Util.{h, cc}
  12141. * test/DefaultBtAnnounceTest.cc
  12142. * test/DefaultBtContextTest.cc
  12143. * test/UtilTest.cc
  12144. Added 'B' to upload bytes readout.
  12145. * src/ConsoleStatCalc.cc
  12146. Now the listen port for BitTorrent download is opened when it is
  12147. needed.
  12148. * src/DownloadEngineFactory.cc
  12149. * src/BtSetup.{h, cc}
  12150. * src/PeerListenCommand.{h, cc}
  12151. Now an exception thrown while parsing tracker response is now logged.
  12152. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12153. called, which means no retry is made in this case, assuming a tracker
  12154. has a problem.
  12155. * src/TrackerWatcherCommand.cc
  12156. Fixed: downloading a file whose length is unkown fails.
  12157. * src/DownloadCommand.cc
  12158. Simplified prepareForNextSegment()
  12159. * src/DownloadCommand.cc
  12160. Updated
  12161. * po/POTFILES.in
  12162. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12163. Re-implemented a file listing for Metalink, which was dropped while
  12164. http/ftp/torrent integration was being implemented.
  12165. * src/MetalinkHelper.{h, cc}: New class.
  12166. * test/MetalinkHelperTest.cc
  12167. * src/main.cc
  12168. * src/Metalink2RequestGroup.cc
  12169. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. Added the ability to display the detailed torrent file information.
  12171. Now -S option gives not only a file listing, but also total download
  12172. length, info hash, announce URI, piece length, the number of pieces,
  12173. and mode(single or multi-torrent).
  12174. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12175. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12176. KiB)
  12177. * test/UtilTest.cc
  12178. * src/main.cc
  12179. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12180. Added ftp://USER:PASSWD@Servername automatic parsing.
  12181. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12182. _password. Recognize username and password in URI.
  12183. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12184. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12185. * src/RequestFactory.{h, cc}: Removed.
  12186. * src/AuthConfigFactory.{h, cc}: New class.
  12187. * src/FtpConnection.cc: Use AuthConfigFactory.
  12188. * src/HttpRequest.cc: Use AuthConfigFactory.
  12189. * test/HttpRequestTest.cc: Updated.
  12190. * test/RequestTest.cc: Updated.
  12191. * test/AuthConfigFactoryTest.cc: New class.
  12192. * test/RequestFactoryTest.cc: Removed.
  12193. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12194. Use RequestGroup::allDownloadFinished() to decide whether the control
  12195. file should be removed or saved.
  12196. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12197. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12198. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12199. Use File::renameTo()
  12200. * src/DefaultBtProgressInfoFile.cc
  12201. Added --no-file-allocation-limit command-line option.
  12202. * src/version_usage.cc
  12203. * src/option_processing.cc
  12204. * src/OptionHandlerFactory.cc
  12205. * src/RequestGroup.{h, cc}
  12206. * src/BtCheckIntegrityEntry.cc
  12207. * src/StreamCheckIntegrityEntry.cc
  12208. * src/prefs.h
  12209. * doc/aria2c.1.txt
  12210. * doc/aria2c.1
  12211. Now prealloc is the default value for --file-allocation option.
  12212. * src/version_usage.cc
  12213. * src/option_processing.cc
  12214. * doc/aria2c.1.txt
  12215. * doc/aria2c.1
  12216. Don't URL-encode user-agent.
  12217. * src/HttpRequest.cc
  12218. Updated translations
  12219. * po/LINGUAS: Added nl for Dutch translation.
  12220. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12221. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12222. * po/POTFILES.in: Updated.
  12223. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12224. Added the ability to recognize url-list in a torrent file.
  12225. The retrieved URLs are attached to the corresponding FileEntry.
  12226. * src/DefaultBtContext.{h, cc}
  12227. * src/FileEntry.{h, cc}
  12228. * test/DefaultBtContextTest.cc
  12229. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12231. after the download finishes.
  12232. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12233. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12234. the data smaller than block length.
  12235. A block length can be specified by constructor's argument.
  12236. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12237. Get a missing piece in the range of given FileEntry. This function is
  12238. not used in the program yet.
  12239. * src/Util.h: Added some macros.
  12240. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12241. Added HTTP/1.1 keep alive and pipelining support.
  12242. See --enable-http-keep-alive and --enable-http-pipelining option.
  12243. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12244. Segment.
  12245. * src/HttpDownloadCommand.{h, cc}
  12246. * src/OptionHandlerFactory.cc
  12247. * src/HttpConnection.{h, cc}
  12248. * src/version_usage.cc
  12249. * src/HttpInitiateConnectionCommand.cc
  12250. * src/FtpInitiateConnectionCommand.cc
  12251. * src/Segment.h
  12252. * src/HttpRequestCommand.{h, cc}
  12253. * src/option_processing.cc
  12254. * src/prefs.h
  12255. * src/HttpResponseCommand.cc
  12256. * src/SegmentMan.{h, cc}
  12257. * src/FtpNegotiateCommand.cc
  12258. * src/HttpProxyResponseCommand.cc
  12259. * src/Request.cc
  12260. * src/HttpRequest.cc
  12261. * src/DownloadCommand.cc
  12262. * test/HttpRequestTest.cc
  12263. * test/RequestTest.cc
  12264. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12265. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12266. finished.
  12267. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12268. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12269. catching it inside the method.
  12270. When no file entry is found in a metalink without querying user
  12271. preferences, throw the exception with the error message that suggests
  12272. metalink file is probably broken.
  12273. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12274. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12275. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12276. processed.
  12277. * src/RequestGroupMan.cc (removeStoppedGroup)
  12278. Added debug message.
  12279. * src/BtPostDownloadHandler.cc
  12280. * src/MetalinkPostDownloadHandler.cc
  12281. * src/PostDownloadHandler.{h, cc}
  12282. * src/RequestGroup.cc
  12283. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12284. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12285. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12286. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12287. stops and there are any unfinished or in-progress downloads.
  12288. Added the legend of "stat".
  12289. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. Throw exception when chunck checksum verification fails.
  12291. * src/DownloadCommand.cc (validatePieceHash): New function.
  12292. * src/PiecedSegment.{h, cc} (clear): New function.
  12293. * src/GrowSegment.{h, cc} (clear): New function.
  12294. * src/Segment.h (clear): New function.
  12295. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12296. * test/SegmentTest.cc
  12297. * test/GrowSegmentTest.cc
  12298. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12299. Do not send referer when redirected.
  12300. * src/Request.cc (redirectUrl)
  12301. * test/RequestTest.cc
  12302. * test/HttpRequestTest.cc
  12303. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12304. Implemented BitTorrent/http/ftp integrated download.
  12305. I've rewritten lots of files and now some headers have forward
  12306. class declarations to reduce compile time.
  12307. The implementation is extremely alpha stage, I recommend to use this
  12308. for testing purpose only.
  12309. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12310. Fixed the compilation error on 64bit platform.
  12311. * test/HttpHeaderProcessorTest.cc
  12312. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. Merged Ross's patch that fixes compilation problem in MinGW
  12314. * test/DefaultBtProgressInfoFileTest.cc
  12315. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12316. Updated fr.po by sebone
  12317. * po/fr.po
  12318. Updated man page.
  12319. * doc/aria2c.1.txt
  12320. * Release 0.11.3
  12321. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12322. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12323. failure in Metalink.
  12324. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12325. Automatically save *.aria2 control file of http/ftp download in every
  12326. 60 seconds.
  12327. * src/AutoSaveCommand.{h, cc}: New class.
  12328. * src/TimeBasedCommand.{h, cc}: New class.
  12329. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12330. Disable parameterized URI support by default. Added -P option to
  12331. enable the feature.
  12332. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12333. * src/OptionHandlerFactory.cc
  12334. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12335. Updated Japanese translation.
  12336. * po/ja.po
  12337. Updated man page.
  12338. * doc/aria2c.1.txt
  12339. * Release 0.11.3-rc
  12340. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12341. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12342. it is successful, then renamed to *.aria2.
  12343. This prevents *.aria2 file from being truncated or corrupted when
  12344. file system becomes out of space.
  12345. * src/DefaultBtProgressInfoFile.cc (save)
  12346. * src/SegmentMan.cc (save)
  12347. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12348. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. Reduced the fragmentation of bitfield in http/ftp download.
  12350. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12351. * test/BitfieldManTest.cc
  12352. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12353. Added the ability to disable segmented download in .metalink.
  12354. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12355. 'url' tag.
  12356. * src/MetalinkEntry.{h, cc}
  12357. * src/RequestResource.{h, cc}
  12358. * src/MetalinkRequestInfo.cc
  12359. * src/Xml2MetalinkProcessor.cc
  12360. * test/Xml2MetalinkProcessorTest.cc
  12361. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. Added parameterized URI support.
  12363. * src/main.cc: -Z option added.
  12364. * src/OptionHandlerFactory.cc
  12365. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12366. * src/PStringDatum.h: New class.
  12367. * src/PStringSegment.{h,cc}: New class.
  12368. * src/PStringNumLoop.h: New class.
  12369. * src/PStringSelect.h: New class.
  12370. * src/NumberDecorator.h: New class.
  12371. * src/FixedWidthNumberDecorator.h: New class.
  12372. * src/AlphaNumberDecorator.h: New class.
  12373. * src/PStringVisitor.h: New class.
  12374. * src/PStringBuildVisitor.{h,cc}: New class.
  12375. * src/ParameterizedStringParser.{h,cc}: New class.
  12376. * src/Util.{h,cc}
  12377. (isNumber): New function.
  12378. (isLowercase): New function.
  12379. (isUppercase): New function.
  12380. (alphaToNum): New function.
  12381. * test/ParameterizedStringParserTest.cc: New class.
  12382. * test/AlphaNumberDecoratorTest.cc: New class.
  12383. * test/PStringBuildVisitorTest.cc: New class.
  12384. * test/UtilTest.cc
  12385. (testIsNumber): New function.
  12386. (testIsLowercase): New function.
  12387. (testIsUppercase): New function.
  12388. (testAlphaToNum): New function.
  12389. Added '\n' after the error message
  12390. * src/RequestInfo.h (printDownloadAbortMessage)
  12391. Added auto file renaming feature in http(s)/ftp download.
  12392. * src/main.cc: Added --auto-file-renaming command-line option.
  12393. * src/OptionHandlerFactory.cc
  12394. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12395. * src/RequestGroup.{h, cc}
  12396. (shouldCancelDownloadForSafety): Rewritten
  12397. (tryAutoFileRenaming): New function.
  12398. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12399. * src/HttpResponseCommand.cc
  12400. (executeInternal): Removed the call to RequestGroupMan::
  12401. isSameFileBeingDownloaded()
  12402. * src/FtpNegotiateCommand.cc
  12403. (recvSize): Removed the call to RequestGroupMan::
  12404. isSameFileBeingDownloaded()
  12405. * test/RequestGroupTest.cc: New class.
  12406. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12407. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12408. IO.
  12409. * src/DefaultBtProgressInfoFile.cc
  12410. * src/MetaFileUtil.cc
  12411. * src/SimpleLogger.cc
  12412. * src/SegmentMan.cc
  12413. * src/Util.cc
  12414. * src/Platform.cc
  12415. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12417. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12418. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12419. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12420. Fixed the bug that prevents file allocation is not done when
  12421. dowloading multi-torrent file.
  12422. * src/AbstractDiskWriter.cc (openFile)
  12423. Increase the maximum number of -j option from 15 to 45.
  12424. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12425. Added fr.po, thanks to Charles Landemaine.
  12426. * po/fr.po
  12427. * po/LINGUAS
  12428. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12429. gcc 3.4.4 support:
  12430. * src/DefaultBtContext.cc: int32_t -> int
  12431. * src/main.cc: int -> int32_t, int32_t -> int
  12432. * src/messageDigest.h: uint32_t -> unsigned int
  12433. * src/NameResolver.h: int32_t -> int
  12434. * src/PeerConnection.cc: int -> int32_t
  12435. * src/SpeedCalc.cc: int32_t -> int
  12436. * src/TrackerUpdateCommand.h: int -> int32_t
  12437. * src/Util.cc: int32_t -> int
  12438. * src/Util.h: int32_t -> int
  12439. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12440. * test/AnnounceListTest.cc: int -> int32_t
  12441. * test/ChunkedEncodingTest.cc: int -> int32_t
  12442. * test/DataTest.cc: int -> int32_t
  12443. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12444. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12445. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12446. * test/FeatureConfigTest.cc: int -> int32_t
  12447. * test/MetalinkEntryTest.cc: int -> int32_t
  12448. * test/MockBtRequestFactory.h: int -> int32_t
  12449. * test/MockPieceStorage.h: int -> int32_t
  12450. * test/OptionTest.cc: int -> int32_t
  12451. * test/RequestTest.cc: int -> int32_t
  12452. * test/SegmentManTest.cc: int -> int32_t
  12453. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12454. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12455. Move sleep functions to Util class:
  12456. * src/Util.cc
  12457. (sleep): New function.
  12458. (usleep): New function.
  12459. * src/DownloadCommand.cc: sleep -> Util::sleep
  12460. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12461. MinGW build enhancements. The following files are added:
  12462. * src/timegm.{c,h}
  12463. Changes to support the above new files:
  12464. * configure.ac
  12465. * src/Makefile.am
  12466. * src/a2time.h
  12467. * src/Util.cc:
  12468. * src/strptime.c: Added support for %Z option.
  12469. Fixed MinGW non-blocking bug.
  12470. * src/SocketCore.cc
  12471. * src/HttpRequestCommand.cc
  12472. Miscellenous build fixes/enhancements.
  12473. * configure.ac: Added summary report.
  12474. * src/Platform.h: Tweaked #include's.
  12475. * src/a2netcompat.h: Tweaked #include's.
  12476. * src/strptime.h: Tweaked #include's.
  12477. * src/gai_strerror.c: Tweaked #include's.
  12478. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12479. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12480. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12481. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12482. Increased the initial connection size in BitTorrent download to 40.
  12483. * src/BtRuntime.h
  12484. Added the usage message of --peer-id-prefix option.
  12485. * src/main.cc
  12486. * Release 0.11.2
  12487. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. MessageDigestHelper is introduced in order to simplify the use
  12489. of message digest. Removed repeated code.
  12490. The message digest algorithm is now specified by string, like "sha1",
  12491. "md5".
  12492. * src/messageDigest.{h, cc}
  12493. * src/MessageDigestHelper.{h, cc}: New class.
  12494. * src/DefaultPieceStorage.cc
  12495. * src/DefaultBtContext.{h, cc}
  12496. (computeFastSet): New function.
  12497. (setInfoHash): Added for unit testing.
  12498. (setNumPieces): Added for unit testing.
  12499. * src/DefaultBtInteractive.cc
  12500. * src/BtPieceMessage.cc
  12501. * src/Peer.cc
  12502. * src/Checksum.h
  12503. * src/message.h
  12504. * src/IteratableChecksumValidator.h
  12505. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12506. inside it.
  12507. * src/SegmentMan.{h, cc}
  12508. (checkIntegrity): Removed.
  12509. * src/IteratableChunkChecksumValidator.{h, cc}
  12510. * src/Util.h
  12511. (sha1Sum): Removed.
  12512. (simpleMessageDigest): Removed.
  12513. (fileChecksum): Removed.
  12514. (computeFastSet): Removed.
  12515. * src/ShaVisitor.cc
  12516. * src/ChunkChecksum.h
  12517. * src/DownloadCommand.cc
  12518. Removed messageDigest virtual functions.
  12519. * src/MultiDiskAdaptor.{h, cc}
  12520. * src/DiskAdaptor.h
  12521. * src/ByteArrayDiskWriter.h
  12522. * src/DiskWriter.h
  12523. * src/DiskAdaptorWriter.h
  12524. * src/AbstractSingleDiskAdaptor.{h, cc}
  12525. * src/AbstractDiskWriter.{h, cc}
  12526. Fixed comilation error when message digest is disabled.
  12527. * src/MetalinkEntry.{h, cc}
  12528. * src/MetalinkRequestInfo.cc
  12529. Removed srandom and random.
  12530. * src/SimpleRandomizer.h
  12531. Added size() virtual function to DiskAdaptor
  12532. * src/MultiDiskAdaptor.h
  12533. Fixed the bug that causes that files are not opened correctly in
  12534. multi-file torrent.
  12535. * src/TorrentRequestInfo.cc
  12536. * src/MultiDiskAdaptor.cc
  12537. Added SHA256 support
  12538. * src/messageDigest.cc
  12539. * src/Xml2MetalinkProcessor.cc
  12540. Show supported message digest algorithms
  12541. * src/main.cc
  12542. Updated contact info.
  12543. * src/main.cc
  12544. Applied Ross's patch
  12545. * src/a2netcompat.h
  12546. * src/main.cc
  12547. Fixed the bug that prevents a remote metalink from not being processed
  12548. even if '-o foo.metalink' is specified.
  12549. * src/MetalinkRequestInfo.cc
  12550. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12551. Merged Dan's patch:
  12552. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12553. Use va_copy to avoid core dump on amd64:
  12554. * src/SimpleLogger.cc
  12555. Updated contact info.
  12556. * src/main.cc
  12557. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12558. digest is not available.
  12559. * src/MetalinkEntry.h
  12560. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12561. Make a2netcompat.h include a2io.h to fix compilation error:
  12562. * src/a2netcompat.h
  12563. * src/SocketCore.cc: Removed include of a2io.h
  12564. * src/Util.cc: Removed include of a2io.h
  12565. Gather time related functions to a2time.h:
  12566. * src/a2time.h: New file.
  12567. * src/DefaultPeerStorage.cc
  12568. * src/SimpleLogger.cc
  12569. * src/Util.{h, cc}
  12570. * src/SimpleRandomizer.h
  12571. * src/TimeA2.{h,cc}
  12572. * src/DownloadCommand.cc
  12573. * src/main.cc
  12574. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12575. a2netcompat.h:
  12576. * src/NameResolver.cc
  12577. Fixed compilation error without openssl:
  12578. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12579. Added default block to suppress compiler warnings:
  12580. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12581. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12582. MinGW build enhancements. The following files are added:
  12583. * src/gai_strerror.{c,h}
  12584. * src/gettimeofday.{c,h}
  12585. Changes to support the above new files:
  12586. * configure.ac
  12587. * src/Makefile.am
  12588. * src/a2netcompat.h
  12589. * src/TimeA2.cc
  12590. * src/DefaultPeerStorage.cc
  12591. * src/NameResolver.cc: removed mingw_strerror() function.
  12592. * src/SocketCore.cc: removed mingw_strerror() function.
  12593. Miscellaneous MinGW build fixes.
  12594. * src/a2io.h: Use _lseeki64() instead of lseek()
  12595. * src/common.h
  12596. * src/DefaultFileAllocator.cc
  12597. * src/GlowFileAllocator.cc
  12598. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12599. * src/NameResolver.cc
  12600. (callback): Changed int32_t to int.
  12601. (resolve): Changed int32_t to int.
  12602. * src/Platform.cc
  12603. * src/Platform.h
  12604. * test/MultiDiskWriterTest.cc
  12605. * test/PeerMessageUtilTest.cc
  12606. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12607. Other enhancements and fixes.
  12608. * src/HttpRequestCommand.cc
  12609. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12610. * src/SocketCore.cc:
  12611. (error): New function to abstract errno/WSAGetLastError().
  12612. (errorMsg): New function to abstract errno/WSAGetLastError().
  12613. (initiateSecureConnection): Added more detailed error reporting.
  12614. * src/SocketCore.h: Added private variable blocking, to allow
  12615. proper handling of OpenSSL psuedo-errors.
  12616. * src/message.h
  12617. (EX_SSL_INIT_FAILURE)
  12618. (EX_SSL_IO_ERROR)
  12619. (EX_SSL_PROTOCOL_ERROR)
  12620. (EX_SSL_UNKNOWN_ERROR)
  12621. (EX_SSL_CONNECT_ERROR)
  12622. (EX_SOCKET_BLOCKING)
  12623. (EX_SOCKET_NONBLOCKING)
  12624. (EX_SOCKET_UNKNOWN_ERROR)
  12625. * src/Util.cc
  12626. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12627. reserved name.
  12628. (httpGMT): Fixed typo.
  12629. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. Merged Ross's win32 patch(manually)
  12631. In the course of merging, following files are added.
  12632. * src/strptime.{h,c}
  12633. * src/libgen.{h,c}
  12634. * src/inet_aton.{h,c}
  12635. * src/Platform.{h,cc}
  12636. * src/localtime_r.{h,c}
  12637. * src/getaddrinfo.{h,c}
  12638. I've gethered network related things, and put them to following file:
  12639. * src/a2netcompat.h
  12640. Also io related things are put to following file:
  12641. * src/a2io.h
  12642. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12643. * src/message.h
  12644. (MSG_ALLOCATION_COMPLETED)
  12645. (EX_TOO_LARGE_FILE)
  12646. (EX_SIZE_MISMATCH)
  12647. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12648. (EX_INVALID_CHUNK_CHECKSUM)
  12649. (EX_INVALID_RANGE_HEADER)
  12650. * src/FileAllocationCommand.cc
  12651. * src/HttpResponse.cc
  12652. * src/RequestGroup.cc
  12653. * src/MultiDiskAdaptor.cc
  12654. * src/OptionHandlerImpl.h
  12655. * src/HttpResponseCommand.cc
  12656. * src/FtpNegotiateCommand.cc
  12657. * src/IteratableChecksumValidator.cc
  12658. * src/SegmentMan.cc
  12659. * src/ChunkChecksumValidator.cc
  12660. Added Randomizer::getRandomNumber(long int)
  12661. * src/Randomizer.h (getRandomNumber)
  12662. * src/SimpleRandomizer.h (getRandomNumber)
  12663. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12664. * src/Util.cc (randomAlpha): Use this new function.
  12665. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12666. Converted int's to in32_t. long long int's are also converted to
  12667. int64_t
  12668. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12669. Fixed the bug that prevents cookies from being sent to the server
  12670. if the domain of cookie is FQDN and starts with ".".
  12671. * src/Cookie.cc (match)
  12672. To add the ability to change peer id.
  12673. * src/DefaultBtContext.h
  12674. (_peerIdPrefix): New variable
  12675. (setPeerIdPrefix): New function.
  12676. * src/torrentRequestInfo.cc
  12677. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12678. DefaultBtContext.
  12679. * src/main.cc (main): Added peer-id-prefix command-line option.
  12680. The usage message is not added yet.
  12681. * src/DefaultBtContext.cc
  12682. (generatePeerId): Use _peerIdPrefix.
  12683. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12684. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12685. Fixed the bug that prevents filename in content-disposition from
  12686. being retrieved when filename is not quoted.
  12687. * src/Util.cc (getContentDispositionFilename)
  12688. Fixed the bug that causes infinate loop and memory leak when file open
  12689. operation failed.
  12690. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12691. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12692. Fixed the bug that causes segfault when all URIs specified are
  12693. unsupported.
  12694. * src/RequestGroupMan.cc (getInitialCommands)
  12695. Check if RequestGroup::createNextCommand() returns empty list of
  12696. commands.
  12697. * src/RequestGroup.cc (createNextCommand)
  12698. Change log level from info to error so that users can notice that
  12699. an error occurred.
  12700. Fixed the bug that causes segfault when a zero-sized file is
  12701. downloaded.
  12702. * src/BitfieldMan.cc (isAllBitSet)
  12703. Return true if bitfieldLength is 0.
  12704. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. * src/main.cc
  12706. (showUsage): Added 3 usage examples for metalink download.
  12707. Replace MetalinkChunkChecksum with ChunkChecksum.
  12708. * src/MetalinkChunkChecksum.h: Removed.
  12709. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12710. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12711. * src/Xml2MetalinkProcessor.cc
  12712. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12713. * src/MetalinkRequestInfo.cc (execute)
  12714. * Release 0.11.1
  12715. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. Reads URIs from stdin when "-i -" is specified.
  12717. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12718. * src/UriListParser.h, src/UriListParser.cc: New class.
  12719. * src/StreamUriListParser.h: New class.
  12720. * src/FileUriListParser.h: New class.
  12721. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12722. instead of UriFileListParser.
  12723. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. Made console readout more readable.
  12725. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12726. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12727. Fix the bug that causes -s option not to work.
  12728. * src/main.cc (main)
  12729. * src/a2algo.h: New file.
  12730. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12731. Create directory structure specified in metalink file.
  12732. * src/RequestGroup.h, src/RequestGroup.cc
  12733. (initAndOpenFile): Create a directory to store files if it does not
  12734. exist.
  12735. (getDir): New function.
  12736. Added ETA and download speed for an individual file to readout.
  12737. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12738. * src/RequestGroup.h
  12739. (calculateDownloadSpeed): New function.
  12740. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12741. Made -S option work with metalink file and provided selective download
  12742. to metalink.
  12743. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12744. (filename): Removed.
  12745. (file): New variable.
  12746. (size): Removed.
  12747. (operator=): Updated.
  12748. (getPath): New function.
  12749. (getLength): New function.
  12750. (toFileEntry): New function.
  12751. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12752. (execute): Use toStream.
  12753. (showFileEntry): Removed.
  12754. * src/MetalinkRequestInfo.h
  12755. (targetFiles): New variable.
  12756. (setTargetFiles): New variable.
  12757. * src/MetalinkRequestInfo.cc
  12758. (execute): Added the ability to print file information included in
  12759. a metalink file.
  12760. Added selective download mode to metalink.
  12761. * src/main.cc
  12762. (showUsage): Updated to denote that -S and --select-file options are
  12763. applicable to metalink.
  12764. * src/FileEntry.h
  12765. (operator=): New function.
  12766. (getBasename): New function.
  12767. (getDirname): New function.
  12768. * src/Util.h, src/Util.cc
  12769. (toStream): New function.
  12770. * src/Xml2MetalinkProcessor.cc: Updated.
  12771. Made aria2 work with metalink with directory structure.
  12772. * src/File.h, src/File.cc
  12773. (getBasename): New function.
  12774. (getDirname): New function.
  12775. * src/RequestGroup.h, src/RequestGroup.cc
  12776. (_topDir): New variable.
  12777. (setTopDir): New function.
  12778. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12779. Rewrote HTTP header parsing with stringstream.
  12780. * src/HttpConnection.h, src/HttpConnection.cc
  12781. (HttpRequestEntry): New class.
  12782. (headerBuf): Removed.
  12783. (headerBufLength): Removed.
  12784. (outstandingHttpRequests): Now its element type is
  12785. HttpRequestEntryHandle.
  12786. (findEndOfHeader): Removed.
  12787. (receiveResponse): Rewritten.
  12788. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12789. Updated doc for -j option to notice that it should be used with -i
  12790. option.
  12791. * src/main.cc (showUsage)
  12792. Removed unused classes.
  12793. * src/RequestInfo.h
  12794. (FileInfo): Removed.
  12795. (checksum): Removed.
  12796. (fileInfo): Removed.
  12797. (setChecksum): Removed.
  12798. (getChecksum): Removed.
  12799. (getFileInfo): Removed.
  12800. Use ISO units.
  12801. * src/ConsoleDownloadEngine.cc
  12802. * src/TorrentConsoleDownloadEngine.cc
  12803. * src/Util.cc (abbrevSize)
  12804. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12805. Added the default listening ports to the help message.
  12806. * src/main.cc (showUsage)
  12807. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12808. Reduce the number of calls to gettimeofday to lower CPU load.
  12809. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12810. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12811. * src/Peer.h (calculateUploadSpeed): New function.
  12812. (calculateDownloadSpeed): New function.
  12813. * src/DefaultPeerStorage.cc
  12814. (CalculateStat): Added _now variable.
  12815. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12816. and Peer::calculateUploadSpeed(const struct timeval&)
  12817. Drop connection if no request or piece message is exchanged in
  12818. a certain interval.
  12819. * src/DefaultBtInteractive.h
  12820. (btRuntime): New variable.
  12821. (inactiveCheckPoint): New variable.
  12822. (checkActiveInteraction): New function.
  12823. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12824. request or piece message is received.
  12825. (checkActiveInteraction): New function.
  12826. (doInteractionProcessing): Call checkActiveInteraction.
  12827. Fixed the bug that causes remote Metalink and Torrent files are not
  12828. processed.
  12829. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12830. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12831. Changed format of log file.
  12832. * src/SimpleLogger.cc
  12833. * Release 0.11.0
  12834. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12835. * src/AbstractCommand.cc
  12836. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12837. MSG_MAX_TRY from error to info.
  12838. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12839. * src/message.h
  12840. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12841. (MSG_DOWNLOAD_ABORTED): Added %s.
  12842. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12843. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12844. * src/PeerAbstractCommand.cc
  12845. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12846. * src/Request.h
  12847. (cookieBox): Made ShardHandle.
  12848. * src/RequestGroup.h, src/RequestGroup.cc
  12849. (createNextCommandWithAdj): New function.
  12850. * src/FileAllocationCommand.cc
  12851. (executeInternal): Use createNextCommandWithAdj().
  12852. * src/CheckIntegrityCommand.cc
  12853. (executeInternal): Use createNextCommandWithAdj().
  12854. Added --load-cookies command-option.
  12855. * src/OptionHandlerFactory.cc
  12856. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12857. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12858. Now aria2 can handle cookie's expiration date.
  12859. * src/Cookie.h (expires): Changed its type to time_t.
  12860. * src/main.cc: Added --load-cookies command-line option.
  12861. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12862. * src/Util.h, src/Util.cc (httpGMT): New function.
  12863. * src/Request.cc (Request): Initialize cookieBox using
  12864. CookieBoxFactory.
  12865. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12866. * src/CookieParser.h, src/CookieParser.cc: New class.
  12867. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12868. * src/HttpResponseCommand.cc
  12869. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12870. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12871. download.
  12872. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12873. Added -j command-line option.
  12874. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12875. * src/main.cc
  12876. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12877. Rewritten using stringstream.
  12878. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12879. Rewritten using stringstream.
  12880. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12881. Make download size shown in MB, KB.
  12882. * src/ConsoleDownloadEngine.h (sendStatistics)
  12883. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12884. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12885. Accept incoming connections if download rate is low.
  12886. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12887. (_lowestSpeedLimit): New variable.
  12888. (setLowestSpeedLimit): New function.
  12889. (execute): Accept incoming connections if download rate is low.
  12890. MAX_PEERS is ignored in this case.
  12891. Disable PREF_OUT in multiple concurrent download:
  12892. * src/RequestGroup.h, src/RequestGroup.cc
  12893. (setUserDefinedFilename): New function.
  12894. * src/DownloadEngineFactory.cc
  12895. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12896. concurrent download.
  12897. * src/DefaultSegmentManFactory.cc
  12898. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12899. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12900. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12901. Added its overloaded method.
  12902. * src/RequestGroup.h
  12903. (_numConcurrentCommand): New variable.
  12904. (setNumConcurrentCommand): New function.
  12905. * src/RequestGroup.cc
  12906. Abort download if same file is being downloaded concurrently.
  12907. * src/RequestGroup.h, src/RequestGroupMan.cc
  12908. (isSameFileBeingDownloaded): New function.
  12909. * src/HttpResponseCommand.cc (executeInternal)
  12910. * src/FtpNegotiateCommand.cc (recvSize)
  12911. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12912. * main.cc: Added help message for -i option.
  12913. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12914. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12915. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12916. * src/MetalinkEntry.h
  12917. (checksum): Changed to ChecksumHandle
  12918. * src/MetalinkRequestInfo.cc
  12919. (checksum): Changed to ChecksumHandle
  12920. * src/File.cc
  12921. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12922. * src/common.h
  12923. (DIR_OPEN_MODE): New definition
  12924. * src/RequestGroup.cc
  12925. (prepareForNextAction): Added an argument.
  12926. * src/message.h
  12927. (MSG_GOOD_CHECKSUM): New definition
  12928. (MSG_BAD_CHECKSUM): New definition
  12929. * src/HttpResponseCommand.cc
  12930. (handleDefaultEncoding): Continue download sequence in new
  12931. non-segmented download.
  12932. * src/FileAllocationEntry.h
  12933. (_nextDownloadCommand): New variable.
  12934. * src/DownloadCommand.cc
  12935. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12936. available.
  12937. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12938. * src/IteratableChecksumValidator.h,
  12939. src/IteratableChecksumValidator.cc: New class.
  12940. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12941. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12942. Change file mode to 666:
  12943. * src/common.h (OPEN_MODE): New definition.
  12944. * src/File.cc
  12945. * src/Util.cc
  12946. * src/Directry.cc
  12947. * src/AbstractDiskWriter.cc
  12948. Change the level of log message "download aborted" to debug:
  12949. * src/PeerAbstractCommand.cc (execute)
  12950. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12951. * src/TrackerWatcherCommand.cc
  12952. (createCommand): Sleep some seconds after request failed.
  12953. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12954. then abort tracker request.
  12955. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12956. * Added the simultaneous download feature.
  12957. * src/main.cc: Print "Exception caught: " when exception is caught.
  12958. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12959. * src/ActivePeerConnectionCommand.cc
  12960. * src/PeerInteractionCommand.cc
  12961. * src/BtRuntime.h
  12962. (cuidCounter): Removed.
  12963. (getNewCuid): Removed.
  12964. * src/DownloadEngineFactory.cc
  12965. * src/PeerListenCommand.cc
  12966. * src/TrackerUpdateCommand.cc
  12967. * src/PeerInitiateConnectionCommand.cc
  12968. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12969. * src/PeerAbstractCommand.cc
  12970. (onAbort): Call PeerStorage::returnPeer()
  12971. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12972. (incomingPeers): New variable.
  12973. (addIncomingPeer): New function.
  12974. (returnPeer): New function.
  12975. (onErasingPeer): New function.
  12976. (addPeer): push_back -> push_front
  12977. (getActivePeers): Rewritten.
  12978. (calculateStat): Rewritten.
  12979. * src/PeerStorage.h
  12980. (TransferStat::copy): New function.
  12981. (TransferStat::TransferStat): New function.
  12982. (TransferStat::operator=): New function.
  12983. (addIncomingPeer): New function.
  12984. (returnPeer): New function.
  12985. * src/PeerListenCommand.cc
  12986. (execute): Use PeerStorage::addIncomingPeer() instead of
  12987. Peer::addPeer().
  12988. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12989. Connect to a peer actively when download speed is lower than specified
  12990. speed in torrent download:
  12991. * src/ActivePeerConnectionCommand.h: New class.
  12992. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12993. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12994. * src/main.cc: Fixed the bug that prevents download if .netrc
  12995. doesn't exist.
  12996. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12997. To cache resolved hostname:
  12998. * src/AbstractCommand.h, src/AbstractCommand.cc
  12999. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13000. Added dns cache.
  13001. * src/FtpInitiateConnectionCommand.cc
  13002. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13003. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13004. NameResolver working without ares.
  13005. * src/TorrentRequestInfo.cc
  13006. (execute): Don't cache dns in torrent download.
  13007. * src/HttpInitiateConnectionCommand.cc
  13008. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13009. * src/DNSCache.h: New class.
  13010. * src/UrlRequestInfo.cc
  13011. (execute): Use dns cache.
  13012. In http request, suppress port number in http request header if port
  13013. is 80 or 443:
  13014. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13015. request header if port is 80 or 443.
  13016. (createProxyRequest): Allways send port number.
  13017. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13018. To add the command-line option which disables netrc support:
  13019. * src/OptionHandlerFactory.cc
  13020. (createOptionHandlers): Added PREF_NO_NETRC.
  13021. * src/main.cc: Added -n option.
  13022. * src/prefs.h (PREF_NO_NETRC): New definition.
  13023. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13024. V_TRUE.
  13025. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13026. is V_FALSE. This may get configurable in the future release.
  13027. To clear peer's error status by time basis:
  13028. * src/PeerAbstractCommand.cc
  13029. (onAbort): Call Peer::startBadCondition().
  13030. * src/Peer.h, src/Peer.cc
  13031. (error): Removed.
  13032. (_badConditionStartTime): New variable.
  13033. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13034. (startBadCondition): New function.
  13035. (isGood): New function.
  13036. * src/DefaultPeerStorage.cc
  13037. (addPeer): Use Peer::isGood().
  13038. (FindFinePeer): Use Peer::isGood().
  13039. Always include port number in http request header:
  13040. * src/HttpRequest.cc (getHostText): Always include port number in
  13041. http request header.
  13042. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. To the ability to read options from a config file:
  13044. * src/main.cc: Command-line parameter validation is delegated to
  13045. OptionHandler class.
  13046. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13047. * src/Option.h, src/Option.cc (clear): New function.
  13048. * src/OptionParser.h, src/OptionParser.cc: New class.
  13049. * src/OptionHandler.h: New class.
  13050. * src/NameMatchOptionHandler.h: New class.
  13051. * src/OptionHandlerImpl.h: New classes.
  13052. * src/prefs.h: '_' -> '-'
  13053. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13054. (FTP_PASV): New definition.
  13055. * src/Util.h, src/Util.cc (getRealSize): New function.
  13056. To disable netrc support if .netrc file does not have correct
  13057. permissions:
  13058. * src/File.h, src/File.cc (mode): New function.
  13059. To prevent confidential information to be logged:
  13060. * src/HttpConnection.h, src/HttpConnection.cc
  13061. (eraseConfidentialInfo): New function.
  13062. (sendRequest): Call eraseConfidentialInfo().
  13063. (sendProxyRequest): Call eraseConfidentialInfo().
  13064. * src/main.cc: Validate permissions of .netrc file.
  13065. To add --user-agent command-line option:
  13066. * src/main.cc: Added new command line option: --user-agent
  13067. * src/prefs.h (PREF_USER_AGENT): New definition.
  13068. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13069. parameter to HttpRequest object.
  13070. * src/AbstractProxyRequestCommand.cc
  13071. (executeInternal): Set user-agent option parameter to HttpRequest
  13072. object.
  13073. Marged the patches from Dan Fandrich.
  13074. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13075. Use filename and size from Metalink file instead of sending HEAD
  13076. request:
  13077. * src/UrlRequestInfo.h
  13078. (_filename): New variable.
  13079. (_totalLength): New variable.
  13080. (setTotalLength): New variable.
  13081. (setFilename): New variable.
  13082. * src/MetalinkRequestInfo.cc
  13083. (execute): Set filename and size to UrlRequestInfo
  13084. * src/UrlRequestInfo.cc
  13085. (execute): Use filename and size from Metalink instead of seding
  13086. HEAD request to servers.
  13087. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13088. To add the ability to resume downloading a partially downloaded file
  13089. which is downloaded from the beginning:
  13090. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13091. takes this role.
  13092. * src/main.cc: Added -c option.
  13093. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13094. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13095. * src/prefs.h (PREF_CONTINUE): New definition.
  13096. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13097. * src/DefaultDiskWriter.cc
  13098. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13099. * src/AbstractDiskWriter.h
  13100. (glowFileAllocator): New variable.
  13101. * src/AbstractDiskWriter.cc
  13102. (openExistingFile): Now preallocate file space from the end of the
  13103. existing file if totalLength argument is specified and grater than 0.
  13104. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13105. to download exists in local, continue the download of the file.
  13106. --allow-overwrite=true is assumed in this context.
  13107. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13108. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13109. Throw exception if --check-integrity=true is specified but chunk
  13110. checksums are not provided:
  13111. * src/UrlRequestInfo.cc
  13112. Do not print URLs to stdout:
  13113. * src/UrlRequestInfo.cc
  13114. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13115. * src/Request.h: Use AuthResolver to get authentication information.
  13116. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13117. set to RequestFactory object.
  13118. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13119. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13120. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13121. create Request object.
  13122. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13123. To integrate Netrc into exsiting classes:
  13124. * src/Request.h
  13125. (_userDefinedAuthConfig): New variable.
  13126. (findNetrcAuthenticator): New function.
  13127. (segment): Removed.
  13128. (setUserDefinedAuthConfig): New function.
  13129. (resolveHttpAuthConfigItem): New function.
  13130. (resolveFtpAuthConfigItem): New function.
  13131. (resolveHttpProxyAuthConfigItem): New function.
  13132. * src/HttpRequest.h
  13133. (authConfig): Removed.
  13134. (proxyAuthConfig): Removed.
  13135. (setAuthConfig): Removed.
  13136. (setProxyAuthConfig): Removed.
  13137. * src/UrlRequest.h
  13138. (getHeadResult): Added a parameter: authConfigHandle
  13139. * src/common.h
  13140. (SingletonHolder.h): New include.
  13141. * src/main.cc
  13142. (Netrc.h): New include.
  13143. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13144. Added initial value of PREF_NETRC_PATH.
  13145. Added the initialization of netrc.
  13146. * src/AuthConfig.h: New class.
  13147. * src/prefs.h
  13148. (PREF_NETRC_PATH): New definition.
  13149. * src/HttpAuthConfig.h: Removed.
  13150. * src/Netrc.cc
  13151. (getRequiredNextToken): New function.
  13152. (skipMacdef): New function.
  13153. (parse): Rewritten.
  13154. * src/Netrc.h
  13155. (getRequiredNextToken): New function.
  13156. (skipMacdef): New function.
  13157. * src/Util.h, src/Util.cc
  13158. (getHomeDir): New function.
  13159. * src/TrackerWatcherComand.cc
  13160. (createRequestCommand): Use AuthConfig.
  13161. * src/FtpConnection.cc
  13162. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13163. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13164. * src/Request.cc
  13165. (findNetrcAuthenticator): New function.
  13166. (resolveHttpAuthConfigItem): New function.
  13167. (resolveFtpAuthConfigItem): New function.
  13168. (resolveHttpProxyAuthConfigItem): New function.
  13169. * src/UrlRequestInfo.cc: Use AuthConfig.
  13170. * src/HttpRequest.cc
  13171. (createRequest): Use authConfig.
  13172. (getProxyAuthString): Use authConfig.
  13173. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13174. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13175. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13176. To reduce overhead to find commands whose socket is either
  13177. readable or writable in the download engine loop:
  13178. * src/Command.h, src/Command.cc
  13179. (STATUS): New enum.
  13180. (status): New variable.
  13181. (statusMatch): New function.
  13182. (setStatusActive): New function.
  13183. (setStatusInactive): New function.
  13184. * src/DownloadEngine.h, src/DownloadEngine.cc
  13185. (executeCommand): New function.
  13186. (run): Simplified.
  13187. (waitData): Call Command::setStatusActive() when command's socket is
  13188. readable or writable.
  13189. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13190. To handle Segment as SegmentHandle:
  13191. * src/AbstractCommand.cc (execute): Rewritten.
  13192. * src/SegmentMan.h: Segment -> SegmentHandle
  13193. Introducded HttpResponse class, HttpRequest class to improve code
  13194. extensiveness and make it clear:
  13195. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13196. HttpResponse class.
  13197. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13198. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13199. * src/HttpConnection.cc: Contruction of http request were moved to
  13200. HttpRequest class.
  13201. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13202. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13203. * src/HttpAuthConfig.h: New class.
  13204. * src/Range.h: New class.
  13205. To make FtpTunnel{Request, Response}Command and
  13206. HttpProxy{Request, Response}Command derived from
  13207. AbstractProxy{Request, Response}Command:
  13208. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13209. Derived from AbstractProxyRequestCommand class.
  13210. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13211. Derived from AbstractProxyResponseCommand class.
  13212. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13213. Derived from AbstractProxyRequestCommand class.
  13214. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13215. Derived from AbstractProxyResponseCommand class.
  13216. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13217. : New class.
  13218. * src/AbstractProxyResponseCommand.h,
  13219. src/AbstractProxyResponseCommand.cc: New class.
  13220. To add netrc support:
  13221. * src/Netrc.h, src/Netrc.cc: New class.
  13222. * src/Util.h, src/Util.cc (split): New function.
  13223. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13224. "Content-Range" header instead of "Range" header.
  13225. * src/HttpHeader.h
  13226. (getStatus): Removed.
  13227. (setStatus): Removed.
  13228. * src/Segment.h
  13229. (getPositionToWrite): New function.
  13230. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. * src/HttpHeader.h
  13232. (Range.h): New include.
  13233. (status): New variable.
  13234. (HttpHeader): Initialized status with 0.
  13235. (getStatus): New function.
  13236. (setStatus): New function.
  13237. (getRange): New function.
  13238. (HttpHeaderHandle): New function.
  13239. * src/HttpHeader.cc
  13240. (getRange): New function.
  13241. * src/Request.h
  13242. (RequestWeakHandle): New definition.
  13243. * src/HttpConnection.h
  13244. (HttpConnectionHandle): New type definition.
  13245. * src/HttpConnection.cc
  13246. (receiveResponse): Set HTTP status to headers.
  13247. * src/main.cc
  13248. (showUsage): Fixed typo.
  13249. * src/Segment.h
  13250. (SegmentHandle): New type definition.
  13251. * src/BitfieldMan.h
  13252. (getMissingUnusedLength): New function.
  13253. * src/BitfieldMan.cc
  13254. (getMissingUnusedLength): New function.
  13255. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13256. To fix static initialization order problem:
  13257. * src/BitfieldManFactory.h
  13258. (defaultRandomizer): Removed.
  13259. (factory): New variable.
  13260. (getNewFactory): Removed.
  13261. (getFactoryInstance): New function.
  13262. (setDefaultRandomizer): Rewritten.
  13263. (getDefaultRandomizer): Rewritten.
  13264. * src/BitfieldManFactory.cc
  13265. (defaultRandomizer): Removed.
  13266. (factory): Initialized to 0.
  13267. (BitfieldManFactory): Initialized randomizer to 0.
  13268. * src/DefaultPieceStorage.cc
  13269. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13270. * src/Peer.cc
  13271. (Peer): getNewFactory() -> getFactoryInstance()
  13272. * src/SegmentMan.cc
  13273. (initBitfield): getNewFactory() -> getFactoryInstance()
  13274. * src/Piece.cc
  13275. (Piece): getNewFactory() -> getFactoryInstance()
  13276. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13277. To fix the bug that causes crash on Max OS X:
  13278. * src/SimpleRandomizer.h
  13279. (getInstance): Create new instance if the static variable is null.
  13280. * src/SimpleRandomizer.cc
  13281. (randomizer): Initialized to 0.
  13282. * src/BitfieldManFactory.h
  13283. (getNewFactory): Removed the call to setRandomizer().
  13284. To fix the miscalculation of the range of checksum:
  13285. * src/BitfieldMan.h
  13286. (isBitSetOffsetRange): New function.
  13287. * src/BitfieldMan.cc
  13288. (isBitSetOffsetRange): New function.
  13289. * src/SegmentMan.cc
  13290. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13291. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13292. * Release 0.10.1
  13293. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13294. To lower CPU usage in BitTorrent download when --max-upload-limit
  13295. command-line option specified:
  13296. * src/DefaultBtMessageDispatcher.cc
  13297. (sendMessages): Calculate uploading speed only when current message
  13298. is uploading data and is not sent yet.
  13299. * src/DefaultPeerStorage.h
  13300. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13301. * src/HttpResponseCommand.cc
  13302. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13303. This fixes compile error in Soralis 10.
  13304. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13305. To fix segfault in Metalink download:
  13306. * src/UrlRequestInfo.h
  13307. (filename): Removed.
  13308. (totalLength): Removed.
  13309. (setTotalLength): Removed.
  13310. (setFilename): Removed.
  13311. * src/MetalinkRequestInfo.cc
  13312. (execute): Do not set filename and totalLength to reqInfo.
  13313. Set chunk checksum to reqInfo if it is not null.
  13314. * src/HttpResponseCommand.cc
  13315. (executeInternal): Fixed filename in log.
  13316. (handleDefaultEncoding): Removed the call to initBitfield() and
  13317. markAllPiecesDone().
  13318. (handleOtherEncoding): Added HEAD method handling.
  13319. * src/FtpNegotiateCommand.cc
  13320. (executeInternal): Added SEQ_HEAD_OK handling.
  13321. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13322. return false.
  13323. * src/FtpNegotiateCommand.h
  13324. (SEQ_HEAD_OK): New definition.
  13325. * src/SegmentMan.cc
  13326. (initBitfield): Delete bitfield.
  13327. (isChunkChecksumValidationReady): Fixed the condition.
  13328. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13329. works fine.
  13330. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13331. * src/Xml2MetalinkProcessor.h
  13332. (xpathExists): New function.
  13333. * src/Xml2MetalinkProcessor.cc
  13334. (xpathExists): New function.
  13335. Not to send HEAD request if filename and size are available in Metalink
  13336. file:
  13337. * src/UrlRequestInfo.h
  13338. (filename): New variable.
  13339. (totalLength): New variable.
  13340. (setTotalLength): New function.
  13341. (setFilename): New function.
  13342. * src/MetalinkRequestInfo.cc
  13343. (execute): Set filename and size to UrlRequestInfo.
  13344. * src/MetalinkEntry.cc
  13345. (MetalinkEntry): Initialize size with 0.
  13346. * src/UrlRequestInfo.cc
  13347. (execute): Set filename and size to SegmentMan.
  13348. Not to download rest of the files after selected files are downloaded
  13349. in BitTorrent:
  13350. * src/PieceStorage.h
  13351. (allDownloadFinished): New function.
  13352. * src/DefaultBtAnnounce.cc
  13353. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13354. downloadFinished.
  13355. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13356. * src/DefaultPieceStorage.cc
  13357. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13358. Commented out the call to finishSelectiveDownloadingMode().
  13359. (downloadFinished): Call isFilteredAllBitSet() instead of
  13360. isAllBitSet().
  13361. (allDownloadFinished): New function.
  13362. * src/DefaultBtInteractive.cc
  13363. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13364. downloadFinished().
  13365. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13366. * src/TorrentDownloadEngine.cc
  13367. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13368. * src/BitfieldMan.h
  13369. (isFilteredAllBitSet): New function.
  13370. * src/ShareRatioSeedCriteria.h
  13371. (PieceStorage.h): New include.
  13372. (pieceStorage): New variable.
  13373. (evaluate):
  13374. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13375. * src/BitfieldMan.cc
  13376. (isFilteredAllBitSet): New function.
  13377. (isAllBitSet): Filter is not took into account.
  13378. Rename --force-truncate as --allow-overwrite:
  13379. * src/TorrentRequestInfo.cc
  13380. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13381. * src/main.cc
  13382. (showUsage): --force-truncate -> --allow-overwrite
  13383. * src/message.h
  13384. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13385. * src/prefs.h
  13386. (PREF_FORCE_TRUNCATE): Removed.
  13387. (PREF_ALLOW_OVERWRITE): New definition.
  13388. * src/SegmentMan.cc
  13389. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13390. * src/MetalinkRequestInfo.cc
  13391. (execute): Queueing message are now logged in info level.
  13392. * src/common.h
  13393. (LONG_LONG_MAX): Removed.
  13394. (LONG_LONG_MIN): Removed.
  13395. * src/HttpResponseCommand.cc
  13396. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13397. * src/FtpNegotiateCommand.cc
  13398. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13399. * src/main.cc
  13400. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13401. command-line option.
  13402. (main): Added --check-integriy and --realtime-chunk-checksum
  13403. command-line option.
  13404. --force-truncate -> --allow-overwrite
  13405. Set initial value of --check-integrity option to false.
  13406. Don't show usage when error occurs while persing command-line options.
  13407. Removed deprecated --upload-limit option.
  13408. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13409. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13410. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13411. * src/BtAllowedFastMessage.cc:
  13412. * src/BtBitfieldMessage.cc
  13413. * src/BtCancelMessage.cc
  13414. * src/BtChokeMessage.cc
  13415. * src/BtHaveAllMessage.cc
  13416. * src/BtHaveMessage.cc
  13417. * src/BtHaveNoneMessage.cc
  13418. * src/BtInterestedMessage.cc
  13419. * src/BtNotInterestedMessage.cc
  13420. * src/BtPieceMessage.cc
  13421. * src/BtPortMessage.cc
  13422. * src/BtRejectMessage.cc
  13423. * src/BtRequestMessage.cc
  13424. * src/BtSuggestPieceMessage.cc
  13425. * src/BtUnchokeMessage.cc
  13426. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13427. files are affected.
  13428. * src/ChunkChecksumValidator.cc
  13429. * src/SegmentMan.cc
  13430. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13431. To add chunk checksum validation:
  13432. * src/MetalinkEntry.h
  13433. (MetalinkChunkChecksum.h): New include.
  13434. (chunkChecksum): New variable.
  13435. * src/Request.h
  13436. (method): New variable.
  13437. (setMethod): New function.
  13438. (getMethod): New function.
  13439. (METHOD_GET): New static constant.
  13440. (METHOD_HEAD): New static constant.
  13441. * src/Xml2MetalinkProcessor.h
  13442. (getPieceHash): New function.
  13443. * src/PieceStorage.h
  13444. (markAllPiecesDone): New function.
  13445. (checkIntegrity): New function.
  13446. * src/FileAllocator.h
  13447. (NullFileAllocationMonitor.h): New include.
  13448. (FileAllocator): Initialize fileAllocationMonitor with new
  13449. NullFileAllocationMonitor().
  13450. * src/MultiDiskAdaptor.h
  13451. (messageDigest.h): Remove include.
  13452. (ctx): Removed.
  13453. (hashUpdate): Added ctx.
  13454. (MultiDiskAdaptor): Removed ctx.
  13455. (sha1Sum): Renamed as messageDigest.
  13456. (messageDigest): New function.
  13457. * src/UrlRequestInfo.h
  13458. (HeadResult): New class.
  13459. (digestAlgo): New variable.
  13460. (chunkChecksumLength): New variable.
  13461. (chunkChecksums): New variable.
  13462. (getHeadResult): New function.
  13463. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13464. (setDigestAlgo): New function.
  13465. (setChunkChecksumLength): New function.
  13466. (setChunkChecksums): New function.
  13467. * src/DefaultPieceStorage.cc
  13468. (DiskAdaptorWriter.h): New include.
  13469. (ChunkChecksumValidator.h): New include.
  13470. (markAllPiecesDone): New function.
  13471. (checkIntegrity): New function.
  13472. * src/DefaultBtContext.h
  13473. (getPieceHashes): New function.
  13474. * src/TorrentRequestInfo.cc
  13475. (execute): Try to validate chunk checksum if file already exists and
  13476. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13477. * src/messageDigest.h
  13478. (~MessageDigestContext): Added digestFree().
  13479. * src/MetalinkRequestInfo.cc
  13480. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13481. * src/DiskAdaptor.h
  13482. (messageDigest.h): New include.
  13483. (sha1Sum): Renamed as messageDigest.
  13484. (messageDigest): New function.
  13485. * src/DownloadCommand.h
  13486. (PeerStat.h): New include.
  13487. (maxDownloadSpeedLimit): New variable.
  13488. (startupIdleTime): New variable.
  13489. (lowestDownloadSpeedLimit): New variable.
  13490. (peerStat): New variable.
  13491. (setMaxDownloadSpeedLimit): New function.
  13492. (setStartupIdleTime): New function.
  13493. (setLowestDownloadSPeedLimit): New function.
  13494. * src/BtContext.h
  13495. (getPieceHashes): New function.
  13496. * src/main.cc
  13497. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13498. option to true for testing purpose.
  13499. * src/BtPieceMessage.cc
  13500. (checkPieceHash): Use messageDigest
  13501. * src/DownloadEngine.cc
  13502. (SetDescriptor): Removed.
  13503. (AccumulateActiveCommand): Removed.
  13504. (waitData): Rewritten.
  13505. (updateFdSet): Rewritten.
  13506. * src/MultiDiskAdaptor.cc
  13507. (hashUpdate): Added ctx.
  13508. (sha1Sum): Renamed as messageDigest.
  13509. (messageDigest): New function.
  13510. * src/BitfieldMan.h
  13511. (isBitRangeSet): New function.
  13512. (unsetBitRange): New function.
  13513. * src/ByteArrayDiskWriter.h
  13514. (sha1Sum): Renamed as messageDigest.
  13515. (messageDigest): New function.
  13516. * src/ConsoleDownloadEngine.cc
  13517. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13518. * src/DiskWriter.h
  13519. (messageDigest.h): New include.
  13520. (sha1Sum): Renamed as messageDigest.
  13521. (messageDigest): New function.
  13522. * src/ChunkChecksumValidator.h: New class.
  13523. * src/DiskAdaptorWriter.h: New class.
  13524. * src/prefs.h
  13525. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13526. (PREF_CHECK_INTEGRITY): New definition.
  13527. * src/HttpResponseCommand.cc
  13528. (handleDefaultEncoding): Added method "HEAD" handling.
  13529. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13530. (handleOtherEncoding):
  13531. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13532. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13533. startupIdleTime, lowestDownloadSpeedLimit to command.
  13534. * src/SegmentMan.h
  13535. (getSegmentEntryByIndex): New function.
  13536. (getSegmentEntryByCuid): New function.
  13537. (getSegmentEntryIteratorByCuid): New function.
  13538. (diskWriter): DiskWriter -> DiskWriterHandle
  13539. (pieceHashes): New variable.
  13540. (chunkHashLength): New variable.
  13541. (digestAlgo): New variable.
  13542. (FindPeerStat): Removed.
  13543. (getPeerStat): Rewritten.
  13544. (markAllPiecesDone): New function.
  13545. (checkIntegrity): New function.
  13546. (tryChunkChecksumValidation): New function.
  13547. (isChunkChecksumValidationReady): New function.
  13548. * src/BitfieldMan.cc
  13549. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13550. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13551. blocks to 0.
  13552. (isBitRangeSet): New function.
  13553. (unsetBitRange): New function.
  13554. * src/FtpNegotiateCommand.cc
  13555. (executeInternal): Set maxDownloadSpeedLimit,
  13556. startupIdleTime, lowestDownloadSpeedLimit to command.
  13557. (recvSize): Added method "HEAD" handling.
  13558. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13559. * src/AbstractSingleDiskAdaptor.cc
  13560. (sha1Sum): Renamed as messageDigest.
  13561. (messageDigest): New function.
  13562. * src/AbstractSingleDiskAdaptor.h
  13563. (sha1Sum): Renamed as messageDigest.
  13564. (messageDigest): New function.
  13565. * src/Util.h
  13566. (indexRange): New function.
  13567. * src/MetalinkEntry.cc
  13568. (MetalinkEntry): Initialized chunkChecksum to 0.
  13569. * src/ShaVisitor.cc
  13570. (~ShaVisitor): Removed the call to ctx.digestFree().
  13571. * src/SegmentMan.cc
  13572. (ChunkChecksumValidator.h): New include.
  13573. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13574. to DIGEST_ALGO_SHA1.
  13575. (~SegmentMan): Removed diskWriter.
  13576. (FindSegmentEntryByIndex): Removed.
  13577. (FindSegmentEntryByCuid): Removed.
  13578. (checkoutSegment): Rewritten.
  13579. (findSlowerSegmentEntry): Rewritten.
  13580. (getSegment): Rewritten.
  13581. (updateSegment): Rewritten.
  13582. (completeSegment): Rewritten.
  13583. (markAllPiecesDone): New function.
  13584. (checkIntegrity): New function.
  13585. (isChunkChecksumValidationReady): New function.
  13586. (tryChunkChecksumValidation): New function.
  13587. * src/Xml2MetalinkProcessor.cc
  13588. (getEntry): Get size and set it to entry.
  13589. Get chunk checksum and set it to entry.
  13590. (getPieceHash): New function.
  13591. * src/Util.cc
  13592. (sha1Sum): Removed ctx.digestFree()
  13593. (fileChecksum): Removed ctx.digestFree()
  13594. (indexRange): New function.
  13595. * src/Request.cc
  13596. (METHOD_GET): New variable.
  13597. (METHOD_HEAD): New variable.
  13598. (Request): Added method.
  13599. * src/UrlRequestInfo.cc
  13600. (FatalException.h): New include.
  13601. (message.h): New include.
  13602. (operator<<): Added operator<< for class HeadResult.
  13603. (getHeadResult): New function.
  13604. (execute): Get filename and size in separate download engine.
  13605. * src/ChunkChecksumValidator.cc: New class.
  13606. * src/DownloadCommand.cc:
  13607. (DownloadCommand): Added peerStat.
  13608. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13609. the value from Option.
  13610. The buffer size is now 16KB.
  13611. Use peerStat member instead of getting it from SegmentMan.
  13612. Use startupIdleTime member instead of gettingit from Option.
  13613. Added chunk checksum validation.
  13614. * src/AbstractDiskWriter.cc
  13615. (AbstractDiskWriter): Removed ctx.
  13616. (~AbstractDiskWriter): Removed ctx.digestFree()
  13617. (writeDataInternal): Returns the return value of write.
  13618. (readDataInternal): Returns the return value of read.
  13619. (sha1Sum): Renamed as messageDigest
  13620. (messageDigest): New function.
  13621. * src/AbstractDiwkWriter.h
  13622. (messageDigest.h): Removed include.
  13623. (ctx): Removed.
  13624. (sha1Sum): Renamed as messageDigest
  13625. (messageDigest): New function.
  13626. * src/DefaultPieceStorage.h
  13627. (markAllPiecesDone): New function.
  13628. (checkIntegrity): New function.
  13629. * src/NullFileAllocationMonitor.h: New class.
  13630. * src/MetalinkChunkChecksum.h: New class.
  13631. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13632. To decrease CPU usage in bittorrent download, calculation results in
  13633. BitfieldMan were cached and realtime fetching PeerObject was removed
  13634. with WeakHandle introduced. Option values are set to the objects
  13635. by setter before download begins.
  13636. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13637. * src/DefaultBtRequestFactory.h
  13638. (dispatcher): BtMessageDispatcherHandle ->
  13639. BtMessageDispatcherWeakHandle.
  13640. (messageFactory): New variable.
  13641. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13642. BtMessageDispatcherWeakHandle.
  13643. (setBtMessageFactory): New function.
  13644. * src/DefaultBtMessageDispatcher.cc:
  13645. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13646. from Option.
  13647. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13648. feating the value from Option.
  13649. Use messageFactory member.
  13650. * src/PeerInteractionCommand.cc
  13651. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13652. Add reverse dependencies to factory object.
  13653. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13654. dispatcher.
  13655. Set messageFactory to receiver.
  13656. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13657. btInteractive.
  13658. Set receiver to peerObject.
  13659. Set maxDownloadSpeedLimit to this.
  13660. (executeInternal): Use maxDownloadSpeedLimit member.
  13661. * src/BtChokeMessage.cc
  13662. (doReceivedAction): Use dispatcher, requestFactory member.
  13663. (onSendComplete): Use dispatcher member.
  13664. * src/PeerInteractionCommand.h
  13665. (maxDownloadSpeedLimit): New variable.
  13666. * src/DefaultBtMessageReceiver.h
  13667. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13668. (dispatcher):
  13669. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13670. (messageFactory): New variable.
  13671. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13672. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13673. (setDispatcher):
  13674. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13675. (setBtMessageFactory): New function.
  13676. * src/DefaultBtInteractive.cc
  13677. (initiateHandshake): Use messageFactory member.
  13678. (addBitfieldMessageToQueue): Use messageFactory member.
  13679. (addAllowedFastMessageToQueue): Use messageFactory member.
  13680. (decideChoking): Use messageFactory member.
  13681. (checkHave): Use messageFactory member.
  13682. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13683. (receiveMessages): Use maxDownloadSpeedLimit member.
  13684. (decideInterest): Use messageFactory member.
  13685. * src/BtRequestMessage.cc
  13686. (doReceivedAction): Use messageFactory, dispatcher member.
  13687. (onQueued): Use dispatcher member.
  13688. * src/BtPieceMessage.cc
  13689. (doReceivedAction): Use dispatcher member.
  13690. (send): Use peerConnection member.
  13691. (onWrongPiece): Use requestFactory member.
  13692. (handleChokingEvent): Use messageFactory, dispatcher member.
  13693. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13694. * src/BtMessageDispatcher.h
  13695. (BtMessageDispatcherWeakHandle): New type definition.
  13696. * src/SimpleBtMessage.cc
  13697. (send): Use peerConnection member.
  13698. * src/BtRejectMessage.cc
  13699. (doReceivedAction): Use dispatcher member.
  13700. * src/DefaultBtMessageDispatcher.h
  13701. (Option.h): Removed include.
  13702. (messageFactory): New variable.
  13703. (option): Removed.
  13704. (maxUploadSpeedLimit): New variable.
  13705. (requestTimeout): New variable.
  13706. (DefaultBtMessageDispatcher): Removed option.
  13707. Added maxUploadSpeedLimit, requestTimeout.
  13708. (setOption): Removed.
  13709. (getOption): Removed.
  13710. (setMaxUploadSpeedLimit): New function.
  13711. (setRequestTimeout): New function.
  13712. (setBtMessageFactory): New function.
  13713. * src/DefaultBtInteractive.h
  13714. (btMessageReceiver):
  13715. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13716. (dispatcher):
  13717. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13718. (btRequestFactory):
  13719. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13720. (peerConnection):
  13721. PeerConnectionHandle -> PeerConnectionWeakHandle
  13722. (messageFactory): New variable.
  13723. (option): Removed.
  13724. (keepAliveInterval): New variable.
  13725. (maxDownloadSpeedLimit): New variable.
  13726. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13727. (setBtMessageReceiver):
  13728. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13729. (setDispatcher):
  13730. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13731. (setBtRequestFactory):
  13732. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13733. (setPeerConnection):
  13734. PeerConnectionHandle -> PeerConnectionWeakHandle
  13735. (setOption): Removed.
  13736. (setKeepAliveInterval): New function.
  13737. (setMaxDownloadSpeedLimit): New function.
  13738. (setBtMessageFactory): New function.
  13739. * src/BitfieldMan.h
  13740. (cachedNumMissingBlock): New variable.
  13741. (cachedNumFilteredBlock): New variable.
  13742. (cachedCompletedLength): New variable.
  13743. (cachedFilteredComletedLength): New variable.
  13744. (cachedFilteredTotalLength): New variable.
  13745. (countMissingBlockNow): New function.
  13746. (countFilteredBlockNow): New function.
  13747. (getFilteredTotalLengthNow): New function.
  13748. (getCompletedLengthNow): New function.
  13749. (getFilteredCompletedLengthNow): New function.
  13750. (updateCache): New function.
  13751. * src/AbstractBtMessage.h
  13752. (BtMessageDispatcher.h): New include.
  13753. (PeerConnection.h): New include.
  13754. (BtRequestFactory.h): New include
  13755. (BtMessageFactory.h): New include.
  13756. (dispatcher): New variable.
  13757. (messageFactory): New variable.
  13758. (peerConnection: New variable.
  13759. (setBtMessageDispatcher): New function.
  13760. (setPeerConnection): New function.
  13761. (setBtMessageFactory): New function.
  13762. (setBtRequestFactory): New function.
  13763. * src/DefaultBtMessageFactory.cc
  13764. (setCommonProperty): Set dispatcher, requestFactory, this,
  13765. peerConnection to msg.
  13766. * src/BtRegistry.h
  13767. (BT_MESSAGE_RECEIVER): New macro.
  13768. * src/PeerConnection.h
  13769. (PeerConnectionWeakHandle): New type definition.
  13770. * src/BtMessageFactory.h
  13771. (BtMessageFactoryWeakHandle): New type definition.
  13772. * src/BitfieldMan.cc
  13773. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13774. cachedCompletedLength, cachedFilteredComletedLength,
  13775. cachedFilteredTotalLength.
  13776. Call updateCache().
  13777. (countMissingBlock): Return cachedNumMissingBlock.
  13778. (countMissingBlockNow): New function.
  13779. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13780. (countFilteredBlockNow): New function.
  13781. (setBit): Call updateCache().
  13782. (unsetBit): Call updateCache().
  13783. (setBitfield): Call updateCache().
  13784. (clearAllBit): Call updateCache().
  13785. (setAllBit): Use setBitInternal instead of setBit.
  13786. Call updateCache().
  13787. (addFilter): Call updateCache().
  13788. (enableFilter): Call updateCache().
  13789. (disableFilter): Call updateCache().
  13790. (clearFilter): Call updateCache().
  13791. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13792. (getFilteredTotalLengthNow): New function.
  13793. (getCompletedLength): Return cachedCompletedLength.
  13794. (getCompletedLengthNow): New function.
  13795. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13796. (getFilteredCompletedLengthNow): New function.
  13797. (updateCache): New function.
  13798. * src/BtMessageReceiver.h
  13799. (BtMessageReceiverWeakHandle): New type definition.
  13800. * src/DefaultBtMessageReceiver.cc
  13801. (receiveHandshake): Use messageFactory member.
  13802. (sendHandshake): Use messageFactory member.
  13803. (receiveMessage): Use messageFactory member.
  13804. * src/DefaultBtMessageFactory.h
  13805. (dispatcher): New variable.
  13806. (requestFactory): New variable.
  13807. (peerConnection): New variablle.
  13808. (setBtMessageDispatcher): New function.
  13809. (setBtRequestFactory): New function.
  13810. (setPeerConnection): New function.
  13811. * src/SharedHandle.h
  13812. (RefCount): New class.
  13813. (WeakHandle): New class.
  13814. * src/PeerObject.h
  13815. (BtMessageReceiver.h): New include.
  13816. (PeerObject): Added btMessageReceiver.
  13817. (btMessageReceiver): New variable.
  13818. * src/Util.cc
  13819. (countBit): Simplified.
  13820. * src/BtCancelMessage.cc
  13821. (doReceivedAction): Use dispatcher member.
  13822. * src/BtRequestFactory.h
  13823. (BtRequestFactoryWeakHandle): New type definition.
  13824. * src/PeerStorage.h
  13825. (downloadSpeed): int -> uint32_t
  13826. (uploadSpeed): int -> uint32_t
  13827. (sessionDownloadLength): long long int -> uint64_t
  13828. (sessionUploadLength): long long int -> uint64_t
  13829. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13830. To add RecoverableException, FatalException:
  13831. * src/AbstractCommand.cc
  13832. (onAbort): Exception -> RecoverableException
  13833. * src/PeerAbstractCommand.h
  13834. (RecoverableException.h): New include.
  13835. (onAbort): Exception -> RecoverableException.
  13836. * src/PeerInteractionCommand.cc
  13837. (onAbort): Exception -> RecoverableException.
  13838. * src/PeerAbstractCommand.cc
  13839. (execute): Exception -> RecoverableException.
  13840. (onAbort): Exception -> RecoverableException.
  13841. * src/TorrentRequestInfo.cc
  13842. (execute): Exception -> RecoverableException.
  13843. * src/MetalinkRequestInfo.cc
  13844. (execute): Exception -> RecoverableException.
  13845. * src/MetaFileUtil.cc: RecoverableException.
  13846. * src/AbstractCommand.h
  13847. (onAbort): Exception -> RecoverableException.
  13848. * src/DlRetryEx.h: Exception -> RecoverableException.
  13849. * src/DlAbortEx.h: Exception -> RecoverableException.
  13850. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13851. * src/Util.cc: Exception -> RecoverableException.
  13852. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13853. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13854. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13855. To make ID static const int
  13856. * src/BtInterestedMessage.h
  13857. (ID_t): Removed.
  13858. (ID): New variable.
  13859. (getId): Made non-const.
  13860. * src/BtPieceMessage.h
  13861. (ID_t): Removed.
  13862. (ID): New variable.
  13863. (getId): Made non-const.
  13864. * src/BtChokeMessage.h
  13865. (ID_t): Removed.
  13866. (ID): New variable.
  13867. (getId): Made non-const.
  13868. * src/BtHaveAllMessage.h
  13869. (ID_t): Removed.
  13870. (ID): New variable.
  13871. (getId): Made non-const.
  13872. * src/BtKeepAliveMessage.h
  13873. (ID_t): Removed.
  13874. (ID): New variable.
  13875. (getId): Made non-const.
  13876. * src/BtHandshakeMessage.h
  13877. (ID): New variable.
  13878. (getId): Made non-const.
  13879. * src/BtSuggestPieceMessage.h
  13880. (ID_t): Removed.
  13881. (ID): New variable.
  13882. (getId): Made non-const.
  13883. * src/BtPortMessage.h
  13884. (ID_t): Removed.
  13885. (ID): New variable.
  13886. (getId): Made non-const.
  13887. * src/AbstractBtMessage.h
  13888. (id): Removed.
  13889. (AbstractBtMessage): Removed id.
  13890. (getId): Removed.
  13891. * src/BtHaveMessage.h
  13892. (ID_t): Removed.
  13893. (ID): New variable.
  13894. (getId): Made non-const.
  13895. * src/BtAllowedFastMessage.h
  13896. (ID_t): Removed.
  13897. (ID): New variable.
  13898. (getId): Made non-const.
  13899. * src/BtCancelMessage.h
  13900. (ID_t): Removed.
  13901. (ID): New variable.
  13902. (getId): Made non-const.
  13903. * src/BtNotInterestedMessage.h
  13904. (ID_t): Removed.
  13905. (ID): New variable.
  13906. (getId): Made non-const.
  13907. * src/BtChokeMessage.h
  13908. (ID_t): Removed.
  13909. (ID): New variable.
  13910. (getId): Made non-const.
  13911. * src/BtRejectMessage.h
  13912. (ID_t): Removed.
  13913. (ID): New variable.
  13914. (getId): Made non-const.
  13915. * src/BtBitfieldMessage.h
  13916. (ID_t): Removed.
  13917. (ID): New variable.
  13918. (getId): Made non-const.
  13919. * src/BtUnchokeMessage.h
  13920. (ID_t): Removed.
  13921. (ID): New variable.
  13922. (getId): Made non-const.
  13923. * src/BtRequestMessage.h
  13924. (ID_t): Removed.
  13925. (ID): New variable.
  13926. (getId): Made non-const.
  13927. * src/BtHaveMessage.h
  13928. (ID_t): Removed.
  13929. (ID): New variable.
  13930. (getId): Made non-const.
  13931. To add --force-truncate command-line option and a check whether
  13932. the file already exists:
  13933. * src/DirectDiskAdaptor.h
  13934. (getFilePath): Made virtual public.
  13935. * src/MultiDiskAdaptor.h
  13936. (File.h): New include.
  13937. (DiskWriterEntry::fileEntry): Made private.
  13938. (DiskWriterEntry::fileExists): New function.
  13939. (DiskWriterEntry::getFileEntry): New function.
  13940. (fileExists): New function.
  13941. (getFilePath): New function.
  13942. * src/TorrentRequestInfo.cc
  13943. (FatalException.h): New include.
  13944. (message.h): New include.
  13945. (RecoverableException.h): New include.
  13946. (execute): Added a check whether file is already exists or not.
  13947. * src/DiskAdaptor.h
  13948. (fileExists): New function.
  13949. (getFilePath): New function.
  13950. * src/main.cc
  13951. (showUsage): Added an explanation of --force-truncate command-line
  13952. option.
  13953. (main): Added --force-truncate command-line option.
  13954. * src/Exception.h
  13955. (setMsg): buf[256] -> buf[1024]
  13956. * src/CopyDiskWriter.h
  13957. (getFilePath): Made public virtual.
  13958. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13959. (fileExists): New function.
  13960. * src/DownloadEngineFactory.cc
  13961. (newTorrentConsoleEngine): Don't open file here.
  13962. * src/message.h
  13963. (EX_FILE_ALREADY_EXISTS): New definition.
  13964. * src/prefs.h
  13965. (PREF_FOECE_TRUNCATE): New definition.
  13966. * src/HttpResponseCommand.cc
  13967. (handleDefaultEncoding): Added a check whether the file already exists.
  13968. * src/SegmentMan.h
  13969. (fileExists): New function.
  13970. (shouldCancelDownloadForSafety): New function.
  13971. * src/FtpNegotiateCommand.cc
  13972. (recvSize): Added a check whether the file already exists.
  13973. * src/AbstractSingleDiskAdaptor.cc
  13974. (File.h): New include.
  13975. (fileExists): New function.
  13976. * src/AbstractSingleDiskAdaptor.h
  13977. (getFilePath): Removed.
  13978. (fileExists): New function.
  13979. * src/SegmentMan.cc
  13980. (fileExists): New function.
  13981. (shouldCancelDownloadForSafety): New function.
  13982. To fix regression bug in torrent downloading:
  13983. * src/DefaultBtRequestFactory.cc
  13984. (doChokedAction): New function.
  13985. * src/DefaultBtRequestFactory.h
  13986. (doChokedAction): New function.
  13987. * src/DefaultBtMessageDispatcher.cc
  13988. (doChokedAction): Do not delete request if its target is in allowed
  13989. fast set.
  13990. * src/DefaultBtInteractive.cc
  13991. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13992. (sendKeepAlive): Send keep alive message even if the outgoing message
  13993. queue is not empty.
  13994. (decideInterest): Simplified the code.
  13995. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13996. it is already called when BtChokeMessage is received from a peer.
  13997. * src/BtRequestFactory.h
  13998. (doChokedAction): New function.
  13999. To clean up code:
  14000. * src/PeerInteractionCommand.h
  14001. (executeInternal): Added virtual keyword explicitly.
  14002. (prepareForRetry): Added virtual keyword explicitly.
  14003. (prepareForNextPeer): Added virtual keyword explicitly.
  14004. (onAbort): Added virtual keyword explicitly.
  14005. * src/RequestSlot.cc
  14006. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14007. * src/BtPieceMessage.cc
  14008. (doReceivedAction): Added a debug log of piece's bitfield.
  14009. * src/Piece.h
  14010. (getBitfieldLength): New function.
  14011. * src/ByteArrayDiskWriter.cc
  14012. (clear): Added buf = 0 to avoid double free corruption.
  14013. * src/FileAllocator.cc
  14014. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14015. Added cp.reset().
  14016. * src/BitfieldMan.h
  14017. (operator=): Rewritten.
  14018. * src/BitfieldMan.cc
  14019. (BitfieldMan): Initialized bitfield, useBitfield.
  14020. * src/PeerConnection.cc
  14021. (receiveMessage): Added a call to socket->readable() after getting
  14022. message length to avoid possible EOF.
  14023. * src/Util.cc
  14024. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14025. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14026. To add an ability to pre-allocate file space:
  14027. * src/DirectDiskAdaptor.h: Rewritten.
  14028. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14029. * src/MultiDiskAdaptor.h: Rewritten.
  14030. * src/DefaultPieceStorage.cc
  14031. (MultiDiskWriter.h): Removed include.
  14032. (PreAllocationDiskWriter.h): Removed include.
  14033. (FileAllocationMonitor.h): New include.
  14034. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14035. (initStorage): Rewritten.
  14036. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14037. * src/FileAllocator.h: New class.
  14038. * src/FileAllocator.cc: New class.
  14039. * src/FileAllocationMonitor.h: New class.
  14040. * src/FileAllocationMonitor.cc: New class.
  14041. * src/ConsoleFileAllocationMonitor.h: New class.
  14042. * src/ConsoleFileAllocationMonitor.cc: New class.
  14043. * src/AbstractSingleDiskAdaptor.h: New class.
  14044. * src/AbstractSingleDiskAdaptor.cc: New class.
  14045. * src/DiskAdaptor.h
  14046. (Directory.h): Removed include.
  14047. (DiskWriter.h): Removed include.
  14048. (FileEntry.h): Removed include.
  14049. (diskWriter): Removed.
  14050. (DiskAdaptor): Removed diskWriter.
  14051. (openFile): Made pure virtual.
  14052. (closeFile): Made pure virtual.
  14053. (openExistingFile): Made pure virtual.
  14054. (initAndOpenFile): Made pure virtual.
  14055. (writeData): Made pure virtual.
  14056. (readData): Made pure virtual.
  14057. (sha1Sum): Made pure virtual.
  14058. (getStoreDir): Returns const reference of storeDir.
  14059. (DiskAdaptorHandle): New type definition.
  14060. * src/main.cc
  14061. (ConsoleFileAllocationMonitor.h): New include.
  14062. (showUsage): Added default value description of -s option.
  14063. Added the description of --file-allocation option.
  14064. (main): Set default value of --file-allocation option to 'none'.
  14065. Added --file-allocation command-line option.
  14066. Setup FileAllocationMonitorFactory.
  14067. * src/FtpInitiateConnectionCommand.cc
  14068. (executeInternal): Removed diskWriter related processing, which was
  14069. moved to FtpNegotiationCommand.cc.
  14070. * src/DirectDiskAdaptor.cc
  14071. (getFilePath): Made non-const.
  14072. * src/CopyDiskAdaptor.h
  14073. (DiskAdaptor.h): Removed include.
  14074. (DiskWriter.h): Removed include.
  14075. (AbstractSingleDiskAdaptor.h): New include.
  14076. (getFilePath): Made non-const. Added virtual keyword.
  14077. (CopyDiskAdaptor): Removed diskWriter.
  14078. (getTempFile): Returns const reference.
  14079. (CopyDiskAdaptorHandle): New type definition.
  14080. * src/ByteArrayDiskWriter.cc
  14081. (clear): Simplified.
  14082. (initAndOpenFile): Rewritten.
  14083. (openFile): Call initAndOpenFile()
  14084. * src/MultiDiskAdaptor.cc: Rewritten.
  14085. * src/DownloadEngineFactory.cc
  14086. (FileAllocator.h): New include.
  14087. (FileAllocationMonitor.h): New include.
  14088. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14089. create DefaultDiskWriter with file allocator.
  14090. * src/DiskWriter.h
  14091. (initAndOpenFile): Added totalLength argument.
  14092. (openFile): Added totalLength argument.
  14093. * src/prefs.h
  14094. (PREF_FILE_ALLOCATION): New definition.
  14095. (V_PREALLOC): New definition.
  14096. (V_NONE): New definition.
  14097. * src/HttpResponseCommand.cc
  14098. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14099. size.
  14100. * src/FtpNegotiateCommand.cc
  14101. (Util.h): New include.
  14102. (recvSize): Open file here.
  14103. * src/Util.h
  14104. (ullitos): New function.
  14105. * src/CopyDiskWriter.h
  14106. (getFilePath): Made non-const.
  14107. * src/DefaultDiskWriter.h
  14108. (Option.h): New include.
  14109. (totalLength): Removed.
  14110. (DefaultDiskWriter): Removed totalLength.
  14111. (initAndOpenFile): Added totalLength argument.
  14112. (DefaultDiskWriterHandle): New type definition.
  14113. (createNewDiskWriter): New function.
  14114. * src/Util.cc
  14115. (ullitos): New function.
  14116. * src/DefaultDiskWriter.cc
  14117. (message.h): New include.
  14118. (FileAllocator.h): New include.
  14119. (prefs.h): New include.
  14120. (Util.h): New include.
  14121. (DefaultDiskWriter): Removed totalLength.
  14122. (initAndOpenFile): Added file allocation.
  14123. (createNewDiskWriter): New function. Just for temporary solution.
  14124. It will be rewritten later.
  14125. * src/DiskAdaptor.cc
  14126. (DiskAdaptor): Removed diskWriter.
  14127. * src/AbstractDiskWriter.cc
  14128. (LogFactory.h): New include.
  14129. (AbstractDiskWriter): Added fileAllocator, logger.
  14130. (openFile): Added totalLength argument.
  14131. * src/AbstractDiskWriter.h
  14132. (FileAllocator.h): New include.
  14133. (Logger.h): New include.
  14134. (fileAllocator): New variable.
  14135. (logger): New variable.
  14136. (openFile): Added totalLength argument. Added virtual keyword
  14137. explicitly.
  14138. (openExistingFile): Added totalLength argument. Added virtual keyword
  14139. explicitly.
  14140. (closeFile): Added virtual keyword explicitly.
  14141. (sha1Sum): Added virtual keyword explicitly.
  14142. (writeData): Added virtual keyword explicitly.
  14143. (readData): Added virtual keyword explicitly.
  14144. (setFileAllocator): New function.
  14145. * src/DefaultPieceStorage.h
  14146. (FileAllocator.h): New include.
  14147. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14148. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14149. * src/FileProgressMonitor.h: New class.
  14150. To compile aria2 on PC-BSD:
  14151. * src/DefaultBtContext.cc
  14152. (libgen.h): New include.
  14153. To fix memory leak:
  14154. * src/Exception.h
  14155. (~Exception): Delete cause. Fixed memory leak.
  14156. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14157. Rewritten a portion of bittorrent implementation:
  14158. * src/BtMessageValidator.h: New class.
  14159. * src/BtBitfieldMessageValidator.h: New class.
  14160. * src/BtHandshakeMessageValidator.h: New class.
  14161. * src/BtRequestMessageValidator.h: New class.
  14162. * src/BtSuggestPieceMessageValidator.h: New class.
  14163. * src/BtAllowedFastMessageValidator.h: New class.
  14164. * src/BtRejectMessageValidator.h: New class.
  14165. * src/BtCancelMessageValidator.h: New class.
  14166. * src/BtPieceMessageValidator.h: New class.
  14167. * src/BtHaveMessageValidator.h: New class.
  14168. * src/BtEventListener.h: New class.
  14169. * src/AbstractBtEventListener.h: New class.
  14170. * src/BtEvent.h: New class.
  14171. * src/BtChokingEvent.h: New class.
  14172. * src/BtChokedEvent.h: New class.
  14173. * src/BtCancelSendingPieceEvent.h: New class.
  14174. * src/BtAbortOutstandingRequestEvent.h: New class.
  14175. * src/Randomizer.h: New class.
  14176. * src/SimpleRandomizer.h: New class.
  14177. * src/BtMessage.h: New class.
  14178. * src/AbstractBtMessage.h: New class.
  14179. * src/SimpleBtMessage.h: New class.
  14180. * src/BtHaveMessage.h: New class.
  14181. * src/BtInterestedMessage.h: New class.
  14182. * src/BtAllowedFastMessage.h: New class.
  14183. * src/BtUnchokeMessage.h: New class.
  14184. * src/BtCancelMessage.h: New class.
  14185. * src/BtNotInterestedMessage.h: New class.
  14186. * src/BtChokeMessage.h: New class.
  14187. * src/BtHaveNoneMessage.h: New class.
  14188. * src/BtHandshakeMessage.h: New class.
  14189. * src/BtSuggestPieceMessage.h: New class.
  14190. * src/BtHaveMessage.h: New class.
  14191. * src/BtPieceMessage.h: New class.
  14192. * src/BtHaveAllMessage.h: New class.
  14193. * src/BtKeepAliveMessage.h: New class.
  14194. * src/BtPortMessage.h: New class.
  14195. * src/BtRejectMessage.h: New class.
  14196. * src/BtBitfieldMessage.h: New class.
  14197. * src/BtRequestMessage.h: New class.
  14198. * src/DefaultBtRequestFactory.h: New class.
  14199. * src/DefaultBtMessageReceiver.h: New class.
  14200. * src/BtInteractive.h: New class.
  14201. * src/BtMessageDispatcher.h: New class.
  14202. * src/DefaultBtMessageDispatcher.h: New class.
  14203. * src/DefaultBtInteractive.h: New class.
  14204. * src/BitfieldManFactory.h: New class.
  14205. * src/HandleRegistry.h: New class.
  14206. * src/BtMessageFactory.h: New class.
  14207. * src/BtMessageReceiver.h: New class.
  14208. * src/DefaultBtMessageFactory.h: New class.
  14209. * src/PeerObject.h: New class.
  14210. * src/BtRequestFactory.h: New class.
  14211. * src/SuggestPieceMessage.h: Removed.
  14212. * src/PortMessage.h: Removed.
  14213. * src/SuggestPieceMessage.h: Removed.
  14214. * src/KeepAliveMessage.h: Removed.
  14215. * src/HandshakeMessage.h: Removed.
  14216. * src/PeerInteraction.h: Removed.
  14217. * src/UnchokeMessage.h: Removed.
  14218. * src/PieceMessage.h: Removed.
  14219. * src/RequestMessage.h: Removed.
  14220. * src/InterestedMessage.h: Removed.
  14221. * src/HaveMessage.h: Removed.
  14222. * src/CancelMessage.h: Removed.
  14223. * src/RejectMessage.h: Removed.
  14224. * src/AllowedFastMessage.h: Removed.
  14225. * src/HaveNoneMessage.h: Removed.
  14226. * src/SimplePeerMessage.h: Removed.
  14227. * src/HaveAllMessage.h: Removed.
  14228. * src/BitfieldMessage.h: Removed.
  14229. * src/PeerMessageFactory.h: Removed.
  14230. * src/NotInterestedMessage.h: Removed.
  14231. * src/ChokeMessage.h: Removed.
  14232. * src/PeerMessage.h: Removed.
  14233. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14234. To know root cause of exception:
  14235. * src/Exception.h
  14236. (cause): New variable.
  14237. (Exception): Added a parameter.
  14238. (getMsg): Return const reference to msg.
  14239. (getCause): New function.
  14240. * src/DlRetryEx.h
  14241. (DlRetryEx): Added a parameter 'cause'.
  14242. Added an overloaded constructor.
  14243. (DlAbortEx): Added a parameter 'cause'.
  14244. Added an overloaded constructor.
  14245. * src/SimpleLogger.cc
  14246. (writeLog): Log nested exception messages recursively.
  14247. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14248. * src/DefaultBtProgressInfoFile.cc
  14249. (load): Fixed memory leak when the infohash doesn't match.
  14250. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14251. * src/DefaultPeerStorage.cc
  14252. (calculateStat): Simplified the code by combining 2 loops into 1.
  14253. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14254. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14255. for BitTorrent download:
  14256. * src/PeerAbstractCommand.cc
  14257. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14258. * src/main.cc:
  14259. (timeoutSpecified): Removed.
  14260. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14261. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14262. * src/TorrentRequestInfo.cc
  14263. (timeoutSpecified): Removed.
  14264. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14265. timeout value.
  14266. * src/prefs.h
  14267. (PREF_BT_TIMEOUT): New definition.
  14268. Delete unused variables:
  14269. * src/TorrentRequestInfo.cc
  14270. (requestInfo): Removed.
  14271. Move setSignalHander to Util::setGlobalSignalHandler:
  14272. * src/TorrentRequestInfo.cc:
  14273. setSignalHander -> Util::setGlobalSignalHandler
  14274. * src/main.cc
  14275. (setSignalHander): Removed.
  14276. (main): setSignalHander -> Util::setGlobalSignalHandler
  14277. * src/Util.h
  14278. (setGlobalSignalHandler): New function.
  14279. * src/Util.cc
  14280. (setGlobalSignalHandler): New function.
  14281. * src/UrlRequestInfo.cc:
  14282. setSignalHander -> Util::setGlobalSignalHandler
  14283. Reset peer status in order to exit gracefully:
  14284. * src/PeerAbstractCommand.cc
  14285. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14286. To fix the bug that causes the number of bytes uploaded is not saved
  14287. to .aria2 file:
  14288. * src/DefaultPeerStorage.h
  14289. (removedPeerSessionDownloadLength): New variable.
  14290. (removedPeerSessionUploadLength): New variable.
  14291. * src/DefaultPeerStorage.cc
  14292. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14293. removedPeerSessionUploadLength(0).
  14294. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14295. through all peers, and then add removedPeerSessionDownloadLength(
  14296. removedPeerSessionUploadLength) to it.
  14297. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14298. (to) the peer to removedPeerSessionDownloadLength
  14299. (removedPeerSessionUploadLength).
  14300. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14301. To add Metalink location option:
  14302. * src/MetalinkRequestInfo.cc
  14303. (execute): Call MetalinkEntry::setLocationPreference()
  14304. * src/main.cc
  14305. (showUsage): Added the help message for --metalink-location option.
  14306. (main): Added --metalink-location option.
  14307. * src/prefs.h
  14308. (PREF_METALINK_LOCATION): New definition.
  14309. * src/MetalinkEntry.cc
  14310. (AddLocationPreference): New function object.
  14311. (setLocationPreference): New function.
  14312. * src/Xml2MetalinkProcessor.cc
  14313. (getResource): Set location attribute to MetalinkResource
  14314. To show URLs to download
  14315. * src/UrlRequestInfo.h
  14316. (printUrls): New function.
  14317. To add multiple <file> Metalink support:
  14318. * src/MetalinkEntry.h
  14319. (MetalinkResources): Removed.
  14320. (setLocationPreference): New function.
  14321. (MetalinkEntryHandle): New type definition.
  14322. (MetalinkEntries): New type definition.
  14323. * src/Xml2MetalinkProcessor.h
  14324. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14325. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14326. (parseFile): Metalinker* -> MetalinkerHandle
  14327. * src/UrlRequestInfo.h
  14328. (execute): RequestInfo* -> RequestInfos
  14329. * src/MetalinkRequestInfo.cc
  14330. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14331. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14332. (execute): RequestInfo* -> RequestInfos
  14333. Added multiple <file> support. Print filename when it is queued.
  14334. * src/MetalinkRequestInfo.h
  14335. (execute): RequestInfo* -> RequestInfos
  14336. (getDownloadEngine): Removed.
  14337. * src/RequestInfo.h
  14338. (RequestInfoHandle): New type definition.
  14339. (RequestInfos): New type definition.
  14340. (execute): RequestInfo* -> RequestInfos
  14341. (getDownloadEngine): Removed.
  14342. * src/MetalinkResource.h
  14343. (MetalinkResourceHandle): New type definition.
  14344. (MetalinkResources): New type definition.
  14345. * src/MetalinkEntry.cc
  14346. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14347. because the element is now of type MetalinkResourceHandle.
  14348. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14349. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14350. (dropUnsupportedResource): Removed the deletion of the elements of
  14351. resources because the element is now of type MetalinkResourceHandle.
  14352. * src/Xml2MetalinkProcessor.cc
  14353. (parseFile): Metalinker* -> MetalinkerHandle
  14354. MetalinkEntry* -> MetalinkEntryHandle
  14355. Removed try-catch block.
  14356. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14357. MetalinkResource* -> MetalinkResourceHandle
  14358. Removed try-catch block.
  14359. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14360. Free result by using xmlXPathFreeObject()
  14361. * src/Metalinker.cc
  14362. (~Metalinker): Removed the deletion of entries.
  14363. MetalinkEntry* -> MetalinkEntryHandle
  14364. (queryEntry): Add multiple <file> Metalink support.
  14365. * src/Metalinker.h
  14366. (MetalinkEntries): Removed.
  14367. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14368. * src/MetalinkProcessor.h
  14369. (parseFile): Metalinker* -> MetalinkerHandle
  14370. Bug fixes:
  14371. * src/PeerChokeCommand.cc
  14372. (execute): cat01->cat02
  14373. * src/DefaultPieceStorage.cc
  14374. (DefaultPieceStorage): Added diskAdaptor(0)
  14375. * src/TrackerWatcherComand.cc:
  14376. (execute): Use btAnnounce->noMoreAnnounce()
  14377. to determin whether the function returns true or not.
  14378. * src/TrackerUpdateCommand.cc:
  14379. (execute): Use btAnnounce->noMoreAnnounce()
  14380. to determin whether the function returns true or not.
  14381. * src/FtpConnection.cc
  14382. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14383. This is the fix of the busy loop bug.
  14384. * src/DownloadCommand.cc
  14385. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14386. cached PeerStat.
  14387. The value of "name" entry in torrent file is now set by
  14388. *DiskAdaptor::setTopDir(...) methods.
  14389. * src/MultiDiskAdaptor.h
  14390. (topDir): New variable.
  14391. (setTopDir): New function.
  14392. (getTopDir): New function.
  14393. * src/MultiDiskAdaptor.cc
  14394. (getFilePath): Concat storDir, "/" and topDir.
  14395. (mkdir): Use getFilePath() to get the directory path for output.
  14396. * src/DefaultPieceStorage.cc
  14397. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14398. CopyDiskAdaptor.
  14399. * src/CopyDiskAdaptor.h
  14400. (topDir): New variable.
  14401. (setTopDir): New function.
  14402. (getTopDir): New function.
  14403. * src/CopyDiskAdaptor.cc
  14404. (fixFilename): Updated.
  14405. Misc
  14406. * src/UrlRequestInfo.h
  14407. (e): Removed.
  14408. (UrlRequestInfo): Removed e.
  14409. (getDownloadEngine): Removed.
  14410. * src/UrlRequestInfo.cc
  14411. (handler): Rewritten.
  14412. (printUrls): New function.
  14413. (execute): Call printUrls().
  14414. * src/HandshakeMessage.cc
  14415. (check): peerinteraction->getBtContext() -> btContext
  14416. * src/PeerInteraction.h
  14417. (getBtContext): Removed.
  14418. * src/TorrentRequestInfo.h
  14419. (execute): RequestInfo* -> RequestInfos
  14420. (getDownloadEngine): Removed.
  14421. * src/TorrentRequestInfo.cc
  14422. (haltRequested): Removed.
  14423. (btHaltRequested): New variable.
  14424. (torrentHandler): haltRequested -> btHaltRequested
  14425. (execute): RequestInfo* -> RequestInfos
  14426. * src/TorrentConsoleDownloadEngine.cc
  14427. (afterEachIteration): haltRequested -> btHaltRequested.
  14428. * src/ConsoleDownloadEngine.h
  14429. (initStatistics): Added virtual.
  14430. (calculateStatistics): Added virtual.
  14431. (onEndOfRun): Added virtual.
  14432. (afterEachIteration): Added virtual.
  14433. * src/ConsoleDownloadEngine.cc
  14434. (haltRequested): New variable.
  14435. (afterEachIteration): New function.
  14436. * src/main.cc
  14437. (requestInfo): Removed.
  14438. * src/SegmentMan.cc
  14439. (findSlowerSegmentEntry): Refactored.
  14440. * Release 0.9.0
  14441. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14442. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14443. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14444. * src/TorrentMan.h: Removed.
  14445. * src/TorrentMan.cc: Removed.
  14446. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14447. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14448. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14449. * src/PeerAbstractCommand.cc: Use btRuntime.
  14450. * src/BtContextAwareCommand.h: New class.
  14451. * src/FileEntry.h: Added accessor methods for following variables.
  14452. (path): Made private.
  14453. (length): Made private.
  14454. (offset): Made private.
  14455. (extracted): Made private.
  14456. (requested): Made private.
  14457. (FileEntries): New definition.
  14458. (FileEntryHandle): New definition.
  14459. * src/FileEntry.cc: New file.
  14460. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14461. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14462. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14463. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14464. * src/PieceStorage.h: New file.
  14465. * src/PeerInteractionCommand.h: Use btContext.
  14466. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14467. btRuntime.
  14468. * src/DefaultBtProgressInfoFile.h: New file.
  14469. * src/DefaultBtProgressInfoFile.cc: New file.
  14470. * src/File.cc
  14471. (Util.h): New include.
  14472. (mkdirs): New function.
  14473. * src/MultiDiskAdaptor.h
  14474. (mkdir): New function.
  14475. * src/PeerListProcessor.h
  14476. (Peers): Removed.
  14477. * src/PeerInteraction.h
  14478. (torrentMan): Removed.
  14479. (btContext): New variable.
  14480. (peerStorage): New variable.
  14481. (pieceStorage): New variable.
  14482. (btAnnounce): New variable.
  14483. (getTorrentMan): Removed.
  14484. (getBtContext): New function.
  14485. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14486. btAnnounce.
  14487. * src/HandshakeMessage.h
  14488. (TorrentMan.h): Removed.
  14489. * src/HandshakeMessage.cc: Use btContext.
  14490. * src/DefaultBtAnnounce.cc: New file.
  14491. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14492. * src/DefaultPieceStorage.cc: New file.
  14493. * src/DefaultBtContext.h: New file.
  14494. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14495. Use the accessor methods of FileEntry.
  14496. * src/CookieBox.cc: Updated to use Util::slice().
  14497. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14498. * src/common.h (SharedHandle.h): New include.
  14499. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14500. pieceStorage.
  14501. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14502. * src/DiskAdaptor.h
  14503. (topDir): Removed.
  14504. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14505. (setTopDir): Removed.
  14506. (getTopDir): Removed.
  14507. * src/BtContext.h: New file.
  14508. * src/DefaultPeerStorage.h: New file.
  14509. * src/PieceMessage.h (TorrentMan.h): Removed.
  14510. * src/RequestMessage.h (TorrentMan.h): Removed.
  14511. * src/TorrentDownloadEngine.h
  14512. (uploadLength): New variable.
  14513. (btContext): New variable.
  14514. (btRuntime): New variable.
  14515. (pieceStorage): New variable.
  14516. (peerStorage): New variable.
  14517. (btAnnounce): New variable.
  14518. (btProgressInfoFile): New variable.
  14519. (torrentMan): Removed.
  14520. (setBtContext): New function.
  14521. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14522. peerStorage, btAnnounce, btProgressInfoFile.
  14523. * src/Piece.h
  14524. (toString): New function.
  14525. (Pieces): New type definition.
  14526. * src/Peer.h
  14527. (active): New variable.
  14528. (Peer): Added active.
  14529. (activate): Set active to true.
  14530. (deactivate): Set active to false.
  14531. (isActive): New function.
  14532. (Peers): New type definition.
  14533. * src/DirectDiskAdaptor.cc
  14534. (getFilePath): Use the accessor methods of FileEntry.
  14535. * src/TorrentConsoleDownloadEngine.h
  14536. (afterEachIteration): New function.
  14537. * src/TorrentConsoleDownloadEngine.cc
  14538. (haltRequested): New variable.
  14539. (sendStatistics): Use pieceStorage, btRuntime.
  14540. (afterEachIteration): New function.
  14541. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14542. * src/Directry.h
  14543. (Directory): New function.
  14544. (DirectoryHandle): New type definition.
  14545. * src/BtProgressInfoFile.h: New file.
  14546. * src/RequestMessage.cc: Use pieceStorage.
  14547. * src/BtRuntime.h: New file.
  14548. * src/DefaultBtContext.cc: New file.
  14549. * src/BitfieldMan.h
  14550. (getCompletedLength): New function(private).
  14551. (getCompletedLength): New function.
  14552. (getFilteredCompletedLength): New function.
  14553. * src/BitfieldMan.h
  14554. (getCompletedLength): New function(private).
  14555. (getCompletedLength): New function.
  14556. (getFilteredCompletedLength): New function.
  14557. * src/MultiDiskAdaptor.cc
  14558. (mkdir): New function.
  14559. (openFile): Call mkdir().
  14560. (initAndOpenFile): Call mkdir().
  14561. * src/CancelMessage.h
  14562. (TorrentMan.h): Removed.
  14563. * src/RejectMessage.h
  14564. (TorrentMan.h): Removed.
  14565. * src/DownloadEngineFactory.cc
  14566. (DefaultPieceStorage.h): New include.
  14567. (DefaultPeerStorage.h): New include.
  14568. (DefaultBtAnnounce.h): New include.
  14569. (DefaultBtProgressInfoFile.h): New include.
  14570. (newTorrentConsoleEngine): Rewritten.
  14571. * src/ShareRatioSeedCriteria.h
  14572. (torrentMan): Removed.
  14573. (btContext): New variable.
  14574. (peerStorage): New variable.
  14575. (btRuntime): New variable.
  14576. (evaluate): Use btContext, btRuntime, peerStorage.
  14577. * src/AnnounceTier.h: New file.
  14578. * src/BtAnnounce.h: New file.
  14579. * src/BtRegistry.h: New file.
  14580. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14581. * src/PeerConnection.h (TorrentMan.h): Removed.
  14582. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14583. * src/Util.h
  14584. (slice): Added an argument.
  14585. * src/Util.cc
  14586. (slice): Added an argument to control whether trim is made or not.
  14587. * src/PeerStorage.h: New file.
  14588. * src/BtRegistry.cc: New file.
  14589. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14590. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14591. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14592. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14593. * src/TorrentRequestInfo.h
  14594. (e): Removed.
  14595. (showFileEntry): Added an argument.
  14596. (getDownloadEngine): Return 0.
  14597. * src/DefaultBtAnnounce.h: New file.
  14598. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14599. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14600. * src/PeerMessageFactory.h
  14601. (btContext): New variable.
  14602. (pieceStorage): New variable.
  14603. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14604. btAnnounce.
  14605. * src/DiskAdaptor.cc
  14606. (DiskAdaptor): Removed topDir.
  14607. (~DiskAdaptor): Removed topDir.
  14608. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14609. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14610. * src/File.h (mkdirs): New function.
  14611. * src/DefaultPeerStorage): New file.
  14612. * src/DownloadEngineFactory.h
  14613. (newTorrentConsoleEngine): Use btContext.
  14614. * src/BtContextAwareCommand.cc: New file.
  14615. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14616. * src/PeerMessage.h
  14617. (btContext): New variable.
  14618. (peerStorage): New variable.
  14619. (pieceStorage): New variable.
  14620. (setBtContext): New function.
  14621. * src/Directry.cc
  14622. (Directory): New function.
  14623. (createDir): Do nothing if name.size() == 0.
  14624. * src/AnnounceList.h
  14625. (AnnounceTier): Removed.
  14626. (AnnounceTiers): Removed.
  14627. * src/DefaultPieceStorage.h: New file.
  14628. * src/Piece.cc (toString): New function.
  14629. To fix typo:
  14630. * src/main.cc (showVersion): Fixed typo.
  14631. To fix compile warning:
  14632. * src/DelegatingPeerListProcessor.cc
  14633. (canHandle): Added "return false".
  14634. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14635. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14636. make the process of announce request testable.
  14637. * src/TrackerWatcherCommand.h
  14638. (TimeA2.h): Removed.
  14639. (interval): Removed.
  14640. (checkPoint): Removed.
  14641. (createRequestCommand): Added an argument 'url'.
  14642. (TrackerWatherCommand): Removed interval.
  14643. (createCommand): New function.
  14644. * src/DownloadEngineFactory.cc
  14645. (newTorrentConsoleEngine): Updated according to the changes in
  14646. TrackerWatherCommand.
  14647. * src/TorrentMan.cc
  14648. (DelegatingPeerListProcessor.h): New includes.
  14649. (TorrentMan): Added the initialization of announceInterval.
  14650. (isStoppedAnnounceReady): New function.
  14651. (isCompletedAnnounceReady): New function.
  14652. (isDefaultAnnounceReady): New function.
  14653. (isAnnounceReady): New function.
  14654. (getAnnounceUrl): New function.
  14655. (announceStart): New function.
  14656. (announceFailure): New function.
  14657. (announceSuccess): New function.
  14658. (isAllAnnounceFailed): New function.
  14659. (resetAnnounce): New function.
  14660. (processAnnounceResponse): New function.
  14661. (needMorePeerConnection): New function.
  14662. (noMoreAnnounce): New function.
  14663. * src/TrackerUpdateCommand.h
  14664. (getTrackerResponse): int->size_t
  14665. * src/TorrentMan.h
  14666. (isStoppedAnnounceReady): New function.
  14667. (isCompletedAnnounceReady): New function.
  14668. (isDefaultAnnounceReady): New function.
  14669. (announceInterval): New variable.
  14670. (isAnnounceReady): New function.
  14671. (getAnnounceUrl): New function.
  14672. (announceStart): New function.
  14673. (announceFailure): New function.
  14674. (announceSuccess): New function.
  14675. (isAllAnnounceFailed): New function.
  14676. (resetAnnounce): New function.
  14677. (processAnnounceResponse): New function.
  14678. (needMorePeerConnection): New function.
  14679. (noMoreAnnounce): New function.
  14680. * src/TrackerWatcherCommand.cc
  14681. (TrackerWatherCommand): Removed interval and checkPoint.
  14682. (execute): Rewritten.
  14683. (createCommand): New function.
  14684. (createRequestCommand): Rewritten.
  14685. * src/TrackerUpdateCommand.cc
  14686. (MetaFileUtil.h): Removed.
  14687. (DelegatingPeerListProcessor.h): Removed.
  14688. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14689. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14690. Request -> RequestHandle:
  14691. * src/HttpResponseCommand.h: Request->RequestHandle
  14692. * src/AbstractCommand.cc: Request->RequestHandle
  14693. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14694. * src/HttpRequestCommand.cc: Request->RequestHandle
  14695. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14696. * src/AbstractCommand.h: Request->RequestHandle
  14697. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14698. * src/HttpResponseCommand.cc: Request->RequestHandle
  14699. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14700. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14701. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14702. * src/HttpConnection.h: Request->RequestHandle
  14703. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14704. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14705. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14706. * src/DownloadCommand.h: Request->RequestHandle
  14707. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14708. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14709. * src/HttpRequestCommand.h: Request->RequestHandle
  14710. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14711. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14712. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14713. * src/HttpDownloadCommand.h: Request->RequestHandle
  14714. * src/FtpConnection.cc: Request->RequestHandle
  14715. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14716. * src/UrlRequestInfo.cc: Request->RequestHandle
  14717. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14718. * src/HttpConnection.h: Request->RequestHandle
  14719. * src/DownloadCommand.cc: Request->RequestHandle
  14720. * src/FtpConnection.h: Request->RequestHandle
  14721. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14722. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14723. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14724. * src/Request.h
  14725. (SharedHandle.h): New include.
  14726. (RequestHandle): New type definition.
  14727. (Requests): Redefined.
  14728. To add MULTITRACKER support:
  14729. * src/TrackerWatcherCommand.h
  14730. (createRequestCommand): New function.
  14731. * src/DownloadEngineFactory.cc
  14732. (newTorrentConsoleEngine): Removed req.
  14733. * src/prefs.h
  14734. (PREF_TRACKER_MAX_TRIES): New definition.
  14735. * src/TorrentMan.cc
  14736. (TorrentMan): Removed req. Added trackerNumTry.
  14737. (~TorrentMan): Removed req.
  14738. (setupInternal1): Added announceList.
  14739. * src/TorrentRequestInfo.cc
  14740. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14741. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14742. * src/main.cc
  14743. (main): Added PREF_TRACKER_MAX_TRIES.
  14744. * src/TorrentMan.h
  14745. (Request.h): Removed.
  14746. (AnnounceList.h): New include.
  14747. (trackerNumTry): New variable.
  14748. (req): Removed.
  14749. (announceList): New variable.
  14750. * src/TrackerWatcherCommand.cc
  14751. (execute): Rewritten.
  14752. (createRequestCommand): New function.
  14753. * src/TrackerUpdateCommand.cc
  14754. (execute): Updated with the use of AnnounceList.
  14755. * src/AnnounceList.cc: New class.
  14756. * src/AnnounceList.h: New class.
  14757. To fix typo:
  14758. * src/prefs.h
  14759. (PREF_MAX_TRIES): max_try->max_tries
  14760. To not to decode "+" as space in URL decode:
  14761. * src/Util.cc
  14762. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14763. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14764. To add timeout to async name resolution:
  14765. * src/AbstractCommand.h
  14766. (nameResolveFinished): New function. This is not elegant way. It needs
  14767. to be more refined.
  14768. (nameResolverCheck): New variable.
  14769. * src/AbstractCommand.cc
  14770. (AbstractCommand): Added nameResolverCheck.
  14771. (execute): Added the check whether the name resolution has finished.
  14772. (setNameResolverCheck): Set nameResolverCheck to true.
  14773. (disableNameResolverCheck): Set nameResolverCheck to false.
  14774. (nameResolverFinished): New function.
  14775. * src/FtpInitiateConnectionCommand.h
  14776. (nameResolverFinished): New function.
  14777. * src/FtpInitiateConnectionCommand.cc
  14778. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14779. * src/HttpInitiateConnectionCommand.h
  14780. (nameResolverFinished): New function.
  14781. * src/HttpInitiateConnectionCommand.cc
  14782. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14783. * src/prefs.h
  14784. (PREF_DNS_TIMEOUT): New definition.
  14785. * src/main.cc
  14786. (main): Added PREF_DNS_TIMEOUT.
  14787. To add the support for a non-compact response from a tracker:
  14788. * src/PeerListProcessor.h: New class.
  14789. * src/DefaultPeerListProcessor.h: New class.
  14790. * src/DefaultPeerListProcessor.cc: New class.
  14791. * src/CompactPeerListProcessor.h: New class.
  14792. * src/CompactPeerListProcessor.cc: New class.
  14793. * src/DelegatingPeerListProcessor.h: New class.
  14794. * src/DelegatingPeerListProcessor.cc: New class.
  14795. * src/TorrentMan.cc
  14796. (addPeer): New function(overload).
  14797. (addPeer): Delete unused peers only when new peer is added.
  14798. * src/TorrentMan.h
  14799. (PeerListProcessor.h): Included.
  14800. (Peers): Removed.
  14801. (addPeer): New function(overload).
  14802. * src/TrackerUpdateCommand.cc
  14803. (netinet/in.h): Removed.
  14804. (DelegatingPeerListProcessor.h): Included.
  14805. (execute): Updated to use DelegatingPeerListProcessor.
  14806. To fix the memory leak in TorrentMan::peers:
  14807. * src/PeerAbstractCommand.cc
  14808. (onAbort): Added peer->resetStatus().
  14809. * src/Peer.h
  14810. (resetStatus): Made public.
  14811. To improve the precision of the speed calculation:
  14812. * src/SpeedCalc.h
  14813. (nextInterval): New variable.
  14814. * src/SpeedCalc.cc
  14815. (reset): Added nextInterval.
  14816. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14817. (changeSw): Set nextInterval to 15 seconds relative to the current
  14818. instant time.
  14819. * src/main.cc
  14820. (showVersion): Updated.
  14821. (showUsage): Updated.
  14822. * Release 0.8.1
  14823. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14824. * src/main.cc
  14825. (showUsage): Commented out --min-segment-size option.
  14826. (main): Commented out --min-segment-size option.
  14827. * Release 0.8.0
  14828. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14829. * src/*.{h,cc}:
  14830. Added an exception to the license which allows linking with OpenSSL.
  14831. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14832. * src/AbstractCommand.cc
  14833. (execute): Check whether the download has finished before checking
  14834. socket status.
  14835. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14836. Do not exit even if no segment is available.
  14837. * src/prefs.h
  14838. (PREF_STARTUP_IDLE_TIME): New definition.
  14839. * src/PeerInteractionCommand.cc
  14840. (executeInternal): Removed max speed limit. Because it performs bad.
  14841. (receiveMessages): Added max speed limit. This was better than above,
  14842. but still a little bit to be desired. Sometimes the download speed
  14843. became much faster than I specified.
  14844. * src/SpeedCalc.h
  14845. (start): New variable.
  14846. (accumulatedLength): New variable.
  14847. (getAvgSpeed): New function.
  14848. * src/SpeedCalc.cc
  14849. (reset): Added start, accumulatedLength.
  14850. (update): Added calculation of an average speed.
  14851. (getAvgSpeed): New function.
  14852. * src/DownloadCommand.h
  14853. (sw): Removed.
  14854. * src/main.cc
  14855. (main): Added PREF_STARTUP_IDLE_TIME.
  14856. * src/PeerStat.h
  14857. (STATUS): Added REQUEST_IDLE.
  14858. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14859. (getAvgDownloadSpeed): New function
  14860. (requestIdle): New function.
  14861. * src/SegmentMan.h
  14862. (SegmentEntryHandle): New type definition.
  14863. (SegmentEntries): Now holds SegmentEntryHandle.
  14864. (findSlowerSegmentEntry): New funtion.
  14865. * src/SegmentMan.cc
  14866. (save): Updated according to the changes in SegmentEntries.
  14867. (read): Updated according to the changes in SegmentEntries.
  14868. (FindSegmentEntryByIndex): Updated according to the changes in
  14869. SegmentEntries.
  14870. (FindSegmentEntryByCuid): Updated according to the changes in
  14871. SegmentEntries.
  14872. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14873. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14874. Renamed uitr as itr.
  14875. (findSlowerSegmentEntry): New function.
  14876. (getSegment): Updated according to the changes in SegmentEntries.
  14877. Added the feature that cancels the segment with slow server and fast
  14878. one takes it over.
  14879. (cancelSegment): Updated according to the changes in SegmentEntries.
  14880. (getDownloadLength): Updated according to the changes in
  14881. SegmentEntries.
  14882. (init): Assigned 0 to bitfield after deleting it.
  14883. * src/DownloadCommand.cc
  14884. (STARTUP_IDLE_TIME): Removed.
  14885. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14886. * src/PeerChokeCommand.cc
  14887. (optUnchokingPeer): Updated according to the changes in Peer.
  14888. (ResetDelta): Removed.
  14889. (UploadFaster): Updated according to the changes in Peer.
  14890. (DownloadFaster): Updated according to the changes in Peer.
  14891. (execute): I clarify the meaning of "upload" and "download" here.
  14892. "upload" means the transfer from localhost to remote host.
  14893. "download" means the transfer from remote host to localhost.
  14894. Based on this rule, I swapped orderByUploadRate and
  14895. orderByDownloadRate.
  14896. * src/PeerInteractionCommand.cc
  14897. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14898. (executeInternal): Removed the argument of
  14899. peerInteraction->sendMessages().
  14900. (receiveMessages): Rewritten download speed limit.
  14901. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14902. * src/HttpResponseCommand.cc
  14903. (handleDefaultEncoding): If file size is unknown in torrent request,
  14904. do not call segmentMan->initBitfield() here.
  14905. Disabled persistent connection feature in torrent request.
  14906. * src/UrlRequestInfo.h
  14907. (UrlRequestInfo): Removed const qualifier from option.
  14908. * src/TorrentMan.h
  14909. (TransferStat): New class.
  14910. (deltaDownloadLength): Removed.
  14911. (deltaUploadLength): Removed.
  14912. (addDeltaDownloadLength): Removed.
  14913. (getDeltaDownloadLength): Removed.
  14914. (resetDeltaDownloadLength): Removed.
  14915. (addDeltaUploadLength): Removed.
  14916. (getDeltaUploadLength): Removed.
  14917. (resetDeltaUploadLength): Removed.
  14918. (addActivePeer): Added peer->activate().
  14919. (deleteActivePeer): Added peer->deactivate().
  14920. (calculateStat): New function.
  14921. * src/TorrentMan.cc
  14922. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14923. (calculateStat): New function.
  14924. * src/PeerInteraction.h
  14925. (uploadLimit): Removed.
  14926. (option): New variable.
  14927. (setUploadLimit): Removed.
  14928. (getUploadSpeed): Removed.
  14929. (sendMessages): Removed the argument "currentUploadSpeed".
  14930. * src/PeerInteraction.cc
  14931. (prefs.h): Included.
  14932. (PeerInteraction): Removed uploadLimit. Added option.
  14933. (sendMessages): Rewritten upload speed limit.
  14934. (sendHandshake): Removed the argument from sendMessages().
  14935. (sendBitfield): Removed the argument from sendMessages().
  14936. * src/PeerAbstractCommand.cc
  14937. (execute): Commented out the portion of upload limit.
  14938. (onAbort): Removed peer->resetStatus().
  14939. * src/TorrentRequestInfo.cc
  14940. (timeoutSpecified): Declared extern.
  14941. (execute): Set timeout to 180 if timeout is not specified by.
  14942. command-line.
  14943. * src/PieceMessage.cc
  14944. (receivedAction): Added peer->updateDownloadLength().
  14945. Removed peer->addPeerUpload().
  14946. Removed torrentMan->addDeltaDownloadLength().
  14947. (send): Added peer->updateUploadLength().
  14948. Removed peer->addPeerDownload().
  14949. Removed torrentMan->addDeltaUploadLength().
  14950. * src/main.cc
  14951. (timeoutSpecified): New variable.
  14952. (main): Set timeoutSpecified to false.
  14953. If the command-line option "--upload-limit" is specified, then
  14954. timeoutSpecified is set to true. This option will remain in the next
  14955. release, but be deprecated in the future release.
  14956. * src/TorrentRequestInfo.h
  14957. (TorrentRequestInfo): Removed const qualifier from op.
  14958. * src/PeerStat.h
  14959. (uploadSpeed): New variable.
  14960. (PeerStat): Added default value to cuid.
  14961. (calculateUploadSpeed): New function.
  14962. (updateUploadLength): New function.
  14963. (getMaxUploadSpeed): New function.
  14964. (getAvgUploadSpeed): New function.
  14965. (reset): Added uploadSpeed. Set status to IDLE.
  14966. * src/TorrentDownloadEngine.h
  14967. (cp): Declared as Time.
  14968. (sessionDownloadLengthArray): Removed.
  14969. (sessionUploadLengthArray): Removed.
  14970. (currentCp): Removed.
  14971. (lastCalcStat): New variable
  14972. (lastElapsed): Removed.
  14973. (sessionDownloadLength): Removed.
  14974. (calculateStat): New function.
  14975. * src/TorrentDownloadEngine.cc
  14976. (initStatistics): Removed lastElapsed, cp[],
  14977. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14978. currentCp, sessionDownloadLength.
  14979. Added cp.reset() and lastCalcStat.reset().
  14980. (calculateSpeed): Changed the name of the argument.
  14981. (calculateStatistics): Rewritten.
  14982. (calculateStat): New function.
  14983. * src/Peer.h
  14984. (PeerStat.h): Included.
  14985. (peerUpload): Removed.
  14986. (peerDownload): Removed.
  14987. (peerStat): New variable.
  14988. (sessionUploadLength): New variable.
  14989. (sessionDownloadLength): New variable.
  14990. (deltaUpload): Removed.
  14991. (deltaDownload): Removed.
  14992. (resetStatus): Made private.
  14993. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14994. Removed peerUpload, peerDownload.
  14995. (updateUploadLength): New function.
  14996. (addDeltaUpload): Removed.
  14997. (updateDownloadLength): New function.
  14998. (resetDeltaUpload): Removed.
  14999. (getDeltaUpload): Removed.
  15000. (addDeltaDownload): Removed.
  15001. (calculateUploadSpeed): New function.
  15002. (resetDeltaDownload): Removed.
  15003. (getDeltaDownload): Removed.
  15004. (calculateDownloadSpeed): New function.
  15005. (getSessionUploadLength): New function.
  15006. (getSessionDownloadLength): New function.
  15007. (activate): New function.
  15008. (deactivate): New function.
  15009. (addPeerUpload): Removed.
  15010. (setPeerUpload): Removed.
  15011. (getPeerUpload): Removed.
  15012. (addPeerDownload): Removed.
  15013. (setPeerDownload): Removed.
  15014. (getPeerDownload): Removed.
  15015. * src/Peer.cc
  15016. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15017. * src/MetalinkRequestInfo.h
  15018. (MetalinkRequestInfo): Removed const qualifier from op.
  15019. * src/RequestInfo.h
  15020. (op): Removed const qualifier.
  15021. (RequestInfo): Removed const qualifier from op.
  15022. * src/prefs.h
  15023. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15024. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15025. * src/PeerInteractionCommand.cc
  15026. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15027. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15028. * src/PeerInteraction.cc
  15029. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15030. * src/main.cc
  15031. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15032. Added the description of "--max-download-limit" option.
  15033. Removed the description of "--upload-limit" option.
  15034. Added the description of "--max-upload-limit" option.
  15035. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15036. Added "--max-download-limit" option and "--max-upload-limit" option.
  15037. Added the warning message if "--upload-limit" option is used.
  15038. * src/DownloadCommand.cc
  15039. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15040. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15041. To rewrite segment download mechanism for HTTP/FTP download.
  15042. Use BitfieldMan to manage segment download.
  15043. * src/HttpResponseCommand.h
  15044. (executeInternal): Pass the reference of segment.
  15045. * src/AbstractCommand.cc
  15046. (prepareForRetry): Call segmentMan->cancelSegment here.
  15047. (onAbort): Call segmentMan->cancelSegment here.
  15048. * src/HttpDownloadCommand.cc
  15049. (prepareForNextSegment): New function.
  15050. * src/DownloadEngineFactory.cc
  15051. (newConsoleEngine): Removed splitter.
  15052. (newTorrentConsoleEngine): Removed splitter.
  15053. * src/Request.h
  15054. (segment): Renamed from seg.
  15055. * src/FtpInitiateConnectionCommand.h
  15056. (executeInternal): Pass the reference of segment.
  15057. * src/AbstractCommand.h
  15058. (executeInternal): Pass the reference of segment.
  15059. * src/pref.h
  15060. (PREF_SEGMENT_SIZE): New definition.
  15061. * src/HttpProxyRequestCommand.h
  15062. (executeInternal): Pass the reference of segment.
  15063. * src/HttpResponseCommand.cc
  15064. (checkResponse): Allowed status 206 when a request range starts 0.
  15065. (handleDefaultEncoding): Rewritten the code related to Segment.
  15066. (handleOtherEncoding): Rewritten the code related to Segment.
  15067. * src/SegmentMan.h
  15068. (SegmentEntry): New class.
  15069. (SegmentEntries): New type definition.
  15070. (bitfield): New variable.
  15071. (usedSegmentEntries): New variable.
  15072. (onNullBitfield): New function.
  15073. (checkoutSegment): New function.
  15074. (segments): Removed.
  15075. (splitter): Removed.
  15076. (unregisterId): Removed.
  15077. (getSegment): New function(overload)
  15078. (getDownloadedSize): Removed.
  15079. (cancelSegment): New function.
  15080. (completeSegment): New function.
  15081. (initBitfield): New function.
  15082. (hasSegment): New function.
  15083. (getDownloadLength): New function.
  15084. * src/BitfieldMan.h
  15085. (getStartIndex): New function.
  15086. (getEndIndex): New function.
  15087. (getMissingUnusedIndex): New function(overload).
  15088. (getSparseMissingUnusedIndex): New function.
  15089. * src/BitfieldMan.cc
  15090. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15091. (getMissingUnusedIndex): New function(overload).
  15092. (Range): New class.
  15093. (getStartIndex): New function.
  15094. (getEndIndex): New function.
  15095. (getSparseMissingUnusedIndex): New function.
  15096. (isBitSetInternal): Return false if the given index is less than 0.
  15097. * src/HttpInitiateConnectionCommand.h
  15098. (executeInternal): Pass the reference of segment.
  15099. * src/FtpNegotiateCommand.h
  15100. (executeInternal): Pass the reference of segment.
  15101. * src/FtpNegotiateCommand.cc
  15102. (recvSize): Initialize bitfield here.
  15103. * src/FtpTunnelResponseCommand.h
  15104. (executeInternal): Pass the reference of segment.
  15105. * src/HttpConnection.cc
  15106. (createRequest): Rewritten range header processing.
  15107. * src/DownloadCommand.h
  15108. (executeInternal): Pass the reference of segment.
  15109. (prepareForRetry): Removed.
  15110. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15111. function.
  15112. * src/main.cc
  15113. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15114. * src/SegmentMan.cc
  15115. (SegmentMan): Added bitfield. Removed splitter.
  15116. (~SegmentMan): Added bitfield. Removed splitter.
  15117. (unregisterId): Removed.
  15118. (getSegment): Rewritten.
  15119. (updateSegment): Rewritten.
  15120. (save): Rewritten.
  15121. (read): Rewritten.
  15122. (finished): Rewritten.
  15123. (getDownloadedSize): Removed.
  15124. (initBitfield): New function.
  15125. (FindSegmentEntryByIndex): New function object.
  15126. (FindSegmentEntryByCuid): New function object.
  15127. (checkoutSegment): New function.
  15128. (onNullBitfield): New function.
  15129. (getSegment): New function(overload).
  15130. (CancelSegment): New function object.
  15131. (cancelSegment): New function.
  15132. (completeSegment): New function.
  15133. (hasSegment): New function.
  15134. (getDownloadLength): New function.
  15135. * src/FtpInitiateConnectionCommand.cc
  15136. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15137. * src/Segment.h: Rewritten.
  15138. * src/Segment.cc (operator<<): New function.
  15139. * src/HttpDownloadCommand.h
  15140. (prepareForNextSegment): New function.
  15141. * src/Request.cc
  15142. (resetUrl): Made segment null.
  15143. * src/DownloadEngine.cc
  15144. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15145. * src/HttpProxyRequestCommand.h
  15146. (executeInternal): Pass the reference of segment.
  15147. * src/DownloadCommand.cc
  15148. (executeInternal): Rewritten the code related to Segment.
  15149. (prepareForRetry): Removed.
  15150. (prepareForNextSegment): Rewritten.
  15151. * src/FtpTunnelResponseCommand.h
  15152. (executeInternal): Pass the reference of segment.
  15153. To add HTTP 1.1 persistent connection support(experimental)
  15154. * src/HttpRequestCommand.cc
  15155. (executeInternal): Disable keep alive if it is disabled by
  15156. configuration.
  15157. * src/Request.h
  15158. (keepAlive): New variable.
  15159. (isKeepAlive): New function.
  15160. (setKeepAlive): New function.
  15161. * src/pref.h
  15162. (PREF_HTTP_KEEP_ALIVE): New definition.
  15163. * src/HttpResponseCommand.cc
  15164. (executeInternal): Check the remote server supports keep alive.
  15165. * src/HttpConnection.cc
  15166. (createRequest): Send "Connection: close" only if keep alive is
  15167. disabled.
  15168. * src/main.cc
  15169. (main):
  15170. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15171. To add max download speed limit:
  15172. * src/pref.h
  15173. (PREF_MAX_SPEED_LIMIT): New definition.
  15174. * src/PeerInteractionCommand.cc
  15175. (executeInternal): Added max download speed limit. Not tested yet.
  15176. * src/SegmentMan.h
  15177. (PeerStats): New type definition.
  15178. (peerStats): New variable.
  15179. (registerPeerStat): New function.
  15180. (FindPeerStat): New function object.
  15181. (getPeerStat): New function.
  15182. (calculateDownloadSpeed): New function.
  15183. * src/SpeedCalc.h: New class.
  15184. * src/SpeedCalc.cc: New class.
  15185. * src/main.cc
  15186. (main):
  15187. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15188. download speed is not restricted).
  15189. * src/PeerStat.h: New class.
  15190. * src/SegmentMan.cc
  15191. (registerPeerStat): New function.
  15192. (calculateDownloadSpeed): New function.
  15193. * src/DownloadCommand.cc
  15194. (STARTUP_IDLE_TIME): New definition.
  15195. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15196. downloadStart.
  15197. (~DownloadCommand): Call peerStat->downloadStop.
  15198. (executeInternal): Added download speed limitter. Rewritten lowest
  15199. speed limitter.
  15200. * src/HttpConnection.cc
  15201. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15202. * src/AbstractCommand.cc
  15203. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15204. Added hostname to the error message.
  15205. * src/ConsoleDownloadEngine.cc
  15206. (calculateStatistics): Initialize psize with dlSize.
  15207. * src/PieceMessage.cc
  15208. (receivedAction): Do not call peerInteraction->abortPiece here.
  15209. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15210. * src/BitfieldMan.h
  15211. (clearAllUseBit): New function.
  15212. (setAllUseBit): New function.
  15213. * src/BitfieldMan.cc
  15214. (clearAllBit): Do not clear useBitfield here.
  15215. (clearAllUseBit): New function.
  15216. (setAllUseBit): New function.
  15217. * src/Piece.cc
  15218. (clearAllBlock): Call bitfield->clearAllUseBit().
  15219. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15220. To make filename URL-decoded:
  15221. * src/HttpResponseCommand.h: Updated doc.
  15222. * src/HttpResponseCommand.cc
  15223. (determinFilename): Made filename URL-decoded.
  15224. * src/FtpInitiateConnectionCommand.cc
  15225. (executeInternal): Made filename URL-decoded.
  15226. * src/Util.h (urldecode): New function.
  15227. * src/Util.cc (urldecode): New function.
  15228. To fix a bug that caused assertion failure in ares_strerror:
  15229. * src/NameResolver.cc (callback): Fixed the bug.
  15230. * Release 0.7.3
  15231. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15232. To add --seed-time and --seed-ratio command-line option:
  15233. * src/Option.h (getAsDouble): New function.
  15234. * src/Option.cc (getAsDouble): New function.
  15235. * src/SeedCheckCommand.h: New class.
  15236. * src/SeedCheckCommand.cc: New class.
  15237. * src/DownloadEngineFactory.cc
  15238. (SeedCheckCommand.h): Included.
  15239. (UnionSeedCriteria.h): Included.
  15240. (TimeSeedCriteria.h): Included.
  15241. (ShareRatioSeedCriteria.h): Included.
  15242. (newTorrentConsoleEngine): Added the processing of seed option.
  15243. * src/SeedCriteria.h: New class.
  15244. * src/ShareRatioSeedCriteria.h: New class.
  15245. * src/TimeSeedCriteria.h: New class.
  15246. * src/UnionSeedCriteria.h: New class.
  15247. * src/prefs.h
  15248. (PREF_SEED_TIME): New definition.
  15249. (PREF_SEED_RATIO): New definition.
  15250. * src/main.cc
  15251. (showUsage): Added --seed-time and --seed-ratio option.
  15252. (main): Added --seed-time and --seed-ratio option.
  15253. Made default log file name "/dev/null".
  15254. * src/SharedHandle.h
  15255. (SharedHandle): Copy constructor. Made it assignable from the
  15256. SharedHandle of the subclasses.
  15257. (operator=): Made it assignable from the SharedHandle of the
  15258. subclasses.
  15259. (getRefCount): New function.
  15260. To add notice log level and the switch to write log to stdout. This
  15261. switch is configurable per log level.
  15262. * src/Logger.h
  15263. (notice): New function.
  15264. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15265. constant.
  15266. * src/LogFactory.cc
  15267. (getInstance): The use of NullLogger was removed. A log message with
  15268. notice log level was made written to stdout along with log file.
  15269. * src/NullLogger.h
  15270. (notice): New function.
  15271. * src/SimpleLogger.h
  15272. (writeHeader): Added the 'file' argument.
  15273. (writeLog): Added the 'file' argument.
  15274. (writeFile): New function.
  15275. (stdoutField): New variable.
  15276. (SimpleLogger): Removed the default constructor.
  15277. (SimpleLogger): Made the default value of logfile 0.
  15278. (debug): Added 'virtual' keyword.
  15279. (info): Added 'virtual' keyword.
  15280. (warn): Added 'virtual' keyword.
  15281. (error): Added 'virtual' keyword.
  15282. (notice): New function.
  15283. (setStdout): New function.
  15284. * src/SimpleLogger.cc
  15285. (WRITE_LOG): Replaced writeLog with writeFile.
  15286. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15287. (SimpleLogger): Removed the default constructor.
  15288. (setStdout): New function.
  15289. (writeLog): Added the handling of NOTICE log level.
  15290. (writeFile): New function.
  15291. (notice): New function.
  15292. * src/TorrentMan.h: Updated doc.
  15293. * src/BitfieldMan.h: Updated doc.
  15294. * src/TrackerWatcherCommand.cc
  15295. (execute): Return true if error occurred in the request to the tracker
  15296. and halt is requested.
  15297. * src/TrackerUpdateCommand.cc
  15298. (execute): Return true if error occurred in the request to the tracker
  15299. and halt is requested.
  15300. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15301. DownloadEngine:
  15302. * src/TorrentConsoleDownloadEngine.h
  15303. (onSelectiveDownloadingCompletes): Removed.
  15304. * src/TorrentConsoleDownloadEngine.cc
  15305. (onSelectiveDownloadingCompletes): Removed.
  15306. * src/TorrentDownloadEngine.h
  15307. (onEndOfRun): Added 'virtual' keyword.
  15308. (afterEachIteration): Removed.
  15309. (onSelectiveDownloadingCompletes): Removed.
  15310. * src/TorrentDownloadEngine.cc
  15311. (onEndOfRun): Removed filenameFixed.
  15312. (afterEachIteration): Removed.
  15313. * src/TorrentMan.cc
  15314. (completePiece): Call onDownloadComplete here.
  15315. (onDownloadComplete): Added 2 log messages.
  15316. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15317. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15318. * src/NameResolver.h: Added the prototype declaration of callback().
  15319. To support c-ares library:
  15320. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15321. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15322. * src/FtpInitiateConnectionCommand.h:
  15323. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15324. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15325. * src/HttpInitiateConnectionCommand.h:
  15326. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15327. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15328. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15329. #1542285 by tizianomueller)
  15330. * src/HttpInitiateConnectionCommand.cc:
  15331. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15332. * src/FtpInitiateConnectionCommand.cc:
  15333. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15334. * src/DownloadEngine.h:
  15335. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15336. * src/DownloadEngine.cc:
  15337. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15338. To fix the bug that causes compilation failure with metalink-support
  15339. disabled(bug#1543587):
  15340. * src/main.cc: Fixed with the patch by tizianomueller.
  15341. * Release 0.7.2
  15342. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15343. * src/main.cc
  15344. (main): Added a message to inform users that aria2 is starting to
  15345. verify checksum.
  15346. * src/RequestInfo.cc
  15347. (printDownloadAbortMessage): Added a message to inform users that
  15348. transfer can be resumed.
  15349. * src/FeatureConfig.cc
  15350. (FEATURE_ASYNC_DNS): New definition.
  15351. (FeatureConfig): Added aysnc DNS entry.
  15352. To replace CommandUuid with Command* in SocketEntry and
  15353. NameResolverEntry:
  15354. * src/DownloadEngine.h
  15355. (CommandUuids): Removed.
  15356. (SocketEntry::commandUuid): Removed.
  15357. (SocketEntry::command): New variable.
  15358. (SocketEntry::SocketEntry): Updated.
  15359. (SocketEntry::operator==): Updated.
  15360. (NameResolverEntry::commandUuid): Removed.
  15361. (NameResolverEntry::command): New variable.
  15362. (NameResolverEntry::NameResolverEntry): Updated.
  15363. (NameResolverEntry::operator==): Updated.
  15364. (waitData): Changed the argument type.
  15365. (addSocketForReadCheck): Changed the argument type.
  15366. (deleteSocketForReadCheck): Changed the argument type.
  15367. (addSocketForWriteCheck): Changed the argument type.
  15368. (deleteSocketForWriteCheck): Changed the argument type.
  15369. (addNameResolverCheck): Changed the argument type.
  15370. (deleteNameResolverCheck): Changed the argument type.
  15371. * src/DownloadEngine.cc
  15372. (FindCommand): Removed.
  15373. (run): Removed activeUuid. Added activeCommands instead.
  15374. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15375. (AccumulateActiveCommand): New function object.
  15376. (waitData): Use AccumulateActiveCommand.
  15377. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15378. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15379. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15380. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15381. (addNameResolverCheck): Use Command instead of CommandUuid.
  15382. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15383. * src/AbstractCommand.cc
  15384. (disableReadCheckSocket): Updated according to the changes in
  15385. DownloadEngine.
  15386. (setReadCheckSocket): Updated according to the changes in
  15387. DownloadEngine.
  15388. (disableWriteCheckSocket): Updated according to the changes in
  15389. DownloadEngine.
  15390. (setWriteCheckSocket): Updated according to the changes in
  15391. DownloadEngine.
  15392. (setNameResolverCheck): Updated according to the changes in
  15393. DownloadEngine.
  15394. (disableNameResolverCheck): Updated according to the changes in
  15395. DownloadEngine.
  15396. * src/AbstractCommand.cc
  15397. (disableReadCheckSocket): Updated according to the changes in
  15398. DownloadEngine.
  15399. (setReadCheckSocket): Updated according to the changes in
  15400. DownloadEngine.
  15401. (disableWriteCheckSocket): Updated according to the changes in
  15402. DownloadEngine.
  15403. (setWriteCheckSocket): Updated according to the changes in
  15404. DownloadEngine.
  15405. * release 0.7.1
  15406. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15407. To handle the case where some BitTorrent tracker requires all letters
  15408. except for [A-Za-z0-9] is URL encoded.
  15409. * src/Util.h
  15410. (torrentUrlencode): New function.
  15411. * src/Util.cc
  15412. (ctype.h): Included.
  15413. (torrentUrlencode): New function.
  15414. * src/TrackerWatcherCommand.cc
  15415. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15416. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15417. To add asynchronous DNS support(libares):
  15418. * src/AbstractCommand.h
  15419. (setNameResolverCheck): New function.
  15420. (disableNameResolverCheck): New function
  15421. (resolveHostname): New function.
  15422. * src/AbstractCommand.cc
  15423. (setNameResolverCheck): New function.
  15424. (disableNameResolverCheck): New function
  15425. (resolveHostname): New function.
  15426. * src/FtpInitiateConnectionCommand.h
  15427. (nameResolver): New function.
  15428. * src/FtpInitiateConnectionCommand.cc
  15429. (Util.h): Included.
  15430. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15431. disableWriteCheckSocket.
  15432. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15433. (executeInternal): Added async DNS support.
  15434. * src/HttpInitiateConnectionCommand.h
  15435. (nameResolver): New function.
  15436. * src/HttpInitiateConnectionCommand.cc
  15437. (DlRetryEx.h): Included.
  15438. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15439. disableWriteCheckSocket.
  15440. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15441. (executeInternal): Added async DNS support.
  15442. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15443. by extern "C" declaration.
  15444. * src/NameResolver.cc: New class.
  15445. * src/Util.h:
  15446. (isNumberAndDotsNotation): New function
  15447. * src/Util.cc
  15448. (isNumberAndDotsNotation): New function.
  15449. * src/DownloadEngine.h
  15450. (NameResolver.h): Included.
  15451. (NameResolverEntry): New class.
  15452. (NameResolverEntries): New type definition.
  15453. (addNameResolverCheck): New function.
  15454. (deleteNameResolverCheck): New function.
  15455. * src/DownloadEngine.cc
  15456. (run): Initialize cp with 0.
  15457. (SetDescriptor::operator()): Added for NameResolverEntry.
  15458. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15459. (waitData): Check nameResolver entries.
  15460. (updateFdSet): Update fds in nameResolver entries.
  15461. (addNameResolverCheck): New function.
  15462. (deleteNameResolverCheck): new function.
  15463. * src/PeerInteractionCommand.cc
  15464. (executeInternal): Fixed wrong socket handling.
  15465. * src/main.cc
  15466. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15467. * src/Util.cc
  15468. (fileChecksum): Removed the call to ctx.digestReset().
  15469. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15470. * po/ru.po: Azamat sent me Russian translation.
  15471. * src/FtpNegotiateCommand.cc
  15472. (recvGreeting): Call disableWriteCheckSocket just after
  15473. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15474. (recvRetr): Recognized status code 125 as a acceptable response code.
  15475. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15476. case-insesitive filesystem(BUG#1531057).
  15477. * src/Time.h: Renamed as TimeA2.h.
  15478. * src/Time.cc: Renamed as TimeA2.cc.
  15479. * src/TimeA2.h: New class.
  15480. * src/TimeA2.cc: New class.
  15481. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15482. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15483. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15484. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15485. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15486. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15487. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15488. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15489. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15490. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15491. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15492. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15493. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15494. * release 0.7.0
  15495. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15496. * src/PeerChokeCommand.h
  15497. (PeerChokeCommand): Rearranged the arguments.
  15498. * src/PeerChokeCommand.cc
  15499. (PeerChokeCommand): Rearranged the arguments.
  15500. * src/MetalinkEntry.h
  15501. (Checksum.h): Included.
  15502. (md5): Removed.
  15503. (sha1): Removed.
  15504. (checksum): New variable.
  15505. (operator=): Updated.
  15506. (check): Removed.
  15507. * src/prefs.h
  15508. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15509. (PREF_FOLLOW_TORRENT): New definition.
  15510. (PREF_SELECT_FILE): New definition.
  15511. (PREF_FOLLOW_METALINK): New definition.
  15512. * src/MetalinkResource.h
  15513. (TYPE_HTTPS): Added to enum TYPE.
  15514. * src/TorrentMan.cc
  15515. (~TorrentMan): Rewritten.
  15516. * src/MultiDiskWriter.cc
  15517. (MultiDiskAdaptor): Updated according to the changes in
  15518. MessageDigestContext.
  15519. (~MultiDiskAdaptor): Updated according to the changes in
  15520. MessageDigestContext.
  15521. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15522. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15523. * src/Util.h
  15524. (fileChecksum): Updated according to the changes in
  15525. MessageDigestContext.
  15526. * src/Util.cc
  15527. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15528. (fileChecksum): Updated according to the changes in
  15529. MessageDigestContext.
  15530. * src/messageDigest.h: Rewritten.
  15531. * src/MetalinkEntry.cc
  15532. (check): Removed.
  15533. (Supported): Updated.
  15534. (dropUnsupportedResource): Fixed a memory leak.
  15535. * src/ShaVisitor.cc
  15536. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15537. (~ShaVisitor): Updated according to the changes in
  15538. MessageDigestContext.
  15539. (visit): Updated according to the changes in MessageDigestContext.
  15540. * src/main.cc
  15541. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15542. command-line option added.
  15543. * src/DownloadEngine.h
  15544. (SocketEntry): New class.
  15545. (SocketEntries): New definition.
  15546. (PairFind): Removed.
  15547. (SockCmdMap): Removed.
  15548. * src/DownloadEngine.cc
  15549. (DownloadEngine): Rewritten.
  15550. (~DownloadEngine): Rewritten.
  15551. (run): Renamed activeCommandUuids as activeUuids.
  15552. (SetDescriptor): Rewritten.
  15553. (AccumulateActiveCommandUuid): Removed.
  15554. (AccumulateActiveUuid): New function object.
  15555. (waitData): Rewritten.
  15556. (updateFdSet): Rewritten.
  15557. (addSocket): Rewritten.
  15558. (deleteSocket): Rewritten.
  15559. (addSocketForReadCheck): Rewritten.
  15560. (deleteSocketForReadCheck): Rewritten.
  15561. (addSocketForWriteCheck): Rewritten.
  15562. (deleteSocketForWriteCheck): Rewritten.
  15563. * src/Xml2MetalinkProcessor.cc
  15564. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15565. * src/DownloadCommand.cc
  15566. (executeInternal): Added the check routine for lowest speed limit.
  15567. * src/AbstractDiskWriter.cc
  15568. (AbstractDiskWriter): Updated according to the changes in
  15569. MessageDigestContext.
  15570. (~AbstractDiskWriter): Updated according to the changes in
  15571. MessageDigestContext.
  15572. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15573. * src/RequestInfo.h: New class.
  15574. * src/UrlRequestInfo.h: New class.
  15575. * src/UrlRequestInfo.cc: New class.
  15576. * src/TorrentRequestInfo.h: New class.
  15577. * src/TorrentRequestInfo.cc: New class.
  15578. * src/MetalinkRequestInfo.h: New class.
  15579. * src/MetalinkRequestInfo.cc: New class.
  15580. * src/Checksum.h: New class.
  15581. * src/DownloadEngineFactory.h: New class.
  15582. * src/DownloadEngineFactory.cc: New class.
  15583. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15584. * src/Option.h
  15585. (getAsBool): New function.
  15586. * src/Option.cc
  15587. (prefs.h): Included.
  15588. (defined): 0-length value is now recognized as undefined.
  15589. (getAsInt): Rewritten.
  15590. (getAsLLInt): Rewritten.
  15591. (getAsBool): New function.
  15592. * src/FeatureConfig.h: Rewritten.
  15593. * src/FeatureConfig.cc: Rewritten.
  15594. * src/prefs.h
  15595. (PREF_STDOUT_LOG): New definition.
  15596. (PREF_LOG): New definition.
  15597. (PREF_DIR): New definition.
  15598. (PREF_OUT): New definition.
  15599. (PREF_SPLIT): New definition.
  15600. (PREF_DAEMON): New definition.
  15601. (PREF_REFERER): New definition.
  15602. (PREF_TORRENT_FILE): New definition.
  15603. (PREF_LISTEN_PORT): New definition.
  15604. (PREF_METALINK_FILE): New definition.
  15605. (PREF_METALINK_VERSION): New definition.
  15606. (PREF_METALINK_LANGUAGE): New definition.
  15607. (PREF_METALINK_OS): New definition.
  15608. (PREF_METALINK_SERVERS): New definition.
  15609. * src/main.cc
  15610. (main): Following command-line parameters are now put into Option
  15611. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15612. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15613. metalinkLanguage, metalinkOs, metalinkServers
  15614. To fix the bug that aria2 can not handle http response header properly.
  15615. * src/HttpHeader.cc
  15616. (put): Made name lowercased.
  15617. (defined): Made name lowercased.
  15618. (getFirst): Made name lowercased.
  15619. (get): Made name lowercased.
  15620. (getFirstAsInt): Rewritten.
  15621. (getFirstAsLLInt): Rewritten.
  15622. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15623. * src/TorrentMan.h:
  15624. (advertisePiece): Updated doc.
  15625. (getAdvertisedPieceIndexes): Updated doc.
  15626. (removeAdvertisedPiece); New function.
  15627. * src/TorrentMan.cc
  15628. (FindElapsedHave): New function object.
  15629. (removeAdvertisedPiece): New function.
  15630. * src/HaveEraseCommand.h: New class.
  15631. * src/HaveEraseCommand.cc: New class.
  15632. * src/FeatureConfig.h: New class.
  15633. * src/FeatureConfig.cc: New class.
  15634. * src/Request.h
  15635. (defaultPorts): Removed.
  15636. * src/Request.cc
  15637. (FeatureConfig.h): Included.
  15638. (Request): Removed the statements related to defaultPorts.
  15639. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15640. A default port number is now retrieved from FeatureConfig.
  15641. * src/main.cc
  15642. (HaveEraseCommand.h): Included.
  15643. (showVersion): Added the output of feature list.
  15644. (main): Added HaveEraseCommand to command queue in BitTorrent
  15645. downloading.
  15646. * src/PeerInteractionCommand.h
  15647. (chokeCheckPoint): Commented out.
  15648. (periodicExecPoint): New variable.
  15649. * src/PeerInteractionCommand.cc
  15650. (executeInternal): Following methods are now called in at least every
  15651. 0.5 seconds to reduce CPU usage:
  15652. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15653. checkHave(), sendKeepAlive().
  15654. (checkLongTimePeerChoking): Commented out.
  15655. * src/BitfieldMan.h
  15656. (getNthBitIndex): Changed the method signature.
  15657. (getMissingIndexRandomly): Changed the method signature.
  15658. * src/BitfieldMan.cc
  15659. (getNthBitIndex): Rewritten
  15660. (getMissingIndexRandomly): Rewritten.
  15661. (hasMissingPiece): Rewritten.
  15662. (getMissingIndex): Refactored.
  15663. (getMissingUnusedIndex); Refactored.
  15664. (getMissingIndex): Refactored.
  15665. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15666. * src/PeerMessage.h
  15667. (Piece.h): Included.
  15668. (SharedHandle.h): Included.
  15669. (invalidate): New variable.
  15670. (uploading): New variable.
  15671. (isInvalidate): New function.
  15672. (isUploading): New function.
  15673. (onPush): New function.
  15674. (onChoked): New function.
  15675. (onCanceled): New function.
  15676. (onAbortPiece): New function.
  15677. (PeerMessageHandle): New type definition.
  15678. * src/PeerMessage.cc
  15679. (PeerMessage): Added the initialization for invalidate and uploading.
  15680. * src/CancelMessage.h
  15681. (CancelMessage): Rewritten.
  15682. * src/RejectMessage.h
  15683. (RejectMessage): Rewritten.
  15684. * src/Metalinker.h
  15685. (operator=): Defined.
  15686. * src/MetaEntry.h
  15687. (operator=): Defined.
  15688. * src/MetalinkResource.h
  15689. (operator=): Defined.
  15690. * src/AllowedFastMessage.h
  15691. (AllowedFastMessage): Rewritten.
  15692. * src/HandshakeMessage.h
  15693. (HandshakeMessage): New function(overload).
  15694. * src/HandshakeMessage.cc
  15695. (HandshakeMessage): Rewritten.
  15696. (init): New function.
  15697. * src/HaveMessage.h
  15698. (HaveMessage): Rewritten.
  15699. * src/Time.h
  15700. (operator=): Defined the function body here.
  15701. * src/Time.cc
  15702. (operator=): Removed.
  15703. * src/SocketCore.h
  15704. (operator==): Defined here.
  15705. (operator!=): Defined here.
  15706. (operator<): Defined here.
  15707. * src/SocketCore.cc
  15708. (operator==): Removed.
  15709. (operator<): Removed.
  15710. * src/BitfieldMan.h
  15711. (operator=): Defined the function body here.
  15712. * src/BitfieldMan.cc
  15713. (operator=): Removed.
  15714. * src/TorrentMan.h
  15715. (deleteErrorPeer): Removed.
  15716. (deleteUnusedPeer); New function.
  15717. * src/TorrentMan.cc
  15718. (addPeer): Call deleteUnusedPeer.
  15719. (deleteErrorPeer): Removed.
  15720. (deleteUnusedPeer): New function.
  15721. * src/PeerAbstractCommand.h
  15722. (setNoCheck): New function.
  15723. (noCheck): New variable.
  15724. * src/PeerAbstractCommand.cc
  15725. (PeerAbstractCommand): Added the initialization of noCheck.
  15726. (execute): Added a check for noCheck.
  15727. (setNoCheck): New function.
  15728. * src/Util.h
  15729. (stdio.h): Included.
  15730. * src/Util.cc
  15731. (unistd.h): Included.
  15732. * src/DefaultDiskWriter.cc
  15733. (unistd.h): Included.
  15734. * src/Peer.h
  15735. (operator==): Defined the function body here.
  15736. (operator!=): Defined the function body here.
  15737. * src/Peer.cc
  15738. (operator==): Removed.
  15739. (operator!=): Removed.
  15740. * src/Piece.h
  15741. (Piece): Defined the function body here(copy constructor).
  15742. (operator=): Defined the function body here.
  15743. (operator==): Defined the function body here.
  15744. * src/Piece.cc
  15745. (Piece): Removed(copy constructor).
  15746. (operator=): Removed.
  15747. (operator==): Removed.
  15748. * src/PeerMessageUtil.h
  15749. (ChokeMessage.h): Removed.
  15750. (UnchokeMessage.h): Removed.
  15751. (InterestedMessage.h): Removed.
  15752. (NotInterestedMessage.h): Removed.
  15753. (HaveMessage.h): Removed.
  15754. (BitfieldMessage.h): Removed.
  15755. (RequestMessage.h): Removed.
  15756. (CancelMessage.h): Removed.
  15757. (PieceMessage.h): Removed.
  15758. (HandshakeMessage.h): Removed.
  15759. (KeepAliveMessage.h): Removed.
  15760. (PortMessage.h): Removed.
  15761. (HaveAllMessage.h): Removed.
  15762. (HaveNoneMessage.h): Removed.
  15763. (PeerConnection.h): Removed.
  15764. (HandshakeMessage.h): Included.
  15765. * src/BitfieldMessage.h
  15766. (init): New function.
  15767. (BitfieldMessage): Rewritten.
  15768. (BitfieldMessage): New function(overload).
  15769. * src/RequestSlot.h
  15770. (operator=): Defined the function body here.
  15771. (operator==): Defined the function body here.
  15772. * src/RequestSlot.cc
  15773. (operator=): Removed.
  15774. (operator==): Removed.
  15775. To remove the dependency on the PeerMessage subclass from
  15776. PeerInteraction:
  15777. * src/PeerMessageFactory.h: New class.
  15778. * src/PeerMessageFactory.cc: New class.
  15779. * src/SimplePeerMessage.cc
  15780. (send): If invalidate is true then do nothing.
  15781. * src/PeerInteractionCommand.cc
  15782. (HandshakeMessage.h): Included.
  15783. (KeepAliveMessage.h): Included.
  15784. (ChokeMessage.h): Included.
  15785. (UnchokeMessage.h): Included.
  15786. (HaveMessage.h): Included.
  15787. (executeInternal): Call setNoCheck().
  15788. Removed setWriteCheckSocket(socket).
  15789. * src/PeerInteraction.h
  15790. (ChokeMessage.h): Removed.
  15791. (UnchokeMessage.h): Removed.
  15792. (InterestedMessage.h): Removed.
  15793. (NotInterestedMessage.h): Removed.
  15794. (HaveMessage.h): Removed.
  15795. (BitfieldMessage.h): Removed.
  15796. (RequestMessage.h): Removed.
  15797. (CancelMessage.h): Removed.
  15798. (PieceMessage.h): Removed.
  15799. (HandshakeMessage.h): Removed.
  15800. (KeepAliveMessage.h): Removed.
  15801. (PortMessage.h): Removed.
  15802. (HaveAllMessage.h): Removed.
  15803. (HaveNoneMessage.h): Removed.
  15804. (RejectMessage.h): Removed.
  15805. (AllowedFastMessage.h): Removed.
  15806. (SuggestPieceMessage.h): Removed.
  15807. (PeerMessageFactory.h): Included.
  15808. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15809. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15810. (PeerMessageFactory): New variable.
  15811. (createPeerMessage): Removed.
  15812. (createHandshakeMessage): Removed.
  15813. (setPeerMessageCommonProperty): Removed.
  15814. (addRequestSlot): New function.
  15815. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15816. (getPeerMessageFactory): New function.
  15817. (createRequestMessage): Removed.
  15818. (createCancelMessage): Removed.
  15819. (createPieceMessage): Removed.
  15820. (createHaveMessage): Removed.
  15821. (createChokeMessage): Removed.
  15822. (createUnchokeMessage): Removed.
  15823. (createInterestedMessage): Removed.
  15824. (createNotInterestedMessage): Removed.
  15825. (createBitfieldMessage): Removed.
  15826. (createKeepAliveMessage): Removed.
  15827. (createHaveAllMessage): Removed.
  15828. (createHaveNoneMessage): Removed.
  15829. (createRejectMessage): Removed.
  15830. (createAllowedFastMessage): Removed.
  15831. * src/PeerInteraction.cc
  15832. (PeerInteraction): Allocate PeerMessageFactory here.
  15833. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15834. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15835. PieceMessage::ID.
  15836. (addMessage): Simplified by using PeerMessage::onPush().
  15837. (addRequestSlot): New function.
  15838. (rejectAllPieceMessageInQueue): Simplified by using
  15839. PeerMessage::onChoked().
  15840. (rejectPieceMessageInQueue): Simplified by using
  15841. PeerMessage::onCanceled().
  15842. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15843. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15844. (createHandshakeMessage): Removed.
  15845. (createPeerMessage): Removed.
  15846. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15847. (setPeerMessageCommonProperty): Removed.
  15848. (createRequestMessage): Removed.
  15849. (createCancelMessage): Removed.
  15850. (createPieceMessage): Removed.
  15851. (createHaveMessage): Removed.
  15852. (createChokeMessage): Removed.
  15853. (createUnchokeMessage): Removed.
  15854. (createInterestedMessage): Removed.
  15855. (createNotInterestedMessage): Removed.
  15856. (createBitfieldMessage): Removed.
  15857. (createKeepAliveMessage): Removed.
  15858. (createHaveAllMessage): Removed.
  15859. (createHaveNoneMessage): Removed.
  15860. (createRejectMessage): Removed.
  15861. (createAllowedFastMessage): Removed.
  15862. * src/PieceMessage.h
  15863. (createRejectMessage): New function.
  15864. (PieceMessage): Rewritten.
  15865. (onChoked): New function.
  15866. (onCanceled): New function.
  15867. * src/PieceMessage.cc
  15868. (send): If invalidate is true then do nothing, just return.
  15869. (createRejectMessage): New function.
  15870. (onChoked): New function.
  15871. (onCanceled): New function.
  15872. * src/RequestMessage.h
  15873. (RequestMessage): Rewritten.
  15874. (onPush): New function.
  15875. (onAbortPiece): New function.
  15876. * src/RequestMessage.cc
  15877. (onPush): New function.
  15878. (onAbortPiece): New function.
  15879. Update fd_set when a socket is added or deleted in order to improve
  15880. performance:
  15881. * src/DownloadEngine.h
  15882. (rfdset): New variable.
  15883. (wfdset): New variable.
  15884. (updateFdSet): New function.
  15885. * src/DownloadEngine.cc
  15886. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15887. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15888. (waitData): Copy rfdset and wfdset.
  15889. (updateFdSet): New function.
  15890. (addSocket): Call updateFdSet.
  15891. (deleteSocket): Call updateFdSet.
  15892. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15893. To add the support for Metalink3.0 backward compatible links:
  15894. * src/Request.h
  15895. (SAFE_CHARS): Added '#'.
  15896. (METALINK_MARK): New definition.
  15897. * src/Request.cc
  15898. (parseUrl): Added the support for Metalink3.0 backward compatible
  15899. links.
  15900. etc
  15901. * src/PeerInteraction.cc
  15902. (MsgPushBack): Removed.
  15903. (sendMessages): Use STL copy and back_inserter.
  15904. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15905. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15906. * src/TorrentMan.h
  15907. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15908. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15909. * src/SharedHandle.h: New class.
  15910. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15911. * src/HttpResponseCommand.h
  15912. (HttpResponseCommand): Wrapped Socket.
  15913. * src/SocketCore.h
  15914. (operator==): New function.
  15915. (operator!=): New function.
  15916. (operator<): New function.
  15917. (getSockfd): New function.
  15918. (isOpen): New function.
  15919. (writeData): New function.
  15920. * src/SocketCore.cc
  15921. (operator==): New function.
  15922. (operator!=): New function.
  15923. (operator<): New function.
  15924. * src/AbstractCommand.h
  15925. (socket): Changed its type to SocketHandle.
  15926. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15927. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15928. (disableReadCheckSocket): New function.
  15929. (disableWriteCheckSocket): New function.
  15930. (readCheckTarget): Changed its type to SocketHandle.
  15931. (writeCheckTarget): Changed its type to SocketHandle.
  15932. (AbstractCommand): Replaced Socket with SocketHandle.
  15933. * src/AbstractCommand.cc
  15934. (AbstractCommand): Replaced Socket with SocketHandle.
  15935. (~AbstractCommand): Removed the deallocation for Socket object.
  15936. (disableReadCheckSocket): New function.
  15937. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15938. (disableWriteCheckSocket): New function.
  15939. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15940. * src/HttpDownloadCommand.cc
  15941. (DownloadCommand): Replaced Socket with SocketHandle.
  15942. * src/PeerAbstractCommand.h
  15943. (socket): Changed its type to SocketHandle.
  15944. (peer): Changed its type to PeerHandle.
  15945. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15946. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15947. (disableReadCheckSocket): New function.
  15948. (disableWriteCheckSocket): New function.
  15949. (readCheckTarget): Changed its type to SocketHandle.
  15950. (writeCheckTarget): Changed its type to SocketHandle.
  15951. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15952. Replaced Peer with PeerHandle.
  15953. * src/HttpRequestCommand.cc
  15954. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15955. Use disableReadCheckSocket.
  15956. * src/PeerInitiateConnectionCommand.h
  15957. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15958. * src/PeerChokeCommand.cc
  15959. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15960. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15961. (execute): Use PeerHandle.
  15962. * src/PeerConnection.h
  15963. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15964. (socket): Changed its type to SocketHandle.
  15965. (PeerConnection): Replaced Socket with SocketHandle.
  15966. * src/PeerConnection.cc
  15967. (PeerConnection): Replaced Socket with SocketHandle.
  15968. * src/PeerInteractionCommand.h
  15969. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15970. Replaced Peer with PeerHandle.
  15971. * src/PeerInteractionCommand.cc
  15972. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15973. Replaced Peer with PeerHandle.
  15974. (executeInternal): Use disableWriteCheckSocket.
  15975. Use HandshakeMessageHandle.
  15976. (receiveMessages): Use PeerMessageHandle.
  15977. (prepareForNextPeer): Use PeerHandle.
  15978. * src/HttpProxyRequestCommand.h
  15979. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15980. * src/HttpResponseCommand.cc
  15981. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15982. * src/TorrentMan.cc
  15983. (nullPeer): Added external reference.
  15984. (~TorrentMan): Removed the deallocation of the elements of peers.
  15985. (addPeer): Rewritten.
  15986. (isPeerAvailable): Use nullPeer.
  15987. (deleteOldpeers): Replaced with deleteErrorPeer.
  15988. (deleteErrorPeer): New function.
  15989. (getPeer): Use PeerHandle and nullPeer.
  15990. (hasMissingPiece): Replaced Peer with PeerHandle.
  15991. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15992. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15993. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15994. (getMissingPiece): Replaced Peer with PeerHandle.
  15995. * src/FtpNegotiateCommand.cc
  15996. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15997. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15998. (recvGreeting): Use disableWriteCheckSocket.
  15999. (recvPasv): Removed the allocation of Socket.
  16000. Use disableReadCheckSocket.
  16001. (sendRestPasv): Use disableWriteCheckSocket.
  16002. (recvRetr): Changed assertion.
  16003. * src/PeerInteraction.h
  16004. (SharedHandle.h): Included SharedHandle.h.
  16005. (PeerMessageHandle): New type definition.
  16006. (HandshakeMessageHandle): New type definition.
  16007. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16008. (peer): Changed its type to PeerHandle.
  16009. (createHandshakeMessage): Replaced HandshakeMessage with
  16010. HandshakeMessageHandle.
  16011. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16012. (PeerInteraction): Replaced Peer with PeerHandle.
  16013. Replaced Socket with SocketHandle.
  16014. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16015. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16016. (receiveHandshake): Replaced HandshakeMessage with
  16017. HandshakeMessageHandle.
  16018. * src/PeerInteraction.cc
  16019. (PeerInteraction): Replaced Peer with PeerHandle.
  16020. Replaced Socket with SocketHandle.
  16021. (~PeerInteraction): Removed the deallocation of the elements of
  16022. messageQueue.
  16023. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16024. (isSendingMessageInProgress): Replaced PeerMessage with
  16025. PeerMessageHandle.
  16026. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16027. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16028. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16029. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16030. (abortPiece): Use PeerMessageHandle.
  16031. (receiveHandshake): Replaced HandshakeMessage with
  16032. HandshakeMessageHandle. Removed try-catch block.
  16033. (createHandshakeMessage): Replaced HandshakeMessage with
  16034. HandshakeMessageHandle.
  16035. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16036. Removed try-catch block.
  16037. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16038. * src/HttpProxyResponseCommand.cc
  16039. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16040. * src/FtpTunnelResponseCommand.h
  16041. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16042. * src/HttpConnection.cc
  16043. (HttpConnection): Replaced Socket with SocketHandle.
  16044. * src/PeerAbstractCommand.cc
  16045. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16046. (~PeerAbstractCommand): Removed the deallocation of socket.
  16047. Use disableReadCheckSocket, disableWriteCheckSocket.
  16048. (disableReadCheckSocket): New function.
  16049. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16050. (disableWriteCheckSocket): New function.
  16051. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16052. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16053. * src/FtpTunnelRequestCommand.cc
  16054. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16055. (~FtpTunnelRequestCommand): Corrected indentation.
  16056. * src/DownloadCommand.h
  16057. (DownloadCommand): Replaced Socket with SocketHandle.
  16058. * src/PeerListenCommand.cc
  16059. (PeerListenCommand): Removed the initialization of socket.
  16060. (~PeerListenCommand): Removed the deallocation of socket.
  16061. (bindPort): Use SocketHandle.
  16062. (execute): Use SocketHandle and PeerHandle.
  16063. * src/FtpDowndloadCommand.cc
  16064. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16065. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16066. * src/main.cc
  16067. (main): Corrected indentation.
  16068. * src/HttpInitiateConnectionCommand.cc
  16069. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16070. (executeInternal): Removed the allocation of socket.
  16071. * src/HttpRequestCommand.h
  16072. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16073. * src/FtpNegotiationCommand.h
  16074. (dataSocket): Changed its type to SocketHandle.
  16075. (serverSocket): Changed its type to SocketHandle.
  16076. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16077. * src/TorrentMan.h
  16078. (MAX_PEER_UPDATE): Removed.
  16079. (MAX_PEERS): New definition.
  16080. (Peers): The element is now of type PeerHandle.
  16081. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16082. (getPeer): Replaced Peer with PeerHandle.
  16083. (deleteOldErrorPeers): Removed.
  16084. (deleteErrorPeer): New function.
  16085. (hasMissingPiece): Replaced Peer with PeerHandle.
  16086. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16087. (getMissingPiece): Replaced Peer with PeerHandle.
  16088. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16089. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16090. (addActivePeer): Replaced Peer with PeerHandle.
  16091. (deleteActivePeer): Replaced Peer with PeerHandle.
  16092. Added a check for the return value of find.
  16093. * src/FtpTunnelResponseCommand.cc
  16094. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16095. * src/FtpInitiateConnectionCommand.cc
  16096. (executeInternal): Removed the allocation of socket.
  16097. * src/DownloadEngine.h
  16098. (Sockets): An element is now of type SocketHandle.
  16099. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16100. (CommandUuids): New type definition.
  16101. (rsockets): Changed its type to SockCmdMap.
  16102. (wsockets): Changed its type to SockCmdMap.
  16103. (addSocket): Rewritten.
  16104. (deleteSocket): Rewritten.
  16105. (addSocketForReadCheck): Rewritten.
  16106. (deleteSocketForReadCheck): Rewritten.
  16107. (addSocketForWriteCheck): Rewritten.
  16108. (deleteSocketForWriteCheck): Rewritten.
  16109. (PairFind): New template class.
  16110. * src/HttpDownloadCommand.h
  16111. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16112. * src/FtpConnection.cc
  16113. (FtpConnection): Replaced Socket with SocketHandle.
  16114. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16115. block.
  16116. * src/InitiateConnectionCommandFactory.cc
  16117. (DlAbortEx.h): Included DlAbortEx.h.
  16118. (createInitiateConnectionCommand): Throw exception if the protocol of
  16119. requested URI is not supported.
  16120. * src/Peer.cc
  16121. (nullPeer): Changed its type to PeerHandle.
  16122. (operator==): New function.
  16123. (operator!=): New function.
  16124. * src/Peer.h
  16125. (SharedHandle.h): Included SharedHandle.h.
  16126. (operator==): New function.
  16127. (operator!=): New function.
  16128. (Peer): Added the default constructor.
  16129. Use resetStatus() to initialize member variables.
  16130. (nullPeer): Removed.
  16131. * src/TrackerUpdateCommand.cc
  16132. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16133. with MIN_PEERS.
  16134. * src/PeerListenCommand.h
  16135. (socket): Changed its type to SocketHandle.
  16136. * src/Command.h
  16137. (CommandUuid): New type definition.
  16138. (uuid): New variable.
  16139. (uuidGen): New variable.
  16140. (Command): Added the initialization of uuid.
  16141. (getUuid): New function.
  16142. * src/Socket.h
  16143. (Socket): Removed.
  16144. (SocketHandle): New type definition.
  16145. * src/DownloadEngine.h
  16146. (FindCommand): New function object.
  16147. (run): The portion of socket check was rewritten.
  16148. (SetDescriptor): New function object.
  16149. (AccumulateActiveCommandUuid): New function object.
  16150. (waitData): Rewritten.
  16151. (addSocket): Rewritten.
  16152. (deleteSocket): Rewritten.
  16153. (addSocketForReadCheck): Rewritten.
  16154. (addSocketForWriteCheck): Rewritten.
  16155. (deleteSocketForReadCheck): Rewritten.
  16156. (deleteSocketForWriteCheck): Rewritten.
  16157. * src/HttpProxyResponseCommand.h
  16158. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16159. * src/HttpConnection.h
  16160. (socket): Changed its type to SocketHandle.
  16161. (HttpConnection): Replaced Socket with SocketHandle.
  16162. * src/PeerInitiateConnectionCommand.cc
  16163. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16164. (executeInternal): Removed the allocation of socket.
  16165. (prepareForNextPeer): Use PeerHandle.
  16166. * src/PeerMessage.h
  16167. (peer): Changed its type to PeerHandle.
  16168. (getPeer): Replaced Peer with PeerHandle.
  16169. (setPeer): Replaced Peer with PeerHandle.
  16170. * src/DownloadCommand.cc
  16171. (DownloadCommand): Replaced Socket with SocketHandle.
  16172. * src/FtpConnection.h
  16173. (socket): Changed its type to SocketHandle.
  16174. (FtpConnection): Replaced Socket with SocketHandle.
  16175. (sendPort); Replaced Socket with SocketHandle.
  16176. * src/FtpDowndloadCommand.h
  16177. (ctrlSocket): Changed its type to SocketHandle.
  16178. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16179. * src/HttpProxyRequestCommand.cc
  16180. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16181. * src/FtpTunnelRequestCommand.h
  16182. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16183. etc
  16184. * src/PeerChokeCommand.h
  16185. (setAllPeerChoked): Removed.
  16186. (setAllPeerResetDelta): Removed.
  16187. * src/PeerChokeCommand.cc
  16188. (setAllPeerChoked): Removed.
  16189. (ChokePeer): New function object.
  16190. (setAllPeerResetDelta): Removed.
  16191. (ResetDelta): New function object.
  16192. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16193. (execute): Show download speed when the local node is a seeder.
  16194. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16195. using STL.
  16196. * src/TrackerWatcherCommand.h
  16197. (MIN_PEERS): Removed.
  16198. * src/TorrentMan.cc
  16199. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16200. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16201. To fix the bug that .aria2 file is not saved if downloading is stopped
  16202. by the errors:it results that aria2 can not resume downloading:
  16203. * src/main.cc
  16204. (normalDownload): Added the call to save().
  16205. (main): Added the deletion of the elements in 'reserved'.
  16206. To fix log:
  16207. * src/PeerInteraction.cc
  16208. (receiveHandshake): Fixed log.
  16209. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16210. To improve download performance in BitTorrent:
  16211. * src/TorrentMan.cc
  16212. (getPeer): Check the number of connections. Return nullPeer if
  16213. it is greater than MAX_PEER_UPDATE.
  16214. This code was originally here, but was removed in 0.5.1.
  16215. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16216. To improve the conditional compilation:
  16217. * src/MultiDiskWriter.h:
  16218. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16219. * src/MultiDiskWriter.cc:
  16220. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16221. * src/Util.h:
  16222. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16223. Added ENABLE_BITTORRENT around computeFastSet().
  16224. * src/Util.cc:
  16225. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16226. Added ENABLE_BITTORRENT around computeFastSet().
  16227. * src/messageDigest.h:
  16228. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16229. * src/ShaVisitor.h:
  16230. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16231. * src/ShaVisitor.cc:
  16232. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16233. * src/main.cc:
  16234. Added ENABLE_BITTORRENT around includes and blocks related to
  16235. BitTorrent.
  16236. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16237. digest support is not available.
  16238. * src/AbstractDiskWriter.h:
  16239. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16240. * src/AbstractDiskWriter.cc:
  16241. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16242. * src/MetalinkEntry.cc
  16243. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16244. support is not available.
  16245. To add command-line options for Metalink:
  16246. * src/main.cc:
  16247. Added metalink-version, metalink-language, metalink-os,
  16248. follow-metalink.
  16249. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16250. * src/main.cc: Use these definition.
  16251. * Release 0.6.0
  16252. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16253. To add Metalink support(http/ftp only):
  16254. * src/AbstractCommand.h
  16255. (tryReserved): New function.
  16256. * src/AbstractCommand.cc
  16257. (execute): Call tryReserved().
  16258. (tryReserved): New function.
  16259. * src/Request.h
  16260. (Requests): New type definition.
  16261. * src/SegmentMan.h
  16262. (reserved): New variable.
  16263. * src/Util.h
  16264. (fileChecksum): New function.
  16265. (toUpper): New function.
  16266. (toLower): New function.
  16267. * src/Util.cc
  16268. (messageDigest.h): Included.
  16269. (trim): Trim \r\n\t.
  16270. (fileChecksum): New function.
  16271. (toUpper): New function.
  16272. (toLower): New function.
  16273. * src/main.cc
  16274. (normalDownload): New function.
  16275. (main): Added 2 command-line options: metalink-file,
  16276. metalink-connection. Their usage has not been written yet.
  16277. * src/MetalinkProcessor.h: New class.
  16278. * src/Xml2MetalinkProcessor.h: New class.
  16279. * src/Xml2MetalinkProcessor.cc: New class.
  16280. * src/MetalinkEntry.h: New class.
  16281. * src/MetalinkEntry.cc: New class.
  16282. * src/MetalinkResource.h: New class.
  16283. * src/MetalinkResource.cc: New class.
  16284. To add md5 message digest checking:
  16285. * src/messageDigest.h: Rewritten.
  16286. * src/MultiDiskWriter.cc: Updated according to the changes in
  16287. messageDigest.h.
  16288. * src/ShaVisitor.cc: Updated according to the changes in
  16289. messageDigest.h.
  16290. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16291. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16292. messageDigest.h.
  16293. To fix a bug that causes segfault when the payload length in peer
  16294. message is less than 0:
  16295. * src/PeerConnection.cc:
  16296. (receiveMessage): Fixed the bug.
  16297. * src/PeerMessageUtil.cc
  16298. (checkLength): Throw an exception if length is less than or equals to
  16299. 0.
  16300. To add new interfaces to Base64 encoding/decoding:
  16301. * src/Base64.h
  16302. (part_encode): Changed the method signature.
  16303. (encode): New function(overload).
  16304. (decode): New function(overload).
  16305. * src/Base64.cc
  16306. (part_encode): Rewritten.
  16307. (encode): Rewritten.
  16308. (encode): New function(overload).
  16309. To prevent a peer to download same piece if there is an error in
  16310. checksum:
  16311. * src/PieceMessage.cc
  16312. (receivedAction): Call peerInteraction->abortPiece().
  16313. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16314. To fix the bug that causes same have message is sent many times to
  16315. a single peer.
  16316. * src/Time.cc
  16317. (isNewer): Use Util::difftv().
  16318. * src/Util.cc
  16319. (difftv): Added a cast to (long long int).
  16320. * src/TorrentMan.cc
  16321. (advertisePiece): Use push_front.
  16322. (getAdvertisedPieceIndexes): A performance improvement was made.
  16323. To fix the bug that sends tracker requests without a sleep interval
  16324. when the number of connections is less than 15.
  16325. * src/TrackerWatcherCommand.cc
  16326. (execute): Now the number of connections is not a factor to decide
  16327. whether or not a tracker request should be sent or not.
  16328. * src/Time.h
  16329. (setTimeInSec): New function.
  16330. * src/Time.cc
  16331. (setTimeInSec): New function.
  16332. etc.
  16333. * src/ChokeMessage.cc
  16334. (receivedAction): Removed peer->snubbing = false
  16335. * src/PeerConnection.h
  16336. (receiveHandshake): Updated doc.
  16337. * src/TorrentMan.h
  16338. (getAdvertisedPieceIndexes): Updated the method signature.
  16339. * src/TorrentMan.cc
  16340. (getAdvertisedPieceIndexes): Updated the method signature.
  16341. * src/Time.h
  16342. (getTimeInMicros): Added a cast to (long long int).
  16343. (getTimeInMillis): Added a cast to (long long int).
  16344. * Release 0.5.2
  16345. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16346. To make a listening socket non-block:
  16347. * src/SocketCore.h
  16348. (setNonBlockingMode): New function.
  16349. * src/SocketCore.cc
  16350. (setNonBlockingMode): New function.
  16351. (beginListen): Added a call to setNonBlockingMode().
  16352. (acceptConnection): Call setNonBlockingMode().
  16353. (setBlockingMode): Updated.
  16354. To handle tracker's NAT-checking:
  16355. * src/PeerConnection.cc
  16356. (receiveHandshake): 'msg' param is filled with received data and
  16357. its length is assigned to 'length' param, even if all handshake
  16358. message is not yet received.
  16359. * src/PeerInteractionCommand.cc
  16360. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16361. a new peer connects to localhost.
  16362. A call to peerInteraction->sendHandshake() was removed because
  16363. it is called from peerInteraction->receiveHandshake(true).
  16364. * src/PeerInteraction.h
  16365. (quickReplied): New variable.
  16366. (receiveHandshake): Added an argument.
  16367. * src/PeerInteraction.cc
  16368. (PeerInteraction): Added the initialization of quickReplied.
  16369. (receiveHandshake): Send handshake message as soon as the info hash
  16370. in a handshake message from a peer is correct.
  16371. To change the random part of peer id and key parameter:
  16372. * src/TorrentMan.h
  16373. (key): New variable.
  16374. * src/TorrentMan.cc
  16375. (setupInternal1): Use Util::randomAlpha() to generate random part
  16376. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16377. key is also generated by Util::randomAlpha() and it is now 8 character
  16378. long.
  16379. * src/Util.h
  16380. (randomAlpha): New function.
  16381. * src/Util.cc
  16382. (randomAlpha): New function.
  16383. * src/TrackerWatcherCommand.cc
  16384. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16385. Added no_peer_id=1.
  16386. Set snubbing flag to false when a choke message is received from a
  16387. snubbed peer.
  16388. * src/ChokeMessage.cc
  16389. (receivedAction): Set snubbing flag to false.
  16390. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16391. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16392. * src/SimpleLogger.h (writeHeader): New function.
  16393. * src/SimpleLogger.cc (writeHeader): New function.
  16394. (writeLog): Fixed the bug that causes segfaults if exception message
  16395. contains an unescaped "%" character.
  16396. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16397. when a tracker request fails.
  16398. * src/Request.cc (parseUrl): Query string is now handled properly.
  16399. * Release 0.5.1
  16400. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16401. To add Time class which represents a specific instant in time and
  16402. its precision is microseconds. Time checking procedures were rewritten
  16403. using this object.
  16404. * src/Time.h: New class.
  16405. * src/Time.cc: New class.
  16406. * src/AbstractCommand.h
  16407. (updateCheckPoint): Removed.
  16408. (isTimeoutDetected): Removed.
  16409. (checkPoint): Changed the type to Time.
  16410. (timeout): New variable.
  16411. (setTimeout): New function.
  16412. * src/AbstractCommand.cc
  16413. (AbstractCommand): Removed the initialization of checkPoint.
  16414. Added the initialization of timeout.
  16415. (updateCheckPoint): Removed.
  16416. (isTimeoutDetected): Removed.
  16417. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16418. * src/PeerChokeCommand.h
  16419. (checkPoint): Changed the type to Time.
  16420. * src/PeerChokeCommand.cc
  16421. (PeerChokeCommand): Removed the initialization of checkPoint.
  16422. (execute): Rewritten using Time object.
  16423. * src/TrackerWatcherCommand.h
  16424. (checkPoint): Changed the type to Time.
  16425. * src/TrackerWatcherCommand.cc
  16426. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16427. (execute): Rewritten.
  16428. * src/ConsoleDownloadEngine.h
  16429. (cp): Changed the type to Time.
  16430. (startup): Changed the type to Time.
  16431. * src/ConsoleDownloadEngine.cc
  16432. (initStatistics): Use cp.reset(), startup.reset().
  16433. (calculateStatistics): Rewritten using Time object.
  16434. * src/PeerAbstractCommand.h
  16435. (updateCheckPoint): Removed.
  16436. (isTimeoutDetected): Removed.
  16437. (checkPoint): Changed the type to Time.
  16438. * src/PeerAbstractCommand.cc
  16439. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16440. (updateCheckPoint): Removed.
  16441. (isTimeoutDetected): Removed.
  16442. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16443. * src/PeerInteractionCommand.cc
  16444. (PeerInteractionCommand): Removed the initializations of struct
  16445. timeval variables.
  16446. * src/PeerInteractionCommand.h
  16447. (keepAliveCheckPoint): Changed the type to Time.
  16448. (chokeCheckPoint): Changed the type to Time.
  16449. (freqCheckPoint): Changed the type to Time.
  16450. (haveCheckTime): Changed the type to Time.
  16451. * src/PeerInteractionCommand.cc
  16452. (executeInternal): Rewritten using Time object.
  16453. (detectMessageFlooding): Rewritten using Time object.
  16454. (checkLongTimePeerChoking): Rewritten using Time object.
  16455. (sendKeepAlive): Rewritten using Time object.
  16456. (checkHave): Rewritten using Time object.
  16457. * src/SleepCommand.h
  16458. (checkPoint): Changed the type to Time.
  16459. * src/SleepCommand.cc
  16460. (SleepCommand): Removed the initialization of checkPoint.
  16461. (execute): Rewritten using Time object.
  16462. * src/TorrentAutoSaveCommand.h
  16463. (checkPoint): Changed the type to Time.
  16464. * src/TorrentAutoSaveCommand.cc
  16465. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16466. (execute): Rewritten.
  16467. * src/DownloadCommand.h
  16468. (sw): Changed the type to Time.
  16469. * src/DownloadCommand.cc
  16470. (DownloadCommand): Removed the initialization of sw.
  16471. (executeInternal): Rewritten.
  16472. * src/RequestSlot.h
  16473. (dispatchedTime): Changed the type to Time.
  16474. * src/RequestSlot.cc
  16475. (RequestSlot): Removed the call to setDispatchedTime().
  16476. (setDispatchedTime): Rewirtten.
  16477. (isTimeout): Rewritten.
  16478. (getLatencyInMillis): Rewritten.
  16479. * src/TorrentDownloadEngine.h
  16480. (cp): Changed the type to Time[2].
  16481. (startup): Changed the type to Time.
  16482. * src/TorrentDownloadEngine.cc
  16483. (initStatistics): Rewritten.
  16484. (calculateStatistics): Rewritten.
  16485. * src/DownloadEngine.cc
  16486. (run): Rewritten.
  16487. To detect all attempts to connect to the tracker are failed:
  16488. * src/AbstractCommand.cc
  16489. (execute): Increment e->segmentMan->errors if a command aborted.
  16490. * src/SegmentMan.h
  16491. (errors): New variable.
  16492. * src/SegmentMan.cc
  16493. (SegmentMan): Added the initialization of errors.
  16494. (init): Added the initialization of errors.
  16495. * src/TrackerWatcherCommand.cc
  16496. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16497. request was failed.
  16498. To handle snubbed peers:
  16499. * src/PeerChokeCommand.cc
  16500. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16501. (execute): Snubbed peers don't get unchoked.
  16502. * src/PeerInteraction.h
  16503. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16504. * src/PeerInteraction.cc
  16505. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16506. back the requested 16k block in 60 seconds.
  16507. * src/PieceMessage.cc
  16508. (receivedAction): A peer's snubbed state is cleard if it sends
  16509. the requested 16k block in 60 seconds.
  16510. * src/Peer.h
  16511. (snubbing): New variable.
  16512. * src/Peer.cc
  16513. (resetStatus): Added snubbed = false.
  16514. To fix the bug that causes have message is not sent:
  16515. * src/PeerInteractionCommand.cc
  16516. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16517. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16518. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16519. * src/TorrentMan.h
  16520. (HaveEntry): New class.
  16521. (advertisePiece): Rewritten.
  16522. (getAdvertisedPieceIndexes): Rewritten.
  16523. (Haves): Changed the type.
  16524. (getAdvertisedPieceIndexes): Added an argument.
  16525. Others:
  16526. * src/TorrentMan.h
  16527. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16528. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16529. * src/TorrentMan.cc
  16530. (getPeer): Don't check the number of connections here.
  16531. (setupInternal1): Changed peerId.
  16532. * src/PeerInteractionCommand.h
  16533. (KEEP_ALIVE_INTERVAL): New definition.
  16534. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16535. * src/main.cc
  16536. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16537. * src/DownloadEngine.h: Removed unnecessary header includes.
  16538. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16539. To fix the bug that causes segfaults if a tracker returns a zero-length
  16540. list as "peers":
  16541. * src/TrackerUpdateCommand.cc
  16542. (execute): Added a check to see wether the type of peers is Data*.
  16543. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16544. * Release 0.5.0
  16545. To fix compile issue with gcc3:
  16546. * src/CancelMessage.h
  16547. (ID): Renamed as ID_t
  16548. (ID_t): New enum.
  16549. * src/RejectMessage.h
  16550. (ID): Renamed as ID_t
  16551. (ID_t): New enum.
  16552. * src/SuggestPieceMessage.h
  16553. (ID): Renamed as ID_t
  16554. (ID_t): New enum.
  16555. * src/AllowedFastMessage.h
  16556. (ID): Renamed as ID_t
  16557. (ID_t): New enum.
  16558. * src/PortMessage.h
  16559. (ID): Renamed as ID_t
  16560. (ID_t): New enum.
  16561. * src/HaveNoneMessage.h
  16562. (ID): Renamed as ID_t
  16563. (ID_t): New enum.
  16564. * src/KeepAliveMessage.h
  16565. (ID): Renamed as ID_t
  16566. (ID_t): New enum.
  16567. * src/HaveAllMessage.h
  16568. (ID): Renamed as ID_t
  16569. (ID_t): New enum.
  16570. * src/UnchokeMessage.h
  16571. (ID): Renamed as ID_t
  16572. (ID_t): New enum.
  16573. * src/BitfieldMessage.h
  16574. (ID): Renamed as ID_t
  16575. (ID_t): New enum.
  16576. * src/PieceMessage.h
  16577. (ID): Renamed as ID_t
  16578. (ID_t): New enum.
  16579. * src/RequestMessage.h
  16580. (ID): Renamed as ID_t
  16581. (ID_t): New enum.
  16582. * src/NotInterestedMessage.h
  16583. (ID): Renamed as ID_t
  16584. (ID_t): New enum.
  16585. * src/ChokeMessage.h
  16586. (ID): Renamed as ID_t
  16587. (ID_t): New enum.
  16588. * src/InterestedMessage.h
  16589. (ID): Renamed as ID_t
  16590. (ID_t): New enum.
  16591. * src/HaveMessage.h
  16592. (ID): Renamed as ID_t
  16593. (ID_t): New enum.
  16594. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16595. * src/PeerAbstractCommand.h
  16596. (beforeSocketCheck): Removed.
  16597. * src/PeerAbstractCommand.cc
  16598. Modified in order to call executeInternal() even if socket check
  16599. and upload limit check fail.
  16600. * src/PeerInteractionCommand.h
  16601. (keepAlive): Removed.
  16602. (sendKeepAlive): New function.
  16603. (checkHave): New function.
  16604. (beforeSocketCheck): Removed.
  16605. * src/PeerInteractionCommand.cc
  16606. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16607. calls to checkHave() and sendKeepAlive().
  16608. (keepAlive): Renamed to sendKeepAlive().
  16609. (sendKeepAlive): New function.
  16610. (beforeSocketCheck): Removed.
  16611. (checkHave): New function.
  16612. * src/BitfieldMan.cc
  16613. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16614. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16615. 0.
  16616. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16617. * src/TorrentMan.h
  16618. (UsedPieces): Removed.
  16619. (Pieces): New type definition.
  16620. * src/Piece.h: Updated doc.
  16621. * src/Peer.h
  16622. (totalLength): Removed.
  16623. * src/Peer.cc
  16624. (updateLatency): Fixed the latency calculation.
  16625. * src/TorrentMan.cc
  16626. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16627. than or equal to MAX_PEER_LIST_SIZE.
  16628. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16629. then return false.
  16630. (deleteOldErrorPeers): Rewritten.
  16631. (deleteUsedPiece): Fixed the miss use of STL remove.
  16632. * src/PeerInteraction.h
  16633. (Pieces): Removed.
  16634. (deleteTimeoutRequestSlot): Removed.
  16635. (deleteCompletedRequestSlot): Removed.
  16636. (checkRequestSlot): New function.
  16637. * src/PeerInteraction.cc
  16638. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16639. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16640. (checkRequestSlot): New function.
  16641. * src/DownloadEngine.cc
  16642. (run): Clear activeSockets before calling waitData().
  16643. (waitData): Removed a call to activeSockets.clear().
  16644. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16645. To attempt to handle EINTR:
  16646. * src/SocketCore.cc
  16647. (isReadable): Added EINTR handling.
  16648. (isWritable): Added EINTR handling.
  16649. To improve the performance:
  16650. * src/AbstractCommand.cc
  16651. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16652. * src/PeerInteractionCommand.h
  16653. (receiveMessage): Renamed as receiveMessages().
  16654. (receiveMessages): New function.
  16655. * src/PeerInteractionCommand.cc
  16656. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16657. () function. detectMessageFlooding() is moved here.
  16658. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16659. (). The flooding detection for have message is comment out.
  16660. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16661. Util::difftv().
  16662. (receiveMessage): Renamed as receiveMessages().
  16663. (receiveMessages): New function.
  16664. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16665. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16666. * src/SleepCommand.cc
  16667. (execute): Use Util::difftvsec() instead of Util::difftv().
  16668. * src/BitfieldMan.h
  16669. (getNthBitIndex): New function.
  16670. (hasMissingPiece): New function.
  16671. (getAllMissingIndexes): New function.
  16672. * src/BitfieldMan.cc
  16673. (countSetBit): Rewritten.
  16674. (getNthBitIndex): New function.
  16675. (getMissingIndexRandomly): Rewritten.
  16676. (hasMissingPiece): New function.
  16677. (getAllMissingIndexes): New function.
  16678. * src/TorrentMan.cc
  16679. (hasMissingPiece): New function.
  16680. (deleteUsedPiece): Rewritten using STL.
  16681. * src/PeerInteraction.cc
  16682. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16683. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16684. (addRequests): Updated the number of pending requests.
  16685. * src/PeerAbstractCommand.cc
  16686. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16687. (execute): Returns true if TorrentMan::isHalt() is true.
  16688. Corrected the condition of upload limit checking.
  16689. * src/Util.h
  16690. (countBit): New function.
  16691. * src/Util.cc
  16692. (nbits): New variable.
  16693. (countBit): New function.
  16694. * src/DownloadEngine.h
  16695. (SockCmdMap): New type definition.
  16696. (waitData): Added an argument.
  16697. (addSocket): Added an argument.
  16698. (addSocketForReadCheck): Added an argument.
  16699. (addSocketForWriteCheck): Added an argument.
  16700. * src/DownloadEngine.cc
  16701. (run): Executes only commands whose sockets are ready to read or write.
  16702. All commands are executed in every 1 second.
  16703. (waitData): Calls select() again if it returned
  16704. EINTR.
  16705. (addSocket): Saves socket and command object pair to the map.
  16706. (deleteSocket): Deletes socket and command object pair from the map.
  16707. (addSocketForReadCheck): Added an argument.
  16708. (addSocketForWriteCheck): Added an argument.
  16709. * src/DownloadCommand.cc
  16710. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16711. To send "event=stopped" to the tracker when the application finishes:
  16712. * src/PeerChokeCommand.h
  16713. (checkPoint): New variable.
  16714. * src/PeerChokeCommand.cc
  16715. (PeerChokeCommand): Added the initialization of checkPoint.
  16716. (execute): The interval check is now done by checkPoint, not
  16717. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16718. * src/TorrentMan.h
  16719. (halt): New function.
  16720. (hasMissingPiece): New function.
  16721. (isHalt): New function.
  16722. (setHalt): New function.
  16723. * src/TorrentMan.cc
  16724. (TorrentMan): Added the initialization of halt.
  16725. * src/TorrentAutoSaveCommand.h
  16726. (checkPoint): New variable.
  16727. * src/PeerListenCommand.cc
  16728. (execute): Returns true if TorrentMan::isHalt() is true.
  16729. * src/main.cc
  16730. (setSignalHander): Added flags argument.
  16731. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16732. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16733. Removed printDownloadAbortMessage() after torrent downloading loop.
  16734. * src/TorrentAutoSaveCommand.cc
  16735. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16736. (execute): Returns true if TorrentMan::isHalt() is true.
  16737. The interval check is now done by checkPoint, not SleepCommand.
  16738. * src/TrackerWatcherCommand.cc
  16739. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16740. event=stopped.
  16741. * src/TrackerUpdateCommand.cc
  16742. (prepareForRetry): Do not use SleepCommand here.
  16743. (execute): Returns true if TorrentMan::isHalt() is true.
  16744. Others:
  16745. * src/TorrentMan.cc
  16746. (getMissingPieceIndex): Updated log message.
  16747. * src/PeerInteraction.cc
  16748. (createPeerMessag): Updated log message.
  16749. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16750. To add the ability to download several pieces in mix in a command and
  16751. increase the number of request slots according to request-cancel
  16752. latency:
  16753. * src/PeerInteractionCommand.cc
  16754. (executeInternal): The number of messages to be received at a time
  16755. is increased from 10 to 50.
  16756. * src/LogFactory
  16757. (getInstance): Added NullLogger.
  16758. * src/NullLogger.h: New class.
  16759. * src/BitfieldMan.h
  16760. (getMissingIndex): New function.
  16761. * src/BitfieldMan.cc
  16762. (getMissingIndex): New function.
  16763. * src/TorrentMan.h
  16764. (checkOutPiece): New function.
  16765. (getMissingPieceIndex): New function.
  16766. (getMissingFastPieceIndex): New function.
  16767. (getMissingFastPiece): New function.
  16768. * src/TorrentMan.cc
  16769. (updatePiece): Rewritten using STL.
  16770. (syncPiece): Rewritten using STL.
  16771. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16772. checkOutPiece().
  16773. (getMissingPieceIndex): New function.
  16774. (getMissingFastPieceIndex): New function.
  16775. (getMissingFastPiece): New function.
  16776. (checkOutPiece): New function.
  16777. * src/PeerInteraction.h
  16778. (Pieces): New type definition.
  16779. (piece): Removed.
  16780. (pieces): New variable.
  16781. (getNewPieceAndSendInterest): Added the "piece" argument.
  16782. (abortPiece): Added the "piece" argument.
  16783. (abortAllPieces): New function.
  16784. (isInRequestSlot): New function.
  16785. (hasDownloadPiece): Added the "index" argument.
  16786. (setDownloadPiece): Removed.
  16787. (getDownloadPiece): Added the "index" argument.
  16788. (updatePiece): New function.
  16789. (createRequestMessage): Added the "index" argument.
  16790. * src/PeerInteraction.cc
  16791. (onChoked): Rewritten.
  16792. (abortPiece): Rewirtten.
  16793. (abortAllPieces): New function.
  16794. (deleteTimeoutRequestSlot): Rewritten.
  16795. Clarified code a little bit.
  16796. (deleteCompletedRequestSlot): Rewritten.
  16797. (isInRequestSlot): New function.
  16798. (syncPiece): Rewritten.
  16799. (updatePiece): New function.
  16800. (getNewPieceAndSendInterest): Rewritten.
  16801. (addRequests): Rewritten.
  16802. (getDownloadPiece): Rewritten.
  16803. (hasDownloadPiece): Rewritten.
  16804. (createRequestMessage): Added the "index" argument.
  16805. * src/common.h
  16806. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16807. (DIV_FLOOR): New definition.
  16808. * src/PieceMessage.cc
  16809. (receivedAction): Update request-piece latency here.
  16810. * src/RequestSlot.h
  16811. (getLatencyInMillis): New function.
  16812. * src/RequestSlot.cc
  16813. (isTimeout): Rewritten using getLatencyInMillis.
  16814. (getLatencyInMillis): New function.
  16815. * src/Piece.h
  16816. (operator==): New function.
  16817. (getMissingBlockIndex): New function.
  16818. * src/Piece.cc
  16819. (operator==): New function.
  16820. (getMissingBlockIndex): New function.
  16821. * src/Peer.h
  16822. (DEFAULT_LATENCY): New definition.
  16823. (latency): New variable.
  16824. (updateLatency): New function.
  16825. (getLatency): New function.
  16826. * src/Peer.cc
  16827. (resetStatus): Reset latecy.
  16828. (updateLatency): New function.
  16829. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16830. * src/SocketCore.cc
  16831. (isReadable): Added secure to the condition.
  16832. * src/HttpConnection.cc
  16833. (receiveResponse): Fixed a bug that causes no response header
  16834. exception.
  16835. * src/Peer.h
  16836. (getFastSet): Fixed the return value type.
  16837. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16838. To remove a wait from download loop:
  16839. * src/DownloadEngine.cc
  16840. (run): Comment out shortSleep.
  16841. To rewrite the message handling:
  16842. * src/SimplePeerMessage.h: New class.
  16843. * src/SimplePeerMessage.cc: New class.
  16844. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16845. (msg): New variable.
  16846. (create): New function.
  16847. (send): Removed.
  16848. (getMessage): New function.
  16849. (getMessageLength): New function.
  16850. * src/CancelMessage.cc
  16851. (create): New function.
  16852. (receivedAction): Replaced deleteRequestMessageInQueue with
  16853. rejectPieceMessageInQueue.
  16854. (send): Removed.
  16855. (getMessage): New function.
  16856. (getMessageLength): New function.
  16857. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16858. (msg): New variable.
  16859. (msgLength): New variable.
  16860. (~BitfieldMessage): Deleted msg.
  16861. (send): Removed.
  16862. (getMessage): New function.
  16863. (getMessageLength): New function.
  16864. * src/BitfieldMessage.cc
  16865. (create): New function.
  16866. (send): Removed.
  16867. (getMessage): New function.
  16868. (getMessageLength): New function.
  16869. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16870. (msg): New variable.
  16871. (sendPredicate): New function.
  16872. (onSendComplete): New function.
  16873. (send): Removed.
  16874. (getMessage): New function.
  16875. (getMessageLength): New function.
  16876. (create): New function.
  16877. * src/ChokeMessage.cc
  16878. (create): New function.
  16879. (send): Removed.
  16880. (sendPredicate): New function.
  16881. (getMessage): New function.
  16882. (getMessageLength): New function.
  16883. (onSendComplete): New function.
  16884. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16885. (msg): New variable.
  16886. (send): Removed.
  16887. (getMessage): New function.
  16888. (getMessageLength): New function.
  16889. * src/KeepAliveMessage.cc
  16890. (send): Removed.
  16891. (getMessage): New function.
  16892. (getMessageLength): New function.
  16893. * src/PortMessage.h
  16894. (create): New function.
  16895. (receivedAction): Updated log message.
  16896. * src/PortMessage.cc: New file.
  16897. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16898. (msg): New variable.
  16899. (sendPredicate): New function.
  16900. (onSendComplete): New function.
  16901. (create): New function.
  16902. (send): Removed.
  16903. (getMessage): New function.
  16904. (getMessageLength): New function.
  16905. * src/UnchokeMessage.cc
  16906. (create): New function.
  16907. (send): Removed.
  16908. (sendPredicate): New function.
  16909. (getMessage): New function.
  16910. (getMessageLength): New function.
  16911. (onSendComplete): New function.
  16912. * src/PieceMessage.h
  16913. (leftPieceDataLength): Removed.
  16914. (leftDataLength): New variable.
  16915. (headerSend): New variable.
  16916. (pendingCount): New variable.
  16917. (msgHeader): New variable.
  16918. (sendPieceData): New function.
  16919. (incrementPendingCount): New function.
  16920. (isPendingCountMax): New function.
  16921. (create): New function.
  16922. (getMessageHeader): New function.
  16923. (getMessageHeaderLength): New function.
  16924. * src/PieceMessage.cc
  16925. (create): New function.
  16926. (getMessageHeader): New function.
  16927. (getMessageHeaderLength): New function.
  16928. (send): Rewritten.
  16929. (sendPieceData): New function.
  16930. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16931. (msg): New variable.
  16932. (create): New function.
  16933. (getMessage): New function.
  16934. (getMessageLength): New function.
  16935. * src/HaveMessage.cc
  16936. (create): New function.
  16937. (send): Removed.
  16938. (sendPieceData): New function.
  16939. (getMessage): New function.
  16940. (getMessageLength): New function.
  16941. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16942. (msg): New variable.
  16943. (create): New function.
  16944. (send): Removed.
  16945. (getMessage): New function.
  16946. (getMessageLength): New function.
  16947. * src/RequestMessage.cc
  16948. (create): New function.
  16949. (receivedAction): Added the handling of fast extension.
  16950. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16951. (send): Removed.
  16952. (getMessage): New function.
  16953. (getMessageLength): New function.
  16954. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16955. (msg): New variable.
  16956. (sendPredicate): New function.
  16957. (onSendComplete): New function.
  16958. (create): New function.
  16959. (getMessage): New function.
  16960. (getMessageLength): New function.
  16961. * src/InterestedMessage.cc
  16962. (create): New function.
  16963. (send): Removed.
  16964. (sendPieceData): New function.
  16965. (getMessage): New function.
  16966. (getMessageLength): New function.
  16967. (onSendComplete): New function.
  16968. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16969. (msg): New variable.
  16970. (sendPieceData): New function.
  16971. (onSendComplete): New function.
  16972. (create): New function.
  16973. (send): Removed.
  16974. (getMessage): New function.
  16975. (getMessageLength): New function.
  16976. * src/NotInterestedMessage.cc
  16977. (create): New function.
  16978. (send): Removed.
  16979. (sendPredicate): New function.
  16980. (getMessage): New function.
  16981. (getMessageLength): New function.
  16982. (onSendComplete): New function.
  16983. * src/AllowedFastMessage.h: New class.
  16984. * src/AllowedFastMessage.cc: New class.
  16985. * src/RejectMessage.h: New class.
  16986. * src/RejectMessage.cc: New class.
  16987. * src/SuggestPieceMessage.h: New class.
  16988. * src/SuggestPieceMessage.cc: New class.
  16989. * src/HaveAllMessage.h: New class.
  16990. * src/HaveAllMessage.cc: New class.
  16991. * src/HaveNoneMessage.h: New class.
  16992. * src/HaveNoneMessage.cc: New class.
  16993. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16994. (msg): New variable.
  16995. (reserved): New variable.
  16996. (create): New function.
  16997. (getId): New function.
  16998. (receivedAction): New function.
  16999. (getMessage): New function.
  17000. (getMessageLength): New function.
  17001. (isFastExtensionSupported): New function.
  17002. * src/HandshakeMessage.cc
  17003. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17004. (create): New function.
  17005. (getMessage): New function.
  17006. (getMessageLength): New function.
  17007. (toString): Added the output of reserved field.
  17008. (check): Added const qualifier.
  17009. (isFastExtensionSupported): New function.
  17010. * src/PeerMessageUtil.h
  17011. (createChokeMessage): Removed.
  17012. (createUnchokeMessage): Removed.
  17013. (createInterestedMessage): Removed.
  17014. (createNotInterestedMessage): Removed.
  17015. (createHaveMessage): Removed.
  17016. (createBitfieldMessage): Removed.
  17017. (createRequestMessage): Removed.
  17018. (createCancelMessage): Removed.
  17019. (createPieceMessage): Removed.
  17020. (createPortMessage): Removed.
  17021. (createChokeMessage): Removed.
  17022. (createUnchokeMessage): Removed.
  17023. (createInterestedMessage): Removed.
  17024. (createNotInterestedMessage): Removed.
  17025. (createHaveMessage): Removed.
  17026. (createBitfieldMessage): Removed.
  17027. (createRequestMessage): Removed.
  17028. (createCancelMessage): Removed.
  17029. (createPieceMessage): Removed.
  17030. (createKeepAliveMessage): Removed.
  17031. (createHandshakeMessage): Removed.
  17032. (setIntParam): New function.
  17033. (createPeerMessageString): New function.
  17034. * src/PeerMessageUtil.cc
  17035. (createChokeMessage): Removed.
  17036. (createUnchokeMessage): Removed.
  17037. (createInterestedMessage): Removed.
  17038. (createNotInterestedMessage): Removed.
  17039. (createHaveMessage): Removed.
  17040. (createBitfieldMessage): Removed.
  17041. (createRequestMessage): Removed.
  17042. (createCancelMessage): Removed.
  17043. (createPieceMessage): Removed.
  17044. (createPortMessage): Removed.
  17045. (createRequestMessage): Removed.
  17046. (createCancelMessage): Removed.
  17047. (createPieceMessage): Removed.
  17048. (createHaveMessage): Removed.
  17049. (createChokeMessage): Removed.
  17050. (createUnchokeMessage): Removed.
  17051. (createInterestedMessage): Removed.
  17052. (createNotInterestedMessage): Removed.
  17053. (createBitfieldMessage): Removed.
  17054. (createKeepAliveMessage): Removed.
  17055. (createHandshakeMessage): Removed.
  17056. (setIntParam): New function.
  17057. (createPeerMessageString): New function.
  17058. * src/PeerConnection.h
  17059. (peer): Removed.
  17060. (torrentMan): Removed.
  17061. (createNLengthMessage): Removed.
  17062. (setIntParam): Removed.
  17063. (writeOutgoingMessageLog): Removed all overloaded functions.
  17064. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17065. (sendMessage): New function.
  17066. (sendHandshake): Removed.
  17067. (sendKeepAlive): Removed.
  17068. (sendChoke): Removed.
  17069. (sendUnchoke): Removed.
  17070. (sendInterested): Removed.
  17071. (sendNotInterested): Removed.
  17072. (sendHave): Removed.
  17073. (sendBitfield): Removed.
  17074. (sendRequest): Removed.
  17075. (sendPiece): Removed.
  17076. (sendPieceHeader): Removed.
  17077. (sendPieceData): Removed.
  17078. (sendCancel): Removed.
  17079. (getPeer): Removed.
  17080. * src/PeerConnection.cc
  17081. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17082. (sendHandshake): Removed.
  17083. (sendKeepAlive): Removed.
  17084. (createNLengthMessage): Removed.
  17085. (setIntParam): Removed.
  17086. (writeOutgoingMessageLog): Removed all overloaded functions.
  17087. (sendChoke): Removed.
  17088. (sendUnchoke): Removed.
  17089. (sendInterested): Removed.
  17090. (sendNotInterested): Removed.
  17091. (sendHave): Removed.
  17092. (sendBitfield): Removed.
  17093. (sendRequest): Removed.
  17094. (sendPiece): Removed.
  17095. (sendPieceHeader): Removed.
  17096. (sendPieceData): Removed.
  17097. (sendMessage): New function.
  17098. (sendCancel): Removed.
  17099. * src/PeerInteractionCommand.cc
  17100. (PeerInteractionCommand): Call setUploadLimit.
  17101. (executeInternal): Call setUploadLimit.
  17102. Added the handling of "inProgress" state of handshake message.
  17103. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17104. sendNow().
  17105. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17106. sendNow().
  17107. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17108. * src/TorrentMan.h
  17109. (PEER_ID_LENGTH): New definition.
  17110. (hasAllPieces): New function.
  17111. * src/TorrentMan.cc
  17112. (getMissingPiece): Added the handling of fast extension.
  17113. (cancelPiece): Call updatePiece().
  17114. (hasAllPieces): New function.
  17115. * src/PeerInteraction.h
  17116. (fastSet): New variable.
  17117. (getNewPieceAndSendInterest): Changed the return type to void.
  17118. (send): Renamed as sendMessages.
  17119. (deleteAllRequestSlot): Removed.
  17120. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17121. (cancelAllRequest): Removed all overloaded functions.
  17122. (deleteAllRequestSlot): Removed.
  17123. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17124. (rejectPieceMessageInQueue): New function.
  17125. (rejectAllPieceMessageInQueue): New function.
  17126. (onChoked): New function.
  17127. (isSendingMessageInProgress): New function.
  17128. (getCorrespondingRequestSlot): Changed its arguments.
  17129. (isInFastSet): New function.
  17130. (addFastSetIndex): New function.
  17131. (addRequests): New function.
  17132. (sendNow): Removed.
  17133. (trySendNow): Removed.
  17134. (sendBitfield): New function.
  17135. (sendAllowdFast): New function.
  17136. (createHaveAllMessage): New function.
  17137. (createHaveNoneMessage): New function.
  17138. (createRejectMessage): New function.
  17139. (createAllowedFastMessage): New function.
  17140. * src/PeerInteraction.cc
  17141. (send): Renamed as sendMessages.
  17142. (sendMessages): New function.
  17143. (MsgPushBack): New class.
  17144. (isSendingMessageInProgress): New function.
  17145. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17146. (rejectAllPieceMessageInQueue): New function.
  17147. Added the handling of fast extension.
  17148. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17149. (rejectPieceMessageInQueue): New function.
  17150. Added the handling of fast extension.
  17151. (deleteRequestSlot): Replaced for loop with std::find.
  17152. (onChoked): New function.
  17153. (deleteAllRequestSlot): Removed.
  17154. (abortPiece): Rewirtten.
  17155. (deleteTimeoutRequestSlot): Updated log messages.
  17156. (getCorrespondingRequestSlot): Changed its arguments.
  17157. (cancelAllRequest): Removed all overloaded functions.
  17158. (receiveHandshake): Added the check to see whether an incoming peer
  17159. supports fast extension.
  17160. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17161. PeerMessageUtil.
  17162. (createPeerMessage): Use create() of each message class instead of
  17163. PeerMessageUtil.
  17164. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17165. AllowedFastMessage were added.
  17166. (getNewPieceAndSendInterest): Changed its return value type to void.
  17167. Added the handling of fast extension.
  17168. (addRequests): New function.
  17169. (sendNow): Removed.
  17170. (sendHandshake): Rewritten.
  17171. (trySendNow): Removed.
  17172. (sendBitfield): New function.
  17173. (sendAllowdFast): New function.
  17174. (isInFastSet): New function.
  17175. (addFastSetIndex): New function.
  17176. (createRequestMessage): Use RequestMessage::create instead of
  17177. PeerMessageUtil.
  17178. (createCancelMessage): Use CancelMessage::create instead of
  17179. PeerMessageUtil.
  17180. (createPieceMessage): Use PieceMessage::create instead of
  17181. PeerMessageUtil.
  17182. (createHaveMessage): Use HaveMessage::create instead of
  17183. PeerMessageUtil.
  17184. (createChokeMessage): Use ChokeMessage::create instead of
  17185. PeerMessageUtil.
  17186. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17187. PeerMessageUtil.
  17188. (createInterestedMessage): Use InterestedMessage::create instead of
  17189. PeerMessageUtil.
  17190. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17191. of PeerMessageUtil.
  17192. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17193. PeerMessageUtil.
  17194. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17195. PeerMessageUtil.
  17196. (createHaveAllMessage): New function.
  17197. (createHaveNoneMessage): New function.
  17198. (createRejectMessage): New function.
  17199. (createAllowedFastMessage: New function.
  17200. * src/Util.h
  17201. (sha1Sum): New function.
  17202. (computeFastSet): New function.
  17203. * src/Util.cc
  17204. (sha1Sum): New function.
  17205. (computeFastSet): New function.
  17206. * src/Peer.h
  17207. (fastExtensionEnabled): New variable.
  17208. (fastSet): New variable.
  17209. (setAllBitfield): New function.
  17210. (setFastExtensionEnabled): New function.
  17211. (isFastExtensionEnabled): New function.
  17212. (addFastSetIndex): New function.
  17213. (getFastSet): New function.
  17214. (isInFastSet): New function.
  17215. (countFastSet): New function.
  17216. * src/Peer.cc
  17217. (isInFastSet): New function.
  17218. (addFastSetIndex): New function.
  17219. (setAllBitfield): New function.
  17220. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17221. sockets.
  17222. * src/PeerAbstractCommand.cc
  17223. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17224. and uploadLimit.
  17225. (execute): Changed the procedure of checking sockets. The upload speed
  17226. checking were added.
  17227. (setUploadLimit): New function.
  17228. (setUploadLimitCheck): New function.
  17229. * src/PeerAbstractCommand.h
  17230. (setUploadLimit): New function.
  17231. (setUploadLimitCheck): New function.
  17232. (uploadLimit): New variable.
  17233. (uploadLimitCheck): New variable.
  17234. To contact a tracker regularly:
  17235. * src/TrackerWatcherCommand.h (interval): New variable.
  17236. (checkPoint): New variable.
  17237. (TrackerWatcherCommand): Added interval argument.
  17238. * src/TrackerWatcherCommand.cc
  17239. (TrackerWatcherCommand): Initialized checkPoint.
  17240. (execute): Now a tracker is contacted in every specified period.
  17241. If peer list is not needed, send request with numwant=0.
  17242. * src/TrackerUpdateCommand.cc
  17243. (execute): Updated log messages.
  17244. * src/DownloadEngine.cc
  17245. (~DownloadEngine): Removed two asserts.
  17246. (waitData): Uncommented wfds. May be a bug fix.
  17247. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17248. * src/PeerInteractionCommand.h
  17249. (checkInactiveConnection): Removed.
  17250. * src/PeerInteractionCommand.cc
  17251. (executeInternal): Removed following function calls:
  17252. detectMessageFlooding(), checkLongTimePeerChoking and
  17253. checkInactiveConnection().
  17254. (checkInactiveConnection): Removed.
  17255. (detectMessageFlooding): Removed function call to
  17256. checkInactiveConnection().
  17257. * src/PeerMessageUtil.h
  17258. (createChokeMessage): New function. Overload.
  17259. (createUnchokeMessage): New function. Overload.
  17260. (createInterestedMessage): New function. Overload.
  17261. (createNotInterestedMessage): New function. Overload.
  17262. (createHaveMessage): New function. Overload.
  17263. (createBitfieldMessage): New function. Overload.
  17264. (createRequestMessage): New function. Overload.
  17265. (createCancelMessage): New function. Overload.
  17266. (createPieceMessage): New function. Overload.
  17267. (createKeepAliveMessage): New function. Overload.
  17268. * src/PeerMessageUtil.cc
  17269. (createChokeMessage): New function. Overload.
  17270. (createUnchokeMessage): New function. Overload.
  17271. (createInterestedMessage): New function. Overload.
  17272. (createNotInterestedMessage): New function. Overload.
  17273. (createHaveMessage): New function. Overload.
  17274. (createBitfieldMessage): New function. Overload.
  17275. (createRequestMessage): New function. Overload.
  17276. (createCancelMessage): New function. Overload.
  17277. (createPieceMessage): New function. Overload.
  17278. (createKeepAliveMessage): New function. Overload.
  17279. * src/SendMessageQueue.cc
  17280. (createRequestMessage): Use PeerMessageUtil.
  17281. (createCancelMessage): Use PeerMessageUtil.
  17282. (createPieceMessage): Use PeerMessageUtil.
  17283. (createHaveMessage): Use PeerMessageUtil.
  17284. (createChokeMessage): Use PeerMessageUtil.
  17285. (createUnchokeMessage): Use PeerMessageUtil.
  17286. (createInterestedMessage): Use PeerMessageUtil.
  17287. (createNotInterestedMessage): Use PeerMessageUtil.
  17288. (createBitfieldMessage): Use PeerMessageUtil.
  17289. (createKeepAliveMessage): Use PeerMessageUtil.
  17290. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17291. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17292. * src/PeerInteraction.h: New class.
  17293. * src/PeerInteraction.cc: New class.
  17294. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17295. Each peer message has its own class.
  17296. * src/PendingMessages.h: Removed.
  17297. * src/PendingMessages.cc: Removed. The sending process was moved to
  17298. each message class.
  17299. * src/RequestSlotMan.h: Removed.
  17300. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17301. SendMessageQueue.
  17302. * src/RequestMessage.h: New class.
  17303. * src/RequestMessage.cc: New class.
  17304. * src/CancelMessage.h: New class.
  17305. * src/CancelMessage.cc: New class.
  17306. * src/BitfieldMessage.h: New class.
  17307. * src/BitfieldMessage.cc: New class.
  17308. * src/ChokeMessage.h: New class.
  17309. * src/ChokeMessage.cc: New class.
  17310. * src/KeepAliveMessage.h: New class.
  17311. * src/KeepAliveMessage.cc: New class.
  17312. * src/PortMessage.h: New class.
  17313. * src/UnchokeMessage.h: New class.
  17314. * src/UnchokeMessage.cc: New class.
  17315. * src/PieceMessage.h: New class.
  17316. * src/PieceMessage.cc: New class.
  17317. * src/HaveMessage.h: New class.
  17318. * src/HaveMessage.cc: New class.
  17319. * src/BitfieldMessage.h: New class.
  17320. * src/BitfieldMessage.cc: New class.
  17321. * src/NotInterestedMessage.h: New class.
  17322. * src/NotInterestedMessage.cc: New class.
  17323. * src/InterestedMessage.h: New class.
  17324. * src/InterestedMessage.cc: New class.
  17325. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17326. (getSendMessageQueue): New function.
  17327. (setSendMessageQueue): New function.
  17328. * src/HandshakeMessage.cc: New class.
  17329. * src/PeerConnection.h (receiveMessage): Changed return value and
  17330. arguments.
  17331. (receiveHandshake): Changed return value and arguments.
  17332. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17333. here.
  17334. (receiveHandshake): Do not create handshake class here.
  17335. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17336. (piece): Removed.
  17337. (syncPiece): Removed.
  17338. (sendInterest): Removed.
  17339. (sendMessages): Removed.
  17340. (createRequestPendingMessage): Removed.
  17341. (checkPieceHash): Removed.
  17342. (erasePieceOnDisk): Removed.
  17343. (getNewPieceAndSendInterest): Removed.
  17344. (onGotNewPice): Removed.
  17345. (onGotWrongPiece): Removed.
  17346. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17347. Removed peerConnection, piece.
  17348. (~PeerInteractionCommand): Removed peerConnection.
  17349. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17350. (syncPiece): Moved to SendMessageQueue.
  17351. (decideChoking): Removed PendingMessage.
  17352. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17353. The action after receiving peer message was moved to each message
  17354. class.
  17355. (onGotNewPice): Moved to SendMessageQueue.
  17356. (onGotWrongPiece): Moved to SendMessageQueue.
  17357. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17358. (sendInterest): Moved to SendMessageQueue.
  17359. (createRequestPendingMessage): Removed.
  17360. (sendMessages): Moved to SendMessageQueue.
  17361. (onAbort): Use SendMessageQueue::abortPiece()
  17362. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17363. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17364. (checkPieceHash): Moved to SendMessageQueue.
  17365. (erasePieceOnDisk): Moved to SendMessageQueue.
  17366. * src/PeerMessageUtil.h
  17367. (createBitfieldMessage): Removed.
  17368. (createHaveMessage): Changed return value and arguments.
  17369. (createBitfieldMessage): Changed return value and arguments.
  17370. (createRequestCancelMessage): Removed.
  17371. (createPieceMessage): Changed return value and arguments.
  17372. (getShortIntParam): New function.
  17373. (checkIndex): Changed arguments.
  17374. (checkBegin): Changed arguments.
  17375. (checkLength): Changed arguments.
  17376. (checkPieceOffset): Removed.
  17377. (checkRange): New function.
  17378. (checkBitfield): Changed arguments.
  17379. (createPeerMessage): Removed.
  17380. (checkIntegrity): Removed.
  17381. (createHandshakeMessage): Changed arguments.
  17382. (createChokeMessage): New function.
  17383. (createUnchokeMessage): New function.
  17384. (createInterestedMessage): New function.
  17385. (createNotInterestedMessage): New function.
  17386. (createRequestMessage): New function.
  17387. (createCancelMessage): New function.
  17388. (createPortMessage): New function.
  17389. * src/PeerMessageUtil.cc
  17390. (createBitfieldMessage): Removed.
  17391. (createHaveMessage): Changed return value and arguments.
  17392. (createBitfieldMessage): Changed return value and arguments.
  17393. (createRequestCancelMessage): Removed.
  17394. (createPieceMessage): Changed return value and arguments.
  17395. (getShortIntParam): New function.
  17396. (checkIndex): Changed arguments.
  17397. (checkBegin): Changed arguments.
  17398. (checkLength): Changed arguments.
  17399. (checkPieceOffset): Removed.
  17400. (checkRange): New function.
  17401. (checkBitfield): Changed arguments.
  17402. (createPeerMessage): Removed.
  17403. (checkIntegrity): Removed.
  17404. (createHandshakeMessage): Changed arguments.
  17405. (createChokeMessage): New function.
  17406. (createUnchokeMessage): New function.
  17407. (createInterestedMessage): New function.
  17408. (createNotInterestedMessage): New function.
  17409. (createRequestMessage): New function.
  17410. (createCancelMessage): New function.
  17411. (createPortMessage): New function.
  17412. * src/PeerMessage.h
  17413. (id): Removed.
  17414. (index): Removed.
  17415. (begin): Removed.
  17416. (length): Removed.
  17417. (bitfield): Removed.
  17418. (bitfieldLength): Removed.
  17419. (block): Removed.
  17420. (blockLength): Removed.
  17421. (inProgress): New variable.
  17422. (cuid): New variable.
  17423. (peer): New variable.
  17424. (sendMessageQueue): New variable.
  17425. (logger): New variable.
  17426. (setBitfield): Removed.
  17427. (getBitfield): Removed.
  17428. (setBlock): Removed.
  17429. (getBlock): Removed.
  17430. (getBitfieldLength): Removed.
  17431. (getBlockLength): Removed.
  17432. (isInProgress): New function.
  17433. (toString): Made pure virtual.
  17434. (check): New function.
  17435. (send): New function.
  17436. (receivedAction): New function.
  17437. (getId): Made pure virtual.
  17438. (setId): Removed.
  17439. (getIndex): Removed.
  17440. (setIndex): Removed.
  17441. (getBegin): Removed.
  17442. (setBegin): Removed.
  17443. (getLength): Removed.
  17444. (setLength): Removed.
  17445. (getCuid): New function.
  17446. (setCuid): New function.
  17447. (getPeer): New function.
  17448. (setPeer): New function.
  17449. (getSendMessageQueue): New function.
  17450. (setSendMessageQueue): New function.
  17451. (ID): Removed.
  17452. * src/PeerMessage.cc
  17453. (setBitfield): Removed.
  17454. (setBlock): Removed.
  17455. (toString): Removed.
  17456. * src/TorrentMan.h
  17457. (getPieceLength): New function.
  17458. (getPieceLength): New function.
  17459. * src/SendMessageQueue.h
  17460. (REQUEST_TIME_OUT): New definition.
  17461. (RequestSlots): New definition.
  17462. (MessageQueue): New definition.
  17463. (requestSlotMan): Removed.
  17464. (pendingMessages): Removed.
  17465. (requestSlots): New variable.
  17466. (messageQueue): New variable.
  17467. (torrentMan): New variable.
  17468. (peerConnection): New variable.
  17469. (peer): New variable.
  17470. (piece): New variable.
  17471. (getNewPieceAndSendInterest): New function.
  17472. (createPeerMessage): New function.
  17473. (createHandshakeMessage): New function.
  17474. (send): Made private.
  17475. (setPeerMessageCommonProperty): New function.
  17476. (deleteAllRequestSlot): New function.
  17477. (deleteRequestMessageInQueue): New function.
  17478. (cancelAllRequest): Made private.
  17479. (cancelAllRequest): Made private.
  17480. (countRequestSlot): Made private.
  17481. (addPendingMessage): Removed.
  17482. (deletePendingPieceMessage): Removed.
  17483. (deletePendingRequestMessage): Removed.
  17484. (addMessage): New function.
  17485. (deletePieceMessageInQueue): New function.
  17486. (deleteTimeoutRequestSlot): Changed argument.
  17487. (deleteCompletedRequestSlot): Changed argument.
  17488. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17489. (getCorrespondingRequestSlot): New function.
  17490. (countPendingMessage): Removed.
  17491. (countMessageInQueue): New function.
  17492. (getTorrentMan): New function.
  17493. (getPeerConnection): New function.
  17494. (hasDownloadPiece): New function.
  17495. (getDownloadPiece): New function.
  17496. (setDownloadPiece): New function.
  17497. (syncPiece): New function.
  17498. (sendMessages): New function.
  17499. (sendNow): New function.
  17500. (trySendNow): New function.
  17501. (abortPiece): New function.
  17502. (sendHandshake): New function.
  17503. (receiveMessage): New function.
  17504. (receiveHandshake): New function.
  17505. (createRequestMessage): New function.
  17506. (createCancelMessage): New function.
  17507. (createPieceMessage): New function.
  17508. (createHaveMessage): New function.
  17509. (createChokeMessage): New function.
  17510. (createUnchokeMessage): New function.
  17511. (createInterestedMessage): New function.
  17512. (createNotInterestedMessage): New function.
  17513. (createBitfieldMessage): New function.
  17514. (createKeepAliveMessage): New function.
  17515. * src/SendMessageQueue.cc
  17516. (SendMessageQueue): Removed requestSlotMan.
  17517. Instantiated peerConnection here.
  17518. (~SendMessageQueue): Removed requestSlotMan.
  17519. Added deletion of peerConnection and the contents of messageQueue.
  17520. (send): Updated according to the change of messageQueue.
  17521. (addPendingMessage): Renamed to addMessage.
  17522. (addMessage): New function.
  17523. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17524. (deletePieceMessageInQueue): New function.
  17525. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17526. (deleteRequestMessageInQueue): New function.
  17527. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17528. here.
  17529. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17530. (...) was moved here.
  17531. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17532. moved here.
  17533. (deleteCompletedRequestSlot):
  17534. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17535. (getCorrespondingRequestSlot):
  17536. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17537. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17538. (countPendingMessage): Renamed to countMessageInQueue.
  17539. (countMessageInQueue): New function.
  17540. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17541. (receiveHandshake): New function.
  17542. (createHandshakeMessage): New function.
  17543. (receiveMessage): New function.
  17544. (createPeerMessage): New function.
  17545. (syncPiece): New function.
  17546. (getNewPieceAndSendInterest): New function.
  17547. (sendMessages): New function.
  17548. (sendNow): New function.
  17549. (trySendNow): New function.
  17550. (sendHandshake): New function.
  17551. (abortPiece): New function.
  17552. (getDownloadPiece): New function.
  17553. (getPeerMessageCommonProperty): New function.
  17554. (createRequestMessage): New function.
  17555. (createCancelMessage): New function.
  17556. (createPieceMessage): New function.
  17557. (createHaveMessage): New function.
  17558. (createChokeMessage): New function.
  17559. (createUnchokeMessage): New function.
  17560. (createInterestedMessage): New function.
  17561. (createNotInterestedMessage): New function.
  17562. (createBitfieldMessage): New function.
  17563. (createKeepAliveMessage): New function.
  17564. To add simple Content-Disposition support:
  17565. * src/HttpResponseCommand.h (determinFilename): New function.
  17566. * src/HttpResponseCommand.cc (executeInternal):
  17567. Use determinFilename(headers) instead of req->getFile() when comparing
  17568. filename.
  17569. (determinFilename): New function.
  17570. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17571. req->getFile().
  17572. (handleOtherEncoding): Use determinFilename(headers) instead of
  17573. req->getFile().
  17574. * src/Util.h (getContentDispositionFilename): New function.
  17575. * src/Util.cc (getContentDispositionFilename): New function.
  17576. * src/LogFactory.h (release): New function.
  17577. * src/LogFactory.cc (release): New function.
  17578. To fix a bug that causes out-of-bound exception when HTTP status
  17579. line is wrong:
  17580. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17581. size.
  17582. * src/common.h (Deleter): New class.
  17583. * src/SegmentMan.cc
  17584. (~SegmentMan): Added deletion of splitter and diskWriter.
  17585. * src/DownloadEngine.h
  17586. (Commands): Use deque.
  17587. (clearQueue): New function.
  17588. * src/DownloadEngine.cc
  17589. (~DownloadEngine): Added deletion of segmentMan.
  17590. (cleanQueue): New function.
  17591. * src/TorrentDownloadEngine.h
  17592. (TorrentDownloadEngine): The implementation was moved to
  17593. TorrentDownloadEngine.cc.
  17594. (~TorrentDownloadEngine): The implementation was moved to
  17595. TorrentDownloadEngine.cc.
  17596. * src/TorrentDownloadEngine.cc
  17597. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17598. * src/main.cc
  17599. (clearRequest): Removed.
  17600. (handler): Added deletion of e.
  17601. (torrentHandler): Added deletion of te.
  17602. (main): Do not share splitter.
  17603. Use Deleter instead of clearRequest.
  17604. Deletion of classes were updated.
  17605. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17606. * src/main.cc (main): Fixed typo.
  17607. * src/message.h: Fixed typo.
  17608. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17609. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17610. To add --select-file command-line option:
  17611. * src/Util.cc
  17612. (unfoldRange): New function.
  17613. (getNum): New function.
  17614. (unfoldSubRange): New function
  17615. * src/main.cc
  17616. (showUsage): Added help message.
  17617. (main): Added --select-file command-line option. Updated the layout of
  17618. file listing.
  17619. * src/common.h
  17620. (Integers): New definition.
  17621. * src/SocketCore.cc
  17622. (writeData): Removed timeout argument.
  17623. (readData): Removed timeout argument.
  17624. (peekData): Removed timeout argument.
  17625. * src/Socket.cc
  17626. (writeData): Removed timeout argument.
  17627. (readData): Removed timeout argument.
  17628. (peekData): Removed timeout argument.
  17629. * Release 0.4.1
  17630. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17631. To deploy upload rate based choking algorithm:
  17632. * src/PeerInteractionCommand.cc
  17633. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17634. peer currently used.
  17635. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17636. download completes. Simplified.
  17637. (receiveMessage): Updated.
  17638. * src/TorrentMan.h
  17639. (activePeers): New variable.
  17640. (addActivePeer): New function.
  17641. (getActivePeers): New function.
  17642. (deleteActivePeer): New function.
  17643. * src/TorrentMan.cc
  17644. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17645. * src/PeerAbstractCommand.cc
  17646. (onAbort): Use peer->resetStatus().
  17647. * src/main.cc
  17648. (PeerChokeCommand.h): Included.
  17649. (main): Added the instance of ChokingCommand to the command queue.
  17650. * src/Peer.h
  17651. (amChoking): Renamed from amChocking
  17652. (chokingRequired): New variable.
  17653. (optUnchoking): New variable.
  17654. (deltaUpload): New variable.
  17655. (deltaDownload): New variable.
  17656. (addDeltaUpload): New function.
  17657. (resetDeltaUpload): New function.
  17658. (addDeltaDownload): New function.
  17659. (resetDeltaDownload): New function.
  17660. (addPeerUpload): Added a call to addDeltaUpload.
  17661. (addPeerDownload): Added a call to addDeltaDownload.
  17662. * src/Peer.cc
  17663. (shouldBeChoking): Renamed from shouldChoke.
  17664. (resetStatus): New function.
  17665. * src/PeerChokeCommand.h: New class.
  17666. * src/PeerChokeCommand.cc: New class.
  17667. To add lazy upload speed limiter:
  17668. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17669. statistics calculation to TorrentDownloadEngine.
  17670. * src/TorrentConsoleDownloadEngine.cc
  17671. (sendStatistics): Renamed from printStatistics.
  17672. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17673. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17674. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17675. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17676. calculation.
  17677. (sendStatistics): New function as pure virtual function.
  17678. (getUploadSpeed): New function.
  17679. * src/TorrentDownloadEngine.cc
  17680. (initStatistics): New function.
  17681. (calculateSpeed): New function.
  17682. (calculateStatistics): New function.
  17683. * src/SendMessageQueue.h
  17684. (uploadLength): New variable.
  17685. (send): Added an argument.
  17686. (setUploadLimit): New function.
  17687. (getUploadLimit): New function.
  17688. * src/SendMessageQueue.cc
  17689. (send): Added upload speed limiter.
  17690. * src/prefs.h
  17691. (PREF_UPLOAD_LIMIT): New definition.
  17692. * src/PeerInteractionCommand.cc
  17693. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17694. * src/main.cc
  17695. (main): Added --upload-limit option
  17696. For bug fixes:
  17697. * src/main.cc
  17698. (showUsage): Corrected --listen-port help
  17699. Other changes:
  17700. * src/TorrentMan.cc
  17701. (getPeer): Return nullPeer if connection is grather than
  17702. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17703. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17704. To add some useful information to the exception message:
  17705. * src/SocketCore.cc : Updated messages.
  17706. * src/SegmentMan.cc :
  17707. * src/TorrentMan.cc : Updated messages.
  17708. * src/MultiDiskWriter.cc : Updated messages.
  17709. * src/Util.cc : Updated messages.
  17710. * src/AbstractDiskWriter.cc : Updated messages.
  17711. * src/PreAllocationDiskWriter.cc : Updated messages.
  17712. * src/message.cc : Added new messages. Updated some messages.
  17713. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17714. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17715. Updated threshold from 30 to 15.
  17716. * src/AbstractDiskWriter.h (filename): New variable.
  17717. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17718. (createFile): Assigned filename.
  17719. * src/main.cc: Updated the help message for http-auth-scheme.
  17720. * Release 0.4.0
  17721. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17722. To add TrackerUpdateCommand with which replaces
  17723. CompactTrackerResponseProcessor:
  17724. * src/TrackerWatcherCommand.h (req): Removed.
  17725. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17726. if the number of peer connections are less than 30.
  17727. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17728. * src/SegmentMan.h (diskWriter): New function.
  17729. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17730. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17731. (main): Use TrackerUpdateCommand.
  17732. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17733. (req): New variable.
  17734. (setTrackerResponseProcessor): Removed.
  17735. (getTrackerResponseProcessor): Removed.
  17736. (processTrackerResponse): Removed.
  17737. * src/DownloadEngine.h (diskWriter): Removed.
  17738. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17739. to torrentMan->processTrackerResponse().
  17740. To add Util::expandBuffer:
  17741. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17742. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17743. * src/Util.h (expandBuffer): New function.
  17744. To fix the bug that causes segmentation fault when "-l ." is specified
  17745. in command-line option:
  17746. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17747. (openFile): New function.
  17748. (closeFile): New function.
  17749. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17750. (~SimpleLogger): Call closeFile();
  17751. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17752. * src/main.cc (main): Added a check to see logger is configured
  17753. properly.
  17754. To enable HTTP authentication without specifying "--http-auth-scheme"
  17755. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17756. * src/HttpConnection.cc (createRequest): Send Authorization header
  17757. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17758. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17759. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17760. * src/Peer.cc (shouldChoke): Updated algorithm.
  17761. * src/message.h (EX_AUTH_FAILED): New definition.
  17762. (EX_FILE_OPEN): New definition.
  17763. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17764. if status == 401.
  17765. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17766. if req->isTorrent == true.
  17767. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17768. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17769. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17770. (createFile): Updated message.
  17771. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17772. To add a readout of estimated remaining time to normal HTTP/FTP
  17773. downloads:
  17774. * src/ConsoleDownloadEngine.h (startup): New variable.
  17775. (startupLength): New variable.
  17776. (isStartupLengthSet): New variable.
  17777. (avgSpeed): New variable.
  17778. (eta): New variable.
  17779. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17780. estimated remaining time.
  17781. (initStatistics): Initialized newly added variables.
  17782. (calculateStatistics): Calculate average speed and estimated remaining
  17783. time.
  17784. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17785. * src/TrackerDownloadCommand.h: Removed.
  17786. * src/TrackerDownloadCommand.cc: Removed.
  17787. * src/TrackerInitCommand.h: Removed.
  17788. * src/TrackerInitCommand.cc: Removed.
  17789. * src/TrackerUpdateCommand.h: Removed.
  17790. * src/TrackerUpdateCommand.cc: Removed.
  17791. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17792. url written in TrackerInitCommand was moved here. Do not create
  17793. tracker request command if torrentMan->trackers != 0.
  17794. * src/CompactTrackerResponseProcessor.h: New class.
  17795. * src/CompactTrackerResponseProcessor.cc: New class.
  17796. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17797. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17798. Decoupled TorrentDownloadEngine from this.
  17799. * src/SegmentMan.h (init): New function.
  17800. * src/SegmentMan.cc (init): New function.
  17801. * src/TorrentMan.h (responseProcessor): New variable.
  17802. (trackers): New variable.
  17803. (setTrackerResponseProcessor): New function.
  17804. (getTrackerResponseProcessor): New function.
  17805. (processTrackerResponse): New function.
  17806. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17807. (processTrackerResponse): New function.
  17808. * src/main.cc (main): Use ByteArrayDiskWriter and
  17809. CompactTrackerResponseProcessor.
  17810. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17811. processTrackerResponse().
  17812. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17813. readout.
  17814. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17815. which indicates download has completed.
  17816. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17817. (closeFile): fd >= 0, not fd > 0
  17818. * src/main.cc (main): Added short cut for show-files.
  17819. Added short cut for torrent-file.
  17820. Added new command-line option listen-port.
  17821. Updated i18n messages.
  17822. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17823. To add LogFactory which creates singleton logger:
  17824. * src/LogFactory.h: New class.
  17825. * src/LogFactory.cc: New class.
  17826. * src/Command.h (logger): New variable.
  17827. (Constructor): Use LogFactory.
  17828. * src/AbstractCommand.cc: Use Command::logger
  17829. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17830. Use LogFactory.
  17831. * src/SegmentSplitter.h : Made logger protected.
  17832. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17833. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17834. * src/DownloadEngine.h : Made logger protected.
  17835. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17836. * src/PeerInteractionCommand.cc : Use Command::logger.
  17837. * src/HttpResponseCommand.cc : Use Command::logger.
  17838. * src/SegmentMan.h : Made logger private.
  17839. * src/TorrentMan.h : Made logger private.
  17840. * src/TorrentMan.cc : Use LogFactory.
  17841. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17842. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17843. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17844. Use LogFactory.
  17845. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17846. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17847. Use LogFactory.
  17848. * src/DownloadCommand.cc : Use Command::logger.
  17849. * src/PeerAbstractCommand.cc : Use Command::logger.
  17850. * src/PeerListenCommand.cc : Use Command::logger.
  17851. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17852. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17853. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17854. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17855. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17856. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17857. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17858. Use LogFactory.
  17859. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17860. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17861. Use LogFactory.
  17862. * src/main.cc (main): Use LogFactory.
  17863. * src/DiskAdaptor.h (logger): New variable.
  17864. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17865. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17866. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17867. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17868. parameter to a tracker request.
  17869. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17870. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17871. * src/main.cc (setSignalHander): New function.
  17872. (main): Added a handler for SIGTERM.
  17873. (handler): Updated message.
  17874. (torrentHandler): Updated message.
  17875. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17876. * src/TorrentConsoleDownloadEngine.cc
  17877. (onPartialDownloadingCompletes): Renamed as
  17878. onSelectiveDownloadingCompletes.
  17879. (onSelectiveDownloadingCompletes): Updated message.
  17880. To add DiskAdaptor which abstract DiskWriter family:
  17881. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17882. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17883. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17884. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17885. MultiDiskAdaptor.h.
  17886. (readFileEntry): Changed its arguments.
  17887. (setup): setupDiskWriter is merged into this function.
  17888. (setupDiskWriter): Removed.
  17889. (setFileFilter): New function.
  17890. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17891. made in readFileEntry.
  17892. (getFilePath): Removed.
  17893. (getTempFilePath): Removed.
  17894. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17895. (fixFilename): Removed.
  17896. (copySingleFile): Removed.
  17897. (splitMultiFile): Removed.
  17898. (deleteTempFile): Removed.
  17899. (setFileEntriesToDownload): Removed.
  17900. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17901. (isSelectiveDownloadingMode): New function.
  17902. (setAllMultiFileRequestedState): Removed.
  17903. (finishPartialDownloadingMode): Renamed as
  17904. finishSelectiveDownloadingMode.
  17905. (finishSelectiveDownloadingMode): New function.
  17906. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17907. (getSelectedTotalLength): New function.
  17908. (onDownloadComplete): Use diskAdaptor.
  17909. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17910. (Range): Removed.
  17911. (setMultiFileEntries): Renamed as setFileEntries.
  17912. (setFileEntries): New function.
  17913. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17914. (pieceLength): New variable.
  17915. * src/main.cc (printDownloadCompeleteMessage): New function.
  17916. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17917. (main): Renamed torrent-show-files to show-files.
  17918. Rewritten file contents listing.
  17919. * src/TorrentMan.h (FileEntry): Removed.
  17920. (multiFileTopDir): Removed.
  17921. (multiFileEntries): Removed.
  17922. (diskWriter): Removed.
  17923. (diskAdaptor): New variable.
  17924. * src/DefaultDiskWriter.h (totalLength): New variable.
  17925. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17926. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17927. diskWriter.
  17928. * src/TorrentConsoleDownloadEngine.h
  17929. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17930. (partialTotalLength): Renamed as selectedTotalLength.
  17931. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17932. openExistingFile, otherwise call initAndOpenFile.
  17933. (closeFile): fd > 0, not fd != 0.
  17934. * src/DirectDiskAdaptor.h: New class.
  17935. * src/DirectDiskAdaptor.cc: New class.
  17936. * src/MultiDiskAdaptor.h: New class.
  17937. * src/MultiDiskAdaptor.cc: New class.
  17938. * src/CopyDiskAdaptor.h: New class.
  17939. * src/CopyDiskAdaptor.cc: New class.
  17940. * src/DiskAdaptor.h: New class.
  17941. * src/DiskAdaptor.cc: New class.
  17942. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17943. (PREF_SHOW_FILES): New definition.
  17944. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17945. To add the ability to download multi torrent into respective files
  17946. directly:
  17947. * src/DiskWriter.h (openFile): New function.
  17948. (seek): Removed.
  17949. * src/MultiDiskWriter.h: New class.
  17950. * src/MultiDiskWriter.cc: New class.
  17951. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17952. protected.
  17953. (openFile): New function.
  17954. * src/AbstractDiskWriter.cc (openFile): New function.
  17955. * src/prefs.h (V_FALSE): New definition.
  17956. (PREF_DIRECT_FILE_MAPPING): New definition.
  17957. * src/TorrentMan.h (setupDiskWriter): New function.
  17958. (setAllMultiFileRequestedState): New function.
  17959. (onDownloadComplete): New function.
  17960. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17961. (setupDiskWriter): New function.
  17962. (getFilePath): Updated.
  17963. (getTempFilePath): Updated.
  17964. (getSegmentFilePath): Updated.
  17965. (fixFilename): Updated.
  17966. (deleteTempFile): Updated.
  17967. (setAllMultiFileRequestedState): New function.
  17968. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17969. (finishPartialDownloadingMode): Reset requested flags.
  17970. (onDownloadComplete): New function.
  17971. * src/main.cc: Added --direct-file-mapping option.
  17972. Use TorrentMan::setupDiskWriter().
  17973. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17974. onDownloadComplete().
  17975. To fix ETA bug:
  17976. * src/Util.h (difftvsec): New function.
  17977. * src/Util.cc (difftvsec): New function.
  17978. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17979. type of "elapsed" instead of long long int.
  17980. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17981. The updates of statistics takes place every 1 seconds.
  17982. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17983. (calculateSpeed): Changed its argument signature.
  17984. * src/PeerMessage.cc (toString): Fixed message.
  17985. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17986. To print ETA:
  17987. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17988. completion handling when dealing with
  17989. TorrentMan::isPartialDownloadingMode() == true.
  17990. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17991. New function.
  17992. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17993. (sessionDownloadLength): New variable.
  17994. (avgSpeed): New variable.
  17995. (eta): New variable.
  17996. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17997. new variables: eta, avgSpeed, startup.
  17998. (calculateSpeed): Calculate average speed and ETA.
  17999. (printStatistics): Added ETA.
  18000. * src/Util.h (secfmt): New function.
  18001. * src/Util.cc (secfmt): New function.
  18002. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18003. To detect "keep alive" flooding:
  18004. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18005. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18006. variable: keepAliveCount.
  18007. (detectMessageFlooding): Added "keep alive" flooding detection.
  18008. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18009. received.
  18010. To add the ability to download only specified files in multi-file
  18011. torrent:
  18012. * src/BitfieldMan.h (filterBitfield): New variable.
  18013. (filterEnabled): New variable.
  18014. (setFilterBit): New function.
  18015. (enableFilter): New function.
  18016. (disableFilter): New function.
  18017. (isFilterEnabled): New function.
  18018. (getFilteredTotalLength): New function.
  18019. (getCompletedLength): New function.
  18020. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18021. filterBitfield, filterEnabled.
  18022. (CopyConstructor): Added filterBitfield and filterEnabled.
  18023. (operator==): Added filterBitfield and filterEnabled.
  18024. (Destructor): Added filterBitfield.
  18025. (getMissingIndex): Use filterBitfield.
  18026. (getMissingUnusedIndex): Use filterBitfield.
  18027. (getFirstMissingUnusedIndex): Use filterBitfield.
  18028. (getFirstMissingUnusedIndex): Use filterBitfield.
  18029. (getAllMissingIndexes): Use filterBitfield.
  18030. (countMissingBlock): Use filterBitfield.
  18031. (countBlock): Use filterBitfield.
  18032. (setBitInternal): Added new argument on.
  18033. (setUseBit): Use setBitInternal.
  18034. (unsetUseBit): Use setBitInternal.
  18035. (setBit): Use setBitInternal.
  18036. (unsetBit): Use setBitInternal.
  18037. (isAllBitSet): Use filterBitfield.
  18038. (setFilterBit): New function.
  18039. (addFilter): New function.
  18040. (enableFilter): New function.
  18041. (disableFilter): New function.
  18042. (clearFilter): New function.
  18043. (isFilterEnabled): New function.
  18044. (getFilteredTotalLength): New function.
  18045. (getCompletedLength): New function.
  18046. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18047. Initalized newly added variables.
  18048. [FileEntry](offset): New variable.
  18049. [FileEntry](extracted): New variable.
  18050. [FileEntry](requested): New variable.
  18051. (readFileEntry): New function.
  18052. (option): New variable.
  18053. (splitMultiFile): Removed const qualifier.
  18054. (fixFilename): Removed const qualifier.
  18055. (readFileEntryFromMetaInfoFile): New function.
  18056. (finishPartialDownloadingMode): New function.
  18057. (isPartialDownloadingMode): New function.
  18058. (setFileEntriesToDownload): New function.
  18059. (getCompletedLength): New function.
  18060. (getPartialTotalLength): New function.
  18061. * src/TorrentMan.cc (readFileEntry): New function.
  18062. (setup): Use readFileEntry. If no-preallocation option is specified,
  18063. use DefaultDiskWriter.
  18064. (readFileEntryFromMetaInfoFile): New function.
  18065. (fixFilename): Removed const qualifier.
  18066. (splitMultiFile): Removed const qualifier.
  18067. (setFileEntriesToDownload): New function.
  18068. (isPartialDownloadingMode): New function.
  18069. (finishPartialDownloadingMode): New function.
  18070. (getCompletedLength): New function.
  18071. (getPartialTotalLength): New function.
  18072. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18073. New variable.
  18074. (partialTotalLength): New variable.
  18075. (downloadLength): New variable.
  18076. (totalLength): New variable.
  18077. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18078. Added log.
  18079. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18080. partialTotalLength, downloadLength, totalLength.
  18081. (calculate): Calculate downloadLength and totalLength.
  18082. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18083. * src/main.cc (addCommand): Changed argument signature.
  18084. (main): Added new variable: args. Added new option "torrent-show-files"
  18085. "no-preallocation". Usage is not updated yet.
  18086. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18087. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18088. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18089. Attempt to add the ability to listing file entries in a .torrent file.
  18090. This feature is not yet complete.
  18091. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18092. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18093. (getName): New function.
  18094. * src/TorrentMan.h (getMultiFileEntries): New function.
  18095. (getName): New function.
  18096. * src/main.cc (main): Use above 2 funtion.
  18097. * Release 0.3.2
  18098. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18099. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18100. (detectMessageFlooding): Updated threshold value.
  18101. (checkLongTimePeerChoking): Updated timeout value.
  18102. (getNewPieceAndSendInterest): Added debug log.
  18103. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18104. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18105. (getPeer): Updated.
  18106. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18107. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18108. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18109. is localhost.
  18110. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18111. * src/PendingMessage.cc (processMessage): Not to send piece message
  18112. if peer is not interested in the pieces localhost has.
  18113. * src/Peer.cc (shouldChoke): Updated.
  18114. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18115. * src/Util.cc (isPowerOf): New function.
  18116. * src/Util.h (isPowerOf): New function.
  18117. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18118. whether or not it is power of 2.
  18119. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18120. Added new class SendMessageQueue that includes PendingMessages and
  18121. RequestSlotMan.
  18122. * src/SendMessageQueue.h: New class.
  18123. * src/SendMessageQueue.cc: New class.
  18124. * src/PendingMessage.h: Added new member variable blockIndex and its
  18125. accessors.
  18126. (createRequestMessage): Updated.
  18127. * src/PendingMessage.cc (createRequestMessage): Updated.
  18128. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18129. SendMessageQueue.
  18130. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18131. (receiveMessage): Updated with SendMessageQueue.
  18132. (deletePendingPieceMessage): Removed.
  18133. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18134. (sendInterest): Updated with SendMessageQueue.
  18135. (createRequestPendingMessage): Updated with SendMessageQueue.
  18136. (sendMessages): Updated with SendMessageQueue.
  18137. (onAbort): Updated with SendMessageQueue.
  18138. (keepAlive): Updated with SendMessageQueue.
  18139. (beforeSocketCheck): Updated SendMessageQueue.
  18140. * src/PeerInteractionCommand (sendMessages): Shuffle
  18141. missingBLockIndexes before using it.
  18142. Added its own timeout for peer connection.
  18143. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18144. setter.
  18145. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18146. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18147. Added setTimeout() call.
  18148. (executeInternal): Added setTimeout() call.
  18149. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18150. Added timeout.
  18151. (isTimeoutDetected): Updated.
  18152. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18153. option.
  18154. Added *simple* message flooding checker.
  18155. * src/PeerInteractionCommand.cc (executeInternal):
  18156. Added detectMessageFlooding() call.
  18157. (detectMessageFlooding): New function.
  18158. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18159. (beforeSocketCheck): Added detectMessageFlooding() call.
  18160. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18161. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18162. Removed deletePendingPieceMessage(), getRequestSlot(),
  18163. deleteRequestSlot(), deleteAllRequestSlot().
  18164. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18165. Added checkLongTimePeerChoking() call.
  18166. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18167. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18168. if duplicate == false.
  18169. The parameter "uploaded" and "downloaded" in the tracker request are
  18170. the size since the client sent the "started" event to the tracker.
  18171. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18172. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18173. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18174. getSessionDownloadedSize(), getSessionUploadedSize().
  18175. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18176. getSessionUploadedSize() instead of getDownloadedSize(),
  18177. getUploadedSize().
  18178. * src/PendingMessage.cc (processMessage): Do not send request message
  18179. if the peer is choking the client.
  18180. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18181. less than interval.
  18182. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18183. * configure.in: Added gnutls support. Added several CPP macros.
  18184. * m4/openssl.m4: Added.
  18185. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18186. readData(), peekData(). Added gnutls support.
  18187. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18188. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18189. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18190. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18191. Instead, added a check for whether setup method has executed
  18192. successfully.
  18193. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18194. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18195. * src/Makefile.am: Updated.
  18196. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18197. using whether OpenSSL or gcrypt, depending on the result of configure
  18198. script.
  18199. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18200. messageDigest.h.
  18201. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18202. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18203. Fixed memory leak.
  18204. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18205. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18206. Removed instantiation of TrackerInitCommand. Instead,
  18207. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18208. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18209. ENABLE_SSL.
  18210. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18211. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18212. If a piece is already acquired by another command, delete the request
  18213. slots for the piece.
  18214. * src/TrackerUpdateCommand.cc (execute):
  18215. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18216. Added a check whether peer list is null.
  18217. Fixed the bug that causes sending completed event to the tracker
  18218. several times.
  18219. * src/TrackerInitCommand.cc (execute):
  18220. Fixed the bug that causes sending completed event to the tracker
  18221. several times.
  18222. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18223. by using messageDigest.h.
  18224. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18225. * PeerConnection.cc: Replaced log message "keep-alive" with
  18226. "keep alive".
  18227. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18228. localhost long time.
  18229. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18230. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18231. at most 100 failure entry from the list. If with duplicate = false,
  18232. MAX_PEER_LIST is not checked.
  18233. * PeerListenCommand.cc: Fixed the argument order of log message.
  18234. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18235. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18236. Added warn().
  18237. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18238. Implemented warn().
  18239. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18240. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18241. * Request.h: Added AFTER_COMPLETED event.
  18242. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18243. instead of downloaded size and progress(%) after download completes.
  18244. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18245. message to the peer if it is interested in what localhost has
  18246. downloaded.
  18247. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18248. destination instead of just renaming it.
  18249. * TorrentMan.cc: Added deleteTempFile().
  18250. * PeerAbstractCommand.cc: do not stop execution after download
  18251. completes. This makes localhost a seeder.
  18252. * Util.{h,cc}: Added fileCopy().
  18253. * PeerListenCommand.cc: do not stop execution after download completes.
  18254. This makes localhost a seeder.
  18255. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18256. Added TorrentMan::deleteTempFile() to torrentHandler.
  18257. Initialized the variable dir as ".".
  18258. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18259. Deleted renameSingleFile().
  18260. Added copySingleFile(), deleteTempFile().
  18261. * DownloadEngine.h: Added virtual function afterEachIteration().
  18262. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18263. in onEndOfRun() to afterEachIteration().
  18264. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18265. true.
  18266. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18267. In rangedFileCopy(), added try-catch block to properly close file
  18268. descriptors.
  18269. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18270. Added afterEachIteration(), isFilenameFixed().
  18271. * Peer.cc: Changed choking strategy.
  18272. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18273. * TrackerInitCommand.cc: Send completed event only once.
  18274. * DownloadEngine.cc: Added a call to afterEachIteration().
  18275. * TrackerUpdateCommand.cc: Do not stop execution after download
  18276. completes.
  18277. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18278. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18279. received from a tracker.
  18280. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18281. Decreased the number of failure peers to delete to 0(just comment out
  18282. the line).
  18283. * Release 0.3.1
  18284. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18285. * PeerInteractionCommand.cc: added a call to
  18286. TorrentMan::unadvertisePiece in Destructor.
  18287. * PeerInteractionCommand.cc: make have message sent immediately
  18288. if the size of pending message queue is zero.
  18289. * TorrentMan.cc: set the maximum size of peer list to 250.
  18290. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18291. to deque.
  18292. * Util.cc: fixed rangedFileCopy.
  18293. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18294. to Constructor. Also, moved digest cleanup to Destructor.
  18295. * MetaFileUtil.cc: fixed memory leak
  18296. * replaced std::vector with std::deque.
  18297. * AbstractCommand.cc: casted timeout value to long long int.
  18298. * ChunkedEncoding.cc: fixed memory leak.
  18299. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18300. * SleepCommand.cc: casted timeout value to long long int.
  18301. * Data.cc: fixed memory leak.
  18302. * Data.cc: fixed toLLInt().
  18303. * BitfieldMan.cc: fixed memory leak.
  18304. * TorrentMan.cc: initialized storeDir to ".".
  18305. * TorrentMan.cc: fixed memory leak.
  18306. * TorrentMan.cc: corrected file paths of splitted files.
  18307. * PeerAbstractCommand.cc: casted timeout to long long int.
  18308. * main.cc: added delete(req) and delete(te->diskWriter).
  18309. * RequestSlot.cc: casted timeout value to long long int.
  18310. * Request.cc: fixed memory leak.
  18311. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18312. have the piece.
  18313. * Peer.{h,cc}: added hasPiece(int index).
  18314. * main.cc: corrected addCommand.
  18315. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18316. * BitTorrent protocol support added.
  18317. * Release 0.3.0
  18318. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18319. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18320. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18321. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18322. decoding did not work properly.
  18323. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18324. * DownloadEngine.h: included sys/time.h
  18325. * DownloadEngine.cc: remove sys/time.h
  18326. * Makefile.am (SUBDIRS): Add intl.
  18327. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18328. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18329. * main.cc: correct help message for --http-auth-scheme.
  18330. * main.cc: changed e-mail address for bug reports.
  18331. * ja.po: added japanese translation.
  18332. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18333. * SimpleLogger.cc: flush log file instead of stdout.
  18334. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18335. * main.cc: Fixed command-line option: max-tries
  18336. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18337. does not equal to seg.sp.
  18338. * DownloadCommand.cc: If EOF is got from the server and the total size
  18339. of file is not zero, then throw DlRetryEx.
  18340. * main.cc: Set the minium value of min-segment-size to 1024.
  18341. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18342. fails because of a regression since 0.2.0 release.
  18343. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18344. * HttpConnection.cc:
  18345. * common.h: defined the user agent name as macro
  18346. * DownloadEngine.{h, cc}:
  18347. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18348. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18349. * main.cc: Download complete/abort message is now generated by main.
  18350. * Makefile.am (SUBDIRS): Add m4.
  18351. (ACLOCAL_AMFLAGS): New variable.
  18352. (EXTRA_DIST): New variable.
  18353. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18354. * gettext: added gettext functionality
  18355. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18356. * AbstractCommand.cc:
  18357. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18358. unregister its cuid from SegmentMan.
  18359. * DownloadEngine.cc: .aria2 file was written when a downloading
  18360. failed with errors.
  18361. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18362. Added "User-Agent" header to CONNECT proxy request.
  18363. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18364. properly.
  18365. * Logger.h:
  18366. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18367. * ChunkedEncoding.cc: Added #include directive for strings.h
  18368. * Release 0.2.1
  18369. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18370. * Util.{h,cc}: added startsWith().
  18371. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18372. Util::endsWith().
  18373. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18374. * common.h: added #include directive of limit.h.
  18375. * DownloadEngine.cc: added #include directive of sys/time.h and
  18376. algorithm.
  18377. * Exception.h: added #include directive of stdio.h.
  18378. * AbstractCommand.h: added #include directive of sys/time.h.
  18379. * DownloadCommand.h: added #include directive of sys/time.h.
  18380. * *.h: added #include directive of common.h to all base classes.
  18381. subclasses' one was removed.
  18382. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18383. does not define these macros.
  18384. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18385. * Release 0.2.0
  18386. * main.cc:
  18387. * HttpInitiateConnectionCommand.{h,cc}:
  18388. * prefs.h:
  18389. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18390. We can now use GET command in http proxy.
  18391. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18392. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18393. that splits slowest segment of SegmentMan::commands vector.
  18394. This is the default split algorithm of aria2.
  18395. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18396. that splits first segment of SegmentMan::commands vector.
  18397. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18398. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18399. * Segment.h:
  18400. * SegmentMan.cc: Added speed field to Segment.h
  18401. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18402. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18403. * message.h: Change file size related %d to %lld.
  18404. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18405. * FtpInitiateConnectionCommand.{h,cc}:
  18406. * FtpNegotiationCommand.{h,cc}:
  18407. * FtpDownloadCommand.{h,cc}:
  18408. * FtpConnection.{h,cc}: Added FTP support
  18409. * SimpleLogger.cc: Log message now includes time information.
  18410. * main.cc: The value of --http-auth-scheme option is chagned from
  18411. 'BASIC' to 'basic'
  18412. * main.cc: Added --timeout command-line option.
  18413. * main.cc: Added --min-segment-size command-line option.
  18414. * main.cc: Added --max-retries command-line option.
  18415. * prefs.h: option string constants are now defined in prefs.h
  18416. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18417. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18418. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18419. with version 0.1.0's one.
  18420. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18421. * configure.in: Added --enable-ssl option to configure script.
  18422. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18423. cannot permit absoluteURI as Request-URI.
  18424. * HttpConnection.cc: Added Referer support.
  18425. * main.cc: Added referer command-line option.
  18426. * main.cc: Added rety-wait command-line option.
  18427. * Exception.h: Fixed formating bug in Exception::setMsg()
  18428. * SocketCore.{h,cc}:
  18429. * Socket.{h, cc}:
  18430. * Request.cc:
  18431. * InitiateConnectionCommandFactory.cc:
  18432. * HttpRequestCommand.cc: Added HTTPS support.
  18433. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18434. for SocketCore.
  18435. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18436. size is wrong
  18437. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18438. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18439. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18440. * Release 0.1.0