ChangeLog 698 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561
  1. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Discard torrent file if path data in it contains directory
  3. traversal directives. Discard metalink:file element in Metalink3
  4. format if its name attribute contains directory traversal
  5. directives. Ignore name attribute of metalink:signature element
  6. in Metalink3 format if it contains directory traversal directives.
  7. * src/MetalinkParserStateV3Impl.cc
  8. * src/bittorrent_helper.cc
  9. * src/message.h
  10. * test/BittorrentHelperTest.cc
  11. * test/Makefile.am
  12. * test/MetalinkProcessorTest.cc
  13. * test/metalink3-dirtraversal.xml
  14. * test/test.xml
  15. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Removed useless comment
  17. * src/MetalinkParserStateV4Impl.cc
  18. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Supported name attribute of metalink::metaurl element and
  20. multi-file torrent with Metalink4. Files with same metaurl are
  21. grouped and downloaded in one RequestGroup.
  22. * src/BtDependency.cc
  23. * src/FileEntry.h
  24. * src/Metalink2RequestGroup.cc
  25. * src/Metalink2RequestGroup.h
  26. * src/MetalinkEntry.cc
  27. * src/MetalinkEntry.h
  28. * src/MetalinkHelper.cc
  29. * src/MetalinkHelper.h
  30. * src/MetalinkMetaurl.cc
  31. * src/MetalinkMetaurl.h
  32. * src/MetalinkParserController.cc
  33. * src/RequestGroup.cc
  34. * src/RequestGroup.h
  35. * src/bittorrent_helper.cc
  36. * test/BittorrentHelperTest.cc
  37. * test/BtDependencyTest.cc
  38. * test/MetalinkHelperTest.cc
  39. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  41. * src/MetalinkMetaurl.h
  42. * src/MetalinkParserController.cc
  43. * src/MetalinkParserController.h
  44. * src/MetalinkParserStateMachine.cc
  45. * src/MetalinkParserStateMachine.h
  46. * src/MetalinkParserStateV4Impl.cc
  47. * test/MetalinkProcessorTest.cc
  48. * test/metalink4-dirtraversal.xml
  49. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  51. element.
  52. * src/Makefile.am
  53. * src/Metalink2RequestGroup.cc
  54. * src/MetalinkEntry.cc
  55. * src/MetalinkEntry.h
  56. * src/MetalinkMetaurl.cc
  57. * src/MetalinkMetaurl.h
  58. * src/MetalinkParserController.cc
  59. * src/MetalinkParserController.h
  60. * src/MetalinkParserStateMachine.cc
  61. * src/MetalinkParserStateMachine.h
  62. * src/MetalinkParserStateV4Impl.cc
  63. * src/MetalinkParserStateV4Impl.h
  64. * test/MetalinkProcessorTest.cc
  65. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Added Metalink4 support. Currently, name attribute of
  67. metalink::metaurl is ignored and multi-file torrent cannot be used
  68. with Metalink4.
  69. * doc/aria2c.1.txt
  70. * src/DownloadHandlerConstants.cc
  71. * src/ExpatMetalinkProcessor.cc
  72. * src/Makefile.am
  73. * src/Metalink2RequestGroup.cc
  74. * src/MetalinkEntry.cc
  75. * src/MetalinkEntry.h
  76. * src/MetalinkParserController.cc
  77. * src/MetalinkParserController.h
  78. * src/MetalinkParserState.h
  79. * src/MetalinkParserStateImpl.cc
  80. * src/MetalinkParserStateImpl.h
  81. * src/MetalinkParserStateMachine.cc
  82. * src/MetalinkParserStateMachine.h
  83. * src/MetalinkParserStateV3Impl.cc
  84. * src/MetalinkParserStateV3Impl.h
  85. * src/MetalinkParserStateV4Impl.cc
  86. * src/MetalinkParserStateV4Impl.h
  87. * src/MetalinkResource.cc
  88. * src/MetalinkResource.h
  89. * src/Metalinker.cc
  90. * src/RequestGroup.cc
  91. * src/RequestGroup.h
  92. * src/XML2SAXMetalinkProcessor.cc
  93. * src/messageDigest.cc
  94. * src/util.cc
  95. * src/util.h
  96. * test/Makefile.am
  97. * test/MetalinkEntryTest.cc
  98. * test/MetalinkParserControllerTest.cc
  99. * test/MetalinkProcessorTest.cc
  100. * test/MetalinkerTest.cc
  101. * test/UtilTest.cc
  102. * test/metalink4-attrs.xml
  103. * test/metalink4-dirtraversal.xml
  104. * test/metalink4.xml
  105. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added aiFlags argument to getInterfaceAddress(). Use
  107. AI_NUMERICHOST to find interface specified using
  108. --bt-lpd-interface option to avoid time-consuming address lookup.
  109. * src/BtSetup.cc
  110. * src/SocketCore.cc
  111. * src/SocketCore.h
  112. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  114. is bad in LpdMessageReceiver.
  115. * src/LpdMessage.h
  116. * src/LpdMessageReceiver.cc
  117. * src/LpdMessageReceiver.h
  118. * src/LpdReceiveMessageCommand.cc
  119. * test/LpdMessageReceiverTest.cc
  120. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Added --bt-lpd-interface option to specify the interface to use
  122. for Local Peer Discovery. LpdMessageDispatcher object now has its
  123. own socket. LpdMessageReceiver's socket is binded to multicast
  124. address to only receive multicast packets.
  125. * src/BtSetup.cc
  126. * src/LpdMessageDispatcher.cc
  127. * src/LpdMessageDispatcher.h
  128. * src/LpdMessageReceiver.cc
  129. * src/LpdMessageReceiver.h
  130. * src/LpdReceiveMessageCommand.cc
  131. * src/LpdReceiveMessageCommand.h
  132. * src/OptionHandlerFactory.cc
  133. * src/SocketCore.cc
  134. * src/SocketCore.h
  135. * src/prefs.cc
  136. * src/prefs.h
  137. * src/usage_text.h
  138. * test/LpdMessageDispatcherTest.cc
  139. * test/LpdMessageReceiverTest.cc
  140. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Put the portion of code to get interface addresses in
  142. SocketCore::bindAddress() into newly added getInterfaceAddress().
  143. * src/SocketCore.cc
  144. * src/SocketCore.h
  145. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Rewritten util::parseInt() and parseUInt()
  147. * src/util.cc
  148. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Fixed compile error with mingw32 cross compiler. Defined
  150. a2_sockopt_t as void* for the target systems other than mingw32.
  151. * src/SocketCore.cc
  152. * src/a2netcompat.h
  153. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Removed 'always true' condition
  155. * src/util.cc
  156. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Documented --bt-enable-lpd option in man page.
  158. * doc/aria2c.1.txt
  159. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Added Local Peer Discovery. It is disabled by default. Use
  161. --bt-enable-lpd to enable the function.
  162. * src/BtConstants.h
  163. * src/BtSetup.cc
  164. * src/LpdDispatchMessageCommand.cc
  165. * src/LpdDispatchMessageCommand.h
  166. * src/LpdMessage.h
  167. * src/LpdMessageDispatcher.cc
  168. * src/LpdMessageDispatcher.h
  169. * src/LpdMessageReceiver.cc
  170. * src/LpdMessageReceiver.h
  171. * src/LpdReceiveMessageCommand.cc
  172. * src/LpdReceiveMessageCommand.h
  173. * src/Makefile.am
  174. * src/OptionHandlerFactory.cc
  175. * src/Peer.cc
  176. * src/Peer.h
  177. * src/PeerInteractionCommand.cc
  178. * src/SocketCore.cc
  179. * src/SocketCore.h
  180. * src/prefs.cc
  181. * src/prefs.h
  182. * src/usage_text.h
  183. * src/util.cc
  184. * src/util.h
  185. * test/LpdMessageDispatcherTest.cc
  186. * test/LpdMessageReceiverTest.cc
  187. * test/Makefile.am
  188. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. User-defined custom request headers specified by --header option
  190. now override builtin headers if they have same name.
  191. * src/HttpRequest.cc
  192. * src/HttpRequest.h
  193. * test/HttpRequestTest.cc
  194. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Rewirtten util::isNumber()
  196. * src/util.cc
  197. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  199. because without it localized error messages are not printed
  200. correctly.
  201. * src/Platform.cc
  202. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Added unit tests for util::getContentDispositionFilename() from
  204. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  205. tests are passed.
  206. * src/util.cc
  207. * test/UtilTest.cc
  208. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  210. util.cc
  211. * src/Platform.cc
  212. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Support RFC2231 "Parameter Value Character Set and Language
  214. Information" in Content-Disposition header.
  215. * src/HttpResponse.cc
  216. * src/util.cc
  217. * src/util.h
  218. * test/UtilTest.cc
  219. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Print CXXFLAGS
  221. * configure.ac
  222. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Small optimization for A2_WOULDBLOCK(e)
  224. * src/SocketCore.cc
  225. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Removed test file
  227. * test/CookieStorageTest.cc
  228. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Check both EAGAIN and EWOULDBLOCK
  230. * src/SocketCore.cc
  231. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Removed ret == 0 checking for SSL_read(), SSL_write() and
  233. SSL_peek() because the checks are done in the caller. In
  234. SocketBuffer::send(), throw exception if nothing could be written
  235. and socket error was not EWOULDBLOCK
  236. * src/SocketBuffer.cc
  237. * src/SocketCore.cc
  238. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Fixed error code handling so that it can handle Winsock2 error
  240. code.
  241. * src/SocketCore.cc
  242. * src/SocketCore.h
  243. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Bump up version number to 1.9.0a
  245. * configure.ac
  246. * doc/aria2c.1.txt
  247. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Fixed the bug that aria2 doesn't handle return value if error
  249. occurred before download begins.
  250. * src/MultiUrlRequestInfo.cc
  251. * src/main.cc
  252. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Removed SegmentManFactory class.
  254. * src/AbstractSegmentManFactory.h
  255. * src/DefaultSegmentManFactory.cc
  256. * src/DefaultSegmentManFactory.h
  257. * src/Makefile.am
  258. * src/RequestGroup.cc
  259. * src/RequestGroup.h
  260. * src/SegmentManFactory.h
  261. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Destroyed digest context after getting calculated hash.
  263. * src/Piece.cc
  264. * src/Piece.h
  265. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Removed BitfieldManFactory class.
  267. * src/BitfieldManFactory.cc
  268. * src/BitfieldManFactory.h
  269. * src/DefaultPieceStorage.cc
  270. * src/Makefile.am
  271. * src/PeerSessionResource.cc
  272. * src/Piece.cc
  273. * src/main.cc
  274. * test/DefaultPieceStorageTest.cc
  275. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Removed unused methods from BitfieldMan class. Moved
  277. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  278. class.
  279. * src/BitfieldMan.cc
  280. * src/BitfieldMan.h
  281. * src/BitfieldManFactory.cc
  282. * src/BitfieldManFactory.h
  283. * src/bitfield.h
  284. * src/main.cc
  285. * test/BitfieldManTest.cc
  286. * test/DefaultPieceStorageTest.cc
  287. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Moved getFirstNMissingIndex to bitfield.h and made it return the
  289. number of appended indexes.
  290. * src/BitfieldMan.cc
  291. * src/BitfieldMan.h
  292. * src/Piece.cc
  293. * src/Piece.h
  294. * src/bitfield.h
  295. * test/BitfieldManTest.cc
  296. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Added more tests.
  298. * test/BitfieldManTest.cc
  299. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  301. unused block indexes at once instead of calling
  302. getFirstMissingUnusedIndex() multiple times. Made use of it in
  303. Piece class and DefaultBtRequestFactory class via Piece class.
  304. * src/BitfieldMan.cc
  305. * src/BitfieldMan.h
  306. * src/DefaultBtRequestFactory.cc
  307. * src/Piece.cc
  308. * src/Piece.h
  309. * test/BitfieldManTest.cc
  310. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Use std::make_pair(...)
  312. * src/DHTMessageTracker.cc
  313. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Use std::make_pair(...)
  315. * src/bittorrent_helper.cc
  316. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. urlencode(removeFragment(...)) in parseUrl(...)
  318. * src/Request.cc
  319. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  321. * src/AbstractCommand.cc
  322. * src/AdaptiveURISelector.cc
  323. * src/BtPieceMessage.cc
  324. * src/BtPortMessage.cc
  325. * src/CreateRequestCommand.cc
  326. * src/DHTAbstractNodeLookupTask.cc
  327. * src/DHTBucket.cc
  328. * src/DHTGetPeersCommand.cc
  329. * src/DHTMessageDispatcherImpl.cc
  330. * src/DHTMessageFactoryImpl.cc
  331. * src/DHTMessageTracker.cc
  332. * src/DHTPeerAnnounceStorage.cc
  333. * src/DHTRoutingTable.cc
  334. * src/DHTSetup.cc
  335. * src/DefaultBtAnnounce.cc
  336. * src/DefaultBtInteractive.cc
  337. * src/DefaultBtMessageDispatcher.cc
  338. * src/DefaultBtMessageReceiver.cc
  339. * src/DefaultBtProgressInfoFile.cc
  340. * src/DefaultBtRequestFactory.cc
  341. * src/DefaultPeerStorage.cc
  342. * src/DefaultPieceStorage.cc
  343. * src/DownloadCommand.cc
  344. * src/DownloadEngine.cc
  345. * src/EpollEventPoll.cc
  346. * src/FileAllocationCommand.cc
  347. * src/FileEntry.cc
  348. * src/FtpNegotiationCommand.cc
  349. * src/HandshakeExtensionMessage.cc
  350. * src/HttpListenCommand.cc
  351. * src/HttpServer.cc
  352. * src/HttpSkipResponseCommand.cc
  353. * src/IteratableChunkChecksumValidator.cc
  354. * src/Logger.h
  355. * src/MSEHandshake.cc
  356. * src/MetalinkPostDownloadHandler.cc
  357. * src/MultiDiskAdaptor.cc
  358. * src/PeerAbstractCommand.cc
  359. * src/PeerConnection.cc
  360. * src/PeerListenCommand.cc
  361. * src/PeerReceiveHandshakeCommand.cc
  362. * src/RequestGroup.cc
  363. * src/RequestGroupMan.cc
  364. * src/SegmentMan.cc
  365. * src/SelectEventPoll.cc
  366. * src/ServerStat.cc
  367. * src/SimpleBtMessage.cc
  368. * src/SocketCore.cc
  369. * src/TrackerWatcherCommand.cc
  370. * src/UTMetadataDataExtensionMessage.cc
  371. * src/UTMetadataRequestFactory.cc
  372. * src/UTMetadataRequestTracker.cc
  373. * src/XmlRpcMethod.cc
  374. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Changed log level from debug to info
  376. * src/BtDependency.cc
  377. * src/BtPostDownloadHandler.cc
  378. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Removed unused PeerSessionResource::_latency.
  380. * src/BtConstants.h
  381. * src/BtPieceMessage.cc
  382. * src/Peer.cc
  383. * src/Peer.h
  384. * src/PeerSessionResource.cc
  385. * src/PeerSessionResource.h
  386. * test/PeerSessionResourceTest.cc
  387. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Fixed the bug that --file-allocation=falloc doesn't work with
  389. single file download.
  390. * src/AbstractSingleDiskAdaptor.cc
  391. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Release 1.8.2
  393. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Added Portuguese translation. Updated Ukrainian and Spanish
  395. translation. Thanks to all translators.
  396. * po/LINGUAS
  397. * po/es.po
  398. * po/pt.po
  399. * po/uk.po
  400. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Remove fragment from redirected URI.
  402. * src/Request.cc
  403. * test/RequestTest.cc
  404. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Updated po templates.
  406. * po/aria2.pot
  407. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Drop legacy ifdef for ares support and code cleanup.
  409. * src/AsyncNameResolver.cc
  410. * src/AsyncNameResolver.h
  411. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Call ares_library_init and ares_library_cleanup if they are
  413. available. Some code cleanups.
  414. * src/Platform.cc
  415. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Call ares_process_fd() each time after epoll to handle timeout.
  417. * src/EpollEventPoll.cc
  418. * src/EpollEventPoll.h
  419. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Suppressed type-cast compiler warning
  421. * src/CookieStorage.cc
  422. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Fixed compile error on Mac OS X.
  424. * src/CookieStorage.h
  425. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Removed cookietest.txt from Makefile.am
  427. * test/Makefile.am
  428. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Updated version number in man page.
  430. * doc/aria2c.1.txt
  431. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Rewritten help message for --allow-overwrite option.
  433. * doc/aria2c.1.txt
  434. * src/usage_text.h
  435. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Added bittorrent key to the response of tellStatus XML-RPC method.
  437. The associated value of the key is a struct and contains data
  438. retrieved from .torrent file, such as name, announce-list,
  439. comment, etc.
  440. * doc/aria2c.1.txt
  441. * src/XmlRpcMethodImpl.cc
  442. * src/XmlRpcMethodImpl.h
  443. * test/XmlRpcMethodTest.cc
  444. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Removed parse(std::istream&) and parse(const std::string&) from
  446. CookieParser.
  447. * src/CookieParser.cc
  448. * src/CookieParser.h
  449. * test/CookieParserTest.cc
  450. * test/cookietest.txt: Removed
  451. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Fixed the bug that cookie for domain a.b.c is not sent to the host
  453. a.b.c if no other cookies are stored. Fixed the bug that
  454. Cookie::markOriginServerOnly() is not called when cookies are
  455. loaded from file/sqlite3 database.
  456. * src/Cookie.h
  457. * src/CookieStorage.cc
  458. * src/NsCookieParser.cc
  459. * src/Sqlite3MozCookieParser.cc
  460. * test/CookieStorageTest.cc
  461. * test/NsCookieParserTest.cc
  462. * test/Sqlite3MozCookieParserTest.cc
  463. * test/cookies.sqlite
  464. * test/nscookietest.txt
  465. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  467. both _pieceStorage and _segmentMan are initialized or they are
  468. not.
  469. * src/RequestGroup.cc
  470. * src/RequestGroup.h
  471. * test/BtDependencyTest.cc
  472. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Bump up version number to 1.8.2
  474. * configure.ac
  475. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Replaced "." with A2STR::DOT_C
  477. * src/AbstractCommand.cc
  478. * src/Cookie.cc
  479. * src/DownloadContext.cc
  480. * src/FtpConnection.cc
  481. * src/RequestGroup.cc
  482. * src/util.cc
  483. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Replaced isNumberAndDotsNotation() with isNumericHost().
  485. isNumericHost() can handle IPv6 address.
  486. * src/Cookie.cc
  487. * src/CookieStorage.cc
  488. * src/util.cc
  489. * src/util.h
  490. * test/CookieTest.cc
  491. * test/UtilTest.cc
  492. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Included A2STR.h
  494. * src/CookieStorage.cc
  495. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Rewritten Cookie storage.
  497. * src/Cookie.cc
  498. * src/Cookie.h
  499. * src/CookieParser.cc
  500. * src/CookieStorage.cc
  501. * src/CookieStorage.h
  502. * src/a2functional.h
  503. * test/CookieParserTest.cc
  504. * test/CookieStorageTest.cc
  505. * test/CookieTest.cc
  506. * test/HttpResponseTest.cc
  507. * test/TestUtil.h
  508. * test/a2functionalTest.cc
  509. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Handle redirected URI which is not properly percent encoded.
  511. * src/Request.cc
  512. * test/RequestTest.cc
  513. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  515. not found' in the N times(N is where --max-file-not-found=N, N>0)
  516. in a row without single '200 OK' response.
  517. * src/RequestGroup.cc.
  518. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  520. readout by 80 characters in mingw32 build. Catch exception in
  521. DHTMessageReceiver::receiveMessage().
  522. * src/AbstractDiskWriter.cc
  523. * src/ConsoleStatCalc.cc
  524. * src/DHTMessageReceiver.cc
  525. * src/File.cc
  526. * src/RequestGroupMan.cc
  527. * src/a2io.h
  528. * test/FileTest.cc
  529. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Fixed compile error with intel compiler
  531. * src/XmlRpcMethodImpl.cc
  532. * src/XmlRpcMethodImpl.h
  533. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Release 1.8.1
  535. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Updated Swedish, Russian and Italian translations. Thanks to all
  537. translators.
  538. * po/it.po
  539. * po/ru.po
  540. * po/sv.po
  541. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Fixed broken OptionParser::findByName().
  543. * src/OptionParser.cc
  544. * test/OptionParserTest.cc
  545. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Fixed test error without BitTorrent support.
  547. * test/XmlRpcMethodTest.cc
  548. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Fixed compile error without GNUTLS/OpenSSL.
  550. * src/util.cc
  551. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Changed compression level to Z_DEFAULT_COMPRESSION.
  553. * src/GZipEncoder.cc
  554. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added missing command line options: --http-no-cache,
  556. --bt-save-metadata and --bt-metadata-only.
  557. * doc/xmlrpc/aria2rpc
  558. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  560. client accepts gzip content encoding.
  561. * src/A2STR.cc
  562. * src/A2STR.h
  563. * src/GZipEncoder.cc
  564. * src/GZipEncoder.h
  565. * src/HttpHeader.cc
  566. * src/HttpHeader.h
  567. * src/HttpServer.cc
  568. * src/HttpServer.h
  569. * src/HttpServerBodyCommand.cc
  570. * src/HttpServerCommand.cc
  571. * src/Makefile.am
  572. * src/XmlRpcResponse.cc
  573. * src/XmlRpcResponse.h
  574. * test/GZipEncoderTest.cc
  575. * test/Makefile.am
  576. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Added XML-RPC client sample code in Python.
  578. * doc/aria2c.1.txt
  579. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Updated po templates.
  581. * po/aria2.pot
  582. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Bump up version number to 1.8.1
  584. * configure.ac
  585. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Added version number to man page. Updated copyright year in man
  587. page.
  588. * doc/aria2c.1.txt
  589. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Rewritten toTagString
  591. * src/NameMatchOptionHandler.cc
  592. * test/OptionHandlerTest.cc
  593. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Added dir and files key to the response struct of aria2.tellStatus
  595. XML-RPC method. The value associated with files key is the list
  596. of files. Its element is the same struct used in aria2.getFiles
  597. XML-RPC method. Added uris key to the response struct of
  598. aria2.getFiles XML-RPC method. The value associated with uris key
  599. is the list of URIs. Its element is the same struct used in
  600. aria2.getUris XML-RPC method.
  601. * doc/aria2c.1.txt
  602. * src/XmlRpcMethodImpl.cc
  603. * test/XmlRpcMethodTest.cc
  604. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Added aria2.getSessionInfo XML-RPC method. This method returns a
  606. struct containing Session ID, which is generated each time when
  607. aria2 is invoked.
  608. * doc/aria2c.1.txt
  609. * doc/xmlrpc/aria2rpc
  610. * src/DownloadEngine.cc
  611. * src/DownloadEngine.h
  612. * src/XmlRpcMethodFactory.cc
  613. * src/XmlRpcMethodImpl.cc
  614. * src/XmlRpcMethodImpl.h
  615. * test/XmlRpcMethodTest.cc
  616. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Moved generateRandomKey() from bittorrent_helper to util.
  618. * src/DHTBucket.cc
  619. * src/DHTNode.cc
  620. * src/bittorrent_helper.cc
  621. * src/bittorrent_helper.h
  622. * src/util.cc
  623. * src/util.h
  624. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Updated doc about GID.
  626. * doc/aria2c.1.txt
  627. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  629. accepts a negative integer. 'offset' == -1 points last download
  630. in the waiting queue and 'offset' == -2 points the download before
  631. the last download, and so on. The downloads in the response are in
  632. reversed order.
  633. * doc/aria2c.1.txt
  634. * src/XmlRpcMethodImpl.cc
  635. * src/XmlRpcMethodImpl.h
  636. * test/XmlRpcMethodTest.cc
  637. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Added --human-readable option. This option, when true is given,
  639. prints sizes and speed in human readable format(e.g., 1.2Ki,
  640. 3.4Mi) in the console readout. The default value is true and it
  641. looks exactly the same as aria2-1.8.0. So the 'new feature'
  642. appears when false is given. In this case, sizes and speed are
  643. printed without in bytes. No Ki, Mi units conversion is used.
  644. This may be useful for a program to parse the output of aria2.
  645. * doc/aria2c.1.txt
  646. * src/ConsoleStatCalc.cc
  647. * src/ConsoleStatCalc.h
  648. * src/OptionHandlerFactory.cc
  649. * src/main.cc
  650. * src/prefs.cc
  651. * src/prefs.h
  652. * src/usage_text.h
  653. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  655. option accepts empty string "". When "" is given, it erases
  656. previously defined proxy.
  657. * doc/aria2c.1.txt
  658. * src/OptionHandlerImpl.h
  659. * src/usage_text.h
  660. * test/OptionHandlerTest.cc
  661. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Code cleanup for proxy URI handling.
  663. * src/AbstractCommand.cc
  664. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Added --bt-metadata-only option. If true is given to this option,
  666. aria2 downloads metadata only. The file(s) described in metadata
  667. will not be downloaded. This option has effect only when
  668. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  669. * doc/aria2c.1.txt
  670. * src/OptionHandlerFactory.cc
  671. * src/UTMetadataPostDownloadHandler.cc
  672. * src/download_helper.cc
  673. * src/prefs.cc
  674. * src/prefs.h
  675. * src/usage_text.h
  676. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Fixed memory leak. Commands stored in std::deque<Command*> are not
  678. deleted when exception is thrown. Make sure that when passing
  679. std::deque<Command*> to function to store Commands, handle
  680. exception and delete these Commands.
  681. * src/AbstractCommand.cc
  682. * src/CheckIntegrityCommand.cc
  683. * src/FileAllocationCommand.cc
  684. * src/RequestGroup.cc
  685. * src/TrackerWatcherCommand.cc
  686. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  688. * src/A2STR.cc
  689. * src/A2STR.h
  690. * src/FtpNegotiationCommand.cc
  691. * src/HttpResponseCommand.cc
  692. * src/util.cc
  693. * src/util.h
  694. * test/UtilTest.cc
  695. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Treat --dir="" as --dir="."
  697. * src/FtpNegotiationCommand.cc
  698. * src/HttpResponseCommand.cc
  699. * src/Metalink2RequestGroup.cc
  700. * src/UTMetadataPostDownloadHandler.cc
  701. * src/bittorrent_helper.cc
  702. * src/download_helper.cc
  703. * src/util.cc
  704. * src/util.h
  705. * test/UtilTest.cc
  706. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Code clean up.
  708. * src/main.cc
  709. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Reset GID to 1 when they reach maximum value. Rewritten
  711. CUIDCounter::newID()
  712. * src/CUIDCounter.h
  713. * src/RequestGroup.cc
  714. * src/RequestGroup.h
  715. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Documented --http-no-cache option in man page.
  717. * doc/aria2c.1.txt
  718. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added --http-no-cache option. When true is given, aria2 sends
  720. Cache-Control: no-cache and Pragma: no-cache header to avoid
  721. cached content. If false is given , these headers are not sent
  722. and you can add Cache-Control header with a directive you like
  723. using --header option.
  724. * src/HttpRequest.cc
  725. * src/HttpRequest.h
  726. * src/HttpRequestCommand.cc
  727. * src/OptionHandlerFactory.cc
  728. * src/download_helper.cc
  729. * src/prefs.cc
  730. * src/prefs.h
  731. * src/usage_text.h
  732. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Removed Logger from OptionParser. When OptionParser is used to
  734. parse options at bootstrap, LogFactory is not configured yet
  735. properly. When LogFactory is used in OptionParser, it initializes
  736. itself to return a logger which has no ability to write log to the
  737. disk.
  738. * src/OptionParser.cc
  739. * src/OptionParser.h
  740. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Added following sentance to the help message of --out option:
  742. --out option is ignored when -Z is used.
  743. * doc/aria2c.1.txt
  744. * src/usage_text.h
  745. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Added --bt-save-metadata option to -i list options.
  747. * doc/aria2c.1.txt
  748. * src/download_helper.cc
  749. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  751. additional libraries.
  752. * src/MultiUrlRequestInfo.cc
  753. * src/NameResolver.cc
  754. * src/SelectEventPoll.cc
  755. * src/SelectEventPoll.h
  756. * src/SocketCore.cc
  757. * src/SocketCore.h
  758. * src/a2netcompat.h
  759. * src/daemon.cc
  760. * src/main.cc
  761. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Fixed typo.
  763. * src/DHTMessageReceiver.cc
  764. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Fixed the bug that causes segmentation fault if unknown option is
  766. put in aria2.conf file. BUG#2928303
  767. * src/OptionParser.cc
  768. * src/OptionParser.h
  769. * src/option_processing.cc
  770. * test/OptionParserTest.cc
  771. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Ignore port message with port=0.
  773. * src/BtPortMessage.cc
  774. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Run autoupdate
  776. * configure.ac
  777. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Updated autoconf/automake auxiliary files.
  779. * INSTALL
  780. * config.guess
  781. * config.sub
  782. * depcomp
  783. * install-sh
  784. * m4/intldir.m4
  785. * missing
  786. * mkinstalldirs
  787. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Removed unused function.
  789. * src/SharedHandle.h
  790. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Find pooled socket using all cached addresses.
  792. * src/DNSCache.h
  793. * src/DownloadEngine.cc
  794. * src/DownloadEngine.h
  795. * src/InitiateConnectionCommand.cc
  796. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Updated copyright year.
  798. * src/version_usage.cc
  799. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Pool connection if _contentEncodingDecoder is used and server
  801. supports persistent connection.
  802. * src/HttpDownloadCommand.cc
  803. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Updated doc.
  805. * src/DownloadCommand.cc
  806. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Untabify. Fixed one line in copyright which is longer than 80
  808. columns.
  809. * src
  810. * test
  811. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Release 1.8.0
  813. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Updated po templates.
  815. * po/aria2.pot
  816. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Documented --bt-save-metadata option in man page.
  818. * doc/aria2c.1.txt
  819. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Fixed usage of --bt-save-metadata option.
  821. * src/usage_text.h
  822. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Updated po templates.
  824. * po/aria2.pot
  825. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  827. causes name resolution error when none of network interface has
  828. IPv4 address.
  829. * src/main.cc
  830. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Bump up version number to 1.8.0.
  832. * configure.ac
  833. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Use info hash as a filename when saving BitTorrent metadata.
  835. * src/UTMetadataPostDownloadHandler.cc
  836. * test/UTMetadataPostDownloadHandlerTest.cc
  837. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Documented system.multicall XML-RPC method in man page.
  839. * doc/aria2c.1.txt
  840. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Added signal handler for SIGHUP to save .aria2 file when terminal
  842. is closed. The handler is the same one for SIGINT and SIGTERM.
  843. * src/MultiUrlRequestInfo.cc
  844. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Defined method name in XmlRpcMethod subclasses.
  846. * src/XmlRpcMethodFactory.cc
  847. * src/XmlRpcMethodImpl.cc
  848. * src/XmlRpcMethodImpl.h
  849. * test/XmlRpcMethodTest.cc
  850. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Added system.multicall XML-RPC method.
  852. * src/XmlRpcMethod.cc
  853. * src/XmlRpcMethod.h
  854. * src/XmlRpcMethodFactory.cc
  855. * src/XmlRpcMethodImpl.cc
  856. * src/XmlRpcMethodImpl.h
  857. * test/XmlRpcMethodTest.cc
  858. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Check structure depth when decoding.
  860. * src/bencode.cc
  861. * src/bencode.h
  862. * test/BencodeTest.cc
  863. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Documented tellStopped XML-RPC method in man page.
  865. * doc/aria2c.1.txt
  866. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Added tellStopped XML-RPC method to aria2rpc.
  868. * doc/xmlrpc/aria2rpc
  869. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Added tellStopped XML-RPC method. This method returns stopped
  871. download in the specified range. It takes same parameters with
  872. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  873. * src/XmlRpcMethodFactory.cc
  874. * src/XmlRpcMethodImpl.cc
  875. * src/XmlRpcMethodImpl.h
  876. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  878. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  879. when conducting unit tests because they fail if networking
  880. interface is not configured with IPv4 address.
  881. * src/NameResolver.cc
  882. * src/SocketCore.cc
  883. * src/SocketCore.h
  884. * src/a2netcompat.h
  885. * test/AllTest.cc
  886. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Fixed unit test error
  888. * test/UTMetadataPostDownloadHandlerTest.cc
  889. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Defined static string constants for efficiency.
  891. * src/XmlRpcMethodImpl.cc
  892. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Added --bt-save-metadata option. When true is given, it saves
  894. metadata as .torrent file. This option has effect only when
  895. BitTorrent Magnet URI is used. The filename is name in metadata
  896. with suffix .torrent. The directory to be saved is the same
  897. directory where download file is saved. If the same file already
  898. exists, metdata is not saved.
  899. * src/OptionHandlerFactory.cc
  900. * src/UTMetadataPostDownloadHandler.cc
  901. * src/UTMetadataPostDownloadHandler.h
  902. * src/message.h
  903. * src/prefs.cc
  904. * src/prefs.h
  905. * src/usage_text.h
  906. * test/UTMetadataDataExtensionMessageTest.cc
  907. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Added util::saveAs() function. Use it in Signature::save().
  909. * src/Signature.cc
  910. * src/util.cc
  911. * src/util.h
  912. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Upcase info hash in Magnet URI.
  914. * doc/aria2c.1.txt
  915. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Refactored RequestGroupMan::changeReservedGroupPosition()
  917. * src/RequestGroupMan.cc
  918. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Updated the description for aria2.addTorrent XML-RPC method.
  920. * doc/aria2c.1.txt
  921. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Added changePosition to aria2rpc.
  923. * doc/xmlrpc/aria2rpc
  924. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Documented changePosition XML-RPC method in man page.
  926. * doc/aria2c.1.txt
  927. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  929. pos and how. This method changes the position of download denoted
  930. by gid. If how is POS_SET, it moves the download to a position
  931. relative to the beginning of the queue. If how is POS_CUR, it
  932. moves the download to a position relative to the current
  933. position. If how is POS_END, it moves the download to a position
  934. relative to the end of the queue. If the destination position is
  935. less than 0 or beyond the end of the queue, it moves the download
  936. to the beginning or the end of the queue respectively. Returns
  937. the destination position.
  938. * src/RequestGroupMan.cc
  939. * src/RequestGroupMan.h
  940. * src/XmlRpcMethodFactory.cc
  941. * src/XmlRpcMethodImpl.cc
  942. * src/XmlRpcMethodImpl.h
  943. * test/RequestGroupManTest.cc
  944. * test/XmlRpcMethodTest.cc
  945. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Added getOption and getGlobalOption to aria2rpc.
  947. * doc/xmlrpc/aria2rpc
  948. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Documented getOption and getGlobalOption XML-RPC method in man
  950. page
  951. * doc/aria2c.1.txt
  952. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Added getOption and getGlobalOption XML-RPC method. getOption
  954. takes GID as a parameter and returns its options as struct.
  955. getGlobalOption takes no parameter and returns global
  956. options. Because global option is used as a template for the
  957. option of newly added downloads, it includes options returned by
  958. getOption.
  959. * src/Option.h
  960. * src/XmlRpcMethodFactory.cc
  961. * src/XmlRpcMethodImpl.cc
  962. * src/XmlRpcMethodImpl.h
  963. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Sort _optionHandlers in OptionParser by name in ascending order.
  965. Use vector instead of deque for efficiency.
  966. * src/OptionHandler.h
  967. * src/OptionHandlerFactory.h
  968. * src/OptionParser.cc
  969. * src/OptionParser.h
  970. * src/version_usage.cc
  971. * test/OptionParserTest.cc
  972. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Code cleanup
  974. * src/XmlRpcMethod.cc
  975. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Documented about followedBy and belongsTo in man page.
  977. * doc/aria2c.1.txt
  978. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Added following 2 keys, followedBy and belongsTo, to the response
  980. of tellStatus.
  981. followedBy: List of GIDs which are generated by the consequence of
  982. this download. For example, when aria2 downloaded Metalink file,
  983. it generates downloads described in it(see *--follow-metalink*
  984. option). This value is useful to track these auto generated
  985. downloads. If there is no such downloads, this key will not be
  986. included in the response.
  987. belongsTo: GID of a parent download. Some downloads are a part of
  988. another download. For example, if a file in Metalink has
  989. BitTorrent resource, the download of .torrent is a part of that
  990. file. If this download has no parent, this key will not be
  991. included in the response.
  992. * src/BtPostDownloadHandler.cc
  993. * src/DownloadResult.h
  994. * src/Metalink2RequestGroup.cc
  995. * src/MetalinkPostDownloadHandler.cc
  996. * src/RequestGroup.cc
  997. * src/RequestGroup.h
  998. * src/UTMetadataPostDownloadHandler.cc
  999. * src/XmlRpcMethodImpl.cc
  1000. * src/XmlRpcMethodImpl.h
  1001. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Assigned BObject in BDE() to avoid segmentation fault when calling
  1003. methods of BDE::none().
  1004. * src/BDE.cc
  1005. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Show info hash in Magnet URI in upper case letters in -S output.
  1007. * src/bittorrent_helper.cc
  1008. * test/BittorrentHelperTest.cc
  1009. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Removed old useless comment
  1011. * src/MultiUrlRequestInfo.cc
  1012. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1014. not properly used in configure script and failed to detect gnutls.
  1015. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1016. and the initialization of pkg-config is done in first occurrence
  1017. of PKG_CHECK_MODULES which is not executed because it is inside of
  1018. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1019. * configure.ac
  1020. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Release 1.7.2
  1022. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1024. true even if all downloads haven't finished, especially when
  1025. PostDownloadHandler is involved. Changed the condition so that it
  1026. only returns true if both _requestGroups and _reservedGroups are
  1027. empty.
  1028. * src/RequestGroupMan.cc
  1029. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Log listening port for BitTorrent/DHT in notice level.
  1031. * src/DHTConnectionImpl.cc
  1032. * src/PeerListenCommand.cc
  1033. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Updated po templates.
  1035. * po/aria2.pot
  1036. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Bump up version number to 1.7.2
  1038. * configure.ac
  1039. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Changed default value of --enable-dht from 'false' to 'true'.
  1041. * doc/aria2c.1.txt
  1042. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Enabled DHT by default because of Magnet URI support. To disable
  1044. DHT, use --enable-dht=false
  1045. * src/OptionHandlerFactory.cc
  1046. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Print Magnet URI in -S output.
  1048. * src/AnnounceList.cc
  1049. * src/bittorrent_helper.cc
  1050. * src/bittorrent_helper.h
  1051. * test/BittorrentHelperTest.cc
  1052. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Added --bt-prioritize-piece option to aria2rpc.
  1054. * doc/xmlrpc/aria2rpc
  1055. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Refer Magnet URI in --help. Made some cosmetic changes.
  1057. * src/version_usage.cc
  1058. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Updated -T and -M option.
  1060. * doc/aria2c.1.txt
  1061. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Fixed typo
  1063. * doc/aria2c.1.txt
  1064. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Fixed the bug that line separator is missing in horizontal bar.
  1066. * doc/xmlrpc/aria2mon
  1067. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Updated usage text for --metalink-file option.
  1069. * src/usage_text.h
  1070. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. If '-' is given as an argument to --metalink-file option, aria2
  1072. reads Metalink file from stdin.
  1073. * src/OptionHandlerFactory.cc
  1074. * src/OptionHandlerImpl.h
  1075. * src/a2io.h
  1076. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Fixed the bug that aria2 listens wrong port if --interface option
  1078. is used.
  1079. * src/SocketCore.cc
  1080. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Fixed the bug that query parameter in magnet URI is not decoded.
  1082. * src/magnet.cc
  1083. * test/MagnetTest.cc
  1084. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Specified defaultSize as an argument for easy testing.
  1086. * src/util.cc
  1087. * src/util.h
  1088. * test/UtilTest.cc
  1089. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Release 1.7.1
  1091. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Bump up version number to 1.7.1
  1093. * configure.ac
  1094. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Fixed the bug --bt-prioritize-piece=tail is not working.
  1096. * src/util.cc
  1097. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Release 1.7.0
  1099. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Updated po templates.
  1101. * po/aria2.pot
  1102. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Updated help message for --bt-prioritize-piece. Some cosmetic
  1104. changes.
  1105. * doc/aria2c.1.txt
  1106. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1108. * src/usage_text.h
  1109. * src/util.cc
  1110. * test/UtilTest.cc
  1111. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Updated Russian, Ukrainian, German and French translations.
  1113. Thanks to all translators involved.
  1114. * po/de.po
  1115. * po/fr.po
  1116. * po/ru.po
  1117. * po/uk.po
  1118. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Mentioned about pkg-config
  1120. * README
  1121. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Fixed typo. Referred --index-out option in BitTorrent notes.
  1123. * README
  1124. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1126. bind, try all addresses until success
  1127. * src/SocketCore.cc
  1128. * src/SocketCore.h
  1129. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Updated po templates.
  1131. * po/aria2.pot
  1132. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Bump up version number to 1.7.0
  1134. * configure.ac
  1135. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1137. * src/DefaultPieceStorage.cc
  1138. * src/DefaultPieceStorage.h
  1139. * src/PieceStorage.h
  1140. * src/UnknownLengthPieceStorage.cc
  1141. * src/UnknownLengthPieceStorage.h
  1142. * test/MockPieceStorage.h
  1143. * test/ProtocolDetectorTest.cc
  1144. * test/XmlRpcMethodTest.cc
  1145. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Documented in man page that if getifaddrs() is missing,
  1147. --interface option doesn't accept interface name.
  1148. * doc/aria2c.1.txt
  1149. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1151. * src/DefaultBtAnnounce.cc
  1152. * src/DefaultBtAnnounce.h
  1153. * test/DefaultBtAnnounceTest.cc
  1154. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Fixed the bug that connection is always dropped if handshake
  1156. message in extension protocol don't have metadata_size.
  1157. src/HandshakeExtensionMessage.cc
  1158. * src/HandshakeExtensionMessage.cc
  1159. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1161. text saying DHT is recommended when Magnet URI is provided.
  1162. * doc/aria2c.1.txt
  1163. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1165. URI is supplied. Notify user that they should consider enabling
  1166. DHT if they use Magnet URI.
  1167. * src/RequestGroup.cc
  1168. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Added --disable-ipv6 option to disable IPv6.
  1170. * doc/aria2c.1.txt
  1171. * src/InitiateConnectionCommand.cc
  1172. * src/NameResolver.cc
  1173. * src/NameResolver.h
  1174. * src/OptionHandlerFactory.cc
  1175. * src/main.cc
  1176. * src/prefs.cc
  1177. * src/prefs.h
  1178. * src/usage_text.h
  1179. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Updated usage text for --bt-prioritize-piece option.
  1181. * doc/aria2c.1.txt
  1182. * src/usage_text.h
  1183. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1185. given and PACKAGE is missing in the system or FEATURE cannot be
  1186. enabled, print error message and stop the script.
  1187. * configure.ac
  1188. * m4/aria2_arg.m4
  1189. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Halt metadata download immediately when metadata download is done.
  1191. Don't wait unresponsive tracker.
  1192. * src/ByteArrayDiskWriter.h
  1193. * src/DefaultBtInteractive.cc
  1194. * src/DefaultExtensionMessageFactory.cc
  1195. * src/DefaultExtensionMessageFactory.h
  1196. * src/PeerInteractionCommand.cc
  1197. * src/UTMetadataDataExtensionMessage.cc
  1198. * src/UTMetadataDataExtensionMessage.h
  1199. * src/UTMetadataRequestExtensionMessage.cc
  1200. * test/UTMetadataDataExtensionMessageTest.cc
  1201. * test/UTMetadataRequestExtensionMessageTest.cc
  1202. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Documented --interface option in man page.
  1204. * doc/aria2c.1.txt
  1205. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Try resolved address in the order received from the resolver.
  1207. * src/DNSCache.h
  1208. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Added debug logs.
  1210. * src/SocketCore.cc
  1211. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Fixed type of tail to uint64_t
  1213. * src/util.cc
  1214. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Added --interface option. This feature binds sockets to given
  1216. interface. You can specify interface name, IP address and
  1217. hostname.
  1218. * configure.ac
  1219. * src/OptionHandlerFactory.cc
  1220. * src/SocketCore.cc
  1221. * src/SocketCore.h
  1222. * src/main.cc
  1223. * src/message.h
  1224. * src/prefs.cc
  1225. * src/prefs.h
  1226. * src/usage_text.h
  1227. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Updated man page for bt-prioritize-piece option in -i list.
  1229. * doc/aria2c.1.txt
  1230. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Added bt-prioritize-piece option to -i list.
  1232. * src/download_helper.cc
  1233. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Removed --http-auth-scheme option from man page.
  1235. * doc/aria2c.1.txt
  1236. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Removed --http-auth-scheme option since it doesn't do nothing.
  1238. * src/OptionHandlerFactory.cc
  1239. * src/prefs.cc
  1240. * src/prefs.h
  1241. * src/usage_text.h
  1242. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Adjusted the number of peer info which get_peers reply message can
  1244. carry.
  1245. * src/DHTGetPeersReplyMessage.cc
  1246. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Added extension_message_test_helper.h to aria2c_SOURCES.
  1248. * test/Makefile.am
  1249. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Documented --bt-prioritize-piece option in man page.
  1251. * doc/aria2c.1.txt
  1252. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Added option --bt-prioritize-piece. This option instruct aria2 to
  1254. try to download first and last pieces of each file first. The
  1255. argument can contain 2 keywords:head and tail. To include both
  1256. keywords, they must be separated by comma. These keywords can take
  1257. one parameter, SIZE. For example , if head=SIZE is specified,
  1258. pieces in the range of first SIZE bytes of each file get higher
  1259. priority. tail=SIZE means the range of last SIZE bytes of each
  1260. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1261. * src/DefaultPieceStorage.h
  1262. * src/Makefile.am
  1263. * src/OptionHandlerFactory.cc
  1264. * src/OptionHandlerImpl.h
  1265. * src/PriorityPieceSelector.cc
  1266. * src/PriorityPieceSelector.h
  1267. * src/RequestGroup.cc
  1268. * src/prefs.cc
  1269. * src/prefs.h
  1270. * src/usage_text.h
  1271. * src/util.cc
  1272. * src/util.h
  1273. * test/Makefile.am
  1274. * test/MockPieceSelector.h
  1275. * test/PriorityPieceSelectorTest.cc
  1276. * test/UtilTest.cc
  1277. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Fixed typo
  1279. * src/HttpRequest.h
  1280. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. In Magnet URI with tr parameter, put each announce URI in separate
  1282. tier.
  1283. * src/bittorrent_helper.cc
  1284. * test/BittorrentHelperTest.cc
  1285. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Renamed ExtensionMessage::getBencodedData() as
  1287. ExtensionMessage::getPayload()
  1288. * src/BtExtendedMessage.cc
  1289. * src/ExtensionMessage.h
  1290. * src/HandshakeExtensionMessage.cc
  1291. * src/HandshakeExtensionMessage.h
  1292. * src/UTMetadataDataExtensionMessage.cc
  1293. * src/UTMetadataDataExtensionMessage.h
  1294. * src/UTMetadataRejectExtensionMessage.cc
  1295. * src/UTMetadataRejectExtensionMessage.h
  1296. * src/UTMetadataRequestExtensionMessage.cc
  1297. * src/UTMetadataRequestExtensionMessage.h
  1298. * src/UTPexExtensionMessage.cc
  1299. * src/UTPexExtensionMessage.h
  1300. * test/HandshakeExtensionMessageTest.cc
  1301. * test/MockExtensionMessage.h
  1302. * test/UTMetadataDataExtensionMessageTest.cc
  1303. * test/UTMetadataRejectExtensionMessageTest.cc
  1304. * test/UTMetadataRequestExtensionMessageTest.cc
  1305. * test/UTPexExtensionMessageTest.cc
  1306. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Updated man page for BitTorrent Magnet URI.
  1308. * doc/aria2c.1.txt
  1309. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Call DownloadContext::setOwnerRequestGroup() in
  1311. RequestGroup::setDownloadContext().
  1312. * src/BtDependency.cc
  1313. * src/RequestGroup.cc
  1314. * src/RequestGroup.h
  1315. * src/download_helper.cc
  1316. * test/DefaultBtMessageDispatcherTest.cc
  1317. * test/DefaultExtensionMessageFactoryTest.cc
  1318. * test/HandshakeExtensionMessageTest.cc
  1319. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1321. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1322. from metadata, use new metadata2Torrent() function.
  1323. * src/BtDependency.cc
  1324. * src/UTMetadataPostDownloadHandler.cc
  1325. * src/bittorrent_helper.cc
  1326. * src/bittorrent_helper.h
  1327. * test/BittorrentHelperTest.cc
  1328. * test/BtDependencyTest.cc
  1329. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Use createRequestGroupForUri to create the download for torrent
  1331. file.
  1332. * src/Metalink2RequestGroup.cc
  1333. * test/Metalink2RequestGroupTest.cc
  1334. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Fixed typo
  1336. * src/DownloadContext.h
  1337. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Use createRequestGroupForBitTorrent()
  1339. * src/BtPostDownloadHandler.cc
  1340. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added remove().
  1342. * src/Option.cc
  1343. * src/Option.h
  1344. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Removed options which is only valid for URIs specified in
  1346. command-line. If they are left, because op is used as a template
  1347. for new RequestGroup(such as created in XML-RPC command,
  1348. BtPostDownloadHandler etc), they causes unintentional effect.
  1349. * src/main.cc
  1350. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Refer to option value of PREF_OUT only in download_helper.
  1352. * src/FtpNegotiationCommand.cc
  1353. * src/HttpResponseCommand.cc
  1354. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1356. * src/download_helper.cc
  1357. * src/download_helper.h
  1358. * src/XmlRpcMethodImpl.cc
  1359. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Updated man page for changeOption XML-RPC method.
  1361. * doc/aria2c.1.txt
  1362. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Added --bt-max-peers option to changeOption XML-RPC method.
  1364. * src/XmlRpcMethod.cc
  1365. * src/XmlRpcMethodImpl.cc
  1366. * test/XmlRpcMethodTest.cc
  1367. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1369. * test/XmlRpcMethodTest.cc
  1370. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Removed redundant DownloadContext::hasAttribute(...) calls.
  1372. * src/ConsoleStatCalc.cc
  1373. * src/RequestGroup.cc
  1374. * src/XmlRpcMethodImpl.cc
  1375. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Changed the number of tracker request attempt from 5 to 2.
  1377. * src/TrackerWatcherCommand.cc
  1378. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Use host and protocol in original URI, because URI selector
  1380. selects URI based on original URI, not redirected one.
  1381. * src/Request.cc
  1382. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Fixed the bug which causes segmentation fault with tellWaiting
  1384. XML-RPC method when BitTorrent download is waiting. The key of
  1385. BtRegistry is changed from info hash to GID, because it is
  1386. registered per RequestGroup, not info hash.
  1387. * src/BtRegistry.cc
  1388. * src/BtRegistry.h
  1389. * src/BtSetup.cc
  1390. * src/ConsoleStatCalc.cc
  1391. * src/InitiatorMSEHandshakeCommand.cc
  1392. * src/PeerInitiateConnectionCommand.cc
  1393. * src/PeerInteractionCommand.cc
  1394. * src/PeerInteractionCommand.h
  1395. * src/PeerReceiveHandshakeCommand.cc
  1396. * src/RequestGroup.cc
  1397. * src/XmlRpcMethodImpl.cc
  1398. * test/BtRegistryTest.cc
  1399. * test/XmlRpcMethodTest.cc
  1400. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Updated man page for changeOption XML-RPC method.
  1402. * doc/aria2c.1.txt
  1403. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1405. method.
  1406. * src/XmlRpcMethod.cc
  1407. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Documented about BitTorrent Magnet URI in man page.
  1409. * doc/aria2c.1.txt
  1410. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1412. inherited to generated RequestGroup.
  1413. * src/UTMetadataPostDownloadHandler.cc
  1414. * test/UTMetadataPostDownloadHandlerTest.cc
  1415. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Prepended "[METADATA]" before dn.
  1417. * src/bittorrent_helper.cc
  1418. * test/BittorrentHelperTest.cc
  1419. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Rewritten Magnet URI parser.
  1421. * src/Makefile.am
  1422. * src/ProtocolDetector.cc
  1423. * src/bittorrent_helper.cc
  1424. * src/bittorrent_helper.h
  1425. * src/download_helper.cc
  1426. * src/magnet.cc
  1427. * src/magnet.h
  1428. * test/BittorrentHelperTest.cc
  1429. * test/MagnetTest.cc
  1430. * test/Makefile.am
  1431. * test/ProtocolDetectorTest.cc
  1432. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Use hton64
  1434. * src/base32.cc
  1435. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Added Base32 encoded BitTorrent Magnet Link support.
  1437. * src/Makefile.am
  1438. * src/base32.cc
  1439. * src/base32.h
  1440. * src/bittorrent_helper.cc
  1441. * test/Base32Test.cc
  1442. * test/BittorrentHelperTest.cc
  1443. * test/Makefile.am
  1444. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1446. supported yet. Fixed typo in method name in RequestGroup. In
  1447. metadataGetMode, don't show "Your share ratio was ..." message.
  1448. * src/DefaultBtInteractive.cc
  1449. * src/DefaultBtInteractive.h
  1450. * src/DownloadHandlerFactory.cc
  1451. * src/DownloadHandlerFactory.h
  1452. * src/HandshakeExtensionMessage.cc
  1453. * src/Makefile.am
  1454. * src/Metalink2RequestGroup.cc
  1455. * src/PeerInteractionCommand.cc
  1456. * src/RequestGroup.cc
  1457. * src/RequestGroup.h
  1458. * src/UTMetadataPostDownloadHandler.cc
  1459. * src/UTMetadataPostDownloadHandler.h
  1460. * src/download_helper.cc
  1461. * test/HandshakeExtensionMessageTest.cc
  1462. * test/Makefile.am
  1463. * test/UTMetadataPostDownloadHandlerTest.cc
  1464. * test/UTMetadataRejectExtensionMessageTest.cc
  1465. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. In metadataGetMode, don't show SEEDING.
  1467. * src/ConsoleStatCalc.cc
  1468. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Fixed ut_metadata data handling. Implemented
  1470. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1471. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1472. metadata_size is received.
  1473. * src/DefaultExtensionMessageFactory.cc
  1474. * src/DefaultExtensionMessageFactory.h
  1475. * src/HandshakeExtensionMessage.cc
  1476. * src/HandshakeExtensionMessage.h
  1477. * src/UTMetadataDataExtensionMessage.cc
  1478. * src/UTMetadataDataExtensionMessage.h
  1479. * src/UTMetadataRequestExtensionMessage.cc
  1480. * src/UTMetadataRequestFactory.cc
  1481. * src/UTMetadataRequestFactory.h
  1482. * src/UTMetadataRequestTracker.cc
  1483. * src/UTMetadataRequestTracker.h
  1484. * test/DefaultExtensionMessageFactoryTest.cc
  1485. * test/HandshakeExtensionMessageTest.cc
  1486. * test/MockBtMessage.h
  1487. * test/UTMetadataDataExtensionMessageTest.cc
  1488. * test/UTMetadataRequestExtensionMessageTest.cc
  1489. * test/UTMetadataRequestFactoryTest.cc
  1490. * test/UTMetadataRequestTrackerTest.cc
  1491. * test/extension_message_test_helper.h
  1492. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Drop connection if ut_metadata reject message is received.
  1494. * src/UTMetadataRejectExtensionMessage.cc
  1495. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1497. get high enough in that mode.
  1498. * src/ActivePeerConnectionCommand.cc
  1499. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Added BitTorrent magnet link support to ProtocolDetector.
  1501. * src/ProtocolDetector.cc
  1502. * src/ProtocolDetector.h
  1503. * test/ProtocolDetectorTest.cc
  1504. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Don't inject validator into BtMessage in metadataGetMode because
  1506. most of the checks depends on the total length of download but it
  1507. is unknown. Delegate metadataGetMode to BtMessage.
  1508. * src/DefaultBtMessageFactory.cc
  1509. * src/DefaultBtMessageFactory.h
  1510. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1512. * src/DefaultPieceStorage.h
  1513. * src/PieceStorage.h
  1514. * src/UnknownLengthPieceStorage.h
  1515. * test/MockPieceStorage.h
  1516. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Added markTotalLengthIsKnown().
  1518. * src/DownloadContext.h
  1519. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1521. missing. If metadata is missing, always use DHT when it is ready.
  1522. * src/BtSetup.cc
  1523. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Added parseMagnetLink(). Hex encoded info hash is supported.
  1525. Base32 encoded info hash is not supported yet.
  1526. * src/bittorrent_helper.cc
  1527. * src/bittorrent_helper.h
  1528. * test/BittorrentHelperTest.cc
  1529. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Added FromHex()
  1531. * src/util.cc
  1532. * src/util.h
  1533. * test/UtilTest.cc
  1534. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Added _metadataGetMode member variable. It toggles the action when
  1536. messages are received: usually they almost do nothing if
  1537. _metadataGetMode is true.
  1538. * src/AbstractBtMessage.cc
  1539. * src/AbstractBtMessage.h
  1540. * src/BtAllowedFastMessage.cc
  1541. * src/BtBitfieldMessage.cc
  1542. * src/BtCancelMessage.cc
  1543. * src/BtChokeMessage.cc
  1544. * src/BtHaveAllMessage.cc
  1545. * src/BtHaveMessage.cc
  1546. * src/BtInterestedMessage.cc
  1547. * src/BtNotInterestedMessage.cc
  1548. * src/BtPieceMessage.cc
  1549. * src/BtRejectMessage.cc
  1550. * src/BtRequestMessage.cc
  1551. * src/BtUnchokeMessage.cc
  1552. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Added bencode::decode overload functions. They have extra argument
  1554. 'end', passed by reference. 'end' points to the beyond the last
  1555. position of data used in decoding process.
  1556. * src/bencode.cc
  1557. * src/bencode.h
  1558. * test/BencodeTest.cc
  1559. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Initial support of Extension for Peers to Send Metadata
  1561. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1562. metadata from swarm.
  1563. * src/BtConstants.h
  1564. * src/DefaultBtInteractive.cc
  1565. * src/DefaultExtensionMessageFactory.cc
  1566. * src/DefaultExtensionMessageFactory.h
  1567. * src/ExtensionMessage.h
  1568. * src/ExtensionMessageRegistry.h
  1569. * src/HandshakeExtensionMessage.cc
  1570. * src/HandshakeExtensionMessage.h
  1571. * src/Makefile.am
  1572. * src/PeerConnection.h
  1573. * src/PeerInteractionCommand.cc
  1574. * src/UTMetadataDataExtensionMessage.cc
  1575. * src/UTMetadataDataExtensionMessage.h
  1576. * src/UTMetadataExtensionMessage.cc
  1577. * src/UTMetadataExtensionMessage.h
  1578. * src/UTMetadataRejectExtensionMessage.cc
  1579. * src/UTMetadataRejectExtensionMessage.h
  1580. * src/UTMetadataRequestExtensionMessage.cc
  1581. * src/UTMetadataRequestExtensionMessage.h
  1582. * src/bittorrent_helper.cc
  1583. * src/bittorrent_helper.h
  1584. * test/BittorrentHelperTest.cc
  1585. * test/DefaultExtensionMessageFactoryTest.cc
  1586. * test/HandshakeExtensionMessageTest.cc
  1587. * test/Makefile.am
  1588. * test/UTMetadataDataExtensionMessageTest.cc
  1589. * test/UTMetadataRejectExtensionMessageTest.cc
  1590. * test/UTMetadataRequestExtensionMessageTest.cc
  1591. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Cancel segment in prepareForRetry() because there is a chance that
  1593. the command has segments.
  1594. * src/CreateRequestCommand.cc
  1595. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Fixed the bug that slow server is not knocked down in favor of
  1597. faster one.
  1598. * src/AbstractCommand.cc
  1599. * src/DefaultPieceStorage.cc
  1600. * src/DefaultPieceStorage.h
  1601. * src/PieceStorage.h
  1602. * src/UnknownLengthPieceStorage.cc
  1603. * src/UnknownLengthPieceStorage.h
  1604. * test/MockPieceStorage.h
  1605. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Fixed the bug that Request object is not added to
  1607. _inFlightRequests in findFasterRequest().
  1608. * src/FileEntry.cc
  1609. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Changed the strategry of how to increase the number of outstanding
  1611. requests. Now the number is doubled if there are no outstanding
  1612. requests after receiving messages.
  1613. * src/BtConstants.h
  1614. * src/DefaultBtInteractive.cc
  1615. * src/DefaultBtInteractive.h
  1616. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Check socket for reading if there are outstanding requests.
  1618. * src/PeerInteractionCommand.cc
  1619. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Moved frequently called methods to header file so they get
  1621. inlined.
  1622. * src/RequestSlot.cc
  1623. * src/RequestSlot.h
  1624. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Copied in_addr instead of just casting from char* which might
  1626. violate strict aliasing rules.
  1627. * src/AsyncNameResolver.cc
  1628. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Use dynamic_pointer_cast
  1630. * test/BtPieceMessageTest.cc
  1631. * test/BtRequestMessageTest.cc
  1632. * test/DefaultBtRequestFactoryTest.cc
  1633. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Added testSetUrl20()
  1635. * test/RequestTest.cc
  1636. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Code cleanup
  1638. * src/bittorrent_helper.cc
  1639. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Use C++ style cast
  1641. * src/AsyncNameResolver.cc
  1642. * src/Base64.h
  1643. * src/BtBitfieldMessage.cc
  1644. * src/BtHandshakeMessage.cc
  1645. * src/DefaultBtMessageFactory.cc
  1646. * src/DefaultBtProgressInfoFile.cc
  1647. * src/EpollEventPoll.cc
  1648. * src/ExpatMetalinkProcessor.cc
  1649. * src/IteratableChecksumValidator.cc
  1650. * src/IteratableChunkChecksumValidator.cc
  1651. * src/MessageDigestHelper.cc
  1652. * src/Platform.cc
  1653. * src/RequestGroupMan.cc
  1654. * src/SingleFileAllocationIterator.cc
  1655. * src/Sqlite3MozCookieParser.cc
  1656. * src/XML2SAXMetalinkProcessor.cc
  1657. * src/Xml2XmlRpcRequestProcessor.cc
  1658. * src/util.cc
  1659. * src/util.h
  1660. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Fixed integer potential alignment problem.
  1662. * src/bitfield.h
  1663. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1665. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1666. include file ordering.
  1667. * src/PeerListProcessor.h
  1668. * src/bittorrent_helper.cc
  1669. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1671. * src/Request.cc
  1672. * src/util.cc
  1673. * src/util.h
  1674. * test/RequestTest.cc
  1675. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Rewritten util::uitos()
  1677. * src/util.h
  1678. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Code cleanup
  1680. * src/Request.cc
  1681. * src/Request.h
  1682. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Rewritten Request::parseUrl()
  1684. * src/Request.cc
  1685. * test/RequestTest.cc
  1686. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Removed unused macro SAFE_CHARS
  1688. * src/Request.cc
  1689. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Updated doc
  1691. * src/DHTRoutingTableDeserializer.cc
  1692. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Release 1.6.3
  1694. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Removed unused function.
  1696. * test/DHTPeerAnnounceStorageTest.cc
  1697. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Only decrement cols if cols > 0
  1699. * src/ConsoleStatCalc.cc
  1700. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1702. translations. Thanks to all translators.
  1703. * po/ca.po
  1704. * po/fr.po
  1705. * po/it.po
  1706. * po/ja.po
  1707. * po/pl.po
  1708. * po/ru.po
  1709. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Updated translation template
  1711. * po
  1712. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. Fixed compile error without ssl library.
  1714. * src/util.cc
  1715. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Logged received nodes in get_peers reply message.
  1717. * src/DHTAbstractNodeLookupTask.cc
  1718. * src/DHTAbstractNodeLookupTask.h
  1719. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1721. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1722. * src/DHTMessageDispatcherImpl.cc
  1723. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Don't reuse URI if Request pool is not empty.
  1725. * src/CreateRequestCommand.cc
  1726. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1728. receive get_peers request for torrent which the client is now
  1729. downloading.
  1730. * src/BtSetup.cc
  1731. * src/DHTPeerAnnounceEntry.cc
  1732. * src/DHTPeerAnnounceEntry.h
  1733. * src/DHTPeerAnnounceStorage.cc
  1734. * src/DHTPeerAnnounceStorage.h
  1735. * src/RequestGroup.cc
  1736. * test/DHTPeerAnnounceEntryTest.cc
  1737. * test/DHTPeerAnnounceStorageTest.cc
  1738. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Fixed the bug that in Windows environment new blank line is
  1740. inserted when console readout is updated.
  1741. * src/ConsoleStatCalc.cc
  1742. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Throw exception if binding listening port is failed. Removed
  1744. RequestGroupMan::getInitialCommand(). Use
  1745. fillRequestGroupFromReserver() instead. Delete commands for
  1746. RequestGroup which has errors when it is being added.
  1747. * src/BtSetup.cc
  1748. * src/DownloadEngine.cc
  1749. * src/DownloadEngine.h
  1750. * src/DownloadEngineFactory.cc
  1751. * src/MultiUrlRequestInfo.cc
  1752. * src/RequestGroupMan.cc
  1753. * src/RequestGroupMan.h
  1754. * test/RequestGroupManTest.cc
  1755. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Fixed the bug that when downloading more than one torrent,
  1757. listening port is not reported properly to tracker for 2nd or
  1758. later torrents.
  1759. * src/BtSetup.cc
  1760. * src/PeerListenCommand.cc
  1761. * src/PeerListenCommand.h
  1762. * src/RequestGroup.cc
  1763. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Bump up version number to 1.6.3
  1765. * configure.ac
  1766. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Removed Util.cc from POTFILES.in
  1768. * po/POTFILES.in
  1769. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Updated man page for previous change.
  1771. * doc/aria2c.1.txt
  1772. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. If user name is embedded but password is missing in URI, first
  1774. resolve password using .netrc. If password is found in .netrc,
  1775. then use it as password. If not, use the password specified in
  1776. --ftp-passwd.
  1777. * src/AuthConfigFactory.cc
  1778. * src/Request.cc
  1779. * src/Request.h
  1780. * test/AuthConfigFactoryTest.cc
  1781. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Fixed typo
  1783. * doc/aria2c.1.txt
  1784. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Fixed typo
  1786. * src/usage_text.h
  1787. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Added missing bitfield.cc
  1789. * src/bitfield.cc
  1790. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Renamed Util.{cc,h} as util.{cc,h}
  1792. * src/Util.cc
  1793. * src/Util.h
  1794. * src/util.cc
  1795. * src/util.h
  1796. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Moved static functions in Util class to namespace util.
  1798. * src
  1799. * test
  1800. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1801. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1802. Moved generateRandomKey to bittorrent_helper.cc.
  1803. * src/DHTBucket.cc
  1804. * src/DHTGetPeersMessage.cc
  1805. * src/DHTGetPeersReplyMessage.cc
  1806. * src/DHTMessage.cc
  1807. * src/DHTNode.cc
  1808. * src/DHTTokenTracker.cc
  1809. * src/DHTUtil.cc: Removed.
  1810. * src/DHTUtil.h: Removed.
  1811. * src/Makefile.am
  1812. * src/Util.cc
  1813. * src/Util.h
  1814. * src/bitfield.h
  1815. * src/bittorrent_helper.cc
  1816. * src/bittorrent_helper.h
  1817. * test/ARC4Test.cc
  1818. * test/BNodeTest.cc
  1819. * test/DHTAnnouncePeerMessageTest.cc
  1820. * test/DHTAnnouncePeerReplyMessageTest.cc
  1821. * test/DHTFindNodeMessageTest.cc
  1822. * test/DHTFindNodeReplyMessageTest.cc
  1823. * test/DHTGetPeersMessageTest.cc
  1824. * test/DHTGetPeersReplyMessageTest.cc
  1825. * test/DHTPingMessageTest.cc
  1826. * test/DHTPingReplyMessageTest.cc
  1827. * test/DHTTokenTrackerTest.cc
  1828. * test/DHTUtilTest.cc: Removed.
  1829. * test/Makefile.am
  1830. * test/UtilTest.cc
  1831. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Removed the call to trim() because trim() is called for each
  1833. element in split().
  1834. * src/CookieParser.cc
  1835. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Replaced Util::slice() with split()
  1837. * src/AbstractCommand.cc
  1838. * src/CookieParser.cc
  1839. * src/File.cc
  1840. * src/HttpHeaderProcessor.cc
  1841. * src/HttpRequest.cc
  1842. * src/Metalink2RequestGroup.cc
  1843. * src/MetalinkParserController.cc
  1844. * src/Netrc.cc
  1845. * src/NsCookieParser.cc
  1846. * src/ParameterizedStringParser.cc
  1847. * src/ServerStatMan.cc
  1848. * src/UriListParser.cc
  1849. * src/Util.cc
  1850. * src/Util.h
  1851. * src/bittorrent_helper.cc
  1852. * test/UtilTest.cc
  1853. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Use request->getDir() instead of "/" for embedded user/pass in
  1855. URI.
  1856. * src/AuthConfigFactory.cc
  1857. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Fixed wrong insertion point for BasicCred.
  1859. * src/AuthConfigFactory.cc
  1860. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Allowed non-regular file in LocalFilePathOptionHandler
  1862. * src/OptionHandlerImpl.h
  1863. * src/message.h
  1864. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1866. * src/Netrc.cc
  1867. * src/Util.h
  1868. * test/NetrcTest.cc
  1869. * test/sample.netrc
  1870. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Fixed typo
  1872. * src/BtDependency.cc
  1873. * src/BtRejectMessage.cc
  1874. * src/FtpConnection.cc
  1875. * src/HttpHeaderProcessor.h
  1876. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Fixed lintian report in man page
  1878. * doc/aria2c.1.txt
  1879. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Release 1.6.2
  1881. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Updated Ukrainian translation. Thanks to all translators.
  1883. * po/uk.po
  1884. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Updated translation template
  1886. * po
  1887. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Bump up version number to 1.6.2
  1889. * configure.ac
  1890. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Updated licence message in -v output.
  1892. * src/version_usage.cc
  1893. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Replaced aria2 with aria2c in help message.
  1895. * src/version_usage.cc
  1896. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1898. * src/version_usage.cc
  1899. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Quoted localedir
  1901. * src/Makefile.am
  1902. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1904. utime. Check header for utime.h.
  1905. * configure.ac
  1906. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1908. * configure.ac
  1909. * src/daemon.cc
  1910. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Don't set localedir manually. Leave it to autoconf.
  1912. * configure.ac
  1913. * src/Makefile.am
  1914. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Added --install to ACLOCAL_AMFLAGS.
  1916. Removed m4 from SUBDIRS.
  1917. Updated automake 1.11 and autoconf 2.64.
  1918. Replaced some obsolute macros with new one.
  1919. * Makefile.am
  1920. * configure.ac
  1921. * m4/aria2_arg.m4
  1922. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Removed Makefile.am in m4 directory.
  1924. * configure.ac
  1925. * m4/ChangeLog
  1926. * m4/Makefile.am
  1927. * m4/Makefile.in
  1928. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Removed unused m4 macros.
  1930. * m4/intldir.m4
  1931. * m4/inttypes.m4
  1932. * m4/isc-posix.m4
  1933. * m4/libgnutls-extra.m4
  1934. * m4/ulonglong.m4
  1935. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Fixed the bug that causes segmentation fault if
  1937. req->getCurrentUrl() contains printf formatting characters such as
  1938. %d. The statement that causes this bug is useless and removed.
  1939. * src/AbstractCommand.cc
  1940. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. * Release 1.6.1
  1942. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1943. Updated Simplified Chinese translation. Thanks to translators.
  1944. * po/zh_CN.po
  1945. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. Updated translation template
  1947. * po
  1948. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Bump up version number to 1.6.1
  1950. * configure.ac
  1951. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Changed interval from 120 to 60 for dropping inactive peer.
  1953. * src/DefaultBtInteractive.cc
  1954. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Updated man page for --user-agent and --peer-id-prefix option.
  1956. * doc/aria2c.1.txt
  1957. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Code clean up
  1959. * src/BtPostDownloadHandler.cc
  1960. * src/ContentTypeRequestGroupCriteria.cc
  1961. * src/ContentTypeRequestGroupCriteria.h
  1962. * src/DownloadHandlerConstants.cc
  1963. * src/DownloadHandlerConstants.h
  1964. * src/DownloadHandlerFactory.cc
  1965. * src/MetalinkPostDownloadHandler.cc
  1966. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Don't save control file when aria2 exists while checking piece
  1968. hash(behavior of -V option). If control file doesn't exist when
  1969. aria2 launched, the completed length in saved control file will be
  1970. 0 byte and this confuses user. disableSaveControlFile() is called
  1971. in RequestGroup::processCheckIntegrityEntry().
  1972. enableSaveControlFile() will be called after hash checking is
  1973. done. See CheckIntegrityCommand.
  1974. * src/CheckIntegrityCommand.cc
  1975. * src/RequestGroup.cc
  1976. * src/RequestGroup.h
  1977. * src/RequestGroupMan.cc
  1978. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Included version number in Peer ID and client version. Peer ID
  1980. now starts with "aria2/VERSION-", where VERSION is
  1981. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1982. * src/DefaultBtInteractive.cc
  1983. * src/OptionHandlerFactory.cc
  1984. * src/bittorrent_helper.cc
  1985. * src/bittorrent_helper.h
  1986. * src/main.cc
  1987. * src/usage_text.h
  1988. * test/BittorrentHelperTest.cc
  1989. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Fixed memory leak.
  1991. * src/DownloadCommand.cc
  1992. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Removed server, port, user and passwd key from options before
  1994. XMLRPC::Client.call since they are not options of aria2.
  1995. * doc/xmlrpc/aria2mon
  1996. * doc/xmlrpc/aria2rpc
  1997. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Included version number in user-agent string.
  1999. * src/OptionHandlerFactory.cc
  2000. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Fixed the bug that the option values changed by XML-RPC
  2002. method(changeOption and changeGlobalOption) are overwritten to the
  2003. previous value by the next these request which doesn't contain
  2004. that option value. Supporse max-download-limit is initially 0. You
  2005. changed this value to 100K by changeOption. Then you issue
  2006. changeOption request to change max-upload-limit to 50K. This
  2007. second request doesn't contain xml-download-limit, so it is back
  2008. to initial value, 0. Another improvement is that exception is
  2009. thrown when changeOption and changeGlobalOption request contains
  2010. option name which doesn't allowed in each request.
  2011. * src/DownloadEngine.h
  2012. * src/XmlRpcMethod.cc
  2013. * src/XmlRpcMethod.h
  2014. * src/XmlRpcMethodImpl.cc
  2015. * src/download_helper.cc
  2016. * src/download_helper.h
  2017. * test/XmlRpcMethodTest.cc
  2018. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Added missing MetalinkParserStateImpl.{cc,h}
  2020. * src/MetalinkParserStateImpl.cc
  2021. * src/MetalinkParserStateImpl.h
  2022. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Put all MetalinkParserState subclasses into
  2024. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2025. * src/FileMetalinkParserState.cc: Removed
  2026. * src/FileMetalinkParserState.h: Removed
  2027. * src/FilesMetalinkParserState.cc: Removed
  2028. * src/FilesMetalinkParserState.h: Removed
  2029. * src/FinMetalinkParserState.cc: Removed
  2030. * src/FinMetalinkParserState.h: Removed
  2031. * src/HashMetalinkParserState.cc: Removed
  2032. * src/HashMetalinkParserState.h: Removed
  2033. * src/InitialMetalinkParserState.cc: Removed
  2034. * src/InitialMetalinkParserState.h: Removed
  2035. * src/LanguageMetalinkParserState.cc: Removed
  2036. * src/LanguageMetalinkParserState.h: Removed
  2037. * src/Makefile.am
  2038. * src/MetalinkMetalinkParserState.cc: Removed
  2039. * src/MetalinkMetalinkParserState.h: Removed
  2040. * src/MetalinkParserState.h
  2041. * src/MetalinkParserStateMachine.cc
  2042. * src/MetalinkParserStateMachine.h
  2043. * src/OSMetalinkParserState.cc: Removed
  2044. * src/OSMetalinkParserState.h: Removed
  2045. * src/PieceHashMetalinkParserState.cc: Removed
  2046. * src/PieceHashMetalinkParserState.h: Removed
  2047. * src/PiecesMetalinkParserState.cc: Removed
  2048. * src/PiecesMetalinkParserState.h: Removed
  2049. * src/ResourcesMetalinkParserState.cc: Removed
  2050. * src/ResourcesMetalinkParserState.h: Removed
  2051. * src/SignatureMetalinkParserState.cc: Removed
  2052. * src/SignatureMetalinkParserState.h: Removed
  2053. * src/SizeMetalinkParserState.cc: Removed
  2054. * src/SizeMetalinkParserState.h: Removed
  2055. * src/SkipTagMetalinkParserState.cc: Removed
  2056. * src/SkipTagMetalinkParserState.h: Removed
  2057. * src/URLMetalinkParserState.cc: Removed
  2058. * src/URLMetalinkParserState.h: Removed
  2059. * src/VerificationMetalinkParserState.cc: Removed
  2060. * src/VerificationMetalinkParserState.h: Removed
  2061. * src/VersionMetalinkParserState.cc: Removed
  2062. * src/VersionMetalinkParserState.h: Removed
  2063. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Move all functions in PeerMessageUtil to bittorrent_helper.
  2065. * src/BtBitfieldMessage.cc
  2066. * src/BtBitfieldMessageValidator.h
  2067. * src/BtExtendedMessage.cc
  2068. * src/BtHandshakeMessage.cc
  2069. * src/BtHandshakeMessageValidator.h
  2070. * src/BtPieceMessage.cc
  2071. * src/BtPieceMessageValidator.h
  2072. * src/BtPortMessage.cc
  2073. * src/DHTFindNodeReplyMessage.cc
  2074. * src/DHTGetPeersReplyMessage.cc
  2075. * src/DHTMessageFactoryImpl.cc
  2076. * src/DHTRoutingTableDeserializer.cc
  2077. * src/DHTRoutingTableSerializer.cc
  2078. * src/DHTTokenTracker.cc
  2079. * src/DefaultBtMessageFactory.cc
  2080. * src/IndexBtMessage.cc
  2081. * src/IndexBtMessage.h
  2082. * src/IndexBtMessageValidator.h
  2083. * src/Makefile.am
  2084. * src/PeerMessageUtil.cc: Removed.
  2085. * src/PeerMessageUtil.h: Removed.
  2086. * src/RangeBtMessage.cc
  2087. * src/RangeBtMessage.h
  2088. * src/RangeBtMessageValidator.h
  2089. * src/UTPexExtensionMessage.cc
  2090. * src/ZeroBtMessage.cc
  2091. * src/ZeroBtMessage.h
  2092. * src/bittorrent_helper.cc
  2093. * src/bittorrent_helper.h
  2094. * test/BittorrentHelperTest.cc
  2095. * test/BtAllowedFastMessageTest.cc
  2096. * test/BtBitfieldMessageTest.cc
  2097. * test/BtCancelMessageTest.cc
  2098. * test/BtChokeMessageTest.cc
  2099. * test/BtExtendedMessageTest.cc
  2100. * test/BtHandshakeMessageTest.cc
  2101. * test/BtHaveAllMessageTest.cc
  2102. * test/BtHaveMessageTest.cc
  2103. * test/BtHaveNoneMessageTest.cc
  2104. * test/BtInterestedMessageTest.cc
  2105. * test/BtNotInterestedMessageTest.cc
  2106. * test/BtPieceMessageTest.cc
  2107. * test/BtPortMessageTest.cc
  2108. * test/BtRejectMessageTest.cc
  2109. * test/BtRequestMessageTest.cc
  2110. * test/BtSuggestPieceMessageTest.cc
  2111. * test/BtUnchokeMessageTest.cc
  2112. * test/DHTFindNodeReplyMessageTest.cc
  2113. * test/DHTGetPeersReplyMessageTest.cc
  2114. * test/DHTMessageFactoryImplTest.cc
  2115. * test/DHTRoutingTableDeserializerTest.cc
  2116. * test/DHTRoutingTableSerializerTest.cc
  2117. * test/DefaultBtMessageFactoryTest.cc
  2118. * test/DefaultExtensionMessageFactoryTest.cc
  2119. * test/Makefile.am
  2120. * test/PeerListProcessorTest.cc
  2121. * test/PeerMessageUtilTest.cc: Removed.
  2122. * test/UTPexExtensionMessageTest.cc
  2123. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Limit the size of values list when sending get_peers reply.
  2125. * src/DHTGetPeersReplyMessage.cc
  2126. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Updated banner
  2128. * doc/xmlrpc/aria2rpc
  2129. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Added missing help message for remove command.
  2131. * doc/xmlrpc/aria2rpc
  2132. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Generated configure and config.h.in
  2134. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2135. Add check for fork(), which is missing on MinGW
  2136. * src/daemon.cc
  2137. * configure.ac
  2138. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2140. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2141. Util::httpGMT().
  2142. * src/Util.cc
  2143. * src/Util.h
  2144. * test/UtilTest.cc
  2145. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. * Release 1.6.0
  2147. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Fixed a path to xmlrpc/README.txt
  2149. * doc/Makefile.am
  2150. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Added XML-RPC in -v Configuration output.
  2152. * src/FeatureConfig.cc
  2153. * src/FeatureConfig.h
  2154. * test/FeatureConfigTest.cc
  2155. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Updated Bulgarian, Russian, Slovak and Japanese
  2157. translations. Thanks to all translators.
  2158. * po/bg.po
  2159. * po/ja.po
  2160. * po/ru.po
  2161. * po/sk.po
  2162. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Removed --retry-wait option from aria2rpc
  2164. * doc/xmlrpc/aria2rpc
  2165. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Removed --retry-wait option from man page.
  2167. * doc/aria2c.1.txt
  2168. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Removed --retry-wait option since the current architecture doesn't
  2170. allow sleep for particular URI.
  2171. * src/AbstractCommand.cc
  2172. * src/OptionHandlerFactory.cc
  2173. * src/download_helper.cc
  2174. * src/prefs.cc
  2175. * src/prefs.h
  2176. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Removed Retry-After header support. Since the current architecture
  2178. doesn't allow sleep for particular URI.
  2179. * src/HttpSkipResponseCommand.cc
  2180. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Updated the help message for --daemon option.
  2182. * doc/aria2c.1.txt
  2183. * src/usage_text.h
  2184. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Added our own daemon() function for systems which desn't have
  2186. daemon(3).
  2187. * configure.ac
  2188. * src/Makefile.am
  2189. * src/daemon.cc
  2190. * src/daemon.h
  2191. * src/option_processing.cc
  2192. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Simplified File::getCurrentDir()
  2194. * src/File.cc
  2195. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Use exit() instead of _exit
  2197. * src/RequestGroupMan.cc
  2198. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Replaced "CATEGORY" with "TAGS".
  2200. * src/usage_text.h
  2201. * doc/aria2c.1.txt
  2202. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Updated the help message for --help option.
  2204. * src/usage_text.h
  2205. * doc/aria2c.1.txt
  2206. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Updated man page for added help tags.
  2208. * doc/aria2c.1.txt
  2209. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Added help category #file. Added #file tag to the options related
  2211. to downloaded file.
  2212. * src/OptionHandlerFactory.cc
  2213. * src/help_tags.h
  2214. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Added help categories: #cookie and #hook. Added #https tag to
  2216. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2217. * src/OptionHandlerFactory.cc
  2218. * src/help_tags.h
  2219. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Made MSG_NOT_FILE translatable.
  2221. * src/message.h
  2222. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Updated man page for --help option.
  2224. * doc/aria2c.1.txt
  2225. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Updated doc.
  2227. * src/XmlRpcMethod.h
  2228. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Help category now starts with "#" to distinguish a category from
  2230. keyword search. For example, "http" categroy is now "#http". You
  2231. can type "--help=#http" to get explanation of options related to
  2232. http. If '#' is omitted, then the argument is treated as a keyword
  2233. and aria2 searches options whose name includes the keyword and
  2234. print matched ones. For example, "--help=http" will show options
  2235. whose name includes "http".
  2236. * src/OptionHandlerFactory.cc
  2237. * src/help_tags.h
  2238. * src/usage_text.h
  2239. * src/version_usage.cc
  2240. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Documented missing experimental tag and newly added xml-rpc tag in
  2242. man page.
  2243. * doc/aria2c.1.txt
  2244. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Added xml-rpc help tag. Tagged xml-rpc related options with
  2246. xml-rpc tag.
  2247. * src/OptionHandlerFactory.cc
  2248. * src/help_tags.h
  2249. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Updated message when a path is not a file. Updated common message
  2251. for wrong option.
  2252. * src/OptionHandlerException.cc
  2253. * src/message.h
  2254. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Use File::isFile() instead of File::exists(). Updated message when
  2256. a path is not a file.
  2257. * src/OptionHandlerImpl.cc
  2258. * src/message.h
  2259. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Fixed the bug that server performence profile is not updated when
  2261. aria2c was terminated by emergency shutdown.
  2262. * src/TrackerWatcherCommand.cc
  2263. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Use LocalFilePathOptionHandler for -T and -M option.
  2265. Updated message of MSG_FILE_NOT_EXIST.
  2266. * src/OptionHandlerFactory.cc
  2267. * src/message.h
  2268. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Added LocalFilePathOptionHandler which check whether the specified
  2270. file path does exist or not.
  2271. * src/OptionHandlerImpl.cc
  2272. * src/message.h
  2273. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Updated wiki page URI.
  2275. * README
  2276. * doc/aria2c.1.txt
  2277. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Added README.txt for xmlrpc directory.
  2279. * doc/Makefile.am
  2280. * doc/xmlrpc/README.txt
  2281. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Bump up version number to 1.6.0.
  2283. * configure.ac
  2284. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Added XML-RPC client scripts written in ruby.
  2286. * doc/Makefile.am
  2287. * doc/xmlrpc/aria2mon
  2288. * doc/xmlrpc/aria2rpc
  2289. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Added support for IPv6 literal address in URI. Now aria2 can
  2291. handle URI such as http://[::1]/
  2292. * src/HttpRequest.cc
  2293. * src/HttpRequest.h
  2294. * src/Request.cc
  2295. * src/Request.h
  2296. * test/HttpRequestTest.cc
  2297. * test/OptionHandlerTest.cc
  2298. * test/RequestTest.cc
  2299. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Fixed the bug that HTTP request header for XML-RPC request is not
  2301. parsed properly.
  2302. * src/HttpHeader.cc
  2303. * src/HttpHeaderProcessor.cc
  2304. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Fixed the bug that XML-RPC authorization might be done before HTTP
  2306. request header is fully received.
  2307. * src/HttpServerCommand.cc
  2308. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Documented --xml-rpc-listen-all option in man page.
  2310. * doc/aria2c.1.txt
  2311. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Added --xml-rpc-listen-all option. If true is given to this
  2313. option, aria2 listens incoming XML-RPC requests on all network
  2314. interfaces. If false is given, listens only on local loopback
  2315. interface. The default value is false.
  2316. * src/HttpListenCommand.cc
  2317. * src/OptionHandlerFactory.cc
  2318. * src/SocketCore.cc
  2319. * src/SocketCore.h
  2320. * src/prefs.cc
  2321. * src/prefs.h
  2322. * src/usage_text.h
  2323. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. * Release 1.5.2
  2325. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Updated Ukrainian and Russian translations. Thanks to all
  2327. translators.
  2328. * po/ru.po
  2329. * po/uk.po
  2330. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Bump up version number to 1.5.2
  2332. * configure.ac
  2333. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Get comment, comment.utf-8, created by and creation date from
  2335. .torrent file and print them in -S output.
  2336. * src/bittorrent_helper.cc
  2337. * src/bittorrent_helper.h
  2338. * test/BittorrentHelperTest.cc
  2339. * test/test.torrent
  2340. * test/utf8.torrent
  2341. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Show exact file size along in -S option output.
  2343. * src/Util.h
  2344. * src/bittorrent_helper.cc
  2345. * test/UtilTest.cc
  2346. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Avoided unnecessary memory allocation in
  2348. BitfieldMan::getCompletedLength().
  2349. * src/BitfieldMan.cc
  2350. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Fixed the bug that download fails if
  2352. SocketCore::establishConnection() throws exception and aria2
  2353. doesn't try another address.
  2354. * src/AbstractCommand.cc
  2355. * src/InitiateConnectionCommand.cc
  2356. * src/message.h
  2357. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2359. detected properly.
  2360. * m4/sqlite3.m4
  2361. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2363. because it causes compile error if PARAMS macro is defined.
  2364. * src/XmlRpcElements.cc
  2365. * src/XmlRpcElements.h
  2366. * src/XmlRpcRequestParserStateImpl.cc
  2367. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. * Release 1.5.1
  2369. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Bump up version number to 1.5.1
  2371. * configure.ac
  2372. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Fixed compile error without BitTorrent support
  2374. * src/DefaultBtProgressInfoFile.cc
  2375. * src/DownloadEngine.cc
  2376. * src/DownloadEngine.h
  2377. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Added missing '=' in Download Results
  2379. * src/RequestGroupMan.cc
  2380. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Fixed compiler warning
  2382. * src/DefaultBtProgressInfoFile.cc
  2383. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Fixed compiler warning on 32bit systems.
  2385. * src/DownloadCommand.cc
  2386. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Call flush from ServerStatMan::save()
  2388. * src/ServerStatMan.cc
  2389. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Check stream status after file is opened.
  2391. * src/CookieStorage.cc
  2392. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Rewritten Signature::save()
  2394. * src/Signature.cc
  2395. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Rewritten RequestGroupMan::saveServerStat()
  2397. * src/RequestGroupMan.cc
  2398. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Rewritten stream error handling
  2400. * src/DHTAutoSaveCommand.cc
  2401. * src/DHTRoutingTableDeserializer.cc
  2402. * src/DHTRoutingTableSerializer.cc
  2403. * src/DHTSetup.cc
  2404. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Check stream status after file is opened.
  2406. * src/DefaultBtProgressInfoFile.cc
  2407. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Rewritten stream error handling
  2409. * src/DefaultBtProgressInfoFile.cc
  2410. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Make sure that stream is closed before renaming file. Unit test
  2412. fails on mingw32 in the previous implementation.
  2413. * src/CookieStorage.cc
  2414. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Fixed the unit test error without sqlite3
  2416. * test/CookieStorageTest.cc
  2417. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Fixed the undefined reference error
  2419. * test/HttpResponseTest.cc
  2420. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. * Release 1.5.0
  2422. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2424. Ukrainian translations. Thanks to all translators.
  2425. * po/ru.po
  2426. * po/it.po
  2427. * po/da.po
  2428. * po/bg.po
  2429. * po/ja.po
  2430. * po/uk.po
  2431. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Added missing src/Logger.cc
  2433. * src/Logger.cc
  2434. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Rewritten Logger to avoiding constly virtual call.
  2436. * src/LogFactory.cc
  2437. * src/LogFactory.h
  2438. * src/Logger.h
  2439. * src/Makefile.am
  2440. * src/Makefile.in
  2441. * src/NullLogger.h: Removed.
  2442. * src/SimpleLogger.cc
  2443. * src/SimpleLogger.h
  2444. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Updated doc
  2446. * src/main.cc
  2447. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Updated debug log message
  2449. * src/AbstractCommand.cc
  2450. * src/message.h
  2451. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Avoid to create zombie process when commands specified in
  2453. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2454. X and NetBSD.
  2455. * src/main.cc
  2456. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Fixed typo
  2458. * src/usage_text.h
  2459. * doc/aria2c.1.txt
  2460. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Documented 'errorCode' of tellStatus in man page.
  2462. * doc/aria2c.1.txt
  2463. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2465. This key is only available for stopped/completed downloads and its
  2466. value is the error code defined in EXIT STATUS in man page.
  2467. * src/XmlRpcMethodImpl.cc
  2468. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Fixed the bug that session download length is not updated when
  2470. PeerStat is not fastest one.
  2471. * src/SegmentMan.cc
  2472. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Updated doc.
  2474. * doc/aria2c.1.txt
  2475. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Updated doc.
  2477. * src/AbstractCommand.cc
  2478. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Handle the case when DownloadContext has no FileEntry.
  2480. * src/XmlRpcMethodImpl.cc
  2481. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Handle the situation where struct option.name is char *.
  2483. * configure.ac
  2484. * src/OptionParser.cc
  2485. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Code cleanup
  2487. * src/AbstractCommand.cc
  2488. * src/DownloadCommand.cc
  2489. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Use option of each download to create AuthConfig instead of global
  2491. option.
  2492. * src/AuthConfigFactory.cc
  2493. * src/AuthConfigFactory.h
  2494. * src/FtpNegotiationCommand.cc
  2495. * src/HttpRequest.cc
  2496. * src/HttpRequest.h
  2497. * src/HttpRequestCommand.cc
  2498. * src/HttpSkipResponseCommand.cc
  2499. * src/MultiUrlRequestInfo.cc
  2500. * test/AuthConfigFactoryTest.cc
  2501. * test/FtpConnectionTest.cc
  2502. * test/HttpRequestTest.cc
  2503. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Don't call prepareForRetry(1) if all segments are ignored in
  2505. SegmentMan.
  2506. * src/AbstractCommand.cc
  2507. * src/BitfieldMan.cc
  2508. * src/BitfieldMan.h
  2509. * src/SegmentMan.cc
  2510. * src/SegmentMan.h
  2511. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Removed FileEntry::getAssociatedUris()
  2513. * src/FileEntry.h
  2514. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Updated doc: TODO1.5 -> TODO
  2516. * src/FileEntry.cc
  2517. * src/HttpResponseCommand.cc
  2518. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2520. involved.
  2521. * src/RequestGroup.cc
  2522. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Eliminated duplicated filterBitfield initialization code.
  2524. * src/BitfieldMan.cc
  2525. * src/BitfieldMan.h
  2526. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2528. relatively naive approach, though). For DownloadFailureException,
  2529. we handle the case when req is null properly.
  2530. * src/AbstractCommand.cc
  2531. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Added function returning suffix of control file to
  2533. DefaultBtProgressInfoFile.
  2534. * src/DefaultBtProgressInfoFile.cc
  2535. * src/DefaultBtProgressInfoFile.h
  2536. * src/RequestGroup.cc
  2537. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. Documented getVersion in man page.
  2539. * doc/aria2c.1.txt
  2540. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Documented type of offset and num for tellWaiting xml-rpc method.
  2542. * doc/aria2c.1.txt
  2543. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Implemented getVersion xml-rpc method. This method returns struct
  2545. which has 2 key-value pairs: "version" key is associated to the
  2546. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2547. associated to the list of enabled features, such as "Async DNS",
  2548. "BitTorrent".
  2549. * src/FeatureConfig.h
  2550. * src/XmlRpcMethodFactory.cc
  2551. * src/XmlRpcMethodImpl.cc
  2552. * src/XmlRpcMethodImpl.h
  2553. * test/XmlRpcMethodTest.cc
  2554. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2556. for compatibility issue.
  2557. * src/SocketCore.cc
  2558. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Fixed compile error with openSSL
  2560. * src/bittorrent_helper.cc
  2561. * src/messageDigest.h
  2562. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Removed bad code: setting certificate type priority to key
  2564. exchange priority.
  2565. * src/SocketCore.cc
  2566. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Disconnect seeder if client is also in seed state.
  2568. * src/BtBitfieldMessage.cc
  2569. * src/BtHaveAllMessage.cc
  2570. * src/BtHaveMessage.cc
  2571. * src/message.h
  2572. * test/BtBitfieldMessageTest.cc
  2573. * test/BtHaveAllMessageTest.cc
  2574. * test/BtHaveMessageTest.cc
  2575. * test/MockPieceStorage.h
  2576. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Keep CreateRequestCommand in queue when no segment is available so
  2578. that they can pick up pieces which slow BitTorrent peers are
  2579. downloading.
  2580. * src/AbstractCommand.cc
  2581. * src/CreateRequestCommand.cc
  2582. * src/CreateRequestCommand.h
  2583. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. --bt-stop-timeout now only checks download speed.
  2585. * src/BtStopDownloadCommand.cc
  2586. * src/BtStopDownloadCommand.h
  2587. * src/BtSetup.cc
  2588. * src/usage_text.h
  2589. * doc/aria2c.1.txt
  2590. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Fixed compile error regarding BUFSIZE.
  2592. * src/DownloadCommand.cc
  2593. * src/DownloadCommand.h
  2594. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Documented tellWaiting xml-rpc method in man page.
  2596. * doc/aria2c.1.txt
  2597. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Bump up version number to 1.5.0
  2599. * configure.ac
  2600. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Removed resolved TODO1.5
  2602. * src/AbstractCommand.cc
  2603. * src/DownloadCommand.cc
  2604. * src/RequestGroup.cc
  2605. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Release pooled and in-flight Request objectsand URIResult objects
  2607. in FileEntry after download completed.
  2608. * src/DownloadContext.cc
  2609. * src/DownloadContext.h
  2610. * src/FileEntry.cc
  2611. * src/FileEntry.h
  2612. * src/RequestGroup.cc
  2613. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Set manual and source attribute in aria2c.1.txt
  2615. * doc/aria2c.1.txt
  2616. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Documented that the default value of --use-head is 'false' in man
  2618. page.
  2619. * doc/aria2c.1.txt
  2620. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Added bt-stop-timeout option to -i list.
  2622. * doc/aria2c.1.txt
  2623. * src/download_helper.cc
  2624. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Fixed typo
  2626. * doc/aria2c.1.txt
  2627. * src/usage_text.h
  2628. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Removed peer-id-prefix option from -i list.
  2630. * doc/aria2c.1.txt
  2631. * src/download_helper.cc
  2632. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Fixed typo
  2634. * doc/aria2c.1.txt
  2635. * src/usage_text.h
  2636. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Documented --bt-stop-timeout option in man page.
  2638. * doc/aria2c.1.txt
  2639. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Updated README regarding multi-file torrent web-seeding.
  2641. * doc/README.txt
  2642. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Updated man page regarding multi-file torrent web-seeding.
  2644. * doc/aria2c.1.txt
  2645. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Updated doc
  2647. * src/version_usage.cc
  2648. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Winsock select() doesn't work if no socket is in FD_SET. To
  2650. overcome this problem, a dummy socket is added to FD_SET and it is
  2651. given to select().
  2652. * src/SelectEventPoll.cc
  2653. * src/SelectEventPoll.h
  2654. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Disabled --use-head option by default because --use-head=true
  2656. causes problems on some web sites.
  2657. * src/OptionHandlerFactory.cc
  2658. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Print URL List in -S option for torrent.
  2660. * src/bittorrent_helper.cc
  2661. * src/bittorrent_helper.h
  2662. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Allocate buffer in ctor of DownloadCommand.
  2664. * src/DownloadCommand.cc
  2665. * src/DownloadCommand.h
  2666. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Removed DiskAdaptor::onDownloadComplete()
  2668. * src/DirectDiskAdaptor.cc
  2669. * src/DirectDiskAdaptor.h
  2670. * src/DiskAdaptor.h
  2671. * src/MultiDiskAdaptor.cc
  2672. * src/MultiDiskAdaptor.h
  2673. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. Committed missing BtStopDownloadCommand.{cc,h}
  2675. * src/BtStopDownloadCommand.cc
  2676. * src/BtStopDownloadCommand.h
  2677. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2679. download if the download speed is 0 and the number of seeder is 0
  2680. in consecutive SEC seconds. By default, this function is disabled.
  2681. * src/BtSetup.cc
  2682. * src/Makefile.am
  2683. * src/OptionHandlerFactory.cc
  2684. * src/prefs.cc
  2685. * src/prefs.h
  2686. * src/usage_text.h
  2687. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Removed the call to DiskAdaptor::onDownloadComplete() from
  2689. BtCheckIntegrityEntry and DefaultPieceStorage.
  2690. * src/BtCheckIntegrityEntry.cc
  2691. * src/DefaultPieceStorage.cc
  2692. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Commented out throw statements when number of piece is 0 to
  2694. download 0 length torrent.
  2695. * src/bittorrent_helper.cc
  2696. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Call RequestGroup::createNextCommandWithAdj() from
  2698. BtFileAllocationEntry if at least one FileEntry has URI. The
  2699. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2700. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2701. * src/BtFileAllocationEntry.cc
  2702. * src/FileEntry.h
  2703. * src/RequestGroup.cc
  2704. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Generate peer ID after SimpleRandomizer is initialized.
  2706. * src/main.cc
  2707. * src/option_processing.cc
  2708. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Removed unused method argument.
  2710. * src/CreateRequestCommand.cc
  2711. * src/RequestGroup.cc
  2712. * src/RequestGroup.h
  2713. * src/RequestGroupMan.cc
  2714. * src/TrackerWatcherCommand.cc
  2715. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Made URI reusing function work.
  2717. * src/CreateRequestCommand.cc
  2718. * src/FileEntry.cc
  2719. * src/FileEntry.h
  2720. * test/FileEntryTest.cc
  2721. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Add formerly fastest PeerStat's sessionDownloadLength to new
  2723. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2724. bytes in a session.
  2725. * src/PeerStat.cc
  2726. * src/SegmentMan.cc
  2727. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. If pipelining is enabled, we can always pool socket.
  2729. * src/HttpDownloadCommand.cc
  2730. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. In a single file download, file size becomes known just after
  2732. downloading, set total length to FileEntry object when download
  2733. completed.
  2734. * src/DownloadCommand.cc
  2735. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Use std::vector::reserve() for fileEntries and pieceHashes in
  2737. bittorrent_helper
  2738. * src/bittorrent_helper.cc
  2739. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2741. Removed hidden option PREF_RESET_URI.
  2742. * src/AbstractCommand.cc
  2743. * src/OptionHandlerFactory.cc
  2744. * src/prefs.cc
  2745. * src/prefs.h
  2746. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Removed unused variable/function.
  2748. * src/PeerStat.h
  2749. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Show first URL in Download Results if file path is not available.
  2751. * src/FileEntry.h
  2752. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Throw exception if file path doesn't exist in FTP URL.
  2754. * src/InitiateConnectionCommandFactory.cc
  2755. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2757. * src/BitfieldMan.cc
  2758. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2760. of PeerStat in SegmentMan. peerStats is used for calculating
  2761. download speed. Therefore all active PeerStats should be in
  2762. there. Another one is _fastestPeerStats and it only contains
  2763. fastest PeerStat for each hostname/protocol pair. They are used
  2764. for updating ServerStat.
  2765. * src/DownloadCommand.cc
  2766. * src/Request.h
  2767. * src/RequestGroupMan.cc
  2768. * src/SegmentMan.cc
  2769. * src/SegmentMan.h
  2770. * test/SegmentManTest.cc
  2771. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Try all available addresses returned by DNS until it gets
  2773. connected in HTTP(S)/FTP download
  2774. * src/AbstractCommand.cc
  2775. * src/AbstractCommand.h
  2776. * src/AbstractProxyRequestCommand.cc
  2777. * src/AbstractProxyRequestCommand.h
  2778. * src/DNSCache.h
  2779. * src/DownloadEngine.cc
  2780. * src/DownloadEngine.h
  2781. * src/FtpInitiateConnectionCommand.cc
  2782. * src/FtpInitiateConnectionCommand.h
  2783. * src/FtpNegotiationCommand.cc
  2784. * src/FtpNegotiationCommand.h
  2785. * src/HttpInitiateConnectionCommand.cc
  2786. * src/HttpInitiateConnectionCommand.h
  2787. * src/HttpRequestCommand.cc
  2788. * src/HttpRequestCommand.h
  2789. * src/InitiateConnectionCommand.cc
  2790. * src/InitiateConnectionCommand.h
  2791. * test/DNSCacheTest.cc
  2792. * test/Makefile.am
  2793. * test/SimpleDNSCacheTest.cc
  2794. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Updated doc
  2796. * src/download_helper.cc
  2797. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Refactored fieldMan ctor.
  2799. * src/BitfieldMan.cc
  2800. * src/BitfieldMan.h
  2801. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Don't print "No files to download." message if -S is given.
  2803. * src/main.cc
  2804. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Set referer and method to newly created Request object.
  2806. * src/CreateRequestCommand.cc
  2807. * src/FileEntry.cc
  2808. * src/FileEntry.h
  2809. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2811. * src/AbstractCommand.cc
  2812. * src/AbstractCommand.h
  2813. * src/CreateRequestCommand.cc
  2814. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Get proxy download working
  2816. * src/AbstractProxyRequestCommand.cc
  2817. * src/AbstractProxyRequestCommand.h
  2818. * src/AbstractProxyResponseCommand.cc
  2819. * src/AbstractProxyResponseCommand.h
  2820. * src/FtpInitiateConnectionCommand.cc
  2821. * src/FtpTunnelRequestCommand.cc
  2822. * src/FtpTunnelRequestCommand.h
  2823. * src/FtpTunnelResponseCommand.cc
  2824. * src/FtpTunnelResponseCommand.h
  2825. * src/HttpInitiateConnectionCommand.cc
  2826. * src/HttpProxyRequestCommand.cc
  2827. * src/HttpProxyRequestCommand.h
  2828. * src/HttpProxyResponseCommand.cc
  2829. * src/HttpProxyResponseCommand.h
  2830. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Use SegmentMan::getSegment(cuid) for single file download.
  2832. * src/AbstractCommand.cc
  2833. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Fixed bufSize calculation
  2835. * src/DownloadCommand.cc
  2836. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Don't append "/" if base URI ends with "/".
  2838. * src/bittorrent_helper.cc
  2839. * test/url-list-multiFile.torrent
  2840. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. HTTP pipelining is now working. Fixed Segmention fault in
  2842. BitfieldMan's copy ctor.
  2843. * src/AbstractCommand.cc
  2844. * src/BitfieldMan.cc
  2845. * src/BitfieldMan.h
  2846. * src/DownloadCommand.cc
  2847. * src/HttpDownloadCommand.cc
  2848. * src/HttpRequest.cc
  2849. * src/SegmentMan.cc
  2850. * src/SegmentMan.h
  2851. * test/BitfieldManTest.cc
  2852. * test/SegmentManTest.cc
  2853. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Removed ServerHost. Same functionality is implemented using
  2855. FileEntry's in-flight Request objects.
  2856. * src/AbstractCommand.cc
  2857. * src/BtDependency.cc
  2858. * src/CreateRequestCommand.cc
  2859. * src/FileEntry.cc
  2860. * src/FileEntry.h
  2861. * src/FtpNegotiationCommand.cc
  2862. * src/HttpResponseCommand.cc
  2863. * src/Makefile.am
  2864. * src/Metalink2RequestGroup.cc
  2865. * src/RequestGroup.cc
  2866. * src/RequestGroup.h
  2867. * src/ServerHost.cc: Removed
  2868. * src/ServerHost.h: Removed
  2869. * test/BtDependencyTest.cc
  2870. * test/FileEntryTest.cc
  2871. * test/RequestGroupTest.cc
  2872. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Rewritten PeerStat handling. In the previous implementation,
  2874. faster command tries to find slower command. In this new
  2875. implementation, slower command tries to find faster command.
  2876. PeerStat is now created in each HTTP/FTP request to get download
  2877. rate correctly. If the download range is small, the download rate
  2878. tends to small and this will occur at the later stage of download.
  2879. * src/AbstractCommand.cc
  2880. * src/DownloadCommand.cc
  2881. * src/FileEntry.cc
  2882. * src/FileEntry.h
  2883. * src/Request.cc
  2884. * src/Request.h
  2885. * src/RequestGroup.h
  2886. * src/RequestGroupMan.cc
  2887. * src/SegmentMan.cc
  2888. * src/SegmentMan.h
  2889. * test/SegmentManTest.cc
  2890. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Removed _uris from RequestGroup. All functions that refer to _uris
  2892. were moved to FileEntry. Exit status code are now defined in
  2893. DownloadResultCode.h.
  2894. * src/AbstractCommand.cc
  2895. * src/AdaptiveURISelector.cc
  2896. * src/AdaptiveURISelector.h
  2897. * src/AutoSaveCommand.cc
  2898. * src/BtPostDownloadHandler.cc
  2899. * src/CheckIntegrityDispatcherCommand.cc
  2900. * src/CookieStorage.cc
  2901. * src/DHTAutoSaveCommand.cc
  2902. * src/DHTBucketRefreshCommand.cc
  2903. * src/DHTEntryPointNameResolveCommand.cc
  2904. * src/DHTInteractionCommand.cc
  2905. * src/DHTPeerAnnounceCommand.cc
  2906. * src/DHTTokenUpdateCommand.cc
  2907. * src/DlAbortEx.h
  2908. * src/DlRetryEx.h
  2909. * src/DownloadCommand.cc
  2910. * src/DownloadContext.h
  2911. * src/DownloadFailureException.h
  2912. * src/DownloadResult.h
  2913. * src/DownloadResultCode.h
  2914. * src/FeedbackURISelector.cc
  2915. * src/FeedbackURISelector.h
  2916. * src/FileEntry.cc
  2917. * src/FileEntry.h
  2918. * src/FtpNegotiationCommand.cc
  2919. * src/HttpListenCommand.cc
  2920. * src/HttpResponseCommand.cc
  2921. * src/HttpServerResponseCommand.cc
  2922. * src/HttpSkipResponseCommand.cc
  2923. * src/InOrderURISelector.cc
  2924. * src/InOrderURISelector.h
  2925. * src/Makefile.am
  2926. * src/Makefile.in
  2927. * src/Metalink2RequestGroup.cc
  2928. * src/MultiUrlRequestInfo.cc
  2929. * src/MultiUrlRequestInfo.h
  2930. * src/OptionHandlerFactory.cc
  2931. * src/PeerListenCommand.cc
  2932. * src/RecoverableException.h
  2933. * src/RequestGroup.cc
  2934. * src/RequestGroup.h
  2935. * src/RequestGroupMan.cc
  2936. * src/RequestGroupMan.h
  2937. * src/TimedHaltCommand.cc
  2938. * src/TrackerWatcherCommand.cc
  2939. * src/URIResult.cc
  2940. * src/URIResult.h
  2941. * src/URISelector.h
  2942. * src/XmlRpcMethodImpl.cc
  2943. * src/bittorrent_helper.cc
  2944. * src/bittorrent_helper.h
  2945. * src/download_helper.cc
  2946. * src/main.cc
  2947. * src/option_processing.cc
  2948. * test/BtDependencyTest.cc
  2949. * test/BtPostDownloadHandlerTest.cc
  2950. * test/CookieStorageTest.cc
  2951. * test/DefaultBtMessageDispatcherTest.cc
  2952. * test/DownloadHandlerFactoryTest.cc
  2953. * test/DownloadHelperTest.cc
  2954. * test/FeedbackURISelectorTest.cc
  2955. * test/FileEntryTest.cc
  2956. * test/InOrderURISelectorTest.cc
  2957. * test/Metalink2RequestGroupTest.cc
  2958. * test/MetalinkPostDownloadHandlerTest.cc
  2959. * test/RequestGroupManTest.cc
  2960. * test/RequestGroupTest.cc
  2961. * test/XmlRpcMethodTest.cc
  2962. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Removed MockBtContext.h
  2964. * test/Makefile.am
  2965. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Removed _currentRequest from StreamCheckIntegrityEntry and
  2967. StreamFileAllocationEntry.
  2968. * src/AbstractCommand.cc
  2969. * src/HttpResponseCommand.cc
  2970. * src/RequestGroup.cc
  2971. * src/StreamCheckIntegrityEntry.cc
  2972. * src/StreamCheckIntegrityEntry.h
  2973. * src/StreamFileAllocationEntry.cc
  2974. * src/StreamFileAllocationEntry.h
  2975. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Rewritten DownloadContext and removed SingleFileDownloadContext
  2977. and BtContext and its derived classes. BitTorrent specific
  2978. attributes are now set by DownloadContext::setAttribute() with key
  2979. bittorrent::BITTORRENT.
  2980. * src/AbstractBtMessage.cc
  2981. * src/AbstractBtMessage.h
  2982. * src/AbstractCommand.cc
  2983. * src/AbstractCommand.h
  2984. * src/AbstractProxyRequestCommand.cc
  2985. * src/AbstractProxyResponseCommand.cc
  2986. * src/ActivePeerConnectionCommand.cc
  2987. * src/ActivePeerConnectionCommand.h
  2988. * src/AnnounceList.cc
  2989. * src/BtCheckIntegrityEntry.cc
  2990. * src/BtConstants.h
  2991. * src/BtContext.h: Removed
  2992. * src/BtDependency.cc
  2993. * src/BtExtendedMessage.cc
  2994. * src/BtPieceMessage.cc
  2995. * src/BtPieceMessage.h
  2996. * src/BtPostDownloadHandler.cc
  2997. * src/BtRegistry.cc
  2998. * src/BtRegistry.h
  2999. * src/BtSetup.cc
  3000. * src/CheckIntegrityCommand.cc
  3001. * src/CheckIntegrityEntry.cc
  3002. * src/ChecksumCheckIntegrityEntry.cc
  3003. * src/ConsoleStatCalc.cc
  3004. * src/ContentTypeRequestGroupCriteria.cc
  3005. * src/DHTGetPeersCommand.cc
  3006. * src/DHTGetPeersCommand.h
  3007. * src/DHTPeerLookupTask.cc
  3008. * src/DHTPeerLookupTask.h
  3009. * src/DHTTaskFactory.h
  3010. * src/DHTTaskFactoryImpl.cc
  3011. * src/DHTTaskFactoryImpl.h
  3012. * src/DefaultBtAnnounce.cc
  3013. * src/DefaultBtAnnounce.h
  3014. * src/DefaultBtContext.cc: Removed
  3015. * src/DefaultBtContext.h: Removed
  3016. * src/DefaultBtInteractive.cc
  3017. * src/DefaultBtInteractive.h
  3018. * src/DefaultBtMessageDispatcher.cc
  3019. * src/DefaultBtMessageDispatcher.h
  3020. * src/DefaultBtMessageFactory.cc
  3021. * src/DefaultBtMessageFactory.h
  3022. * src/DefaultBtMessageReceiver.cc
  3023. * src/DefaultBtMessageReceiver.h
  3024. * src/DefaultBtProgressInfoFile.cc
  3025. * src/DefaultBtRequestFactory.cc
  3026. * src/DefaultBtRequestFactory.h
  3027. * src/DefaultExtensionMessageFactory.cc
  3028. * src/DefaultExtensionMessageFactory.h
  3029. * src/DefaultPeerStorage.cc
  3030. * src/DefaultPeerStorage.h
  3031. * src/DefaultPieceStorage.cc
  3032. * src/DefaultSegmentManFactory.cc
  3033. * src/DiskAdaptor.cc
  3034. * src/DiskAdaptor.h
  3035. * src/DownloadContext.cc
  3036. * src/DownloadContext.h
  3037. * src/DownloadEngine.cc
  3038. * src/DownloadEngineFactory.cc
  3039. * src/DownloadHandler.cc
  3040. * src/DownloadResult.h
  3041. * src/FileAllocationCommand.cc
  3042. * src/FileAllocationDispatcherCommand.cc
  3043. * src/FileAllocationEntry.cc
  3044. * src/FileEntry.h
  3045. * src/FillRequestGroupCommand.cc
  3046. * src/FtpDownloadCommand.cc
  3047. * src/FtpFinishDownloadCommand.cc
  3048. * src/FtpInitiateConnectionCommand.cc
  3049. * src/FtpNegotiationCommand.cc
  3050. * src/FtpTunnelRequestCommand.cc
  3051. * src/FtpTunnelResponseCommand.cc
  3052. * src/HandshakeExtensionMessage.cc
  3053. * src/HandshakeExtensionMessage.h
  3054. * src/HaveEraseCommand.cc
  3055. * src/HttpDownloadCommand.cc
  3056. * src/HttpInitiateConnectionCommand.cc
  3057. * src/HttpProxyRequestCommand.cc
  3058. * src/HttpProxyResponseCommand.cc
  3059. * src/HttpRequest.cc
  3060. * src/HttpRequest.h
  3061. * src/HttpRequestCommand.cc
  3062. * src/HttpResponseCommand.cc
  3063. * src/HttpServerBodyCommand.cc
  3064. * src/HttpServerCommand.cc
  3065. * src/HttpSkipResponseCommand.cc
  3066. * src/InitiateConnectionCommandFactory.cc
  3067. * src/InitiatorMSEHandshakeCommand.cc
  3068. * src/InitiatorMSEHandshakeCommand.h
  3069. * src/IteratableChecksumValidator.cc
  3070. * src/IteratableChecksumValidator.h
  3071. * src/IteratableChunkChecksumValidator.cc
  3072. * src/MSEHandshake.cc
  3073. * src/MSEHandshake.h
  3074. * src/Makefile.am
  3075. * src/Makefile.in
  3076. * src/Metalink2RequestGroup.cc
  3077. * src/MetalinkPostDownloadHandler.cc
  3078. * src/MultiDiskAdaptor.cc
  3079. * src/MultiDiskAdaptor.h
  3080. * src/MultiFileAllocationIterator.cc
  3081. * src/MultiUrlRequestInfo.cc
  3082. * src/PeerChokeCommand.cc
  3083. * src/PeerChokeCommand.h
  3084. * src/PeerInitiateConnectionCommand.cc
  3085. * src/PeerInitiateConnectionCommand.h
  3086. * src/PeerInteractionCommand.cc
  3087. * src/PeerInteractionCommand.h
  3088. * src/PeerReceiveHandshakeCommand.cc
  3089. * src/PieceHashCheckIntegrityEntry.cc
  3090. * src/RealtimeCommand.cc
  3091. * src/ReceiverMSEHandshakeCommand.cc
  3092. * src/RequestGroup.cc
  3093. * src/RequestGroup.h
  3094. * src/RequestGroupEntry.cc
  3095. * src/RequestGroupMan.cc
  3096. * src/SeedCheckCommand.cc
  3097. * src/SeedCheckCommand.h
  3098. * src/SegmentMan.cc
  3099. * src/ShareRatioSeedCriteria.h
  3100. * src/SingleFileDownloadContext.cc: Removed
  3101. * src/SingleFileDownloadContext.h: Removed
  3102. * src/SleepCommand.cc
  3103. * src/StreamCheckIntegrityEntry.cc
  3104. * src/TrackerWatcherCommand.cc
  3105. * src/TrackerWatcherCommand.h
  3106. * src/UnknownLengthPieceStorage.cc
  3107. * src/Util.cc
  3108. * src/Util.h
  3109. * src/XmlRpcMethodImpl.cc
  3110. * src/bittorrent_helper.cc
  3111. * src/bittorrent_helper.h
  3112. * src/download_helper.cc
  3113. * src/main.cc
  3114. * src/option_processing.cc
  3115. * test/BitfieldManTest.cc
  3116. * test/BittorrentHelperTest.cc
  3117. * test/BtCancelMessageTest.cc
  3118. * test/BtChokeMessageTest.cc
  3119. * test/BtDependencyTest.cc
  3120. * test/BtPieceMessageTest.cc
  3121. * test/BtPostDownloadHandlerTest.cc
  3122. * test/BtRegistryTest.cc
  3123. * test/BtRejectMessageTest.cc
  3124. * test/BtRequestMessageTest.cc
  3125. * test/DHTPeerAnnounceStorageTest.cc
  3126. * test/DefaultBtAnnounceTest.cc
  3127. * test/DefaultBtContextTest.cc: Removed
  3128. * test/DefaultBtMessageDispatcherTest.cc
  3129. * test/DefaultBtMessageFactoryTest.cc
  3130. * test/DefaultBtProgressInfoFileTest.cc
  3131. * test/DefaultBtRequestFactoryTest.cc
  3132. * test/DefaultExtensionMessageFactoryTest.cc
  3133. * test/DefaultPeerStorageTest.cc
  3134. * test/DefaultPieceStorageTest.cc
  3135. * test/DirectDiskAdaptorTest.cc
  3136. * test/DownloadContextTest.cc
  3137. * test/DownloadHandlerFactoryTest.cc
  3138. * test/DownloadHelperTest.cc
  3139. * test/HandshakeExtensionMessageTest.cc
  3140. * test/HttpRequestTest.cc
  3141. * test/HttpResponseTest.cc
  3142. * test/IteratableChecksumValidatorTest.cc
  3143. * test/IteratableChunkChecksumValidatorTest.cc
  3144. * test/MSEHandshakeTest.cc
  3145. * test/Makefile.am
  3146. * test/Makefile.in
  3147. * test/Metalink2RequestGroupTest.cc
  3148. * test/MetalinkPostDownloadHandlerTest.cc
  3149. * test/MockBtContext.h: Removed
  3150. * test/MockDHTTaskFactory.h
  3151. * test/MockDownloadContext.h: Removed
  3152. * test/MockPieceStorage.h
  3153. * test/MultiDiskAdaptorTest.cc
  3154. * test/MultiFileAllocationIteratorTest.cc
  3155. * test/RequestGroupManTest.cc
  3156. * test/RequestGroupTest.cc
  3157. * test/SegmentManTest.cc
  3158. * test/ShareRatioSeedCriteriaTest.cc
  3159. * test/SingleFileDownloadContextTest.cc: Removed
  3160. * test/UtilTest.cc
  3161. * test/XmlRpcMethodTest.cc
  3162. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Added experimental support of WEB-Seeding for multi-file torrent.
  3164. Due to fundamental changes in file handling in HTTP/FTP code, many
  3165. functions are not working: PeerStat, ServerHost, proxy..etc
  3166. * src/AbstractCommand.cc
  3167. * src/AbstractCommand.h
  3168. * src/BitfieldMan.cc
  3169. * src/BitfieldMan.h
  3170. * src/CreateRequestCommand.cc
  3171. * src/CreateRequestCommand.h
  3172. * src/DefaultPieceStorage.cc
  3173. * src/DefaultPieceStorage.h
  3174. * src/DownloadCommand.cc
  3175. * src/DownloadCommand.h
  3176. * src/DownloadContext.cc
  3177. * src/DownloadContext.h
  3178. * src/FileEntry.cc
  3179. * src/FileEntry.h
  3180. * src/FtpDownloadCommand.cc
  3181. * src/FtpDownloadCommand.h
  3182. * src/FtpFinishDownloadCommand.cc
  3183. * src/FtpFinishDownloadCommand.h
  3184. * src/FtpInitiateConnectionCommand.cc
  3185. * src/FtpInitiateConnectionCommand.h
  3186. * src/FtpNegotiationCommand.cc
  3187. * src/FtpNegotiationCommand.h
  3188. * src/FtpTunnelResponseCommand.cc
  3189. * src/HttpDownloadCommand.cc
  3190. * src/HttpDownloadCommand.h
  3191. * src/HttpInitiateConnectionCommand.cc
  3192. * src/HttpInitiateConnectionCommand.h
  3193. * src/HttpProxyResponseCommand.cc
  3194. * src/HttpRequest.cc
  3195. * src/HttpRequest.h
  3196. * src/HttpRequestCommand.cc
  3197. * src/HttpRequestCommand.h
  3198. * src/HttpResponseCommand.cc
  3199. * src/HttpResponseCommand.h
  3200. * src/HttpSkipResponseCommand.cc
  3201. * src/HttpSkipResponseCommand.h
  3202. * src/InitiateConnectionCommand.cc
  3203. * src/InitiateConnectionCommand.h
  3204. * src/InitiateConnectionCommandFactory.cc
  3205. * src/InitiateConnectionCommandFactory.h
  3206. * src/Makefile.am
  3207. * src/PieceStorage.h
  3208. * src/RequestGroup.cc
  3209. * src/RequestGroup.h
  3210. * src/RequestGroupMan.cc
  3211. * src/SegmentMan.cc
  3212. * src/SegmentMan.h
  3213. * src/SingleFileDownloadContext.h
  3214. * src/StreamFileAllocationEntry.cc
  3215. * src/TrackerWatcherCommand.cc
  3216. * src/UnknownLengthPieceStorage.cc
  3217. * src/UnknownLengthPieceStorage.h
  3218. * src/array_fun.h
  3219. * src/bitfield.h
  3220. * src/download_helper.cc
  3221. * test/DownloadContextTest.cc
  3222. * test/Makefile.am
  3223. * test/MockDownloadContext.h
  3224. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Added tellWaiting XML-RPC method.
  3226. * src/SingleFileDownloadContext.cc
  3227. * src/XmlRpcMethodFactory.cc
  3228. * src/XmlRpcMethodImpl.cc
  3229. * src/XmlRpcMethodImpl.h
  3230. * test/XmlRpcMethodTest.cc
  3231. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Updated CookieStorageTest
  3233. * test/CookieStorageTest.cc
  3234. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3236. handle excepion inside these functions.
  3237. * src/LibgnutlsTLSContext.cc
  3238. * src/LibgnutlsTLSContext.h
  3239. * src/LibsslTLSContext.cc
  3240. * src/LibsslTLSContext.h
  3241. * src/MultiUrlRequestInfo.cc
  3242. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Added comment
  3244. * src/RequestGroup.cc
  3245. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. In CookieStorage::load() and saveNsFormat(), handle exception
  3247. inside the functions. When saving Cookies, first write temporary
  3248. file and after successful writes, then renames it to final
  3249. destination.
  3250. * src/CookieStorage.cc
  3251. * src/CookieStorage.h
  3252. * src/MultiUrlRequestInfo.cc
  3253. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. The default value of --dir option is the absolute path to the
  3255. current directory. If getcwd() is failed, then it is ".", which is
  3256. the same value with old implementation. This change is necessary
  3257. because after daemon() call, the current working directory is
  3258. changed to /.
  3259. * src/File.cc
  3260. * src/File.h
  3261. * src/OptionHandlerFactory.cc
  3262. * src/option_processing.cc
  3263. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Call daemon() with arguments(0,0), which means daemon() changes
  3265. current working directory to / and redirects stdin, stdout and
  3266. stderr to /dev/null.
  3267. * src/option_processing.cc
  3268. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Small performance optimizations.
  3270. * src/RequestGroupMan.cc
  3271. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3273. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3274. * src/RequestGroupMan.cc
  3275. * src/RequestGroupMan.h
  3276. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3278. setNoWiat(true) if newly created command calls
  3279. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3280. * src/HttpListenCommand.cc
  3281. * src/HttpServerBodyCommand.cc
  3282. * src/HttpServerCommand.cc
  3283. * src/HttpServerResponseCommand.cc
  3284. * src/InitiateConnectionCommand.cc
  3285. * src/RequestGroup.cc
  3286. * src/StreamFileAllocationEntry.cc
  3287. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Removed include vector
  3289. * src/BtRegistry.h
  3290. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Rewritten BtRegistry
  3292. * src/BtRegistry.cc
  3293. * src/BtRegistry.h
  3294. * src/BtSetup.cc
  3295. * src/ConsoleStatCalc.cc
  3296. * src/PeerInteractionCommand.cc
  3297. * src/PeerReceiveHandshakeCommand.cc
  3298. * src/ReceiverMSEHandshakeCommand.cc
  3299. * src/RequestGroup.cc
  3300. * src/XmlRpcMethodImpl.cc
  3301. * test/BtRegistryTest.cc
  3302. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3304. * src/DefaultBtProgressInfoFile.cc
  3305. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Throw an exception if position is less than 0.
  3307. * src/XmlRpcMethodImpl.cc
  3308. * test/XmlRpcMethodTest.cc
  3309. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3310. Use writeFilePath() in ConsoleStatCalc.cc
  3311. * src/ConsoleStatCalc.cc
  3312. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Receive the return value as const reference from
  3314. DownloadContext::getFileEntries().
  3315. * src/DefaultPieceStorage.cc
  3316. * src/RequestGroupMan.cc
  3317. * src/XmlRpcMethodImpl.cc
  3318. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3319. DownloadContext now has _fileEntries so that
  3320. DownloadContext::getFileEntries() can returns its const reference.
  3321. * src/DefaultBtContext.cc
  3322. * src/DefaultBtContext.h
  3323. * src/DownloadContext.cc
  3324. * src/DownloadContext.h
  3325. * src/SingleFileDownloadContext.cc
  3326. * src/SingleFileDownloadContext.h
  3327. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3329. writeFilePath() function template from RequestGroupMan.cc to
  3330. FileEntry.h
  3331. * src/FileEntry.h
  3332. * src/RequestGroupMan.cc
  3333. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Documented 'position' parameter is starting from 0 in man page.
  3335. * doc/aria2c.1.txt
  3336. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Updated doc.
  3338. * src/MSEHandshake.cc
  3339. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Removed _acceptFeatures and its accessor functions from
  3341. RequestGroup since they are not used practically.
  3342. * src/HttpRequestCommand.cc
  3343. * src/RequestGroup.cc
  3344. * src/RequestGroup.h
  3345. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Removed member _maxTries from RequestGroup class to avoid
  3347. duplicate option value. Those classes who refer this variable
  3348. should use option value of PREF_MAX_TRIES directly.
  3349. * src/AbstractCommand.cc
  3350. * src/RequestGroup.cc
  3351. * src/RequestGroup.h
  3352. * src/TrackerWatcherCommand.cc
  3353. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. * Release 1.4.1
  3355. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Fixed compiler warnings on netbsd
  3357. * src/DHTConnectionImpl.cc
  3358. * src/PeerListenCommand.cc
  3359. * src/PeerSessionResource.cc
  3360. * src/SegmentMan.cc
  3361. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Updated Ukrainian translation. Thanks to all translators.
  3363. * po/uk.po
  3364. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Bump up version number to 1.4.1.
  3366. * configure.ac
  3367. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Added unit tests for strjoin, strconcat and strappend.
  3369. * test/a2functionalTest.cc
  3370. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Rewritten strconcat and strappend using operator+ instead of
  3372. append().
  3373. * src/a2functional.h
  3374. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3376. is enabled.
  3377. * src/Makefile.am
  3378. * test/Makefile.am
  3379. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Added countSeeder() function which counts seeder in the given
  3381. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3382. * src/ConsoleStatCalc.cc
  3383. * src/Peer.h
  3384. * src/XmlRpcMethodImpl.cc
  3385. * test/PeerTest.cc
  3386. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Documented missing seeder in getPeers xml-rpc method.
  3388. Documented uploadLength and numSeeders.
  3389. * doc/aria2c.1.txt
  3390. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Added uploadLength and numSeeders to the response of tellStatus
  3392. xml-rpc method. Assert that PeerStorage instance is not null
  3393. instead of checking if statement. It should be non-null in this
  3394. context.
  3395. * src/XmlRpcMethodImpl.cc
  3396. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3398. * src/XmlRpcResponse.cc
  3399. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3400. Avoid intermediate object during string concatenation.
  3401. * src/HttpRequest.cc
  3402. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Added strjoin function template. Use it in pathJoin()
  3404. * src/Util.h
  3405. * src/a2functional.h
  3406. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Avoid intermediate object during string concatenation. Replaced
  3408. post-increment unary operator with pre-increment one in for loop.
  3409. * src/AdaptiveURISelector.cc
  3410. * src/AnnounceList.cc
  3411. * src/AuthConfig.h
  3412. * src/BtBitfieldMessage.cc
  3413. * src/BtExtendedMessage.cc
  3414. * src/BtHandshakeMessage.cc
  3415. * src/BtPieceMessage.cc
  3416. * src/BtPortMessage.cc
  3417. * src/Cookie.cc
  3418. * src/DHTAnnouncePeerMessage.cc
  3419. * src/DHTAutoSaveCommand.cc
  3420. * src/DHTGetPeersReplyMessage.cc
  3421. * src/DHTNode.cc
  3422. * src/DHTQueryMessage.cc
  3423. * src/DHTResponseMessage.cc
  3424. * src/DHTUnknownMessage.cc
  3425. * src/DefaultBtAnnounce.cc
  3426. * src/DefaultBtContext.cc
  3427. * src/DefaultBtInteractive.cc
  3428. * src/DefaultBtProgressInfoFile.cc
  3429. * src/DefaultPeerStorage.cc
  3430. * src/DownloadEngine.cc
  3431. * src/FeatureConfig.cc
  3432. * src/File.cc
  3433. * src/FtpConnection.cc
  3434. * src/FtpNegotiationCommand.cc
  3435. * src/HandshakeExtensionMessage.cc
  3436. * src/HttpConnection.cc
  3437. * src/HttpRequest.cc
  3438. * src/HttpResponseCommand.cc
  3439. * src/HttpServer.cc
  3440. * src/IndexBtMessage.cc
  3441. * src/Metalink2RequestGroup.cc
  3442. * src/OptionHandlerImpl.h
  3443. * src/PStringBuildVisitor.cc
  3444. * src/Peer.cc
  3445. * src/PeerListenCommand.cc
  3446. * src/Piece.cc
  3447. * src/RangeBtMessage.cc
  3448. * src/Request.cc
  3449. * src/Request.h
  3450. * src/RequestGroup.cc
  3451. * src/RequestGroupMan.cc
  3452. * src/ServerStat.cc
  3453. * src/ServerStatMan.cc
  3454. * src/UTPexExtensionMessage.cc
  3455. * src/Util.cc
  3456. * src/a2functional.h
  3457. * src/download_helper.cc
  3458. * src/messageDigest.cc
  3459. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Unchoke a peer randomly at first and second choke round in seed
  3461. state.
  3462. * src/BtSeederStateChoke.cc
  3463. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3464. Added (sock_t) to quiet compiler warnings in MinGW
  3465. * src/SocketCore.cc
  3466. * src/SocketCore.h
  3467. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3469. * src/EpollEventPoll.h
  3470. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3471. Added fork() emulation using CreateProcess() in MinGW
  3472. * src/RequestGroupMan.cc
  3473. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. * Release 1.4.0
  3475. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Added utf8.torrent to EXTRA_DIST
  3477. * test/Makefile.am
  3478. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Fixed docs of aria2.addMetalink xml-rpc method.
  3480. * doc/aria2c.1.txt
  3481. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Added Slovak translation. Updated Ukrainian and Brazilian
  3483. Portuguese translation. Thanks to all translators.
  3484. * po/sk.po
  3485. * po/uk.po
  3486. * po/pt_BR.po
  3487. * po/LINGUAS
  3488. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Added test case for XmlRpcProcessor to fail to parse malformed
  3490. document.
  3491. * test/XmlRpcRequestProcessorTest.cc
  3492. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Removed *.gmo files in po because they are generated on 'make
  3494. dist'
  3495. * po/*.gmo
  3496. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Documented max-concurrent-downloads of changeGlobalOption method
  3498. in man page.
  3499. * doc/aria2c.1.txt
  3500. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Added max-concurrent-downloads option to changeGlobalOption
  3502. xml-rpc method. Rewritten loop conditional in
  3503. RequestGroupMan::fillRequestGroupFromReserver().
  3504. * src/RequestGroupMan.cc
  3505. * src/RequestGroupMan.h
  3506. * src/XmlRpcMethod.cc
  3507. * src/XmlRpcMethodImpl.cc
  3508. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3509. Documented position parameter in man page.
  3510. * doc/aria2c.1.txt
  3511. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Added 'position' parameter to addUri, addTorrent and addMetalink
  3513. xml-rpc method.
  3514. * src/RequestGroupMan.cc
  3515. * src/RequestGroupMan.h
  3516. * src/XmlRpcMethodImpl.cc
  3517. * test/XmlRpcMethodTest.cc
  3518. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Removed Peer.cc from compile source list when --disable-bittorrent
  3520. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3521. takes Peer.
  3522. * src/DefaultPieceStorage.cc
  3523. * src/DefaultPieceStorage.h
  3524. * src/Makefile.am
  3525. * src/PieceStorage.h
  3526. * src/UnknownLengthPieceStorage.cc
  3527. * src/UnknownLengthPieceStorage.h
  3528. * test/MockPieceStorage.h
  3529. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3530. Implemented getter methods in header files to give them more
  3531. chance of optimization.
  3532. Return const reference for SharadHandle if possible.
  3533. * src/AbstractAuthResolver.cc
  3534. * src/AbstractAuthResolver.h
  3535. * src/AbstractBtMessage.cc
  3536. * src/AbstractBtMessage.h
  3537. * src/AbstractSingleDiskAdaptor.cc
  3538. * src/AbstractSingleDiskAdaptor.h
  3539. * src/AsyncNameResolver.cc
  3540. * src/AsyncNameResolver.h
  3541. * src/BNode.cc
  3542. * src/BNode.h
  3543. * src/BitfieldMan.cc
  3544. * src/BitfieldMan.h
  3545. * src/BtAbortOutstandingRequestEvent.h
  3546. * src/BtExtendedMessage.cc
  3547. * src/BtExtendedMessage.h
  3548. * src/BtSeederStateChoke.cc
  3549. * src/BtSeederStateChoke.h
  3550. * src/Cookie.cc
  3551. * src/Cookie.h
  3552. * src/DHTBucket.cc
  3553. * src/DHTBucket.h
  3554. * src/DHTConnectionImpl.cc
  3555. * src/DHTConnectionImpl.h
  3556. * src/DHTFindNodeReplyMessage.cc
  3557. * src/DHTFindNodeReplyMessage.h
  3558. * src/DHTGetPeersReplyMessage.cc
  3559. * src/DHTGetPeersReplyMessage.h
  3560. * src/DHTInteractionCommand.cc
  3561. * src/DHTMessage.cc
  3562. * src/DHTMessage.h
  3563. * src/DHTMessageDispatcherImpl.cc
  3564. * src/DHTMessageEntry.cc
  3565. * src/DHTMessageReceiver.cc
  3566. * src/DHTMessageReceiver.h
  3567. * src/DHTMessageTrackerEntry.cc
  3568. * src/DHTMessageTrackerEntry.h
  3569. * src/DHTPeerAnnounceEntry.cc
  3570. * src/DHTPeerAnnounceEntry.h
  3571. * src/DHTPeerLookupTask.cc
  3572. * src/DHTPeerLookupTask.h
  3573. * src/DHTRoutingTableDeserializer.cc
  3574. * src/DHTRoutingTableDeserializer.h
  3575. * src/DefaultBtAnnounce.cc
  3576. * src/DefaultBtAnnounce.h
  3577. * src/DefaultBtMessageDispatcher.cc
  3578. * src/DefaultBtMessageDispatcher.h
  3579. * src/DefaultBtRequestFactory.cc
  3580. * src/DefaultBtRequestFactory.h
  3581. * src/DiskAdaptor.cc
  3582. * src/DiskAdaptor.h
  3583. * src/DownloadContext.cc
  3584. * src/DownloadContext.h
  3585. * src/DownloadEngine.cc
  3586. * src/DownloadEngine.h
  3587. * src/EpollEventPoll.cc
  3588. * src/EpollEventPoll.h
  3589. * src/FtpConnection.cc
  3590. * src/FtpConnection.h
  3591. * src/HttpConnection.cc
  3592. * src/HttpConnection.h
  3593. * src/HttpHeader.cc
  3594. * src/HttpHeader.h
  3595. * src/HttpRequest.cc
  3596. * src/HttpRequest.h
  3597. * src/HttpResponse.cc
  3598. * src/HttpResponse.h
  3599. * src/LibsslTLSContext.cc
  3600. * src/LibsslTLSContext.h
  3601. * src/MSEHandshake.cc
  3602. * src/MSEHandshake.h
  3603. * src/MetalinkEntry.cc
  3604. * src/MetalinkEntry.h
  3605. * src/MetalinkParserController.cc
  3606. * src/MetalinkParserController.h
  3607. * src/MetalinkParserStateMachine.cc
  3608. * src/MetalinkParserStateMachine.h
  3609. * src/MultiDiskAdaptor.cc
  3610. * src/MultiDiskAdaptor.h
  3611. * src/NetrcAuthResolver.cc
  3612. * src/NetrcAuthResolver.h
  3613. * src/Peer.cc
  3614. * src/Peer.h
  3615. * src/PeerSessionResource.cc
  3616. * src/PeerSessionResource.h
  3617. * src/Piece.cc
  3618. * src/Piece.h
  3619. * src/PieceStatMan.cc
  3620. * src/PieceStatMan.h
  3621. * src/Request.cc
  3622. * src/Request.h
  3623. * src/RequestGroup.cc
  3624. * src/RequestGroup.h
  3625. * src/RequestGroupMan.cc
  3626. * src/RequestGroupMan.h
  3627. * src/RequestSlot.cc
  3628. * src/RequestSlot.h
  3629. * src/SegmentMan.cc
  3630. * src/SegmentMan.h
  3631. * src/SelectEventPoll.cc
  3632. * src/SelectEventPoll.h
  3633. * src/ServerStat.cc
  3634. * src/ServerStat.h
  3635. * src/Signature.cc
  3636. * src/Signature.h
  3637. * src/URIResult.cc
  3638. * src/URIResult.h
  3639. * src/UTPexExtensionMessage.cc
  3640. * src/UTPexExtensionMessage.h
  3641. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Fixed compile error without BitTorrent and Metalink support.
  3643. * src/XmlRpcMethod.cc
  3644. * src/XmlRpcMethodFactory.cc
  3645. * src/XmlRpcMethodImpl.cc
  3646. * src/XmlRpcMethodImpl.h
  3647. * test/XmlRpcMethodTest.cc
  3648. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Rewritten the help message for --allow-overwrite option.
  3650. * doc/aria2c.1.txt
  3651. * src/usage_text.h
  3652. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Fixed typo
  3654. * doc/aria2c.1.txt
  3655. * src/usage_text.h
  3656. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Updated README for 1.4.0 release. Use new table syntax of
  3658. asciidoc.
  3659. * README
  3660. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Documented --xml-rpc-max-request-size option in man page.
  3662. * doc/aria2c.1.txt
  3663. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Moved C_* constants from BtContext to DefaultBtContext.
  3665. * src/BtContext.cc: Removed.
  3666. * src/BtContext.h
  3667. * src/DefaultBtContext.cc
  3668. * src/DefaultBtContext.h
  3669. * src/Makefile.am
  3670. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3672. path key respectively when persing .torrent file.
  3673. * src/BtContext.cc
  3674. * src/BtContext.h
  3675. * src/DefaultBtContext.cc
  3676. * test/DefaultBtContextTest.cc
  3677. * test/utf8.torrent
  3678. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Added --xml-rpc-max-request-size option to limit the size of
  3680. XML-RPC request.
  3681. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Documented XML-RPC API in man page.
  3683. * doc/aria2c.1.txt
  3684. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3686. will break strict-aliasing rules
  3687. * src/PeerConnection.cc
  3688. * test/DHTRoutingTableSerializerTest.cc
  3689. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3691. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3692. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3693. PKG_CHECK_MODULES macro uses latter name.
  3694. * m4/sqlite3.m4
  3695. * src/Makefile.am
  3696. * test/Makefile.am
  3697. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Fixed typo
  3699. * configure.ac
  3700. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3702. presence of libgnutls using pkg-config first. If it fails, fall
  3703. back to old macro libgnutls.m4.
  3704. * configure.ac
  3705. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Use s itself instead of !s.bad()
  3707. * src/CookieStorage.cc
  3708. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Documented --on-download-* option and --save-cookies option in man
  3710. page.
  3711. * doc/aria2c.1.txt
  3712. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Set possible values for --load-cookie option to "/path/to/file".
  3714. * src/OptionHandlerFactory.cc
  3715. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3716. Added --save-cookies option.
  3717. * src/Cookie.cc
  3718. * src/Cookie.h
  3719. * src/CookieStorage.cc
  3720. * src/CookieStorage.h
  3721. * src/MultiUrlRequestInfo.cc
  3722. * src/OptionHandlerFactory.cc
  3723. * src/prefs.cc
  3724. * src/prefs.h
  3725. * src/usage_text.h
  3726. * test/CookieStorageTest.cc
  3727. * test/CookieTest.cc
  3728. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Removed tellAll XML-RPC command because its reponse tends to be
  3730. big if stopped/waiting downloads pile up.
  3731. * src/XmlRpcMethodFactory.cc
  3732. * src/XmlRpcMethodImpl.cc
  3733. * src/XmlRpcMethodImpl.h
  3734. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Added the ability to execute command when download starts and
  3736. stops. You can also specify command for particular cases such as
  3737. complete/error download. Added --on-download-start,
  3738. --on-download-stop, --on-download-complete and --on-download-error
  3739. option.
  3740. * src/OptionHandlerFactory.cc
  3741. * src/RequestGroupMan.cc
  3742. * src/prefs.cc
  3743. * src/prefs.h
  3744. * src/usage_text.h
  3745. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3746. Fixed test error
  3747. * test/BencodeTest.cc
  3748. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. Added unit tests.
  3750. * test/XmlRpcMethodTest.cc
  3751. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Made exception message more verbose.
  3753. * src/bencode.cc
  3754. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3756. space in console readout. Also they are now shown in MiB/s if
  3757. speed > 1024KiB/s.
  3758. * src/ConsoleStatCalc.cc
  3759. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Added SEED to console output, which represents the number of
  3761. seeders currently the client is connecting to.
  3762. * src/ConsoleStatCalc.cc
  3763. * src/ConsoleStatCalc.h
  3764. * src/DownloadEngine.cc
  3765. * src/NullStatCalc.h
  3766. * src/StatCalc.h
  3767. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3768. Added source filename(__FILE__) and line number(__LINE__) to
  3769. exception message.
  3770. * src/AbstractCommand.cc
  3771. * src/AbstractDiskWriter.cc
  3772. * src/AbstractProxyResponseCommand.cc
  3773. * src/BDE.h
  3774. * src/BtAllowedFastMessage.cc
  3775. * src/BtHandshakeMessageValidator.h
  3776. * src/BtHaveAllMessage.cc
  3777. * src/BtHaveNoneMessage.cc
  3778. * src/BtPieceMessage.cc
  3779. * src/BtRejectMessage.cc
  3780. * src/ChunkedDecoder.cc
  3781. * src/CookieStorage.cc
  3782. * src/DHTAnnouncePeerMessage.cc
  3783. * src/DHTEntryPointNameResolveCommand.cc
  3784. * src/DHTMessageFactoryImpl.cc
  3785. * src/DHTMessageTracker.cc
  3786. * src/DHTRoutingTableDeserializer.cc
  3787. * src/DHTRoutingTableSerializer.cc
  3788. * src/DHTSetup.cc
  3789. * src/DHTTokenTracker.cc
  3790. * src/DefaultBtAnnounce.cc
  3791. * src/DefaultBtContext.cc
  3792. * src/DefaultBtInteractive.cc
  3793. * src/DefaultBtMessageFactory.cc
  3794. * src/DefaultBtProgressInfoFile.cc
  3795. * src/DefaultExtensionMessageFactory.cc
  3796. * src/DlAbortEx.h
  3797. * src/DlRetryEx.h
  3798. * src/DownloadCommand.cc
  3799. * src/DownloadEngineFactory.cc
  3800. * src/DownloadFailureException.h
  3801. * src/Exception.cc
  3802. * src/Exception.h
  3803. * src/ExpatMetalinkProcessor.cc
  3804. * src/ExpatXmlRpcRequestProcessor.cc
  3805. * src/FallocFileAllocationIterator.cc
  3806. * src/FatalException.h
  3807. * src/FtpConnection.cc
  3808. * src/FtpFinishDownloadCommand.cc
  3809. * src/FtpInitiateConnectionCommand.cc
  3810. * src/FtpNegotiationCommand.cc
  3811. * src/GZipDecoder.cc
  3812. * src/HandshakeExtensionMessage.cc
  3813. * src/HttpConnection.cc
  3814. * src/HttpHeaderProcessor.cc
  3815. * src/HttpInitiateConnectionCommand.cc
  3816. * src/HttpResponse.cc
  3817. * src/HttpResponseCommand.cc
  3818. * src/HttpServer.cc
  3819. * src/HttpSkipResponseCommand.cc
  3820. * src/InitiateConnectionCommandFactory.cc
  3821. * src/IteratableChunkChecksumValidator.cc
  3822. * src/LibgcryptARC4Context.h
  3823. * src/LibgcryptARC4Decryptor.h
  3824. * src/LibgcryptARC4Encryptor.h
  3825. * src/LibgcryptDHKeyExchange.h
  3826. * src/LibgnutlsTLSContext.cc
  3827. * src/LibsslARC4Context.h
  3828. * src/LibsslARC4Decryptor.h
  3829. * src/LibsslARC4Encryptor.h
  3830. * src/LibsslDHKeyExchange.h
  3831. * src/LibsslTLSContext.cc
  3832. * src/MSEHandshake.cc
  3833. * src/MessageDigestHelper.cc
  3834. * src/MetalinkHelper.cc
  3835. * src/MultiDiskAdaptor.cc
  3836. * src/NameMatchOptionHandler.h
  3837. * src/NameResolver.cc
  3838. * src/Netrc.cc
  3839. * src/NsCookieParser.cc
  3840. * src/OptionHandlerException.cc
  3841. * src/OptionHandlerException.h
  3842. * src/OptionHandlerImpl.h
  3843. * src/OptionParser.cc
  3844. * src/ParameterizedStringParser.cc
  3845. * src/PeerAbstractCommand.cc
  3846. * src/PeerConnection.cc
  3847. * src/PeerMessageUtil.cc
  3848. * src/PeerReceiveHandshakeCommand.cc
  3849. * src/Platform.cc
  3850. * src/ReceiverMSEHandshakeCommand.cc
  3851. * src/RecoverableException.h
  3852. * src/RequestGroup.cc
  3853. * src/SimpleLogger.cc
  3854. * src/SocketCore.cc
  3855. * src/Sqlite3MozCookieParser.cc
  3856. * src/UTPexExtensionMessage.cc
  3857. * src/Util.cc
  3858. * src/XML2SAXMetalinkProcessor.cc
  3859. * src/Xml2XmlRpcRequestProcessor.cc
  3860. * src/XmlRpcMethodImpl.cc
  3861. * src/bencode.cc
  3862. * src/download_helper.cc
  3863. * src/messageDigest.h
  3864. * test/ExceptionTest.cc
  3865. * test/TestUtil.cc
  3866. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. Bump up version number to 1.4.0
  3868. * configure.ac
  3869. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Added 2files.metalink to EXTRA_DIST
  3871. * test/Makefile.am
  3872. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Added missing 2files.metalink
  3874. * test/2files.metalink
  3875. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. Show "[MEMORY]" prefix before filename in download summary if it
  3877. is downloaded into memory.
  3878. * src/DownloadResult.h
  3879. * src/RequestGroup.cc
  3880. * src/RequestGroupMan.cc
  3881. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3883. * src/ExpatXmlRpcRequestProcessor.cc
  3884. * src/Xml2XmlRpcRequestProcessor.cc
  3885. * src/message.h
  3886. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Defined const BDEs to avoid duplicate instantiation.
  3888. Defined MSG_GID_NOT_PROVIDED.
  3889. * src/XmlRpcMethodImpl.cc
  3890. * src/message.h
  3891. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Code cleanup
  3893. * src/Xml2XmlRpcRequestProcessor.cc
  3894. * src/Xml2XmlRpcRequestProcessor.h
  3895. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Defined ENABLE_XML_RPC
  3897. * configure.ac
  3898. * configure
  3899. * config.h.in
  3900. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Added ExpatXmlRpcRequestProcessor
  3902. * src/ExpatXmlRpcRequestProcessor.cc
  3903. * src/ExpatXmlRpcRequestProcessor.h
  3904. * src/Makefile.am
  3905. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Added tests for addTorrent and addMetalink command.
  3907. * test/TestUtil.cc
  3908. * test/TestUtil.h
  3909. * test/XmlRpcMethodTest.cc
  3910. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Corrected the description of --file-allocation option.
  3912. * doc/aria2c.1.txt
  3913. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Added tellAll command.
  3915. * src/XmlRpcMethodFactory.cc
  3916. * src/XmlRpcMethodImpl.cc
  3917. * src/XmlRpcMethodImpl.h
  3918. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3920. * src/XmlRpcMethodImpl.cc
  3921. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Added changeGlobalOption command. Currently,
  3923. max-overall-download-limit and max-overall-upload-limit option are
  3924. available.
  3925. * src/RequestGroupMan.h
  3926. * src/XmlRpcMethod.cc
  3927. * src/XmlRpcMethod.h
  3928. * src/XmlRpcMethodFactory.cc
  3929. * src/XmlRpcMethodImpl.cc
  3930. * src/XmlRpcMethodImpl.h
  3931. * test/XmlRpcMethodTest.cc
  3932. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Added changeOption command. Currently, max-download-limit,
  3934. max-upload-limit option are available in this command.
  3935. * src/RequestGroup.h
  3936. * src/XmlRpcMethod.cc
  3937. * src/XmlRpcMethod.h
  3938. * src/XmlRpcMethodFactory.cc
  3939. * src/XmlRpcMethodImpl.cc
  3940. * src/XmlRpcMethodImpl.h
  3941. * test/XmlRpcMethodTest.cc
  3942. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Added purgeDownloadResult command.
  3944. * src/RequestGroupMan.cc
  3945. * src/RequestGroupMan.h
  3946. * src/XmlRpcMethodFactory.cc
  3947. * src/XmlRpcMethodImpl.cc
  3948. * src/XmlRpcMethodImpl.h
  3949. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3950. Refactored.
  3951. * src/XmlRpcMethod.cc
  3952. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3954. XmlRpcResponse.
  3955. * src/HttpServerBodyCommand.cc
  3956. * src/Makefile.am
  3957. * src/XmlRpcMethod.cc
  3958. * src/XmlRpcMethod.h
  3959. * src/XmlRpcMethodImpl.cc
  3960. * src/XmlRpcResponse.cc
  3961. * src/XmlRpcResponse.h
  3962. * test/XmlRpcMethodTest.cc
  3963. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3964. In XML-RPC option struct, header and index-out option can take
  3965. array as value.
  3966. * src/XmlRpcMethod.cc
  3967. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3968. Removed unused option member from PeerConnection.
  3969. * src/InitiatorMSEHandshakeCommand.cc
  3970. * src/PeerConnection.cc
  3971. * src/PeerConnection.h
  3972. * src/PeerInteractionCommand.cc
  3973. * src/PeerReceiveHandshakeCommand.cc
  3974. * src/ReceiverMSEHandshakeCommand.cc
  3975. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Added "seeder" key to getPeers response.
  3977. * src/XmlRpcMethodImpl.cc
  3978. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Added addMetalink XML-RPC command.
  3980. * src/XmlRpcMethodFactory.cc
  3981. * src/XmlRpcMethodImpl.cc
  3982. * src/XmlRpcMethodImpl.h
  3983. * src/download_helper.cc
  3984. * src/download_helper.h
  3985. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3986. Fixed the bug that POU peers are never choked in seeding.
  3987. * src/BtSeederStateChoke.cc
  3988. * src/BtSeederStateChoke.h
  3989. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3990. Added web-seeding URI handling in addTorrent command.
  3991. * src/XmlRpcMethodImpl.cc
  3992. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3993. Added "length" key to getFiles response.
  3994. * src/XmlRpcMethodImpl.cc
  3995. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Moved --no-netrc option from ftp option section to http/ftp option
  3997. section.
  3998. * doc/aria2c.1.txt
  3999. * src/OptionHandlerFactory.cc
  4000. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Removed garbage "\" character before '
  4002. * doc/aria2c.1.txt
  4003. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Removed garbage "\" character before http.
  4005. * doc/aria2c.1.txt
  4006. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Documented additional options that can be specified in -i list.
  4008. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4009. and --xml-rpc-passwd. Removed --enable-http-server and
  4010. --http-server-listen-port.
  4011. * doc/aria2c.1.txt
  4012. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4013. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4014. * src/DefaultPeerStorage.cc
  4015. * src/DefaultPeerStorage.h
  4016. * src/PeerStorage.h
  4017. * src/XmlRpcMethodImpl.cc
  4018. * test/MockPeerStorage.h
  4019. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4020. Put a call to Socket::isReadable() in try block.
  4021. * src/HttpServerBodyCommand.cc
  4022. * src/HttpServerCommand.cc
  4023. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4025. exception , so it is now in try block.
  4026. * src/HttpServerResponseCommand.cc
  4027. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Added "amChoking" and "peerChoking" key in getPeers response.
  4029. * src/XmlRpcMethodImpl.cc
  4030. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Added test case for zero-length filter.
  4032. * test/BitfieldManTest.cc
  4033. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. getFiles command now returns file data for finished/stopped
  4035. downloads.
  4036. * src/XmlRpcMethodImpl.cc
  4037. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. DownloadResult now has the list of FileEntry. The download
  4039. summary displays the path of first selected file and the number of
  4040. remaining files for multi-file torrent.
  4041. * src/DownloadResult.h
  4042. * src/RequestGroup.cc
  4043. * src/RequestGroupMan.cc
  4044. * test/RequestGroupTest.cc
  4045. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4046. Fixed segmentation fault error when no file is selected in
  4047. multi-file torrent.
  4048. * src/BitfieldMan.cc
  4049. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Escaped <,>,& character in XML-RPC response.
  4051. * src/XmlRpcMethod.cc
  4052. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Throw DlAbortEx instead of FatalException during parsing options
  4054. because we don't want for aria2 to quit when bad option is passed
  4055. via XML-RPC.
  4056. * src/OptionHandlerException.cc
  4057. * src/OptionHandlerException.h
  4058. * src/OptionHandlerImpl.h
  4059. * src/OptionParser.cc
  4060. * src/OptionParser.h
  4061. * src/PStringSegment.cc
  4062. * src/ParameterizedStringParser.cc
  4063. * src/download_helper.cc
  4064. * test/ParameterizedStringParserTest.cc
  4065. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4066. Selecting files are now done in
  4067. DefaultBtContext::setFileFileter().
  4068. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4069. functions are removed because they are no longer used. Creating
  4070. filter in BitfieldMan is done in new funtion
  4071. PieceStorage::setupFileFilter()
  4072. * src/BtContext.cc
  4073. * src/BtContext.h
  4074. * src/DefaultBtContext.cc
  4075. * src/DefaultBtContext.h
  4076. * src/DefaultPieceStorage.cc
  4077. * src/DefaultPieceStorage.h
  4078. * src/DiskAdaptor.cc
  4079. * src/DiskAdaptor.h
  4080. * src/PieceStorage.h
  4081. * src/RequestGroup.cc
  4082. * src/UnknownLengthPieceStorage.h
  4083. * src/XmlRpcMethodImpl.cc
  4084. * test/DefaultBtContextTest.cc
  4085. * test/MockBtContext.h
  4086. * test/MockPieceStorage.h
  4087. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Fixed compile error on Mac OS X
  4089. * src/HttpServer.cc
  4090. * src/XmlRpcMethod.h
  4091. * src/XmlRpcMethodImpl.cc
  4092. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Use std::binary_search instead of std::find
  4094. * src/DefaultPieceStorage.cc
  4095. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Removed unnecessary BDE() call; leave them to implicit conversion.
  4097. * src/XmlRpcMethodImpl.cc
  4098. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. Return connections and gid in string
  4100. * src/XmlRpcMethodImpl.cc
  4101. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Renamed addURI as addUri
  4103. * src/XmlRpcMethodFactory.cc
  4104. * src/XmlRpcMethodImpl.cc
  4105. * src/XmlRpcMethodImpl.h
  4106. * test/XmlRpcMethodTest.cc
  4107. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Renamed addTorrentFile as addTorrent
  4109. * src/XmlRpcMethodFactory.cc
  4110. * src/XmlRpcMethodImpl.cc
  4111. * src/XmlRpcMethodImpl.h
  4112. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. The information for files, URIs, peers are removed from the
  4114. reponse of TellaActive, TellStatus command because they tend to be
  4115. large. Instead they can be retrieved by the dedicated commands:
  4116. getFiles, getUris and getPeers respectively.
  4117. * src/XmlRpcMethodFactory.cc
  4118. * src/XmlRpcMethodImpl.cc
  4119. * src/XmlRpcMethodImpl.h
  4120. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4121. Removed --max-overall-upload-limit and
  4122. --max-overall-download-limit option from listRequestOptions.
  4123. * src/download_helper.cc
  4124. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Log incoming host in HttpListenCommand.
  4126. * src/HttpListenCommand.cc
  4127. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4129. --xml-rpc-passwd option.
  4130. * src/HttpServer.cc
  4131. * src/HttpServer.h
  4132. * src/HttpServerCommand.cc
  4133. * src/OptionHandlerFactory.cc
  4134. * src/prefs.cc
  4135. * src/prefs.h
  4136. * src/usage_text.h
  4137. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4139. processing 0 length request.
  4140. * src/HttpServerBodyCommand.cc
  4141. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Removed --enable-http-server and --http-server-listen-port
  4143. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4144. instead. The original feature for --enable-http-server that
  4145. reports download progress in HTML was officially removed. Persist
  4146. XML-RPC connection if client supports keep-alive.
  4147. * src/DownloadEngineFactory.cc
  4148. * src/HttpServerCommand.cc
  4149. * src/HttpServerResponseCommand.cc
  4150. * src/Makefile.am
  4151. * src/Makefile.in
  4152. * src/OptionHandlerFactory.cc
  4153. * src/RequestGroupMan.cc
  4154. * src/main.cc
  4155. * src/option_processing.cc
  4156. * src/prefs.cc
  4157. * src/prefs.h
  4158. * src/usage_text.h
  4159. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Added "uris" key to the response of tellStatus command. Added
  4161. "connections" key to the response of tellStatus and tellActive
  4162. command.
  4163. * src/XmlRpcMethodImpl.cc
  4164. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4166. Added TellStatusXmlRpcMethod. Remove command can now remove
  4167. waiting RequestGroup.
  4168. * src/RequestGroupMan.cc
  4169. * src/RequestGroupMan.h
  4170. * src/XmlRpcMethodFactory.cc
  4171. * src/XmlRpcMethodImpl.cc
  4172. * src/XmlRpcMethodImpl.h
  4173. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Initialized _peerId
  4175. * src/Peer.cc
  4176. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Return fault structure for error. FailXmlRpcMethod is renamed as
  4178. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4179. in non-torrent download. Return single param value.
  4180. * src/XmlRpcMethod.cc
  4181. * src/XmlRpcMethodFactory.cc
  4182. * src/XmlRpcMethodImpl.cc
  4183. * src/XmlRpcMethodImpl.h
  4184. * test/XmlRpcMethodTest.cc
  4185. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4187. command.
  4188. * src/RequestGroup.cc
  4189. * src/RequestGroup.h
  4190. * src/RequestGroupMan.cc
  4191. * src/XmlRpcMethodImpl.cc
  4192. * test/RequestGroupTest.cc
  4193. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4194. Added more options that can be specified in -i list and xml-rpc
  4195. add* command.
  4196. * src/download_helper.h
  4197. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. The available options in -i list should be listed in
  4199. listRequestOptions().
  4200. * src/download_helper.cc
  4201. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4202. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4203. command.
  4204. * src/XmlRpcMethodImpl.cc
  4205. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4206. Now RequestGroup has its own copy of Option object. This will help
  4207. to give custom option for each RequestGroup.
  4208. addTorrentFile command now takes options.
  4209. * src/AbstractCommand.cc
  4210. * src/AbstractCommand.h
  4211. * src/AbstractProxyRequestCommand.cc
  4212. * src/ActivePeerConnectionCommand.cc
  4213. * src/ActivePeerConnectionCommand.h
  4214. * src/AdaptiveURISelector.cc
  4215. * src/BtCheckIntegrityEntry.cc
  4216. * src/BtDependency.cc
  4217. * src/BtDependency.h
  4218. * src/BtFileAllocationEntry.cc
  4219. * src/BtPostDownloadHandler.cc
  4220. * src/CheckIntegrityEntry.cc
  4221. * src/DownloadCommand.cc
  4222. * src/FtpDownloadCommand.cc
  4223. * src/FtpFinishDownloadCommand.cc
  4224. * src/FtpInitiateConnectionCommand.cc
  4225. * src/FtpNegotiationCommand.cc
  4226. * src/HttpInitiateConnectionCommand.cc
  4227. * src/HttpRequestCommand.cc
  4228. * src/HttpResponseCommand.cc
  4229. * src/HttpSkipResponseCommand.cc
  4230. * src/InitiateConnectionCommand.cc
  4231. * src/InitiateConnectionCommandFactory.cc
  4232. * src/InitiatorMSEHandshakeCommand.cc
  4233. * src/InitiatorMSEHandshakeCommand.h
  4234. * src/Metalink2RequestGroup.cc
  4235. * src/Metalink2RequestGroup.h
  4236. * src/MetalinkPostDownloadHandler.cc
  4237. * src/MultiUrlRequestInfo.cc
  4238. * src/MultiUrlRequestInfo.h
  4239. * src/PeerAbstractCommand.cc
  4240. * src/PeerInteractionCommand.cc
  4241. * src/PeerInteractionCommand.h
  4242. * src/PeerReceiveHandshakeCommand.cc
  4243. * src/PeerReceiveHandshakeCommand.h
  4244. * src/RequestGroup.cc
  4245. * src/RequestGroup.h
  4246. * src/TrackerWatcherCommand.cc
  4247. * src/TrackerWatcherCommand.h
  4248. * src/XmlRpcMethod.cc
  4249. * src/XmlRpcMethod.h
  4250. * src/XmlRpcMethodImpl.cc
  4251. * src/download_helper.cc
  4252. * src/download_helper.h
  4253. * src/main.cc
  4254. * test/BtDependencyTest.cc
  4255. * test/BtPostDownloadHandlerTest.cc
  4256. * test/DefaultBtMessageDispatcherTest.cc
  4257. * test/DownloadHandlerFactoryTest.cc
  4258. * test/DownloadHelperTest.cc
  4259. * test/Metalink2RequestGroupTest.cc
  4260. * test/MetalinkPostDownloadHandlerTest.cc
  4261. * test/RequestGroupManTest.cc
  4262. * test/RequestGroupTest.cc
  4263. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Added tellActiveStatus xml-rpc command which reports download
  4265. status of active downloads.
  4266. * src/XmlRpcMethodFactory.cc
  4267. * src/XmlRpcMethodImpl.cc
  4268. * src/XmlRpcMethodImpl.h
  4269. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Added addTorrentFile xml-rpc command which receives uploaded
  4271. torrent file and add download for it.
  4272. * src/RequestGroupMan.cc
  4273. * src/XmlRpcMethodFactory.cc
  4274. * src/XmlRpcMethodImpl.cc
  4275. * src/XmlRpcMethodImpl.h
  4276. * src/download_helper.cc
  4277. * src/download_helper.h
  4278. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4279. Added remove xml-rpc command which removes specified download.
  4280. There is a known issue: the removed unfinished downloads are
  4281. reported ERR when aria2 exits. They should be reported as INPR.
  4282. * src/RequestGroupMan.cc
  4283. * src/RequestGroupMan.h
  4284. * src/XmlRpcMethodFactory.cc
  4285. * src/XmlRpcMethodImpl.cc
  4286. * src/XmlRpcMethodImpl.h
  4287. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. If --enable-http-server is enabled, don't stop aria2 when all
  4289. download finished and don't quit when no files to download at
  4290. start up.
  4291. * src/RequestGroupMan.cc
  4292. * src/main.cc
  4293. * src/option_processing.cc
  4294. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4295. Added missing AM_CONDITIONAL
  4296. * configure.ac
  4297. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4298. Added xml-rpc functionality. Currently only addURI commad is
  4299. supported. To enable xml-rpc, run aria2 with
  4300. --enable-http-server. This option name is temporal and will be
  4301. changed. The feature that reports download progress in html format
  4302. is temporarily disabled.
  4303. * src/HttpServer.cc
  4304. * src/HttpServer.h
  4305. * src/HttpServerBodyCommand.cc
  4306. * src/HttpServerBodyCommand.h
  4307. * src/HttpServerCommand.cc
  4308. * src/HttpServerResponseCommand.cc
  4309. * src/Makefile.am
  4310. * src/OptionParser.cc
  4311. * src/OptionParser.h
  4312. * src/RequestGroupMan.cc
  4313. * src/RequestGroupMan.h
  4314. * src/XmlRpcMethod.cc
  4315. * src/XmlRpcMethod.h
  4316. * src/XmlRpcMethodFactory.cc
  4317. * src/XmlRpcMethodFactory.h
  4318. * src/XmlRpcMethodImpl.cc
  4319. * src/XmlRpcMethodImpl.h
  4320. * src/download_helper.cc
  4321. * src/download_helper.h
  4322. * test/Makefile.am
  4323. * test/XmlRpcMethodTest.cc
  4324. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Added xml-rpc request parser. The supported value types are:
  4326. i4/int, string, double, struct, array, base64. Currently only
  4327. libxml2 version is provided.
  4328. * src/Xml2XmlRpcRequestProcessor.cc
  4329. * src/Xml2XmlRpcRequestProcessor.h
  4330. * src/XmlRpcElements.cc
  4331. * src/XmlRpcElements.h
  4332. * src/XmlRpcRequest.h
  4333. * src/XmlRpcRequestParserController.cc
  4334. * src/XmlRpcRequestParserController.h
  4335. * src/XmlRpcRequestParserState.h
  4336. * src/XmlRpcRequestParserStateImpl.cc
  4337. * src/XmlRpcRequestParserStateImpl.h
  4338. * src/XmlRpcRequestParserStateMachine.cc
  4339. * src/XmlRpcRequestParserStateMachine.h
  4340. * src/XmlRpcRequestProcessor.h
  4341. * test/XmlRpcRequestParserControllerTest.cc
  4342. * test/XmlRpcRequestProcessorTest.cc
  4343. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. * Release 1.3.3
  4345. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4346. Fixed compile error since r1202.
  4347. * src/ExpatMetalinkProcessor.cc
  4348. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Updated Ukrainian, Russian and Simplified Chinese
  4350. translations. Thanks to all translators.
  4351. * po/ru.po
  4352. * po/uk.po
  4353. * po/zh_CN.po
  4354. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Pass reference of Option object instead of pointer.
  4356. * src/download_helper.cc
  4357. * src/download_helper.h
  4358. * src/main.cc
  4359. * test/DownloadHelperTest.cc
  4360. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4361. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4362. from option directly. Instead, get them from RequestGroup.
  4363. * src/ActivePeerConnectionCommand.cc
  4364. * src/ActivePeerConnectionCommand.h
  4365. * src/PeerReceiveHandshakeCommand.cc
  4366. * src/RequestGroup.h
  4367. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Removed unused uploadLimitCheck and uploadLimit from
  4369. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4370. PeerInteractionCommand.
  4371. * src/PeerAbstractCommand.cc
  4372. * src/PeerAbstractCommand.h
  4373. * src/PeerInteractionCommand.cc
  4374. * src/PeerInteractionCommand.h
  4375. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Fixed broken file renaming feature since r1202.
  4377. * src/FtpNegotiationCommand.cc
  4378. * src/FtpNegotiationCommand.h
  4379. * src/HttpResponseCommand.cc
  4380. * src/RequestGroup.cc
  4381. * src/RequestGroup.h
  4382. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4383. Removed unused debug log
  4384. * src/SocketCore.cc
  4385. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Generated configure and Makefile.in using autoconf 2.63 and
  4387. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4388. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4389. * configure.ac
  4390. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Moved piece statistics stuff to new PieceStatMan class.
  4392. Refactored PieceSelector interface.
  4393. * src/DefaultPieceStorage.cc
  4394. * src/DefaultPieceStorage.h
  4395. * src/LongestSequencePieceSelector.cc
  4396. * src/LongestSequencePieceSelector.h
  4397. * src/Makefile.am
  4398. * src/PieceSelector.h
  4399. * src/PieceStatMan.cc
  4400. * src/PieceStatMan.h
  4401. * src/RarestPieceSelector.cc
  4402. * src/RarestPieceSelector.h
  4403. * src/RequestGroup.cc
  4404. * test/DefaultPieceStorageTest.cc
  4405. * test/InOrderPieceSelector.h
  4406. * test/Makefile.am
  4407. * test/PieceStatManTest.cc
  4408. * test/RarestPieceSelectorTest.cc
  4409. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Added static member _protocolFamily to SocketCore. By default,
  4411. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4412. address. Sometime SocketCore::bind() and
  4413. SocketCore::establishConnection() use difference protocl family
  4414. and latter cannot connect to former. To avoid this situation, we
  4415. limit protocol family to AF_INET for unit tests.
  4416. * src/SocketCore.cc
  4417. * src/SocketCore.h
  4418. * test/AllTest.cc
  4419. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Avoid std::bad_alloc for negative bencode string length.
  4421. * src/bencode.cc
  4422. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Supported segmented downloading with chunked transfer encoding and
  4424. content-length.
  4425. * src/DownloadCommand.cc
  4426. * src/HttpResponseCommand.cc
  4427. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Bump up version number to 1.3.3
  4429. * configure.ac
  4430. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4432. from 4096 to 65536 (for insanely large ftp login banners)
  4433. * src/FtpConnection.h
  4434. * test/FtpConnectionTest.cc
  4435. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. In DefaultBtContext::getActualBasePath(), return first
  4437. FileEntry::getPath() for single file torrent.
  4438. * src/DefaultBtContext.cc
  4439. * test/DefaultBtContextTest.cc
  4440. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4441. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4442. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4443. Removed _directIOAllowed member from DiskWriter.
  4444. * src/AbstractDiskWriter.cc
  4445. * src/AbstractDiskWriter.h
  4446. * src/AbstractSingleDiskAdaptor.cc
  4447. * src/AbstractSingleDiskAdaptor.h
  4448. * src/BinaryStream.h
  4449. * src/ByteArrayDiskWriter.h
  4450. * src/DefaultPieceStorage.cc
  4451. * src/DiskWriter.h
  4452. * src/MultiDiskAdaptor.cc
  4453. * src/MultiDiskAdaptor.h
  4454. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4455. Now the constructor of AbstractDiskWriter takes filename as an
  4456. argument and filename argument is removed from openFile(),
  4457. initAndOpenFile(), openExistingFile() interface. storeDir member
  4458. and its accessor functions are removed from DiskAdaptor because it
  4459. is not used anymore. size() member function of DefaultDiskWriter,
  4460. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4461. opening file.
  4462. * src/AbstractDiskWriter.cc
  4463. * src/AbstractDiskWriter.h
  4464. * src/AbstractSingleDiskAdaptor.cc
  4465. * src/AbstractSingleDiskAdaptor.h
  4466. * src/ByteArrayDiskWriter.cc
  4467. * src/ByteArrayDiskWriter.h
  4468. * src/ByteArrayDiskWriterFactory.cc
  4469. * src/ByteArrayDiskWriterFactory.h
  4470. * src/DefaultDiskWriter.cc
  4471. * src/DefaultDiskWriter.h
  4472. * src/DefaultDiskWriterFactory.cc
  4473. * src/DefaultDiskWriterFactory.h
  4474. * src/DefaultPieceStorage.cc
  4475. * src/DirectDiskAdaptor.cc
  4476. * src/DirectDiskAdaptor.h
  4477. * src/DiskAdaptor.h
  4478. * src/DiskWriter.h
  4479. * src/DiskWriterFactory.h
  4480. * src/MessageDigestHelper.cc
  4481. * src/MultiDiskAdaptor.cc
  4482. * src/RequestGroup.cc
  4483. * src/UnknownLengthPieceStorage.cc
  4484. * src/Util.cc
  4485. * test/DefaultDiskWriterTest.cc
  4486. * test/DirectDiskAdaptorTest.cc
  4487. * test/FallocFileAllocationIteratorTest.cc
  4488. * test/MessageDigestHelperTest.cc
  4489. * test/MetalinkProcessorTest.cc
  4490. * test/MultiDiskAdaptorTest.cc
  4491. * test/MultiFileAllocationIteratorTest.cc
  4492. * test/SingleFileAllocationIteratorTest.cc
  4493. * test/UtilTest.cc
  4494. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Fixed the bug that aria2 aborts when --select-file is used. This
  4496. bug was introduced in r1199.
  4497. * src/MultiDiskAdaptor.cc
  4498. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Code cleanup
  4500. * test/MockPieceStorage.cc
  4501. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Fixed the bug that read-only file with wrong file size will cause
  4503. error because it cannot be truncated to the correct size. Now if
  4504. file size is different than the expected one, re-open file in
  4505. writable mode.
  4506. * src/AbstractSingleDiskAdaptor.cc
  4507. * src/AbstractSingleDiskAdaptor.h
  4508. * src/BtCheckIntegrityEntry.cc
  4509. * src/DiskAdaptor.h
  4510. * src/MultiDiskAdaptor.h
  4511. * src/RequestGroup.cc
  4512. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. Fixed the bug that with --check-integrity option aria2 reports
  4514. downloaded file size is 0 even if some parts of file is correctly
  4515. downloaded. This bug is reproducible for the download that a file
  4516. includes last piece is missing. This bug doesn't reveal for
  4517. single-torrent with file allocation on.
  4518. * src/IteratableChecksumValidator.cc
  4519. * test/IteratableChecksumValidatorTest.cc
  4520. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4522. * src/RequestGroupMan.cc
  4523. * src/AdaptiveURISelector.cc
  4524. * src/AdaptiveURISelector.h
  4525. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. * Release 1.3.2
  4527. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Updated README
  4529. * README
  4530. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Updated Ukrainian translations. Thanks to Alexander10.
  4532. * po/uk.po
  4533. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Code cleanup
  4535. * src/MetalinkParserStateMachine.cc
  4536. * src/MetalinkParserStateMachine.h
  4537. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4539. and expat simultaneously, MetalinkProcessor is now not base class
  4540. and it is directly implemented in XML2SAXMetalinkProcessor and
  4541. ExpatMetalinkProcessor.
  4542. * src/ExpatMetalinkProcessor.cc
  4543. * src/ExpatMetalinkProcessor.h
  4544. * src/Makefile.am
  4545. * src/MetalinkHelper.cc
  4546. * src/MetalinkProcessor.h
  4547. * src/MetalinkProcessorFactory.cc: Removed.
  4548. * src/MetalinkProcessorFactory.h: Removed
  4549. * src/XML2SAXMetalinkProcessor.cc
  4550. * src/XML2SAXMetalinkProcessor.h
  4551. * test/MetalinkProcessorTest.cc
  4552. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Bump up version number to 1.3.2
  4554. * configure.ac
  4555. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Added missing file.
  4557. * test/Makefile.am
  4558. * test/url-list-singleFileEndsWithSlash.torrent
  4559. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4561. request.
  4562. * src/AnnounceList.cc
  4563. * src/AnnounceList.h
  4564. * src/BDE.cc: Added
  4565. * src/BDE.h: Added
  4566. * src/DHTAbstractMessage.cc
  4567. * src/DHTAbstractMessage.h
  4568. * src/DHTAnnouncePeerMessage.cc
  4569. * src/DHTAnnouncePeerMessage.h
  4570. * src/DHTAnnouncePeerReplyMessage.cc
  4571. * src/DHTAnnouncePeerReplyMessage.h
  4572. * src/DHTFindNodeMessage.cc
  4573. * src/DHTFindNodeMessage.h
  4574. * src/DHTFindNodeReplyMessage.cc
  4575. * src/DHTFindNodeReplyMessage.h
  4576. * src/DHTGetPeersMessage.cc
  4577. * src/DHTGetPeersMessage.h
  4578. * src/DHTGetPeersReplyMessage.cc
  4579. * src/DHTGetPeersReplyMessage.h
  4580. * src/DHTMessageFactory.h
  4581. * src/DHTMessageFactoryImpl.cc
  4582. * src/DHTMessageFactoryImpl.h
  4583. * src/DHTMessageReceiver.cc
  4584. * src/DHTMessageTracker.cc
  4585. * src/DHTMessageTracker.h
  4586. * src/DHTPingMessage.cc
  4587. * src/DHTPingMessage.h
  4588. * src/DHTPingReplyMessage.cc
  4589. * src/DHTPingReplyMessage.h
  4590. * src/DHTQueryMessage.cc
  4591. * src/DHTQueryMessage.h
  4592. * src/DHTResponseMessage.cc
  4593. * src/DHTResponseMessage.h
  4594. * src/DefaultBtAnnounce.cc
  4595. * src/DefaultBtContext.cc
  4596. * src/DefaultBtContext.h
  4597. * src/HandshakeExtensionMessage.cc
  4598. * src/Makefile.am
  4599. * src/PeerListProcessor.h
  4600. * src/UTPexExtensionMessage.cc
  4601. * src/bencode.cc
  4602. * src/bencode.h
  4603. * test/AnnounceListTest.cc
  4604. * test/BDETest.cc: Added
  4605. * test/BencodeTest.cc
  4606. * test/DHTAnnouncePeerMessageTest.cc
  4607. * test/DHTAnnouncePeerReplyMessageTest.cc
  4608. * test/DHTFindNodeMessageTest.cc
  4609. * test/DHTFindNodeReplyMessageTest.cc
  4610. * test/DHTGetPeersMessageTest.cc
  4611. * test/DHTGetPeersReplyMessageTest.cc
  4612. * test/DHTMessageFactoryImplTest.cc
  4613. * test/DHTMessageTrackerTest.cc
  4614. * test/DHTPingMessageTest.cc
  4615. * test/DHTPingReplyMessageTest.cc
  4616. * test/Makefile.am
  4617. * test/MockDHTMessageFactory.h
  4618. * test/PeerListProcessorTest.cc
  4619. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Use url-list (web-seeding) only for single-file torrent. This is
  4621. basically the same behavior with Metalink file with torrent and
  4622. URIs.
  4623. * src/RequestGroup.cc
  4624. * src/DefaultBtContext.cc
  4625. * test/DefaultBtContextTest.cc
  4626. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Rewritten expr
  4628. * src/array_fun.h
  4629. * test/array_funTest.cc
  4630. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4632. * src/DefaultBtMessageDispatcher.cc
  4633. * src/a2algo.h
  4634. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Removed ExtendedMessagingAware. Instead of using inheritance,
  4636. added ExtensionMessageRegistry and it is passed to
  4637. DefaultExtensionMessageFactory.
  4638. * src/DefaultBtInteractive.cc
  4639. * src/DefaultBtInteractive.h
  4640. * src/DefaultExtensionMessageFactory.cc
  4641. * src/DefaultExtensionMessageFactory.h
  4642. * src/ExtendedMessagingAware.h: Removed.
  4643. * src/ExtensionMessageFactory.h
  4644. * src/ExtensionMessageRegistry.h: Added.
  4645. * src/Makefile.am
  4646. * src/PeerInteractionCommand.cc
  4647. * test/DefaultExtensionMessageFactoryTest.cc
  4648. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Fixed typo in log messages
  4650. * src/MSEHandshake.cc
  4651. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. Fixed the bug that prevents torrent download from finishing. The
  4653. bug doesn't reveal for all torrents. The torrents affected this
  4654. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4655. of pieces.
  4656. * src/bitfield.h
  4657. * test/bitfieldTest.cc
  4658. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Code cleanup
  4660. * src/PeerListProcessor.h
  4661. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Removed RequestGroupAware
  4663. * src/AbstractCommand.cc
  4664. * src/AbstractCommand.h
  4665. * src/ActivePeerConnectionCommand.cc
  4666. * src/ActivePeerConnectionCommand.h
  4667. * src/DHTGetPeersCommand.cc
  4668. * src/DHTGetPeersCommand.h
  4669. * src/InitiatorMSEHandshakeCommand.cc
  4670. * src/InitiatorMSEHandshakeCommand.h
  4671. * src/Makefile.am
  4672. * src/PeerInitiateConnectionCommand.cc
  4673. * src/PeerInitiateConnectionCommand.h
  4674. * src/PeerInteractionCommand.cc
  4675. * src/PeerInteractionCommand.h
  4676. * src/RealtimeCommand.cc
  4677. * src/RealtimeCommand.h
  4678. * src/RequestGroupAware.cc: Removed
  4679. * src/RequestGroupAware.h: Removed
  4680. * src/SeedCheckCommand.cc
  4681. * src/SeedCheckCommand.h
  4682. * src/SleepCommand.cc
  4683. * src/TrackerWatcherCommand.cc
  4684. * src/TrackerWatcherCommand.h
  4685. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Rewritten PeerListProcessor
  4687. * src/PeerListProcessor.h
  4688. * src/CompactPeerListProcessor.h: Removed
  4689. * src/CompactPeerListProcessor.cc: Removed
  4690. * src/DelegatingPeerListProcessor.cc: Removed.
  4691. * src/DefaultBtAnnounce.cc
  4692. * src/Makefile.am
  4693. * src/UTPexExtensionMessage.cc
  4694. * src/DefaultPeerListProcessor.h: Removed.
  4695. * src/DefaultPeerListProcessor.cc: Removed.
  4696. * src/DelegatingPeerListProcessor.h: Removed.
  4697. * test/Makefile.am
  4698. * test/PeerListProcessorTest.cc
  4699. * test/DefaultPeerListProcessorTest.cc: Removed.
  4700. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. Rewritten RequestGroupMan::calculateStat()
  4702. * src/RequestGroupMan.cc
  4703. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4704. Removed unnecessary virtual destructor for Request class.
  4705. * src/Request.cc
  4706. * src/Request.h
  4707. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Avoid dynamic_pointer_cast.
  4709. * src/DHTGetPeersCommand.cc
  4710. * src/DHTGetPeersCommand.h
  4711. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4712. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4713. BtEvent.
  4714. * src/AbstractBtEventListener.h: Removed.
  4715. * src/AbstractBtMessage.cc
  4716. * src/AbstractBtMessage.h
  4717. * src/BtAbortOutstandingRequestEvent.h
  4718. * src/BtCancelSendingPieceEvent.h
  4719. * src/BtChokedEvent.h: Removed.
  4720. * src/BtChokingEvent.h
  4721. * src/BtEvent.h: Removed
  4722. * src/BtEventListener.h: Removed.
  4723. * src/BtMessage.h
  4724. * src/BtPieceMessage.cc
  4725. * src/BtPieceMessage.h
  4726. * src/BtRequestMessage.cc
  4727. * src/BtRequestMessage.h
  4728. * src/DefaultBtMessageDispatcher.cc
  4729. * src/Makefile.am
  4730. * src/a2functional.h
  4731. * test/BtPieceMessageTest.cc
  4732. * test/BtRequestMessageTest.cc
  4733. * test/DefaultBtMessageDispatcherTest.cc
  4734. * test/MockBtMessage.h
  4735. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Code cleanup
  4737. * src/RequestGroupMan.cc
  4738. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Code cleanup
  4740. * src/DownloadCommand.cc
  4741. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4743. byte.
  4744. * src/DownloadCommand.cc
  4745. * src/bitfield.h
  4746. * test/bitfieldTest.cc
  4747. Fixed the bug that causes infinite loop if broken web server
  4748. returns chunked response without last "0" chunk-size marker and
  4749. closes connection.
  4750. * src/DownloadCommand.cc
  4751. Instantiate properly configured HttpDownloadCommand for
  4752. non-resumable downlaods.
  4753. * src/HttpResponseCommand.cc
  4754. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4755. Rewritten array operation functions.
  4756. * src/BitfieldMan.cc
  4757. * src/array_fun.h
  4758. * test/array_funTest.cc
  4759. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4760. Removed unused variable 'query'
  4761. * src/Request.cc
  4762. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4763. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4764. accidentally set to false in r1162.
  4765. * configure.ac
  4766. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Code cleanup
  4768. * src/BNode.cc
  4769. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Increase prefixLength for the bucket which doesn't own local node
  4771. ID when splitting bucket.
  4772. * src/DHTBucket.cc
  4773. * test/DHTBucketTest.cc
  4774. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. * Release 1.3.1
  4776. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4777. Bump up version number to 1.3.1
  4778. * configure.ac
  4779. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Removed unused variable checkPoint. Also removed include directive
  4781. for TimeA2.h.
  4782. * src/SeedCheckCommand.h
  4783. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Fixed the bug that upload limit exceeds the value specified in
  4785. --seed-ratio option depending on the timing of the execution of
  4786. SeedCheckCommand.
  4787. * src/SeedCheckCommand.cc
  4788. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4789. Fixed the bug that removed peer's session upload/download length
  4790. are counted twice in _cachedTransferStat before it is
  4791. re-calculated. This affected the calculation of shara ratio,
  4792. resulting aria2 wrongly determines that specified share ratio is
  4793. reached. Also fixed the typo in calculateStatFor function name.
  4794. * src/BtSetup.cc
  4795. * src/DefaultPeerStorage.cc
  4796. * src/ShareRatioSeedCriteria.h
  4797. * test/ShareRatioSeedCriteriaTest.cc
  4798. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. * Release 1.3.0
  4800. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4802. Nynorsk translations. Thanks to all translators.
  4803. * po/es.po
  4804. * po/ja.po
  4805. * po/nn.po
  4806. * po/ru.po
  4807. * po/uk.po
  4808. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Rewritten isInRange()
  4810. * src/DHTBucket.cc
  4811. * test/DHTBucketTest.cc
  4812. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Fixed typo
  4814. * doc/aria2c.1.txt
  4815. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4816. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4817. malloc/realloc is not used.
  4818. * src/configure.ac
  4819. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4821. char* bitfield instead of stl container for efficiency.
  4822. PieceSelector::select now takes this
  4823. bitfield. RarestPieceSelector::select now also performs
  4824. efficiently for this change. bitfield namespace is introduced and
  4825. it has several helper functions to handle basic bitfield
  4826. operations such as test, count set bits, etc.
  4827. * src/BitfieldMan.cc
  4828. * src/BitfieldMan.h
  4829. * src/DefaultBtRequestFactory.cc
  4830. * src/DefaultPieceStorage.cc
  4831. * src/DefaultPieceStorage.h
  4832. * src/LongestSequencePieceSelector.cc
  4833. * src/LongestSequencePieceSelector.h
  4834. * src/Makefile.am
  4835. * src/Piece.cc
  4836. * src/Piece.h
  4837. * src/PieceSelector.h
  4838. * src/RarestPieceSelector.cc
  4839. * src/RarestPieceSelector.h
  4840. * src/Util.cc
  4841. * src/Util.h
  4842. * src/bitfield.h
  4843. * test/BitfieldManTest.cc
  4844. * test/LongestSequencePieceSelectorTest.cc
  4845. * test/Makefile.am
  4846. * test/RarestPieceSelectorTest.cc
  4847. * test/UtilTest.cc
  4848. * test/bitfieldTest.cc
  4849. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Made accepted socket non-block.
  4851. * src/FtpNegotiationCommand.cc
  4852. * src/HttpListenCommand.cc
  4853. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4854. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4855. * src/AbstractSingleDiskAdaptor.cc
  4856. * src/DefaultPieceStorage.cc
  4857. * src/DiskAdaptor.h
  4858. * src/DiskAdaptor.h
  4859. * src/MultiFileAllocationIterator.cc
  4860. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4861. Run
  4862. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4863. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4864. it doesn't need to be called every time when
  4865. DefaultBtInteractive::doInteractionProcessing() is called.
  4866. * src/DefaultBtInteractive.cc
  4867. * src/DefaultBtInteractive.h
  4868. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4869. Documented 'falloc' in man page.
  4870. * doc/aria2c.1.txt
  4871. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Updated doc
  4873. * src/usage_text.h
  4874. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4876. allocation mode uses posix_fallocate() system call to allocate
  4877. file on disk. If you are using newer file systems such as ext4
  4878. (with extents support), btrfs or xfs, 'falloc' is your best
  4879. choice. It allocates large(few GiB) files almost instantly. Don't
  4880. use 'falloc' with legacy file systems such as ext3 because it
  4881. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4882. until allocation finishes. 'falloc' may not be available if your
  4883. system doesn't have posix_fallocate() system call.
  4884. * configure.ac
  4885. * src/AbstractDiskWriter.cc
  4886. * src/AbstractDiskWriter.h
  4887. * src/AbstractSingleDiskAdaptor.cc
  4888. * src/BinaryStream.h
  4889. * src/BtCheckIntegrityEntry.cc
  4890. * src/ByteArrayDiskWriter.h
  4891. * src/CheckIntegrityEntry.cc
  4892. * src/CheckIntegrityEntry.h
  4893. * src/DefaultPieceStorage.cc
  4894. * src/DiskAdaptor.cc
  4895. * src/DiskAdaptor.h
  4896. * src/DiskWriter.h
  4897. * src/FallocFileAllocationIterator.cc
  4898. * src/FallocFileAllocationIterator.h
  4899. * src/FileAllocationEntry.cc
  4900. * src/FileAllocationEntry.h
  4901. * src/Makefile.am
  4902. * src/MultiFileAllocationIterator.cc
  4903. * src/MultiFileAllocationIterator.h
  4904. * src/OptionHandlerFactory.cc
  4905. * src/RequestGroup.cc
  4906. * src/StreamCheckIntegrityEntry.cc
  4907. * src/prefs.cc
  4908. * src/prefs.h
  4909. * src/usage_text.h
  4910. * test/FallocFileAllocationIteratorTest.cc
  4911. * test/Makefile.am
  4912. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. Removed duplicate enableDirectIO() call.
  4914. * src/MultiFileAllocationIterator.cc
  4915. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4916. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4917. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4918. cost of std::rotate().
  4919. * src/RarestPieceSelector.cc
  4920. * src/RarestPieceSelector.h
  4921. * test/RarestPieceSelectorTest.cc
  4922. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4923. Updated usage doc for --bt-tracker-interval option.
  4924. * src/usage_text.h
  4925. * doc/aria2c.1.txt
  4926. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4927. Documented --bt-tracker-interval option in man page.
  4928. * doc/aria2c.1.txt
  4929. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Added an option to specify the interval between tracker requests.
  4931. If non-zero value is specified, aria2 uses it and ignores the
  4932. interval value in the response of tracker. If zero is specified,
  4933. aria2 determines the inteval value based on the tarcker response
  4934. and download progress.
  4935. * src/DefaultBtAnnounce.cc
  4936. * src/DefaultBtAnnounce.h
  4937. * src/OptionHandlerFactory.cc
  4938. * src/RequestGroup.cc
  4939. * src/prefs.cc
  4940. * src/prefs.h
  4941. * src/usage_text.h
  4942. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4943. Added operator+=, operator-=, operator-
  4944. * src/TransferStat.cc
  4945. * src/TransferStat.h
  4946. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Refactored RarestPieceSelector to reduce CPU load, especially for
  4948. addPieceStats.
  4949. * src/RarestPieceSelector.cc
  4950. * src/RarestPieceSelector.h
  4951. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4952. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4953. getAllMissingBlockIndexes to reduce a call to
  4954. array_function_base::operator[].
  4955. * src/BitfieldMan.cc
  4956. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Cached TransferStat/download speed to avoid to sum them up in each
  4958. call.
  4959. * src/DefaultPeerStorage.cc
  4960. * src/DefaultPeerStorage.h
  4961. * src/SegmentMan.cc
  4962. * src/SegmentMan.h
  4963. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Typedefed cuid_t as int32_t in Command.h
  4965. * src/CUIDCounter.h
  4966. * src/Command.cc
  4967. * src/Command.h
  4968. * src/DownloadEngine.cc
  4969. * src/DownloadEngine.h
  4970. * src/PeerStat.h
  4971. * src/SegmentMan.cc
  4972. * src/SegmentMan.h
  4973. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Reduced the number of calls to PeerStorage::calculateStat() and
  4975. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4976. transfer rate.
  4977. * src/DefaultBtInteractive.cc
  4978. * src/DefaultBtMessageDispatcher.cc
  4979. * src/DefaultPeerStorage.cc
  4980. * src/DefaultPeerStorage.h
  4981. * src/DownloadCommand.cc
  4982. * src/DownloadEngine.cc
  4983. * src/PeerStorage.h
  4984. * src/SegmentMan.cc
  4985. * src/SegmentMan.h
  4986. * test/MockPeerStorage.h
  4987. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4988. Prepended _dir+"/" after joining path elements in torrent file.
  4989. * src/DefaultBtContext.cc
  4990. * test/DefaultBtContextTest.cc
  4991. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Added missing IndexBtMessageValidator.h
  4993. * src/Makefile.am
  4994. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4996. Chinese translations. Thank you for contributing our project.
  4997. * po/id.po
  4998. * po/it.po
  4999. * po/ru.po
  5000. * po/uk.po
  5001. * po/zh_CN.po
  5002. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5003. Updated README
  5004. * README
  5005. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5006. Bump up version number to 1.3.0
  5007. * configure.ac
  5008. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5009. Updated doc
  5010. * src/DefaultBtContext.h
  5011. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Slice/joinPath for name of single torrent.
  5013. * src/DefaultBtContext.cc
  5014. * test/DefaultBtContextTest.cc
  5015. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Updated man page: Documented --dry-run and --index-out
  5017. options. Changed the default value of --uri-selector and
  5018. --http-auth-challenge options. Removed --direct-file-mapping
  5019. option. Added example for --index-out
  5020. * doc/aria2c.1.txt
  5021. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5022. Updated TEXT_DRY_RUN
  5023. * src/usage_text.h
  5024. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5025. Changed the default value of --uri-selector option from 'inorder'
  5026. to 'feedback'
  5027. * src/OptionHandlerFactory.cc
  5028. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Included current URI in exception message.
  5030. * src/AbstractCommand.cc
  5031. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Renamed ServerStatURISelector as FeedbackURISelector.
  5033. * src/FeedbackURISelector.cc
  5034. * src/FeedbackURISelector.h
  5035. * src/Makefile.am
  5036. * src/RequestGroupMan.cc
  5037. * src/ServerStatURISelector.cc
  5038. * src/ServerStatURISelector.h
  5039. * test/FeedbackURISelectorTest.cc
  5040. * test/Makefile.am
  5041. * test/ServerStatURISelectorTest.cc
  5042. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5044. all URIs are tested and their timeout is not reached.
  5045. * src/AdaptiveURISelector.cc
  5046. * src/AdaptiveURISelector.h
  5047. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5048. Changed the default value of --http-auth-challenge option to false.
  5049. * src/OptionHandlerFactory.cc
  5050. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5051. Reuse URIs when all unused URIs run out.
  5052. * src/OptionHandlerFactory.cc
  5053. * src/RequestGroup.cc
  5054. * src/prefs.cc
  5055. * src/prefs.h
  5056. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5057. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5058. and BtRejectMessage are derived from RangeBtMessage class.
  5059. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5060. derived from IndexBtMessage class. BtChokeMessage,
  5061. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5062. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5063. ZeroBtMessage class.
  5064. * src/AbstractBtMessage.cc
  5065. * src/AbstractBtMessage.h
  5066. * src/BtAllowedFastMessage.cc
  5067. * src/BtAllowedFastMessage.h
  5068. * src/BtAllowedFastMessageValidator.h: Removed
  5069. * src/BtBitfieldMessage.cc
  5070. * src/BtBitfieldMessage.h
  5071. * src/BtCancelMessage.cc
  5072. * src/BtCancelMessage.h
  5073. * src/BtCancelMessageValidator.h: Removed
  5074. * src/BtChokeMessage.cc
  5075. * src/BtChokeMessage.h
  5076. * src/BtExtendedMessage.cc
  5077. * src/BtExtendedMessage.h
  5078. * src/BtHandshakeMessage.cc
  5079. * src/BtHandshakeMessage.h
  5080. * src/BtHaveAllMessage.cc
  5081. * src/BtHaveAllMessage.h
  5082. * src/BtHaveMessage.cc
  5083. * src/BtHaveMessage.h
  5084. * src/BtHaveMessageValidator.h: Removed
  5085. * src/BtHaveNoneMessage.cc
  5086. * src/BtHaveNoneMessage.h
  5087. * src/BtInterestedMessage.cc
  5088. * src/BtInterestedMessage.h
  5089. * src/BtKeepAliveMessage.cc
  5090. * src/BtKeepAliveMessage.h
  5091. * src/BtNotInterestedMessage.cc
  5092. * src/BtNotInterestedMessage.h
  5093. * src/BtPieceMessage.cc
  5094. * src/BtPieceMessage.h
  5095. * src/BtPortMessage.cc
  5096. * src/BtPortMessage.h
  5097. * src/BtRejectMessage.cc
  5098. * src/BtRejectMessage.h
  5099. * src/BtRejectMessageValidator.h: Removed
  5100. * src/BtRequestMessage.cc
  5101. * src/BtRequestMessage.h
  5102. * src/BtRequestMessageValidator.h: Removed
  5103. * src/BtSuggestPieceMessage.cc
  5104. * src/BtSuggestPieceMessage.h
  5105. * src/BtSuggestPieceMessageValidator.h: Removed
  5106. * src/BtUnchokeMessage.cc
  5107. * src/BtUnchokeMessage.h
  5108. * src/DefaultBtMessageFactory.cc
  5109. * src/IndexBtMessage.cc
  5110. * src/IndexBtMessage.h
  5111. * src/IndexBtMessageValidator.h
  5112. * src/Makefile.am
  5113. * src/PeerMessageUtil.cc
  5114. * src/PeerMessageUtil.h
  5115. * src/RangeBtMessage.cc
  5116. * src/RangeBtMessage.h
  5117. * src/RangeBtMessageValidator.h
  5118. * src/SimpleBtMessage.cc
  5119. * src/SimpleBtMessage.h
  5120. * src/ZeroBtMessage.cc
  5121. * src/ZeroBtMessage.h
  5122. * test/BtRequestMessageTest.cc
  5123. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Reverted usage_text.h to r1093 to avoid to lose translated
  5125. messages.
  5126. * src/usage_text.h
  5127. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5128. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5129. declared as non-const previously is now const and defined in class
  5130. definition.
  5131. * src/AbstractBtMessage.cc
  5132. * src/AbstractBtMessage.h
  5133. * src/BtAllowedFastMessage.cc
  5134. * src/BtAllowedFastMessage.h
  5135. * src/BtBitfieldMessage.h
  5136. * src/BtCancelMessage.cc
  5137. * src/BtCancelMessage.h
  5138. * src/BtChokeMessage.cc
  5139. * src/BtChokeMessage.h
  5140. * src/BtExtendedMessage.cc
  5141. * src/BtExtendedMessage.h
  5142. * src/BtHandshakeMessage.cc
  5143. * src/BtHandshakeMessage.h
  5144. * src/BtHaveAllMessage.cc
  5145. * src/BtHaveAllMessage.h
  5146. * src/BtHaveMessage.cc
  5147. * src/BtHaveMessage.h
  5148. * src/BtHaveNoneMessage.cc
  5149. * src/BtHaveNoneMessage.h
  5150. * src/BtInterestedMessage.cc
  5151. * src/BtInterestedMessage.h
  5152. * src/BtKeepAliveMessage.cc
  5153. * src/BtKeepAliveMessage.h
  5154. * src/BtMessage.h
  5155. * src/BtNotInterestedMessage.cc
  5156. * src/BtNotInterestedMessage.h
  5157. * src/BtPieceMessage.h
  5158. * src/BtPortMessage.cc
  5159. * src/BtPortMessage.h
  5160. * src/BtRejectMessage.cc
  5161. * src/BtRejectMessage.h
  5162. * src/BtRequestMessage.cc
  5163. * src/BtRequestMessage.h
  5164. * src/BtSuggestPieceMessage.cc
  5165. * src/BtSuggestPieceMessage.h
  5166. * src/BtUnchokeMessage.cc
  5167. * src/BtUnchokeMessage.h
  5168. * src/SimpleBtMessage.cc
  5169. * src/SimpleBtMessage.h
  5170. * test/MockBtMessage.h
  5171. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Use FileEntry::exists()
  5173. * src/MultiDiskAdaptor.cc
  5174. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5175. Added exists()
  5176. * src/FileEntry.cc
  5177. * src/FileEntry.h
  5178. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Added missing prefix dir.
  5180. * src/download_helper.cc
  5181. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5183. * src/CopyDiskAdaptor.cc: Removed
  5184. * src/CopyDiskAdaptor.h: Removed
  5185. * src/DefaultPieceStorage.cc
  5186. * src/Makefile.am
  5187. * src/OptionHandlerFactory.cc
  5188. * src/prefs.cc
  5189. * src/prefs.h
  5190. * src/usage_text.h
  5191. * test/CopyDiskAdaptorTest.cc: Removed
  5192. * test/Makefile.am
  5193. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5194. Rewritten isSameFileBeingDownloaded()
  5195. * src/RequestGroupMan.cc
  5196. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Removed getName() from DownloadContext. getName() is declared in
  5198. BtContext.
  5199. * src/BtContext.h
  5200. * src/DownloadContext.h
  5201. * src/SingleFileDownloadContext.cc
  5202. * src/SingleFileDownloadContext.h
  5203. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5204. in AbstractSingleDiskAdaptor.
  5205. * src/AbstractSingleDiskAdaptor.h
  5206. * src/DiskAdaptor.h
  5207. * src/MultiDiskAdaptor.h
  5208. * src/RequestGroup.cc
  5209. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5210. MultiDiskAdaptor.
  5211. * src/DefaultPieceStorage.cc
  5212. * src/MultiDiskAdaptor.cc
  5213. * src/MultiDiskAdaptor.h
  5214. * test/MultiDiskAdaptorTest.cc
  5215. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. FileEntry::getPath() contains store(top level) directory to
  5217. simplify path handling operation. In the previous implementation,
  5218. store directory is concatenated to FileEntry::getPath() in
  5219. DownloadContext.
  5220. * src/BtDependency.cc
  5221. * src/BtPostDownloadHandler.cc
  5222. * src/CopyDiskAdaptor.cc
  5223. * src/DefaultBtContext.cc
  5224. * src/DirectDiskAdaptor.cc
  5225. * src/FileEntry.cc
  5226. * src/FileEntry.h
  5227. * src/FtpNegotiationCommand.cc
  5228. * src/HttpResponse.cc
  5229. * src/HttpResponseCommand.cc
  5230. * src/Metalink2RequestGroup.cc
  5231. * src/MultiDiskAdaptor.cc
  5232. * src/MultiDiskAdaptor.h
  5233. * src/MultiFileAllocationIterator.cc
  5234. * src/RequestGroup.cc
  5235. * src/SingleFileDownloadContext.cc
  5236. * src/SingleFileDownloadContext.h
  5237. * src/download_helper.cc
  5238. * test/BtDependencyTest.cc
  5239. * test/CopyDiskAdaptorTest.cc
  5240. * test/DefaultBtContextTest.cc
  5241. * test/DefaultBtProgressInfoFileTest.cc
  5242. * test/DirectDiskAdaptorTest.cc
  5243. * test/DownloadHelperTest.cc
  5244. * test/FileEntryTest.cc
  5245. * test/MultiDiskAdaptorTest.cc
  5246. * test/MultiFileAllocationIteratorTest.cc
  5247. * test/RequestGroupTest.cc
  5248. * test/SingleFileDownloadContextTest.cc
  5249. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5250. Fixed compiler warning
  5251. * src/download_helper.cc
  5252. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Throw exception if same infohash torrent is now downloading.
  5254. * src/RequestGroup.cc
  5255. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Added --dry-run option. In this mode, aria2 just checks whether
  5257. the remote file is available and doesn't download data. This
  5258. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5259. are canceled in this mode.
  5260. * src/FtpNegotiationCommand.cc
  5261. * src/HttpResponseCommand.cc
  5262. * src/HttpResponseCommand.h
  5263. * src/OptionHandlerFactory.cc
  5264. * src/RequestGroup.cc
  5265. * src/RequestGroupMan.cc
  5266. * src/prefs.cc
  5267. * src/prefs.h
  5268. * src/usage_text.h
  5269. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Fixed compiler waring
  5271. * test/UriListParserTest.cc
  5272. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Parse options in -i list using OptionParser.
  5274. * src/UriListParser.cc
  5275. * src/UriListParser.h
  5276. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Don't reset URI in retry to avoid additional round trips because
  5278. of redirects.
  5279. * src/AbstractCommand.cc
  5280. * src/OptionHandlerFactory.cc
  5281. * src/prefs.cc
  5282. * src/prefs.h
  5283. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Declared hide() in OptionHandler.
  5285. * src/NameMatchOptionHandler.h
  5286. * src/OptionHandler.h
  5287. * src/OptionHandlerImpl.h
  5288. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5289. Updated doc
  5290. * src/Peer.h
  5291. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5292. Added log message in setStatusInternal()
  5293. * src/ServerStat.cc
  5294. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5296. effectively exclude failed server.
  5297. * src/AbstractCommand.cc
  5298. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5299. Added --index-out option to specify each file path for torrent.
  5300. Here index shown in --show-files option is used to specify which
  5301. file path should be altered. For example, to change the file path
  5302. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5303. option multiple times: --index-out=1=aria2.tar.bz2
  5304. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5305. available. This option can be specified in -i list.
  5306. * src/DefaultBtContext.cc
  5307. * src/DefaultBtContext.h
  5308. * src/MultiDiskAdaptor.cc
  5309. * src/MultiDiskAdaptor.h
  5310. * src/MultiFileAllocationIterator.cc
  5311. * src/OptionHandlerFactory.cc
  5312. * src/OptionHandlerImpl.h
  5313. * src/Util.cc
  5314. * src/Util.h
  5315. * src/download_helper.cc
  5316. * src/prefs.cc
  5317. * src/prefs.h
  5318. * src/usage_text.h
  5319. * test/DefaultBtContextTest.cc
  5320. * test/MultiDiskAdaptorTest.cc
  5321. * test/MultiFileAllocationIteratorTest.cc
  5322. * test/UtilTest.cc
  5323. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Use Util::pathJoin()
  5325. * src/MetalinkParserController.cc
  5326. * test/test.xml
  5327. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Use Util::pathJoin()
  5329. * src/DefaultBtContext.cc
  5330. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Added Util::pathJoin()
  5332. * src/Util.h
  5333. * test/UtilTest.cc
  5334. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Applied basename function to remove directory element in
  5336. content-disposition value.
  5337. Return empty string if content-disposition value is ".." or ".".
  5338. * src/Util.cc
  5339. * test/UtilTest.cc
  5340. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Added --max-overall-download-limit in man page.
  5342. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5343. * doc/aria2c.1.txt
  5344. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5345. Added --max-overall-download-limit option. Now --max-upload-limit
  5346. option is not ignored when --max-overall-upload-limit option has
  5347. non-zero value. aria2 checks download(upload) speed in the order:
  5348. first checks overall speed limit and if it is not exceeded, then
  5349. checks speed limit per download. Thus you can specify both
  5350. value. For example, set --max-overall-download-limit=1M and
  5351. --max-download-limit=500K to prevent from one download from eating
  5352. all overall speed limit.
  5353. * src/DefaultBtInteractive.cc
  5354. * src/DefaultBtInteractive.h
  5355. * src/DefaultBtMessageDispatcher.cc
  5356. * src/DefaultBtMessageDispatcher.h
  5357. * src/DownloadCommand.cc
  5358. * src/DownloadCommand.h
  5359. * src/FtpNegotiationCommand.cc
  5360. * src/HttpResponseCommand.cc
  5361. * src/OptionHandlerFactory.cc
  5362. * src/PeerInteractionCommand.cc
  5363. * src/RequestGroup.cc
  5364. * src/RequestGroup.h
  5365. * src/RequestGroupMan.cc
  5366. * src/RequestGroupMan.h
  5367. * src/prefs.cc
  5368. * src/prefs.h
  5369. * src/usage_text.h
  5370. * test/DefaultBtMessageDispatcherTest.cc
  5371. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Documented select-file option in Input File section.
  5373. Documented --http-auth-challenge option.
  5374. * doc/aria2c.1.txt
  5375. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Now select-file can be specified in the uri list(-i list).
  5377. * src/BtContext.cc
  5378. * src/BtContext.h
  5379. * src/RequestGroup.cc
  5380. * src/Sequence.h
  5381. * src/download_helper.cc
  5382. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5383. Made the upper value of --max-concurrent-downloads options unlimited.
  5384. * src/OptionHandlerFactory.cc
  5385. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Fixed the bug that disk writer is not created even if it shares
  5387. same piece with the preceding file if the length of previous file
  5388. is 0.
  5389. * src/MultiDiskAdaptor.cc
  5390. * test/MultiDiskAdaptorTest.cc
  5391. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. In BitTorrent, Open files in read-only mode for hash check. After
  5393. that, re-open file in read/write mode only when the download is
  5394. not finished.
  5395. * src/AbstractDiskWriter.cc
  5396. * src/AbstractDiskWriter.h
  5397. * src/AbstractSingleDiskAdaptor.cc
  5398. * src/AbstractSingleDiskAdaptor.h
  5399. * src/BtCheckIntegrityEntry.cc
  5400. * src/DiskAdaptor.h
  5401. * src/DiskWriter.h
  5402. * src/MultiDiskAdaptor.cc
  5403. * src/MultiDiskAdaptor.h
  5404. * src/RequestGroup.cc
  5405. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Added --http-auth-challenge option. If it is set to true(by
  5407. default), aria2 sends HTTP authorization header only when it is
  5408. requested by the server. If false is set, then authorization
  5409. header is always sent to the server. This is useful for servers
  5410. that don't respond 401 code when authentication is required.
  5411. There is an exception: if username and password are embedded in
  5412. URI, authorization header is always sent to the server regardless
  5413. of this option.
  5414. * src/AuthConfigFactory.cc
  5415. * src/HttpSkipResponseCommand.cc
  5416. * src/OptionHandlerFactory.cc
  5417. * src/prefs.cc
  5418. * src/prefs.h
  5419. * src/usage_text.h
  5420. * test/AuthConfigFactoryTest.cc
  5421. * test/HttpRequestTest.cc
  5422. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. * Release 1.2.0
  5424. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5426. Thanks to all translators.
  5427. * po/es.po
  5428. * po/ja.po
  5429. * po/ru.po
  5430. * po/uk.po
  5431. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Call deleteSocketForReadCheck() before socket is closed.
  5433. * src/HttpListenCommand.cc
  5434. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Defined virtual destructor for BObject.
  5436. * src/bencode.h
  5437. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Rewritten BDE to make it efficient.
  5439. * src/bencode.cc
  5440. * src/bencode.h
  5441. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5442. Removed function throw list.
  5443. * src/bencode.cc
  5444. * src/bencode.h
  5445. * test/BencodeTest.cc
  5446. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Enclosed all URLs in double quotes in command-line examples.
  5448. * doc/aria2c.1.txt
  5449. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Updated reference/see also section.
  5451. * README
  5452. * doc/aria2c.1.txt
  5453. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. Reorganized man page based on man man-pages.
  5455. * doc/aria2c.1.txt
  5456. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5458. because same documents are available in man page. Added
  5459. References section.
  5460. * README
  5461. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5462. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5463. PERFORMANCE PROFILE section.
  5464. * doc/aria2c.1.txt
  5465. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Rewritten the section for configuration file.
  5467. * README
  5468. * doc/aria2c.1.txt
  5469. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Fixed the segmentation fault during execution of choking algorithm
  5471. in leecher state because of broken compare operator
  5472. implementation.
  5473. * src/BtLeecherStateChoke.cc
  5474. * src/BtLeecherStateChoke.h
  5475. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Open file in binary mode.
  5477. * src/CookieStorage.cc
  5478. * src/DHTSetup.cc
  5479. * src/DHTUtil.cc
  5480. * src/Netrc.cc
  5481. * src/NsCookieParser.cc
  5482. * src/ProtocolDetector.cc
  5483. * src/RequestGroupMan.cc
  5484. * src/Signature.cc
  5485. * src/bencode.cc
  5486. * src/download_helper.cc
  5487. * src/option_processing.cc
  5488. * test/CookieParserTest.cc
  5489. * test/DefaultBtProgressInfoFileTest.cc
  5490. * test/FileTest.cc
  5491. * test/GZipDecoderTest.cc
  5492. * test/RequestGroupManTest.cc
  5493. * test/SignatureTest.cc
  5494. * test/SingleFileAllocationIteratorTest.cc
  5495. * test/UriListParserTest.cc
  5496. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5497. Removed operator[] because it is ambiguous with built-in []
  5498. operator.
  5499. * src/array_fun.h
  5500. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Fixed compile error
  5502. * src/OptionParser.cc
  5503. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5504. Added missing call to arrayWrapperConst
  5505. * test/array_funTest.cc
  5506. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5507. Use array_wrapper instead of array_ptr.
  5508. * src/DHTRoutingTableDeserializer.cc
  5509. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5510. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5511. * src/array_fun.h
  5512. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Added array_wrapper template.
  5514. * src/array_fun.h
  5515. * test/array_funTest.cc
  5516. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5517. Use operator T* of array_ptr.
  5518. * src/OptionParser.cc
  5519. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Use localhost instead of 127.0.0.1
  5521. * test/FtpConnectionTest.cc
  5522. * test/MSEHandshakeTest.cc
  5523. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5524. Added operator T*
  5525. * src/array_fun.h
  5526. * test/array_funTest.cc
  5527. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Use dynamically allocated char array to detect memory access
  5529. violation.
  5530. * src/DHTRoutingTableDeserializer.cc
  5531. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5532. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5533. defined.
  5534. * src/PeerMessageUtil.cc
  5535. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5536. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5537. * configure.ac
  5538. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5539. Added a check to see struct sockaddr_in has sin_len member.
  5540. * configure.ac
  5541. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Fixed buffer overrun.
  5543. * src/DHTRoutingTableDeserializer.cc
  5544. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Added LL for long long int constant.
  5546. * test/FtpConnectionTest.cc
  5547. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5548. Casted to unsigned int to suppress compiler warning on netbsd.
  5549. * src/BtRuntime.h
  5550. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5551. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5552. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5553. type time_t.
  5554. * src/SimpleLogger.cc
  5555. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Added test for FtpConnection::receiveSizeResponse().
  5557. * test/FtpConnectionTest.cc
  5558. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5559. Fix epoll error on the old kernel 2.6.8 or ealier.
  5560. * src/EpollEventPoll.cc
  5561. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5562. Use Util::parseLLInt instead of sscanf for portability. The
  5563. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5564. * src/FtpConnection.cc
  5565. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5567. block. It should not filter anything.
  5568. * src/BitfieldMan.cc
  5569. * src/ConsoleStatCalc.cc
  5570. * test/BitfieldManTest.cc
  5571. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Fixed the bug that the boolean options that don't take arguments
  5573. don't work.
  5574. * src/OptionHandlerImpl.h
  5575. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Fixed broken selected file BitTorrent download.
  5577. * src/MultiDiskAdaptor.cc
  5578. * test/MultiDiskAdaptorTest.cc
  5579. * test/MultiFileAllocationIteratorTest.cc
  5580. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Fixed #define guard for EpollEventPoll
  5582. * src/EpollEventPoll.h
  5583. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5584. Wait 2 seconds. 1 second is sometimes not enough.
  5585. * test/TimeSeedCriteriaTest.cc
  5586. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5587. Use localhost instead of 127.0.0.1.
  5588. * test/DHTConnectionImplTest.cc
  5589. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5590. Suppressed compiler warning.
  5591. * src/AdaptiveURISelector.cc
  5592. * src/DefaultPieceStorage.cc
  5593. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5594. Defined virtual destructor.
  5595. * src/MetalinkParserState.h
  5596. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5597. Give NULL for second argument of getaddrinfo instead of "0".
  5598. * src/NameResolver.cc
  5599. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5601. included strptime doesn't parse data for this format.
  5602. * src/FtpConnection.cc
  5603. * test/FtpConnectionTest.cc
  5604. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Removed tests giving -1 for unsigned argument.
  5606. * test/SingleFileDownloadContextTest.cc
  5607. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5608. Don't use sha256 in tests because it might not be supported by the
  5609. SSL library.
  5610. * test/MetalinkProcessorTest.cc
  5611. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Removed tests giving -1 for unsigned argument.
  5613. * test/AlphaNumberDecoratorTest
  5614. * test/BitfieldManTest.cc
  5615. * test/DefaultBtContextTest.cc
  5616. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. Fixed compile error without libcares when epoll is available.
  5618. * src/EpollEventPoll.cc
  5619. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5620. Included fstream instead of iostream.
  5621. * test/SignatureTest.cc
  5622. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Removed #include <algorithm>
  5624. * test/RequestGroupTest.cc
  5625. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5627. using RequestGroup::extractURIResult().
  5628. * src/AdaptiveURISelector.cc
  5629. * src/RequestGroup.cc
  5630. * src/RequestGroup.h
  5631. * test/RequestGroupTest.cc
  5632. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5633. Added tests for array_ptr.
  5634. * test/array_funTest.cc
  5635. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Don't send ip parameter to a tracker if ip parameter is empty
  5637. string.
  5638. * src/DefaultBtAnnounce.cc
  5639. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Adjusted line feed.
  5641. * src/version_usage.cc
  5642. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5643. Print tags, possible values when OptionHandlerException is caught.
  5644. * src/option_processing.cc
  5645. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Changed the message for FatalException.
  5647. * src/OptionParser.cc
  5648. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5649. Documented --bt-external-ip option in man page. Updated man pages
  5650. for --proxy-method option.
  5651. * doc/aria2c.1.txt
  5652. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5653. Use GET method for FTP via HTTP proxy.
  5654. * src/FtpInitiateConnectionCommand.cc
  5655. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. Changed the default value of --proxy-method option from 'tunnel'
  5657. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5658. option.
  5659. * src/AbstractCommand.cc
  5660. * src/AbstractCommand.h
  5661. * src/FtpInitiateConnectionCommand.cc
  5662. * src/HttpDownloadCommand.cc
  5663. * src/HttpInitiateConnectionCommand.cc
  5664. * src/HttpInitiateConnectionCommand.h
  5665. * src/OptionHandlerFactory.cc
  5666. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5667. Initialized _logger
  5668. * src/SelectEventPoll.cc
  5669. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. Defined a copy constructor for the same type.
  5671. * src/SharedHandle.h
  5672. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5673. Added OptionParser::parseArg() which internally uses getopt_long
  5674. to parse command-line options. All command-line options are now
  5675. configured by OptionHandler. No manual editing of struct option*
  5676. is required any more.
  5677. * src/NameMatchOptionHandler.h
  5678. * src/OptionHandler.h
  5679. * src/OptionHandlerFactory.cc
  5680. * src/OptionHandlerImpl.h
  5681. * src/OptionParser.cc
  5682. * src/OptionParser.h
  5683. * src/array_fun.h
  5684. * src/main.cc
  5685. * src/option_processing.cc
  5686. * test/OptionHandlerTest.cc
  5687. * test/OptionParserTest.cc
  5688. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5689. Fixed configure error with --disable-epoll
  5690. * configure.ac
  5691. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5692. Fixed compile error when HAVE_EPOLL is not defined.
  5693. Fixed linker error on bigendian systems.
  5694. * src/SocketCore.cc
  5695. * src/SocketCore.h
  5696. * test/DefaultBtProgressInfoFileTest.cc
  5697. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Added --bt-external-ip option. You can specify the external IP
  5699. address to report to a BitTorrent tracker. Although this function
  5700. is named 'external', it can accept any kind of IP addresses.
  5701. * src/DefaultBtAnnounce.cc
  5702. * src/OptionHandlerFactory.cc
  5703. * src/option_processing.cc
  5704. * src/prefs.cc
  5705. * src/prefs.h
  5706. * src/usage_text.h
  5707. * test/DefaultBtAnnounceTest.cc
  5708. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5709. Extracted the algorithm to find the longest incremental sequence
  5710. as max_sequence template.
  5711. * src/LongestSequencePieceSelector.cc
  5712. * src/a2algo.h
  5713. * test/Makefile.am
  5714. * test/a2algoTest.cc
  5715. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5717. * src/usage_text.h
  5718. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Updated doc for --uri-selector, --http-server-listen-port and
  5720. --enable-http-server option. Documented --event-poll option.
  5721. * doc/aria2c.1.txt
  5722. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5723. Updated doc for --enable-http-server.
  5724. * src/usage_text.h
  5725. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Documented --http-server-listen-port and --enable-http-server in
  5727. man page.
  5728. * doc/aria2c.1.txt
  5729. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5730. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5731. translations. Thanks to all translators.
  5732. * po/es.po
  5733. * po/id.po
  5734. * po/it.po
  5735. * po/ru.po
  5736. * po/uk.po
  5737. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5738. Bump up version number to 1.2.0
  5739. * configure.ac
  5740. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5741. BtContext::getAnnounceTiers() now returns const reference.
  5742. * src/BtContext.h
  5743. * src/DefaultBtContext.cc
  5744. * src/DefaultBtContext.h
  5745. * test/MockBtContext.h
  5746. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5747. Change the number of retries for tracker request based on the
  5748. number of available tracker in a torrent file.
  5749. * src/TrackerWatcherCommand.cc
  5750. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5751. Added _maxTries property to RequestGroup and assign the option
  5752. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5753. RequestGroup::getMaxTries() instead of
  5754. Option::getAsInt(PREF_MAX_TRIES).
  5755. * src/AbstractCommand.cc
  5756. * src/RequestGroup.cc
  5757. * src/RequestGroup.h
  5758. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5760. Mandriva. I modified the patch: make RequestGroup have the
  5761. timeout value and AdaptiveURISelector directly modifies that
  5762. value.
  5763. * src/AbstractCommand.cc
  5764. * src/AdaptiveURISelector.cc
  5765. * src/AdaptiveURISelector.h
  5766. * src/FtpNegotiationCommand.cc
  5767. * src/RequestGroup.cc
  5768. * src/RequestGroup.h
  5769. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Fixed compiler warning
  5771. * test/IteratableChecksumValidatorTest.cc
  5772. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5774. integrated downloads. This PieceSelector subclass finds the
  5775. longest continuous sequence in the available missing pieces and
  5776. selects the last index of such sequence. This makes HTTP/FTP
  5777. connections less interrupted by the pieces obtained by BitTorrent
  5778. peers.
  5779. * src/DefaultPieceStorage.cc
  5780. * src/DefaultPieceStorage.h
  5781. * src/LongestSequencePieceSelector.cc
  5782. * src/LongestSequencePieceSelector.h
  5783. * src/Makefile.am
  5784. * src/PieceSelector.h
  5785. * src/RarestPieceSelector.h
  5786. * src/RequestGroup.cc
  5787. * test/BtDependencyTest.cc
  5788. * test/DefaultPieceStorageTest.cc
  5789. * test/IteratableChecksumValidatorTest.cc
  5790. * test/LongestSequencePieceSelectorTest.cc
  5791. * test/Makefile.am
  5792. * test/SegmentManTest.cc
  5793. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5794. Fixed the bug that the average speed is wrong in
  5795. http/ftp/BitTorrent integrated download. Only the download bytes
  5796. in BitTorrent were considered.
  5797. * src/RequestGroup.cc
  5798. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5799. Choose port for BitTorrent/DHT randomly from the specified range.
  5800. * src/DHTConnectionImpl.cc
  5801. * src/PeerListenCommand.cc
  5802. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5803. Send HTTP Authorization header only if it is requested by the
  5804. server(response 401). There are some exceptions. The authorization
  5805. header for proxy is always sent if it is available without request
  5806. by the server. If username/password is specified in the URI, it
  5807. is immediately sent to the server without request by the server.
  5808. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5809. SharedHandle<AuthConfig>().
  5810. NetrcAuthResolver::resolveAuthConfig() returns
  5811. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5812. * src/AbstractAuthResolver.cc
  5813. * src/AbstractProxyRequestCommand.cc
  5814. * src/AuthConfigFactory.cc
  5815. * src/AuthConfigFactory.h
  5816. * src/HttpConnection.cc
  5817. * src/HttpRequest.cc
  5818. * src/HttpRequest.h
  5819. * src/HttpResponse.cc
  5820. * src/HttpResponseCommand.cc
  5821. * src/HttpSkipResponseCommand.cc
  5822. * test/AuthConfigFactoryTest.cc
  5823. * test/HttpRequestTest.cc
  5824. * test/HttpResponseTest.cc
  5825. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5826. Remove leading "--" from help keyword and a substring after "="
  5827. from help keyword, so that one can query options by '-h--max-' or
  5828. '-hmax-peers=10'.
  5829. * src/option_processing.cc
  5830. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Rewritten PStringVisitor and its implementation.
  5832. * src/PStringBuildVisitor.cc
  5833. * src/PStringBuildVisitor.h
  5834. * src/PStringDatum.h
  5835. * src/PStringNumLoop.h
  5836. * src/PStringSegment.cc
  5837. * src/PStringSegment.h
  5838. * src/PStringSelect.h
  5839. * src/PStringVisitor.h
  5840. * src/download_helper.cc
  5841. * test/PStringBuildVisitorTest.cc
  5842. * test/ParameterizedStringParserTest.cc
  5843. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Persist connection between the built-in HTTP server and a client
  5845. if a client supports keep-alive. Fixed the bug that aria2 exits
  5846. when the HTTP server receives EOF from a client.
  5847. * src/HttpServer.cc
  5848. * src/HttpServer.h
  5849. * src/HttpServerCommand.cc
  5850. * src/HttpServerCommand.h
  5851. * src/HttpServerResponseCommand.cc
  5852. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Added experimental built-in HTTP server. Currently, when a client
  5854. accesses to the server, it responds with the current download
  5855. progress. By default, it is disabled. To enable the server, give
  5856. --enable-http-server option. To change the default port number
  5857. for the server to listen to, use --http-server-listen-port option.
  5858. The response HTML is very simple and refreshes it self each 1
  5859. second. Because of this refresh, you see flicker in normal web
  5860. browser such as Firefox. I recommend to use console-based browser
  5861. such as elinks, w3m. To connect to the server, run 'elinks
  5862. http://localhost:6800/' while running aria2. Please replace port
  5863. number '6800'(which is default) with your preference.
  5864. * src/DownloadEngineFactory.cc
  5865. * src/HttpHeader.cc
  5866. * src/HttpHeader.h
  5867. * src/HttpHeaderProcessor.cc
  5868. * src/HttpHeaderProcessor.h
  5869. * src/HttpListenCommand.cc
  5870. * src/HttpListenCommand.h
  5871. * src/HttpServer.cc
  5872. * src/HttpServer.h
  5873. * src/HttpServerCommand.cc
  5874. * src/HttpServerCommand.h
  5875. * src/HttpServerResponseCommand.cc
  5876. * src/HttpServerResponseCommand.h
  5877. * src/Makefile.am
  5878. * src/OptionHandlerFactory.cc
  5879. * src/Util.cc
  5880. * src/Util.h
  5881. * src/help_tags.h
  5882. * src/option_processing.cc
  5883. * src/prefs.cc
  5884. * src/prefs.h
  5885. * src/usage_text.h
  5886. * test/HttpHeaderProcessorTest.cc
  5887. * test/UtilTest.cc
  5888. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Removed.
  5890. * src/CheckIntegrityMan.cc
  5891. * src/FileAllocationMan.cc
  5892. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5893. Made (piece) hash check sequential for each RequestGroup because
  5894. simultaneous hash check is slower than sequential execution.
  5895. * src/CheckIntegrityCommand.cc
  5896. * src/CheckIntegrityDispatcherCommand.cc
  5897. * src/CheckIntegrityDispatcherCommand.h
  5898. * src/CheckIntegrityMan.h
  5899. * src/ConsoleStatCalc.cc
  5900. * src/DownloadCommand.cc
  5901. * src/DownloadEngine.cc
  5902. * src/DownloadEngine.h
  5903. * src/DownloadEngineFactory.cc
  5904. * src/Makefile.am
  5905. * src/Makefile.in
  5906. * src/RequestGroup.cc
  5907. * src/StatCalc.h
  5908. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5910. SequentialDispatcherCommand.
  5911. * src/FileAllocationDispatcherCommand.cc
  5912. * src/SequentialDispatcherCommand.h
  5913. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Rewritten FileAllocationDispatcherCommand using brand new
  5915. SequentialDispatcherCommand.
  5916. * src/DownloadEngineFactory.cc
  5917. * src/FileAllocationCommand.cc
  5918. * src/FileAllocationDispatcherCommand.cc
  5919. * src/FileAllocationDispatcherCommand.h
  5920. * src/Makefile.am
  5921. * src/SequentialDispatcherCommand.h
  5922. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5923. Replaced FileAllocationMan with
  5924. SequentialPicker<FileAllocationEntry>.
  5925. * src/BtCheckIntegrityEntry.cc
  5926. * src/ConsoleStatCalc.cc
  5927. * src/DownloadEngine.cc
  5928. * src/DownloadEngine.h
  5929. * src/DownloadEngineFactory.cc
  5930. * src/FileAllocationCommand.cc
  5931. * src/FileAllocationDispatcherCommand.cc
  5932. * src/FileAllocationMan.h
  5933. * src/Makefile.am
  5934. * src/SequentialPicker.h
  5935. * src/StatCalc.h
  5936. * src/StreamCheckIntegrityEntry.cc
  5937. * test/Makefile.am
  5938. * test/SequentialPickerTest.cc
  5939. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5940. Added doc for adaptive URI selector.
  5941. * doc/aria2c.1.txt
  5942. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5943. Added doc for adaptive URI selector.
  5944. * src/usage_text.h
  5945. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5946. Added doc for --bt-max-peers option.
  5947. * doc/aria2c.1.txt
  5948. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Added doc for --bt-hash-check-seed option.
  5950. * doc/aria2c.1.txt
  5951. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Documented exit codes.
  5953. * doc/aria2c.1.txt
  5954. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Added --bt-max-peers option to specify the maximum number of peers
  5956. per torrent. 0 means unlimited number of peers.
  5957. * src/ActivePeerConnectionCommand.cc
  5958. * src/BtRuntime.h
  5959. * src/DefaultPeerStorage.cc
  5960. * src/DefaultPeerStorage.h
  5961. * src/OptionHandlerFactory.cc
  5962. * src/RequestGroup.cc
  5963. * src/option_processing.cc
  5964. * src/prefs.cc
  5965. * src/prefs.h
  5966. * src/usage_text.h
  5967. * test/DefaultPeerStorageTest.cc
  5968. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5969. Added --bt-hash-check-seed option. If true is given to this
  5970. option, after hash check using --check-integrity option and file
  5971. is complete, continue to seed file. If you want to check file and
  5972. download it only when it is damaged or incomplete, set this option
  5973. to false. This option has effect only on BitTorrent download.
  5974. The default value is true(This is the same behavior with the
  5975. previous release).
  5976. * src/BtCheckIntegrityEntry.cc
  5977. * src/OptionHandlerFactory.cc
  5978. * src/option_processing.cc
  5979. * src/prefs.cc
  5980. * src/prefs.h
  5981. * src/usage_text.h
  5982. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Updated copyright year.
  5984. * src/version_usage.cc
  5985. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5987. * doc/aria2c.1.txt
  5988. * src/usage_text.h
  5989. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Made the max value of split option unlimited.
  5991. * doc/aria2c.1.txt
  5992. * src/OptionHandlerFactory.cc
  5993. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Fixed compile warning/error.
  5995. * src/DownloadResult.h
  5996. * src/HttpDownloadCommand.cc
  5997. * src/ServerStat.cc
  5998. * test/RequestGroupTest.cc
  5999. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6000. Added --event-poll option to select the method for polling events.
  6001. The available methods are "select" and "epoll". "epoll" is
  6002. available on Linux only. The earlier release has the compile
  6003. option to choose from these methods.
  6004. * configure.ac
  6005. * src/RequestGroupMan.cc
  6006. * src/OptionHandlerFactory.cc
  6007. * src/EpollEventPoll.h
  6008. * src/StreamFileAllocationEntry.cc
  6009. * src/a2io.h
  6010. * src/SelectEventPoll.h
  6011. * src/option_processing.cc
  6012. * src/prefs.h
  6013. * src/EpollEventPoll.cc
  6014. * src/EventPoll.h
  6015. * src/SocketCore.h
  6016. * src/Makefile.am
  6017. * src/main.cc
  6018. * src/DownloadEngine.h
  6019. * src/SelectEventPoll.cc
  6020. * src/DownloadEngine.cc
  6021. * src/SocketCore.cc
  6022. * src/DownloadEngineFactory.cc
  6023. * src/Makefile.in
  6024. * src/prefs.cc
  6025. * src/usage_text.h
  6026. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6027. Included RecoverableException.h from main.cc
  6028. * src/main.cc
  6029. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6031. now returns last error encountered in the HTTP/FTP downloads as a
  6032. exit status value. If all downloads finished successfully, aria2
  6033. returns 0. The error code is defined in src/DownloadResult.h.
  6034. The error occurred in the download currently in progress is not
  6035. reported as a last error. If no error has encountered but there
  6036. are in progress or waiting downloads, aria2 returns 7.
  6037. * src/AbstractCommand.cc
  6038. * src/DlAbortEx.h
  6039. * src/DlRetryEx.h
  6040. * src/DownloadCommand.cc
  6041. * src/DownloadFailureException.h
  6042. * src/DownloadResult.h
  6043. * src/FtpNegotiationCommand.cc
  6044. * src/HttpSkipResponseCommand.cc
  6045. * src/Makefile.am
  6046. * src/MultiUrlRequestInfo.cc
  6047. * src/MultiUrlRequestInfo.h
  6048. * src/RecoverableException.h
  6049. * src/RequestGroup.cc
  6050. * src/RequestGroup.h
  6051. * src/RequestGroupMan.cc
  6052. * src/RequestGroupMan.h
  6053. * src/URIResult.cc
  6054. * src/URIResult.h
  6055. * src/main.cc
  6056. * src/option_processing.cc
  6057. * test/RequestGroupTest.cc
  6058. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6059. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6060. patch adds AdaptiveURISelector, which selects one of the bests
  6061. mirrors for first and reserved connections. For supplementary
  6062. ones, it returns mirrors which has not been tested yet, and if
  6063. each of them already tested, returns mirrors which has to be
  6064. tested again. Otherwise, it doesn't return anymore mirrors.
  6065. * src/AdaptiveURISelector.cc
  6066. * src/AdaptiveURISelector.h
  6067. * src/FtpNegotiationCommand.cc
  6068. * src/HttpResponseCommand.cc
  6069. * src/Makefile.am
  6070. * src/Makefile.in
  6071. * src/OptionHandlerFactory.cc
  6072. * src/RequestGroup.cc
  6073. * src/RequestGroup.h
  6074. * src/RequestGroupMan.cc
  6075. * src/ServerStat.cc
  6076. * src/ServerStat.h
  6077. * src/ServerStatMan.cc
  6078. * src/SpeedCalc.cc
  6079. * src/URISelector.h
  6080. * src/prefs.cc
  6081. * src/prefs.h
  6082. * test/RequestGroupManTest.cc
  6083. * test/ServerStatManTest.cc
  6084. * test/ServerStatTest.cc
  6085. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6086. Fixed unit test error.
  6087. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6088. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6089. * Release 1.1.2
  6090. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6091. Updated Russian translation. Thanks to the translators.
  6092. * po/ru.po
  6093. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6094. Added the description of --use-head option to man page.
  6095. * doc/aria2c.1.txt
  6096. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6097. Bump up version number to 1.1.2
  6098. * configure.ac
  6099. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Added --use-head option to toggle whether HEAD method should be
  6101. used in the first HTTP request. By default aria2 uses HEAD method
  6102. as the first request. When the server doesn't recognize HEAD, then
  6103. give aria2 --use-head=false to force aria2 to use GET method
  6104. instead.
  6105. * src/OptionHandlerFactory.cc
  6106. * src/RequestGroupMan.cc
  6107. * src/option_processing.cc
  6108. * src/prefs.cc
  6109. * src/prefs.h
  6110. * src/usage_text.h
  6111. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6112. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6113. message is received before CHOKE message. The old implementation
  6114. doen't clear the use-bit of the piece when recieved REJECT
  6115. message.
  6116. * src/DefaultBtMessageDispatcher.cc
  6117. * test/DefaultBtMessageDispatcherTest.cc
  6118. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6119. * Release 1.1.1
  6120. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. Bump up version number to 1.1.1.
  6122. * configure.ac
  6123. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6124. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6125. is printed repeatedly.
  6126. * src/ConsoleStatCalc.cc
  6127. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6128. * Release 1.1.0
  6129. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6130. Added ifdef clause for conditional compilation.
  6131. * src/main.cc
  6132. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6134. translations. Thanks to all translators.
  6135. * po/ja.po
  6136. * po/ru.po
  6137. * po/uk.po
  6138. * po/zh_CN.po
  6139. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6140. Added the preceding ">>> " before the message "Printing the
  6141. contents of file..." to make the output more readable.
  6142. * src/main.cc
  6143. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6144. Added try-catch block in the loop in showFiles() to continue the
  6145. operation even if the exception occurred in one file.
  6146. * src/main.cc (showFiles)
  6147. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Made messages in showFiles() translatable.
  6149. * po/aria2.pot
  6150. * src/main.cc
  6151. * src/message.h
  6152. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. Print the contents of Torrent/Metalink files are printed without
  6154. -T/-M options.
  6155. * src/main.cc
  6156. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6157. Escaped '--' with '\--'
  6158. * README
  6159. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6160. Updated "How to build" section in README. Mentioned about
  6161. --with-ca-bundle compile option.
  6162. * README
  6163. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6164. Bump up version number to 1.1.0.
  6165. * configure.ac
  6166. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6167. Added a note for --dht-listen-port option.
  6168. * doc/aria2c.1.txt
  6169. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Update doc for --realtime-chunk-checksum option.
  6171. * doc/aria2c.1.txt
  6172. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Update doc for --realtime-chunk-checksum option.
  6174. * src/usage_text.h
  6175. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Updated French, Japanese, Russian and Ukrainian translations.
  6177. Thanks to all translators.
  6178. * po/fr.po
  6179. * po/ja.po
  6180. * po/ru.po
  6181. * po/uk.po
  6182. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6183. Renamed aria2c.pot to aria2.pot
  6184. * po/aria2.pot
  6185. * po/aria2c.pot: Removed.
  6186. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6187. Removed MetaEntry.h
  6188. * src/Makefile.am
  6189. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6190. Rename file by appending digits if a local file exists and its
  6191. file size is larger than that of remote file with --continue
  6192. option. The old implementation just throws exception in such case.
  6193. * src/RequestGroup.cc
  6194. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Fixed the bug that download progress summary is not printed in the
  6196. interval specified by the option.
  6197. * src/ConsoleStatCalc.cc
  6198. * src/ConsoleStatCalc.h
  6199. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6200. Fixed compiler warning
  6201. * src/Cookie.cc
  6202. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6203. Fixed the cookie implementation based on RFC2965.
  6204. Now if a value in domain field is not started with dot, then
  6205. prepend dot. That means a cookie with domain=sf.net is sent to
  6206. wiki.sf.net.
  6207. * src/Cookie.cc
  6208. * test/CookieParserTest.cc
  6209. * test/CookieStorageTest.cc
  6210. * test/CookieTest.cc
  6211. * test/NsCookieParserTest.cc
  6212. * test/Sqlite3MozCookieParserTest.cc
  6213. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6214. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6215. is enabled and the server doesn't support keep-alive.
  6216. * src/AbstractCommand.cc
  6217. * src/DownloadCommand.cc
  6218. * src/HttpDownloadCommand.cc
  6219. * src/HttpDownloadCommand.h
  6220. * src/HttpResponseCommand.cc
  6221. * src/Request.cc
  6222. * src/Request.h
  6223. * test/RequestTest.cc
  6224. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Removed Dictionary/List/Data and its related classes.
  6226. * src/BencodeVisitor.cc: Removed.
  6227. * src/BencodeVisitor.h: Removed.
  6228. * src/Data.cc: Removed.
  6229. * src/Data.h: Removed.
  6230. * src/Dictionary.cc: Removed.
  6231. * src/Dictionary.h: Removed.
  6232. * src/List.cc: Removed.
  6233. * src/List.h: Removed.
  6234. * src/Makefile.am
  6235. * src/MetaEntry.h: Removed.
  6236. * src/MetaEntryVisitor.h: Removed.
  6237. * src/MetaFileUtil.cc: Removed.
  6238. * src/MetaFileUtil.h: Removed.
  6239. * test/BencodeVisitorTest.cc: Removed.
  6240. * test/DataTest.cc: Removed.
  6241. * test/DictionaryTest.cc: Removed.
  6242. * test/ListTest.cc: Removed.
  6243. * test/Makefile.am
  6244. * test/MetaFileUtilTest.cc: Removed.
  6245. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6246. Removed include of MetaEntry.h
  6247. * test/DHTMessageTrackerEntryTest.cc
  6248. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6249. Use BDE instead of Dictionary/List/Data.
  6250. * src/AnnounceList.cc
  6251. * src/AnnounceList.h
  6252. * test/AnnounceListTest.cc
  6253. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Use BDE instead of Dictionary/List/Data.
  6255. * src/DHTAbstractMessage.cc
  6256. * src/DHTAbstractMessage.h
  6257. * src/DHTAnnouncePeerMessage.cc
  6258. * src/DHTAnnouncePeerMessage.h
  6259. * src/DHTAnnouncePeerReplyMessage.cc
  6260. * src/DHTAnnouncePeerReplyMessage.h
  6261. * src/DHTFindNodeMessage.cc
  6262. * src/DHTFindNodeMessage.h
  6263. * src/DHTFindNodeReplyMessage.cc
  6264. * src/DHTFindNodeReplyMessage.h
  6265. * src/DHTGetPeersMessage.cc
  6266. * src/DHTGetPeersMessage.h
  6267. * src/DHTGetPeersReplyMessage.cc
  6268. * src/DHTGetPeersReplyMessage.h
  6269. * src/DHTMessageFactory.h
  6270. * src/DHTMessageFactoryImpl.cc
  6271. * src/DHTMessageFactoryImpl.h
  6272. * src/DHTMessageReceiver.cc
  6273. * src/DHTMessageTracker.cc
  6274. * src/DHTMessageTracker.h
  6275. * src/DHTPingMessage.cc
  6276. * src/DHTPingMessage.h
  6277. * src/DHTPingReplyMessage.cc
  6278. * src/DHTPingReplyMessage.h
  6279. * src/DHTQueryMessage.cc
  6280. * src/DHTQueryMessage.h
  6281. * src/DHTResponseMessage.cc
  6282. * src/DHTResponseMessage.h
  6283. * test/DHTAnnouncePeerMessageTest.cc
  6284. * test/DHTAnnouncePeerReplyMessageTest.cc
  6285. * test/DHTFindNodeMessageTest.cc
  6286. * test/DHTFindNodeReplyMessageTest.cc
  6287. * test/DHTGetPeersMessageTest.cc
  6288. * test/DHTGetPeersReplyMessageTest.cc
  6289. * test/DHTMessageFactoryImplTest.cc
  6290. * test/DHTMessageTrackerTest.cc
  6291. * test/DHTPingMessageTest.cc
  6292. * test/DHTPingReplyMessageTest.cc
  6293. * test/MockDHTMessageFactory.h
  6294. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Added tests the case where length < 0 is specified.
  6296. * test/BencodeTest.cc
  6297. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6298. Fixed memory leak in decoderawstring()
  6299. * src/bencode.cc
  6300. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6301. Added missing #ifdef guard. Added uc() function for String and
  6302. removeKey() for Dict.
  6303. * src/bencode.cc
  6304. * src/bencode.h
  6305. * test/BencodeTest.cc
  6306. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6307. Use BDE instead of Dictionary/List/Data.
  6308. * src/HandshakeExtensionMessage.cc
  6309. * src/HandshakeExtensionMessage.h
  6310. * test/HandshakeExtensionMessageTest.cc
  6311. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Added --max-overall-upload-limit option. This option limits the
  6313. overall upload speed. Stated in help message that the existing
  6314. --max-upload-limit option limits the upload speed per each
  6315. torrent. Man page is also updated.
  6316. * doc/aria2c.1.txt
  6317. * src/DefaultBtMessageDispatcher.cc
  6318. * src/DefaultBtMessageDispatcher.h
  6319. * src/OptionHandlerFactory.cc
  6320. * src/PeerInteractionCommand.cc
  6321. * src/option_processing.cc
  6322. * src/prefs.cc
  6323. * src/prefs.h
  6324. * src/usage_text.h
  6325. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6326. Use BDE instead of Dictionary/List/Data classes.
  6327. * src/CompactPeerListProcessor.cc
  6328. * src/CompactPeerListProcessor.h
  6329. * src/DefaultBtAnnounce.cc
  6330. * src/DefaultBtContext.cc
  6331. * src/DefaultBtContext.h
  6332. * src/DefaultPeerListProcessor.cc
  6333. * src/DefaultPeerListProcessor.h
  6334. * src/DelegatingPeerListProcessor.cc
  6335. * src/DelegatingPeerListProcessor.h
  6336. * src/PeerListProcessor.h
  6337. * src/UTPexExtensionMessage.cc
  6338. * src/Util.h
  6339. * src/message.h
  6340. * test/DefaultBtContextTest.cc
  6341. * test/DefaultPeerListProcessorTest.cc
  6342. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6343. Added bencode helper functions and BDE class.
  6344. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6345. * src/Makefile.am
  6346. * src/bencode.cc
  6347. * src/bencode.h
  6348. * test/BencodeTest.cc
  6349. * test/Makefile.am
  6350. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6351. Fixed the bug that bad URI is sent to the tracker when the announe
  6352. URI in torrent file includes query.
  6353. * src/DefaultBtAnnounce.cc
  6354. * test/DefaultBtAnnounceTest.cc
  6355. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6356. Added Option::blank().
  6357. Use !Option::blank(name) instead of Option::defined(name) for
  6358. the options that take filename.
  6359. * src/MultiUrlRequestInfo.cc
  6360. * src/Option.cc
  6361. * src/Option.h
  6362. * src/main.cc
  6363. * src/option_processing.cc
  6364. * test/OptionTest.cc
  6365. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Documented the default value of --check-certificate option in man
  6367. page.
  6368. * doc/aria2c.1.txt
  6369. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6370. Enabled --check-certificate by default. Added compile
  6371. time(configure) option --with-ca-bundle to specify CA bundle.
  6372. Warn if --check-certificate=true and --ca-certificate is not
  6373. specified or loading CA certificate is failed.
  6374. * configure.ac
  6375. * src/MultiUrlRequestInfo.cc
  6376. * src/OptionHandlerFactory.cc
  6377. * src/message.h
  6378. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6379. Mentioned https tag in help option.
  6380. * doc/aria2c.1.txt
  6381. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6382. Added `https' tag to help option category. Added https tag to
  6383. --ca-certificate, --certificate, --check-certificate and
  6384. --private-key option.
  6385. * src/OptionHandlerFactory.cc
  6386. * src/help_tags.h
  6387. * src/option_processing.cc
  6388. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6389. Changed the package name from `aria2c' to `aria2' in order to fix
  6390. the packaging issue in Debian and Fedora. The name of the
  6391. executable is not changed.
  6392. * configure.ac
  6393. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Fixed typos
  6395. * src/usage_text.h
  6396. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6397. Fixed typos and updated doc.
  6398. * README
  6399. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. Fixed typos
  6401. * doc/aria2c.1.txt
  6402. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6403. Fixed typos
  6404. * src/usage_text.h
  6405. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6406. Print a message when no files to download.
  6407. * src/download_helper.cc
  6408. * src/main.cc
  6409. * src/message.h
  6410. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6411. RFC3986 complied Percent-Encoding(urlencode).
  6412. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6413. ones.
  6414. * src/Request.cc
  6415. * src/Util.cc
  6416. * src/Util.h
  6417. * test/BtHandshakeMessageTest.cc
  6418. * test/DefaultBtAnnounceTest.cc
  6419. * test/DefaultBtContextTest.cc
  6420. * test/RequestTest.cc
  6421. * test/UtilTest.cc
  6422. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6423. Fixed the bug that prevents aria2 from downloading 0-length files
  6424. via HTTP/FTP.
  6425. * src/DefaultBtContext.cc
  6426. * src/DefaultBtContext.h
  6427. * src/DownloadContext.h
  6428. * src/FtpNegotiationCommand.cc
  6429. * src/HttpResponseCommand.cc
  6430. * src/HttpResponseCommand.h
  6431. * src/RequestGroup.cc
  6432. * src/SingleFileDownloadContext.cc
  6433. * src/SingleFileDownloadContext.h
  6434. * test/BtPostDownloadHandlerTest.cc
  6435. * test/MetalinkPostDownloadHandlerTest.cc
  6436. * test/MockBtContext.h
  6437. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6439. * src/option_processing.cc
  6440. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6441. Applied aria2-1.0.1-mingw.patch.
  6442. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6443. mingw.
  6444. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6445. * src/SocketCore.cc
  6446. * src/a2netcompat.h
  6447. * test/SocketCoreTest.cc
  6448. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6449. * Release 1.0.1
  6450. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6451. Updated Ukrainian and Norwegian Nynorsk translations.
  6452. Thanks to all translators.
  6453. * po/nn.po
  6454. * po/uk.po
  6455. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6456. Don't show download result when -S option is used.
  6457. * src/main.cc
  6458. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Bump up version number to 1.0.1
  6460. * configure.ac
  6461. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Closed files after the test cases in MultiDiskWriterTest::
  6463. testResetDiskWriterEntries(). This will fix the unit test error
  6464. in mingw32 build.
  6465. * test/MultiDiskWriterTest.cc
  6466. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6467. Use HEAD method to get file size from HTTP server for segmented
  6468. downloading.
  6469. The request to the BitTorrent Tracker always uses GET method because
  6470. the response of the tracker is small and it doesn't need segmented
  6471. download.
  6472. * src/FtpNegotiationCommand.cc
  6473. * src/HttpRequest.cc
  6474. * src/HttpResponseCommand.cc
  6475. * src/HttpSkipResponseCommand.cc
  6476. * src/RequestGroup.cc
  6477. * src/RequestGroup.h
  6478. * src/TrackerWatcherCommand.cc
  6479. * test/HttpRequestTest.cc
  6480. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Fixed the bug that causes floating exception when -T option is used and
  6482. no URIs are given.
  6483. * src/download_helper.cc
  6484. * test/DownloadHelperTest.cc
  6485. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6486. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6487. errors in MinGW:
  6488. Closed file after saving server stats (RequestGroupMan.cc)
  6489. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6490. Ignored case & handled 2-digit years (strptime.c)
  6491. Added missing suseconds_t definition (a2time.h)
  6492. Fixed socket CLOSE() define (SocketCore.cc)
  6493. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6494. Changed utime() test values from x000 to x00000 as MinGW failed on
  6495. values less than timezone offset from Unix epoch
  6496. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6497. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6498. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6499. handle negative dates (CookieParserTest.cc)
  6500. * src/a2time.h
  6501. * src/FtpConnection.cc
  6502. * src/RequestGroupMan.cc
  6503. * src/SocketCore.cc
  6504. * src/strptime.c
  6505. * test/CookieParserTest.cc
  6506. * test/CopyDiskAdaptorTest.cc
  6507. * test/FileTest.cc
  6508. * test/FtpConnectionTest.cc
  6509. * test/MultiDiskAdaptorTest.cc
  6510. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6511. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6512. * doc/aria2c.1.txt
  6513. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6514. * Release 1.0.0
  6515. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6516. Added '~' to reserved characters.
  6517. * src/Util.cc
  6518. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6519. Do not urlencode Request::url in setUrl() because we want unmodified
  6520. URL using Request::getUrl()
  6521. * src/Request.cc
  6522. * src/Request.h
  6523. * test/RequestTest.cc
  6524. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6525. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6526. Thanks to all translators.
  6527. * po/bg.po
  6528. * po/fr.po
  6529. * po/ja.po
  6530. * po/ru.po
  6531. * po/uk.po
  6532. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. Bump up version number to 1.0.0
  6534. * configure.ac
  6535. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6536. Added nosqlite3 build to build_test.sh.
  6537. Renamed noxml as expat.
  6538. * build_test.sh
  6539. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6540. Updated INPUT FILE section.
  6541. * doc/aria2c.1.txt
  6542. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6543. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6544. on big endian systems because test .aria2 files are made for little
  6545. endian systems.
  6546. * test/DefaultBtProgressInfoFileTest.cc
  6547. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. Dropped ares support.
  6549. * README
  6550. * configure.ac
  6551. * m4/libares.m4: Removed.
  6552. * src/AsyncNameResolver.cc
  6553. * src/Makefile.am
  6554. * test/Makefile.am
  6555. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6556. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6557. Removed const qualifier from DiskWriter::size().
  6558. * src/AbstractDiskWriter.cc
  6559. * src/AbstractDiskWriter.h
  6560. * src/ByteArrayDiskWriter.cc
  6561. * src/ByteArrayDiskWriter.h
  6562. * src/DiskWriter.h
  6563. * test/ByteArrayDiskWriterTest.cc
  6564. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6565. Fixed the bug that causes segmentation fault/bus error during executing
  6566. choking algorithm while seeding. This is caused by improper
  6567. implementation of compare function which returns inconsistent results
  6568. depending on the timing of last unchoke.
  6569. * src/BtSeederStateChoke.cc
  6570. * src/BtSeederStateChoke.h
  6571. * src/DefaultPeerStorage.cc
  6572. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Removed TODO
  6574. * TODO
  6575. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Added a section that explains how to pass argument to options that
  6577. takes optional arguments with its short form.
  6578. * doc/aria2c.1.txt
  6579. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. Added -u for the short form of --max-upload-limit option.
  6581. * doc/aria2c.1.txt
  6582. * src/option_processing.cc
  6583. * src/usage_text.h
  6584. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6585. Added -V for the short form of --check-integrity option.
  6586. Now the argument of --check-integrity option is optional:
  6587. if it is omitted, it is evaluated as true.
  6588. * doc/aria2c.1.txt
  6589. * src/option_processing.cc
  6590. * src/usage_text.h
  6591. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6592. Made the default value of --ftp-pasv option set to true and it can take
  6593. true/false values.
  6594. * src/OptionHandlerFactory.cc
  6595. * src/option_processing.cc
  6596. * src/usage_text.h
  6597. * doc/aria2c.1.txt
  6598. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6599. Given custom random number generator to std::random_shuffle.
  6600. * src/AnnounceList.cc
  6601. * src/BtLeecherStateChoke.cc
  6602. * src/BtSeederStateChoke.cc
  6603. * src/DefaultBtRequestFactory.cc
  6604. * src/MetalinkEntry.cc
  6605. * src/RarestPieceSelector.cc
  6606. * src/SimpleRandomizer.cc
  6607. * src/SimpleRandomizer.h
  6608. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6609. Now the default value of --enable-direct-io is true.
  6610. * src/OptionHandlerFactory.cc
  6611. * doc/aria2c.1.txt
  6612. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6613. Erase peer before executing onReturningPeer and onErasingPeer
  6614. because choking algorithm called from onReturningPeer doesn't
  6615. like erasing peer in the active peer list.
  6616. * src/DefaultPeerStorage.cc
  6617. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6618. Instead of creating special filename in createDownloadResult() if
  6619. inMemoryDownload() is true, now it is done in getFilePath().
  6620. * src/RequestGroup.cc
  6621. * test/RequestGroupTest.cc
  6622. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6623. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6624. processed in memory. This is the fix for previous comment out.
  6625. * src/MemoryBufferPreDownloadHandler.cc
  6626. * src/RequestGroup.cc
  6627. * src/RequestGroup.h
  6628. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6629. Commented out the code which sets virtual directory path "[MEMORY]"
  6630. propagate directory to store to following RequestGroup.
  6631. * src/MemoryBufferPreDownloadHandler.cc
  6632. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6633. Bump up version number to 1.0.0b
  6634. * configure.ac
  6635. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6636. Added input_uris.txt to EXTRA_DIST
  6637. * test/Makefile.am
  6638. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Removed PeerObject.h from Makefile.am
  6640. * src/Makefile.am
  6641. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6642. Avoid slow seeding
  6643. * src/PeerInteractionCommand.cc
  6644. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6645. Updated usage for -i option.
  6646. * src/usage_text.h (TEXT_INPUT_FILE)
  6647. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6648. Added INPUT FILE section to man page.
  6649. Escaped fake URLs.
  6650. * doc/aria2c.1.txt
  6651. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Fixed wrong note position for -o option.
  6653. * doc/aria2c.1.txt
  6654. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Fixed compile error without SSL/XML library.
  6656. * src/DefaultBtProgressInfoFile.cc
  6657. * src/DefaultBtProgressInfoFile.h
  6658. * src/FileMetalinkParserState.cc
  6659. * src/RequestGroup.h
  6660. * src/SocketCore.cc
  6661. * src/SocketCore.h
  6662. * src/VerificationMetalinkParserState.cc
  6663. * src/download_helper.h
  6664. * src/main.cc
  6665. * test/DefaultBtProgressInfoFileTest.cc
  6666. * test/DownloadHelperTest.cc
  6667. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6668. Rewritten URI handling functions. They are now provided as a testable
  6669. functions.
  6670. * src/Makefile.am
  6671. * src/RequestGroup.cc
  6672. * src/RequestGroup.h
  6673. * src/download_helper.cc
  6674. * src/download_helper.h
  6675. * src/main.cc
  6676. * test/DownloadHelperTest.cc
  6677. * test/Makefile.am
  6678. * test/input_uris.txt
  6679. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6680. Quickly terminate commands when ctrl-c is pressed.
  6681. * src/DownloadEngine.cc
  6682. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6683. Quickly terminate idle commands when download finished.
  6684. * src/AbstractCommand.cc
  6685. * src/DownloadCommand.cc
  6686. * src/DownloadEngine.cc
  6687. * src/DownloadEngine.h
  6688. * src/SleepCommand.cc
  6689. * src/SleepCommand.h
  6690. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6691. Added the ability to specify output filename and directory in input
  6692. file.
  6693. Additional parameters are added in the following line of URIs
  6694. with proceeding white space(s), 1 parameter in 1 line.
  6695. The parameter names are the same with the command-line option name
  6696. without proceeding "--". Not all the options are available here:
  6697. at the moment, 'dir' and 'out' options are avialable.
  6698. Please note that out option has no effect against Metalink or BitTorrent
  6699. downloads.
  6700. Example input file:
  6701. http://host/foo-1.1.tar.bz2
  6702. out=foo.tar.bz2
  6703. dir=/tmp/downloads
  6704. http://host/thundermonkey-2.0.tar.bz2
  6705. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6706. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6707. thundermonkey-2.0.tar.bz2 is saved as
  6708. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6709. * src/BtPostDownloadHandler.cc
  6710. * src/Metalink2RequestGroup.cc
  6711. * src/Metalink2RequestGroup.h
  6712. * src/MetalinkPostDownloadHandler.cc
  6713. * src/UriListParser.cc
  6714. * src/UriListParser.h
  6715. * src/main.cc
  6716. * test/Metalink2RequestGroupTest.cc
  6717. * test/UriListParserTest.cc
  6718. * test/filelist1.txt
  6719. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Fixed error when SSL library is not found.
  6721. * configure.ac
  6722. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6723. Cross referenced among -s, -C and -j options.
  6724. Updated usage of -C and -s options.
  6725. * src/usage_text.h
  6726. * doc/aria2c.1.txt
  6727. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6728. Fixed bad cast in 32bit platforms.
  6729. * test/DefaultPieceStorageTest.cc
  6730. (DefaultPieceStorageTest::testGetCompletedLength)
  6731. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6732. Fixed unit test fails on 32bit platforms.
  6733. * test/CookieParserTest.cc
  6734. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6735. Show an average download speed in Download results.
  6736. * src/BtFileAllocationEntry.cc
  6737. * src/DefaultPieceStorage.cc
  6738. * src/DownloadContext.cc
  6739. * src/DownloadContext.h
  6740. * src/DownloadResult.h
  6741. * src/RequestGroup.cc
  6742. * src/RequestGroupMan.cc
  6743. * src/StreamFileAllocationEntry.cc
  6744. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. Fixed the bug that metalink file is not processed if Content-Type
  6746. field has a paramter.
  6747. * src/HttpResponse.cc
  6748. * src/HttpResponse.h
  6749. * test/HttpResponseTest.cc
  6750. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6751. Removed unused code.
  6752. * src/DefaultBtAnnounce.cc
  6753. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6755. the value larger than DefaultPieceStorage::getTotalLength() when
  6756. in flight pieces are involved.
  6757. * src/DefaultPieceStorage.cc
  6758. * test/DefaultPieceStorageTest.cc
  6759. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6760. Bump up version number to 1.0.0a.
  6761. * configure.ac
  6762. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6763. Updated configure.ac
  6764. * configure.ac
  6765. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6766. Added usege for proxy.
  6767. * doc/aria2c.1.txt
  6768. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6769. Added usage for --ca-certificate, --certificate, --private-key and
  6770. --check-certificate options.
  6771. * doc/aria2c.1.txt
  6772. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6773. Updated man page
  6774. * doc/aria2c.1.txt
  6775. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6776. Added --no-proxy option. It receives comman separated hostname or
  6777. domains to which proxy should not be used.
  6778. aria2 honors the environment variable no_proxy to override no-proxy
  6779. value in configuration file. The user can override the environment
  6780. variable no_proxy with --no-proxy command-line option.
  6781. * src/AbstractCommand.cc
  6782. * src/OptionHandlerFactory.cc
  6783. * src/option_processing.cc
  6784. * src/prefs.cc
  6785. * src/prefs.h
  6786. * src/usage_text.h
  6787. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6789. The CA certificates are specified in --ca-certificate option.
  6790. By default, the verification is disabled. Use --check-certificate
  6791. option to enable it.
  6792. * src/HttpRequestCommand.cc
  6793. * src/LibgnutlsTLSContext.cc
  6794. * src/LibgnutlsTLSContext.h
  6795. * src/LibsslTLSContext.cc
  6796. * src/LibsslTLSContext.h
  6797. * src/MultiUrlRequestInfo.cc
  6798. * src/OptionHandlerFactory.cc
  6799. * src/SocketCore.cc
  6800. * src/SocketCore.h
  6801. * src/a2functional.h
  6802. * src/message.h
  6803. * src/option_processing.cc
  6804. * src/prefs.cc
  6805. * src/prefs.h
  6806. * src/usage_text.h
  6807. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6808. Added client certificate authentication for SSL/TLS.
  6809. Currently a private key must be decrypted for use with aria2.
  6810. If a user accidentally gives encrypted file to aria2 then following
  6811. thing happens:
  6812. If encrypted private key is given to aria2, it behaves differently
  6813. depending on the ssl library it uses. If aria2 built with openssl then
  6814. openssl prompts the user for password. If aria2 build with gnutls then
  6815. aria2 exists with error at start up.
  6816. * src/DownloadEngineFactory.cc
  6817. * src/MultiUrlRequestInfo.cc
  6818. * src/OptionHandlerFactory.cc
  6819. * src/option_processing.cc
  6820. * src/prefs.cc
  6821. * src/prefs.h
  6822. * src/usage_text.h
  6823. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6824. Introduced TLSContext that holds TLS related data that can be shared
  6825. with multiple SSL connections.
  6826. * src/DownloadEngineFactory.cc
  6827. * src/LibgnutlsTLSContext.cc
  6828. * src/LibgnutlsTLSContext.h
  6829. * src/LibsslTLSContext.cc
  6830. * src/LibsslTLSContext.h
  6831. * src/Makefile.am
  6832. * src/SocketCore.cc
  6833. * src/SocketCore.h
  6834. * src/TLSContext.h
  6835. * src/message.h
  6836. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6837. Fixed the bug that the DiskWriter of the first FileEntry whose
  6838. `needsFileAllocation' property is false is not created
  6839. even if it shares a piece with next FileEntry which `requested' property
  6840. is true.
  6841. Fixed the bug that zero-length file is not created if pre file
  6842. allocation is not done.
  6843. * src/MultiDiskAdaptor.cc
  6844. * src/MultiDiskAdaptor.h
  6845. * test/MultiDiskAdaptorTest.cc
  6846. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Added the ability to pool proxy connection.
  6848. The conneciton in FTP with proxy-method=GET is not pooled.
  6849. Proxy-Connection header will not be sent when sending CONNECT method.
  6850. * src/DownloadEngine.cc
  6851. * src/DownloadEngine.h
  6852. * src/FtpFinishDownloadCommand.cc
  6853. * src/FtpInitiateConnectionCommand.cc
  6854. * src/FtpNegotiationCommand.cc
  6855. * src/HttpDownloadCommand.cc
  6856. * src/HttpInitiateConnectionCommand.cc
  6857. * src/HttpRequest.cc
  6858. * src/HttpRequest.h
  6859. * src/HttpResponse.cc
  6860. * src/HttpSkipResponseCommand.cc
  6861. * test/HttpRequestTest.cc
  6862. * test/HttpResponseTest.cc
  6863. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Handle date before epoch.
  6865. To create *bad* Time object, call Time::null().
  6866. * src/CookieParser.cc
  6867. * src/FtpConnection.cc
  6868. * src/FtpConnection.h
  6869. * src/FtpNegotiationCommand.cc
  6870. * src/RequestGroup.cc
  6871. * src/TimeA2.cc
  6872. * src/TimeA2.h
  6873. * test/CookieParserTest.cc
  6874. * test/FtpConnectionTest.cc
  6875. * test/TimeTest.cc
  6876. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Added support for following envrionment variables: http_proxy,
  6878. https_proxy, ftp_proxy and all_proxy.
  6879. Each variable is equivalent to the aria2 option whose name is the
  6880. variable name with '_' replaced with '-'.
  6881. They overrides options specified in aria2.conf file.
  6882. The envrionment variables can be overrode using command-line option.
  6883. * src/option_processing.cc
  6884. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Renamed --http-proxy-method as --proxy-method.
  6886. * src/AbstractCommand.cc
  6887. * src/FtpInitiateConnectionCommand.cc
  6888. * src/HttpInitiateConnectionCommand.cc
  6889. * src/OptionHandlerFactory.cc
  6890. * src/option_processing.cc
  6891. * src/prefs.cc
  6892. * src/prefs.h
  6893. * src/usage_text.h
  6894. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6896. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6897. Above 3 options and --http-proxy option can handle proxy in URL format
  6898. like: http://user:passwd@host:port.
  6899. If a proxy requires user/password, they must be specified in a URL.
  6900. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6901. instead.
  6902. * src/AbstractCommand.cc
  6903. * src/AbstractCommand.h
  6904. * src/AbstractProxyRequestCommand.cc
  6905. * src/AbstractProxyRequestCommand.h
  6906. * src/AuthConfigFactory.cc
  6907. * src/AuthConfigFactory.h
  6908. * src/FtpFinishDownloadCommand.cc
  6909. * src/FtpInitiateConnectionCommand.cc
  6910. * src/FtpInitiateConnectionCommand.h
  6911. * src/FtpNegotiationCommand.cc
  6912. * src/FtpTunnelRequestCommand.cc
  6913. * src/FtpTunnelRequestCommand.h
  6914. * src/HttpDownloadCommand.cc
  6915. * src/HttpInitiateConnectionCommand.cc
  6916. * src/HttpInitiateConnectionCommand.h
  6917. * src/HttpProxyRequestCommand.cc
  6918. * src/HttpProxyRequestCommand.h
  6919. * src/HttpRequest.cc
  6920. * src/HttpRequest.h
  6921. * src/HttpRequestCommand.cc
  6922. * src/HttpRequestCommand.h
  6923. * src/HttpSkipResponseCommand.cc
  6924. * src/InitiateConnectionCommand.cc
  6925. * src/InitiateConnectionCommand.h
  6926. * src/OptionHandlerFactory.cc
  6927. * src/OptionHandlerImpl.h
  6928. * src/Request.cc
  6929. * src/option_processing.cc
  6930. * src/prefs.cc
  6931. * src/prefs.h
  6932. * src/usage_text.h
  6933. * test/AuthConfigFactoryTest.cc
  6934. * test/HttpRequestTest.cc
  6935. * test/OptionHandlerTest.cc
  6936. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Execute choking algorithm when unchoked and interested peer is
  6938. disconected.
  6939. * src/DefaultPeerStorage.cc
  6940. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Added testcase for BtNotInterestedMessage from unchoked peer.
  6942. * test/BtNotInterestedMessageTest.cc
  6943. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Execute choking algorithm when BtInterestedMessage arrives from
  6945. unchoked peer.
  6946. * src/BtInterestedMessage.cc
  6947. * src/BtInterestedMessage.h
  6948. * src/DefaultBtMessageFactory.cc
  6949. * test/BtInterestedMessageTest.cc
  6950. * test/MockPeerStorage.h
  6951. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. AuthConfigFactory is now part of DownloadEngine.
  6953. * src/AbstractProxyRequestCommand.cc
  6954. * src/AuthConfigFactory.h
  6955. * src/DownloadEngine.cc
  6956. * src/DownloadEngine.h
  6957. * src/FtpConnection.cc
  6958. * src/FtpConnection.h
  6959. * src/FtpNegotiationCommand.cc
  6960. * src/HttpConnection.cc
  6961. * src/HttpRequest.cc
  6962. * src/HttpRequest.h
  6963. * src/HttpRequestCommand.cc
  6964. * src/HttpResponse.cc
  6965. * src/HttpResponseCommand.cc
  6966. * src/HttpSkipResponseCommand.cc
  6967. * src/MultiUrlRequestInfo.cc
  6968. * src/main.cc
  6969. * test/FtpConnectionTest.cc
  6970. * test/HttpRequestTest.cc
  6971. * test/HttpResponseTest.cc
  6972. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Corrected catched exception type.
  6974. * src/ServerStatMan.cc
  6975. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. DNSCache is now part of DownloadEngine.
  6977. * src/DNSCache.h
  6978. * src/DownloadEngine.cc
  6979. * src/DownloadEngine.h
  6980. * src/InitiateConnectionCommand.cc
  6981. * src/MultiUrlRequestInfo.cc
  6982. * test/Makefile.am
  6983. * test/Makefile.in
  6984. * test/SimpleDNSCacheTest.cc
  6985. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6987. DownloadEngine.
  6988. * src/ActivePeerConnectionCommand.cc
  6989. * src/BtSetup.cc
  6990. * src/CUIDCounter.h
  6991. * src/DHTSetup.cc
  6992. * src/DownloadCommand.cc
  6993. * src/DownloadEngine.cc
  6994. * src/DownloadEngine.h
  6995. * src/DownloadEngineFactory.cc
  6996. * src/FileAllocationDispatcherCommand.cc
  6997. * src/InitiatorMSEHandshakeCommand.cc
  6998. * src/PeerInitiateConnectionCommand.cc
  6999. * src/PeerInteractionCommand.cc
  7000. * src/PeerListenCommand.cc
  7001. * src/RequestGroup.cc
  7002. * src/StreamFileAllocationEntry.cc
  7003. * src/TrackerWatcherCommand.cc
  7004. * src/main.cc
  7005. * test/RequestGroupManTest.cc
  7006. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Implemented commented code in BtSeederStateChoke
  7008. * src/BtSeederStateChoke.cc
  7009. * src/Peer.cc
  7010. * src/Peer.h
  7011. * src/PeerInteractionCommand.cc
  7012. * src/PeerSessionResource.cc
  7013. * src/PeerSessionResource.h
  7014. * test/MockBtMessageDispatcher.h
  7015. * test/PeerSessionResourceTest.cc
  7016. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7018. its object.
  7019. * src/AbstractBtMessage.cc
  7020. * src/ActivePeerConnectionCommand.cc
  7021. * src/ActivePeerConnectionCommand.h
  7022. * src/BtContextAwareCommand.cc
  7023. * src/BtContextAwareCommand.h
  7024. * src/BtExtendedMessage.cc
  7025. * src/BtExtendedMessage.h
  7026. * src/BtInterestedMessage.cc
  7027. * src/BtInterestedMessage.h
  7028. * src/BtNotInterestedMessage.cc
  7029. * src/BtNotInterestedMessage.h
  7030. * src/BtRegistry.cc
  7031. * src/BtRegistry.h
  7032. * src/BtSeederStateChoke.cc
  7033. * src/BtSetup.cc
  7034. * src/DHTGetPeersCommand.cc
  7035. * src/DHTGetPeersCommand.h
  7036. * src/DHTPeerAnnounceEntry.cc
  7037. * src/DHTPeerAnnounceEntry.h
  7038. * src/DHTPeerAnnounceStorage.cc
  7039. * src/DHTPeerAnnounceStorage.h
  7040. * src/DHTPeerLookupTask.cc
  7041. * src/DHTPeerLookupTask.h
  7042. * src/DHTSetup.cc
  7043. * src/DHTSetup.h
  7044. * src/DHTTaskFactory.h
  7045. * src/DHTTaskFactoryImpl.cc
  7046. * src/DHTTaskFactoryImpl.h
  7047. * src/DefaultBtAnnounce.cc
  7048. * src/DefaultBtInteractive.cc
  7049. * src/DefaultBtInteractive.h
  7050. * src/DefaultBtMessageDispatcher.cc
  7051. * src/DefaultBtMessageDispatcher.h
  7052. * src/DefaultBtMessageFactory.cc
  7053. * src/DefaultBtMessageFactory.h
  7054. * src/DefaultBtMessageReceiver.cc
  7055. * src/DefaultBtProgressInfoFile.cc
  7056. * src/DefaultBtProgressInfoFile.h
  7057. * src/DefaultBtRequestFactory.cc
  7058. * src/DefaultBtRequestFactory.h
  7059. * src/DefaultExtensionMessageFactory.cc
  7060. * src/DefaultExtensionMessageFactory.h
  7061. * src/DefaultPeerStorage.cc
  7062. * src/DefaultPeerStorage.h
  7063. * src/DownloadEngine.cc
  7064. * src/DownloadEngine.h
  7065. * src/InitiatorMSEHandshakeCommand.cc
  7066. * src/InitiatorMSEHandshakeCommand.h
  7067. * src/MSEHandshake.cc
  7068. * src/MSEHandshake.h
  7069. * src/Makefile.am
  7070. * src/Makefile.in
  7071. * src/PeerChokeCommand.cc
  7072. * src/PeerChokeCommand.h
  7073. * src/PeerInitiateConnectionCommand.cc
  7074. * src/PeerInitiateConnectionCommand.h
  7075. * src/PeerInteractionCommand.cc
  7076. * src/PeerInteractionCommand.h
  7077. * src/PeerObject.h
  7078. * src/PeerReceiveHandshakeCommand.cc
  7079. * src/PeerReceiveHandshakeCommand.h
  7080. * src/ReceiverMSEHandshakeCommand.cc
  7081. * src/RequestGroup.cc
  7082. * src/RequestGroup.h
  7083. * src/RequestGroupMan.cc
  7084. * src/RequestGroupMan.h
  7085. * src/SeedCheckCommand.cc
  7086. * src/SeedCheckCommand.h
  7087. * src/ShareRatioSeedCriteria.h
  7088. * src/SimpleBtMessage.cc
  7089. * src/TrackerWatcherCommand.cc
  7090. * src/TrackerWatcherCommand.h
  7091. * src/UTPexExtensionMessage.cc
  7092. * src/UTPexExtensionMessage.h
  7093. * test/BtCancelMessageTest.cc
  7094. * test/BtChokeMessageTest.cc
  7095. * test/BtExtendedMessageTest.cc
  7096. * test/BtInterestedMessageTest.cc
  7097. * test/BtNotInterestedMessageTest.cc
  7098. * test/BtPieceMessageTest.cc
  7099. * test/BtPortMessageTest.cc
  7100. * test/BtRegistryTest.cc
  7101. * test/BtRejectMessageTest.cc
  7102. * test/BtRequestMessageTest.cc
  7103. * test/DHTPeerAnnounceEntryTest.cc
  7104. * test/DHTPeerAnnounceStorageTest.cc
  7105. * test/DefaultBtMessageDispatcherTest.cc
  7106. * test/DefaultBtMessageFactoryTest.cc
  7107. * test/DefaultBtProgressInfoFileTest.cc
  7108. * test/DefaultBtRequestFactoryTest.cc
  7109. * test/DefaultExtensionMessageFactoryTest.cc
  7110. * test/MSEHandshakeTest.cc
  7111. * test/MockDHTTaskFactory.h
  7112. * test/ShareRatioSeedCriteriaTest.cc
  7113. * test/UTPexExtensionMessageTest.cc
  7114. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Fixed compiler warning.
  7116. * test/UtilTest.cc
  7117. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Treat Cookie object as session cookie if expiry = 0 is given.
  7119. With this change, you can specify session scoped cookies in an external
  7120. file setting expiry value to 0.
  7121. * src/Cookie.cc
  7122. * src/Cookie.h
  7123. * test/CookieParserTest.cc
  7124. * test/CookieStorageTest.cc
  7125. * test/CookieTest.cc
  7126. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Changed signature of DHTMessageFactory::createResponseMessage().
  7128. Removed unused validateIDMatch.
  7129. * src/DHTMessageFactory.h
  7130. * src/DHTMessageFactoryImpl.cc
  7131. * src/DHTMessageFactoryImpl.h
  7132. * src/DHTMessageTracker.cc
  7133. * test/DHTMessageFactoryImplTest.cc
  7134. * test/MockDHTMessageFactory.h
  7135. Dropped DHT message coming from same ID of localhost.
  7136. * src/DHTMessageReceiver.cc
  7137. Rejected adding node whose ID is the same as localhost's.
  7138. * src/DHTRoutingTable.cc
  7139. * test/BtPortMessageTest.cc
  7140. * test/DHTRoutingTableTest.cc
  7141. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Pool connection when redirection occurs with Content-Length = 0.
  7143. * src/HttpSkipResponseCommand.cc
  7144. * src/HttpSkipResponseCommand.h
  7145. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Fixed the bug that causes time out when redirection occurs with
  7147. content-length 0.
  7148. * src/HttpResponseCommand.cc
  7149. * src/HttpSkipResponseCommand.cc
  7150. * src/HttpSkipResponseCommand.h
  7151. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Now each status legends is shown only when it appears in Download
  7153. Result. If Download Result has no item, then status legend will not
  7154. be printed.
  7155. * src/RequestGroupMan.cc
  7156. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Removed duplicate creation of OptionHandlers.
  7158. * src/option_processing.cc
  7159. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Fixed the bug that causes segmentation fault when accessing files which
  7161. don't exist or are not included in --select-file option while
  7162. validating chunk checksum.
  7163. * src/MultiDiskAdaptor.cc
  7164. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Fixed compiler warning.
  7166. * test/UtilTest.cc
  7167. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7169. * src/IteratableChecksumValidator.cc
  7170. * src/IteratableChunkChecksumValidator.cc
  7171. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. * Release 0.16.2
  7173. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Added Serbian translation. Updated Ukrainian translation.
  7175. Thanks to all translators.
  7176. * po/sr.po
  7177. * po/uk.po
  7178. * po/LINGUAS
  7179. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Bump up version number to 0.16.2
  7181. * configure.ac
  7182. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Added length equality test to operator== to drop a piece message
  7184. whose length does not match to the requested one.
  7185. * src/RequestSlot.cc
  7186. * test/DefaultBtMessageDispatcherTest.cc
  7187. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7188. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7189. recieved.
  7190. In this fix, if a request larger than 16KiB length is received, aria2
  7191. disconnects the peer.
  7192. * src/BtConstants.h
  7193. * src/PeerMessageUtil.cc
  7194. * src/PeerMessageUtil.h
  7195. * test/BtRequestMessageTest.cc
  7196. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. * Release 0.16.1
  7198. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7200. * doc/aria2c.1.txt
  7201. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7203. Updated French, Simplified Chinese and Japanese translations.
  7204. Thanks to all translators.
  7205. en@quot and en@boldquot are also added.
  7206. * po/LINGUAS
  7207. * po/fr.po
  7208. * po/ja.po
  7209. * po/uk.po
  7210. * po/vi.po
  7211. * po/zh_CN.po
  7212. * po/zh_TW.po
  7213. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Bump up version number to 0.16.1.
  7215. * configure.ac
  7216. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Updated README.
  7218. * README
  7219. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7221. not to replace '--' with em dash character.
  7222. * doc/aria2c.1.txt
  7223. * doc/makeman
  7224. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7226. every SEC seconds.
  7227. * src/DownloadEngineFactory.cc
  7228. * src/OptionHandlerFactory.cc
  7229. * src/option_processing.cc
  7230. * src/usage_text.h
  7231. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Fixed compile warning on linux-amd64
  7233. * src/FtpConnection.cc
  7234. * src/IteratableChunkChecksumValidator.cc
  7235. * src/MultiDiskAdaptor.cc
  7236. Fixed the bug that unit test fails on linux-amd64
  7237. * test/UtilTest.cc
  7238. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Added --dht-file-path option to change the path to dht.dat, which is a
  7240. serialized DHT routing table.
  7241. * src/OptionHandlerFactory.cc
  7242. * src/option_processing.cc
  7243. * src/usage_text.h
  7244. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Fixed possible underflow.
  7246. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7247. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Fixed the bug that last character in URI is not encoded.
  7249. * src/Request.cc
  7250. * test/RequestTest.cc
  7251. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Fixed the bug that referer header field contains fragment.
  7253. Now Request class removes fragment part of URI and encodes it
  7254. in Request::setUri() and setReferer().
  7255. * src/Request.h
  7256. * src/Request.cc
  7257. * test/RequestTest.cc
  7258. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Added missing m4 macros.
  7260. * m4/cppunit.m4
  7261. * m4/libgcrypt.m4
  7262. * m4/libgnutls-extra.m4
  7263. * m4/libgnutls.m4
  7264. * m4/libxml2.m4
  7265. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Fixed compile error with gcc-4.4(snapshot)
  7267. * src/File.cc
  7268. * src/FtpConnection.cc
  7269. * src/OptionHandlerImpl.h
  7270. * src/Util.cc
  7271. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Removed assert()
  7273. * src/SocketBuffer.cc (SocketBuffer::send)
  7274. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7275. Changed the type of _numNewConnection to unsigned int.
  7276. * src/ActivePeerConnectionCommand.cc
  7277. * src/ActivePeerConnectionCommand.h
  7278. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. * Release 0.16.0
  7280. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Updated doc
  7282. * README
  7283. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7285. translations. Thanks to all translators.
  7286. * po/bg.po
  7287. * po/de.po
  7288. * po/fr.po
  7289. * po/ja.po
  7290. * po/zh_CN.po
  7291. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Bump up version number to 0.16.0.
  7293. * configure.ac
  7294. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7295. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7296. int32_t.
  7297. Changed the type of count to int32_t.
  7298. * src/Metalink2RequestGroup.cc
  7299. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Added test for Time::elapsed(time_t).
  7301. * test/TimeTest.cc
  7302. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7304. Util::difftv() should be used instead.
  7305. * src/TimeA2.cc
  7306. * src/TimeA2.h
  7307. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Made socket for dht connections non-blocking
  7309. * src/DHTAbstractMessage.cc
  7310. * src/DHTAbstractMessage.h
  7311. * src/DHTConnection.h
  7312. * src/DHTConnectionImpl.cc
  7313. * src/DHTConnectionImpl.h
  7314. * src/DHTMessage.h
  7315. * src/DHTMessageDispatcherImpl.cc
  7316. * src/DHTMessageDispatcherImpl.h
  7317. * src/DHTUnknownMessage.cc
  7318. * src/DHTUnknownMessage.h
  7319. * src/SocketCore.cc
  7320. * src/SocketCore.h
  7321. * test/MockDHTMessage.h
  7322. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Changed the type of offset to int.
  7324. * src/ParameterizedStringParser.cc
  7325. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Made getAsInt() return int32_t
  7327. * src/Option.h
  7328. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7330. build.
  7331. * configure.ac
  7332. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7333. Use sqlite3_open if sqlite3_open_v2 is not available.
  7334. * src/Sqlite3MozCookieParser.cc
  7335. * src/Sqlite3MozCookieParser.h
  7336. * m4/sqlite3.m4
  7337. * test/Sqlite3MozCookieParserTest.cc
  7338. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7340. * src/BtPieceMessage.cc
  7341. * src/DHTPeerAnnounceStorage.cc
  7342. * src/DefaultPieceStorage.cc
  7343. * src/DownloadCommand.cc
  7344. * src/DownloadEngine.cc
  7345. * src/FtpConnection.cc
  7346. * src/PeerConnection.cc
  7347. * src/PeerMessageUtil.cc
  7348. * src/RequestGroup.cc
  7349. * src/RequestGroupMan.cc
  7350. * src/SimpleBtMessage.cc
  7351. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7353. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7354. * src/AbstractDiskWriter.cc
  7355. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Don't set Request::supportsPersistentConnection() in HttpConnection
  7357. since this code is also used in AbstractProxyResponseCommand.
  7358. Moved those code to HttpResponse.
  7359. * src/HttpResponse.cc
  7360. * src/HttpResponse.h
  7361. * src/HttpConnection.cc
  7362. * src/HttpConnection.h
  7363. * src/HttpResponseCommand.cc
  7364. * test/HttpResponseTest.cc
  7365. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7367. The configuration is minimum: no torrent, no metalink, so there may be
  7368. other compile error on their code.
  7369. * src/a2netcompat.h
  7370. * src/File.cc
  7371. * src/File.h
  7372. * src/SocketCore.cc
  7373. * src/SocketCore.h
  7374. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Made a socket of incoming peer non-blocking.
  7376. * src/PeerListenCommand.cc
  7377. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7379. whole message data is not sent in one send() call.
  7380. * src/BtPieceMessage.cc
  7381. * src/BtPieceMessage.h
  7382. * src/PeerConnection.cc
  7383. * src/PeerConnection.h
  7384. * src/SimpleBtMessage.cc
  7385. * src/SimpleBtMessage.h
  7386. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Fixed the bug that aria2 downloads faster than max-download-limit when
  7388. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7389. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7390. , instead of sum of them.
  7391. * src/ActivePeerConnectionCommand.cc
  7392. * src/DefaultBtInteractive.cc
  7393. * src/DownloadCommand.cc
  7394. * src/PeerInteractionCommand.cc
  7395. * src/PeerReceiveHandshakeCommand.cc
  7396. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Fixed the bug that HTTPS download fails.
  7398. * src/AbstractCommand.cc
  7399. * src/AbstractCommand.h
  7400. * src/DownloadCommand.cc
  7401. * src/FtpConnection.cc
  7402. * src/HttpConnection.cc
  7403. * src/HttpRequestCommand.cc
  7404. * src/HttpResponseCommand.cc
  7405. * src/HttpSkipResponseCommand.cc
  7406. * src/MSEHandshake.cc
  7407. * src/PeerConnection.cc
  7408. * src/SocketCore.cc
  7409. * src/SocketCore.h
  7410. Fixed the bug that aria2 doesn't download whole content body and cannot
  7411. reuse connection if chunked transfer encoding and gzip content encoding
  7412. are set.
  7413. * src/DownloadCommand.cc
  7414. * src/HttpSkipResponseCommand.cc
  7415. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Updated man page.
  7417. * doc/aria2c.1.txt
  7418. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. When error occurred while aria2 was parsing an .aria2.conf file, print
  7420. the usage of the option that caused error.
  7421. * src/option_processing.cc
  7422. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Fixed compile error on OptionHandlerException
  7424. * src/Makefile.am
  7425. * src/OptionHandlerException.cc
  7426. * src/OptionHandlerException.h
  7427. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Moved message of the error to OptionHandlerException.h
  7429. * src/NameMatchOptionHandler.h
  7430. * src/OptionHandlerException.h
  7431. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. When error occurs while aria2 is parsing an command-line option, print
  7433. the usage of the option.
  7434. * src/Makefile.am
  7435. * src/NameMatchOptionHandler.h
  7436. * src/OptionHandlerException.h
  7437. * src/option_processing.cc
  7438. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Reverted previous change.
  7440. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7441. username is not in URI.
  7442. * src/HttpRequest.cc
  7443. * src/Request.cc
  7444. * test/HttpRequestTest.cc
  7445. * test/RequestTest.cc
  7446. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Now colon is required for username and password in FTP URL, like:
  7448. ftp://username:password@host.
  7449. If colon is not there, aria2 don't parse it as a username. For example,
  7450. aria2 don't retrieve username from ftp://username@host.
  7451. This fix was made in order to login FTP server via non-transparent ftp
  7452. proxy.
  7453. * src/Request.cc
  7454. * test/RequestTest.cc
  7455. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Use netrc for HTTP.
  7457. Now FTP user/password is sent in Authorization header when
  7458. --ftp-via-http-proxy=get is given.
  7459. * src/AuthConfigFactory.cc
  7460. * src/HttpRequest.cc
  7461. * src/HttpRequest.h
  7462. * src/NetrcAuthResolver.cc
  7463. * src/NetrcAuthResolver.h
  7464. * src/OptionHandlerFactory.cc
  7465. * src/option_processing.cc
  7466. * src/prefs.cc
  7467. * src/prefs.h
  7468. * test/AuthConfigFactoryTest.cc
  7469. * test/HttpRequestTest.cc
  7470. * test/NetrcAuthResolverTest.cc
  7471. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Issue PWD command first and get working directory and use it as a prefix
  7473. for CWD command.
  7474. * src/DownloadEngine.cc
  7475. * src/DownloadEngine.h
  7476. * src/FtpConnection.cc
  7477. * src/FtpConnection.h
  7478. * src/FtpFinishDownloadCommand.cc
  7479. * src/FtpInitiateConnectionCommand.cc
  7480. * src/FtpNegotiationCommand.cc
  7481. * src/FtpNegotiationCommand.h
  7482. * test/FtpConnectionTest.cc
  7483. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Removed default user/pass for FTP user/pass, since it should not have
  7485. precedence over netrc configuration by default.
  7486. * src/OptionHandlerFactory.cc
  7487. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Added debug log for socket event.
  7489. * src/AbstractCommand.cc
  7490. * src/PeerAbstractCommand.cc
  7491. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Log microseconds.
  7493. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7494. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Replaced HelpItem.cc with OptionHandler.cc.
  7496. * po/POTFILES.in
  7497. Updated po files with 'make update-po'
  7498. * po/aria2c.pot
  7499. * po/*.po
  7500. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Removed possible values from the text.
  7502. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7503. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Removed unused preferences:
  7505. PREF_NO_PREALLOCATION
  7506. PREF_STDOUT_LOG
  7507. PREF_TRACKER_MAX_TRIES
  7508. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7509. PREF_MIN_SEGMENT_SIZE
  7510. * src/option_processing.cc
  7511. * src/prefs.cc
  7512. * src/prefs.h
  7513. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Integrated HelpItem into OptionParser to ease the workload for adding
  7515. new options. Removed default value from usage text.
  7516. * src/HelpItem.cc: Removed.
  7517. * src/HelpItem.h: Removed.
  7518. * src/HelpItemFactory.cc: Removed.
  7519. * src/HelpItemFactory.h: Removed.
  7520. * src/Makefile.am
  7521. * src/Makefile.in
  7522. * src/NameMatchOptionHandler.h
  7523. * src/OptionHandler.cc
  7524. * src/OptionHandler.h
  7525. * src/OptionHandlerFactory.cc
  7526. * src/OptionHandlerImpl.h
  7527. * src/OptionParser.cc
  7528. * src/OptionParser.h
  7529. * src/TagContainer.cc: Removed.
  7530. * src/TagContainer.h: Removed.
  7531. * src/TaggedItem.cc: Removed.
  7532. * src/TaggedItem.h: Removed.
  7533. * src/main.cc
  7534. * src/option_processing.cc
  7535. * src/usage_text.h
  7536. * src/version_usage.cc
  7537. * test/HelpItemTest.cc: Removed.
  7538. * test/Makefile.am
  7539. * test/Makefile.in
  7540. * test/OptionHandlerTest.cc
  7541. * test/OptionParserTest.cc
  7542. * test/TagContainerTest.cc: Removed.
  7543. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Moved `TransferStat stat = ...' to inside the `if' clause.
  7545. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7546. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Fixed the bug that a block in a piece is requested when same block is
  7548. already requested to the same peer in end game mode.
  7549. * src/BtRequestFactory.h
  7550. * src/DefaultBtInteractive.cc
  7551. * src/DefaultBtRequestFactory.cc
  7552. * src/DefaultBtRequestFactory.h
  7553. * src/DefaultPieceStorage.cc
  7554. * src/DefaultPieceStorage.h
  7555. * src/PieceStorage.h
  7556. * src/UnknownLengthPieceStorage.cc
  7557. * src/UnknownLengthPieceStorage.h
  7558. * test/DefaultBtRequestFactoryTest.cc
  7559. * test/DefaultPieceStorageTest.cc
  7560. * test/MockBtRequestFactory.h
  7561. * test/MockPieceStorage.h
  7562. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Removed _uploadLength and _downloadLength from PeerSessionResource
  7564. and use PeerStat::_sessionUploadLength and
  7565. PeerStat::_sessionDownloadLength.
  7566. * src/PeerSessionResource.cc
  7567. * src/PeerSessionResource.h
  7568. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Fixed the bug that prefixLength of split bucket which doesn't include
  7570. local node ID is incremented.
  7571. * src/DHTBucket.cc
  7572. * src/DHTBucket.h
  7573. * test/DHTBucketTest.cc
  7574. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Added cookies.sqlite to EXTRA_DIST
  7576. * test/Makefile.am
  7577. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Added Turkish translation. Updated French, German, Russian and
  7579. Simplified Chinese translations. Thanks to all translators.
  7580. * po/LINGUAS
  7581. * po/de.po
  7582. * po/fr.po
  7583. * po/ru.po
  7584. * po/tr.po
  7585. * po/zh_CN.po
  7586. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Added deliminating text to the beginning of the log so that one can find
  7588. where the log starts easily.
  7589. * src/main.cc
  7590. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7592. to fix compile error when async DNS is not enabled by configuration.
  7593. * src/AbstractCommand.cc
  7594. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. If establishing conneciton to a server is failed, then mark error on
  7596. its ServerStat.
  7597. Added the cause of error to log when error event occurred.
  7598. Moved message string to message.h for translation.
  7599. * src/AbstractCommand.cc
  7600. * src/AbstractCommand.h
  7601. * src/FtpNegotiationCommand.cc
  7602. * src/HttpRequestCommand.cc
  7603. * src/PeerAbstractCommand.cc
  7604. * src/message.h
  7605. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Added the function to get error message from socket.
  7607. * src/SocketCore.cc
  7608. * src/SocketCore.h
  7609. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7611. * src/RequestGroupMan.cc
  7612. * src/RequestGroupMan.h
  7613. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. If error event is received in epoll, then abort download immediately.
  7615. * src/AbstractCommand.cc
  7616. * src/Command.cc
  7617. * src/Command.h
  7618. * src/DownloadEngine.cc
  7619. * src/PeerAbstractCommand.cc
  7620. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Added usage message for --uri-selector, --server-stat-of,
  7622. --server-stat-in, --server-stat-timeout options.
  7623. * src/HelpItemFactory.cc
  7624. * src/usage_text.h
  7625. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Added upper limit of FTP response buffer. The current implementation
  7627. uses 4096bytes as a limit.
  7628. * src/FtpConnection.cc
  7629. * src/FtpConnection.h
  7630. * test/FtpConnectionTest.cc
  7631. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Use non-blocking socket for TCP communication to avoid possible
  7633. blocking due to buffer full.
  7634. * src/AbstractProxyRequestCommand.cc
  7635. * src/FtpConnection.cc
  7636. * src/FtpConnection.h
  7637. * src/FtpNegotiationCommand.cc
  7638. * src/FtpNegotiationCommand.h
  7639. * src/HttpConnection.cc
  7640. * src/HttpConnection.h
  7641. * src/HttpRequestCommand.cc
  7642. * src/InitiatorMSEHandshakeCommand.cc
  7643. * src/InitiatorMSEHandshakeCommand.h
  7644. * src/MSEHandshake.cc
  7645. * src/MSEHandshake.h
  7646. * src/Makefile.am
  7647. * src/PeerConnection.cc
  7648. * src/PeerConnection.h
  7649. * src/PeerInteractionCommand.cc
  7650. * src/PeerListenCommand.cc
  7651. * src/ReceiverMSEHandshakeCommand.cc
  7652. * src/ReceiverMSEHandshakeCommand.h
  7653. * src/SocketBuffer.cc
  7654. * src/SocketBuffer.h
  7655. * src/SocketCore.cc
  7656. * src/SocketCore.h
  7657. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Call setStatusRealtime() in constructor.
  7659. * src/RealtimeCommand.cc
  7660. * src/RealtimeCommand.h
  7661. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Call Download::setNoWait(true) to execute newly created command without
  7663. a pause.
  7664. * src/AbstractCommand.cc
  7665. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7667. found' error from HTTP/FTP server NUM times without getting single
  7668. bytes of data, then force the download to fail.
  7669. Basically aria2 tris all URIs available. So if long list of URIs are
  7670. specified in Metalink, then aria2 will take a long time to fail
  7671. eventually if all URIs are outdated. This option eases this situation
  7672. to limit the number of servers to try.
  7673. * src/FtpNegotiationCommand.cc
  7674. * src/HelpItemFactory.cc
  7675. * src/HttpResponseCommand.cc
  7676. * src/OptionHandlerFactory.cc
  7677. * src/PeerStat.h
  7678. * src/RequestGroup.cc
  7679. * src/RequestGroup.h
  7680. * src/SegmentMan.cc
  7681. * src/SegmentMan.h
  7682. * src/option_processing.cc
  7683. * src/prefs.cc
  7684. * src/prefs.h
  7685. * src/usage_text.h
  7686. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7688. response even if more than one response is in it.
  7689. * src/FtpConnection.cc
  7690. * src/FtpConnection.h
  7691. * test/FtpConnectionTest.cc
  7692. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Merged from stable-0.15
  7694. * m4/libcares.m4
  7695. Use pkg-config
  7696. * m4/sqlite3.m4
  7697. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Removed unnecessary if statement.
  7699. * src/DefaultPieceStorage.cc (initPieceStorage)
  7700. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Added --connect-timeout option to specify connect timeout in seconds.
  7702. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7703. connecting to BitTorrent peer is not controlled by this option.
  7704. * src/AbstractProxyRequestCommand.cc
  7705. * src/FtpNegotiationCommand.cc
  7706. * src/HelpItemFactory.cc
  7707. * src/HttpRequestCommand.cc
  7708. * src/OptionHandlerFactory.cc
  7709. * src/option_processing.cc
  7710. * src/prefs.cc
  7711. * src/prefs.h
  7712. * src/usage_text.h
  7713. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Added help message for -R option.
  7715. * src/HelpItemFactory.cc
  7716. * src/usage_text.h
  7717. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Added the message that the time is in local time zone.
  7719. * src/RequestGroup.cc
  7720. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Implemented the ability to get timestamp from remote FTP server using
  7722. MDTM command described in RFC3659.
  7723. * src/FtpConnection.cc
  7724. * src/FtpConnection.h
  7725. * src/FtpNegotiationCommand.cc
  7726. * src/FtpNegotiationCommand.h
  7727. * test/FtpConnectionTest.cc
  7728. * test/Makefile.am
  7729. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Implemented the ability to get timestamp from remote HTTP server and
  7731. apply it to local file. To enable this feature, --remote-time option
  7732. is added. No usage text has been written yet.
  7733. If several servers returns difference timestamp, then aria2 uses latest
  7734. one.
  7735. * src/CopyDiskAdaptor.cc
  7736. * src/CopyDiskAdaptor.h
  7737. * src/DirectDiskAdaptor.cc
  7738. * src/DirectDiskAdaptor.h
  7739. * src/DiskAdaptor.h
  7740. * src/File.cc
  7741. * src/File.h
  7742. * src/HttpHeader.cc
  7743. * src/HttpHeader.h
  7744. * src/HttpResponse.cc
  7745. * src/HttpResponse.h
  7746. * src/HttpResponseCommand.cc
  7747. * src/HttpResponseCommand.h
  7748. * src/MultiDiskAdaptor.cc
  7749. * src/MultiDiskAdaptor.h
  7750. * src/OptionHandlerFactory.cc
  7751. * src/RequestGroup.cc
  7752. * src/RequestGroup.h
  7753. * src/RequestGroupMan.cc
  7754. * src/option_processing.cc
  7755. * src/prefs.cc
  7756. * src/prefs.h
  7757. * test/CopyDiskAdaptorTest.cc
  7758. * test/FileTest.cc
  7759. * test/Makefile.am
  7760. * test/Makefile.in
  7761. * test/MultiDiskAdaptorTest.cc
  7762. * test/TestUtil.cc
  7763. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Fixed the bug that DiskWriterEntry is not created when its
  7765. FileEntry.isRequested() is false and it doesn't share a piece with
  7766. other FileEntries that are requested. This bug causes segmentation fault
  7767. in the end.
  7768. * src/MultiDiskAdaptor.cc
  7769. * src/MultiDiskAdaptor.h
  7770. * src/MultiFileAllocationIterator.cc
  7771. * test/MultiDiskAdaptorTest.cc
  7772. * test/MultiFileAllocationIteratorTest.cc
  7773. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7774. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7775. called if the number of file entries are greater than max open files.
  7776. * src/AbstractSingleDiskAdaptor.cc
  7777. * src/AbstractSingleDiskAdaptor.h
  7778. * src/DiskAdaptor.h
  7779. * src/MultiDiskAdaptor.cc
  7780. * src/MultiDiskAdaptor.h
  7781. * test/MultiDiskAdaptorTest.cc
  7782. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Added a constuctor that receives struct timeval.
  7784. Added operator<.
  7785. * src/TimeA2.cc
  7786. * src/TimeA2.h
  7787. * test/TimeTest.cc
  7788. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7790. * src/CookieParser.cc
  7791. * test/CookieParserTest.cc
  7792. * test/HttpResponseTest.cc
  7793. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Implmented the functions to parse date.
  7795. * src/TimeA2.cc
  7796. * src/TimeA2.h
  7797. * test/TimeTest.cc
  7798. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. Added "Firefox3 Cookie" feature to FeatureConfig
  7800. * src/FeatureConfig.cc
  7801. * src/FeatureConfig.h
  7802. * test/FeatureConfigTest.cc
  7803. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Bump up version number to 0.16.0b
  7805. * configure.ac
  7806. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Use pkg-config if is is available.
  7808. * m4/openssl.m4
  7809. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7811. * src/BtAnnounce.h
  7812. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. If an error occurred with a URI, remove identical URI from remaining
  7814. URI list because it is likely that same error occurred in the end and it
  7815. is waste of time.
  7816. * src/AbstractCommand.cc
  7817. * src/RequestGroup.cc
  7818. * src/RequestGroup.h
  7819. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Removed wrong comment.
  7821. * src/DefaultPeerStorage.cc
  7822. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7824. Added return value of getpid() to argument of srand() to achieve more
  7825. randomized value.
  7826. * src/SimpleRandomizer.cc
  7827. * src/SimpleRandomizer.h
  7828. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Contact tracker frequently when the number of connections are 0 and
  7830. download is not finished yet.
  7831. * src/ActivePeerConnectionCommand.cc
  7832. * src/BtAnnounce.h
  7833. * src/DefaultBtAnnounce.cc
  7834. * src/DefaultBtAnnounce.h
  7835. * test/MockBtAnnounce.h
  7836. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Moved threshold values to UTPexExtensionMessage.
  7838. * src/DefaultBtInteractive.cc
  7839. * src/Peer.cc
  7840. * src/Peer.h
  7841. * src/UTPexExtensionMessage.cc
  7842. * src/UTPexExtensionMessage.h
  7843. * test/UTPexExtensionMessageTest.cc
  7844. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Added _incoming member to Peer class and made it true if the peer
  7846. initiated connection. Don't add those peer to UTPex message.
  7847. If extended handshake is received, assign _incoming to false.
  7848. * src/DefaultBtInteractive.cc
  7849. * src/HandshakeExtensionMessage.cc
  7850. * src/Peer.cc
  7851. * src/Peer.h
  7852. * src/PeerListenCommand.cc
  7853. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7855. Encoding Decoder. Removed size threshold for turning off on the fly
  7856. inflation because resulting file may or may not be inflated depending
  7857. on the file size and I think it is not expected by users.
  7858. This change fixes segmentation fault when Metalink file contains gzipped
  7859. file and its filesize is provided.
  7860. * src/HttpResponseCommand.cc
  7861. * src/HttpResponseCommand.h
  7862. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Made Cookie immutable.
  7864. * src/Cookie.cc
  7865. * src/Cookie.h
  7866. * src/CookieParser.cc
  7867. * src/CookieParser.h
  7868. * src/CookieStorage.cc
  7869. * test/CookieParserTest.cc
  7870. * test/CookieStorageTest.cc
  7871. * test/NsCookieParserTest.cc
  7872. * test/Sqlite3MozCookieParserTest.cc
  7873. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Removed CookieBox, CookieBoxFactory.
  7875. * src/CookieBox.cc
  7876. * src/CookieBox.h
  7877. * src/CookieBoxFactory.cc
  7878. * src/CookieBoxFactory.h
  7879. * src/Makefile.am
  7880. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Use CookieStorage class instead of CookieBox class.
  7882. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7883. * src/AbstractProxyRequestCommand.cc
  7884. * src/CookieStorage.cc
  7885. * src/DownloadEngine.cc
  7886. * src/DownloadEngine.h
  7887. * src/HttpConnection.cc
  7888. * src/HttpConnection.h
  7889. * src/HttpRequest.cc
  7890. * src/HttpRequest.h
  7891. * src/HttpRequestCommand.cc
  7892. * src/HttpResponse.cc
  7893. * src/HttpResponseCommand.cc
  7894. * src/HttpSkipResponseCommand.cc
  7895. * src/Makefile.am
  7896. * src/MultiUrlRequestInfo.cc
  7897. * src/Request.cc
  7898. * src/Request.h
  7899. * src/main.cc
  7900. * test/AllTest.cc
  7901. * test/CookieStorageTest.cc
  7902. * test/CookieTest.cc
  7903. * test/HttpRequestTest.cc
  7904. * test/HttpResponseTest.cc
  7905. * test/Makefile.am
  7906. * test/NsCookieParserTest.cc
  7907. * test/Sqlite3MozCookieParserTest.cc
  7908. * test/nscookietest.txt
  7909. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Updated
  7911. * test/Cookies.sqlite
  7912. * test/nscookietest.txt
  7913. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Added tests for CookieStorage::load()
  7915. * test/CookieStorageTest.cc
  7916. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Added CookieStorage class which is based on RFC2109 and manages cookies
  7918. more strictly than CookieBox and CookieBoxFactory class.
  7919. * src/CookieStorage.cc
  7920. * src/CookieStorage.h
  7921. * src/Cookie.cc
  7922. * src/Cookie.h
  7923. * test/CookieStorageTest.cc
  7924. * test/CookieTest.cc
  7925. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Fixed the bug that commands are created more than the number of pieces.
  7927. * src/RequestGroup.cc
  7928. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Fixed infinite loop bug in FTP when SIZE command failed.
  7930. * src/FtpNegotiationCommand.cc
  7931. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Removed DirectDiskAdaptorTest.h
  7933. * test/Makefile.am
  7934. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Fixed chunk checksum validation cannot detect trailing garbage data.
  7936. BUG#2074141
  7937. * src/AbstractSingleDiskAdaptor.cc
  7938. * src/AbstractSingleDiskAdaptor.h
  7939. * src/CheckIntegrityEntry.cc
  7940. * src/CheckIntegrityEntry.h
  7941. * src/DiskAdaptor.h
  7942. * src/MultiDiskAdaptor.cc
  7943. * src/MultiDiskAdaptor.h
  7944. * src/RequestGroup.cc
  7945. * test/DirectDiskAdaptorTest.cc
  7946. * test/MultiDiskAdaptorTest.cc
  7947. * test/TestUtil.cc
  7948. * test/TestUtil.h
  7949. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Bump up version number of dht.dat file to 3. In version 3 format, time
  7951. is stored in 64bit, network byte order.
  7952. New build can load old format(version 2) but it saves the file in new
  7953. format. It means once you used new build, your dht.dat becomes
  7954. incompatible with older build.
  7955. * src/DHTRoutingTableDeserializer.cc
  7956. * src/DHTRoutingTableSerializer.cc
  7957. * test/DHTRoutingTableSerializerTest.cc
  7958. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7960. * test/Makefile.am
  7961. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Bump up version number of .aria2 control file to 0001.
  7963. New aria2 can still load version 0000 file but it saves the file in
  7964. version 0001 format. It means that new aria2 can resume download
  7965. started by old aria2 but the opposite is not true.
  7966. * src/DefaultBtProgressInfoFile.cc
  7967. * src/DefaultBtProgressInfoFile.h
  7968. * test/DefaultBtProgressInfoFileTest.cc
  7969. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Added ntoh64 and hton64 as inline functions.
  7971. * src/Util.cc
  7972. * test/UtilTest.cc
  7973. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Added sqlite3 depenency and Firefox3 cookie support.
  7975. * README
  7976. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. State that firefox3 cookie is supported explicitly in the usage.
  7978. * src/usage_text.h
  7979. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Externalized message.
  7981. * src/RequestGroupMan.cc
  7982. * src/message.h
  7983. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Save temporary file first and rename to the destination on success.
  7985. Added test cases.
  7986. * src/RequestGroupMan.cc
  7987. * test/RequestGroupManTest.cc
  7988. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Fixed the bug that the number of connected peer is exceeding the limit
  7990. (55 by default) in seeding mode.
  7991. Multiplied 0.8 to _maxUploadSpeedLimit.
  7992. * src/ActivePeerConnectionCommand.cc
  7993. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Clear table item.
  7995. * src/Dictionary.cc
  7996. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Fixed error handling of lseek.
  7998. * src/AbstractDiskWriter.cc
  7999. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8001. style cookie file.
  8002. * src/usage_text.h
  8003. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8005. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8006. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8007. * src/Util.cc
  8008. * src/Util.h
  8009. * src/CookieParser.cc
  8010. * test/UtilTest.cc
  8011. * test/CookieParserTest.cc
  8012. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Separate the implementation to load old mozilla format of cookie to
  8014. NsCookieParser class.
  8015. * src/CookieBoxFactory.cc
  8016. * src/CookieBoxFactory.h
  8017. * src/NsCookieParser.cc
  8018. * src/NsCookieParser.h
  8019. * test/NsCookieParserTest.cc
  8020. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Made parse() const
  8022. * src/Sqlite3MozCookieParser.cc
  8023. * src/Sqlite3MozCookieParser.h
  8024. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Added firefox3 cookie support based on the patch submitted by
  8026. tizianomueller.
  8027. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8028. this functionality.
  8029. * configure.ac
  8030. * m4/sqlite3.m4
  8031. * src/CookieBoxFactory.cc
  8032. * src/CookieBoxFactory.h
  8033. * src/Makefile.am
  8034. * src/Makefile.in
  8035. * src/Sqlite3MozCookieParser.cc
  8036. * src/Sqlite3MozCookieParser.h
  8037. * src/main.cc
  8038. * test/CookieBoxFactoryTest.cc
  8039. * test/Makefile.am
  8040. * test/Makefile.in
  8041. * test/Sqlite3MozCookieParserTest.cc
  8042. * test/badcookies.sqlite
  8043. * test/cookies.sqlite
  8044. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Added Danish and Greek translations.
  8046. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8047. Great thanks to all translators.
  8048. * po/LINGUAS
  8049. * po/el.po
  8050. * po/da.po
  8051. * po/es.po
  8052. * po/ca.po
  8053. * po/nn.po
  8054. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Fixed man page: --follow-bittorrent should be --follow-torrent
  8056. * doc/aria2c.1.txt
  8057. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. Fixed: numCommand is less than the value specified in -C option.
  8059. * src/RequestGroup.cc
  8060. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Fixed occasional assertion failure in PieceSegment.
  8062. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8063. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8064. creation of duplicate segments and one of the segment was finished then
  8065. assertion failure was caused.
  8066. * src/SegmentMan.cc
  8067. * test/SegmentManTest.cc
  8068. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Added options to load/save the server's performance/status to a file
  8070. and the timeout to drop their data.
  8071. --server-stat-of=FILE specifies the file to which performance data
  8072. is saved.
  8073. --server-stat-if=FILE specifies the file to read previously saved
  8074. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8075. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8076. TIMEOUT is specified in seconds and the default value is 24hours.
  8077. * src/MultiUrlRequestInfo.cc
  8078. * src/OptionHandlerFactory.cc
  8079. * src/RequestGroupMan.cc
  8080. * src/RequestGroupMan.h
  8081. * src/ServerStatMan.cc
  8082. * src/ServerStatMan.h
  8083. * src/option_processing.cc
  8084. * src/prefs.cc
  8085. * src/prefs.h
  8086. * test/ServerStatManTest.cc
  8087. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8089. * src/ServerStatMan.cc
  8090. * src/ServerStatMan.h
  8091. * test/ServerStatManTest.cc
  8092. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8093. Implemented ServerStatMan::load(...) function and its test case.
  8094. * src/ServerStat.cc
  8095. * src/ServerStat.h
  8096. * src/ServerStatMan.cc
  8097. * test/ServerStatManTest.cc
  8098. * test/ServerStatTest.cc
  8099. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Use time_t instead of int32_t. Use int64_t where milli second is
  8101. expected.
  8102. * src/TimeA2.cc
  8103. * src/TimeA2.h
  8104. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Implemented ServerStatMan::save(...) function and its test case.
  8106. * src/ServerStat.cc
  8107. * src/ServerStat.h
  8108. * src/ServerStatMan.cc
  8109. * src/ServerStatMan.h
  8110. * test/ServerStatManTest.cc
  8111. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Now aria2 uses name attribute in Metalink as local filename in
  8113. BitTorrent downloads. BUG#2033999
  8114. * src/BtContext.h
  8115. * src/BtDependency.cc
  8116. * src/DefaultBtContext.cc
  8117. * src/DefaultBtContext.h
  8118. * src/SingleFileDownloadContext.cc
  8119. * src/SingleFileDownloadContext.h
  8120. * test/BtDependencyTest.cc
  8121. * test/DefaultBtContextTest.cc
  8122. * test/MockBtContext.h
  8123. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Added AC_C_BIGENDIAN
  8125. * src/configure.ac
  8126. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Limited numCommand less than or equal to the number of piece.
  8128. * src/RequestGroup.cc
  8129. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8131. directive.
  8132. * test/DefaultPieceStorageTest.cc
  8133. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Fixed memory leak in test code
  8135. * test/AnnounceListTest.cc
  8136. * test/DefaultPeerListProcessorTest.cc
  8137. * test/DefaultPeerStorageTest.cc
  8138. * test/MetaFileUtilTest.cc
  8139. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8141. * src/DefaultPieceStorage.cc
  8142. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Initialized _directIOAllowed
  8144. * src/MultiDiskAdaptor.cc
  8145. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Fixed memory leak
  8147. * src/GZipDecoder.cc
  8148. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Fixed memory leak
  8150. * src/MetalinkParserStateMachine.cc
  8151. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. Fixed memory leak
  8153. * src/Dictionary.cc
  8154. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Fixed memory leak
  8156. * src/IteratableChunkChecksumValidator.h
  8157. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Fixed unmatched malloc/free.
  8159. * src/IteratableChunkChecksumValidator.cc
  8160. * src/IteratableChecksumValidator.cc
  8161. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Removed max chunk size check. This change fixes BUG#2040169
  8163. * src/ChunkedDecoder.cc
  8164. * src/ChunkedDecoder.h
  8165. * test/ChunkedDecoderTest.cc
  8166. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Implemented download speed based URI selection algorithm.
  8168. Introduced new option --uri-selector.
  8169. If --uri-selector=feedback is given, aria2 uses download speed observed
  8170. in the previous downloads and chooses fastest server in the URI list.
  8171. Currently at most 10 URIs are considered to introduce randomeness for
  8172. finding better servers. The speed is average download speed in the
  8173. downloads.
  8174. On the other hand, if --uri-selector=inorder is given, which is default,
  8175. URI is tried in order in URI list.
  8176. The usage text for the new option has not been written yet.
  8177. * src/AbstractCommand.cc
  8178. * src/DownloadCommand.cc
  8179. * src/DownloadEngine.cc
  8180. * src/DownloadEngineFactory.cc
  8181. * src/InOrderURISelector.cc
  8182. * src/InOrderURISelector.h
  8183. * src/OptionHandlerFactory.cc
  8184. * src/PeerStat.h
  8185. * src/RequestGroup.cc
  8186. * src/RequestGroup.h
  8187. * src/RequestGroupMan.cc
  8188. * src/RequestGroupMan.h
  8189. * src/SegmentMan.cc
  8190. * src/SegmentMan.h
  8191. * src/ServerStat.cc
  8192. * src/ServerStat.h
  8193. * src/ServerStatMan.cc
  8194. * src/ServerStatMan.h
  8195. * src/ServerStatURISelector.cc
  8196. * src/ServerStatURISelector.h
  8197. * src/URISelector.h
  8198. * src/option_processing.cc
  8199. * src/prefs.cc
  8200. * src/prefs.h
  8201. * test/InOrderURISelectorTest.cc
  8202. * test/RequestGroupManTest.cc
  8203. * test/ServerStatManTest.cc
  8204. * test/ServerStatURISelectorTest.cc
  8205. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. * Release 0.15.1+2
  8207. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Bump up version number to 0.15.1+2
  8209. * configure.ac
  8210. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8212. * m4/aria2_arg.m4
  8213. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. * Release 0.15.1+1
  8215. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Bump up version number to 0.15.1+1
  8217. * configure.ac
  8218. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Fixed the bug that causes segmentaion fault when resuming download
  8220. using metalink without size tag. Reproducible only using HTTP URI.
  8221. * src/HttpResponseCommand.cc
  8222. * src/FtpNegotiationCommand.cc
  8223. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. * Release 0.15.1
  8225. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Updated Bulgarian and French translations, thanks to all translators.
  8227. * po/bg.po
  8228. * po/fr.po
  8229. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Bump up version number to 0.15.1
  8231. * configure.ac
  8232. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Avoid repeated call of gettimeofday() when calculating speed.
  8234. * src/SpeedCalc.cc
  8235. * src/SpeedCalc.h
  8236. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Removed writable check when socket's send buffer is full in BitTorrent
  8238. downloads to lower CPU usage.
  8239. * src/PeerInteractionCommand.cc
  8240. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Fixed broken gzip inflation.
  8242. Turn off segmented downloading if gzip content is smaller than or equal
  8243. to 1MiB and inflate the data on the fly, because HTTP response header
  8244. doesn't contain the length of inflated file we can't determin where
  8245. the chunk of data should be written.
  8246. On the other hand, if gzip content is larger than 1MB, then turn off
  8247. on the fly inflation, because some servers returns "content-type: gzip"
  8248. for *.tgz, *.gz files.
  8249. * src/DownloadCommand.cc
  8250. * src/HttpResponseCommand.cc
  8251. * src/HttpResponseCommand.h
  8252. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Applied tizianomueller's patch to fix compile error.
  8254. * test/BitfieldManTest.cc
  8255. * test/BtRequestMessageTest.cc
  8256. * test/DefaultBtContextTest.cc
  8257. * test/DefaultDiskWriterTest.cc
  8258. * test/DefaultPieceStorageTest.cc
  8259. * test/HttpHeaderProcessorTest.cc
  8260. * test/HttpResponseTest.cc
  8261. * test/Metalink2RequestGroupTest.cc
  8262. * test/MetalinkParserControllerTest.cc
  8263. * test/MetalinkProcessorTest.cc
  8264. * test/PeerSessionResourceTest.cc
  8265. * test/UtilTest.cc
  8266. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. * Release 0.15.0
  8268. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Reordered src files in POTFILES.in so that usage text appears first.
  8270. * po/POTFILES.in
  8271. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Bump up version number to 0.15.0
  8273. * configure.ac
  8274. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Added Bulgarian translation.
  8276. Updated Catalan, Spanish, French and Japanese translations.
  8277. Thanks to all translators.
  8278. * po/LINGUAS
  8279. * po/bg.po
  8280. * po/ca.po
  8281. * po/es.po
  8282. * po/fr.po
  8283. * po/ja.po
  8284. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Updated feature list. Added libz for dependency section.
  8286. Added a description about unit testing using CppUnit.
  8287. * README
  8288. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Added a test for libz. Quoted where it is necessary.
  8290. * build_test.sh
  8291. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Added GZip to `Enabled Features' list.
  8293. * src/FeatureConfig.cc
  8294. * src/FeatureConfig.h
  8295. * test/FeatureConfigTest.cc
  8296. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8298. the transfer has not yet started.
  8299. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8300. * src/SegmentMan.cc
  8301. * src/SegmentMan.h
  8302. * test/SegmentManTest.cc
  8303. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Cache last calculated average download/upload speed.
  8305. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8306. cached value.
  8307. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8308. * src/PeerStat.h
  8309. * src/SpeedCalc.cc
  8310. * src/SpeedCalc.h
  8311. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Call parseUrl directly.
  8313. * src/Request.cc (resetUrl)
  8314. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Supported absolute/relative path in Location header field.
  8316. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8317. * src/HttpHeader.cc
  8318. * src/HttpHeader.h
  8319. * src/HttpResponse.cc
  8320. * src/HttpSkipResponseCommand.cc
  8321. * src/Request.cc
  8322. * test/HttpHeaderTest.cc
  8323. * test/HttpResponseTest.cc
  8324. * test/RequestTest.cc
  8325. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Changed help text for --load-cookie option.
  8327. * doc/aria2c.1.txt
  8328. * src/usage_text.h
  8329. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Regenerated test/Makefile.in to remove stale ChangeLog.
  8331. * test/Makefile.in
  8332. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Updated po files.
  8334. * po/aria2c.pot
  8335. * po/*.po
  8336. * po/*.gmo
  8337. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Bump up version number to 0.15.0b
  8339. * configure.ac
  8340. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. Externalize messages.
  8342. * src/RequestGroupMan.cc
  8343. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8344. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Use File::exists() instead of File::isFile() to allow non-regular file
  8346. such as block special files.
  8347. * src/AbstractDiskWriter.cc
  8348. * src/MultiDiskWriter.cc
  8349. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8351. * src/gai_strerror.h
  8352. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Fixed compile error. Thanks gknauf for the patch.
  8354. * src/asctime_r.c
  8355. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Included asctime_r.h from a2time.h.
  8357. * src/a2time.h
  8358. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Added a message "aria2 doesn't verify signature" to log message when
  8360. signature file is saved.
  8361. * src/RequestGroupMan.cc
  8362. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Added the ability to save signature when download is completed if
  8364. signature is available. The filename of signature file is the path to
  8365. download file followed by ".sig". If it already exists, then signature
  8366. will not be saved.
  8367. * src/RequestGroupMan.cc
  8368. * src/Signature.cc
  8369. * test/SignatureTest.cc
  8370. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Updated the descriptions for --bt-seed-unverified.
  8372. * doc/aria2c.1
  8373. * doc/aria2c.1.html
  8374. * doc/aria2c.1.txt
  8375. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8377. that this is not going to verify files using piece hashes.
  8378. * src/HelpItemFactory.cc
  8379. * src/OptionHandlerFactory.cc
  8380. * src/RequestGroup.cc
  8381. * src/option_processing.cc
  8382. * src/prefs.cc
  8383. * src/prefs.h
  8384. * src/usage_text.h
  8385. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Added the ability to retrieve signature from Metalink file.
  8387. A retrieved signature is stored in Signature class and it is held by
  8388. DownloadContext class. Note that aria2 doesn't verify signature.
  8389. * src/DownloadContext.cc
  8390. * src/DownloadContext.h
  8391. * src/Makefile.am
  8392. * src/Makefile.in
  8393. * src/Metalink2RequestGroup.cc
  8394. * src/MetalinkEntry.cc
  8395. * src/MetalinkEntry.h
  8396. * src/MetalinkParserController.cc
  8397. * src/MetalinkParserController.h
  8398. * src/MetalinkParserStateMachine.cc
  8399. * src/MetalinkParserStateMachine.h
  8400. * src/Signature.cc
  8401. * src/Signature.h
  8402. * src/SignatureMetalinkParserState.cc
  8403. * src/SignatureMetalinkParserState.h
  8404. * src/VerificationMetalinkParserState.cc
  8405. * src/VerificationMetalinkParserState.h
  8406. * test/Metalink2RequestGroupTest.cc
  8407. * test/MetalinkParserControllerTest.cc
  8408. * test/MetalinkProcessorTest.cc
  8409. * test/test.xml
  8410. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Close DiskAdaptor after renaming file.
  8412. * src/RequestGroup.cc
  8413. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Corrected indentation
  8415. * src/DefaultBtProgressInfoFile.cc
  8416. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Moved the calls of std::ios::exceptions() inside of try-catch block
  8418. because if an error occurred in constructor of std::fstream, then
  8419. exception is thrown immediately when std::ios::exceptions() is called
  8420. which results unhandled exception and aria2c aborts.
  8421. * src/DefaultBtProgressInfoFile.cc
  8422. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Added the test for the previous change in DefaultBtContext.cc
  8424. * test/DefaultBtContextTest.cc
  8425. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Fixed the bug that causes infinite loop when the number of pieces are
  8427. fewer than allowed fast set size which is 10 by default.
  8428. * src/DefaultBtContext.cc
  8429. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Updated the descriptions for -j, -s. Added --bt-seed.
  8431. * doc/aria2c.1
  8432. * doc/aria2c.1.html
  8433. * doc/aria2c.1.txt
  8434. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8436. aria2 seeds previously downloaded files without validating piece hashs.
  8437. * src/HelpItemFactory.cc
  8438. * src/OptionHandlerFactory.cc
  8439. * src/RequestGroup.cc
  8440. * src/option_processing.cc
  8441. * src/prefs.cc
  8442. * src/prefs.h
  8443. * src/usage_text.h
  8444. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Updated DESCRIPTION of man page.
  8446. * doc/aria2c.1
  8447. * doc/aria2c.1.html
  8448. * doc/aria2c.1.txt
  8449. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8451. Don't define `struct addrinfo' when __sun is defined.
  8452. * src/getaddrinfo.h
  8453. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8455. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8456. second argument is of type `struct _stati64'. Otherwise it is defined as
  8457. `struct stat'.
  8458. * src/AbstractDiskWriter.cc
  8459. * src/File.cc
  8460. * src/File.h
  8461. * src/a2io.h
  8462. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Fixed the compile error in hurd-i386
  8464. See the original bug report:
  8465. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8466. * src/a2io.h
  8467. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Code cleanup.
  8469. * src/PeerAbstractCommand.cc
  8470. * src/PeerAbstractCommand.h
  8471. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Removed TransferEncoding.
  8473. * src/DownloadCommand.cc
  8474. * src/DownloadCommand.h
  8475. * src/HttpResponseCommand.cc
  8476. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Updated po files.
  8478. * po/aria2c.pot
  8479. * po/*.po
  8480. * po/*.gmo
  8481. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8483. * src/A2STR.cc
  8484. * src/A2STR.h
  8485. * src/ChunkedDecoder.cc
  8486. * src/ChunkedDecoder.h
  8487. * src/ChunkedEncoding.cc: Removed
  8488. * src/ChunkedEncoding.h: Removed
  8489. * src/DownloadCommand.cc
  8490. * src/DownloadCommand.h
  8491. * src/HttpDownloadCommand.cc
  8492. * src/HttpResponse.cc
  8493. * src/HttpResponse.h
  8494. * src/HttpResponseCommand.cc
  8495. * src/HttpSkipResponseCommand.cc
  8496. * src/HttpSkipResponseCommand.h
  8497. * src/Makefile.am
  8498. * src/TransferEncoding.h: Removed
  8499. * test/ChunkedDecoderTest.cc
  8500. * test/ChunkedEncodingTest.cc: Removed
  8501. * test/HttpResponseTest.cc
  8502. * test/Makefile.am
  8503. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Use append instead of insert.
  8505. * src/GZipDecoder.cc
  8506. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Updated doc
  8508. * src/Decoder.h
  8509. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Updated usage text for -s option.
  8511. * src/usage_text.h
  8512. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8514. * src/Request.cc
  8515. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Cleaned up configure.ac.
  8517. * configure.ac
  8518. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8520. AC_ARG_ENABLE.
  8521. * configure.ac
  8522. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8524. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8525. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8526. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8527. fly and writes decoded data to a local disk.
  8528. * README
  8529. * README.html
  8530. * configure.ac
  8531. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8532. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8533. * m4/libz.m4
  8534. * src/Decoder.h
  8535. * src/DownloadCommand.cc
  8536. * src/DownloadCommand.h
  8537. * src/Exception.h
  8538. * src/GZipDecoder.cc
  8539. * src/GZipDecoder.h
  8540. * src/HttpHeader.cc
  8541. * src/HttpHeader.h
  8542. * src/HttpRequest.cc
  8543. * src/HttpRequest.h
  8544. * src/HttpResponse.cc
  8545. * src/HttpResponse.h
  8546. * src/HttpResponseCommand.cc
  8547. * src/Makefile.am
  8548. * test/GZipDecoderTest.cc
  8549. * test/HttpRequestTest.cc
  8550. * test/HttpResponseTest.cc
  8551. * test/Makefile.am
  8552. * test/Makefile.in
  8553. * test/gzip_decode_test.gz
  8554. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Clarified usage of -j option.
  8556. * src/usage_text.h
  8557. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Disabled getting size from the response of RETR.
  8559. If SIZE command failed, then disable resuming and segmented downloading.
  8560. * src/FtpConnection.cc
  8561. * src/FtpConnection.h
  8562. * src/FtpNegotiationCommand.cc
  8563. * src/FtpNegotiationCommand.h
  8564. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Use digits to find first byte of file size, which makes the intention
  8566. of the code clearer.
  8567. * src/FtpConnection.cc
  8568. Don't call validateTotalLength() when size is 0.
  8569. * src/FtpNegotiationCommand.cc
  8570. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Updated po files.
  8572. * po/aria2c.pot
  8573. * po/*.gmo
  8574. * po/*.po
  8575. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Clarified usage text for --split option.
  8577. * src/usage_text.h
  8578. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Bump up version number to 0.15.0dev. "dev" means "development"
  8580. version, which means I started the development of the next release!
  8581. * src/configure.ac
  8582. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. If FTP server returns negative response with REST raw command and
  8584. requested range is not 0, throw exception. If requested range is 0,
  8585. continue download a file from 0 byte.
  8586. * src/FtpNegotiationCommand.cc
  8587. * src/FtpNegotiationCommand.h
  8588. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Supported FTP server which don't recognize SIZE raw command.
  8590. If SIZE raw command is failed, aria2 will try to get file size
  8591. from the response of RETR raw command. If both attempts are failed,
  8592. then resuming and segmented downloading are disabled.
  8593. * src/FtpConnection.cc
  8594. * src/FtpConnection.h
  8595. * src/FtpNegotiationCommand.cc
  8596. * src/FtpNegotiationCommand.h
  8597. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. * Release 0.14.0+1
  8599. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Bump up version number to 0.14.0+1
  8601. * src/configure.ac
  8602. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Fixed the code that refers static member variable from non-static
  8604. context.
  8605. * src/DefaultPeerStorage.cc
  8606. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. * Release 0.14.0
  8608. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Added build test script
  8610. * build_test.sh
  8611. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Updated ja.po
  8613. * src/ja.po
  8614. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Bump up version number to 0.14.0
  8616. * src/configure.ac
  8617. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Updated ja.po and fr.po. Great thanks for french translators and
  8619. Sebastien WILLEMIJNS.
  8620. * po/fr.po
  8621. * po/ja.po
  8622. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Added configure option to enable/disable epoll support.
  8624. * configure.ac
  8625. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Updated man page.
  8627. * doc/aria2c.1.txt
  8628. * doc/aria2c.1
  8629. * doc/aria2c.1.html
  8630. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Added missing default value '5' to the usage of --split option.
  8632. * src/HelpItemFactory.cc
  8633. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Filled up pieces based on the number of missing blocks, rather than
  8635. simplay the number of piece * block length.
  8636. * src/BtRequestFactory.h
  8637. * src/DefaultBtInteractive.cc
  8638. * src/DefaultBtInteractive.h
  8639. * src/DefaultBtRequestFactory.cc
  8640. * src/DefaultBtRequestFactory.h
  8641. * src/Piece.cc
  8642. * src/Piece.h
  8643. * test/BitfieldManTest.cc
  8644. * test/DefaultBtRequestFactoryTest.cc
  8645. * test/MockBtRequestFactory.h
  8646. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Made _epEvents a member variable.
  8648. * src/DownloadEngine.cc
  8649. * src/DownloadEngine.h
  8650. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Cancel download if http redirect is bounded more than 20 times.
  8652. * src/AbstractCommand.cc
  8653. * src/HttpSkipResponseCommand.cc
  8654. * src/Request.cc
  8655. * src/Request.h
  8656. * test/RequestTest.cc
  8657. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Fixed unhandled exception(removed keyword `new').
  8659. * src/SocketCore.cc (initEPOLL)
  8660. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Removed visit(const MetaEntry*)
  8662. * src/MetaEntryVisitor.h:
  8663. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8664. and made them virtual.
  8665. * src/BencodeVisitor.h
  8666. * src/BencodeVisitor.cc
  8667. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Updated po files.
  8669. * po/aria2c.pot
  8670. * po/*.po
  8671. * po/*.gmo
  8672. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8674. the number of socket to watch out.
  8675. * src/PeerInteractionCommand.cc
  8676. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. When there is not enough space in disk when writing a chunk of data,
  8678. aria2 now prints the message to the console to warn user and aborts
  8679. its download. Not all downloads are canceled because some downloads
  8680. may use another disk or partition. BUG#1640332
  8681. * src/AbstractDiskWriter.cc
  8682. * src/PeerAbstractCommand.cc
  8683. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8684. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8685. setHaltRequested(true) to cancel download.
  8686. * src/PeerInteractionCommand.h
  8687. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8689. socket from int to sock_t as sockets are unsigned in Windows.
  8690. For AsyncNameResolver, DownloadEngine, I did additional modification
  8691. for the portion of the code changed according to epoll support.
  8692. I defined sock_t in a2netcompat.h to use sock_t without including
  8693. SocketCore.h.
  8694. * src/AsyncNameResolver.cc
  8695. * src/AsyncNameResolver.h
  8696. * src/DownloadEngine.cc
  8697. * src/DownloadEngine.h
  8698. * src/SocketCore.cc
  8699. * src/SocketCore.h
  8700. * src/a2netcompat.h
  8701. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8703. changes in the patch were applied.
  8704. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8705. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8706. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8707. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8709. a2io.h and common.h were modified.
  8710. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8711. MinGW.
  8712. * src/common.h: Changed off_t to 64 bit in MinGW.
  8713. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8715. only a2netcompat.h is modified.
  8716. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8717. directives.
  8718. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8720. only gai_strerror.h is modified.
  8721. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8722. winsock errors in MinGW.
  8723. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8725. follow sources are applied.
  8726. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8727. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8728. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8729. I included locale.h from Platform.cc.
  8730. * src/main.cc: Moved common setup/teardown code to Platform class.
  8731. * test/AllTest.cc: Use Platform class.
  8732. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8733. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8735. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8736. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8737. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8739. aria2-0.13.2+1-mingw-2.patch.
  8740. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8741. systems which don't have termious.h. I moved the directive inside of
  8742. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8743. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8744. anyway.
  8745. * src/asctime_r.h
  8746. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8747. I added 2nd argument to the prototype declaration.
  8748. * src/StringFormat.cc: Get rid of vasprintf.
  8749. * src/getaddrinfo.h: Fixed constants.
  8750. * configure.ac: Added the check for asctime_r function.
  8751. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8752. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Added writable test for Socket when the sending message is in progress.
  8754. Usually the sending message is piece message. Without wriable check,
  8755. upload latency is dropped to more than 1sec.
  8756. * src/PeerInteractionCommand.cc
  8757. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Create only requested files and files which shares a piece with
  8759. requested file in multi-torrent downloads. Directory structures are
  8760. also created in the same rule.
  8761. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8762. DiskWriterEntry as in the previous implementation.
  8763. * src/MultiDiskWriter.cc
  8764. * src/MultiFileAllocationIterator.cc
  8765. * src/MultiFileAllocationIterator.h
  8766. * test/MultiFileAllocationIteratorTest.cc
  8767. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Commented out -lprofiler
  8769. * src/Makefile.am
  8770. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Bump up version number to 0.14.0b.
  8772. * src/configure.ac
  8773. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Actively establish connection to peers in seeding, when peer cache
  8775. is not full and max upload speed limit is not reached.
  8776. * src/ActivePeerConnectionCommand.cc
  8777. * src/ActivePeerConnectionCommand.h
  8778. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8780. to make room more fleshy, recently found peers.
  8781. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8782. it.
  8783. * src/DefaultPeerStorage.cc
  8784. * test/DefaultPeerStorageTest.cc
  8785. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Returns cached data only when the previous receiveHandshake() is called
  8787. with peek = true.
  8788. * src/PeerConnection.cc (receiveHandshake)
  8789. * src/PeerConnection.h (receiveHandshake)
  8790. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Changed default value of -s option from 1 to 5.
  8792. Also max value of -s option is changed from 5 to 16.
  8793. * src/HelpItemFactory.cc
  8794. * src/OptionHandlerFactory.cc
  8795. * src/option_processing.cc
  8796. * src/usage_text.h
  8797. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Changed -s options behavior. Now it means the number of connections
  8799. made simultaneously in each http/ftp download.
  8800. If 1 URL is specified, the behavior is the same with old implementation.
  8801. If -s N is given and more than N URLs are specified, first N URLs are
  8802. used and remaining URLs are used for backup. If less than N URLs are
  8803. specified, some of URLs are used more than once so that totally N
  8804. connections are made simultaneously.
  8805. * src/main.cc
  8806. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Included missing iosfwd or ostream header.
  8808. * src/RequestGroupMan.cc
  8809. * src/TaggedItem.cc
  8810. * src/TaggedItem.h
  8811. * src/Util.cc
  8812. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8814. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8815. * src/HttpConnection.cc: Included missing sstream.
  8816. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Added --bt-max-open-files option.
  8818. * src/DefaultPieceStorage.cc
  8819. * src/HelpItemFactory.cc
  8820. * src/MultiDiskAdaptor.cc
  8821. * src/MultiDiskAdaptor.h
  8822. * src/OptionHandlerFactory.cc
  8823. * src/option_processing.cc
  8824. * src/prefs.cc
  8825. * src/prefs.h
  8826. * src/usage_text.h
  8827. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Fixed the bug that aria2 aborts when a path to a directory is given
  8829. in command-line.
  8830. * src/ProtocolDetector.cc
  8831. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Limited the number files opened in each BitTorrent download. The default
  8833. value is 100. The option to change this value will be added.
  8834. * src/MultiDiskAdaptor.cc
  8835. * src/MultiDiskAdaptor.h
  8836. * src/MultiFileAllocationIterator.cc
  8837. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Fixed the bug that HTTP downloads don't start with old libraries.
  8839. * src/HttpHeaderProcessor.cc
  8840. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Use empty() instead of size() > 0.
  8842. * src/HttpConnection.cc
  8843. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Drop connection if the incoming peer ID is the same with localhost's
  8845. one. The previous implementation drops connection when incoming peer's
  8846. IP address is the same with localhost's one.
  8847. * src/PeerListenCommand.cc
  8848. * src/DefaultBtInteractive.cc
  8849. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Returns cached data without checking whether socket is readable
  8851. if the cache is available.
  8852. * src/PeerConnection.cc (receiveHandshake)
  8853. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Included stdint.h
  8855. * src/common.h
  8856. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Removed duplicate HAVE_GETTIMEOFDAY
  8858. * src/Makefile.am
  8859. * src/Makefile.in
  8860. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Use interval as a minInterval when minInterval is not supplied.
  8862. * src/DefaultBtAnnounce.cc
  8863. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8865. attempt is failed, then 2nd attempt get kicked out more quickly.
  8866. And it is now static const member of DefaultBtAnnounce.
  8867. * src/DefaultBtAnnounce.h
  8868. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8870. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8871. * src/ActivePeerConnectionCommand.cc
  8872. * src/BtConstants.h
  8873. * src/BtRuntime.h
  8874. * src/DHTGetPeersCommand.cc
  8875. * src/DefaultBtAnnounce.cc
  8876. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8877. BtRuntime::MAX_PEERS.
  8878. * src/DefaultPeerStorage.h
  8879. * src/InitiatorMSEHandshakeCommand.cc
  8880. * src/PeerInitiateConnectionCommand.cc
  8881. * src/PeerInteractionCommand.cc
  8882. * src/PeerReceiveHandshakeCommand.cc
  8883. * src/TrackerWatcherCommand.cc
  8884. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Always Connect to _numNewConnection
  8886. * src/ActivePeerConnectionCommand.cc
  8887. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. Made `begin' unsigned int.
  8889. * src/GrowSegment.h
  8890. * src/Piece.cc
  8891. * src/Piece.h
  8892. * src/PiecedSegment.cc
  8893. * src/PiecedSegment.h
  8894. * src/Segment.h
  8895. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Calculate piece hash when data is arrived if the data is arrived in
  8897. order. This removes additional read operation for hash calculation.
  8898. If the data is arrived in out of order, the hash is calucated when the
  8899. piece is completed. This is the same behavior as the old implementation.
  8900. * src/BtPieceMessage.cc
  8901. * src/DefaultBtProgressInfoFile.cc
  8902. * src/DefaultPieceStorage.cc
  8903. * src/DownloadCommand.cc
  8904. * src/DownloadCommand.h
  8905. * src/DownloadEngine.cc
  8906. * src/GrowSegment.cc
  8907. * src/GrowSegment.h
  8908. * src/Piece.cc
  8909. * src/Piece.h
  8910. * src/PiecedSegment.cc
  8911. * src/PiecedSegment.h
  8912. * src/Segment.h
  8913. * test/PieceTest.cc
  8914. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Try to keep the ordering of outgoing piece message.
  8916. * src/DefaultBtMessageDispatcher.cc
  8917. (DefaultBtMessageDispatcher::sendMessages)
  8918. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Fixed busy loop when error/hup epoll events occur.
  8920. * src/AbstractCommand.cc
  8921. * src/PeerAbstractCommand.cc
  8922. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Added --bt-request-peer-speed-limit option, which was a constant
  8924. SLOW_SPEED_THRESHOLD.
  8925. * src/ActivePeerConnectionCommand.cc
  8926. * src/ActivePeerConnectionCommand.h
  8927. * src/BtConstants.h
  8928. * src/HelpItemFactory.cc
  8929. * src/OptionHandlerFactory.cc
  8930. * src/PeerReceiveHandshakeCommand.cc
  8931. * src/option_processing.cc
  8932. * src/prefs.cc
  8933. * src/prefs.h
  8934. * src/usage_text.h
  8935. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Removed repeated call of getTopDirPath(). Instead, call it once and
  8937. cache the result.
  8938. * src/MultiDiskAdaptor.cc
  8939. * src/MultiDiskAdaptor.h
  8940. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8941. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Fixed compile error on debian etch.
  8943. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8944. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8945. it is undefined.
  8946. * src/Util.cc (ULLONG_MAX)
  8947. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Added epoll support. Use epoll if it is available. If not, use select.
  8949. When async dns is enabled in compile time, epoll support is enabled
  8950. only when aria2 is built with c-ares. This condition statement is
  8951. defined in a2io.h.
  8952. Currently aria2 supports both c-ares and ares, but ares is maintained
  8953. for quite a while and debian already has c-ares package, ares support
  8954. will be dropped in the future version.
  8955. * configure.ac
  8956. * src/AbstractCommand.cc
  8957. * src/AsyncNameResolver.cc
  8958. * src/AsyncNameResolver.h
  8959. * src/Command.cc
  8960. * src/Command.h
  8961. * src/DownloadEngine.cc
  8962. * src/DownloadEngine.h
  8963. * src/PeerAbstractCommand.cc
  8964. * src/SocketCore.cc
  8965. * src/SocketCore.h
  8966. * src/a2io.h
  8967. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8969. directive.
  8970. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Do not do write operation to /dev/null file.
  8972. * src/LogFactory.cc
  8973. * src/SimpleLogger.cc
  8974. Replaced vasprintf with vsnprintf
  8975. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8976. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. * src/BtRequestMessage.cc
  8978. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8979. for segmentation fault caused by previous commit.
  8980. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Reduced the usage of gettimeofday().
  8982. * src/DefaultBtMessageDispatcher.cc
  8983. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8984. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8985. * src/RequestSlot.cc
  8986. * src/RequestSlot.h
  8987. (RequestSlot::isTimeout)
  8988. Made RequestSlot have a reference to Piece object to avoid find
  8989. Piece repeatedly.
  8990. * src/DefaultBtMessageDispatcher.cc
  8991. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8992. * src/RequestSlot.cc
  8993. * src/RequestSlot.h
  8994. (RequestSlot::getPiece)
  8995. * test/DefaultBtMessageDispatcherTest.cc
  8996. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. * src/TimeA2.cc
  8998. * src/TimeA2.h
  8999. (Time::difference): New function.
  9000. (Time::elapsed): Done optimization.
  9001. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9003. directive.
  9004. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. * src/option_processing.cc: Added missing `defined' keyword to #if
  9006. directive.
  9007. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Bump up version number to 0.13.2+1
  9009. * src/configure.ac
  9010. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Refactored broken outstanding piece handling.
  9012. * src/DefaultPieceStorage.cc
  9013. * src/DefaultPieceStorage.h
  9014. * src/Piece.cc
  9015. * src/Piece.h
  9016. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9018. name collision of static variable and predefined macro.
  9019. * src/BtContext.cc
  9020. * src/BtContext.h
  9021. * src/CookieBoxFactory.cc
  9022. * src/CookieBoxFactory.h
  9023. * src/CookieParser.cc
  9024. * src/CookieParser.h
  9025. * src/DefaultBtContext.cc
  9026. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. * src/RequestGroup.cc
  9028. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9029. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. * Release 0.13.2
  9031. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9033. * po/fr.po
  9034. * po/ja.po
  9035. * po/aria2c.pot
  9036. * po/*.po
  9037. * po/*.gmo
  9038. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. Bump up version number to 0.13.2
  9040. * src/configure.ac
  9041. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Refactord.
  9043. * src/RequestGroupMan.cc
  9044. (removeStoppedGroup)
  9045. (fillRequestGroupFromReserver)
  9046. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Fixed compile error on Ubuntu.
  9048. * src/BtPieceMessage.cc
  9049. * src/MessageDigestHelper.cc
  9050. * src/Util.cc
  9051. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Fixed compile error when configured with --disable-bittorrent
  9053. * test/DownloadHandlerFactoryTest.cc
  9054. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Done make update-po
  9056. * po/aria2c.pot
  9057. * po/*.po
  9058. * po/*.gmo
  9059. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Bump up version number to 0.13.2rc.
  9061. * src/configure.ac
  9062. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Made option name bold. Updated SYNOPSIS to make it more readable.
  9064. * doc/aria2c.1.txt
  9065. * doc/aria2c.1
  9066. * doc/aria2c.1.html
  9067. * src/version_usage.cc
  9068. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. Refactored. Use std::string instead of size and char*.
  9070. * Data.cc
  9071. * Data.h
  9072. * test/Data.cc
  9073. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Added trimSelf(). Rewritten trim() to use trimSelf().
  9075. * Util.cc
  9076. * Util.h
  9077. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9079. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Fixed compile error when configured with --disable-metalink.
  9081. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9082. * test/FeatureConfigTest.cc
  9083. * test/DownloadHandlerFactoryTest.cc
  9084. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Fixed compile error when configured with --without-gnutls
  9086. --without-openssl
  9087. * src/main.cc
  9088. * test/DefaultBtProgressInfoFileTest.cc
  9089. * test/SegmentManTest.cc
  9090. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9091. Fixed compile error with OpenSSL.
  9092. * src/IteratableChunkChecksumValidator.cc
  9093. * src/LibsslDHKeyExchange.h
  9094. * src/MessageDigestHelper.cc
  9095. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Revert the default value of --max-concurrent-downloads to 5.
  9097. Revert the default value of --metalink-servers to 5.
  9098. Man pages was also updated.
  9099. * src/option_processing.cc
  9100. * doc/aria2c.1.txt
  9101. * doc/aria2c.1.html
  9102. * doc/aria2c.1
  9103. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Returns const reference:
  9105. DownloadContext::getPieceHash, DownloadContext::getName,
  9106. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9107. BtContext::getInfoHashAsString,
  9108. * src/BtContext.h
  9109. * src/DefaultBtContext.cc
  9110. * src/DefaultBtContext.h
  9111. * src/DownloadContext.h
  9112. * src/SingleFileDownloadContext.h
  9113. * test/MockBtContext.h
  9114. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. * src/RequestGroup.h (getDir): Removed.
  9116. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Returns const reference. The internal urlencode function was optimized
  9118. a little bit.
  9119. * src/Request.cc
  9120. * src/Request.h
  9121. * src/HttpRequest.cc
  9122. * src/HttpRequest.h
  9123. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Defined option name and possible values as std::string to reduce
  9125. temporary string object creation in runtime.
  9126. * src/HelpItemFactory.cc
  9127. * src/LogFactory.cc
  9128. * src/Option.cc
  9129. * src/OptionHandlerFactory.cc
  9130. * src/option_processing.cc
  9131. * src/prefs.cc
  9132. * src/prefs.h
  9133. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Return const reference.
  9135. * src/DownloadHandlerConstants.cc
  9136. * src/DownloadHandlerConstants.h
  9137. (getMetalinkExtensions)
  9138. (getMetalinkContentTypes)
  9139. (getBtExtensions)
  9140. (getBtContentTypes)
  9141. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. * src/HttpHeader.cc (get): Rewritten.
  9143. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Make HttpHeader::getFirst(...) return const reference.
  9145. * src/HttpHeader.cc
  9146. * src/HttpHeader.h
  9147. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9149. it with V_TRUE.
  9150. * src/DefaultPieceStorage.cc
  9151. * src/DownloadCommand.cc
  9152. * src/FtpNegotiationCommand.cc
  9153. * src/HttpRequest.cc
  9154. * src/InitiateConnectionCommand.cc
  9155. * src/RequestGroup.cc
  9156. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Made Option::get(...) return const reference of std::string.
  9158. * src/Option.cc
  9159. * src/Option.h
  9160. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Replaced std:copy with insert.
  9162. * src/DefaultBtMessageDispatcher.cc
  9163. * src/DefaultPieceStorage.cc
  9164. * src/DownloadEngineFactory.cc
  9165. * src/RequestGroup.cc
  9166. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Included SocketCore.h to fix compiler warning.
  9168. * src/InitiateConnectionCommand.cc
  9169. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Put piece selection strategy algorithm to RarestPieceSelector class,
  9171. Added a switch to choose whether randomized selection so that unit
  9172. tests emit same results in, possibly, win32.
  9173. * src/DefaultPieceStorage.cc
  9174. * src/DefaultPieceStorage.h
  9175. * src/RarestPieceSelector.cc
  9176. * src/RarestPieceSelector.h
  9177. * test/DefaultPieceStorageTest.cc
  9178. * test/RarestPieceSelectorTest.cc
  9179. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Don't pool connection if HTTP proxy is enabled.
  9181. * src/FtpFinishDownloadCommand.cc
  9182. * src/FtpNegotiationCommand.cc
  9183. * src/HttpSkipResponseCommand.cc
  9184. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9186. * src/AbstractCommand.cc
  9187. * src/AbstractCommand.h
  9188. * src/ActivePeerConnectionCommand.cc
  9189. * src/FtpInitiateConnectionCommand.cc
  9190. * src/HttpInitiateConnectionCommand.cc
  9191. * src/InitiateConnectionCommandFactory.cc
  9192. * src/PeerAbstractCommand.cc
  9193. * src/PeerAbstractCommand.h
  9194. * src/PeerInitiateConnectionCommand.cc
  9195. * src/TrackerWatcherCommand.cc
  9196. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Sort RequestSlot in ascending order and manipulate them using
  9198. lower_bound.
  9199. * src/DefaultBtMessageDispatcher.cc
  9200. * src/DefaultBtMessageDispatcher.h
  9201. (getMessageQueue): Added const qualifier.
  9202. (getRequestSlots): Added const qualifier.
  9203. (sendMessages): Use empty() instead of size().
  9204. (doCancelSendingPieceAction): Use HandleEvent object.
  9205. (doAbortOutstandingRequestAction): Rewritten.
  9206. (doChokedAction): Rewritten.
  9207. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9208. (isOutstandingRequest): Rewritten.
  9209. (getOutstandingRequest): Rewritten.
  9210. (removeOutstandingRequest): Rewritten.
  9211. (addOutstandingRequest): Rewritten.
  9212. * src/RequestSlot.cc
  9213. * src/RequestSlot.h
  9214. (operator=): Rewritten.
  9215. (operator!=): New function.
  9216. (operator<): New function.
  9217. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. * src/DefaultBtRequestFactory.cc
  9219. (doChokedAction): Rewritten.
  9220. (removeCompletedPiece): Rewritten.
  9221. (removeTargetPiece): Rewritten.
  9222. (createRequestMessages): Added the debug log.
  9223. (createRequestMessagesOnEndGame: Added the debug log.
  9224. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Added the debug log message.
  9226. * src/BtPieceMessage.cc (doReceivedAction)
  9227. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9229. used lower_bound to process them rather than linear search.
  9230. * src/DHTPeerAnnounceStorage.cc
  9231. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9233. peer has at least one completed piece.
  9234. * src/Peer.cc
  9235. * src/Peer.h
  9236. * src/PeerInteractionCommand.cc
  9237. * src/PeerSessionResource.cc
  9238. * src/PeerSessionResource.h
  9239. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Removed unnecessary sorting
  9241. * src/DefaultPieceStorage (DefaultPieceStorage)
  9242. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Rewritten the portion of the code that mangaes allowed fast indexes.
  9244. * src/PeerSessionResource.cc
  9245. * src/PeerSessionResource.h
  9246. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Removed the invalid string including '\r' from ru.po and
  9248. did make update-po.
  9249. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Added --log-level and --summary-interval to man page.
  9251. * doc/aria2c.1.txt
  9252. * doc/aria2c.1.html
  9253. * doc/aria2c.1
  9254. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9255. Added --log-level option to specify log level. Log messages under
  9256. the specified level are not output. Default value is `debug'.
  9257. * src/HelpItemFactory.cc
  9258. * src/LogFactory.cc
  9259. * src/LogFactory.h
  9260. * src/Logger.h
  9261. * src/OptionHandlerFactory.cc
  9262. * src/SimpleLogger.cc
  9263. * src/SimpleLogger.h
  9264. * src/main.cc
  9265. * src/option_processing.cc
  9266. * src/prefs.h
  9267. * src/usage_text.h
  9268. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Print download progress summary of all parallel downloads in specified
  9270. interval, default 60 secs. While aria2 could download several files
  9271. in parallel (see -j option), it displayed just first download progress,
  9272. and the other downloads are hidden from the users. This new feature
  9273. prints all downloads currently in-progress to the console so that you
  9274. can check the status of all downloads. The interval can be adjusted
  9275. by --summary-interval option.
  9276. The progress readout is now cut so that all fits in the one line of
  9277. console.
  9278. * src/ConsoleStatCalc.cc
  9279. * src/ConsoleStatCalc.h
  9280. * src/HelpItemFactory.cc
  9281. * src/OptionHandlerFactory.cc
  9282. * src/RequestGroupMan.cc
  9283. * src/RequestGroupMan.h
  9284. * src/main.cc
  9285. * src/option_processing.cc
  9286. * src/prefs.h
  9287. * src/usage_text.h
  9288. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9290. * src/DownloadEngine.cc (DownloadEngine)
  9291. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9292. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9293. defined.
  9294. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9295. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Use erase+lower_bound+insert instead of sort.
  9297. * src/DefaultPieceStorage.cc (addPieceStats)
  9298. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9300. * src/A2STR.cc
  9301. * src/A2STR.h
  9302. * src/OptionParser.cc (parse)
  9303. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Defined fake filename `[tracker.announce]' as static const std::string.
  9305. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9306. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. Defined default filename `index.html' as static const std::string
  9308. * src/SingleFileDownloadContext.cc
  9309. * src/SingleFileDownloadContext.h
  9310. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Defined "[MEMORY]" as static const std::string.
  9312. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9313. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Defined control file's version number as static const std::string.
  9315. * src/DefaultBtProgressInfoFile.cc
  9316. * src/DefaultBtProgressInfoFile.h
  9317. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Use Request::METHOD_GET
  9319. * src/RequestGroup.cc (createNextCommandWithAdj)
  9320. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Defined "OK", "ERR", "INPR" as static const std::string
  9322. * src/RequestGroupMan.cc (showDownloadResults)
  9323. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Defined default client used in extended handshake as static const
  9325. std::string
  9326. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9327. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9329. * src/HttpConnection.cc (eraseConfidentialInfo)
  9330. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Defined default ftp user and password as static const std::string
  9332. * src/AuthConfigFactory.cc
  9333. * src/AuthConfigFactory.h
  9334. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Defined strings used in netrc as static const std::string
  9336. * src/Netrc.cc
  9337. * src/Netrc.h
  9338. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Defined HTTP status as static const std::string
  9340. * src/AbstractProxyResponseCommand.cc
  9341. * src/HttpHeader.cc
  9342. * src/HttpHeader.h
  9343. * src/HttpResponse.cc
  9344. * src/HttpResponseCommand.cc
  9345. * src/HttpSkipResponseCommand.cc
  9346. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Defined "\r\n", "A", "I" as static const std::string
  9348. * src/A2STR.cc
  9349. * src/A2STR.h
  9350. * src/FtpConnection.cc
  9351. * src/FtpConnection.h
  9352. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9353. Added COLON_C(".") and used it in Request::parseUrl()
  9354. * src/A2STR.cc
  9355. * src/A2STR.h
  9356. * src/Request.cc (parseUrl)
  9357. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Changed the type of padName from `const std::string&' to `const char*'.
  9359. * src/MSEHandshake.cc (verifyPadLength)
  9360. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Defined "sha1" as static const std::string.
  9362. * src/MetalinkParserController.cc
  9363. * src/MetalinkParserController.h
  9364. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Defined message digest algorithm name as static const std::string
  9366. * src/DHTTokenTracker.cc
  9367. * src/DHTUtil.cc
  9368. * src/DefaultBtContext.cc
  9369. * src/MSEHandshake.cc
  9370. * src/MessageDigestHelper.cc
  9371. * src/Peer.cc
  9372. * src/messageDigest.cc
  9373. * src/messageDigest.h
  9374. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Made string literals used in SAX parser static const std::string.
  9376. * src/FileMetalinkParserState.cc
  9377. * src/FileMetalinkParserState.h
  9378. * src/FilesMetalinkParserState.cc
  9379. * src/FilesMetalinkParserState.h
  9380. * src/InitialMetalinkParserState.cc
  9381. * src/InitialMetalinkParserState.h
  9382. * src/MetalinkMetalinkParserState.cc
  9383. * src/MetalinkMetalinkParserState.h
  9384. * src/PiecesMetalinkParserState.cc
  9385. * src/PiecesMetalinkParserState.h
  9386. * src/ResourcesMetalinkParserState.cc
  9387. * src/ResourcesMetalinkParserState.h
  9388. * src/VerificationMetalinkParserState.cc
  9389. * src/VerificationMetalinkParserState.h
  9390. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9392. * src/A2STR.cc
  9393. * src/A2STR.h
  9394. * src/File.cc
  9395. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Defined static const std::string IP("ip"), PORT("port") and use them
  9397. instead of string literals.
  9398. * src/DefaultPeerListProcessor.cc
  9399. * src/DefaultPeerListProcessor.h
  9400. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Made string literals for torrent file processing static const
  9402. std::string.
  9403. * src/BtContext.cc
  9404. * src/BtContext.h
  9405. * src/DefaultBtContext.cc
  9406. * src/DefaultBtContext.h
  9407. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. Made string literal for tracker response static const std::string
  9409. * src/BtAnnounce.cc
  9410. * src/BtAnnounce.h
  9411. * src/DefaultBtAnnounce.cc
  9412. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Use DHTMessage::T instead of "t".
  9414. * src/DHTMessageTracker.cc (messageArrived)
  9415. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Made keyName static const. Made trimmed charset static const
  9417. std::string.
  9418. * src/Util.cc (getContentDispositionFilename)
  9419. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. Made USER_AGENT const. Made "/" static const std::string.
  9421. * src/A2STR.cc
  9422. * src/A2STR.h
  9423. * src/HttpRequest.cc
  9424. * src/HttpRequest.h
  9425. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Made string listeral to static const std::string:
  9427. "Content-Range", "Content-Length"
  9428. * src/HttpHeader.cc
  9429. * src/HttpHeader.h
  9430. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Made string listeral to static const std::string.
  9432. * src/HttpConnection.cc
  9433. * src/HttpHeader.cc
  9434. * src/HttpHeader.h
  9435. * src/HttpResponse.cc
  9436. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Made string listeral to static const std::string.
  9438. * src/A2STR.cc
  9439. * src/A2STR.h
  9440. * src/SimpleLogger.cc
  9441. * src/SimpleLogger.h
  9442. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Made string literal to static const std::string.
  9444. Rewritten CookieParser::setField.
  9445. * src/A2STR.cc
  9446. * src/A2STR.h
  9447. * src/CookieBoxFactory.cc
  9448. * src/CookieBoxFactory.h
  9449. * src/CookieParser.cc
  9450. * src/CookieParser.h
  9451. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Made string literal to static const std::string
  9453. * src/DHTAbstractMessage.cc
  9454. * src/DHTAnnouncePeerMessage.cc
  9455. * src/DHTAnnouncePeerMessage.h
  9456. * src/DHTAnnouncePeerReplyMessage.cc
  9457. * src/DHTAnnouncePeerReplyMessage.h
  9458. * src/DHTFindNodeMessage.cc
  9459. * src/DHTFindNodeMessage.h
  9460. * src/DHTFindNodeReplyMessage.cc
  9461. * src/DHTFindNodeReplyMessage.h
  9462. * src/DHTGetPeersMessage.cc
  9463. * src/DHTGetPeersMessage.h
  9464. * src/DHTGetPeersReplyMessage.cc
  9465. * src/DHTGetPeersReplyMessage.h
  9466. * src/DHTMessage.cc
  9467. * src/DHTMessage.h
  9468. * src/DHTMessageFactoryImpl.cc
  9469. * src/DHTMessageReceiver.cc
  9470. * src/DHTPingMessage.cc
  9471. * src/DHTPingMessage.h
  9472. * src/DHTPingReplyMessage.cc
  9473. * src/DHTPingReplyMessage.h
  9474. * src/DHTQueryMessage.cc
  9475. * src/DHTQueryMessage.h
  9476. * src/DHTResponseMessage.cc
  9477. * src/DHTResponseMessage.h
  9478. * src/DHTUnknownMessage.cc
  9479. * src/DHTUnknownMessage.h
  9480. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Made string literal to static const std::string
  9482. * src/BtChokeMessage.cc (toString)
  9483. * src/BtHaveAllMessage.cc (toString)
  9484. * src/BtHaveNoneMessage.cc (toString)
  9485. * src/BtInterestedMessage.cc (toString)
  9486. * src/BtNotInterestedMessage.cc (toString)
  9487. * src/BtUnchokeMessage.cc (toString)
  9488. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Replaced "" with static const variable A2STR::NIL.
  9490. Replaced string comparison against "" with std::string::empty().
  9491. Added PROTO_* to Request class and use them as a protocol string
  9492. constant.
  9493. Made "started", "stopped", "completed" static const variable in
  9494. AnnounceList class.
  9495. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Updated translations. Great thanks to translators.
  9497. * po/ca.po
  9498. * po/de.po
  9499. * po/fr.po
  9500. * po/it.po
  9501. * po/ja.po
  9502. * po/ru.po
  9503. * po/zh_CN.po
  9504. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Updated man page; categorized options and fixed typo.
  9506. * doc/aria2c.1.txt
  9507. * doc/aria2c.1.html
  9508. * doc/aria2c.1
  9509. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Removed const ref
  9511. * src/MetalinkEntry.cc (AddProtocolPreference)
  9512. * src/RequestGroup.cc (FindServerHostByHostname)
  9513. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Rewritten Accept-Features handling.
  9515. * src/HttpRequestCommand.cc (createHttpRequest)
  9516. * src/a2functional.h
  9517. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Changed method signature:
  9519. DHTAbstractNodeLookupTask::toEntries
  9520. * src/DHTAbstractNodeLookupTask.cc
  9521. * src/DHTAbstractNodeLookupTask.h
  9522. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Changed method signature:
  9524. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9525. * src/BtContext.h
  9526. * src/DefaultBtContext.cc
  9527. * src/DefaultBtContext.h
  9528. * src/DefaultBtInteractive.cc
  9529. * test/DefaultBtContextTest.cc
  9530. * test/MockBtContext.h
  9531. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Changed method signature:
  9533. MultiFileAllocationIterator::makeDiskWriterEntries
  9534. * src/MultiFileAllocationIterator.cc
  9535. * src/MultiFileAllocationIterator.h
  9536. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Changed method sinature:
  9538. MetalinkEntry::toFileEntry,
  9539. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9540. Metalinker::queryEntry
  9541. * src/Metalink2RequestGroup.cc
  9542. * src/MetalinkEntry.cc
  9543. * src/MetalinkEntry.h
  9544. * src/MetalinkHelper.cc
  9545. * src/MetalinkHelper.h
  9546. * src/Metalinker.cc
  9547. * src/Metalinker.h
  9548. * src/main.cc
  9549. * test/MetalinkHelperTest.cc
  9550. * test/MetalinkerTest.cc
  9551. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Changed method sinature:
  9553. RequestGroup::getURIs
  9554. * src/RequestGroup.cc
  9555. * src/RequestGroup.h
  9556. * test/Metalink2RequestGroupTest.cc
  9557. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Changed method signature:
  9559. PeerListProcessor::extractPeer
  9560. * src/CompactPeerListProcessor.cc
  9561. * src/CompactPeerListProcessor.h
  9562. * src/DefaultBtAnnounce.cc
  9563. * src/DefaultPeerListProcessor.cc
  9564. * src/DefaultPeerListProcessor.h
  9565. * src/DelegatingPeerListProcessor.cc
  9566. * src/DelegatingPeerListProcessor.h
  9567. * src/PeerListProcessor.h
  9568. * src/UTPexExtensionMessage.cc
  9569. * test/DefaultPeerListProcessorTest.cc
  9570. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Changed method signature:
  9572. BtRequestFactory::createRequestMessages,
  9573. BtRequestFactory::createRequestMessagesOnEndGame
  9574. * src/BtRequestFactory.h
  9575. * src/DefaultBtInteractive.cc
  9576. * src/DefaultBtRequestFactory.cc
  9577. * src/DefaultBtRequestFactory.h
  9578. * test/DefaultBtRequestFactoryTest.cc
  9579. * test/MockBtRequestFactory.h
  9580. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. Changed method signature:
  9582. PieceStorage::getInFlightPieces
  9583. * src/DefaultBtProgressInfoFile.cc
  9584. * src/DefaultPieceStorage.cc
  9585. * src/DefaultPieceStorage.h
  9586. * src/PieceStorage.h
  9587. * src/UnknownLengthPieceStorage.cc
  9588. * src/UnknownLengthPieceStorage.h
  9589. * test/DefaultBtProgressInfoFileTest.cc
  9590. * test/MockPieceStorage.h
  9591. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Changed method signature:
  9593. PostDownloadHandler::getNextRequestGroups
  9594. Metalink2RequestGroup::generate
  9595. RequestGroup::postDownloadProcessing
  9596. * src/BtPostDownloadHandler.cc
  9597. * src/BtPostDownloadHandler.h
  9598. * src/Metalink2RequestGroup.cc
  9599. * src/Metalink2RequestGroup.h
  9600. * src/MetalinkPostDownloadHandler.cc
  9601. * src/MetalinkPostDownloadHandler.h
  9602. * src/PostDownloadHandler.h
  9603. * src/RequestGroup.cc
  9604. * src/RequestGroup.h
  9605. * src/RequestGroupMan.cc
  9606. * src/main.cc
  9607. * test/BtPostDownloadHandlerTest.cc
  9608. * test/Metalink2RequestGroupTest.cc
  9609. * test/MetalinkPostDownloadHandlerTest.cc
  9610. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Rewritten AccRequestGroup
  9612. * src/main.cc
  9613. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Rewritten.
  9615. * src/TaggedItem.cc (toTagString)
  9616. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Rewritten Accept-Features handling.
  9618. * src/HttpRequestCommand.cc (createHttpRequest)
  9619. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Rewritten accept types handling.
  9621. * HttpRequest.cc (createRequest)
  9622. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Rewritten
  9624. * src/FeatureConfig.cc (featureSummary)
  9625. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Changed method signature:
  9627. PeerStorage::getActivePeers
  9628. * src/DHTPeerAnnounceEntry.cc
  9629. * src/DefaultPeerStorage.cc
  9630. * src/DefaultPeerStorage.h
  9631. * src/PeerStorage.h
  9632. * test/DefaultPeerStorageTest.cc
  9633. * test/MockPeerStorage.h
  9634. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Changed method signature:
  9636. DHTPeerAnnounceStorage::getPeers,
  9637. DHTPeerAnnounceEntry::getPeers
  9638. * src/DHTGetPeersMessage.cc
  9639. * src/DHTPeerAnnounceEntry.cc
  9640. * src/DHTPeerAnnounceEntry.h
  9641. * src/DHTPeerAnnounceStorage.cc
  9642. * src/DHTPeerAnnounceStorage.h
  9643. * test/DHTAnnouncePeerMessageTest.cc
  9644. * test/DHTPeerAnnounceEntryTest.cc
  9645. * test/DHTPeerAnnounceStorageTest.cc
  9646. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Changed method signature:
  9648. NameResolver::resolve
  9649. * src/DHTEntryPointNameResolveCommand.cc
  9650. * src/InitiateConnectionCommand.cc
  9651. * src/NameResolver.cc
  9652. * src/NameResolver.h
  9653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Changed method signature:
  9655. PieceStorage::getAdvertisedPieceIndexes
  9656. * src/DefaultBtInteractive.cc
  9657. * src/DefaultPieceStorage.cc
  9658. * src/DefaultPieceStorage.h
  9659. * src/PieceStorage.h
  9660. * src/UnknownLengthPieceStorage.h
  9661. * test/MockPieceStorage.h
  9662. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Changed method signature:
  9664. SegmentMan::getInFlightSegment
  9665. * src/AbstractCommand.cc
  9666. * src/SegmentMan.cc
  9667. * src/SegmentMan.h
  9668. * test/SegmentManTest.cc
  9669. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Changed method signature:
  9671. DHTAbstractNodeLookupTask::getNodesFromMessage
  9672. * src/DHTAbstractNodeLookupTask.cc
  9673. * src/DHTAbstractNodeLookupTask.h
  9674. * src/DHTNodeLookupTask.cc
  9675. * src/DHTNodeLookupTask.h
  9676. * src/DHTPeerLookupTask.cc
  9677. * src/DHTPeerLookupTask.h
  9678. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9680. * src/AbstractCommand.cc
  9681. * src/BtCheckIntegrityEntry.cc
  9682. * src/BtCheckIntegrityEntry.h
  9683. * src/BtFileAllocationEntry.cc
  9684. * src/BtFileAllocationEntry.h
  9685. * src/BtSetup.cc
  9686. * src/BtSetup.h
  9687. * src/CheckIntegrityCommand.cc
  9688. * src/CheckIntegrityEntry.h
  9689. * src/ChecksumCheckIntegrityEntry.cc
  9690. * src/ChecksumCheckIntegrityEntry.h
  9691. * src/DHTSetup.cc
  9692. * src/DHTSetup.h
  9693. * src/DownloadEngine.cc
  9694. * src/FileAllocationCommand.cc
  9695. * src/FileAllocationEntry.h
  9696. * src/RequestGroup.cc
  9697. * src/RequestGroup.h
  9698. * src/RequestGroupMan.cc
  9699. * src/RequestGroupMan.h
  9700. * src/StreamCheckIntegrityEntry.cc
  9701. * src/StreamCheckIntegrityEntry.h
  9702. * src/StreamFileAllocationEntry.cc
  9703. * src/StreamFileAllocationEntry.h
  9704. * src/TrackerWatcherCommand.cc
  9705. * src/a2functional.h
  9706. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Changed method signature:
  9708. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9709. DHTBucket::getGoodNodes,
  9710. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9711. * src/BNode.cc
  9712. * src/BNode.h
  9713. * src/DHTAbstractNodeLookupTask.cc
  9714. * src/DHTAutoSaveCommand.cc
  9715. * src/DHTBucket.cc
  9716. * src/DHTBucket.h
  9717. * src/DHTBucketRefreshTask.cc
  9718. * src/DHTFindNodeMessage.cc
  9719. * src/DHTGetPeersMessage.cc
  9720. * src/DHTRoutingTable.cc
  9721. * src/DHTRoutingTable.h
  9722. * test/BNodeTest.cc
  9723. * test/DHTBucketTest.cc
  9724. * test/DHTRoutingTableTest.cc
  9725. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. In piece selection functions, Pass std::deque<...> by reference rather
  9727. than returning it.
  9728. * src/BitfieldMan.cc
  9729. * src/BitfieldMan.h
  9730. * src/DefaultBtRequestFactory.cc
  9731. * src/DefaultPieceStorage.cc
  9732. * src/Piece.cc
  9733. * src/Piece.h
  9734. * test/BitfieldManTest.cc
  9735. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Implemented rarest piece first piece selection strategy.
  9737. * src/AbstractBtMessage.cc
  9738. * src/AbstractBtMessage.h
  9739. * src/BitfieldMan.cc
  9740. * src/BitfieldMan.h
  9741. * src/BtBitfieldMessage.cc
  9742. * src/BtHaveAllMessage.cc
  9743. * src/BtHaveMessage.cc
  9744. * src/DefaultPieceStorage.cc
  9745. * src/DefaultPieceStorage.h
  9746. * src/PeerInteractionCommand.cc
  9747. * src/PieceStorage.h
  9748. * src/UnknownLengthPieceStorage.h
  9749. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Rewritten readData and writeData.
  9751. * src/MultiDiskAdaptor.cc
  9752. * src/MultiDiskAdaptor.h
  9753. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Move \n out of the message "Usage: ...".
  9755. * src/version_usage.cc
  9756. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Bump up version number to 0.13.2b.
  9758. * configure.ac
  9759. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Added const qualifier to argument Exception& e.
  9761. * src/Logger.h
  9762. * src/SimpleLogger.cc
  9763. * src/SimpleLogger.h
  9764. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Pool connection when CWD, SIZE command fails.
  9766. * src/FtpNegotiationCommand.cc
  9767. * src/FtpNegotiationCommand.h
  9768. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9770. * src/HttpResponseCommand.cc
  9771. * src/HttpSkipResponseCommand.cc
  9772. * src/HttpSkipResponseCommand.h
  9773. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Pool connection when a server returns 4xx, 5xx responses.
  9775. * src/HttpNullDownloadCommand.cc
  9776. * src/HttpNullDownloadCommand.h
  9777. * src/HttpResponse.cc
  9778. * src/HttpResponse.h
  9779. * src/HttpResponseCommand.cc
  9780. * src/HttpResponseCommand.h
  9781. * test/HttpResponseTest.cc
  9782. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Print usage when no URL is specifed or bad command-line option is
  9784. specified.
  9785. * src/HelpItemFactory.cc
  9786. * src/help_tags.h
  9787. * src/option_processing.cc
  9788. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Removed duplicate log message.
  9790. * src/AbstractCommand.cc (asyncResolveHostname)
  9791. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9793. Changed -j option's default value from 5 to 1.
  9794. Added new examples using protocol auto detection feature.
  9795. Removed -T, -M usage where it can be omitted.
  9796. * doc/aria2c.1.txt
  9797. * doc/aria2c.1.html
  9798. * doc/aria2c.1.txt
  9799. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Updated command-line usage text, so that it tells users that they
  9801. can specify any number of torrent files and metalink files in
  9802. command-line.
  9803. * src/version_usage.cc
  9804. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Changed the default value of -j option to 1.
  9806. * src/HelpItemFactory.cc
  9807. * src/option_processing.cc
  9808. * src/usage_text.h
  9809. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Added the ability to reuse connection in FTP and it is enabled by
  9811. default. It can be disabled by --ftp-reuse-connection=false option.
  9812. * src/Command.cc
  9813. * src/DownloadCommand.cc
  9814. * src/FtpDownloadCommand.cc
  9815. * src/FtpDownloadCommand.h
  9816. * src/FtpFinishDownloadCommand.cc
  9817. * src/FtpFinishDownloadCommand.h
  9818. * src/FtpInitiateConnectionCommand.cc
  9819. * src/FtpNegotiationCommand.cc
  9820. * src/FtpNegotiationCommand.h
  9821. * src/HelpItemFactory.cc
  9822. * src/Makefile.am
  9823. * src/Makefile.in
  9824. * src/OptionHandlerFactory.cc
  9825. * src/option_processing.cc
  9826. * src/prefs.h
  9827. * src/usage_text.h
  9828. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Call Command::transitStatus() before calling Command::execute(),
  9830. so that the status change made in execute() is not cleared.
  9831. * src/DownloadEngine.cc
  9832. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9833. Removed forward declaration of SocketCore class.
  9834. * src/HttpDownloadCommand.h
  9835. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9837. in InitiateConnectionCommandFactory. They should be set only when
  9838. the protocol is HTTP or HTTPS.
  9839. * src/InitiateConnectionCommandFactory.cc
  9840. * src/RequestGroup.cc
  9841. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Fixed infinite loop in checksum checking.
  9843. * src/IteratableChecksumValidator.cc
  9844. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Set _supportsPersistentConnection to true by default.
  9846. * src/Request.cc
  9847. * src/RequestGroup.cc
  9848. * test/HttpRequestTest.cc
  9849. * test/RequestTest.cc
  9850. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Added timeout to socket pool. The default timeout is 15 seconds,
  9852. which is the same value Apache uses.
  9853. * src/DownloadEngine.cc
  9854. * src/DownloadEngine.h
  9855. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Fixed misuse of multimap::find()
  9857. * src/HttpHeader.cc
  9858. * test/HttpHeaderTest.cc
  9859. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9861. option.
  9862. The asynchronous DNS is not capable of IPv6 yet.
  9863. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9864. least for HTTP download.
  9865. * src/AbstractCommand.cc
  9866. * src/AbstractCommand.h
  9867. * src/AsyncNameResolver.cc
  9868. * src/AsyncNameResolver.h
  9869. * src/DHTEntryPointNameResolveCommand.cc
  9870. * src/DHTEntryPointNameResolveCommand.h
  9871. * src/DownloadEngine.cc
  9872. * src/DownloadEngine.h
  9873. * src/FtpInitiateConnectionCommand.cc
  9874. * src/FtpInitiateConnectionCommand.h
  9875. * src/HelpItemFactory.cc
  9876. * src/HttpInitiateConnectionCommand.cc
  9877. * src/HttpInitiateConnectionCommand.h
  9878. * src/InitiateConnectionCommand.cc
  9879. * src/InitiateConnectionCommand.h
  9880. * src/Makefile.am
  9881. * src/Makefile.in
  9882. * src/NameResolver.cc
  9883. * src/NameResolver.h
  9884. * src/OptionHandlerFactory.cc
  9885. * src/SocketCore.cc
  9886. * src/SocketCore.h
  9887. * src/Util.cc
  9888. * src/Util.h
  9889. * src/option_processing.cc
  9890. * src/prefs.h
  9891. * src/usage_text.h
  9892. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Updated man page: --quiet, --header were added.
  9894. --metalink-servers and --enable-http-keep-alive option were updated.
  9895. * doc/aria2c.1
  9896. * doc/aria2c.1.html
  9897. * doc/aria2c.1.txt
  9898. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Enable HTTP keep-alive by default.
  9900. * src/HelpItemFactory.cc
  9901. * src/option_processing.cc
  9902. * src/usage_text.h
  9903. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Disable http keep-alive if the remote server is not HTTP/1.1.
  9905. * src/HttpConnection.cc
  9906. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Receive content body of 302 response so that the connection can be
  9908. reused later when http keep-alive is enabled.
  9909. * src/HttpNullDownloadCommand.cc
  9910. * src/HttpNullDownloadCommand.h
  9911. * src/HttpResponseCommand.cc
  9912. * src/HttpResponseCommand.h
  9913. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. const SharedHandle<Request> -> const SharedHandle<Request>&
  9915. * src/FtpDowndloadCommand.cc
  9916. * src/FtpDowndloadCommand.h
  9917. * src/HttpDownloadCommand.cc
  9918. * src/HttpDownloadCommand.h
  9919. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Fixed the bug that the control file(.aria2 file) is not renamed
  9921. according to tryAutoFileRenaming().
  9922. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9923. its control file exist, use them and continue download.
  9924. The old implementation didn't take into account of control file's
  9925. existence, so basically you couldn't continue download of renamed file.
  9926. * src/BtProgressInfoFile.h
  9927. * src/DefaultBtProgressInfoFile.cc
  9928. * src/DefaultBtProgressInfoFile.h
  9929. * src/NullProgressInfoFile.h
  9930. * src/RequestGroup.cc
  9931. * test/DefaultBtProgressInfoFileTest.cc
  9932. * test/MockBtProgressInfoFile.h
  9933. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Change the default value of --metalink-servers option from `5' to `1'.
  9935. * src/HelpItemFactory.cc
  9936. * src/option_processing.cc
  9937. * src/usage_text.h
  9938. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Reimplemented transparent metalink using Accept request header.
  9940. * src/HttpRequest.cc
  9941. * src/HttpRequest.h
  9942. * src/HttpRequestCommand.cc
  9943. * src/Metalink2RequestGroup.cc
  9944. * src/RequestGroup.cc
  9945. * src/RequestGroup.h
  9946. * test/HttpRequestTest.cc
  9947. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Bump up version number to 0.13.2a
  9949. * configure.ac
  9950. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Updated configure.ac using the result of autoscan.
  9952. * configure.ac
  9953. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Fixed compilation error without gcrypt/openssl.
  9955. * src/DownloadCommand.cc
  9956. * src/DownloadCommand.h
  9957. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. Reorganized version information so that it can be displayed in a
  9959. standard terminal screen without scrolling.
  9960. Removed http, ftp from Configuration section, because they are always
  9961. enabled.
  9962. * src/FeatureConfig.cc
  9963. * src/FeatureConfig.h
  9964. * src/main.cc
  9965. * src/messageDigest.cc
  9966. * src/messageDigest.h
  9967. * src/version_usage.cc
  9968. * test/FeatureConfigTest.cc
  9969. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Masked user ID in log.
  9971. * src/FtpConnection.cc (sendUser)
  9972. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Removed query part from filename in HTTP download. The query part means
  9974. the substring after "?" in URL. Firefox seems do the same thing.
  9975. A query part is sometimes very long and not suitable to filename,
  9976. so I think it is better to remove it from filename.
  9977. * src/HttpRequest.cc
  9978. * src/HttpRequest.h
  9979. * src/Request.cc
  9980. * src/Request.h
  9981. * test/HttpRequestTest.cc
  9982. * test/RequestTest.cc
  9983. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Rewritten Exception class. Throw exception object, not its pointer and
  9985. catch by reference, so that remove problematic delete operator for
  9986. catched exception.
  9987. * src/Exception.cc
  9988. * src/Exception.h
  9989. * test/ExceptionTest.cc
  9990. * src/*: All files throwing/catching exception.
  9991. * test/*: All files throwing/catching exception.
  9992. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Now auto protocol detection is enabled without -Z option.
  9994. But there is a important difference between with/without -Z optoin.
  9995. For example, if you type:
  9996. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9997. then, aria2 interprets there are 3 request groups:
  9998. (1) http://host/file, http://mirror/file <-- multi-source download
  9999. (2) file1.torrent
  10000. (3) file2.metalink
  10001. On the other hand, if you invoke above command with -Z option, it is
  10002. interpreted as 4 request groups:
  10003. (1) http://host/file
  10004. (2) file1.torrent
  10005. (3) file2.metalink
  10006. (4) http://mirror/file
  10007. I think usually user don't mix multi-source URLs and torrent files, so
  10008. there is no big problem here.
  10009. * src/main.cc
  10010. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Fixed the bug that causes segmentaion fault when reading XML containing
  10012. unescapsed character like '&'.
  10013. Also a modification was made which avoids adding unnecessary
  10014. characters stack and appending unused string.
  10015. * src/ExpatMetalinkProcessor.cc
  10016. * src/FileMetalinkParserState.h
  10017. * src/FilesMetalinkParserState.h
  10018. * src/FinMetalinkParserState.h
  10019. * src/HashMetalinkParserState.h
  10020. * src/InitialMetalinkParserState.h
  10021. * src/LanguageMetalinkParserState.h
  10022. * src/MetalinkMetalinkParserState.h
  10023. * src/MetalinkParserState.h
  10024. * src/MetalinkParserStateMachine.cc
  10025. * src/MetalinkParserStateMachine.h
  10026. * src/OSMetalinkParserState.h
  10027. * src/PieceHashMetalinkParserState.h
  10028. * src/PiecesMetalinkParserState.h
  10029. * src/ResourcesMetalinkParserState.h
  10030. * src/SizeMetalinkParserState.h
  10031. * src/SkipTagMetalinkParserState.h
  10032. * src/URLMetalinkParserState.h
  10033. * src/VerificationMetalinkParserState.h
  10034. * src/VersionMetalinkParserState.h
  10035. * src/XML2SAXMetalinkProcessor.cc
  10036. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Added StringFormat class, which internally calls vasprintf.
  10038. operator<< is defined for this class, so it can be used with iostream
  10039. classes nicely. SimpleLogger and following functions are rewritten
  10040. using StringFormat class.
  10041. Besides, now Logger class's methods are non-const, many classes
  10042. that has a const Logger* as a member variable are modified to remove
  10043. const qualifier from the variable declaration.
  10044. * src/HelpItemFactory.cc
  10045. * src/Request.cc
  10046. * src/SimpleLogger.cc
  10047. * src/StringFormat.cc
  10048. * src/StringFormat.h
  10049. * src/Util.cc
  10050. * src/option_processing.cc
  10051. * src/version_usage.cc
  10052. * test/StringFormatTest.cc
  10053. * src/*.h: The classes that has const Logger* as a member variable.
  10054. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10056. failed. Also fixed memory link when exception is thrown there.
  10057. * src/main.cc (AccRequestGroup)
  10058. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Added build-in "Accept-Features" support. For now only "metalink" is
  10060. used in this header field.
  10061. This "metalink" value is removed from the list when connecting URLs
  10062. fed by metalink file to avoid loop in "transparent" metlaink.
  10063. * src/HttpRequest.cc
  10064. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10065. header is also held in this variable. Also renamed setUserHeaders as
  10066. addHeader and it was rewritten to add header not just to clear the old
  10067. value.
  10068. * src/HttpRequestCommand.cc
  10069. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10070. from "Accept-Features" list.
  10071. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10072. default.
  10073. * src/RequestGroup.h
  10074. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10075. * src/a2functional.h: Included <string> because Concat class depends on
  10076. it.
  10077. * test/HttpRequestTest.cc
  10078. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Added comment
  10080. * src/RequestGroup.cc (createNextCommand)
  10081. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. Capitalized METHOD_GET and METHOD_HEAD
  10083. * src/Request.cc
  10084. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Added getDownloadResults() method
  10086. * src/RequestGroupMan.cc
  10087. * src/RequestGroupMan.h
  10088. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Fixed the bug that aria2 exits when commands is empty() but
  10090. _routineCommands are not.
  10091. * src/DownloadEngine.cc
  10092. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. Use the default value pulled from Option object in HelpItemFactory.
  10094. except options whose defualt value is embedded in a usage text.
  10095. * src/HelpItemFactory.cc
  10096. * src/HelpItemFactory.h
  10097. * src/option_processing.cc
  10098. * src/version_usage.cc
  10099. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. Added --quiet option to make aria2 quiet (no console output).
  10101. --quiet option is tagged with ADVANCED.
  10102. * src/HelpItemFactory.cc
  10103. * src/LogFactory.cc
  10104. * src/LogFactory.h
  10105. * src/MultiUrlRequestInfo.cc
  10106. * src/MultiUrlRequestInfo.h
  10107. * src/NullStatCalc.h: New class. This class prints nothing.
  10108. * src/OptionHandlerFactory.cc
  10109. * src/main.cc
  10110. * src/option_processing.cc
  10111. * src/prefs.h
  10112. * src/usage_text.h
  10113. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10115. * src/HelpItemFactory.cc (createHelpItems):
  10116. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10117. Fixed compilation error in ExpatMetalinkProcessor.cc
  10118. * src/ExpatMetalinkProcessor.cc
  10119. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Reuse socket if the origin server supports HTTP keep-alive and
  10121. --enable-http-keep-alive or --enable-http-pipelining is given.
  10122. The current implementation doesn't reuse the connections established
  10123. against proxy server.
  10124. * src/AbstractCommand.cc
  10125. * src/DownloadEngine.cc
  10126. * src/DownloadEngine.h
  10127. * src/HttpDownloadCommand.cc
  10128. * src/HttpInitiateConnectionCommand.cc
  10129. * src/HttpResponseCommand.cc
  10130. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Rewritten HTTP keep-alive and pipelining routine.
  10132. * src/AbstractCommand.cc
  10133. * src/HttpConnection.cc
  10134. * src/HttpDownloadCommand.cc
  10135. * src/HttpRequest.cc
  10136. * src/HttpRequestCommand.cc
  10137. * src/HttpResponseCommand.cc
  10138. * src/Request.cc
  10139. * src/Request.h
  10140. * src/RequestGroup.cc
  10141. * test/HttpRequestTest.cc
  10142. * test/HttpResponseTest.cc
  10143. * test/RequestTest.cc
  10144. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Added missing setUserHeaders call
  10146. * src/HttpRequestCommand.cc
  10147. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10149. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10150. waste of time because it is more likey false.
  10151. * src/FileAllocationDispatcherCommand.cc (execute)
  10152. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Now HTTP status and version are a member variable of HttpHeader.
  10154. HTTP status is processed as a string, not integer.
  10155. * src/AbstractProxyResponseCommand.cc
  10156. * src/HttpConnection.cc
  10157. * src/HttpHeader.cc
  10158. * src/HttpHeader.h
  10159. * src/HttpHeaderProcessor.cc
  10160. * src/HttpHeaderProcessor.h
  10161. * src/HttpResponse.cc
  10162. * src/HttpResponse.h
  10163. * test/HttpHeaderProcessorTest.cc
  10164. * test/HttpResponseTest.cc
  10165. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Added --header option. You can specify any number of additional HTTP headers
  10167. like:
  10168. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10169. Unlike other commad-line option, you can use --header option multiple times.
  10170. * src/HelpItemFactory.cc
  10171. * src/HttpRequest.{cc, h}
  10172. * src/HttpRequestCommand.cc
  10173. * src/OptionHandlerFactory.cc
  10174. * src/OptionHandlerImpl.h
  10175. * src/option_processing.cc
  10176. * src/prefs.h
  10177. * src/usage_text.h
  10178. * test/HttpRequestTest.cc (testUserHeaders)
  10179. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Eliminates the time lag between sequential downloads and commands in
  10181. the same RequestGroup.
  10182. In old implementation, aria2 occasionally waits 1 seconds before
  10183. executing next command or RequestGroup.
  10184. This is really a waste of time, and new implementation eliminates
  10185. this unnecessary time lag.
  10186. * src/AbstractCommand.cc
  10187. * src/AutoSaveCommand.cc
  10188. * src/CheckIntegrityCommand.cc
  10189. * src/Command.{cc, h}
  10190. * src/DownloadEngine.{cc, h}
  10191. * src/DownloadEngineFactory.cc
  10192. * src/FileAllocationCommand.cc
  10193. * src/FileAllocationDispatcherCommand.cc
  10194. * src/FillRequestGroupCommand.cc
  10195. * src/FtpInitiateConnectionCommand.cc
  10196. * src/HaveEraseCommand.cc
  10197. * src/HttpInitiateConnectionCommand.cc
  10198. * src/HttpResponseCommand.cc
  10199. * src/RealtimeCommand.cc
  10200. * src/RequestGroup.cc
  10201. * src/RequestGroupMan.cc
  10202. * src/StreamFileAllocationEntry.cc
  10203. * src/TimeBasedCommand.{cc, h}
  10204. * src/TimedHaltCommand.cc
  10205. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10207. keyword explicit and SharedHandle's default constructor initializes
  10208. its internal obj to null, old implementation initializes it using
  10209. obj's default constructor.
  10210. To assign null, write SharedHandle<T> x(...); x.reset();
  10211. TODO: test/SharedHandleTest.cc needs more tests.
  10212. * src/SharedHandle.h
  10213. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Fixed type in man page.
  10215. * doc/aria2c.1.txt
  10216. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10218. * src/SimpleLogger.{cc, h}
  10219. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Implemented auto protocol detection.
  10221. Now you can do:
  10222. aria2c -Z http://host/file file1.torrent file2.metalink
  10223. (Note: -Z option is required for auto protcol detection.)
  10224. Then aria2c downloads 3 files simultaneously:
  10225. 1. http://host/file
  10226. 2. file1.torrent <-- read local torrent file
  10227. 3. file2.metalink <-- read local Metalink file.
  10228. Same thing goes with -i option. Assume your uris.txt contans:
  10229. http://host/file
  10230. file1.torrent
  10231. file2.metalink
  10232. Then you can do: aria2c -i uris.txt
  10233. (Note: -Z option is not needed if -i option is given.)
  10234. * src/main.cc
  10235. * src/ProtocolDetector.{cc, h}
  10236. * test/ProtocolDetectorTest.cc
  10237. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10239. installed
  10240. * src/ARC4Encryptor.h
  10241. * src/ARC4Decryptor.h
  10242. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. Renamed argument from 'errno' to 'err', since errno is confused with
  10244. errno defined in errno.h.
  10245. * src/LibgcryptARC4Decryptor.h
  10246. * src/LibgcryptARC4Context.h
  10247. * src/LibgcryptDHKeyExchange.h
  10248. * src/LibgcryptARC4Encryptor.h
  10249. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Rewritten choking algorithm.
  10251. * src/PeerChokeCommand.{cc, h}
  10252. * src/BtInterestedMessage.cc
  10253. * src/PeerSessionResource.{cc, h}
  10254. * src/DefaultPeerStorage.{cc, h}
  10255. * src/BtNotInterestedMessage.cc
  10256. * src/DefaultBtMessageDispatcher.{cc, h}
  10257. * src/BtMessageDispatcher.h
  10258. * src/Peer.{cc, h}
  10259. * src/BtLeecherStateChoke.{cc, h}
  10260. * src/BtSetup.cc
  10261. * src/BtSeederStateChoke.{cc, h}
  10262. * src/PeerStorage.h
  10263. * test/MockPeerStorage.h
  10264. * test/MockBtMessageDispatcher.h
  10265. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10266. Fixed compilation error on x84-64 platform.
  10267. * src/AuthConfig.cc: Included ostream.
  10268. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. Rewritten getBasename() and getDirname(), without standard library
  10270. basename(), dirname().
  10271. * src/File.cc
  10272. * test/FileTest.cc
  10273. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Added Simplified Chinese translation. Also updated the following
  10275. translations: Polish, Dutch, German. Great thanks to all translators.
  10276. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Suppress content-range error when 'Content-Range' response header
  10278. doesn't contains bytes-unit specifier 'bytes'
  10279. * src/HttpHeader.cc (getRange)
  10280. * test/HttpHeaderTest.cc
  10281. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10282. Fixed compilation error with g++-4.3
  10283. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Added missing include files for MinGW
  10285. * test/HttpHeaderProcessorTest.cc
  10286. * test/DHTRoutingTableSerializerTest.cc
  10287. * test/DHTRoutingTableDeserializerTest.cc
  10288. * test/UriListParserTest.cc
  10289. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Now download line is printed nicely with no garbage at the end of
  10291. line. I use ioctl to get the columns of terminal.
  10292. If stdout is redirected to another device, instead of carriage return,
  10293. end of line '\n' character is used. This is feature request#1909659
  10294. * src/ConsoleStatCalc.cc (calculateStat)
  10295. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Included a2time.h
  10297. * src/DHTMessageDispatcher.h
  10298. * src/DHTMessageEntry.h
  10299. * src/DHTReplaceNodeTask.h
  10300. * src/DHTMessageTracker.h
  10301. * src/Util.h
  10302. * src/CookieBox.h
  10303. * src/SocketCore.h
  10304. * src/DefaultBtMessageDispatcher.h
  10305. * src/SocketCore.cc
  10306. * src/Util.cc
  10307. * src/DHTPingTask.h
  10308. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Fixed high memory footprint when DHT is enabled.
  10310. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10311. queued than it is processed and the queue is getting longer. As a
  10312. consequence, momory usage is increased.
  10313. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10314. replacement cache in DHTBucket which is described in Kademlia paper.
  10315. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10316. DHTReplaceNodeTask.
  10317. * src/DHTBucket.{h, cc}
  10318. (cacheNode): New function.
  10319. (getCachedNodes): New function.
  10320. (dropNode): Push back cached node to _nodes.
  10321. * test/DHTBucketTest.cc
  10322. (testCacheNode): New test
  10323. (testDropNode): New test
  10324. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10326. the unused 4KB memory when ssl is not used.
  10327. * src/SocketCore.cc
  10328. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Added summary log for peer announce storage.
  10330. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10331. Removed cast
  10332. * src/DefaultPeerStorage.cc (addPeer)
  10333. Log exception message
  10334. * src/DHTMessageTracker.cc (handleTimeout)
  10335. Fixed casting
  10336. * test/HttpRequestTest.cc
  10337. * test/MetalinkProcessorTest.cc
  10338. * test/PieceTest.cc
  10339. * test/MetalinkEntryTest.cc
  10340. * test/SequenceTest.cc
  10341. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. * src/ParameterizedStringParser.cc (createLoop):
  10343. Removed unused variable sstep.
  10344. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10345. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. * src/Util.{h, cc}
  10347. (parseUInt): New function.
  10348. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10349. The actual range is uint32_t.
  10350. * test/UtilTest.cc
  10351. * src/ParameterizedStringParser.cc:
  10352. Use Util::parseUInt() for loop variables.
  10353. * test/ParameterizedStringParserTest.cc
  10354. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10355. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. Rewritten the functions for binding port.
  10357. * src/DHTConnectionImpl.{h, cc}
  10358. * src/PeerListenCommand.{h, cc}
  10359. * src/DHTSetup.cc
  10360. * src/BtSetup.cc
  10361. * test/DHTConnectionImplTest.cc
  10362. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. type cleanup for allmost all remaining files.
  10364. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. Type clarification
  10366. * src/PeerSessionResource.{h, cc}
  10367. * src/DefaultPieceStorage.{h, cc}
  10368. * src/Peer.{h, cc}
  10369. * test/PeerSessionResourceTest.cc
  10370. Use div function
  10371. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10372. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10373. Type clarification
  10374. * src/DefaultPeerStorage.{h, cc}
  10375. * test/DefaultPeerStorageTest.cc
  10376. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10377. Type clarification: size_t for length or size, uint64_t for file
  10378. length, off_t for file offset.
  10379. * src/DefaultBtProgressInfoFile.cc
  10380. * src/DefaultBtContext.{h, cc}
  10381. * src/DefaultBtInteractive.cc
  10382. * src/DownloadCommand.{h, cc}
  10383. * src/IteratableChunkChecksumValidator.{h, cc}
  10384. * src/SegmentMan.{h, cc}
  10385. * src/SingleFileDownloadContext.{h, cc}
  10386. * src/IteratableChecksumValidator.{h, cc}
  10387. * src/BtContext.h
  10388. * src/IteratableValidator.h
  10389. * src/DownloadContext.h
  10390. * test/SingleFileDownloadContextTest.cc
  10391. * test/DefaultBtContextTest.cc
  10392. * test/MockBtContext.h
  10393. * test/Metalink2RequestGroupTest.cc
  10394. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Type clarification: size_t for length or size, uint64_t for file
  10396. length, off_t for file offset.
  10397. * src/PiecedSegment.cc
  10398. * src/GrowSegment.h
  10399. * src/DefaultBtRequestFactory.h
  10400. * src/DefaultBtProgressInfoFile.cc
  10401. * src/UnknownLengthPieceStorage.h
  10402. * src/DefaultPieceStorage.cc
  10403. * src/UnknownLengthPieceStorage.cc
  10404. * src/DefaultBtInteractive.cc
  10405. * src/GrowSegment.cc
  10406. * src/BitfieldMan.h
  10407. * src/DownloadCommand.cc
  10408. * src/BtRequestFactory.h
  10409. * src/PiecedSegment.h
  10410. * src/DefaultPieceStorage.h
  10411. * src/Piece.cc
  10412. * src/DefaultBtRequestFactory.cc
  10413. * src/PieceStorage.h
  10414. * src/Segment.h
  10415. * src/Piece.h
  10416. * src/BitfieldMan.cc
  10417. * src/Util.cc
  10418. * test/DefaultBtProgressInfoFileTest.cc
  10419. * test/DefaultPieceStorageTest.cc
  10420. * test/MockPieceStorage.h
  10421. * test/BtRequestMessageTest.cc
  10422. * test/DefaultBtMessageDispatcherTest.cc
  10423. * test/BitfieldManTest.cc
  10424. * test/GrowSegmentTest.cc
  10425. * test/PieceTest.cc
  10426. * test/SegmentTest.cc
  10427. * test/SegmentManTest.cc
  10428. * test/DefaultBtRequestFactoryTest.cc
  10429. * test/MockBtRequestFactory.h
  10430. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Fixed compilation error with --disable-nls
  10432. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10433. in gettext.h causes the problem.
  10434. * src/common.h
  10435. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Removed subPiece related functions.
  10437. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10438. * src/DefaultPieceStorage.{h, cc}
  10439. * test/PieceTest.cc
  10440. * test/DefaultPieceStorageTest.cc
  10441. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. Use unsigned char for data store.
  10443. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Bump up version number to 0.13.0+1
  10445. * configure.ac
  10446. * Release 0.13.0+1
  10447. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Changed inactive connection timeout to 120.
  10449. To accept more mulually interested peers, disconnect peer when there
  10450. is no interest between us after certain time passed.
  10451. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10452. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10453. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10454. when compiled with async DNS support.
  10455. * src/DownloadEngine.cc
  10456. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10457. value '10' will be a little bit short when some DNS servers are
  10458. offline and several DNS servers are tried. It should be configured
  10459. by command-line option.
  10460. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. Merged Ross's mingw patch.
  10462. * src/DHTRoutingTableDeserializer.cc
  10463. * src/DHTRoutingTableSerializer.cc
  10464. * src/Platform.{h, cc}
  10465. * src/timegm.h
  10466. * src/gettimeofday.h
  10467. * src/getaddrinfo.h
  10468. * src/SocketCore.h
  10469. * src/common.h
  10470. * src/inet_aton.h
  10471. * src/DownloadEngine.h
  10472. * src/gai_strerror.h
  10473. * src/a2netcompat.h
  10474. * configure.ac
  10475. * configure
  10476. * aclocal.m4
  10477. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Included missing iostream.
  10479. * test/AllTest.cc
  10480. * test/BtDependencyTest.cc
  10481. * test/BtExtendedMessageTest.cc
  10482. * test/DHTConnectionImplTest.cc
  10483. * test/DHTMessageFactoryImplTest.cc
  10484. * test/DHTMessageTrackerEntryTest.cc
  10485. * test/DHTNodeTest.cc
  10486. * test/DHTRoutingTableSerializerTest.cc
  10487. * test/DefaultBtAnnounceTest.cc
  10488. * test/DefaultBtContextTest.cc
  10489. * test/DefaultBtMessageFactoryTest.cc
  10490. * test/DefaultExtensionMessageFactoryTest.cc
  10491. * test/HandshakeExtensionMessageTest.cc
  10492. * test/HttpResponseTest.cc
  10493. * test/MetalinkProcessorTest.cc
  10494. * test/MultiFileAllocationIteratorTest.cc
  10495. * test/SocketCoreTest.cc
  10496. * test/UTPexExtensionMessageTest.cc
  10497. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10498. Reorganized includes.
  10499. * src/NameResolver.cc
  10500. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10501. Fixed compilation error without ares/c-ares
  10502. * src/NameResolver.h:
  10503. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10504. Added a test for large file.
  10505. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10506. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Fixed the bug that file size is ignored if size > INT32_MAX
  10508. * src/SizeMetalinkParserState.cc (endElement):
  10509. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. Bump up version number to 0.13.0
  10511. * configure.ac
  10512. * Release 0.13.0
  10513. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Updated Makfefile.am to make 'make dist' work.
  10515. Now packaged filename is aria2c-VERSION.tar.bz2.
  10516. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10517. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10518. Large file support is now configured by configure script.
  10519. * configure.ac
  10520. Removed unsused source files
  10521. * src/
  10522. * test/
  10523. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10524. Peer.h and BtContext.h respectively.
  10525. * src/Peer.h
  10526. * src/BtContext.h
  10527. Updated translations.
  10528. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10529. translations. Great thanks to all translators!;)
  10530. * po/*.{po, gmo}
  10531. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10532. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10533. statically declared sha1 MessageDigestContext.
  10534. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10535. initialization of short-lived MessageDigestContext.
  10536. * src/MessageDigestHelper.{h, cc}
  10537. * src/main.cc
  10538. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10539. the initialization of MessageDigestContext every time in validating
  10540. chunk checksum.
  10541. * src/DownloadCommand.{h, cc}
  10542. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Add a file descriptor which connected to fast peer(latency<1500) to
  10544. select(). This change reduced CPU load.
  10545. * src/PeerInteractionCommand.cc
  10546. * src/DefaultBtInteractive.{h, cc}
  10547. * src/BtInteractive.h
  10548. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Fixed the previous insufficient fix for possible busy loop.
  10550. * src/MSEHandshake.cc (identifyHandshakeType)
  10551. Removed unused functions.
  10552. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10553. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Fixed possible busy loop if first 20 bytes are not received for a few
  10555. minutes.
  10556. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10557. * src/ReceiverMSEHandshakeCommand.cc
  10558. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Fixed compilation error
  10560. * src/ExpatMetalinkProcessor.cc
  10561. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10563. * src/DHTBucket.cc
  10564. Removed unnecessary cast.
  10565. * src/HandshakeExtensionMessage.cc
  10566. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10568. is missing.
  10569. * src/OptionHandlerFactory.cc
  10570. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Fixed the bug that HAVE message is not sent for a piece they are
  10572. downloaded fom http/ftp server before any BitTorrent handshake is done
  10573. with peers.
  10574. * src/DefaultBtInteractive.cc
  10575. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10577. * src/Makefile.am
  10578. * src/Makefile.in
  10579. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Updated README. Added html version of README and man page.
  10581. * README
  10582. * README.html
  10583. * readme2html: Shell script to generate README.html from README using
  10584. asciidoc.
  10585. * doc/aria2c.1.html
  10586. * doc/makeman: Added the line to generate aria2c.1.html
  10587. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. Fixed offset calculation.
  10589. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10590. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Rewritten itos and uitos using template. llitos and ullitos are
  10592. replaced with itos and uitos respectively.
  10593. * src/Util.{h, cc}
  10594. * test/UtilTest.cc
  10595. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10597. of the number of bytes required for storing public key and shared
  10598. secret.
  10599. * src/LibgcryptDHKeyExchange.h
  10600. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10601. * src/MSEHandshake.cc
  10602. * test/DHKeyExchangeTest.cc
  10603. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Removed since they are not used.
  10605. * src/Xml2MetalinkProcessor.{h, cc}
  10606. * src/Socket.cc
  10607. * src/SegmentSplitter.{h, cc}
  10608. * test/Xml2MetalinkProcessorTest.cc
  10609. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Fixed the bug that prevents aria2 from stopping other than by pressing
  10611. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10612. option. aria2 doesn't stop even after --seed-time is satisfied and
  10613. continues to output blank lines in the console.
  10614. * src/ReceiverMSEHandshakeCommand.cc
  10615. * src/PeerReceiveHandshakeCommand.cc
  10616. * src/PeerListenCommand.cc
  10617. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Bump up version number to 0.13.0rc
  10619. * configure.ac
  10620. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Updated man page and some usage text.
  10622. * doc/aria2c.1.txt
  10623. * src/usage_text.h
  10624. * po/*.{po, gmo}
  10625. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. Updated translations. Added Finnish and Hebrew translations.
  10627. Great thanks to all translators!
  10628. * po/*.{po, gmo}
  10629. * po/LINGUAS
  10630. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10631. Log more detailed information about each message.
  10632. * src/DHTQueryMessage.{h, cc}
  10633. * src/DHTGetPeersMessage.{h, cc}
  10634. * src/DHTFindNodeReplyMessage.{h, cc}
  10635. * src/DHTGetPeersReplyMessage.{h, cc}
  10636. * src/DHTAnnouncePeerMessage.{h, cc}
  10637. * src/DHTResponseMessage.{h, cc}
  10638. * src/DHTFindNodeMessage.{h, cc}
  10639. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Use constants defined in prefs.h
  10641. * src/option_processing.cc
  10642. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10644. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Make room for future enchancements for IPv6 addresses.
  10646. Bump up version number of dht.dat file format to 2.
  10647. Not compatible with previous version.
  10648. * src/DHTRoutingTableSerializer.cc
  10649. * src/DHTRoutingTableDeserializer.cc
  10650. * test/DHTRoutingTableSerializerTest.cc
  10651. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10652. Added handling for the return values from
  10653. PeerMessageUtil::createcompact().
  10654. * src/DefaultBtContext.cc (computeFastSet):
  10655. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10656. Fixed abort when peer's ip address is IPv4-mapped address.
  10657. * src/DefaultBtContext.cc (computeFastSet)
  10658. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10659. cannot handle IPv4-mapped addresses.
  10660. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10661. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. Proper return value handling for OpenSSL functions.
  10663. * src/LibsslDHKeyExchange.h
  10664. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10665. Random bytes generation using libgcrypt and OpenSSL.
  10666. * src/DHTUtil.{h, cc}
  10667. * test/DHTUtilTest.cc
  10668. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10670. received.
  10671. * src/DHTMessageReceiver.cc (receiveMessage)
  10672. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10673. Fixed the bug that a return code is always 0. BUG#1897704
  10674. If error occurred during the download or there exist unfinished
  10675. downloads, aria2 returns with code 1.
  10676. * src/RequestGroupMan.{h, cc}
  10677. * src/MultiUrlRequestInfo.{h, cc}
  10678. * src/main.cc
  10679. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. IPv6 support for SocketCore class.
  10681. TODO: In SocketCore::establishConnection(), this is insufficient to
  10682. determin the failure of connect() here because the socket is
  10683. non-blocking state. The next addresses should be tried after select().
  10684. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10685. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10686. instead which address family independent.
  10687. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10688. information in a compact peer format which is for IPv4 only.
  10689. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10690. this is a spec of BitTorrent protocol.
  10691. * src/SocketCore.{h, cc}
  10692. * src/PeerMessageUtil.cc
  10693. * test/SocketCoreTest.cc
  10694. * test/PeerMessageUtilTest.cc
  10695. * test/DHTConnectionImplTest.cc
  10696. Handle IPv4-mapped addresses.
  10697. * src/DHTNode.cc: Now identity is determined by node id.
  10698. * src/DHTMessageTrackerEntry.cc
  10699. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10700. should handle it.
  10701. * src/DHTRoutingTableDeserializer.cc
  10702. * src/DHTMessageFactoryImpl.cc
  10703. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10704. Change the unit of --stop option from a minute to a second.
  10705. * src/usage_text.h
  10706. * src/DownloadEngineFactory.cc
  10707. * src/OptionHandlerFactory.cc
  10708. * src/message.h
  10709. * src/TimedHaltCommand.cc
  10710. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Make listening socket non-block mode.
  10712. * src/FtpConnection.cc
  10713. * src/FtpNegotiationCommand.{h, cc}
  10714. * src/PeerListenCommand.cc
  10715. Fixed the bug that cause slow ftp negotiation.
  10716. * src/FtpNegotiationCommand.{h, cc}
  10717. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Added basic tag to --enable-dht, --dht-listen-port option.
  10719. * src/HelpItemFactory.cc (createHelpItems)
  10720. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Updated text.
  10722. * src/usage_text.h
  10723. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10725. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. Determin _threadtholdSpeed in each constructor for
  10727. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10728. * src/ActivePeerConnectionCommand.{h, cc}
  10729. * src/PeerReceiveHandshakeCommand.{h, cc}
  10730. * src/BtSetup.cc
  10731. * src/BtConstants.h
  10732. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Added --bt-min-crypto-level and --bt-require-crypto options.
  10734. * src/OptionHandlerFactory.cc
  10735. * src/MSEHandshake.cc
  10736. * src/HelpItemFactory.cc
  10737. * src/option_processing.cc
  10738. * src/ReceiverMSEHandshakeCommand.cc
  10739. * src/prefs.h
  10740. * src/DefaultBtAnnounce.cc
  10741. * src/InitiatorMSEHandshakeCommand.cc
  10742. * src/usage_text.h
  10743. * test/MSEHandshakeTest.cc
  10744. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. Bump version number to 0.13.0b
  10746. * configure.ac
  10747. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Updated doc.
  10749. * src/MessageDigestHelper.h:
  10750. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10751. Use raw message digest as a token instead of its hexadecimal
  10752. representation.
  10753. * src/DHTTokenTracker.cc (generateToken)
  10754. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Added Message Stream Encryption(MSE) support.
  10756. Currently, aria2 accepts incoming connections with Obfuscation Header
  10757. and legacy BitTorrent Header and establishes connections with
  10758. Obfuscation Header first and if failed then retry with legacy
  10759. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10760. choose ARC4. The new option to change the default behavior is planned.
  10761. For tracker extension, "supportcrypto=1" is added statically.
  10762. * src/PeerInitiateConnectionCommand.{h, cc}
  10763. * src/PeerConnection.{h, cc}
  10764. * src/HandleRegistry.h
  10765. * src/SocketCore.h
  10766. * src/PeerReceiveHandshakeCommand.{h, cc}
  10767. * src/BtRegistry.{h, cc}
  10768. * src/PeerListenCommand.cc
  10769. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10770. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10771. * src/MSEHandshake.{h, cc}
  10772. * src/ARC4Encryptor.h
  10773. * src/ARC4Decryptor.h
  10774. * src/LibgcryptARC4Encryptor.h
  10775. * src/LibgcryptARC4Decryptor.h
  10776. * src/LibgcryptARC4Context.h
  10777. * src/LibsslARC4Encryptor.h
  10778. * src/LibsslARC4Decryptor.h
  10779. * src/LibsslARC4Context.h
  10780. * src/DHKeyExchange.h
  10781. * src/LibgcryptDHKeyExchange.h
  10782. * src/LibsslDHKeyExchange.h
  10783. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10784. * test/DefaultBtAnnounceTest.cc
  10785. * test/ARC4Test.cc
  10786. * test/DHKeyExchangeTest.cc
  10787. Removed prepareForRetry() because it is not used.
  10788. * src/PeerAbstractCommand.{h, cc}
  10789. * src/PeerInteractionCommand.{h, cc}
  10790. * src/PeerInitiateConnectionCommand.{h, cc}
  10791. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. Added the ability to load nodes from torrent file. These nodes are
  10793. added to the routing table when downloading that torrent.
  10794. * src/BtContext.h
  10795. * src/DefaultBtContext.{h, cc}
  10796. * src/DHTSetup.cc
  10797. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10798. hostname and port pair, and resolves all of them.
  10799. * src/NameResolver.{h, cc}: Added reset().
  10800. * src/RequestGroup.cc
  10801. * test/DefaultBtContextTest.cc
  10802. * test/MockBtContext.h
  10803. Removed assert() from DefaultBtContext and throw exception instead.
  10804. * src/DefaultBtContext.cc
  10805. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Fixed segmentation fault bug when exiting if dht is disabled.
  10807. * src/RequestGroup.cc
  10808. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10809. Fixed typo in log message and define the message in message.h
  10810. * src/TimedHaltCommand.cc
  10811. * src/message.h
  10812. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. Included RecoverableException.h to fix compilation error.
  10814. * test/DHTMessageFactoryImplTest.cc
  10815. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10816. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10817. * test/DHTPingMessageTest.cc
  10818. * test/DHTGetPeersMessageTest.cc
  10819. * test/DHTFindNodeMessageTest.cc
  10820. * test/DHTAnnouncePeerMessageTest.cc
  10821. * test/MockDHTMessage.h
  10822. * test/MockDHTMessageFactory.h
  10823. * test/MockDHTMessageDispatcher.h: New class.
  10824. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10826. virtual.
  10827. * src/DHTMessageDispatcher.h
  10828. * src/DHTMessageDispatcherImpl.{h, cc}
  10829. * src/DHTSetup.cc
  10830. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Adding handling of DHT error message. Just log error message and
  10832. throw exception.
  10833. * src/DHTMessageFactoryImpl.cc
  10834. * test/DHTMessageFactoryImplTest.cc
  10835. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Added handling of dynamic cast failure.
  10837. * src/DHTNodeLookupTask.cc
  10838. * src/DHTPeerLookupTask.cc
  10839. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Added the ability to stop aria2 itself when given time has passed
  10841. from start. Use --stop option to specify time in minutes.
  10842. When 0 is given, this feature is disabled.
  10843. * src/OptionHandlerFactory.cc
  10844. * src/TimeBasedCommand.h: Make _interval protected scope.
  10845. * src/HelpItemFactory.cc
  10846. * src/option_processing.cc
  10847. * src/prefs.h
  10848. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10849. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10850. Without this modification, the result list shows "ERR" when aria2 is
  10851. stopped by --stop option. It should be "INPR".
  10852. * src/DownloadEngine.{h, cc}
  10853. * src/DownloadEngineFactory.cc
  10854. * src/usage_text.h
  10855. * src/TimedHaltCommand.{h, cc}: New class.
  10856. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Bootstrap through node added by port message.
  10858. Currently bootstrap is executed if the number of buckets in routing
  10859. table is 1.
  10860. * src/BtPortMessage.{h, cc}
  10861. * src/DefaultBtMessageFactory.{h, cc}
  10862. * src/PeerInteractionCommand.cc
  10863. * test/BtPortMessageTest.cc
  10864. * test/MockDHTTask.h
  10865. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Extract the Peer class's member variables, which are only needed after
  10867. PeerInteractionCommand, into PeerSessionResource class.
  10868. This class is instantiated in PeerInteractionCommand class's ctor and
  10869. released in its dtor.
  10870. This will make Peer class lightweight and uses less memory for peers
  10871. which are not connected and wait in the queue.
  10872. * src/PeerChokeCommand.cc
  10873. * src/PeerSessionResource.{h, cc}
  10874. * src/PeerInteractionCommand.cc
  10875. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10876. * src/DefaultBtInteractive.cc
  10877. * src/BtPieceMessage.cc
  10878. * src/BtInterestedMessage.cc
  10879. * src/BtUnchokeMessage.cc
  10880. * src/DefaultPeerStorage.{h, cc}
  10881. * src/PeerInitiateConnectionCommand.cc
  10882. * src/ActivePeerConnectionCommand.cc
  10883. * src/BtNotInterestedMessage.cc
  10884. * src/DefaultBtMessageDispatcher.cc
  10885. * src/BtChokeMessage.cc
  10886. * src/BtRequestMessage.cc
  10887. * src/Peer.{h, cc}
  10888. * src/BtRegistry.h
  10889. * src/TrackerWatcherCommand.cc
  10890. * src/PeerReceiveHandshakeCommand.cc
  10891. * test/BtExtendedMessageTest.cc
  10892. * test/BtAllowedFastMessageTest.cc
  10893. * test/BtCancelMessageTest.cc
  10894. * test/DefaultPieceStorageTest.cc
  10895. * test/BtBitfieldMessageTest.cc
  10896. * test/BtHaveMessageTest.cc
  10897. * test/BtNotInterestedMessageTest.cc
  10898. * test/BtRequestMessageTest.cc
  10899. * test/PeerSessionResourceTest.cc
  10900. * test/DefaultBtMessageDispatcherTest.cc
  10901. * test/PeerTest.cc
  10902. * test/BtInterestedMessageTest.cc
  10903. * test/BtRejectMessageTest.cc
  10904. * test/BtChokeMessageTest.cc
  10905. * test/DefaultPeerStorageTest.cc
  10906. * test/BtHaveNoneMessageTest.cc
  10907. * test/BtHaveAllMessageTest.cc
  10908. * test/DefaultExtensionMessageFactoryTest.cc
  10909. * test/BtUnchokeMessageTest.cc
  10910. * test/DefaultBtMessageFactoryTest.cc
  10911. * test/HandshakeExtensionMessageTest.cc
  10912. * test/UTPexExtensionMessageTest.cc
  10913. * test/DefaultBtRequestFactoryTest.cc
  10914. * test/BtPieceMessageTest.cc
  10915. Removed typedef PeerStats.
  10916. * src/PeerStat.h
  10917. * src/SegmentMan.cc
  10918. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10919. Added std namespace to copy, remove_copy, back_inserter,
  10920. front_inserter.
  10921. * src/RequestGroupMan.cc
  10922. * src/DefaultPieceStorage.cc
  10923. * src/StreamFileAllocationEntry.cc
  10924. * src/BtFileAllocationEntry.cc
  10925. * src/RequestGroup.cc
  10926. * src/MetalinkEntry.cc
  10927. * src/DelegatingPeerListProcessor.cc
  10928. * src/DefaultBtRequestFactory.cc
  10929. * src/DefaultBtMessageDispatcher.cc
  10930. * src/version_usage.cc: Included <algorithm>
  10931. * src/main.cc
  10932. * src/MetalinkParserController.cc
  10933. * src/DefaultBtContext.cc
  10934. * src/DownloadEngineFactory.cc
  10935. * src/a2algo.h
  10936. Removed.
  10937. * test/StreamUriListParserTest.cc
  10938. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10940. ActivePeerConnectionCommand when it is given and
  10941. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10942. * src/ActivePeerConnectionCommand.{h, cc}
  10943. * src/BtSetup.cc
  10944. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Only add socket to DownloadEngine's select routine when peer or
  10946. localhost is unchoked and interested. This lowers CPU usage a
  10947. little bit.
  10948. * src/PeerInteractionCommand.cc
  10949. * src/PeerAbstractCommand.{h, cc}
  10950. * src/BtInteractive.h
  10951. * src/DefaultBtInteractive.{h, cc}
  10952. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Revert previous change because get_peers message is needed for
  10954. announce_peer anyway.
  10955. * src/DHTGetPeersCommand.cc
  10956. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Request peers thought DHT only when download hasn't finished.
  10958. * src/DHTGetPeersCommand.cc
  10959. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10961. * src/DHTBucketRefreshTask.{h, cc}
  10962. * src/DHTSetup.cc
  10963. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10965. standard classes.
  10966. Included string.h where mem* function are used.
  10967. Added namespace aria2.
  10968. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Create directory before saving DHT routing table.
  10970. Now ios::failure is now handled properly.
  10971. * src/DHTAutoSaveCommand.cc
  10972. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Removed unnecessary cerr.
  10974. * src/DownloadEngine.cc
  10975. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Catch exception inside DHTMessageReceiver::receiveMessage().
  10977. Log unknown message.
  10978. * src/DHTMessageReceiver.{h, cc}
  10979. * src/DHTMessageFactory.h
  10980. * src/DHTMessageFactoryImpl.{h, cc}
  10981. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10982. * src/DHTInteractionCommand.cc
  10983. * src/DHTUnknownMessage.{h, cc}
  10984. * test/DHTUnknownMessageTest.cc
  10985. * test/MockDHTMessageFactory.h
  10986. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Commented out ip address comparison because a host can have multiple
  10988. ip addresses and it is hard to predict the hostname is resolved into
  10989. which one.
  10990. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10991. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. * po/Makefile.in: Removed since this is generated by configure.
  10993. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. Fixed compiler warning about redefinition of SIZE_MAX.
  10995. Use common.h instead of config.h directly here.
  10996. * src/Platform.{h, cc}
  10997. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10998. here.
  10999. * common.h
  11000. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11001. Updated gettext related files.
  11002. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11003. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11004. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Added DHT functionality, compatible with mainline.
  11006. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11007. You may need to specify entry point to DHT network using
  11008. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11009. Use --dht-listen-port to specify port number. Make sure that your
  11010. firewall configuration can pass through UDP traffic to the port.
  11011. The routing table is saved in $HOME/.aria2/dht.dat.
  11012. * src/DHT*
  11013. * src/BNode.{h, cc}
  11014. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11015. particular torrent.
  11016. * src/Data.cc: Rewritten ctor.
  11017. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11018. --dht-entry-point.
  11019. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11020. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11021. ends, remove BtContext from DHTPeerAnnounceStorage.
  11022. * src/BtPortMessage.{h, cc}: Rewritten.
  11023. * src/message.h
  11024. * src/OptionHandlerImpl.cc
  11025. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11026. --dht-entry-point.
  11027. * src/Dictionary.{h, cc} (remove): New function.
  11028. * src/prefs.h
  11029. * src/DefaultBtMessageFactory.h
  11030. * src/BtHandshakeMessage.cc
  11031. * src/ActivePeerConnectionCommand.cc
  11032. * src/SocketCore.{h, cc}: Added datagram socket support.
  11033. * src/DefaultBtMessageFactory.cc
  11034. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11035. Create DHT commands.
  11036. * src/BtMessageFactory.h
  11037. * src/PeerMessageUtil.{h, cc}
  11038. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Fixed the bug that log file is not written when configuration file doesn't exist.
  11040. This is caused by using Logger class before LogFactory is not configured.
  11041. BUG #1875079
  11042. * src/option_processing.cc
  11043. Warning message "configuration doesn't exist" is only printed when --conf is
  11044. given.
  11045. * src/option_processing.cc
  11046. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11048. ShaVisitor is now deprecated and slated to be removed.
  11049. * src/DefaultBtContext.cc
  11050. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. Externalize message to message.h
  11052. * src/Platform.cc
  11053. * src/message.h
  11054. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11055. Set default domain and default path to cookie.
  11056. * src/HttpResponse.cc
  11057. * src/CookieBox.{h, cc}
  11058. * src/CookieParser.{h, cc}
  11059. * test/CookieParserTest.cc
  11060. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Added --no-conf and --conf-path command-line option.
  11062. --no-conf option disables loading aria2.conf file.
  11063. --conf-path option changes the configuration file path. The default
  11064. file path is $HOME/.aria2/aria2.conf
  11065. Added a warning message when the configuration file is not found.
  11066. * src/HelpItemFactory.cc
  11067. * src/option_processing.cc
  11068. * src/prefs.h
  11069. * src/usage_text.h
  11070. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Added the message to inform users that other help categories are
  11072. available in -h option.
  11073. * src/version_usage.cc
  11074. * src/TagContainer.{h, cc}
  11075. * test/TagContainerTest.cc
  11076. * src/TaggedItem.{h, cc}
  11077. * test/TaggedItemTest.cc
  11078. * src/HelpItem.h
  11079. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11081. from PiecedSegment's ctor.
  11082. Previously Piece::getAllMissingBlockIndexes() is called from
  11083. PiecedSegment() but it is rather expensive since only first element is
  11084. used.
  11085. * src/PiecedSegment.cc
  11086. * src/Piece.{h, cc}
  11087. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11088. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11089. each time these functions are called.
  11090. * src/BitfieldMan.{h, cc}
  11091. * test/BitfieldManTest.cc
  11092. * src/array_fun.h
  11093. * test/array_funTest.cc
  11094. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11095. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11096. filtered. Removed unnecessary cast to int32_t.
  11097. * src/BitfieldMan.{h, cc}
  11098. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11100. payload length(4bytes) are received. This happens because lenbufLength
  11101. is not updated in this particular case and successive call of
  11102. receiveMessage() overwrites payload length with bytes recieved which
  11103. are payload body.
  11104. * src/PeerConnection.{h, cc}
  11105. * src/message.h
  11106. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11108. peer if there are peers that have same ipaddr and port.
  11109. I've experiened segmentation fault and "pure virtual function was
  11110. called" error.
  11111. * src/Peer.h
  11112. * test/PeerTest.cc
  11113. * src/DefaultPeerStorage.cc
  11114. * test/DefaultPeerStorageTest.cc
  11115. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. Removed a call to isPowerOf() because it is no longer necessary here
  11117. and a request block is not always power of 2.
  11118. BUG#1866924
  11119. * src/PeerMessageUtil.cc (checkLength)
  11120. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Fixed the bug that always first found Segment is removed from
  11122. usedSegmentEntries. Removed unused functions.
  11123. * src/SegmentMan.{h, cc}
  11124. * test/SegmentManTest.cc
  11125. Fixed the bug that ServerHost is not removed.
  11126. * src/RequestGroup.cc
  11127. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Fixed the bug that SegmentMan::completeSegment() is not called
  11129. even if Segment is complete when --lowest-speed-limit is enabled.
  11130. BUG#1864525
  11131. * src/DownloadCommand.{h, cc}
  11132. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Fixed: hash algorithm 'sha1' is always used.
  11134. * src/DownloadCommand.cc (validatePieceHash)
  11135. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Added --enable-peer-exchange command-line option.
  11137. * src/OptionHandlerFactory.cc
  11138. * src/HelpItemFactory.cc
  11139. * src/option_processing.cc
  11140. * src/usage_text.h
  11141. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Move extension from BtRuntime to ExtensionMessageFactory, because
  11143. extension can be specified per peer, not per torrent.
  11144. * src/DefaultBtInteractive.cc
  11145. * src/BtRuntime.h
  11146. * src/ExtendedMessagingAware.h
  11147. * src/ExtensionMessageFactory.h
  11148. * src/DefaultExtensionMessageFactory.cc
  11149. * test/DefaultExtensionMessageFactoryTest.cc
  11150. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. Added categorized option help. Specify category using --help option.
  11152. Also added the ability to search options in forward match.
  11153. * src/HelpItem.{h, cc}
  11154. * test/HelpItemTest.cc
  11155. * src/HelpItemFactory.{h, cc}
  11156. * src/TagContainer.{h, cc}
  11157. * test/TagContainerTest.cc
  11158. * src/option_processing.cc
  11159. * src/prefs.h
  11160. * src/TaggedItem.{h, cc}
  11161. * test/TaggedItemTest.cc
  11162. * src/version_usage.cc
  11163. * src/help_tags.h
  11164. * src/usage_text.h
  11165. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. Fixed segmentation fault when bad torrent metainfo is parsed.
  11167. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11168. and then throw exception or skip it.
  11169. * src/DefaultBtContext.{h, cc}
  11170. * test/DefaultBtContextTest.cc
  11171. * src/AnnounceList.cc
  11172. * src/CompactPeerListProcessor.cc
  11173. * src/message.h
  11174. * src/DefaultBtAnnounce.{h, cc}
  11175. * test/DefaultBtAnnounceTest.cc
  11176. * src/BencodeVisitor.cc
  11177. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Added missing "B"(=Byte). So now the message looks like this:
  11179. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11180. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11181. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Show the seed ratio after torrent downloads.
  11183. For example, after torrent download completed and --seed-time and
  11184. --seed-ratio conditions are fulfilled, following message is printed
  11185. right after "Download complete: .....":
  11186. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11187. * src/RequestGroupMan.cc
  11188. * src/RequestGroup.{h, cc}
  11189. * src/message.h
  11190. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. Remove a defunct control file. A defunct control file means that while
  11192. it exists, but the corresponding download file is missing.
  11193. After its removal, a download restarts from the beginning.
  11194. * src/RequestGroup.cc
  11195. * src/message.h
  11196. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Allocate bitfield in Peer when it is really used. More specifically,
  11198. bitfield in Peer is allocated after the connection is established and
  11199. deallocated when the connection is dropped.
  11200. Since 2 parameters(piece length and total length) was removed from the
  11201. constructor of Peer class, many test classes were modified accordingly.
  11202. See svn log for more detailed information.
  11203. * src/PeerInteractionCommand.cc
  11204. * src/CompactPeerListProcessor.cc
  11205. * src/Peer.cc
  11206. * src/DefaultPeerListProcessor.cc
  11207. * src/PeerListenCommand.cc
  11208. * src/PeerReceiveHandshakeCommand.cc
  11209. Fixed memory leak
  11210. * src/Piece.cc
  11211. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11213. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11214. command-line options.
  11215. * src/option_processing.cc
  11216. * src/ActivePeerConnectionCommand.cc
  11217. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. Send have message to peer if it already has the piece.
  11219. * src/BtHaveMessage.{h, cc}
  11220. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11222. port.
  11223. * src/DefaultPeerStorage.{h, cc}
  11224. * test/DefaultPeerStorageTest.cc
  11225. * src/HandshakeExtensionMessage.cc
  11226. * test/HandshakeExtensionMessageTest.cc
  11227. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11228. * src/PeerStorage.h
  11229. * test/MockPeerStorage.h
  11230. * src/PeerListenCommand.cc
  11231. * src/PeerReceiveHandshakeCommand.cc
  11232. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. Added --metalink-enable-unique-protocol option.
  11234. * src/Metalink2RequestGroup.cc
  11235. * src/option_processing.cc
  11236. * src/prefs.h
  11237. * src/version_usage.cc
  11238. * doc/aria2c.1.txt
  11239. * doc/aria2c.1
  11240. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Allow a peer in incomingPeer to be added peers.
  11242. * src/DefaultPeerStorage.cc
  11243. * test/DefaultPeerStorageTest.cc
  11244. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11246. I could reproduce this bug in following procedure:
  11247. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11248. 2. Restart aria2.
  11249. 3. You see the download stopped around 99%.
  11250. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11251. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11252. If timeout is reached, then _nextCommand is unused and it may contains
  11253. segments and they won't be canceled. Actually, timeout is not needed
  11254. here because if the server dropped connection, then retry is made.
  11255. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11256. Added uTorrent compatible Peer Exchange.
  11257. * src/BencodeVisitor.{h, cc}
  11258. * test/BencodeVisitorTest.cc
  11259. * src/BtConstants.h
  11260. * src/BtContext.h: Added 'private' flag.
  11261. * src/BtExtendedMessage.{h, cc}
  11262. * test/BtExtendedMessageTest.cc
  11263. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11264. reserved field.
  11265. * test/BtHandshakeMessageTest.cc
  11266. * src/BtMessageFactory.h
  11267. * src/BtRegistry.h
  11268. * src/BtRuntime.h: This class holds default extension message IDs for
  11269. aria2. By default, aria2 uses ID 8 for ut_pex.
  11270. * src/DefaultBtContext.cc
  11271. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11272. When it is true, aria2 enables ut_pex. This value is set by
  11273. PeerInteractionCommand.
  11274. * src/DefaultBtMessageFactory.{h, cc}
  11275. * test/DefaultBtMessageFactoryTest.cc
  11276. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11277. handling to DefaultBtInteractive class.
  11278. * src/DefaultExtensionMessageFactory.{h, cc}
  11279. * test/DefaultExtensionMessageFactoryTest.cc
  11280. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11281. the container(peers and incomingPeers. The equality is determined by
  11282. Peer::id).
  11283. * test/DefaultPeerStorageTest.cc
  11284. * src/ExtensionMessage.h
  11285. * test/MockExtensionMessage.h
  11286. * src/ExtensionMessageFactory.h
  11287. * test/MockExtensionMessageFactory.h
  11288. * src/HandshakeExtensionMessage.{h, cc}
  11289. * test/HandshakeExtensionMessageTest.cc
  11290. * src/MetaEntry.h
  11291. * src/Peer.{h, cc}
  11292. * src/PeerInteractionCommand.cc
  11293. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11294. addIncomingPeer.
  11295. * src/PeerMessageUtil.{h, cc}
  11296. * src/PeerObject.h
  11297. * src/UTPexExtensionMessage.{h, cc}
  11298. * test/UTPexExtensionMessageTest.cc
  11299. * src/message.h
  11300. * src/prefs.h
  11301. Fixed the bug that returns incomplete data when it contains null
  11302. character. A convenient constructor was also added.
  11303. * src/Data.{h, cc}
  11304. Rewritten.
  11305. * src/CompactPeerListProcessor.cc
  11306. Fixed typos.
  11307. * src/message.h
  11308. * src/MetaFileUtil.cc
  11309. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. Added "Status Legend" label to the explanation text of 'stat' in
  11311. download result and moved it to the last. BUG#1848214
  11312. * src/RequestGroupMan.cc
  11313. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11315. * src/Makefie.am
  11316. * test/Makefile.am
  11317. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Fixed the bug that prevents aria2 from loading cookie file when expire
  11319. value is greater than 2^31-1. BUG#1851066
  11320. * src/CookieBoxFactory.cc
  11321. * test/CookieBoxFactoryTest.cc
  11322. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Fixed possible memory leak when an exception is thrown.
  11324. * src/XML2SAXMetalinkProcessor.cc
  11325. Added Expat support. If both libxml2 and Expat are installed, then
  11326. libxml2 is used by default.
  11327. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11328. ExpatMetalinkProcessor according to the configuration.
  11329. * src/ExpatMetalinkProcessor.{h, cc}
  11330. * src/main.cc: Removed libxml2 specific header and init/free function.
  11331. * src/MetalinkProcessorFactory.{h, cc}
  11332. * src/MetalinkHelper.cc
  11333. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11334. * src/MetalinkProcessor.h
  11335. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11336. MetalinkProcessorTest is used instead.
  11337. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11338. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11339. MetalinkProcessorFactory::newInstance().
  11340. * m4/libexpat.m4
  11341. * configure.ac: Added configuration options for libexpat.
  11342. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Disabled -s option in metalink download.
  11344. * src/Metalink2RequestGroup.cc
  11345. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11346. If several protocols are available for a mirror in metalink file,
  11347. aria2 now use one of them. --metalink-preferred-protocol option was
  11348. added to specify the preference of protocol.
  11349. * src/AbstractCommand.cc
  11350. * src/OptionHandlerFactory.cc
  11351. * src/ServerHost.{h, cc}
  11352. * src/Metalink2RequestGroup.cc
  11353. * src/RequestGroup.{h, cc}
  11354. * test/RequestGroupTest.cc
  11355. * src/option_processing.cc
  11356. * src/prefs.h
  11357. * src/HttpResponseCommand.cc
  11358. * src/MetalinkResource.{h, cc}
  11359. * src/FtpNegotiationCommand.cc
  11360. * src/MetalinkEntry.{h, cc}
  11361. * src/MetalinkEntryTest.cc
  11362. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11363. Code cleanup and added debug log.
  11364. * src/PeerConnection.cc
  11365. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Compiler error fix: applied the patch by Tiziano Mueller
  11367. * src/RequestGroup.cc
  11368. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11370. in stopped and completed event.
  11371. * src/AnnounceList.{h, cc}
  11372. * test/AnnounceListTest.cc
  11373. * src/DefaultBtAnnounce.cc
  11374. * test/DefaultBtAnnounceTest.cc
  11375. Sorted URLs.
  11376. * test/Metalink2RequestGroupTest.cc
  11377. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11378. Removed unnecessary string copy. Updated doc and corrected indentation.
  11379. * src/Base64.cc
  11380. Fixed compilation warnings
  11381. * test/DataTest.cc
  11382. * test/HttpRequestTest.cc
  11383. * test/MetaFileUtilTest.cc
  11384. * test/RequestTest.cc
  11385. * Release 0.12.0
  11386. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11387. Updated translations
  11388. * po/{de,fr,ja,nl,ru}.po
  11389. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11390. translations. Many thanks to translators.
  11391. * po/{ca,es,it,pt_BR,sv}.po
  11392. * po/LINGUAS
  11393. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. Added a notice about URL
  11395. * src/version_usage.cc
  11396. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11397. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11398. aria2 repeatedly sends stopped request when tracker returns error code.
  11399. * src/AnnounceList.cc
  11400. * test/AnnounceListTest.cc
  11401. * src/AnnounceTier.h
  11402. Added a message when ctrl-c is hit.
  11403. Now second ctrl-c is also handled in signal handler.
  11404. * src/RequestGroupMan.{h, cc}
  11405. * src/RequestGroup.{h, cc}
  11406. * src/MultiUrlRequestInfo.cc
  11407. * src/DownloadEngine.cc
  11408. * src/TrackerWatcherCommand.cc
  11409. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11410. Code cleanup
  11411. * src/Base64.cc (encode)
  11412. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Changed Direct/IO enable/disable procesure in file allocation routine.
  11414. * src/SingleFileAllocationIterator.cc
  11415. (SingleFileAllocationIterator):
  11416. Disable directIO if offset is not multiple of 512.
  11417. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11418. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11419. Enable created SingleFileAllocationIterator's directIO.
  11420. * src/FileAllocationEntry.cc
  11421. (FileAllocationEntry): Enable directIO here.
  11422. (~FileAllocationEntry): Disable directIO here.
  11423. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11424. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11425. * src/Peer.{h, cc}
  11426. * src/DefaultPieceStorage.cc
  11427. * test/DefaultPieceStorageTest.cc
  11428. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11429. Rewritten direct I/O support routine
  11430. * src/SingleFileAllocationIterator.cc
  11431. * src/MultiDiskAdaptor.{h, cc}
  11432. * src/ByteArrayDiskWriter.h
  11433. * src/AbstractSingleDiskAdaptor.h
  11434. * src/AbstractDiskWriter.cc
  11435. * src/DefaultPieceStorage.cc
  11436. * src/DiskWriter.h
  11437. * src/BinaryStream.h
  11438. * src/IteratableChunkChecksumValidator.cc
  11439. * src/IteratableChecksumValidator.cc
  11440. * src/CheckIntegrityEntry.cc
  11441. * src/FileAllocationEntry.cc
  11442. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11443. Fixed typo
  11444. * src/version_usage.cc
  11445. Updated doc
  11446. * doc/aria2c.1.txt
  11447. * doc/aria2c.1
  11448. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Fixed compile error without message digest support.
  11450. * src/FileMetalinkParserState.cc
  11451. * src/MetalinkParserController.{h, cc}
  11452. * test/XML2SAXMetalinkProcessorTest.cc
  11453. * test/MetalinkParserControllerTest.cc
  11454. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Enable direct I/O support in checksum checking.
  11456. * src/IteratableChunkChecksumValidator.{h, cc}
  11457. * test/IteratableChunkChecksumValidatorTest.cc
  11458. * src/CheckIntegrityEntry.cc
  11459. * src/PieceHashCheckIntegrityEntry.cc
  11460. * src/IteratableChecksumValidator.{h, cc}
  11461. * src/BtCheckIntegrityEntry.cc: Added doc.
  11462. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11463. Added --allow-piece-length-change option.
  11464. * src/DefaultBtProgressInfoFile.cc
  11465. * test/DefaultBtProgressInfoFileTest.cc
  11466. * src/OptionHandlerFactory.cc
  11467. * src/option_processing.cc
  11468. * src/prefs.h
  11469. * src/version_usage.cc
  11470. * doc/aria2c.1.txt
  11471. * doc/aria2c.1
  11472. Fixed: duplicated result entry appears when exception is thrown in
  11473. RequestGroup::createInitiateConnectionCommand().
  11474. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11475. Add RequestGroup to _requestGroup after RequetGroup::
  11476. createInitiateConnectionCommand() succeeds.
  11477. Externalized message
  11478. * src/XML2SAXMetalinkProcessor.cc
  11479. * src/message.h
  11480. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11481. Forced download abort when received negative response from http/ftp
  11482. server.
  11483. * src/HttpResponseCommand.cc
  11484. * src/FtpNegotiationCommand.cc
  11485. * src/HttpResponse.cc
  11486. * src/FtpConnection.cc
  11487. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11489. the predecessor, Xml2MetalinkParser class.
  11490. I tested them against 94KB metalink file with 1234 chunk checksums.
  11491. The new one parsed it in 22msec, while it took 6000msec with old one.
  11492. * src/XML2SAXMetalinkProcessor.{h, cc}
  11493. * test/XML2SAXMetalinkProcessorTest.cc
  11494. * src/MetalinkParserController.{h, cc}
  11495. * test/MetalinkParserControllerTest.cc
  11496. * src/MetalinkParserState.h: Also added 16 subclasses.
  11497. * src/main.cc
  11498. * src/Metalink2RequestGroup.cc
  11499. * src/MetalinkHelper.cc
  11500. * src/MetalinkEntry.cc
  11501. * src/ChunkChecksum.h
  11502. Rewritten Base64 class for better performance.
  11503. * src/Base64.{h, cc}
  11504. * test/Base64Test.cc
  11505. * src/HttpRequest.cc
  11506. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11507. Fixed the bug#1841757: aria2 will connect to server to only get
  11508. file size.
  11509. * src/StreamFileAllocationEntry.cc
  11510. * src/option_processing.cc
  11511. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11512. downloads.
  11513. * src/FtpNegotiationCommand.cc
  11514. Suppressed wrong message when finding PreDownloadHandler
  11515. * src/RequestGroup.cc
  11516. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11517. Updated usage
  11518. * src/version_usage.cc
  11519. Updated man page
  11520. * doc/aria2c.1.txt
  11521. * doc/aria2c.1
  11522. Updated po files
  11523. * po/aria2c.pot
  11524. * po/*.po
  11525. * po/*.gmo
  11526. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Eliminated g++-4.2 warning
  11528. * src/DownloadHandlerConstants.{h, cc}
  11529. * src/Util.cc
  11530. * test/MetaFileUtilTest.cc
  11531. * test/PStringBuildVisitorTest.cc
  11532. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11533. * src/RequestGroup.cc
  11534. * src/BtCheckIntegrityEntry.cc
  11535. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. Fixed a2io.h
  11537. * src/a2io.h
  11538. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11539. Added direct I/O support. The current implementation uses O_DIRECT,
  11540. which is not posix standard and is tested on linux 2.6.21.
  11541. Currently only file allocation uses direct I/O.
  11542. * src/SingleFileAllocationIterator.{h, cc}
  11543. * test/SingleFileAllocationIteratorTest.cc
  11544. * src/MultiFileAllocationIterator.{h, cc}
  11545. * test/MultiFileAllocationIteratorTest.cc
  11546. * src/BinaryStream.h
  11547. * src/DiskWriter.h
  11548. * src/AbstractDiskWriter.{h, cc}
  11549. * src/ByteArrayDiskWriter.h
  11550. * src/DiskAdaptor.h
  11551. * src/AbstractSingleDiskAdaptor.{h, cc}
  11552. * src/MultiDiskAdaptor.{h, cc}
  11553. * src/FileAllocationEntry.cc
  11554. * src/Util.{h, cc}
  11555. * src/OptionHandlerFactory.cc
  11556. * src/prefs.h
  11557. * src/version_usage.cc
  11558. * src/option_processing.cc
  11559. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11560. handleException.
  11561. * src/MultiFileAllocationIterator.cc
  11562. Added EINTR handling
  11563. * src/SocketCore.cc
  11564. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Updated usage
  11566. * src/version_usage.cc
  11567. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. Applied Ross's patch for MinGW port.
  11569. * src/DownloadEngine.h
  11570. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. Set Content-Type to SingleFileDownloadContext when http response is
  11572. received.
  11573. * src/HttpResponseCommand.cc
  11574. * src/HttpResponse.{h, cc}
  11575. * test/HttpResponseTest.cc
  11576. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. Rewritten to add content-type support.
  11578. * src/DownloadHandler.{h, cc}
  11579. * src/BtPostDownloadHandler.{h, cc}
  11580. * test/BtPostDownloadHandlerTest.cc
  11581. * src/MetalinkPostDownloadHandler.{h, cc}
  11582. * test/MetalinkPostDownloadHandlerTest.cc
  11583. * src/PostDownloadHandler.{h, cc}
  11584. * src/DownloadHandlerConstants.{h, cc}
  11585. * src/RequestGroup.cc
  11586. * src/HttpResponseCommand.cc
  11587. * src/FtpNegotiationCommand.cc
  11588. * src/SingleFileDownloadContext.{h, cc}
  11589. * src/RequestGroup.h
  11590. * src/RequestGroupCriteria.h
  11591. * src/ContentTypeRequestGroupCriteria.h
  11592. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11593. If it is give, metalink/torrent file is not written to the disk, but
  11594. just is kept in memory. Parsing is occurred on memory.
  11595. * src/MetalinkHelper.{h, cc}
  11596. * src/MetalinkProcessor.h
  11597. * src/Xml2MetalinkProcessor.{h, cc}
  11598. * test/Xml2MetalinkProcessorTest.cc
  11599. * src/DownloadHandlerFactory.{h, cc}
  11600. * test/DownloadHandlerFactoryTest.cc
  11601. * src/PreDownloadHandler.{h, cc}
  11602. * src/OptionHandlerFactory.cc
  11603. * src/DefaultBtContext.{h, cc}
  11604. * test/DefaultBtContextTest.cc
  11605. * src/version_usage.cc
  11606. * src/Metalink2RequestGroup.{h, cc}
  11607. * src/RequestGroup.{h, cc}
  11608. * src/a2functional.h
  11609. * test/a2functionalTest.cc
  11610. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11611. * src/OptionHandlerImpl.h
  11612. * src/prefs.h
  11613. * src/Util.{h, cc}
  11614. * test/UtilTest.cc
  11615. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11616. memory usage.
  11617. * src/RequestGroupMan.{h, cc}
  11618. * src/DownloadEngine.cc
  11619. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11620. WeakHandle to SharedHandle because WeakHandle could be null.
  11621. * src/RequestGroup.{h, cc}
  11622. * src/DownloadEngineFactory.cc
  11623. * src/DownloadResult.h
  11624. Set totalLength after download finished
  11625. * src/UnknownLengthPieceStorage.{h, cc}
  11626. Keep torrent file specified in metalink in memory.
  11627. * src/Metalink2RequestGroup.cc
  11628. * src/BtDependency.cc
  11629. * src/TrueRequestGroupCriteria.h
  11630. Fixed the bug: seekg is used where seekp should be used.
  11631. * src/ByteArrayDiskWriter.cc
  11632. * test/ByteArraydiskWriterTest.cc
  11633. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11634. Fixed syntax error
  11635. * test/SequenceTest.cc
  11636. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11637. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11638. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11639. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11640. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11641. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11642. Added the check to see whether ares_host_callback accepts timeouts
  11643. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11644. * src/NameResolver.{h, cc}
  11645. * m4/libcares.m4
  11646. * configure.ac: Set C++ for language choice.
  11647. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Fixed: compilation fails without c-ares/ares
  11649. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11650. Generate http/ftp commands only when download is incomplete.
  11651. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11652. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11653. Corrected typo. Examples are removed since they are available in man
  11654. page.
  11655. * src/version_usage.cc
  11656. Updated man page.
  11657. * doc/aria2c.1
  11658. * doc/aria2c.1.txt
  11659. * doc/makeman: Commented out sed command.
  11660. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Throw DlAbortEx when a remote file is not found.
  11662. * src/HttpResponse.cc
  11663. * src/FtpNegotiationCommand.cc
  11664. * src/message.h
  11665. Overwrite an existing file if --allow-overwrite=true is given.
  11666. * src/RequestGroup.cc
  11667. Removed unused functions
  11668. * src/AbstractCommand.h
  11669. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Removed 'extern' from 'extern typedef ...' in src/*.h
  11671. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11672. Updated usage
  11673. * src/version_usage.cc
  11674. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Trim announce URL
  11676. * src/DefaultBtContext.cc
  11677. * test/ShaVisitorTest.cc
  11678. Trim argument s. Give trimed s to exception constructor.
  11679. * src/Util.cc (parseInt)(parseLLInt)
  11680. * test/UtilTest.cc
  11681. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Set precision back to 1.
  11683. * src/ConsoleStatCalc.cc (calculateStat)
  11684. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Replaced strtol with Util::parseInt
  11686. * src/ChunkedEncoding.cc
  11687. * src/HttpConnection.cc
  11688. * src/CookieBoxFactory.cc
  11689. * src/ParameterizedStringParser.cc
  11690. * src/Util.cc
  11691. * test/UtilTest.cc
  11692. * test/OptionHandlerTest.cc
  11693. * src/Request.cc
  11694. Throw exception when empty string is given. The message for exception
  11695. changed.
  11696. * src/Util.cc (parseInt)(parseLLInt)
  11697. * src/message.h
  11698. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11699. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11700. set to 1.
  11701. * src/ConsoleStatCalc.cc (calculateStat)
  11702. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. Preallocate non-requested file which is adjacent forward to requested
  11704. file('requested' files means the files given in --select-file option)
  11705. if they share a same piece.
  11706. This fixes long pause in the file system which doesn't support sparse
  11707. files like FAT32 while downloading.
  11708. * src/MultiFileAllocationIterator.{h, cc}
  11709. * test/MultiFileAllocationIteratorTest.cc
  11710. * src/FileEntry.{h, cc}
  11711. Removed unused _option.
  11712. * src/MultiDiskAdaptor.h
  11713. * test/MultiDiskAdaptorTest.cc
  11714. * src/DefaultPieceStorage.cc
  11715. Set the default value of --seed-ratio to 1.0.
  11716. If 0.0 is given, then seeding continues regardless of share ratio.
  11717. * src/version_usage.cc
  11718. * src/option_processing.cc
  11719. * src/BtSetup.cc
  11720. * doc/aria2c.1.txt
  11721. * doc/aria2c.1
  11722. Fixed: Selective download is not working in BitTorrent
  11723. * src/RequestGroup.cc
  11724. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11725. * src/PieceStorage.h
  11726. * test/MockPieceStorage.h
  11727. * src/UnknownLengthPieceStorage.h
  11728. * src/DefaultPieceStorage.{h, cc}
  11729. * src/Metalink2RequestGroup.cc
  11730. * src/RequestGroup.cc
  11731. * src/Sequence.h
  11732. * test/SequenceTest.cc
  11733. * src/IntSequence.h
  11734. * src/message.h
  11735. * src/Util.{h, cc}
  11736. * test/UtilTest.cc
  11737. Added new function 'parse' to catch exception thrown by subclass's
  11738. parseArg
  11739. * src/OptionHandler.h
  11740. * src/OptionParser.cc
  11741. * src/NameMatchOptionHandler.h
  11742. * src/OptionHandlerImpl.h
  11743. * test/OptionHandlerTest.cc
  11744. Added IntegerRangeOptionHandler. Used for --listen-port and
  11745. --select-file. Now --listen-port accepts range of port.
  11746. * src/OptionHandlerFactory.cc
  11747. * src/version_usage.cc
  11748. * src/OptionHandlerImpl.h
  11749. * src/option_processing.cc
  11750. * src/BtSetup.cc
  11751. * src/PeerListenCommand.{h, cc}
  11752. * doc/aria2c.1.txt
  11753. * doc/aria2c.1
  11754. Implemented operator< for Exception class to provide easy way to print
  11755. exception stack trace.
  11756. * src/Exception.{h, cc}
  11757. * src/main.cc
  11758. * src/option_processing.cc
  11759. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. * src/version_usage.cc
  11761. (showVersion): Reworked.
  11762. (showUsage): Added examples.
  11763. Removed Hint for total length and file name.
  11764. * src/Metalink2RequestGroup.cc
  11765. * src/RequestGroup.{h, cc}
  11766. * src/HttpResponseCommand.cc
  11767. * src/FtpNegotiationCommand.cc
  11768. Now --follow-torrent and --follow-metalink option work properly.
  11769. * src/RequestGroup.cc
  11770. Updated man page
  11771. * doc/aria2c.1.txt
  11772. * doc/aria2c.1
  11773. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. Removed.
  11775. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11776. Use Segment::operator==()
  11777. * src/HttpConnection.cc
  11778. * src/Segment.h
  11779. Updated usage
  11780. * src/version_usage.cc
  11781. Added EINTR treatment.
  11782. * src/SocketCore.cc
  11783. * src/AbstractDiskWriter.cc
  11784. Rewritten.
  11785. * src/Util.cc (rangedFileCopy)
  11786. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Fixed typo.
  11788. * src/version_usage.cc
  11789. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11790. Implemented. Now -c option works fine.
  11791. * src/DefaultPieceStorage.cc (markPiecesDone)
  11792. * test/DefaultPieceStorageTest.cc
  11793. Removed.
  11794. * src/SegmentMan.{h, cc}
  11795. (markAllPiecesDone)
  11796. (markPieceDone)
  11797. Synchronized po files with
  11798. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11799. * src/fr.po
  11800. * src/ru.po
  11801. * src/de.po
  11802. * src/ja.po
  11803. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. Added ifdef and some modifications to compile without BitTorrent,
  11805. Metalink, MessageDigest
  11806. support.
  11807. * src/PieceHashCheckIntegrityEntry.cc
  11808. * src/MetalinkEntry.h
  11809. * src/version_usage.cc
  11810. * src/main.cc
  11811. * src/DownloadEngine.{h, cc}
  11812. * src/Metalink2RequestGroup.cc
  11813. * src/Peer.cc
  11814. * src/RequestGroup.cc
  11815. * src/MetalinkHelper.cc
  11816. * test/DefaultPieceStorageTest.cc
  11817. * test/MetalinkPostDownloadHandlerTest.cc
  11818. * test/Metalink2RequestGroupTest.cc
  11819. Hide TOTAL SPD when all downloads complete.
  11820. * src/ConsoleStatCalc.cc
  11821. Log target system information.
  11822. * src/main.cc
  11823. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Now --metalink-location accepts a comma-deliminated list of locations.
  11825. * src/MetalinkEntry.{h, cc}
  11826. * test/MetalinkEntryTest.cc
  11827. * src/version_usage.cc
  11828. * src/Metalink2RequestGroup.cc
  11829. * src/Xml2MetalinkProcessor.cc
  11830. * test/Xml2MetalinkProcessorTest.cc
  11831. * doc/aria2c.1.txt
  11832. * doc/aria2c.1
  11833. * src/Util.cc (toUpper)(toLower): Rewritten.
  11834. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11835. Added the ability to detect duplicate download entry which is about to
  11836. download the same file other RequestGroup is downloading.
  11837. * src/RequestGroup.cc
  11838. * src/HttpResponseCommand.cc
  11839. * src/FtpNegotiationCommand.cc
  11840. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11841. Recalculates download progress when loading a control file,
  11842. if the piece length of DownloadContext is different from the one saved
  11843. in the control file. Currently in-flight pieces are ignored.
  11844. * src/DefaultBtProgressInfoFile.cc
  11845. * test/DefaultBtProgressInfoFileTest.cc
  11846. * src/Util.{h, cc}
  11847. * test/UtilTest.cc
  11848. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. Do not rotate tiers in announce-list.
  11850. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11851. AnnounceList::allTiersFailed() used instead to detect whether all
  11852. tiers are tried and failed.
  11853. * test/DefaultBtAnnounceTest.cc
  11854. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11855. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11856. * test/AnnounceListTest.cc
  11857. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11858. clause. Catch RecoverableException instead of DlRetryEx instead.
  11859. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11860. Implemented checksum validation feature(1 checksum for each file)
  11861. The validation takes place after the download.
  11862. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11863. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11864. * src/CheckIntegrityCommand.cc: Changed log message.
  11865. * src/Metalink2RequestGroup.cc: Set checksum to
  11866. SingleFileDownloadContext.
  11867. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11868. PieceHashCheckIntegrity class.
  11869. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11870. PieceHashCheckIntegrity class.
  11871. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11872. * src/IteratableValidator.h: New class.
  11873. * src/message.h
  11874. * src/CheckIntegrityEntry.{h, cc}
  11875. * src/IteratableChunkChecksumValidator.{h, cc}
  11876. * src/SingleFileDownloadContext.h
  11877. * src/DownloadCommand.cc
  11878. --allow-overwrite=true is no longer needed to check file integrity
  11879. before download in BitTorrent download.
  11880. * src/RequestGroup.cc (getInitialCommand)
  11881. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11882. throws exception.
  11883. * src/RequestGroupMan.cc (getInitialCommands)
  11884. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11885. urlencode the given url inside Request::parseUrl(...)
  11886. * src/Request.{h, cc}
  11887. * src/Util.{h, cc}
  11888. * test/RequestTest.cc
  11889. Removed #!metalink3! notation support because it is deleted from
  11890. the metalink specification.
  11891. * src/Request.{h, cc}
  11892. * test/RequestTest.cc
  11893. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11894. Don't connect server before checking file integrity at startup, if
  11895. filesize and output file path are known.
  11896. * src/AbstractCommand.cc
  11897. * src/StreamFileAllocationEntry.cc
  11898. * src/Metalink2RequestGroup.cc
  11899. * src/RequestGroup.{h, cc}
  11900. * src/HttpResponseCommand.cc
  11901. * src/FtpNegotiationCommand.cc
  11902. Added DownloadFailureException. If it is thrown, RequestGroup should
  11903. halt.
  11904. * src/AbstractCommand.cc
  11905. * src/DownloadFailureException.h
  11906. * src/RequestGroup.cc
  11907. Catch RecoverableException, instead of DlAbortEx.
  11908. * src/RequestGroupMan.cc
  11909. * src/FillRequestGroupCommand.cc
  11910. * src/MetaFileUtil.cc
  11911. * src/IteratableChunkChecksumValidator.cc
  11912. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11913. getGID())
  11914. * src/CheckIntegrityCommand.cc
  11915. * src/message.h
  11916. Print gid instead of idx.
  11917. * src/RequestGroupMan.cc
  11918. Removed exception throwers declaration.
  11919. * src/DirectDiskAdaptor.{h, cc}
  11920. * src/SocketCore.{h, cc}
  11921. * src/MultiDiskAdaptor.{h, cc}
  11922. * src/HttpConnection.{h, cc}
  11923. * src/HttpResponse.{h, cc}
  11924. * src/DiskAdaptor.{h, cc}
  11925. * src/CopyDiskAdaptor.{h, cc}
  11926. * src/MultiDiskAdaptor.{h, cc}
  11927. * src/HttpHeaderProcessor.{h, cc}
  11928. * src/AbstractSingleDiskAdaptor.{h, cc}
  11929. * src/Util.{h, cc}
  11930. * test/UtilTest.cc
  11931. * src/DefaultDiskWriter.{h, cc}
  11932. * src/FtpConnection.{h, cc}
  11933. * src/AbstractDiskWriter.{h, cc}
  11934. Removed duplicate code.
  11935. * src/StreamCheckIntegrityEntry.cc
  11936. Removed unnecessary include.
  11937. * src/DiskWriter.h
  11938. Included Exception.h
  11939. * src/option_processing.cc
  11940. Included 2 files and added doc
  11941. * src/TrackerWatcherCommand.cc
  11942. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11943. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. Changed CheckIntegrityEntry interface so that it can define
  11945. the action when all the chunk checksums are valid.
  11946. * src/CheckIntegrityEntry.h
  11947. * src/StreamCheckIntegrityEntry.{h, cc}
  11948. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11949. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11950. to exit rather than doing seeding. So, it would be good to toggle this
  11951. behavior.
  11952. * src/CheckIntegrityCommand.cc
  11953. * src/AbstractCommand.cc
  11954. * src/RequestGroup.cc
  11955. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11956. Reflect the download length of in-flight pieces.
  11957. It makes the download length readout more precise.
  11958. * src/DefaultPieceStorage.{h, cc}
  11959. * test/DefaultPieceStorageTest.cc
  11960. * src/a2functional.h
  11961. * test/a2functionalTest.cc
  11962. Lower CPU load when --max-download-limit is used.
  11963. There is up and down in speed indicator when enabling
  11964. http-pipelining but a download goes well. I think the problem is that
  11965. because http-pipelining is enabled, DownloadCommand is created for
  11966. each segment and in its constructor, PeerStat::downloadStart() is
  11967. called. In PeerStat::downloadStart(), speed calculation object is
  11968. reseted, which makes download speed zero.
  11969. * src/DownloadCommand.cc
  11970. Rewritten using accumulate.
  11971. * src/RequestGroupMan.cc (calculateStat)
  11972. Code clearnup.
  11973. * src/FtpNegotiationCommand.cc
  11974. * src/HttpResponseCommand.cc
  11975. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11976. Fixed: Can not resume: aria2 reports download already finished.
  11977. * src/AbstractCommand.{h, cc}
  11978. * src/HttpResponseCommand.cc
  11979. * src/FtpNegotiateCommand.cc
  11980. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11981. Now a file is stored in the directory specified in .metalnk file
  11982. (file[@name]).
  11983. * src/Metalink2RequestGroup.cc
  11984. Create the directory structure when opening the file if it doesn't
  11985. exist.
  11986. * src/AbstractDiskWriter.cc
  11987. * src/Util.{h, cc}
  11988. * src/File.h
  11989. * test/UtilTest.cc
  11990. Removed file name comparison
  11991. * src/Metalink2RequestGroup.cc
  11992. * src/HttpResponseCommand.cc
  11993. Rewritten using Util::mkdirs()
  11994. * src/FileEntry.cc (setupDir)
  11995. * test/FileEntryTest.cc
  11996. Updated doc
  11997. * src/SingleFileDownloadContext.h
  11998. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11999. Now SleepCommand dispatches nextCommand when halt is requested.
  12000. It avoids a possible long wait after hitting CTRL-C.
  12001. * src/SleepCommand.{h, cc}
  12002. * src/RequestGroupAware.{h, cc}
  12003. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12004. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12005. to open listen port, then remove the port number from the tracker
  12006. request.
  12007. * src/DefaultBtAnnounce.cc
  12008. * test/DefaultBtAnnounceTest.cc
  12009. * test/MockPieceStorage.h
  12010. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12011. them more testable.
  12012. * src/DefaultBtAnnounce.{h, cc}
  12013. * src/DefaultBtContext.{h, cc}
  12014. * src/Util.{h, cc}
  12015. * test/DefaultBtAnnounceTest.cc
  12016. * test/DefaultBtContextTest.cc
  12017. * test/UtilTest.cc
  12018. Added 'B' to upload bytes readout.
  12019. * src/ConsoleStatCalc.cc
  12020. Now the listen port for BitTorrent download is opened when it is
  12021. needed.
  12022. * src/DownloadEngineFactory.cc
  12023. * src/BtSetup.{h, cc}
  12024. * src/PeerListenCommand.{h, cc}
  12025. Now an exception thrown while parsing tracker response is now logged.
  12026. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12027. called, which means no retry is made in this case, assuming a tracker
  12028. has a problem.
  12029. * src/TrackerWatcherCommand.cc
  12030. Fixed: downloading a file whose length is unkown fails.
  12031. * src/DownloadCommand.cc
  12032. Simplified prepareForNextSegment()
  12033. * src/DownloadCommand.cc
  12034. Updated
  12035. * po/POTFILES.in
  12036. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12037. Re-implemented a file listing for Metalink, which was dropped while
  12038. http/ftp/torrent integration was being implemented.
  12039. * src/MetalinkHelper.{h, cc}: New class.
  12040. * test/MetalinkHelperTest.cc
  12041. * src/main.cc
  12042. * src/Metalink2RequestGroup.cc
  12043. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. Added the ability to display the detailed torrent file information.
  12045. Now -S option gives not only a file listing, but also total download
  12046. length, info hash, announce URI, piece length, the number of pieces,
  12047. and mode(single or multi-torrent).
  12048. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12049. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12050. KiB)
  12051. * test/UtilTest.cc
  12052. * src/main.cc
  12053. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12054. Added ftp://USER:PASSWD@Servername automatic parsing.
  12055. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12056. _password. Recognize username and password in URI.
  12057. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12058. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12059. * src/RequestFactory.{h, cc}: Removed.
  12060. * src/AuthConfigFactory.{h, cc}: New class.
  12061. * src/FtpConnection.cc: Use AuthConfigFactory.
  12062. * src/HttpRequest.cc: Use AuthConfigFactory.
  12063. * test/HttpRequestTest.cc: Updated.
  12064. * test/RequestTest.cc: Updated.
  12065. * test/AuthConfigFactoryTest.cc: New class.
  12066. * test/RequestFactoryTest.cc: Removed.
  12067. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12068. Use RequestGroup::allDownloadFinished() to decide whether the control
  12069. file should be removed or saved.
  12070. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12071. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12072. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. Use File::renameTo()
  12074. * src/DefaultBtProgressInfoFile.cc
  12075. Added --no-file-allocation-limit command-line option.
  12076. * src/version_usage.cc
  12077. * src/option_processing.cc
  12078. * src/OptionHandlerFactory.cc
  12079. * src/RequestGroup.{h, cc}
  12080. * src/BtCheckIntegrityEntry.cc
  12081. * src/StreamCheckIntegrityEntry.cc
  12082. * src/prefs.h
  12083. * doc/aria2c.1.txt
  12084. * doc/aria2c.1
  12085. Now prealloc is the default value for --file-allocation option.
  12086. * src/version_usage.cc
  12087. * src/option_processing.cc
  12088. * doc/aria2c.1.txt
  12089. * doc/aria2c.1
  12090. Don't URL-encode user-agent.
  12091. * src/HttpRequest.cc
  12092. Updated translations
  12093. * po/LINGUAS: Added nl for Dutch translation.
  12094. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12095. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12096. * po/POTFILES.in: Updated.
  12097. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. Added the ability to recognize url-list in a torrent file.
  12099. The retrieved URLs are attached to the corresponding FileEntry.
  12100. * src/DefaultBtContext.{h, cc}
  12101. * src/FileEntry.{h, cc}
  12102. * test/DefaultBtContextTest.cc
  12103. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12104. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12105. after the download finishes.
  12106. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12107. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12108. the data smaller than block length.
  12109. A block length can be specified by constructor's argument.
  12110. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12111. Get a missing piece in the range of given FileEntry. This function is
  12112. not used in the program yet.
  12113. * src/Util.h: Added some macros.
  12114. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12115. Added HTTP/1.1 keep alive and pipelining support.
  12116. See --enable-http-keep-alive and --enable-http-pipelining option.
  12117. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12118. Segment.
  12119. * src/HttpDownloadCommand.{h, cc}
  12120. * src/OptionHandlerFactory.cc
  12121. * src/HttpConnection.{h, cc}
  12122. * src/version_usage.cc
  12123. * src/HttpInitiateConnectionCommand.cc
  12124. * src/FtpInitiateConnectionCommand.cc
  12125. * src/Segment.h
  12126. * src/HttpRequestCommand.{h, cc}
  12127. * src/option_processing.cc
  12128. * src/prefs.h
  12129. * src/HttpResponseCommand.cc
  12130. * src/SegmentMan.{h, cc}
  12131. * src/FtpNegotiateCommand.cc
  12132. * src/HttpProxyResponseCommand.cc
  12133. * src/Request.cc
  12134. * src/HttpRequest.cc
  12135. * src/DownloadCommand.cc
  12136. * test/HttpRequestTest.cc
  12137. * test/RequestTest.cc
  12138. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12139. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12140. finished.
  12141. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12142. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12143. catching it inside the method.
  12144. When no file entry is found in a metalink without querying user
  12145. preferences, throw the exception with the error message that suggests
  12146. metalink file is probably broken.
  12147. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12148. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12149. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12150. processed.
  12151. * src/RequestGroupMan.cc (removeStoppedGroup)
  12152. Added debug message.
  12153. * src/BtPostDownloadHandler.cc
  12154. * src/MetalinkPostDownloadHandler.cc
  12155. * src/PostDownloadHandler.{h, cc}
  12156. * src/RequestGroup.cc
  12157. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12158. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12159. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12160. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12161. stops and there are any unfinished or in-progress downloads.
  12162. Added the legend of "stat".
  12163. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12164. Throw exception when chunck checksum verification fails.
  12165. * src/DownloadCommand.cc (validatePieceHash): New function.
  12166. * src/PiecedSegment.{h, cc} (clear): New function.
  12167. * src/GrowSegment.{h, cc} (clear): New function.
  12168. * src/Segment.h (clear): New function.
  12169. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12170. * test/SegmentTest.cc
  12171. * test/GrowSegmentTest.cc
  12172. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. Do not send referer when redirected.
  12174. * src/Request.cc (redirectUrl)
  12175. * test/RequestTest.cc
  12176. * test/HttpRequestTest.cc
  12177. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12178. Implemented BitTorrent/http/ftp integrated download.
  12179. I've rewritten lots of files and now some headers have forward
  12180. class declarations to reduce compile time.
  12181. The implementation is extremely alpha stage, I recommend to use this
  12182. for testing purpose only.
  12183. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. Fixed the compilation error on 64bit platform.
  12185. * test/HttpHeaderProcessorTest.cc
  12186. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12187. Merged Ross's patch that fixes compilation problem in MinGW
  12188. * test/DefaultBtProgressInfoFileTest.cc
  12189. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12190. Updated fr.po by sebone
  12191. * po/fr.po
  12192. Updated man page.
  12193. * doc/aria2c.1.txt
  12194. * Release 0.11.3
  12195. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12196. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12197. failure in Metalink.
  12198. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12199. Automatically save *.aria2 control file of http/ftp download in every
  12200. 60 seconds.
  12201. * src/AutoSaveCommand.{h, cc}: New class.
  12202. * src/TimeBasedCommand.{h, cc}: New class.
  12203. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12204. Disable parameterized URI support by default. Added -P option to
  12205. enable the feature.
  12206. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12207. * src/OptionHandlerFactory.cc
  12208. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12209. Updated Japanese translation.
  12210. * po/ja.po
  12211. Updated man page.
  12212. * doc/aria2c.1.txt
  12213. * Release 0.11.3-rc
  12214. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12216. it is successful, then renamed to *.aria2.
  12217. This prevents *.aria2 file from being truncated or corrupted when
  12218. file system becomes out of space.
  12219. * src/DefaultBtProgressInfoFile.cc (save)
  12220. * src/SegmentMan.cc (save)
  12221. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12222. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12223. Reduced the fragmentation of bitfield in http/ftp download.
  12224. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12225. * test/BitfieldManTest.cc
  12226. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. Added the ability to disable segmented download in .metalink.
  12228. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12229. 'url' tag.
  12230. * src/MetalinkEntry.{h, cc}
  12231. * src/RequestResource.{h, cc}
  12232. * src/MetalinkRequestInfo.cc
  12233. * src/Xml2MetalinkProcessor.cc
  12234. * test/Xml2MetalinkProcessorTest.cc
  12235. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12236. Added parameterized URI support.
  12237. * src/main.cc: -Z option added.
  12238. * src/OptionHandlerFactory.cc
  12239. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12240. * src/PStringDatum.h: New class.
  12241. * src/PStringSegment.{h,cc}: New class.
  12242. * src/PStringNumLoop.h: New class.
  12243. * src/PStringSelect.h: New class.
  12244. * src/NumberDecorator.h: New class.
  12245. * src/FixedWidthNumberDecorator.h: New class.
  12246. * src/AlphaNumberDecorator.h: New class.
  12247. * src/PStringVisitor.h: New class.
  12248. * src/PStringBuildVisitor.{h,cc}: New class.
  12249. * src/ParameterizedStringParser.{h,cc}: New class.
  12250. * src/Util.{h,cc}
  12251. (isNumber): New function.
  12252. (isLowercase): New function.
  12253. (isUppercase): New function.
  12254. (alphaToNum): New function.
  12255. * test/ParameterizedStringParserTest.cc: New class.
  12256. * test/AlphaNumberDecoratorTest.cc: New class.
  12257. * test/PStringBuildVisitorTest.cc: New class.
  12258. * test/UtilTest.cc
  12259. (testIsNumber): New function.
  12260. (testIsLowercase): New function.
  12261. (testIsUppercase): New function.
  12262. (testAlphaToNum): New function.
  12263. Added '\n' after the error message
  12264. * src/RequestInfo.h (printDownloadAbortMessage)
  12265. Added auto file renaming feature in http(s)/ftp download.
  12266. * src/main.cc: Added --auto-file-renaming command-line option.
  12267. * src/OptionHandlerFactory.cc
  12268. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12269. * src/RequestGroup.{h, cc}
  12270. (shouldCancelDownloadForSafety): Rewritten
  12271. (tryAutoFileRenaming): New function.
  12272. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12273. * src/HttpResponseCommand.cc
  12274. (executeInternal): Removed the call to RequestGroupMan::
  12275. isSameFileBeingDownloaded()
  12276. * src/FtpNegotiateCommand.cc
  12277. (recvSize): Removed the call to RequestGroupMan::
  12278. isSameFileBeingDownloaded()
  12279. * test/RequestGroupTest.cc: New class.
  12280. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12281. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12282. IO.
  12283. * src/DefaultBtProgressInfoFile.cc
  12284. * src/MetaFileUtil.cc
  12285. * src/SimpleLogger.cc
  12286. * src/SegmentMan.cc
  12287. * src/Util.cc
  12288. * src/Platform.cc
  12289. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12291. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12292. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12293. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12294. Fixed the bug that prevents file allocation is not done when
  12295. dowloading multi-torrent file.
  12296. * src/AbstractDiskWriter.cc (openFile)
  12297. Increase the maximum number of -j option from 15 to 45.
  12298. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12299. Added fr.po, thanks to Charles Landemaine.
  12300. * po/fr.po
  12301. * po/LINGUAS
  12302. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12303. gcc 3.4.4 support:
  12304. * src/DefaultBtContext.cc: int32_t -> int
  12305. * src/main.cc: int -> int32_t, int32_t -> int
  12306. * src/messageDigest.h: uint32_t -> unsigned int
  12307. * src/NameResolver.h: int32_t -> int
  12308. * src/PeerConnection.cc: int -> int32_t
  12309. * src/SpeedCalc.cc: int32_t -> int
  12310. * src/TrackerUpdateCommand.h: int -> int32_t
  12311. * src/Util.cc: int32_t -> int
  12312. * src/Util.h: int32_t -> int
  12313. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12314. * test/AnnounceListTest.cc: int -> int32_t
  12315. * test/ChunkedEncodingTest.cc: int -> int32_t
  12316. * test/DataTest.cc: int -> int32_t
  12317. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12318. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12319. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12320. * test/FeatureConfigTest.cc: int -> int32_t
  12321. * test/MetalinkEntryTest.cc: int -> int32_t
  12322. * test/MockBtRequestFactory.h: int -> int32_t
  12323. * test/MockPieceStorage.h: int -> int32_t
  12324. * test/OptionTest.cc: int -> int32_t
  12325. * test/RequestTest.cc: int -> int32_t
  12326. * test/SegmentManTest.cc: int -> int32_t
  12327. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12328. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12329. Move sleep functions to Util class:
  12330. * src/Util.cc
  12331. (sleep): New function.
  12332. (usleep): New function.
  12333. * src/DownloadCommand.cc: sleep -> Util::sleep
  12334. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12335. MinGW build enhancements. The following files are added:
  12336. * src/timegm.{c,h}
  12337. Changes to support the above new files:
  12338. * configure.ac
  12339. * src/Makefile.am
  12340. * src/a2time.h
  12341. * src/Util.cc:
  12342. * src/strptime.c: Added support for %Z option.
  12343. Fixed MinGW non-blocking bug.
  12344. * src/SocketCore.cc
  12345. * src/HttpRequestCommand.cc
  12346. Miscellenous build fixes/enhancements.
  12347. * configure.ac: Added summary report.
  12348. * src/Platform.h: Tweaked #include's.
  12349. * src/a2netcompat.h: Tweaked #include's.
  12350. * src/strptime.h: Tweaked #include's.
  12351. * src/gai_strerror.c: Tweaked #include's.
  12352. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12353. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12354. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12355. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12356. Increased the initial connection size in BitTorrent download to 40.
  12357. * src/BtRuntime.h
  12358. Added the usage message of --peer-id-prefix option.
  12359. * src/main.cc
  12360. * Release 0.11.2
  12361. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. MessageDigestHelper is introduced in order to simplify the use
  12363. of message digest. Removed repeated code.
  12364. The message digest algorithm is now specified by string, like "sha1",
  12365. "md5".
  12366. * src/messageDigest.{h, cc}
  12367. * src/MessageDigestHelper.{h, cc}: New class.
  12368. * src/DefaultPieceStorage.cc
  12369. * src/DefaultBtContext.{h, cc}
  12370. (computeFastSet): New function.
  12371. (setInfoHash): Added for unit testing.
  12372. (setNumPieces): Added for unit testing.
  12373. * src/DefaultBtInteractive.cc
  12374. * src/BtPieceMessage.cc
  12375. * src/Peer.cc
  12376. * src/Checksum.h
  12377. * src/message.h
  12378. * src/IteratableChecksumValidator.h
  12379. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12380. inside it.
  12381. * src/SegmentMan.{h, cc}
  12382. (checkIntegrity): Removed.
  12383. * src/IteratableChunkChecksumValidator.{h, cc}
  12384. * src/Util.h
  12385. (sha1Sum): Removed.
  12386. (simpleMessageDigest): Removed.
  12387. (fileChecksum): Removed.
  12388. (computeFastSet): Removed.
  12389. * src/ShaVisitor.cc
  12390. * src/ChunkChecksum.h
  12391. * src/DownloadCommand.cc
  12392. Removed messageDigest virtual functions.
  12393. * src/MultiDiskAdaptor.{h, cc}
  12394. * src/DiskAdaptor.h
  12395. * src/ByteArrayDiskWriter.h
  12396. * src/DiskWriter.h
  12397. * src/DiskAdaptorWriter.h
  12398. * src/AbstractSingleDiskAdaptor.{h, cc}
  12399. * src/AbstractDiskWriter.{h, cc}
  12400. Fixed comilation error when message digest is disabled.
  12401. * src/MetalinkEntry.{h, cc}
  12402. * src/MetalinkRequestInfo.cc
  12403. Removed srandom and random.
  12404. * src/SimpleRandomizer.h
  12405. Added size() virtual function to DiskAdaptor
  12406. * src/MultiDiskAdaptor.h
  12407. Fixed the bug that causes that files are not opened correctly in
  12408. multi-file torrent.
  12409. * src/TorrentRequestInfo.cc
  12410. * src/MultiDiskAdaptor.cc
  12411. Added SHA256 support
  12412. * src/messageDigest.cc
  12413. * src/Xml2MetalinkProcessor.cc
  12414. Show supported message digest algorithms
  12415. * src/main.cc
  12416. Updated contact info.
  12417. * src/main.cc
  12418. Applied Ross's patch
  12419. * src/a2netcompat.h
  12420. * src/main.cc
  12421. Fixed the bug that prevents a remote metalink from not being processed
  12422. even if '-o foo.metalink' is specified.
  12423. * src/MetalinkRequestInfo.cc
  12424. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12425. Merged Dan's patch:
  12426. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12427. Use va_copy to avoid core dump on amd64:
  12428. * src/SimpleLogger.cc
  12429. Updated contact info.
  12430. * src/main.cc
  12431. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12432. digest is not available.
  12433. * src/MetalinkEntry.h
  12434. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12435. Make a2netcompat.h include a2io.h to fix compilation error:
  12436. * src/a2netcompat.h
  12437. * src/SocketCore.cc: Removed include of a2io.h
  12438. * src/Util.cc: Removed include of a2io.h
  12439. Gather time related functions to a2time.h:
  12440. * src/a2time.h: New file.
  12441. * src/DefaultPeerStorage.cc
  12442. * src/SimpleLogger.cc
  12443. * src/Util.{h, cc}
  12444. * src/SimpleRandomizer.h
  12445. * src/TimeA2.{h,cc}
  12446. * src/DownloadCommand.cc
  12447. * src/main.cc
  12448. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12449. a2netcompat.h:
  12450. * src/NameResolver.cc
  12451. Fixed compilation error without openssl:
  12452. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12453. Added default block to suppress compiler warnings:
  12454. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12455. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12456. MinGW build enhancements. The following files are added:
  12457. * src/gai_strerror.{c,h}
  12458. * src/gettimeofday.{c,h}
  12459. Changes to support the above new files:
  12460. * configure.ac
  12461. * src/Makefile.am
  12462. * src/a2netcompat.h
  12463. * src/TimeA2.cc
  12464. * src/DefaultPeerStorage.cc
  12465. * src/NameResolver.cc: removed mingw_strerror() function.
  12466. * src/SocketCore.cc: removed mingw_strerror() function.
  12467. Miscellaneous MinGW build fixes.
  12468. * src/a2io.h: Use _lseeki64() instead of lseek()
  12469. * src/common.h
  12470. * src/DefaultFileAllocator.cc
  12471. * src/GlowFileAllocator.cc
  12472. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12473. * src/NameResolver.cc
  12474. (callback): Changed int32_t to int.
  12475. (resolve): Changed int32_t to int.
  12476. * src/Platform.cc
  12477. * src/Platform.h
  12478. * test/MultiDiskWriterTest.cc
  12479. * test/PeerMessageUtilTest.cc
  12480. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12481. Other enhancements and fixes.
  12482. * src/HttpRequestCommand.cc
  12483. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12484. * src/SocketCore.cc:
  12485. (error): New function to abstract errno/WSAGetLastError().
  12486. (errorMsg): New function to abstract errno/WSAGetLastError().
  12487. (initiateSecureConnection): Added more detailed error reporting.
  12488. * src/SocketCore.h: Added private variable blocking, to allow
  12489. proper handling of OpenSSL psuedo-errors.
  12490. * src/message.h
  12491. (EX_SSL_INIT_FAILURE)
  12492. (EX_SSL_IO_ERROR)
  12493. (EX_SSL_PROTOCOL_ERROR)
  12494. (EX_SSL_UNKNOWN_ERROR)
  12495. (EX_SSL_CONNECT_ERROR)
  12496. (EX_SOCKET_BLOCKING)
  12497. (EX_SOCKET_NONBLOCKING)
  12498. (EX_SOCKET_UNKNOWN_ERROR)
  12499. * src/Util.cc
  12500. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12501. reserved name.
  12502. (httpGMT): Fixed typo.
  12503. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Merged Ross's win32 patch(manually)
  12505. In the course of merging, following files are added.
  12506. * src/strptime.{h,c}
  12507. * src/libgen.{h,c}
  12508. * src/inet_aton.{h,c}
  12509. * src/Platform.{h,cc}
  12510. * src/localtime_r.{h,c}
  12511. * src/getaddrinfo.{h,c}
  12512. I've gethered network related things, and put them to following file:
  12513. * src/a2netcompat.h
  12514. Also io related things are put to following file:
  12515. * src/a2io.h
  12516. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12517. * src/message.h
  12518. (MSG_ALLOCATION_COMPLETED)
  12519. (EX_TOO_LARGE_FILE)
  12520. (EX_SIZE_MISMATCH)
  12521. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12522. (EX_INVALID_CHUNK_CHECKSUM)
  12523. (EX_INVALID_RANGE_HEADER)
  12524. * src/FileAllocationCommand.cc
  12525. * src/HttpResponse.cc
  12526. * src/RequestGroup.cc
  12527. * src/MultiDiskAdaptor.cc
  12528. * src/OptionHandlerImpl.h
  12529. * src/HttpResponseCommand.cc
  12530. * src/FtpNegotiateCommand.cc
  12531. * src/IteratableChecksumValidator.cc
  12532. * src/SegmentMan.cc
  12533. * src/ChunkChecksumValidator.cc
  12534. Added Randomizer::getRandomNumber(long int)
  12535. * src/Randomizer.h (getRandomNumber)
  12536. * src/SimpleRandomizer.h (getRandomNumber)
  12537. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12538. * src/Util.cc (randomAlpha): Use this new function.
  12539. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12540. Converted int's to in32_t. long long int's are also converted to
  12541. int64_t
  12542. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12543. Fixed the bug that prevents cookies from being sent to the server
  12544. if the domain of cookie is FQDN and starts with ".".
  12545. * src/Cookie.cc (match)
  12546. To add the ability to change peer id.
  12547. * src/DefaultBtContext.h
  12548. (_peerIdPrefix): New variable
  12549. (setPeerIdPrefix): New function.
  12550. * src/torrentRequestInfo.cc
  12551. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12552. DefaultBtContext.
  12553. * src/main.cc (main): Added peer-id-prefix command-line option.
  12554. The usage message is not added yet.
  12555. * src/DefaultBtContext.cc
  12556. (generatePeerId): Use _peerIdPrefix.
  12557. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12558. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12559. Fixed the bug that prevents filename in content-disposition from
  12560. being retrieved when filename is not quoted.
  12561. * src/Util.cc (getContentDispositionFilename)
  12562. Fixed the bug that causes infinate loop and memory leak when file open
  12563. operation failed.
  12564. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12565. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12566. Fixed the bug that causes segfault when all URIs specified are
  12567. unsupported.
  12568. * src/RequestGroupMan.cc (getInitialCommands)
  12569. Check if RequestGroup::createNextCommand() returns empty list of
  12570. commands.
  12571. * src/RequestGroup.cc (createNextCommand)
  12572. Change log level from info to error so that users can notice that
  12573. an error occurred.
  12574. Fixed the bug that causes segfault when a zero-sized file is
  12575. downloaded.
  12576. * src/BitfieldMan.cc (isAllBitSet)
  12577. Return true if bitfieldLength is 0.
  12578. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12579. * src/main.cc
  12580. (showUsage): Added 3 usage examples for metalink download.
  12581. Replace MetalinkChunkChecksum with ChunkChecksum.
  12582. * src/MetalinkChunkChecksum.h: Removed.
  12583. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12584. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12585. * src/Xml2MetalinkProcessor.cc
  12586. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12587. * src/MetalinkRequestInfo.cc (execute)
  12588. * Release 0.11.1
  12589. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12590. Reads URIs from stdin when "-i -" is specified.
  12591. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12592. * src/UriListParser.h, src/UriListParser.cc: New class.
  12593. * src/StreamUriListParser.h: New class.
  12594. * src/FileUriListParser.h: New class.
  12595. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12596. instead of UriFileListParser.
  12597. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. Made console readout more readable.
  12599. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12600. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Fix the bug that causes -s option not to work.
  12602. * src/main.cc (main)
  12603. * src/a2algo.h: New file.
  12604. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12605. Create directory structure specified in metalink file.
  12606. * src/RequestGroup.h, src/RequestGroup.cc
  12607. (initAndOpenFile): Create a directory to store files if it does not
  12608. exist.
  12609. (getDir): New function.
  12610. Added ETA and download speed for an individual file to readout.
  12611. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12612. * src/RequestGroup.h
  12613. (calculateDownloadSpeed): New function.
  12614. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12615. Made -S option work with metalink file and provided selective download
  12616. to metalink.
  12617. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12618. (filename): Removed.
  12619. (file): New variable.
  12620. (size): Removed.
  12621. (operator=): Updated.
  12622. (getPath): New function.
  12623. (getLength): New function.
  12624. (toFileEntry): New function.
  12625. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12626. (execute): Use toStream.
  12627. (showFileEntry): Removed.
  12628. * src/MetalinkRequestInfo.h
  12629. (targetFiles): New variable.
  12630. (setTargetFiles): New variable.
  12631. * src/MetalinkRequestInfo.cc
  12632. (execute): Added the ability to print file information included in
  12633. a metalink file.
  12634. Added selective download mode to metalink.
  12635. * src/main.cc
  12636. (showUsage): Updated to denote that -S and --select-file options are
  12637. applicable to metalink.
  12638. * src/FileEntry.h
  12639. (operator=): New function.
  12640. (getBasename): New function.
  12641. (getDirname): New function.
  12642. * src/Util.h, src/Util.cc
  12643. (toStream): New function.
  12644. * src/Xml2MetalinkProcessor.cc: Updated.
  12645. Made aria2 work with metalink with directory structure.
  12646. * src/File.h, src/File.cc
  12647. (getBasename): New function.
  12648. (getDirname): New function.
  12649. * src/RequestGroup.h, src/RequestGroup.cc
  12650. (_topDir): New variable.
  12651. (setTopDir): New function.
  12652. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12653. Rewrote HTTP header parsing with stringstream.
  12654. * src/HttpConnection.h, src/HttpConnection.cc
  12655. (HttpRequestEntry): New class.
  12656. (headerBuf): Removed.
  12657. (headerBufLength): Removed.
  12658. (outstandingHttpRequests): Now its element type is
  12659. HttpRequestEntryHandle.
  12660. (findEndOfHeader): Removed.
  12661. (receiveResponse): Rewritten.
  12662. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12663. Updated doc for -j option to notice that it should be used with -i
  12664. option.
  12665. * src/main.cc (showUsage)
  12666. Removed unused classes.
  12667. * src/RequestInfo.h
  12668. (FileInfo): Removed.
  12669. (checksum): Removed.
  12670. (fileInfo): Removed.
  12671. (setChecksum): Removed.
  12672. (getChecksum): Removed.
  12673. (getFileInfo): Removed.
  12674. Use ISO units.
  12675. * src/ConsoleDownloadEngine.cc
  12676. * src/TorrentConsoleDownloadEngine.cc
  12677. * src/Util.cc (abbrevSize)
  12678. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12679. Added the default listening ports to the help message.
  12680. * src/main.cc (showUsage)
  12681. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12682. Reduce the number of calls to gettimeofday to lower CPU load.
  12683. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12684. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12685. * src/Peer.h (calculateUploadSpeed): New function.
  12686. (calculateDownloadSpeed): New function.
  12687. * src/DefaultPeerStorage.cc
  12688. (CalculateStat): Added _now variable.
  12689. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12690. and Peer::calculateUploadSpeed(const struct timeval&)
  12691. Drop connection if no request or piece message is exchanged in
  12692. a certain interval.
  12693. * src/DefaultBtInteractive.h
  12694. (btRuntime): New variable.
  12695. (inactiveCheckPoint): New variable.
  12696. (checkActiveInteraction): New function.
  12697. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12698. request or piece message is received.
  12699. (checkActiveInteraction): New function.
  12700. (doInteractionProcessing): Call checkActiveInteraction.
  12701. Fixed the bug that causes remote Metalink and Torrent files are not
  12702. processed.
  12703. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12704. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. Changed format of log file.
  12706. * src/SimpleLogger.cc
  12707. * Release 0.11.0
  12708. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12709. * src/AbstractCommand.cc
  12710. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12711. MSG_MAX_TRY from error to info.
  12712. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12713. * src/message.h
  12714. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12715. (MSG_DOWNLOAD_ABORTED): Added %s.
  12716. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12717. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12718. * src/PeerAbstractCommand.cc
  12719. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12720. * src/Request.h
  12721. (cookieBox): Made ShardHandle.
  12722. * src/RequestGroup.h, src/RequestGroup.cc
  12723. (createNextCommandWithAdj): New function.
  12724. * src/FileAllocationCommand.cc
  12725. (executeInternal): Use createNextCommandWithAdj().
  12726. * src/CheckIntegrityCommand.cc
  12727. (executeInternal): Use createNextCommandWithAdj().
  12728. Added --load-cookies command-option.
  12729. * src/OptionHandlerFactory.cc
  12730. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12731. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12732. Now aria2 can handle cookie's expiration date.
  12733. * src/Cookie.h (expires): Changed its type to time_t.
  12734. * src/main.cc: Added --load-cookies command-line option.
  12735. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12736. * src/Util.h, src/Util.cc (httpGMT): New function.
  12737. * src/Request.cc (Request): Initialize cookieBox using
  12738. CookieBoxFactory.
  12739. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12740. * src/CookieParser.h, src/CookieParser.cc: New class.
  12741. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12742. * src/HttpResponseCommand.cc
  12743. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12744. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12745. download.
  12746. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12747. Added -j command-line option.
  12748. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12749. * src/main.cc
  12750. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12751. Rewritten using stringstream.
  12752. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12753. Rewritten using stringstream.
  12754. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12755. Make download size shown in MB, KB.
  12756. * src/ConsoleDownloadEngine.h (sendStatistics)
  12757. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12758. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. Accept incoming connections if download rate is low.
  12760. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12761. (_lowestSpeedLimit): New variable.
  12762. (setLowestSpeedLimit): New function.
  12763. (execute): Accept incoming connections if download rate is low.
  12764. MAX_PEERS is ignored in this case.
  12765. Disable PREF_OUT in multiple concurrent download:
  12766. * src/RequestGroup.h, src/RequestGroup.cc
  12767. (setUserDefinedFilename): New function.
  12768. * src/DownloadEngineFactory.cc
  12769. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12770. concurrent download.
  12771. * src/DefaultSegmentManFactory.cc
  12772. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12773. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12774. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12775. Added its overloaded method.
  12776. * src/RequestGroup.h
  12777. (_numConcurrentCommand): New variable.
  12778. (setNumConcurrentCommand): New function.
  12779. * src/RequestGroup.cc
  12780. Abort download if same file is being downloaded concurrently.
  12781. * src/RequestGroup.h, src/RequestGroupMan.cc
  12782. (isSameFileBeingDownloaded): New function.
  12783. * src/HttpResponseCommand.cc (executeInternal)
  12784. * src/FtpNegotiateCommand.cc (recvSize)
  12785. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12786. * main.cc: Added help message for -i option.
  12787. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12788. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12789. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12790. * src/MetalinkEntry.h
  12791. (checksum): Changed to ChecksumHandle
  12792. * src/MetalinkRequestInfo.cc
  12793. (checksum): Changed to ChecksumHandle
  12794. * src/File.cc
  12795. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12796. * src/common.h
  12797. (DIR_OPEN_MODE): New definition
  12798. * src/RequestGroup.cc
  12799. (prepareForNextAction): Added an argument.
  12800. * src/message.h
  12801. (MSG_GOOD_CHECKSUM): New definition
  12802. (MSG_BAD_CHECKSUM): New definition
  12803. * src/HttpResponseCommand.cc
  12804. (handleDefaultEncoding): Continue download sequence in new
  12805. non-segmented download.
  12806. * src/FileAllocationEntry.h
  12807. (_nextDownloadCommand): New variable.
  12808. * src/DownloadCommand.cc
  12809. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12810. available.
  12811. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12812. * src/IteratableChecksumValidator.h,
  12813. src/IteratableChecksumValidator.cc: New class.
  12814. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12815. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12816. Change file mode to 666:
  12817. * src/common.h (OPEN_MODE): New definition.
  12818. * src/File.cc
  12819. * src/Util.cc
  12820. * src/Directry.cc
  12821. * src/AbstractDiskWriter.cc
  12822. Change the level of log message "download aborted" to debug:
  12823. * src/PeerAbstractCommand.cc (execute)
  12824. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12825. * src/TrackerWatcherCommand.cc
  12826. (createCommand): Sleep some seconds after request failed.
  12827. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12828. then abort tracker request.
  12829. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12830. * Added the simultaneous download feature.
  12831. * src/main.cc: Print "Exception caught: " when exception is caught.
  12832. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12833. * src/ActivePeerConnectionCommand.cc
  12834. * src/PeerInteractionCommand.cc
  12835. * src/BtRuntime.h
  12836. (cuidCounter): Removed.
  12837. (getNewCuid): Removed.
  12838. * src/DownloadEngineFactory.cc
  12839. * src/PeerListenCommand.cc
  12840. * src/TrackerUpdateCommand.cc
  12841. * src/PeerInitiateConnectionCommand.cc
  12842. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. * src/PeerAbstractCommand.cc
  12844. (onAbort): Call PeerStorage::returnPeer()
  12845. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12846. (incomingPeers): New variable.
  12847. (addIncomingPeer): New function.
  12848. (returnPeer): New function.
  12849. (onErasingPeer): New function.
  12850. (addPeer): push_back -> push_front
  12851. (getActivePeers): Rewritten.
  12852. (calculateStat): Rewritten.
  12853. * src/PeerStorage.h
  12854. (TransferStat::copy): New function.
  12855. (TransferStat::TransferStat): New function.
  12856. (TransferStat::operator=): New function.
  12857. (addIncomingPeer): New function.
  12858. (returnPeer): New function.
  12859. * src/PeerListenCommand.cc
  12860. (execute): Use PeerStorage::addIncomingPeer() instead of
  12861. Peer::addPeer().
  12862. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12863. Connect to a peer actively when download speed is lower than specified
  12864. speed in torrent download:
  12865. * src/ActivePeerConnectionCommand.h: New class.
  12866. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12867. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12868. * src/main.cc: Fixed the bug that prevents download if .netrc
  12869. doesn't exist.
  12870. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12871. To cache resolved hostname:
  12872. * src/AbstractCommand.h, src/AbstractCommand.cc
  12873. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12874. Added dns cache.
  12875. * src/FtpInitiateConnectionCommand.cc
  12876. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12877. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12878. NameResolver working without ares.
  12879. * src/TorrentRequestInfo.cc
  12880. (execute): Don't cache dns in torrent download.
  12881. * src/HttpInitiateConnectionCommand.cc
  12882. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12883. * src/DNSCache.h: New class.
  12884. * src/UrlRequestInfo.cc
  12885. (execute): Use dns cache.
  12886. In http request, suppress port number in http request header if port
  12887. is 80 or 443:
  12888. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12889. request header if port is 80 or 443.
  12890. (createProxyRequest): Allways send port number.
  12891. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12892. To add the command-line option which disables netrc support:
  12893. * src/OptionHandlerFactory.cc
  12894. (createOptionHandlers): Added PREF_NO_NETRC.
  12895. * src/main.cc: Added -n option.
  12896. * src/prefs.h (PREF_NO_NETRC): New definition.
  12897. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12898. V_TRUE.
  12899. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12900. is V_FALSE. This may get configurable in the future release.
  12901. To clear peer's error status by time basis:
  12902. * src/PeerAbstractCommand.cc
  12903. (onAbort): Call Peer::startBadCondition().
  12904. * src/Peer.h, src/Peer.cc
  12905. (error): Removed.
  12906. (_badConditionStartTime): New variable.
  12907. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12908. (startBadCondition): New function.
  12909. (isGood): New function.
  12910. * src/DefaultPeerStorage.cc
  12911. (addPeer): Use Peer::isGood().
  12912. (FindFinePeer): Use Peer::isGood().
  12913. Always include port number in http request header:
  12914. * src/HttpRequest.cc (getHostText): Always include port number in
  12915. http request header.
  12916. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12917. To the ability to read options from a config file:
  12918. * src/main.cc: Command-line parameter validation is delegated to
  12919. OptionHandler class.
  12920. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12921. * src/Option.h, src/Option.cc (clear): New function.
  12922. * src/OptionParser.h, src/OptionParser.cc: New class.
  12923. * src/OptionHandler.h: New class.
  12924. * src/NameMatchOptionHandler.h: New class.
  12925. * src/OptionHandlerImpl.h: New classes.
  12926. * src/prefs.h: '_' -> '-'
  12927. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12928. (FTP_PASV): New definition.
  12929. * src/Util.h, src/Util.cc (getRealSize): New function.
  12930. To disable netrc support if .netrc file does not have correct
  12931. permissions:
  12932. * src/File.h, src/File.cc (mode): New function.
  12933. To prevent confidential information to be logged:
  12934. * src/HttpConnection.h, src/HttpConnection.cc
  12935. (eraseConfidentialInfo): New function.
  12936. (sendRequest): Call eraseConfidentialInfo().
  12937. (sendProxyRequest): Call eraseConfidentialInfo().
  12938. * src/main.cc: Validate permissions of .netrc file.
  12939. To add --user-agent command-line option:
  12940. * src/main.cc: Added new command line option: --user-agent
  12941. * src/prefs.h (PREF_USER_AGENT): New definition.
  12942. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12943. parameter to HttpRequest object.
  12944. * src/AbstractProxyRequestCommand.cc
  12945. (executeInternal): Set user-agent option parameter to HttpRequest
  12946. object.
  12947. Marged the patches from Dan Fandrich.
  12948. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12949. Use filename and size from Metalink file instead of sending HEAD
  12950. request:
  12951. * src/UrlRequestInfo.h
  12952. (_filename): New variable.
  12953. (_totalLength): New variable.
  12954. (setTotalLength): New variable.
  12955. (setFilename): New variable.
  12956. * src/MetalinkRequestInfo.cc
  12957. (execute): Set filename and size to UrlRequestInfo
  12958. * src/UrlRequestInfo.cc
  12959. (execute): Use filename and size from Metalink instead of seding
  12960. HEAD request to servers.
  12961. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12962. To add the ability to resume downloading a partially downloaded file
  12963. which is downloaded from the beginning:
  12964. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12965. takes this role.
  12966. * src/main.cc: Added -c option.
  12967. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12968. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12969. * src/prefs.h (PREF_CONTINUE): New definition.
  12970. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12971. * src/DefaultDiskWriter.cc
  12972. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12973. * src/AbstractDiskWriter.h
  12974. (glowFileAllocator): New variable.
  12975. * src/AbstractDiskWriter.cc
  12976. (openExistingFile): Now preallocate file space from the end of the
  12977. existing file if totalLength argument is specified and grater than 0.
  12978. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12979. to download exists in local, continue the download of the file.
  12980. --allow-overwrite=true is assumed in this context.
  12981. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12982. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12983. Throw exception if --check-integrity=true is specified but chunk
  12984. checksums are not provided:
  12985. * src/UrlRequestInfo.cc
  12986. Do not print URLs to stdout:
  12987. * src/UrlRequestInfo.cc
  12988. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12989. * src/Request.h: Use AuthResolver to get authentication information.
  12990. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12991. set to RequestFactory object.
  12992. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12993. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12994. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12995. create Request object.
  12996. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12997. To integrate Netrc into exsiting classes:
  12998. * src/Request.h
  12999. (_userDefinedAuthConfig): New variable.
  13000. (findNetrcAuthenticator): New function.
  13001. (segment): Removed.
  13002. (setUserDefinedAuthConfig): New function.
  13003. (resolveHttpAuthConfigItem): New function.
  13004. (resolveFtpAuthConfigItem): New function.
  13005. (resolveHttpProxyAuthConfigItem): New function.
  13006. * src/HttpRequest.h
  13007. (authConfig): Removed.
  13008. (proxyAuthConfig): Removed.
  13009. (setAuthConfig): Removed.
  13010. (setProxyAuthConfig): Removed.
  13011. * src/UrlRequest.h
  13012. (getHeadResult): Added a parameter: authConfigHandle
  13013. * src/common.h
  13014. (SingletonHolder.h): New include.
  13015. * src/main.cc
  13016. (Netrc.h): New include.
  13017. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13018. Added initial value of PREF_NETRC_PATH.
  13019. Added the initialization of netrc.
  13020. * src/AuthConfig.h: New class.
  13021. * src/prefs.h
  13022. (PREF_NETRC_PATH): New definition.
  13023. * src/HttpAuthConfig.h: Removed.
  13024. * src/Netrc.cc
  13025. (getRequiredNextToken): New function.
  13026. (skipMacdef): New function.
  13027. (parse): Rewritten.
  13028. * src/Netrc.h
  13029. (getRequiredNextToken): New function.
  13030. (skipMacdef): New function.
  13031. * src/Util.h, src/Util.cc
  13032. (getHomeDir): New function.
  13033. * src/TrackerWatcherComand.cc
  13034. (createRequestCommand): Use AuthConfig.
  13035. * src/FtpConnection.cc
  13036. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13037. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13038. * src/Request.cc
  13039. (findNetrcAuthenticator): New function.
  13040. (resolveHttpAuthConfigItem): New function.
  13041. (resolveFtpAuthConfigItem): New function.
  13042. (resolveHttpProxyAuthConfigItem): New function.
  13043. * src/UrlRequestInfo.cc: Use AuthConfig.
  13044. * src/HttpRequest.cc
  13045. (createRequest): Use authConfig.
  13046. (getProxyAuthString): Use authConfig.
  13047. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13048. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13049. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13050. To reduce overhead to find commands whose socket is either
  13051. readable or writable in the download engine loop:
  13052. * src/Command.h, src/Command.cc
  13053. (STATUS): New enum.
  13054. (status): New variable.
  13055. (statusMatch): New function.
  13056. (setStatusActive): New function.
  13057. (setStatusInactive): New function.
  13058. * src/DownloadEngine.h, src/DownloadEngine.cc
  13059. (executeCommand): New function.
  13060. (run): Simplified.
  13061. (waitData): Call Command::setStatusActive() when command's socket is
  13062. readable or writable.
  13063. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13064. To handle Segment as SegmentHandle:
  13065. * src/AbstractCommand.cc (execute): Rewritten.
  13066. * src/SegmentMan.h: Segment -> SegmentHandle
  13067. Introducded HttpResponse class, HttpRequest class to improve code
  13068. extensiveness and make it clear:
  13069. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13070. HttpResponse class.
  13071. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13072. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13073. * src/HttpConnection.cc: Contruction of http request were moved to
  13074. HttpRequest class.
  13075. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13076. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13077. * src/HttpAuthConfig.h: New class.
  13078. * src/Range.h: New class.
  13079. To make FtpTunnel{Request, Response}Command and
  13080. HttpProxy{Request, Response}Command derived from
  13081. AbstractProxy{Request, Response}Command:
  13082. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13083. Derived from AbstractProxyRequestCommand class.
  13084. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13085. Derived from AbstractProxyResponseCommand class.
  13086. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13087. Derived from AbstractProxyRequestCommand class.
  13088. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13089. Derived from AbstractProxyResponseCommand class.
  13090. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13091. : New class.
  13092. * src/AbstractProxyResponseCommand.h,
  13093. src/AbstractProxyResponseCommand.cc: New class.
  13094. To add netrc support:
  13095. * src/Netrc.h, src/Netrc.cc: New class.
  13096. * src/Util.h, src/Util.cc (split): New function.
  13097. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13098. "Content-Range" header instead of "Range" header.
  13099. * src/HttpHeader.h
  13100. (getStatus): Removed.
  13101. (setStatus): Removed.
  13102. * src/Segment.h
  13103. (getPositionToWrite): New function.
  13104. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13105. * src/HttpHeader.h
  13106. (Range.h): New include.
  13107. (status): New variable.
  13108. (HttpHeader): Initialized status with 0.
  13109. (getStatus): New function.
  13110. (setStatus): New function.
  13111. (getRange): New function.
  13112. (HttpHeaderHandle): New function.
  13113. * src/HttpHeader.cc
  13114. (getRange): New function.
  13115. * src/Request.h
  13116. (RequestWeakHandle): New definition.
  13117. * src/HttpConnection.h
  13118. (HttpConnectionHandle): New type definition.
  13119. * src/HttpConnection.cc
  13120. (receiveResponse): Set HTTP status to headers.
  13121. * src/main.cc
  13122. (showUsage): Fixed typo.
  13123. * src/Segment.h
  13124. (SegmentHandle): New type definition.
  13125. * src/BitfieldMan.h
  13126. (getMissingUnusedLength): New function.
  13127. * src/BitfieldMan.cc
  13128. (getMissingUnusedLength): New function.
  13129. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13130. To fix static initialization order problem:
  13131. * src/BitfieldManFactory.h
  13132. (defaultRandomizer): Removed.
  13133. (factory): New variable.
  13134. (getNewFactory): Removed.
  13135. (getFactoryInstance): New function.
  13136. (setDefaultRandomizer): Rewritten.
  13137. (getDefaultRandomizer): Rewritten.
  13138. * src/BitfieldManFactory.cc
  13139. (defaultRandomizer): Removed.
  13140. (factory): Initialized to 0.
  13141. (BitfieldManFactory): Initialized randomizer to 0.
  13142. * src/DefaultPieceStorage.cc
  13143. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13144. * src/Peer.cc
  13145. (Peer): getNewFactory() -> getFactoryInstance()
  13146. * src/SegmentMan.cc
  13147. (initBitfield): getNewFactory() -> getFactoryInstance()
  13148. * src/Piece.cc
  13149. (Piece): getNewFactory() -> getFactoryInstance()
  13150. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13151. To fix the bug that causes crash on Max OS X:
  13152. * src/SimpleRandomizer.h
  13153. (getInstance): Create new instance if the static variable is null.
  13154. * src/SimpleRandomizer.cc
  13155. (randomizer): Initialized to 0.
  13156. * src/BitfieldManFactory.h
  13157. (getNewFactory): Removed the call to setRandomizer().
  13158. To fix the miscalculation of the range of checksum:
  13159. * src/BitfieldMan.h
  13160. (isBitSetOffsetRange): New function.
  13161. * src/BitfieldMan.cc
  13162. (isBitSetOffsetRange): New function.
  13163. * src/SegmentMan.cc
  13164. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13165. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13166. * Release 0.10.1
  13167. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13168. To lower CPU usage in BitTorrent download when --max-upload-limit
  13169. command-line option specified:
  13170. * src/DefaultBtMessageDispatcher.cc
  13171. (sendMessages): Calculate uploading speed only when current message
  13172. is uploading data and is not sent yet.
  13173. * src/DefaultPeerStorage.h
  13174. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13175. * src/HttpResponseCommand.cc
  13176. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13177. This fixes compile error in Soralis 10.
  13178. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13179. To fix segfault in Metalink download:
  13180. * src/UrlRequestInfo.h
  13181. (filename): Removed.
  13182. (totalLength): Removed.
  13183. (setTotalLength): Removed.
  13184. (setFilename): Removed.
  13185. * src/MetalinkRequestInfo.cc
  13186. (execute): Do not set filename and totalLength to reqInfo.
  13187. Set chunk checksum to reqInfo if it is not null.
  13188. * src/HttpResponseCommand.cc
  13189. (executeInternal): Fixed filename in log.
  13190. (handleDefaultEncoding): Removed the call to initBitfield() and
  13191. markAllPiecesDone().
  13192. (handleOtherEncoding): Added HEAD method handling.
  13193. * src/FtpNegotiateCommand.cc
  13194. (executeInternal): Added SEQ_HEAD_OK handling.
  13195. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13196. return false.
  13197. * src/FtpNegotiateCommand.h
  13198. (SEQ_HEAD_OK): New definition.
  13199. * src/SegmentMan.cc
  13200. (initBitfield): Delete bitfield.
  13201. (isChunkChecksumValidationReady): Fixed the condition.
  13202. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13203. works fine.
  13204. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13205. * src/Xml2MetalinkProcessor.h
  13206. (xpathExists): New function.
  13207. * src/Xml2MetalinkProcessor.cc
  13208. (xpathExists): New function.
  13209. Not to send HEAD request if filename and size are available in Metalink
  13210. file:
  13211. * src/UrlRequestInfo.h
  13212. (filename): New variable.
  13213. (totalLength): New variable.
  13214. (setTotalLength): New function.
  13215. (setFilename): New function.
  13216. * src/MetalinkRequestInfo.cc
  13217. (execute): Set filename and size to UrlRequestInfo.
  13218. * src/MetalinkEntry.cc
  13219. (MetalinkEntry): Initialize size with 0.
  13220. * src/UrlRequestInfo.cc
  13221. (execute): Set filename and size to SegmentMan.
  13222. Not to download rest of the files after selected files are downloaded
  13223. in BitTorrent:
  13224. * src/PieceStorage.h
  13225. (allDownloadFinished): New function.
  13226. * src/DefaultBtAnnounce.cc
  13227. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13228. downloadFinished.
  13229. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13230. * src/DefaultPieceStorage.cc
  13231. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13232. Commented out the call to finishSelectiveDownloadingMode().
  13233. (downloadFinished): Call isFilteredAllBitSet() instead of
  13234. isAllBitSet().
  13235. (allDownloadFinished): New function.
  13236. * src/DefaultBtInteractive.cc
  13237. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13238. downloadFinished().
  13239. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13240. * src/TorrentDownloadEngine.cc
  13241. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13242. * src/BitfieldMan.h
  13243. (isFilteredAllBitSet): New function.
  13244. * src/ShareRatioSeedCriteria.h
  13245. (PieceStorage.h): New include.
  13246. (pieceStorage): New variable.
  13247. (evaluate):
  13248. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13249. * src/BitfieldMan.cc
  13250. (isFilteredAllBitSet): New function.
  13251. (isAllBitSet): Filter is not took into account.
  13252. Rename --force-truncate as --allow-overwrite:
  13253. * src/TorrentRequestInfo.cc
  13254. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13255. * src/main.cc
  13256. (showUsage): --force-truncate -> --allow-overwrite
  13257. * src/message.h
  13258. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13259. * src/prefs.h
  13260. (PREF_FORCE_TRUNCATE): Removed.
  13261. (PREF_ALLOW_OVERWRITE): New definition.
  13262. * src/SegmentMan.cc
  13263. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13264. * src/MetalinkRequestInfo.cc
  13265. (execute): Queueing message are now logged in info level.
  13266. * src/common.h
  13267. (LONG_LONG_MAX): Removed.
  13268. (LONG_LONG_MIN): Removed.
  13269. * src/HttpResponseCommand.cc
  13270. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13271. * src/FtpNegotiateCommand.cc
  13272. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13273. * src/main.cc
  13274. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13275. command-line option.
  13276. (main): Added --check-integriy and --realtime-chunk-checksum
  13277. command-line option.
  13278. --force-truncate -> --allow-overwrite
  13279. Set initial value of --check-integrity option to false.
  13280. Don't show usage when error occurs while persing command-line options.
  13281. Removed deprecated --upload-limit option.
  13282. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13283. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13284. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13285. * src/BtAllowedFastMessage.cc:
  13286. * src/BtBitfieldMessage.cc
  13287. * src/BtCancelMessage.cc
  13288. * src/BtChokeMessage.cc
  13289. * src/BtHaveAllMessage.cc
  13290. * src/BtHaveMessage.cc
  13291. * src/BtHaveNoneMessage.cc
  13292. * src/BtInterestedMessage.cc
  13293. * src/BtNotInterestedMessage.cc
  13294. * src/BtPieceMessage.cc
  13295. * src/BtPortMessage.cc
  13296. * src/BtRejectMessage.cc
  13297. * src/BtRequestMessage.cc
  13298. * src/BtSuggestPieceMessage.cc
  13299. * src/BtUnchokeMessage.cc
  13300. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13301. files are affected.
  13302. * src/ChunkChecksumValidator.cc
  13303. * src/SegmentMan.cc
  13304. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13305. To add chunk checksum validation:
  13306. * src/MetalinkEntry.h
  13307. (MetalinkChunkChecksum.h): New include.
  13308. (chunkChecksum): New variable.
  13309. * src/Request.h
  13310. (method): New variable.
  13311. (setMethod): New function.
  13312. (getMethod): New function.
  13313. (METHOD_GET): New static constant.
  13314. (METHOD_HEAD): New static constant.
  13315. * src/Xml2MetalinkProcessor.h
  13316. (getPieceHash): New function.
  13317. * src/PieceStorage.h
  13318. (markAllPiecesDone): New function.
  13319. (checkIntegrity): New function.
  13320. * src/FileAllocator.h
  13321. (NullFileAllocationMonitor.h): New include.
  13322. (FileAllocator): Initialize fileAllocationMonitor with new
  13323. NullFileAllocationMonitor().
  13324. * src/MultiDiskAdaptor.h
  13325. (messageDigest.h): Remove include.
  13326. (ctx): Removed.
  13327. (hashUpdate): Added ctx.
  13328. (MultiDiskAdaptor): Removed ctx.
  13329. (sha1Sum): Renamed as messageDigest.
  13330. (messageDigest): New function.
  13331. * src/UrlRequestInfo.h
  13332. (HeadResult): New class.
  13333. (digestAlgo): New variable.
  13334. (chunkChecksumLength): New variable.
  13335. (chunkChecksums): New variable.
  13336. (getHeadResult): New function.
  13337. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13338. (setDigestAlgo): New function.
  13339. (setChunkChecksumLength): New function.
  13340. (setChunkChecksums): New function.
  13341. * src/DefaultPieceStorage.cc
  13342. (DiskAdaptorWriter.h): New include.
  13343. (ChunkChecksumValidator.h): New include.
  13344. (markAllPiecesDone): New function.
  13345. (checkIntegrity): New function.
  13346. * src/DefaultBtContext.h
  13347. (getPieceHashes): New function.
  13348. * src/TorrentRequestInfo.cc
  13349. (execute): Try to validate chunk checksum if file already exists and
  13350. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13351. * src/messageDigest.h
  13352. (~MessageDigestContext): Added digestFree().
  13353. * src/MetalinkRequestInfo.cc
  13354. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13355. * src/DiskAdaptor.h
  13356. (messageDigest.h): New include.
  13357. (sha1Sum): Renamed as messageDigest.
  13358. (messageDigest): New function.
  13359. * src/DownloadCommand.h
  13360. (PeerStat.h): New include.
  13361. (maxDownloadSpeedLimit): New variable.
  13362. (startupIdleTime): New variable.
  13363. (lowestDownloadSpeedLimit): New variable.
  13364. (peerStat): New variable.
  13365. (setMaxDownloadSpeedLimit): New function.
  13366. (setStartupIdleTime): New function.
  13367. (setLowestDownloadSPeedLimit): New function.
  13368. * src/BtContext.h
  13369. (getPieceHashes): New function.
  13370. * src/main.cc
  13371. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13372. option to true for testing purpose.
  13373. * src/BtPieceMessage.cc
  13374. (checkPieceHash): Use messageDigest
  13375. * src/DownloadEngine.cc
  13376. (SetDescriptor): Removed.
  13377. (AccumulateActiveCommand): Removed.
  13378. (waitData): Rewritten.
  13379. (updateFdSet): Rewritten.
  13380. * src/MultiDiskAdaptor.cc
  13381. (hashUpdate): Added ctx.
  13382. (sha1Sum): Renamed as messageDigest.
  13383. (messageDigest): New function.
  13384. * src/BitfieldMan.h
  13385. (isBitRangeSet): New function.
  13386. (unsetBitRange): New function.
  13387. * src/ByteArrayDiskWriter.h
  13388. (sha1Sum): Renamed as messageDigest.
  13389. (messageDigest): New function.
  13390. * src/ConsoleDownloadEngine.cc
  13391. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13392. * src/DiskWriter.h
  13393. (messageDigest.h): New include.
  13394. (sha1Sum): Renamed as messageDigest.
  13395. (messageDigest): New function.
  13396. * src/ChunkChecksumValidator.h: New class.
  13397. * src/DiskAdaptorWriter.h: New class.
  13398. * src/prefs.h
  13399. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13400. (PREF_CHECK_INTEGRITY): New definition.
  13401. * src/HttpResponseCommand.cc
  13402. (handleDefaultEncoding): Added method "HEAD" handling.
  13403. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13404. (handleOtherEncoding):
  13405. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13406. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13407. startupIdleTime, lowestDownloadSpeedLimit to command.
  13408. * src/SegmentMan.h
  13409. (getSegmentEntryByIndex): New function.
  13410. (getSegmentEntryByCuid): New function.
  13411. (getSegmentEntryIteratorByCuid): New function.
  13412. (diskWriter): DiskWriter -> DiskWriterHandle
  13413. (pieceHashes): New variable.
  13414. (chunkHashLength): New variable.
  13415. (digestAlgo): New variable.
  13416. (FindPeerStat): Removed.
  13417. (getPeerStat): Rewritten.
  13418. (markAllPiecesDone): New function.
  13419. (checkIntegrity): New function.
  13420. (tryChunkChecksumValidation): New function.
  13421. (isChunkChecksumValidationReady): New function.
  13422. * src/BitfieldMan.cc
  13423. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13424. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13425. blocks to 0.
  13426. (isBitRangeSet): New function.
  13427. (unsetBitRange): New function.
  13428. * src/FtpNegotiateCommand.cc
  13429. (executeInternal): Set maxDownloadSpeedLimit,
  13430. startupIdleTime, lowestDownloadSpeedLimit to command.
  13431. (recvSize): Added method "HEAD" handling.
  13432. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13433. * src/AbstractSingleDiskAdaptor.cc
  13434. (sha1Sum): Renamed as messageDigest.
  13435. (messageDigest): New function.
  13436. * src/AbstractSingleDiskAdaptor.h
  13437. (sha1Sum): Renamed as messageDigest.
  13438. (messageDigest): New function.
  13439. * src/Util.h
  13440. (indexRange): New function.
  13441. * src/MetalinkEntry.cc
  13442. (MetalinkEntry): Initialized chunkChecksum to 0.
  13443. * src/ShaVisitor.cc
  13444. (~ShaVisitor): Removed the call to ctx.digestFree().
  13445. * src/SegmentMan.cc
  13446. (ChunkChecksumValidator.h): New include.
  13447. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13448. to DIGEST_ALGO_SHA1.
  13449. (~SegmentMan): Removed diskWriter.
  13450. (FindSegmentEntryByIndex): Removed.
  13451. (FindSegmentEntryByCuid): Removed.
  13452. (checkoutSegment): Rewritten.
  13453. (findSlowerSegmentEntry): Rewritten.
  13454. (getSegment): Rewritten.
  13455. (updateSegment): Rewritten.
  13456. (completeSegment): Rewritten.
  13457. (markAllPiecesDone): New function.
  13458. (checkIntegrity): New function.
  13459. (isChunkChecksumValidationReady): New function.
  13460. (tryChunkChecksumValidation): New function.
  13461. * src/Xml2MetalinkProcessor.cc
  13462. (getEntry): Get size and set it to entry.
  13463. Get chunk checksum and set it to entry.
  13464. (getPieceHash): New function.
  13465. * src/Util.cc
  13466. (sha1Sum): Removed ctx.digestFree()
  13467. (fileChecksum): Removed ctx.digestFree()
  13468. (indexRange): New function.
  13469. * src/Request.cc
  13470. (METHOD_GET): New variable.
  13471. (METHOD_HEAD): New variable.
  13472. (Request): Added method.
  13473. * src/UrlRequestInfo.cc
  13474. (FatalException.h): New include.
  13475. (message.h): New include.
  13476. (operator<<): Added operator<< for class HeadResult.
  13477. (getHeadResult): New function.
  13478. (execute): Get filename and size in separate download engine.
  13479. * src/ChunkChecksumValidator.cc: New class.
  13480. * src/DownloadCommand.cc:
  13481. (DownloadCommand): Added peerStat.
  13482. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13483. the value from Option.
  13484. The buffer size is now 16KB.
  13485. Use peerStat member instead of getting it from SegmentMan.
  13486. Use startupIdleTime member instead of gettingit from Option.
  13487. Added chunk checksum validation.
  13488. * src/AbstractDiskWriter.cc
  13489. (AbstractDiskWriter): Removed ctx.
  13490. (~AbstractDiskWriter): Removed ctx.digestFree()
  13491. (writeDataInternal): Returns the return value of write.
  13492. (readDataInternal): Returns the return value of read.
  13493. (sha1Sum): Renamed as messageDigest
  13494. (messageDigest): New function.
  13495. * src/AbstractDiwkWriter.h
  13496. (messageDigest.h): Removed include.
  13497. (ctx): Removed.
  13498. (sha1Sum): Renamed as messageDigest
  13499. (messageDigest): New function.
  13500. * src/DefaultPieceStorage.h
  13501. (markAllPiecesDone): New function.
  13502. (checkIntegrity): New function.
  13503. * src/NullFileAllocationMonitor.h: New class.
  13504. * src/MetalinkChunkChecksum.h: New class.
  13505. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. To decrease CPU usage in bittorrent download, calculation results in
  13507. BitfieldMan were cached and realtime fetching PeerObject was removed
  13508. with WeakHandle introduced. Option values are set to the objects
  13509. by setter before download begins.
  13510. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13511. * src/DefaultBtRequestFactory.h
  13512. (dispatcher): BtMessageDispatcherHandle ->
  13513. BtMessageDispatcherWeakHandle.
  13514. (messageFactory): New variable.
  13515. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13516. BtMessageDispatcherWeakHandle.
  13517. (setBtMessageFactory): New function.
  13518. * src/DefaultBtMessageDispatcher.cc:
  13519. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13520. from Option.
  13521. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13522. feating the value from Option.
  13523. Use messageFactory member.
  13524. * src/PeerInteractionCommand.cc
  13525. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13526. Add reverse dependencies to factory object.
  13527. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13528. dispatcher.
  13529. Set messageFactory to receiver.
  13530. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13531. btInteractive.
  13532. Set receiver to peerObject.
  13533. Set maxDownloadSpeedLimit to this.
  13534. (executeInternal): Use maxDownloadSpeedLimit member.
  13535. * src/BtChokeMessage.cc
  13536. (doReceivedAction): Use dispatcher, requestFactory member.
  13537. (onSendComplete): Use dispatcher member.
  13538. * src/PeerInteractionCommand.h
  13539. (maxDownloadSpeedLimit): New variable.
  13540. * src/DefaultBtMessageReceiver.h
  13541. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13542. (dispatcher):
  13543. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13544. (messageFactory): New variable.
  13545. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13546. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13547. (setDispatcher):
  13548. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13549. (setBtMessageFactory): New function.
  13550. * src/DefaultBtInteractive.cc
  13551. (initiateHandshake): Use messageFactory member.
  13552. (addBitfieldMessageToQueue): Use messageFactory member.
  13553. (addAllowedFastMessageToQueue): Use messageFactory member.
  13554. (decideChoking): Use messageFactory member.
  13555. (checkHave): Use messageFactory member.
  13556. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13557. (receiveMessages): Use maxDownloadSpeedLimit member.
  13558. (decideInterest): Use messageFactory member.
  13559. * src/BtRequestMessage.cc
  13560. (doReceivedAction): Use messageFactory, dispatcher member.
  13561. (onQueued): Use dispatcher member.
  13562. * src/BtPieceMessage.cc
  13563. (doReceivedAction): Use dispatcher member.
  13564. (send): Use peerConnection member.
  13565. (onWrongPiece): Use requestFactory member.
  13566. (handleChokingEvent): Use messageFactory, dispatcher member.
  13567. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13568. * src/BtMessageDispatcher.h
  13569. (BtMessageDispatcherWeakHandle): New type definition.
  13570. * src/SimpleBtMessage.cc
  13571. (send): Use peerConnection member.
  13572. * src/BtRejectMessage.cc
  13573. (doReceivedAction): Use dispatcher member.
  13574. * src/DefaultBtMessageDispatcher.h
  13575. (Option.h): Removed include.
  13576. (messageFactory): New variable.
  13577. (option): Removed.
  13578. (maxUploadSpeedLimit): New variable.
  13579. (requestTimeout): New variable.
  13580. (DefaultBtMessageDispatcher): Removed option.
  13581. Added maxUploadSpeedLimit, requestTimeout.
  13582. (setOption): Removed.
  13583. (getOption): Removed.
  13584. (setMaxUploadSpeedLimit): New function.
  13585. (setRequestTimeout): New function.
  13586. (setBtMessageFactory): New function.
  13587. * src/DefaultBtInteractive.h
  13588. (btMessageReceiver):
  13589. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13590. (dispatcher):
  13591. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13592. (btRequestFactory):
  13593. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13594. (peerConnection):
  13595. PeerConnectionHandle -> PeerConnectionWeakHandle
  13596. (messageFactory): New variable.
  13597. (option): Removed.
  13598. (keepAliveInterval): New variable.
  13599. (maxDownloadSpeedLimit): New variable.
  13600. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13601. (setBtMessageReceiver):
  13602. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13603. (setDispatcher):
  13604. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13605. (setBtRequestFactory):
  13606. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13607. (setPeerConnection):
  13608. PeerConnectionHandle -> PeerConnectionWeakHandle
  13609. (setOption): Removed.
  13610. (setKeepAliveInterval): New function.
  13611. (setMaxDownloadSpeedLimit): New function.
  13612. (setBtMessageFactory): New function.
  13613. * src/BitfieldMan.h
  13614. (cachedNumMissingBlock): New variable.
  13615. (cachedNumFilteredBlock): New variable.
  13616. (cachedCompletedLength): New variable.
  13617. (cachedFilteredComletedLength): New variable.
  13618. (cachedFilteredTotalLength): New variable.
  13619. (countMissingBlockNow): New function.
  13620. (countFilteredBlockNow): New function.
  13621. (getFilteredTotalLengthNow): New function.
  13622. (getCompletedLengthNow): New function.
  13623. (getFilteredCompletedLengthNow): New function.
  13624. (updateCache): New function.
  13625. * src/AbstractBtMessage.h
  13626. (BtMessageDispatcher.h): New include.
  13627. (PeerConnection.h): New include.
  13628. (BtRequestFactory.h): New include
  13629. (BtMessageFactory.h): New include.
  13630. (dispatcher): New variable.
  13631. (messageFactory): New variable.
  13632. (peerConnection: New variable.
  13633. (setBtMessageDispatcher): New function.
  13634. (setPeerConnection): New function.
  13635. (setBtMessageFactory): New function.
  13636. (setBtRequestFactory): New function.
  13637. * src/DefaultBtMessageFactory.cc
  13638. (setCommonProperty): Set dispatcher, requestFactory, this,
  13639. peerConnection to msg.
  13640. * src/BtRegistry.h
  13641. (BT_MESSAGE_RECEIVER): New macro.
  13642. * src/PeerConnection.h
  13643. (PeerConnectionWeakHandle): New type definition.
  13644. * src/BtMessageFactory.h
  13645. (BtMessageFactoryWeakHandle): New type definition.
  13646. * src/BitfieldMan.cc
  13647. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13648. cachedCompletedLength, cachedFilteredComletedLength,
  13649. cachedFilteredTotalLength.
  13650. Call updateCache().
  13651. (countMissingBlock): Return cachedNumMissingBlock.
  13652. (countMissingBlockNow): New function.
  13653. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13654. (countFilteredBlockNow): New function.
  13655. (setBit): Call updateCache().
  13656. (unsetBit): Call updateCache().
  13657. (setBitfield): Call updateCache().
  13658. (clearAllBit): Call updateCache().
  13659. (setAllBit): Use setBitInternal instead of setBit.
  13660. Call updateCache().
  13661. (addFilter): Call updateCache().
  13662. (enableFilter): Call updateCache().
  13663. (disableFilter): Call updateCache().
  13664. (clearFilter): Call updateCache().
  13665. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13666. (getFilteredTotalLengthNow): New function.
  13667. (getCompletedLength): Return cachedCompletedLength.
  13668. (getCompletedLengthNow): New function.
  13669. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13670. (getFilteredCompletedLengthNow): New function.
  13671. (updateCache): New function.
  13672. * src/BtMessageReceiver.h
  13673. (BtMessageReceiverWeakHandle): New type definition.
  13674. * src/DefaultBtMessageReceiver.cc
  13675. (receiveHandshake): Use messageFactory member.
  13676. (sendHandshake): Use messageFactory member.
  13677. (receiveMessage): Use messageFactory member.
  13678. * src/DefaultBtMessageFactory.h
  13679. (dispatcher): New variable.
  13680. (requestFactory): New variable.
  13681. (peerConnection): New variablle.
  13682. (setBtMessageDispatcher): New function.
  13683. (setBtRequestFactory): New function.
  13684. (setPeerConnection): New function.
  13685. * src/SharedHandle.h
  13686. (RefCount): New class.
  13687. (WeakHandle): New class.
  13688. * src/PeerObject.h
  13689. (BtMessageReceiver.h): New include.
  13690. (PeerObject): Added btMessageReceiver.
  13691. (btMessageReceiver): New variable.
  13692. * src/Util.cc
  13693. (countBit): Simplified.
  13694. * src/BtCancelMessage.cc
  13695. (doReceivedAction): Use dispatcher member.
  13696. * src/BtRequestFactory.h
  13697. (BtRequestFactoryWeakHandle): New type definition.
  13698. * src/PeerStorage.h
  13699. (downloadSpeed): int -> uint32_t
  13700. (uploadSpeed): int -> uint32_t
  13701. (sessionDownloadLength): long long int -> uint64_t
  13702. (sessionUploadLength): long long int -> uint64_t
  13703. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13704. To add RecoverableException, FatalException:
  13705. * src/AbstractCommand.cc
  13706. (onAbort): Exception -> RecoverableException
  13707. * src/PeerAbstractCommand.h
  13708. (RecoverableException.h): New include.
  13709. (onAbort): Exception -> RecoverableException.
  13710. * src/PeerInteractionCommand.cc
  13711. (onAbort): Exception -> RecoverableException.
  13712. * src/PeerAbstractCommand.cc
  13713. (execute): Exception -> RecoverableException.
  13714. (onAbort): Exception -> RecoverableException.
  13715. * src/TorrentRequestInfo.cc
  13716. (execute): Exception -> RecoverableException.
  13717. * src/MetalinkRequestInfo.cc
  13718. (execute): Exception -> RecoverableException.
  13719. * src/MetaFileUtil.cc: RecoverableException.
  13720. * src/AbstractCommand.h
  13721. (onAbort): Exception -> RecoverableException.
  13722. * src/DlRetryEx.h: Exception -> RecoverableException.
  13723. * src/DlAbortEx.h: Exception -> RecoverableException.
  13724. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13725. * src/Util.cc: Exception -> RecoverableException.
  13726. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13727. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13728. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13729. To make ID static const int
  13730. * src/BtInterestedMessage.h
  13731. (ID_t): Removed.
  13732. (ID): New variable.
  13733. (getId): Made non-const.
  13734. * src/BtPieceMessage.h
  13735. (ID_t): Removed.
  13736. (ID): New variable.
  13737. (getId): Made non-const.
  13738. * src/BtChokeMessage.h
  13739. (ID_t): Removed.
  13740. (ID): New variable.
  13741. (getId): Made non-const.
  13742. * src/BtHaveAllMessage.h
  13743. (ID_t): Removed.
  13744. (ID): New variable.
  13745. (getId): Made non-const.
  13746. * src/BtKeepAliveMessage.h
  13747. (ID_t): Removed.
  13748. (ID): New variable.
  13749. (getId): Made non-const.
  13750. * src/BtHandshakeMessage.h
  13751. (ID): New variable.
  13752. (getId): Made non-const.
  13753. * src/BtSuggestPieceMessage.h
  13754. (ID_t): Removed.
  13755. (ID): New variable.
  13756. (getId): Made non-const.
  13757. * src/BtPortMessage.h
  13758. (ID_t): Removed.
  13759. (ID): New variable.
  13760. (getId): Made non-const.
  13761. * src/AbstractBtMessage.h
  13762. (id): Removed.
  13763. (AbstractBtMessage): Removed id.
  13764. (getId): Removed.
  13765. * src/BtHaveMessage.h
  13766. (ID_t): Removed.
  13767. (ID): New variable.
  13768. (getId): Made non-const.
  13769. * src/BtAllowedFastMessage.h
  13770. (ID_t): Removed.
  13771. (ID): New variable.
  13772. (getId): Made non-const.
  13773. * src/BtCancelMessage.h
  13774. (ID_t): Removed.
  13775. (ID): New variable.
  13776. (getId): Made non-const.
  13777. * src/BtNotInterestedMessage.h
  13778. (ID_t): Removed.
  13779. (ID): New variable.
  13780. (getId): Made non-const.
  13781. * src/BtChokeMessage.h
  13782. (ID_t): Removed.
  13783. (ID): New variable.
  13784. (getId): Made non-const.
  13785. * src/BtRejectMessage.h
  13786. (ID_t): Removed.
  13787. (ID): New variable.
  13788. (getId): Made non-const.
  13789. * src/BtBitfieldMessage.h
  13790. (ID_t): Removed.
  13791. (ID): New variable.
  13792. (getId): Made non-const.
  13793. * src/BtUnchokeMessage.h
  13794. (ID_t): Removed.
  13795. (ID): New variable.
  13796. (getId): Made non-const.
  13797. * src/BtRequestMessage.h
  13798. (ID_t): Removed.
  13799. (ID): New variable.
  13800. (getId): Made non-const.
  13801. * src/BtHaveMessage.h
  13802. (ID_t): Removed.
  13803. (ID): New variable.
  13804. (getId): Made non-const.
  13805. To add --force-truncate command-line option and a check whether
  13806. the file already exists:
  13807. * src/DirectDiskAdaptor.h
  13808. (getFilePath): Made virtual public.
  13809. * src/MultiDiskAdaptor.h
  13810. (File.h): New include.
  13811. (DiskWriterEntry::fileEntry): Made private.
  13812. (DiskWriterEntry::fileExists): New function.
  13813. (DiskWriterEntry::getFileEntry): New function.
  13814. (fileExists): New function.
  13815. (getFilePath): New function.
  13816. * src/TorrentRequestInfo.cc
  13817. (FatalException.h): New include.
  13818. (message.h): New include.
  13819. (RecoverableException.h): New include.
  13820. (execute): Added a check whether file is already exists or not.
  13821. * src/DiskAdaptor.h
  13822. (fileExists): New function.
  13823. (getFilePath): New function.
  13824. * src/main.cc
  13825. (showUsage): Added an explanation of --force-truncate command-line
  13826. option.
  13827. (main): Added --force-truncate command-line option.
  13828. * src/Exception.h
  13829. (setMsg): buf[256] -> buf[1024]
  13830. * src/CopyDiskWriter.h
  13831. (getFilePath): Made public virtual.
  13832. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13833. (fileExists): New function.
  13834. * src/DownloadEngineFactory.cc
  13835. (newTorrentConsoleEngine): Don't open file here.
  13836. * src/message.h
  13837. (EX_FILE_ALREADY_EXISTS): New definition.
  13838. * src/prefs.h
  13839. (PREF_FOECE_TRUNCATE): New definition.
  13840. * src/HttpResponseCommand.cc
  13841. (handleDefaultEncoding): Added a check whether the file already exists.
  13842. * src/SegmentMan.h
  13843. (fileExists): New function.
  13844. (shouldCancelDownloadForSafety): New function.
  13845. * src/FtpNegotiateCommand.cc
  13846. (recvSize): Added a check whether the file already exists.
  13847. * src/AbstractSingleDiskAdaptor.cc
  13848. (File.h): New include.
  13849. (fileExists): New function.
  13850. * src/AbstractSingleDiskAdaptor.h
  13851. (getFilePath): Removed.
  13852. (fileExists): New function.
  13853. * src/SegmentMan.cc
  13854. (fileExists): New function.
  13855. (shouldCancelDownloadForSafety): New function.
  13856. To fix regression bug in torrent downloading:
  13857. * src/DefaultBtRequestFactory.cc
  13858. (doChokedAction): New function.
  13859. * src/DefaultBtRequestFactory.h
  13860. (doChokedAction): New function.
  13861. * src/DefaultBtMessageDispatcher.cc
  13862. (doChokedAction): Do not delete request if its target is in allowed
  13863. fast set.
  13864. * src/DefaultBtInteractive.cc
  13865. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13866. (sendKeepAlive): Send keep alive message even if the outgoing message
  13867. queue is not empty.
  13868. (decideInterest): Simplified the code.
  13869. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13870. it is already called when BtChokeMessage is received from a peer.
  13871. * src/BtRequestFactory.h
  13872. (doChokedAction): New function.
  13873. To clean up code:
  13874. * src/PeerInteractionCommand.h
  13875. (executeInternal): Added virtual keyword explicitly.
  13876. (prepareForRetry): Added virtual keyword explicitly.
  13877. (prepareForNextPeer): Added virtual keyword explicitly.
  13878. (onAbort): Added virtual keyword explicitly.
  13879. * src/RequestSlot.cc
  13880. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13881. * src/BtPieceMessage.cc
  13882. (doReceivedAction): Added a debug log of piece's bitfield.
  13883. * src/Piece.h
  13884. (getBitfieldLength): New function.
  13885. * src/ByteArrayDiskWriter.cc
  13886. (clear): Added buf = 0 to avoid double free corruption.
  13887. * src/FileAllocator.cc
  13888. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13889. Added cp.reset().
  13890. * src/BitfieldMan.h
  13891. (operator=): Rewritten.
  13892. * src/BitfieldMan.cc
  13893. (BitfieldMan): Initialized bitfield, useBitfield.
  13894. * src/PeerConnection.cc
  13895. (receiveMessage): Added a call to socket->readable() after getting
  13896. message length to avoid possible EOF.
  13897. * src/Util.cc
  13898. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13899. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13900. To add an ability to pre-allocate file space:
  13901. * src/DirectDiskAdaptor.h: Rewritten.
  13902. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13903. * src/MultiDiskAdaptor.h: Rewritten.
  13904. * src/DefaultPieceStorage.cc
  13905. (MultiDiskWriter.h): Removed include.
  13906. (PreAllocationDiskWriter.h): Removed include.
  13907. (FileAllocationMonitor.h): New include.
  13908. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13909. (initStorage): Rewritten.
  13910. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13911. * src/FileAllocator.h: New class.
  13912. * src/FileAllocator.cc: New class.
  13913. * src/FileAllocationMonitor.h: New class.
  13914. * src/FileAllocationMonitor.cc: New class.
  13915. * src/ConsoleFileAllocationMonitor.h: New class.
  13916. * src/ConsoleFileAllocationMonitor.cc: New class.
  13917. * src/AbstractSingleDiskAdaptor.h: New class.
  13918. * src/AbstractSingleDiskAdaptor.cc: New class.
  13919. * src/DiskAdaptor.h
  13920. (Directory.h): Removed include.
  13921. (DiskWriter.h): Removed include.
  13922. (FileEntry.h): Removed include.
  13923. (diskWriter): Removed.
  13924. (DiskAdaptor): Removed diskWriter.
  13925. (openFile): Made pure virtual.
  13926. (closeFile): Made pure virtual.
  13927. (openExistingFile): Made pure virtual.
  13928. (initAndOpenFile): Made pure virtual.
  13929. (writeData): Made pure virtual.
  13930. (readData): Made pure virtual.
  13931. (sha1Sum): Made pure virtual.
  13932. (getStoreDir): Returns const reference of storeDir.
  13933. (DiskAdaptorHandle): New type definition.
  13934. * src/main.cc
  13935. (ConsoleFileAllocationMonitor.h): New include.
  13936. (showUsage): Added default value description of -s option.
  13937. Added the description of --file-allocation option.
  13938. (main): Set default value of --file-allocation option to 'none'.
  13939. Added --file-allocation command-line option.
  13940. Setup FileAllocationMonitorFactory.
  13941. * src/FtpInitiateConnectionCommand.cc
  13942. (executeInternal): Removed diskWriter related processing, which was
  13943. moved to FtpNegotiationCommand.cc.
  13944. * src/DirectDiskAdaptor.cc
  13945. (getFilePath): Made non-const.
  13946. * src/CopyDiskAdaptor.h
  13947. (DiskAdaptor.h): Removed include.
  13948. (DiskWriter.h): Removed include.
  13949. (AbstractSingleDiskAdaptor.h): New include.
  13950. (getFilePath): Made non-const. Added virtual keyword.
  13951. (CopyDiskAdaptor): Removed diskWriter.
  13952. (getTempFile): Returns const reference.
  13953. (CopyDiskAdaptorHandle): New type definition.
  13954. * src/ByteArrayDiskWriter.cc
  13955. (clear): Simplified.
  13956. (initAndOpenFile): Rewritten.
  13957. (openFile): Call initAndOpenFile()
  13958. * src/MultiDiskAdaptor.cc: Rewritten.
  13959. * src/DownloadEngineFactory.cc
  13960. (FileAllocator.h): New include.
  13961. (FileAllocationMonitor.h): New include.
  13962. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13963. create DefaultDiskWriter with file allocator.
  13964. * src/DiskWriter.h
  13965. (initAndOpenFile): Added totalLength argument.
  13966. (openFile): Added totalLength argument.
  13967. * src/prefs.h
  13968. (PREF_FILE_ALLOCATION): New definition.
  13969. (V_PREALLOC): New definition.
  13970. (V_NONE): New definition.
  13971. * src/HttpResponseCommand.cc
  13972. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13973. size.
  13974. * src/FtpNegotiateCommand.cc
  13975. (Util.h): New include.
  13976. (recvSize): Open file here.
  13977. * src/Util.h
  13978. (ullitos): New function.
  13979. * src/CopyDiskWriter.h
  13980. (getFilePath): Made non-const.
  13981. * src/DefaultDiskWriter.h
  13982. (Option.h): New include.
  13983. (totalLength): Removed.
  13984. (DefaultDiskWriter): Removed totalLength.
  13985. (initAndOpenFile): Added totalLength argument.
  13986. (DefaultDiskWriterHandle): New type definition.
  13987. (createNewDiskWriter): New function.
  13988. * src/Util.cc
  13989. (ullitos): New function.
  13990. * src/DefaultDiskWriter.cc
  13991. (message.h): New include.
  13992. (FileAllocator.h): New include.
  13993. (prefs.h): New include.
  13994. (Util.h): New include.
  13995. (DefaultDiskWriter): Removed totalLength.
  13996. (initAndOpenFile): Added file allocation.
  13997. (createNewDiskWriter): New function. Just for temporary solution.
  13998. It will be rewritten later.
  13999. * src/DiskAdaptor.cc
  14000. (DiskAdaptor): Removed diskWriter.
  14001. * src/AbstractDiskWriter.cc
  14002. (LogFactory.h): New include.
  14003. (AbstractDiskWriter): Added fileAllocator, logger.
  14004. (openFile): Added totalLength argument.
  14005. * src/AbstractDiskWriter.h
  14006. (FileAllocator.h): New include.
  14007. (Logger.h): New include.
  14008. (fileAllocator): New variable.
  14009. (logger): New variable.
  14010. (openFile): Added totalLength argument. Added virtual keyword
  14011. explicitly.
  14012. (openExistingFile): Added totalLength argument. Added virtual keyword
  14013. explicitly.
  14014. (closeFile): Added virtual keyword explicitly.
  14015. (sha1Sum): Added virtual keyword explicitly.
  14016. (writeData): Added virtual keyword explicitly.
  14017. (readData): Added virtual keyword explicitly.
  14018. (setFileAllocator): New function.
  14019. * src/DefaultPieceStorage.h
  14020. (FileAllocator.h): New include.
  14021. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14022. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14023. * src/FileProgressMonitor.h: New class.
  14024. To compile aria2 on PC-BSD:
  14025. * src/DefaultBtContext.cc
  14026. (libgen.h): New include.
  14027. To fix memory leak:
  14028. * src/Exception.h
  14029. (~Exception): Delete cause. Fixed memory leak.
  14030. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14031. Rewritten a portion of bittorrent implementation:
  14032. * src/BtMessageValidator.h: New class.
  14033. * src/BtBitfieldMessageValidator.h: New class.
  14034. * src/BtHandshakeMessageValidator.h: New class.
  14035. * src/BtRequestMessageValidator.h: New class.
  14036. * src/BtSuggestPieceMessageValidator.h: New class.
  14037. * src/BtAllowedFastMessageValidator.h: New class.
  14038. * src/BtRejectMessageValidator.h: New class.
  14039. * src/BtCancelMessageValidator.h: New class.
  14040. * src/BtPieceMessageValidator.h: New class.
  14041. * src/BtHaveMessageValidator.h: New class.
  14042. * src/BtEventListener.h: New class.
  14043. * src/AbstractBtEventListener.h: New class.
  14044. * src/BtEvent.h: New class.
  14045. * src/BtChokingEvent.h: New class.
  14046. * src/BtChokedEvent.h: New class.
  14047. * src/BtCancelSendingPieceEvent.h: New class.
  14048. * src/BtAbortOutstandingRequestEvent.h: New class.
  14049. * src/Randomizer.h: New class.
  14050. * src/SimpleRandomizer.h: New class.
  14051. * src/BtMessage.h: New class.
  14052. * src/AbstractBtMessage.h: New class.
  14053. * src/SimpleBtMessage.h: New class.
  14054. * src/BtHaveMessage.h: New class.
  14055. * src/BtInterestedMessage.h: New class.
  14056. * src/BtAllowedFastMessage.h: New class.
  14057. * src/BtUnchokeMessage.h: New class.
  14058. * src/BtCancelMessage.h: New class.
  14059. * src/BtNotInterestedMessage.h: New class.
  14060. * src/BtChokeMessage.h: New class.
  14061. * src/BtHaveNoneMessage.h: New class.
  14062. * src/BtHandshakeMessage.h: New class.
  14063. * src/BtSuggestPieceMessage.h: New class.
  14064. * src/BtHaveMessage.h: New class.
  14065. * src/BtPieceMessage.h: New class.
  14066. * src/BtHaveAllMessage.h: New class.
  14067. * src/BtKeepAliveMessage.h: New class.
  14068. * src/BtPortMessage.h: New class.
  14069. * src/BtRejectMessage.h: New class.
  14070. * src/BtBitfieldMessage.h: New class.
  14071. * src/BtRequestMessage.h: New class.
  14072. * src/DefaultBtRequestFactory.h: New class.
  14073. * src/DefaultBtMessageReceiver.h: New class.
  14074. * src/BtInteractive.h: New class.
  14075. * src/BtMessageDispatcher.h: New class.
  14076. * src/DefaultBtMessageDispatcher.h: New class.
  14077. * src/DefaultBtInteractive.h: New class.
  14078. * src/BitfieldManFactory.h: New class.
  14079. * src/HandleRegistry.h: New class.
  14080. * src/BtMessageFactory.h: New class.
  14081. * src/BtMessageReceiver.h: New class.
  14082. * src/DefaultBtMessageFactory.h: New class.
  14083. * src/PeerObject.h: New class.
  14084. * src/BtRequestFactory.h: New class.
  14085. * src/SuggestPieceMessage.h: Removed.
  14086. * src/PortMessage.h: Removed.
  14087. * src/SuggestPieceMessage.h: Removed.
  14088. * src/KeepAliveMessage.h: Removed.
  14089. * src/HandshakeMessage.h: Removed.
  14090. * src/PeerInteraction.h: Removed.
  14091. * src/UnchokeMessage.h: Removed.
  14092. * src/PieceMessage.h: Removed.
  14093. * src/RequestMessage.h: Removed.
  14094. * src/InterestedMessage.h: Removed.
  14095. * src/HaveMessage.h: Removed.
  14096. * src/CancelMessage.h: Removed.
  14097. * src/RejectMessage.h: Removed.
  14098. * src/AllowedFastMessage.h: Removed.
  14099. * src/HaveNoneMessage.h: Removed.
  14100. * src/SimplePeerMessage.h: Removed.
  14101. * src/HaveAllMessage.h: Removed.
  14102. * src/BitfieldMessage.h: Removed.
  14103. * src/PeerMessageFactory.h: Removed.
  14104. * src/NotInterestedMessage.h: Removed.
  14105. * src/ChokeMessage.h: Removed.
  14106. * src/PeerMessage.h: Removed.
  14107. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14108. To know root cause of exception:
  14109. * src/Exception.h
  14110. (cause): New variable.
  14111. (Exception): Added a parameter.
  14112. (getMsg): Return const reference to msg.
  14113. (getCause): New function.
  14114. * src/DlRetryEx.h
  14115. (DlRetryEx): Added a parameter 'cause'.
  14116. Added an overloaded constructor.
  14117. (DlAbortEx): Added a parameter 'cause'.
  14118. Added an overloaded constructor.
  14119. * src/SimpleLogger.cc
  14120. (writeLog): Log nested exception messages recursively.
  14121. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14122. * src/DefaultBtProgressInfoFile.cc
  14123. (load): Fixed memory leak when the infohash doesn't match.
  14124. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14125. * src/DefaultPeerStorage.cc
  14126. (calculateStat): Simplified the code by combining 2 loops into 1.
  14127. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14128. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14129. for BitTorrent download:
  14130. * src/PeerAbstractCommand.cc
  14131. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14132. * src/main.cc:
  14133. (timeoutSpecified): Removed.
  14134. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14135. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14136. * src/TorrentRequestInfo.cc
  14137. (timeoutSpecified): Removed.
  14138. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14139. timeout value.
  14140. * src/prefs.h
  14141. (PREF_BT_TIMEOUT): New definition.
  14142. Delete unused variables:
  14143. * src/TorrentRequestInfo.cc
  14144. (requestInfo): Removed.
  14145. Move setSignalHander to Util::setGlobalSignalHandler:
  14146. * src/TorrentRequestInfo.cc:
  14147. setSignalHander -> Util::setGlobalSignalHandler
  14148. * src/main.cc
  14149. (setSignalHander): Removed.
  14150. (main): setSignalHander -> Util::setGlobalSignalHandler
  14151. * src/Util.h
  14152. (setGlobalSignalHandler): New function.
  14153. * src/Util.cc
  14154. (setGlobalSignalHandler): New function.
  14155. * src/UrlRequestInfo.cc:
  14156. setSignalHander -> Util::setGlobalSignalHandler
  14157. Reset peer status in order to exit gracefully:
  14158. * src/PeerAbstractCommand.cc
  14159. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14160. To fix the bug that causes the number of bytes uploaded is not saved
  14161. to .aria2 file:
  14162. * src/DefaultPeerStorage.h
  14163. (removedPeerSessionDownloadLength): New variable.
  14164. (removedPeerSessionUploadLength): New variable.
  14165. * src/DefaultPeerStorage.cc
  14166. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14167. removedPeerSessionUploadLength(0).
  14168. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14169. through all peers, and then add removedPeerSessionDownloadLength(
  14170. removedPeerSessionUploadLength) to it.
  14171. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14172. (to) the peer to removedPeerSessionDownloadLength
  14173. (removedPeerSessionUploadLength).
  14174. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14175. To add Metalink location option:
  14176. * src/MetalinkRequestInfo.cc
  14177. (execute): Call MetalinkEntry::setLocationPreference()
  14178. * src/main.cc
  14179. (showUsage): Added the help message for --metalink-location option.
  14180. (main): Added --metalink-location option.
  14181. * src/prefs.h
  14182. (PREF_METALINK_LOCATION): New definition.
  14183. * src/MetalinkEntry.cc
  14184. (AddLocationPreference): New function object.
  14185. (setLocationPreference): New function.
  14186. * src/Xml2MetalinkProcessor.cc
  14187. (getResource): Set location attribute to MetalinkResource
  14188. To show URLs to download
  14189. * src/UrlRequestInfo.h
  14190. (printUrls): New function.
  14191. To add multiple <file> Metalink support:
  14192. * src/MetalinkEntry.h
  14193. (MetalinkResources): Removed.
  14194. (setLocationPreference): New function.
  14195. (MetalinkEntryHandle): New type definition.
  14196. (MetalinkEntries): New type definition.
  14197. * src/Xml2MetalinkProcessor.h
  14198. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14199. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14200. (parseFile): Metalinker* -> MetalinkerHandle
  14201. * src/UrlRequestInfo.h
  14202. (execute): RequestInfo* -> RequestInfos
  14203. * src/MetalinkRequestInfo.cc
  14204. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14205. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14206. (execute): RequestInfo* -> RequestInfos
  14207. Added multiple <file> support. Print filename when it is queued.
  14208. * src/MetalinkRequestInfo.h
  14209. (execute): RequestInfo* -> RequestInfos
  14210. (getDownloadEngine): Removed.
  14211. * src/RequestInfo.h
  14212. (RequestInfoHandle): New type definition.
  14213. (RequestInfos): New type definition.
  14214. (execute): RequestInfo* -> RequestInfos
  14215. (getDownloadEngine): Removed.
  14216. * src/MetalinkResource.h
  14217. (MetalinkResourceHandle): New type definition.
  14218. (MetalinkResources): New type definition.
  14219. * src/MetalinkEntry.cc
  14220. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14221. because the element is now of type MetalinkResourceHandle.
  14222. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14223. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14224. (dropUnsupportedResource): Removed the deletion of the elements of
  14225. resources because the element is now of type MetalinkResourceHandle.
  14226. * src/Xml2MetalinkProcessor.cc
  14227. (parseFile): Metalinker* -> MetalinkerHandle
  14228. MetalinkEntry* -> MetalinkEntryHandle
  14229. Removed try-catch block.
  14230. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14231. MetalinkResource* -> MetalinkResourceHandle
  14232. Removed try-catch block.
  14233. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14234. Free result by using xmlXPathFreeObject()
  14235. * src/Metalinker.cc
  14236. (~Metalinker): Removed the deletion of entries.
  14237. MetalinkEntry* -> MetalinkEntryHandle
  14238. (queryEntry): Add multiple <file> Metalink support.
  14239. * src/Metalinker.h
  14240. (MetalinkEntries): Removed.
  14241. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14242. * src/MetalinkProcessor.h
  14243. (parseFile): Metalinker* -> MetalinkerHandle
  14244. Bug fixes:
  14245. * src/PeerChokeCommand.cc
  14246. (execute): cat01->cat02
  14247. * src/DefaultPieceStorage.cc
  14248. (DefaultPieceStorage): Added diskAdaptor(0)
  14249. * src/TrackerWatcherComand.cc:
  14250. (execute): Use btAnnounce->noMoreAnnounce()
  14251. to determin whether the function returns true or not.
  14252. * src/TrackerUpdateCommand.cc:
  14253. (execute): Use btAnnounce->noMoreAnnounce()
  14254. to determin whether the function returns true or not.
  14255. * src/FtpConnection.cc
  14256. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14257. This is the fix of the busy loop bug.
  14258. * src/DownloadCommand.cc
  14259. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14260. cached PeerStat.
  14261. The value of "name" entry in torrent file is now set by
  14262. *DiskAdaptor::setTopDir(...) methods.
  14263. * src/MultiDiskAdaptor.h
  14264. (topDir): New variable.
  14265. (setTopDir): New function.
  14266. (getTopDir): New function.
  14267. * src/MultiDiskAdaptor.cc
  14268. (getFilePath): Concat storDir, "/" and topDir.
  14269. (mkdir): Use getFilePath() to get the directory path for output.
  14270. * src/DefaultPieceStorage.cc
  14271. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14272. CopyDiskAdaptor.
  14273. * src/CopyDiskAdaptor.h
  14274. (topDir): New variable.
  14275. (setTopDir): New function.
  14276. (getTopDir): New function.
  14277. * src/CopyDiskAdaptor.cc
  14278. (fixFilename): Updated.
  14279. Misc
  14280. * src/UrlRequestInfo.h
  14281. (e): Removed.
  14282. (UrlRequestInfo): Removed e.
  14283. (getDownloadEngine): Removed.
  14284. * src/UrlRequestInfo.cc
  14285. (handler): Rewritten.
  14286. (printUrls): New function.
  14287. (execute): Call printUrls().
  14288. * src/HandshakeMessage.cc
  14289. (check): peerinteraction->getBtContext() -> btContext
  14290. * src/PeerInteraction.h
  14291. (getBtContext): Removed.
  14292. * src/TorrentRequestInfo.h
  14293. (execute): RequestInfo* -> RequestInfos
  14294. (getDownloadEngine): Removed.
  14295. * src/TorrentRequestInfo.cc
  14296. (haltRequested): Removed.
  14297. (btHaltRequested): New variable.
  14298. (torrentHandler): haltRequested -> btHaltRequested
  14299. (execute): RequestInfo* -> RequestInfos
  14300. * src/TorrentConsoleDownloadEngine.cc
  14301. (afterEachIteration): haltRequested -> btHaltRequested.
  14302. * src/ConsoleDownloadEngine.h
  14303. (initStatistics): Added virtual.
  14304. (calculateStatistics): Added virtual.
  14305. (onEndOfRun): Added virtual.
  14306. (afterEachIteration): Added virtual.
  14307. * src/ConsoleDownloadEngine.cc
  14308. (haltRequested): New variable.
  14309. (afterEachIteration): New function.
  14310. * src/main.cc
  14311. (requestInfo): Removed.
  14312. * src/SegmentMan.cc
  14313. (findSlowerSegmentEntry): Refactored.
  14314. * Release 0.9.0
  14315. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14316. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14317. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14318. * src/TorrentMan.h: Removed.
  14319. * src/TorrentMan.cc: Removed.
  14320. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14321. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14322. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14323. * src/PeerAbstractCommand.cc: Use btRuntime.
  14324. * src/BtContextAwareCommand.h: New class.
  14325. * src/FileEntry.h: Added accessor methods for following variables.
  14326. (path): Made private.
  14327. (length): Made private.
  14328. (offset): Made private.
  14329. (extracted): Made private.
  14330. (requested): Made private.
  14331. (FileEntries): New definition.
  14332. (FileEntryHandle): New definition.
  14333. * src/FileEntry.cc: New file.
  14334. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14335. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14336. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14337. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14338. * src/PieceStorage.h: New file.
  14339. * src/PeerInteractionCommand.h: Use btContext.
  14340. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14341. btRuntime.
  14342. * src/DefaultBtProgressInfoFile.h: New file.
  14343. * src/DefaultBtProgressInfoFile.cc: New file.
  14344. * src/File.cc
  14345. (Util.h): New include.
  14346. (mkdirs): New function.
  14347. * src/MultiDiskAdaptor.h
  14348. (mkdir): New function.
  14349. * src/PeerListProcessor.h
  14350. (Peers): Removed.
  14351. * src/PeerInteraction.h
  14352. (torrentMan): Removed.
  14353. (btContext): New variable.
  14354. (peerStorage): New variable.
  14355. (pieceStorage): New variable.
  14356. (btAnnounce): New variable.
  14357. (getTorrentMan): Removed.
  14358. (getBtContext): New function.
  14359. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14360. btAnnounce.
  14361. * src/HandshakeMessage.h
  14362. (TorrentMan.h): Removed.
  14363. * src/HandshakeMessage.cc: Use btContext.
  14364. * src/DefaultBtAnnounce.cc: New file.
  14365. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14366. * src/DefaultPieceStorage.cc: New file.
  14367. * src/DefaultBtContext.h: New file.
  14368. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14369. Use the accessor methods of FileEntry.
  14370. * src/CookieBox.cc: Updated to use Util::slice().
  14371. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14372. * src/common.h (SharedHandle.h): New include.
  14373. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14374. pieceStorage.
  14375. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14376. * src/DiskAdaptor.h
  14377. (topDir): Removed.
  14378. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14379. (setTopDir): Removed.
  14380. (getTopDir): Removed.
  14381. * src/BtContext.h: New file.
  14382. * src/DefaultPeerStorage.h: New file.
  14383. * src/PieceMessage.h (TorrentMan.h): Removed.
  14384. * src/RequestMessage.h (TorrentMan.h): Removed.
  14385. * src/TorrentDownloadEngine.h
  14386. (uploadLength): New variable.
  14387. (btContext): New variable.
  14388. (btRuntime): New variable.
  14389. (pieceStorage): New variable.
  14390. (peerStorage): New variable.
  14391. (btAnnounce): New variable.
  14392. (btProgressInfoFile): New variable.
  14393. (torrentMan): Removed.
  14394. (setBtContext): New function.
  14395. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14396. peerStorage, btAnnounce, btProgressInfoFile.
  14397. * src/Piece.h
  14398. (toString): New function.
  14399. (Pieces): New type definition.
  14400. * src/Peer.h
  14401. (active): New variable.
  14402. (Peer): Added active.
  14403. (activate): Set active to true.
  14404. (deactivate): Set active to false.
  14405. (isActive): New function.
  14406. (Peers): New type definition.
  14407. * src/DirectDiskAdaptor.cc
  14408. (getFilePath): Use the accessor methods of FileEntry.
  14409. * src/TorrentConsoleDownloadEngine.h
  14410. (afterEachIteration): New function.
  14411. * src/TorrentConsoleDownloadEngine.cc
  14412. (haltRequested): New variable.
  14413. (sendStatistics): Use pieceStorage, btRuntime.
  14414. (afterEachIteration): New function.
  14415. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14416. * src/Directry.h
  14417. (Directory): New function.
  14418. (DirectoryHandle): New type definition.
  14419. * src/BtProgressInfoFile.h: New file.
  14420. * src/RequestMessage.cc: Use pieceStorage.
  14421. * src/BtRuntime.h: New file.
  14422. * src/DefaultBtContext.cc: New file.
  14423. * src/BitfieldMan.h
  14424. (getCompletedLength): New function(private).
  14425. (getCompletedLength): New function.
  14426. (getFilteredCompletedLength): New function.
  14427. * src/BitfieldMan.h
  14428. (getCompletedLength): New function(private).
  14429. (getCompletedLength): New function.
  14430. (getFilteredCompletedLength): New function.
  14431. * src/MultiDiskAdaptor.cc
  14432. (mkdir): New function.
  14433. (openFile): Call mkdir().
  14434. (initAndOpenFile): Call mkdir().
  14435. * src/CancelMessage.h
  14436. (TorrentMan.h): Removed.
  14437. * src/RejectMessage.h
  14438. (TorrentMan.h): Removed.
  14439. * src/DownloadEngineFactory.cc
  14440. (DefaultPieceStorage.h): New include.
  14441. (DefaultPeerStorage.h): New include.
  14442. (DefaultBtAnnounce.h): New include.
  14443. (DefaultBtProgressInfoFile.h): New include.
  14444. (newTorrentConsoleEngine): Rewritten.
  14445. * src/ShareRatioSeedCriteria.h
  14446. (torrentMan): Removed.
  14447. (btContext): New variable.
  14448. (peerStorage): New variable.
  14449. (btRuntime): New variable.
  14450. (evaluate): Use btContext, btRuntime, peerStorage.
  14451. * src/AnnounceTier.h: New file.
  14452. * src/BtAnnounce.h: New file.
  14453. * src/BtRegistry.h: New file.
  14454. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14455. * src/PeerConnection.h (TorrentMan.h): Removed.
  14456. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14457. * src/Util.h
  14458. (slice): Added an argument.
  14459. * src/Util.cc
  14460. (slice): Added an argument to control whether trim is made or not.
  14461. * src/PeerStorage.h: New file.
  14462. * src/BtRegistry.cc: New file.
  14463. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14464. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14465. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14466. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14467. * src/TorrentRequestInfo.h
  14468. (e): Removed.
  14469. (showFileEntry): Added an argument.
  14470. (getDownloadEngine): Return 0.
  14471. * src/DefaultBtAnnounce.h: New file.
  14472. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14473. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14474. * src/PeerMessageFactory.h
  14475. (btContext): New variable.
  14476. (pieceStorage): New variable.
  14477. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14478. btAnnounce.
  14479. * src/DiskAdaptor.cc
  14480. (DiskAdaptor): Removed topDir.
  14481. (~DiskAdaptor): Removed topDir.
  14482. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14483. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14484. * src/File.h (mkdirs): New function.
  14485. * src/DefaultPeerStorage): New file.
  14486. * src/DownloadEngineFactory.h
  14487. (newTorrentConsoleEngine): Use btContext.
  14488. * src/BtContextAwareCommand.cc: New file.
  14489. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14490. * src/PeerMessage.h
  14491. (btContext): New variable.
  14492. (peerStorage): New variable.
  14493. (pieceStorage): New variable.
  14494. (setBtContext): New function.
  14495. * src/Directry.cc
  14496. (Directory): New function.
  14497. (createDir): Do nothing if name.size() == 0.
  14498. * src/AnnounceList.h
  14499. (AnnounceTier): Removed.
  14500. (AnnounceTiers): Removed.
  14501. * src/DefaultPieceStorage.h: New file.
  14502. * src/Piece.cc (toString): New function.
  14503. To fix typo:
  14504. * src/main.cc (showVersion): Fixed typo.
  14505. To fix compile warning:
  14506. * src/DelegatingPeerListProcessor.cc
  14507. (canHandle): Added "return false".
  14508. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14509. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14510. make the process of announce request testable.
  14511. * src/TrackerWatcherCommand.h
  14512. (TimeA2.h): Removed.
  14513. (interval): Removed.
  14514. (checkPoint): Removed.
  14515. (createRequestCommand): Added an argument 'url'.
  14516. (TrackerWatherCommand): Removed interval.
  14517. (createCommand): New function.
  14518. * src/DownloadEngineFactory.cc
  14519. (newTorrentConsoleEngine): Updated according to the changes in
  14520. TrackerWatherCommand.
  14521. * src/TorrentMan.cc
  14522. (DelegatingPeerListProcessor.h): New includes.
  14523. (TorrentMan): Added the initialization of announceInterval.
  14524. (isStoppedAnnounceReady): New function.
  14525. (isCompletedAnnounceReady): New function.
  14526. (isDefaultAnnounceReady): New function.
  14527. (isAnnounceReady): New function.
  14528. (getAnnounceUrl): New function.
  14529. (announceStart): New function.
  14530. (announceFailure): New function.
  14531. (announceSuccess): New function.
  14532. (isAllAnnounceFailed): New function.
  14533. (resetAnnounce): New function.
  14534. (processAnnounceResponse): New function.
  14535. (needMorePeerConnection): New function.
  14536. (noMoreAnnounce): New function.
  14537. * src/TrackerUpdateCommand.h
  14538. (getTrackerResponse): int->size_t
  14539. * src/TorrentMan.h
  14540. (isStoppedAnnounceReady): New function.
  14541. (isCompletedAnnounceReady): New function.
  14542. (isDefaultAnnounceReady): New function.
  14543. (announceInterval): New variable.
  14544. (isAnnounceReady): New function.
  14545. (getAnnounceUrl): New function.
  14546. (announceStart): New function.
  14547. (announceFailure): New function.
  14548. (announceSuccess): New function.
  14549. (isAllAnnounceFailed): New function.
  14550. (resetAnnounce): New function.
  14551. (processAnnounceResponse): New function.
  14552. (needMorePeerConnection): New function.
  14553. (noMoreAnnounce): New function.
  14554. * src/TrackerWatcherCommand.cc
  14555. (TrackerWatherCommand): Removed interval and checkPoint.
  14556. (execute): Rewritten.
  14557. (createCommand): New function.
  14558. (createRequestCommand): Rewritten.
  14559. * src/TrackerUpdateCommand.cc
  14560. (MetaFileUtil.h): Removed.
  14561. (DelegatingPeerListProcessor.h): Removed.
  14562. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14563. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14564. Request -> RequestHandle:
  14565. * src/HttpResponseCommand.h: Request->RequestHandle
  14566. * src/AbstractCommand.cc: Request->RequestHandle
  14567. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14568. * src/HttpRequestCommand.cc: Request->RequestHandle
  14569. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14570. * src/AbstractCommand.h: Request->RequestHandle
  14571. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14572. * src/HttpResponseCommand.cc: Request->RequestHandle
  14573. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14574. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14575. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14576. * src/HttpConnection.h: Request->RequestHandle
  14577. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14578. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14579. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14580. * src/DownloadCommand.h: Request->RequestHandle
  14581. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14582. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14583. * src/HttpRequestCommand.h: Request->RequestHandle
  14584. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14585. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14586. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14587. * src/HttpDownloadCommand.h: Request->RequestHandle
  14588. * src/FtpConnection.cc: Request->RequestHandle
  14589. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14590. * src/UrlRequestInfo.cc: Request->RequestHandle
  14591. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14592. * src/HttpConnection.h: Request->RequestHandle
  14593. * src/DownloadCommand.cc: Request->RequestHandle
  14594. * src/FtpConnection.h: Request->RequestHandle
  14595. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14596. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14597. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14598. * src/Request.h
  14599. (SharedHandle.h): New include.
  14600. (RequestHandle): New type definition.
  14601. (Requests): Redefined.
  14602. To add MULTITRACKER support:
  14603. * src/TrackerWatcherCommand.h
  14604. (createRequestCommand): New function.
  14605. * src/DownloadEngineFactory.cc
  14606. (newTorrentConsoleEngine): Removed req.
  14607. * src/prefs.h
  14608. (PREF_TRACKER_MAX_TRIES): New definition.
  14609. * src/TorrentMan.cc
  14610. (TorrentMan): Removed req. Added trackerNumTry.
  14611. (~TorrentMan): Removed req.
  14612. (setupInternal1): Added announceList.
  14613. * src/TorrentRequestInfo.cc
  14614. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14615. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14616. * src/main.cc
  14617. (main): Added PREF_TRACKER_MAX_TRIES.
  14618. * src/TorrentMan.h
  14619. (Request.h): Removed.
  14620. (AnnounceList.h): New include.
  14621. (trackerNumTry): New variable.
  14622. (req): Removed.
  14623. (announceList): New variable.
  14624. * src/TrackerWatcherCommand.cc
  14625. (execute): Rewritten.
  14626. (createRequestCommand): New function.
  14627. * src/TrackerUpdateCommand.cc
  14628. (execute): Updated with the use of AnnounceList.
  14629. * src/AnnounceList.cc: New class.
  14630. * src/AnnounceList.h: New class.
  14631. To fix typo:
  14632. * src/prefs.h
  14633. (PREF_MAX_TRIES): max_try->max_tries
  14634. To not to decode "+" as space in URL decode:
  14635. * src/Util.cc
  14636. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14637. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14638. To add timeout to async name resolution:
  14639. * src/AbstractCommand.h
  14640. (nameResolveFinished): New function. This is not elegant way. It needs
  14641. to be more refined.
  14642. (nameResolverCheck): New variable.
  14643. * src/AbstractCommand.cc
  14644. (AbstractCommand): Added nameResolverCheck.
  14645. (execute): Added the check whether the name resolution has finished.
  14646. (setNameResolverCheck): Set nameResolverCheck to true.
  14647. (disableNameResolverCheck): Set nameResolverCheck to false.
  14648. (nameResolverFinished): New function.
  14649. * src/FtpInitiateConnectionCommand.h
  14650. (nameResolverFinished): New function.
  14651. * src/FtpInitiateConnectionCommand.cc
  14652. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14653. * src/HttpInitiateConnectionCommand.h
  14654. (nameResolverFinished): New function.
  14655. * src/HttpInitiateConnectionCommand.cc
  14656. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14657. * src/prefs.h
  14658. (PREF_DNS_TIMEOUT): New definition.
  14659. * src/main.cc
  14660. (main): Added PREF_DNS_TIMEOUT.
  14661. To add the support for a non-compact response from a tracker:
  14662. * src/PeerListProcessor.h: New class.
  14663. * src/DefaultPeerListProcessor.h: New class.
  14664. * src/DefaultPeerListProcessor.cc: New class.
  14665. * src/CompactPeerListProcessor.h: New class.
  14666. * src/CompactPeerListProcessor.cc: New class.
  14667. * src/DelegatingPeerListProcessor.h: New class.
  14668. * src/DelegatingPeerListProcessor.cc: New class.
  14669. * src/TorrentMan.cc
  14670. (addPeer): New function(overload).
  14671. (addPeer): Delete unused peers only when new peer is added.
  14672. * src/TorrentMan.h
  14673. (PeerListProcessor.h): Included.
  14674. (Peers): Removed.
  14675. (addPeer): New function(overload).
  14676. * src/TrackerUpdateCommand.cc
  14677. (netinet/in.h): Removed.
  14678. (DelegatingPeerListProcessor.h): Included.
  14679. (execute): Updated to use DelegatingPeerListProcessor.
  14680. To fix the memory leak in TorrentMan::peers:
  14681. * src/PeerAbstractCommand.cc
  14682. (onAbort): Added peer->resetStatus().
  14683. * src/Peer.h
  14684. (resetStatus): Made public.
  14685. To improve the precision of the speed calculation:
  14686. * src/SpeedCalc.h
  14687. (nextInterval): New variable.
  14688. * src/SpeedCalc.cc
  14689. (reset): Added nextInterval.
  14690. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14691. (changeSw): Set nextInterval to 15 seconds relative to the current
  14692. instant time.
  14693. * src/main.cc
  14694. (showVersion): Updated.
  14695. (showUsage): Updated.
  14696. * Release 0.8.1
  14697. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14698. * src/main.cc
  14699. (showUsage): Commented out --min-segment-size option.
  14700. (main): Commented out --min-segment-size option.
  14701. * Release 0.8.0
  14702. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14703. * src/*.{h,cc}:
  14704. Added an exception to the license which allows linking with OpenSSL.
  14705. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14706. * src/AbstractCommand.cc
  14707. (execute): Check whether the download has finished before checking
  14708. socket status.
  14709. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14710. Do not exit even if no segment is available.
  14711. * src/prefs.h
  14712. (PREF_STARTUP_IDLE_TIME): New definition.
  14713. * src/PeerInteractionCommand.cc
  14714. (executeInternal): Removed max speed limit. Because it performs bad.
  14715. (receiveMessages): Added max speed limit. This was better than above,
  14716. but still a little bit to be desired. Sometimes the download speed
  14717. became much faster than I specified.
  14718. * src/SpeedCalc.h
  14719. (start): New variable.
  14720. (accumulatedLength): New variable.
  14721. (getAvgSpeed): New function.
  14722. * src/SpeedCalc.cc
  14723. (reset): Added start, accumulatedLength.
  14724. (update): Added calculation of an average speed.
  14725. (getAvgSpeed): New function.
  14726. * src/DownloadCommand.h
  14727. (sw): Removed.
  14728. * src/main.cc
  14729. (main): Added PREF_STARTUP_IDLE_TIME.
  14730. * src/PeerStat.h
  14731. (STATUS): Added REQUEST_IDLE.
  14732. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14733. (getAvgDownloadSpeed): New function
  14734. (requestIdle): New function.
  14735. * src/SegmentMan.h
  14736. (SegmentEntryHandle): New type definition.
  14737. (SegmentEntries): Now holds SegmentEntryHandle.
  14738. (findSlowerSegmentEntry): New funtion.
  14739. * src/SegmentMan.cc
  14740. (save): Updated according to the changes in SegmentEntries.
  14741. (read): Updated according to the changes in SegmentEntries.
  14742. (FindSegmentEntryByIndex): Updated according to the changes in
  14743. SegmentEntries.
  14744. (FindSegmentEntryByCuid): Updated according to the changes in
  14745. SegmentEntries.
  14746. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14747. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14748. Renamed uitr as itr.
  14749. (findSlowerSegmentEntry): New function.
  14750. (getSegment): Updated according to the changes in SegmentEntries.
  14751. Added the feature that cancels the segment with slow server and fast
  14752. one takes it over.
  14753. (cancelSegment): Updated according to the changes in SegmentEntries.
  14754. (getDownloadLength): Updated according to the changes in
  14755. SegmentEntries.
  14756. (init): Assigned 0 to bitfield after deleting it.
  14757. * src/DownloadCommand.cc
  14758. (STARTUP_IDLE_TIME): Removed.
  14759. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14760. * src/PeerChokeCommand.cc
  14761. (optUnchokingPeer): Updated according to the changes in Peer.
  14762. (ResetDelta): Removed.
  14763. (UploadFaster): Updated according to the changes in Peer.
  14764. (DownloadFaster): Updated according to the changes in Peer.
  14765. (execute): I clarify the meaning of "upload" and "download" here.
  14766. "upload" means the transfer from localhost to remote host.
  14767. "download" means the transfer from remote host to localhost.
  14768. Based on this rule, I swapped orderByUploadRate and
  14769. orderByDownloadRate.
  14770. * src/PeerInteractionCommand.cc
  14771. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14772. (executeInternal): Removed the argument of
  14773. peerInteraction->sendMessages().
  14774. (receiveMessages): Rewritten download speed limit.
  14775. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14776. * src/HttpResponseCommand.cc
  14777. (handleDefaultEncoding): If file size is unknown in torrent request,
  14778. do not call segmentMan->initBitfield() here.
  14779. Disabled persistent connection feature in torrent request.
  14780. * src/UrlRequestInfo.h
  14781. (UrlRequestInfo): Removed const qualifier from option.
  14782. * src/TorrentMan.h
  14783. (TransferStat): New class.
  14784. (deltaDownloadLength): Removed.
  14785. (deltaUploadLength): Removed.
  14786. (addDeltaDownloadLength): Removed.
  14787. (getDeltaDownloadLength): Removed.
  14788. (resetDeltaDownloadLength): Removed.
  14789. (addDeltaUploadLength): Removed.
  14790. (getDeltaUploadLength): Removed.
  14791. (resetDeltaUploadLength): Removed.
  14792. (addActivePeer): Added peer->activate().
  14793. (deleteActivePeer): Added peer->deactivate().
  14794. (calculateStat): New function.
  14795. * src/TorrentMan.cc
  14796. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14797. (calculateStat): New function.
  14798. * src/PeerInteraction.h
  14799. (uploadLimit): Removed.
  14800. (option): New variable.
  14801. (setUploadLimit): Removed.
  14802. (getUploadSpeed): Removed.
  14803. (sendMessages): Removed the argument "currentUploadSpeed".
  14804. * src/PeerInteraction.cc
  14805. (prefs.h): Included.
  14806. (PeerInteraction): Removed uploadLimit. Added option.
  14807. (sendMessages): Rewritten upload speed limit.
  14808. (sendHandshake): Removed the argument from sendMessages().
  14809. (sendBitfield): Removed the argument from sendMessages().
  14810. * src/PeerAbstractCommand.cc
  14811. (execute): Commented out the portion of upload limit.
  14812. (onAbort): Removed peer->resetStatus().
  14813. * src/TorrentRequestInfo.cc
  14814. (timeoutSpecified): Declared extern.
  14815. (execute): Set timeout to 180 if timeout is not specified by.
  14816. command-line.
  14817. * src/PieceMessage.cc
  14818. (receivedAction): Added peer->updateDownloadLength().
  14819. Removed peer->addPeerUpload().
  14820. Removed torrentMan->addDeltaDownloadLength().
  14821. (send): Added peer->updateUploadLength().
  14822. Removed peer->addPeerDownload().
  14823. Removed torrentMan->addDeltaUploadLength().
  14824. * src/main.cc
  14825. (timeoutSpecified): New variable.
  14826. (main): Set timeoutSpecified to false.
  14827. If the command-line option "--upload-limit" is specified, then
  14828. timeoutSpecified is set to true. This option will remain in the next
  14829. release, but be deprecated in the future release.
  14830. * src/TorrentRequestInfo.h
  14831. (TorrentRequestInfo): Removed const qualifier from op.
  14832. * src/PeerStat.h
  14833. (uploadSpeed): New variable.
  14834. (PeerStat): Added default value to cuid.
  14835. (calculateUploadSpeed): New function.
  14836. (updateUploadLength): New function.
  14837. (getMaxUploadSpeed): New function.
  14838. (getAvgUploadSpeed): New function.
  14839. (reset): Added uploadSpeed. Set status to IDLE.
  14840. * src/TorrentDownloadEngine.h
  14841. (cp): Declared as Time.
  14842. (sessionDownloadLengthArray): Removed.
  14843. (sessionUploadLengthArray): Removed.
  14844. (currentCp): Removed.
  14845. (lastCalcStat): New variable
  14846. (lastElapsed): Removed.
  14847. (sessionDownloadLength): Removed.
  14848. (calculateStat): New function.
  14849. * src/TorrentDownloadEngine.cc
  14850. (initStatistics): Removed lastElapsed, cp[],
  14851. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14852. currentCp, sessionDownloadLength.
  14853. Added cp.reset() and lastCalcStat.reset().
  14854. (calculateSpeed): Changed the name of the argument.
  14855. (calculateStatistics): Rewritten.
  14856. (calculateStat): New function.
  14857. * src/Peer.h
  14858. (PeerStat.h): Included.
  14859. (peerUpload): Removed.
  14860. (peerDownload): Removed.
  14861. (peerStat): New variable.
  14862. (sessionUploadLength): New variable.
  14863. (sessionDownloadLength): New variable.
  14864. (deltaUpload): Removed.
  14865. (deltaDownload): Removed.
  14866. (resetStatus): Made private.
  14867. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14868. Removed peerUpload, peerDownload.
  14869. (updateUploadLength): New function.
  14870. (addDeltaUpload): Removed.
  14871. (updateDownloadLength): New function.
  14872. (resetDeltaUpload): Removed.
  14873. (getDeltaUpload): Removed.
  14874. (addDeltaDownload): Removed.
  14875. (calculateUploadSpeed): New function.
  14876. (resetDeltaDownload): Removed.
  14877. (getDeltaDownload): Removed.
  14878. (calculateDownloadSpeed): New function.
  14879. (getSessionUploadLength): New function.
  14880. (getSessionDownloadLength): New function.
  14881. (activate): New function.
  14882. (deactivate): New function.
  14883. (addPeerUpload): Removed.
  14884. (setPeerUpload): Removed.
  14885. (getPeerUpload): Removed.
  14886. (addPeerDownload): Removed.
  14887. (setPeerDownload): Removed.
  14888. (getPeerDownload): Removed.
  14889. * src/Peer.cc
  14890. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14891. * src/MetalinkRequestInfo.h
  14892. (MetalinkRequestInfo): Removed const qualifier from op.
  14893. * src/RequestInfo.h
  14894. (op): Removed const qualifier.
  14895. (RequestInfo): Removed const qualifier from op.
  14896. * src/prefs.h
  14897. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14898. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14899. * src/PeerInteractionCommand.cc
  14900. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14901. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14902. * src/PeerInteraction.cc
  14903. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14904. * src/main.cc
  14905. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14906. Added the description of "--max-download-limit" option.
  14907. Removed the description of "--upload-limit" option.
  14908. Added the description of "--max-upload-limit" option.
  14909. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14910. Added "--max-download-limit" option and "--max-upload-limit" option.
  14911. Added the warning message if "--upload-limit" option is used.
  14912. * src/DownloadCommand.cc
  14913. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14914. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14915. To rewrite segment download mechanism for HTTP/FTP download.
  14916. Use BitfieldMan to manage segment download.
  14917. * src/HttpResponseCommand.h
  14918. (executeInternal): Pass the reference of segment.
  14919. * src/AbstractCommand.cc
  14920. (prepareForRetry): Call segmentMan->cancelSegment here.
  14921. (onAbort): Call segmentMan->cancelSegment here.
  14922. * src/HttpDownloadCommand.cc
  14923. (prepareForNextSegment): New function.
  14924. * src/DownloadEngineFactory.cc
  14925. (newConsoleEngine): Removed splitter.
  14926. (newTorrentConsoleEngine): Removed splitter.
  14927. * src/Request.h
  14928. (segment): Renamed from seg.
  14929. * src/FtpInitiateConnectionCommand.h
  14930. (executeInternal): Pass the reference of segment.
  14931. * src/AbstractCommand.h
  14932. (executeInternal): Pass the reference of segment.
  14933. * src/pref.h
  14934. (PREF_SEGMENT_SIZE): New definition.
  14935. * src/HttpProxyRequestCommand.h
  14936. (executeInternal): Pass the reference of segment.
  14937. * src/HttpResponseCommand.cc
  14938. (checkResponse): Allowed status 206 when a request range starts 0.
  14939. (handleDefaultEncoding): Rewritten the code related to Segment.
  14940. (handleOtherEncoding): Rewritten the code related to Segment.
  14941. * src/SegmentMan.h
  14942. (SegmentEntry): New class.
  14943. (SegmentEntries): New type definition.
  14944. (bitfield): New variable.
  14945. (usedSegmentEntries): New variable.
  14946. (onNullBitfield): New function.
  14947. (checkoutSegment): New function.
  14948. (segments): Removed.
  14949. (splitter): Removed.
  14950. (unregisterId): Removed.
  14951. (getSegment): New function(overload)
  14952. (getDownloadedSize): Removed.
  14953. (cancelSegment): New function.
  14954. (completeSegment): New function.
  14955. (initBitfield): New function.
  14956. (hasSegment): New function.
  14957. (getDownloadLength): New function.
  14958. * src/BitfieldMan.h
  14959. (getStartIndex): New function.
  14960. (getEndIndex): New function.
  14961. (getMissingUnusedIndex): New function(overload).
  14962. (getSparseMissingUnusedIndex): New function.
  14963. * src/BitfieldMan.cc
  14964. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14965. (getMissingUnusedIndex): New function(overload).
  14966. (Range): New class.
  14967. (getStartIndex): New function.
  14968. (getEndIndex): New function.
  14969. (getSparseMissingUnusedIndex): New function.
  14970. (isBitSetInternal): Return false if the given index is less than 0.
  14971. * src/HttpInitiateConnectionCommand.h
  14972. (executeInternal): Pass the reference of segment.
  14973. * src/FtpNegotiateCommand.h
  14974. (executeInternal): Pass the reference of segment.
  14975. * src/FtpNegotiateCommand.cc
  14976. (recvSize): Initialize bitfield here.
  14977. * src/FtpTunnelResponseCommand.h
  14978. (executeInternal): Pass the reference of segment.
  14979. * src/HttpConnection.cc
  14980. (createRequest): Rewritten range header processing.
  14981. * src/DownloadCommand.h
  14982. (executeInternal): Pass the reference of segment.
  14983. (prepareForRetry): Removed.
  14984. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14985. function.
  14986. * src/main.cc
  14987. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14988. * src/SegmentMan.cc
  14989. (SegmentMan): Added bitfield. Removed splitter.
  14990. (~SegmentMan): Added bitfield. Removed splitter.
  14991. (unregisterId): Removed.
  14992. (getSegment): Rewritten.
  14993. (updateSegment): Rewritten.
  14994. (save): Rewritten.
  14995. (read): Rewritten.
  14996. (finished): Rewritten.
  14997. (getDownloadedSize): Removed.
  14998. (initBitfield): New function.
  14999. (FindSegmentEntryByIndex): New function object.
  15000. (FindSegmentEntryByCuid): New function object.
  15001. (checkoutSegment): New function.
  15002. (onNullBitfield): New function.
  15003. (getSegment): New function(overload).
  15004. (CancelSegment): New function object.
  15005. (cancelSegment): New function.
  15006. (completeSegment): New function.
  15007. (hasSegment): New function.
  15008. (getDownloadLength): New function.
  15009. * src/FtpInitiateConnectionCommand.cc
  15010. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15011. * src/Segment.h: Rewritten.
  15012. * src/Segment.cc (operator<<): New function.
  15013. * src/HttpDownloadCommand.h
  15014. (prepareForNextSegment): New function.
  15015. * src/Request.cc
  15016. (resetUrl): Made segment null.
  15017. * src/DownloadEngine.cc
  15018. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15019. * src/HttpProxyRequestCommand.h
  15020. (executeInternal): Pass the reference of segment.
  15021. * src/DownloadCommand.cc
  15022. (executeInternal): Rewritten the code related to Segment.
  15023. (prepareForRetry): Removed.
  15024. (prepareForNextSegment): Rewritten.
  15025. * src/FtpTunnelResponseCommand.h
  15026. (executeInternal): Pass the reference of segment.
  15027. To add HTTP 1.1 persistent connection support(experimental)
  15028. * src/HttpRequestCommand.cc
  15029. (executeInternal): Disable keep alive if it is disabled by
  15030. configuration.
  15031. * src/Request.h
  15032. (keepAlive): New variable.
  15033. (isKeepAlive): New function.
  15034. (setKeepAlive): New function.
  15035. * src/pref.h
  15036. (PREF_HTTP_KEEP_ALIVE): New definition.
  15037. * src/HttpResponseCommand.cc
  15038. (executeInternal): Check the remote server supports keep alive.
  15039. * src/HttpConnection.cc
  15040. (createRequest): Send "Connection: close" only if keep alive is
  15041. disabled.
  15042. * src/main.cc
  15043. (main):
  15044. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15045. To add max download speed limit:
  15046. * src/pref.h
  15047. (PREF_MAX_SPEED_LIMIT): New definition.
  15048. * src/PeerInteractionCommand.cc
  15049. (executeInternal): Added max download speed limit. Not tested yet.
  15050. * src/SegmentMan.h
  15051. (PeerStats): New type definition.
  15052. (peerStats): New variable.
  15053. (registerPeerStat): New function.
  15054. (FindPeerStat): New function object.
  15055. (getPeerStat): New function.
  15056. (calculateDownloadSpeed): New function.
  15057. * src/SpeedCalc.h: New class.
  15058. * src/SpeedCalc.cc: New class.
  15059. * src/main.cc
  15060. (main):
  15061. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15062. download speed is not restricted).
  15063. * src/PeerStat.h: New class.
  15064. * src/SegmentMan.cc
  15065. (registerPeerStat): New function.
  15066. (calculateDownloadSpeed): New function.
  15067. * src/DownloadCommand.cc
  15068. (STARTUP_IDLE_TIME): New definition.
  15069. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15070. downloadStart.
  15071. (~DownloadCommand): Call peerStat->downloadStop.
  15072. (executeInternal): Added download speed limitter. Rewritten lowest
  15073. speed limitter.
  15074. * src/HttpConnection.cc
  15075. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15076. * src/AbstractCommand.cc
  15077. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15078. Added hostname to the error message.
  15079. * src/ConsoleDownloadEngine.cc
  15080. (calculateStatistics): Initialize psize with dlSize.
  15081. * src/PieceMessage.cc
  15082. (receivedAction): Do not call peerInteraction->abortPiece here.
  15083. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15084. * src/BitfieldMan.h
  15085. (clearAllUseBit): New function.
  15086. (setAllUseBit): New function.
  15087. * src/BitfieldMan.cc
  15088. (clearAllBit): Do not clear useBitfield here.
  15089. (clearAllUseBit): New function.
  15090. (setAllUseBit): New function.
  15091. * src/Piece.cc
  15092. (clearAllBlock): Call bitfield->clearAllUseBit().
  15093. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15094. To make filename URL-decoded:
  15095. * src/HttpResponseCommand.h: Updated doc.
  15096. * src/HttpResponseCommand.cc
  15097. (determinFilename): Made filename URL-decoded.
  15098. * src/FtpInitiateConnectionCommand.cc
  15099. (executeInternal): Made filename URL-decoded.
  15100. * src/Util.h (urldecode): New function.
  15101. * src/Util.cc (urldecode): New function.
  15102. To fix a bug that caused assertion failure in ares_strerror:
  15103. * src/NameResolver.cc (callback): Fixed the bug.
  15104. * Release 0.7.3
  15105. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15106. To add --seed-time and --seed-ratio command-line option:
  15107. * src/Option.h (getAsDouble): New function.
  15108. * src/Option.cc (getAsDouble): New function.
  15109. * src/SeedCheckCommand.h: New class.
  15110. * src/SeedCheckCommand.cc: New class.
  15111. * src/DownloadEngineFactory.cc
  15112. (SeedCheckCommand.h): Included.
  15113. (UnionSeedCriteria.h): Included.
  15114. (TimeSeedCriteria.h): Included.
  15115. (ShareRatioSeedCriteria.h): Included.
  15116. (newTorrentConsoleEngine): Added the processing of seed option.
  15117. * src/SeedCriteria.h: New class.
  15118. * src/ShareRatioSeedCriteria.h: New class.
  15119. * src/TimeSeedCriteria.h: New class.
  15120. * src/UnionSeedCriteria.h: New class.
  15121. * src/prefs.h
  15122. (PREF_SEED_TIME): New definition.
  15123. (PREF_SEED_RATIO): New definition.
  15124. * src/main.cc
  15125. (showUsage): Added --seed-time and --seed-ratio option.
  15126. (main): Added --seed-time and --seed-ratio option.
  15127. Made default log file name "/dev/null".
  15128. * src/SharedHandle.h
  15129. (SharedHandle): Copy constructor. Made it assignable from the
  15130. SharedHandle of the subclasses.
  15131. (operator=): Made it assignable from the SharedHandle of the
  15132. subclasses.
  15133. (getRefCount): New function.
  15134. To add notice log level and the switch to write log to stdout. This
  15135. switch is configurable per log level.
  15136. * src/Logger.h
  15137. (notice): New function.
  15138. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15139. constant.
  15140. * src/LogFactory.cc
  15141. (getInstance): The use of NullLogger was removed. A log message with
  15142. notice log level was made written to stdout along with log file.
  15143. * src/NullLogger.h
  15144. (notice): New function.
  15145. * src/SimpleLogger.h
  15146. (writeHeader): Added the 'file' argument.
  15147. (writeLog): Added the 'file' argument.
  15148. (writeFile): New function.
  15149. (stdoutField): New variable.
  15150. (SimpleLogger): Removed the default constructor.
  15151. (SimpleLogger): Made the default value of logfile 0.
  15152. (debug): Added 'virtual' keyword.
  15153. (info): Added 'virtual' keyword.
  15154. (warn): Added 'virtual' keyword.
  15155. (error): Added 'virtual' keyword.
  15156. (notice): New function.
  15157. (setStdout): New function.
  15158. * src/SimpleLogger.cc
  15159. (WRITE_LOG): Replaced writeLog with writeFile.
  15160. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15161. (SimpleLogger): Removed the default constructor.
  15162. (setStdout): New function.
  15163. (writeLog): Added the handling of NOTICE log level.
  15164. (writeFile): New function.
  15165. (notice): New function.
  15166. * src/TorrentMan.h: Updated doc.
  15167. * src/BitfieldMan.h: Updated doc.
  15168. * src/TrackerWatcherCommand.cc
  15169. (execute): Return true if error occurred in the request to the tracker
  15170. and halt is requested.
  15171. * src/TrackerUpdateCommand.cc
  15172. (execute): Return true if error occurred in the request to the tracker
  15173. and halt is requested.
  15174. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15175. DownloadEngine:
  15176. * src/TorrentConsoleDownloadEngine.h
  15177. (onSelectiveDownloadingCompletes): Removed.
  15178. * src/TorrentConsoleDownloadEngine.cc
  15179. (onSelectiveDownloadingCompletes): Removed.
  15180. * src/TorrentDownloadEngine.h
  15181. (onEndOfRun): Added 'virtual' keyword.
  15182. (afterEachIteration): Removed.
  15183. (onSelectiveDownloadingCompletes): Removed.
  15184. * src/TorrentDownloadEngine.cc
  15185. (onEndOfRun): Removed filenameFixed.
  15186. (afterEachIteration): Removed.
  15187. * src/TorrentMan.cc
  15188. (completePiece): Call onDownloadComplete here.
  15189. (onDownloadComplete): Added 2 log messages.
  15190. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15191. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15192. * src/NameResolver.h: Added the prototype declaration of callback().
  15193. To support c-ares library:
  15194. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15195. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15196. * src/FtpInitiateConnectionCommand.h:
  15197. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15198. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15199. * src/HttpInitiateConnectionCommand.h:
  15200. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15201. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15202. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15203. #1542285 by tizianomueller)
  15204. * src/HttpInitiateConnectionCommand.cc:
  15205. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15206. * src/FtpInitiateConnectionCommand.cc:
  15207. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15208. * src/DownloadEngine.h:
  15209. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15210. * src/DownloadEngine.cc:
  15211. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15212. To fix the bug that causes compilation failure with metalink-support
  15213. disabled(bug#1543587):
  15214. * src/main.cc: Fixed with the patch by tizianomueller.
  15215. * Release 0.7.2
  15216. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15217. * src/main.cc
  15218. (main): Added a message to inform users that aria2 is starting to
  15219. verify checksum.
  15220. * src/RequestInfo.cc
  15221. (printDownloadAbortMessage): Added a message to inform users that
  15222. transfer can be resumed.
  15223. * src/FeatureConfig.cc
  15224. (FEATURE_ASYNC_DNS): New definition.
  15225. (FeatureConfig): Added aysnc DNS entry.
  15226. To replace CommandUuid with Command* in SocketEntry and
  15227. NameResolverEntry:
  15228. * src/DownloadEngine.h
  15229. (CommandUuids): Removed.
  15230. (SocketEntry::commandUuid): Removed.
  15231. (SocketEntry::command): New variable.
  15232. (SocketEntry::SocketEntry): Updated.
  15233. (SocketEntry::operator==): Updated.
  15234. (NameResolverEntry::commandUuid): Removed.
  15235. (NameResolverEntry::command): New variable.
  15236. (NameResolverEntry::NameResolverEntry): Updated.
  15237. (NameResolverEntry::operator==): Updated.
  15238. (waitData): Changed the argument type.
  15239. (addSocketForReadCheck): Changed the argument type.
  15240. (deleteSocketForReadCheck): Changed the argument type.
  15241. (addSocketForWriteCheck): Changed the argument type.
  15242. (deleteSocketForWriteCheck): Changed the argument type.
  15243. (addNameResolverCheck): Changed the argument type.
  15244. (deleteNameResolverCheck): Changed the argument type.
  15245. * src/DownloadEngine.cc
  15246. (FindCommand): Removed.
  15247. (run): Removed activeUuid. Added activeCommands instead.
  15248. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15249. (AccumulateActiveCommand): New function object.
  15250. (waitData): Use AccumulateActiveCommand.
  15251. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15252. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15253. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15254. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15255. (addNameResolverCheck): Use Command instead of CommandUuid.
  15256. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15257. * src/AbstractCommand.cc
  15258. (disableReadCheckSocket): Updated according to the changes in
  15259. DownloadEngine.
  15260. (setReadCheckSocket): Updated according to the changes in
  15261. DownloadEngine.
  15262. (disableWriteCheckSocket): Updated according to the changes in
  15263. DownloadEngine.
  15264. (setWriteCheckSocket): Updated according to the changes in
  15265. DownloadEngine.
  15266. (setNameResolverCheck): Updated according to the changes in
  15267. DownloadEngine.
  15268. (disableNameResolverCheck): Updated according to the changes in
  15269. DownloadEngine.
  15270. * src/AbstractCommand.cc
  15271. (disableReadCheckSocket): Updated according to the changes in
  15272. DownloadEngine.
  15273. (setReadCheckSocket): Updated according to the changes in
  15274. DownloadEngine.
  15275. (disableWriteCheckSocket): Updated according to the changes in
  15276. DownloadEngine.
  15277. (setWriteCheckSocket): Updated according to the changes in
  15278. DownloadEngine.
  15279. * release 0.7.1
  15280. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15281. To handle the case where some BitTorrent tracker requires all letters
  15282. except for [A-Za-z0-9] is URL encoded.
  15283. * src/Util.h
  15284. (torrentUrlencode): New function.
  15285. * src/Util.cc
  15286. (ctype.h): Included.
  15287. (torrentUrlencode): New function.
  15288. * src/TrackerWatcherCommand.cc
  15289. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15290. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15291. To add asynchronous DNS support(libares):
  15292. * src/AbstractCommand.h
  15293. (setNameResolverCheck): New function.
  15294. (disableNameResolverCheck): New function
  15295. (resolveHostname): New function.
  15296. * src/AbstractCommand.cc
  15297. (setNameResolverCheck): New function.
  15298. (disableNameResolverCheck): New function
  15299. (resolveHostname): New function.
  15300. * src/FtpInitiateConnectionCommand.h
  15301. (nameResolver): New function.
  15302. * src/FtpInitiateConnectionCommand.cc
  15303. (Util.h): Included.
  15304. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15305. disableWriteCheckSocket.
  15306. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15307. (executeInternal): Added async DNS support.
  15308. * src/HttpInitiateConnectionCommand.h
  15309. (nameResolver): New function.
  15310. * src/HttpInitiateConnectionCommand.cc
  15311. (DlRetryEx.h): Included.
  15312. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15313. disableWriteCheckSocket.
  15314. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15315. (executeInternal): Added async DNS support.
  15316. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15317. by extern "C" declaration.
  15318. * src/NameResolver.cc: New class.
  15319. * src/Util.h:
  15320. (isNumberAndDotsNotation): New function
  15321. * src/Util.cc
  15322. (isNumberAndDotsNotation): New function.
  15323. * src/DownloadEngine.h
  15324. (NameResolver.h): Included.
  15325. (NameResolverEntry): New class.
  15326. (NameResolverEntries): New type definition.
  15327. (addNameResolverCheck): New function.
  15328. (deleteNameResolverCheck): New function.
  15329. * src/DownloadEngine.cc
  15330. (run): Initialize cp with 0.
  15331. (SetDescriptor::operator()): Added for NameResolverEntry.
  15332. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15333. (waitData): Check nameResolver entries.
  15334. (updateFdSet): Update fds in nameResolver entries.
  15335. (addNameResolverCheck): New function.
  15336. (deleteNameResolverCheck): new function.
  15337. * src/PeerInteractionCommand.cc
  15338. (executeInternal): Fixed wrong socket handling.
  15339. * src/main.cc
  15340. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15341. * src/Util.cc
  15342. (fileChecksum): Removed the call to ctx.digestReset().
  15343. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15344. * po/ru.po: Azamat sent me Russian translation.
  15345. * src/FtpNegotiateCommand.cc
  15346. (recvGreeting): Call disableWriteCheckSocket just after
  15347. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15348. (recvRetr): Recognized status code 125 as a acceptable response code.
  15349. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15350. case-insesitive filesystem(BUG#1531057).
  15351. * src/Time.h: Renamed as TimeA2.h.
  15352. * src/Time.cc: Renamed as TimeA2.cc.
  15353. * src/TimeA2.h: New class.
  15354. * src/TimeA2.cc: New class.
  15355. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15356. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15357. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15358. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15359. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15360. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15361. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15362. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15363. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15364. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15365. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15366. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15367. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15368. * release 0.7.0
  15369. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15370. * src/PeerChokeCommand.h
  15371. (PeerChokeCommand): Rearranged the arguments.
  15372. * src/PeerChokeCommand.cc
  15373. (PeerChokeCommand): Rearranged the arguments.
  15374. * src/MetalinkEntry.h
  15375. (Checksum.h): Included.
  15376. (md5): Removed.
  15377. (sha1): Removed.
  15378. (checksum): New variable.
  15379. (operator=): Updated.
  15380. (check): Removed.
  15381. * src/prefs.h
  15382. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15383. (PREF_FOLLOW_TORRENT): New definition.
  15384. (PREF_SELECT_FILE): New definition.
  15385. (PREF_FOLLOW_METALINK): New definition.
  15386. * src/MetalinkResource.h
  15387. (TYPE_HTTPS): Added to enum TYPE.
  15388. * src/TorrentMan.cc
  15389. (~TorrentMan): Rewritten.
  15390. * src/MultiDiskWriter.cc
  15391. (MultiDiskAdaptor): Updated according to the changes in
  15392. MessageDigestContext.
  15393. (~MultiDiskAdaptor): Updated according to the changes in
  15394. MessageDigestContext.
  15395. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15396. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15397. * src/Util.h
  15398. (fileChecksum): Updated according to the changes in
  15399. MessageDigestContext.
  15400. * src/Util.cc
  15401. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15402. (fileChecksum): Updated according to the changes in
  15403. MessageDigestContext.
  15404. * src/messageDigest.h: Rewritten.
  15405. * src/MetalinkEntry.cc
  15406. (check): Removed.
  15407. (Supported): Updated.
  15408. (dropUnsupportedResource): Fixed a memory leak.
  15409. * src/ShaVisitor.cc
  15410. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15411. (~ShaVisitor): Updated according to the changes in
  15412. MessageDigestContext.
  15413. (visit): Updated according to the changes in MessageDigestContext.
  15414. * src/main.cc
  15415. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15416. command-line option added.
  15417. * src/DownloadEngine.h
  15418. (SocketEntry): New class.
  15419. (SocketEntries): New definition.
  15420. (PairFind): Removed.
  15421. (SockCmdMap): Removed.
  15422. * src/DownloadEngine.cc
  15423. (DownloadEngine): Rewritten.
  15424. (~DownloadEngine): Rewritten.
  15425. (run): Renamed activeCommandUuids as activeUuids.
  15426. (SetDescriptor): Rewritten.
  15427. (AccumulateActiveCommandUuid): Removed.
  15428. (AccumulateActiveUuid): New function object.
  15429. (waitData): Rewritten.
  15430. (updateFdSet): Rewritten.
  15431. (addSocket): Rewritten.
  15432. (deleteSocket): Rewritten.
  15433. (addSocketForReadCheck): Rewritten.
  15434. (deleteSocketForReadCheck): Rewritten.
  15435. (addSocketForWriteCheck): Rewritten.
  15436. (deleteSocketForWriteCheck): Rewritten.
  15437. * src/Xml2MetalinkProcessor.cc
  15438. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15439. * src/DownloadCommand.cc
  15440. (executeInternal): Added the check routine for lowest speed limit.
  15441. * src/AbstractDiskWriter.cc
  15442. (AbstractDiskWriter): Updated according to the changes in
  15443. MessageDigestContext.
  15444. (~AbstractDiskWriter): Updated according to the changes in
  15445. MessageDigestContext.
  15446. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15447. * src/RequestInfo.h: New class.
  15448. * src/UrlRequestInfo.h: New class.
  15449. * src/UrlRequestInfo.cc: New class.
  15450. * src/TorrentRequestInfo.h: New class.
  15451. * src/TorrentRequestInfo.cc: New class.
  15452. * src/MetalinkRequestInfo.h: New class.
  15453. * src/MetalinkRequestInfo.cc: New class.
  15454. * src/Checksum.h: New class.
  15455. * src/DownloadEngineFactory.h: New class.
  15456. * src/DownloadEngineFactory.cc: New class.
  15457. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15458. * src/Option.h
  15459. (getAsBool): New function.
  15460. * src/Option.cc
  15461. (prefs.h): Included.
  15462. (defined): 0-length value is now recognized as undefined.
  15463. (getAsInt): Rewritten.
  15464. (getAsLLInt): Rewritten.
  15465. (getAsBool): New function.
  15466. * src/FeatureConfig.h: Rewritten.
  15467. * src/FeatureConfig.cc: Rewritten.
  15468. * src/prefs.h
  15469. (PREF_STDOUT_LOG): New definition.
  15470. (PREF_LOG): New definition.
  15471. (PREF_DIR): New definition.
  15472. (PREF_OUT): New definition.
  15473. (PREF_SPLIT): New definition.
  15474. (PREF_DAEMON): New definition.
  15475. (PREF_REFERER): New definition.
  15476. (PREF_TORRENT_FILE): New definition.
  15477. (PREF_LISTEN_PORT): New definition.
  15478. (PREF_METALINK_FILE): New definition.
  15479. (PREF_METALINK_VERSION): New definition.
  15480. (PREF_METALINK_LANGUAGE): New definition.
  15481. (PREF_METALINK_OS): New definition.
  15482. (PREF_METALINK_SERVERS): New definition.
  15483. * src/main.cc
  15484. (main): Following command-line parameters are now put into Option
  15485. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15486. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15487. metalinkLanguage, metalinkOs, metalinkServers
  15488. To fix the bug that aria2 can not handle http response header properly.
  15489. * src/HttpHeader.cc
  15490. (put): Made name lowercased.
  15491. (defined): Made name lowercased.
  15492. (getFirst): Made name lowercased.
  15493. (get): Made name lowercased.
  15494. (getFirstAsInt): Rewritten.
  15495. (getFirstAsLLInt): Rewritten.
  15496. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15497. * src/TorrentMan.h:
  15498. (advertisePiece): Updated doc.
  15499. (getAdvertisedPieceIndexes): Updated doc.
  15500. (removeAdvertisedPiece); New function.
  15501. * src/TorrentMan.cc
  15502. (FindElapsedHave): New function object.
  15503. (removeAdvertisedPiece): New function.
  15504. * src/HaveEraseCommand.h: New class.
  15505. * src/HaveEraseCommand.cc: New class.
  15506. * src/FeatureConfig.h: New class.
  15507. * src/FeatureConfig.cc: New class.
  15508. * src/Request.h
  15509. (defaultPorts): Removed.
  15510. * src/Request.cc
  15511. (FeatureConfig.h): Included.
  15512. (Request): Removed the statements related to defaultPorts.
  15513. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15514. A default port number is now retrieved from FeatureConfig.
  15515. * src/main.cc
  15516. (HaveEraseCommand.h): Included.
  15517. (showVersion): Added the output of feature list.
  15518. (main): Added HaveEraseCommand to command queue in BitTorrent
  15519. downloading.
  15520. * src/PeerInteractionCommand.h
  15521. (chokeCheckPoint): Commented out.
  15522. (periodicExecPoint): New variable.
  15523. * src/PeerInteractionCommand.cc
  15524. (executeInternal): Following methods are now called in at least every
  15525. 0.5 seconds to reduce CPU usage:
  15526. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15527. checkHave(), sendKeepAlive().
  15528. (checkLongTimePeerChoking): Commented out.
  15529. * src/BitfieldMan.h
  15530. (getNthBitIndex): Changed the method signature.
  15531. (getMissingIndexRandomly): Changed the method signature.
  15532. * src/BitfieldMan.cc
  15533. (getNthBitIndex): Rewritten
  15534. (getMissingIndexRandomly): Rewritten.
  15535. (hasMissingPiece): Rewritten.
  15536. (getMissingIndex): Refactored.
  15537. (getMissingUnusedIndex); Refactored.
  15538. (getMissingIndex): Refactored.
  15539. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15540. * src/PeerMessage.h
  15541. (Piece.h): Included.
  15542. (SharedHandle.h): Included.
  15543. (invalidate): New variable.
  15544. (uploading): New variable.
  15545. (isInvalidate): New function.
  15546. (isUploading): New function.
  15547. (onPush): New function.
  15548. (onChoked): New function.
  15549. (onCanceled): New function.
  15550. (onAbortPiece): New function.
  15551. (PeerMessageHandle): New type definition.
  15552. * src/PeerMessage.cc
  15553. (PeerMessage): Added the initialization for invalidate and uploading.
  15554. * src/CancelMessage.h
  15555. (CancelMessage): Rewritten.
  15556. * src/RejectMessage.h
  15557. (RejectMessage): Rewritten.
  15558. * src/Metalinker.h
  15559. (operator=): Defined.
  15560. * src/MetaEntry.h
  15561. (operator=): Defined.
  15562. * src/MetalinkResource.h
  15563. (operator=): Defined.
  15564. * src/AllowedFastMessage.h
  15565. (AllowedFastMessage): Rewritten.
  15566. * src/HandshakeMessage.h
  15567. (HandshakeMessage): New function(overload).
  15568. * src/HandshakeMessage.cc
  15569. (HandshakeMessage): Rewritten.
  15570. (init): New function.
  15571. * src/HaveMessage.h
  15572. (HaveMessage): Rewritten.
  15573. * src/Time.h
  15574. (operator=): Defined the function body here.
  15575. * src/Time.cc
  15576. (operator=): Removed.
  15577. * src/SocketCore.h
  15578. (operator==): Defined here.
  15579. (operator!=): Defined here.
  15580. (operator<): Defined here.
  15581. * src/SocketCore.cc
  15582. (operator==): Removed.
  15583. (operator<): Removed.
  15584. * src/BitfieldMan.h
  15585. (operator=): Defined the function body here.
  15586. * src/BitfieldMan.cc
  15587. (operator=): Removed.
  15588. * src/TorrentMan.h
  15589. (deleteErrorPeer): Removed.
  15590. (deleteUnusedPeer); New function.
  15591. * src/TorrentMan.cc
  15592. (addPeer): Call deleteUnusedPeer.
  15593. (deleteErrorPeer): Removed.
  15594. (deleteUnusedPeer): New function.
  15595. * src/PeerAbstractCommand.h
  15596. (setNoCheck): New function.
  15597. (noCheck): New variable.
  15598. * src/PeerAbstractCommand.cc
  15599. (PeerAbstractCommand): Added the initialization of noCheck.
  15600. (execute): Added a check for noCheck.
  15601. (setNoCheck): New function.
  15602. * src/Util.h
  15603. (stdio.h): Included.
  15604. * src/Util.cc
  15605. (unistd.h): Included.
  15606. * src/DefaultDiskWriter.cc
  15607. (unistd.h): Included.
  15608. * src/Peer.h
  15609. (operator==): Defined the function body here.
  15610. (operator!=): Defined the function body here.
  15611. * src/Peer.cc
  15612. (operator==): Removed.
  15613. (operator!=): Removed.
  15614. * src/Piece.h
  15615. (Piece): Defined the function body here(copy constructor).
  15616. (operator=): Defined the function body here.
  15617. (operator==): Defined the function body here.
  15618. * src/Piece.cc
  15619. (Piece): Removed(copy constructor).
  15620. (operator=): Removed.
  15621. (operator==): Removed.
  15622. * src/PeerMessageUtil.h
  15623. (ChokeMessage.h): Removed.
  15624. (UnchokeMessage.h): Removed.
  15625. (InterestedMessage.h): Removed.
  15626. (NotInterestedMessage.h): Removed.
  15627. (HaveMessage.h): Removed.
  15628. (BitfieldMessage.h): Removed.
  15629. (RequestMessage.h): Removed.
  15630. (CancelMessage.h): Removed.
  15631. (PieceMessage.h): Removed.
  15632. (HandshakeMessage.h): Removed.
  15633. (KeepAliveMessage.h): Removed.
  15634. (PortMessage.h): Removed.
  15635. (HaveAllMessage.h): Removed.
  15636. (HaveNoneMessage.h): Removed.
  15637. (PeerConnection.h): Removed.
  15638. (HandshakeMessage.h): Included.
  15639. * src/BitfieldMessage.h
  15640. (init): New function.
  15641. (BitfieldMessage): Rewritten.
  15642. (BitfieldMessage): New function(overload).
  15643. * src/RequestSlot.h
  15644. (operator=): Defined the function body here.
  15645. (operator==): Defined the function body here.
  15646. * src/RequestSlot.cc
  15647. (operator=): Removed.
  15648. (operator==): Removed.
  15649. To remove the dependency on the PeerMessage subclass from
  15650. PeerInteraction:
  15651. * src/PeerMessageFactory.h: New class.
  15652. * src/PeerMessageFactory.cc: New class.
  15653. * src/SimplePeerMessage.cc
  15654. (send): If invalidate is true then do nothing.
  15655. * src/PeerInteractionCommand.cc
  15656. (HandshakeMessage.h): Included.
  15657. (KeepAliveMessage.h): Included.
  15658. (ChokeMessage.h): Included.
  15659. (UnchokeMessage.h): Included.
  15660. (HaveMessage.h): Included.
  15661. (executeInternal): Call setNoCheck().
  15662. Removed setWriteCheckSocket(socket).
  15663. * src/PeerInteraction.h
  15664. (ChokeMessage.h): Removed.
  15665. (UnchokeMessage.h): Removed.
  15666. (InterestedMessage.h): Removed.
  15667. (NotInterestedMessage.h): Removed.
  15668. (HaveMessage.h): Removed.
  15669. (BitfieldMessage.h): Removed.
  15670. (RequestMessage.h): Removed.
  15671. (CancelMessage.h): Removed.
  15672. (PieceMessage.h): Removed.
  15673. (HandshakeMessage.h): Removed.
  15674. (KeepAliveMessage.h): Removed.
  15675. (PortMessage.h): Removed.
  15676. (HaveAllMessage.h): Removed.
  15677. (HaveNoneMessage.h): Removed.
  15678. (RejectMessage.h): Removed.
  15679. (AllowedFastMessage.h): Removed.
  15680. (SuggestPieceMessage.h): Removed.
  15681. (PeerMessageFactory.h): Included.
  15682. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15683. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15684. (PeerMessageFactory): New variable.
  15685. (createPeerMessage): Removed.
  15686. (createHandshakeMessage): Removed.
  15687. (setPeerMessageCommonProperty): Removed.
  15688. (addRequestSlot): New function.
  15689. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15690. (getPeerMessageFactory): New function.
  15691. (createRequestMessage): Removed.
  15692. (createCancelMessage): Removed.
  15693. (createPieceMessage): Removed.
  15694. (createHaveMessage): Removed.
  15695. (createChokeMessage): Removed.
  15696. (createUnchokeMessage): Removed.
  15697. (createInterestedMessage): Removed.
  15698. (createNotInterestedMessage): Removed.
  15699. (createBitfieldMessage): Removed.
  15700. (createKeepAliveMessage): Removed.
  15701. (createHaveAllMessage): Removed.
  15702. (createHaveNoneMessage): Removed.
  15703. (createRejectMessage): Removed.
  15704. (createAllowedFastMessage): Removed.
  15705. * src/PeerInteraction.cc
  15706. (PeerInteraction): Allocate PeerMessageFactory here.
  15707. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15708. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15709. PieceMessage::ID.
  15710. (addMessage): Simplified by using PeerMessage::onPush().
  15711. (addRequestSlot): New function.
  15712. (rejectAllPieceMessageInQueue): Simplified by using
  15713. PeerMessage::onChoked().
  15714. (rejectPieceMessageInQueue): Simplified by using
  15715. PeerMessage::onCanceled().
  15716. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15717. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15718. (createHandshakeMessage): Removed.
  15719. (createPeerMessage): Removed.
  15720. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15721. (setPeerMessageCommonProperty): Removed.
  15722. (createRequestMessage): Removed.
  15723. (createCancelMessage): Removed.
  15724. (createPieceMessage): Removed.
  15725. (createHaveMessage): Removed.
  15726. (createChokeMessage): Removed.
  15727. (createUnchokeMessage): Removed.
  15728. (createInterestedMessage): Removed.
  15729. (createNotInterestedMessage): Removed.
  15730. (createBitfieldMessage): Removed.
  15731. (createKeepAliveMessage): Removed.
  15732. (createHaveAllMessage): Removed.
  15733. (createHaveNoneMessage): Removed.
  15734. (createRejectMessage): Removed.
  15735. (createAllowedFastMessage): Removed.
  15736. * src/PieceMessage.h
  15737. (createRejectMessage): New function.
  15738. (PieceMessage): Rewritten.
  15739. (onChoked): New function.
  15740. (onCanceled): New function.
  15741. * src/PieceMessage.cc
  15742. (send): If invalidate is true then do nothing, just return.
  15743. (createRejectMessage): New function.
  15744. (onChoked): New function.
  15745. (onCanceled): New function.
  15746. * src/RequestMessage.h
  15747. (RequestMessage): Rewritten.
  15748. (onPush): New function.
  15749. (onAbortPiece): New function.
  15750. * src/RequestMessage.cc
  15751. (onPush): New function.
  15752. (onAbortPiece): New function.
  15753. Update fd_set when a socket is added or deleted in order to improve
  15754. performance:
  15755. * src/DownloadEngine.h
  15756. (rfdset): New variable.
  15757. (wfdset): New variable.
  15758. (updateFdSet): New function.
  15759. * src/DownloadEngine.cc
  15760. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15761. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15762. (waitData): Copy rfdset and wfdset.
  15763. (updateFdSet): New function.
  15764. (addSocket): Call updateFdSet.
  15765. (deleteSocket): Call updateFdSet.
  15766. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15767. To add the support for Metalink3.0 backward compatible links:
  15768. * src/Request.h
  15769. (SAFE_CHARS): Added '#'.
  15770. (METALINK_MARK): New definition.
  15771. * src/Request.cc
  15772. (parseUrl): Added the support for Metalink3.0 backward compatible
  15773. links.
  15774. etc
  15775. * src/PeerInteraction.cc
  15776. (MsgPushBack): Removed.
  15777. (sendMessages): Use STL copy and back_inserter.
  15778. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15779. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15780. * src/TorrentMan.h
  15781. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15782. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15783. * src/SharedHandle.h: New class.
  15784. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15785. * src/HttpResponseCommand.h
  15786. (HttpResponseCommand): Wrapped Socket.
  15787. * src/SocketCore.h
  15788. (operator==): New function.
  15789. (operator!=): New function.
  15790. (operator<): New function.
  15791. (getSockfd): New function.
  15792. (isOpen): New function.
  15793. (writeData): New function.
  15794. * src/SocketCore.cc
  15795. (operator==): New function.
  15796. (operator!=): New function.
  15797. (operator<): New function.
  15798. * src/AbstractCommand.h
  15799. (socket): Changed its type to SocketHandle.
  15800. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15801. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15802. (disableReadCheckSocket): New function.
  15803. (disableWriteCheckSocket): New function.
  15804. (readCheckTarget): Changed its type to SocketHandle.
  15805. (writeCheckTarget): Changed its type to SocketHandle.
  15806. (AbstractCommand): Replaced Socket with SocketHandle.
  15807. * src/AbstractCommand.cc
  15808. (AbstractCommand): Replaced Socket with SocketHandle.
  15809. (~AbstractCommand): Removed the deallocation for Socket object.
  15810. (disableReadCheckSocket): New function.
  15811. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15812. (disableWriteCheckSocket): New function.
  15813. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15814. * src/HttpDownloadCommand.cc
  15815. (DownloadCommand): Replaced Socket with SocketHandle.
  15816. * src/PeerAbstractCommand.h
  15817. (socket): Changed its type to SocketHandle.
  15818. (peer): Changed its type to PeerHandle.
  15819. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15820. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15821. (disableReadCheckSocket): New function.
  15822. (disableWriteCheckSocket): New function.
  15823. (readCheckTarget): Changed its type to SocketHandle.
  15824. (writeCheckTarget): Changed its type to SocketHandle.
  15825. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15826. Replaced Peer with PeerHandle.
  15827. * src/HttpRequestCommand.cc
  15828. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15829. Use disableReadCheckSocket.
  15830. * src/PeerInitiateConnectionCommand.h
  15831. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15832. * src/PeerChokeCommand.cc
  15833. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15834. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15835. (execute): Use PeerHandle.
  15836. * src/PeerConnection.h
  15837. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15838. (socket): Changed its type to SocketHandle.
  15839. (PeerConnection): Replaced Socket with SocketHandle.
  15840. * src/PeerConnection.cc
  15841. (PeerConnection): Replaced Socket with SocketHandle.
  15842. * src/PeerInteractionCommand.h
  15843. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15844. Replaced Peer with PeerHandle.
  15845. * src/PeerInteractionCommand.cc
  15846. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15847. Replaced Peer with PeerHandle.
  15848. (executeInternal): Use disableWriteCheckSocket.
  15849. Use HandshakeMessageHandle.
  15850. (receiveMessages): Use PeerMessageHandle.
  15851. (prepareForNextPeer): Use PeerHandle.
  15852. * src/HttpProxyRequestCommand.h
  15853. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15854. * src/HttpResponseCommand.cc
  15855. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15856. * src/TorrentMan.cc
  15857. (nullPeer): Added external reference.
  15858. (~TorrentMan): Removed the deallocation of the elements of peers.
  15859. (addPeer): Rewritten.
  15860. (isPeerAvailable): Use nullPeer.
  15861. (deleteOldpeers): Replaced with deleteErrorPeer.
  15862. (deleteErrorPeer): New function.
  15863. (getPeer): Use PeerHandle and nullPeer.
  15864. (hasMissingPiece): Replaced Peer with PeerHandle.
  15865. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15866. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15867. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15868. (getMissingPiece): Replaced Peer with PeerHandle.
  15869. * src/FtpNegotiateCommand.cc
  15870. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15871. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15872. (recvGreeting): Use disableWriteCheckSocket.
  15873. (recvPasv): Removed the allocation of Socket.
  15874. Use disableReadCheckSocket.
  15875. (sendRestPasv): Use disableWriteCheckSocket.
  15876. (recvRetr): Changed assertion.
  15877. * src/PeerInteraction.h
  15878. (SharedHandle.h): Included SharedHandle.h.
  15879. (PeerMessageHandle): New type definition.
  15880. (HandshakeMessageHandle): New type definition.
  15881. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15882. (peer): Changed its type to PeerHandle.
  15883. (createHandshakeMessage): Replaced HandshakeMessage with
  15884. HandshakeMessageHandle.
  15885. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15886. (PeerInteraction): Replaced Peer with PeerHandle.
  15887. Replaced Socket with SocketHandle.
  15888. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15889. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15890. (receiveHandshake): Replaced HandshakeMessage with
  15891. HandshakeMessageHandle.
  15892. * src/PeerInteraction.cc
  15893. (PeerInteraction): Replaced Peer with PeerHandle.
  15894. Replaced Socket with SocketHandle.
  15895. (~PeerInteraction): Removed the deallocation of the elements of
  15896. messageQueue.
  15897. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15898. (isSendingMessageInProgress): Replaced PeerMessage with
  15899. PeerMessageHandle.
  15900. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15901. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15902. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15903. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15904. (abortPiece): Use PeerMessageHandle.
  15905. (receiveHandshake): Replaced HandshakeMessage with
  15906. HandshakeMessageHandle. Removed try-catch block.
  15907. (createHandshakeMessage): Replaced HandshakeMessage with
  15908. HandshakeMessageHandle.
  15909. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15910. Removed try-catch block.
  15911. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15912. * src/HttpProxyResponseCommand.cc
  15913. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15914. * src/FtpTunnelResponseCommand.h
  15915. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15916. * src/HttpConnection.cc
  15917. (HttpConnection): Replaced Socket with SocketHandle.
  15918. * src/PeerAbstractCommand.cc
  15919. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15920. (~PeerAbstractCommand): Removed the deallocation of socket.
  15921. Use disableReadCheckSocket, disableWriteCheckSocket.
  15922. (disableReadCheckSocket): New function.
  15923. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15924. (disableWriteCheckSocket): New function.
  15925. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15926. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15927. * src/FtpTunnelRequestCommand.cc
  15928. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15929. (~FtpTunnelRequestCommand): Corrected indentation.
  15930. * src/DownloadCommand.h
  15931. (DownloadCommand): Replaced Socket with SocketHandle.
  15932. * src/PeerListenCommand.cc
  15933. (PeerListenCommand): Removed the initialization of socket.
  15934. (~PeerListenCommand): Removed the deallocation of socket.
  15935. (bindPort): Use SocketHandle.
  15936. (execute): Use SocketHandle and PeerHandle.
  15937. * src/FtpDowndloadCommand.cc
  15938. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15939. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15940. * src/main.cc
  15941. (main): Corrected indentation.
  15942. * src/HttpInitiateConnectionCommand.cc
  15943. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15944. (executeInternal): Removed the allocation of socket.
  15945. * src/HttpRequestCommand.h
  15946. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15947. * src/FtpNegotiationCommand.h
  15948. (dataSocket): Changed its type to SocketHandle.
  15949. (serverSocket): Changed its type to SocketHandle.
  15950. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15951. * src/TorrentMan.h
  15952. (MAX_PEER_UPDATE): Removed.
  15953. (MAX_PEERS): New definition.
  15954. (Peers): The element is now of type PeerHandle.
  15955. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15956. (getPeer): Replaced Peer with PeerHandle.
  15957. (deleteOldErrorPeers): Removed.
  15958. (deleteErrorPeer): New function.
  15959. (hasMissingPiece): Replaced Peer with PeerHandle.
  15960. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15961. (getMissingPiece): Replaced Peer with PeerHandle.
  15962. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15963. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15964. (addActivePeer): Replaced Peer with PeerHandle.
  15965. (deleteActivePeer): Replaced Peer with PeerHandle.
  15966. Added a check for the return value of find.
  15967. * src/FtpTunnelResponseCommand.cc
  15968. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15969. * src/FtpInitiateConnectionCommand.cc
  15970. (executeInternal): Removed the allocation of socket.
  15971. * src/DownloadEngine.h
  15972. (Sockets): An element is now of type SocketHandle.
  15973. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15974. (CommandUuids): New type definition.
  15975. (rsockets): Changed its type to SockCmdMap.
  15976. (wsockets): Changed its type to SockCmdMap.
  15977. (addSocket): Rewritten.
  15978. (deleteSocket): Rewritten.
  15979. (addSocketForReadCheck): Rewritten.
  15980. (deleteSocketForReadCheck): Rewritten.
  15981. (addSocketForWriteCheck): Rewritten.
  15982. (deleteSocketForWriteCheck): Rewritten.
  15983. (PairFind): New template class.
  15984. * src/HttpDownloadCommand.h
  15985. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15986. * src/FtpConnection.cc
  15987. (FtpConnection): Replaced Socket with SocketHandle.
  15988. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15989. block.
  15990. * src/InitiateConnectionCommandFactory.cc
  15991. (DlAbortEx.h): Included DlAbortEx.h.
  15992. (createInitiateConnectionCommand): Throw exception if the protocol of
  15993. requested URI is not supported.
  15994. * src/Peer.cc
  15995. (nullPeer): Changed its type to PeerHandle.
  15996. (operator==): New function.
  15997. (operator!=): New function.
  15998. * src/Peer.h
  15999. (SharedHandle.h): Included SharedHandle.h.
  16000. (operator==): New function.
  16001. (operator!=): New function.
  16002. (Peer): Added the default constructor.
  16003. Use resetStatus() to initialize member variables.
  16004. (nullPeer): Removed.
  16005. * src/TrackerUpdateCommand.cc
  16006. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16007. with MIN_PEERS.
  16008. * src/PeerListenCommand.h
  16009. (socket): Changed its type to SocketHandle.
  16010. * src/Command.h
  16011. (CommandUuid): New type definition.
  16012. (uuid): New variable.
  16013. (uuidGen): New variable.
  16014. (Command): Added the initialization of uuid.
  16015. (getUuid): New function.
  16016. * src/Socket.h
  16017. (Socket): Removed.
  16018. (SocketHandle): New type definition.
  16019. * src/DownloadEngine.h
  16020. (FindCommand): New function object.
  16021. (run): The portion of socket check was rewritten.
  16022. (SetDescriptor): New function object.
  16023. (AccumulateActiveCommandUuid): New function object.
  16024. (waitData): Rewritten.
  16025. (addSocket): Rewritten.
  16026. (deleteSocket): Rewritten.
  16027. (addSocketForReadCheck): Rewritten.
  16028. (addSocketForWriteCheck): Rewritten.
  16029. (deleteSocketForReadCheck): Rewritten.
  16030. (deleteSocketForWriteCheck): Rewritten.
  16031. * src/HttpProxyResponseCommand.h
  16032. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16033. * src/HttpConnection.h
  16034. (socket): Changed its type to SocketHandle.
  16035. (HttpConnection): Replaced Socket with SocketHandle.
  16036. * src/PeerInitiateConnectionCommand.cc
  16037. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16038. (executeInternal): Removed the allocation of socket.
  16039. (prepareForNextPeer): Use PeerHandle.
  16040. * src/PeerMessage.h
  16041. (peer): Changed its type to PeerHandle.
  16042. (getPeer): Replaced Peer with PeerHandle.
  16043. (setPeer): Replaced Peer with PeerHandle.
  16044. * src/DownloadCommand.cc
  16045. (DownloadCommand): Replaced Socket with SocketHandle.
  16046. * src/FtpConnection.h
  16047. (socket): Changed its type to SocketHandle.
  16048. (FtpConnection): Replaced Socket with SocketHandle.
  16049. (sendPort); Replaced Socket with SocketHandle.
  16050. * src/FtpDowndloadCommand.h
  16051. (ctrlSocket): Changed its type to SocketHandle.
  16052. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16053. * src/HttpProxyRequestCommand.cc
  16054. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16055. * src/FtpTunnelRequestCommand.h
  16056. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16057. etc
  16058. * src/PeerChokeCommand.h
  16059. (setAllPeerChoked): Removed.
  16060. (setAllPeerResetDelta): Removed.
  16061. * src/PeerChokeCommand.cc
  16062. (setAllPeerChoked): Removed.
  16063. (ChokePeer): New function object.
  16064. (setAllPeerResetDelta): Removed.
  16065. (ResetDelta): New function object.
  16066. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16067. (execute): Show download speed when the local node is a seeder.
  16068. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16069. using STL.
  16070. * src/TrackerWatcherCommand.h
  16071. (MIN_PEERS): Removed.
  16072. * src/TorrentMan.cc
  16073. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16074. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16075. To fix the bug that .aria2 file is not saved if downloading is stopped
  16076. by the errors:it results that aria2 can not resume downloading:
  16077. * src/main.cc
  16078. (normalDownload): Added the call to save().
  16079. (main): Added the deletion of the elements in 'reserved'.
  16080. To fix log:
  16081. * src/PeerInteraction.cc
  16082. (receiveHandshake): Fixed log.
  16083. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16084. To improve download performance in BitTorrent:
  16085. * src/TorrentMan.cc
  16086. (getPeer): Check the number of connections. Return nullPeer if
  16087. it is greater than MAX_PEER_UPDATE.
  16088. This code was originally here, but was removed in 0.5.1.
  16089. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16090. To improve the conditional compilation:
  16091. * src/MultiDiskWriter.h:
  16092. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16093. * src/MultiDiskWriter.cc:
  16094. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16095. * src/Util.h:
  16096. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16097. Added ENABLE_BITTORRENT around computeFastSet().
  16098. * src/Util.cc:
  16099. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16100. Added ENABLE_BITTORRENT around computeFastSet().
  16101. * src/messageDigest.h:
  16102. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16103. * src/ShaVisitor.h:
  16104. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16105. * src/ShaVisitor.cc:
  16106. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16107. * src/main.cc:
  16108. Added ENABLE_BITTORRENT around includes and blocks related to
  16109. BitTorrent.
  16110. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16111. digest support is not available.
  16112. * src/AbstractDiskWriter.h:
  16113. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16114. * src/AbstractDiskWriter.cc:
  16115. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16116. * src/MetalinkEntry.cc
  16117. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16118. support is not available.
  16119. To add command-line options for Metalink:
  16120. * src/main.cc:
  16121. Added metalink-version, metalink-language, metalink-os,
  16122. follow-metalink.
  16123. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16124. * src/main.cc: Use these definition.
  16125. * Release 0.6.0
  16126. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16127. To add Metalink support(http/ftp only):
  16128. * src/AbstractCommand.h
  16129. (tryReserved): New function.
  16130. * src/AbstractCommand.cc
  16131. (execute): Call tryReserved().
  16132. (tryReserved): New function.
  16133. * src/Request.h
  16134. (Requests): New type definition.
  16135. * src/SegmentMan.h
  16136. (reserved): New variable.
  16137. * src/Util.h
  16138. (fileChecksum): New function.
  16139. (toUpper): New function.
  16140. (toLower): New function.
  16141. * src/Util.cc
  16142. (messageDigest.h): Included.
  16143. (trim): Trim \r\n\t.
  16144. (fileChecksum): New function.
  16145. (toUpper): New function.
  16146. (toLower): New function.
  16147. * src/main.cc
  16148. (normalDownload): New function.
  16149. (main): Added 2 command-line options: metalink-file,
  16150. metalink-connection. Their usage has not been written yet.
  16151. * src/MetalinkProcessor.h: New class.
  16152. * src/Xml2MetalinkProcessor.h: New class.
  16153. * src/Xml2MetalinkProcessor.cc: New class.
  16154. * src/MetalinkEntry.h: New class.
  16155. * src/MetalinkEntry.cc: New class.
  16156. * src/MetalinkResource.h: New class.
  16157. * src/MetalinkResource.cc: New class.
  16158. To add md5 message digest checking:
  16159. * src/messageDigest.h: Rewritten.
  16160. * src/MultiDiskWriter.cc: Updated according to the changes in
  16161. messageDigest.h.
  16162. * src/ShaVisitor.cc: Updated according to the changes in
  16163. messageDigest.h.
  16164. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16165. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16166. messageDigest.h.
  16167. To fix a bug that causes segfault when the payload length in peer
  16168. message is less than 0:
  16169. * src/PeerConnection.cc:
  16170. (receiveMessage): Fixed the bug.
  16171. * src/PeerMessageUtil.cc
  16172. (checkLength): Throw an exception if length is less than or equals to
  16173. 0.
  16174. To add new interfaces to Base64 encoding/decoding:
  16175. * src/Base64.h
  16176. (part_encode): Changed the method signature.
  16177. (encode): New function(overload).
  16178. (decode): New function(overload).
  16179. * src/Base64.cc
  16180. (part_encode): Rewritten.
  16181. (encode): Rewritten.
  16182. (encode): New function(overload).
  16183. To prevent a peer to download same piece if there is an error in
  16184. checksum:
  16185. * src/PieceMessage.cc
  16186. (receivedAction): Call peerInteraction->abortPiece().
  16187. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16188. To fix the bug that causes same have message is sent many times to
  16189. a single peer.
  16190. * src/Time.cc
  16191. (isNewer): Use Util::difftv().
  16192. * src/Util.cc
  16193. (difftv): Added a cast to (long long int).
  16194. * src/TorrentMan.cc
  16195. (advertisePiece): Use push_front.
  16196. (getAdvertisedPieceIndexes): A performance improvement was made.
  16197. To fix the bug that sends tracker requests without a sleep interval
  16198. when the number of connections is less than 15.
  16199. * src/TrackerWatcherCommand.cc
  16200. (execute): Now the number of connections is not a factor to decide
  16201. whether or not a tracker request should be sent or not.
  16202. * src/Time.h
  16203. (setTimeInSec): New function.
  16204. * src/Time.cc
  16205. (setTimeInSec): New function.
  16206. etc.
  16207. * src/ChokeMessage.cc
  16208. (receivedAction): Removed peer->snubbing = false
  16209. * src/PeerConnection.h
  16210. (receiveHandshake): Updated doc.
  16211. * src/TorrentMan.h
  16212. (getAdvertisedPieceIndexes): Updated the method signature.
  16213. * src/TorrentMan.cc
  16214. (getAdvertisedPieceIndexes): Updated the method signature.
  16215. * src/Time.h
  16216. (getTimeInMicros): Added a cast to (long long int).
  16217. (getTimeInMillis): Added a cast to (long long int).
  16218. * Release 0.5.2
  16219. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16220. To make a listening socket non-block:
  16221. * src/SocketCore.h
  16222. (setNonBlockingMode): New function.
  16223. * src/SocketCore.cc
  16224. (setNonBlockingMode): New function.
  16225. (beginListen): Added a call to setNonBlockingMode().
  16226. (acceptConnection): Call setNonBlockingMode().
  16227. (setBlockingMode): Updated.
  16228. To handle tracker's NAT-checking:
  16229. * src/PeerConnection.cc
  16230. (receiveHandshake): 'msg' param is filled with received data and
  16231. its length is assigned to 'length' param, even if all handshake
  16232. message is not yet received.
  16233. * src/PeerInteractionCommand.cc
  16234. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16235. a new peer connects to localhost.
  16236. A call to peerInteraction->sendHandshake() was removed because
  16237. it is called from peerInteraction->receiveHandshake(true).
  16238. * src/PeerInteraction.h
  16239. (quickReplied): New variable.
  16240. (receiveHandshake): Added an argument.
  16241. * src/PeerInteraction.cc
  16242. (PeerInteraction): Added the initialization of quickReplied.
  16243. (receiveHandshake): Send handshake message as soon as the info hash
  16244. in a handshake message from a peer is correct.
  16245. To change the random part of peer id and key parameter:
  16246. * src/TorrentMan.h
  16247. (key): New variable.
  16248. * src/TorrentMan.cc
  16249. (setupInternal1): Use Util::randomAlpha() to generate random part
  16250. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16251. key is also generated by Util::randomAlpha() and it is now 8 character
  16252. long.
  16253. * src/Util.h
  16254. (randomAlpha): New function.
  16255. * src/Util.cc
  16256. (randomAlpha): New function.
  16257. * src/TrackerWatcherCommand.cc
  16258. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16259. Added no_peer_id=1.
  16260. Set snubbing flag to false when a choke message is received from a
  16261. snubbed peer.
  16262. * src/ChokeMessage.cc
  16263. (receivedAction): Set snubbing flag to false.
  16264. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16265. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16266. * src/SimpleLogger.h (writeHeader): New function.
  16267. * src/SimpleLogger.cc (writeHeader): New function.
  16268. (writeLog): Fixed the bug that causes segfaults if exception message
  16269. contains an unescaped "%" character.
  16270. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16271. when a tracker request fails.
  16272. * src/Request.cc (parseUrl): Query string is now handled properly.
  16273. * Release 0.5.1
  16274. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16275. To add Time class which represents a specific instant in time and
  16276. its precision is microseconds. Time checking procedures were rewritten
  16277. using this object.
  16278. * src/Time.h: New class.
  16279. * src/Time.cc: New class.
  16280. * src/AbstractCommand.h
  16281. (updateCheckPoint): Removed.
  16282. (isTimeoutDetected): Removed.
  16283. (checkPoint): Changed the type to Time.
  16284. (timeout): New variable.
  16285. (setTimeout): New function.
  16286. * src/AbstractCommand.cc
  16287. (AbstractCommand): Removed the initialization of checkPoint.
  16288. Added the initialization of timeout.
  16289. (updateCheckPoint): Removed.
  16290. (isTimeoutDetected): Removed.
  16291. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16292. * src/PeerChokeCommand.h
  16293. (checkPoint): Changed the type to Time.
  16294. * src/PeerChokeCommand.cc
  16295. (PeerChokeCommand): Removed the initialization of checkPoint.
  16296. (execute): Rewritten using Time object.
  16297. * src/TrackerWatcherCommand.h
  16298. (checkPoint): Changed the type to Time.
  16299. * src/TrackerWatcherCommand.cc
  16300. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16301. (execute): Rewritten.
  16302. * src/ConsoleDownloadEngine.h
  16303. (cp): Changed the type to Time.
  16304. (startup): Changed the type to Time.
  16305. * src/ConsoleDownloadEngine.cc
  16306. (initStatistics): Use cp.reset(), startup.reset().
  16307. (calculateStatistics): Rewritten using Time object.
  16308. * src/PeerAbstractCommand.h
  16309. (updateCheckPoint): Removed.
  16310. (isTimeoutDetected): Removed.
  16311. (checkPoint): Changed the type to Time.
  16312. * src/PeerAbstractCommand.cc
  16313. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16314. (updateCheckPoint): Removed.
  16315. (isTimeoutDetected): Removed.
  16316. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16317. * src/PeerInteractionCommand.cc
  16318. (PeerInteractionCommand): Removed the initializations of struct
  16319. timeval variables.
  16320. * src/PeerInteractionCommand.h
  16321. (keepAliveCheckPoint): Changed the type to Time.
  16322. (chokeCheckPoint): Changed the type to Time.
  16323. (freqCheckPoint): Changed the type to Time.
  16324. (haveCheckTime): Changed the type to Time.
  16325. * src/PeerInteractionCommand.cc
  16326. (executeInternal): Rewritten using Time object.
  16327. (detectMessageFlooding): Rewritten using Time object.
  16328. (checkLongTimePeerChoking): Rewritten using Time object.
  16329. (sendKeepAlive): Rewritten using Time object.
  16330. (checkHave): Rewritten using Time object.
  16331. * src/SleepCommand.h
  16332. (checkPoint): Changed the type to Time.
  16333. * src/SleepCommand.cc
  16334. (SleepCommand): Removed the initialization of checkPoint.
  16335. (execute): Rewritten using Time object.
  16336. * src/TorrentAutoSaveCommand.h
  16337. (checkPoint): Changed the type to Time.
  16338. * src/TorrentAutoSaveCommand.cc
  16339. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16340. (execute): Rewritten.
  16341. * src/DownloadCommand.h
  16342. (sw): Changed the type to Time.
  16343. * src/DownloadCommand.cc
  16344. (DownloadCommand): Removed the initialization of sw.
  16345. (executeInternal): Rewritten.
  16346. * src/RequestSlot.h
  16347. (dispatchedTime): Changed the type to Time.
  16348. * src/RequestSlot.cc
  16349. (RequestSlot): Removed the call to setDispatchedTime().
  16350. (setDispatchedTime): Rewirtten.
  16351. (isTimeout): Rewritten.
  16352. (getLatencyInMillis): Rewritten.
  16353. * src/TorrentDownloadEngine.h
  16354. (cp): Changed the type to Time[2].
  16355. (startup): Changed the type to Time.
  16356. * src/TorrentDownloadEngine.cc
  16357. (initStatistics): Rewritten.
  16358. (calculateStatistics): Rewritten.
  16359. * src/DownloadEngine.cc
  16360. (run): Rewritten.
  16361. To detect all attempts to connect to the tracker are failed:
  16362. * src/AbstractCommand.cc
  16363. (execute): Increment e->segmentMan->errors if a command aborted.
  16364. * src/SegmentMan.h
  16365. (errors): New variable.
  16366. * src/SegmentMan.cc
  16367. (SegmentMan): Added the initialization of errors.
  16368. (init): Added the initialization of errors.
  16369. * src/TrackerWatcherCommand.cc
  16370. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16371. request was failed.
  16372. To handle snubbed peers:
  16373. * src/PeerChokeCommand.cc
  16374. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16375. (execute): Snubbed peers don't get unchoked.
  16376. * src/PeerInteraction.h
  16377. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16378. * src/PeerInteraction.cc
  16379. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16380. back the requested 16k block in 60 seconds.
  16381. * src/PieceMessage.cc
  16382. (receivedAction): A peer's snubbed state is cleard if it sends
  16383. the requested 16k block in 60 seconds.
  16384. * src/Peer.h
  16385. (snubbing): New variable.
  16386. * src/Peer.cc
  16387. (resetStatus): Added snubbed = false.
  16388. To fix the bug that causes have message is not sent:
  16389. * src/PeerInteractionCommand.cc
  16390. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16391. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16392. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16393. * src/TorrentMan.h
  16394. (HaveEntry): New class.
  16395. (advertisePiece): Rewritten.
  16396. (getAdvertisedPieceIndexes): Rewritten.
  16397. (Haves): Changed the type.
  16398. (getAdvertisedPieceIndexes): Added an argument.
  16399. Others:
  16400. * src/TorrentMan.h
  16401. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16402. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16403. * src/TorrentMan.cc
  16404. (getPeer): Don't check the number of connections here.
  16405. (setupInternal1): Changed peerId.
  16406. * src/PeerInteractionCommand.h
  16407. (KEEP_ALIVE_INTERVAL): New definition.
  16408. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16409. * src/main.cc
  16410. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16411. * src/DownloadEngine.h: Removed unnecessary header includes.
  16412. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16413. To fix the bug that causes segfaults if a tracker returns a zero-length
  16414. list as "peers":
  16415. * src/TrackerUpdateCommand.cc
  16416. (execute): Added a check to see wether the type of peers is Data*.
  16417. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16418. * Release 0.5.0
  16419. To fix compile issue with gcc3:
  16420. * src/CancelMessage.h
  16421. (ID): Renamed as ID_t
  16422. (ID_t): New enum.
  16423. * src/RejectMessage.h
  16424. (ID): Renamed as ID_t
  16425. (ID_t): New enum.
  16426. * src/SuggestPieceMessage.h
  16427. (ID): Renamed as ID_t
  16428. (ID_t): New enum.
  16429. * src/AllowedFastMessage.h
  16430. (ID): Renamed as ID_t
  16431. (ID_t): New enum.
  16432. * src/PortMessage.h
  16433. (ID): Renamed as ID_t
  16434. (ID_t): New enum.
  16435. * src/HaveNoneMessage.h
  16436. (ID): Renamed as ID_t
  16437. (ID_t): New enum.
  16438. * src/KeepAliveMessage.h
  16439. (ID): Renamed as ID_t
  16440. (ID_t): New enum.
  16441. * src/HaveAllMessage.h
  16442. (ID): Renamed as ID_t
  16443. (ID_t): New enum.
  16444. * src/UnchokeMessage.h
  16445. (ID): Renamed as ID_t
  16446. (ID_t): New enum.
  16447. * src/BitfieldMessage.h
  16448. (ID): Renamed as ID_t
  16449. (ID_t): New enum.
  16450. * src/PieceMessage.h
  16451. (ID): Renamed as ID_t
  16452. (ID_t): New enum.
  16453. * src/RequestMessage.h
  16454. (ID): Renamed as ID_t
  16455. (ID_t): New enum.
  16456. * src/NotInterestedMessage.h
  16457. (ID): Renamed as ID_t
  16458. (ID_t): New enum.
  16459. * src/ChokeMessage.h
  16460. (ID): Renamed as ID_t
  16461. (ID_t): New enum.
  16462. * src/InterestedMessage.h
  16463. (ID): Renamed as ID_t
  16464. (ID_t): New enum.
  16465. * src/HaveMessage.h
  16466. (ID): Renamed as ID_t
  16467. (ID_t): New enum.
  16468. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16469. * src/PeerAbstractCommand.h
  16470. (beforeSocketCheck): Removed.
  16471. * src/PeerAbstractCommand.cc
  16472. Modified in order to call executeInternal() even if socket check
  16473. and upload limit check fail.
  16474. * src/PeerInteractionCommand.h
  16475. (keepAlive): Removed.
  16476. (sendKeepAlive): New function.
  16477. (checkHave): New function.
  16478. (beforeSocketCheck): Removed.
  16479. * src/PeerInteractionCommand.cc
  16480. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16481. calls to checkHave() and sendKeepAlive().
  16482. (keepAlive): Renamed to sendKeepAlive().
  16483. (sendKeepAlive): New function.
  16484. (beforeSocketCheck): Removed.
  16485. (checkHave): New function.
  16486. * src/BitfieldMan.cc
  16487. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16488. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16489. 0.
  16490. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16491. * src/TorrentMan.h
  16492. (UsedPieces): Removed.
  16493. (Pieces): New type definition.
  16494. * src/Piece.h: Updated doc.
  16495. * src/Peer.h
  16496. (totalLength): Removed.
  16497. * src/Peer.cc
  16498. (updateLatency): Fixed the latency calculation.
  16499. * src/TorrentMan.cc
  16500. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16501. than or equal to MAX_PEER_LIST_SIZE.
  16502. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16503. then return false.
  16504. (deleteOldErrorPeers): Rewritten.
  16505. (deleteUsedPiece): Fixed the miss use of STL remove.
  16506. * src/PeerInteraction.h
  16507. (Pieces): Removed.
  16508. (deleteTimeoutRequestSlot): Removed.
  16509. (deleteCompletedRequestSlot): Removed.
  16510. (checkRequestSlot): New function.
  16511. * src/PeerInteraction.cc
  16512. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16513. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16514. (checkRequestSlot): New function.
  16515. * src/DownloadEngine.cc
  16516. (run): Clear activeSockets before calling waitData().
  16517. (waitData): Removed a call to activeSockets.clear().
  16518. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16519. To attempt to handle EINTR:
  16520. * src/SocketCore.cc
  16521. (isReadable): Added EINTR handling.
  16522. (isWritable): Added EINTR handling.
  16523. To improve the performance:
  16524. * src/AbstractCommand.cc
  16525. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16526. * src/PeerInteractionCommand.h
  16527. (receiveMessage): Renamed as receiveMessages().
  16528. (receiveMessages): New function.
  16529. * src/PeerInteractionCommand.cc
  16530. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16531. () function. detectMessageFlooding() is moved here.
  16532. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16533. (). The flooding detection for have message is comment out.
  16534. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16535. Util::difftv().
  16536. (receiveMessage): Renamed as receiveMessages().
  16537. (receiveMessages): New function.
  16538. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16539. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16540. * src/SleepCommand.cc
  16541. (execute): Use Util::difftvsec() instead of Util::difftv().
  16542. * src/BitfieldMan.h
  16543. (getNthBitIndex): New function.
  16544. (hasMissingPiece): New function.
  16545. (getAllMissingIndexes): New function.
  16546. * src/BitfieldMan.cc
  16547. (countSetBit): Rewritten.
  16548. (getNthBitIndex): New function.
  16549. (getMissingIndexRandomly): Rewritten.
  16550. (hasMissingPiece): New function.
  16551. (getAllMissingIndexes): New function.
  16552. * src/TorrentMan.cc
  16553. (hasMissingPiece): New function.
  16554. (deleteUsedPiece): Rewritten using STL.
  16555. * src/PeerInteraction.cc
  16556. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16557. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16558. (addRequests): Updated the number of pending requests.
  16559. * src/PeerAbstractCommand.cc
  16560. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16561. (execute): Returns true if TorrentMan::isHalt() is true.
  16562. Corrected the condition of upload limit checking.
  16563. * src/Util.h
  16564. (countBit): New function.
  16565. * src/Util.cc
  16566. (nbits): New variable.
  16567. (countBit): New function.
  16568. * src/DownloadEngine.h
  16569. (SockCmdMap): New type definition.
  16570. (waitData): Added an argument.
  16571. (addSocket): Added an argument.
  16572. (addSocketForReadCheck): Added an argument.
  16573. (addSocketForWriteCheck): Added an argument.
  16574. * src/DownloadEngine.cc
  16575. (run): Executes only commands whose sockets are ready to read or write.
  16576. All commands are executed in every 1 second.
  16577. (waitData): Calls select() again if it returned
  16578. EINTR.
  16579. (addSocket): Saves socket and command object pair to the map.
  16580. (deleteSocket): Deletes socket and command object pair from the map.
  16581. (addSocketForReadCheck): Added an argument.
  16582. (addSocketForWriteCheck): Added an argument.
  16583. * src/DownloadCommand.cc
  16584. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16585. To send "event=stopped" to the tracker when the application finishes:
  16586. * src/PeerChokeCommand.h
  16587. (checkPoint): New variable.
  16588. * src/PeerChokeCommand.cc
  16589. (PeerChokeCommand): Added the initialization of checkPoint.
  16590. (execute): The interval check is now done by checkPoint, not
  16591. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16592. * src/TorrentMan.h
  16593. (halt): New function.
  16594. (hasMissingPiece): New function.
  16595. (isHalt): New function.
  16596. (setHalt): New function.
  16597. * src/TorrentMan.cc
  16598. (TorrentMan): Added the initialization of halt.
  16599. * src/TorrentAutoSaveCommand.h
  16600. (checkPoint): New variable.
  16601. * src/PeerListenCommand.cc
  16602. (execute): Returns true if TorrentMan::isHalt() is true.
  16603. * src/main.cc
  16604. (setSignalHander): Added flags argument.
  16605. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16606. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16607. Removed printDownloadAbortMessage() after torrent downloading loop.
  16608. * src/TorrentAutoSaveCommand.cc
  16609. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16610. (execute): Returns true if TorrentMan::isHalt() is true.
  16611. The interval check is now done by checkPoint, not SleepCommand.
  16612. * src/TrackerWatcherCommand.cc
  16613. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16614. event=stopped.
  16615. * src/TrackerUpdateCommand.cc
  16616. (prepareForRetry): Do not use SleepCommand here.
  16617. (execute): Returns true if TorrentMan::isHalt() is true.
  16618. Others:
  16619. * src/TorrentMan.cc
  16620. (getMissingPieceIndex): Updated log message.
  16621. * src/PeerInteraction.cc
  16622. (createPeerMessag): Updated log message.
  16623. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16624. To add the ability to download several pieces in mix in a command and
  16625. increase the number of request slots according to request-cancel
  16626. latency:
  16627. * src/PeerInteractionCommand.cc
  16628. (executeInternal): The number of messages to be received at a time
  16629. is increased from 10 to 50.
  16630. * src/LogFactory
  16631. (getInstance): Added NullLogger.
  16632. * src/NullLogger.h: New class.
  16633. * src/BitfieldMan.h
  16634. (getMissingIndex): New function.
  16635. * src/BitfieldMan.cc
  16636. (getMissingIndex): New function.
  16637. * src/TorrentMan.h
  16638. (checkOutPiece): New function.
  16639. (getMissingPieceIndex): New function.
  16640. (getMissingFastPieceIndex): New function.
  16641. (getMissingFastPiece): New function.
  16642. * src/TorrentMan.cc
  16643. (updatePiece): Rewritten using STL.
  16644. (syncPiece): Rewritten using STL.
  16645. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16646. checkOutPiece().
  16647. (getMissingPieceIndex): New function.
  16648. (getMissingFastPieceIndex): New function.
  16649. (getMissingFastPiece): New function.
  16650. (checkOutPiece): New function.
  16651. * src/PeerInteraction.h
  16652. (Pieces): New type definition.
  16653. (piece): Removed.
  16654. (pieces): New variable.
  16655. (getNewPieceAndSendInterest): Added the "piece" argument.
  16656. (abortPiece): Added the "piece" argument.
  16657. (abortAllPieces): New function.
  16658. (isInRequestSlot): New function.
  16659. (hasDownloadPiece): Added the "index" argument.
  16660. (setDownloadPiece): Removed.
  16661. (getDownloadPiece): Added the "index" argument.
  16662. (updatePiece): New function.
  16663. (createRequestMessage): Added the "index" argument.
  16664. * src/PeerInteraction.cc
  16665. (onChoked): Rewritten.
  16666. (abortPiece): Rewirtten.
  16667. (abortAllPieces): New function.
  16668. (deleteTimeoutRequestSlot): Rewritten.
  16669. Clarified code a little bit.
  16670. (deleteCompletedRequestSlot): Rewritten.
  16671. (isInRequestSlot): New function.
  16672. (syncPiece): Rewritten.
  16673. (updatePiece): New function.
  16674. (getNewPieceAndSendInterest): Rewritten.
  16675. (addRequests): Rewritten.
  16676. (getDownloadPiece): Rewritten.
  16677. (hasDownloadPiece): Rewritten.
  16678. (createRequestMessage): Added the "index" argument.
  16679. * src/common.h
  16680. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16681. (DIV_FLOOR): New definition.
  16682. * src/PieceMessage.cc
  16683. (receivedAction): Update request-piece latency here.
  16684. * src/RequestSlot.h
  16685. (getLatencyInMillis): New function.
  16686. * src/RequestSlot.cc
  16687. (isTimeout): Rewritten using getLatencyInMillis.
  16688. (getLatencyInMillis): New function.
  16689. * src/Piece.h
  16690. (operator==): New function.
  16691. (getMissingBlockIndex): New function.
  16692. * src/Piece.cc
  16693. (operator==): New function.
  16694. (getMissingBlockIndex): New function.
  16695. * src/Peer.h
  16696. (DEFAULT_LATENCY): New definition.
  16697. (latency): New variable.
  16698. (updateLatency): New function.
  16699. (getLatency): New function.
  16700. * src/Peer.cc
  16701. (resetStatus): Reset latecy.
  16702. (updateLatency): New function.
  16703. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16704. * src/SocketCore.cc
  16705. (isReadable): Added secure to the condition.
  16706. * src/HttpConnection.cc
  16707. (receiveResponse): Fixed a bug that causes no response header
  16708. exception.
  16709. * src/Peer.h
  16710. (getFastSet): Fixed the return value type.
  16711. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16712. To remove a wait from download loop:
  16713. * src/DownloadEngine.cc
  16714. (run): Comment out shortSleep.
  16715. To rewrite the message handling:
  16716. * src/SimplePeerMessage.h: New class.
  16717. * src/SimplePeerMessage.cc: New class.
  16718. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16719. (msg): New variable.
  16720. (create): New function.
  16721. (send): Removed.
  16722. (getMessage): New function.
  16723. (getMessageLength): New function.
  16724. * src/CancelMessage.cc
  16725. (create): New function.
  16726. (receivedAction): Replaced deleteRequestMessageInQueue with
  16727. rejectPieceMessageInQueue.
  16728. (send): Removed.
  16729. (getMessage): New function.
  16730. (getMessageLength): New function.
  16731. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16732. (msg): New variable.
  16733. (msgLength): New variable.
  16734. (~BitfieldMessage): Deleted msg.
  16735. (send): Removed.
  16736. (getMessage): New function.
  16737. (getMessageLength): New function.
  16738. * src/BitfieldMessage.cc
  16739. (create): New function.
  16740. (send): Removed.
  16741. (getMessage): New function.
  16742. (getMessageLength): New function.
  16743. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16744. (msg): New variable.
  16745. (sendPredicate): New function.
  16746. (onSendComplete): New function.
  16747. (send): Removed.
  16748. (getMessage): New function.
  16749. (getMessageLength): New function.
  16750. (create): New function.
  16751. * src/ChokeMessage.cc
  16752. (create): New function.
  16753. (send): Removed.
  16754. (sendPredicate): New function.
  16755. (getMessage): New function.
  16756. (getMessageLength): New function.
  16757. (onSendComplete): New function.
  16758. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16759. (msg): New variable.
  16760. (send): Removed.
  16761. (getMessage): New function.
  16762. (getMessageLength): New function.
  16763. * src/KeepAliveMessage.cc
  16764. (send): Removed.
  16765. (getMessage): New function.
  16766. (getMessageLength): New function.
  16767. * src/PortMessage.h
  16768. (create): New function.
  16769. (receivedAction): Updated log message.
  16770. * src/PortMessage.cc: New file.
  16771. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16772. (msg): New variable.
  16773. (sendPredicate): New function.
  16774. (onSendComplete): New function.
  16775. (create): New function.
  16776. (send): Removed.
  16777. (getMessage): New function.
  16778. (getMessageLength): New function.
  16779. * src/UnchokeMessage.cc
  16780. (create): New function.
  16781. (send): Removed.
  16782. (sendPredicate): New function.
  16783. (getMessage): New function.
  16784. (getMessageLength): New function.
  16785. (onSendComplete): New function.
  16786. * src/PieceMessage.h
  16787. (leftPieceDataLength): Removed.
  16788. (leftDataLength): New variable.
  16789. (headerSend): New variable.
  16790. (pendingCount): New variable.
  16791. (msgHeader): New variable.
  16792. (sendPieceData): New function.
  16793. (incrementPendingCount): New function.
  16794. (isPendingCountMax): New function.
  16795. (create): New function.
  16796. (getMessageHeader): New function.
  16797. (getMessageHeaderLength): New function.
  16798. * src/PieceMessage.cc
  16799. (create): New function.
  16800. (getMessageHeader): New function.
  16801. (getMessageHeaderLength): New function.
  16802. (send): Rewritten.
  16803. (sendPieceData): New function.
  16804. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16805. (msg): New variable.
  16806. (create): New function.
  16807. (getMessage): New function.
  16808. (getMessageLength): New function.
  16809. * src/HaveMessage.cc
  16810. (create): New function.
  16811. (send): Removed.
  16812. (sendPieceData): New function.
  16813. (getMessage): New function.
  16814. (getMessageLength): New function.
  16815. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16816. (msg): New variable.
  16817. (create): New function.
  16818. (send): Removed.
  16819. (getMessage): New function.
  16820. (getMessageLength): New function.
  16821. * src/RequestMessage.cc
  16822. (create): New function.
  16823. (receivedAction): Added the handling of fast extension.
  16824. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16825. (send): Removed.
  16826. (getMessage): New function.
  16827. (getMessageLength): New function.
  16828. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16829. (msg): New variable.
  16830. (sendPredicate): New function.
  16831. (onSendComplete): New function.
  16832. (create): New function.
  16833. (getMessage): New function.
  16834. (getMessageLength): New function.
  16835. * src/InterestedMessage.cc
  16836. (create): New function.
  16837. (send): Removed.
  16838. (sendPieceData): New function.
  16839. (getMessage): New function.
  16840. (getMessageLength): New function.
  16841. (onSendComplete): New function.
  16842. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16843. (msg): New variable.
  16844. (sendPieceData): New function.
  16845. (onSendComplete): New function.
  16846. (create): New function.
  16847. (send): Removed.
  16848. (getMessage): New function.
  16849. (getMessageLength): New function.
  16850. * src/NotInterestedMessage.cc
  16851. (create): New function.
  16852. (send): Removed.
  16853. (sendPredicate): New function.
  16854. (getMessage): New function.
  16855. (getMessageLength): New function.
  16856. (onSendComplete): New function.
  16857. * src/AllowedFastMessage.h: New class.
  16858. * src/AllowedFastMessage.cc: New class.
  16859. * src/RejectMessage.h: New class.
  16860. * src/RejectMessage.cc: New class.
  16861. * src/SuggestPieceMessage.h: New class.
  16862. * src/SuggestPieceMessage.cc: New class.
  16863. * src/HaveAllMessage.h: New class.
  16864. * src/HaveAllMessage.cc: New class.
  16865. * src/HaveNoneMessage.h: New class.
  16866. * src/HaveNoneMessage.cc: New class.
  16867. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16868. (msg): New variable.
  16869. (reserved): New variable.
  16870. (create): New function.
  16871. (getId): New function.
  16872. (receivedAction): New function.
  16873. (getMessage): New function.
  16874. (getMessageLength): New function.
  16875. (isFastExtensionSupported): New function.
  16876. * src/HandshakeMessage.cc
  16877. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16878. (create): New function.
  16879. (getMessage): New function.
  16880. (getMessageLength): New function.
  16881. (toString): Added the output of reserved field.
  16882. (check): Added const qualifier.
  16883. (isFastExtensionSupported): New function.
  16884. * src/PeerMessageUtil.h
  16885. (createChokeMessage): Removed.
  16886. (createUnchokeMessage): Removed.
  16887. (createInterestedMessage): Removed.
  16888. (createNotInterestedMessage): Removed.
  16889. (createHaveMessage): Removed.
  16890. (createBitfieldMessage): Removed.
  16891. (createRequestMessage): Removed.
  16892. (createCancelMessage): Removed.
  16893. (createPieceMessage): Removed.
  16894. (createPortMessage): Removed.
  16895. (createChokeMessage): Removed.
  16896. (createUnchokeMessage): Removed.
  16897. (createInterestedMessage): Removed.
  16898. (createNotInterestedMessage): Removed.
  16899. (createHaveMessage): Removed.
  16900. (createBitfieldMessage): Removed.
  16901. (createRequestMessage): Removed.
  16902. (createCancelMessage): Removed.
  16903. (createPieceMessage): Removed.
  16904. (createKeepAliveMessage): Removed.
  16905. (createHandshakeMessage): Removed.
  16906. (setIntParam): New function.
  16907. (createPeerMessageString): New function.
  16908. * src/PeerMessageUtil.cc
  16909. (createChokeMessage): Removed.
  16910. (createUnchokeMessage): Removed.
  16911. (createInterestedMessage): Removed.
  16912. (createNotInterestedMessage): Removed.
  16913. (createHaveMessage): Removed.
  16914. (createBitfieldMessage): Removed.
  16915. (createRequestMessage): Removed.
  16916. (createCancelMessage): Removed.
  16917. (createPieceMessage): Removed.
  16918. (createPortMessage): Removed.
  16919. (createRequestMessage): Removed.
  16920. (createCancelMessage): Removed.
  16921. (createPieceMessage): Removed.
  16922. (createHaveMessage): Removed.
  16923. (createChokeMessage): Removed.
  16924. (createUnchokeMessage): Removed.
  16925. (createInterestedMessage): Removed.
  16926. (createNotInterestedMessage): Removed.
  16927. (createBitfieldMessage): Removed.
  16928. (createKeepAliveMessage): Removed.
  16929. (createHandshakeMessage): Removed.
  16930. (setIntParam): New function.
  16931. (createPeerMessageString): New function.
  16932. * src/PeerConnection.h
  16933. (peer): Removed.
  16934. (torrentMan): Removed.
  16935. (createNLengthMessage): Removed.
  16936. (setIntParam): Removed.
  16937. (writeOutgoingMessageLog): Removed all overloaded functions.
  16938. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16939. (sendMessage): New function.
  16940. (sendHandshake): Removed.
  16941. (sendKeepAlive): Removed.
  16942. (sendChoke): Removed.
  16943. (sendUnchoke): Removed.
  16944. (sendInterested): Removed.
  16945. (sendNotInterested): Removed.
  16946. (sendHave): Removed.
  16947. (sendBitfield): Removed.
  16948. (sendRequest): Removed.
  16949. (sendPiece): Removed.
  16950. (sendPieceHeader): Removed.
  16951. (sendPieceData): Removed.
  16952. (sendCancel): Removed.
  16953. (getPeer): Removed.
  16954. * src/PeerConnection.cc
  16955. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16956. (sendHandshake): Removed.
  16957. (sendKeepAlive): Removed.
  16958. (createNLengthMessage): Removed.
  16959. (setIntParam): Removed.
  16960. (writeOutgoingMessageLog): Removed all overloaded functions.
  16961. (sendChoke): Removed.
  16962. (sendUnchoke): Removed.
  16963. (sendInterested): Removed.
  16964. (sendNotInterested): Removed.
  16965. (sendHave): Removed.
  16966. (sendBitfield): Removed.
  16967. (sendRequest): Removed.
  16968. (sendPiece): Removed.
  16969. (sendPieceHeader): Removed.
  16970. (sendPieceData): Removed.
  16971. (sendMessage): New function.
  16972. (sendCancel): Removed.
  16973. * src/PeerInteractionCommand.cc
  16974. (PeerInteractionCommand): Call setUploadLimit.
  16975. (executeInternal): Call setUploadLimit.
  16976. Added the handling of "inProgress" state of handshake message.
  16977. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16978. sendNow().
  16979. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16980. sendNow().
  16981. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16982. * src/TorrentMan.h
  16983. (PEER_ID_LENGTH): New definition.
  16984. (hasAllPieces): New function.
  16985. * src/TorrentMan.cc
  16986. (getMissingPiece): Added the handling of fast extension.
  16987. (cancelPiece): Call updatePiece().
  16988. (hasAllPieces): New function.
  16989. * src/PeerInteraction.h
  16990. (fastSet): New variable.
  16991. (getNewPieceAndSendInterest): Changed the return type to void.
  16992. (send): Renamed as sendMessages.
  16993. (deleteAllRequestSlot): Removed.
  16994. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16995. (cancelAllRequest): Removed all overloaded functions.
  16996. (deleteAllRequestSlot): Removed.
  16997. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16998. (rejectPieceMessageInQueue): New function.
  16999. (rejectAllPieceMessageInQueue): New function.
  17000. (onChoked): New function.
  17001. (isSendingMessageInProgress): New function.
  17002. (getCorrespondingRequestSlot): Changed its arguments.
  17003. (isInFastSet): New function.
  17004. (addFastSetIndex): New function.
  17005. (addRequests): New function.
  17006. (sendNow): Removed.
  17007. (trySendNow): Removed.
  17008. (sendBitfield): New function.
  17009. (sendAllowdFast): New function.
  17010. (createHaveAllMessage): New function.
  17011. (createHaveNoneMessage): New function.
  17012. (createRejectMessage): New function.
  17013. (createAllowedFastMessage): New function.
  17014. * src/PeerInteraction.cc
  17015. (send): Renamed as sendMessages.
  17016. (sendMessages): New function.
  17017. (MsgPushBack): New class.
  17018. (isSendingMessageInProgress): New function.
  17019. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17020. (rejectAllPieceMessageInQueue): New function.
  17021. Added the handling of fast extension.
  17022. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17023. (rejectPieceMessageInQueue): New function.
  17024. Added the handling of fast extension.
  17025. (deleteRequestSlot): Replaced for loop with std::find.
  17026. (onChoked): New function.
  17027. (deleteAllRequestSlot): Removed.
  17028. (abortPiece): Rewirtten.
  17029. (deleteTimeoutRequestSlot): Updated log messages.
  17030. (getCorrespondingRequestSlot): Changed its arguments.
  17031. (cancelAllRequest): Removed all overloaded functions.
  17032. (receiveHandshake): Added the check to see whether an incoming peer
  17033. supports fast extension.
  17034. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17035. PeerMessageUtil.
  17036. (createPeerMessage): Use create() of each message class instead of
  17037. PeerMessageUtil.
  17038. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17039. AllowedFastMessage were added.
  17040. (getNewPieceAndSendInterest): Changed its return value type to void.
  17041. Added the handling of fast extension.
  17042. (addRequests): New function.
  17043. (sendNow): Removed.
  17044. (sendHandshake): Rewritten.
  17045. (trySendNow): Removed.
  17046. (sendBitfield): New function.
  17047. (sendAllowdFast): New function.
  17048. (isInFastSet): New function.
  17049. (addFastSetIndex): New function.
  17050. (createRequestMessage): Use RequestMessage::create instead of
  17051. PeerMessageUtil.
  17052. (createCancelMessage): Use CancelMessage::create instead of
  17053. PeerMessageUtil.
  17054. (createPieceMessage): Use PieceMessage::create instead of
  17055. PeerMessageUtil.
  17056. (createHaveMessage): Use HaveMessage::create instead of
  17057. PeerMessageUtil.
  17058. (createChokeMessage): Use ChokeMessage::create instead of
  17059. PeerMessageUtil.
  17060. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17061. PeerMessageUtil.
  17062. (createInterestedMessage): Use InterestedMessage::create instead of
  17063. PeerMessageUtil.
  17064. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17065. of PeerMessageUtil.
  17066. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17067. PeerMessageUtil.
  17068. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17069. PeerMessageUtil.
  17070. (createHaveAllMessage): New function.
  17071. (createHaveNoneMessage): New function.
  17072. (createRejectMessage): New function.
  17073. (createAllowedFastMessage: New function.
  17074. * src/Util.h
  17075. (sha1Sum): New function.
  17076. (computeFastSet): New function.
  17077. * src/Util.cc
  17078. (sha1Sum): New function.
  17079. (computeFastSet): New function.
  17080. * src/Peer.h
  17081. (fastExtensionEnabled): New variable.
  17082. (fastSet): New variable.
  17083. (setAllBitfield): New function.
  17084. (setFastExtensionEnabled): New function.
  17085. (isFastExtensionEnabled): New function.
  17086. (addFastSetIndex): New function.
  17087. (getFastSet): New function.
  17088. (isInFastSet): New function.
  17089. (countFastSet): New function.
  17090. * src/Peer.cc
  17091. (isInFastSet): New function.
  17092. (addFastSetIndex): New function.
  17093. (setAllBitfield): New function.
  17094. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17095. sockets.
  17096. * src/PeerAbstractCommand.cc
  17097. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17098. and uploadLimit.
  17099. (execute): Changed the procedure of checking sockets. The upload speed
  17100. checking were added.
  17101. (setUploadLimit): New function.
  17102. (setUploadLimitCheck): New function.
  17103. * src/PeerAbstractCommand.h
  17104. (setUploadLimit): New function.
  17105. (setUploadLimitCheck): New function.
  17106. (uploadLimit): New variable.
  17107. (uploadLimitCheck): New variable.
  17108. To contact a tracker regularly:
  17109. * src/TrackerWatcherCommand.h (interval): New variable.
  17110. (checkPoint): New variable.
  17111. (TrackerWatcherCommand): Added interval argument.
  17112. * src/TrackerWatcherCommand.cc
  17113. (TrackerWatcherCommand): Initialized checkPoint.
  17114. (execute): Now a tracker is contacted in every specified period.
  17115. If peer list is not needed, send request with numwant=0.
  17116. * src/TrackerUpdateCommand.cc
  17117. (execute): Updated log messages.
  17118. * src/DownloadEngine.cc
  17119. (~DownloadEngine): Removed two asserts.
  17120. (waitData): Uncommented wfds. May be a bug fix.
  17121. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17122. * src/PeerInteractionCommand.h
  17123. (checkInactiveConnection): Removed.
  17124. * src/PeerInteractionCommand.cc
  17125. (executeInternal): Removed following function calls:
  17126. detectMessageFlooding(), checkLongTimePeerChoking and
  17127. checkInactiveConnection().
  17128. (checkInactiveConnection): Removed.
  17129. (detectMessageFlooding): Removed function call to
  17130. checkInactiveConnection().
  17131. * src/PeerMessageUtil.h
  17132. (createChokeMessage): New function. Overload.
  17133. (createUnchokeMessage): New function. Overload.
  17134. (createInterestedMessage): New function. Overload.
  17135. (createNotInterestedMessage): New function. Overload.
  17136. (createHaveMessage): New function. Overload.
  17137. (createBitfieldMessage): New function. Overload.
  17138. (createRequestMessage): New function. Overload.
  17139. (createCancelMessage): New function. Overload.
  17140. (createPieceMessage): New function. Overload.
  17141. (createKeepAliveMessage): New function. Overload.
  17142. * src/PeerMessageUtil.cc
  17143. (createChokeMessage): New function. Overload.
  17144. (createUnchokeMessage): New function. Overload.
  17145. (createInterestedMessage): New function. Overload.
  17146. (createNotInterestedMessage): New function. Overload.
  17147. (createHaveMessage): New function. Overload.
  17148. (createBitfieldMessage): New function. Overload.
  17149. (createRequestMessage): New function. Overload.
  17150. (createCancelMessage): New function. Overload.
  17151. (createPieceMessage): New function. Overload.
  17152. (createKeepAliveMessage): New function. Overload.
  17153. * src/SendMessageQueue.cc
  17154. (createRequestMessage): Use PeerMessageUtil.
  17155. (createCancelMessage): Use PeerMessageUtil.
  17156. (createPieceMessage): Use PeerMessageUtil.
  17157. (createHaveMessage): Use PeerMessageUtil.
  17158. (createChokeMessage): Use PeerMessageUtil.
  17159. (createUnchokeMessage): Use PeerMessageUtil.
  17160. (createInterestedMessage): Use PeerMessageUtil.
  17161. (createNotInterestedMessage): Use PeerMessageUtil.
  17162. (createBitfieldMessage): Use PeerMessageUtil.
  17163. (createKeepAliveMessage): Use PeerMessageUtil.
  17164. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17165. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17166. * src/PeerInteraction.h: New class.
  17167. * src/PeerInteraction.cc: New class.
  17168. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17169. Each peer message has its own class.
  17170. * src/PendingMessages.h: Removed.
  17171. * src/PendingMessages.cc: Removed. The sending process was moved to
  17172. each message class.
  17173. * src/RequestSlotMan.h: Removed.
  17174. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17175. SendMessageQueue.
  17176. * src/RequestMessage.h: New class.
  17177. * src/RequestMessage.cc: New class.
  17178. * src/CancelMessage.h: New class.
  17179. * src/CancelMessage.cc: New class.
  17180. * src/BitfieldMessage.h: New class.
  17181. * src/BitfieldMessage.cc: New class.
  17182. * src/ChokeMessage.h: New class.
  17183. * src/ChokeMessage.cc: New class.
  17184. * src/KeepAliveMessage.h: New class.
  17185. * src/KeepAliveMessage.cc: New class.
  17186. * src/PortMessage.h: New class.
  17187. * src/UnchokeMessage.h: New class.
  17188. * src/UnchokeMessage.cc: New class.
  17189. * src/PieceMessage.h: New class.
  17190. * src/PieceMessage.cc: New class.
  17191. * src/HaveMessage.h: New class.
  17192. * src/HaveMessage.cc: New class.
  17193. * src/BitfieldMessage.h: New class.
  17194. * src/BitfieldMessage.cc: New class.
  17195. * src/NotInterestedMessage.h: New class.
  17196. * src/NotInterestedMessage.cc: New class.
  17197. * src/InterestedMessage.h: New class.
  17198. * src/InterestedMessage.cc: New class.
  17199. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17200. (getSendMessageQueue): New function.
  17201. (setSendMessageQueue): New function.
  17202. * src/HandshakeMessage.cc: New class.
  17203. * src/PeerConnection.h (receiveMessage): Changed return value and
  17204. arguments.
  17205. (receiveHandshake): Changed return value and arguments.
  17206. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17207. here.
  17208. (receiveHandshake): Do not create handshake class here.
  17209. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17210. (piece): Removed.
  17211. (syncPiece): Removed.
  17212. (sendInterest): Removed.
  17213. (sendMessages): Removed.
  17214. (createRequestPendingMessage): Removed.
  17215. (checkPieceHash): Removed.
  17216. (erasePieceOnDisk): Removed.
  17217. (getNewPieceAndSendInterest): Removed.
  17218. (onGotNewPice): Removed.
  17219. (onGotWrongPiece): Removed.
  17220. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17221. Removed peerConnection, piece.
  17222. (~PeerInteractionCommand): Removed peerConnection.
  17223. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17224. (syncPiece): Moved to SendMessageQueue.
  17225. (decideChoking): Removed PendingMessage.
  17226. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17227. The action after receiving peer message was moved to each message
  17228. class.
  17229. (onGotNewPice): Moved to SendMessageQueue.
  17230. (onGotWrongPiece): Moved to SendMessageQueue.
  17231. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17232. (sendInterest): Moved to SendMessageQueue.
  17233. (createRequestPendingMessage): Removed.
  17234. (sendMessages): Moved to SendMessageQueue.
  17235. (onAbort): Use SendMessageQueue::abortPiece()
  17236. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17237. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17238. (checkPieceHash): Moved to SendMessageQueue.
  17239. (erasePieceOnDisk): Moved to SendMessageQueue.
  17240. * src/PeerMessageUtil.h
  17241. (createBitfieldMessage): Removed.
  17242. (createHaveMessage): Changed return value and arguments.
  17243. (createBitfieldMessage): Changed return value and arguments.
  17244. (createRequestCancelMessage): Removed.
  17245. (createPieceMessage): Changed return value and arguments.
  17246. (getShortIntParam): New function.
  17247. (checkIndex): Changed arguments.
  17248. (checkBegin): Changed arguments.
  17249. (checkLength): Changed arguments.
  17250. (checkPieceOffset): Removed.
  17251. (checkRange): New function.
  17252. (checkBitfield): Changed arguments.
  17253. (createPeerMessage): Removed.
  17254. (checkIntegrity): Removed.
  17255. (createHandshakeMessage): Changed arguments.
  17256. (createChokeMessage): New function.
  17257. (createUnchokeMessage): New function.
  17258. (createInterestedMessage): New function.
  17259. (createNotInterestedMessage): New function.
  17260. (createRequestMessage): New function.
  17261. (createCancelMessage): New function.
  17262. (createPortMessage): New function.
  17263. * src/PeerMessageUtil.cc
  17264. (createBitfieldMessage): Removed.
  17265. (createHaveMessage): Changed return value and arguments.
  17266. (createBitfieldMessage): Changed return value and arguments.
  17267. (createRequestCancelMessage): Removed.
  17268. (createPieceMessage): Changed return value and arguments.
  17269. (getShortIntParam): New function.
  17270. (checkIndex): Changed arguments.
  17271. (checkBegin): Changed arguments.
  17272. (checkLength): Changed arguments.
  17273. (checkPieceOffset): Removed.
  17274. (checkRange): New function.
  17275. (checkBitfield): Changed arguments.
  17276. (createPeerMessage): Removed.
  17277. (checkIntegrity): Removed.
  17278. (createHandshakeMessage): Changed arguments.
  17279. (createChokeMessage): New function.
  17280. (createUnchokeMessage): New function.
  17281. (createInterestedMessage): New function.
  17282. (createNotInterestedMessage): New function.
  17283. (createRequestMessage): New function.
  17284. (createCancelMessage): New function.
  17285. (createPortMessage): New function.
  17286. * src/PeerMessage.h
  17287. (id): Removed.
  17288. (index): Removed.
  17289. (begin): Removed.
  17290. (length): Removed.
  17291. (bitfield): Removed.
  17292. (bitfieldLength): Removed.
  17293. (block): Removed.
  17294. (blockLength): Removed.
  17295. (inProgress): New variable.
  17296. (cuid): New variable.
  17297. (peer): New variable.
  17298. (sendMessageQueue): New variable.
  17299. (logger): New variable.
  17300. (setBitfield): Removed.
  17301. (getBitfield): Removed.
  17302. (setBlock): Removed.
  17303. (getBlock): Removed.
  17304. (getBitfieldLength): Removed.
  17305. (getBlockLength): Removed.
  17306. (isInProgress): New function.
  17307. (toString): Made pure virtual.
  17308. (check): New function.
  17309. (send): New function.
  17310. (receivedAction): New function.
  17311. (getId): Made pure virtual.
  17312. (setId): Removed.
  17313. (getIndex): Removed.
  17314. (setIndex): Removed.
  17315. (getBegin): Removed.
  17316. (setBegin): Removed.
  17317. (getLength): Removed.
  17318. (setLength): Removed.
  17319. (getCuid): New function.
  17320. (setCuid): New function.
  17321. (getPeer): New function.
  17322. (setPeer): New function.
  17323. (getSendMessageQueue): New function.
  17324. (setSendMessageQueue): New function.
  17325. (ID): Removed.
  17326. * src/PeerMessage.cc
  17327. (setBitfield): Removed.
  17328. (setBlock): Removed.
  17329. (toString): Removed.
  17330. * src/TorrentMan.h
  17331. (getPieceLength): New function.
  17332. (getPieceLength): New function.
  17333. * src/SendMessageQueue.h
  17334. (REQUEST_TIME_OUT): New definition.
  17335. (RequestSlots): New definition.
  17336. (MessageQueue): New definition.
  17337. (requestSlotMan): Removed.
  17338. (pendingMessages): Removed.
  17339. (requestSlots): New variable.
  17340. (messageQueue): New variable.
  17341. (torrentMan): New variable.
  17342. (peerConnection): New variable.
  17343. (peer): New variable.
  17344. (piece): New variable.
  17345. (getNewPieceAndSendInterest): New function.
  17346. (createPeerMessage): New function.
  17347. (createHandshakeMessage): New function.
  17348. (send): Made private.
  17349. (setPeerMessageCommonProperty): New function.
  17350. (deleteAllRequestSlot): New function.
  17351. (deleteRequestMessageInQueue): New function.
  17352. (cancelAllRequest): Made private.
  17353. (cancelAllRequest): Made private.
  17354. (countRequestSlot): Made private.
  17355. (addPendingMessage): Removed.
  17356. (deletePendingPieceMessage): Removed.
  17357. (deletePendingRequestMessage): Removed.
  17358. (addMessage): New function.
  17359. (deletePieceMessageInQueue): New function.
  17360. (deleteTimeoutRequestSlot): Changed argument.
  17361. (deleteCompletedRequestSlot): Changed argument.
  17362. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17363. (getCorrespondingRequestSlot): New function.
  17364. (countPendingMessage): Removed.
  17365. (countMessageInQueue): New function.
  17366. (getTorrentMan): New function.
  17367. (getPeerConnection): New function.
  17368. (hasDownloadPiece): New function.
  17369. (getDownloadPiece): New function.
  17370. (setDownloadPiece): New function.
  17371. (syncPiece): New function.
  17372. (sendMessages): New function.
  17373. (sendNow): New function.
  17374. (trySendNow): New function.
  17375. (abortPiece): New function.
  17376. (sendHandshake): New function.
  17377. (receiveMessage): New function.
  17378. (receiveHandshake): New function.
  17379. (createRequestMessage): New function.
  17380. (createCancelMessage): New function.
  17381. (createPieceMessage): New function.
  17382. (createHaveMessage): New function.
  17383. (createChokeMessage): New function.
  17384. (createUnchokeMessage): New function.
  17385. (createInterestedMessage): New function.
  17386. (createNotInterestedMessage): New function.
  17387. (createBitfieldMessage): New function.
  17388. (createKeepAliveMessage): New function.
  17389. * src/SendMessageQueue.cc
  17390. (SendMessageQueue): Removed requestSlotMan.
  17391. Instantiated peerConnection here.
  17392. (~SendMessageQueue): Removed requestSlotMan.
  17393. Added deletion of peerConnection and the contents of messageQueue.
  17394. (send): Updated according to the change of messageQueue.
  17395. (addPendingMessage): Renamed to addMessage.
  17396. (addMessage): New function.
  17397. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17398. (deletePieceMessageInQueue): New function.
  17399. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17400. (deleteRequestMessageInQueue): New function.
  17401. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17402. here.
  17403. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17404. (...) was moved here.
  17405. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17406. moved here.
  17407. (deleteCompletedRequestSlot):
  17408. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17409. (getCorrespondingRequestSlot):
  17410. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17411. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17412. (countPendingMessage): Renamed to countMessageInQueue.
  17413. (countMessageInQueue): New function.
  17414. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17415. (receiveHandshake): New function.
  17416. (createHandshakeMessage): New function.
  17417. (receiveMessage): New function.
  17418. (createPeerMessage): New function.
  17419. (syncPiece): New function.
  17420. (getNewPieceAndSendInterest): New function.
  17421. (sendMessages): New function.
  17422. (sendNow): New function.
  17423. (trySendNow): New function.
  17424. (sendHandshake): New function.
  17425. (abortPiece): New function.
  17426. (getDownloadPiece): New function.
  17427. (getPeerMessageCommonProperty): New function.
  17428. (createRequestMessage): New function.
  17429. (createCancelMessage): New function.
  17430. (createPieceMessage): New function.
  17431. (createHaveMessage): New function.
  17432. (createChokeMessage): New function.
  17433. (createUnchokeMessage): New function.
  17434. (createInterestedMessage): New function.
  17435. (createNotInterestedMessage): New function.
  17436. (createBitfieldMessage): New function.
  17437. (createKeepAliveMessage): New function.
  17438. To add simple Content-Disposition support:
  17439. * src/HttpResponseCommand.h (determinFilename): New function.
  17440. * src/HttpResponseCommand.cc (executeInternal):
  17441. Use determinFilename(headers) instead of req->getFile() when comparing
  17442. filename.
  17443. (determinFilename): New function.
  17444. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17445. req->getFile().
  17446. (handleOtherEncoding): Use determinFilename(headers) instead of
  17447. req->getFile().
  17448. * src/Util.h (getContentDispositionFilename): New function.
  17449. * src/Util.cc (getContentDispositionFilename): New function.
  17450. * src/LogFactory.h (release): New function.
  17451. * src/LogFactory.cc (release): New function.
  17452. To fix a bug that causes out-of-bound exception when HTTP status
  17453. line is wrong:
  17454. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17455. size.
  17456. * src/common.h (Deleter): New class.
  17457. * src/SegmentMan.cc
  17458. (~SegmentMan): Added deletion of splitter and diskWriter.
  17459. * src/DownloadEngine.h
  17460. (Commands): Use deque.
  17461. (clearQueue): New function.
  17462. * src/DownloadEngine.cc
  17463. (~DownloadEngine): Added deletion of segmentMan.
  17464. (cleanQueue): New function.
  17465. * src/TorrentDownloadEngine.h
  17466. (TorrentDownloadEngine): The implementation was moved to
  17467. TorrentDownloadEngine.cc.
  17468. (~TorrentDownloadEngine): The implementation was moved to
  17469. TorrentDownloadEngine.cc.
  17470. * src/TorrentDownloadEngine.cc
  17471. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17472. * src/main.cc
  17473. (clearRequest): Removed.
  17474. (handler): Added deletion of e.
  17475. (torrentHandler): Added deletion of te.
  17476. (main): Do not share splitter.
  17477. Use Deleter instead of clearRequest.
  17478. Deletion of classes were updated.
  17479. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17480. * src/main.cc (main): Fixed typo.
  17481. * src/message.h: Fixed typo.
  17482. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17483. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17484. To add --select-file command-line option:
  17485. * src/Util.cc
  17486. (unfoldRange): New function.
  17487. (getNum): New function.
  17488. (unfoldSubRange): New function
  17489. * src/main.cc
  17490. (showUsage): Added help message.
  17491. (main): Added --select-file command-line option. Updated the layout of
  17492. file listing.
  17493. * src/common.h
  17494. (Integers): New definition.
  17495. * src/SocketCore.cc
  17496. (writeData): Removed timeout argument.
  17497. (readData): Removed timeout argument.
  17498. (peekData): Removed timeout argument.
  17499. * src/Socket.cc
  17500. (writeData): Removed timeout argument.
  17501. (readData): Removed timeout argument.
  17502. (peekData): Removed timeout argument.
  17503. * Release 0.4.1
  17504. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17505. To deploy upload rate based choking algorithm:
  17506. * src/PeerInteractionCommand.cc
  17507. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17508. peer currently used.
  17509. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17510. download completes. Simplified.
  17511. (receiveMessage): Updated.
  17512. * src/TorrentMan.h
  17513. (activePeers): New variable.
  17514. (addActivePeer): New function.
  17515. (getActivePeers): New function.
  17516. (deleteActivePeer): New function.
  17517. * src/TorrentMan.cc
  17518. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17519. * src/PeerAbstractCommand.cc
  17520. (onAbort): Use peer->resetStatus().
  17521. * src/main.cc
  17522. (PeerChokeCommand.h): Included.
  17523. (main): Added the instance of ChokingCommand to the command queue.
  17524. * src/Peer.h
  17525. (amChoking): Renamed from amChocking
  17526. (chokingRequired): New variable.
  17527. (optUnchoking): New variable.
  17528. (deltaUpload): New variable.
  17529. (deltaDownload): New variable.
  17530. (addDeltaUpload): New function.
  17531. (resetDeltaUpload): New function.
  17532. (addDeltaDownload): New function.
  17533. (resetDeltaDownload): New function.
  17534. (addPeerUpload): Added a call to addDeltaUpload.
  17535. (addPeerDownload): Added a call to addDeltaDownload.
  17536. * src/Peer.cc
  17537. (shouldBeChoking): Renamed from shouldChoke.
  17538. (resetStatus): New function.
  17539. * src/PeerChokeCommand.h: New class.
  17540. * src/PeerChokeCommand.cc: New class.
  17541. To add lazy upload speed limiter:
  17542. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17543. statistics calculation to TorrentDownloadEngine.
  17544. * src/TorrentConsoleDownloadEngine.cc
  17545. (sendStatistics): Renamed from printStatistics.
  17546. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17547. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17548. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17549. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17550. calculation.
  17551. (sendStatistics): New function as pure virtual function.
  17552. (getUploadSpeed): New function.
  17553. * src/TorrentDownloadEngine.cc
  17554. (initStatistics): New function.
  17555. (calculateSpeed): New function.
  17556. (calculateStatistics): New function.
  17557. * src/SendMessageQueue.h
  17558. (uploadLength): New variable.
  17559. (send): Added an argument.
  17560. (setUploadLimit): New function.
  17561. (getUploadLimit): New function.
  17562. * src/SendMessageQueue.cc
  17563. (send): Added upload speed limiter.
  17564. * src/prefs.h
  17565. (PREF_UPLOAD_LIMIT): New definition.
  17566. * src/PeerInteractionCommand.cc
  17567. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17568. * src/main.cc
  17569. (main): Added --upload-limit option
  17570. For bug fixes:
  17571. * src/main.cc
  17572. (showUsage): Corrected --listen-port help
  17573. Other changes:
  17574. * src/TorrentMan.cc
  17575. (getPeer): Return nullPeer if connection is grather than
  17576. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17577. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17578. To add some useful information to the exception message:
  17579. * src/SocketCore.cc : Updated messages.
  17580. * src/SegmentMan.cc :
  17581. * src/TorrentMan.cc : Updated messages.
  17582. * src/MultiDiskWriter.cc : Updated messages.
  17583. * src/Util.cc : Updated messages.
  17584. * src/AbstractDiskWriter.cc : Updated messages.
  17585. * src/PreAllocationDiskWriter.cc : Updated messages.
  17586. * src/message.cc : Added new messages. Updated some messages.
  17587. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17588. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17589. Updated threshold from 30 to 15.
  17590. * src/AbstractDiskWriter.h (filename): New variable.
  17591. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17592. (createFile): Assigned filename.
  17593. * src/main.cc: Updated the help message for http-auth-scheme.
  17594. * Release 0.4.0
  17595. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17596. To add TrackerUpdateCommand with which replaces
  17597. CompactTrackerResponseProcessor:
  17598. * src/TrackerWatcherCommand.h (req): Removed.
  17599. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17600. if the number of peer connections are less than 30.
  17601. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17602. * src/SegmentMan.h (diskWriter): New function.
  17603. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17604. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17605. (main): Use TrackerUpdateCommand.
  17606. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17607. (req): New variable.
  17608. (setTrackerResponseProcessor): Removed.
  17609. (getTrackerResponseProcessor): Removed.
  17610. (processTrackerResponse): Removed.
  17611. * src/DownloadEngine.h (diskWriter): Removed.
  17612. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17613. to torrentMan->processTrackerResponse().
  17614. To add Util::expandBuffer:
  17615. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17616. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17617. * src/Util.h (expandBuffer): New function.
  17618. To fix the bug that causes segmentation fault when "-l ." is specified
  17619. in command-line option:
  17620. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17621. (openFile): New function.
  17622. (closeFile): New function.
  17623. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17624. (~SimpleLogger): Call closeFile();
  17625. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17626. * src/main.cc (main): Added a check to see logger is configured
  17627. properly.
  17628. To enable HTTP authentication without specifying "--http-auth-scheme"
  17629. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17630. * src/HttpConnection.cc (createRequest): Send Authorization header
  17631. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17632. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17633. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17634. * src/Peer.cc (shouldChoke): Updated algorithm.
  17635. * src/message.h (EX_AUTH_FAILED): New definition.
  17636. (EX_FILE_OPEN): New definition.
  17637. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17638. if status == 401.
  17639. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17640. if req->isTorrent == true.
  17641. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17642. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17643. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17644. (createFile): Updated message.
  17645. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17646. To add a readout of estimated remaining time to normal HTTP/FTP
  17647. downloads:
  17648. * src/ConsoleDownloadEngine.h (startup): New variable.
  17649. (startupLength): New variable.
  17650. (isStartupLengthSet): New variable.
  17651. (avgSpeed): New variable.
  17652. (eta): New variable.
  17653. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17654. estimated remaining time.
  17655. (initStatistics): Initialized newly added variables.
  17656. (calculateStatistics): Calculate average speed and estimated remaining
  17657. time.
  17658. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17659. * src/TrackerDownloadCommand.h: Removed.
  17660. * src/TrackerDownloadCommand.cc: Removed.
  17661. * src/TrackerInitCommand.h: Removed.
  17662. * src/TrackerInitCommand.cc: Removed.
  17663. * src/TrackerUpdateCommand.h: Removed.
  17664. * src/TrackerUpdateCommand.cc: Removed.
  17665. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17666. url written in TrackerInitCommand was moved here. Do not create
  17667. tracker request command if torrentMan->trackers != 0.
  17668. * src/CompactTrackerResponseProcessor.h: New class.
  17669. * src/CompactTrackerResponseProcessor.cc: New class.
  17670. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17671. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17672. Decoupled TorrentDownloadEngine from this.
  17673. * src/SegmentMan.h (init): New function.
  17674. * src/SegmentMan.cc (init): New function.
  17675. * src/TorrentMan.h (responseProcessor): New variable.
  17676. (trackers): New variable.
  17677. (setTrackerResponseProcessor): New function.
  17678. (getTrackerResponseProcessor): New function.
  17679. (processTrackerResponse): New function.
  17680. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17681. (processTrackerResponse): New function.
  17682. * src/main.cc (main): Use ByteArrayDiskWriter and
  17683. CompactTrackerResponseProcessor.
  17684. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17685. processTrackerResponse().
  17686. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17687. readout.
  17688. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17689. which indicates download has completed.
  17690. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17691. (closeFile): fd >= 0, not fd > 0
  17692. * src/main.cc (main): Added short cut for show-files.
  17693. Added short cut for torrent-file.
  17694. Added new command-line option listen-port.
  17695. Updated i18n messages.
  17696. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17697. To add LogFactory which creates singleton logger:
  17698. * src/LogFactory.h: New class.
  17699. * src/LogFactory.cc: New class.
  17700. * src/Command.h (logger): New variable.
  17701. (Constructor): Use LogFactory.
  17702. * src/AbstractCommand.cc: Use Command::logger
  17703. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17704. Use LogFactory.
  17705. * src/SegmentSplitter.h : Made logger protected.
  17706. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17707. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17708. * src/DownloadEngine.h : Made logger protected.
  17709. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17710. * src/PeerInteractionCommand.cc : Use Command::logger.
  17711. * src/HttpResponseCommand.cc : Use Command::logger.
  17712. * src/SegmentMan.h : Made logger private.
  17713. * src/TorrentMan.h : Made logger private.
  17714. * src/TorrentMan.cc : Use LogFactory.
  17715. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17716. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17717. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17718. Use LogFactory.
  17719. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17720. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17721. Use LogFactory.
  17722. * src/DownloadCommand.cc : Use Command::logger.
  17723. * src/PeerAbstractCommand.cc : Use Command::logger.
  17724. * src/PeerListenCommand.cc : Use Command::logger.
  17725. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17726. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17727. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17728. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17729. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17730. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17731. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17732. Use LogFactory.
  17733. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17734. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17735. Use LogFactory.
  17736. * src/main.cc (main): Use LogFactory.
  17737. * src/DiskAdaptor.h (logger): New variable.
  17738. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17739. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17740. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17741. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17742. parameter to a tracker request.
  17743. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17744. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17745. * src/main.cc (setSignalHander): New function.
  17746. (main): Added a handler for SIGTERM.
  17747. (handler): Updated message.
  17748. (torrentHandler): Updated message.
  17749. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17750. * src/TorrentConsoleDownloadEngine.cc
  17751. (onPartialDownloadingCompletes): Renamed as
  17752. onSelectiveDownloadingCompletes.
  17753. (onSelectiveDownloadingCompletes): Updated message.
  17754. To add DiskAdaptor which abstract DiskWriter family:
  17755. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17756. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17757. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17758. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17759. MultiDiskAdaptor.h.
  17760. (readFileEntry): Changed its arguments.
  17761. (setup): setupDiskWriter is merged into this function.
  17762. (setupDiskWriter): Removed.
  17763. (setFileFilter): New function.
  17764. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17765. made in readFileEntry.
  17766. (getFilePath): Removed.
  17767. (getTempFilePath): Removed.
  17768. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17769. (fixFilename): Removed.
  17770. (copySingleFile): Removed.
  17771. (splitMultiFile): Removed.
  17772. (deleteTempFile): Removed.
  17773. (setFileEntriesToDownload): Removed.
  17774. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17775. (isSelectiveDownloadingMode): New function.
  17776. (setAllMultiFileRequestedState): Removed.
  17777. (finishPartialDownloadingMode): Renamed as
  17778. finishSelectiveDownloadingMode.
  17779. (finishSelectiveDownloadingMode): New function.
  17780. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17781. (getSelectedTotalLength): New function.
  17782. (onDownloadComplete): Use diskAdaptor.
  17783. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17784. (Range): Removed.
  17785. (setMultiFileEntries): Renamed as setFileEntries.
  17786. (setFileEntries): New function.
  17787. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17788. (pieceLength): New variable.
  17789. * src/main.cc (printDownloadCompeleteMessage): New function.
  17790. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17791. (main): Renamed torrent-show-files to show-files.
  17792. Rewritten file contents listing.
  17793. * src/TorrentMan.h (FileEntry): Removed.
  17794. (multiFileTopDir): Removed.
  17795. (multiFileEntries): Removed.
  17796. (diskWriter): Removed.
  17797. (diskAdaptor): New variable.
  17798. * src/DefaultDiskWriter.h (totalLength): New variable.
  17799. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17800. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17801. diskWriter.
  17802. * src/TorrentConsoleDownloadEngine.h
  17803. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17804. (partialTotalLength): Renamed as selectedTotalLength.
  17805. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17806. openExistingFile, otherwise call initAndOpenFile.
  17807. (closeFile): fd > 0, not fd != 0.
  17808. * src/DirectDiskAdaptor.h: New class.
  17809. * src/DirectDiskAdaptor.cc: New class.
  17810. * src/MultiDiskAdaptor.h: New class.
  17811. * src/MultiDiskAdaptor.cc: New class.
  17812. * src/CopyDiskAdaptor.h: New class.
  17813. * src/CopyDiskAdaptor.cc: New class.
  17814. * src/DiskAdaptor.h: New class.
  17815. * src/DiskAdaptor.cc: New class.
  17816. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17817. (PREF_SHOW_FILES): New definition.
  17818. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17819. To add the ability to download multi torrent into respective files
  17820. directly:
  17821. * src/DiskWriter.h (openFile): New function.
  17822. (seek): Removed.
  17823. * src/MultiDiskWriter.h: New class.
  17824. * src/MultiDiskWriter.cc: New class.
  17825. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17826. protected.
  17827. (openFile): New function.
  17828. * src/AbstractDiskWriter.cc (openFile): New function.
  17829. * src/prefs.h (V_FALSE): New definition.
  17830. (PREF_DIRECT_FILE_MAPPING): New definition.
  17831. * src/TorrentMan.h (setupDiskWriter): New function.
  17832. (setAllMultiFileRequestedState): New function.
  17833. (onDownloadComplete): New function.
  17834. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17835. (setupDiskWriter): New function.
  17836. (getFilePath): Updated.
  17837. (getTempFilePath): Updated.
  17838. (getSegmentFilePath): Updated.
  17839. (fixFilename): Updated.
  17840. (deleteTempFile): Updated.
  17841. (setAllMultiFileRequestedState): New function.
  17842. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17843. (finishPartialDownloadingMode): Reset requested flags.
  17844. (onDownloadComplete): New function.
  17845. * src/main.cc: Added --direct-file-mapping option.
  17846. Use TorrentMan::setupDiskWriter().
  17847. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17848. onDownloadComplete().
  17849. To fix ETA bug:
  17850. * src/Util.h (difftvsec): New function.
  17851. * src/Util.cc (difftvsec): New function.
  17852. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17853. type of "elapsed" instead of long long int.
  17854. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17855. The updates of statistics takes place every 1 seconds.
  17856. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17857. (calculateSpeed): Changed its argument signature.
  17858. * src/PeerMessage.cc (toString): Fixed message.
  17859. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17860. To print ETA:
  17861. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17862. completion handling when dealing with
  17863. TorrentMan::isPartialDownloadingMode() == true.
  17864. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17865. New function.
  17866. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17867. (sessionDownloadLength): New variable.
  17868. (avgSpeed): New variable.
  17869. (eta): New variable.
  17870. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17871. new variables: eta, avgSpeed, startup.
  17872. (calculateSpeed): Calculate average speed and ETA.
  17873. (printStatistics): Added ETA.
  17874. * src/Util.h (secfmt): New function.
  17875. * src/Util.cc (secfmt): New function.
  17876. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17877. To detect "keep alive" flooding:
  17878. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17879. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17880. variable: keepAliveCount.
  17881. (detectMessageFlooding): Added "keep alive" flooding detection.
  17882. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17883. received.
  17884. To add the ability to download only specified files in multi-file
  17885. torrent:
  17886. * src/BitfieldMan.h (filterBitfield): New variable.
  17887. (filterEnabled): New variable.
  17888. (setFilterBit): New function.
  17889. (enableFilter): New function.
  17890. (disableFilter): New function.
  17891. (isFilterEnabled): New function.
  17892. (getFilteredTotalLength): New function.
  17893. (getCompletedLength): New function.
  17894. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17895. filterBitfield, filterEnabled.
  17896. (CopyConstructor): Added filterBitfield and filterEnabled.
  17897. (operator==): Added filterBitfield and filterEnabled.
  17898. (Destructor): Added filterBitfield.
  17899. (getMissingIndex): Use filterBitfield.
  17900. (getMissingUnusedIndex): Use filterBitfield.
  17901. (getFirstMissingUnusedIndex): Use filterBitfield.
  17902. (getFirstMissingUnusedIndex): Use filterBitfield.
  17903. (getAllMissingIndexes): Use filterBitfield.
  17904. (countMissingBlock): Use filterBitfield.
  17905. (countBlock): Use filterBitfield.
  17906. (setBitInternal): Added new argument on.
  17907. (setUseBit): Use setBitInternal.
  17908. (unsetUseBit): Use setBitInternal.
  17909. (setBit): Use setBitInternal.
  17910. (unsetBit): Use setBitInternal.
  17911. (isAllBitSet): Use filterBitfield.
  17912. (setFilterBit): New function.
  17913. (addFilter): New function.
  17914. (enableFilter): New function.
  17915. (disableFilter): New function.
  17916. (clearFilter): New function.
  17917. (isFilterEnabled): New function.
  17918. (getFilteredTotalLength): New function.
  17919. (getCompletedLength): New function.
  17920. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17921. Initalized newly added variables.
  17922. [FileEntry](offset): New variable.
  17923. [FileEntry](extracted): New variable.
  17924. [FileEntry](requested): New variable.
  17925. (readFileEntry): New function.
  17926. (option): New variable.
  17927. (splitMultiFile): Removed const qualifier.
  17928. (fixFilename): Removed const qualifier.
  17929. (readFileEntryFromMetaInfoFile): New function.
  17930. (finishPartialDownloadingMode): New function.
  17931. (isPartialDownloadingMode): New function.
  17932. (setFileEntriesToDownload): New function.
  17933. (getCompletedLength): New function.
  17934. (getPartialTotalLength): New function.
  17935. * src/TorrentMan.cc (readFileEntry): New function.
  17936. (setup): Use readFileEntry. If no-preallocation option is specified,
  17937. use DefaultDiskWriter.
  17938. (readFileEntryFromMetaInfoFile): New function.
  17939. (fixFilename): Removed const qualifier.
  17940. (splitMultiFile): Removed const qualifier.
  17941. (setFileEntriesToDownload): New function.
  17942. (isPartialDownloadingMode): New function.
  17943. (finishPartialDownloadingMode): New function.
  17944. (getCompletedLength): New function.
  17945. (getPartialTotalLength): New function.
  17946. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17947. New variable.
  17948. (partialTotalLength): New variable.
  17949. (downloadLength): New variable.
  17950. (totalLength): New variable.
  17951. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17952. Added log.
  17953. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17954. partialTotalLength, downloadLength, totalLength.
  17955. (calculate): Calculate downloadLength and totalLength.
  17956. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17957. * src/main.cc (addCommand): Changed argument signature.
  17958. (main): Added new variable: args. Added new option "torrent-show-files"
  17959. "no-preallocation". Usage is not updated yet.
  17960. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17961. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17962. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17963. Attempt to add the ability to listing file entries in a .torrent file.
  17964. This feature is not yet complete.
  17965. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17966. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17967. (getName): New function.
  17968. * src/TorrentMan.h (getMultiFileEntries): New function.
  17969. (getName): New function.
  17970. * src/main.cc (main): Use above 2 funtion.
  17971. * Release 0.3.2
  17972. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17973. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17974. (detectMessageFlooding): Updated threshold value.
  17975. (checkLongTimePeerChoking): Updated timeout value.
  17976. (getNewPieceAndSendInterest): Added debug log.
  17977. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17978. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17979. (getPeer): Updated.
  17980. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17981. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17982. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17983. is localhost.
  17984. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17985. * src/PendingMessage.cc (processMessage): Not to send piece message
  17986. if peer is not interested in the pieces localhost has.
  17987. * src/Peer.cc (shouldChoke): Updated.
  17988. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17989. * src/Util.cc (isPowerOf): New function.
  17990. * src/Util.h (isPowerOf): New function.
  17991. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17992. whether or not it is power of 2.
  17993. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17994. Added new class SendMessageQueue that includes PendingMessages and
  17995. RequestSlotMan.
  17996. * src/SendMessageQueue.h: New class.
  17997. * src/SendMessageQueue.cc: New class.
  17998. * src/PendingMessage.h: Added new member variable blockIndex and its
  17999. accessors.
  18000. (createRequestMessage): Updated.
  18001. * src/PendingMessage.cc (createRequestMessage): Updated.
  18002. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18003. SendMessageQueue.
  18004. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18005. (receiveMessage): Updated with SendMessageQueue.
  18006. (deletePendingPieceMessage): Removed.
  18007. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18008. (sendInterest): Updated with SendMessageQueue.
  18009. (createRequestPendingMessage): Updated with SendMessageQueue.
  18010. (sendMessages): Updated with SendMessageQueue.
  18011. (onAbort): Updated with SendMessageQueue.
  18012. (keepAlive): Updated with SendMessageQueue.
  18013. (beforeSocketCheck): Updated SendMessageQueue.
  18014. * src/PeerInteractionCommand (sendMessages): Shuffle
  18015. missingBLockIndexes before using it.
  18016. Added its own timeout for peer connection.
  18017. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18018. setter.
  18019. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18020. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18021. Added setTimeout() call.
  18022. (executeInternal): Added setTimeout() call.
  18023. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18024. Added timeout.
  18025. (isTimeoutDetected): Updated.
  18026. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18027. option.
  18028. Added *simple* message flooding checker.
  18029. * src/PeerInteractionCommand.cc (executeInternal):
  18030. Added detectMessageFlooding() call.
  18031. (detectMessageFlooding): New function.
  18032. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18033. (beforeSocketCheck): Added detectMessageFlooding() call.
  18034. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18035. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18036. Removed deletePendingPieceMessage(), getRequestSlot(),
  18037. deleteRequestSlot(), deleteAllRequestSlot().
  18038. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18039. Added checkLongTimePeerChoking() call.
  18040. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18041. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18042. if duplicate == false.
  18043. The parameter "uploaded" and "downloaded" in the tracker request are
  18044. the size since the client sent the "started" event to the tracker.
  18045. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18046. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18047. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18048. getSessionDownloadedSize(), getSessionUploadedSize().
  18049. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18050. getSessionUploadedSize() instead of getDownloadedSize(),
  18051. getUploadedSize().
  18052. * src/PendingMessage.cc (processMessage): Do not send request message
  18053. if the peer is choking the client.
  18054. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18055. less than interval.
  18056. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18057. * configure.in: Added gnutls support. Added several CPP macros.
  18058. * m4/openssl.m4: Added.
  18059. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18060. readData(), peekData(). Added gnutls support.
  18061. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18062. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18063. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18064. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18065. Instead, added a check for whether setup method has executed
  18066. successfully.
  18067. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18068. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18069. * src/Makefile.am: Updated.
  18070. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18071. using whether OpenSSL or gcrypt, depending on the result of configure
  18072. script.
  18073. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18074. messageDigest.h.
  18075. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18076. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18077. Fixed memory leak.
  18078. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18079. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18080. Removed instantiation of TrackerInitCommand. Instead,
  18081. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18082. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18083. ENABLE_SSL.
  18084. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18085. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18086. If a piece is already acquired by another command, delete the request
  18087. slots for the piece.
  18088. * src/TrackerUpdateCommand.cc (execute):
  18089. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18090. Added a check whether peer list is null.
  18091. Fixed the bug that causes sending completed event to the tracker
  18092. several times.
  18093. * src/TrackerInitCommand.cc (execute):
  18094. Fixed the bug that causes sending completed event to the tracker
  18095. several times.
  18096. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18097. by using messageDigest.h.
  18098. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18099. * PeerConnection.cc: Replaced log message "keep-alive" with
  18100. "keep alive".
  18101. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18102. localhost long time.
  18103. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18104. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18105. at most 100 failure entry from the list. If with duplicate = false,
  18106. MAX_PEER_LIST is not checked.
  18107. * PeerListenCommand.cc: Fixed the argument order of log message.
  18108. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18109. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18110. Added warn().
  18111. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18112. Implemented warn().
  18113. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18114. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18115. * Request.h: Added AFTER_COMPLETED event.
  18116. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18117. instead of downloaded size and progress(%) after download completes.
  18118. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18119. message to the peer if it is interested in what localhost has
  18120. downloaded.
  18121. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18122. destination instead of just renaming it.
  18123. * TorrentMan.cc: Added deleteTempFile().
  18124. * PeerAbstractCommand.cc: do not stop execution after download
  18125. completes. This makes localhost a seeder.
  18126. * Util.{h,cc}: Added fileCopy().
  18127. * PeerListenCommand.cc: do not stop execution after download completes.
  18128. This makes localhost a seeder.
  18129. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18130. Added TorrentMan::deleteTempFile() to torrentHandler.
  18131. Initialized the variable dir as ".".
  18132. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18133. Deleted renameSingleFile().
  18134. Added copySingleFile(), deleteTempFile().
  18135. * DownloadEngine.h: Added virtual function afterEachIteration().
  18136. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18137. in onEndOfRun() to afterEachIteration().
  18138. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18139. true.
  18140. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18141. In rangedFileCopy(), added try-catch block to properly close file
  18142. descriptors.
  18143. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18144. Added afterEachIteration(), isFilenameFixed().
  18145. * Peer.cc: Changed choking strategy.
  18146. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18147. * TrackerInitCommand.cc: Send completed event only once.
  18148. * DownloadEngine.cc: Added a call to afterEachIteration().
  18149. * TrackerUpdateCommand.cc: Do not stop execution after download
  18150. completes.
  18151. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18152. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18153. received from a tracker.
  18154. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18155. Decreased the number of failure peers to delete to 0(just comment out
  18156. the line).
  18157. * Release 0.3.1
  18158. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18159. * PeerInteractionCommand.cc: added a call to
  18160. TorrentMan::unadvertisePiece in Destructor.
  18161. * PeerInteractionCommand.cc: make have message sent immediately
  18162. if the size of pending message queue is zero.
  18163. * TorrentMan.cc: set the maximum size of peer list to 250.
  18164. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18165. to deque.
  18166. * Util.cc: fixed rangedFileCopy.
  18167. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18168. to Constructor. Also, moved digest cleanup to Destructor.
  18169. * MetaFileUtil.cc: fixed memory leak
  18170. * replaced std::vector with std::deque.
  18171. * AbstractCommand.cc: casted timeout value to long long int.
  18172. * ChunkedEncoding.cc: fixed memory leak.
  18173. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18174. * SleepCommand.cc: casted timeout value to long long int.
  18175. * Data.cc: fixed memory leak.
  18176. * Data.cc: fixed toLLInt().
  18177. * BitfieldMan.cc: fixed memory leak.
  18178. * TorrentMan.cc: initialized storeDir to ".".
  18179. * TorrentMan.cc: fixed memory leak.
  18180. * TorrentMan.cc: corrected file paths of splitted files.
  18181. * PeerAbstractCommand.cc: casted timeout to long long int.
  18182. * main.cc: added delete(req) and delete(te->diskWriter).
  18183. * RequestSlot.cc: casted timeout value to long long int.
  18184. * Request.cc: fixed memory leak.
  18185. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18186. have the piece.
  18187. * Peer.{h,cc}: added hasPiece(int index).
  18188. * main.cc: corrected addCommand.
  18189. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18190. * BitTorrent protocol support added.
  18191. * Release 0.3.0
  18192. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18193. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18194. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18195. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18196. decoding did not work properly.
  18197. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18198. * DownloadEngine.h: included sys/time.h
  18199. * DownloadEngine.cc: remove sys/time.h
  18200. * Makefile.am (SUBDIRS): Add intl.
  18201. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18202. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18203. * main.cc: correct help message for --http-auth-scheme.
  18204. * main.cc: changed e-mail address for bug reports.
  18205. * ja.po: added japanese translation.
  18206. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18207. * SimpleLogger.cc: flush log file instead of stdout.
  18208. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18209. * main.cc: Fixed command-line option: max-tries
  18210. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18211. does not equal to seg.sp.
  18212. * DownloadCommand.cc: If EOF is got from the server and the total size
  18213. of file is not zero, then throw DlRetryEx.
  18214. * main.cc: Set the minium value of min-segment-size to 1024.
  18215. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18216. fails because of a regression since 0.2.0 release.
  18217. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18218. * HttpConnection.cc:
  18219. * common.h: defined the user agent name as macro
  18220. * DownloadEngine.{h, cc}:
  18221. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18222. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18223. * main.cc: Download complete/abort message is now generated by main.
  18224. * Makefile.am (SUBDIRS): Add m4.
  18225. (ACLOCAL_AMFLAGS): New variable.
  18226. (EXTRA_DIST): New variable.
  18227. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18228. * gettext: added gettext functionality
  18229. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18230. * AbstractCommand.cc:
  18231. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18232. unregister its cuid from SegmentMan.
  18233. * DownloadEngine.cc: .aria2 file was written when a downloading
  18234. failed with errors.
  18235. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18236. Added "User-Agent" header to CONNECT proxy request.
  18237. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18238. properly.
  18239. * Logger.h:
  18240. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18241. * ChunkedEncoding.cc: Added #include directive for strings.h
  18242. * Release 0.2.1
  18243. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18244. * Util.{h,cc}: added startsWith().
  18245. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18246. Util::endsWith().
  18247. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18248. * common.h: added #include directive of limit.h.
  18249. * DownloadEngine.cc: added #include directive of sys/time.h and
  18250. algorithm.
  18251. * Exception.h: added #include directive of stdio.h.
  18252. * AbstractCommand.h: added #include directive of sys/time.h.
  18253. * DownloadCommand.h: added #include directive of sys/time.h.
  18254. * *.h: added #include directive of common.h to all base classes.
  18255. subclasses' one was removed.
  18256. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18257. does not define these macros.
  18258. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18259. * Release 0.2.0
  18260. * main.cc:
  18261. * HttpInitiateConnectionCommand.{h,cc}:
  18262. * prefs.h:
  18263. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18264. We can now use GET command in http proxy.
  18265. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18266. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18267. that splits slowest segment of SegmentMan::commands vector.
  18268. This is the default split algorithm of aria2.
  18269. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18270. that splits first segment of SegmentMan::commands vector.
  18271. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18272. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18273. * Segment.h:
  18274. * SegmentMan.cc: Added speed field to Segment.h
  18275. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18276. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18277. * message.h: Change file size related %d to %lld.
  18278. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18279. * FtpInitiateConnectionCommand.{h,cc}:
  18280. * FtpNegotiationCommand.{h,cc}:
  18281. * FtpDownloadCommand.{h,cc}:
  18282. * FtpConnection.{h,cc}: Added FTP support
  18283. * SimpleLogger.cc: Log message now includes time information.
  18284. * main.cc: The value of --http-auth-scheme option is chagned from
  18285. 'BASIC' to 'basic'
  18286. * main.cc: Added --timeout command-line option.
  18287. * main.cc: Added --min-segment-size command-line option.
  18288. * main.cc: Added --max-retries command-line option.
  18289. * prefs.h: option string constants are now defined in prefs.h
  18290. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18291. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18292. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18293. with version 0.1.0's one.
  18294. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18295. * configure.in: Added --enable-ssl option to configure script.
  18296. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18297. cannot permit absoluteURI as Request-URI.
  18298. * HttpConnection.cc: Added Referer support.
  18299. * main.cc: Added referer command-line option.
  18300. * main.cc: Added rety-wait command-line option.
  18301. * Exception.h: Fixed formating bug in Exception::setMsg()
  18302. * SocketCore.{h,cc}:
  18303. * Socket.{h, cc}:
  18304. * Request.cc:
  18305. * InitiateConnectionCommandFactory.cc:
  18306. * HttpRequestCommand.cc: Added HTTPS support.
  18307. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18308. for SocketCore.
  18309. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18310. size is wrong
  18311. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18312. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18313. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18314. * Release 0.1.0