ChangeLog 642 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624
  1. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed ut_metadata data handling. Implemented
  3. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  4. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  5. metadata_size is received.
  6. * src/DefaultExtensionMessageFactory.cc
  7. * src/DefaultExtensionMessageFactory.h
  8. * src/HandshakeExtensionMessage.cc
  9. * src/HandshakeExtensionMessage.h
  10. * src/UTMetadataDataExtensionMessage.cc
  11. * src/UTMetadataDataExtensionMessage.h
  12. * src/UTMetadataRequestExtensionMessage.cc
  13. * src/UTMetadataRequestFactory.cc
  14. * src/UTMetadataRequestFactory.h
  15. * src/UTMetadataRequestTracker.cc
  16. * src/UTMetadataRequestTracker.h
  17. * test/DefaultExtensionMessageFactoryTest.cc
  18. * test/HandshakeExtensionMessageTest.cc
  19. * test/MockBtMessage.h
  20. * test/UTMetadataDataExtensionMessageTest.cc
  21. * test/UTMetadataRequestExtensionMessageTest.cc
  22. * test/UTMetadataRequestFactoryTest.cc
  23. * test/UTMetadataRequestTrackerTest.cc
  24. * test/extension_message_test_helper.h
  25. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Drop connection if ut_metadata reject message is received.
  27. * src/UTMetadataRejectExtensionMessage.cc
  28. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  30. get high enough in that mode.
  31. * src/ActivePeerConnectionCommand.cc
  32. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Added BitTorrent magnet link support to ProtocolDetector.
  34. * src/ProtocolDetector.cc
  35. * src/ProtocolDetector.h
  36. * test/ProtocolDetectorTest.cc
  37. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Don't inject validator into BtMessage in metadataGetMode because
  39. most of the checks depends on the total length of download but it
  40. is unknown. Delegate metadataGetMode to BtMessage.
  41. * src/DefaultBtMessageFactory.cc
  42. * src/DefaultBtMessageFactory.h
  43. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  45. * src/DefaultPieceStorage.h
  46. * src/PieceStorage.h
  47. * src/UnknownLengthPieceStorage.h
  48. * test/MockPieceStorage.h
  49. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Added markTotalLengthIsKnown().
  51. * src/DownloadContext.h
  52. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  54. missing. If metadata is missing, always use DHT when it is ready.
  55. * src/BtSetup.cc
  56. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Added parseMagnetLink(). Hex encoded info hash is supported.
  58. Base32 encoded info hash is not supported yet.
  59. * src/bittorrent_helper.cc
  60. * src/bittorrent_helper.h
  61. * test/BittorrentHelperTest.cc
  62. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Added FromHex()
  64. * src/util.cc
  65. * src/util.h
  66. * test/UtilTest.cc
  67. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Added _metadataGetMode member variable. It toggles the action when
  69. messages are received: usually they almost do nothing if
  70. _metadataGetMode is true.
  71. * src/AbstractBtMessage.cc
  72. * src/AbstractBtMessage.h
  73. * src/BtAllowedFastMessage.cc
  74. * src/BtBitfieldMessage.cc
  75. * src/BtCancelMessage.cc
  76. * src/BtChokeMessage.cc
  77. * src/BtHaveAllMessage.cc
  78. * src/BtHaveMessage.cc
  79. * src/BtInterestedMessage.cc
  80. * src/BtNotInterestedMessage.cc
  81. * src/BtPieceMessage.cc
  82. * src/BtRejectMessage.cc
  83. * src/BtRequestMessage.cc
  84. * src/BtUnchokeMessage.cc
  85. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Added bencode::decode overload functions. They have extra argument
  87. 'end', passed by reference. 'end' points to the beyond the last
  88. position of data used in decoding process.
  89. * src/bencode.cc
  90. * src/bencode.h
  91. * test/BencodeTest.cc
  92. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Initial support of Extension for Peers to Send Metadata
  94. Files(BEP9). Currently aria2 only serves metadata and cannot get
  95. metadata from swarm.
  96. * src/BtConstants.h
  97. * src/DefaultBtInteractive.cc
  98. * src/DefaultExtensionMessageFactory.cc
  99. * src/DefaultExtensionMessageFactory.h
  100. * src/ExtensionMessage.h
  101. * src/ExtensionMessageRegistry.h
  102. * src/HandshakeExtensionMessage.cc
  103. * src/HandshakeExtensionMessage.h
  104. * src/Makefile.am
  105. * src/PeerConnection.h
  106. * src/PeerInteractionCommand.cc
  107. * src/UTMetadataDataExtensionMessage.cc
  108. * src/UTMetadataDataExtensionMessage.h
  109. * src/UTMetadataExtensionMessage.cc
  110. * src/UTMetadataExtensionMessage.h
  111. * src/UTMetadataRejectExtensionMessage.cc
  112. * src/UTMetadataRejectExtensionMessage.h
  113. * src/UTMetadataRequestExtensionMessage.cc
  114. * src/UTMetadataRequestExtensionMessage.h
  115. * src/bittorrent_helper.cc
  116. * src/bittorrent_helper.h
  117. * test/BittorrentHelperTest.cc
  118. * test/DefaultExtensionMessageFactoryTest.cc
  119. * test/HandshakeExtensionMessageTest.cc
  120. * test/Makefile.am
  121. * test/UTMetadataDataExtensionMessageTest.cc
  122. * test/UTMetadataRejectExtensionMessageTest.cc
  123. * test/UTMetadataRequestExtensionMessageTest.cc
  124. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Cancel segment in prepareForRetry() because there is a chance that
  126. the command has segments.
  127. * src/CreateRequestCommand.cc
  128. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Fixed the bug that slow server is not knocked down in favor of
  130. faster one.
  131. * src/AbstractCommand.cc
  132. * src/DefaultPieceStorage.cc
  133. * src/DefaultPieceStorage.h
  134. * src/PieceStorage.h
  135. * src/UnknownLengthPieceStorage.cc
  136. * src/UnknownLengthPieceStorage.h
  137. * test/MockPieceStorage.h
  138. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Fixed the bug that Request object is not added to
  140. _inFlightRequests in findFasterRequest().
  141. * src/FileEntry.cc
  142. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Changed the strategry of how to increase the number of outstanding
  144. requests. Now the number is doubled if there are no outstanding
  145. requests after receiving messages.
  146. * src/BtConstants.h
  147. * src/DefaultBtInteractive.cc
  148. * src/DefaultBtInteractive.h
  149. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Check socket for reading if there are outstanding requests.
  151. * src/PeerInteractionCommand.cc
  152. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Moved frequently called methods to header file so they get
  154. inlined.
  155. * src/RequestSlot.cc
  156. * src/RequestSlot.h
  157. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Copied in_addr instead of just casting from char* which might
  159. violate strict aliasing rules.
  160. * src/AsyncNameResolver.cc
  161. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Use dynamic_pointer_cast
  163. * test/BtPieceMessageTest.cc
  164. * test/BtRequestMessageTest.cc
  165. * test/DefaultBtRequestFactoryTest.cc
  166. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Added testSetUrl20()
  168. * test/RequestTest.cc
  169. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Code cleanup
  171. * src/bittorrent_helper.cc
  172. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Use C++ style cast
  174. * src/AsyncNameResolver.cc
  175. * src/Base64.h
  176. * src/BtBitfieldMessage.cc
  177. * src/BtHandshakeMessage.cc
  178. * src/DefaultBtMessageFactory.cc
  179. * src/DefaultBtProgressInfoFile.cc
  180. * src/EpollEventPoll.cc
  181. * src/ExpatMetalinkProcessor.cc
  182. * src/IteratableChecksumValidator.cc
  183. * src/IteratableChunkChecksumValidator.cc
  184. * src/MessageDigestHelper.cc
  185. * src/Platform.cc
  186. * src/RequestGroupMan.cc
  187. * src/SingleFileAllocationIterator.cc
  188. * src/Sqlite3MozCookieParser.cc
  189. * src/XML2SAXMetalinkProcessor.cc
  190. * src/Xml2XmlRpcRequestProcessor.cc
  191. * src/util.cc
  192. * src/util.h
  193. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Fixed integer potential alignment problem.
  195. * src/bitfield.h
  196. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Applied a patch from tizianomueller to fix sigbus errors on Linux
  198. sparc. I modified the patch to eliminate a cast to uint32_t* and
  199. include file ordering.
  200. * src/PeerListProcessor.h
  201. * src/bittorrent_helper.cc
  202. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  204. * src/Request.cc
  205. * src/util.cc
  206. * src/util.h
  207. * test/RequestTest.cc
  208. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Rewritten util::uitos()
  210. * src/util.h
  211. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Code cleanup
  213. * src/Request.cc
  214. * src/Request.h
  215. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Rewritten Request::parseUrl()
  217. * src/Request.cc
  218. * test/RequestTest.cc
  219. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Removed unused macro SAFE_CHARS
  221. * src/Request.cc
  222. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Updated doc
  224. * src/DHTRoutingTableDeserializer.cc
  225. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Release 1.6.3
  227. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Removed unused function.
  229. * test/DHTPeerAnnounceStorageTest.cc
  230. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Only decrement cols if cols > 0
  232. * src/ConsoleStatCalc.cc
  233. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Updated Polish, Catalan, French, Italian, Russian and Japanese
  235. translations. Thanks to all translators.
  236. * po/ca.po
  237. * po/fr.po
  238. * po/it.po
  239. * po/ja.po
  240. * po/pl.po
  241. * po/ru.po
  242. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Updated translation template
  244. * po
  245. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Fixed compile error without ssl library.
  247. * src/util.cc
  248. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Logged received nodes in get_peers reply message.
  250. * src/DHTAbstractNodeLookupTask.cc
  251. * src/DHTAbstractNodeLookupTask.h
  252. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  254. error occurred in DHTMessageDispatcherImpl::sendMessage().
  255. * src/DHTMessageDispatcherImpl.cc
  256. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Don't reuse URI if Request pool is not empty.
  258. * src/CreateRequestCommand.cc
  259. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  261. receive get_peers request for torrent which the client is now
  262. downloading.
  263. * src/BtSetup.cc
  264. * src/DHTPeerAnnounceEntry.cc
  265. * src/DHTPeerAnnounceEntry.h
  266. * src/DHTPeerAnnounceStorage.cc
  267. * src/DHTPeerAnnounceStorage.h
  268. * src/RequestGroup.cc
  269. * test/DHTPeerAnnounceEntryTest.cc
  270. * test/DHTPeerAnnounceStorageTest.cc
  271. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Fixed the bug that in Windows environment new blank line is
  273. inserted when console readout is updated.
  274. * src/ConsoleStatCalc.cc
  275. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Throw exception if binding listening port is failed. Removed
  277. RequestGroupMan::getInitialCommand(). Use
  278. fillRequestGroupFromReserver() instead. Delete commands for
  279. RequestGroup which has errors when it is being added.
  280. * src/BtSetup.cc
  281. * src/DownloadEngine.cc
  282. * src/DownloadEngine.h
  283. * src/DownloadEngineFactory.cc
  284. * src/MultiUrlRequestInfo.cc
  285. * src/RequestGroupMan.cc
  286. * src/RequestGroupMan.h
  287. * test/RequestGroupManTest.cc
  288. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  289. Fixed the bug that when downloading more than one torrent,
  290. listening port is not reported properly to tracker for 2nd or
  291. later torrents.
  292. * src/BtSetup.cc
  293. * src/PeerListenCommand.cc
  294. * src/PeerListenCommand.h
  295. * src/RequestGroup.cc
  296. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Bump up version number to 1.6.3
  298. * configure.ac
  299. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Removed Util.cc from POTFILES.in
  301. * po/POTFILES.in
  302. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Updated man page for previous change.
  304. * doc/aria2c.1.txt
  305. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. If user name is embedded but password is missing in URI, first
  307. resolve password using .netrc. If password is found in .netrc,
  308. then use it as password. If not, use the password specified in
  309. --ftp-passwd.
  310. * src/AuthConfigFactory.cc
  311. * src/Request.cc
  312. * src/Request.h
  313. * test/AuthConfigFactoryTest.cc
  314. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Fixed typo
  316. * doc/aria2c.1.txt
  317. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Fixed typo
  319. * src/usage_text.h
  320. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Added missing bitfield.cc
  322. * src/bitfield.cc
  323. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Renamed Util.{cc,h} as util.{cc,h}
  325. * src/Util.cc
  326. * src/Util.h
  327. * src/util.cc
  328. * src/util.h
  329. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  330. Moved static functions in Util class to namespace util.
  331. * src
  332. * test
  333. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  335. Moved generateRandomKey to bittorrent_helper.cc.
  336. * src/DHTBucket.cc
  337. * src/DHTGetPeersMessage.cc
  338. * src/DHTGetPeersReplyMessage.cc
  339. * src/DHTMessage.cc
  340. * src/DHTNode.cc
  341. * src/DHTTokenTracker.cc
  342. * src/DHTUtil.cc: Removed.
  343. * src/DHTUtil.h: Removed.
  344. * src/Makefile.am
  345. * src/Util.cc
  346. * src/Util.h
  347. * src/bitfield.h
  348. * src/bittorrent_helper.cc
  349. * src/bittorrent_helper.h
  350. * test/ARC4Test.cc
  351. * test/BNodeTest.cc
  352. * test/DHTAnnouncePeerMessageTest.cc
  353. * test/DHTAnnouncePeerReplyMessageTest.cc
  354. * test/DHTFindNodeMessageTest.cc
  355. * test/DHTFindNodeReplyMessageTest.cc
  356. * test/DHTGetPeersMessageTest.cc
  357. * test/DHTGetPeersReplyMessageTest.cc
  358. * test/DHTPingMessageTest.cc
  359. * test/DHTPingReplyMessageTest.cc
  360. * test/DHTTokenTrackerTest.cc
  361. * test/DHTUtilTest.cc: Removed.
  362. * test/Makefile.am
  363. * test/UtilTest.cc
  364. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Removed the call to trim() because trim() is called for each
  366. element in split().
  367. * src/CookieParser.cc
  368. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Replaced Util::slice() with split()
  370. * src/AbstractCommand.cc
  371. * src/CookieParser.cc
  372. * src/File.cc
  373. * src/HttpHeaderProcessor.cc
  374. * src/HttpRequest.cc
  375. * src/Metalink2RequestGroup.cc
  376. * src/MetalinkParserController.cc
  377. * src/Netrc.cc
  378. * src/NsCookieParser.cc
  379. * src/ParameterizedStringParser.cc
  380. * src/ServerStatMan.cc
  381. * src/UriListParser.cc
  382. * src/Util.cc
  383. * src/Util.h
  384. * src/bittorrent_helper.cc
  385. * test/UtilTest.cc
  386. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Use request->getDir() instead of "/" for embedded user/pass in
  388. URI.
  389. * src/AuthConfigFactory.cc
  390. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Fixed wrong insertion point for BasicCred.
  392. * src/AuthConfigFactory.cc
  393. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Allowed non-regular file in LocalFilePathOptionHandler
  395. * src/OptionHandlerImpl.h
  396. * src/message.h
  397. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Fixed the bug that Netrc::parse() cannot recognize comment line.
  399. * src/Netrc.cc
  400. * src/Util.h
  401. * test/NetrcTest.cc
  402. * test/sample.netrc
  403. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Fixed typo
  405. * src/BtDependency.cc
  406. * src/BtRejectMessage.cc
  407. * src/FtpConnection.cc
  408. * src/HttpHeaderProcessor.h
  409. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Fixed lintian report in man page
  411. * doc/aria2c.1.txt
  412. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Release 1.6.2
  414. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Updated Ukrainian translation. Thanks to all translators.
  416. * po/uk.po
  417. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Updated translation template
  419. * po
  420. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Bump up version number to 1.6.2
  422. * configure.ac
  423. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Updated licence message in -v output.
  425. * src/version_usage.cc
  426. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Replaced aria2 with aria2c in help message.
  428. * src/version_usage.cc
  429. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  431. * src/version_usage.cc
  432. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Quoted localedir
  434. * src/Makefile.am
  435. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  437. utime. Check header for utime.h.
  438. * configure.ac
  439. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  441. * configure.ac
  442. * src/daemon.cc
  443. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Don't set localedir manually. Leave it to autoconf.
  445. * configure.ac
  446. * src/Makefile.am
  447. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Added --install to ACLOCAL_AMFLAGS.
  449. Removed m4 from SUBDIRS.
  450. Updated automake 1.11 and autoconf 2.64.
  451. Replaced some obsolute macros with new one.
  452. * Makefile.am
  453. * configure.ac
  454. * m4/aria2_arg.m4
  455. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Removed Makefile.am in m4 directory.
  457. * configure.ac
  458. * m4/ChangeLog
  459. * m4/Makefile.am
  460. * m4/Makefile.in
  461. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Removed unused m4 macros.
  463. * m4/intldir.m4
  464. * m4/inttypes.m4
  465. * m4/isc-posix.m4
  466. * m4/libgnutls-extra.m4
  467. * m4/ulonglong.m4
  468. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Fixed the bug that causes segmentation fault if
  470. req->getCurrentUrl() contains printf formatting characters such as
  471. %d. The statement that causes this bug is useless and removed.
  472. * src/AbstractCommand.cc
  473. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. * Release 1.6.1
  475. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Updated Simplified Chinese translation. Thanks to translators.
  477. * po/zh_CN.po
  478. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Updated translation template
  480. * po
  481. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Bump up version number to 1.6.1
  483. * configure.ac
  484. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Changed interval from 120 to 60 for dropping inactive peer.
  486. * src/DefaultBtInteractive.cc
  487. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Updated man page for --user-agent and --peer-id-prefix option.
  489. * doc/aria2c.1.txt
  490. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Code clean up
  492. * src/BtPostDownloadHandler.cc
  493. * src/ContentTypeRequestGroupCriteria.cc
  494. * src/ContentTypeRequestGroupCriteria.h
  495. * src/DownloadHandlerConstants.cc
  496. * src/DownloadHandlerConstants.h
  497. * src/DownloadHandlerFactory.cc
  498. * src/MetalinkPostDownloadHandler.cc
  499. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Don't save control file when aria2 exists while checking piece
  501. hash(behavior of -V option). If control file doesn't exist when
  502. aria2 launched, the completed length in saved control file will be
  503. 0 byte and this confuses user. disableSaveControlFile() is called
  504. in RequestGroup::processCheckIntegrityEntry().
  505. enableSaveControlFile() will be called after hash checking is
  506. done. See CheckIntegrityCommand.
  507. * src/CheckIntegrityCommand.cc
  508. * src/RequestGroup.cc
  509. * src/RequestGroup.h
  510. * src/RequestGroupMan.cc
  511. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Included version number in Peer ID and client version. Peer ID
  513. now starts with "aria2/VERSION-", where VERSION is
  514. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  515. * src/DefaultBtInteractive.cc
  516. * src/OptionHandlerFactory.cc
  517. * src/bittorrent_helper.cc
  518. * src/bittorrent_helper.h
  519. * src/main.cc
  520. * src/usage_text.h
  521. * test/BittorrentHelperTest.cc
  522. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Fixed memory leak.
  524. * src/DownloadCommand.cc
  525. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Removed server, port, user and passwd key from options before
  527. XMLRPC::Client.call since they are not options of aria2.
  528. * doc/xmlrpc/aria2mon
  529. * doc/xmlrpc/aria2rpc
  530. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Included version number in user-agent string.
  532. * src/OptionHandlerFactory.cc
  533. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Fixed the bug that the option values changed by XML-RPC
  535. method(changeOption and changeGlobalOption) are overwritten to the
  536. previous value by the next these request which doesn't contain
  537. that option value. Supporse max-download-limit is initially 0. You
  538. changed this value to 100K by changeOption. Then you issue
  539. changeOption request to change max-upload-limit to 50K. This
  540. second request doesn't contain xml-download-limit, so it is back
  541. to initial value, 0. Another improvement is that exception is
  542. thrown when changeOption and changeGlobalOption request contains
  543. option name which doesn't allowed in each request.
  544. * src/DownloadEngine.h
  545. * src/XmlRpcMethod.cc
  546. * src/XmlRpcMethod.h
  547. * src/XmlRpcMethodImpl.cc
  548. * src/download_helper.cc
  549. * src/download_helper.h
  550. * test/XmlRpcMethodTest.cc
  551. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Added missing MetalinkParserStateImpl.{cc,h}
  553. * src/MetalinkParserStateImpl.cc
  554. * src/MetalinkParserStateImpl.h
  555. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Put all MetalinkParserState subclasses into
  557. MetalinkParserStateImpl.cc. Use stack to track element structure.
  558. * src/FileMetalinkParserState.cc: Removed
  559. * src/FileMetalinkParserState.h: Removed
  560. * src/FilesMetalinkParserState.cc: Removed
  561. * src/FilesMetalinkParserState.h: Removed
  562. * src/FinMetalinkParserState.cc: Removed
  563. * src/FinMetalinkParserState.h: Removed
  564. * src/HashMetalinkParserState.cc: Removed
  565. * src/HashMetalinkParserState.h: Removed
  566. * src/InitialMetalinkParserState.cc: Removed
  567. * src/InitialMetalinkParserState.h: Removed
  568. * src/LanguageMetalinkParserState.cc: Removed
  569. * src/LanguageMetalinkParserState.h: Removed
  570. * src/Makefile.am
  571. * src/MetalinkMetalinkParserState.cc: Removed
  572. * src/MetalinkMetalinkParserState.h: Removed
  573. * src/MetalinkParserState.h
  574. * src/MetalinkParserStateMachine.cc
  575. * src/MetalinkParserStateMachine.h
  576. * src/OSMetalinkParserState.cc: Removed
  577. * src/OSMetalinkParserState.h: Removed
  578. * src/PieceHashMetalinkParserState.cc: Removed
  579. * src/PieceHashMetalinkParserState.h: Removed
  580. * src/PiecesMetalinkParserState.cc: Removed
  581. * src/PiecesMetalinkParserState.h: Removed
  582. * src/ResourcesMetalinkParserState.cc: Removed
  583. * src/ResourcesMetalinkParserState.h: Removed
  584. * src/SignatureMetalinkParserState.cc: Removed
  585. * src/SignatureMetalinkParserState.h: Removed
  586. * src/SizeMetalinkParserState.cc: Removed
  587. * src/SizeMetalinkParserState.h: Removed
  588. * src/SkipTagMetalinkParserState.cc: Removed
  589. * src/SkipTagMetalinkParserState.h: Removed
  590. * src/URLMetalinkParserState.cc: Removed
  591. * src/URLMetalinkParserState.h: Removed
  592. * src/VerificationMetalinkParserState.cc: Removed
  593. * src/VerificationMetalinkParserState.h: Removed
  594. * src/VersionMetalinkParserState.cc: Removed
  595. * src/VersionMetalinkParserState.h: Removed
  596. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Move all functions in PeerMessageUtil to bittorrent_helper.
  598. * src/BtBitfieldMessage.cc
  599. * src/BtBitfieldMessageValidator.h
  600. * src/BtExtendedMessage.cc
  601. * src/BtHandshakeMessage.cc
  602. * src/BtHandshakeMessageValidator.h
  603. * src/BtPieceMessage.cc
  604. * src/BtPieceMessageValidator.h
  605. * src/BtPortMessage.cc
  606. * src/DHTFindNodeReplyMessage.cc
  607. * src/DHTGetPeersReplyMessage.cc
  608. * src/DHTMessageFactoryImpl.cc
  609. * src/DHTRoutingTableDeserializer.cc
  610. * src/DHTRoutingTableSerializer.cc
  611. * src/DHTTokenTracker.cc
  612. * src/DefaultBtMessageFactory.cc
  613. * src/IndexBtMessage.cc
  614. * src/IndexBtMessage.h
  615. * src/IndexBtMessageValidator.h
  616. * src/Makefile.am
  617. * src/PeerMessageUtil.cc: Removed.
  618. * src/PeerMessageUtil.h: Removed.
  619. * src/RangeBtMessage.cc
  620. * src/RangeBtMessage.h
  621. * src/RangeBtMessageValidator.h
  622. * src/UTPexExtensionMessage.cc
  623. * src/ZeroBtMessage.cc
  624. * src/ZeroBtMessage.h
  625. * src/bittorrent_helper.cc
  626. * src/bittorrent_helper.h
  627. * test/BittorrentHelperTest.cc
  628. * test/BtAllowedFastMessageTest.cc
  629. * test/BtBitfieldMessageTest.cc
  630. * test/BtCancelMessageTest.cc
  631. * test/BtChokeMessageTest.cc
  632. * test/BtExtendedMessageTest.cc
  633. * test/BtHandshakeMessageTest.cc
  634. * test/BtHaveAllMessageTest.cc
  635. * test/BtHaveMessageTest.cc
  636. * test/BtHaveNoneMessageTest.cc
  637. * test/BtInterestedMessageTest.cc
  638. * test/BtNotInterestedMessageTest.cc
  639. * test/BtPieceMessageTest.cc
  640. * test/BtPortMessageTest.cc
  641. * test/BtRejectMessageTest.cc
  642. * test/BtRequestMessageTest.cc
  643. * test/BtSuggestPieceMessageTest.cc
  644. * test/BtUnchokeMessageTest.cc
  645. * test/DHTFindNodeReplyMessageTest.cc
  646. * test/DHTGetPeersReplyMessageTest.cc
  647. * test/DHTMessageFactoryImplTest.cc
  648. * test/DHTRoutingTableDeserializerTest.cc
  649. * test/DHTRoutingTableSerializerTest.cc
  650. * test/DefaultBtMessageFactoryTest.cc
  651. * test/DefaultExtensionMessageFactoryTest.cc
  652. * test/Makefile.am
  653. * test/PeerListProcessorTest.cc
  654. * test/PeerMessageUtilTest.cc: Removed.
  655. * test/UTPexExtensionMessageTest.cc
  656. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Limit the size of values list when sending get_peers reply.
  658. * src/DHTGetPeersReplyMessage.cc
  659. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Updated banner
  661. * doc/xmlrpc/aria2rpc
  662. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Added missing help message for remove command.
  664. * doc/xmlrpc/aria2rpc
  665. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Generated configure and config.h.in
  667. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  668. Add check for fork(), which is missing on MinGW
  669. * src/daemon.cc
  670. * configure.ac
  671. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  673. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  674. Util::httpGMT().
  675. * src/Util.cc
  676. * src/Util.h
  677. * test/UtilTest.cc
  678. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. * Release 1.6.0
  680. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Fixed a path to xmlrpc/README.txt
  682. * doc/Makefile.am
  683. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Added XML-RPC in -v Configuration output.
  685. * src/FeatureConfig.cc
  686. * src/FeatureConfig.h
  687. * test/FeatureConfigTest.cc
  688. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Updated Bulgarian, Russian, Slovak and Japanese
  690. translations. Thanks to all translators.
  691. * po/bg.po
  692. * po/ja.po
  693. * po/ru.po
  694. * po/sk.po
  695. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Removed --retry-wait option from aria2rpc
  697. * doc/xmlrpc/aria2rpc
  698. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Removed --retry-wait option from man page.
  700. * doc/aria2c.1.txt
  701. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Removed --retry-wait option since the current architecture doesn't
  703. allow sleep for particular URI.
  704. * src/AbstractCommand.cc
  705. * src/OptionHandlerFactory.cc
  706. * src/download_helper.cc
  707. * src/prefs.cc
  708. * src/prefs.h
  709. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Removed Retry-After header support. Since the current architecture
  711. doesn't allow sleep for particular URI.
  712. * src/HttpSkipResponseCommand.cc
  713. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Updated the help message for --daemon option.
  715. * doc/aria2c.1.txt
  716. * src/usage_text.h
  717. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Added our own daemon() function for systems which desn't have
  719. daemon(3).
  720. * configure.ac
  721. * src/Makefile.am
  722. * src/daemon.cc
  723. * src/daemon.h
  724. * src/option_processing.cc
  725. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Simplified File::getCurrentDir()
  727. * src/File.cc
  728. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Use exit() instead of _exit
  730. * src/RequestGroupMan.cc
  731. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Replaced "CATEGORY" with "TAGS".
  733. * src/usage_text.h
  734. * doc/aria2c.1.txt
  735. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Updated the help message for --help option.
  737. * src/usage_text.h
  738. * doc/aria2c.1.txt
  739. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Updated man page for added help tags.
  741. * doc/aria2c.1.txt
  742. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Added help category #file. Added #file tag to the options related
  744. to downloaded file.
  745. * src/OptionHandlerFactory.cc
  746. * src/help_tags.h
  747. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Added help categories: #cookie and #hook. Added #https tag to
  749. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  750. * src/OptionHandlerFactory.cc
  751. * src/help_tags.h
  752. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Made MSG_NOT_FILE translatable.
  754. * src/message.h
  755. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Updated man page for --help option.
  757. * doc/aria2c.1.txt
  758. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Updated doc.
  760. * src/XmlRpcMethod.h
  761. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Help category now starts with "#" to distinguish a category from
  763. keyword search. For example, "http" categroy is now "#http". You
  764. can type "--help=#http" to get explanation of options related to
  765. http. If '#' is omitted, then the argument is treated as a keyword
  766. and aria2 searches options whose name includes the keyword and
  767. print matched ones. For example, "--help=http" will show options
  768. whose name includes "http".
  769. * src/OptionHandlerFactory.cc
  770. * src/help_tags.h
  771. * src/usage_text.h
  772. * src/version_usage.cc
  773. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Documented missing experimental tag and newly added xml-rpc tag in
  775. man page.
  776. * doc/aria2c.1.txt
  777. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Added xml-rpc help tag. Tagged xml-rpc related options with
  779. xml-rpc tag.
  780. * src/OptionHandlerFactory.cc
  781. * src/help_tags.h
  782. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Updated message when a path is not a file. Updated common message
  784. for wrong option.
  785. * src/OptionHandlerException.cc
  786. * src/message.h
  787. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Use File::isFile() instead of File::exists(). Updated message when
  789. a path is not a file.
  790. * src/OptionHandlerImpl.cc
  791. * src/message.h
  792. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Fixed the bug that server performence profile is not updated when
  794. aria2c was terminated by emergency shutdown.
  795. * src/TrackerWatcherCommand.cc
  796. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Use LocalFilePathOptionHandler for -T and -M option.
  798. Updated message of MSG_FILE_NOT_EXIST.
  799. * src/OptionHandlerFactory.cc
  800. * src/message.h
  801. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Added LocalFilePathOptionHandler which check whether the specified
  803. file path does exist or not.
  804. * src/OptionHandlerImpl.cc
  805. * src/message.h
  806. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Updated wiki page URI.
  808. * README
  809. * doc/aria2c.1.txt
  810. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Added README.txt for xmlrpc directory.
  812. * doc/Makefile.am
  813. * doc/xmlrpc/README.txt
  814. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Bump up version number to 1.6.0.
  816. * configure.ac
  817. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Added XML-RPC client scripts written in ruby.
  819. * doc/Makefile.am
  820. * doc/xmlrpc/aria2mon
  821. * doc/xmlrpc/aria2rpc
  822. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Added support for IPv6 literal address in URI. Now aria2 can
  824. handle URI such as http://[::1]/
  825. * src/HttpRequest.cc
  826. * src/HttpRequest.h
  827. * src/Request.cc
  828. * src/Request.h
  829. * test/HttpRequestTest.cc
  830. * test/OptionHandlerTest.cc
  831. * test/RequestTest.cc
  832. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Fixed the bug that HTTP request header for XML-RPC request is not
  834. parsed properly.
  835. * src/HttpHeader.cc
  836. * src/HttpHeaderProcessor.cc
  837. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Fixed the bug that XML-RPC authorization might be done before HTTP
  839. request header is fully received.
  840. * src/HttpServerCommand.cc
  841. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Documented --xml-rpc-listen-all option in man page.
  843. * doc/aria2c.1.txt
  844. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Added --xml-rpc-listen-all option. If true is given to this
  846. option, aria2 listens incoming XML-RPC requests on all network
  847. interfaces. If false is given, listens only on local loopback
  848. interface. The default value is false.
  849. * src/HttpListenCommand.cc
  850. * src/OptionHandlerFactory.cc
  851. * src/SocketCore.cc
  852. * src/SocketCore.h
  853. * src/prefs.cc
  854. * src/prefs.h
  855. * src/usage_text.h
  856. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. * Release 1.5.2
  858. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Updated Ukrainian and Russian translations. Thanks to all
  860. translators.
  861. * po/ru.po
  862. * po/uk.po
  863. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Bump up version number to 1.5.2
  865. * configure.ac
  866. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Get comment, comment.utf-8, created by and creation date from
  868. .torrent file and print them in -S output.
  869. * src/bittorrent_helper.cc
  870. * src/bittorrent_helper.h
  871. * test/BittorrentHelperTest.cc
  872. * test/test.torrent
  873. * test/utf8.torrent
  874. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Show exact file size along in -S option output.
  876. * src/Util.h
  877. * src/bittorrent_helper.cc
  878. * test/UtilTest.cc
  879. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Avoided unnecessary memory allocation in
  881. BitfieldMan::getCompletedLength().
  882. * src/BitfieldMan.cc
  883. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Fixed the bug that download fails if
  885. SocketCore::establishConnection() throws exception and aria2
  886. doesn't try another address.
  887. * src/AbstractCommand.cc
  888. * src/InitiateConnectionCommand.cc
  889. * src/message.h
  890. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  892. detected properly.
  893. * m4/sqlite3.m4
  894. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  896. because it causes compile error if PARAMS macro is defined.
  897. * src/XmlRpcElements.cc
  898. * src/XmlRpcElements.h
  899. * src/XmlRpcRequestParserStateImpl.cc
  900. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. * Release 1.5.1
  902. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Bump up version number to 1.5.1
  904. * configure.ac
  905. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Fixed compile error without BitTorrent support
  907. * src/DefaultBtProgressInfoFile.cc
  908. * src/DownloadEngine.cc
  909. * src/DownloadEngine.h
  910. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Added missing '=' in Download Results
  912. * src/RequestGroupMan.cc
  913. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Fixed compiler warning
  915. * src/DefaultBtProgressInfoFile.cc
  916. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Fixed compiler warning on 32bit systems.
  918. * src/DownloadCommand.cc
  919. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Call flush from ServerStatMan::save()
  921. * src/ServerStatMan.cc
  922. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Check stream status after file is opened.
  924. * src/CookieStorage.cc
  925. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Rewritten Signature::save()
  927. * src/Signature.cc
  928. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Rewritten RequestGroupMan::saveServerStat()
  930. * src/RequestGroupMan.cc
  931. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Rewritten stream error handling
  933. * src/DHTAutoSaveCommand.cc
  934. * src/DHTRoutingTableDeserializer.cc
  935. * src/DHTRoutingTableSerializer.cc
  936. * src/DHTSetup.cc
  937. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Check stream status after file is opened.
  939. * src/DefaultBtProgressInfoFile.cc
  940. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Rewritten stream error handling
  942. * src/DefaultBtProgressInfoFile.cc
  943. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Make sure that stream is closed before renaming file. Unit test
  945. fails on mingw32 in the previous implementation.
  946. * src/CookieStorage.cc
  947. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Fixed the unit test error without sqlite3
  949. * test/CookieStorageTest.cc
  950. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Fixed the undefined reference error
  952. * test/HttpResponseTest.cc
  953. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. * Release 1.5.0
  955. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  957. Ukrainian translations. Thanks to all translators.
  958. * po/ru.po
  959. * po/it.po
  960. * po/da.po
  961. * po/bg.po
  962. * po/ja.po
  963. * po/uk.po
  964. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Added missing src/Logger.cc
  966. * src/Logger.cc
  967. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Rewritten Logger to avoiding constly virtual call.
  969. * src/LogFactory.cc
  970. * src/LogFactory.h
  971. * src/Logger.h
  972. * src/Makefile.am
  973. * src/Makefile.in
  974. * src/NullLogger.h: Removed.
  975. * src/SimpleLogger.cc
  976. * src/SimpleLogger.h
  977. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Updated doc
  979. * src/main.cc
  980. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Updated debug log message
  982. * src/AbstractCommand.cc
  983. * src/message.h
  984. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Avoid to create zombie process when commands specified in
  986. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  987. X and NetBSD.
  988. * src/main.cc
  989. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Fixed typo
  991. * src/usage_text.h
  992. * doc/aria2c.1.txt
  993. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Documented 'errorCode' of tellStatus in man page.
  995. * doc/aria2c.1.txt
  996. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  998. This key is only available for stopped/completed downloads and its
  999. value is the error code defined in EXIT STATUS in man page.
  1000. * src/XmlRpcMethodImpl.cc
  1001. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Fixed the bug that session download length is not updated when
  1003. PeerStat is not fastest one.
  1004. * src/SegmentMan.cc
  1005. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Updated doc.
  1007. * doc/aria2c.1.txt
  1008. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1009. Updated doc.
  1010. * src/AbstractCommand.cc
  1011. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Handle the case when DownloadContext has no FileEntry.
  1013. * src/XmlRpcMethodImpl.cc
  1014. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Handle the situation where struct option.name is char *.
  1016. * configure.ac
  1017. * src/OptionParser.cc
  1018. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Code cleanup
  1020. * src/AbstractCommand.cc
  1021. * src/DownloadCommand.cc
  1022. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Use option of each download to create AuthConfig instead of global
  1024. option.
  1025. * src/AuthConfigFactory.cc
  1026. * src/AuthConfigFactory.h
  1027. * src/FtpNegotiationCommand.cc
  1028. * src/HttpRequest.cc
  1029. * src/HttpRequest.h
  1030. * src/HttpRequestCommand.cc
  1031. * src/HttpSkipResponseCommand.cc
  1032. * src/MultiUrlRequestInfo.cc
  1033. * test/AuthConfigFactoryTest.cc
  1034. * test/FtpConnectionTest.cc
  1035. * test/HttpRequestTest.cc
  1036. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Don't call prepareForRetry(1) if all segments are ignored in
  1038. SegmentMan.
  1039. * src/AbstractCommand.cc
  1040. * src/BitfieldMan.cc
  1041. * src/BitfieldMan.h
  1042. * src/SegmentMan.cc
  1043. * src/SegmentMan.h
  1044. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Removed FileEntry::getAssociatedUris()
  1046. * src/FileEntry.h
  1047. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1048. Updated doc: TODO1.5 -> TODO
  1049. * src/FileEntry.cc
  1050. * src/HttpResponseCommand.cc
  1051. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1053. involved.
  1054. * src/RequestGroup.cc
  1055. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Eliminated duplicated filterBitfield initialization code.
  1057. * src/BitfieldMan.cc
  1058. * src/BitfieldMan.h
  1059. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1061. relatively naive approach, though). For DownloadFailureException,
  1062. we handle the case when req is null properly.
  1063. * src/AbstractCommand.cc
  1064. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Added function returning suffix of control file to
  1066. DefaultBtProgressInfoFile.
  1067. * src/DefaultBtProgressInfoFile.cc
  1068. * src/DefaultBtProgressInfoFile.h
  1069. * src/RequestGroup.cc
  1070. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Documented getVersion in man page.
  1072. * doc/aria2c.1.txt
  1073. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Documented type of offset and num for tellWaiting xml-rpc method.
  1075. * doc/aria2c.1.txt
  1076. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Implemented getVersion xml-rpc method. This method returns struct
  1078. which has 2 key-value pairs: "version" key is associated to the
  1079. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1080. associated to the list of enabled features, such as "Async DNS",
  1081. "BitTorrent".
  1082. * src/FeatureConfig.h
  1083. * src/XmlRpcMethodFactory.cc
  1084. * src/XmlRpcMethodImpl.cc
  1085. * src/XmlRpcMethodImpl.h
  1086. * test/XmlRpcMethodTest.cc
  1087. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1089. for compatibility issue.
  1090. * src/SocketCore.cc
  1091. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Fixed compile error with openSSL
  1093. * src/bittorrent_helper.cc
  1094. * src/messageDigest.h
  1095. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Removed bad code: setting certificate type priority to key
  1097. exchange priority.
  1098. * src/SocketCore.cc
  1099. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Disconnect seeder if client is also in seed state.
  1101. * src/BtBitfieldMessage.cc
  1102. * src/BtHaveAllMessage.cc
  1103. * src/BtHaveMessage.cc
  1104. * src/message.h
  1105. * test/BtBitfieldMessageTest.cc
  1106. * test/BtHaveAllMessageTest.cc
  1107. * test/BtHaveMessageTest.cc
  1108. * test/MockPieceStorage.h
  1109. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Keep CreateRequestCommand in queue when no segment is available so
  1111. that they can pick up pieces which slow BitTorrent peers are
  1112. downloading.
  1113. * src/AbstractCommand.cc
  1114. * src/CreateRequestCommand.cc
  1115. * src/CreateRequestCommand.h
  1116. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. --bt-stop-timeout now only checks download speed.
  1118. * src/BtStopDownloadCommand.cc
  1119. * src/BtStopDownloadCommand.h
  1120. * src/BtSetup.cc
  1121. * src/usage_text.h
  1122. * doc/aria2c.1.txt
  1123. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Fixed compile error regarding BUFSIZE.
  1125. * src/DownloadCommand.cc
  1126. * src/DownloadCommand.h
  1127. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Documented tellWaiting xml-rpc method in man page.
  1129. * doc/aria2c.1.txt
  1130. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Bump up version number to 1.5.0
  1132. * configure.ac
  1133. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Removed resolved TODO1.5
  1135. * src/AbstractCommand.cc
  1136. * src/DownloadCommand.cc
  1137. * src/RequestGroup.cc
  1138. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Release pooled and in-flight Request objectsand URIResult objects
  1140. in FileEntry after download completed.
  1141. * src/DownloadContext.cc
  1142. * src/DownloadContext.h
  1143. * src/FileEntry.cc
  1144. * src/FileEntry.h
  1145. * src/RequestGroup.cc
  1146. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Set manual and source attribute in aria2c.1.txt
  1148. * doc/aria2c.1.txt
  1149. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Documented that the default value of --use-head is 'false' in man
  1151. page.
  1152. * doc/aria2c.1.txt
  1153. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Added bt-stop-timeout option to -i list.
  1155. * doc/aria2c.1.txt
  1156. * src/download_helper.cc
  1157. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Fixed typo
  1159. * doc/aria2c.1.txt
  1160. * src/usage_text.h
  1161. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Removed peer-id-prefix option from -i list.
  1163. * doc/aria2c.1.txt
  1164. * src/download_helper.cc
  1165. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Fixed typo
  1167. * doc/aria2c.1.txt
  1168. * src/usage_text.h
  1169. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Documented --bt-stop-timeout option in man page.
  1171. * doc/aria2c.1.txt
  1172. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Updated README regarding multi-file torrent web-seeding.
  1174. * doc/README.txt
  1175. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Updated man page regarding multi-file torrent web-seeding.
  1177. * doc/aria2c.1.txt
  1178. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Updated doc
  1180. * src/version_usage.cc
  1181. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Winsock select() doesn't work if no socket is in FD_SET. To
  1183. overcome this problem, a dummy socket is added to FD_SET and it is
  1184. given to select().
  1185. * src/SelectEventPoll.cc
  1186. * src/SelectEventPoll.h
  1187. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Disabled --use-head option by default because --use-head=true
  1189. causes problems on some web sites.
  1190. * src/OptionHandlerFactory.cc
  1191. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Print URL List in -S option for torrent.
  1193. * src/bittorrent_helper.cc
  1194. * src/bittorrent_helper.h
  1195. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Allocate buffer in ctor of DownloadCommand.
  1197. * src/DownloadCommand.cc
  1198. * src/DownloadCommand.h
  1199. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Removed DiskAdaptor::onDownloadComplete()
  1201. * src/DirectDiskAdaptor.cc
  1202. * src/DirectDiskAdaptor.h
  1203. * src/DiskAdaptor.h
  1204. * src/MultiDiskAdaptor.cc
  1205. * src/MultiDiskAdaptor.h
  1206. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Committed missing BtStopDownloadCommand.{cc,h}
  1208. * src/BtStopDownloadCommand.cc
  1209. * src/BtStopDownloadCommand.h
  1210. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1212. download if the download speed is 0 and the number of seeder is 0
  1213. in consecutive SEC seconds. By default, this function is disabled.
  1214. * src/BtSetup.cc
  1215. * src/Makefile.am
  1216. * src/OptionHandlerFactory.cc
  1217. * src/prefs.cc
  1218. * src/prefs.h
  1219. * src/usage_text.h
  1220. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Removed the call to DiskAdaptor::onDownloadComplete() from
  1222. BtCheckIntegrityEntry and DefaultPieceStorage.
  1223. * src/BtCheckIntegrityEntry.cc
  1224. * src/DefaultPieceStorage.cc
  1225. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Commented out throw statements when number of piece is 0 to
  1227. download 0 length torrent.
  1228. * src/bittorrent_helper.cc
  1229. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Call RequestGroup::createNextCommandWithAdj() from
  1231. BtFileAllocationEntry if at least one FileEntry has URI. The
  1232. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1233. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1234. * src/BtFileAllocationEntry.cc
  1235. * src/FileEntry.h
  1236. * src/RequestGroup.cc
  1237. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Generate peer ID after SimpleRandomizer is initialized.
  1239. * src/main.cc
  1240. * src/option_processing.cc
  1241. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Removed unused method argument.
  1243. * src/CreateRequestCommand.cc
  1244. * src/RequestGroup.cc
  1245. * src/RequestGroup.h
  1246. * src/RequestGroupMan.cc
  1247. * src/TrackerWatcherCommand.cc
  1248. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Made URI reusing function work.
  1250. * src/CreateRequestCommand.cc
  1251. * src/FileEntry.cc
  1252. * src/FileEntry.h
  1253. * test/FileEntryTest.cc
  1254. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Add formerly fastest PeerStat's sessionDownloadLength to new
  1256. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1257. bytes in a session.
  1258. * src/PeerStat.cc
  1259. * src/SegmentMan.cc
  1260. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. If pipelining is enabled, we can always pool socket.
  1262. * src/HttpDownloadCommand.cc
  1263. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. In a single file download, file size becomes known just after
  1265. downloading, set total length to FileEntry object when download
  1266. completed.
  1267. * src/DownloadCommand.cc
  1268. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Use std::vector::reserve() for fileEntries and pieceHashes in
  1270. bittorrent_helper
  1271. * src/bittorrent_helper.cc
  1272. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1274. Removed hidden option PREF_RESET_URI.
  1275. * src/AbstractCommand.cc
  1276. * src/OptionHandlerFactory.cc
  1277. * src/prefs.cc
  1278. * src/prefs.h
  1279. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Removed unused variable/function.
  1281. * src/PeerStat.h
  1282. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Show first URL in Download Results if file path is not available.
  1284. * src/FileEntry.h
  1285. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Throw exception if file path doesn't exist in FTP URL.
  1287. * src/InitiateConnectionCommandFactory.cc
  1288. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1290. * src/BitfieldMan.cc
  1291. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1293. of PeerStat in SegmentMan. peerStats is used for calculating
  1294. download speed. Therefore all active PeerStats should be in
  1295. there. Another one is _fastestPeerStats and it only contains
  1296. fastest PeerStat for each hostname/protocol pair. They are used
  1297. for updating ServerStat.
  1298. * src/DownloadCommand.cc
  1299. * src/Request.h
  1300. * src/RequestGroupMan.cc
  1301. * src/SegmentMan.cc
  1302. * src/SegmentMan.h
  1303. * test/SegmentManTest.cc
  1304. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Try all available addresses returned by DNS until it gets
  1306. connected in HTTP(S)/FTP download
  1307. * src/AbstractCommand.cc
  1308. * src/AbstractCommand.h
  1309. * src/AbstractProxyRequestCommand.cc
  1310. * src/AbstractProxyRequestCommand.h
  1311. * src/DNSCache.h
  1312. * src/DownloadEngine.cc
  1313. * src/DownloadEngine.h
  1314. * src/FtpInitiateConnectionCommand.cc
  1315. * src/FtpInitiateConnectionCommand.h
  1316. * src/FtpNegotiationCommand.cc
  1317. * src/FtpNegotiationCommand.h
  1318. * src/HttpInitiateConnectionCommand.cc
  1319. * src/HttpInitiateConnectionCommand.h
  1320. * src/HttpRequestCommand.cc
  1321. * src/HttpRequestCommand.h
  1322. * src/InitiateConnectionCommand.cc
  1323. * src/InitiateConnectionCommand.h
  1324. * test/DNSCacheTest.cc
  1325. * test/Makefile.am
  1326. * test/SimpleDNSCacheTest.cc
  1327. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Updated doc
  1329. * src/download_helper.cc
  1330. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Refactored fieldMan ctor.
  1332. * src/BitfieldMan.cc
  1333. * src/BitfieldMan.h
  1334. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Don't print "No files to download." message if -S is given.
  1336. * src/main.cc
  1337. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Set referer and method to newly created Request object.
  1339. * src/CreateRequestCommand.cc
  1340. * src/FileEntry.cc
  1341. * src/FileEntry.h
  1342. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1344. * src/AbstractCommand.cc
  1345. * src/AbstractCommand.h
  1346. * src/CreateRequestCommand.cc
  1347. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Get proxy download working
  1349. * src/AbstractProxyRequestCommand.cc
  1350. * src/AbstractProxyRequestCommand.h
  1351. * src/AbstractProxyResponseCommand.cc
  1352. * src/AbstractProxyResponseCommand.h
  1353. * src/FtpInitiateConnectionCommand.cc
  1354. * src/FtpTunnelRequestCommand.cc
  1355. * src/FtpTunnelRequestCommand.h
  1356. * src/FtpTunnelResponseCommand.cc
  1357. * src/FtpTunnelResponseCommand.h
  1358. * src/HttpInitiateConnectionCommand.cc
  1359. * src/HttpProxyRequestCommand.cc
  1360. * src/HttpProxyRequestCommand.h
  1361. * src/HttpProxyResponseCommand.cc
  1362. * src/HttpProxyResponseCommand.h
  1363. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Use SegmentMan::getSegment(cuid) for single file download.
  1365. * src/AbstractCommand.cc
  1366. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Fixed bufSize calculation
  1368. * src/DownloadCommand.cc
  1369. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Don't append "/" if base URI ends with "/".
  1371. * src/bittorrent_helper.cc
  1372. * test/url-list-multiFile.torrent
  1373. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. HTTP pipelining is now working. Fixed Segmention fault in
  1375. BitfieldMan's copy ctor.
  1376. * src/AbstractCommand.cc
  1377. * src/BitfieldMan.cc
  1378. * src/BitfieldMan.h
  1379. * src/DownloadCommand.cc
  1380. * src/HttpDownloadCommand.cc
  1381. * src/HttpRequest.cc
  1382. * src/SegmentMan.cc
  1383. * src/SegmentMan.h
  1384. * test/BitfieldManTest.cc
  1385. * test/SegmentManTest.cc
  1386. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Removed ServerHost. Same functionality is implemented using
  1388. FileEntry's in-flight Request objects.
  1389. * src/AbstractCommand.cc
  1390. * src/BtDependency.cc
  1391. * src/CreateRequestCommand.cc
  1392. * src/FileEntry.cc
  1393. * src/FileEntry.h
  1394. * src/FtpNegotiationCommand.cc
  1395. * src/HttpResponseCommand.cc
  1396. * src/Makefile.am
  1397. * src/Metalink2RequestGroup.cc
  1398. * src/RequestGroup.cc
  1399. * src/RequestGroup.h
  1400. * src/ServerHost.cc: Removed
  1401. * src/ServerHost.h: Removed
  1402. * test/BtDependencyTest.cc
  1403. * test/FileEntryTest.cc
  1404. * test/RequestGroupTest.cc
  1405. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Rewritten PeerStat handling. In the previous implementation,
  1407. faster command tries to find slower command. In this new
  1408. implementation, slower command tries to find faster command.
  1409. PeerStat is now created in each HTTP/FTP request to get download
  1410. rate correctly. If the download range is small, the download rate
  1411. tends to small and this will occur at the later stage of download.
  1412. * src/AbstractCommand.cc
  1413. * src/DownloadCommand.cc
  1414. * src/FileEntry.cc
  1415. * src/FileEntry.h
  1416. * src/Request.cc
  1417. * src/Request.h
  1418. * src/RequestGroup.h
  1419. * src/RequestGroupMan.cc
  1420. * src/SegmentMan.cc
  1421. * src/SegmentMan.h
  1422. * test/SegmentManTest.cc
  1423. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Removed _uris from RequestGroup. All functions that refer to _uris
  1425. were moved to FileEntry. Exit status code are now defined in
  1426. DownloadResultCode.h.
  1427. * src/AbstractCommand.cc
  1428. * src/AdaptiveURISelector.cc
  1429. * src/AdaptiveURISelector.h
  1430. * src/AutoSaveCommand.cc
  1431. * src/BtPostDownloadHandler.cc
  1432. * src/CheckIntegrityDispatcherCommand.cc
  1433. * src/CookieStorage.cc
  1434. * src/DHTAutoSaveCommand.cc
  1435. * src/DHTBucketRefreshCommand.cc
  1436. * src/DHTEntryPointNameResolveCommand.cc
  1437. * src/DHTInteractionCommand.cc
  1438. * src/DHTPeerAnnounceCommand.cc
  1439. * src/DHTTokenUpdateCommand.cc
  1440. * src/DlAbortEx.h
  1441. * src/DlRetryEx.h
  1442. * src/DownloadCommand.cc
  1443. * src/DownloadContext.h
  1444. * src/DownloadFailureException.h
  1445. * src/DownloadResult.h
  1446. * src/DownloadResultCode.h
  1447. * src/FeedbackURISelector.cc
  1448. * src/FeedbackURISelector.h
  1449. * src/FileEntry.cc
  1450. * src/FileEntry.h
  1451. * src/FtpNegotiationCommand.cc
  1452. * src/HttpListenCommand.cc
  1453. * src/HttpResponseCommand.cc
  1454. * src/HttpServerResponseCommand.cc
  1455. * src/HttpSkipResponseCommand.cc
  1456. * src/InOrderURISelector.cc
  1457. * src/InOrderURISelector.h
  1458. * src/Makefile.am
  1459. * src/Makefile.in
  1460. * src/Metalink2RequestGroup.cc
  1461. * src/MultiUrlRequestInfo.cc
  1462. * src/MultiUrlRequestInfo.h
  1463. * src/OptionHandlerFactory.cc
  1464. * src/PeerListenCommand.cc
  1465. * src/RecoverableException.h
  1466. * src/RequestGroup.cc
  1467. * src/RequestGroup.h
  1468. * src/RequestGroupMan.cc
  1469. * src/RequestGroupMan.h
  1470. * src/TimedHaltCommand.cc
  1471. * src/TrackerWatcherCommand.cc
  1472. * src/URIResult.cc
  1473. * src/URIResult.h
  1474. * src/URISelector.h
  1475. * src/XmlRpcMethodImpl.cc
  1476. * src/bittorrent_helper.cc
  1477. * src/bittorrent_helper.h
  1478. * src/download_helper.cc
  1479. * src/main.cc
  1480. * src/option_processing.cc
  1481. * test/BtDependencyTest.cc
  1482. * test/BtPostDownloadHandlerTest.cc
  1483. * test/CookieStorageTest.cc
  1484. * test/DefaultBtMessageDispatcherTest.cc
  1485. * test/DownloadHandlerFactoryTest.cc
  1486. * test/DownloadHelperTest.cc
  1487. * test/FeedbackURISelectorTest.cc
  1488. * test/FileEntryTest.cc
  1489. * test/InOrderURISelectorTest.cc
  1490. * test/Metalink2RequestGroupTest.cc
  1491. * test/MetalinkPostDownloadHandlerTest.cc
  1492. * test/RequestGroupManTest.cc
  1493. * test/RequestGroupTest.cc
  1494. * test/XmlRpcMethodTest.cc
  1495. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Removed MockBtContext.h
  1497. * test/Makefile.am
  1498. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Removed _currentRequest from StreamCheckIntegrityEntry and
  1500. StreamFileAllocationEntry.
  1501. * src/AbstractCommand.cc
  1502. * src/HttpResponseCommand.cc
  1503. * src/RequestGroup.cc
  1504. * src/StreamCheckIntegrityEntry.cc
  1505. * src/StreamCheckIntegrityEntry.h
  1506. * src/StreamFileAllocationEntry.cc
  1507. * src/StreamFileAllocationEntry.h
  1508. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Rewritten DownloadContext and removed SingleFileDownloadContext
  1510. and BtContext and its derived classes. BitTorrent specific
  1511. attributes are now set by DownloadContext::setAttribute() with key
  1512. bittorrent::BITTORRENT.
  1513. * src/AbstractBtMessage.cc
  1514. * src/AbstractBtMessage.h
  1515. * src/AbstractCommand.cc
  1516. * src/AbstractCommand.h
  1517. * src/AbstractProxyRequestCommand.cc
  1518. * src/AbstractProxyResponseCommand.cc
  1519. * src/ActivePeerConnectionCommand.cc
  1520. * src/ActivePeerConnectionCommand.h
  1521. * src/AnnounceList.cc
  1522. * src/BtCheckIntegrityEntry.cc
  1523. * src/BtConstants.h
  1524. * src/BtContext.h: Removed
  1525. * src/BtDependency.cc
  1526. * src/BtExtendedMessage.cc
  1527. * src/BtPieceMessage.cc
  1528. * src/BtPieceMessage.h
  1529. * src/BtPostDownloadHandler.cc
  1530. * src/BtRegistry.cc
  1531. * src/BtRegistry.h
  1532. * src/BtSetup.cc
  1533. * src/CheckIntegrityCommand.cc
  1534. * src/CheckIntegrityEntry.cc
  1535. * src/ChecksumCheckIntegrityEntry.cc
  1536. * src/ConsoleStatCalc.cc
  1537. * src/ContentTypeRequestGroupCriteria.cc
  1538. * src/DHTGetPeersCommand.cc
  1539. * src/DHTGetPeersCommand.h
  1540. * src/DHTPeerLookupTask.cc
  1541. * src/DHTPeerLookupTask.h
  1542. * src/DHTTaskFactory.h
  1543. * src/DHTTaskFactoryImpl.cc
  1544. * src/DHTTaskFactoryImpl.h
  1545. * src/DefaultBtAnnounce.cc
  1546. * src/DefaultBtAnnounce.h
  1547. * src/DefaultBtContext.cc: Removed
  1548. * src/DefaultBtContext.h: Removed
  1549. * src/DefaultBtInteractive.cc
  1550. * src/DefaultBtInteractive.h
  1551. * src/DefaultBtMessageDispatcher.cc
  1552. * src/DefaultBtMessageDispatcher.h
  1553. * src/DefaultBtMessageFactory.cc
  1554. * src/DefaultBtMessageFactory.h
  1555. * src/DefaultBtMessageReceiver.cc
  1556. * src/DefaultBtMessageReceiver.h
  1557. * src/DefaultBtProgressInfoFile.cc
  1558. * src/DefaultBtRequestFactory.cc
  1559. * src/DefaultBtRequestFactory.h
  1560. * src/DefaultExtensionMessageFactory.cc
  1561. * src/DefaultExtensionMessageFactory.h
  1562. * src/DefaultPeerStorage.cc
  1563. * src/DefaultPeerStorage.h
  1564. * src/DefaultPieceStorage.cc
  1565. * src/DefaultSegmentManFactory.cc
  1566. * src/DiskAdaptor.cc
  1567. * src/DiskAdaptor.h
  1568. * src/DownloadContext.cc
  1569. * src/DownloadContext.h
  1570. * src/DownloadEngine.cc
  1571. * src/DownloadEngineFactory.cc
  1572. * src/DownloadHandler.cc
  1573. * src/DownloadResult.h
  1574. * src/FileAllocationCommand.cc
  1575. * src/FileAllocationDispatcherCommand.cc
  1576. * src/FileAllocationEntry.cc
  1577. * src/FileEntry.h
  1578. * src/FillRequestGroupCommand.cc
  1579. * src/FtpDownloadCommand.cc
  1580. * src/FtpFinishDownloadCommand.cc
  1581. * src/FtpInitiateConnectionCommand.cc
  1582. * src/FtpNegotiationCommand.cc
  1583. * src/FtpTunnelRequestCommand.cc
  1584. * src/FtpTunnelResponseCommand.cc
  1585. * src/HandshakeExtensionMessage.cc
  1586. * src/HandshakeExtensionMessage.h
  1587. * src/HaveEraseCommand.cc
  1588. * src/HttpDownloadCommand.cc
  1589. * src/HttpInitiateConnectionCommand.cc
  1590. * src/HttpProxyRequestCommand.cc
  1591. * src/HttpProxyResponseCommand.cc
  1592. * src/HttpRequest.cc
  1593. * src/HttpRequest.h
  1594. * src/HttpRequestCommand.cc
  1595. * src/HttpResponseCommand.cc
  1596. * src/HttpServerBodyCommand.cc
  1597. * src/HttpServerCommand.cc
  1598. * src/HttpSkipResponseCommand.cc
  1599. * src/InitiateConnectionCommandFactory.cc
  1600. * src/InitiatorMSEHandshakeCommand.cc
  1601. * src/InitiatorMSEHandshakeCommand.h
  1602. * src/IteratableChecksumValidator.cc
  1603. * src/IteratableChecksumValidator.h
  1604. * src/IteratableChunkChecksumValidator.cc
  1605. * src/MSEHandshake.cc
  1606. * src/MSEHandshake.h
  1607. * src/Makefile.am
  1608. * src/Makefile.in
  1609. * src/Metalink2RequestGroup.cc
  1610. * src/MetalinkPostDownloadHandler.cc
  1611. * src/MultiDiskAdaptor.cc
  1612. * src/MultiDiskAdaptor.h
  1613. * src/MultiFileAllocationIterator.cc
  1614. * src/MultiUrlRequestInfo.cc
  1615. * src/PeerChokeCommand.cc
  1616. * src/PeerChokeCommand.h
  1617. * src/PeerInitiateConnectionCommand.cc
  1618. * src/PeerInitiateConnectionCommand.h
  1619. * src/PeerInteractionCommand.cc
  1620. * src/PeerInteractionCommand.h
  1621. * src/PeerReceiveHandshakeCommand.cc
  1622. * src/PieceHashCheckIntegrityEntry.cc
  1623. * src/RealtimeCommand.cc
  1624. * src/ReceiverMSEHandshakeCommand.cc
  1625. * src/RequestGroup.cc
  1626. * src/RequestGroup.h
  1627. * src/RequestGroupEntry.cc
  1628. * src/RequestGroupMan.cc
  1629. * src/SeedCheckCommand.cc
  1630. * src/SeedCheckCommand.h
  1631. * src/SegmentMan.cc
  1632. * src/ShareRatioSeedCriteria.h
  1633. * src/SingleFileDownloadContext.cc: Removed
  1634. * src/SingleFileDownloadContext.h: Removed
  1635. * src/SleepCommand.cc
  1636. * src/StreamCheckIntegrityEntry.cc
  1637. * src/TrackerWatcherCommand.cc
  1638. * src/TrackerWatcherCommand.h
  1639. * src/UnknownLengthPieceStorage.cc
  1640. * src/Util.cc
  1641. * src/Util.h
  1642. * src/XmlRpcMethodImpl.cc
  1643. * src/bittorrent_helper.cc
  1644. * src/bittorrent_helper.h
  1645. * src/download_helper.cc
  1646. * src/main.cc
  1647. * src/option_processing.cc
  1648. * test/BitfieldManTest.cc
  1649. * test/BittorrentHelperTest.cc
  1650. * test/BtCancelMessageTest.cc
  1651. * test/BtChokeMessageTest.cc
  1652. * test/BtDependencyTest.cc
  1653. * test/BtPieceMessageTest.cc
  1654. * test/BtPostDownloadHandlerTest.cc
  1655. * test/BtRegistryTest.cc
  1656. * test/BtRejectMessageTest.cc
  1657. * test/BtRequestMessageTest.cc
  1658. * test/DHTPeerAnnounceStorageTest.cc
  1659. * test/DefaultBtAnnounceTest.cc
  1660. * test/DefaultBtContextTest.cc: Removed
  1661. * test/DefaultBtMessageDispatcherTest.cc
  1662. * test/DefaultBtMessageFactoryTest.cc
  1663. * test/DefaultBtProgressInfoFileTest.cc
  1664. * test/DefaultBtRequestFactoryTest.cc
  1665. * test/DefaultExtensionMessageFactoryTest.cc
  1666. * test/DefaultPeerStorageTest.cc
  1667. * test/DefaultPieceStorageTest.cc
  1668. * test/DirectDiskAdaptorTest.cc
  1669. * test/DownloadContextTest.cc
  1670. * test/DownloadHandlerFactoryTest.cc
  1671. * test/DownloadHelperTest.cc
  1672. * test/HandshakeExtensionMessageTest.cc
  1673. * test/HttpRequestTest.cc
  1674. * test/HttpResponseTest.cc
  1675. * test/IteratableChecksumValidatorTest.cc
  1676. * test/IteratableChunkChecksumValidatorTest.cc
  1677. * test/MSEHandshakeTest.cc
  1678. * test/Makefile.am
  1679. * test/Makefile.in
  1680. * test/Metalink2RequestGroupTest.cc
  1681. * test/MetalinkPostDownloadHandlerTest.cc
  1682. * test/MockBtContext.h: Removed
  1683. * test/MockDHTTaskFactory.h
  1684. * test/MockDownloadContext.h: Removed
  1685. * test/MockPieceStorage.h
  1686. * test/MultiDiskAdaptorTest.cc
  1687. * test/MultiFileAllocationIteratorTest.cc
  1688. * test/RequestGroupManTest.cc
  1689. * test/RequestGroupTest.cc
  1690. * test/SegmentManTest.cc
  1691. * test/ShareRatioSeedCriteriaTest.cc
  1692. * test/SingleFileDownloadContextTest.cc: Removed
  1693. * test/UtilTest.cc
  1694. * test/XmlRpcMethodTest.cc
  1695. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Added experimental support of WEB-Seeding for multi-file torrent.
  1697. Due to fundamental changes in file handling in HTTP/FTP code, many
  1698. functions are not working: PeerStat, ServerHost, proxy..etc
  1699. * src/AbstractCommand.cc
  1700. * src/AbstractCommand.h
  1701. * src/BitfieldMan.cc
  1702. * src/BitfieldMan.h
  1703. * src/CreateRequestCommand.cc
  1704. * src/CreateRequestCommand.h
  1705. * src/DefaultPieceStorage.cc
  1706. * src/DefaultPieceStorage.h
  1707. * src/DownloadCommand.cc
  1708. * src/DownloadCommand.h
  1709. * src/DownloadContext.cc
  1710. * src/DownloadContext.h
  1711. * src/FileEntry.cc
  1712. * src/FileEntry.h
  1713. * src/FtpDownloadCommand.cc
  1714. * src/FtpDownloadCommand.h
  1715. * src/FtpFinishDownloadCommand.cc
  1716. * src/FtpFinishDownloadCommand.h
  1717. * src/FtpInitiateConnectionCommand.cc
  1718. * src/FtpInitiateConnectionCommand.h
  1719. * src/FtpNegotiationCommand.cc
  1720. * src/FtpNegotiationCommand.h
  1721. * src/FtpTunnelResponseCommand.cc
  1722. * src/HttpDownloadCommand.cc
  1723. * src/HttpDownloadCommand.h
  1724. * src/HttpInitiateConnectionCommand.cc
  1725. * src/HttpInitiateConnectionCommand.h
  1726. * src/HttpProxyResponseCommand.cc
  1727. * src/HttpRequest.cc
  1728. * src/HttpRequest.h
  1729. * src/HttpRequestCommand.cc
  1730. * src/HttpRequestCommand.h
  1731. * src/HttpResponseCommand.cc
  1732. * src/HttpResponseCommand.h
  1733. * src/HttpSkipResponseCommand.cc
  1734. * src/HttpSkipResponseCommand.h
  1735. * src/InitiateConnectionCommand.cc
  1736. * src/InitiateConnectionCommand.h
  1737. * src/InitiateConnectionCommandFactory.cc
  1738. * src/InitiateConnectionCommandFactory.h
  1739. * src/Makefile.am
  1740. * src/PieceStorage.h
  1741. * src/RequestGroup.cc
  1742. * src/RequestGroup.h
  1743. * src/RequestGroupMan.cc
  1744. * src/SegmentMan.cc
  1745. * src/SegmentMan.h
  1746. * src/SingleFileDownloadContext.h
  1747. * src/StreamFileAllocationEntry.cc
  1748. * src/TrackerWatcherCommand.cc
  1749. * src/UnknownLengthPieceStorage.cc
  1750. * src/UnknownLengthPieceStorage.h
  1751. * src/array_fun.h
  1752. * src/bitfield.h
  1753. * src/download_helper.cc
  1754. * test/DownloadContextTest.cc
  1755. * test/Makefile.am
  1756. * test/MockDownloadContext.h
  1757. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Added tellWaiting XML-RPC method.
  1759. * src/SingleFileDownloadContext.cc
  1760. * src/XmlRpcMethodFactory.cc
  1761. * src/XmlRpcMethodImpl.cc
  1762. * src/XmlRpcMethodImpl.h
  1763. * test/XmlRpcMethodTest.cc
  1764. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Updated CookieStorageTest
  1766. * test/CookieStorageTest.cc
  1767. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1769. handle excepion inside these functions.
  1770. * src/LibgnutlsTLSContext.cc
  1771. * src/LibgnutlsTLSContext.h
  1772. * src/LibsslTLSContext.cc
  1773. * src/LibsslTLSContext.h
  1774. * src/MultiUrlRequestInfo.cc
  1775. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Added comment
  1777. * src/RequestGroup.cc
  1778. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. In CookieStorage::load() and saveNsFormat(), handle exception
  1780. inside the functions. When saving Cookies, first write temporary
  1781. file and after successful writes, then renames it to final
  1782. destination.
  1783. * src/CookieStorage.cc
  1784. * src/CookieStorage.h
  1785. * src/MultiUrlRequestInfo.cc
  1786. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. The default value of --dir option is the absolute path to the
  1788. current directory. If getcwd() is failed, then it is ".", which is
  1789. the same value with old implementation. This change is necessary
  1790. because after daemon() call, the current working directory is
  1791. changed to /.
  1792. * src/File.cc
  1793. * src/File.h
  1794. * src/OptionHandlerFactory.cc
  1795. * src/option_processing.cc
  1796. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Call daemon() with arguments(0,0), which means daemon() changes
  1798. current working directory to / and redirects stdin, stdout and
  1799. stderr to /dev/null.
  1800. * src/option_processing.cc
  1801. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Small performance optimizations.
  1803. * src/RequestGroupMan.cc
  1804. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1806. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1807. * src/RequestGroupMan.cc
  1808. * src/RequestGroupMan.h
  1809. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1811. setNoWiat(true) if newly created command calls
  1812. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1813. * src/HttpListenCommand.cc
  1814. * src/HttpServerBodyCommand.cc
  1815. * src/HttpServerCommand.cc
  1816. * src/HttpServerResponseCommand.cc
  1817. * src/InitiateConnectionCommand.cc
  1818. * src/RequestGroup.cc
  1819. * src/StreamFileAllocationEntry.cc
  1820. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Removed include vector
  1822. * src/BtRegistry.h
  1823. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Rewritten BtRegistry
  1825. * src/BtRegistry.cc
  1826. * src/BtRegistry.h
  1827. * src/BtSetup.cc
  1828. * src/ConsoleStatCalc.cc
  1829. * src/PeerInteractionCommand.cc
  1830. * src/PeerReceiveHandshakeCommand.cc
  1831. * src/ReceiverMSEHandshakeCommand.cc
  1832. * src/RequestGroup.cc
  1833. * src/XmlRpcMethodImpl.cc
  1834. * test/BtRegistryTest.cc
  1835. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1837. * src/DefaultBtProgressInfoFile.cc
  1838. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Throw an exception if position is less than 0.
  1840. * src/XmlRpcMethodImpl.cc
  1841. * test/XmlRpcMethodTest.cc
  1842. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Use writeFilePath() in ConsoleStatCalc.cc
  1844. * src/ConsoleStatCalc.cc
  1845. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Receive the return value as const reference from
  1847. DownloadContext::getFileEntries().
  1848. * src/DefaultPieceStorage.cc
  1849. * src/RequestGroupMan.cc
  1850. * src/XmlRpcMethodImpl.cc
  1851. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. DownloadContext now has _fileEntries so that
  1853. DownloadContext::getFileEntries() can returns its const reference.
  1854. * src/DefaultBtContext.cc
  1855. * src/DefaultBtContext.h
  1856. * src/DownloadContext.cc
  1857. * src/DownloadContext.h
  1858. * src/SingleFileDownloadContext.cc
  1859. * src/SingleFileDownloadContext.h
  1860. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1862. writeFilePath() function template from RequestGroupMan.cc to
  1863. FileEntry.h
  1864. * src/FileEntry.h
  1865. * src/RequestGroupMan.cc
  1866. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Documented 'position' parameter is starting from 0 in man page.
  1868. * doc/aria2c.1.txt
  1869. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Updated doc.
  1871. * src/MSEHandshake.cc
  1872. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Removed _acceptFeatures and its accessor functions from
  1874. RequestGroup since they are not used practically.
  1875. * src/HttpRequestCommand.cc
  1876. * src/RequestGroup.cc
  1877. * src/RequestGroup.h
  1878. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Removed member _maxTries from RequestGroup class to avoid
  1880. duplicate option value. Those classes who refer this variable
  1881. should use option value of PREF_MAX_TRIES directly.
  1882. * src/AbstractCommand.cc
  1883. * src/RequestGroup.cc
  1884. * src/RequestGroup.h
  1885. * src/TrackerWatcherCommand.cc
  1886. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. * Release 1.4.1
  1888. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Fixed compiler warnings on netbsd
  1890. * src/DHTConnectionImpl.cc
  1891. * src/PeerListenCommand.cc
  1892. * src/PeerSessionResource.cc
  1893. * src/SegmentMan.cc
  1894. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Updated Ukrainian translation. Thanks to all translators.
  1896. * po/uk.po
  1897. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Bump up version number to 1.4.1.
  1899. * configure.ac
  1900. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Added unit tests for strjoin, strconcat and strappend.
  1902. * test/a2functionalTest.cc
  1903. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Rewritten strconcat and strappend using operator+ instead of
  1905. append().
  1906. * src/a2functional.h
  1907. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1909. is enabled.
  1910. * src/Makefile.am
  1911. * test/Makefile.am
  1912. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Added countSeeder() function which counts seeder in the given
  1914. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1915. * src/ConsoleStatCalc.cc
  1916. * src/Peer.h
  1917. * src/XmlRpcMethodImpl.cc
  1918. * test/PeerTest.cc
  1919. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Documented missing seeder in getPeers xml-rpc method.
  1921. Documented uploadLength and numSeeders.
  1922. * doc/aria2c.1.txt
  1923. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Added uploadLength and numSeeders to the response of tellStatus
  1925. xml-rpc method. Assert that PeerStorage instance is not null
  1926. instead of checking if statement. It should be non-null in this
  1927. context.
  1928. * src/XmlRpcMethodImpl.cc
  1929. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1931. * src/XmlRpcResponse.cc
  1932. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Avoid intermediate object during string concatenation.
  1934. * src/HttpRequest.cc
  1935. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Added strjoin function template. Use it in pathJoin()
  1937. * src/Util.h
  1938. * src/a2functional.h
  1939. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Avoid intermediate object during string concatenation. Replaced
  1941. post-increment unary operator with pre-increment one in for loop.
  1942. * src/AdaptiveURISelector.cc
  1943. * src/AnnounceList.cc
  1944. * src/AuthConfig.h
  1945. * src/BtBitfieldMessage.cc
  1946. * src/BtExtendedMessage.cc
  1947. * src/BtHandshakeMessage.cc
  1948. * src/BtPieceMessage.cc
  1949. * src/BtPortMessage.cc
  1950. * src/Cookie.cc
  1951. * src/DHTAnnouncePeerMessage.cc
  1952. * src/DHTAutoSaveCommand.cc
  1953. * src/DHTGetPeersReplyMessage.cc
  1954. * src/DHTNode.cc
  1955. * src/DHTQueryMessage.cc
  1956. * src/DHTResponseMessage.cc
  1957. * src/DHTUnknownMessage.cc
  1958. * src/DefaultBtAnnounce.cc
  1959. * src/DefaultBtContext.cc
  1960. * src/DefaultBtInteractive.cc
  1961. * src/DefaultBtProgressInfoFile.cc
  1962. * src/DefaultPeerStorage.cc
  1963. * src/DownloadEngine.cc
  1964. * src/FeatureConfig.cc
  1965. * src/File.cc
  1966. * src/FtpConnection.cc
  1967. * src/FtpNegotiationCommand.cc
  1968. * src/HandshakeExtensionMessage.cc
  1969. * src/HttpConnection.cc
  1970. * src/HttpRequest.cc
  1971. * src/HttpResponseCommand.cc
  1972. * src/HttpServer.cc
  1973. * src/IndexBtMessage.cc
  1974. * src/Metalink2RequestGroup.cc
  1975. * src/OptionHandlerImpl.h
  1976. * src/PStringBuildVisitor.cc
  1977. * src/Peer.cc
  1978. * src/PeerListenCommand.cc
  1979. * src/Piece.cc
  1980. * src/RangeBtMessage.cc
  1981. * src/Request.cc
  1982. * src/Request.h
  1983. * src/RequestGroup.cc
  1984. * src/RequestGroupMan.cc
  1985. * src/ServerStat.cc
  1986. * src/ServerStatMan.cc
  1987. * src/UTPexExtensionMessage.cc
  1988. * src/Util.cc
  1989. * src/a2functional.h
  1990. * src/download_helper.cc
  1991. * src/messageDigest.cc
  1992. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Unchoke a peer randomly at first and second choke round in seed
  1994. state.
  1995. * src/BtSeederStateChoke.cc
  1996. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1997. Added (sock_t) to quiet compiler warnings in MinGW
  1998. * src/SocketCore.cc
  1999. * src/SocketCore.h
  2000. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2002. * src/EpollEventPoll.h
  2003. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2004. Added fork() emulation using CreateProcess() in MinGW
  2005. * src/RequestGroupMan.cc
  2006. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. * Release 1.4.0
  2008. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Added utf8.torrent to EXTRA_DIST
  2010. * test/Makefile.am
  2011. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Fixed docs of aria2.addMetalink xml-rpc method.
  2013. * doc/aria2c.1.txt
  2014. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Added Slovak translation. Updated Ukrainian and Brazilian
  2016. Portuguese translation. Thanks to all translators.
  2017. * po/sk.po
  2018. * po/uk.po
  2019. * po/pt_BR.po
  2020. * po/LINGUAS
  2021. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Added test case for XmlRpcProcessor to fail to parse malformed
  2023. document.
  2024. * test/XmlRpcRequestProcessorTest.cc
  2025. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Removed *.gmo files in po because they are generated on 'make
  2027. dist'
  2028. * po/*.gmo
  2029. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Documented max-concurrent-downloads of changeGlobalOption method
  2031. in man page.
  2032. * doc/aria2c.1.txt
  2033. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Added max-concurrent-downloads option to changeGlobalOption
  2035. xml-rpc method. Rewritten loop conditional in
  2036. RequestGroupMan::fillRequestGroupFromReserver().
  2037. * src/RequestGroupMan.cc
  2038. * src/RequestGroupMan.h
  2039. * src/XmlRpcMethod.cc
  2040. * src/XmlRpcMethodImpl.cc
  2041. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Documented position parameter in man page.
  2043. * doc/aria2c.1.txt
  2044. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Added 'position' parameter to addUri, addTorrent and addMetalink
  2046. xml-rpc method.
  2047. * src/RequestGroupMan.cc
  2048. * src/RequestGroupMan.h
  2049. * src/XmlRpcMethodImpl.cc
  2050. * test/XmlRpcMethodTest.cc
  2051. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Removed Peer.cc from compile source list when --disable-bittorrent
  2053. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2054. takes Peer.
  2055. * src/DefaultPieceStorage.cc
  2056. * src/DefaultPieceStorage.h
  2057. * src/Makefile.am
  2058. * src/PieceStorage.h
  2059. * src/UnknownLengthPieceStorage.cc
  2060. * src/UnknownLengthPieceStorage.h
  2061. * test/MockPieceStorage.h
  2062. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Implemented getter methods in header files to give them more
  2064. chance of optimization.
  2065. Return const reference for SharadHandle if possible.
  2066. * src/AbstractAuthResolver.cc
  2067. * src/AbstractAuthResolver.h
  2068. * src/AbstractBtMessage.cc
  2069. * src/AbstractBtMessage.h
  2070. * src/AbstractSingleDiskAdaptor.cc
  2071. * src/AbstractSingleDiskAdaptor.h
  2072. * src/AsyncNameResolver.cc
  2073. * src/AsyncNameResolver.h
  2074. * src/BNode.cc
  2075. * src/BNode.h
  2076. * src/BitfieldMan.cc
  2077. * src/BitfieldMan.h
  2078. * src/BtAbortOutstandingRequestEvent.h
  2079. * src/BtExtendedMessage.cc
  2080. * src/BtExtendedMessage.h
  2081. * src/BtSeederStateChoke.cc
  2082. * src/BtSeederStateChoke.h
  2083. * src/Cookie.cc
  2084. * src/Cookie.h
  2085. * src/DHTBucket.cc
  2086. * src/DHTBucket.h
  2087. * src/DHTConnectionImpl.cc
  2088. * src/DHTConnectionImpl.h
  2089. * src/DHTFindNodeReplyMessage.cc
  2090. * src/DHTFindNodeReplyMessage.h
  2091. * src/DHTGetPeersReplyMessage.cc
  2092. * src/DHTGetPeersReplyMessage.h
  2093. * src/DHTInteractionCommand.cc
  2094. * src/DHTMessage.cc
  2095. * src/DHTMessage.h
  2096. * src/DHTMessageDispatcherImpl.cc
  2097. * src/DHTMessageEntry.cc
  2098. * src/DHTMessageReceiver.cc
  2099. * src/DHTMessageReceiver.h
  2100. * src/DHTMessageTrackerEntry.cc
  2101. * src/DHTMessageTrackerEntry.h
  2102. * src/DHTPeerAnnounceEntry.cc
  2103. * src/DHTPeerAnnounceEntry.h
  2104. * src/DHTPeerLookupTask.cc
  2105. * src/DHTPeerLookupTask.h
  2106. * src/DHTRoutingTableDeserializer.cc
  2107. * src/DHTRoutingTableDeserializer.h
  2108. * src/DefaultBtAnnounce.cc
  2109. * src/DefaultBtAnnounce.h
  2110. * src/DefaultBtMessageDispatcher.cc
  2111. * src/DefaultBtMessageDispatcher.h
  2112. * src/DefaultBtRequestFactory.cc
  2113. * src/DefaultBtRequestFactory.h
  2114. * src/DiskAdaptor.cc
  2115. * src/DiskAdaptor.h
  2116. * src/DownloadContext.cc
  2117. * src/DownloadContext.h
  2118. * src/DownloadEngine.cc
  2119. * src/DownloadEngine.h
  2120. * src/EpollEventPoll.cc
  2121. * src/EpollEventPoll.h
  2122. * src/FtpConnection.cc
  2123. * src/FtpConnection.h
  2124. * src/HttpConnection.cc
  2125. * src/HttpConnection.h
  2126. * src/HttpHeader.cc
  2127. * src/HttpHeader.h
  2128. * src/HttpRequest.cc
  2129. * src/HttpRequest.h
  2130. * src/HttpResponse.cc
  2131. * src/HttpResponse.h
  2132. * src/LibsslTLSContext.cc
  2133. * src/LibsslTLSContext.h
  2134. * src/MSEHandshake.cc
  2135. * src/MSEHandshake.h
  2136. * src/MetalinkEntry.cc
  2137. * src/MetalinkEntry.h
  2138. * src/MetalinkParserController.cc
  2139. * src/MetalinkParserController.h
  2140. * src/MetalinkParserStateMachine.cc
  2141. * src/MetalinkParserStateMachine.h
  2142. * src/MultiDiskAdaptor.cc
  2143. * src/MultiDiskAdaptor.h
  2144. * src/NetrcAuthResolver.cc
  2145. * src/NetrcAuthResolver.h
  2146. * src/Peer.cc
  2147. * src/Peer.h
  2148. * src/PeerSessionResource.cc
  2149. * src/PeerSessionResource.h
  2150. * src/Piece.cc
  2151. * src/Piece.h
  2152. * src/PieceStatMan.cc
  2153. * src/PieceStatMan.h
  2154. * src/Request.cc
  2155. * src/Request.h
  2156. * src/RequestGroup.cc
  2157. * src/RequestGroup.h
  2158. * src/RequestGroupMan.cc
  2159. * src/RequestGroupMan.h
  2160. * src/RequestSlot.cc
  2161. * src/RequestSlot.h
  2162. * src/SegmentMan.cc
  2163. * src/SegmentMan.h
  2164. * src/SelectEventPoll.cc
  2165. * src/SelectEventPoll.h
  2166. * src/ServerStat.cc
  2167. * src/ServerStat.h
  2168. * src/Signature.cc
  2169. * src/Signature.h
  2170. * src/URIResult.cc
  2171. * src/URIResult.h
  2172. * src/UTPexExtensionMessage.cc
  2173. * src/UTPexExtensionMessage.h
  2174. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Fixed compile error without BitTorrent and Metalink support.
  2176. * src/XmlRpcMethod.cc
  2177. * src/XmlRpcMethodFactory.cc
  2178. * src/XmlRpcMethodImpl.cc
  2179. * src/XmlRpcMethodImpl.h
  2180. * test/XmlRpcMethodTest.cc
  2181. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Rewritten the help message for --allow-overwrite option.
  2183. * doc/aria2c.1.txt
  2184. * src/usage_text.h
  2185. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Fixed typo
  2187. * doc/aria2c.1.txt
  2188. * src/usage_text.h
  2189. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Updated README for 1.4.0 release. Use new table syntax of
  2191. asciidoc.
  2192. * README
  2193. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Documented --xml-rpc-max-request-size option in man page.
  2195. * doc/aria2c.1.txt
  2196. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Moved C_* constants from BtContext to DefaultBtContext.
  2198. * src/BtContext.cc: Removed.
  2199. * src/BtContext.h
  2200. * src/DefaultBtContext.cc
  2201. * src/DefaultBtContext.h
  2202. * src/Makefile.am
  2203. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2205. path key respectively when persing .torrent file.
  2206. * src/BtContext.cc
  2207. * src/BtContext.h
  2208. * src/DefaultBtContext.cc
  2209. * test/DefaultBtContextTest.cc
  2210. * test/utf8.torrent
  2211. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Added --xml-rpc-max-request-size option to limit the size of
  2213. XML-RPC request.
  2214. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Documented XML-RPC API in man page.
  2216. * doc/aria2c.1.txt
  2217. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2219. will break strict-aliasing rules
  2220. * src/PeerConnection.cc
  2221. * test/DHTRoutingTableSerializerTest.cc
  2222. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2224. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2225. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2226. PKG_CHECK_MODULES macro uses latter name.
  2227. * m4/sqlite3.m4
  2228. * src/Makefile.am
  2229. * test/Makefile.am
  2230. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Fixed typo
  2232. * configure.ac
  2233. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2235. presence of libgnutls using pkg-config first. If it fails, fall
  2236. back to old macro libgnutls.m4.
  2237. * configure.ac
  2238. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Use s itself instead of !s.bad()
  2240. * src/CookieStorage.cc
  2241. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Documented --on-download-* option and --save-cookies option in man
  2243. page.
  2244. * doc/aria2c.1.txt
  2245. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Set possible values for --load-cookie option to "/path/to/file".
  2247. * src/OptionHandlerFactory.cc
  2248. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Added --save-cookies option.
  2250. * src/Cookie.cc
  2251. * src/Cookie.h
  2252. * src/CookieStorage.cc
  2253. * src/CookieStorage.h
  2254. * src/MultiUrlRequestInfo.cc
  2255. * src/OptionHandlerFactory.cc
  2256. * src/prefs.cc
  2257. * src/prefs.h
  2258. * src/usage_text.h
  2259. * test/CookieStorageTest.cc
  2260. * test/CookieTest.cc
  2261. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Removed tellAll XML-RPC command because its reponse tends to be
  2263. big if stopped/waiting downloads pile up.
  2264. * src/XmlRpcMethodFactory.cc
  2265. * src/XmlRpcMethodImpl.cc
  2266. * src/XmlRpcMethodImpl.h
  2267. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Added the ability to execute command when download starts and
  2269. stops. You can also specify command for particular cases such as
  2270. complete/error download. Added --on-download-start,
  2271. --on-download-stop, --on-download-complete and --on-download-error
  2272. option.
  2273. * src/OptionHandlerFactory.cc
  2274. * src/RequestGroupMan.cc
  2275. * src/prefs.cc
  2276. * src/prefs.h
  2277. * src/usage_text.h
  2278. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Fixed test error
  2280. * test/BencodeTest.cc
  2281. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Added unit tests.
  2283. * test/XmlRpcMethodTest.cc
  2284. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Made exception message more verbose.
  2286. * src/bencode.cc
  2287. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2289. space in console readout. Also they are now shown in MiB/s if
  2290. speed > 1024KiB/s.
  2291. * src/ConsoleStatCalc.cc
  2292. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Added SEED to console output, which represents the number of
  2294. seeders currently the client is connecting to.
  2295. * src/ConsoleStatCalc.cc
  2296. * src/ConsoleStatCalc.h
  2297. * src/DownloadEngine.cc
  2298. * src/NullStatCalc.h
  2299. * src/StatCalc.h
  2300. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Added source filename(__FILE__) and line number(__LINE__) to
  2302. exception message.
  2303. * src/AbstractCommand.cc
  2304. * src/AbstractDiskWriter.cc
  2305. * src/AbstractProxyResponseCommand.cc
  2306. * src/BDE.h
  2307. * src/BtAllowedFastMessage.cc
  2308. * src/BtHandshakeMessageValidator.h
  2309. * src/BtHaveAllMessage.cc
  2310. * src/BtHaveNoneMessage.cc
  2311. * src/BtPieceMessage.cc
  2312. * src/BtRejectMessage.cc
  2313. * src/ChunkedDecoder.cc
  2314. * src/CookieStorage.cc
  2315. * src/DHTAnnouncePeerMessage.cc
  2316. * src/DHTEntryPointNameResolveCommand.cc
  2317. * src/DHTMessageFactoryImpl.cc
  2318. * src/DHTMessageTracker.cc
  2319. * src/DHTRoutingTableDeserializer.cc
  2320. * src/DHTRoutingTableSerializer.cc
  2321. * src/DHTSetup.cc
  2322. * src/DHTTokenTracker.cc
  2323. * src/DefaultBtAnnounce.cc
  2324. * src/DefaultBtContext.cc
  2325. * src/DefaultBtInteractive.cc
  2326. * src/DefaultBtMessageFactory.cc
  2327. * src/DefaultBtProgressInfoFile.cc
  2328. * src/DefaultExtensionMessageFactory.cc
  2329. * src/DlAbortEx.h
  2330. * src/DlRetryEx.h
  2331. * src/DownloadCommand.cc
  2332. * src/DownloadEngineFactory.cc
  2333. * src/DownloadFailureException.h
  2334. * src/Exception.cc
  2335. * src/Exception.h
  2336. * src/ExpatMetalinkProcessor.cc
  2337. * src/ExpatXmlRpcRequestProcessor.cc
  2338. * src/FallocFileAllocationIterator.cc
  2339. * src/FatalException.h
  2340. * src/FtpConnection.cc
  2341. * src/FtpFinishDownloadCommand.cc
  2342. * src/FtpInitiateConnectionCommand.cc
  2343. * src/FtpNegotiationCommand.cc
  2344. * src/GZipDecoder.cc
  2345. * src/HandshakeExtensionMessage.cc
  2346. * src/HttpConnection.cc
  2347. * src/HttpHeaderProcessor.cc
  2348. * src/HttpInitiateConnectionCommand.cc
  2349. * src/HttpResponse.cc
  2350. * src/HttpResponseCommand.cc
  2351. * src/HttpServer.cc
  2352. * src/HttpSkipResponseCommand.cc
  2353. * src/InitiateConnectionCommandFactory.cc
  2354. * src/IteratableChunkChecksumValidator.cc
  2355. * src/LibgcryptARC4Context.h
  2356. * src/LibgcryptARC4Decryptor.h
  2357. * src/LibgcryptARC4Encryptor.h
  2358. * src/LibgcryptDHKeyExchange.h
  2359. * src/LibgnutlsTLSContext.cc
  2360. * src/LibsslARC4Context.h
  2361. * src/LibsslARC4Decryptor.h
  2362. * src/LibsslARC4Encryptor.h
  2363. * src/LibsslDHKeyExchange.h
  2364. * src/LibsslTLSContext.cc
  2365. * src/MSEHandshake.cc
  2366. * src/MessageDigestHelper.cc
  2367. * src/MetalinkHelper.cc
  2368. * src/MultiDiskAdaptor.cc
  2369. * src/NameMatchOptionHandler.h
  2370. * src/NameResolver.cc
  2371. * src/Netrc.cc
  2372. * src/NsCookieParser.cc
  2373. * src/OptionHandlerException.cc
  2374. * src/OptionHandlerException.h
  2375. * src/OptionHandlerImpl.h
  2376. * src/OptionParser.cc
  2377. * src/ParameterizedStringParser.cc
  2378. * src/PeerAbstractCommand.cc
  2379. * src/PeerConnection.cc
  2380. * src/PeerMessageUtil.cc
  2381. * src/PeerReceiveHandshakeCommand.cc
  2382. * src/Platform.cc
  2383. * src/ReceiverMSEHandshakeCommand.cc
  2384. * src/RecoverableException.h
  2385. * src/RequestGroup.cc
  2386. * src/SimpleLogger.cc
  2387. * src/SocketCore.cc
  2388. * src/Sqlite3MozCookieParser.cc
  2389. * src/UTPexExtensionMessage.cc
  2390. * src/Util.cc
  2391. * src/XML2SAXMetalinkProcessor.cc
  2392. * src/Xml2XmlRpcRequestProcessor.cc
  2393. * src/XmlRpcMethodImpl.cc
  2394. * src/bencode.cc
  2395. * src/download_helper.cc
  2396. * src/messageDigest.h
  2397. * test/ExceptionTest.cc
  2398. * test/TestUtil.cc
  2399. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Bump up version number to 1.4.0
  2401. * configure.ac
  2402. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Added 2files.metalink to EXTRA_DIST
  2404. * test/Makefile.am
  2405. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2406. Added missing 2files.metalink
  2407. * test/2files.metalink
  2408. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Show "[MEMORY]" prefix before filename in download summary if it
  2410. is downloaded into memory.
  2411. * src/DownloadResult.h
  2412. * src/RequestGroup.cc
  2413. * src/RequestGroupMan.cc
  2414. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2416. * src/ExpatXmlRpcRequestProcessor.cc
  2417. * src/Xml2XmlRpcRequestProcessor.cc
  2418. * src/message.h
  2419. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Defined const BDEs to avoid duplicate instantiation.
  2421. Defined MSG_GID_NOT_PROVIDED.
  2422. * src/XmlRpcMethodImpl.cc
  2423. * src/message.h
  2424. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Code cleanup
  2426. * src/Xml2XmlRpcRequestProcessor.cc
  2427. * src/Xml2XmlRpcRequestProcessor.h
  2428. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Defined ENABLE_XML_RPC
  2430. * configure.ac
  2431. * configure
  2432. * config.h.in
  2433. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Added ExpatXmlRpcRequestProcessor
  2435. * src/ExpatXmlRpcRequestProcessor.cc
  2436. * src/ExpatXmlRpcRequestProcessor.h
  2437. * src/Makefile.am
  2438. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Added tests for addTorrent and addMetalink command.
  2440. * test/TestUtil.cc
  2441. * test/TestUtil.h
  2442. * test/XmlRpcMethodTest.cc
  2443. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Corrected the description of --file-allocation option.
  2445. * doc/aria2c.1.txt
  2446. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Added tellAll command.
  2448. * src/XmlRpcMethodFactory.cc
  2449. * src/XmlRpcMethodImpl.cc
  2450. * src/XmlRpcMethodImpl.h
  2451. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2453. * src/XmlRpcMethodImpl.cc
  2454. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Added changeGlobalOption command. Currently,
  2456. max-overall-download-limit and max-overall-upload-limit option are
  2457. available.
  2458. * src/RequestGroupMan.h
  2459. * src/XmlRpcMethod.cc
  2460. * src/XmlRpcMethod.h
  2461. * src/XmlRpcMethodFactory.cc
  2462. * src/XmlRpcMethodImpl.cc
  2463. * src/XmlRpcMethodImpl.h
  2464. * test/XmlRpcMethodTest.cc
  2465. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Added changeOption command. Currently, max-download-limit,
  2467. max-upload-limit option are available in this command.
  2468. * src/RequestGroup.h
  2469. * src/XmlRpcMethod.cc
  2470. * src/XmlRpcMethod.h
  2471. * src/XmlRpcMethodFactory.cc
  2472. * src/XmlRpcMethodImpl.cc
  2473. * src/XmlRpcMethodImpl.h
  2474. * test/XmlRpcMethodTest.cc
  2475. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Added purgeDownloadResult command.
  2477. * src/RequestGroupMan.cc
  2478. * src/RequestGroupMan.h
  2479. * src/XmlRpcMethodFactory.cc
  2480. * src/XmlRpcMethodImpl.cc
  2481. * src/XmlRpcMethodImpl.h
  2482. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Refactored.
  2484. * src/XmlRpcMethod.cc
  2485. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2487. XmlRpcResponse.
  2488. * src/HttpServerBodyCommand.cc
  2489. * src/Makefile.am
  2490. * src/XmlRpcMethod.cc
  2491. * src/XmlRpcMethod.h
  2492. * src/XmlRpcMethodImpl.cc
  2493. * src/XmlRpcResponse.cc
  2494. * src/XmlRpcResponse.h
  2495. * test/XmlRpcMethodTest.cc
  2496. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. In XML-RPC option struct, header and index-out option can take
  2498. array as value.
  2499. * src/XmlRpcMethod.cc
  2500. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Removed unused option member from PeerConnection.
  2502. * src/InitiatorMSEHandshakeCommand.cc
  2503. * src/PeerConnection.cc
  2504. * src/PeerConnection.h
  2505. * src/PeerInteractionCommand.cc
  2506. * src/PeerReceiveHandshakeCommand.cc
  2507. * src/ReceiverMSEHandshakeCommand.cc
  2508. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Added "seeder" key to getPeers response.
  2510. * src/XmlRpcMethodImpl.cc
  2511. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added addMetalink XML-RPC command.
  2513. * src/XmlRpcMethodFactory.cc
  2514. * src/XmlRpcMethodImpl.cc
  2515. * src/XmlRpcMethodImpl.h
  2516. * src/download_helper.cc
  2517. * src/download_helper.h
  2518. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Fixed the bug that POU peers are never choked in seeding.
  2520. * src/BtSeederStateChoke.cc
  2521. * src/BtSeederStateChoke.h
  2522. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Added web-seeding URI handling in addTorrent command.
  2524. * src/XmlRpcMethodImpl.cc
  2525. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Added "length" key to getFiles response.
  2527. * src/XmlRpcMethodImpl.cc
  2528. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Moved --no-netrc option from ftp option section to http/ftp option
  2530. section.
  2531. * doc/aria2c.1.txt
  2532. * src/OptionHandlerFactory.cc
  2533. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Removed garbage "\" character before '
  2535. * doc/aria2c.1.txt
  2536. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Removed garbage "\" character before http.
  2538. * doc/aria2c.1.txt
  2539. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Documented additional options that can be specified in -i list.
  2541. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2542. and --xml-rpc-passwd. Removed --enable-http-server and
  2543. --http-server-listen-port.
  2544. * doc/aria2c.1.txt
  2545. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2547. * src/DefaultPeerStorage.cc
  2548. * src/DefaultPeerStorage.h
  2549. * src/PeerStorage.h
  2550. * src/XmlRpcMethodImpl.cc
  2551. * test/MockPeerStorage.h
  2552. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Put a call to Socket::isReadable() in try block.
  2554. * src/HttpServerBodyCommand.cc
  2555. * src/HttpServerCommand.cc
  2556. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2558. exception , so it is now in try block.
  2559. * src/HttpServerResponseCommand.cc
  2560. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Added "amChoking" and "peerChoking" key in getPeers response.
  2562. * src/XmlRpcMethodImpl.cc
  2563. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2564. Added test case for zero-length filter.
  2565. * test/BitfieldManTest.cc
  2566. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. getFiles command now returns file data for finished/stopped
  2568. downloads.
  2569. * src/XmlRpcMethodImpl.cc
  2570. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. DownloadResult now has the list of FileEntry. The download
  2572. summary displays the path of first selected file and the number of
  2573. remaining files for multi-file torrent.
  2574. * src/DownloadResult.h
  2575. * src/RequestGroup.cc
  2576. * src/RequestGroupMan.cc
  2577. * test/RequestGroupTest.cc
  2578. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Fixed segmentation fault error when no file is selected in
  2580. multi-file torrent.
  2581. * src/BitfieldMan.cc
  2582. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Escaped <,>,& character in XML-RPC response.
  2584. * src/XmlRpcMethod.cc
  2585. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Throw DlAbortEx instead of FatalException during parsing options
  2587. because we don't want for aria2 to quit when bad option is passed
  2588. via XML-RPC.
  2589. * src/OptionHandlerException.cc
  2590. * src/OptionHandlerException.h
  2591. * src/OptionHandlerImpl.h
  2592. * src/OptionParser.cc
  2593. * src/OptionParser.h
  2594. * src/PStringSegment.cc
  2595. * src/ParameterizedStringParser.cc
  2596. * src/download_helper.cc
  2597. * test/ParameterizedStringParserTest.cc
  2598. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Selecting files are now done in
  2600. DefaultBtContext::setFileFileter().
  2601. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2602. functions are removed because they are no longer used. Creating
  2603. filter in BitfieldMan is done in new funtion
  2604. PieceStorage::setupFileFilter()
  2605. * src/BtContext.cc
  2606. * src/BtContext.h
  2607. * src/DefaultBtContext.cc
  2608. * src/DefaultBtContext.h
  2609. * src/DefaultPieceStorage.cc
  2610. * src/DefaultPieceStorage.h
  2611. * src/DiskAdaptor.cc
  2612. * src/DiskAdaptor.h
  2613. * src/PieceStorage.h
  2614. * src/RequestGroup.cc
  2615. * src/UnknownLengthPieceStorage.h
  2616. * src/XmlRpcMethodImpl.cc
  2617. * test/DefaultBtContextTest.cc
  2618. * test/MockBtContext.h
  2619. * test/MockPieceStorage.h
  2620. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Fixed compile error on Mac OS X
  2622. * src/HttpServer.cc
  2623. * src/XmlRpcMethod.h
  2624. * src/XmlRpcMethodImpl.cc
  2625. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2626. Use std::binary_search instead of std::find
  2627. * src/DefaultPieceStorage.cc
  2628. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Removed unnecessary BDE() call; leave them to implicit conversion.
  2630. * src/XmlRpcMethodImpl.cc
  2631. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Return connections and gid in string
  2633. * src/XmlRpcMethodImpl.cc
  2634. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Renamed addURI as addUri
  2636. * src/XmlRpcMethodFactory.cc
  2637. * src/XmlRpcMethodImpl.cc
  2638. * src/XmlRpcMethodImpl.h
  2639. * test/XmlRpcMethodTest.cc
  2640. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Renamed addTorrentFile as addTorrent
  2642. * src/XmlRpcMethodFactory.cc
  2643. * src/XmlRpcMethodImpl.cc
  2644. * src/XmlRpcMethodImpl.h
  2645. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. The information for files, URIs, peers are removed from the
  2647. reponse of TellaActive, TellStatus command because they tend to be
  2648. large. Instead they can be retrieved by the dedicated commands:
  2649. getFiles, getUris and getPeers respectively.
  2650. * src/XmlRpcMethodFactory.cc
  2651. * src/XmlRpcMethodImpl.cc
  2652. * src/XmlRpcMethodImpl.h
  2653. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Removed --max-overall-upload-limit and
  2655. --max-overall-download-limit option from listRequestOptions.
  2656. * src/download_helper.cc
  2657. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Log incoming host in HttpListenCommand.
  2659. * src/HttpListenCommand.cc
  2660. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2662. --xml-rpc-passwd option.
  2663. * src/HttpServer.cc
  2664. * src/HttpServer.h
  2665. * src/HttpServerCommand.cc
  2666. * src/OptionHandlerFactory.cc
  2667. * src/prefs.cc
  2668. * src/prefs.h
  2669. * src/usage_text.h
  2670. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2672. processing 0 length request.
  2673. * src/HttpServerBodyCommand.cc
  2674. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Removed --enable-http-server and --http-server-listen-port
  2676. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2677. instead. The original feature for --enable-http-server that
  2678. reports download progress in HTML was officially removed. Persist
  2679. XML-RPC connection if client supports keep-alive.
  2680. * src/DownloadEngineFactory.cc
  2681. * src/HttpServerCommand.cc
  2682. * src/HttpServerResponseCommand.cc
  2683. * src/Makefile.am
  2684. * src/Makefile.in
  2685. * src/OptionHandlerFactory.cc
  2686. * src/RequestGroupMan.cc
  2687. * src/main.cc
  2688. * src/option_processing.cc
  2689. * src/prefs.cc
  2690. * src/prefs.h
  2691. * src/usage_text.h
  2692. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Added "uris" key to the response of tellStatus command. Added
  2694. "connections" key to the response of tellStatus and tellActive
  2695. command.
  2696. * src/XmlRpcMethodImpl.cc
  2697. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2699. Added TellStatusXmlRpcMethod. Remove command can now remove
  2700. waiting RequestGroup.
  2701. * src/RequestGroupMan.cc
  2702. * src/RequestGroupMan.h
  2703. * src/XmlRpcMethodFactory.cc
  2704. * src/XmlRpcMethodImpl.cc
  2705. * src/XmlRpcMethodImpl.h
  2706. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Initialized _peerId
  2708. * src/Peer.cc
  2709. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. Return fault structure for error. FailXmlRpcMethod is renamed as
  2711. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2712. in non-torrent download. Return single param value.
  2713. * src/XmlRpcMethod.cc
  2714. * src/XmlRpcMethodFactory.cc
  2715. * src/XmlRpcMethodImpl.cc
  2716. * src/XmlRpcMethodImpl.h
  2717. * test/XmlRpcMethodTest.cc
  2718. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2720. command.
  2721. * src/RequestGroup.cc
  2722. * src/RequestGroup.h
  2723. * src/RequestGroupMan.cc
  2724. * src/XmlRpcMethodImpl.cc
  2725. * test/RequestGroupTest.cc
  2726. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Added more options that can be specified in -i list and xml-rpc
  2728. add* command.
  2729. * src/download_helper.h
  2730. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. The available options in -i list should be listed in
  2732. listRequestOptions().
  2733. * src/download_helper.cc
  2734. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2736. command.
  2737. * src/XmlRpcMethodImpl.cc
  2738. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Now RequestGroup has its own copy of Option object. This will help
  2740. to give custom option for each RequestGroup.
  2741. addTorrentFile command now takes options.
  2742. * src/AbstractCommand.cc
  2743. * src/AbstractCommand.h
  2744. * src/AbstractProxyRequestCommand.cc
  2745. * src/ActivePeerConnectionCommand.cc
  2746. * src/ActivePeerConnectionCommand.h
  2747. * src/AdaptiveURISelector.cc
  2748. * src/BtCheckIntegrityEntry.cc
  2749. * src/BtDependency.cc
  2750. * src/BtDependency.h
  2751. * src/BtFileAllocationEntry.cc
  2752. * src/BtPostDownloadHandler.cc
  2753. * src/CheckIntegrityEntry.cc
  2754. * src/DownloadCommand.cc
  2755. * src/FtpDownloadCommand.cc
  2756. * src/FtpFinishDownloadCommand.cc
  2757. * src/FtpInitiateConnectionCommand.cc
  2758. * src/FtpNegotiationCommand.cc
  2759. * src/HttpInitiateConnectionCommand.cc
  2760. * src/HttpRequestCommand.cc
  2761. * src/HttpResponseCommand.cc
  2762. * src/HttpSkipResponseCommand.cc
  2763. * src/InitiateConnectionCommand.cc
  2764. * src/InitiateConnectionCommandFactory.cc
  2765. * src/InitiatorMSEHandshakeCommand.cc
  2766. * src/InitiatorMSEHandshakeCommand.h
  2767. * src/Metalink2RequestGroup.cc
  2768. * src/Metalink2RequestGroup.h
  2769. * src/MetalinkPostDownloadHandler.cc
  2770. * src/MultiUrlRequestInfo.cc
  2771. * src/MultiUrlRequestInfo.h
  2772. * src/PeerAbstractCommand.cc
  2773. * src/PeerInteractionCommand.cc
  2774. * src/PeerInteractionCommand.h
  2775. * src/PeerReceiveHandshakeCommand.cc
  2776. * src/PeerReceiveHandshakeCommand.h
  2777. * src/RequestGroup.cc
  2778. * src/RequestGroup.h
  2779. * src/TrackerWatcherCommand.cc
  2780. * src/TrackerWatcherCommand.h
  2781. * src/XmlRpcMethod.cc
  2782. * src/XmlRpcMethod.h
  2783. * src/XmlRpcMethodImpl.cc
  2784. * src/download_helper.cc
  2785. * src/download_helper.h
  2786. * src/main.cc
  2787. * test/BtDependencyTest.cc
  2788. * test/BtPostDownloadHandlerTest.cc
  2789. * test/DefaultBtMessageDispatcherTest.cc
  2790. * test/DownloadHandlerFactoryTest.cc
  2791. * test/DownloadHelperTest.cc
  2792. * test/Metalink2RequestGroupTest.cc
  2793. * test/MetalinkPostDownloadHandlerTest.cc
  2794. * test/RequestGroupManTest.cc
  2795. * test/RequestGroupTest.cc
  2796. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Added tellActiveStatus xml-rpc command which reports download
  2798. status of active downloads.
  2799. * src/XmlRpcMethodFactory.cc
  2800. * src/XmlRpcMethodImpl.cc
  2801. * src/XmlRpcMethodImpl.h
  2802. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Added addTorrentFile xml-rpc command which receives uploaded
  2804. torrent file and add download for it.
  2805. * src/RequestGroupMan.cc
  2806. * src/XmlRpcMethodFactory.cc
  2807. * src/XmlRpcMethodImpl.cc
  2808. * src/XmlRpcMethodImpl.h
  2809. * src/download_helper.cc
  2810. * src/download_helper.h
  2811. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Added remove xml-rpc command which removes specified download.
  2813. There is a known issue: the removed unfinished downloads are
  2814. reported ERR when aria2 exits. They should be reported as INPR.
  2815. * src/RequestGroupMan.cc
  2816. * src/RequestGroupMan.h
  2817. * src/XmlRpcMethodFactory.cc
  2818. * src/XmlRpcMethodImpl.cc
  2819. * src/XmlRpcMethodImpl.h
  2820. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. If --enable-http-server is enabled, don't stop aria2 when all
  2822. download finished and don't quit when no files to download at
  2823. start up.
  2824. * src/RequestGroupMan.cc
  2825. * src/main.cc
  2826. * src/option_processing.cc
  2827. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Added missing AM_CONDITIONAL
  2829. * configure.ac
  2830. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Added xml-rpc functionality. Currently only addURI commad is
  2832. supported. To enable xml-rpc, run aria2 with
  2833. --enable-http-server. This option name is temporal and will be
  2834. changed. The feature that reports download progress in html format
  2835. is temporarily disabled.
  2836. * src/HttpServer.cc
  2837. * src/HttpServer.h
  2838. * src/HttpServerBodyCommand.cc
  2839. * src/HttpServerBodyCommand.h
  2840. * src/HttpServerCommand.cc
  2841. * src/HttpServerResponseCommand.cc
  2842. * src/Makefile.am
  2843. * src/OptionParser.cc
  2844. * src/OptionParser.h
  2845. * src/RequestGroupMan.cc
  2846. * src/RequestGroupMan.h
  2847. * src/XmlRpcMethod.cc
  2848. * src/XmlRpcMethod.h
  2849. * src/XmlRpcMethodFactory.cc
  2850. * src/XmlRpcMethodFactory.h
  2851. * src/XmlRpcMethodImpl.cc
  2852. * src/XmlRpcMethodImpl.h
  2853. * src/download_helper.cc
  2854. * src/download_helper.h
  2855. * test/Makefile.am
  2856. * test/XmlRpcMethodTest.cc
  2857. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Added xml-rpc request parser. The supported value types are:
  2859. i4/int, string, double, struct, array, base64. Currently only
  2860. libxml2 version is provided.
  2861. * src/Xml2XmlRpcRequestProcessor.cc
  2862. * src/Xml2XmlRpcRequestProcessor.h
  2863. * src/XmlRpcElements.cc
  2864. * src/XmlRpcElements.h
  2865. * src/XmlRpcRequest.h
  2866. * src/XmlRpcRequestParserController.cc
  2867. * src/XmlRpcRequestParserController.h
  2868. * src/XmlRpcRequestParserState.h
  2869. * src/XmlRpcRequestParserStateImpl.cc
  2870. * src/XmlRpcRequestParserStateImpl.h
  2871. * src/XmlRpcRequestParserStateMachine.cc
  2872. * src/XmlRpcRequestParserStateMachine.h
  2873. * src/XmlRpcRequestProcessor.h
  2874. * test/XmlRpcRequestParserControllerTest.cc
  2875. * test/XmlRpcRequestProcessorTest.cc
  2876. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. * Release 1.3.3
  2878. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Fixed compile error since r1202.
  2880. * src/ExpatMetalinkProcessor.cc
  2881. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Updated Ukrainian, Russian and Simplified Chinese
  2883. translations. Thanks to all translators.
  2884. * po/ru.po
  2885. * po/uk.po
  2886. * po/zh_CN.po
  2887. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Pass reference of Option object instead of pointer.
  2889. * src/download_helper.cc
  2890. * src/download_helper.h
  2891. * src/main.cc
  2892. * test/DownloadHelperTest.cc
  2893. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2895. from option directly. Instead, get them from RequestGroup.
  2896. * src/ActivePeerConnectionCommand.cc
  2897. * src/ActivePeerConnectionCommand.h
  2898. * src/PeerReceiveHandshakeCommand.cc
  2899. * src/RequestGroup.h
  2900. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Removed unused uploadLimitCheck and uploadLimit from
  2902. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2903. PeerInteractionCommand.
  2904. * src/PeerAbstractCommand.cc
  2905. * src/PeerAbstractCommand.h
  2906. * src/PeerInteractionCommand.cc
  2907. * src/PeerInteractionCommand.h
  2908. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Fixed broken file renaming feature since r1202.
  2910. * src/FtpNegotiationCommand.cc
  2911. * src/FtpNegotiationCommand.h
  2912. * src/HttpResponseCommand.cc
  2913. * src/RequestGroup.cc
  2914. * src/RequestGroup.h
  2915. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Removed unused debug log
  2917. * src/SocketCore.cc
  2918. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2919. Generated configure and Makefile.in using autoconf 2.63 and
  2920. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2921. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2922. * configure.ac
  2923. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Moved piece statistics stuff to new PieceStatMan class.
  2925. Refactored PieceSelector interface.
  2926. * src/DefaultPieceStorage.cc
  2927. * src/DefaultPieceStorage.h
  2928. * src/LongestSequencePieceSelector.cc
  2929. * src/LongestSequencePieceSelector.h
  2930. * src/Makefile.am
  2931. * src/PieceSelector.h
  2932. * src/PieceStatMan.cc
  2933. * src/PieceStatMan.h
  2934. * src/RarestPieceSelector.cc
  2935. * src/RarestPieceSelector.h
  2936. * src/RequestGroup.cc
  2937. * test/DefaultPieceStorageTest.cc
  2938. * test/InOrderPieceSelector.h
  2939. * test/Makefile.am
  2940. * test/PieceStatManTest.cc
  2941. * test/RarestPieceSelectorTest.cc
  2942. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Added static member _protocolFamily to SocketCore. By default,
  2944. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2945. address. Sometime SocketCore::bind() and
  2946. SocketCore::establishConnection() use difference protocl family
  2947. and latter cannot connect to former. To avoid this situation, we
  2948. limit protocol family to AF_INET for unit tests.
  2949. * src/SocketCore.cc
  2950. * src/SocketCore.h
  2951. * test/AllTest.cc
  2952. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Avoid std::bad_alloc for negative bencode string length.
  2954. * src/bencode.cc
  2955. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Supported segmented downloading with chunked transfer encoding and
  2957. content-length.
  2958. * src/DownloadCommand.cc
  2959. * src/HttpResponseCommand.cc
  2960. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Bump up version number to 1.3.3
  2962. * configure.ac
  2963. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2965. from 4096 to 65536 (for insanely large ftp login banners)
  2966. * src/FtpConnection.h
  2967. * test/FtpConnectionTest.cc
  2968. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2969. In DefaultBtContext::getActualBasePath(), return first
  2970. FileEntry::getPath() for single file torrent.
  2971. * src/DefaultBtContext.cc
  2972. * test/DefaultBtContextTest.cc
  2973. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2975. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2976. Removed _directIOAllowed member from DiskWriter.
  2977. * src/AbstractDiskWriter.cc
  2978. * src/AbstractDiskWriter.h
  2979. * src/AbstractSingleDiskAdaptor.cc
  2980. * src/AbstractSingleDiskAdaptor.h
  2981. * src/BinaryStream.h
  2982. * src/ByteArrayDiskWriter.h
  2983. * src/DefaultPieceStorage.cc
  2984. * src/DiskWriter.h
  2985. * src/MultiDiskAdaptor.cc
  2986. * src/MultiDiskAdaptor.h
  2987. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Now the constructor of AbstractDiskWriter takes filename as an
  2989. argument and filename argument is removed from openFile(),
  2990. initAndOpenFile(), openExistingFile() interface. storeDir member
  2991. and its accessor functions are removed from DiskAdaptor because it
  2992. is not used anymore. size() member function of DefaultDiskWriter,
  2993. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2994. opening file.
  2995. * src/AbstractDiskWriter.cc
  2996. * src/AbstractDiskWriter.h
  2997. * src/AbstractSingleDiskAdaptor.cc
  2998. * src/AbstractSingleDiskAdaptor.h
  2999. * src/ByteArrayDiskWriter.cc
  3000. * src/ByteArrayDiskWriter.h
  3001. * src/ByteArrayDiskWriterFactory.cc
  3002. * src/ByteArrayDiskWriterFactory.h
  3003. * src/DefaultDiskWriter.cc
  3004. * src/DefaultDiskWriter.h
  3005. * src/DefaultDiskWriterFactory.cc
  3006. * src/DefaultDiskWriterFactory.h
  3007. * src/DefaultPieceStorage.cc
  3008. * src/DirectDiskAdaptor.cc
  3009. * src/DirectDiskAdaptor.h
  3010. * src/DiskAdaptor.h
  3011. * src/DiskWriter.h
  3012. * src/DiskWriterFactory.h
  3013. * src/MessageDigestHelper.cc
  3014. * src/MultiDiskAdaptor.cc
  3015. * src/RequestGroup.cc
  3016. * src/UnknownLengthPieceStorage.cc
  3017. * src/Util.cc
  3018. * test/DefaultDiskWriterTest.cc
  3019. * test/DirectDiskAdaptorTest.cc
  3020. * test/FallocFileAllocationIteratorTest.cc
  3021. * test/MessageDigestHelperTest.cc
  3022. * test/MetalinkProcessorTest.cc
  3023. * test/MultiDiskAdaptorTest.cc
  3024. * test/MultiFileAllocationIteratorTest.cc
  3025. * test/SingleFileAllocationIteratorTest.cc
  3026. * test/UtilTest.cc
  3027. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Fixed the bug that aria2 aborts when --select-file is used. This
  3029. bug was introduced in r1199.
  3030. * src/MultiDiskAdaptor.cc
  3031. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Code cleanup
  3033. * test/MockPieceStorage.cc
  3034. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Fixed the bug that read-only file with wrong file size will cause
  3036. error because it cannot be truncated to the correct size. Now if
  3037. file size is different than the expected one, re-open file in
  3038. writable mode.
  3039. * src/AbstractSingleDiskAdaptor.cc
  3040. * src/AbstractSingleDiskAdaptor.h
  3041. * src/BtCheckIntegrityEntry.cc
  3042. * src/DiskAdaptor.h
  3043. * src/MultiDiskAdaptor.h
  3044. * src/RequestGroup.cc
  3045. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Fixed the bug that with --check-integrity option aria2 reports
  3047. downloaded file size is 0 even if some parts of file is correctly
  3048. downloaded. This bug is reproducible for the download that a file
  3049. includes last piece is missing. This bug doesn't reveal for
  3050. single-torrent with file allocation on.
  3051. * src/IteratableChecksumValidator.cc
  3052. * test/IteratableChecksumValidatorTest.cc
  3053. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3055. * src/RequestGroupMan.cc
  3056. * src/AdaptiveURISelector.cc
  3057. * src/AdaptiveURISelector.h
  3058. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. * Release 1.3.2
  3060. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Updated README
  3062. * README
  3063. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Updated Ukrainian translations. Thanks to Alexander10.
  3065. * po/uk.po
  3066. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Code cleanup
  3068. * src/MetalinkParserStateMachine.cc
  3069. * src/MetalinkParserStateMachine.h
  3070. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3072. and expat simultaneously, MetalinkProcessor is now not base class
  3073. and it is directly implemented in XML2SAXMetalinkProcessor and
  3074. ExpatMetalinkProcessor.
  3075. * src/ExpatMetalinkProcessor.cc
  3076. * src/ExpatMetalinkProcessor.h
  3077. * src/Makefile.am
  3078. * src/MetalinkHelper.cc
  3079. * src/MetalinkProcessor.h
  3080. * src/MetalinkProcessorFactory.cc: Removed.
  3081. * src/MetalinkProcessorFactory.h: Removed
  3082. * src/XML2SAXMetalinkProcessor.cc
  3083. * src/XML2SAXMetalinkProcessor.h
  3084. * test/MetalinkProcessorTest.cc
  3085. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3086. Bump up version number to 1.3.2
  3087. * configure.ac
  3088. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Added missing file.
  3090. * test/Makefile.am
  3091. * test/url-list-singleFileEndsWithSlash.torrent
  3092. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3094. request.
  3095. * src/AnnounceList.cc
  3096. * src/AnnounceList.h
  3097. * src/BDE.cc: Added
  3098. * src/BDE.h: Added
  3099. * src/DHTAbstractMessage.cc
  3100. * src/DHTAbstractMessage.h
  3101. * src/DHTAnnouncePeerMessage.cc
  3102. * src/DHTAnnouncePeerMessage.h
  3103. * src/DHTAnnouncePeerReplyMessage.cc
  3104. * src/DHTAnnouncePeerReplyMessage.h
  3105. * src/DHTFindNodeMessage.cc
  3106. * src/DHTFindNodeMessage.h
  3107. * src/DHTFindNodeReplyMessage.cc
  3108. * src/DHTFindNodeReplyMessage.h
  3109. * src/DHTGetPeersMessage.cc
  3110. * src/DHTGetPeersMessage.h
  3111. * src/DHTGetPeersReplyMessage.cc
  3112. * src/DHTGetPeersReplyMessage.h
  3113. * src/DHTMessageFactory.h
  3114. * src/DHTMessageFactoryImpl.cc
  3115. * src/DHTMessageFactoryImpl.h
  3116. * src/DHTMessageReceiver.cc
  3117. * src/DHTMessageTracker.cc
  3118. * src/DHTMessageTracker.h
  3119. * src/DHTPingMessage.cc
  3120. * src/DHTPingMessage.h
  3121. * src/DHTPingReplyMessage.cc
  3122. * src/DHTPingReplyMessage.h
  3123. * src/DHTQueryMessage.cc
  3124. * src/DHTQueryMessage.h
  3125. * src/DHTResponseMessage.cc
  3126. * src/DHTResponseMessage.h
  3127. * src/DefaultBtAnnounce.cc
  3128. * src/DefaultBtContext.cc
  3129. * src/DefaultBtContext.h
  3130. * src/HandshakeExtensionMessage.cc
  3131. * src/Makefile.am
  3132. * src/PeerListProcessor.h
  3133. * src/UTPexExtensionMessage.cc
  3134. * src/bencode.cc
  3135. * src/bencode.h
  3136. * test/AnnounceListTest.cc
  3137. * test/BDETest.cc: Added
  3138. * test/BencodeTest.cc
  3139. * test/DHTAnnouncePeerMessageTest.cc
  3140. * test/DHTAnnouncePeerReplyMessageTest.cc
  3141. * test/DHTFindNodeMessageTest.cc
  3142. * test/DHTFindNodeReplyMessageTest.cc
  3143. * test/DHTGetPeersMessageTest.cc
  3144. * test/DHTGetPeersReplyMessageTest.cc
  3145. * test/DHTMessageFactoryImplTest.cc
  3146. * test/DHTMessageTrackerTest.cc
  3147. * test/DHTPingMessageTest.cc
  3148. * test/DHTPingReplyMessageTest.cc
  3149. * test/Makefile.am
  3150. * test/MockDHTMessageFactory.h
  3151. * test/PeerListProcessorTest.cc
  3152. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Use url-list (web-seeding) only for single-file torrent. This is
  3154. basically the same behavior with Metalink file with torrent and
  3155. URIs.
  3156. * src/RequestGroup.cc
  3157. * src/DefaultBtContext.cc
  3158. * test/DefaultBtContextTest.cc
  3159. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Rewritten expr
  3161. * src/array_fun.h
  3162. * test/array_funTest.cc
  3163. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3165. * src/DefaultBtMessageDispatcher.cc
  3166. * src/a2algo.h
  3167. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Removed ExtendedMessagingAware. Instead of using inheritance,
  3169. added ExtensionMessageRegistry and it is passed to
  3170. DefaultExtensionMessageFactory.
  3171. * src/DefaultBtInteractive.cc
  3172. * src/DefaultBtInteractive.h
  3173. * src/DefaultExtensionMessageFactory.cc
  3174. * src/DefaultExtensionMessageFactory.h
  3175. * src/ExtendedMessagingAware.h: Removed.
  3176. * src/ExtensionMessageFactory.h
  3177. * src/ExtensionMessageRegistry.h: Added.
  3178. * src/Makefile.am
  3179. * src/PeerInteractionCommand.cc
  3180. * test/DefaultExtensionMessageFactoryTest.cc
  3181. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Fixed typo in log messages
  3183. * src/MSEHandshake.cc
  3184. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3185. Fixed the bug that prevents torrent download from finishing. The
  3186. bug doesn't reveal for all torrents. The torrents affected this
  3187. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3188. of pieces.
  3189. * src/bitfield.h
  3190. * test/bitfieldTest.cc
  3191. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Code cleanup
  3193. * src/PeerListProcessor.h
  3194. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Removed RequestGroupAware
  3196. * src/AbstractCommand.cc
  3197. * src/AbstractCommand.h
  3198. * src/ActivePeerConnectionCommand.cc
  3199. * src/ActivePeerConnectionCommand.h
  3200. * src/DHTGetPeersCommand.cc
  3201. * src/DHTGetPeersCommand.h
  3202. * src/InitiatorMSEHandshakeCommand.cc
  3203. * src/InitiatorMSEHandshakeCommand.h
  3204. * src/Makefile.am
  3205. * src/PeerInitiateConnectionCommand.cc
  3206. * src/PeerInitiateConnectionCommand.h
  3207. * src/PeerInteractionCommand.cc
  3208. * src/PeerInteractionCommand.h
  3209. * src/RealtimeCommand.cc
  3210. * src/RealtimeCommand.h
  3211. * src/RequestGroupAware.cc: Removed
  3212. * src/RequestGroupAware.h: Removed
  3213. * src/SeedCheckCommand.cc
  3214. * src/SeedCheckCommand.h
  3215. * src/SleepCommand.cc
  3216. * src/TrackerWatcherCommand.cc
  3217. * src/TrackerWatcherCommand.h
  3218. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Rewritten PeerListProcessor
  3220. * src/PeerListProcessor.h
  3221. * src/CompactPeerListProcessor.h: Removed
  3222. * src/CompactPeerListProcessor.cc: Removed
  3223. * src/DelegatingPeerListProcessor.cc: Removed.
  3224. * src/DefaultBtAnnounce.cc
  3225. * src/Makefile.am
  3226. * src/UTPexExtensionMessage.cc
  3227. * src/DefaultPeerListProcessor.h: Removed.
  3228. * src/DefaultPeerListProcessor.cc: Removed.
  3229. * src/DelegatingPeerListProcessor.h: Removed.
  3230. * test/Makefile.am
  3231. * test/PeerListProcessorTest.cc
  3232. * test/DefaultPeerListProcessorTest.cc: Removed.
  3233. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Rewritten RequestGroupMan::calculateStat()
  3235. * src/RequestGroupMan.cc
  3236. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Removed unnecessary virtual destructor for Request class.
  3238. * src/Request.cc
  3239. * src/Request.h
  3240. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Avoid dynamic_pointer_cast.
  3242. * src/DHTGetPeersCommand.cc
  3243. * src/DHTGetPeersCommand.h
  3244. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3246. BtEvent.
  3247. * src/AbstractBtEventListener.h: Removed.
  3248. * src/AbstractBtMessage.cc
  3249. * src/AbstractBtMessage.h
  3250. * src/BtAbortOutstandingRequestEvent.h
  3251. * src/BtCancelSendingPieceEvent.h
  3252. * src/BtChokedEvent.h: Removed.
  3253. * src/BtChokingEvent.h
  3254. * src/BtEvent.h: Removed
  3255. * src/BtEventListener.h: Removed.
  3256. * src/BtMessage.h
  3257. * src/BtPieceMessage.cc
  3258. * src/BtPieceMessage.h
  3259. * src/BtRequestMessage.cc
  3260. * src/BtRequestMessage.h
  3261. * src/DefaultBtMessageDispatcher.cc
  3262. * src/Makefile.am
  3263. * src/a2functional.h
  3264. * test/BtPieceMessageTest.cc
  3265. * test/BtRequestMessageTest.cc
  3266. * test/DefaultBtMessageDispatcherTest.cc
  3267. * test/MockBtMessage.h
  3268. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Code cleanup
  3270. * src/RequestGroupMan.cc
  3271. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Code cleanup
  3273. * src/DownloadCommand.cc
  3274. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3276. byte.
  3277. * src/DownloadCommand.cc
  3278. * src/bitfield.h
  3279. * test/bitfieldTest.cc
  3280. Fixed the bug that causes infinite loop if broken web server
  3281. returns chunked response without last "0" chunk-size marker and
  3282. closes connection.
  3283. * src/DownloadCommand.cc
  3284. Instantiate properly configured HttpDownloadCommand for
  3285. non-resumable downlaods.
  3286. * src/HttpResponseCommand.cc
  3287. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Rewritten array operation functions.
  3289. * src/BitfieldMan.cc
  3290. * src/array_fun.h
  3291. * test/array_funTest.cc
  3292. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. Removed unused variable 'query'
  3294. * src/Request.cc
  3295. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3297. accidentally set to false in r1162.
  3298. * configure.ac
  3299. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Code cleanup
  3301. * src/BNode.cc
  3302. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Increase prefixLength for the bucket which doesn't own local node
  3304. ID when splitting bucket.
  3305. * src/DHTBucket.cc
  3306. * test/DHTBucketTest.cc
  3307. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3308. * Release 1.3.1
  3309. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3310. Bump up version number to 1.3.1
  3311. * configure.ac
  3312. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Removed unused variable checkPoint. Also removed include directive
  3314. for TimeA2.h.
  3315. * src/SeedCheckCommand.h
  3316. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Fixed the bug that upload limit exceeds the value specified in
  3318. --seed-ratio option depending on the timing of the execution of
  3319. SeedCheckCommand.
  3320. * src/SeedCheckCommand.cc
  3321. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Fixed the bug that removed peer's session upload/download length
  3323. are counted twice in _cachedTransferStat before it is
  3324. re-calculated. This affected the calculation of shara ratio,
  3325. resulting aria2 wrongly determines that specified share ratio is
  3326. reached. Also fixed the typo in calculateStatFor function name.
  3327. * src/BtSetup.cc
  3328. * src/DefaultPeerStorage.cc
  3329. * src/ShareRatioSeedCriteria.h
  3330. * test/ShareRatioSeedCriteriaTest.cc
  3331. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3332. * Release 1.3.0
  3333. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3335. Nynorsk translations. Thanks to all translators.
  3336. * po/es.po
  3337. * po/ja.po
  3338. * po/nn.po
  3339. * po/ru.po
  3340. * po/uk.po
  3341. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3342. Rewritten isInRange()
  3343. * src/DHTBucket.cc
  3344. * test/DHTBucketTest.cc
  3345. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Fixed typo
  3347. * doc/aria2c.1.txt
  3348. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3349. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3350. malloc/realloc is not used.
  3351. * src/configure.ac
  3352. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3354. char* bitfield instead of stl container for efficiency.
  3355. PieceSelector::select now takes this
  3356. bitfield. RarestPieceSelector::select now also performs
  3357. efficiently for this change. bitfield namespace is introduced and
  3358. it has several helper functions to handle basic bitfield
  3359. operations such as test, count set bits, etc.
  3360. * src/BitfieldMan.cc
  3361. * src/BitfieldMan.h
  3362. * src/DefaultBtRequestFactory.cc
  3363. * src/DefaultPieceStorage.cc
  3364. * src/DefaultPieceStorage.h
  3365. * src/LongestSequencePieceSelector.cc
  3366. * src/LongestSequencePieceSelector.h
  3367. * src/Makefile.am
  3368. * src/Piece.cc
  3369. * src/Piece.h
  3370. * src/PieceSelector.h
  3371. * src/RarestPieceSelector.cc
  3372. * src/RarestPieceSelector.h
  3373. * src/Util.cc
  3374. * src/Util.h
  3375. * src/bitfield.h
  3376. * test/BitfieldManTest.cc
  3377. * test/LongestSequencePieceSelectorTest.cc
  3378. * test/Makefile.am
  3379. * test/RarestPieceSelectorTest.cc
  3380. * test/UtilTest.cc
  3381. * test/bitfieldTest.cc
  3382. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Made accepted socket non-block.
  3384. * src/FtpNegotiationCommand.cc
  3385. * src/HttpListenCommand.cc
  3386. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3388. * src/AbstractSingleDiskAdaptor.cc
  3389. * src/DefaultPieceStorage.cc
  3390. * src/DiskAdaptor.h
  3391. * src/DiskAdaptor.h
  3392. * src/MultiFileAllocationIterator.cc
  3393. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Run
  3395. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3396. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3397. it doesn't need to be called every time when
  3398. DefaultBtInteractive::doInteractionProcessing() is called.
  3399. * src/DefaultBtInteractive.cc
  3400. * src/DefaultBtInteractive.h
  3401. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Documented 'falloc' in man page.
  3403. * doc/aria2c.1.txt
  3404. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Updated doc
  3406. * src/usage_text.h
  3407. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3409. allocation mode uses posix_fallocate() system call to allocate
  3410. file on disk. If you are using newer file systems such as ext4
  3411. (with extents support), btrfs or xfs, 'falloc' is your best
  3412. choice. It allocates large(few GiB) files almost instantly. Don't
  3413. use 'falloc' with legacy file systems such as ext3 because it
  3414. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3415. until allocation finishes. 'falloc' may not be available if your
  3416. system doesn't have posix_fallocate() system call.
  3417. * configure.ac
  3418. * src/AbstractDiskWriter.cc
  3419. * src/AbstractDiskWriter.h
  3420. * src/AbstractSingleDiskAdaptor.cc
  3421. * src/BinaryStream.h
  3422. * src/BtCheckIntegrityEntry.cc
  3423. * src/ByteArrayDiskWriter.h
  3424. * src/CheckIntegrityEntry.cc
  3425. * src/CheckIntegrityEntry.h
  3426. * src/DefaultPieceStorage.cc
  3427. * src/DiskAdaptor.cc
  3428. * src/DiskAdaptor.h
  3429. * src/DiskWriter.h
  3430. * src/FallocFileAllocationIterator.cc
  3431. * src/FallocFileAllocationIterator.h
  3432. * src/FileAllocationEntry.cc
  3433. * src/FileAllocationEntry.h
  3434. * src/Makefile.am
  3435. * src/MultiFileAllocationIterator.cc
  3436. * src/MultiFileAllocationIterator.h
  3437. * src/OptionHandlerFactory.cc
  3438. * src/RequestGroup.cc
  3439. * src/StreamCheckIntegrityEntry.cc
  3440. * src/prefs.cc
  3441. * src/prefs.h
  3442. * src/usage_text.h
  3443. * test/FallocFileAllocationIteratorTest.cc
  3444. * test/Makefile.am
  3445. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Removed duplicate enableDirectIO() call.
  3447. * src/MultiFileAllocationIterator.cc
  3448. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3450. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3451. cost of std::rotate().
  3452. * src/RarestPieceSelector.cc
  3453. * src/RarestPieceSelector.h
  3454. * test/RarestPieceSelectorTest.cc
  3455. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Updated usage doc for --bt-tracker-interval option.
  3457. * src/usage_text.h
  3458. * doc/aria2c.1.txt
  3459. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Documented --bt-tracker-interval option in man page.
  3461. * doc/aria2c.1.txt
  3462. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Added an option to specify the interval between tracker requests.
  3464. If non-zero value is specified, aria2 uses it and ignores the
  3465. interval value in the response of tracker. If zero is specified,
  3466. aria2 determines the inteval value based on the tarcker response
  3467. and download progress.
  3468. * src/DefaultBtAnnounce.cc
  3469. * src/DefaultBtAnnounce.h
  3470. * src/OptionHandlerFactory.cc
  3471. * src/RequestGroup.cc
  3472. * src/prefs.cc
  3473. * src/prefs.h
  3474. * src/usage_text.h
  3475. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Added operator+=, operator-=, operator-
  3477. * src/TransferStat.cc
  3478. * src/TransferStat.h
  3479. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Refactored RarestPieceSelector to reduce CPU load, especially for
  3481. addPieceStats.
  3482. * src/RarestPieceSelector.cc
  3483. * src/RarestPieceSelector.h
  3484. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3486. getAllMissingBlockIndexes to reduce a call to
  3487. array_function_base::operator[].
  3488. * src/BitfieldMan.cc
  3489. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Cached TransferStat/download speed to avoid to sum them up in each
  3491. call.
  3492. * src/DefaultPeerStorage.cc
  3493. * src/DefaultPeerStorage.h
  3494. * src/SegmentMan.cc
  3495. * src/SegmentMan.h
  3496. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Typedefed cuid_t as int32_t in Command.h
  3498. * src/CUIDCounter.h
  3499. * src/Command.cc
  3500. * src/Command.h
  3501. * src/DownloadEngine.cc
  3502. * src/DownloadEngine.h
  3503. * src/PeerStat.h
  3504. * src/SegmentMan.cc
  3505. * src/SegmentMan.h
  3506. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Reduced the number of calls to PeerStorage::calculateStat() and
  3508. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3509. transfer rate.
  3510. * src/DefaultBtInteractive.cc
  3511. * src/DefaultBtMessageDispatcher.cc
  3512. * src/DefaultPeerStorage.cc
  3513. * src/DefaultPeerStorage.h
  3514. * src/DownloadCommand.cc
  3515. * src/DownloadEngine.cc
  3516. * src/PeerStorage.h
  3517. * src/SegmentMan.cc
  3518. * src/SegmentMan.h
  3519. * test/MockPeerStorage.h
  3520. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Prepended _dir+"/" after joining path elements in torrent file.
  3522. * src/DefaultBtContext.cc
  3523. * test/DefaultBtContextTest.cc
  3524. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Added missing IndexBtMessageValidator.h
  3526. * src/Makefile.am
  3527. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3529. Chinese translations. Thank you for contributing our project.
  3530. * po/id.po
  3531. * po/it.po
  3532. * po/ru.po
  3533. * po/uk.po
  3534. * po/zh_CN.po
  3535. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3536. Updated README
  3537. * README
  3538. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3539. Bump up version number to 1.3.0
  3540. * configure.ac
  3541. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Updated doc
  3543. * src/DefaultBtContext.h
  3544. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Slice/joinPath for name of single torrent.
  3546. * src/DefaultBtContext.cc
  3547. * test/DefaultBtContextTest.cc
  3548. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Updated man page: Documented --dry-run and --index-out
  3550. options. Changed the default value of --uri-selector and
  3551. --http-auth-challenge options. Removed --direct-file-mapping
  3552. option. Added example for --index-out
  3553. * doc/aria2c.1.txt
  3554. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Updated TEXT_DRY_RUN
  3556. * src/usage_text.h
  3557. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3558. Changed the default value of --uri-selector option from 'inorder'
  3559. to 'feedback'
  3560. * src/OptionHandlerFactory.cc
  3561. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Included current URI in exception message.
  3563. * src/AbstractCommand.cc
  3564. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Renamed ServerStatURISelector as FeedbackURISelector.
  3566. * src/FeedbackURISelector.cc
  3567. * src/FeedbackURISelector.h
  3568. * src/Makefile.am
  3569. * src/RequestGroupMan.cc
  3570. * src/ServerStatURISelector.cc
  3571. * src/ServerStatURISelector.h
  3572. * test/FeedbackURISelectorTest.cc
  3573. * test/Makefile.am
  3574. * test/ServerStatURISelectorTest.cc
  3575. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3577. all URIs are tested and their timeout is not reached.
  3578. * src/AdaptiveURISelector.cc
  3579. * src/AdaptiveURISelector.h
  3580. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Changed the default value of --http-auth-challenge option to false.
  3582. * src/OptionHandlerFactory.cc
  3583. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Reuse URIs when all unused URIs run out.
  3585. * src/OptionHandlerFactory.cc
  3586. * src/RequestGroup.cc
  3587. * src/prefs.cc
  3588. * src/prefs.h
  3589. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3591. and BtRejectMessage are derived from RangeBtMessage class.
  3592. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3593. derived from IndexBtMessage class. BtChokeMessage,
  3594. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3595. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3596. ZeroBtMessage class.
  3597. * src/AbstractBtMessage.cc
  3598. * src/AbstractBtMessage.h
  3599. * src/BtAllowedFastMessage.cc
  3600. * src/BtAllowedFastMessage.h
  3601. * src/BtAllowedFastMessageValidator.h: Removed
  3602. * src/BtBitfieldMessage.cc
  3603. * src/BtBitfieldMessage.h
  3604. * src/BtCancelMessage.cc
  3605. * src/BtCancelMessage.h
  3606. * src/BtCancelMessageValidator.h: Removed
  3607. * src/BtChokeMessage.cc
  3608. * src/BtChokeMessage.h
  3609. * src/BtExtendedMessage.cc
  3610. * src/BtExtendedMessage.h
  3611. * src/BtHandshakeMessage.cc
  3612. * src/BtHandshakeMessage.h
  3613. * src/BtHaveAllMessage.cc
  3614. * src/BtHaveAllMessage.h
  3615. * src/BtHaveMessage.cc
  3616. * src/BtHaveMessage.h
  3617. * src/BtHaveMessageValidator.h: Removed
  3618. * src/BtHaveNoneMessage.cc
  3619. * src/BtHaveNoneMessage.h
  3620. * src/BtInterestedMessage.cc
  3621. * src/BtInterestedMessage.h
  3622. * src/BtKeepAliveMessage.cc
  3623. * src/BtKeepAliveMessage.h
  3624. * src/BtNotInterestedMessage.cc
  3625. * src/BtNotInterestedMessage.h
  3626. * src/BtPieceMessage.cc
  3627. * src/BtPieceMessage.h
  3628. * src/BtPortMessage.cc
  3629. * src/BtPortMessage.h
  3630. * src/BtRejectMessage.cc
  3631. * src/BtRejectMessage.h
  3632. * src/BtRejectMessageValidator.h: Removed
  3633. * src/BtRequestMessage.cc
  3634. * src/BtRequestMessage.h
  3635. * src/BtRequestMessageValidator.h: Removed
  3636. * src/BtSuggestPieceMessage.cc
  3637. * src/BtSuggestPieceMessage.h
  3638. * src/BtSuggestPieceMessageValidator.h: Removed
  3639. * src/BtUnchokeMessage.cc
  3640. * src/BtUnchokeMessage.h
  3641. * src/DefaultBtMessageFactory.cc
  3642. * src/IndexBtMessage.cc
  3643. * src/IndexBtMessage.h
  3644. * src/IndexBtMessageValidator.h
  3645. * src/Makefile.am
  3646. * src/PeerMessageUtil.cc
  3647. * src/PeerMessageUtil.h
  3648. * src/RangeBtMessage.cc
  3649. * src/RangeBtMessage.h
  3650. * src/RangeBtMessageValidator.h
  3651. * src/SimpleBtMessage.cc
  3652. * src/SimpleBtMessage.h
  3653. * src/ZeroBtMessage.cc
  3654. * src/ZeroBtMessage.h
  3655. * test/BtRequestMessageTest.cc
  3656. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Reverted usage_text.h to r1093 to avoid to lose translated
  3658. messages.
  3659. * src/usage_text.h
  3660. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3662. declared as non-const previously is now const and defined in class
  3663. definition.
  3664. * src/AbstractBtMessage.cc
  3665. * src/AbstractBtMessage.h
  3666. * src/BtAllowedFastMessage.cc
  3667. * src/BtAllowedFastMessage.h
  3668. * src/BtBitfieldMessage.h
  3669. * src/BtCancelMessage.cc
  3670. * src/BtCancelMessage.h
  3671. * src/BtChokeMessage.cc
  3672. * src/BtChokeMessage.h
  3673. * src/BtExtendedMessage.cc
  3674. * src/BtExtendedMessage.h
  3675. * src/BtHandshakeMessage.cc
  3676. * src/BtHandshakeMessage.h
  3677. * src/BtHaveAllMessage.cc
  3678. * src/BtHaveAllMessage.h
  3679. * src/BtHaveMessage.cc
  3680. * src/BtHaveMessage.h
  3681. * src/BtHaveNoneMessage.cc
  3682. * src/BtHaveNoneMessage.h
  3683. * src/BtInterestedMessage.cc
  3684. * src/BtInterestedMessage.h
  3685. * src/BtKeepAliveMessage.cc
  3686. * src/BtKeepAliveMessage.h
  3687. * src/BtMessage.h
  3688. * src/BtNotInterestedMessage.cc
  3689. * src/BtNotInterestedMessage.h
  3690. * src/BtPieceMessage.h
  3691. * src/BtPortMessage.cc
  3692. * src/BtPortMessage.h
  3693. * src/BtRejectMessage.cc
  3694. * src/BtRejectMessage.h
  3695. * src/BtRequestMessage.cc
  3696. * src/BtRequestMessage.h
  3697. * src/BtSuggestPieceMessage.cc
  3698. * src/BtSuggestPieceMessage.h
  3699. * src/BtUnchokeMessage.cc
  3700. * src/BtUnchokeMessage.h
  3701. * src/SimpleBtMessage.cc
  3702. * src/SimpleBtMessage.h
  3703. * test/MockBtMessage.h
  3704. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Use FileEntry::exists()
  3706. * src/MultiDiskAdaptor.cc
  3707. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Added exists()
  3709. * src/FileEntry.cc
  3710. * src/FileEntry.h
  3711. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3712. Added missing prefix dir.
  3713. * src/download_helper.cc
  3714. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3716. * src/CopyDiskAdaptor.cc: Removed
  3717. * src/CopyDiskAdaptor.h: Removed
  3718. * src/DefaultPieceStorage.cc
  3719. * src/Makefile.am
  3720. * src/OptionHandlerFactory.cc
  3721. * src/prefs.cc
  3722. * src/prefs.h
  3723. * src/usage_text.h
  3724. * test/CopyDiskAdaptorTest.cc: Removed
  3725. * test/Makefile.am
  3726. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Rewritten isSameFileBeingDownloaded()
  3728. * src/RequestGroupMan.cc
  3729. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Removed getName() from DownloadContext. getName() is declared in
  3731. BtContext.
  3732. * src/BtContext.h
  3733. * src/DownloadContext.h
  3734. * src/SingleFileDownloadContext.cc
  3735. * src/SingleFileDownloadContext.h
  3736. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3737. in AbstractSingleDiskAdaptor.
  3738. * src/AbstractSingleDiskAdaptor.h
  3739. * src/DiskAdaptor.h
  3740. * src/MultiDiskAdaptor.h
  3741. * src/RequestGroup.cc
  3742. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3743. MultiDiskAdaptor.
  3744. * src/DefaultPieceStorage.cc
  3745. * src/MultiDiskAdaptor.cc
  3746. * src/MultiDiskAdaptor.h
  3747. * test/MultiDiskAdaptorTest.cc
  3748. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. FileEntry::getPath() contains store(top level) directory to
  3750. simplify path handling operation. In the previous implementation,
  3751. store directory is concatenated to FileEntry::getPath() in
  3752. DownloadContext.
  3753. * src/BtDependency.cc
  3754. * src/BtPostDownloadHandler.cc
  3755. * src/CopyDiskAdaptor.cc
  3756. * src/DefaultBtContext.cc
  3757. * src/DirectDiskAdaptor.cc
  3758. * src/FileEntry.cc
  3759. * src/FileEntry.h
  3760. * src/FtpNegotiationCommand.cc
  3761. * src/HttpResponse.cc
  3762. * src/HttpResponseCommand.cc
  3763. * src/Metalink2RequestGroup.cc
  3764. * src/MultiDiskAdaptor.cc
  3765. * src/MultiDiskAdaptor.h
  3766. * src/MultiFileAllocationIterator.cc
  3767. * src/RequestGroup.cc
  3768. * src/SingleFileDownloadContext.cc
  3769. * src/SingleFileDownloadContext.h
  3770. * src/download_helper.cc
  3771. * test/BtDependencyTest.cc
  3772. * test/CopyDiskAdaptorTest.cc
  3773. * test/DefaultBtContextTest.cc
  3774. * test/DefaultBtProgressInfoFileTest.cc
  3775. * test/DirectDiskAdaptorTest.cc
  3776. * test/DownloadHelperTest.cc
  3777. * test/FileEntryTest.cc
  3778. * test/MultiDiskAdaptorTest.cc
  3779. * test/MultiFileAllocationIteratorTest.cc
  3780. * test/RequestGroupTest.cc
  3781. * test/SingleFileDownloadContextTest.cc
  3782. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Fixed compiler warning
  3784. * src/download_helper.cc
  3785. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Throw exception if same infohash torrent is now downloading.
  3787. * src/RequestGroup.cc
  3788. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Added --dry-run option. In this mode, aria2 just checks whether
  3790. the remote file is available and doesn't download data. This
  3791. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3792. are canceled in this mode.
  3793. * src/FtpNegotiationCommand.cc
  3794. * src/HttpResponseCommand.cc
  3795. * src/HttpResponseCommand.h
  3796. * src/OptionHandlerFactory.cc
  3797. * src/RequestGroup.cc
  3798. * src/RequestGroupMan.cc
  3799. * src/prefs.cc
  3800. * src/prefs.h
  3801. * src/usage_text.h
  3802. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Fixed compiler waring
  3804. * test/UriListParserTest.cc
  3805. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Parse options in -i list using OptionParser.
  3807. * src/UriListParser.cc
  3808. * src/UriListParser.h
  3809. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Don't reset URI in retry to avoid additional round trips because
  3811. of redirects.
  3812. * src/AbstractCommand.cc
  3813. * src/OptionHandlerFactory.cc
  3814. * src/prefs.cc
  3815. * src/prefs.h
  3816. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Declared hide() in OptionHandler.
  3818. * src/NameMatchOptionHandler.h
  3819. * src/OptionHandler.h
  3820. * src/OptionHandlerImpl.h
  3821. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Updated doc
  3823. * src/Peer.h
  3824. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Added log message in setStatusInternal()
  3826. * src/ServerStat.cc
  3827. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3829. effectively exclude failed server.
  3830. * src/AbstractCommand.cc
  3831. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Added --index-out option to specify each file path for torrent.
  3833. Here index shown in --show-files option is used to specify which
  3834. file path should be altered. For example, to change the file path
  3835. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3836. option multiple times: --index-out=1=aria2.tar.bz2
  3837. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3838. available. This option can be specified in -i list.
  3839. * src/DefaultBtContext.cc
  3840. * src/DefaultBtContext.h
  3841. * src/MultiDiskAdaptor.cc
  3842. * src/MultiDiskAdaptor.h
  3843. * src/MultiFileAllocationIterator.cc
  3844. * src/OptionHandlerFactory.cc
  3845. * src/OptionHandlerImpl.h
  3846. * src/Util.cc
  3847. * src/Util.h
  3848. * src/download_helper.cc
  3849. * src/prefs.cc
  3850. * src/prefs.h
  3851. * src/usage_text.h
  3852. * test/DefaultBtContextTest.cc
  3853. * test/MultiDiskAdaptorTest.cc
  3854. * test/MultiFileAllocationIteratorTest.cc
  3855. * test/UtilTest.cc
  3856. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Use Util::pathJoin()
  3858. * src/MetalinkParserController.cc
  3859. * test/test.xml
  3860. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Use Util::pathJoin()
  3862. * src/DefaultBtContext.cc
  3863. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Added Util::pathJoin()
  3865. * src/Util.h
  3866. * test/UtilTest.cc
  3867. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Applied basename function to remove directory element in
  3869. content-disposition value.
  3870. Return empty string if content-disposition value is ".." or ".".
  3871. * src/Util.cc
  3872. * test/UtilTest.cc
  3873. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Added --max-overall-download-limit in man page.
  3875. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3876. * doc/aria2c.1.txt
  3877. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Added --max-overall-download-limit option. Now --max-upload-limit
  3879. option is not ignored when --max-overall-upload-limit option has
  3880. non-zero value. aria2 checks download(upload) speed in the order:
  3881. first checks overall speed limit and if it is not exceeded, then
  3882. checks speed limit per download. Thus you can specify both
  3883. value. For example, set --max-overall-download-limit=1M and
  3884. --max-download-limit=500K to prevent from one download from eating
  3885. all overall speed limit.
  3886. * src/DefaultBtInteractive.cc
  3887. * src/DefaultBtInteractive.h
  3888. * src/DefaultBtMessageDispatcher.cc
  3889. * src/DefaultBtMessageDispatcher.h
  3890. * src/DownloadCommand.cc
  3891. * src/DownloadCommand.h
  3892. * src/FtpNegotiationCommand.cc
  3893. * src/HttpResponseCommand.cc
  3894. * src/OptionHandlerFactory.cc
  3895. * src/PeerInteractionCommand.cc
  3896. * src/RequestGroup.cc
  3897. * src/RequestGroup.h
  3898. * src/RequestGroupMan.cc
  3899. * src/RequestGroupMan.h
  3900. * src/prefs.cc
  3901. * src/prefs.h
  3902. * src/usage_text.h
  3903. * test/DefaultBtMessageDispatcherTest.cc
  3904. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Documented select-file option in Input File section.
  3906. Documented --http-auth-challenge option.
  3907. * doc/aria2c.1.txt
  3908. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Now select-file can be specified in the uri list(-i list).
  3910. * src/BtContext.cc
  3911. * src/BtContext.h
  3912. * src/RequestGroup.cc
  3913. * src/Sequence.h
  3914. * src/download_helper.cc
  3915. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Made the upper value of --max-concurrent-downloads options unlimited.
  3917. * src/OptionHandlerFactory.cc
  3918. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Fixed the bug that disk writer is not created even if it shares
  3920. same piece with the preceding file if the length of previous file
  3921. is 0.
  3922. * src/MultiDiskAdaptor.cc
  3923. * test/MultiDiskAdaptorTest.cc
  3924. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. In BitTorrent, Open files in read-only mode for hash check. After
  3926. that, re-open file in read/write mode only when the download is
  3927. not finished.
  3928. * src/AbstractDiskWriter.cc
  3929. * src/AbstractDiskWriter.h
  3930. * src/AbstractSingleDiskAdaptor.cc
  3931. * src/AbstractSingleDiskAdaptor.h
  3932. * src/BtCheckIntegrityEntry.cc
  3933. * src/DiskAdaptor.h
  3934. * src/DiskWriter.h
  3935. * src/MultiDiskAdaptor.cc
  3936. * src/MultiDiskAdaptor.h
  3937. * src/RequestGroup.cc
  3938. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Added --http-auth-challenge option. If it is set to true(by
  3940. default), aria2 sends HTTP authorization header only when it is
  3941. requested by the server. If false is set, then authorization
  3942. header is always sent to the server. This is useful for servers
  3943. that don't respond 401 code when authentication is required.
  3944. There is an exception: if username and password are embedded in
  3945. URI, authorization header is always sent to the server regardless
  3946. of this option.
  3947. * src/AuthConfigFactory.cc
  3948. * src/HttpSkipResponseCommand.cc
  3949. * src/OptionHandlerFactory.cc
  3950. * src/prefs.cc
  3951. * src/prefs.h
  3952. * src/usage_text.h
  3953. * test/AuthConfigFactoryTest.cc
  3954. * test/HttpRequestTest.cc
  3955. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. * Release 1.2.0
  3957. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3958. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3959. Thanks to all translators.
  3960. * po/es.po
  3961. * po/ja.po
  3962. * po/ru.po
  3963. * po/uk.po
  3964. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Call deleteSocketForReadCheck() before socket is closed.
  3966. * src/HttpListenCommand.cc
  3967. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3968. Defined virtual destructor for BObject.
  3969. * src/bencode.h
  3970. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Rewritten BDE to make it efficient.
  3972. * src/bencode.cc
  3973. * src/bencode.h
  3974. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3975. Removed function throw list.
  3976. * src/bencode.cc
  3977. * src/bencode.h
  3978. * test/BencodeTest.cc
  3979. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Enclosed all URLs in double quotes in command-line examples.
  3981. * doc/aria2c.1.txt
  3982. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Updated reference/see also section.
  3984. * README
  3985. * doc/aria2c.1.txt
  3986. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Reorganized man page based on man man-pages.
  3988. * doc/aria2c.1.txt
  3989. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3990. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3991. because same documents are available in man page. Added
  3992. References section.
  3993. * README
  3994. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3996. PERFORMANCE PROFILE section.
  3997. * doc/aria2c.1.txt
  3998. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Rewritten the section for configuration file.
  4000. * README
  4001. * doc/aria2c.1.txt
  4002. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4003. Fixed the segmentation fault during execution of choking algorithm
  4004. in leecher state because of broken compare operator
  4005. implementation.
  4006. * src/BtLeecherStateChoke.cc
  4007. * src/BtLeecherStateChoke.h
  4008. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Open file in binary mode.
  4010. * src/CookieStorage.cc
  4011. * src/DHTSetup.cc
  4012. * src/DHTUtil.cc
  4013. * src/Netrc.cc
  4014. * src/NsCookieParser.cc
  4015. * src/ProtocolDetector.cc
  4016. * src/RequestGroupMan.cc
  4017. * src/Signature.cc
  4018. * src/bencode.cc
  4019. * src/download_helper.cc
  4020. * src/option_processing.cc
  4021. * test/CookieParserTest.cc
  4022. * test/DefaultBtProgressInfoFileTest.cc
  4023. * test/FileTest.cc
  4024. * test/GZipDecoderTest.cc
  4025. * test/RequestGroupManTest.cc
  4026. * test/SignatureTest.cc
  4027. * test/SingleFileAllocationIteratorTest.cc
  4028. * test/UriListParserTest.cc
  4029. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Removed operator[] because it is ambiguous with built-in []
  4031. operator.
  4032. * src/array_fun.h
  4033. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. Fixed compile error
  4035. * src/OptionParser.cc
  4036. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Added missing call to arrayWrapperConst
  4038. * test/array_funTest.cc
  4039. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Use array_wrapper instead of array_ptr.
  4041. * src/DHTRoutingTableDeserializer.cc
  4042. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4044. * src/array_fun.h
  4045. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4046. Added array_wrapper template.
  4047. * src/array_fun.h
  4048. * test/array_funTest.cc
  4049. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Use operator T* of array_ptr.
  4051. * src/OptionParser.cc
  4052. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Use localhost instead of 127.0.0.1
  4054. * test/FtpConnectionTest.cc
  4055. * test/MSEHandshakeTest.cc
  4056. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Added operator T*
  4058. * src/array_fun.h
  4059. * test/array_funTest.cc
  4060. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4061. Use dynamically allocated char array to detect memory access
  4062. violation.
  4063. * src/DHTRoutingTableDeserializer.cc
  4064. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4066. defined.
  4067. * src/PeerMessageUtil.cc
  4068. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4070. * configure.ac
  4071. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4072. Added a check to see struct sockaddr_in has sin_len member.
  4073. * configure.ac
  4074. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Fixed buffer overrun.
  4076. * src/DHTRoutingTableDeserializer.cc
  4077. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Added LL for long long int constant.
  4079. * test/FtpConnectionTest.cc
  4080. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Casted to unsigned int to suppress compiler warning on netbsd.
  4082. * src/BtRuntime.h
  4083. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4084. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4085. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4086. type time_t.
  4087. * src/SimpleLogger.cc
  4088. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Added test for FtpConnection::receiveSizeResponse().
  4090. * test/FtpConnectionTest.cc
  4091. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Fix epoll error on the old kernel 2.6.8 or ealier.
  4093. * src/EpollEventPoll.cc
  4094. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Use Util::parseLLInt instead of sscanf for portability. The
  4096. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4097. * src/FtpConnection.cc
  4098. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4100. block. It should not filter anything.
  4101. * src/BitfieldMan.cc
  4102. * src/ConsoleStatCalc.cc
  4103. * test/BitfieldManTest.cc
  4104. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Fixed the bug that the boolean options that don't take arguments
  4106. don't work.
  4107. * src/OptionHandlerImpl.h
  4108. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4109. Fixed broken selected file BitTorrent download.
  4110. * src/MultiDiskAdaptor.cc
  4111. * test/MultiDiskAdaptorTest.cc
  4112. * test/MultiFileAllocationIteratorTest.cc
  4113. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Fixed #define guard for EpollEventPoll
  4115. * src/EpollEventPoll.h
  4116. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Wait 2 seconds. 1 second is sometimes not enough.
  4118. * test/TimeSeedCriteriaTest.cc
  4119. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. Use localhost instead of 127.0.0.1.
  4121. * test/DHTConnectionImplTest.cc
  4122. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Suppressed compiler warning.
  4124. * src/AdaptiveURISelector.cc
  4125. * src/DefaultPieceStorage.cc
  4126. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Defined virtual destructor.
  4128. * src/MetalinkParserState.h
  4129. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4130. Give NULL for second argument of getaddrinfo instead of "0".
  4131. * src/NameResolver.cc
  4132. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4134. included strptime doesn't parse data for this format.
  4135. * src/FtpConnection.cc
  4136. * test/FtpConnectionTest.cc
  4137. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Removed tests giving -1 for unsigned argument.
  4139. * test/SingleFileDownloadContextTest.cc
  4140. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Don't use sha256 in tests because it might not be supported by the
  4142. SSL library.
  4143. * test/MetalinkProcessorTest.cc
  4144. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Removed tests giving -1 for unsigned argument.
  4146. * test/AlphaNumberDecoratorTest
  4147. * test/BitfieldManTest.cc
  4148. * test/DefaultBtContextTest.cc
  4149. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. Fixed compile error without libcares when epoll is available.
  4151. * src/EpollEventPoll.cc
  4152. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Included fstream instead of iostream.
  4154. * test/SignatureTest.cc
  4155. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Removed #include <algorithm>
  4157. * test/RequestGroupTest.cc
  4158. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4160. using RequestGroup::extractURIResult().
  4161. * src/AdaptiveURISelector.cc
  4162. * src/RequestGroup.cc
  4163. * src/RequestGroup.h
  4164. * test/RequestGroupTest.cc
  4165. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4166. Added tests for array_ptr.
  4167. * test/array_funTest.cc
  4168. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4169. Don't send ip parameter to a tracker if ip parameter is empty
  4170. string.
  4171. * src/DefaultBtAnnounce.cc
  4172. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Adjusted line feed.
  4174. * src/version_usage.cc
  4175. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Print tags, possible values when OptionHandlerException is caught.
  4177. * src/option_processing.cc
  4178. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4179. Changed the message for FatalException.
  4180. * src/OptionParser.cc
  4181. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Documented --bt-external-ip option in man page. Updated man pages
  4183. for --proxy-method option.
  4184. * doc/aria2c.1.txt
  4185. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Use GET method for FTP via HTTP proxy.
  4187. * src/FtpInitiateConnectionCommand.cc
  4188. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Changed the default value of --proxy-method option from 'tunnel'
  4190. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4191. option.
  4192. * src/AbstractCommand.cc
  4193. * src/AbstractCommand.h
  4194. * src/FtpInitiateConnectionCommand.cc
  4195. * src/HttpDownloadCommand.cc
  4196. * src/HttpInitiateConnectionCommand.cc
  4197. * src/HttpInitiateConnectionCommand.h
  4198. * src/OptionHandlerFactory.cc
  4199. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Initialized _logger
  4201. * src/SelectEventPoll.cc
  4202. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4203. Defined a copy constructor for the same type.
  4204. * src/SharedHandle.h
  4205. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4206. Added OptionParser::parseArg() which internally uses getopt_long
  4207. to parse command-line options. All command-line options are now
  4208. configured by OptionHandler. No manual editing of struct option*
  4209. is required any more.
  4210. * src/NameMatchOptionHandler.h
  4211. * src/OptionHandler.h
  4212. * src/OptionHandlerFactory.cc
  4213. * src/OptionHandlerImpl.h
  4214. * src/OptionParser.cc
  4215. * src/OptionParser.h
  4216. * src/array_fun.h
  4217. * src/main.cc
  4218. * src/option_processing.cc
  4219. * test/OptionHandlerTest.cc
  4220. * test/OptionParserTest.cc
  4221. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Fixed configure error with --disable-epoll
  4223. * configure.ac
  4224. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Fixed compile error when HAVE_EPOLL is not defined.
  4226. Fixed linker error on bigendian systems.
  4227. * src/SocketCore.cc
  4228. * src/SocketCore.h
  4229. * test/DefaultBtProgressInfoFileTest.cc
  4230. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. Added --bt-external-ip option. You can specify the external IP
  4232. address to report to a BitTorrent tracker. Although this function
  4233. is named 'external', it can accept any kind of IP addresses.
  4234. * src/DefaultBtAnnounce.cc
  4235. * src/OptionHandlerFactory.cc
  4236. * src/option_processing.cc
  4237. * src/prefs.cc
  4238. * src/prefs.h
  4239. * src/usage_text.h
  4240. * test/DefaultBtAnnounceTest.cc
  4241. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Extracted the algorithm to find the longest incremental sequence
  4243. as max_sequence template.
  4244. * src/LongestSequencePieceSelector.cc
  4245. * src/a2algo.h
  4246. * test/Makefile.am
  4247. * test/a2algoTest.cc
  4248. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4249. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4250. * src/usage_text.h
  4251. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4252. Updated doc for --uri-selector, --http-server-listen-port and
  4253. --enable-http-server option. Documented --event-poll option.
  4254. * doc/aria2c.1.txt
  4255. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4256. Updated doc for --enable-http-server.
  4257. * src/usage_text.h
  4258. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Documented --http-server-listen-port and --enable-http-server in
  4260. man page.
  4261. * doc/aria2c.1.txt
  4262. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4264. translations. Thanks to all translators.
  4265. * po/es.po
  4266. * po/id.po
  4267. * po/it.po
  4268. * po/ru.po
  4269. * po/uk.po
  4270. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Bump up version number to 1.2.0
  4272. * configure.ac
  4273. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. BtContext::getAnnounceTiers() now returns const reference.
  4275. * src/BtContext.h
  4276. * src/DefaultBtContext.cc
  4277. * src/DefaultBtContext.h
  4278. * test/MockBtContext.h
  4279. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4280. Change the number of retries for tracker request based on the
  4281. number of available tracker in a torrent file.
  4282. * src/TrackerWatcherCommand.cc
  4283. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4284. Added _maxTries property to RequestGroup and assign the option
  4285. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4286. RequestGroup::getMaxTries() instead of
  4287. Option::getAsInt(PREF_MAX_TRIES).
  4288. * src/AbstractCommand.cc
  4289. * src/RequestGroup.cc
  4290. * src/RequestGroup.h
  4291. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4293. Mandriva. I modified the patch: make RequestGroup have the
  4294. timeout value and AdaptiveURISelector directly modifies that
  4295. value.
  4296. * src/AbstractCommand.cc
  4297. * src/AdaptiveURISelector.cc
  4298. * src/AdaptiveURISelector.h
  4299. * src/FtpNegotiationCommand.cc
  4300. * src/RequestGroup.cc
  4301. * src/RequestGroup.h
  4302. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Fixed compiler warning
  4304. * test/IteratableChecksumValidatorTest.cc
  4305. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4307. integrated downloads. This PieceSelector subclass finds the
  4308. longest continuous sequence in the available missing pieces and
  4309. selects the last index of such sequence. This makes HTTP/FTP
  4310. connections less interrupted by the pieces obtained by BitTorrent
  4311. peers.
  4312. * src/DefaultPieceStorage.cc
  4313. * src/DefaultPieceStorage.h
  4314. * src/LongestSequencePieceSelector.cc
  4315. * src/LongestSequencePieceSelector.h
  4316. * src/Makefile.am
  4317. * src/PieceSelector.h
  4318. * src/RarestPieceSelector.h
  4319. * src/RequestGroup.cc
  4320. * test/BtDependencyTest.cc
  4321. * test/DefaultPieceStorageTest.cc
  4322. * test/IteratableChecksumValidatorTest.cc
  4323. * test/LongestSequencePieceSelectorTest.cc
  4324. * test/Makefile.am
  4325. * test/SegmentManTest.cc
  4326. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Fixed the bug that the average speed is wrong in
  4328. http/ftp/BitTorrent integrated download. Only the download bytes
  4329. in BitTorrent were considered.
  4330. * src/RequestGroup.cc
  4331. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Choose port for BitTorrent/DHT randomly from the specified range.
  4333. * src/DHTConnectionImpl.cc
  4334. * src/PeerListenCommand.cc
  4335. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4336. Send HTTP Authorization header only if it is requested by the
  4337. server(response 401). There are some exceptions. The authorization
  4338. header for proxy is always sent if it is available without request
  4339. by the server. If username/password is specified in the URI, it
  4340. is immediately sent to the server without request by the server.
  4341. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4342. SharedHandle<AuthConfig>().
  4343. NetrcAuthResolver::resolveAuthConfig() returns
  4344. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4345. * src/AbstractAuthResolver.cc
  4346. * src/AbstractProxyRequestCommand.cc
  4347. * src/AuthConfigFactory.cc
  4348. * src/AuthConfigFactory.h
  4349. * src/HttpConnection.cc
  4350. * src/HttpRequest.cc
  4351. * src/HttpRequest.h
  4352. * src/HttpResponse.cc
  4353. * src/HttpResponseCommand.cc
  4354. * src/HttpSkipResponseCommand.cc
  4355. * test/AuthConfigFactoryTest.cc
  4356. * test/HttpRequestTest.cc
  4357. * test/HttpResponseTest.cc
  4358. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4359. Remove leading "--" from help keyword and a substring after "="
  4360. from help keyword, so that one can query options by '-h--max-' or
  4361. '-hmax-peers=10'.
  4362. * src/option_processing.cc
  4363. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4364. Rewritten PStringVisitor and its implementation.
  4365. * src/PStringBuildVisitor.cc
  4366. * src/PStringBuildVisitor.h
  4367. * src/PStringDatum.h
  4368. * src/PStringNumLoop.h
  4369. * src/PStringSegment.cc
  4370. * src/PStringSegment.h
  4371. * src/PStringSelect.h
  4372. * src/PStringVisitor.h
  4373. * src/download_helper.cc
  4374. * test/PStringBuildVisitorTest.cc
  4375. * test/ParameterizedStringParserTest.cc
  4376. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Persist connection between the built-in HTTP server and a client
  4378. if a client supports keep-alive. Fixed the bug that aria2 exits
  4379. when the HTTP server receives EOF from a client.
  4380. * src/HttpServer.cc
  4381. * src/HttpServer.h
  4382. * src/HttpServerCommand.cc
  4383. * src/HttpServerCommand.h
  4384. * src/HttpServerResponseCommand.cc
  4385. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Added experimental built-in HTTP server. Currently, when a client
  4387. accesses to the server, it responds with the current download
  4388. progress. By default, it is disabled. To enable the server, give
  4389. --enable-http-server option. To change the default port number
  4390. for the server to listen to, use --http-server-listen-port option.
  4391. The response HTML is very simple and refreshes it self each 1
  4392. second. Because of this refresh, you see flicker in normal web
  4393. browser such as Firefox. I recommend to use console-based browser
  4394. such as elinks, w3m. To connect to the server, run 'elinks
  4395. http://localhost:6800/' while running aria2. Please replace port
  4396. number '6800'(which is default) with your preference.
  4397. * src/DownloadEngineFactory.cc
  4398. * src/HttpHeader.cc
  4399. * src/HttpHeader.h
  4400. * src/HttpHeaderProcessor.cc
  4401. * src/HttpHeaderProcessor.h
  4402. * src/HttpListenCommand.cc
  4403. * src/HttpListenCommand.h
  4404. * src/HttpServer.cc
  4405. * src/HttpServer.h
  4406. * src/HttpServerCommand.cc
  4407. * src/HttpServerCommand.h
  4408. * src/HttpServerResponseCommand.cc
  4409. * src/HttpServerResponseCommand.h
  4410. * src/Makefile.am
  4411. * src/OptionHandlerFactory.cc
  4412. * src/Util.cc
  4413. * src/Util.h
  4414. * src/help_tags.h
  4415. * src/option_processing.cc
  4416. * src/prefs.cc
  4417. * src/prefs.h
  4418. * src/usage_text.h
  4419. * test/HttpHeaderProcessorTest.cc
  4420. * test/UtilTest.cc
  4421. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Removed.
  4423. * src/CheckIntegrityMan.cc
  4424. * src/FileAllocationMan.cc
  4425. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4426. Made (piece) hash check sequential for each RequestGroup because
  4427. simultaneous hash check is slower than sequential execution.
  4428. * src/CheckIntegrityCommand.cc
  4429. * src/CheckIntegrityDispatcherCommand.cc
  4430. * src/CheckIntegrityDispatcherCommand.h
  4431. * src/CheckIntegrityMan.h
  4432. * src/ConsoleStatCalc.cc
  4433. * src/DownloadCommand.cc
  4434. * src/DownloadEngine.cc
  4435. * src/DownloadEngine.h
  4436. * src/DownloadEngineFactory.cc
  4437. * src/Makefile.am
  4438. * src/Makefile.in
  4439. * src/RequestGroup.cc
  4440. * src/StatCalc.h
  4441. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4443. SequentialDispatcherCommand.
  4444. * src/FileAllocationDispatcherCommand.cc
  4445. * src/SequentialDispatcherCommand.h
  4446. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Rewritten FileAllocationDispatcherCommand using brand new
  4448. SequentialDispatcherCommand.
  4449. * src/DownloadEngineFactory.cc
  4450. * src/FileAllocationCommand.cc
  4451. * src/FileAllocationDispatcherCommand.cc
  4452. * src/FileAllocationDispatcherCommand.h
  4453. * src/Makefile.am
  4454. * src/SequentialDispatcherCommand.h
  4455. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Replaced FileAllocationMan with
  4457. SequentialPicker<FileAllocationEntry>.
  4458. * src/BtCheckIntegrityEntry.cc
  4459. * src/ConsoleStatCalc.cc
  4460. * src/DownloadEngine.cc
  4461. * src/DownloadEngine.h
  4462. * src/DownloadEngineFactory.cc
  4463. * src/FileAllocationCommand.cc
  4464. * src/FileAllocationDispatcherCommand.cc
  4465. * src/FileAllocationMan.h
  4466. * src/Makefile.am
  4467. * src/SequentialPicker.h
  4468. * src/StatCalc.h
  4469. * src/StreamCheckIntegrityEntry.cc
  4470. * test/Makefile.am
  4471. * test/SequentialPickerTest.cc
  4472. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Added doc for adaptive URI selector.
  4474. * doc/aria2c.1.txt
  4475. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Added doc for adaptive URI selector.
  4477. * src/usage_text.h
  4478. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Added doc for --bt-max-peers option.
  4480. * doc/aria2c.1.txt
  4481. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Added doc for --bt-hash-check-seed option.
  4483. * doc/aria2c.1.txt
  4484. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Documented exit codes.
  4486. * doc/aria2c.1.txt
  4487. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Added --bt-max-peers option to specify the maximum number of peers
  4489. per torrent. 0 means unlimited number of peers.
  4490. * src/ActivePeerConnectionCommand.cc
  4491. * src/BtRuntime.h
  4492. * src/DefaultPeerStorage.cc
  4493. * src/DefaultPeerStorage.h
  4494. * src/OptionHandlerFactory.cc
  4495. * src/RequestGroup.cc
  4496. * src/option_processing.cc
  4497. * src/prefs.cc
  4498. * src/prefs.h
  4499. * src/usage_text.h
  4500. * test/DefaultPeerStorageTest.cc
  4501. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Added --bt-hash-check-seed option. If true is given to this
  4503. option, after hash check using --check-integrity option and file
  4504. is complete, continue to seed file. If you want to check file and
  4505. download it only when it is damaged or incomplete, set this option
  4506. to false. This option has effect only on BitTorrent download.
  4507. The default value is true(This is the same behavior with the
  4508. previous release).
  4509. * src/BtCheckIntegrityEntry.cc
  4510. * src/OptionHandlerFactory.cc
  4511. * src/option_processing.cc
  4512. * src/prefs.cc
  4513. * src/prefs.h
  4514. * src/usage_text.h
  4515. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Updated copyright year.
  4517. * src/version_usage.cc
  4518. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4520. * doc/aria2c.1.txt
  4521. * src/usage_text.h
  4522. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Made the max value of split option unlimited.
  4524. * doc/aria2c.1.txt
  4525. * src/OptionHandlerFactory.cc
  4526. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Fixed compile warning/error.
  4528. * src/DownloadResult.h
  4529. * src/HttpDownloadCommand.cc
  4530. * src/ServerStat.cc
  4531. * test/RequestGroupTest.cc
  4532. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Added --event-poll option to select the method for polling events.
  4534. The available methods are "select" and "epoll". "epoll" is
  4535. available on Linux only. The earlier release has the compile
  4536. option to choose from these methods.
  4537. * configure.ac
  4538. * src/RequestGroupMan.cc
  4539. * src/OptionHandlerFactory.cc
  4540. * src/EpollEventPoll.h
  4541. * src/StreamFileAllocationEntry.cc
  4542. * src/a2io.h
  4543. * src/SelectEventPoll.h
  4544. * src/option_processing.cc
  4545. * src/prefs.h
  4546. * src/EpollEventPoll.cc
  4547. * src/EventPoll.h
  4548. * src/SocketCore.h
  4549. * src/Makefile.am
  4550. * src/main.cc
  4551. * src/DownloadEngine.h
  4552. * src/SelectEventPoll.cc
  4553. * src/DownloadEngine.cc
  4554. * src/SocketCore.cc
  4555. * src/DownloadEngineFactory.cc
  4556. * src/Makefile.in
  4557. * src/prefs.cc
  4558. * src/usage_text.h
  4559. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Included RecoverableException.h from main.cc
  4561. * src/main.cc
  4562. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4564. now returns last error encountered in the HTTP/FTP downloads as a
  4565. exit status value. If all downloads finished successfully, aria2
  4566. returns 0. The error code is defined in src/DownloadResult.h.
  4567. The error occurred in the download currently in progress is not
  4568. reported as a last error. If no error has encountered but there
  4569. are in progress or waiting downloads, aria2 returns 7.
  4570. * src/AbstractCommand.cc
  4571. * src/DlAbortEx.h
  4572. * src/DlRetryEx.h
  4573. * src/DownloadCommand.cc
  4574. * src/DownloadFailureException.h
  4575. * src/DownloadResult.h
  4576. * src/FtpNegotiationCommand.cc
  4577. * src/HttpSkipResponseCommand.cc
  4578. * src/Makefile.am
  4579. * src/MultiUrlRequestInfo.cc
  4580. * src/MultiUrlRequestInfo.h
  4581. * src/RecoverableException.h
  4582. * src/RequestGroup.cc
  4583. * src/RequestGroup.h
  4584. * src/RequestGroupMan.cc
  4585. * src/RequestGroupMan.h
  4586. * src/URIResult.cc
  4587. * src/URIResult.h
  4588. * src/main.cc
  4589. * src/option_processing.cc
  4590. * test/RequestGroupTest.cc
  4591. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4593. patch adds AdaptiveURISelector, which selects one of the bests
  4594. mirrors for first and reserved connections. For supplementary
  4595. ones, it returns mirrors which has not been tested yet, and if
  4596. each of them already tested, returns mirrors which has to be
  4597. tested again. Otherwise, it doesn't return anymore mirrors.
  4598. * src/AdaptiveURISelector.cc
  4599. * src/AdaptiveURISelector.h
  4600. * src/FtpNegotiationCommand.cc
  4601. * src/HttpResponseCommand.cc
  4602. * src/Makefile.am
  4603. * src/Makefile.in
  4604. * src/OptionHandlerFactory.cc
  4605. * src/RequestGroup.cc
  4606. * src/RequestGroup.h
  4607. * src/RequestGroupMan.cc
  4608. * src/ServerStat.cc
  4609. * src/ServerStat.h
  4610. * src/ServerStatMan.cc
  4611. * src/SpeedCalc.cc
  4612. * src/URISelector.h
  4613. * src/prefs.cc
  4614. * src/prefs.h
  4615. * test/RequestGroupManTest.cc
  4616. * test/ServerStatManTest.cc
  4617. * test/ServerStatTest.cc
  4618. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Fixed unit test error.
  4620. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4621. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4622. * Release 1.1.2
  4623. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Updated Russian translation. Thanks to the translators.
  4625. * po/ru.po
  4626. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Added the description of --use-head option to man page.
  4628. * doc/aria2c.1.txt
  4629. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Bump up version number to 1.1.2
  4631. * configure.ac
  4632. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4633. Added --use-head option to toggle whether HEAD method should be
  4634. used in the first HTTP request. By default aria2 uses HEAD method
  4635. as the first request. When the server doesn't recognize HEAD, then
  4636. give aria2 --use-head=false to force aria2 to use GET method
  4637. instead.
  4638. * src/OptionHandlerFactory.cc
  4639. * src/RequestGroupMan.cc
  4640. * src/option_processing.cc
  4641. * src/prefs.cc
  4642. * src/prefs.h
  4643. * src/usage_text.h
  4644. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4646. message is received before CHOKE message. The old implementation
  4647. doen't clear the use-bit of the piece when recieved REJECT
  4648. message.
  4649. * src/DefaultBtMessageDispatcher.cc
  4650. * test/DefaultBtMessageDispatcherTest.cc
  4651. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. * Release 1.1.1
  4653. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Bump up version number to 1.1.1.
  4655. * configure.ac
  4656. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4658. is printed repeatedly.
  4659. * src/ConsoleStatCalc.cc
  4660. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. * Release 1.1.0
  4662. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Added ifdef clause for conditional compilation.
  4664. * src/main.cc
  4665. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4667. translations. Thanks to all translators.
  4668. * po/ja.po
  4669. * po/ru.po
  4670. * po/uk.po
  4671. * po/zh_CN.po
  4672. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Added the preceding ">>> " before the message "Printing the
  4674. contents of file..." to make the output more readable.
  4675. * src/main.cc
  4676. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Added try-catch block in the loop in showFiles() to continue the
  4678. operation even if the exception occurred in one file.
  4679. * src/main.cc (showFiles)
  4680. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4681. Made messages in showFiles() translatable.
  4682. * po/aria2.pot
  4683. * src/main.cc
  4684. * src/message.h
  4685. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Print the contents of Torrent/Metalink files are printed without
  4687. -T/-M options.
  4688. * src/main.cc
  4689. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Escaped '--' with '\--'
  4691. * README
  4692. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Updated "How to build" section in README. Mentioned about
  4694. --with-ca-bundle compile option.
  4695. * README
  4696. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Bump up version number to 1.1.0.
  4698. * configure.ac
  4699. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4700. Added a note for --dht-listen-port option.
  4701. * doc/aria2c.1.txt
  4702. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Update doc for --realtime-chunk-checksum option.
  4704. * doc/aria2c.1.txt
  4705. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4706. Update doc for --realtime-chunk-checksum option.
  4707. * src/usage_text.h
  4708. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Updated French, Japanese, Russian and Ukrainian translations.
  4710. Thanks to all translators.
  4711. * po/fr.po
  4712. * po/ja.po
  4713. * po/ru.po
  4714. * po/uk.po
  4715. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Renamed aria2c.pot to aria2.pot
  4717. * po/aria2.pot
  4718. * po/aria2c.pot: Removed.
  4719. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Removed MetaEntry.h
  4721. * src/Makefile.am
  4722. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Rename file by appending digits if a local file exists and its
  4724. file size is larger than that of remote file with --continue
  4725. option. The old implementation just throws exception in such case.
  4726. * src/RequestGroup.cc
  4727. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. Fixed the bug that download progress summary is not printed in the
  4729. interval specified by the option.
  4730. * src/ConsoleStatCalc.cc
  4731. * src/ConsoleStatCalc.h
  4732. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Fixed compiler warning
  4734. * src/Cookie.cc
  4735. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Fixed the cookie implementation based on RFC2965.
  4737. Now if a value in domain field is not started with dot, then
  4738. prepend dot. That means a cookie with domain=sf.net is sent to
  4739. wiki.sf.net.
  4740. * src/Cookie.cc
  4741. * test/CookieParserTest.cc
  4742. * test/CookieStorageTest.cc
  4743. * test/CookieTest.cc
  4744. * test/NsCookieParserTest.cc
  4745. * test/Sqlite3MozCookieParserTest.cc
  4746. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4748. is enabled and the server doesn't support keep-alive.
  4749. * src/AbstractCommand.cc
  4750. * src/DownloadCommand.cc
  4751. * src/HttpDownloadCommand.cc
  4752. * src/HttpDownloadCommand.h
  4753. * src/HttpResponseCommand.cc
  4754. * src/Request.cc
  4755. * src/Request.h
  4756. * test/RequestTest.cc
  4757. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4758. Removed Dictionary/List/Data and its related classes.
  4759. * src/BencodeVisitor.cc: Removed.
  4760. * src/BencodeVisitor.h: Removed.
  4761. * src/Data.cc: Removed.
  4762. * src/Data.h: Removed.
  4763. * src/Dictionary.cc: Removed.
  4764. * src/Dictionary.h: Removed.
  4765. * src/List.cc: Removed.
  4766. * src/List.h: Removed.
  4767. * src/Makefile.am
  4768. * src/MetaEntry.h: Removed.
  4769. * src/MetaEntryVisitor.h: Removed.
  4770. * src/MetaFileUtil.cc: Removed.
  4771. * src/MetaFileUtil.h: Removed.
  4772. * test/BencodeVisitorTest.cc: Removed.
  4773. * test/DataTest.cc: Removed.
  4774. * test/DictionaryTest.cc: Removed.
  4775. * test/ListTest.cc: Removed.
  4776. * test/Makefile.am
  4777. * test/MetaFileUtilTest.cc: Removed.
  4778. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Removed include of MetaEntry.h
  4780. * test/DHTMessageTrackerEntryTest.cc
  4781. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Use BDE instead of Dictionary/List/Data.
  4783. * src/AnnounceList.cc
  4784. * src/AnnounceList.h
  4785. * test/AnnounceListTest.cc
  4786. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4787. Use BDE instead of Dictionary/List/Data.
  4788. * src/DHTAbstractMessage.cc
  4789. * src/DHTAbstractMessage.h
  4790. * src/DHTAnnouncePeerMessage.cc
  4791. * src/DHTAnnouncePeerMessage.h
  4792. * src/DHTAnnouncePeerReplyMessage.cc
  4793. * src/DHTAnnouncePeerReplyMessage.h
  4794. * src/DHTFindNodeMessage.cc
  4795. * src/DHTFindNodeMessage.h
  4796. * src/DHTFindNodeReplyMessage.cc
  4797. * src/DHTFindNodeReplyMessage.h
  4798. * src/DHTGetPeersMessage.cc
  4799. * src/DHTGetPeersMessage.h
  4800. * src/DHTGetPeersReplyMessage.cc
  4801. * src/DHTGetPeersReplyMessage.h
  4802. * src/DHTMessageFactory.h
  4803. * src/DHTMessageFactoryImpl.cc
  4804. * src/DHTMessageFactoryImpl.h
  4805. * src/DHTMessageReceiver.cc
  4806. * src/DHTMessageTracker.cc
  4807. * src/DHTMessageTracker.h
  4808. * src/DHTPingMessage.cc
  4809. * src/DHTPingMessage.h
  4810. * src/DHTPingReplyMessage.cc
  4811. * src/DHTPingReplyMessage.h
  4812. * src/DHTQueryMessage.cc
  4813. * src/DHTQueryMessage.h
  4814. * src/DHTResponseMessage.cc
  4815. * src/DHTResponseMessage.h
  4816. * test/DHTAnnouncePeerMessageTest.cc
  4817. * test/DHTAnnouncePeerReplyMessageTest.cc
  4818. * test/DHTFindNodeMessageTest.cc
  4819. * test/DHTFindNodeReplyMessageTest.cc
  4820. * test/DHTGetPeersMessageTest.cc
  4821. * test/DHTGetPeersReplyMessageTest.cc
  4822. * test/DHTMessageFactoryImplTest.cc
  4823. * test/DHTMessageTrackerTest.cc
  4824. * test/DHTPingMessageTest.cc
  4825. * test/DHTPingReplyMessageTest.cc
  4826. * test/MockDHTMessageFactory.h
  4827. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Added tests the case where length < 0 is specified.
  4829. * test/BencodeTest.cc
  4830. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4831. Fixed memory leak in decoderawstring()
  4832. * src/bencode.cc
  4833. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Added missing #ifdef guard. Added uc() function for String and
  4835. removeKey() for Dict.
  4836. * src/bencode.cc
  4837. * src/bencode.h
  4838. * test/BencodeTest.cc
  4839. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4840. Use BDE instead of Dictionary/List/Data.
  4841. * src/HandshakeExtensionMessage.cc
  4842. * src/HandshakeExtensionMessage.h
  4843. * test/HandshakeExtensionMessageTest.cc
  4844. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4845. Added --max-overall-upload-limit option. This option limits the
  4846. overall upload speed. Stated in help message that the existing
  4847. --max-upload-limit option limits the upload speed per each
  4848. torrent. Man page is also updated.
  4849. * doc/aria2c.1.txt
  4850. * src/DefaultBtMessageDispatcher.cc
  4851. * src/DefaultBtMessageDispatcher.h
  4852. * src/OptionHandlerFactory.cc
  4853. * src/PeerInteractionCommand.cc
  4854. * src/option_processing.cc
  4855. * src/prefs.cc
  4856. * src/prefs.h
  4857. * src/usage_text.h
  4858. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4859. Use BDE instead of Dictionary/List/Data classes.
  4860. * src/CompactPeerListProcessor.cc
  4861. * src/CompactPeerListProcessor.h
  4862. * src/DefaultBtAnnounce.cc
  4863. * src/DefaultBtContext.cc
  4864. * src/DefaultBtContext.h
  4865. * src/DefaultPeerListProcessor.cc
  4866. * src/DefaultPeerListProcessor.h
  4867. * src/DelegatingPeerListProcessor.cc
  4868. * src/DelegatingPeerListProcessor.h
  4869. * src/PeerListProcessor.h
  4870. * src/UTPexExtensionMessage.cc
  4871. * src/Util.h
  4872. * src/message.h
  4873. * test/DefaultBtContextTest.cc
  4874. * test/DefaultPeerListProcessorTest.cc
  4875. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4876. Added bencode helper functions and BDE class.
  4877. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4878. * src/Makefile.am
  4879. * src/bencode.cc
  4880. * src/bencode.h
  4881. * test/BencodeTest.cc
  4882. * test/Makefile.am
  4883. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Fixed the bug that bad URI is sent to the tracker when the announe
  4885. URI in torrent file includes query.
  4886. * src/DefaultBtAnnounce.cc
  4887. * test/DefaultBtAnnounceTest.cc
  4888. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Added Option::blank().
  4890. Use !Option::blank(name) instead of Option::defined(name) for
  4891. the options that take filename.
  4892. * src/MultiUrlRequestInfo.cc
  4893. * src/Option.cc
  4894. * src/Option.h
  4895. * src/main.cc
  4896. * src/option_processing.cc
  4897. * test/OptionTest.cc
  4898. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Documented the default value of --check-certificate option in man
  4900. page.
  4901. * doc/aria2c.1.txt
  4902. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4903. Enabled --check-certificate by default. Added compile
  4904. time(configure) option --with-ca-bundle to specify CA bundle.
  4905. Warn if --check-certificate=true and --ca-certificate is not
  4906. specified or loading CA certificate is failed.
  4907. * configure.ac
  4908. * src/MultiUrlRequestInfo.cc
  4909. * src/OptionHandlerFactory.cc
  4910. * src/message.h
  4911. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Mentioned https tag in help option.
  4913. * doc/aria2c.1.txt
  4914. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Added `https' tag to help option category. Added https tag to
  4916. --ca-certificate, --certificate, --check-certificate and
  4917. --private-key option.
  4918. * src/OptionHandlerFactory.cc
  4919. * src/help_tags.h
  4920. * src/option_processing.cc
  4921. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4922. Changed the package name from `aria2c' to `aria2' in order to fix
  4923. the packaging issue in Debian and Fedora. The name of the
  4924. executable is not changed.
  4925. * configure.ac
  4926. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4927. Fixed typos
  4928. * src/usage_text.h
  4929. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Fixed typos and updated doc.
  4931. * README
  4932. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Fixed typos
  4934. * doc/aria2c.1.txt
  4935. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4936. Fixed typos
  4937. * src/usage_text.h
  4938. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4939. Print a message when no files to download.
  4940. * src/download_helper.cc
  4941. * src/main.cc
  4942. * src/message.h
  4943. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4944. RFC3986 complied Percent-Encoding(urlencode).
  4945. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4946. ones.
  4947. * src/Request.cc
  4948. * src/Util.cc
  4949. * src/Util.h
  4950. * test/BtHandshakeMessageTest.cc
  4951. * test/DefaultBtAnnounceTest.cc
  4952. * test/DefaultBtContextTest.cc
  4953. * test/RequestTest.cc
  4954. * test/UtilTest.cc
  4955. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4956. Fixed the bug that prevents aria2 from downloading 0-length files
  4957. via HTTP/FTP.
  4958. * src/DefaultBtContext.cc
  4959. * src/DefaultBtContext.h
  4960. * src/DownloadContext.h
  4961. * src/FtpNegotiationCommand.cc
  4962. * src/HttpResponseCommand.cc
  4963. * src/HttpResponseCommand.h
  4964. * src/RequestGroup.cc
  4965. * src/SingleFileDownloadContext.cc
  4966. * src/SingleFileDownloadContext.h
  4967. * test/BtPostDownloadHandlerTest.cc
  4968. * test/MetalinkPostDownloadHandlerTest.cc
  4969. * test/MockBtContext.h
  4970. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4971. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4972. * src/option_processing.cc
  4973. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Applied aria2-1.0.1-mingw.patch.
  4975. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4976. mingw.
  4977. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4978. * src/SocketCore.cc
  4979. * src/a2netcompat.h
  4980. * test/SocketCoreTest.cc
  4981. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. * Release 1.0.1
  4983. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Updated Ukrainian and Norwegian Nynorsk translations.
  4985. Thanks to all translators.
  4986. * po/nn.po
  4987. * po/uk.po
  4988. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Don't show download result when -S option is used.
  4990. * src/main.cc
  4991. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Bump up version number to 1.0.1
  4993. * configure.ac
  4994. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Closed files after the test cases in MultiDiskWriterTest::
  4996. testResetDiskWriterEntries(). This will fix the unit test error
  4997. in mingw32 build.
  4998. * test/MultiDiskWriterTest.cc
  4999. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5000. Use HEAD method to get file size from HTTP server for segmented
  5001. downloading.
  5002. The request to the BitTorrent Tracker always uses GET method because
  5003. the response of the tracker is small and it doesn't need segmented
  5004. download.
  5005. * src/FtpNegotiationCommand.cc
  5006. * src/HttpRequest.cc
  5007. * src/HttpResponseCommand.cc
  5008. * src/HttpSkipResponseCommand.cc
  5009. * src/RequestGroup.cc
  5010. * src/RequestGroup.h
  5011. * src/TrackerWatcherCommand.cc
  5012. * test/HttpRequestTest.cc
  5013. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. Fixed the bug that causes floating exception when -T option is used and
  5015. no URIs are given.
  5016. * src/download_helper.cc
  5017. * test/DownloadHelperTest.cc
  5018. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5019. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5020. errors in MinGW:
  5021. Closed file after saving server stats (RequestGroupMan.cc)
  5022. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5023. Ignored case & handled 2-digit years (strptime.c)
  5024. Added missing suseconds_t definition (a2time.h)
  5025. Fixed socket CLOSE() define (SocketCore.cc)
  5026. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5027. Changed utime() test values from x000 to x00000 as MinGW failed on
  5028. values less than timezone offset from Unix epoch
  5029. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5030. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5031. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5032. handle negative dates (CookieParserTest.cc)
  5033. * src/a2time.h
  5034. * src/FtpConnection.cc
  5035. * src/RequestGroupMan.cc
  5036. * src/SocketCore.cc
  5037. * src/strptime.c
  5038. * test/CookieParserTest.cc
  5039. * test/CopyDiskAdaptorTest.cc
  5040. * test/FileTest.cc
  5041. * test/FtpConnectionTest.cc
  5042. * test/MultiDiskAdaptorTest.cc
  5043. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5044. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5045. * doc/aria2c.1.txt
  5046. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. * Release 1.0.0
  5048. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Added '~' to reserved characters.
  5050. * src/Util.cc
  5051. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5052. Do not urlencode Request::url in setUrl() because we want unmodified
  5053. URL using Request::getUrl()
  5054. * src/Request.cc
  5055. * src/Request.h
  5056. * test/RequestTest.cc
  5057. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5058. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5059. Thanks to all translators.
  5060. * po/bg.po
  5061. * po/fr.po
  5062. * po/ja.po
  5063. * po/ru.po
  5064. * po/uk.po
  5065. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Bump up version number to 1.0.0
  5067. * configure.ac
  5068. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Added nosqlite3 build to build_test.sh.
  5070. Renamed noxml as expat.
  5071. * build_test.sh
  5072. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Updated INPUT FILE section.
  5074. * doc/aria2c.1.txt
  5075. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5076. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5077. on big endian systems because test .aria2 files are made for little
  5078. endian systems.
  5079. * test/DefaultBtProgressInfoFileTest.cc
  5080. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5081. Dropped ares support.
  5082. * README
  5083. * configure.ac
  5084. * m4/libares.m4: Removed.
  5085. * src/AsyncNameResolver.cc
  5086. * src/Makefile.am
  5087. * test/Makefile.am
  5088. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5089. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5090. Removed const qualifier from DiskWriter::size().
  5091. * src/AbstractDiskWriter.cc
  5092. * src/AbstractDiskWriter.h
  5093. * src/ByteArrayDiskWriter.cc
  5094. * src/ByteArrayDiskWriter.h
  5095. * src/DiskWriter.h
  5096. * test/ByteArrayDiskWriterTest.cc
  5097. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Fixed the bug that causes segmentation fault/bus error during executing
  5099. choking algorithm while seeding. This is caused by improper
  5100. implementation of compare function which returns inconsistent results
  5101. depending on the timing of last unchoke.
  5102. * src/BtSeederStateChoke.cc
  5103. * src/BtSeederStateChoke.h
  5104. * src/DefaultPeerStorage.cc
  5105. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Removed TODO
  5107. * TODO
  5108. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5109. Added a section that explains how to pass argument to options that
  5110. takes optional arguments with its short form.
  5111. * doc/aria2c.1.txt
  5112. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5113. Added -u for the short form of --max-upload-limit option.
  5114. * doc/aria2c.1.txt
  5115. * src/option_processing.cc
  5116. * src/usage_text.h
  5117. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5118. Added -V for the short form of --check-integrity option.
  5119. Now the argument of --check-integrity option is optional:
  5120. if it is omitted, it is evaluated as true.
  5121. * doc/aria2c.1.txt
  5122. * src/option_processing.cc
  5123. * src/usage_text.h
  5124. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5125. Made the default value of --ftp-pasv option set to true and it can take
  5126. true/false values.
  5127. * src/OptionHandlerFactory.cc
  5128. * src/option_processing.cc
  5129. * src/usage_text.h
  5130. * doc/aria2c.1.txt
  5131. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5132. Given custom random number generator to std::random_shuffle.
  5133. * src/AnnounceList.cc
  5134. * src/BtLeecherStateChoke.cc
  5135. * src/BtSeederStateChoke.cc
  5136. * src/DefaultBtRequestFactory.cc
  5137. * src/MetalinkEntry.cc
  5138. * src/RarestPieceSelector.cc
  5139. * src/SimpleRandomizer.cc
  5140. * src/SimpleRandomizer.h
  5141. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Now the default value of --enable-direct-io is true.
  5143. * src/OptionHandlerFactory.cc
  5144. * doc/aria2c.1.txt
  5145. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Erase peer before executing onReturningPeer and onErasingPeer
  5147. because choking algorithm called from onReturningPeer doesn't
  5148. like erasing peer in the active peer list.
  5149. * src/DefaultPeerStorage.cc
  5150. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5151. Instead of creating special filename in createDownloadResult() if
  5152. inMemoryDownload() is true, now it is done in getFilePath().
  5153. * src/RequestGroup.cc
  5154. * test/RequestGroupTest.cc
  5155. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5157. processed in memory. This is the fix for previous comment out.
  5158. * src/MemoryBufferPreDownloadHandler.cc
  5159. * src/RequestGroup.cc
  5160. * src/RequestGroup.h
  5161. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Commented out the code which sets virtual directory path "[MEMORY]"
  5163. propagate directory to store to following RequestGroup.
  5164. * src/MemoryBufferPreDownloadHandler.cc
  5165. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5166. Bump up version number to 1.0.0b
  5167. * configure.ac
  5168. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Added input_uris.txt to EXTRA_DIST
  5170. * test/Makefile.am
  5171. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Removed PeerObject.h from Makefile.am
  5173. * src/Makefile.am
  5174. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5175. Avoid slow seeding
  5176. * src/PeerInteractionCommand.cc
  5177. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5178. Updated usage for -i option.
  5179. * src/usage_text.h (TEXT_INPUT_FILE)
  5180. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5181. Added INPUT FILE section to man page.
  5182. Escaped fake URLs.
  5183. * doc/aria2c.1.txt
  5184. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Fixed wrong note position for -o option.
  5186. * doc/aria2c.1.txt
  5187. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Fixed compile error without SSL/XML library.
  5189. * src/DefaultBtProgressInfoFile.cc
  5190. * src/DefaultBtProgressInfoFile.h
  5191. * src/FileMetalinkParserState.cc
  5192. * src/RequestGroup.h
  5193. * src/SocketCore.cc
  5194. * src/SocketCore.h
  5195. * src/VerificationMetalinkParserState.cc
  5196. * src/download_helper.h
  5197. * src/main.cc
  5198. * test/DefaultBtProgressInfoFileTest.cc
  5199. * test/DownloadHelperTest.cc
  5200. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5201. Rewritten URI handling functions. They are now provided as a testable
  5202. functions.
  5203. * src/Makefile.am
  5204. * src/RequestGroup.cc
  5205. * src/RequestGroup.h
  5206. * src/download_helper.cc
  5207. * src/download_helper.h
  5208. * src/main.cc
  5209. * test/DownloadHelperTest.cc
  5210. * test/Makefile.am
  5211. * test/input_uris.txt
  5212. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Quickly terminate commands when ctrl-c is pressed.
  5214. * src/DownloadEngine.cc
  5215. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Quickly terminate idle commands when download finished.
  5217. * src/AbstractCommand.cc
  5218. * src/DownloadCommand.cc
  5219. * src/DownloadEngine.cc
  5220. * src/DownloadEngine.h
  5221. * src/SleepCommand.cc
  5222. * src/SleepCommand.h
  5223. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Added the ability to specify output filename and directory in input
  5225. file.
  5226. Additional parameters are added in the following line of URIs
  5227. with proceeding white space(s), 1 parameter in 1 line.
  5228. The parameter names are the same with the command-line option name
  5229. without proceeding "--". Not all the options are available here:
  5230. at the moment, 'dir' and 'out' options are avialable.
  5231. Please note that out option has no effect against Metalink or BitTorrent
  5232. downloads.
  5233. Example input file:
  5234. http://host/foo-1.1.tar.bz2
  5235. out=foo.tar.bz2
  5236. dir=/tmp/downloads
  5237. http://host/thundermonkey-2.0.tar.bz2
  5238. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5239. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5240. thundermonkey-2.0.tar.bz2 is saved as
  5241. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5242. * src/BtPostDownloadHandler.cc
  5243. * src/Metalink2RequestGroup.cc
  5244. * src/Metalink2RequestGroup.h
  5245. * src/MetalinkPostDownloadHandler.cc
  5246. * src/UriListParser.cc
  5247. * src/UriListParser.h
  5248. * src/main.cc
  5249. * test/Metalink2RequestGroupTest.cc
  5250. * test/UriListParserTest.cc
  5251. * test/filelist1.txt
  5252. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Fixed error when SSL library is not found.
  5254. * configure.ac
  5255. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Cross referenced among -s, -C and -j options.
  5257. Updated usage of -C and -s options.
  5258. * src/usage_text.h
  5259. * doc/aria2c.1.txt
  5260. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Fixed bad cast in 32bit platforms.
  5262. * test/DefaultPieceStorageTest.cc
  5263. (DefaultPieceStorageTest::testGetCompletedLength)
  5264. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Fixed unit test fails on 32bit platforms.
  5266. * test/CookieParserTest.cc
  5267. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5268. Show an average download speed in Download results.
  5269. * src/BtFileAllocationEntry.cc
  5270. * src/DefaultPieceStorage.cc
  5271. * src/DownloadContext.cc
  5272. * src/DownloadContext.h
  5273. * src/DownloadResult.h
  5274. * src/RequestGroup.cc
  5275. * src/RequestGroupMan.cc
  5276. * src/StreamFileAllocationEntry.cc
  5277. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Fixed the bug that metalink file is not processed if Content-Type
  5279. field has a paramter.
  5280. * src/HttpResponse.cc
  5281. * src/HttpResponse.h
  5282. * test/HttpResponseTest.cc
  5283. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Removed unused code.
  5285. * src/DefaultBtAnnounce.cc
  5286. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5288. the value larger than DefaultPieceStorage::getTotalLength() when
  5289. in flight pieces are involved.
  5290. * src/DefaultPieceStorage.cc
  5291. * test/DefaultPieceStorageTest.cc
  5292. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Bump up version number to 1.0.0a.
  5294. * configure.ac
  5295. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Updated configure.ac
  5297. * configure.ac
  5298. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5299. Added usege for proxy.
  5300. * doc/aria2c.1.txt
  5301. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5302. Added usage for --ca-certificate, --certificate, --private-key and
  5303. --check-certificate options.
  5304. * doc/aria2c.1.txt
  5305. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5306. Updated man page
  5307. * doc/aria2c.1.txt
  5308. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5309. Added --no-proxy option. It receives comman separated hostname or
  5310. domains to which proxy should not be used.
  5311. aria2 honors the environment variable no_proxy to override no-proxy
  5312. value in configuration file. The user can override the environment
  5313. variable no_proxy with --no-proxy command-line option.
  5314. * src/AbstractCommand.cc
  5315. * src/OptionHandlerFactory.cc
  5316. * src/option_processing.cc
  5317. * src/prefs.cc
  5318. * src/prefs.h
  5319. * src/usage_text.h
  5320. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5322. The CA certificates are specified in --ca-certificate option.
  5323. By default, the verification is disabled. Use --check-certificate
  5324. option to enable it.
  5325. * src/HttpRequestCommand.cc
  5326. * src/LibgnutlsTLSContext.cc
  5327. * src/LibgnutlsTLSContext.h
  5328. * src/LibsslTLSContext.cc
  5329. * src/LibsslTLSContext.h
  5330. * src/MultiUrlRequestInfo.cc
  5331. * src/OptionHandlerFactory.cc
  5332. * src/SocketCore.cc
  5333. * src/SocketCore.h
  5334. * src/a2functional.h
  5335. * src/message.h
  5336. * src/option_processing.cc
  5337. * src/prefs.cc
  5338. * src/prefs.h
  5339. * src/usage_text.h
  5340. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Added client certificate authentication for SSL/TLS.
  5342. Currently a private key must be decrypted for use with aria2.
  5343. If a user accidentally gives encrypted file to aria2 then following
  5344. thing happens:
  5345. If encrypted private key is given to aria2, it behaves differently
  5346. depending on the ssl library it uses. If aria2 built with openssl then
  5347. openssl prompts the user for password. If aria2 build with gnutls then
  5348. aria2 exists with error at start up.
  5349. * src/DownloadEngineFactory.cc
  5350. * src/MultiUrlRequestInfo.cc
  5351. * src/OptionHandlerFactory.cc
  5352. * src/option_processing.cc
  5353. * src/prefs.cc
  5354. * src/prefs.h
  5355. * src/usage_text.h
  5356. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Introduced TLSContext that holds TLS related data that can be shared
  5358. with multiple SSL connections.
  5359. * src/DownloadEngineFactory.cc
  5360. * src/LibgnutlsTLSContext.cc
  5361. * src/LibgnutlsTLSContext.h
  5362. * src/LibsslTLSContext.cc
  5363. * src/LibsslTLSContext.h
  5364. * src/Makefile.am
  5365. * src/SocketCore.cc
  5366. * src/SocketCore.h
  5367. * src/TLSContext.h
  5368. * src/message.h
  5369. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5370. Fixed the bug that the DiskWriter of the first FileEntry whose
  5371. `needsFileAllocation' property is false is not created
  5372. even if it shares a piece with next FileEntry which `requested' property
  5373. is true.
  5374. Fixed the bug that zero-length file is not created if pre file
  5375. allocation is not done.
  5376. * src/MultiDiskAdaptor.cc
  5377. * src/MultiDiskAdaptor.h
  5378. * test/MultiDiskAdaptorTest.cc
  5379. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Added the ability to pool proxy connection.
  5381. The conneciton in FTP with proxy-method=GET is not pooled.
  5382. Proxy-Connection header will not be sent when sending CONNECT method.
  5383. * src/DownloadEngine.cc
  5384. * src/DownloadEngine.h
  5385. * src/FtpFinishDownloadCommand.cc
  5386. * src/FtpInitiateConnectionCommand.cc
  5387. * src/FtpNegotiationCommand.cc
  5388. * src/HttpDownloadCommand.cc
  5389. * src/HttpInitiateConnectionCommand.cc
  5390. * src/HttpRequest.cc
  5391. * src/HttpRequest.h
  5392. * src/HttpResponse.cc
  5393. * src/HttpSkipResponseCommand.cc
  5394. * test/HttpRequestTest.cc
  5395. * test/HttpResponseTest.cc
  5396. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Handle date before epoch.
  5398. To create *bad* Time object, call Time::null().
  5399. * src/CookieParser.cc
  5400. * src/FtpConnection.cc
  5401. * src/FtpConnection.h
  5402. * src/FtpNegotiationCommand.cc
  5403. * src/RequestGroup.cc
  5404. * src/TimeA2.cc
  5405. * src/TimeA2.h
  5406. * test/CookieParserTest.cc
  5407. * test/FtpConnectionTest.cc
  5408. * test/TimeTest.cc
  5409. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Added support for following envrionment variables: http_proxy,
  5411. https_proxy, ftp_proxy and all_proxy.
  5412. Each variable is equivalent to the aria2 option whose name is the
  5413. variable name with '_' replaced with '-'.
  5414. They overrides options specified in aria2.conf file.
  5415. The envrionment variables can be overrode using command-line option.
  5416. * src/option_processing.cc
  5417. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Renamed --http-proxy-method as --proxy-method.
  5419. * src/AbstractCommand.cc
  5420. * src/FtpInitiateConnectionCommand.cc
  5421. * src/HttpInitiateConnectionCommand.cc
  5422. * src/OptionHandlerFactory.cc
  5423. * src/option_processing.cc
  5424. * src/prefs.cc
  5425. * src/prefs.h
  5426. * src/usage_text.h
  5427. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5429. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5430. Above 3 options and --http-proxy option can handle proxy in URL format
  5431. like: http://user:passwd@host:port.
  5432. If a proxy requires user/password, they must be specified in a URL.
  5433. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5434. instead.
  5435. * src/AbstractCommand.cc
  5436. * src/AbstractCommand.h
  5437. * src/AbstractProxyRequestCommand.cc
  5438. * src/AbstractProxyRequestCommand.h
  5439. * src/AuthConfigFactory.cc
  5440. * src/AuthConfigFactory.h
  5441. * src/FtpFinishDownloadCommand.cc
  5442. * src/FtpInitiateConnectionCommand.cc
  5443. * src/FtpInitiateConnectionCommand.h
  5444. * src/FtpNegotiationCommand.cc
  5445. * src/FtpTunnelRequestCommand.cc
  5446. * src/FtpTunnelRequestCommand.h
  5447. * src/HttpDownloadCommand.cc
  5448. * src/HttpInitiateConnectionCommand.cc
  5449. * src/HttpInitiateConnectionCommand.h
  5450. * src/HttpProxyRequestCommand.cc
  5451. * src/HttpProxyRequestCommand.h
  5452. * src/HttpRequest.cc
  5453. * src/HttpRequest.h
  5454. * src/HttpRequestCommand.cc
  5455. * src/HttpRequestCommand.h
  5456. * src/HttpSkipResponseCommand.cc
  5457. * src/InitiateConnectionCommand.cc
  5458. * src/InitiateConnectionCommand.h
  5459. * src/OptionHandlerFactory.cc
  5460. * src/OptionHandlerImpl.h
  5461. * src/Request.cc
  5462. * src/option_processing.cc
  5463. * src/prefs.cc
  5464. * src/prefs.h
  5465. * src/usage_text.h
  5466. * test/AuthConfigFactoryTest.cc
  5467. * test/HttpRequestTest.cc
  5468. * test/OptionHandlerTest.cc
  5469. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Execute choking algorithm when unchoked and interested peer is
  5471. disconected.
  5472. * src/DefaultPeerStorage.cc
  5473. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Added testcase for BtNotInterestedMessage from unchoked peer.
  5475. * test/BtNotInterestedMessageTest.cc
  5476. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Execute choking algorithm when BtInterestedMessage arrives from
  5478. unchoked peer.
  5479. * src/BtInterestedMessage.cc
  5480. * src/BtInterestedMessage.h
  5481. * src/DefaultBtMessageFactory.cc
  5482. * test/BtInterestedMessageTest.cc
  5483. * test/MockPeerStorage.h
  5484. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. AuthConfigFactory is now part of DownloadEngine.
  5486. * src/AbstractProxyRequestCommand.cc
  5487. * src/AuthConfigFactory.h
  5488. * src/DownloadEngine.cc
  5489. * src/DownloadEngine.h
  5490. * src/FtpConnection.cc
  5491. * src/FtpConnection.h
  5492. * src/FtpNegotiationCommand.cc
  5493. * src/HttpConnection.cc
  5494. * src/HttpRequest.cc
  5495. * src/HttpRequest.h
  5496. * src/HttpRequestCommand.cc
  5497. * src/HttpResponse.cc
  5498. * src/HttpResponseCommand.cc
  5499. * src/HttpSkipResponseCommand.cc
  5500. * src/MultiUrlRequestInfo.cc
  5501. * src/main.cc
  5502. * test/FtpConnectionTest.cc
  5503. * test/HttpRequestTest.cc
  5504. * test/HttpResponseTest.cc
  5505. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Corrected catched exception type.
  5507. * src/ServerStatMan.cc
  5508. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. DNSCache is now part of DownloadEngine.
  5510. * src/DNSCache.h
  5511. * src/DownloadEngine.cc
  5512. * src/DownloadEngine.h
  5513. * src/InitiateConnectionCommand.cc
  5514. * src/MultiUrlRequestInfo.cc
  5515. * test/Makefile.am
  5516. * test/Makefile.in
  5517. * test/SimpleDNSCacheTest.cc
  5518. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5520. DownloadEngine.
  5521. * src/ActivePeerConnectionCommand.cc
  5522. * src/BtSetup.cc
  5523. * src/CUIDCounter.h
  5524. * src/DHTSetup.cc
  5525. * src/DownloadCommand.cc
  5526. * src/DownloadEngine.cc
  5527. * src/DownloadEngine.h
  5528. * src/DownloadEngineFactory.cc
  5529. * src/FileAllocationDispatcherCommand.cc
  5530. * src/InitiatorMSEHandshakeCommand.cc
  5531. * src/PeerInitiateConnectionCommand.cc
  5532. * src/PeerInteractionCommand.cc
  5533. * src/PeerListenCommand.cc
  5534. * src/RequestGroup.cc
  5535. * src/StreamFileAllocationEntry.cc
  5536. * src/TrackerWatcherCommand.cc
  5537. * src/main.cc
  5538. * test/RequestGroupManTest.cc
  5539. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Implemented commented code in BtSeederStateChoke
  5541. * src/BtSeederStateChoke.cc
  5542. * src/Peer.cc
  5543. * src/Peer.h
  5544. * src/PeerInteractionCommand.cc
  5545. * src/PeerSessionResource.cc
  5546. * src/PeerSessionResource.h
  5547. * test/MockBtMessageDispatcher.h
  5548. * test/PeerSessionResourceTest.cc
  5549. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5551. its object.
  5552. * src/AbstractBtMessage.cc
  5553. * src/ActivePeerConnectionCommand.cc
  5554. * src/ActivePeerConnectionCommand.h
  5555. * src/BtContextAwareCommand.cc
  5556. * src/BtContextAwareCommand.h
  5557. * src/BtExtendedMessage.cc
  5558. * src/BtExtendedMessage.h
  5559. * src/BtInterestedMessage.cc
  5560. * src/BtInterestedMessage.h
  5561. * src/BtNotInterestedMessage.cc
  5562. * src/BtNotInterestedMessage.h
  5563. * src/BtRegistry.cc
  5564. * src/BtRegistry.h
  5565. * src/BtSeederStateChoke.cc
  5566. * src/BtSetup.cc
  5567. * src/DHTGetPeersCommand.cc
  5568. * src/DHTGetPeersCommand.h
  5569. * src/DHTPeerAnnounceEntry.cc
  5570. * src/DHTPeerAnnounceEntry.h
  5571. * src/DHTPeerAnnounceStorage.cc
  5572. * src/DHTPeerAnnounceStorage.h
  5573. * src/DHTPeerLookupTask.cc
  5574. * src/DHTPeerLookupTask.h
  5575. * src/DHTSetup.cc
  5576. * src/DHTSetup.h
  5577. * src/DHTTaskFactory.h
  5578. * src/DHTTaskFactoryImpl.cc
  5579. * src/DHTTaskFactoryImpl.h
  5580. * src/DefaultBtAnnounce.cc
  5581. * src/DefaultBtInteractive.cc
  5582. * src/DefaultBtInteractive.h
  5583. * src/DefaultBtMessageDispatcher.cc
  5584. * src/DefaultBtMessageDispatcher.h
  5585. * src/DefaultBtMessageFactory.cc
  5586. * src/DefaultBtMessageFactory.h
  5587. * src/DefaultBtMessageReceiver.cc
  5588. * src/DefaultBtProgressInfoFile.cc
  5589. * src/DefaultBtProgressInfoFile.h
  5590. * src/DefaultBtRequestFactory.cc
  5591. * src/DefaultBtRequestFactory.h
  5592. * src/DefaultExtensionMessageFactory.cc
  5593. * src/DefaultExtensionMessageFactory.h
  5594. * src/DefaultPeerStorage.cc
  5595. * src/DefaultPeerStorage.h
  5596. * src/DownloadEngine.cc
  5597. * src/DownloadEngine.h
  5598. * src/InitiatorMSEHandshakeCommand.cc
  5599. * src/InitiatorMSEHandshakeCommand.h
  5600. * src/MSEHandshake.cc
  5601. * src/MSEHandshake.h
  5602. * src/Makefile.am
  5603. * src/Makefile.in
  5604. * src/PeerChokeCommand.cc
  5605. * src/PeerChokeCommand.h
  5606. * src/PeerInitiateConnectionCommand.cc
  5607. * src/PeerInitiateConnectionCommand.h
  5608. * src/PeerInteractionCommand.cc
  5609. * src/PeerInteractionCommand.h
  5610. * src/PeerObject.h
  5611. * src/PeerReceiveHandshakeCommand.cc
  5612. * src/PeerReceiveHandshakeCommand.h
  5613. * src/ReceiverMSEHandshakeCommand.cc
  5614. * src/RequestGroup.cc
  5615. * src/RequestGroup.h
  5616. * src/RequestGroupMan.cc
  5617. * src/RequestGroupMan.h
  5618. * src/SeedCheckCommand.cc
  5619. * src/SeedCheckCommand.h
  5620. * src/ShareRatioSeedCriteria.h
  5621. * src/SimpleBtMessage.cc
  5622. * src/TrackerWatcherCommand.cc
  5623. * src/TrackerWatcherCommand.h
  5624. * src/UTPexExtensionMessage.cc
  5625. * src/UTPexExtensionMessage.h
  5626. * test/BtCancelMessageTest.cc
  5627. * test/BtChokeMessageTest.cc
  5628. * test/BtExtendedMessageTest.cc
  5629. * test/BtInterestedMessageTest.cc
  5630. * test/BtNotInterestedMessageTest.cc
  5631. * test/BtPieceMessageTest.cc
  5632. * test/BtPortMessageTest.cc
  5633. * test/BtRegistryTest.cc
  5634. * test/BtRejectMessageTest.cc
  5635. * test/BtRequestMessageTest.cc
  5636. * test/DHTPeerAnnounceEntryTest.cc
  5637. * test/DHTPeerAnnounceStorageTest.cc
  5638. * test/DefaultBtMessageDispatcherTest.cc
  5639. * test/DefaultBtMessageFactoryTest.cc
  5640. * test/DefaultBtProgressInfoFileTest.cc
  5641. * test/DefaultBtRequestFactoryTest.cc
  5642. * test/DefaultExtensionMessageFactoryTest.cc
  5643. * test/MSEHandshakeTest.cc
  5644. * test/MockDHTTaskFactory.h
  5645. * test/ShareRatioSeedCriteriaTest.cc
  5646. * test/UTPexExtensionMessageTest.cc
  5647. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Fixed compiler warning.
  5649. * test/UtilTest.cc
  5650. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Treat Cookie object as session cookie if expiry = 0 is given.
  5652. With this change, you can specify session scoped cookies in an external
  5653. file setting expiry value to 0.
  5654. * src/Cookie.cc
  5655. * src/Cookie.h
  5656. * test/CookieParserTest.cc
  5657. * test/CookieStorageTest.cc
  5658. * test/CookieTest.cc
  5659. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Changed signature of DHTMessageFactory::createResponseMessage().
  5661. Removed unused validateIDMatch.
  5662. * src/DHTMessageFactory.h
  5663. * src/DHTMessageFactoryImpl.cc
  5664. * src/DHTMessageFactoryImpl.h
  5665. * src/DHTMessageTracker.cc
  5666. * test/DHTMessageFactoryImplTest.cc
  5667. * test/MockDHTMessageFactory.h
  5668. Dropped DHT message coming from same ID of localhost.
  5669. * src/DHTMessageReceiver.cc
  5670. Rejected adding node whose ID is the same as localhost's.
  5671. * src/DHTRoutingTable.cc
  5672. * test/BtPortMessageTest.cc
  5673. * test/DHTRoutingTableTest.cc
  5674. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Pool connection when redirection occurs with Content-Length = 0.
  5676. * src/HttpSkipResponseCommand.cc
  5677. * src/HttpSkipResponseCommand.h
  5678. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. Fixed the bug that causes time out when redirection occurs with
  5680. content-length 0.
  5681. * src/HttpResponseCommand.cc
  5682. * src/HttpSkipResponseCommand.cc
  5683. * src/HttpSkipResponseCommand.h
  5684. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Now each status legends is shown only when it appears in Download
  5686. Result. If Download Result has no item, then status legend will not
  5687. be printed.
  5688. * src/RequestGroupMan.cc
  5689. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Removed duplicate creation of OptionHandlers.
  5691. * src/option_processing.cc
  5692. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Fixed the bug that causes segmentation fault when accessing files which
  5694. don't exist or are not included in --select-file option while
  5695. validating chunk checksum.
  5696. * src/MultiDiskAdaptor.cc
  5697. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5698. Fixed compiler warning.
  5699. * test/UtilTest.cc
  5700. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5702. * src/IteratableChecksumValidator.cc
  5703. * src/IteratableChunkChecksumValidator.cc
  5704. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. * Release 0.16.2
  5706. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Added Serbian translation. Updated Ukrainian translation.
  5708. Thanks to all translators.
  5709. * po/sr.po
  5710. * po/uk.po
  5711. * po/LINGUAS
  5712. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5713. Bump up version number to 0.16.2
  5714. * configure.ac
  5715. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Added length equality test to operator== to drop a piece message
  5717. whose length does not match to the requested one.
  5718. * src/RequestSlot.cc
  5719. * test/DefaultBtMessageDispatcherTest.cc
  5720. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5722. recieved.
  5723. In this fix, if a request larger than 16KiB length is received, aria2
  5724. disconnects the peer.
  5725. * src/BtConstants.h
  5726. * src/PeerMessageUtil.cc
  5727. * src/PeerMessageUtil.h
  5728. * test/BtRequestMessageTest.cc
  5729. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. * Release 0.16.1
  5731. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5733. * doc/aria2c.1.txt
  5734. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5736. Updated French, Simplified Chinese and Japanese translations.
  5737. Thanks to all translators.
  5738. en@quot and en@boldquot are also added.
  5739. * po/LINGUAS
  5740. * po/fr.po
  5741. * po/ja.po
  5742. * po/uk.po
  5743. * po/vi.po
  5744. * po/zh_CN.po
  5745. * po/zh_TW.po
  5746. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Bump up version number to 0.16.1.
  5748. * configure.ac
  5749. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Updated README.
  5751. * README
  5752. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5753. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5754. not to replace '--' with em dash character.
  5755. * doc/aria2c.1.txt
  5756. * doc/makeman
  5757. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5759. every SEC seconds.
  5760. * src/DownloadEngineFactory.cc
  5761. * src/OptionHandlerFactory.cc
  5762. * src/option_processing.cc
  5763. * src/usage_text.h
  5764. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Fixed compile warning on linux-amd64
  5766. * src/FtpConnection.cc
  5767. * src/IteratableChunkChecksumValidator.cc
  5768. * src/MultiDiskAdaptor.cc
  5769. Fixed the bug that unit test fails on linux-amd64
  5770. * test/UtilTest.cc
  5771. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5772. Added --dht-file-path option to change the path to dht.dat, which is a
  5773. serialized DHT routing table.
  5774. * src/OptionHandlerFactory.cc
  5775. * src/option_processing.cc
  5776. * src/usage_text.h
  5777. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Fixed possible underflow.
  5779. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5780. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Fixed the bug that last character in URI is not encoded.
  5782. * src/Request.cc
  5783. * test/RequestTest.cc
  5784. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Fixed the bug that referer header field contains fragment.
  5786. Now Request class removes fragment part of URI and encodes it
  5787. in Request::setUri() and setReferer().
  5788. * src/Request.h
  5789. * src/Request.cc
  5790. * test/RequestTest.cc
  5791. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Added missing m4 macros.
  5793. * m4/cppunit.m4
  5794. * m4/libgcrypt.m4
  5795. * m4/libgnutls-extra.m4
  5796. * m4/libgnutls.m4
  5797. * m4/libxml2.m4
  5798. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Fixed compile error with gcc-4.4(snapshot)
  5800. * src/File.cc
  5801. * src/FtpConnection.cc
  5802. * src/OptionHandlerImpl.h
  5803. * src/Util.cc
  5804. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Removed assert()
  5806. * src/SocketBuffer.cc (SocketBuffer::send)
  5807. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Changed the type of _numNewConnection to unsigned int.
  5809. * src/ActivePeerConnectionCommand.cc
  5810. * src/ActivePeerConnectionCommand.h
  5811. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. * Release 0.16.0
  5813. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Updated doc
  5815. * README
  5816. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5818. translations. Thanks to all translators.
  5819. * po/bg.po
  5820. * po/de.po
  5821. * po/fr.po
  5822. * po/ja.po
  5823. * po/zh_CN.po
  5824. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. Bump up version number to 0.16.0.
  5826. * configure.ac
  5827. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5829. int32_t.
  5830. Changed the type of count to int32_t.
  5831. * src/Metalink2RequestGroup.cc
  5832. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. Added test for Time::elapsed(time_t).
  5834. * test/TimeTest.cc
  5835. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5837. Util::difftv() should be used instead.
  5838. * src/TimeA2.cc
  5839. * src/TimeA2.h
  5840. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Made socket for dht connections non-blocking
  5842. * src/DHTAbstractMessage.cc
  5843. * src/DHTAbstractMessage.h
  5844. * src/DHTConnection.h
  5845. * src/DHTConnectionImpl.cc
  5846. * src/DHTConnectionImpl.h
  5847. * src/DHTMessage.h
  5848. * src/DHTMessageDispatcherImpl.cc
  5849. * src/DHTMessageDispatcherImpl.h
  5850. * src/DHTUnknownMessage.cc
  5851. * src/DHTUnknownMessage.h
  5852. * src/SocketCore.cc
  5853. * src/SocketCore.h
  5854. * test/MockDHTMessage.h
  5855. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Changed the type of offset to int.
  5857. * src/ParameterizedStringParser.cc
  5858. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Made getAsInt() return int32_t
  5860. * src/Option.h
  5861. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5863. build.
  5864. * configure.ac
  5865. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Use sqlite3_open if sqlite3_open_v2 is not available.
  5867. * src/Sqlite3MozCookieParser.cc
  5868. * src/Sqlite3MozCookieParser.h
  5869. * m4/sqlite3.m4
  5870. * test/Sqlite3MozCookieParserTest.cc
  5871. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5873. * src/BtPieceMessage.cc
  5874. * src/DHTPeerAnnounceStorage.cc
  5875. * src/DefaultPieceStorage.cc
  5876. * src/DownloadCommand.cc
  5877. * src/DownloadEngine.cc
  5878. * src/FtpConnection.cc
  5879. * src/PeerConnection.cc
  5880. * src/PeerMessageUtil.cc
  5881. * src/RequestGroup.cc
  5882. * src/RequestGroupMan.cc
  5883. * src/SimpleBtMessage.cc
  5884. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5886. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5887. * src/AbstractDiskWriter.cc
  5888. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Don't set Request::supportsPersistentConnection() in HttpConnection
  5890. since this code is also used in AbstractProxyResponseCommand.
  5891. Moved those code to HttpResponse.
  5892. * src/HttpResponse.cc
  5893. * src/HttpResponse.h
  5894. * src/HttpConnection.cc
  5895. * src/HttpConnection.h
  5896. * src/HttpResponseCommand.cc
  5897. * test/HttpResponseTest.cc
  5898. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5899. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5900. The configuration is minimum: no torrent, no metalink, so there may be
  5901. other compile error on their code.
  5902. * src/a2netcompat.h
  5903. * src/File.cc
  5904. * src/File.h
  5905. * src/SocketCore.cc
  5906. * src/SocketCore.h
  5907. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Made a socket of incoming peer non-blocking.
  5909. * src/PeerListenCommand.cc
  5910. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5912. whole message data is not sent in one send() call.
  5913. * src/BtPieceMessage.cc
  5914. * src/BtPieceMessage.h
  5915. * src/PeerConnection.cc
  5916. * src/PeerConnection.h
  5917. * src/SimpleBtMessage.cc
  5918. * src/SimpleBtMessage.h
  5919. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Fixed the bug that aria2 downloads faster than max-download-limit when
  5921. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5922. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5923. , instead of sum of them.
  5924. * src/ActivePeerConnectionCommand.cc
  5925. * src/DefaultBtInteractive.cc
  5926. * src/DownloadCommand.cc
  5927. * src/PeerInteractionCommand.cc
  5928. * src/PeerReceiveHandshakeCommand.cc
  5929. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Fixed the bug that HTTPS download fails.
  5931. * src/AbstractCommand.cc
  5932. * src/AbstractCommand.h
  5933. * src/DownloadCommand.cc
  5934. * src/FtpConnection.cc
  5935. * src/HttpConnection.cc
  5936. * src/HttpRequestCommand.cc
  5937. * src/HttpResponseCommand.cc
  5938. * src/HttpSkipResponseCommand.cc
  5939. * src/MSEHandshake.cc
  5940. * src/PeerConnection.cc
  5941. * src/SocketCore.cc
  5942. * src/SocketCore.h
  5943. Fixed the bug that aria2 doesn't download whole content body and cannot
  5944. reuse connection if chunked transfer encoding and gzip content encoding
  5945. are set.
  5946. * src/DownloadCommand.cc
  5947. * src/HttpSkipResponseCommand.cc
  5948. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Updated man page.
  5950. * doc/aria2c.1.txt
  5951. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. When error occurred while aria2 was parsing an .aria2.conf file, print
  5953. the usage of the option that caused error.
  5954. * src/option_processing.cc
  5955. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Fixed compile error on OptionHandlerException
  5957. * src/Makefile.am
  5958. * src/OptionHandlerException.cc
  5959. * src/OptionHandlerException.h
  5960. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Moved message of the error to OptionHandlerException.h
  5962. * src/NameMatchOptionHandler.h
  5963. * src/OptionHandlerException.h
  5964. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. When error occurs while aria2 is parsing an command-line option, print
  5966. the usage of the option.
  5967. * src/Makefile.am
  5968. * src/NameMatchOptionHandler.h
  5969. * src/OptionHandlerException.h
  5970. * src/option_processing.cc
  5971. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Reverted previous change.
  5973. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5974. username is not in URI.
  5975. * src/HttpRequest.cc
  5976. * src/Request.cc
  5977. * test/HttpRequestTest.cc
  5978. * test/RequestTest.cc
  5979. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Now colon is required for username and password in FTP URL, like:
  5981. ftp://username:password@host.
  5982. If colon is not there, aria2 don't parse it as a username. For example,
  5983. aria2 don't retrieve username from ftp://username@host.
  5984. This fix was made in order to login FTP server via non-transparent ftp
  5985. proxy.
  5986. * src/Request.cc
  5987. * test/RequestTest.cc
  5988. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Use netrc for HTTP.
  5990. Now FTP user/password is sent in Authorization header when
  5991. --ftp-via-http-proxy=get is given.
  5992. * src/AuthConfigFactory.cc
  5993. * src/HttpRequest.cc
  5994. * src/HttpRequest.h
  5995. * src/NetrcAuthResolver.cc
  5996. * src/NetrcAuthResolver.h
  5997. * src/OptionHandlerFactory.cc
  5998. * src/option_processing.cc
  5999. * src/prefs.cc
  6000. * src/prefs.h
  6001. * test/AuthConfigFactoryTest.cc
  6002. * test/HttpRequestTest.cc
  6003. * test/NetrcAuthResolverTest.cc
  6004. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Issue PWD command first and get working directory and use it as a prefix
  6006. for CWD command.
  6007. * src/DownloadEngine.cc
  6008. * src/DownloadEngine.h
  6009. * src/FtpConnection.cc
  6010. * src/FtpConnection.h
  6011. * src/FtpFinishDownloadCommand.cc
  6012. * src/FtpInitiateConnectionCommand.cc
  6013. * src/FtpNegotiationCommand.cc
  6014. * src/FtpNegotiationCommand.h
  6015. * test/FtpConnectionTest.cc
  6016. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Removed default user/pass for FTP user/pass, since it should not have
  6018. precedence over netrc configuration by default.
  6019. * src/OptionHandlerFactory.cc
  6020. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Added debug log for socket event.
  6022. * src/AbstractCommand.cc
  6023. * src/PeerAbstractCommand.cc
  6024. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Log microseconds.
  6026. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6027. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Replaced HelpItem.cc with OptionHandler.cc.
  6029. * po/POTFILES.in
  6030. Updated po files with 'make update-po'
  6031. * po/aria2c.pot
  6032. * po/*.po
  6033. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Removed possible values from the text.
  6035. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6036. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Removed unused preferences:
  6038. PREF_NO_PREALLOCATION
  6039. PREF_STDOUT_LOG
  6040. PREF_TRACKER_MAX_TRIES
  6041. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6042. PREF_MIN_SEGMENT_SIZE
  6043. * src/option_processing.cc
  6044. * src/prefs.cc
  6045. * src/prefs.h
  6046. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Integrated HelpItem into OptionParser to ease the workload for adding
  6048. new options. Removed default value from usage text.
  6049. * src/HelpItem.cc: Removed.
  6050. * src/HelpItem.h: Removed.
  6051. * src/HelpItemFactory.cc: Removed.
  6052. * src/HelpItemFactory.h: Removed.
  6053. * src/Makefile.am
  6054. * src/Makefile.in
  6055. * src/NameMatchOptionHandler.h
  6056. * src/OptionHandler.cc
  6057. * src/OptionHandler.h
  6058. * src/OptionHandlerFactory.cc
  6059. * src/OptionHandlerImpl.h
  6060. * src/OptionParser.cc
  6061. * src/OptionParser.h
  6062. * src/TagContainer.cc: Removed.
  6063. * src/TagContainer.h: Removed.
  6064. * src/TaggedItem.cc: Removed.
  6065. * src/TaggedItem.h: Removed.
  6066. * src/main.cc
  6067. * src/option_processing.cc
  6068. * src/usage_text.h
  6069. * src/version_usage.cc
  6070. * test/HelpItemTest.cc: Removed.
  6071. * test/Makefile.am
  6072. * test/Makefile.in
  6073. * test/OptionHandlerTest.cc
  6074. * test/OptionParserTest.cc
  6075. * test/TagContainerTest.cc: Removed.
  6076. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Moved `TransferStat stat = ...' to inside the `if' clause.
  6078. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6079. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Fixed the bug that a block in a piece is requested when same block is
  6081. already requested to the same peer in end game mode.
  6082. * src/BtRequestFactory.h
  6083. * src/DefaultBtInteractive.cc
  6084. * src/DefaultBtRequestFactory.cc
  6085. * src/DefaultBtRequestFactory.h
  6086. * src/DefaultPieceStorage.cc
  6087. * src/DefaultPieceStorage.h
  6088. * src/PieceStorage.h
  6089. * src/UnknownLengthPieceStorage.cc
  6090. * src/UnknownLengthPieceStorage.h
  6091. * test/DefaultBtRequestFactoryTest.cc
  6092. * test/DefaultPieceStorageTest.cc
  6093. * test/MockBtRequestFactory.h
  6094. * test/MockPieceStorage.h
  6095. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Removed _uploadLength and _downloadLength from PeerSessionResource
  6097. and use PeerStat::_sessionUploadLength and
  6098. PeerStat::_sessionDownloadLength.
  6099. * src/PeerSessionResource.cc
  6100. * src/PeerSessionResource.h
  6101. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Fixed the bug that prefixLength of split bucket which doesn't include
  6103. local node ID is incremented.
  6104. * src/DHTBucket.cc
  6105. * src/DHTBucket.h
  6106. * test/DHTBucketTest.cc
  6107. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Added cookies.sqlite to EXTRA_DIST
  6109. * test/Makefile.am
  6110. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Added Turkish translation. Updated French, German, Russian and
  6112. Simplified Chinese translations. Thanks to all translators.
  6113. * po/LINGUAS
  6114. * po/de.po
  6115. * po/fr.po
  6116. * po/ru.po
  6117. * po/tr.po
  6118. * po/zh_CN.po
  6119. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Added deliminating text to the beginning of the log so that one can find
  6121. where the log starts easily.
  6122. * src/main.cc
  6123. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6125. to fix compile error when async DNS is not enabled by configuration.
  6126. * src/AbstractCommand.cc
  6127. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. If establishing conneciton to a server is failed, then mark error on
  6129. its ServerStat.
  6130. Added the cause of error to log when error event occurred.
  6131. Moved message string to message.h for translation.
  6132. * src/AbstractCommand.cc
  6133. * src/AbstractCommand.h
  6134. * src/FtpNegotiationCommand.cc
  6135. * src/HttpRequestCommand.cc
  6136. * src/PeerAbstractCommand.cc
  6137. * src/message.h
  6138. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Added the function to get error message from socket.
  6140. * src/SocketCore.cc
  6141. * src/SocketCore.h
  6142. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6144. * src/RequestGroupMan.cc
  6145. * src/RequestGroupMan.h
  6146. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. If error event is received in epoll, then abort download immediately.
  6148. * src/AbstractCommand.cc
  6149. * src/Command.cc
  6150. * src/Command.h
  6151. * src/DownloadEngine.cc
  6152. * src/PeerAbstractCommand.cc
  6153. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Added usage message for --uri-selector, --server-stat-of,
  6155. --server-stat-in, --server-stat-timeout options.
  6156. * src/HelpItemFactory.cc
  6157. * src/usage_text.h
  6158. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Added upper limit of FTP response buffer. The current implementation
  6160. uses 4096bytes as a limit.
  6161. * src/FtpConnection.cc
  6162. * src/FtpConnection.h
  6163. * test/FtpConnectionTest.cc
  6164. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Use non-blocking socket for TCP communication to avoid possible
  6166. blocking due to buffer full.
  6167. * src/AbstractProxyRequestCommand.cc
  6168. * src/FtpConnection.cc
  6169. * src/FtpConnection.h
  6170. * src/FtpNegotiationCommand.cc
  6171. * src/FtpNegotiationCommand.h
  6172. * src/HttpConnection.cc
  6173. * src/HttpConnection.h
  6174. * src/HttpRequestCommand.cc
  6175. * src/InitiatorMSEHandshakeCommand.cc
  6176. * src/InitiatorMSEHandshakeCommand.h
  6177. * src/MSEHandshake.cc
  6178. * src/MSEHandshake.h
  6179. * src/Makefile.am
  6180. * src/PeerConnection.cc
  6181. * src/PeerConnection.h
  6182. * src/PeerInteractionCommand.cc
  6183. * src/PeerListenCommand.cc
  6184. * src/ReceiverMSEHandshakeCommand.cc
  6185. * src/ReceiverMSEHandshakeCommand.h
  6186. * src/SocketBuffer.cc
  6187. * src/SocketBuffer.h
  6188. * src/SocketCore.cc
  6189. * src/SocketCore.h
  6190. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Call setStatusRealtime() in constructor.
  6192. * src/RealtimeCommand.cc
  6193. * src/RealtimeCommand.h
  6194. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Call Download::setNoWait(true) to execute newly created command without
  6196. a pause.
  6197. * src/AbstractCommand.cc
  6198. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6199. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6200. found' error from HTTP/FTP server NUM times without getting single
  6201. bytes of data, then force the download to fail.
  6202. Basically aria2 tris all URIs available. So if long list of URIs are
  6203. specified in Metalink, then aria2 will take a long time to fail
  6204. eventually if all URIs are outdated. This option eases this situation
  6205. to limit the number of servers to try.
  6206. * src/FtpNegotiationCommand.cc
  6207. * src/HelpItemFactory.cc
  6208. * src/HttpResponseCommand.cc
  6209. * src/OptionHandlerFactory.cc
  6210. * src/PeerStat.h
  6211. * src/RequestGroup.cc
  6212. * src/RequestGroup.h
  6213. * src/SegmentMan.cc
  6214. * src/SegmentMan.h
  6215. * src/option_processing.cc
  6216. * src/prefs.cc
  6217. * src/prefs.h
  6218. * src/usage_text.h
  6219. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6221. response even if more than one response is in it.
  6222. * src/FtpConnection.cc
  6223. * src/FtpConnection.h
  6224. * test/FtpConnectionTest.cc
  6225. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Merged from stable-0.15
  6227. * m4/libcares.m4
  6228. Use pkg-config
  6229. * m4/sqlite3.m4
  6230. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Removed unnecessary if statement.
  6232. * src/DefaultPieceStorage.cc (initPieceStorage)
  6233. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Added --connect-timeout option to specify connect timeout in seconds.
  6235. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6236. connecting to BitTorrent peer is not controlled by this option.
  6237. * src/AbstractProxyRequestCommand.cc
  6238. * src/FtpNegotiationCommand.cc
  6239. * src/HelpItemFactory.cc
  6240. * src/HttpRequestCommand.cc
  6241. * src/OptionHandlerFactory.cc
  6242. * src/option_processing.cc
  6243. * src/prefs.cc
  6244. * src/prefs.h
  6245. * src/usage_text.h
  6246. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Added help message for -R option.
  6248. * src/HelpItemFactory.cc
  6249. * src/usage_text.h
  6250. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Added the message that the time is in local time zone.
  6252. * src/RequestGroup.cc
  6253. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Implemented the ability to get timestamp from remote FTP server using
  6255. MDTM command described in RFC3659.
  6256. * src/FtpConnection.cc
  6257. * src/FtpConnection.h
  6258. * src/FtpNegotiationCommand.cc
  6259. * src/FtpNegotiationCommand.h
  6260. * test/FtpConnectionTest.cc
  6261. * test/Makefile.am
  6262. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Implemented the ability to get timestamp from remote HTTP server and
  6264. apply it to local file. To enable this feature, --remote-time option
  6265. is added. No usage text has been written yet.
  6266. If several servers returns difference timestamp, then aria2 uses latest
  6267. one.
  6268. * src/CopyDiskAdaptor.cc
  6269. * src/CopyDiskAdaptor.h
  6270. * src/DirectDiskAdaptor.cc
  6271. * src/DirectDiskAdaptor.h
  6272. * src/DiskAdaptor.h
  6273. * src/File.cc
  6274. * src/File.h
  6275. * src/HttpHeader.cc
  6276. * src/HttpHeader.h
  6277. * src/HttpResponse.cc
  6278. * src/HttpResponse.h
  6279. * src/HttpResponseCommand.cc
  6280. * src/HttpResponseCommand.h
  6281. * src/MultiDiskAdaptor.cc
  6282. * src/MultiDiskAdaptor.h
  6283. * src/OptionHandlerFactory.cc
  6284. * src/RequestGroup.cc
  6285. * src/RequestGroup.h
  6286. * src/RequestGroupMan.cc
  6287. * src/option_processing.cc
  6288. * src/prefs.cc
  6289. * src/prefs.h
  6290. * test/CopyDiskAdaptorTest.cc
  6291. * test/FileTest.cc
  6292. * test/Makefile.am
  6293. * test/Makefile.in
  6294. * test/MultiDiskAdaptorTest.cc
  6295. * test/TestUtil.cc
  6296. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Fixed the bug that DiskWriterEntry is not created when its
  6298. FileEntry.isRequested() is false and it doesn't share a piece with
  6299. other FileEntries that are requested. This bug causes segmentation fault
  6300. in the end.
  6301. * src/MultiDiskAdaptor.cc
  6302. * src/MultiDiskAdaptor.h
  6303. * src/MultiFileAllocationIterator.cc
  6304. * test/MultiDiskAdaptorTest.cc
  6305. * test/MultiFileAllocationIteratorTest.cc
  6306. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6307. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6308. called if the number of file entries are greater than max open files.
  6309. * src/AbstractSingleDiskAdaptor.cc
  6310. * src/AbstractSingleDiskAdaptor.h
  6311. * src/DiskAdaptor.h
  6312. * src/MultiDiskAdaptor.cc
  6313. * src/MultiDiskAdaptor.h
  6314. * test/MultiDiskAdaptorTest.cc
  6315. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Added a constuctor that receives struct timeval.
  6317. Added operator<.
  6318. * src/TimeA2.cc
  6319. * src/TimeA2.h
  6320. * test/TimeTest.cc
  6321. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6323. * src/CookieParser.cc
  6324. * test/CookieParserTest.cc
  6325. * test/HttpResponseTest.cc
  6326. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Implmented the functions to parse date.
  6328. * src/TimeA2.cc
  6329. * src/TimeA2.h
  6330. * test/TimeTest.cc
  6331. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Added "Firefox3 Cookie" feature to FeatureConfig
  6333. * src/FeatureConfig.cc
  6334. * src/FeatureConfig.h
  6335. * test/FeatureConfigTest.cc
  6336. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Bump up version number to 0.16.0b
  6338. * configure.ac
  6339. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Use pkg-config if is is available.
  6341. * m4/openssl.m4
  6342. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6344. * src/BtAnnounce.h
  6345. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. If an error occurred with a URI, remove identical URI from remaining
  6347. URI list because it is likely that same error occurred in the end and it
  6348. is waste of time.
  6349. * src/AbstractCommand.cc
  6350. * src/RequestGroup.cc
  6351. * src/RequestGroup.h
  6352. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Removed wrong comment.
  6354. * src/DefaultPeerStorage.cc
  6355. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6357. Added return value of getpid() to argument of srand() to achieve more
  6358. randomized value.
  6359. * src/SimpleRandomizer.cc
  6360. * src/SimpleRandomizer.h
  6361. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Contact tracker frequently when the number of connections are 0 and
  6363. download is not finished yet.
  6364. * src/ActivePeerConnectionCommand.cc
  6365. * src/BtAnnounce.h
  6366. * src/DefaultBtAnnounce.cc
  6367. * src/DefaultBtAnnounce.h
  6368. * test/MockBtAnnounce.h
  6369. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Moved threshold values to UTPexExtensionMessage.
  6371. * src/DefaultBtInteractive.cc
  6372. * src/Peer.cc
  6373. * src/Peer.h
  6374. * src/UTPexExtensionMessage.cc
  6375. * src/UTPexExtensionMessage.h
  6376. * test/UTPexExtensionMessageTest.cc
  6377. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Added _incoming member to Peer class and made it true if the peer
  6379. initiated connection. Don't add those peer to UTPex message.
  6380. If extended handshake is received, assign _incoming to false.
  6381. * src/DefaultBtInteractive.cc
  6382. * src/HandshakeExtensionMessage.cc
  6383. * src/Peer.cc
  6384. * src/Peer.h
  6385. * src/PeerListenCommand.cc
  6386. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6388. Encoding Decoder. Removed size threshold for turning off on the fly
  6389. inflation because resulting file may or may not be inflated depending
  6390. on the file size and I think it is not expected by users.
  6391. This change fixes segmentation fault when Metalink file contains gzipped
  6392. file and its filesize is provided.
  6393. * src/HttpResponseCommand.cc
  6394. * src/HttpResponseCommand.h
  6395. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Made Cookie immutable.
  6397. * src/Cookie.cc
  6398. * src/Cookie.h
  6399. * src/CookieParser.cc
  6400. * src/CookieParser.h
  6401. * src/CookieStorage.cc
  6402. * test/CookieParserTest.cc
  6403. * test/CookieStorageTest.cc
  6404. * test/NsCookieParserTest.cc
  6405. * test/Sqlite3MozCookieParserTest.cc
  6406. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Removed CookieBox, CookieBoxFactory.
  6408. * src/CookieBox.cc
  6409. * src/CookieBox.h
  6410. * src/CookieBoxFactory.cc
  6411. * src/CookieBoxFactory.h
  6412. * src/Makefile.am
  6413. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Use CookieStorage class instead of CookieBox class.
  6415. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6416. * src/AbstractProxyRequestCommand.cc
  6417. * src/CookieStorage.cc
  6418. * src/DownloadEngine.cc
  6419. * src/DownloadEngine.h
  6420. * src/HttpConnection.cc
  6421. * src/HttpConnection.h
  6422. * src/HttpRequest.cc
  6423. * src/HttpRequest.h
  6424. * src/HttpRequestCommand.cc
  6425. * src/HttpResponse.cc
  6426. * src/HttpResponseCommand.cc
  6427. * src/HttpSkipResponseCommand.cc
  6428. * src/Makefile.am
  6429. * src/MultiUrlRequestInfo.cc
  6430. * src/Request.cc
  6431. * src/Request.h
  6432. * src/main.cc
  6433. * test/AllTest.cc
  6434. * test/CookieStorageTest.cc
  6435. * test/CookieTest.cc
  6436. * test/HttpRequestTest.cc
  6437. * test/HttpResponseTest.cc
  6438. * test/Makefile.am
  6439. * test/NsCookieParserTest.cc
  6440. * test/Sqlite3MozCookieParserTest.cc
  6441. * test/nscookietest.txt
  6442. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Updated
  6444. * test/Cookies.sqlite
  6445. * test/nscookietest.txt
  6446. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Added tests for CookieStorage::load()
  6448. * test/CookieStorageTest.cc
  6449. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Added CookieStorage class which is based on RFC2109 and manages cookies
  6451. more strictly than CookieBox and CookieBoxFactory class.
  6452. * src/CookieStorage.cc
  6453. * src/CookieStorage.h
  6454. * src/Cookie.cc
  6455. * src/Cookie.h
  6456. * test/CookieStorageTest.cc
  6457. * test/CookieTest.cc
  6458. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Fixed the bug that commands are created more than the number of pieces.
  6460. * src/RequestGroup.cc
  6461. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Fixed infinite loop bug in FTP when SIZE command failed.
  6463. * src/FtpNegotiationCommand.cc
  6464. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Removed DirectDiskAdaptorTest.h
  6466. * test/Makefile.am
  6467. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Fixed chunk checksum validation cannot detect trailing garbage data.
  6469. BUG#2074141
  6470. * src/AbstractSingleDiskAdaptor.cc
  6471. * src/AbstractSingleDiskAdaptor.h
  6472. * src/CheckIntegrityEntry.cc
  6473. * src/CheckIntegrityEntry.h
  6474. * src/DiskAdaptor.h
  6475. * src/MultiDiskAdaptor.cc
  6476. * src/MultiDiskAdaptor.h
  6477. * src/RequestGroup.cc
  6478. * test/DirectDiskAdaptorTest.cc
  6479. * test/MultiDiskAdaptorTest.cc
  6480. * test/TestUtil.cc
  6481. * test/TestUtil.h
  6482. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Bump up version number of dht.dat file to 3. In version 3 format, time
  6484. is stored in 64bit, network byte order.
  6485. New build can load old format(version 2) but it saves the file in new
  6486. format. It means once you used new build, your dht.dat becomes
  6487. incompatible with older build.
  6488. * src/DHTRoutingTableDeserializer.cc
  6489. * src/DHTRoutingTableSerializer.cc
  6490. * test/DHTRoutingTableSerializerTest.cc
  6491. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6493. * test/Makefile.am
  6494. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Bump up version number of .aria2 control file to 0001.
  6496. New aria2 can still load version 0000 file but it saves the file in
  6497. version 0001 format. It means that new aria2 can resume download
  6498. started by old aria2 but the opposite is not true.
  6499. * src/DefaultBtProgressInfoFile.cc
  6500. * src/DefaultBtProgressInfoFile.h
  6501. * test/DefaultBtProgressInfoFileTest.cc
  6502. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Added ntoh64 and hton64 as inline functions.
  6504. * src/Util.cc
  6505. * test/UtilTest.cc
  6506. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. Added sqlite3 depenency and Firefox3 cookie support.
  6508. * README
  6509. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. State that firefox3 cookie is supported explicitly in the usage.
  6511. * src/usage_text.h
  6512. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Externalized message.
  6514. * src/RequestGroupMan.cc
  6515. * src/message.h
  6516. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Save temporary file first and rename to the destination on success.
  6518. Added test cases.
  6519. * src/RequestGroupMan.cc
  6520. * test/RequestGroupManTest.cc
  6521. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Fixed the bug that the number of connected peer is exceeding the limit
  6523. (55 by default) in seeding mode.
  6524. Multiplied 0.8 to _maxUploadSpeedLimit.
  6525. * src/ActivePeerConnectionCommand.cc
  6526. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Clear table item.
  6528. * src/Dictionary.cc
  6529. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Fixed error handling of lseek.
  6531. * src/AbstractDiskWriter.cc
  6532. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6534. style cookie file.
  6535. * src/usage_text.h
  6536. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6538. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6539. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6540. * src/Util.cc
  6541. * src/Util.h
  6542. * src/CookieParser.cc
  6543. * test/UtilTest.cc
  6544. * test/CookieParserTest.cc
  6545. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Separate the implementation to load old mozilla format of cookie to
  6547. NsCookieParser class.
  6548. * src/CookieBoxFactory.cc
  6549. * src/CookieBoxFactory.h
  6550. * src/NsCookieParser.cc
  6551. * src/NsCookieParser.h
  6552. * test/NsCookieParserTest.cc
  6553. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Made parse() const
  6555. * src/Sqlite3MozCookieParser.cc
  6556. * src/Sqlite3MozCookieParser.h
  6557. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Added firefox3 cookie support based on the patch submitted by
  6559. tizianomueller.
  6560. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6561. this functionality.
  6562. * configure.ac
  6563. * m4/sqlite3.m4
  6564. * src/CookieBoxFactory.cc
  6565. * src/CookieBoxFactory.h
  6566. * src/Makefile.am
  6567. * src/Makefile.in
  6568. * src/Sqlite3MozCookieParser.cc
  6569. * src/Sqlite3MozCookieParser.h
  6570. * src/main.cc
  6571. * test/CookieBoxFactoryTest.cc
  6572. * test/Makefile.am
  6573. * test/Makefile.in
  6574. * test/Sqlite3MozCookieParserTest.cc
  6575. * test/badcookies.sqlite
  6576. * test/cookies.sqlite
  6577. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Added Danish and Greek translations.
  6579. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6580. Great thanks to all translators.
  6581. * po/LINGUAS
  6582. * po/el.po
  6583. * po/da.po
  6584. * po/es.po
  6585. * po/ca.po
  6586. * po/nn.po
  6587. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Fixed man page: --follow-bittorrent should be --follow-torrent
  6589. * doc/aria2c.1.txt
  6590. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Fixed: numCommand is less than the value specified in -C option.
  6592. * src/RequestGroup.cc
  6593. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Fixed occasional assertion failure in PieceSegment.
  6595. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6596. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6597. creation of duplicate segments and one of the segment was finished then
  6598. assertion failure was caused.
  6599. * src/SegmentMan.cc
  6600. * test/SegmentManTest.cc
  6601. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Added options to load/save the server's performance/status to a file
  6603. and the timeout to drop their data.
  6604. --server-stat-of=FILE specifies the file to which performance data
  6605. is saved.
  6606. --server-stat-if=FILE specifies the file to read previously saved
  6607. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6608. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6609. TIMEOUT is specified in seconds and the default value is 24hours.
  6610. * src/MultiUrlRequestInfo.cc
  6611. * src/OptionHandlerFactory.cc
  6612. * src/RequestGroupMan.cc
  6613. * src/RequestGroupMan.h
  6614. * src/ServerStatMan.cc
  6615. * src/ServerStatMan.h
  6616. * src/option_processing.cc
  6617. * src/prefs.cc
  6618. * src/prefs.h
  6619. * test/ServerStatManTest.cc
  6620. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6622. * src/ServerStatMan.cc
  6623. * src/ServerStatMan.h
  6624. * test/ServerStatManTest.cc
  6625. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Implemented ServerStatMan::load(...) function and its test case.
  6627. * src/ServerStat.cc
  6628. * src/ServerStat.h
  6629. * src/ServerStatMan.cc
  6630. * test/ServerStatManTest.cc
  6631. * test/ServerStatTest.cc
  6632. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Use time_t instead of int32_t. Use int64_t where milli second is
  6634. expected.
  6635. * src/TimeA2.cc
  6636. * src/TimeA2.h
  6637. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Implemented ServerStatMan::save(...) function and its test case.
  6639. * src/ServerStat.cc
  6640. * src/ServerStat.h
  6641. * src/ServerStatMan.cc
  6642. * src/ServerStatMan.h
  6643. * test/ServerStatManTest.cc
  6644. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Now aria2 uses name attribute in Metalink as local filename in
  6646. BitTorrent downloads. BUG#2033999
  6647. * src/BtContext.h
  6648. * src/BtDependency.cc
  6649. * src/DefaultBtContext.cc
  6650. * src/DefaultBtContext.h
  6651. * src/SingleFileDownloadContext.cc
  6652. * src/SingleFileDownloadContext.h
  6653. * test/BtDependencyTest.cc
  6654. * test/DefaultBtContextTest.cc
  6655. * test/MockBtContext.h
  6656. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Added AC_C_BIGENDIAN
  6658. * src/configure.ac
  6659. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Limited numCommand less than or equal to the number of piece.
  6661. * src/RequestGroup.cc
  6662. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6664. directive.
  6665. * test/DefaultPieceStorageTest.cc
  6666. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Fixed memory leak in test code
  6668. * test/AnnounceListTest.cc
  6669. * test/DefaultPeerListProcessorTest.cc
  6670. * test/DefaultPeerStorageTest.cc
  6671. * test/MetaFileUtilTest.cc
  6672. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6674. * src/DefaultPieceStorage.cc
  6675. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Initialized _directIOAllowed
  6677. * src/MultiDiskAdaptor.cc
  6678. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Fixed memory leak
  6680. * src/GZipDecoder.cc
  6681. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Fixed memory leak
  6683. * src/MetalinkParserStateMachine.cc
  6684. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Fixed memory leak
  6686. * src/Dictionary.cc
  6687. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6688. Fixed memory leak
  6689. * src/IteratableChunkChecksumValidator.h
  6690. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Fixed unmatched malloc/free.
  6692. * src/IteratableChunkChecksumValidator.cc
  6693. * src/IteratableChecksumValidator.cc
  6694. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Removed max chunk size check. This change fixes BUG#2040169
  6696. * src/ChunkedDecoder.cc
  6697. * src/ChunkedDecoder.h
  6698. * test/ChunkedDecoderTest.cc
  6699. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Implemented download speed based URI selection algorithm.
  6701. Introduced new option --uri-selector.
  6702. If --uri-selector=feedback is given, aria2 uses download speed observed
  6703. in the previous downloads and chooses fastest server in the URI list.
  6704. Currently at most 10 URIs are considered to introduce randomeness for
  6705. finding better servers. The speed is average download speed in the
  6706. downloads.
  6707. On the other hand, if --uri-selector=inorder is given, which is default,
  6708. URI is tried in order in URI list.
  6709. The usage text for the new option has not been written yet.
  6710. * src/AbstractCommand.cc
  6711. * src/DownloadCommand.cc
  6712. * src/DownloadEngine.cc
  6713. * src/DownloadEngineFactory.cc
  6714. * src/InOrderURISelector.cc
  6715. * src/InOrderURISelector.h
  6716. * src/OptionHandlerFactory.cc
  6717. * src/PeerStat.h
  6718. * src/RequestGroup.cc
  6719. * src/RequestGroup.h
  6720. * src/RequestGroupMan.cc
  6721. * src/RequestGroupMan.h
  6722. * src/SegmentMan.cc
  6723. * src/SegmentMan.h
  6724. * src/ServerStat.cc
  6725. * src/ServerStat.h
  6726. * src/ServerStatMan.cc
  6727. * src/ServerStatMan.h
  6728. * src/ServerStatURISelector.cc
  6729. * src/ServerStatURISelector.h
  6730. * src/URISelector.h
  6731. * src/option_processing.cc
  6732. * src/prefs.cc
  6733. * src/prefs.h
  6734. * test/InOrderURISelectorTest.cc
  6735. * test/RequestGroupManTest.cc
  6736. * test/ServerStatManTest.cc
  6737. * test/ServerStatURISelectorTest.cc
  6738. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. * Release 0.15.1+2
  6740. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Bump up version number to 0.15.1+2
  6742. * configure.ac
  6743. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6745. * m4/aria2_arg.m4
  6746. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. * Release 0.15.1+1
  6748. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Bump up version number to 0.15.1+1
  6750. * configure.ac
  6751. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Fixed the bug that causes segmentaion fault when resuming download
  6753. using metalink without size tag. Reproducible only using HTTP URI.
  6754. * src/HttpResponseCommand.cc
  6755. * src/FtpNegotiationCommand.cc
  6756. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. * Release 0.15.1
  6758. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Updated Bulgarian and French translations, thanks to all translators.
  6760. * po/bg.po
  6761. * po/fr.po
  6762. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Bump up version number to 0.15.1
  6764. * configure.ac
  6765. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Avoid repeated call of gettimeofday() when calculating speed.
  6767. * src/SpeedCalc.cc
  6768. * src/SpeedCalc.h
  6769. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Removed writable check when socket's send buffer is full in BitTorrent
  6771. downloads to lower CPU usage.
  6772. * src/PeerInteractionCommand.cc
  6773. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Fixed broken gzip inflation.
  6775. Turn off segmented downloading if gzip content is smaller than or equal
  6776. to 1MiB and inflate the data on the fly, because HTTP response header
  6777. doesn't contain the length of inflated file we can't determin where
  6778. the chunk of data should be written.
  6779. On the other hand, if gzip content is larger than 1MB, then turn off
  6780. on the fly inflation, because some servers returns "content-type: gzip"
  6781. for *.tgz, *.gz files.
  6782. * src/DownloadCommand.cc
  6783. * src/HttpResponseCommand.cc
  6784. * src/HttpResponseCommand.h
  6785. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Applied tizianomueller's patch to fix compile error.
  6787. * test/BitfieldManTest.cc
  6788. * test/BtRequestMessageTest.cc
  6789. * test/DefaultBtContextTest.cc
  6790. * test/DefaultDiskWriterTest.cc
  6791. * test/DefaultPieceStorageTest.cc
  6792. * test/HttpHeaderProcessorTest.cc
  6793. * test/HttpResponseTest.cc
  6794. * test/Metalink2RequestGroupTest.cc
  6795. * test/MetalinkParserControllerTest.cc
  6796. * test/MetalinkProcessorTest.cc
  6797. * test/PeerSessionResourceTest.cc
  6798. * test/UtilTest.cc
  6799. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. * Release 0.15.0
  6801. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Reordered src files in POTFILES.in so that usage text appears first.
  6803. * po/POTFILES.in
  6804. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Bump up version number to 0.15.0
  6806. * configure.ac
  6807. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Added Bulgarian translation.
  6809. Updated Catalan, Spanish, French and Japanese translations.
  6810. Thanks to all translators.
  6811. * po/LINGUAS
  6812. * po/bg.po
  6813. * po/ca.po
  6814. * po/es.po
  6815. * po/fr.po
  6816. * po/ja.po
  6817. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Updated feature list. Added libz for dependency section.
  6819. Added a description about unit testing using CppUnit.
  6820. * README
  6821. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Added a test for libz. Quoted where it is necessary.
  6823. * build_test.sh
  6824. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Added GZip to `Enabled Features' list.
  6826. * src/FeatureConfig.cc
  6827. * src/FeatureConfig.h
  6828. * test/FeatureConfigTest.cc
  6829. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6831. the transfer has not yet started.
  6832. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6833. * src/SegmentMan.cc
  6834. * src/SegmentMan.h
  6835. * test/SegmentManTest.cc
  6836. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Cache last calculated average download/upload speed.
  6838. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6839. cached value.
  6840. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6841. * src/PeerStat.h
  6842. * src/SpeedCalc.cc
  6843. * src/SpeedCalc.h
  6844. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Call parseUrl directly.
  6846. * src/Request.cc (resetUrl)
  6847. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Supported absolute/relative path in Location header field.
  6849. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6850. * src/HttpHeader.cc
  6851. * src/HttpHeader.h
  6852. * src/HttpResponse.cc
  6853. * src/HttpSkipResponseCommand.cc
  6854. * src/Request.cc
  6855. * test/HttpHeaderTest.cc
  6856. * test/HttpResponseTest.cc
  6857. * test/RequestTest.cc
  6858. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Changed help text for --load-cookie option.
  6860. * doc/aria2c.1.txt
  6861. * src/usage_text.h
  6862. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Regenerated test/Makefile.in to remove stale ChangeLog.
  6864. * test/Makefile.in
  6865. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Updated po files.
  6867. * po/aria2c.pot
  6868. * po/*.po
  6869. * po/*.gmo
  6870. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Bump up version number to 0.15.0b
  6872. * configure.ac
  6873. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Externalize messages.
  6875. * src/RequestGroupMan.cc
  6876. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6877. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Use File::exists() instead of File::isFile() to allow non-regular file
  6879. such as block special files.
  6880. * src/AbstractDiskWriter.cc
  6881. * src/MultiDiskWriter.cc
  6882. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6883. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6884. * src/gai_strerror.h
  6885. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Fixed compile error. Thanks gknauf for the patch.
  6887. * src/asctime_r.c
  6888. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Included asctime_r.h from a2time.h.
  6890. * src/a2time.h
  6891. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Added a message "aria2 doesn't verify signature" to log message when
  6893. signature file is saved.
  6894. * src/RequestGroupMan.cc
  6895. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Added the ability to save signature when download is completed if
  6897. signature is available. The filename of signature file is the path to
  6898. download file followed by ".sig". If it already exists, then signature
  6899. will not be saved.
  6900. * src/RequestGroupMan.cc
  6901. * src/Signature.cc
  6902. * test/SignatureTest.cc
  6903. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Updated the descriptions for --bt-seed-unverified.
  6905. * doc/aria2c.1
  6906. * doc/aria2c.1.html
  6907. * doc/aria2c.1.txt
  6908. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6910. that this is not going to verify files using piece hashes.
  6911. * src/HelpItemFactory.cc
  6912. * src/OptionHandlerFactory.cc
  6913. * src/RequestGroup.cc
  6914. * src/option_processing.cc
  6915. * src/prefs.cc
  6916. * src/prefs.h
  6917. * src/usage_text.h
  6918. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Added the ability to retrieve signature from Metalink file.
  6920. A retrieved signature is stored in Signature class and it is held by
  6921. DownloadContext class. Note that aria2 doesn't verify signature.
  6922. * src/DownloadContext.cc
  6923. * src/DownloadContext.h
  6924. * src/Makefile.am
  6925. * src/Makefile.in
  6926. * src/Metalink2RequestGroup.cc
  6927. * src/MetalinkEntry.cc
  6928. * src/MetalinkEntry.h
  6929. * src/MetalinkParserController.cc
  6930. * src/MetalinkParserController.h
  6931. * src/MetalinkParserStateMachine.cc
  6932. * src/MetalinkParserStateMachine.h
  6933. * src/Signature.cc
  6934. * src/Signature.h
  6935. * src/SignatureMetalinkParserState.cc
  6936. * src/SignatureMetalinkParserState.h
  6937. * src/VerificationMetalinkParserState.cc
  6938. * src/VerificationMetalinkParserState.h
  6939. * test/Metalink2RequestGroupTest.cc
  6940. * test/MetalinkParserControllerTest.cc
  6941. * test/MetalinkProcessorTest.cc
  6942. * test/test.xml
  6943. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Close DiskAdaptor after renaming file.
  6945. * src/RequestGroup.cc
  6946. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Corrected indentation
  6948. * src/DefaultBtProgressInfoFile.cc
  6949. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Moved the calls of std::ios::exceptions() inside of try-catch block
  6951. because if an error occurred in constructor of std::fstream, then
  6952. exception is thrown immediately when std::ios::exceptions() is called
  6953. which results unhandled exception and aria2c aborts.
  6954. * src/DefaultBtProgressInfoFile.cc
  6955. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Added the test for the previous change in DefaultBtContext.cc
  6957. * test/DefaultBtContextTest.cc
  6958. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Fixed the bug that causes infinite loop when the number of pieces are
  6960. fewer than allowed fast set size which is 10 by default.
  6961. * src/DefaultBtContext.cc
  6962. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Updated the descriptions for -j, -s. Added --bt-seed.
  6964. * doc/aria2c.1
  6965. * doc/aria2c.1.html
  6966. * doc/aria2c.1.txt
  6967. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6969. aria2 seeds previously downloaded files without validating piece hashs.
  6970. * src/HelpItemFactory.cc
  6971. * src/OptionHandlerFactory.cc
  6972. * src/RequestGroup.cc
  6973. * src/option_processing.cc
  6974. * src/prefs.cc
  6975. * src/prefs.h
  6976. * src/usage_text.h
  6977. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Updated DESCRIPTION of man page.
  6979. * doc/aria2c.1
  6980. * doc/aria2c.1.html
  6981. * doc/aria2c.1.txt
  6982. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6984. Don't define `struct addrinfo' when __sun is defined.
  6985. * src/getaddrinfo.h
  6986. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6988. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6989. second argument is of type `struct _stati64'. Otherwise it is defined as
  6990. `struct stat'.
  6991. * src/AbstractDiskWriter.cc
  6992. * src/File.cc
  6993. * src/File.h
  6994. * src/a2io.h
  6995. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Fixed the compile error in hurd-i386
  6997. See the original bug report:
  6998. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6999. * src/a2io.h
  7000. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Code cleanup.
  7002. * src/PeerAbstractCommand.cc
  7003. * src/PeerAbstractCommand.h
  7004. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Removed TransferEncoding.
  7006. * src/DownloadCommand.cc
  7007. * src/DownloadCommand.h
  7008. * src/HttpResponseCommand.cc
  7009. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Updated po files.
  7011. * po/aria2c.pot
  7012. * po/*.po
  7013. * po/*.gmo
  7014. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7016. * src/A2STR.cc
  7017. * src/A2STR.h
  7018. * src/ChunkedDecoder.cc
  7019. * src/ChunkedDecoder.h
  7020. * src/ChunkedEncoding.cc: Removed
  7021. * src/ChunkedEncoding.h: Removed
  7022. * src/DownloadCommand.cc
  7023. * src/DownloadCommand.h
  7024. * src/HttpDownloadCommand.cc
  7025. * src/HttpResponse.cc
  7026. * src/HttpResponse.h
  7027. * src/HttpResponseCommand.cc
  7028. * src/HttpSkipResponseCommand.cc
  7029. * src/HttpSkipResponseCommand.h
  7030. * src/Makefile.am
  7031. * src/TransferEncoding.h: Removed
  7032. * test/ChunkedDecoderTest.cc
  7033. * test/ChunkedEncodingTest.cc: Removed
  7034. * test/HttpResponseTest.cc
  7035. * test/Makefile.am
  7036. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Use append instead of insert.
  7038. * src/GZipDecoder.cc
  7039. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Updated doc
  7041. * src/Decoder.h
  7042. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Updated usage text for -s option.
  7044. * src/usage_text.h
  7045. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7047. * src/Request.cc
  7048. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Cleaned up configure.ac.
  7050. * configure.ac
  7051. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7053. AC_ARG_ENABLE.
  7054. * configure.ac
  7055. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7057. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7058. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7059. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7060. fly and writes decoded data to a local disk.
  7061. * README
  7062. * README.html
  7063. * configure.ac
  7064. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7065. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7066. * m4/libz.m4
  7067. * src/Decoder.h
  7068. * src/DownloadCommand.cc
  7069. * src/DownloadCommand.h
  7070. * src/Exception.h
  7071. * src/GZipDecoder.cc
  7072. * src/GZipDecoder.h
  7073. * src/HttpHeader.cc
  7074. * src/HttpHeader.h
  7075. * src/HttpRequest.cc
  7076. * src/HttpRequest.h
  7077. * src/HttpResponse.cc
  7078. * src/HttpResponse.h
  7079. * src/HttpResponseCommand.cc
  7080. * src/Makefile.am
  7081. * test/GZipDecoderTest.cc
  7082. * test/HttpRequestTest.cc
  7083. * test/HttpResponseTest.cc
  7084. * test/Makefile.am
  7085. * test/Makefile.in
  7086. * test/gzip_decode_test.gz
  7087. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Clarified usage of -j option.
  7089. * src/usage_text.h
  7090. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Disabled getting size from the response of RETR.
  7092. If SIZE command failed, then disable resuming and segmented downloading.
  7093. * src/FtpConnection.cc
  7094. * src/FtpConnection.h
  7095. * src/FtpNegotiationCommand.cc
  7096. * src/FtpNegotiationCommand.h
  7097. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Use digits to find first byte of file size, which makes the intention
  7099. of the code clearer.
  7100. * src/FtpConnection.cc
  7101. Don't call validateTotalLength() when size is 0.
  7102. * src/FtpNegotiationCommand.cc
  7103. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Updated po files.
  7105. * po/aria2c.pot
  7106. * po/*.gmo
  7107. * po/*.po
  7108. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Clarified usage text for --split option.
  7110. * src/usage_text.h
  7111. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Bump up version number to 0.15.0dev. "dev" means "development"
  7113. version, which means I started the development of the next release!
  7114. * src/configure.ac
  7115. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. If FTP server returns negative response with REST raw command and
  7117. requested range is not 0, throw exception. If requested range is 0,
  7118. continue download a file from 0 byte.
  7119. * src/FtpNegotiationCommand.cc
  7120. * src/FtpNegotiationCommand.h
  7121. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Supported FTP server which don't recognize SIZE raw command.
  7123. If SIZE raw command is failed, aria2 will try to get file size
  7124. from the response of RETR raw command. If both attempts are failed,
  7125. then resuming and segmented downloading are disabled.
  7126. * src/FtpConnection.cc
  7127. * src/FtpConnection.h
  7128. * src/FtpNegotiationCommand.cc
  7129. * src/FtpNegotiationCommand.h
  7130. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. * Release 0.14.0+1
  7132. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Bump up version number to 0.14.0+1
  7134. * src/configure.ac
  7135. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Fixed the code that refers static member variable from non-static
  7137. context.
  7138. * src/DefaultPeerStorage.cc
  7139. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. * Release 0.14.0
  7141. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Added build test script
  7143. * build_test.sh
  7144. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Updated ja.po
  7146. * src/ja.po
  7147. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Bump up version number to 0.14.0
  7149. * src/configure.ac
  7150. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Updated ja.po and fr.po. Great thanks for french translators and
  7152. Sebastien WILLEMIJNS.
  7153. * po/fr.po
  7154. * po/ja.po
  7155. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Added configure option to enable/disable epoll support.
  7157. * configure.ac
  7158. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Updated man page.
  7160. * doc/aria2c.1.txt
  7161. * doc/aria2c.1
  7162. * doc/aria2c.1.html
  7163. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Added missing default value '5' to the usage of --split option.
  7165. * src/HelpItemFactory.cc
  7166. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Filled up pieces based on the number of missing blocks, rather than
  7168. simplay the number of piece * block length.
  7169. * src/BtRequestFactory.h
  7170. * src/DefaultBtInteractive.cc
  7171. * src/DefaultBtInteractive.h
  7172. * src/DefaultBtRequestFactory.cc
  7173. * src/DefaultBtRequestFactory.h
  7174. * src/Piece.cc
  7175. * src/Piece.h
  7176. * test/BitfieldManTest.cc
  7177. * test/DefaultBtRequestFactoryTest.cc
  7178. * test/MockBtRequestFactory.h
  7179. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Made _epEvents a member variable.
  7181. * src/DownloadEngine.cc
  7182. * src/DownloadEngine.h
  7183. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Cancel download if http redirect is bounded more than 20 times.
  7185. * src/AbstractCommand.cc
  7186. * src/HttpSkipResponseCommand.cc
  7187. * src/Request.cc
  7188. * src/Request.h
  7189. * test/RequestTest.cc
  7190. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Fixed unhandled exception(removed keyword `new').
  7192. * src/SocketCore.cc (initEPOLL)
  7193. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Removed visit(const MetaEntry*)
  7195. * src/MetaEntryVisitor.h:
  7196. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7197. and made them virtual.
  7198. * src/BencodeVisitor.h
  7199. * src/BencodeVisitor.cc
  7200. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Updated po files.
  7202. * po/aria2c.pot
  7203. * po/*.po
  7204. * po/*.gmo
  7205. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7207. the number of socket to watch out.
  7208. * src/PeerInteractionCommand.cc
  7209. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. When there is not enough space in disk when writing a chunk of data,
  7211. aria2 now prints the message to the console to warn user and aborts
  7212. its download. Not all downloads are canceled because some downloads
  7213. may use another disk or partition. BUG#1640332
  7214. * src/AbstractDiskWriter.cc
  7215. * src/PeerAbstractCommand.cc
  7216. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7217. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7218. setHaltRequested(true) to cancel download.
  7219. * src/PeerInteractionCommand.h
  7220. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7222. socket from int to sock_t as sockets are unsigned in Windows.
  7223. For AsyncNameResolver, DownloadEngine, I did additional modification
  7224. for the portion of the code changed according to epoll support.
  7225. I defined sock_t in a2netcompat.h to use sock_t without including
  7226. SocketCore.h.
  7227. * src/AsyncNameResolver.cc
  7228. * src/AsyncNameResolver.h
  7229. * src/DownloadEngine.cc
  7230. * src/DownloadEngine.h
  7231. * src/SocketCore.cc
  7232. * src/SocketCore.h
  7233. * src/a2netcompat.h
  7234. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7236. changes in the patch were applied.
  7237. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7238. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7239. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7240. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7242. a2io.h and common.h were modified.
  7243. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7244. MinGW.
  7245. * src/common.h: Changed off_t to 64 bit in MinGW.
  7246. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7248. only a2netcompat.h is modified.
  7249. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7250. directives.
  7251. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7253. only gai_strerror.h is modified.
  7254. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7255. winsock errors in MinGW.
  7256. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7258. follow sources are applied.
  7259. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7260. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7261. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7262. I included locale.h from Platform.cc.
  7263. * src/main.cc: Moved common setup/teardown code to Platform class.
  7264. * test/AllTest.cc: Use Platform class.
  7265. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7266. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7268. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7269. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7270. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7272. aria2-0.13.2+1-mingw-2.patch.
  7273. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7274. systems which don't have termious.h. I moved the directive inside of
  7275. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7276. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7277. anyway.
  7278. * src/asctime_r.h
  7279. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7280. I added 2nd argument to the prototype declaration.
  7281. * src/StringFormat.cc: Get rid of vasprintf.
  7282. * src/getaddrinfo.h: Fixed constants.
  7283. * configure.ac: Added the check for asctime_r function.
  7284. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7285. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Added writable test for Socket when the sending message is in progress.
  7287. Usually the sending message is piece message. Without wriable check,
  7288. upload latency is dropped to more than 1sec.
  7289. * src/PeerInteractionCommand.cc
  7290. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Create only requested files and files which shares a piece with
  7292. requested file in multi-torrent downloads. Directory structures are
  7293. also created in the same rule.
  7294. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7295. DiskWriterEntry as in the previous implementation.
  7296. * src/MultiDiskWriter.cc
  7297. * src/MultiFileAllocationIterator.cc
  7298. * src/MultiFileAllocationIterator.h
  7299. * test/MultiFileAllocationIteratorTest.cc
  7300. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Commented out -lprofiler
  7302. * src/Makefile.am
  7303. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7304. Bump up version number to 0.14.0b.
  7305. * src/configure.ac
  7306. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Actively establish connection to peers in seeding, when peer cache
  7308. is not full and max upload speed limit is not reached.
  7309. * src/ActivePeerConnectionCommand.cc
  7310. * src/ActivePeerConnectionCommand.h
  7311. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7313. to make room more fleshy, recently found peers.
  7314. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7315. it.
  7316. * src/DefaultPeerStorage.cc
  7317. * test/DefaultPeerStorageTest.cc
  7318. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Returns cached data only when the previous receiveHandshake() is called
  7320. with peek = true.
  7321. * src/PeerConnection.cc (receiveHandshake)
  7322. * src/PeerConnection.h (receiveHandshake)
  7323. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Changed default value of -s option from 1 to 5.
  7325. Also max value of -s option is changed from 5 to 16.
  7326. * src/HelpItemFactory.cc
  7327. * src/OptionHandlerFactory.cc
  7328. * src/option_processing.cc
  7329. * src/usage_text.h
  7330. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Changed -s options behavior. Now it means the number of connections
  7332. made simultaneously in each http/ftp download.
  7333. If 1 URL is specified, the behavior is the same with old implementation.
  7334. If -s N is given and more than N URLs are specified, first N URLs are
  7335. used and remaining URLs are used for backup. If less than N URLs are
  7336. specified, some of URLs are used more than once so that totally N
  7337. connections are made simultaneously.
  7338. * src/main.cc
  7339. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Included missing iosfwd or ostream header.
  7341. * src/RequestGroupMan.cc
  7342. * src/TaggedItem.cc
  7343. * src/TaggedItem.h
  7344. * src/Util.cc
  7345. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7347. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7348. * src/HttpConnection.cc: Included missing sstream.
  7349. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. Added --bt-max-open-files option.
  7351. * src/DefaultPieceStorage.cc
  7352. * src/HelpItemFactory.cc
  7353. * src/MultiDiskAdaptor.cc
  7354. * src/MultiDiskAdaptor.h
  7355. * src/OptionHandlerFactory.cc
  7356. * src/option_processing.cc
  7357. * src/prefs.cc
  7358. * src/prefs.h
  7359. * src/usage_text.h
  7360. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7361. Fixed the bug that aria2 aborts when a path to a directory is given
  7362. in command-line.
  7363. * src/ProtocolDetector.cc
  7364. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Limited the number files opened in each BitTorrent download. The default
  7366. value is 100. The option to change this value will be added.
  7367. * src/MultiDiskAdaptor.cc
  7368. * src/MultiDiskAdaptor.h
  7369. * src/MultiFileAllocationIterator.cc
  7370. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Fixed the bug that HTTP downloads don't start with old libraries.
  7372. * src/HttpHeaderProcessor.cc
  7373. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Use empty() instead of size() > 0.
  7375. * src/HttpConnection.cc
  7376. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Drop connection if the incoming peer ID is the same with localhost's
  7378. one. The previous implementation drops connection when incoming peer's
  7379. IP address is the same with localhost's one.
  7380. * src/PeerListenCommand.cc
  7381. * src/DefaultBtInteractive.cc
  7382. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. Returns cached data without checking whether socket is readable
  7384. if the cache is available.
  7385. * src/PeerConnection.cc (receiveHandshake)
  7386. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Included stdint.h
  7388. * src/common.h
  7389. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Removed duplicate HAVE_GETTIMEOFDAY
  7391. * src/Makefile.am
  7392. * src/Makefile.in
  7393. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Use interval as a minInterval when minInterval is not supplied.
  7395. * src/DefaultBtAnnounce.cc
  7396. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7398. attempt is failed, then 2nd attempt get kicked out more quickly.
  7399. And it is now static const member of DefaultBtAnnounce.
  7400. * src/DefaultBtAnnounce.h
  7401. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7403. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7404. * src/ActivePeerConnectionCommand.cc
  7405. * src/BtConstants.h
  7406. * src/BtRuntime.h
  7407. * src/DHTGetPeersCommand.cc
  7408. * src/DefaultBtAnnounce.cc
  7409. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7410. BtRuntime::MAX_PEERS.
  7411. * src/DefaultPeerStorage.h
  7412. * src/InitiatorMSEHandshakeCommand.cc
  7413. * src/PeerInitiateConnectionCommand.cc
  7414. * src/PeerInteractionCommand.cc
  7415. * src/PeerReceiveHandshakeCommand.cc
  7416. * src/TrackerWatcherCommand.cc
  7417. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Always Connect to _numNewConnection
  7419. * src/ActivePeerConnectionCommand.cc
  7420. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Made `begin' unsigned int.
  7422. * src/GrowSegment.h
  7423. * src/Piece.cc
  7424. * src/Piece.h
  7425. * src/PiecedSegment.cc
  7426. * src/PiecedSegment.h
  7427. * src/Segment.h
  7428. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Calculate piece hash when data is arrived if the data is arrived in
  7430. order. This removes additional read operation for hash calculation.
  7431. If the data is arrived in out of order, the hash is calucated when the
  7432. piece is completed. This is the same behavior as the old implementation.
  7433. * src/BtPieceMessage.cc
  7434. * src/DefaultBtProgressInfoFile.cc
  7435. * src/DefaultPieceStorage.cc
  7436. * src/DownloadCommand.cc
  7437. * src/DownloadCommand.h
  7438. * src/DownloadEngine.cc
  7439. * src/GrowSegment.cc
  7440. * src/GrowSegment.h
  7441. * src/Piece.cc
  7442. * src/Piece.h
  7443. * src/PiecedSegment.cc
  7444. * src/PiecedSegment.h
  7445. * src/Segment.h
  7446. * test/PieceTest.cc
  7447. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Try to keep the ordering of outgoing piece message.
  7449. * src/DefaultBtMessageDispatcher.cc
  7450. (DefaultBtMessageDispatcher::sendMessages)
  7451. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Fixed busy loop when error/hup epoll events occur.
  7453. * src/AbstractCommand.cc
  7454. * src/PeerAbstractCommand.cc
  7455. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Added --bt-request-peer-speed-limit option, which was a constant
  7457. SLOW_SPEED_THRESHOLD.
  7458. * src/ActivePeerConnectionCommand.cc
  7459. * src/ActivePeerConnectionCommand.h
  7460. * src/BtConstants.h
  7461. * src/HelpItemFactory.cc
  7462. * src/OptionHandlerFactory.cc
  7463. * src/PeerReceiveHandshakeCommand.cc
  7464. * src/option_processing.cc
  7465. * src/prefs.cc
  7466. * src/prefs.h
  7467. * src/usage_text.h
  7468. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Removed repeated call of getTopDirPath(). Instead, call it once and
  7470. cache the result.
  7471. * src/MultiDiskAdaptor.cc
  7472. * src/MultiDiskAdaptor.h
  7473. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7474. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Fixed compile error on debian etch.
  7476. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7477. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7478. it is undefined.
  7479. * src/Util.cc (ULLONG_MAX)
  7480. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Added epoll support. Use epoll if it is available. If not, use select.
  7482. When async dns is enabled in compile time, epoll support is enabled
  7483. only when aria2 is built with c-ares. This condition statement is
  7484. defined in a2io.h.
  7485. Currently aria2 supports both c-ares and ares, but ares is maintained
  7486. for quite a while and debian already has c-ares package, ares support
  7487. will be dropped in the future version.
  7488. * configure.ac
  7489. * src/AbstractCommand.cc
  7490. * src/AsyncNameResolver.cc
  7491. * src/AsyncNameResolver.h
  7492. * src/Command.cc
  7493. * src/Command.h
  7494. * src/DownloadEngine.cc
  7495. * src/DownloadEngine.h
  7496. * src/PeerAbstractCommand.cc
  7497. * src/SocketCore.cc
  7498. * src/SocketCore.h
  7499. * src/a2io.h
  7500. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7502. directive.
  7503. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Do not do write operation to /dev/null file.
  7505. * src/LogFactory.cc
  7506. * src/SimpleLogger.cc
  7507. Replaced vasprintf with vsnprintf
  7508. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7509. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. * src/BtRequestMessage.cc
  7511. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7512. for segmentation fault caused by previous commit.
  7513. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Reduced the usage of gettimeofday().
  7515. * src/DefaultBtMessageDispatcher.cc
  7516. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7517. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7518. * src/RequestSlot.cc
  7519. * src/RequestSlot.h
  7520. (RequestSlot::isTimeout)
  7521. Made RequestSlot have a reference to Piece object to avoid find
  7522. Piece repeatedly.
  7523. * src/DefaultBtMessageDispatcher.cc
  7524. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7525. * src/RequestSlot.cc
  7526. * src/RequestSlot.h
  7527. (RequestSlot::getPiece)
  7528. * test/DefaultBtMessageDispatcherTest.cc
  7529. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. * src/TimeA2.cc
  7531. * src/TimeA2.h
  7532. (Time::difference): New function.
  7533. (Time::elapsed): Done optimization.
  7534. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7536. directive.
  7537. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. * src/option_processing.cc: Added missing `defined' keyword to #if
  7539. directive.
  7540. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Bump up version number to 0.13.2+1
  7542. * src/configure.ac
  7543. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Refactored broken outstanding piece handling.
  7545. * src/DefaultPieceStorage.cc
  7546. * src/DefaultPieceStorage.h
  7547. * src/Piece.cc
  7548. * src/Piece.h
  7549. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7551. name collision of static variable and predefined macro.
  7552. * src/BtContext.cc
  7553. * src/BtContext.h
  7554. * src/CookieBoxFactory.cc
  7555. * src/CookieBoxFactory.h
  7556. * src/CookieParser.cc
  7557. * src/CookieParser.h
  7558. * src/DefaultBtContext.cc
  7559. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. * src/RequestGroup.cc
  7561. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7562. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. * Release 0.13.2
  7564. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7566. * po/fr.po
  7567. * po/ja.po
  7568. * po/aria2c.pot
  7569. * po/*.po
  7570. * po/*.gmo
  7571. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Bump up version number to 0.13.2
  7573. * src/configure.ac
  7574. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Refactord.
  7576. * src/RequestGroupMan.cc
  7577. (removeStoppedGroup)
  7578. (fillRequestGroupFromReserver)
  7579. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Fixed compile error on Ubuntu.
  7581. * src/BtPieceMessage.cc
  7582. * src/MessageDigestHelper.cc
  7583. * src/Util.cc
  7584. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7585. Fixed compile error when configured with --disable-bittorrent
  7586. * test/DownloadHandlerFactoryTest.cc
  7587. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Done make update-po
  7589. * po/aria2c.pot
  7590. * po/*.po
  7591. * po/*.gmo
  7592. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Bump up version number to 0.13.2rc.
  7594. * src/configure.ac
  7595. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Made option name bold. Updated SYNOPSIS to make it more readable.
  7597. * doc/aria2c.1.txt
  7598. * doc/aria2c.1
  7599. * doc/aria2c.1.html
  7600. * src/version_usage.cc
  7601. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Refactored. Use std::string instead of size and char*.
  7603. * Data.cc
  7604. * Data.h
  7605. * test/Data.cc
  7606. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Added trimSelf(). Rewritten trim() to use trimSelf().
  7608. * Util.cc
  7609. * Util.h
  7610. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7612. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Fixed compile error when configured with --disable-metalink.
  7614. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7615. * test/FeatureConfigTest.cc
  7616. * test/DownloadHandlerFactoryTest.cc
  7617. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Fixed compile error when configured with --without-gnutls
  7619. --without-openssl
  7620. * src/main.cc
  7621. * test/DefaultBtProgressInfoFileTest.cc
  7622. * test/SegmentManTest.cc
  7623. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Fixed compile error with OpenSSL.
  7625. * src/IteratableChunkChecksumValidator.cc
  7626. * src/LibsslDHKeyExchange.h
  7627. * src/MessageDigestHelper.cc
  7628. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Revert the default value of --max-concurrent-downloads to 5.
  7630. Revert the default value of --metalink-servers to 5.
  7631. Man pages was also updated.
  7632. * src/option_processing.cc
  7633. * doc/aria2c.1.txt
  7634. * doc/aria2c.1.html
  7635. * doc/aria2c.1
  7636. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. Returns const reference:
  7638. DownloadContext::getPieceHash, DownloadContext::getName,
  7639. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7640. BtContext::getInfoHashAsString,
  7641. * src/BtContext.h
  7642. * src/DefaultBtContext.cc
  7643. * src/DefaultBtContext.h
  7644. * src/DownloadContext.h
  7645. * src/SingleFileDownloadContext.h
  7646. * test/MockBtContext.h
  7647. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. * src/RequestGroup.h (getDir): Removed.
  7649. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Returns const reference. The internal urlencode function was optimized
  7651. a little bit.
  7652. * src/Request.cc
  7653. * src/Request.h
  7654. * src/HttpRequest.cc
  7655. * src/HttpRequest.h
  7656. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Defined option name and possible values as std::string to reduce
  7658. temporary string object creation in runtime.
  7659. * src/HelpItemFactory.cc
  7660. * src/LogFactory.cc
  7661. * src/Option.cc
  7662. * src/OptionHandlerFactory.cc
  7663. * src/option_processing.cc
  7664. * src/prefs.cc
  7665. * src/prefs.h
  7666. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Return const reference.
  7668. * src/DownloadHandlerConstants.cc
  7669. * src/DownloadHandlerConstants.h
  7670. (getMetalinkExtensions)
  7671. (getMetalinkContentTypes)
  7672. (getBtExtensions)
  7673. (getBtContentTypes)
  7674. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. * src/HttpHeader.cc (get): Rewritten.
  7676. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Make HttpHeader::getFirst(...) return const reference.
  7678. * src/HttpHeader.cc
  7679. * src/HttpHeader.h
  7680. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7682. it with V_TRUE.
  7683. * src/DefaultPieceStorage.cc
  7684. * src/DownloadCommand.cc
  7685. * src/FtpNegotiationCommand.cc
  7686. * src/HttpRequest.cc
  7687. * src/InitiateConnectionCommand.cc
  7688. * src/RequestGroup.cc
  7689. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Made Option::get(...) return const reference of std::string.
  7691. * src/Option.cc
  7692. * src/Option.h
  7693. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Replaced std:copy with insert.
  7695. * src/DefaultBtMessageDispatcher.cc
  7696. * src/DefaultPieceStorage.cc
  7697. * src/DownloadEngineFactory.cc
  7698. * src/RequestGroup.cc
  7699. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Included SocketCore.h to fix compiler warning.
  7701. * src/InitiateConnectionCommand.cc
  7702. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Put piece selection strategy algorithm to RarestPieceSelector class,
  7704. Added a switch to choose whether randomized selection so that unit
  7705. tests emit same results in, possibly, win32.
  7706. * src/DefaultPieceStorage.cc
  7707. * src/DefaultPieceStorage.h
  7708. * src/RarestPieceSelector.cc
  7709. * src/RarestPieceSelector.h
  7710. * test/DefaultPieceStorageTest.cc
  7711. * test/RarestPieceSelectorTest.cc
  7712. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Don't pool connection if HTTP proxy is enabled.
  7714. * src/FtpFinishDownloadCommand.cc
  7715. * src/FtpNegotiationCommand.cc
  7716. * src/HttpSkipResponseCommand.cc
  7717. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7719. * src/AbstractCommand.cc
  7720. * src/AbstractCommand.h
  7721. * src/ActivePeerConnectionCommand.cc
  7722. * src/FtpInitiateConnectionCommand.cc
  7723. * src/HttpInitiateConnectionCommand.cc
  7724. * src/InitiateConnectionCommandFactory.cc
  7725. * src/PeerAbstractCommand.cc
  7726. * src/PeerAbstractCommand.h
  7727. * src/PeerInitiateConnectionCommand.cc
  7728. * src/TrackerWatcherCommand.cc
  7729. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Sort RequestSlot in ascending order and manipulate them using
  7731. lower_bound.
  7732. * src/DefaultBtMessageDispatcher.cc
  7733. * src/DefaultBtMessageDispatcher.h
  7734. (getMessageQueue): Added const qualifier.
  7735. (getRequestSlots): Added const qualifier.
  7736. (sendMessages): Use empty() instead of size().
  7737. (doCancelSendingPieceAction): Use HandleEvent object.
  7738. (doAbortOutstandingRequestAction): Rewritten.
  7739. (doChokedAction): Rewritten.
  7740. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7741. (isOutstandingRequest): Rewritten.
  7742. (getOutstandingRequest): Rewritten.
  7743. (removeOutstandingRequest): Rewritten.
  7744. (addOutstandingRequest): Rewritten.
  7745. * src/RequestSlot.cc
  7746. * src/RequestSlot.h
  7747. (operator=): Rewritten.
  7748. (operator!=): New function.
  7749. (operator<): New function.
  7750. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. * src/DefaultBtRequestFactory.cc
  7752. (doChokedAction): Rewritten.
  7753. (removeCompletedPiece): Rewritten.
  7754. (removeTargetPiece): Rewritten.
  7755. (createRequestMessages): Added the debug log.
  7756. (createRequestMessagesOnEndGame: Added the debug log.
  7757. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Added the debug log message.
  7759. * src/BtPieceMessage.cc (doReceivedAction)
  7760. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7762. used lower_bound to process them rather than linear search.
  7763. * src/DHTPeerAnnounceStorage.cc
  7764. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7766. peer has at least one completed piece.
  7767. * src/Peer.cc
  7768. * src/Peer.h
  7769. * src/PeerInteractionCommand.cc
  7770. * src/PeerSessionResource.cc
  7771. * src/PeerSessionResource.h
  7772. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Removed unnecessary sorting
  7774. * src/DefaultPieceStorage (DefaultPieceStorage)
  7775. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Rewritten the portion of the code that mangaes allowed fast indexes.
  7777. * src/PeerSessionResource.cc
  7778. * src/PeerSessionResource.h
  7779. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Removed the invalid string including '\r' from ru.po and
  7781. did make update-po.
  7782. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Added --log-level and --summary-interval to man page.
  7784. * doc/aria2c.1.txt
  7785. * doc/aria2c.1.html
  7786. * doc/aria2c.1
  7787. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Added --log-level option to specify log level. Log messages under
  7789. the specified level are not output. Default value is `debug'.
  7790. * src/HelpItemFactory.cc
  7791. * src/LogFactory.cc
  7792. * src/LogFactory.h
  7793. * src/Logger.h
  7794. * src/OptionHandlerFactory.cc
  7795. * src/SimpleLogger.cc
  7796. * src/SimpleLogger.h
  7797. * src/main.cc
  7798. * src/option_processing.cc
  7799. * src/prefs.h
  7800. * src/usage_text.h
  7801. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Print download progress summary of all parallel downloads in specified
  7803. interval, default 60 secs. While aria2 could download several files
  7804. in parallel (see -j option), it displayed just first download progress,
  7805. and the other downloads are hidden from the users. This new feature
  7806. prints all downloads currently in-progress to the console so that you
  7807. can check the status of all downloads. The interval can be adjusted
  7808. by --summary-interval option.
  7809. The progress readout is now cut so that all fits in the one line of
  7810. console.
  7811. * src/ConsoleStatCalc.cc
  7812. * src/ConsoleStatCalc.h
  7813. * src/HelpItemFactory.cc
  7814. * src/OptionHandlerFactory.cc
  7815. * src/RequestGroupMan.cc
  7816. * src/RequestGroupMan.h
  7817. * src/main.cc
  7818. * src/option_processing.cc
  7819. * src/prefs.h
  7820. * src/usage_text.h
  7821. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7823. * src/DownloadEngine.cc (DownloadEngine)
  7824. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7826. defined.
  7827. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7828. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Use erase+lower_bound+insert instead of sort.
  7830. * src/DefaultPieceStorage.cc (addPieceStats)
  7831. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7833. * src/A2STR.cc
  7834. * src/A2STR.h
  7835. * src/OptionParser.cc (parse)
  7836. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Defined fake filename `[tracker.announce]' as static const std::string.
  7838. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7839. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Defined default filename `index.html' as static const std::string
  7841. * src/SingleFileDownloadContext.cc
  7842. * src/SingleFileDownloadContext.h
  7843. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Defined "[MEMORY]" as static const std::string.
  7845. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7846. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Defined control file's version number as static const std::string.
  7848. * src/DefaultBtProgressInfoFile.cc
  7849. * src/DefaultBtProgressInfoFile.h
  7850. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Use Request::METHOD_GET
  7852. * src/RequestGroup.cc (createNextCommandWithAdj)
  7853. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Defined "OK", "ERR", "INPR" as static const std::string
  7855. * src/RequestGroupMan.cc (showDownloadResults)
  7856. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Defined default client used in extended handshake as static const
  7858. std::string
  7859. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7860. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7862. * src/HttpConnection.cc (eraseConfidentialInfo)
  7863. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Defined default ftp user and password as static const std::string
  7865. * src/AuthConfigFactory.cc
  7866. * src/AuthConfigFactory.h
  7867. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Defined strings used in netrc as static const std::string
  7869. * src/Netrc.cc
  7870. * src/Netrc.h
  7871. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Defined HTTP status as static const std::string
  7873. * src/AbstractProxyResponseCommand.cc
  7874. * src/HttpHeader.cc
  7875. * src/HttpHeader.h
  7876. * src/HttpResponse.cc
  7877. * src/HttpResponseCommand.cc
  7878. * src/HttpSkipResponseCommand.cc
  7879. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Defined "\r\n", "A", "I" as static const std::string
  7881. * src/A2STR.cc
  7882. * src/A2STR.h
  7883. * src/FtpConnection.cc
  7884. * src/FtpConnection.h
  7885. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Added COLON_C(".") and used it in Request::parseUrl()
  7887. * src/A2STR.cc
  7888. * src/A2STR.h
  7889. * src/Request.cc (parseUrl)
  7890. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Changed the type of padName from `const std::string&' to `const char*'.
  7892. * src/MSEHandshake.cc (verifyPadLength)
  7893. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Defined "sha1" as static const std::string.
  7895. * src/MetalinkParserController.cc
  7896. * src/MetalinkParserController.h
  7897. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Defined message digest algorithm name as static const std::string
  7899. * src/DHTTokenTracker.cc
  7900. * src/DHTUtil.cc
  7901. * src/DefaultBtContext.cc
  7902. * src/MSEHandshake.cc
  7903. * src/MessageDigestHelper.cc
  7904. * src/Peer.cc
  7905. * src/messageDigest.cc
  7906. * src/messageDigest.h
  7907. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Made string literals used in SAX parser static const std::string.
  7909. * src/FileMetalinkParserState.cc
  7910. * src/FileMetalinkParserState.h
  7911. * src/FilesMetalinkParserState.cc
  7912. * src/FilesMetalinkParserState.h
  7913. * src/InitialMetalinkParserState.cc
  7914. * src/InitialMetalinkParserState.h
  7915. * src/MetalinkMetalinkParserState.cc
  7916. * src/MetalinkMetalinkParserState.h
  7917. * src/PiecesMetalinkParserState.cc
  7918. * src/PiecesMetalinkParserState.h
  7919. * src/ResourcesMetalinkParserState.cc
  7920. * src/ResourcesMetalinkParserState.h
  7921. * src/VerificationMetalinkParserState.cc
  7922. * src/VerificationMetalinkParserState.h
  7923. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7925. * src/A2STR.cc
  7926. * src/A2STR.h
  7927. * src/File.cc
  7928. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Defined static const std::string IP("ip"), PORT("port") and use them
  7930. instead of string literals.
  7931. * src/DefaultPeerListProcessor.cc
  7932. * src/DefaultPeerListProcessor.h
  7933. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Made string literals for torrent file processing static const
  7935. std::string.
  7936. * src/BtContext.cc
  7937. * src/BtContext.h
  7938. * src/DefaultBtContext.cc
  7939. * src/DefaultBtContext.h
  7940. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Made string literal for tracker response static const std::string
  7942. * src/BtAnnounce.cc
  7943. * src/BtAnnounce.h
  7944. * src/DefaultBtAnnounce.cc
  7945. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Use DHTMessage::T instead of "t".
  7947. * src/DHTMessageTracker.cc (messageArrived)
  7948. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Made keyName static const. Made trimmed charset static const
  7950. std::string.
  7951. * src/Util.cc (getContentDispositionFilename)
  7952. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Made USER_AGENT const. Made "/" static const std::string.
  7954. * src/A2STR.cc
  7955. * src/A2STR.h
  7956. * src/HttpRequest.cc
  7957. * src/HttpRequest.h
  7958. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Made string listeral to static const std::string:
  7960. "Content-Range", "Content-Length"
  7961. * src/HttpHeader.cc
  7962. * src/HttpHeader.h
  7963. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7964. Made string listeral to static const std::string.
  7965. * src/HttpConnection.cc
  7966. * src/HttpHeader.cc
  7967. * src/HttpHeader.h
  7968. * src/HttpResponse.cc
  7969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Made string listeral to static const std::string.
  7971. * src/A2STR.cc
  7972. * src/A2STR.h
  7973. * src/SimpleLogger.cc
  7974. * src/SimpleLogger.h
  7975. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7976. Made string literal to static const std::string.
  7977. Rewritten CookieParser::setField.
  7978. * src/A2STR.cc
  7979. * src/A2STR.h
  7980. * src/CookieBoxFactory.cc
  7981. * src/CookieBoxFactory.h
  7982. * src/CookieParser.cc
  7983. * src/CookieParser.h
  7984. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Made string literal to static const std::string
  7986. * src/DHTAbstractMessage.cc
  7987. * src/DHTAnnouncePeerMessage.cc
  7988. * src/DHTAnnouncePeerMessage.h
  7989. * src/DHTAnnouncePeerReplyMessage.cc
  7990. * src/DHTAnnouncePeerReplyMessage.h
  7991. * src/DHTFindNodeMessage.cc
  7992. * src/DHTFindNodeMessage.h
  7993. * src/DHTFindNodeReplyMessage.cc
  7994. * src/DHTFindNodeReplyMessage.h
  7995. * src/DHTGetPeersMessage.cc
  7996. * src/DHTGetPeersMessage.h
  7997. * src/DHTGetPeersReplyMessage.cc
  7998. * src/DHTGetPeersReplyMessage.h
  7999. * src/DHTMessage.cc
  8000. * src/DHTMessage.h
  8001. * src/DHTMessageFactoryImpl.cc
  8002. * src/DHTMessageReceiver.cc
  8003. * src/DHTPingMessage.cc
  8004. * src/DHTPingMessage.h
  8005. * src/DHTPingReplyMessage.cc
  8006. * src/DHTPingReplyMessage.h
  8007. * src/DHTQueryMessage.cc
  8008. * src/DHTQueryMessage.h
  8009. * src/DHTResponseMessage.cc
  8010. * src/DHTResponseMessage.h
  8011. * src/DHTUnknownMessage.cc
  8012. * src/DHTUnknownMessage.h
  8013. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Made string literal to static const std::string
  8015. * src/BtChokeMessage.cc (toString)
  8016. * src/BtHaveAllMessage.cc (toString)
  8017. * src/BtHaveNoneMessage.cc (toString)
  8018. * src/BtInterestedMessage.cc (toString)
  8019. * src/BtNotInterestedMessage.cc (toString)
  8020. * src/BtUnchokeMessage.cc (toString)
  8021. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Replaced "" with static const variable A2STR::NIL.
  8023. Replaced string comparison against "" with std::string::empty().
  8024. Added PROTO_* to Request class and use them as a protocol string
  8025. constant.
  8026. Made "started", "stopped", "completed" static const variable in
  8027. AnnounceList class.
  8028. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Updated translations. Great thanks to translators.
  8030. * po/ca.po
  8031. * po/de.po
  8032. * po/fr.po
  8033. * po/it.po
  8034. * po/ja.po
  8035. * po/ru.po
  8036. * po/zh_CN.po
  8037. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Updated man page; categorized options and fixed typo.
  8039. * doc/aria2c.1.txt
  8040. * doc/aria2c.1.html
  8041. * doc/aria2c.1
  8042. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Removed const ref
  8044. * src/MetalinkEntry.cc (AddProtocolPreference)
  8045. * src/RequestGroup.cc (FindServerHostByHostname)
  8046. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Rewritten Accept-Features handling.
  8048. * src/HttpRequestCommand.cc (createHttpRequest)
  8049. * src/a2functional.h
  8050. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Changed method signature:
  8052. DHTAbstractNodeLookupTask::toEntries
  8053. * src/DHTAbstractNodeLookupTask.cc
  8054. * src/DHTAbstractNodeLookupTask.h
  8055. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Changed method signature:
  8057. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8058. * src/BtContext.h
  8059. * src/DefaultBtContext.cc
  8060. * src/DefaultBtContext.h
  8061. * src/DefaultBtInteractive.cc
  8062. * test/DefaultBtContextTest.cc
  8063. * test/MockBtContext.h
  8064. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Changed method signature:
  8066. MultiFileAllocationIterator::makeDiskWriterEntries
  8067. * src/MultiFileAllocationIterator.cc
  8068. * src/MultiFileAllocationIterator.h
  8069. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Changed method sinature:
  8071. MetalinkEntry::toFileEntry,
  8072. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8073. Metalinker::queryEntry
  8074. * src/Metalink2RequestGroup.cc
  8075. * src/MetalinkEntry.cc
  8076. * src/MetalinkEntry.h
  8077. * src/MetalinkHelper.cc
  8078. * src/MetalinkHelper.h
  8079. * src/Metalinker.cc
  8080. * src/Metalinker.h
  8081. * src/main.cc
  8082. * test/MetalinkHelperTest.cc
  8083. * test/MetalinkerTest.cc
  8084. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Changed method sinature:
  8086. RequestGroup::getURIs
  8087. * src/RequestGroup.cc
  8088. * src/RequestGroup.h
  8089. * test/Metalink2RequestGroupTest.cc
  8090. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Changed method signature:
  8092. PeerListProcessor::extractPeer
  8093. * src/CompactPeerListProcessor.cc
  8094. * src/CompactPeerListProcessor.h
  8095. * src/DefaultBtAnnounce.cc
  8096. * src/DefaultPeerListProcessor.cc
  8097. * src/DefaultPeerListProcessor.h
  8098. * src/DelegatingPeerListProcessor.cc
  8099. * src/DelegatingPeerListProcessor.h
  8100. * src/PeerListProcessor.h
  8101. * src/UTPexExtensionMessage.cc
  8102. * test/DefaultPeerListProcessorTest.cc
  8103. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Changed method signature:
  8105. BtRequestFactory::createRequestMessages,
  8106. BtRequestFactory::createRequestMessagesOnEndGame
  8107. * src/BtRequestFactory.h
  8108. * src/DefaultBtInteractive.cc
  8109. * src/DefaultBtRequestFactory.cc
  8110. * src/DefaultBtRequestFactory.h
  8111. * test/DefaultBtRequestFactoryTest.cc
  8112. * test/MockBtRequestFactory.h
  8113. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Changed method signature:
  8115. PieceStorage::getInFlightPieces
  8116. * src/DefaultBtProgressInfoFile.cc
  8117. * src/DefaultPieceStorage.cc
  8118. * src/DefaultPieceStorage.h
  8119. * src/PieceStorage.h
  8120. * src/UnknownLengthPieceStorage.cc
  8121. * src/UnknownLengthPieceStorage.h
  8122. * test/DefaultBtProgressInfoFileTest.cc
  8123. * test/MockPieceStorage.h
  8124. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Changed method signature:
  8126. PostDownloadHandler::getNextRequestGroups
  8127. Metalink2RequestGroup::generate
  8128. RequestGroup::postDownloadProcessing
  8129. * src/BtPostDownloadHandler.cc
  8130. * src/BtPostDownloadHandler.h
  8131. * src/Metalink2RequestGroup.cc
  8132. * src/Metalink2RequestGroup.h
  8133. * src/MetalinkPostDownloadHandler.cc
  8134. * src/MetalinkPostDownloadHandler.h
  8135. * src/PostDownloadHandler.h
  8136. * src/RequestGroup.cc
  8137. * src/RequestGroup.h
  8138. * src/RequestGroupMan.cc
  8139. * src/main.cc
  8140. * test/BtPostDownloadHandlerTest.cc
  8141. * test/Metalink2RequestGroupTest.cc
  8142. * test/MetalinkPostDownloadHandlerTest.cc
  8143. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Rewritten AccRequestGroup
  8145. * src/main.cc
  8146. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Rewritten.
  8148. * src/TaggedItem.cc (toTagString)
  8149. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Rewritten Accept-Features handling.
  8151. * src/HttpRequestCommand.cc (createHttpRequest)
  8152. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Rewritten accept types handling.
  8154. * HttpRequest.cc (createRequest)
  8155. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Rewritten
  8157. * src/FeatureConfig.cc (featureSummary)
  8158. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Changed method signature:
  8160. PeerStorage::getActivePeers
  8161. * src/DHTPeerAnnounceEntry.cc
  8162. * src/DefaultPeerStorage.cc
  8163. * src/DefaultPeerStorage.h
  8164. * src/PeerStorage.h
  8165. * test/DefaultPeerStorageTest.cc
  8166. * test/MockPeerStorage.h
  8167. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Changed method signature:
  8169. DHTPeerAnnounceStorage::getPeers,
  8170. DHTPeerAnnounceEntry::getPeers
  8171. * src/DHTGetPeersMessage.cc
  8172. * src/DHTPeerAnnounceEntry.cc
  8173. * src/DHTPeerAnnounceEntry.h
  8174. * src/DHTPeerAnnounceStorage.cc
  8175. * src/DHTPeerAnnounceStorage.h
  8176. * test/DHTAnnouncePeerMessageTest.cc
  8177. * test/DHTPeerAnnounceEntryTest.cc
  8178. * test/DHTPeerAnnounceStorageTest.cc
  8179. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Changed method signature:
  8181. NameResolver::resolve
  8182. * src/DHTEntryPointNameResolveCommand.cc
  8183. * src/InitiateConnectionCommand.cc
  8184. * src/NameResolver.cc
  8185. * src/NameResolver.h
  8186. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Changed method signature:
  8188. PieceStorage::getAdvertisedPieceIndexes
  8189. * src/DefaultBtInteractive.cc
  8190. * src/DefaultPieceStorage.cc
  8191. * src/DefaultPieceStorage.h
  8192. * src/PieceStorage.h
  8193. * src/UnknownLengthPieceStorage.h
  8194. * test/MockPieceStorage.h
  8195. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Changed method signature:
  8197. SegmentMan::getInFlightSegment
  8198. * src/AbstractCommand.cc
  8199. * src/SegmentMan.cc
  8200. * src/SegmentMan.h
  8201. * test/SegmentManTest.cc
  8202. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Changed method signature:
  8204. DHTAbstractNodeLookupTask::getNodesFromMessage
  8205. * src/DHTAbstractNodeLookupTask.cc
  8206. * src/DHTAbstractNodeLookupTask.h
  8207. * src/DHTNodeLookupTask.cc
  8208. * src/DHTNodeLookupTask.h
  8209. * src/DHTPeerLookupTask.cc
  8210. * src/DHTPeerLookupTask.h
  8211. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8213. * src/AbstractCommand.cc
  8214. * src/BtCheckIntegrityEntry.cc
  8215. * src/BtCheckIntegrityEntry.h
  8216. * src/BtFileAllocationEntry.cc
  8217. * src/BtFileAllocationEntry.h
  8218. * src/BtSetup.cc
  8219. * src/BtSetup.h
  8220. * src/CheckIntegrityCommand.cc
  8221. * src/CheckIntegrityEntry.h
  8222. * src/ChecksumCheckIntegrityEntry.cc
  8223. * src/ChecksumCheckIntegrityEntry.h
  8224. * src/DHTSetup.cc
  8225. * src/DHTSetup.h
  8226. * src/DownloadEngine.cc
  8227. * src/FileAllocationCommand.cc
  8228. * src/FileAllocationEntry.h
  8229. * src/RequestGroup.cc
  8230. * src/RequestGroup.h
  8231. * src/RequestGroupMan.cc
  8232. * src/RequestGroupMan.h
  8233. * src/StreamCheckIntegrityEntry.cc
  8234. * src/StreamCheckIntegrityEntry.h
  8235. * src/StreamFileAllocationEntry.cc
  8236. * src/StreamFileAllocationEntry.h
  8237. * src/TrackerWatcherCommand.cc
  8238. * src/a2functional.h
  8239. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. Changed method signature:
  8241. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8242. DHTBucket::getGoodNodes,
  8243. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8244. * src/BNode.cc
  8245. * src/BNode.h
  8246. * src/DHTAbstractNodeLookupTask.cc
  8247. * src/DHTAutoSaveCommand.cc
  8248. * src/DHTBucket.cc
  8249. * src/DHTBucket.h
  8250. * src/DHTBucketRefreshTask.cc
  8251. * src/DHTFindNodeMessage.cc
  8252. * src/DHTGetPeersMessage.cc
  8253. * src/DHTRoutingTable.cc
  8254. * src/DHTRoutingTable.h
  8255. * test/BNodeTest.cc
  8256. * test/DHTBucketTest.cc
  8257. * test/DHTRoutingTableTest.cc
  8258. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. In piece selection functions, Pass std::deque<...> by reference rather
  8260. than returning it.
  8261. * src/BitfieldMan.cc
  8262. * src/BitfieldMan.h
  8263. * src/DefaultBtRequestFactory.cc
  8264. * src/DefaultPieceStorage.cc
  8265. * src/Piece.cc
  8266. * src/Piece.h
  8267. * test/BitfieldManTest.cc
  8268. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Implemented rarest piece first piece selection strategy.
  8270. * src/AbstractBtMessage.cc
  8271. * src/AbstractBtMessage.h
  8272. * src/BitfieldMan.cc
  8273. * src/BitfieldMan.h
  8274. * src/BtBitfieldMessage.cc
  8275. * src/BtHaveAllMessage.cc
  8276. * src/BtHaveMessage.cc
  8277. * src/DefaultPieceStorage.cc
  8278. * src/DefaultPieceStorage.h
  8279. * src/PeerInteractionCommand.cc
  8280. * src/PieceStorage.h
  8281. * src/UnknownLengthPieceStorage.h
  8282. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Rewritten readData and writeData.
  8284. * src/MultiDiskAdaptor.cc
  8285. * src/MultiDiskAdaptor.h
  8286. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Move \n out of the message "Usage: ...".
  8288. * src/version_usage.cc
  8289. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Bump up version number to 0.13.2b.
  8291. * configure.ac
  8292. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Added const qualifier to argument Exception& e.
  8294. * src/Logger.h
  8295. * src/SimpleLogger.cc
  8296. * src/SimpleLogger.h
  8297. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Pool connection when CWD, SIZE command fails.
  8299. * src/FtpNegotiationCommand.cc
  8300. * src/FtpNegotiationCommand.h
  8301. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8303. * src/HttpResponseCommand.cc
  8304. * src/HttpSkipResponseCommand.cc
  8305. * src/HttpSkipResponseCommand.h
  8306. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Pool connection when a server returns 4xx, 5xx responses.
  8308. * src/HttpNullDownloadCommand.cc
  8309. * src/HttpNullDownloadCommand.h
  8310. * src/HttpResponse.cc
  8311. * src/HttpResponse.h
  8312. * src/HttpResponseCommand.cc
  8313. * src/HttpResponseCommand.h
  8314. * test/HttpResponseTest.cc
  8315. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Print usage when no URL is specifed or bad command-line option is
  8317. specified.
  8318. * src/HelpItemFactory.cc
  8319. * src/help_tags.h
  8320. * src/option_processing.cc
  8321. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Removed duplicate log message.
  8323. * src/AbstractCommand.cc (asyncResolveHostname)
  8324. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8326. Changed -j option's default value from 5 to 1.
  8327. Added new examples using protocol auto detection feature.
  8328. Removed -T, -M usage where it can be omitted.
  8329. * doc/aria2c.1.txt
  8330. * doc/aria2c.1.html
  8331. * doc/aria2c.1.txt
  8332. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Updated command-line usage text, so that it tells users that they
  8334. can specify any number of torrent files and metalink files in
  8335. command-line.
  8336. * src/version_usage.cc
  8337. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Changed the default value of -j option to 1.
  8339. * src/HelpItemFactory.cc
  8340. * src/option_processing.cc
  8341. * src/usage_text.h
  8342. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Added the ability to reuse connection in FTP and it is enabled by
  8344. default. It can be disabled by --ftp-reuse-connection=false option.
  8345. * src/Command.cc
  8346. * src/DownloadCommand.cc
  8347. * src/FtpDownloadCommand.cc
  8348. * src/FtpDownloadCommand.h
  8349. * src/FtpFinishDownloadCommand.cc
  8350. * src/FtpFinishDownloadCommand.h
  8351. * src/FtpInitiateConnectionCommand.cc
  8352. * src/FtpNegotiationCommand.cc
  8353. * src/FtpNegotiationCommand.h
  8354. * src/HelpItemFactory.cc
  8355. * src/Makefile.am
  8356. * src/Makefile.in
  8357. * src/OptionHandlerFactory.cc
  8358. * src/option_processing.cc
  8359. * src/prefs.h
  8360. * src/usage_text.h
  8361. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Call Command::transitStatus() before calling Command::execute(),
  8363. so that the status change made in execute() is not cleared.
  8364. * src/DownloadEngine.cc
  8365. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Removed forward declaration of SocketCore class.
  8367. * src/HttpDownloadCommand.h
  8368. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8370. in InitiateConnectionCommandFactory. They should be set only when
  8371. the protocol is HTTP or HTTPS.
  8372. * src/InitiateConnectionCommandFactory.cc
  8373. * src/RequestGroup.cc
  8374. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Fixed infinite loop in checksum checking.
  8376. * src/IteratableChecksumValidator.cc
  8377. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Set _supportsPersistentConnection to true by default.
  8379. * src/Request.cc
  8380. * src/RequestGroup.cc
  8381. * test/HttpRequestTest.cc
  8382. * test/RequestTest.cc
  8383. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Added timeout to socket pool. The default timeout is 15 seconds,
  8385. which is the same value Apache uses.
  8386. * src/DownloadEngine.cc
  8387. * src/DownloadEngine.h
  8388. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Fixed misuse of multimap::find()
  8390. * src/HttpHeader.cc
  8391. * test/HttpHeaderTest.cc
  8392. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8394. option.
  8395. The asynchronous DNS is not capable of IPv6 yet.
  8396. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8397. least for HTTP download.
  8398. * src/AbstractCommand.cc
  8399. * src/AbstractCommand.h
  8400. * src/AsyncNameResolver.cc
  8401. * src/AsyncNameResolver.h
  8402. * src/DHTEntryPointNameResolveCommand.cc
  8403. * src/DHTEntryPointNameResolveCommand.h
  8404. * src/DownloadEngine.cc
  8405. * src/DownloadEngine.h
  8406. * src/FtpInitiateConnectionCommand.cc
  8407. * src/FtpInitiateConnectionCommand.h
  8408. * src/HelpItemFactory.cc
  8409. * src/HttpInitiateConnectionCommand.cc
  8410. * src/HttpInitiateConnectionCommand.h
  8411. * src/InitiateConnectionCommand.cc
  8412. * src/InitiateConnectionCommand.h
  8413. * src/Makefile.am
  8414. * src/Makefile.in
  8415. * src/NameResolver.cc
  8416. * src/NameResolver.h
  8417. * src/OptionHandlerFactory.cc
  8418. * src/SocketCore.cc
  8419. * src/SocketCore.h
  8420. * src/Util.cc
  8421. * src/Util.h
  8422. * src/option_processing.cc
  8423. * src/prefs.h
  8424. * src/usage_text.h
  8425. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Updated man page: --quiet, --header were added.
  8427. --metalink-servers and --enable-http-keep-alive option were updated.
  8428. * doc/aria2c.1
  8429. * doc/aria2c.1.html
  8430. * doc/aria2c.1.txt
  8431. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Enable HTTP keep-alive by default.
  8433. * src/HelpItemFactory.cc
  8434. * src/option_processing.cc
  8435. * src/usage_text.h
  8436. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Disable http keep-alive if the remote server is not HTTP/1.1.
  8438. * src/HttpConnection.cc
  8439. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Receive content body of 302 response so that the connection can be
  8441. reused later when http keep-alive is enabled.
  8442. * src/HttpNullDownloadCommand.cc
  8443. * src/HttpNullDownloadCommand.h
  8444. * src/HttpResponseCommand.cc
  8445. * src/HttpResponseCommand.h
  8446. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. const SharedHandle<Request> -> const SharedHandle<Request>&
  8448. * src/FtpDowndloadCommand.cc
  8449. * src/FtpDowndloadCommand.h
  8450. * src/HttpDownloadCommand.cc
  8451. * src/HttpDownloadCommand.h
  8452. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Fixed the bug that the control file(.aria2 file) is not renamed
  8454. according to tryAutoFileRenaming().
  8455. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8456. its control file exist, use them and continue download.
  8457. The old implementation didn't take into account of control file's
  8458. existence, so basically you couldn't continue download of renamed file.
  8459. * src/BtProgressInfoFile.h
  8460. * src/DefaultBtProgressInfoFile.cc
  8461. * src/DefaultBtProgressInfoFile.h
  8462. * src/NullProgressInfoFile.h
  8463. * src/RequestGroup.cc
  8464. * test/DefaultBtProgressInfoFileTest.cc
  8465. * test/MockBtProgressInfoFile.h
  8466. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Change the default value of --metalink-servers option from `5' to `1'.
  8468. * src/HelpItemFactory.cc
  8469. * src/option_processing.cc
  8470. * src/usage_text.h
  8471. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Reimplemented transparent metalink using Accept request header.
  8473. * src/HttpRequest.cc
  8474. * src/HttpRequest.h
  8475. * src/HttpRequestCommand.cc
  8476. * src/Metalink2RequestGroup.cc
  8477. * src/RequestGroup.cc
  8478. * src/RequestGroup.h
  8479. * test/HttpRequestTest.cc
  8480. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Bump up version number to 0.13.2a
  8482. * configure.ac
  8483. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Updated configure.ac using the result of autoscan.
  8485. * configure.ac
  8486. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Fixed compilation error without gcrypt/openssl.
  8488. * src/DownloadCommand.cc
  8489. * src/DownloadCommand.h
  8490. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Reorganized version information so that it can be displayed in a
  8492. standard terminal screen without scrolling.
  8493. Removed http, ftp from Configuration section, because they are always
  8494. enabled.
  8495. * src/FeatureConfig.cc
  8496. * src/FeatureConfig.h
  8497. * src/main.cc
  8498. * src/messageDigest.cc
  8499. * src/messageDigest.h
  8500. * src/version_usage.cc
  8501. * test/FeatureConfigTest.cc
  8502. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Masked user ID in log.
  8504. * src/FtpConnection.cc (sendUser)
  8505. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Removed query part from filename in HTTP download. The query part means
  8507. the substring after "?" in URL. Firefox seems do the same thing.
  8508. A query part is sometimes very long and not suitable to filename,
  8509. so I think it is better to remove it from filename.
  8510. * src/HttpRequest.cc
  8511. * src/HttpRequest.h
  8512. * src/Request.cc
  8513. * src/Request.h
  8514. * test/HttpRequestTest.cc
  8515. * test/RequestTest.cc
  8516. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Rewritten Exception class. Throw exception object, not its pointer and
  8518. catch by reference, so that remove problematic delete operator for
  8519. catched exception.
  8520. * src/Exception.cc
  8521. * src/Exception.h
  8522. * test/ExceptionTest.cc
  8523. * src/*: All files throwing/catching exception.
  8524. * test/*: All files throwing/catching exception.
  8525. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Now auto protocol detection is enabled without -Z option.
  8527. But there is a important difference between with/without -Z optoin.
  8528. For example, if you type:
  8529. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8530. then, aria2 interprets there are 3 request groups:
  8531. (1) http://host/file, http://mirror/file <-- multi-source download
  8532. (2) file1.torrent
  8533. (3) file2.metalink
  8534. On the other hand, if you invoke above command with -Z option, it is
  8535. interpreted as 4 request groups:
  8536. (1) http://host/file
  8537. (2) file1.torrent
  8538. (3) file2.metalink
  8539. (4) http://mirror/file
  8540. I think usually user don't mix multi-source URLs and torrent files, so
  8541. there is no big problem here.
  8542. * src/main.cc
  8543. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Fixed the bug that causes segmentaion fault when reading XML containing
  8545. unescapsed character like '&'.
  8546. Also a modification was made which avoids adding unnecessary
  8547. characters stack and appending unused string.
  8548. * src/ExpatMetalinkProcessor.cc
  8549. * src/FileMetalinkParserState.h
  8550. * src/FilesMetalinkParserState.h
  8551. * src/FinMetalinkParserState.h
  8552. * src/HashMetalinkParserState.h
  8553. * src/InitialMetalinkParserState.h
  8554. * src/LanguageMetalinkParserState.h
  8555. * src/MetalinkMetalinkParserState.h
  8556. * src/MetalinkParserState.h
  8557. * src/MetalinkParserStateMachine.cc
  8558. * src/MetalinkParserStateMachine.h
  8559. * src/OSMetalinkParserState.h
  8560. * src/PieceHashMetalinkParserState.h
  8561. * src/PiecesMetalinkParserState.h
  8562. * src/ResourcesMetalinkParserState.h
  8563. * src/SizeMetalinkParserState.h
  8564. * src/SkipTagMetalinkParserState.h
  8565. * src/URLMetalinkParserState.h
  8566. * src/VerificationMetalinkParserState.h
  8567. * src/VersionMetalinkParserState.h
  8568. * src/XML2SAXMetalinkProcessor.cc
  8569. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Added StringFormat class, which internally calls vasprintf.
  8571. operator<< is defined for this class, so it can be used with iostream
  8572. classes nicely. SimpleLogger and following functions are rewritten
  8573. using StringFormat class.
  8574. Besides, now Logger class's methods are non-const, many classes
  8575. that has a const Logger* as a member variable are modified to remove
  8576. const qualifier from the variable declaration.
  8577. * src/HelpItemFactory.cc
  8578. * src/Request.cc
  8579. * src/SimpleLogger.cc
  8580. * src/StringFormat.cc
  8581. * src/StringFormat.h
  8582. * src/Util.cc
  8583. * src/option_processing.cc
  8584. * src/version_usage.cc
  8585. * test/StringFormatTest.cc
  8586. * src/*.h: The classes that has const Logger* as a member variable.
  8587. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8589. failed. Also fixed memory link when exception is thrown there.
  8590. * src/main.cc (AccRequestGroup)
  8591. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Added build-in "Accept-Features" support. For now only "metalink" is
  8593. used in this header field.
  8594. This "metalink" value is removed from the list when connecting URLs
  8595. fed by metalink file to avoid loop in "transparent" metlaink.
  8596. * src/HttpRequest.cc
  8597. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8598. header is also held in this variable. Also renamed setUserHeaders as
  8599. addHeader and it was rewritten to add header not just to clear the old
  8600. value.
  8601. * src/HttpRequestCommand.cc
  8602. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8603. from "Accept-Features" list.
  8604. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8605. default.
  8606. * src/RequestGroup.h
  8607. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8608. * src/a2functional.h: Included <string> because Concat class depends on
  8609. it.
  8610. * test/HttpRequestTest.cc
  8611. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Added comment
  8613. * src/RequestGroup.cc (createNextCommand)
  8614. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Capitalized METHOD_GET and METHOD_HEAD
  8616. * src/Request.cc
  8617. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Added getDownloadResults() method
  8619. * src/RequestGroupMan.cc
  8620. * src/RequestGroupMan.h
  8621. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Fixed the bug that aria2 exits when commands is empty() but
  8623. _routineCommands are not.
  8624. * src/DownloadEngine.cc
  8625. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Use the default value pulled from Option object in HelpItemFactory.
  8627. except options whose defualt value is embedded in a usage text.
  8628. * src/HelpItemFactory.cc
  8629. * src/HelpItemFactory.h
  8630. * src/option_processing.cc
  8631. * src/version_usage.cc
  8632. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Added --quiet option to make aria2 quiet (no console output).
  8634. --quiet option is tagged with ADVANCED.
  8635. * src/HelpItemFactory.cc
  8636. * src/LogFactory.cc
  8637. * src/LogFactory.h
  8638. * src/MultiUrlRequestInfo.cc
  8639. * src/MultiUrlRequestInfo.h
  8640. * src/NullStatCalc.h: New class. This class prints nothing.
  8641. * src/OptionHandlerFactory.cc
  8642. * src/main.cc
  8643. * src/option_processing.cc
  8644. * src/prefs.h
  8645. * src/usage_text.h
  8646. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8648. * src/HelpItemFactory.cc (createHelpItems):
  8649. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Fixed compilation error in ExpatMetalinkProcessor.cc
  8651. * src/ExpatMetalinkProcessor.cc
  8652. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Reuse socket if the origin server supports HTTP keep-alive and
  8654. --enable-http-keep-alive or --enable-http-pipelining is given.
  8655. The current implementation doesn't reuse the connections established
  8656. against proxy server.
  8657. * src/AbstractCommand.cc
  8658. * src/DownloadEngine.cc
  8659. * src/DownloadEngine.h
  8660. * src/HttpDownloadCommand.cc
  8661. * src/HttpInitiateConnectionCommand.cc
  8662. * src/HttpResponseCommand.cc
  8663. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Rewritten HTTP keep-alive and pipelining routine.
  8665. * src/AbstractCommand.cc
  8666. * src/HttpConnection.cc
  8667. * src/HttpDownloadCommand.cc
  8668. * src/HttpRequest.cc
  8669. * src/HttpRequestCommand.cc
  8670. * src/HttpResponseCommand.cc
  8671. * src/Request.cc
  8672. * src/Request.h
  8673. * src/RequestGroup.cc
  8674. * test/HttpRequestTest.cc
  8675. * test/HttpResponseTest.cc
  8676. * test/RequestTest.cc
  8677. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Added missing setUserHeaders call
  8679. * src/HttpRequestCommand.cc
  8680. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8682. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8683. waste of time because it is more likey false.
  8684. * src/FileAllocationDispatcherCommand.cc (execute)
  8685. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Now HTTP status and version are a member variable of HttpHeader.
  8687. HTTP status is processed as a string, not integer.
  8688. * src/AbstractProxyResponseCommand.cc
  8689. * src/HttpConnection.cc
  8690. * src/HttpHeader.cc
  8691. * src/HttpHeader.h
  8692. * src/HttpHeaderProcessor.cc
  8693. * src/HttpHeaderProcessor.h
  8694. * src/HttpResponse.cc
  8695. * src/HttpResponse.h
  8696. * test/HttpHeaderProcessorTest.cc
  8697. * test/HttpResponseTest.cc
  8698. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Added --header option. You can specify any number of additional HTTP headers
  8700. like:
  8701. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8702. Unlike other commad-line option, you can use --header option multiple times.
  8703. * src/HelpItemFactory.cc
  8704. * src/HttpRequest.{cc, h}
  8705. * src/HttpRequestCommand.cc
  8706. * src/OptionHandlerFactory.cc
  8707. * src/OptionHandlerImpl.h
  8708. * src/option_processing.cc
  8709. * src/prefs.h
  8710. * src/usage_text.h
  8711. * test/HttpRequestTest.cc (testUserHeaders)
  8712. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Eliminates the time lag between sequential downloads and commands in
  8714. the same RequestGroup.
  8715. In old implementation, aria2 occasionally waits 1 seconds before
  8716. executing next command or RequestGroup.
  8717. This is really a waste of time, and new implementation eliminates
  8718. this unnecessary time lag.
  8719. * src/AbstractCommand.cc
  8720. * src/AutoSaveCommand.cc
  8721. * src/CheckIntegrityCommand.cc
  8722. * src/Command.{cc, h}
  8723. * src/DownloadEngine.{cc, h}
  8724. * src/DownloadEngineFactory.cc
  8725. * src/FileAllocationCommand.cc
  8726. * src/FileAllocationDispatcherCommand.cc
  8727. * src/FillRequestGroupCommand.cc
  8728. * src/FtpInitiateConnectionCommand.cc
  8729. * src/HaveEraseCommand.cc
  8730. * src/HttpInitiateConnectionCommand.cc
  8731. * src/HttpResponseCommand.cc
  8732. * src/RealtimeCommand.cc
  8733. * src/RequestGroup.cc
  8734. * src/RequestGroupMan.cc
  8735. * src/StreamFileAllocationEntry.cc
  8736. * src/TimeBasedCommand.{cc, h}
  8737. * src/TimedHaltCommand.cc
  8738. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8740. keyword explicit and SharedHandle's default constructor initializes
  8741. its internal obj to null, old implementation initializes it using
  8742. obj's default constructor.
  8743. To assign null, write SharedHandle<T> x(...); x.reset();
  8744. TODO: test/SharedHandleTest.cc needs more tests.
  8745. * src/SharedHandle.h
  8746. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Fixed type in man page.
  8748. * doc/aria2c.1.txt
  8749. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8751. * src/SimpleLogger.{cc, h}
  8752. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Implemented auto protocol detection.
  8754. Now you can do:
  8755. aria2c -Z http://host/file file1.torrent file2.metalink
  8756. (Note: -Z option is required for auto protcol detection.)
  8757. Then aria2c downloads 3 files simultaneously:
  8758. 1. http://host/file
  8759. 2. file1.torrent <-- read local torrent file
  8760. 3. file2.metalink <-- read local Metalink file.
  8761. Same thing goes with -i option. Assume your uris.txt contans:
  8762. http://host/file
  8763. file1.torrent
  8764. file2.metalink
  8765. Then you can do: aria2c -i uris.txt
  8766. (Note: -Z option is not needed if -i option is given.)
  8767. * src/main.cc
  8768. * src/ProtocolDetector.{cc, h}
  8769. * test/ProtocolDetectorTest.cc
  8770. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8772. installed
  8773. * src/ARC4Encryptor.h
  8774. * src/ARC4Decryptor.h
  8775. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Renamed argument from 'errno' to 'err', since errno is confused with
  8777. errno defined in errno.h.
  8778. * src/LibgcryptARC4Decryptor.h
  8779. * src/LibgcryptARC4Context.h
  8780. * src/LibgcryptDHKeyExchange.h
  8781. * src/LibgcryptARC4Encryptor.h
  8782. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Rewritten choking algorithm.
  8784. * src/PeerChokeCommand.{cc, h}
  8785. * src/BtInterestedMessage.cc
  8786. * src/PeerSessionResource.{cc, h}
  8787. * src/DefaultPeerStorage.{cc, h}
  8788. * src/BtNotInterestedMessage.cc
  8789. * src/DefaultBtMessageDispatcher.{cc, h}
  8790. * src/BtMessageDispatcher.h
  8791. * src/Peer.{cc, h}
  8792. * src/BtLeecherStateChoke.{cc, h}
  8793. * src/BtSetup.cc
  8794. * src/BtSeederStateChoke.{cc, h}
  8795. * src/PeerStorage.h
  8796. * test/MockPeerStorage.h
  8797. * test/MockBtMessageDispatcher.h
  8798. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Fixed compilation error on x84-64 platform.
  8800. * src/AuthConfig.cc: Included ostream.
  8801. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Rewritten getBasename() and getDirname(), without standard library
  8803. basename(), dirname().
  8804. * src/File.cc
  8805. * test/FileTest.cc
  8806. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Added Simplified Chinese translation. Also updated the following
  8808. translations: Polish, Dutch, German. Great thanks to all translators.
  8809. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Suppress content-range error when 'Content-Range' response header
  8811. doesn't contains bytes-unit specifier 'bytes'
  8812. * src/HttpHeader.cc (getRange)
  8813. * test/HttpHeaderTest.cc
  8814. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Fixed compilation error with g++-4.3
  8816. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Added missing include files for MinGW
  8818. * test/HttpHeaderProcessorTest.cc
  8819. * test/DHTRoutingTableSerializerTest.cc
  8820. * test/DHTRoutingTableDeserializerTest.cc
  8821. * test/UriListParserTest.cc
  8822. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Now download line is printed nicely with no garbage at the end of
  8824. line. I use ioctl to get the columns of terminal.
  8825. If stdout is redirected to another device, instead of carriage return,
  8826. end of line '\n' character is used. This is feature request#1909659
  8827. * src/ConsoleStatCalc.cc (calculateStat)
  8828. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Included a2time.h
  8830. * src/DHTMessageDispatcher.h
  8831. * src/DHTMessageEntry.h
  8832. * src/DHTReplaceNodeTask.h
  8833. * src/DHTMessageTracker.h
  8834. * src/Util.h
  8835. * src/CookieBox.h
  8836. * src/SocketCore.h
  8837. * src/DefaultBtMessageDispatcher.h
  8838. * src/SocketCore.cc
  8839. * src/Util.cc
  8840. * src/DHTPingTask.h
  8841. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Fixed high memory footprint when DHT is enabled.
  8843. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8844. queued than it is processed and the queue is getting longer. As a
  8845. consequence, momory usage is increased.
  8846. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8847. replacement cache in DHTBucket which is described in Kademlia paper.
  8848. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8849. DHTReplaceNodeTask.
  8850. * src/DHTBucket.{h, cc}
  8851. (cacheNode): New function.
  8852. (getCachedNodes): New function.
  8853. (dropNode): Push back cached node to _nodes.
  8854. * test/DHTBucketTest.cc
  8855. (testCacheNode): New test
  8856. (testDropNode): New test
  8857. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8859. the unused 4KB memory when ssl is not used.
  8860. * src/SocketCore.cc
  8861. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Added summary log for peer announce storage.
  8863. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8864. Removed cast
  8865. * src/DefaultPeerStorage.cc (addPeer)
  8866. Log exception message
  8867. * src/DHTMessageTracker.cc (handleTimeout)
  8868. Fixed casting
  8869. * test/HttpRequestTest.cc
  8870. * test/MetalinkProcessorTest.cc
  8871. * test/PieceTest.cc
  8872. * test/MetalinkEntryTest.cc
  8873. * test/SequenceTest.cc
  8874. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. * src/ParameterizedStringParser.cc (createLoop):
  8876. Removed unused variable sstep.
  8877. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8878. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. * src/Util.{h, cc}
  8880. (parseUInt): New function.
  8881. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8882. The actual range is uint32_t.
  8883. * test/UtilTest.cc
  8884. * src/ParameterizedStringParser.cc:
  8885. Use Util::parseUInt() for loop variables.
  8886. * test/ParameterizedStringParserTest.cc
  8887. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8888. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Rewritten the functions for binding port.
  8890. * src/DHTConnectionImpl.{h, cc}
  8891. * src/PeerListenCommand.{h, cc}
  8892. * src/DHTSetup.cc
  8893. * src/BtSetup.cc
  8894. * test/DHTConnectionImplTest.cc
  8895. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. type cleanup for allmost all remaining files.
  8897. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Type clarification
  8899. * src/PeerSessionResource.{h, cc}
  8900. * src/DefaultPieceStorage.{h, cc}
  8901. * src/Peer.{h, cc}
  8902. * test/PeerSessionResourceTest.cc
  8903. Use div function
  8904. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8905. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Type clarification
  8907. * src/DefaultPeerStorage.{h, cc}
  8908. * test/DefaultPeerStorageTest.cc
  8909. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Type clarification: size_t for length or size, uint64_t for file
  8911. length, off_t for file offset.
  8912. * src/DefaultBtProgressInfoFile.cc
  8913. * src/DefaultBtContext.{h, cc}
  8914. * src/DefaultBtInteractive.cc
  8915. * src/DownloadCommand.{h, cc}
  8916. * src/IteratableChunkChecksumValidator.{h, cc}
  8917. * src/SegmentMan.{h, cc}
  8918. * src/SingleFileDownloadContext.{h, cc}
  8919. * src/IteratableChecksumValidator.{h, cc}
  8920. * src/BtContext.h
  8921. * src/IteratableValidator.h
  8922. * src/DownloadContext.h
  8923. * test/SingleFileDownloadContextTest.cc
  8924. * test/DefaultBtContextTest.cc
  8925. * test/MockBtContext.h
  8926. * test/Metalink2RequestGroupTest.cc
  8927. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Type clarification: size_t for length or size, uint64_t for file
  8929. length, off_t for file offset.
  8930. * src/PiecedSegment.cc
  8931. * src/GrowSegment.h
  8932. * src/DefaultBtRequestFactory.h
  8933. * src/DefaultBtProgressInfoFile.cc
  8934. * src/UnknownLengthPieceStorage.h
  8935. * src/DefaultPieceStorage.cc
  8936. * src/UnknownLengthPieceStorage.cc
  8937. * src/DefaultBtInteractive.cc
  8938. * src/GrowSegment.cc
  8939. * src/BitfieldMan.h
  8940. * src/DownloadCommand.cc
  8941. * src/BtRequestFactory.h
  8942. * src/PiecedSegment.h
  8943. * src/DefaultPieceStorage.h
  8944. * src/Piece.cc
  8945. * src/DefaultBtRequestFactory.cc
  8946. * src/PieceStorage.h
  8947. * src/Segment.h
  8948. * src/Piece.h
  8949. * src/BitfieldMan.cc
  8950. * src/Util.cc
  8951. * test/DefaultBtProgressInfoFileTest.cc
  8952. * test/DefaultPieceStorageTest.cc
  8953. * test/MockPieceStorage.h
  8954. * test/BtRequestMessageTest.cc
  8955. * test/DefaultBtMessageDispatcherTest.cc
  8956. * test/BitfieldManTest.cc
  8957. * test/GrowSegmentTest.cc
  8958. * test/PieceTest.cc
  8959. * test/SegmentTest.cc
  8960. * test/SegmentManTest.cc
  8961. * test/DefaultBtRequestFactoryTest.cc
  8962. * test/MockBtRequestFactory.h
  8963. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Fixed compilation error with --disable-nls
  8965. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8966. in gettext.h causes the problem.
  8967. * src/common.h
  8968. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Removed subPiece related functions.
  8970. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8971. * src/DefaultPieceStorage.{h, cc}
  8972. * test/PieceTest.cc
  8973. * test/DefaultPieceStorageTest.cc
  8974. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Use unsigned char for data store.
  8976. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Bump up version number to 0.13.0+1
  8978. * configure.ac
  8979. * Release 0.13.0+1
  8980. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Changed inactive connection timeout to 120.
  8982. To accept more mulually interested peers, disconnect peer when there
  8983. is no interest between us after certain time passed.
  8984. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8985. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8987. when compiled with async DNS support.
  8988. * src/DownloadEngine.cc
  8989. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8990. value '10' will be a little bit short when some DNS servers are
  8991. offline and several DNS servers are tried. It should be configured
  8992. by command-line option.
  8993. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Merged Ross's mingw patch.
  8995. * src/DHTRoutingTableDeserializer.cc
  8996. * src/DHTRoutingTableSerializer.cc
  8997. * src/Platform.{h, cc}
  8998. * src/timegm.h
  8999. * src/gettimeofday.h
  9000. * src/getaddrinfo.h
  9001. * src/SocketCore.h
  9002. * src/common.h
  9003. * src/inet_aton.h
  9004. * src/DownloadEngine.h
  9005. * src/gai_strerror.h
  9006. * src/a2netcompat.h
  9007. * configure.ac
  9008. * configure
  9009. * aclocal.m4
  9010. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Included missing iostream.
  9012. * test/AllTest.cc
  9013. * test/BtDependencyTest.cc
  9014. * test/BtExtendedMessageTest.cc
  9015. * test/DHTConnectionImplTest.cc
  9016. * test/DHTMessageFactoryImplTest.cc
  9017. * test/DHTMessageTrackerEntryTest.cc
  9018. * test/DHTNodeTest.cc
  9019. * test/DHTRoutingTableSerializerTest.cc
  9020. * test/DefaultBtAnnounceTest.cc
  9021. * test/DefaultBtContextTest.cc
  9022. * test/DefaultBtMessageFactoryTest.cc
  9023. * test/DefaultExtensionMessageFactoryTest.cc
  9024. * test/HandshakeExtensionMessageTest.cc
  9025. * test/HttpResponseTest.cc
  9026. * test/MetalinkProcessorTest.cc
  9027. * test/MultiFileAllocationIteratorTest.cc
  9028. * test/SocketCoreTest.cc
  9029. * test/UTPexExtensionMessageTest.cc
  9030. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Reorganized includes.
  9032. * src/NameResolver.cc
  9033. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Fixed compilation error without ares/c-ares
  9035. * src/NameResolver.h:
  9036. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Added a test for large file.
  9038. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9039. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Fixed the bug that file size is ignored if size > INT32_MAX
  9041. * src/SizeMetalinkParserState.cc (endElement):
  9042. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Bump up version number to 0.13.0
  9044. * configure.ac
  9045. * Release 0.13.0
  9046. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Updated Makfefile.am to make 'make dist' work.
  9048. Now packaged filename is aria2c-VERSION.tar.bz2.
  9049. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9050. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9051. Large file support is now configured by configure script.
  9052. * configure.ac
  9053. Removed unsused source files
  9054. * src/
  9055. * test/
  9056. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9057. Peer.h and BtContext.h respectively.
  9058. * src/Peer.h
  9059. * src/BtContext.h
  9060. Updated translations.
  9061. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9062. translations. Great thanks to all translators!;)
  9063. * po/*.{po, gmo}
  9064. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9066. statically declared sha1 MessageDigestContext.
  9067. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9068. initialization of short-lived MessageDigestContext.
  9069. * src/MessageDigestHelper.{h, cc}
  9070. * src/main.cc
  9071. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9072. the initialization of MessageDigestContext every time in validating
  9073. chunk checksum.
  9074. * src/DownloadCommand.{h, cc}
  9075. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Add a file descriptor which connected to fast peer(latency<1500) to
  9077. select(). This change reduced CPU load.
  9078. * src/PeerInteractionCommand.cc
  9079. * src/DefaultBtInteractive.{h, cc}
  9080. * src/BtInteractive.h
  9081. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Fixed the previous insufficient fix for possible busy loop.
  9083. * src/MSEHandshake.cc (identifyHandshakeType)
  9084. Removed unused functions.
  9085. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9086. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Fixed possible busy loop if first 20 bytes are not received for a few
  9088. minutes.
  9089. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9090. * src/ReceiverMSEHandshakeCommand.cc
  9091. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Fixed compilation error
  9093. * src/ExpatMetalinkProcessor.cc
  9094. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9096. * src/DHTBucket.cc
  9097. Removed unnecessary cast.
  9098. * src/HandshakeExtensionMessage.cc
  9099. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9101. is missing.
  9102. * src/OptionHandlerFactory.cc
  9103. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Fixed the bug that HAVE message is not sent for a piece they are
  9105. downloaded fom http/ftp server before any BitTorrent handshake is done
  9106. with peers.
  9107. * src/DefaultBtInteractive.cc
  9108. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9110. * src/Makefile.am
  9111. * src/Makefile.in
  9112. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Updated README. Added html version of README and man page.
  9114. * README
  9115. * README.html
  9116. * readme2html: Shell script to generate README.html from README using
  9117. asciidoc.
  9118. * doc/aria2c.1.html
  9119. * doc/makeman: Added the line to generate aria2c.1.html
  9120. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Fixed offset calculation.
  9122. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9123. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Rewritten itos and uitos using template. llitos and ullitos are
  9125. replaced with itos and uitos respectively.
  9126. * src/Util.{h, cc}
  9127. * test/UtilTest.cc
  9128. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9130. of the number of bytes required for storing public key and shared
  9131. secret.
  9132. * src/LibgcryptDHKeyExchange.h
  9133. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9134. * src/MSEHandshake.cc
  9135. * test/DHKeyExchangeTest.cc
  9136. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Removed since they are not used.
  9138. * src/Xml2MetalinkProcessor.{h, cc}
  9139. * src/Socket.cc
  9140. * src/SegmentSplitter.{h, cc}
  9141. * test/Xml2MetalinkProcessorTest.cc
  9142. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Fixed the bug that prevents aria2 from stopping other than by pressing
  9144. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9145. option. aria2 doesn't stop even after --seed-time is satisfied and
  9146. continues to output blank lines in the console.
  9147. * src/ReceiverMSEHandshakeCommand.cc
  9148. * src/PeerReceiveHandshakeCommand.cc
  9149. * src/PeerListenCommand.cc
  9150. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Bump up version number to 0.13.0rc
  9152. * configure.ac
  9153. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Updated man page and some usage text.
  9155. * doc/aria2c.1.txt
  9156. * src/usage_text.h
  9157. * po/*.{po, gmo}
  9158. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Updated translations. Added Finnish and Hebrew translations.
  9160. Great thanks to all translators!
  9161. * po/*.{po, gmo}
  9162. * po/LINGUAS
  9163. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Log more detailed information about each message.
  9165. * src/DHTQueryMessage.{h, cc}
  9166. * src/DHTGetPeersMessage.{h, cc}
  9167. * src/DHTFindNodeReplyMessage.{h, cc}
  9168. * src/DHTGetPeersReplyMessage.{h, cc}
  9169. * src/DHTAnnouncePeerMessage.{h, cc}
  9170. * src/DHTResponseMessage.{h, cc}
  9171. * src/DHTFindNodeMessage.{h, cc}
  9172. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Use constants defined in prefs.h
  9174. * src/option_processing.cc
  9175. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9177. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Make room for future enchancements for IPv6 addresses.
  9179. Bump up version number of dht.dat file format to 2.
  9180. Not compatible with previous version.
  9181. * src/DHTRoutingTableSerializer.cc
  9182. * src/DHTRoutingTableDeserializer.cc
  9183. * test/DHTRoutingTableSerializerTest.cc
  9184. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Added handling for the return values from
  9186. PeerMessageUtil::createcompact().
  9187. * src/DefaultBtContext.cc (computeFastSet):
  9188. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Fixed abort when peer's ip address is IPv4-mapped address.
  9190. * src/DefaultBtContext.cc (computeFastSet)
  9191. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9192. cannot handle IPv4-mapped addresses.
  9193. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9194. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Proper return value handling for OpenSSL functions.
  9196. * src/LibsslDHKeyExchange.h
  9197. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Random bytes generation using libgcrypt and OpenSSL.
  9199. * src/DHTUtil.{h, cc}
  9200. * test/DHTUtilTest.cc
  9201. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9203. received.
  9204. * src/DHTMessageReceiver.cc (receiveMessage)
  9205. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Fixed the bug that a return code is always 0. BUG#1897704
  9207. If error occurred during the download or there exist unfinished
  9208. downloads, aria2 returns with code 1.
  9209. * src/RequestGroupMan.{h, cc}
  9210. * src/MultiUrlRequestInfo.{h, cc}
  9211. * src/main.cc
  9212. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. IPv6 support for SocketCore class.
  9214. TODO: In SocketCore::establishConnection(), this is insufficient to
  9215. determin the failure of connect() here because the socket is
  9216. non-blocking state. The next addresses should be tried after select().
  9217. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9218. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9219. instead which address family independent.
  9220. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9221. information in a compact peer format which is for IPv4 only.
  9222. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9223. this is a spec of BitTorrent protocol.
  9224. * src/SocketCore.{h, cc}
  9225. * src/PeerMessageUtil.cc
  9226. * test/SocketCoreTest.cc
  9227. * test/PeerMessageUtilTest.cc
  9228. * test/DHTConnectionImplTest.cc
  9229. Handle IPv4-mapped addresses.
  9230. * src/DHTNode.cc: Now identity is determined by node id.
  9231. * src/DHTMessageTrackerEntry.cc
  9232. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9233. should handle it.
  9234. * src/DHTRoutingTableDeserializer.cc
  9235. * src/DHTMessageFactoryImpl.cc
  9236. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Change the unit of --stop option from a minute to a second.
  9238. * src/usage_text.h
  9239. * src/DownloadEngineFactory.cc
  9240. * src/OptionHandlerFactory.cc
  9241. * src/message.h
  9242. * src/TimedHaltCommand.cc
  9243. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Make listening socket non-block mode.
  9245. * src/FtpConnection.cc
  9246. * src/FtpNegotiationCommand.{h, cc}
  9247. * src/PeerListenCommand.cc
  9248. Fixed the bug that cause slow ftp negotiation.
  9249. * src/FtpNegotiationCommand.{h, cc}
  9250. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Added basic tag to --enable-dht, --dht-listen-port option.
  9252. * src/HelpItemFactory.cc (createHelpItems)
  9253. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Updated text.
  9255. * src/usage_text.h
  9256. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9258. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Determin _threadtholdSpeed in each constructor for
  9260. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9261. * src/ActivePeerConnectionCommand.{h, cc}
  9262. * src/PeerReceiveHandshakeCommand.{h, cc}
  9263. * src/BtSetup.cc
  9264. * src/BtConstants.h
  9265. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Added --bt-min-crypto-level and --bt-require-crypto options.
  9267. * src/OptionHandlerFactory.cc
  9268. * src/MSEHandshake.cc
  9269. * src/HelpItemFactory.cc
  9270. * src/option_processing.cc
  9271. * src/ReceiverMSEHandshakeCommand.cc
  9272. * src/prefs.h
  9273. * src/DefaultBtAnnounce.cc
  9274. * src/InitiatorMSEHandshakeCommand.cc
  9275. * src/usage_text.h
  9276. * test/MSEHandshakeTest.cc
  9277. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Bump version number to 0.13.0b
  9279. * configure.ac
  9280. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Updated doc.
  9282. * src/MessageDigestHelper.h:
  9283. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Use raw message digest as a token instead of its hexadecimal
  9285. representation.
  9286. * src/DHTTokenTracker.cc (generateToken)
  9287. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Added Message Stream Encryption(MSE) support.
  9289. Currently, aria2 accepts incoming connections with Obfuscation Header
  9290. and legacy BitTorrent Header and establishes connections with
  9291. Obfuscation Header first and if failed then retry with legacy
  9292. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9293. choose ARC4. The new option to change the default behavior is planned.
  9294. For tracker extension, "supportcrypto=1" is added statically.
  9295. * src/PeerInitiateConnectionCommand.{h, cc}
  9296. * src/PeerConnection.{h, cc}
  9297. * src/HandleRegistry.h
  9298. * src/SocketCore.h
  9299. * src/PeerReceiveHandshakeCommand.{h, cc}
  9300. * src/BtRegistry.{h, cc}
  9301. * src/PeerListenCommand.cc
  9302. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9303. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9304. * src/MSEHandshake.{h, cc}
  9305. * src/ARC4Encryptor.h
  9306. * src/ARC4Decryptor.h
  9307. * src/LibgcryptARC4Encryptor.h
  9308. * src/LibgcryptARC4Decryptor.h
  9309. * src/LibgcryptARC4Context.h
  9310. * src/LibsslARC4Encryptor.h
  9311. * src/LibsslARC4Decryptor.h
  9312. * src/LibsslARC4Context.h
  9313. * src/DHKeyExchange.h
  9314. * src/LibgcryptDHKeyExchange.h
  9315. * src/LibsslDHKeyExchange.h
  9316. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9317. * test/DefaultBtAnnounceTest.cc
  9318. * test/ARC4Test.cc
  9319. * test/DHKeyExchangeTest.cc
  9320. Removed prepareForRetry() because it is not used.
  9321. * src/PeerAbstractCommand.{h, cc}
  9322. * src/PeerInteractionCommand.{h, cc}
  9323. * src/PeerInitiateConnectionCommand.{h, cc}
  9324. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Added the ability to load nodes from torrent file. These nodes are
  9326. added to the routing table when downloading that torrent.
  9327. * src/BtContext.h
  9328. * src/DefaultBtContext.{h, cc}
  9329. * src/DHTSetup.cc
  9330. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9331. hostname and port pair, and resolves all of them.
  9332. * src/NameResolver.{h, cc}: Added reset().
  9333. * src/RequestGroup.cc
  9334. * test/DefaultBtContextTest.cc
  9335. * test/MockBtContext.h
  9336. Removed assert() from DefaultBtContext and throw exception instead.
  9337. * src/DefaultBtContext.cc
  9338. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Fixed segmentation fault bug when exiting if dht is disabled.
  9340. * src/RequestGroup.cc
  9341. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Fixed typo in log message and define the message in message.h
  9343. * src/TimedHaltCommand.cc
  9344. * src/message.h
  9345. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Included RecoverableException.h to fix compilation error.
  9347. * test/DHTMessageFactoryImplTest.cc
  9348. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9350. * test/DHTPingMessageTest.cc
  9351. * test/DHTGetPeersMessageTest.cc
  9352. * test/DHTFindNodeMessageTest.cc
  9353. * test/DHTAnnouncePeerMessageTest.cc
  9354. * test/MockDHTMessage.h
  9355. * test/MockDHTMessageFactory.h
  9356. * test/MockDHTMessageDispatcher.h: New class.
  9357. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9359. virtual.
  9360. * src/DHTMessageDispatcher.h
  9361. * src/DHTMessageDispatcherImpl.{h, cc}
  9362. * src/DHTSetup.cc
  9363. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Adding handling of DHT error message. Just log error message and
  9365. throw exception.
  9366. * src/DHTMessageFactoryImpl.cc
  9367. * test/DHTMessageFactoryImplTest.cc
  9368. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Added handling of dynamic cast failure.
  9370. * src/DHTNodeLookupTask.cc
  9371. * src/DHTPeerLookupTask.cc
  9372. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Added the ability to stop aria2 itself when given time has passed
  9374. from start. Use --stop option to specify time in minutes.
  9375. When 0 is given, this feature is disabled.
  9376. * src/OptionHandlerFactory.cc
  9377. * src/TimeBasedCommand.h: Make _interval protected scope.
  9378. * src/HelpItemFactory.cc
  9379. * src/option_processing.cc
  9380. * src/prefs.h
  9381. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9382. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9383. Without this modification, the result list shows "ERR" when aria2 is
  9384. stopped by --stop option. It should be "INPR".
  9385. * src/DownloadEngine.{h, cc}
  9386. * src/DownloadEngineFactory.cc
  9387. * src/usage_text.h
  9388. * src/TimedHaltCommand.{h, cc}: New class.
  9389. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Bootstrap through node added by port message.
  9391. Currently bootstrap is executed if the number of buckets in routing
  9392. table is 1.
  9393. * src/BtPortMessage.{h, cc}
  9394. * src/DefaultBtMessageFactory.{h, cc}
  9395. * src/PeerInteractionCommand.cc
  9396. * test/BtPortMessageTest.cc
  9397. * test/MockDHTTask.h
  9398. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Extract the Peer class's member variables, which are only needed after
  9400. PeerInteractionCommand, into PeerSessionResource class.
  9401. This class is instantiated in PeerInteractionCommand class's ctor and
  9402. released in its dtor.
  9403. This will make Peer class lightweight and uses less memory for peers
  9404. which are not connected and wait in the queue.
  9405. * src/PeerChokeCommand.cc
  9406. * src/PeerSessionResource.{h, cc}
  9407. * src/PeerInteractionCommand.cc
  9408. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9409. * src/DefaultBtInteractive.cc
  9410. * src/BtPieceMessage.cc
  9411. * src/BtInterestedMessage.cc
  9412. * src/BtUnchokeMessage.cc
  9413. * src/DefaultPeerStorage.{h, cc}
  9414. * src/PeerInitiateConnectionCommand.cc
  9415. * src/ActivePeerConnectionCommand.cc
  9416. * src/BtNotInterestedMessage.cc
  9417. * src/DefaultBtMessageDispatcher.cc
  9418. * src/BtChokeMessage.cc
  9419. * src/BtRequestMessage.cc
  9420. * src/Peer.{h, cc}
  9421. * src/BtRegistry.h
  9422. * src/TrackerWatcherCommand.cc
  9423. * src/PeerReceiveHandshakeCommand.cc
  9424. * test/BtExtendedMessageTest.cc
  9425. * test/BtAllowedFastMessageTest.cc
  9426. * test/BtCancelMessageTest.cc
  9427. * test/DefaultPieceStorageTest.cc
  9428. * test/BtBitfieldMessageTest.cc
  9429. * test/BtHaveMessageTest.cc
  9430. * test/BtNotInterestedMessageTest.cc
  9431. * test/BtRequestMessageTest.cc
  9432. * test/PeerSessionResourceTest.cc
  9433. * test/DefaultBtMessageDispatcherTest.cc
  9434. * test/PeerTest.cc
  9435. * test/BtInterestedMessageTest.cc
  9436. * test/BtRejectMessageTest.cc
  9437. * test/BtChokeMessageTest.cc
  9438. * test/DefaultPeerStorageTest.cc
  9439. * test/BtHaveNoneMessageTest.cc
  9440. * test/BtHaveAllMessageTest.cc
  9441. * test/DefaultExtensionMessageFactoryTest.cc
  9442. * test/BtUnchokeMessageTest.cc
  9443. * test/DefaultBtMessageFactoryTest.cc
  9444. * test/HandshakeExtensionMessageTest.cc
  9445. * test/UTPexExtensionMessageTest.cc
  9446. * test/DefaultBtRequestFactoryTest.cc
  9447. * test/BtPieceMessageTest.cc
  9448. Removed typedef PeerStats.
  9449. * src/PeerStat.h
  9450. * src/SegmentMan.cc
  9451. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Added std namespace to copy, remove_copy, back_inserter,
  9453. front_inserter.
  9454. * src/RequestGroupMan.cc
  9455. * src/DefaultPieceStorage.cc
  9456. * src/StreamFileAllocationEntry.cc
  9457. * src/BtFileAllocationEntry.cc
  9458. * src/RequestGroup.cc
  9459. * src/MetalinkEntry.cc
  9460. * src/DelegatingPeerListProcessor.cc
  9461. * src/DefaultBtRequestFactory.cc
  9462. * src/DefaultBtMessageDispatcher.cc
  9463. * src/version_usage.cc: Included <algorithm>
  9464. * src/main.cc
  9465. * src/MetalinkParserController.cc
  9466. * src/DefaultBtContext.cc
  9467. * src/DownloadEngineFactory.cc
  9468. * src/a2algo.h
  9469. Removed.
  9470. * test/StreamUriListParserTest.cc
  9471. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9473. ActivePeerConnectionCommand when it is given and
  9474. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9475. * src/ActivePeerConnectionCommand.{h, cc}
  9476. * src/BtSetup.cc
  9477. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. Only add socket to DownloadEngine's select routine when peer or
  9479. localhost is unchoked and interested. This lowers CPU usage a
  9480. little bit.
  9481. * src/PeerInteractionCommand.cc
  9482. * src/PeerAbstractCommand.{h, cc}
  9483. * src/BtInteractive.h
  9484. * src/DefaultBtInteractive.{h, cc}
  9485. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Revert previous change because get_peers message is needed for
  9487. announce_peer anyway.
  9488. * src/DHTGetPeersCommand.cc
  9489. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Request peers thought DHT only when download hasn't finished.
  9491. * src/DHTGetPeersCommand.cc
  9492. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9494. * src/DHTBucketRefreshTask.{h, cc}
  9495. * src/DHTSetup.cc
  9496. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9498. standard classes.
  9499. Included string.h where mem* function are used.
  9500. Added namespace aria2.
  9501. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. Create directory before saving DHT routing table.
  9503. Now ios::failure is now handled properly.
  9504. * src/DHTAutoSaveCommand.cc
  9505. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Removed unnecessary cerr.
  9507. * src/DownloadEngine.cc
  9508. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Catch exception inside DHTMessageReceiver::receiveMessage().
  9510. Log unknown message.
  9511. * src/DHTMessageReceiver.{h, cc}
  9512. * src/DHTMessageFactory.h
  9513. * src/DHTMessageFactoryImpl.{h, cc}
  9514. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9515. * src/DHTInteractionCommand.cc
  9516. * src/DHTUnknownMessage.{h, cc}
  9517. * test/DHTUnknownMessageTest.cc
  9518. * test/MockDHTMessageFactory.h
  9519. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Commented out ip address comparison because a host can have multiple
  9521. ip addresses and it is hard to predict the hostname is resolved into
  9522. which one.
  9523. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9524. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. * po/Makefile.in: Removed since this is generated by configure.
  9526. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Fixed compiler warning about redefinition of SIZE_MAX.
  9528. Use common.h instead of config.h directly here.
  9529. * src/Platform.{h, cc}
  9530. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9531. here.
  9532. * common.h
  9533. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9534. Updated gettext related files.
  9535. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9536. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9537. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Added DHT functionality, compatible with mainline.
  9539. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9540. You may need to specify entry point to DHT network using
  9541. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9542. Use --dht-listen-port to specify port number. Make sure that your
  9543. firewall configuration can pass through UDP traffic to the port.
  9544. The routing table is saved in $HOME/.aria2/dht.dat.
  9545. * src/DHT*
  9546. * src/BNode.{h, cc}
  9547. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9548. particular torrent.
  9549. * src/Data.cc: Rewritten ctor.
  9550. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9551. --dht-entry-point.
  9552. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9553. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9554. ends, remove BtContext from DHTPeerAnnounceStorage.
  9555. * src/BtPortMessage.{h, cc}: Rewritten.
  9556. * src/message.h
  9557. * src/OptionHandlerImpl.cc
  9558. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9559. --dht-entry-point.
  9560. * src/Dictionary.{h, cc} (remove): New function.
  9561. * src/prefs.h
  9562. * src/DefaultBtMessageFactory.h
  9563. * src/BtHandshakeMessage.cc
  9564. * src/ActivePeerConnectionCommand.cc
  9565. * src/SocketCore.{h, cc}: Added datagram socket support.
  9566. * src/DefaultBtMessageFactory.cc
  9567. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9568. Create DHT commands.
  9569. * src/BtMessageFactory.h
  9570. * src/PeerMessageUtil.{h, cc}
  9571. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Fixed the bug that log file is not written when configuration file doesn't exist.
  9573. This is caused by using Logger class before LogFactory is not configured.
  9574. BUG #1875079
  9575. * src/option_processing.cc
  9576. Warning message "configuration doesn't exist" is only printed when --conf is
  9577. given.
  9578. * src/option_processing.cc
  9579. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9581. ShaVisitor is now deprecated and slated to be removed.
  9582. * src/DefaultBtContext.cc
  9583. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Externalize message to message.h
  9585. * src/Platform.cc
  9586. * src/message.h
  9587. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Set default domain and default path to cookie.
  9589. * src/HttpResponse.cc
  9590. * src/CookieBox.{h, cc}
  9591. * src/CookieParser.{h, cc}
  9592. * test/CookieParserTest.cc
  9593. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Added --no-conf and --conf-path command-line option.
  9595. --no-conf option disables loading aria2.conf file.
  9596. --conf-path option changes the configuration file path. The default
  9597. file path is $HOME/.aria2/aria2.conf
  9598. Added a warning message when the configuration file is not found.
  9599. * src/HelpItemFactory.cc
  9600. * src/option_processing.cc
  9601. * src/prefs.h
  9602. * src/usage_text.h
  9603. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Added the message to inform users that other help categories are
  9605. available in -h option.
  9606. * src/version_usage.cc
  9607. * src/TagContainer.{h, cc}
  9608. * test/TagContainerTest.cc
  9609. * src/TaggedItem.{h, cc}
  9610. * test/TaggedItemTest.cc
  9611. * src/HelpItem.h
  9612. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9614. from PiecedSegment's ctor.
  9615. Previously Piece::getAllMissingBlockIndexes() is called from
  9616. PiecedSegment() but it is rather expensive since only first element is
  9617. used.
  9618. * src/PiecedSegment.cc
  9619. * src/Piece.{h, cc}
  9620. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9622. each time these functions are called.
  9623. * src/BitfieldMan.{h, cc}
  9624. * test/BitfieldManTest.cc
  9625. * src/array_fun.h
  9626. * test/array_funTest.cc
  9627. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9628. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9629. filtered. Removed unnecessary cast to int32_t.
  9630. * src/BitfieldMan.{h, cc}
  9631. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9633. payload length(4bytes) are received. This happens because lenbufLength
  9634. is not updated in this particular case and successive call of
  9635. receiveMessage() overwrites payload length with bytes recieved which
  9636. are payload body.
  9637. * src/PeerConnection.{h, cc}
  9638. * src/message.h
  9639. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9641. peer if there are peers that have same ipaddr and port.
  9642. I've experiened segmentation fault and "pure virtual function was
  9643. called" error.
  9644. * src/Peer.h
  9645. * test/PeerTest.cc
  9646. * src/DefaultPeerStorage.cc
  9647. * test/DefaultPeerStorageTest.cc
  9648. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Removed a call to isPowerOf() because it is no longer necessary here
  9650. and a request block is not always power of 2.
  9651. BUG#1866924
  9652. * src/PeerMessageUtil.cc (checkLength)
  9653. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Fixed the bug that always first found Segment is removed from
  9655. usedSegmentEntries. Removed unused functions.
  9656. * src/SegmentMan.{h, cc}
  9657. * test/SegmentManTest.cc
  9658. Fixed the bug that ServerHost is not removed.
  9659. * src/RequestGroup.cc
  9660. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Fixed the bug that SegmentMan::completeSegment() is not called
  9662. even if Segment is complete when --lowest-speed-limit is enabled.
  9663. BUG#1864525
  9664. * src/DownloadCommand.{h, cc}
  9665. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9666. Fixed: hash algorithm 'sha1' is always used.
  9667. * src/DownloadCommand.cc (validatePieceHash)
  9668. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Added --enable-peer-exchange command-line option.
  9670. * src/OptionHandlerFactory.cc
  9671. * src/HelpItemFactory.cc
  9672. * src/option_processing.cc
  9673. * src/usage_text.h
  9674. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Move extension from BtRuntime to ExtensionMessageFactory, because
  9676. extension can be specified per peer, not per torrent.
  9677. * src/DefaultBtInteractive.cc
  9678. * src/BtRuntime.h
  9679. * src/ExtendedMessagingAware.h
  9680. * src/ExtensionMessageFactory.h
  9681. * src/DefaultExtensionMessageFactory.cc
  9682. * test/DefaultExtensionMessageFactoryTest.cc
  9683. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Added categorized option help. Specify category using --help option.
  9685. Also added the ability to search options in forward match.
  9686. * src/HelpItem.{h, cc}
  9687. * test/HelpItemTest.cc
  9688. * src/HelpItemFactory.{h, cc}
  9689. * src/TagContainer.{h, cc}
  9690. * test/TagContainerTest.cc
  9691. * src/option_processing.cc
  9692. * src/prefs.h
  9693. * src/TaggedItem.{h, cc}
  9694. * test/TaggedItemTest.cc
  9695. * src/version_usage.cc
  9696. * src/help_tags.h
  9697. * src/usage_text.h
  9698. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Fixed segmentation fault when bad torrent metainfo is parsed.
  9700. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9701. and then throw exception or skip it.
  9702. * src/DefaultBtContext.{h, cc}
  9703. * test/DefaultBtContextTest.cc
  9704. * src/AnnounceList.cc
  9705. * src/CompactPeerListProcessor.cc
  9706. * src/message.h
  9707. * src/DefaultBtAnnounce.{h, cc}
  9708. * test/DefaultBtAnnounceTest.cc
  9709. * src/BencodeVisitor.cc
  9710. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. Added missing "B"(=Byte). So now the message looks like this:
  9712. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9713. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9714. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Show the seed ratio after torrent downloads.
  9716. For example, after torrent download completed and --seed-time and
  9717. --seed-ratio conditions are fulfilled, following message is printed
  9718. right after "Download complete: .....":
  9719. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9720. * src/RequestGroupMan.cc
  9721. * src/RequestGroup.{h, cc}
  9722. * src/message.h
  9723. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Remove a defunct control file. A defunct control file means that while
  9725. it exists, but the corresponding download file is missing.
  9726. After its removal, a download restarts from the beginning.
  9727. * src/RequestGroup.cc
  9728. * src/message.h
  9729. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Allocate bitfield in Peer when it is really used. More specifically,
  9731. bitfield in Peer is allocated after the connection is established and
  9732. deallocated when the connection is dropped.
  9733. Since 2 parameters(piece length and total length) was removed from the
  9734. constructor of Peer class, many test classes were modified accordingly.
  9735. See svn log for more detailed information.
  9736. * src/PeerInteractionCommand.cc
  9737. * src/CompactPeerListProcessor.cc
  9738. * src/Peer.cc
  9739. * src/DefaultPeerListProcessor.cc
  9740. * src/PeerListenCommand.cc
  9741. * src/PeerReceiveHandshakeCommand.cc
  9742. Fixed memory leak
  9743. * src/Piece.cc
  9744. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9746. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9747. command-line options.
  9748. * src/option_processing.cc
  9749. * src/ActivePeerConnectionCommand.cc
  9750. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Send have message to peer if it already has the piece.
  9752. * src/BtHaveMessage.{h, cc}
  9753. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9755. port.
  9756. * src/DefaultPeerStorage.{h, cc}
  9757. * test/DefaultPeerStorageTest.cc
  9758. * src/HandshakeExtensionMessage.cc
  9759. * test/HandshakeExtensionMessageTest.cc
  9760. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9761. * src/PeerStorage.h
  9762. * test/MockPeerStorage.h
  9763. * src/PeerListenCommand.cc
  9764. * src/PeerReceiveHandshakeCommand.cc
  9765. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Added --metalink-enable-unique-protocol option.
  9767. * src/Metalink2RequestGroup.cc
  9768. * src/option_processing.cc
  9769. * src/prefs.h
  9770. * src/version_usage.cc
  9771. * doc/aria2c.1.txt
  9772. * doc/aria2c.1
  9773. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Allow a peer in incomingPeer to be added peers.
  9775. * src/DefaultPeerStorage.cc
  9776. * test/DefaultPeerStorageTest.cc
  9777. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9779. I could reproduce this bug in following procedure:
  9780. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9781. 2. Restart aria2.
  9782. 3. You see the download stopped around 99%.
  9783. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9784. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9785. If timeout is reached, then _nextCommand is unused and it may contains
  9786. segments and they won't be canceled. Actually, timeout is not needed
  9787. here because if the server dropped connection, then retry is made.
  9788. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Added uTorrent compatible Peer Exchange.
  9790. * src/BencodeVisitor.{h, cc}
  9791. * test/BencodeVisitorTest.cc
  9792. * src/BtConstants.h
  9793. * src/BtContext.h: Added 'private' flag.
  9794. * src/BtExtendedMessage.{h, cc}
  9795. * test/BtExtendedMessageTest.cc
  9796. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9797. reserved field.
  9798. * test/BtHandshakeMessageTest.cc
  9799. * src/BtMessageFactory.h
  9800. * src/BtRegistry.h
  9801. * src/BtRuntime.h: This class holds default extension message IDs for
  9802. aria2. By default, aria2 uses ID 8 for ut_pex.
  9803. * src/DefaultBtContext.cc
  9804. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9805. When it is true, aria2 enables ut_pex. This value is set by
  9806. PeerInteractionCommand.
  9807. * src/DefaultBtMessageFactory.{h, cc}
  9808. * test/DefaultBtMessageFactoryTest.cc
  9809. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9810. handling to DefaultBtInteractive class.
  9811. * src/DefaultExtensionMessageFactory.{h, cc}
  9812. * test/DefaultExtensionMessageFactoryTest.cc
  9813. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9814. the container(peers and incomingPeers. The equality is determined by
  9815. Peer::id).
  9816. * test/DefaultPeerStorageTest.cc
  9817. * src/ExtensionMessage.h
  9818. * test/MockExtensionMessage.h
  9819. * src/ExtensionMessageFactory.h
  9820. * test/MockExtensionMessageFactory.h
  9821. * src/HandshakeExtensionMessage.{h, cc}
  9822. * test/HandshakeExtensionMessageTest.cc
  9823. * src/MetaEntry.h
  9824. * src/Peer.{h, cc}
  9825. * src/PeerInteractionCommand.cc
  9826. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9827. addIncomingPeer.
  9828. * src/PeerMessageUtil.{h, cc}
  9829. * src/PeerObject.h
  9830. * src/UTPexExtensionMessage.{h, cc}
  9831. * test/UTPexExtensionMessageTest.cc
  9832. * src/message.h
  9833. * src/prefs.h
  9834. Fixed the bug that returns incomplete data when it contains null
  9835. character. A convenient constructor was also added.
  9836. * src/Data.{h, cc}
  9837. Rewritten.
  9838. * src/CompactPeerListProcessor.cc
  9839. Fixed typos.
  9840. * src/message.h
  9841. * src/MetaFileUtil.cc
  9842. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Added "Status Legend" label to the explanation text of 'stat' in
  9844. download result and moved it to the last. BUG#1848214
  9845. * src/RequestGroupMan.cc
  9846. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9848. * src/Makefie.am
  9849. * test/Makefile.am
  9850. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Fixed the bug that prevents aria2 from loading cookie file when expire
  9852. value is greater than 2^31-1. BUG#1851066
  9853. * src/CookieBoxFactory.cc
  9854. * test/CookieBoxFactoryTest.cc
  9855. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Fixed possible memory leak when an exception is thrown.
  9857. * src/XML2SAXMetalinkProcessor.cc
  9858. Added Expat support. If both libxml2 and Expat are installed, then
  9859. libxml2 is used by default.
  9860. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9861. ExpatMetalinkProcessor according to the configuration.
  9862. * src/ExpatMetalinkProcessor.{h, cc}
  9863. * src/main.cc: Removed libxml2 specific header and init/free function.
  9864. * src/MetalinkProcessorFactory.{h, cc}
  9865. * src/MetalinkHelper.cc
  9866. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9867. * src/MetalinkProcessor.h
  9868. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9869. MetalinkProcessorTest is used instead.
  9870. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9871. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9872. MetalinkProcessorFactory::newInstance().
  9873. * m4/libexpat.m4
  9874. * configure.ac: Added configuration options for libexpat.
  9875. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Disabled -s option in metalink download.
  9877. * src/Metalink2RequestGroup.cc
  9878. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9879. If several protocols are available for a mirror in metalink file,
  9880. aria2 now use one of them. --metalink-preferred-protocol option was
  9881. added to specify the preference of protocol.
  9882. * src/AbstractCommand.cc
  9883. * src/OptionHandlerFactory.cc
  9884. * src/ServerHost.{h, cc}
  9885. * src/Metalink2RequestGroup.cc
  9886. * src/RequestGroup.{h, cc}
  9887. * test/RequestGroupTest.cc
  9888. * src/option_processing.cc
  9889. * src/prefs.h
  9890. * src/HttpResponseCommand.cc
  9891. * src/MetalinkResource.{h, cc}
  9892. * src/FtpNegotiationCommand.cc
  9893. * src/MetalinkEntry.{h, cc}
  9894. * src/MetalinkEntryTest.cc
  9895. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Code cleanup and added debug log.
  9897. * src/PeerConnection.cc
  9898. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Compiler error fix: applied the patch by Tiziano Mueller
  9900. * src/RequestGroup.cc
  9901. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9902. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9903. in stopped and completed event.
  9904. * src/AnnounceList.{h, cc}
  9905. * test/AnnounceListTest.cc
  9906. * src/DefaultBtAnnounce.cc
  9907. * test/DefaultBtAnnounceTest.cc
  9908. Sorted URLs.
  9909. * test/Metalink2RequestGroupTest.cc
  9910. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Removed unnecessary string copy. Updated doc and corrected indentation.
  9912. * src/Base64.cc
  9913. Fixed compilation warnings
  9914. * test/DataTest.cc
  9915. * test/HttpRequestTest.cc
  9916. * test/MetaFileUtilTest.cc
  9917. * test/RequestTest.cc
  9918. * Release 0.12.0
  9919. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Updated translations
  9921. * po/{de,fr,ja,nl,ru}.po
  9922. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9923. translations. Many thanks to translators.
  9924. * po/{ca,es,it,pt_BR,sv}.po
  9925. * po/LINGUAS
  9926. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Added a notice about URL
  9928. * src/version_usage.cc
  9929. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9930. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9931. aria2 repeatedly sends stopped request when tracker returns error code.
  9932. * src/AnnounceList.cc
  9933. * test/AnnounceListTest.cc
  9934. * src/AnnounceTier.h
  9935. Added a message when ctrl-c is hit.
  9936. Now second ctrl-c is also handled in signal handler.
  9937. * src/RequestGroupMan.{h, cc}
  9938. * src/RequestGroup.{h, cc}
  9939. * src/MultiUrlRequestInfo.cc
  9940. * src/DownloadEngine.cc
  9941. * src/TrackerWatcherCommand.cc
  9942. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Code cleanup
  9944. * src/Base64.cc (encode)
  9945. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Changed Direct/IO enable/disable procesure in file allocation routine.
  9947. * src/SingleFileAllocationIterator.cc
  9948. (SingleFileAllocationIterator):
  9949. Disable directIO if offset is not multiple of 512.
  9950. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9951. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9952. Enable created SingleFileAllocationIterator's directIO.
  9953. * src/FileAllocationEntry.cc
  9954. (FileAllocationEntry): Enable directIO here.
  9955. (~FileAllocationEntry): Disable directIO here.
  9956. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9958. * src/Peer.{h, cc}
  9959. * src/DefaultPieceStorage.cc
  9960. * test/DefaultPieceStorageTest.cc
  9961. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Rewritten direct I/O support routine
  9963. * src/SingleFileAllocationIterator.cc
  9964. * src/MultiDiskAdaptor.{h, cc}
  9965. * src/ByteArrayDiskWriter.h
  9966. * src/AbstractSingleDiskAdaptor.h
  9967. * src/AbstractDiskWriter.cc
  9968. * src/DefaultPieceStorage.cc
  9969. * src/DiskWriter.h
  9970. * src/BinaryStream.h
  9971. * src/IteratableChunkChecksumValidator.cc
  9972. * src/IteratableChecksumValidator.cc
  9973. * src/CheckIntegrityEntry.cc
  9974. * src/FileAllocationEntry.cc
  9975. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Fixed typo
  9977. * src/version_usage.cc
  9978. Updated doc
  9979. * doc/aria2c.1.txt
  9980. * doc/aria2c.1
  9981. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Fixed compile error without message digest support.
  9983. * src/FileMetalinkParserState.cc
  9984. * src/MetalinkParserController.{h, cc}
  9985. * test/XML2SAXMetalinkProcessorTest.cc
  9986. * test/MetalinkParserControllerTest.cc
  9987. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Enable direct I/O support in checksum checking.
  9989. * src/IteratableChunkChecksumValidator.{h, cc}
  9990. * test/IteratableChunkChecksumValidatorTest.cc
  9991. * src/CheckIntegrityEntry.cc
  9992. * src/PieceHashCheckIntegrityEntry.cc
  9993. * src/IteratableChecksumValidator.{h, cc}
  9994. * src/BtCheckIntegrityEntry.cc: Added doc.
  9995. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Added --allow-piece-length-change option.
  9997. * src/DefaultBtProgressInfoFile.cc
  9998. * test/DefaultBtProgressInfoFileTest.cc
  9999. * src/OptionHandlerFactory.cc
  10000. * src/option_processing.cc
  10001. * src/prefs.h
  10002. * src/version_usage.cc
  10003. * doc/aria2c.1.txt
  10004. * doc/aria2c.1
  10005. Fixed: duplicated result entry appears when exception is thrown in
  10006. RequestGroup::createInitiateConnectionCommand().
  10007. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10008. Add RequestGroup to _requestGroup after RequetGroup::
  10009. createInitiateConnectionCommand() succeeds.
  10010. Externalized message
  10011. * src/XML2SAXMetalinkProcessor.cc
  10012. * src/message.h
  10013. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Forced download abort when received negative response from http/ftp
  10015. server.
  10016. * src/HttpResponseCommand.cc
  10017. * src/FtpNegotiationCommand.cc
  10018. * src/HttpResponse.cc
  10019. * src/FtpConnection.cc
  10020. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10022. the predecessor, Xml2MetalinkParser class.
  10023. I tested them against 94KB metalink file with 1234 chunk checksums.
  10024. The new one parsed it in 22msec, while it took 6000msec with old one.
  10025. * src/XML2SAXMetalinkProcessor.{h, cc}
  10026. * test/XML2SAXMetalinkProcessorTest.cc
  10027. * src/MetalinkParserController.{h, cc}
  10028. * test/MetalinkParserControllerTest.cc
  10029. * src/MetalinkParserState.h: Also added 16 subclasses.
  10030. * src/main.cc
  10031. * src/Metalink2RequestGroup.cc
  10032. * src/MetalinkHelper.cc
  10033. * src/MetalinkEntry.cc
  10034. * src/ChunkChecksum.h
  10035. Rewritten Base64 class for better performance.
  10036. * src/Base64.{h, cc}
  10037. * test/Base64Test.cc
  10038. * src/HttpRequest.cc
  10039. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Fixed the bug#1841757: aria2 will connect to server to only get
  10041. file size.
  10042. * src/StreamFileAllocationEntry.cc
  10043. * src/option_processing.cc
  10044. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10045. downloads.
  10046. * src/FtpNegotiationCommand.cc
  10047. Suppressed wrong message when finding PreDownloadHandler
  10048. * src/RequestGroup.cc
  10049. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Updated usage
  10051. * src/version_usage.cc
  10052. Updated man page
  10053. * doc/aria2c.1.txt
  10054. * doc/aria2c.1
  10055. Updated po files
  10056. * po/aria2c.pot
  10057. * po/*.po
  10058. * po/*.gmo
  10059. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Eliminated g++-4.2 warning
  10061. * src/DownloadHandlerConstants.{h, cc}
  10062. * src/Util.cc
  10063. * test/MetaFileUtilTest.cc
  10064. * test/PStringBuildVisitorTest.cc
  10065. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10066. * src/RequestGroup.cc
  10067. * src/BtCheckIntegrityEntry.cc
  10068. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Fixed a2io.h
  10070. * src/a2io.h
  10071. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. Added direct I/O support. The current implementation uses O_DIRECT,
  10073. which is not posix standard and is tested on linux 2.6.21.
  10074. Currently only file allocation uses direct I/O.
  10075. * src/SingleFileAllocationIterator.{h, cc}
  10076. * test/SingleFileAllocationIteratorTest.cc
  10077. * src/MultiFileAllocationIterator.{h, cc}
  10078. * test/MultiFileAllocationIteratorTest.cc
  10079. * src/BinaryStream.h
  10080. * src/DiskWriter.h
  10081. * src/AbstractDiskWriter.{h, cc}
  10082. * src/ByteArrayDiskWriter.h
  10083. * src/DiskAdaptor.h
  10084. * src/AbstractSingleDiskAdaptor.{h, cc}
  10085. * src/MultiDiskAdaptor.{h, cc}
  10086. * src/FileAllocationEntry.cc
  10087. * src/Util.{h, cc}
  10088. * src/OptionHandlerFactory.cc
  10089. * src/prefs.h
  10090. * src/version_usage.cc
  10091. * src/option_processing.cc
  10092. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10093. handleException.
  10094. * src/MultiFileAllocationIterator.cc
  10095. Added EINTR handling
  10096. * src/SocketCore.cc
  10097. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Updated usage
  10099. * src/version_usage.cc
  10100. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Applied Ross's patch for MinGW port.
  10102. * src/DownloadEngine.h
  10103. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Set Content-Type to SingleFileDownloadContext when http response is
  10105. received.
  10106. * src/HttpResponseCommand.cc
  10107. * src/HttpResponse.{h, cc}
  10108. * test/HttpResponseTest.cc
  10109. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10110. Rewritten to add content-type support.
  10111. * src/DownloadHandler.{h, cc}
  10112. * src/BtPostDownloadHandler.{h, cc}
  10113. * test/BtPostDownloadHandlerTest.cc
  10114. * src/MetalinkPostDownloadHandler.{h, cc}
  10115. * test/MetalinkPostDownloadHandlerTest.cc
  10116. * src/PostDownloadHandler.{h, cc}
  10117. * src/DownloadHandlerConstants.{h, cc}
  10118. * src/RequestGroup.cc
  10119. * src/HttpResponseCommand.cc
  10120. * src/FtpNegotiationCommand.cc
  10121. * src/SingleFileDownloadContext.{h, cc}
  10122. * src/RequestGroup.h
  10123. * src/RequestGroupCriteria.h
  10124. * src/ContentTypeRequestGroupCriteria.h
  10125. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10126. If it is give, metalink/torrent file is not written to the disk, but
  10127. just is kept in memory. Parsing is occurred on memory.
  10128. * src/MetalinkHelper.{h, cc}
  10129. * src/MetalinkProcessor.h
  10130. * src/Xml2MetalinkProcessor.{h, cc}
  10131. * test/Xml2MetalinkProcessorTest.cc
  10132. * src/DownloadHandlerFactory.{h, cc}
  10133. * test/DownloadHandlerFactoryTest.cc
  10134. * src/PreDownloadHandler.{h, cc}
  10135. * src/OptionHandlerFactory.cc
  10136. * src/DefaultBtContext.{h, cc}
  10137. * test/DefaultBtContextTest.cc
  10138. * src/version_usage.cc
  10139. * src/Metalink2RequestGroup.{h, cc}
  10140. * src/RequestGroup.{h, cc}
  10141. * src/a2functional.h
  10142. * test/a2functionalTest.cc
  10143. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10144. * src/OptionHandlerImpl.h
  10145. * src/prefs.h
  10146. * src/Util.{h, cc}
  10147. * test/UtilTest.cc
  10148. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10149. memory usage.
  10150. * src/RequestGroupMan.{h, cc}
  10151. * src/DownloadEngine.cc
  10152. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10153. WeakHandle to SharedHandle because WeakHandle could be null.
  10154. * src/RequestGroup.{h, cc}
  10155. * src/DownloadEngineFactory.cc
  10156. * src/DownloadResult.h
  10157. Set totalLength after download finished
  10158. * src/UnknownLengthPieceStorage.{h, cc}
  10159. Keep torrent file specified in metalink in memory.
  10160. * src/Metalink2RequestGroup.cc
  10161. * src/BtDependency.cc
  10162. * src/TrueRequestGroupCriteria.h
  10163. Fixed the bug: seekg is used where seekp should be used.
  10164. * src/ByteArrayDiskWriter.cc
  10165. * test/ByteArraydiskWriterTest.cc
  10166. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10167. Fixed syntax error
  10168. * test/SequenceTest.cc
  10169. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10171. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10172. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10173. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10174. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Added the check to see whether ares_host_callback accepts timeouts
  10176. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10177. * src/NameResolver.{h, cc}
  10178. * m4/libcares.m4
  10179. * configure.ac: Set C++ for language choice.
  10180. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Fixed: compilation fails without c-ares/ares
  10182. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10183. Generate http/ftp commands only when download is incomplete.
  10184. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10185. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Corrected typo. Examples are removed since they are available in man
  10187. page.
  10188. * src/version_usage.cc
  10189. Updated man page.
  10190. * doc/aria2c.1
  10191. * doc/aria2c.1.txt
  10192. * doc/makeman: Commented out sed command.
  10193. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Throw DlAbortEx when a remote file is not found.
  10195. * src/HttpResponse.cc
  10196. * src/FtpNegotiationCommand.cc
  10197. * src/message.h
  10198. Overwrite an existing file if --allow-overwrite=true is given.
  10199. * src/RequestGroup.cc
  10200. Removed unused functions
  10201. * src/AbstractCommand.h
  10202. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Removed 'extern' from 'extern typedef ...' in src/*.h
  10204. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Updated usage
  10206. * src/version_usage.cc
  10207. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10208. Trim announce URL
  10209. * src/DefaultBtContext.cc
  10210. * test/ShaVisitorTest.cc
  10211. Trim argument s. Give trimed s to exception constructor.
  10212. * src/Util.cc (parseInt)(parseLLInt)
  10213. * test/UtilTest.cc
  10214. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Set precision back to 1.
  10216. * src/ConsoleStatCalc.cc (calculateStat)
  10217. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Replaced strtol with Util::parseInt
  10219. * src/ChunkedEncoding.cc
  10220. * src/HttpConnection.cc
  10221. * src/CookieBoxFactory.cc
  10222. * src/ParameterizedStringParser.cc
  10223. * src/Util.cc
  10224. * test/UtilTest.cc
  10225. * test/OptionHandlerTest.cc
  10226. * src/Request.cc
  10227. Throw exception when empty string is given. The message for exception
  10228. changed.
  10229. * src/Util.cc (parseInt)(parseLLInt)
  10230. * src/message.h
  10231. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10233. set to 1.
  10234. * src/ConsoleStatCalc.cc (calculateStat)
  10235. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. Preallocate non-requested file which is adjacent forward to requested
  10237. file('requested' files means the files given in --select-file option)
  10238. if they share a same piece.
  10239. This fixes long pause in the file system which doesn't support sparse
  10240. files like FAT32 while downloading.
  10241. * src/MultiFileAllocationIterator.{h, cc}
  10242. * test/MultiFileAllocationIteratorTest.cc
  10243. * src/FileEntry.{h, cc}
  10244. Removed unused _option.
  10245. * src/MultiDiskAdaptor.h
  10246. * test/MultiDiskAdaptorTest.cc
  10247. * src/DefaultPieceStorage.cc
  10248. Set the default value of --seed-ratio to 1.0.
  10249. If 0.0 is given, then seeding continues regardless of share ratio.
  10250. * src/version_usage.cc
  10251. * src/option_processing.cc
  10252. * src/BtSetup.cc
  10253. * doc/aria2c.1.txt
  10254. * doc/aria2c.1
  10255. Fixed: Selective download is not working in BitTorrent
  10256. * src/RequestGroup.cc
  10257. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10258. * src/PieceStorage.h
  10259. * test/MockPieceStorage.h
  10260. * src/UnknownLengthPieceStorage.h
  10261. * src/DefaultPieceStorage.{h, cc}
  10262. * src/Metalink2RequestGroup.cc
  10263. * src/RequestGroup.cc
  10264. * src/Sequence.h
  10265. * test/SequenceTest.cc
  10266. * src/IntSequence.h
  10267. * src/message.h
  10268. * src/Util.{h, cc}
  10269. * test/UtilTest.cc
  10270. Added new function 'parse' to catch exception thrown by subclass's
  10271. parseArg
  10272. * src/OptionHandler.h
  10273. * src/OptionParser.cc
  10274. * src/NameMatchOptionHandler.h
  10275. * src/OptionHandlerImpl.h
  10276. * test/OptionHandlerTest.cc
  10277. Added IntegerRangeOptionHandler. Used for --listen-port and
  10278. --select-file. Now --listen-port accepts range of port.
  10279. * src/OptionHandlerFactory.cc
  10280. * src/version_usage.cc
  10281. * src/OptionHandlerImpl.h
  10282. * src/option_processing.cc
  10283. * src/BtSetup.cc
  10284. * src/PeerListenCommand.{h, cc}
  10285. * doc/aria2c.1.txt
  10286. * doc/aria2c.1
  10287. Implemented operator< for Exception class to provide easy way to print
  10288. exception stack trace.
  10289. * src/Exception.{h, cc}
  10290. * src/main.cc
  10291. * src/option_processing.cc
  10292. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. * src/version_usage.cc
  10294. (showVersion): Reworked.
  10295. (showUsage): Added examples.
  10296. Removed Hint for total length and file name.
  10297. * src/Metalink2RequestGroup.cc
  10298. * src/RequestGroup.{h, cc}
  10299. * src/HttpResponseCommand.cc
  10300. * src/FtpNegotiationCommand.cc
  10301. Now --follow-torrent and --follow-metalink option work properly.
  10302. * src/RequestGroup.cc
  10303. Updated man page
  10304. * doc/aria2c.1.txt
  10305. * doc/aria2c.1
  10306. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Removed.
  10308. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10309. Use Segment::operator==()
  10310. * src/HttpConnection.cc
  10311. * src/Segment.h
  10312. Updated usage
  10313. * src/version_usage.cc
  10314. Added EINTR treatment.
  10315. * src/SocketCore.cc
  10316. * src/AbstractDiskWriter.cc
  10317. Rewritten.
  10318. * src/Util.cc (rangedFileCopy)
  10319. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10320. Fixed typo.
  10321. * src/version_usage.cc
  10322. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. Implemented. Now -c option works fine.
  10324. * src/DefaultPieceStorage.cc (markPiecesDone)
  10325. * test/DefaultPieceStorageTest.cc
  10326. Removed.
  10327. * src/SegmentMan.{h, cc}
  10328. (markAllPiecesDone)
  10329. (markPieceDone)
  10330. Synchronized po files with
  10331. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10332. * src/fr.po
  10333. * src/ru.po
  10334. * src/de.po
  10335. * src/ja.po
  10336. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Added ifdef and some modifications to compile without BitTorrent,
  10338. Metalink, MessageDigest
  10339. support.
  10340. * src/PieceHashCheckIntegrityEntry.cc
  10341. * src/MetalinkEntry.h
  10342. * src/version_usage.cc
  10343. * src/main.cc
  10344. * src/DownloadEngine.{h, cc}
  10345. * src/Metalink2RequestGroup.cc
  10346. * src/Peer.cc
  10347. * src/RequestGroup.cc
  10348. * src/MetalinkHelper.cc
  10349. * test/DefaultPieceStorageTest.cc
  10350. * test/MetalinkPostDownloadHandlerTest.cc
  10351. * test/Metalink2RequestGroupTest.cc
  10352. Hide TOTAL SPD when all downloads complete.
  10353. * src/ConsoleStatCalc.cc
  10354. Log target system information.
  10355. * src/main.cc
  10356. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Now --metalink-location accepts a comma-deliminated list of locations.
  10358. * src/MetalinkEntry.{h, cc}
  10359. * test/MetalinkEntryTest.cc
  10360. * src/version_usage.cc
  10361. * src/Metalink2RequestGroup.cc
  10362. * src/Xml2MetalinkProcessor.cc
  10363. * test/Xml2MetalinkProcessorTest.cc
  10364. * doc/aria2c.1.txt
  10365. * doc/aria2c.1
  10366. * src/Util.cc (toUpper)(toLower): Rewritten.
  10367. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. Added the ability to detect duplicate download entry which is about to
  10369. download the same file other RequestGroup is downloading.
  10370. * src/RequestGroup.cc
  10371. * src/HttpResponseCommand.cc
  10372. * src/FtpNegotiationCommand.cc
  10373. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Recalculates download progress when loading a control file,
  10375. if the piece length of DownloadContext is different from the one saved
  10376. in the control file. Currently in-flight pieces are ignored.
  10377. * src/DefaultBtProgressInfoFile.cc
  10378. * test/DefaultBtProgressInfoFileTest.cc
  10379. * src/Util.{h, cc}
  10380. * test/UtilTest.cc
  10381. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10382. Do not rotate tiers in announce-list.
  10383. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10384. AnnounceList::allTiersFailed() used instead to detect whether all
  10385. tiers are tried and failed.
  10386. * test/DefaultBtAnnounceTest.cc
  10387. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10388. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10389. * test/AnnounceListTest.cc
  10390. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10391. clause. Catch RecoverableException instead of DlRetryEx instead.
  10392. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10393. Implemented checksum validation feature(1 checksum for each file)
  10394. The validation takes place after the download.
  10395. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10396. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10397. * src/CheckIntegrityCommand.cc: Changed log message.
  10398. * src/Metalink2RequestGroup.cc: Set checksum to
  10399. SingleFileDownloadContext.
  10400. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10401. PieceHashCheckIntegrity class.
  10402. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10403. PieceHashCheckIntegrity class.
  10404. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10405. * src/IteratableValidator.h: New class.
  10406. * src/message.h
  10407. * src/CheckIntegrityEntry.{h, cc}
  10408. * src/IteratableChunkChecksumValidator.{h, cc}
  10409. * src/SingleFileDownloadContext.h
  10410. * src/DownloadCommand.cc
  10411. --allow-overwrite=true is no longer needed to check file integrity
  10412. before download in BitTorrent download.
  10413. * src/RequestGroup.cc (getInitialCommand)
  10414. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10415. throws exception.
  10416. * src/RequestGroupMan.cc (getInitialCommands)
  10417. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10418. urlencode the given url inside Request::parseUrl(...)
  10419. * src/Request.{h, cc}
  10420. * src/Util.{h, cc}
  10421. * test/RequestTest.cc
  10422. Removed #!metalink3! notation support because it is deleted from
  10423. the metalink specification.
  10424. * src/Request.{h, cc}
  10425. * test/RequestTest.cc
  10426. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. Don't connect server before checking file integrity at startup, if
  10428. filesize and output file path are known.
  10429. * src/AbstractCommand.cc
  10430. * src/StreamFileAllocationEntry.cc
  10431. * src/Metalink2RequestGroup.cc
  10432. * src/RequestGroup.{h, cc}
  10433. * src/HttpResponseCommand.cc
  10434. * src/FtpNegotiationCommand.cc
  10435. Added DownloadFailureException. If it is thrown, RequestGroup should
  10436. halt.
  10437. * src/AbstractCommand.cc
  10438. * src/DownloadFailureException.h
  10439. * src/RequestGroup.cc
  10440. Catch RecoverableException, instead of DlAbortEx.
  10441. * src/RequestGroupMan.cc
  10442. * src/FillRequestGroupCommand.cc
  10443. * src/MetaFileUtil.cc
  10444. * src/IteratableChunkChecksumValidator.cc
  10445. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10446. getGID())
  10447. * src/CheckIntegrityCommand.cc
  10448. * src/message.h
  10449. Print gid instead of idx.
  10450. * src/RequestGroupMan.cc
  10451. Removed exception throwers declaration.
  10452. * src/DirectDiskAdaptor.{h, cc}
  10453. * src/SocketCore.{h, cc}
  10454. * src/MultiDiskAdaptor.{h, cc}
  10455. * src/HttpConnection.{h, cc}
  10456. * src/HttpResponse.{h, cc}
  10457. * src/DiskAdaptor.{h, cc}
  10458. * src/CopyDiskAdaptor.{h, cc}
  10459. * src/MultiDiskAdaptor.{h, cc}
  10460. * src/HttpHeaderProcessor.{h, cc}
  10461. * src/AbstractSingleDiskAdaptor.{h, cc}
  10462. * src/Util.{h, cc}
  10463. * test/UtilTest.cc
  10464. * src/DefaultDiskWriter.{h, cc}
  10465. * src/FtpConnection.{h, cc}
  10466. * src/AbstractDiskWriter.{h, cc}
  10467. Removed duplicate code.
  10468. * src/StreamCheckIntegrityEntry.cc
  10469. Removed unnecessary include.
  10470. * src/DiskWriter.h
  10471. Included Exception.h
  10472. * src/option_processing.cc
  10473. Included 2 files and added doc
  10474. * src/TrackerWatcherCommand.cc
  10475. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10476. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10477. Changed CheckIntegrityEntry interface so that it can define
  10478. the action when all the chunk checksums are valid.
  10479. * src/CheckIntegrityEntry.h
  10480. * src/StreamCheckIntegrityEntry.{h, cc}
  10481. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10482. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10483. to exit rather than doing seeding. So, it would be good to toggle this
  10484. behavior.
  10485. * src/CheckIntegrityCommand.cc
  10486. * src/AbstractCommand.cc
  10487. * src/RequestGroup.cc
  10488. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Reflect the download length of in-flight pieces.
  10490. It makes the download length readout more precise.
  10491. * src/DefaultPieceStorage.{h, cc}
  10492. * test/DefaultPieceStorageTest.cc
  10493. * src/a2functional.h
  10494. * test/a2functionalTest.cc
  10495. Lower CPU load when --max-download-limit is used.
  10496. There is up and down in speed indicator when enabling
  10497. http-pipelining but a download goes well. I think the problem is that
  10498. because http-pipelining is enabled, DownloadCommand is created for
  10499. each segment and in its constructor, PeerStat::downloadStart() is
  10500. called. In PeerStat::downloadStart(), speed calculation object is
  10501. reseted, which makes download speed zero.
  10502. * src/DownloadCommand.cc
  10503. Rewritten using accumulate.
  10504. * src/RequestGroupMan.cc (calculateStat)
  10505. Code clearnup.
  10506. * src/FtpNegotiationCommand.cc
  10507. * src/HttpResponseCommand.cc
  10508. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Fixed: Can not resume: aria2 reports download already finished.
  10510. * src/AbstractCommand.{h, cc}
  10511. * src/HttpResponseCommand.cc
  10512. * src/FtpNegotiateCommand.cc
  10513. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Now a file is stored in the directory specified in .metalnk file
  10515. (file[@name]).
  10516. * src/Metalink2RequestGroup.cc
  10517. Create the directory structure when opening the file if it doesn't
  10518. exist.
  10519. * src/AbstractDiskWriter.cc
  10520. * src/Util.{h, cc}
  10521. * src/File.h
  10522. * test/UtilTest.cc
  10523. Removed file name comparison
  10524. * src/Metalink2RequestGroup.cc
  10525. * src/HttpResponseCommand.cc
  10526. Rewritten using Util::mkdirs()
  10527. * src/FileEntry.cc (setupDir)
  10528. * test/FileEntryTest.cc
  10529. Updated doc
  10530. * src/SingleFileDownloadContext.h
  10531. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10532. Now SleepCommand dispatches nextCommand when halt is requested.
  10533. It avoids a possible long wait after hitting CTRL-C.
  10534. * src/SleepCommand.{h, cc}
  10535. * src/RequestGroupAware.{h, cc}
  10536. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10538. to open listen port, then remove the port number from the tracker
  10539. request.
  10540. * src/DefaultBtAnnounce.cc
  10541. * test/DefaultBtAnnounceTest.cc
  10542. * test/MockPieceStorage.h
  10543. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10544. them more testable.
  10545. * src/DefaultBtAnnounce.{h, cc}
  10546. * src/DefaultBtContext.{h, cc}
  10547. * src/Util.{h, cc}
  10548. * test/DefaultBtAnnounceTest.cc
  10549. * test/DefaultBtContextTest.cc
  10550. * test/UtilTest.cc
  10551. Added 'B' to upload bytes readout.
  10552. * src/ConsoleStatCalc.cc
  10553. Now the listen port for BitTorrent download is opened when it is
  10554. needed.
  10555. * src/DownloadEngineFactory.cc
  10556. * src/BtSetup.{h, cc}
  10557. * src/PeerListenCommand.{h, cc}
  10558. Now an exception thrown while parsing tracker response is now logged.
  10559. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10560. called, which means no retry is made in this case, assuming a tracker
  10561. has a problem.
  10562. * src/TrackerWatcherCommand.cc
  10563. Fixed: downloading a file whose length is unkown fails.
  10564. * src/DownloadCommand.cc
  10565. Simplified prepareForNextSegment()
  10566. * src/DownloadCommand.cc
  10567. Updated
  10568. * po/POTFILES.in
  10569. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. Re-implemented a file listing for Metalink, which was dropped while
  10571. http/ftp/torrent integration was being implemented.
  10572. * src/MetalinkHelper.{h, cc}: New class.
  10573. * test/MetalinkHelperTest.cc
  10574. * src/main.cc
  10575. * src/Metalink2RequestGroup.cc
  10576. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. Added the ability to display the detailed torrent file information.
  10578. Now -S option gives not only a file listing, but also total download
  10579. length, info hash, announce URI, piece length, the number of pieces,
  10580. and mode(single or multi-torrent).
  10581. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10582. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10583. KiB)
  10584. * test/UtilTest.cc
  10585. * src/main.cc
  10586. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Added ftp://USER:PASSWD@Servername automatic parsing.
  10588. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10589. _password. Recognize username and password in URI.
  10590. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10591. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10592. * src/RequestFactory.{h, cc}: Removed.
  10593. * src/AuthConfigFactory.{h, cc}: New class.
  10594. * src/FtpConnection.cc: Use AuthConfigFactory.
  10595. * src/HttpRequest.cc: Use AuthConfigFactory.
  10596. * test/HttpRequestTest.cc: Updated.
  10597. * test/RequestTest.cc: Updated.
  10598. * test/AuthConfigFactoryTest.cc: New class.
  10599. * test/RequestFactoryTest.cc: Removed.
  10600. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Use RequestGroup::allDownloadFinished() to decide whether the control
  10602. file should be removed or saved.
  10603. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10604. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10605. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Use File::renameTo()
  10607. * src/DefaultBtProgressInfoFile.cc
  10608. Added --no-file-allocation-limit command-line option.
  10609. * src/version_usage.cc
  10610. * src/option_processing.cc
  10611. * src/OptionHandlerFactory.cc
  10612. * src/RequestGroup.{h, cc}
  10613. * src/BtCheckIntegrityEntry.cc
  10614. * src/StreamCheckIntegrityEntry.cc
  10615. * src/prefs.h
  10616. * doc/aria2c.1.txt
  10617. * doc/aria2c.1
  10618. Now prealloc is the default value for --file-allocation option.
  10619. * src/version_usage.cc
  10620. * src/option_processing.cc
  10621. * doc/aria2c.1.txt
  10622. * doc/aria2c.1
  10623. Don't URL-encode user-agent.
  10624. * src/HttpRequest.cc
  10625. Updated translations
  10626. * po/LINGUAS: Added nl for Dutch translation.
  10627. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10628. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10629. * po/POTFILES.in: Updated.
  10630. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10631. Added the ability to recognize url-list in a torrent file.
  10632. The retrieved URLs are attached to the corresponding FileEntry.
  10633. * src/DefaultBtContext.{h, cc}
  10634. * src/FileEntry.{h, cc}
  10635. * test/DefaultBtContextTest.cc
  10636. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10638. after the download finishes.
  10639. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10641. the data smaller than block length.
  10642. A block length can be specified by constructor's argument.
  10643. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10644. Get a missing piece in the range of given FileEntry. This function is
  10645. not used in the program yet.
  10646. * src/Util.h: Added some macros.
  10647. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Added HTTP/1.1 keep alive and pipelining support.
  10649. See --enable-http-keep-alive and --enable-http-pipelining option.
  10650. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10651. Segment.
  10652. * src/HttpDownloadCommand.{h, cc}
  10653. * src/OptionHandlerFactory.cc
  10654. * src/HttpConnection.{h, cc}
  10655. * src/version_usage.cc
  10656. * src/HttpInitiateConnectionCommand.cc
  10657. * src/FtpInitiateConnectionCommand.cc
  10658. * src/Segment.h
  10659. * src/HttpRequestCommand.{h, cc}
  10660. * src/option_processing.cc
  10661. * src/prefs.h
  10662. * src/HttpResponseCommand.cc
  10663. * src/SegmentMan.{h, cc}
  10664. * src/FtpNegotiateCommand.cc
  10665. * src/HttpProxyResponseCommand.cc
  10666. * src/Request.cc
  10667. * src/HttpRequest.cc
  10668. * src/DownloadCommand.cc
  10669. * test/HttpRequestTest.cc
  10670. * test/RequestTest.cc
  10671. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10673. finished.
  10674. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10676. catching it inside the method.
  10677. When no file entry is found in a metalink without querying user
  10678. preferences, throw the exception with the error message that suggests
  10679. metalink file is probably broken.
  10680. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10681. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10682. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10683. processed.
  10684. * src/RequestGroupMan.cc (removeStoppedGroup)
  10685. Added debug message.
  10686. * src/BtPostDownloadHandler.cc
  10687. * src/MetalinkPostDownloadHandler.cc
  10688. * src/PostDownloadHandler.{h, cc}
  10689. * src/RequestGroup.cc
  10690. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10691. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10692. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10694. stops and there are any unfinished or in-progress downloads.
  10695. Added the legend of "stat".
  10696. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. Throw exception when chunck checksum verification fails.
  10698. * src/DownloadCommand.cc (validatePieceHash): New function.
  10699. * src/PiecedSegment.{h, cc} (clear): New function.
  10700. * src/GrowSegment.{h, cc} (clear): New function.
  10701. * src/Segment.h (clear): New function.
  10702. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10703. * test/SegmentTest.cc
  10704. * test/GrowSegmentTest.cc
  10705. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Do not send referer when redirected.
  10707. * src/Request.cc (redirectUrl)
  10708. * test/RequestTest.cc
  10709. * test/HttpRequestTest.cc
  10710. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Implemented BitTorrent/http/ftp integrated download.
  10712. I've rewritten lots of files and now some headers have forward
  10713. class declarations to reduce compile time.
  10714. The implementation is extremely alpha stage, I recommend to use this
  10715. for testing purpose only.
  10716. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Fixed the compilation error on 64bit platform.
  10718. * test/HttpHeaderProcessorTest.cc
  10719. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Merged Ross's patch that fixes compilation problem in MinGW
  10721. * test/DefaultBtProgressInfoFileTest.cc
  10722. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10723. Updated fr.po by sebone
  10724. * po/fr.po
  10725. Updated man page.
  10726. * doc/aria2c.1.txt
  10727. * Release 0.11.3
  10728. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10730. failure in Metalink.
  10731. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. Automatically save *.aria2 control file of http/ftp download in every
  10733. 60 seconds.
  10734. * src/AutoSaveCommand.{h, cc}: New class.
  10735. * src/TimeBasedCommand.{h, cc}: New class.
  10736. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10737. Disable parameterized URI support by default. Added -P option to
  10738. enable the feature.
  10739. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10740. * src/OptionHandlerFactory.cc
  10741. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10742. Updated Japanese translation.
  10743. * po/ja.po
  10744. Updated man page.
  10745. * doc/aria2c.1.txt
  10746. * Release 0.11.3-rc
  10747. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10749. it is successful, then renamed to *.aria2.
  10750. This prevents *.aria2 file from being truncated or corrupted when
  10751. file system becomes out of space.
  10752. * src/DefaultBtProgressInfoFile.cc (save)
  10753. * src/SegmentMan.cc (save)
  10754. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10755. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Reduced the fragmentation of bitfield in http/ftp download.
  10757. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10758. * test/BitfieldManTest.cc
  10759. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10760. Added the ability to disable segmented download in .metalink.
  10761. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10762. 'url' tag.
  10763. * src/MetalinkEntry.{h, cc}
  10764. * src/RequestResource.{h, cc}
  10765. * src/MetalinkRequestInfo.cc
  10766. * src/Xml2MetalinkProcessor.cc
  10767. * test/Xml2MetalinkProcessorTest.cc
  10768. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. Added parameterized URI support.
  10770. * src/main.cc: -Z option added.
  10771. * src/OptionHandlerFactory.cc
  10772. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10773. * src/PStringDatum.h: New class.
  10774. * src/PStringSegment.{h,cc}: New class.
  10775. * src/PStringNumLoop.h: New class.
  10776. * src/PStringSelect.h: New class.
  10777. * src/NumberDecorator.h: New class.
  10778. * src/FixedWidthNumberDecorator.h: New class.
  10779. * src/AlphaNumberDecorator.h: New class.
  10780. * src/PStringVisitor.h: New class.
  10781. * src/PStringBuildVisitor.{h,cc}: New class.
  10782. * src/ParameterizedStringParser.{h,cc}: New class.
  10783. * src/Util.{h,cc}
  10784. (isNumber): New function.
  10785. (isLowercase): New function.
  10786. (isUppercase): New function.
  10787. (alphaToNum): New function.
  10788. * test/ParameterizedStringParserTest.cc: New class.
  10789. * test/AlphaNumberDecoratorTest.cc: New class.
  10790. * test/PStringBuildVisitorTest.cc: New class.
  10791. * test/UtilTest.cc
  10792. (testIsNumber): New function.
  10793. (testIsLowercase): New function.
  10794. (testIsUppercase): New function.
  10795. (testAlphaToNum): New function.
  10796. Added '\n' after the error message
  10797. * src/RequestInfo.h (printDownloadAbortMessage)
  10798. Added auto file renaming feature in http(s)/ftp download.
  10799. * src/main.cc: Added --auto-file-renaming command-line option.
  10800. * src/OptionHandlerFactory.cc
  10801. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10802. * src/RequestGroup.{h, cc}
  10803. (shouldCancelDownloadForSafety): Rewritten
  10804. (tryAutoFileRenaming): New function.
  10805. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10806. * src/HttpResponseCommand.cc
  10807. (executeInternal): Removed the call to RequestGroupMan::
  10808. isSameFileBeingDownloaded()
  10809. * src/FtpNegotiateCommand.cc
  10810. (recvSize): Removed the call to RequestGroupMan::
  10811. isSameFileBeingDownloaded()
  10812. * test/RequestGroupTest.cc: New class.
  10813. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10814. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10815. IO.
  10816. * src/DefaultBtProgressInfoFile.cc
  10817. * src/MetaFileUtil.cc
  10818. * src/SimpleLogger.cc
  10819. * src/SegmentMan.cc
  10820. * src/Util.cc
  10821. * src/Platform.cc
  10822. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10824. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10826. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10827. Fixed the bug that prevents file allocation is not done when
  10828. dowloading multi-torrent file.
  10829. * src/AbstractDiskWriter.cc (openFile)
  10830. Increase the maximum number of -j option from 15 to 45.
  10831. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10832. Added fr.po, thanks to Charles Landemaine.
  10833. * po/fr.po
  10834. * po/LINGUAS
  10835. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10836. gcc 3.4.4 support:
  10837. * src/DefaultBtContext.cc: int32_t -> int
  10838. * src/main.cc: int -> int32_t, int32_t -> int
  10839. * src/messageDigest.h: uint32_t -> unsigned int
  10840. * src/NameResolver.h: int32_t -> int
  10841. * src/PeerConnection.cc: int -> int32_t
  10842. * src/SpeedCalc.cc: int32_t -> int
  10843. * src/TrackerUpdateCommand.h: int -> int32_t
  10844. * src/Util.cc: int32_t -> int
  10845. * src/Util.h: int32_t -> int
  10846. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10847. * test/AnnounceListTest.cc: int -> int32_t
  10848. * test/ChunkedEncodingTest.cc: int -> int32_t
  10849. * test/DataTest.cc: int -> int32_t
  10850. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10851. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10852. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10853. * test/FeatureConfigTest.cc: int -> int32_t
  10854. * test/MetalinkEntryTest.cc: int -> int32_t
  10855. * test/MockBtRequestFactory.h: int -> int32_t
  10856. * test/MockPieceStorage.h: int -> int32_t
  10857. * test/OptionTest.cc: int -> int32_t
  10858. * test/RequestTest.cc: int -> int32_t
  10859. * test/SegmentManTest.cc: int -> int32_t
  10860. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10861. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10862. Move sleep functions to Util class:
  10863. * src/Util.cc
  10864. (sleep): New function.
  10865. (usleep): New function.
  10866. * src/DownloadCommand.cc: sleep -> Util::sleep
  10867. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10868. MinGW build enhancements. The following files are added:
  10869. * src/timegm.{c,h}
  10870. Changes to support the above new files:
  10871. * configure.ac
  10872. * src/Makefile.am
  10873. * src/a2time.h
  10874. * src/Util.cc:
  10875. * src/strptime.c: Added support for %Z option.
  10876. Fixed MinGW non-blocking bug.
  10877. * src/SocketCore.cc
  10878. * src/HttpRequestCommand.cc
  10879. Miscellenous build fixes/enhancements.
  10880. * configure.ac: Added summary report.
  10881. * src/Platform.h: Tweaked #include's.
  10882. * src/a2netcompat.h: Tweaked #include's.
  10883. * src/strptime.h: Tweaked #include's.
  10884. * src/gai_strerror.c: Tweaked #include's.
  10885. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10886. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10887. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10888. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10889. Increased the initial connection size in BitTorrent download to 40.
  10890. * src/BtRuntime.h
  10891. Added the usage message of --peer-id-prefix option.
  10892. * src/main.cc
  10893. * Release 0.11.2
  10894. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. MessageDigestHelper is introduced in order to simplify the use
  10896. of message digest. Removed repeated code.
  10897. The message digest algorithm is now specified by string, like "sha1",
  10898. "md5".
  10899. * src/messageDigest.{h, cc}
  10900. * src/MessageDigestHelper.{h, cc}: New class.
  10901. * src/DefaultPieceStorage.cc
  10902. * src/DefaultBtContext.{h, cc}
  10903. (computeFastSet): New function.
  10904. (setInfoHash): Added for unit testing.
  10905. (setNumPieces): Added for unit testing.
  10906. * src/DefaultBtInteractive.cc
  10907. * src/BtPieceMessage.cc
  10908. * src/Peer.cc
  10909. * src/Checksum.h
  10910. * src/message.h
  10911. * src/IteratableChecksumValidator.h
  10912. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10913. inside it.
  10914. * src/SegmentMan.{h, cc}
  10915. (checkIntegrity): Removed.
  10916. * src/IteratableChunkChecksumValidator.{h, cc}
  10917. * src/Util.h
  10918. (sha1Sum): Removed.
  10919. (simpleMessageDigest): Removed.
  10920. (fileChecksum): Removed.
  10921. (computeFastSet): Removed.
  10922. * src/ShaVisitor.cc
  10923. * src/ChunkChecksum.h
  10924. * src/DownloadCommand.cc
  10925. Removed messageDigest virtual functions.
  10926. * src/MultiDiskAdaptor.{h, cc}
  10927. * src/DiskAdaptor.h
  10928. * src/ByteArrayDiskWriter.h
  10929. * src/DiskWriter.h
  10930. * src/DiskAdaptorWriter.h
  10931. * src/AbstractSingleDiskAdaptor.{h, cc}
  10932. * src/AbstractDiskWriter.{h, cc}
  10933. Fixed comilation error when message digest is disabled.
  10934. * src/MetalinkEntry.{h, cc}
  10935. * src/MetalinkRequestInfo.cc
  10936. Removed srandom and random.
  10937. * src/SimpleRandomizer.h
  10938. Added size() virtual function to DiskAdaptor
  10939. * src/MultiDiskAdaptor.h
  10940. Fixed the bug that causes that files are not opened correctly in
  10941. multi-file torrent.
  10942. * src/TorrentRequestInfo.cc
  10943. * src/MultiDiskAdaptor.cc
  10944. Added SHA256 support
  10945. * src/messageDigest.cc
  10946. * src/Xml2MetalinkProcessor.cc
  10947. Show supported message digest algorithms
  10948. * src/main.cc
  10949. Updated contact info.
  10950. * src/main.cc
  10951. Applied Ross's patch
  10952. * src/a2netcompat.h
  10953. * src/main.cc
  10954. Fixed the bug that prevents a remote metalink from not being processed
  10955. even if '-o foo.metalink' is specified.
  10956. * src/MetalinkRequestInfo.cc
  10957. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. Merged Dan's patch:
  10959. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10960. Use va_copy to avoid core dump on amd64:
  10961. * src/SimpleLogger.cc
  10962. Updated contact info.
  10963. * src/main.cc
  10964. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10965. digest is not available.
  10966. * src/MetalinkEntry.h
  10967. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10968. Make a2netcompat.h include a2io.h to fix compilation error:
  10969. * src/a2netcompat.h
  10970. * src/SocketCore.cc: Removed include of a2io.h
  10971. * src/Util.cc: Removed include of a2io.h
  10972. Gather time related functions to a2time.h:
  10973. * src/a2time.h: New file.
  10974. * src/DefaultPeerStorage.cc
  10975. * src/SimpleLogger.cc
  10976. * src/Util.{h, cc}
  10977. * src/SimpleRandomizer.h
  10978. * src/TimeA2.{h,cc}
  10979. * src/DownloadCommand.cc
  10980. * src/main.cc
  10981. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10982. a2netcompat.h:
  10983. * src/NameResolver.cc
  10984. Fixed compilation error without openssl:
  10985. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10986. Added default block to suppress compiler warnings:
  10987. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10988. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10989. MinGW build enhancements. The following files are added:
  10990. * src/gai_strerror.{c,h}
  10991. * src/gettimeofday.{c,h}
  10992. Changes to support the above new files:
  10993. * configure.ac
  10994. * src/Makefile.am
  10995. * src/a2netcompat.h
  10996. * src/TimeA2.cc
  10997. * src/DefaultPeerStorage.cc
  10998. * src/NameResolver.cc: removed mingw_strerror() function.
  10999. * src/SocketCore.cc: removed mingw_strerror() function.
  11000. Miscellaneous MinGW build fixes.
  11001. * src/a2io.h: Use _lseeki64() instead of lseek()
  11002. * src/common.h
  11003. * src/DefaultFileAllocator.cc
  11004. * src/GlowFileAllocator.cc
  11005. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11006. * src/NameResolver.cc
  11007. (callback): Changed int32_t to int.
  11008. (resolve): Changed int32_t to int.
  11009. * src/Platform.cc
  11010. * src/Platform.h
  11011. * test/MultiDiskWriterTest.cc
  11012. * test/PeerMessageUtilTest.cc
  11013. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11014. Other enhancements and fixes.
  11015. * src/HttpRequestCommand.cc
  11016. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11017. * src/SocketCore.cc:
  11018. (error): New function to abstract errno/WSAGetLastError().
  11019. (errorMsg): New function to abstract errno/WSAGetLastError().
  11020. (initiateSecureConnection): Added more detailed error reporting.
  11021. * src/SocketCore.h: Added private variable blocking, to allow
  11022. proper handling of OpenSSL psuedo-errors.
  11023. * src/message.h
  11024. (EX_SSL_INIT_FAILURE)
  11025. (EX_SSL_IO_ERROR)
  11026. (EX_SSL_PROTOCOL_ERROR)
  11027. (EX_SSL_UNKNOWN_ERROR)
  11028. (EX_SSL_CONNECT_ERROR)
  11029. (EX_SOCKET_BLOCKING)
  11030. (EX_SOCKET_NONBLOCKING)
  11031. (EX_SOCKET_UNKNOWN_ERROR)
  11032. * src/Util.cc
  11033. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11034. reserved name.
  11035. (httpGMT): Fixed typo.
  11036. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11037. Merged Ross's win32 patch(manually)
  11038. In the course of merging, following files are added.
  11039. * src/strptime.{h,c}
  11040. * src/libgen.{h,c}
  11041. * src/inet_aton.{h,c}
  11042. * src/Platform.{h,cc}
  11043. * src/localtime_r.{h,c}
  11044. * src/getaddrinfo.{h,c}
  11045. I've gethered network related things, and put them to following file:
  11046. * src/a2netcompat.h
  11047. Also io related things are put to following file:
  11048. * src/a2io.h
  11049. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11050. * src/message.h
  11051. (MSG_ALLOCATION_COMPLETED)
  11052. (EX_TOO_LARGE_FILE)
  11053. (EX_SIZE_MISMATCH)
  11054. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11055. (EX_INVALID_CHUNK_CHECKSUM)
  11056. (EX_INVALID_RANGE_HEADER)
  11057. * src/FileAllocationCommand.cc
  11058. * src/HttpResponse.cc
  11059. * src/RequestGroup.cc
  11060. * src/MultiDiskAdaptor.cc
  11061. * src/OptionHandlerImpl.h
  11062. * src/HttpResponseCommand.cc
  11063. * src/FtpNegotiateCommand.cc
  11064. * src/IteratableChecksumValidator.cc
  11065. * src/SegmentMan.cc
  11066. * src/ChunkChecksumValidator.cc
  11067. Added Randomizer::getRandomNumber(long int)
  11068. * src/Randomizer.h (getRandomNumber)
  11069. * src/SimpleRandomizer.h (getRandomNumber)
  11070. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11071. * src/Util.cc (randomAlpha): Use this new function.
  11072. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Converted int's to in32_t. long long int's are also converted to
  11074. int64_t
  11075. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. Fixed the bug that prevents cookies from being sent to the server
  11077. if the domain of cookie is FQDN and starts with ".".
  11078. * src/Cookie.cc (match)
  11079. To add the ability to change peer id.
  11080. * src/DefaultBtContext.h
  11081. (_peerIdPrefix): New variable
  11082. (setPeerIdPrefix): New function.
  11083. * src/torrentRequestInfo.cc
  11084. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11085. DefaultBtContext.
  11086. * src/main.cc (main): Added peer-id-prefix command-line option.
  11087. The usage message is not added yet.
  11088. * src/DefaultBtContext.cc
  11089. (generatePeerId): Use _peerIdPrefix.
  11090. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11091. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Fixed the bug that prevents filename in content-disposition from
  11093. being retrieved when filename is not quoted.
  11094. * src/Util.cc (getContentDispositionFilename)
  11095. Fixed the bug that causes infinate loop and memory leak when file open
  11096. operation failed.
  11097. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11098. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Fixed the bug that causes segfault when all URIs specified are
  11100. unsupported.
  11101. * src/RequestGroupMan.cc (getInitialCommands)
  11102. Check if RequestGroup::createNextCommand() returns empty list of
  11103. commands.
  11104. * src/RequestGroup.cc (createNextCommand)
  11105. Change log level from info to error so that users can notice that
  11106. an error occurred.
  11107. Fixed the bug that causes segfault when a zero-sized file is
  11108. downloaded.
  11109. * src/BitfieldMan.cc (isAllBitSet)
  11110. Return true if bitfieldLength is 0.
  11111. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11112. * src/main.cc
  11113. (showUsage): Added 3 usage examples for metalink download.
  11114. Replace MetalinkChunkChecksum with ChunkChecksum.
  11115. * src/MetalinkChunkChecksum.h: Removed.
  11116. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11117. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11118. * src/Xml2MetalinkProcessor.cc
  11119. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11120. * src/MetalinkRequestInfo.cc (execute)
  11121. * Release 0.11.1
  11122. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11123. Reads URIs from stdin when "-i -" is specified.
  11124. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11125. * src/UriListParser.h, src/UriListParser.cc: New class.
  11126. * src/StreamUriListParser.h: New class.
  11127. * src/FileUriListParser.h: New class.
  11128. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11129. instead of UriFileListParser.
  11130. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Made console readout more readable.
  11132. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11133. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Fix the bug that causes -s option not to work.
  11135. * src/main.cc (main)
  11136. * src/a2algo.h: New file.
  11137. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11138. Create directory structure specified in metalink file.
  11139. * src/RequestGroup.h, src/RequestGroup.cc
  11140. (initAndOpenFile): Create a directory to store files if it does not
  11141. exist.
  11142. (getDir): New function.
  11143. Added ETA and download speed for an individual file to readout.
  11144. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11145. * src/RequestGroup.h
  11146. (calculateDownloadSpeed): New function.
  11147. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Made -S option work with metalink file and provided selective download
  11149. to metalink.
  11150. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11151. (filename): Removed.
  11152. (file): New variable.
  11153. (size): Removed.
  11154. (operator=): Updated.
  11155. (getPath): New function.
  11156. (getLength): New function.
  11157. (toFileEntry): New function.
  11158. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11159. (execute): Use toStream.
  11160. (showFileEntry): Removed.
  11161. * src/MetalinkRequestInfo.h
  11162. (targetFiles): New variable.
  11163. (setTargetFiles): New variable.
  11164. * src/MetalinkRequestInfo.cc
  11165. (execute): Added the ability to print file information included in
  11166. a metalink file.
  11167. Added selective download mode to metalink.
  11168. * src/main.cc
  11169. (showUsage): Updated to denote that -S and --select-file options are
  11170. applicable to metalink.
  11171. * src/FileEntry.h
  11172. (operator=): New function.
  11173. (getBasename): New function.
  11174. (getDirname): New function.
  11175. * src/Util.h, src/Util.cc
  11176. (toStream): New function.
  11177. * src/Xml2MetalinkProcessor.cc: Updated.
  11178. Made aria2 work with metalink with directory structure.
  11179. * src/File.h, src/File.cc
  11180. (getBasename): New function.
  11181. (getDirname): New function.
  11182. * src/RequestGroup.h, src/RequestGroup.cc
  11183. (_topDir): New variable.
  11184. (setTopDir): New function.
  11185. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11186. Rewrote HTTP header parsing with stringstream.
  11187. * src/HttpConnection.h, src/HttpConnection.cc
  11188. (HttpRequestEntry): New class.
  11189. (headerBuf): Removed.
  11190. (headerBufLength): Removed.
  11191. (outstandingHttpRequests): Now its element type is
  11192. HttpRequestEntryHandle.
  11193. (findEndOfHeader): Removed.
  11194. (receiveResponse): Rewritten.
  11195. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11196. Updated doc for -j option to notice that it should be used with -i
  11197. option.
  11198. * src/main.cc (showUsage)
  11199. Removed unused classes.
  11200. * src/RequestInfo.h
  11201. (FileInfo): Removed.
  11202. (checksum): Removed.
  11203. (fileInfo): Removed.
  11204. (setChecksum): Removed.
  11205. (getChecksum): Removed.
  11206. (getFileInfo): Removed.
  11207. Use ISO units.
  11208. * src/ConsoleDownloadEngine.cc
  11209. * src/TorrentConsoleDownloadEngine.cc
  11210. * src/Util.cc (abbrevSize)
  11211. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. Added the default listening ports to the help message.
  11213. * src/main.cc (showUsage)
  11214. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11215. Reduce the number of calls to gettimeofday to lower CPU load.
  11216. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11217. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11218. * src/Peer.h (calculateUploadSpeed): New function.
  11219. (calculateDownloadSpeed): New function.
  11220. * src/DefaultPeerStorage.cc
  11221. (CalculateStat): Added _now variable.
  11222. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11223. and Peer::calculateUploadSpeed(const struct timeval&)
  11224. Drop connection if no request or piece message is exchanged in
  11225. a certain interval.
  11226. * src/DefaultBtInteractive.h
  11227. (btRuntime): New variable.
  11228. (inactiveCheckPoint): New variable.
  11229. (checkActiveInteraction): New function.
  11230. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11231. request or piece message is received.
  11232. (checkActiveInteraction): New function.
  11233. (doInteractionProcessing): Call checkActiveInteraction.
  11234. Fixed the bug that causes remote Metalink and Torrent files are not
  11235. processed.
  11236. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11237. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Changed format of log file.
  11239. * src/SimpleLogger.cc
  11240. * Release 0.11.0
  11241. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. * src/AbstractCommand.cc
  11243. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11244. MSG_MAX_TRY from error to info.
  11245. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11246. * src/message.h
  11247. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11248. (MSG_DOWNLOAD_ABORTED): Added %s.
  11249. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11250. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11251. * src/PeerAbstractCommand.cc
  11252. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11253. * src/Request.h
  11254. (cookieBox): Made ShardHandle.
  11255. * src/RequestGroup.h, src/RequestGroup.cc
  11256. (createNextCommandWithAdj): New function.
  11257. * src/FileAllocationCommand.cc
  11258. (executeInternal): Use createNextCommandWithAdj().
  11259. * src/CheckIntegrityCommand.cc
  11260. (executeInternal): Use createNextCommandWithAdj().
  11261. Added --load-cookies command-option.
  11262. * src/OptionHandlerFactory.cc
  11263. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11264. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11265. Now aria2 can handle cookie's expiration date.
  11266. * src/Cookie.h (expires): Changed its type to time_t.
  11267. * src/main.cc: Added --load-cookies command-line option.
  11268. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11269. * src/Util.h, src/Util.cc (httpGMT): New function.
  11270. * src/Request.cc (Request): Initialize cookieBox using
  11271. CookieBoxFactory.
  11272. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11273. * src/CookieParser.h, src/CookieParser.cc: New class.
  11274. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11275. * src/HttpResponseCommand.cc
  11276. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11277. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11278. download.
  11279. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11280. Added -j command-line option.
  11281. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11282. * src/main.cc
  11283. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11284. Rewritten using stringstream.
  11285. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11286. Rewritten using stringstream.
  11287. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11288. Make download size shown in MB, KB.
  11289. * src/ConsoleDownloadEngine.h (sendStatistics)
  11290. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11291. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Accept incoming connections if download rate is low.
  11293. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11294. (_lowestSpeedLimit): New variable.
  11295. (setLowestSpeedLimit): New function.
  11296. (execute): Accept incoming connections if download rate is low.
  11297. MAX_PEERS is ignored in this case.
  11298. Disable PREF_OUT in multiple concurrent download:
  11299. * src/RequestGroup.h, src/RequestGroup.cc
  11300. (setUserDefinedFilename): New function.
  11301. * src/DownloadEngineFactory.cc
  11302. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11303. concurrent download.
  11304. * src/DefaultSegmentManFactory.cc
  11305. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11306. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11307. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11308. Added its overloaded method.
  11309. * src/RequestGroup.h
  11310. (_numConcurrentCommand): New variable.
  11311. (setNumConcurrentCommand): New function.
  11312. * src/RequestGroup.cc
  11313. Abort download if same file is being downloaded concurrently.
  11314. * src/RequestGroup.h, src/RequestGroupMan.cc
  11315. (isSameFileBeingDownloaded): New function.
  11316. * src/HttpResponseCommand.cc (executeInternal)
  11317. * src/FtpNegotiateCommand.cc (recvSize)
  11318. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11319. * main.cc: Added help message for -i option.
  11320. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11321. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11322. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11323. * src/MetalinkEntry.h
  11324. (checksum): Changed to ChecksumHandle
  11325. * src/MetalinkRequestInfo.cc
  11326. (checksum): Changed to ChecksumHandle
  11327. * src/File.cc
  11328. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11329. * src/common.h
  11330. (DIR_OPEN_MODE): New definition
  11331. * src/RequestGroup.cc
  11332. (prepareForNextAction): Added an argument.
  11333. * src/message.h
  11334. (MSG_GOOD_CHECKSUM): New definition
  11335. (MSG_BAD_CHECKSUM): New definition
  11336. * src/HttpResponseCommand.cc
  11337. (handleDefaultEncoding): Continue download sequence in new
  11338. non-segmented download.
  11339. * src/FileAllocationEntry.h
  11340. (_nextDownloadCommand): New variable.
  11341. * src/DownloadCommand.cc
  11342. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11343. available.
  11344. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11345. * src/IteratableChecksumValidator.h,
  11346. src/IteratableChecksumValidator.cc: New class.
  11347. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11348. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11349. Change file mode to 666:
  11350. * src/common.h (OPEN_MODE): New definition.
  11351. * src/File.cc
  11352. * src/Util.cc
  11353. * src/Directry.cc
  11354. * src/AbstractDiskWriter.cc
  11355. Change the level of log message "download aborted" to debug:
  11356. * src/PeerAbstractCommand.cc (execute)
  11357. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11358. * src/TrackerWatcherCommand.cc
  11359. (createCommand): Sleep some seconds after request failed.
  11360. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11361. then abort tracker request.
  11362. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11363. * Added the simultaneous download feature.
  11364. * src/main.cc: Print "Exception caught: " when exception is caught.
  11365. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11366. * src/ActivePeerConnectionCommand.cc
  11367. * src/PeerInteractionCommand.cc
  11368. * src/BtRuntime.h
  11369. (cuidCounter): Removed.
  11370. (getNewCuid): Removed.
  11371. * src/DownloadEngineFactory.cc
  11372. * src/PeerListenCommand.cc
  11373. * src/TrackerUpdateCommand.cc
  11374. * src/PeerInitiateConnectionCommand.cc
  11375. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11376. * src/PeerAbstractCommand.cc
  11377. (onAbort): Call PeerStorage::returnPeer()
  11378. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11379. (incomingPeers): New variable.
  11380. (addIncomingPeer): New function.
  11381. (returnPeer): New function.
  11382. (onErasingPeer): New function.
  11383. (addPeer): push_back -> push_front
  11384. (getActivePeers): Rewritten.
  11385. (calculateStat): Rewritten.
  11386. * src/PeerStorage.h
  11387. (TransferStat::copy): New function.
  11388. (TransferStat::TransferStat): New function.
  11389. (TransferStat::operator=): New function.
  11390. (addIncomingPeer): New function.
  11391. (returnPeer): New function.
  11392. * src/PeerListenCommand.cc
  11393. (execute): Use PeerStorage::addIncomingPeer() instead of
  11394. Peer::addPeer().
  11395. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Connect to a peer actively when download speed is lower than specified
  11397. speed in torrent download:
  11398. * src/ActivePeerConnectionCommand.h: New class.
  11399. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11400. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11401. * src/main.cc: Fixed the bug that prevents download if .netrc
  11402. doesn't exist.
  11403. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11404. To cache resolved hostname:
  11405. * src/AbstractCommand.h, src/AbstractCommand.cc
  11406. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11407. Added dns cache.
  11408. * src/FtpInitiateConnectionCommand.cc
  11409. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11410. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11411. NameResolver working without ares.
  11412. * src/TorrentRequestInfo.cc
  11413. (execute): Don't cache dns in torrent download.
  11414. * src/HttpInitiateConnectionCommand.cc
  11415. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11416. * src/DNSCache.h: New class.
  11417. * src/UrlRequestInfo.cc
  11418. (execute): Use dns cache.
  11419. In http request, suppress port number in http request header if port
  11420. is 80 or 443:
  11421. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11422. request header if port is 80 or 443.
  11423. (createProxyRequest): Allways send port number.
  11424. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11425. To add the command-line option which disables netrc support:
  11426. * src/OptionHandlerFactory.cc
  11427. (createOptionHandlers): Added PREF_NO_NETRC.
  11428. * src/main.cc: Added -n option.
  11429. * src/prefs.h (PREF_NO_NETRC): New definition.
  11430. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11431. V_TRUE.
  11432. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11433. is V_FALSE. This may get configurable in the future release.
  11434. To clear peer's error status by time basis:
  11435. * src/PeerAbstractCommand.cc
  11436. (onAbort): Call Peer::startBadCondition().
  11437. * src/Peer.h, src/Peer.cc
  11438. (error): Removed.
  11439. (_badConditionStartTime): New variable.
  11440. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11441. (startBadCondition): New function.
  11442. (isGood): New function.
  11443. * src/DefaultPeerStorage.cc
  11444. (addPeer): Use Peer::isGood().
  11445. (FindFinePeer): Use Peer::isGood().
  11446. Always include port number in http request header:
  11447. * src/HttpRequest.cc (getHostText): Always include port number in
  11448. http request header.
  11449. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. To the ability to read options from a config file:
  11451. * src/main.cc: Command-line parameter validation is delegated to
  11452. OptionHandler class.
  11453. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11454. * src/Option.h, src/Option.cc (clear): New function.
  11455. * src/OptionParser.h, src/OptionParser.cc: New class.
  11456. * src/OptionHandler.h: New class.
  11457. * src/NameMatchOptionHandler.h: New class.
  11458. * src/OptionHandlerImpl.h: New classes.
  11459. * src/prefs.h: '_' -> '-'
  11460. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11461. (FTP_PASV): New definition.
  11462. * src/Util.h, src/Util.cc (getRealSize): New function.
  11463. To disable netrc support if .netrc file does not have correct
  11464. permissions:
  11465. * src/File.h, src/File.cc (mode): New function.
  11466. To prevent confidential information to be logged:
  11467. * src/HttpConnection.h, src/HttpConnection.cc
  11468. (eraseConfidentialInfo): New function.
  11469. (sendRequest): Call eraseConfidentialInfo().
  11470. (sendProxyRequest): Call eraseConfidentialInfo().
  11471. * src/main.cc: Validate permissions of .netrc file.
  11472. To add --user-agent command-line option:
  11473. * src/main.cc: Added new command line option: --user-agent
  11474. * src/prefs.h (PREF_USER_AGENT): New definition.
  11475. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11476. parameter to HttpRequest object.
  11477. * src/AbstractProxyRequestCommand.cc
  11478. (executeInternal): Set user-agent option parameter to HttpRequest
  11479. object.
  11480. Marged the patches from Dan Fandrich.
  11481. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Use filename and size from Metalink file instead of sending HEAD
  11483. request:
  11484. * src/UrlRequestInfo.h
  11485. (_filename): New variable.
  11486. (_totalLength): New variable.
  11487. (setTotalLength): New variable.
  11488. (setFilename): New variable.
  11489. * src/MetalinkRequestInfo.cc
  11490. (execute): Set filename and size to UrlRequestInfo
  11491. * src/UrlRequestInfo.cc
  11492. (execute): Use filename and size from Metalink instead of seding
  11493. HEAD request to servers.
  11494. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. To add the ability to resume downloading a partially downloaded file
  11496. which is downloaded from the beginning:
  11497. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11498. takes this role.
  11499. * src/main.cc: Added -c option.
  11500. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11501. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11502. * src/prefs.h (PREF_CONTINUE): New definition.
  11503. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11504. * src/DefaultDiskWriter.cc
  11505. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11506. * src/AbstractDiskWriter.h
  11507. (glowFileAllocator): New variable.
  11508. * src/AbstractDiskWriter.cc
  11509. (openExistingFile): Now preallocate file space from the end of the
  11510. existing file if totalLength argument is specified and grater than 0.
  11511. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11512. to download exists in local, continue the download of the file.
  11513. --allow-overwrite=true is assumed in this context.
  11514. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11515. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11516. Throw exception if --check-integrity=true is specified but chunk
  11517. checksums are not provided:
  11518. * src/UrlRequestInfo.cc
  11519. Do not print URLs to stdout:
  11520. * src/UrlRequestInfo.cc
  11521. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. * src/Request.h: Use AuthResolver to get authentication information.
  11523. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11524. set to RequestFactory object.
  11525. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11526. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11527. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11528. create Request object.
  11529. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11530. To integrate Netrc into exsiting classes:
  11531. * src/Request.h
  11532. (_userDefinedAuthConfig): New variable.
  11533. (findNetrcAuthenticator): New function.
  11534. (segment): Removed.
  11535. (setUserDefinedAuthConfig): New function.
  11536. (resolveHttpAuthConfigItem): New function.
  11537. (resolveFtpAuthConfigItem): New function.
  11538. (resolveHttpProxyAuthConfigItem): New function.
  11539. * src/HttpRequest.h
  11540. (authConfig): Removed.
  11541. (proxyAuthConfig): Removed.
  11542. (setAuthConfig): Removed.
  11543. (setProxyAuthConfig): Removed.
  11544. * src/UrlRequest.h
  11545. (getHeadResult): Added a parameter: authConfigHandle
  11546. * src/common.h
  11547. (SingletonHolder.h): New include.
  11548. * src/main.cc
  11549. (Netrc.h): New include.
  11550. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11551. Added initial value of PREF_NETRC_PATH.
  11552. Added the initialization of netrc.
  11553. * src/AuthConfig.h: New class.
  11554. * src/prefs.h
  11555. (PREF_NETRC_PATH): New definition.
  11556. * src/HttpAuthConfig.h: Removed.
  11557. * src/Netrc.cc
  11558. (getRequiredNextToken): New function.
  11559. (skipMacdef): New function.
  11560. (parse): Rewritten.
  11561. * src/Netrc.h
  11562. (getRequiredNextToken): New function.
  11563. (skipMacdef): New function.
  11564. * src/Util.h, src/Util.cc
  11565. (getHomeDir): New function.
  11566. * src/TrackerWatcherComand.cc
  11567. (createRequestCommand): Use AuthConfig.
  11568. * src/FtpConnection.cc
  11569. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11570. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11571. * src/Request.cc
  11572. (findNetrcAuthenticator): New function.
  11573. (resolveHttpAuthConfigItem): New function.
  11574. (resolveFtpAuthConfigItem): New function.
  11575. (resolveHttpProxyAuthConfigItem): New function.
  11576. * src/UrlRequestInfo.cc: Use AuthConfig.
  11577. * src/HttpRequest.cc
  11578. (createRequest): Use authConfig.
  11579. (getProxyAuthString): Use authConfig.
  11580. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11581. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11582. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. To reduce overhead to find commands whose socket is either
  11584. readable or writable in the download engine loop:
  11585. * src/Command.h, src/Command.cc
  11586. (STATUS): New enum.
  11587. (status): New variable.
  11588. (statusMatch): New function.
  11589. (setStatusActive): New function.
  11590. (setStatusInactive): New function.
  11591. * src/DownloadEngine.h, src/DownloadEngine.cc
  11592. (executeCommand): New function.
  11593. (run): Simplified.
  11594. (waitData): Call Command::setStatusActive() when command's socket is
  11595. readable or writable.
  11596. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. To handle Segment as SegmentHandle:
  11598. * src/AbstractCommand.cc (execute): Rewritten.
  11599. * src/SegmentMan.h: Segment -> SegmentHandle
  11600. Introducded HttpResponse class, HttpRequest class to improve code
  11601. extensiveness and make it clear:
  11602. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11603. HttpResponse class.
  11604. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11605. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11606. * src/HttpConnection.cc: Contruction of http request were moved to
  11607. HttpRequest class.
  11608. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11609. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11610. * src/HttpAuthConfig.h: New class.
  11611. * src/Range.h: New class.
  11612. To make FtpTunnel{Request, Response}Command and
  11613. HttpProxy{Request, Response}Command derived from
  11614. AbstractProxy{Request, Response}Command:
  11615. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11616. Derived from AbstractProxyRequestCommand class.
  11617. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11618. Derived from AbstractProxyResponseCommand class.
  11619. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11620. Derived from AbstractProxyRequestCommand class.
  11621. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11622. Derived from AbstractProxyResponseCommand class.
  11623. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11624. : New class.
  11625. * src/AbstractProxyResponseCommand.h,
  11626. src/AbstractProxyResponseCommand.cc: New class.
  11627. To add netrc support:
  11628. * src/Netrc.h, src/Netrc.cc: New class.
  11629. * src/Util.h, src/Util.cc (split): New function.
  11630. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11631. "Content-Range" header instead of "Range" header.
  11632. * src/HttpHeader.h
  11633. (getStatus): Removed.
  11634. (setStatus): Removed.
  11635. * src/Segment.h
  11636. (getPositionToWrite): New function.
  11637. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11638. * src/HttpHeader.h
  11639. (Range.h): New include.
  11640. (status): New variable.
  11641. (HttpHeader): Initialized status with 0.
  11642. (getStatus): New function.
  11643. (setStatus): New function.
  11644. (getRange): New function.
  11645. (HttpHeaderHandle): New function.
  11646. * src/HttpHeader.cc
  11647. (getRange): New function.
  11648. * src/Request.h
  11649. (RequestWeakHandle): New definition.
  11650. * src/HttpConnection.h
  11651. (HttpConnectionHandle): New type definition.
  11652. * src/HttpConnection.cc
  11653. (receiveResponse): Set HTTP status to headers.
  11654. * src/main.cc
  11655. (showUsage): Fixed typo.
  11656. * src/Segment.h
  11657. (SegmentHandle): New type definition.
  11658. * src/BitfieldMan.h
  11659. (getMissingUnusedLength): New function.
  11660. * src/BitfieldMan.cc
  11661. (getMissingUnusedLength): New function.
  11662. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11663. To fix static initialization order problem:
  11664. * src/BitfieldManFactory.h
  11665. (defaultRandomizer): Removed.
  11666. (factory): New variable.
  11667. (getNewFactory): Removed.
  11668. (getFactoryInstance): New function.
  11669. (setDefaultRandomizer): Rewritten.
  11670. (getDefaultRandomizer): Rewritten.
  11671. * src/BitfieldManFactory.cc
  11672. (defaultRandomizer): Removed.
  11673. (factory): Initialized to 0.
  11674. (BitfieldManFactory): Initialized randomizer to 0.
  11675. * src/DefaultPieceStorage.cc
  11676. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11677. * src/Peer.cc
  11678. (Peer): getNewFactory() -> getFactoryInstance()
  11679. * src/SegmentMan.cc
  11680. (initBitfield): getNewFactory() -> getFactoryInstance()
  11681. * src/Piece.cc
  11682. (Piece): getNewFactory() -> getFactoryInstance()
  11683. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11684. To fix the bug that causes crash on Max OS X:
  11685. * src/SimpleRandomizer.h
  11686. (getInstance): Create new instance if the static variable is null.
  11687. * src/SimpleRandomizer.cc
  11688. (randomizer): Initialized to 0.
  11689. * src/BitfieldManFactory.h
  11690. (getNewFactory): Removed the call to setRandomizer().
  11691. To fix the miscalculation of the range of checksum:
  11692. * src/BitfieldMan.h
  11693. (isBitSetOffsetRange): New function.
  11694. * src/BitfieldMan.cc
  11695. (isBitSetOffsetRange): New function.
  11696. * src/SegmentMan.cc
  11697. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11698. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11699. * Release 0.10.1
  11700. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. To lower CPU usage in BitTorrent download when --max-upload-limit
  11702. command-line option specified:
  11703. * src/DefaultBtMessageDispatcher.cc
  11704. (sendMessages): Calculate uploading speed only when current message
  11705. is uploading data and is not sent yet.
  11706. * src/DefaultPeerStorage.h
  11707. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11708. * src/HttpResponseCommand.cc
  11709. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11710. This fixes compile error in Soralis 10.
  11711. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11712. To fix segfault in Metalink download:
  11713. * src/UrlRequestInfo.h
  11714. (filename): Removed.
  11715. (totalLength): Removed.
  11716. (setTotalLength): Removed.
  11717. (setFilename): Removed.
  11718. * src/MetalinkRequestInfo.cc
  11719. (execute): Do not set filename and totalLength to reqInfo.
  11720. Set chunk checksum to reqInfo if it is not null.
  11721. * src/HttpResponseCommand.cc
  11722. (executeInternal): Fixed filename in log.
  11723. (handleDefaultEncoding): Removed the call to initBitfield() and
  11724. markAllPiecesDone().
  11725. (handleOtherEncoding): Added HEAD method handling.
  11726. * src/FtpNegotiateCommand.cc
  11727. (executeInternal): Added SEQ_HEAD_OK handling.
  11728. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11729. return false.
  11730. * src/FtpNegotiateCommand.h
  11731. (SEQ_HEAD_OK): New definition.
  11732. * src/SegmentMan.cc
  11733. (initBitfield): Delete bitfield.
  11734. (isChunkChecksumValidationReady): Fixed the condition.
  11735. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11736. works fine.
  11737. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. * src/Xml2MetalinkProcessor.h
  11739. (xpathExists): New function.
  11740. * src/Xml2MetalinkProcessor.cc
  11741. (xpathExists): New function.
  11742. Not to send HEAD request if filename and size are available in Metalink
  11743. file:
  11744. * src/UrlRequestInfo.h
  11745. (filename): New variable.
  11746. (totalLength): New variable.
  11747. (setTotalLength): New function.
  11748. (setFilename): New function.
  11749. * src/MetalinkRequestInfo.cc
  11750. (execute): Set filename and size to UrlRequestInfo.
  11751. * src/MetalinkEntry.cc
  11752. (MetalinkEntry): Initialize size with 0.
  11753. * src/UrlRequestInfo.cc
  11754. (execute): Set filename and size to SegmentMan.
  11755. Not to download rest of the files after selected files are downloaded
  11756. in BitTorrent:
  11757. * src/PieceStorage.h
  11758. (allDownloadFinished): New function.
  11759. * src/DefaultBtAnnounce.cc
  11760. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11761. downloadFinished.
  11762. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11763. * src/DefaultPieceStorage.cc
  11764. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11765. Commented out the call to finishSelectiveDownloadingMode().
  11766. (downloadFinished): Call isFilteredAllBitSet() instead of
  11767. isAllBitSet().
  11768. (allDownloadFinished): New function.
  11769. * src/DefaultBtInteractive.cc
  11770. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11771. downloadFinished().
  11772. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11773. * src/TorrentDownloadEngine.cc
  11774. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11775. * src/BitfieldMan.h
  11776. (isFilteredAllBitSet): New function.
  11777. * src/ShareRatioSeedCriteria.h
  11778. (PieceStorage.h): New include.
  11779. (pieceStorage): New variable.
  11780. (evaluate):
  11781. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11782. * src/BitfieldMan.cc
  11783. (isFilteredAllBitSet): New function.
  11784. (isAllBitSet): Filter is not took into account.
  11785. Rename --force-truncate as --allow-overwrite:
  11786. * src/TorrentRequestInfo.cc
  11787. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11788. * src/main.cc
  11789. (showUsage): --force-truncate -> --allow-overwrite
  11790. * src/message.h
  11791. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11792. * src/prefs.h
  11793. (PREF_FORCE_TRUNCATE): Removed.
  11794. (PREF_ALLOW_OVERWRITE): New definition.
  11795. * src/SegmentMan.cc
  11796. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11797. * src/MetalinkRequestInfo.cc
  11798. (execute): Queueing message are now logged in info level.
  11799. * src/common.h
  11800. (LONG_LONG_MAX): Removed.
  11801. (LONG_LONG_MIN): Removed.
  11802. * src/HttpResponseCommand.cc
  11803. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11804. * src/FtpNegotiateCommand.cc
  11805. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11806. * src/main.cc
  11807. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11808. command-line option.
  11809. (main): Added --check-integriy and --realtime-chunk-checksum
  11810. command-line option.
  11811. --force-truncate -> --allow-overwrite
  11812. Set initial value of --check-integrity option to false.
  11813. Don't show usage when error occurs while persing command-line options.
  11814. Removed deprecated --upload-limit option.
  11815. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11816. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11817. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11818. * src/BtAllowedFastMessage.cc:
  11819. * src/BtBitfieldMessage.cc
  11820. * src/BtCancelMessage.cc
  11821. * src/BtChokeMessage.cc
  11822. * src/BtHaveAllMessage.cc
  11823. * src/BtHaveMessage.cc
  11824. * src/BtHaveNoneMessage.cc
  11825. * src/BtInterestedMessage.cc
  11826. * src/BtNotInterestedMessage.cc
  11827. * src/BtPieceMessage.cc
  11828. * src/BtPortMessage.cc
  11829. * src/BtRejectMessage.cc
  11830. * src/BtRequestMessage.cc
  11831. * src/BtSuggestPieceMessage.cc
  11832. * src/BtUnchokeMessage.cc
  11833. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11834. files are affected.
  11835. * src/ChunkChecksumValidator.cc
  11836. * src/SegmentMan.cc
  11837. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. To add chunk checksum validation:
  11839. * src/MetalinkEntry.h
  11840. (MetalinkChunkChecksum.h): New include.
  11841. (chunkChecksum): New variable.
  11842. * src/Request.h
  11843. (method): New variable.
  11844. (setMethod): New function.
  11845. (getMethod): New function.
  11846. (METHOD_GET): New static constant.
  11847. (METHOD_HEAD): New static constant.
  11848. * src/Xml2MetalinkProcessor.h
  11849. (getPieceHash): New function.
  11850. * src/PieceStorage.h
  11851. (markAllPiecesDone): New function.
  11852. (checkIntegrity): New function.
  11853. * src/FileAllocator.h
  11854. (NullFileAllocationMonitor.h): New include.
  11855. (FileAllocator): Initialize fileAllocationMonitor with new
  11856. NullFileAllocationMonitor().
  11857. * src/MultiDiskAdaptor.h
  11858. (messageDigest.h): Remove include.
  11859. (ctx): Removed.
  11860. (hashUpdate): Added ctx.
  11861. (MultiDiskAdaptor): Removed ctx.
  11862. (sha1Sum): Renamed as messageDigest.
  11863. (messageDigest): New function.
  11864. * src/UrlRequestInfo.h
  11865. (HeadResult): New class.
  11866. (digestAlgo): New variable.
  11867. (chunkChecksumLength): New variable.
  11868. (chunkChecksums): New variable.
  11869. (getHeadResult): New function.
  11870. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11871. (setDigestAlgo): New function.
  11872. (setChunkChecksumLength): New function.
  11873. (setChunkChecksums): New function.
  11874. * src/DefaultPieceStorage.cc
  11875. (DiskAdaptorWriter.h): New include.
  11876. (ChunkChecksumValidator.h): New include.
  11877. (markAllPiecesDone): New function.
  11878. (checkIntegrity): New function.
  11879. * src/DefaultBtContext.h
  11880. (getPieceHashes): New function.
  11881. * src/TorrentRequestInfo.cc
  11882. (execute): Try to validate chunk checksum if file already exists and
  11883. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11884. * src/messageDigest.h
  11885. (~MessageDigestContext): Added digestFree().
  11886. * src/MetalinkRequestInfo.cc
  11887. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11888. * src/DiskAdaptor.h
  11889. (messageDigest.h): New include.
  11890. (sha1Sum): Renamed as messageDigest.
  11891. (messageDigest): New function.
  11892. * src/DownloadCommand.h
  11893. (PeerStat.h): New include.
  11894. (maxDownloadSpeedLimit): New variable.
  11895. (startupIdleTime): New variable.
  11896. (lowestDownloadSpeedLimit): New variable.
  11897. (peerStat): New variable.
  11898. (setMaxDownloadSpeedLimit): New function.
  11899. (setStartupIdleTime): New function.
  11900. (setLowestDownloadSPeedLimit): New function.
  11901. * src/BtContext.h
  11902. (getPieceHashes): New function.
  11903. * src/main.cc
  11904. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11905. option to true for testing purpose.
  11906. * src/BtPieceMessage.cc
  11907. (checkPieceHash): Use messageDigest
  11908. * src/DownloadEngine.cc
  11909. (SetDescriptor): Removed.
  11910. (AccumulateActiveCommand): Removed.
  11911. (waitData): Rewritten.
  11912. (updateFdSet): Rewritten.
  11913. * src/MultiDiskAdaptor.cc
  11914. (hashUpdate): Added ctx.
  11915. (sha1Sum): Renamed as messageDigest.
  11916. (messageDigest): New function.
  11917. * src/BitfieldMan.h
  11918. (isBitRangeSet): New function.
  11919. (unsetBitRange): New function.
  11920. * src/ByteArrayDiskWriter.h
  11921. (sha1Sum): Renamed as messageDigest.
  11922. (messageDigest): New function.
  11923. * src/ConsoleDownloadEngine.cc
  11924. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11925. * src/DiskWriter.h
  11926. (messageDigest.h): New include.
  11927. (sha1Sum): Renamed as messageDigest.
  11928. (messageDigest): New function.
  11929. * src/ChunkChecksumValidator.h: New class.
  11930. * src/DiskAdaptorWriter.h: New class.
  11931. * src/prefs.h
  11932. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11933. (PREF_CHECK_INTEGRITY): New definition.
  11934. * src/HttpResponseCommand.cc
  11935. (handleDefaultEncoding): Added method "HEAD" handling.
  11936. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11937. (handleOtherEncoding):
  11938. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11939. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11940. startupIdleTime, lowestDownloadSpeedLimit to command.
  11941. * src/SegmentMan.h
  11942. (getSegmentEntryByIndex): New function.
  11943. (getSegmentEntryByCuid): New function.
  11944. (getSegmentEntryIteratorByCuid): New function.
  11945. (diskWriter): DiskWriter -> DiskWriterHandle
  11946. (pieceHashes): New variable.
  11947. (chunkHashLength): New variable.
  11948. (digestAlgo): New variable.
  11949. (FindPeerStat): Removed.
  11950. (getPeerStat): Rewritten.
  11951. (markAllPiecesDone): New function.
  11952. (checkIntegrity): New function.
  11953. (tryChunkChecksumValidation): New function.
  11954. (isChunkChecksumValidationReady): New function.
  11955. * src/BitfieldMan.cc
  11956. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11957. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11958. blocks to 0.
  11959. (isBitRangeSet): New function.
  11960. (unsetBitRange): New function.
  11961. * src/FtpNegotiateCommand.cc
  11962. (executeInternal): Set maxDownloadSpeedLimit,
  11963. startupIdleTime, lowestDownloadSpeedLimit to command.
  11964. (recvSize): Added method "HEAD" handling.
  11965. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11966. * src/AbstractSingleDiskAdaptor.cc
  11967. (sha1Sum): Renamed as messageDigest.
  11968. (messageDigest): New function.
  11969. * src/AbstractSingleDiskAdaptor.h
  11970. (sha1Sum): Renamed as messageDigest.
  11971. (messageDigest): New function.
  11972. * src/Util.h
  11973. (indexRange): New function.
  11974. * src/MetalinkEntry.cc
  11975. (MetalinkEntry): Initialized chunkChecksum to 0.
  11976. * src/ShaVisitor.cc
  11977. (~ShaVisitor): Removed the call to ctx.digestFree().
  11978. * src/SegmentMan.cc
  11979. (ChunkChecksumValidator.h): New include.
  11980. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11981. to DIGEST_ALGO_SHA1.
  11982. (~SegmentMan): Removed diskWriter.
  11983. (FindSegmentEntryByIndex): Removed.
  11984. (FindSegmentEntryByCuid): Removed.
  11985. (checkoutSegment): Rewritten.
  11986. (findSlowerSegmentEntry): Rewritten.
  11987. (getSegment): Rewritten.
  11988. (updateSegment): Rewritten.
  11989. (completeSegment): Rewritten.
  11990. (markAllPiecesDone): New function.
  11991. (checkIntegrity): New function.
  11992. (isChunkChecksumValidationReady): New function.
  11993. (tryChunkChecksumValidation): New function.
  11994. * src/Xml2MetalinkProcessor.cc
  11995. (getEntry): Get size and set it to entry.
  11996. Get chunk checksum and set it to entry.
  11997. (getPieceHash): New function.
  11998. * src/Util.cc
  11999. (sha1Sum): Removed ctx.digestFree()
  12000. (fileChecksum): Removed ctx.digestFree()
  12001. (indexRange): New function.
  12002. * src/Request.cc
  12003. (METHOD_GET): New variable.
  12004. (METHOD_HEAD): New variable.
  12005. (Request): Added method.
  12006. * src/UrlRequestInfo.cc
  12007. (FatalException.h): New include.
  12008. (message.h): New include.
  12009. (operator<<): Added operator<< for class HeadResult.
  12010. (getHeadResult): New function.
  12011. (execute): Get filename and size in separate download engine.
  12012. * src/ChunkChecksumValidator.cc: New class.
  12013. * src/DownloadCommand.cc:
  12014. (DownloadCommand): Added peerStat.
  12015. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12016. the value from Option.
  12017. The buffer size is now 16KB.
  12018. Use peerStat member instead of getting it from SegmentMan.
  12019. Use startupIdleTime member instead of gettingit from Option.
  12020. Added chunk checksum validation.
  12021. * src/AbstractDiskWriter.cc
  12022. (AbstractDiskWriter): Removed ctx.
  12023. (~AbstractDiskWriter): Removed ctx.digestFree()
  12024. (writeDataInternal): Returns the return value of write.
  12025. (readDataInternal): Returns the return value of read.
  12026. (sha1Sum): Renamed as messageDigest
  12027. (messageDigest): New function.
  12028. * src/AbstractDiwkWriter.h
  12029. (messageDigest.h): Removed include.
  12030. (ctx): Removed.
  12031. (sha1Sum): Renamed as messageDigest
  12032. (messageDigest): New function.
  12033. * src/DefaultPieceStorage.h
  12034. (markAllPiecesDone): New function.
  12035. (checkIntegrity): New function.
  12036. * src/NullFileAllocationMonitor.h: New class.
  12037. * src/MetalinkChunkChecksum.h: New class.
  12038. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12039. To decrease CPU usage in bittorrent download, calculation results in
  12040. BitfieldMan were cached and realtime fetching PeerObject was removed
  12041. with WeakHandle introduced. Option values are set to the objects
  12042. by setter before download begins.
  12043. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12044. * src/DefaultBtRequestFactory.h
  12045. (dispatcher): BtMessageDispatcherHandle ->
  12046. BtMessageDispatcherWeakHandle.
  12047. (messageFactory): New variable.
  12048. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12049. BtMessageDispatcherWeakHandle.
  12050. (setBtMessageFactory): New function.
  12051. * src/DefaultBtMessageDispatcher.cc:
  12052. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12053. from Option.
  12054. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12055. feating the value from Option.
  12056. Use messageFactory member.
  12057. * src/PeerInteractionCommand.cc
  12058. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12059. Add reverse dependencies to factory object.
  12060. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12061. dispatcher.
  12062. Set messageFactory to receiver.
  12063. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12064. btInteractive.
  12065. Set receiver to peerObject.
  12066. Set maxDownloadSpeedLimit to this.
  12067. (executeInternal): Use maxDownloadSpeedLimit member.
  12068. * src/BtChokeMessage.cc
  12069. (doReceivedAction): Use dispatcher, requestFactory member.
  12070. (onSendComplete): Use dispatcher member.
  12071. * src/PeerInteractionCommand.h
  12072. (maxDownloadSpeedLimit): New variable.
  12073. * src/DefaultBtMessageReceiver.h
  12074. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12075. (dispatcher):
  12076. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12077. (messageFactory): New variable.
  12078. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12079. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12080. (setDispatcher):
  12081. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12082. (setBtMessageFactory): New function.
  12083. * src/DefaultBtInteractive.cc
  12084. (initiateHandshake): Use messageFactory member.
  12085. (addBitfieldMessageToQueue): Use messageFactory member.
  12086. (addAllowedFastMessageToQueue): Use messageFactory member.
  12087. (decideChoking): Use messageFactory member.
  12088. (checkHave): Use messageFactory member.
  12089. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12090. (receiveMessages): Use maxDownloadSpeedLimit member.
  12091. (decideInterest): Use messageFactory member.
  12092. * src/BtRequestMessage.cc
  12093. (doReceivedAction): Use messageFactory, dispatcher member.
  12094. (onQueued): Use dispatcher member.
  12095. * src/BtPieceMessage.cc
  12096. (doReceivedAction): Use dispatcher member.
  12097. (send): Use peerConnection member.
  12098. (onWrongPiece): Use requestFactory member.
  12099. (handleChokingEvent): Use messageFactory, dispatcher member.
  12100. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12101. * src/BtMessageDispatcher.h
  12102. (BtMessageDispatcherWeakHandle): New type definition.
  12103. * src/SimpleBtMessage.cc
  12104. (send): Use peerConnection member.
  12105. * src/BtRejectMessage.cc
  12106. (doReceivedAction): Use dispatcher member.
  12107. * src/DefaultBtMessageDispatcher.h
  12108. (Option.h): Removed include.
  12109. (messageFactory): New variable.
  12110. (option): Removed.
  12111. (maxUploadSpeedLimit): New variable.
  12112. (requestTimeout): New variable.
  12113. (DefaultBtMessageDispatcher): Removed option.
  12114. Added maxUploadSpeedLimit, requestTimeout.
  12115. (setOption): Removed.
  12116. (getOption): Removed.
  12117. (setMaxUploadSpeedLimit): New function.
  12118. (setRequestTimeout): New function.
  12119. (setBtMessageFactory): New function.
  12120. * src/DefaultBtInteractive.h
  12121. (btMessageReceiver):
  12122. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12123. (dispatcher):
  12124. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12125. (btRequestFactory):
  12126. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12127. (peerConnection):
  12128. PeerConnectionHandle -> PeerConnectionWeakHandle
  12129. (messageFactory): New variable.
  12130. (option): Removed.
  12131. (keepAliveInterval): New variable.
  12132. (maxDownloadSpeedLimit): New variable.
  12133. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12134. (setBtMessageReceiver):
  12135. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12136. (setDispatcher):
  12137. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12138. (setBtRequestFactory):
  12139. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12140. (setPeerConnection):
  12141. PeerConnectionHandle -> PeerConnectionWeakHandle
  12142. (setOption): Removed.
  12143. (setKeepAliveInterval): New function.
  12144. (setMaxDownloadSpeedLimit): New function.
  12145. (setBtMessageFactory): New function.
  12146. * src/BitfieldMan.h
  12147. (cachedNumMissingBlock): New variable.
  12148. (cachedNumFilteredBlock): New variable.
  12149. (cachedCompletedLength): New variable.
  12150. (cachedFilteredComletedLength): New variable.
  12151. (cachedFilteredTotalLength): New variable.
  12152. (countMissingBlockNow): New function.
  12153. (countFilteredBlockNow): New function.
  12154. (getFilteredTotalLengthNow): New function.
  12155. (getCompletedLengthNow): New function.
  12156. (getFilteredCompletedLengthNow): New function.
  12157. (updateCache): New function.
  12158. * src/AbstractBtMessage.h
  12159. (BtMessageDispatcher.h): New include.
  12160. (PeerConnection.h): New include.
  12161. (BtRequestFactory.h): New include
  12162. (BtMessageFactory.h): New include.
  12163. (dispatcher): New variable.
  12164. (messageFactory): New variable.
  12165. (peerConnection: New variable.
  12166. (setBtMessageDispatcher): New function.
  12167. (setPeerConnection): New function.
  12168. (setBtMessageFactory): New function.
  12169. (setBtRequestFactory): New function.
  12170. * src/DefaultBtMessageFactory.cc
  12171. (setCommonProperty): Set dispatcher, requestFactory, this,
  12172. peerConnection to msg.
  12173. * src/BtRegistry.h
  12174. (BT_MESSAGE_RECEIVER): New macro.
  12175. * src/PeerConnection.h
  12176. (PeerConnectionWeakHandle): New type definition.
  12177. * src/BtMessageFactory.h
  12178. (BtMessageFactoryWeakHandle): New type definition.
  12179. * src/BitfieldMan.cc
  12180. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12181. cachedCompletedLength, cachedFilteredComletedLength,
  12182. cachedFilteredTotalLength.
  12183. Call updateCache().
  12184. (countMissingBlock): Return cachedNumMissingBlock.
  12185. (countMissingBlockNow): New function.
  12186. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12187. (countFilteredBlockNow): New function.
  12188. (setBit): Call updateCache().
  12189. (unsetBit): Call updateCache().
  12190. (setBitfield): Call updateCache().
  12191. (clearAllBit): Call updateCache().
  12192. (setAllBit): Use setBitInternal instead of setBit.
  12193. Call updateCache().
  12194. (addFilter): Call updateCache().
  12195. (enableFilter): Call updateCache().
  12196. (disableFilter): Call updateCache().
  12197. (clearFilter): Call updateCache().
  12198. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12199. (getFilteredTotalLengthNow): New function.
  12200. (getCompletedLength): Return cachedCompletedLength.
  12201. (getCompletedLengthNow): New function.
  12202. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12203. (getFilteredCompletedLengthNow): New function.
  12204. (updateCache): New function.
  12205. * src/BtMessageReceiver.h
  12206. (BtMessageReceiverWeakHandle): New type definition.
  12207. * src/DefaultBtMessageReceiver.cc
  12208. (receiveHandshake): Use messageFactory member.
  12209. (sendHandshake): Use messageFactory member.
  12210. (receiveMessage): Use messageFactory member.
  12211. * src/DefaultBtMessageFactory.h
  12212. (dispatcher): New variable.
  12213. (requestFactory): New variable.
  12214. (peerConnection): New variablle.
  12215. (setBtMessageDispatcher): New function.
  12216. (setBtRequestFactory): New function.
  12217. (setPeerConnection): New function.
  12218. * src/SharedHandle.h
  12219. (RefCount): New class.
  12220. (WeakHandle): New class.
  12221. * src/PeerObject.h
  12222. (BtMessageReceiver.h): New include.
  12223. (PeerObject): Added btMessageReceiver.
  12224. (btMessageReceiver): New variable.
  12225. * src/Util.cc
  12226. (countBit): Simplified.
  12227. * src/BtCancelMessage.cc
  12228. (doReceivedAction): Use dispatcher member.
  12229. * src/BtRequestFactory.h
  12230. (BtRequestFactoryWeakHandle): New type definition.
  12231. * src/PeerStorage.h
  12232. (downloadSpeed): int -> uint32_t
  12233. (uploadSpeed): int -> uint32_t
  12234. (sessionDownloadLength): long long int -> uint64_t
  12235. (sessionUploadLength): long long int -> uint64_t
  12236. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12237. To add RecoverableException, FatalException:
  12238. * src/AbstractCommand.cc
  12239. (onAbort): Exception -> RecoverableException
  12240. * src/PeerAbstractCommand.h
  12241. (RecoverableException.h): New include.
  12242. (onAbort): Exception -> RecoverableException.
  12243. * src/PeerInteractionCommand.cc
  12244. (onAbort): Exception -> RecoverableException.
  12245. * src/PeerAbstractCommand.cc
  12246. (execute): Exception -> RecoverableException.
  12247. (onAbort): Exception -> RecoverableException.
  12248. * src/TorrentRequestInfo.cc
  12249. (execute): Exception -> RecoverableException.
  12250. * src/MetalinkRequestInfo.cc
  12251. (execute): Exception -> RecoverableException.
  12252. * src/MetaFileUtil.cc: RecoverableException.
  12253. * src/AbstractCommand.h
  12254. (onAbort): Exception -> RecoverableException.
  12255. * src/DlRetryEx.h: Exception -> RecoverableException.
  12256. * src/DlAbortEx.h: Exception -> RecoverableException.
  12257. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12258. * src/Util.cc: Exception -> RecoverableException.
  12259. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12260. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12261. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12262. To make ID static const int
  12263. * src/BtInterestedMessage.h
  12264. (ID_t): Removed.
  12265. (ID): New variable.
  12266. (getId): Made non-const.
  12267. * src/BtPieceMessage.h
  12268. (ID_t): Removed.
  12269. (ID): New variable.
  12270. (getId): Made non-const.
  12271. * src/BtChokeMessage.h
  12272. (ID_t): Removed.
  12273. (ID): New variable.
  12274. (getId): Made non-const.
  12275. * src/BtHaveAllMessage.h
  12276. (ID_t): Removed.
  12277. (ID): New variable.
  12278. (getId): Made non-const.
  12279. * src/BtKeepAliveMessage.h
  12280. (ID_t): Removed.
  12281. (ID): New variable.
  12282. (getId): Made non-const.
  12283. * src/BtHandshakeMessage.h
  12284. (ID): New variable.
  12285. (getId): Made non-const.
  12286. * src/BtSuggestPieceMessage.h
  12287. (ID_t): Removed.
  12288. (ID): New variable.
  12289. (getId): Made non-const.
  12290. * src/BtPortMessage.h
  12291. (ID_t): Removed.
  12292. (ID): New variable.
  12293. (getId): Made non-const.
  12294. * src/AbstractBtMessage.h
  12295. (id): Removed.
  12296. (AbstractBtMessage): Removed id.
  12297. (getId): Removed.
  12298. * src/BtHaveMessage.h
  12299. (ID_t): Removed.
  12300. (ID): New variable.
  12301. (getId): Made non-const.
  12302. * src/BtAllowedFastMessage.h
  12303. (ID_t): Removed.
  12304. (ID): New variable.
  12305. (getId): Made non-const.
  12306. * src/BtCancelMessage.h
  12307. (ID_t): Removed.
  12308. (ID): New variable.
  12309. (getId): Made non-const.
  12310. * src/BtNotInterestedMessage.h
  12311. (ID_t): Removed.
  12312. (ID): New variable.
  12313. (getId): Made non-const.
  12314. * src/BtChokeMessage.h
  12315. (ID_t): Removed.
  12316. (ID): New variable.
  12317. (getId): Made non-const.
  12318. * src/BtRejectMessage.h
  12319. (ID_t): Removed.
  12320. (ID): New variable.
  12321. (getId): Made non-const.
  12322. * src/BtBitfieldMessage.h
  12323. (ID_t): Removed.
  12324. (ID): New variable.
  12325. (getId): Made non-const.
  12326. * src/BtUnchokeMessage.h
  12327. (ID_t): Removed.
  12328. (ID): New variable.
  12329. (getId): Made non-const.
  12330. * src/BtRequestMessage.h
  12331. (ID_t): Removed.
  12332. (ID): New variable.
  12333. (getId): Made non-const.
  12334. * src/BtHaveMessage.h
  12335. (ID_t): Removed.
  12336. (ID): New variable.
  12337. (getId): Made non-const.
  12338. To add --force-truncate command-line option and a check whether
  12339. the file already exists:
  12340. * src/DirectDiskAdaptor.h
  12341. (getFilePath): Made virtual public.
  12342. * src/MultiDiskAdaptor.h
  12343. (File.h): New include.
  12344. (DiskWriterEntry::fileEntry): Made private.
  12345. (DiskWriterEntry::fileExists): New function.
  12346. (DiskWriterEntry::getFileEntry): New function.
  12347. (fileExists): New function.
  12348. (getFilePath): New function.
  12349. * src/TorrentRequestInfo.cc
  12350. (FatalException.h): New include.
  12351. (message.h): New include.
  12352. (RecoverableException.h): New include.
  12353. (execute): Added a check whether file is already exists or not.
  12354. * src/DiskAdaptor.h
  12355. (fileExists): New function.
  12356. (getFilePath): New function.
  12357. * src/main.cc
  12358. (showUsage): Added an explanation of --force-truncate command-line
  12359. option.
  12360. (main): Added --force-truncate command-line option.
  12361. * src/Exception.h
  12362. (setMsg): buf[256] -> buf[1024]
  12363. * src/CopyDiskWriter.h
  12364. (getFilePath): Made public virtual.
  12365. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12366. (fileExists): New function.
  12367. * src/DownloadEngineFactory.cc
  12368. (newTorrentConsoleEngine): Don't open file here.
  12369. * src/message.h
  12370. (EX_FILE_ALREADY_EXISTS): New definition.
  12371. * src/prefs.h
  12372. (PREF_FOECE_TRUNCATE): New definition.
  12373. * src/HttpResponseCommand.cc
  12374. (handleDefaultEncoding): Added a check whether the file already exists.
  12375. * src/SegmentMan.h
  12376. (fileExists): New function.
  12377. (shouldCancelDownloadForSafety): New function.
  12378. * src/FtpNegotiateCommand.cc
  12379. (recvSize): Added a check whether the file already exists.
  12380. * src/AbstractSingleDiskAdaptor.cc
  12381. (File.h): New include.
  12382. (fileExists): New function.
  12383. * src/AbstractSingleDiskAdaptor.h
  12384. (getFilePath): Removed.
  12385. (fileExists): New function.
  12386. * src/SegmentMan.cc
  12387. (fileExists): New function.
  12388. (shouldCancelDownloadForSafety): New function.
  12389. To fix regression bug in torrent downloading:
  12390. * src/DefaultBtRequestFactory.cc
  12391. (doChokedAction): New function.
  12392. * src/DefaultBtRequestFactory.h
  12393. (doChokedAction): New function.
  12394. * src/DefaultBtMessageDispatcher.cc
  12395. (doChokedAction): Do not delete request if its target is in allowed
  12396. fast set.
  12397. * src/DefaultBtInteractive.cc
  12398. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12399. (sendKeepAlive): Send keep alive message even if the outgoing message
  12400. queue is not empty.
  12401. (decideInterest): Simplified the code.
  12402. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12403. it is already called when BtChokeMessage is received from a peer.
  12404. * src/BtRequestFactory.h
  12405. (doChokedAction): New function.
  12406. To clean up code:
  12407. * src/PeerInteractionCommand.h
  12408. (executeInternal): Added virtual keyword explicitly.
  12409. (prepareForRetry): Added virtual keyword explicitly.
  12410. (prepareForNextPeer): Added virtual keyword explicitly.
  12411. (onAbort): Added virtual keyword explicitly.
  12412. * src/RequestSlot.cc
  12413. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12414. * src/BtPieceMessage.cc
  12415. (doReceivedAction): Added a debug log of piece's bitfield.
  12416. * src/Piece.h
  12417. (getBitfieldLength): New function.
  12418. * src/ByteArrayDiskWriter.cc
  12419. (clear): Added buf = 0 to avoid double free corruption.
  12420. * src/FileAllocator.cc
  12421. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12422. Added cp.reset().
  12423. * src/BitfieldMan.h
  12424. (operator=): Rewritten.
  12425. * src/BitfieldMan.cc
  12426. (BitfieldMan): Initialized bitfield, useBitfield.
  12427. * src/PeerConnection.cc
  12428. (receiveMessage): Added a call to socket->readable() after getting
  12429. message length to avoid possible EOF.
  12430. * src/Util.cc
  12431. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12432. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12433. To add an ability to pre-allocate file space:
  12434. * src/DirectDiskAdaptor.h: Rewritten.
  12435. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12436. * src/MultiDiskAdaptor.h: Rewritten.
  12437. * src/DefaultPieceStorage.cc
  12438. (MultiDiskWriter.h): Removed include.
  12439. (PreAllocationDiskWriter.h): Removed include.
  12440. (FileAllocationMonitor.h): New include.
  12441. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12442. (initStorage): Rewritten.
  12443. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12444. * src/FileAllocator.h: New class.
  12445. * src/FileAllocator.cc: New class.
  12446. * src/FileAllocationMonitor.h: New class.
  12447. * src/FileAllocationMonitor.cc: New class.
  12448. * src/ConsoleFileAllocationMonitor.h: New class.
  12449. * src/ConsoleFileAllocationMonitor.cc: New class.
  12450. * src/AbstractSingleDiskAdaptor.h: New class.
  12451. * src/AbstractSingleDiskAdaptor.cc: New class.
  12452. * src/DiskAdaptor.h
  12453. (Directory.h): Removed include.
  12454. (DiskWriter.h): Removed include.
  12455. (FileEntry.h): Removed include.
  12456. (diskWriter): Removed.
  12457. (DiskAdaptor): Removed diskWriter.
  12458. (openFile): Made pure virtual.
  12459. (closeFile): Made pure virtual.
  12460. (openExistingFile): Made pure virtual.
  12461. (initAndOpenFile): Made pure virtual.
  12462. (writeData): Made pure virtual.
  12463. (readData): Made pure virtual.
  12464. (sha1Sum): Made pure virtual.
  12465. (getStoreDir): Returns const reference of storeDir.
  12466. (DiskAdaptorHandle): New type definition.
  12467. * src/main.cc
  12468. (ConsoleFileAllocationMonitor.h): New include.
  12469. (showUsage): Added default value description of -s option.
  12470. Added the description of --file-allocation option.
  12471. (main): Set default value of --file-allocation option to 'none'.
  12472. Added --file-allocation command-line option.
  12473. Setup FileAllocationMonitorFactory.
  12474. * src/FtpInitiateConnectionCommand.cc
  12475. (executeInternal): Removed diskWriter related processing, which was
  12476. moved to FtpNegotiationCommand.cc.
  12477. * src/DirectDiskAdaptor.cc
  12478. (getFilePath): Made non-const.
  12479. * src/CopyDiskAdaptor.h
  12480. (DiskAdaptor.h): Removed include.
  12481. (DiskWriter.h): Removed include.
  12482. (AbstractSingleDiskAdaptor.h): New include.
  12483. (getFilePath): Made non-const. Added virtual keyword.
  12484. (CopyDiskAdaptor): Removed diskWriter.
  12485. (getTempFile): Returns const reference.
  12486. (CopyDiskAdaptorHandle): New type definition.
  12487. * src/ByteArrayDiskWriter.cc
  12488. (clear): Simplified.
  12489. (initAndOpenFile): Rewritten.
  12490. (openFile): Call initAndOpenFile()
  12491. * src/MultiDiskAdaptor.cc: Rewritten.
  12492. * src/DownloadEngineFactory.cc
  12493. (FileAllocator.h): New include.
  12494. (FileAllocationMonitor.h): New include.
  12495. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12496. create DefaultDiskWriter with file allocator.
  12497. * src/DiskWriter.h
  12498. (initAndOpenFile): Added totalLength argument.
  12499. (openFile): Added totalLength argument.
  12500. * src/prefs.h
  12501. (PREF_FILE_ALLOCATION): New definition.
  12502. (V_PREALLOC): New definition.
  12503. (V_NONE): New definition.
  12504. * src/HttpResponseCommand.cc
  12505. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12506. size.
  12507. * src/FtpNegotiateCommand.cc
  12508. (Util.h): New include.
  12509. (recvSize): Open file here.
  12510. * src/Util.h
  12511. (ullitos): New function.
  12512. * src/CopyDiskWriter.h
  12513. (getFilePath): Made non-const.
  12514. * src/DefaultDiskWriter.h
  12515. (Option.h): New include.
  12516. (totalLength): Removed.
  12517. (DefaultDiskWriter): Removed totalLength.
  12518. (initAndOpenFile): Added totalLength argument.
  12519. (DefaultDiskWriterHandle): New type definition.
  12520. (createNewDiskWriter): New function.
  12521. * src/Util.cc
  12522. (ullitos): New function.
  12523. * src/DefaultDiskWriter.cc
  12524. (message.h): New include.
  12525. (FileAllocator.h): New include.
  12526. (prefs.h): New include.
  12527. (Util.h): New include.
  12528. (DefaultDiskWriter): Removed totalLength.
  12529. (initAndOpenFile): Added file allocation.
  12530. (createNewDiskWriter): New function. Just for temporary solution.
  12531. It will be rewritten later.
  12532. * src/DiskAdaptor.cc
  12533. (DiskAdaptor): Removed diskWriter.
  12534. * src/AbstractDiskWriter.cc
  12535. (LogFactory.h): New include.
  12536. (AbstractDiskWriter): Added fileAllocator, logger.
  12537. (openFile): Added totalLength argument.
  12538. * src/AbstractDiskWriter.h
  12539. (FileAllocator.h): New include.
  12540. (Logger.h): New include.
  12541. (fileAllocator): New variable.
  12542. (logger): New variable.
  12543. (openFile): Added totalLength argument. Added virtual keyword
  12544. explicitly.
  12545. (openExistingFile): Added totalLength argument. Added virtual keyword
  12546. explicitly.
  12547. (closeFile): Added virtual keyword explicitly.
  12548. (sha1Sum): Added virtual keyword explicitly.
  12549. (writeData): Added virtual keyword explicitly.
  12550. (readData): Added virtual keyword explicitly.
  12551. (setFileAllocator): New function.
  12552. * src/DefaultPieceStorage.h
  12553. (FileAllocator.h): New include.
  12554. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12555. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12556. * src/FileProgressMonitor.h: New class.
  12557. To compile aria2 on PC-BSD:
  12558. * src/DefaultBtContext.cc
  12559. (libgen.h): New include.
  12560. To fix memory leak:
  12561. * src/Exception.h
  12562. (~Exception): Delete cause. Fixed memory leak.
  12563. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12564. Rewritten a portion of bittorrent implementation:
  12565. * src/BtMessageValidator.h: New class.
  12566. * src/BtBitfieldMessageValidator.h: New class.
  12567. * src/BtHandshakeMessageValidator.h: New class.
  12568. * src/BtRequestMessageValidator.h: New class.
  12569. * src/BtSuggestPieceMessageValidator.h: New class.
  12570. * src/BtAllowedFastMessageValidator.h: New class.
  12571. * src/BtRejectMessageValidator.h: New class.
  12572. * src/BtCancelMessageValidator.h: New class.
  12573. * src/BtPieceMessageValidator.h: New class.
  12574. * src/BtHaveMessageValidator.h: New class.
  12575. * src/BtEventListener.h: New class.
  12576. * src/AbstractBtEventListener.h: New class.
  12577. * src/BtEvent.h: New class.
  12578. * src/BtChokingEvent.h: New class.
  12579. * src/BtChokedEvent.h: New class.
  12580. * src/BtCancelSendingPieceEvent.h: New class.
  12581. * src/BtAbortOutstandingRequestEvent.h: New class.
  12582. * src/Randomizer.h: New class.
  12583. * src/SimpleRandomizer.h: New class.
  12584. * src/BtMessage.h: New class.
  12585. * src/AbstractBtMessage.h: New class.
  12586. * src/SimpleBtMessage.h: New class.
  12587. * src/BtHaveMessage.h: New class.
  12588. * src/BtInterestedMessage.h: New class.
  12589. * src/BtAllowedFastMessage.h: New class.
  12590. * src/BtUnchokeMessage.h: New class.
  12591. * src/BtCancelMessage.h: New class.
  12592. * src/BtNotInterestedMessage.h: New class.
  12593. * src/BtChokeMessage.h: New class.
  12594. * src/BtHaveNoneMessage.h: New class.
  12595. * src/BtHandshakeMessage.h: New class.
  12596. * src/BtSuggestPieceMessage.h: New class.
  12597. * src/BtHaveMessage.h: New class.
  12598. * src/BtPieceMessage.h: New class.
  12599. * src/BtHaveAllMessage.h: New class.
  12600. * src/BtKeepAliveMessage.h: New class.
  12601. * src/BtPortMessage.h: New class.
  12602. * src/BtRejectMessage.h: New class.
  12603. * src/BtBitfieldMessage.h: New class.
  12604. * src/BtRequestMessage.h: New class.
  12605. * src/DefaultBtRequestFactory.h: New class.
  12606. * src/DefaultBtMessageReceiver.h: New class.
  12607. * src/BtInteractive.h: New class.
  12608. * src/BtMessageDispatcher.h: New class.
  12609. * src/DefaultBtMessageDispatcher.h: New class.
  12610. * src/DefaultBtInteractive.h: New class.
  12611. * src/BitfieldManFactory.h: New class.
  12612. * src/HandleRegistry.h: New class.
  12613. * src/BtMessageFactory.h: New class.
  12614. * src/BtMessageReceiver.h: New class.
  12615. * src/DefaultBtMessageFactory.h: New class.
  12616. * src/PeerObject.h: New class.
  12617. * src/BtRequestFactory.h: New class.
  12618. * src/SuggestPieceMessage.h: Removed.
  12619. * src/PortMessage.h: Removed.
  12620. * src/SuggestPieceMessage.h: Removed.
  12621. * src/KeepAliveMessage.h: Removed.
  12622. * src/HandshakeMessage.h: Removed.
  12623. * src/PeerInteraction.h: Removed.
  12624. * src/UnchokeMessage.h: Removed.
  12625. * src/PieceMessage.h: Removed.
  12626. * src/RequestMessage.h: Removed.
  12627. * src/InterestedMessage.h: Removed.
  12628. * src/HaveMessage.h: Removed.
  12629. * src/CancelMessage.h: Removed.
  12630. * src/RejectMessage.h: Removed.
  12631. * src/AllowedFastMessage.h: Removed.
  12632. * src/HaveNoneMessage.h: Removed.
  12633. * src/SimplePeerMessage.h: Removed.
  12634. * src/HaveAllMessage.h: Removed.
  12635. * src/BitfieldMessage.h: Removed.
  12636. * src/PeerMessageFactory.h: Removed.
  12637. * src/NotInterestedMessage.h: Removed.
  12638. * src/ChokeMessage.h: Removed.
  12639. * src/PeerMessage.h: Removed.
  12640. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12641. To know root cause of exception:
  12642. * src/Exception.h
  12643. (cause): New variable.
  12644. (Exception): Added a parameter.
  12645. (getMsg): Return const reference to msg.
  12646. (getCause): New function.
  12647. * src/DlRetryEx.h
  12648. (DlRetryEx): Added a parameter 'cause'.
  12649. Added an overloaded constructor.
  12650. (DlAbortEx): Added a parameter 'cause'.
  12651. Added an overloaded constructor.
  12652. * src/SimpleLogger.cc
  12653. (writeLog): Log nested exception messages recursively.
  12654. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12655. * src/DefaultBtProgressInfoFile.cc
  12656. (load): Fixed memory leak when the infohash doesn't match.
  12657. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12658. * src/DefaultPeerStorage.cc
  12659. (calculateStat): Simplified the code by combining 2 loops into 1.
  12660. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12661. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12662. for BitTorrent download:
  12663. * src/PeerAbstractCommand.cc
  12664. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12665. * src/main.cc:
  12666. (timeoutSpecified): Removed.
  12667. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12668. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12669. * src/TorrentRequestInfo.cc
  12670. (timeoutSpecified): Removed.
  12671. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12672. timeout value.
  12673. * src/prefs.h
  12674. (PREF_BT_TIMEOUT): New definition.
  12675. Delete unused variables:
  12676. * src/TorrentRequestInfo.cc
  12677. (requestInfo): Removed.
  12678. Move setSignalHander to Util::setGlobalSignalHandler:
  12679. * src/TorrentRequestInfo.cc:
  12680. setSignalHander -> Util::setGlobalSignalHandler
  12681. * src/main.cc
  12682. (setSignalHander): Removed.
  12683. (main): setSignalHander -> Util::setGlobalSignalHandler
  12684. * src/Util.h
  12685. (setGlobalSignalHandler): New function.
  12686. * src/Util.cc
  12687. (setGlobalSignalHandler): New function.
  12688. * src/UrlRequestInfo.cc:
  12689. setSignalHander -> Util::setGlobalSignalHandler
  12690. Reset peer status in order to exit gracefully:
  12691. * src/PeerAbstractCommand.cc
  12692. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12693. To fix the bug that causes the number of bytes uploaded is not saved
  12694. to .aria2 file:
  12695. * src/DefaultPeerStorage.h
  12696. (removedPeerSessionDownloadLength): New variable.
  12697. (removedPeerSessionUploadLength): New variable.
  12698. * src/DefaultPeerStorage.cc
  12699. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12700. removedPeerSessionUploadLength(0).
  12701. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12702. through all peers, and then add removedPeerSessionDownloadLength(
  12703. removedPeerSessionUploadLength) to it.
  12704. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12705. (to) the peer to removedPeerSessionDownloadLength
  12706. (removedPeerSessionUploadLength).
  12707. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12708. To add Metalink location option:
  12709. * src/MetalinkRequestInfo.cc
  12710. (execute): Call MetalinkEntry::setLocationPreference()
  12711. * src/main.cc
  12712. (showUsage): Added the help message for --metalink-location option.
  12713. (main): Added --metalink-location option.
  12714. * src/prefs.h
  12715. (PREF_METALINK_LOCATION): New definition.
  12716. * src/MetalinkEntry.cc
  12717. (AddLocationPreference): New function object.
  12718. (setLocationPreference): New function.
  12719. * src/Xml2MetalinkProcessor.cc
  12720. (getResource): Set location attribute to MetalinkResource
  12721. To show URLs to download
  12722. * src/UrlRequestInfo.h
  12723. (printUrls): New function.
  12724. To add multiple <file> Metalink support:
  12725. * src/MetalinkEntry.h
  12726. (MetalinkResources): Removed.
  12727. (setLocationPreference): New function.
  12728. (MetalinkEntryHandle): New type definition.
  12729. (MetalinkEntries): New type definition.
  12730. * src/Xml2MetalinkProcessor.h
  12731. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12732. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12733. (parseFile): Metalinker* -> MetalinkerHandle
  12734. * src/UrlRequestInfo.h
  12735. (execute): RequestInfo* -> RequestInfos
  12736. * src/MetalinkRequestInfo.cc
  12737. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12738. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12739. (execute): RequestInfo* -> RequestInfos
  12740. Added multiple <file> support. Print filename when it is queued.
  12741. * src/MetalinkRequestInfo.h
  12742. (execute): RequestInfo* -> RequestInfos
  12743. (getDownloadEngine): Removed.
  12744. * src/RequestInfo.h
  12745. (RequestInfoHandle): New type definition.
  12746. (RequestInfos): New type definition.
  12747. (execute): RequestInfo* -> RequestInfos
  12748. (getDownloadEngine): Removed.
  12749. * src/MetalinkResource.h
  12750. (MetalinkResourceHandle): New type definition.
  12751. (MetalinkResources): New type definition.
  12752. * src/MetalinkEntry.cc
  12753. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12754. because the element is now of type MetalinkResourceHandle.
  12755. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12756. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12757. (dropUnsupportedResource): Removed the deletion of the elements of
  12758. resources because the element is now of type MetalinkResourceHandle.
  12759. * src/Xml2MetalinkProcessor.cc
  12760. (parseFile): Metalinker* -> MetalinkerHandle
  12761. MetalinkEntry* -> MetalinkEntryHandle
  12762. Removed try-catch block.
  12763. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12764. MetalinkResource* -> MetalinkResourceHandle
  12765. Removed try-catch block.
  12766. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12767. Free result by using xmlXPathFreeObject()
  12768. * src/Metalinker.cc
  12769. (~Metalinker): Removed the deletion of entries.
  12770. MetalinkEntry* -> MetalinkEntryHandle
  12771. (queryEntry): Add multiple <file> Metalink support.
  12772. * src/Metalinker.h
  12773. (MetalinkEntries): Removed.
  12774. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12775. * src/MetalinkProcessor.h
  12776. (parseFile): Metalinker* -> MetalinkerHandle
  12777. Bug fixes:
  12778. * src/PeerChokeCommand.cc
  12779. (execute): cat01->cat02
  12780. * src/DefaultPieceStorage.cc
  12781. (DefaultPieceStorage): Added diskAdaptor(0)
  12782. * src/TrackerWatcherComand.cc:
  12783. (execute): Use btAnnounce->noMoreAnnounce()
  12784. to determin whether the function returns true or not.
  12785. * src/TrackerUpdateCommand.cc:
  12786. (execute): Use btAnnounce->noMoreAnnounce()
  12787. to determin whether the function returns true or not.
  12788. * src/FtpConnection.cc
  12789. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12790. This is the fix of the busy loop bug.
  12791. * src/DownloadCommand.cc
  12792. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12793. cached PeerStat.
  12794. The value of "name" entry in torrent file is now set by
  12795. *DiskAdaptor::setTopDir(...) methods.
  12796. * src/MultiDiskAdaptor.h
  12797. (topDir): New variable.
  12798. (setTopDir): New function.
  12799. (getTopDir): New function.
  12800. * src/MultiDiskAdaptor.cc
  12801. (getFilePath): Concat storDir, "/" and topDir.
  12802. (mkdir): Use getFilePath() to get the directory path for output.
  12803. * src/DefaultPieceStorage.cc
  12804. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12805. CopyDiskAdaptor.
  12806. * src/CopyDiskAdaptor.h
  12807. (topDir): New variable.
  12808. (setTopDir): New function.
  12809. (getTopDir): New function.
  12810. * src/CopyDiskAdaptor.cc
  12811. (fixFilename): Updated.
  12812. Misc
  12813. * src/UrlRequestInfo.h
  12814. (e): Removed.
  12815. (UrlRequestInfo): Removed e.
  12816. (getDownloadEngine): Removed.
  12817. * src/UrlRequestInfo.cc
  12818. (handler): Rewritten.
  12819. (printUrls): New function.
  12820. (execute): Call printUrls().
  12821. * src/HandshakeMessage.cc
  12822. (check): peerinteraction->getBtContext() -> btContext
  12823. * src/PeerInteraction.h
  12824. (getBtContext): Removed.
  12825. * src/TorrentRequestInfo.h
  12826. (execute): RequestInfo* -> RequestInfos
  12827. (getDownloadEngine): Removed.
  12828. * src/TorrentRequestInfo.cc
  12829. (haltRequested): Removed.
  12830. (btHaltRequested): New variable.
  12831. (torrentHandler): haltRequested -> btHaltRequested
  12832. (execute): RequestInfo* -> RequestInfos
  12833. * src/TorrentConsoleDownloadEngine.cc
  12834. (afterEachIteration): haltRequested -> btHaltRequested.
  12835. * src/ConsoleDownloadEngine.h
  12836. (initStatistics): Added virtual.
  12837. (calculateStatistics): Added virtual.
  12838. (onEndOfRun): Added virtual.
  12839. (afterEachIteration): Added virtual.
  12840. * src/ConsoleDownloadEngine.cc
  12841. (haltRequested): New variable.
  12842. (afterEachIteration): New function.
  12843. * src/main.cc
  12844. (requestInfo): Removed.
  12845. * src/SegmentMan.cc
  12846. (findSlowerSegmentEntry): Refactored.
  12847. * Release 0.9.0
  12848. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12849. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12850. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12851. * src/TorrentMan.h: Removed.
  12852. * src/TorrentMan.cc: Removed.
  12853. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12854. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12855. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12856. * src/PeerAbstractCommand.cc: Use btRuntime.
  12857. * src/BtContextAwareCommand.h: New class.
  12858. * src/FileEntry.h: Added accessor methods for following variables.
  12859. (path): Made private.
  12860. (length): Made private.
  12861. (offset): Made private.
  12862. (extracted): Made private.
  12863. (requested): Made private.
  12864. (FileEntries): New definition.
  12865. (FileEntryHandle): New definition.
  12866. * src/FileEntry.cc: New file.
  12867. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12868. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12869. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12870. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12871. * src/PieceStorage.h: New file.
  12872. * src/PeerInteractionCommand.h: Use btContext.
  12873. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12874. btRuntime.
  12875. * src/DefaultBtProgressInfoFile.h: New file.
  12876. * src/DefaultBtProgressInfoFile.cc: New file.
  12877. * src/File.cc
  12878. (Util.h): New include.
  12879. (mkdirs): New function.
  12880. * src/MultiDiskAdaptor.h
  12881. (mkdir): New function.
  12882. * src/PeerListProcessor.h
  12883. (Peers): Removed.
  12884. * src/PeerInteraction.h
  12885. (torrentMan): Removed.
  12886. (btContext): New variable.
  12887. (peerStorage): New variable.
  12888. (pieceStorage): New variable.
  12889. (btAnnounce): New variable.
  12890. (getTorrentMan): Removed.
  12891. (getBtContext): New function.
  12892. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12893. btAnnounce.
  12894. * src/HandshakeMessage.h
  12895. (TorrentMan.h): Removed.
  12896. * src/HandshakeMessage.cc: Use btContext.
  12897. * src/DefaultBtAnnounce.cc: New file.
  12898. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12899. * src/DefaultPieceStorage.cc: New file.
  12900. * src/DefaultBtContext.h: New file.
  12901. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12902. Use the accessor methods of FileEntry.
  12903. * src/CookieBox.cc: Updated to use Util::slice().
  12904. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12905. * src/common.h (SharedHandle.h): New include.
  12906. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12907. pieceStorage.
  12908. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12909. * src/DiskAdaptor.h
  12910. (topDir): Removed.
  12911. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12912. (setTopDir): Removed.
  12913. (getTopDir): Removed.
  12914. * src/BtContext.h: New file.
  12915. * src/DefaultPeerStorage.h: New file.
  12916. * src/PieceMessage.h (TorrentMan.h): Removed.
  12917. * src/RequestMessage.h (TorrentMan.h): Removed.
  12918. * src/TorrentDownloadEngine.h
  12919. (uploadLength): New variable.
  12920. (btContext): New variable.
  12921. (btRuntime): New variable.
  12922. (pieceStorage): New variable.
  12923. (peerStorage): New variable.
  12924. (btAnnounce): New variable.
  12925. (btProgressInfoFile): New variable.
  12926. (torrentMan): Removed.
  12927. (setBtContext): New function.
  12928. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12929. peerStorage, btAnnounce, btProgressInfoFile.
  12930. * src/Piece.h
  12931. (toString): New function.
  12932. (Pieces): New type definition.
  12933. * src/Peer.h
  12934. (active): New variable.
  12935. (Peer): Added active.
  12936. (activate): Set active to true.
  12937. (deactivate): Set active to false.
  12938. (isActive): New function.
  12939. (Peers): New type definition.
  12940. * src/DirectDiskAdaptor.cc
  12941. (getFilePath): Use the accessor methods of FileEntry.
  12942. * src/TorrentConsoleDownloadEngine.h
  12943. (afterEachIteration): New function.
  12944. * src/TorrentConsoleDownloadEngine.cc
  12945. (haltRequested): New variable.
  12946. (sendStatistics): Use pieceStorage, btRuntime.
  12947. (afterEachIteration): New function.
  12948. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12949. * src/Directry.h
  12950. (Directory): New function.
  12951. (DirectoryHandle): New type definition.
  12952. * src/BtProgressInfoFile.h: New file.
  12953. * src/RequestMessage.cc: Use pieceStorage.
  12954. * src/BtRuntime.h: New file.
  12955. * src/DefaultBtContext.cc: New file.
  12956. * src/BitfieldMan.h
  12957. (getCompletedLength): New function(private).
  12958. (getCompletedLength): New function.
  12959. (getFilteredCompletedLength): New function.
  12960. * src/BitfieldMan.h
  12961. (getCompletedLength): New function(private).
  12962. (getCompletedLength): New function.
  12963. (getFilteredCompletedLength): New function.
  12964. * src/MultiDiskAdaptor.cc
  12965. (mkdir): New function.
  12966. (openFile): Call mkdir().
  12967. (initAndOpenFile): Call mkdir().
  12968. * src/CancelMessage.h
  12969. (TorrentMan.h): Removed.
  12970. * src/RejectMessage.h
  12971. (TorrentMan.h): Removed.
  12972. * src/DownloadEngineFactory.cc
  12973. (DefaultPieceStorage.h): New include.
  12974. (DefaultPeerStorage.h): New include.
  12975. (DefaultBtAnnounce.h): New include.
  12976. (DefaultBtProgressInfoFile.h): New include.
  12977. (newTorrentConsoleEngine): Rewritten.
  12978. * src/ShareRatioSeedCriteria.h
  12979. (torrentMan): Removed.
  12980. (btContext): New variable.
  12981. (peerStorage): New variable.
  12982. (btRuntime): New variable.
  12983. (evaluate): Use btContext, btRuntime, peerStorage.
  12984. * src/AnnounceTier.h: New file.
  12985. * src/BtAnnounce.h: New file.
  12986. * src/BtRegistry.h: New file.
  12987. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12988. * src/PeerConnection.h (TorrentMan.h): Removed.
  12989. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12990. * src/Util.h
  12991. (slice): Added an argument.
  12992. * src/Util.cc
  12993. (slice): Added an argument to control whether trim is made or not.
  12994. * src/PeerStorage.h: New file.
  12995. * src/BtRegistry.cc: New file.
  12996. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12997. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12998. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12999. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13000. * src/TorrentRequestInfo.h
  13001. (e): Removed.
  13002. (showFileEntry): Added an argument.
  13003. (getDownloadEngine): Return 0.
  13004. * src/DefaultBtAnnounce.h: New file.
  13005. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13006. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13007. * src/PeerMessageFactory.h
  13008. (btContext): New variable.
  13009. (pieceStorage): New variable.
  13010. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13011. btAnnounce.
  13012. * src/DiskAdaptor.cc
  13013. (DiskAdaptor): Removed topDir.
  13014. (~DiskAdaptor): Removed topDir.
  13015. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13016. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13017. * src/File.h (mkdirs): New function.
  13018. * src/DefaultPeerStorage): New file.
  13019. * src/DownloadEngineFactory.h
  13020. (newTorrentConsoleEngine): Use btContext.
  13021. * src/BtContextAwareCommand.cc: New file.
  13022. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13023. * src/PeerMessage.h
  13024. (btContext): New variable.
  13025. (peerStorage): New variable.
  13026. (pieceStorage): New variable.
  13027. (setBtContext): New function.
  13028. * src/Directry.cc
  13029. (Directory): New function.
  13030. (createDir): Do nothing if name.size() == 0.
  13031. * src/AnnounceList.h
  13032. (AnnounceTier): Removed.
  13033. (AnnounceTiers): Removed.
  13034. * src/DefaultPieceStorage.h: New file.
  13035. * src/Piece.cc (toString): New function.
  13036. To fix typo:
  13037. * src/main.cc (showVersion): Fixed typo.
  13038. To fix compile warning:
  13039. * src/DelegatingPeerListProcessor.cc
  13040. (canHandle): Added "return false".
  13041. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13043. make the process of announce request testable.
  13044. * src/TrackerWatcherCommand.h
  13045. (TimeA2.h): Removed.
  13046. (interval): Removed.
  13047. (checkPoint): Removed.
  13048. (createRequestCommand): Added an argument 'url'.
  13049. (TrackerWatherCommand): Removed interval.
  13050. (createCommand): New function.
  13051. * src/DownloadEngineFactory.cc
  13052. (newTorrentConsoleEngine): Updated according to the changes in
  13053. TrackerWatherCommand.
  13054. * src/TorrentMan.cc
  13055. (DelegatingPeerListProcessor.h): New includes.
  13056. (TorrentMan): Added the initialization of announceInterval.
  13057. (isStoppedAnnounceReady): New function.
  13058. (isCompletedAnnounceReady): New function.
  13059. (isDefaultAnnounceReady): New function.
  13060. (isAnnounceReady): New function.
  13061. (getAnnounceUrl): New function.
  13062. (announceStart): New function.
  13063. (announceFailure): New function.
  13064. (announceSuccess): New function.
  13065. (isAllAnnounceFailed): New function.
  13066. (resetAnnounce): New function.
  13067. (processAnnounceResponse): New function.
  13068. (needMorePeerConnection): New function.
  13069. (noMoreAnnounce): New function.
  13070. * src/TrackerUpdateCommand.h
  13071. (getTrackerResponse): int->size_t
  13072. * src/TorrentMan.h
  13073. (isStoppedAnnounceReady): New function.
  13074. (isCompletedAnnounceReady): New function.
  13075. (isDefaultAnnounceReady): New function.
  13076. (announceInterval): New variable.
  13077. (isAnnounceReady): New function.
  13078. (getAnnounceUrl): New function.
  13079. (announceStart): New function.
  13080. (announceFailure): New function.
  13081. (announceSuccess): New function.
  13082. (isAllAnnounceFailed): New function.
  13083. (resetAnnounce): New function.
  13084. (processAnnounceResponse): New function.
  13085. (needMorePeerConnection): New function.
  13086. (noMoreAnnounce): New function.
  13087. * src/TrackerWatcherCommand.cc
  13088. (TrackerWatherCommand): Removed interval and checkPoint.
  13089. (execute): Rewritten.
  13090. (createCommand): New function.
  13091. (createRequestCommand): Rewritten.
  13092. * src/TrackerUpdateCommand.cc
  13093. (MetaFileUtil.h): Removed.
  13094. (DelegatingPeerListProcessor.h): Removed.
  13095. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13096. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13097. Request -> RequestHandle:
  13098. * src/HttpResponseCommand.h: Request->RequestHandle
  13099. * src/AbstractCommand.cc: Request->RequestHandle
  13100. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13101. * src/HttpRequestCommand.cc: Request->RequestHandle
  13102. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13103. * src/AbstractCommand.h: Request->RequestHandle
  13104. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13105. * src/HttpResponseCommand.cc: Request->RequestHandle
  13106. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13107. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13108. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13109. * src/HttpConnection.h: Request->RequestHandle
  13110. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13111. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13112. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13113. * src/DownloadCommand.h: Request->RequestHandle
  13114. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13115. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13116. * src/HttpRequestCommand.h: Request->RequestHandle
  13117. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13118. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13119. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13120. * src/HttpDownloadCommand.h: Request->RequestHandle
  13121. * src/FtpConnection.cc: Request->RequestHandle
  13122. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13123. * src/UrlRequestInfo.cc: Request->RequestHandle
  13124. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13125. * src/HttpConnection.h: Request->RequestHandle
  13126. * src/DownloadCommand.cc: Request->RequestHandle
  13127. * src/FtpConnection.h: Request->RequestHandle
  13128. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13129. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13130. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13131. * src/Request.h
  13132. (SharedHandle.h): New include.
  13133. (RequestHandle): New type definition.
  13134. (Requests): Redefined.
  13135. To add MULTITRACKER support:
  13136. * src/TrackerWatcherCommand.h
  13137. (createRequestCommand): New function.
  13138. * src/DownloadEngineFactory.cc
  13139. (newTorrentConsoleEngine): Removed req.
  13140. * src/prefs.h
  13141. (PREF_TRACKER_MAX_TRIES): New definition.
  13142. * src/TorrentMan.cc
  13143. (TorrentMan): Removed req. Added trackerNumTry.
  13144. (~TorrentMan): Removed req.
  13145. (setupInternal1): Added announceList.
  13146. * src/TorrentRequestInfo.cc
  13147. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13148. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13149. * src/main.cc
  13150. (main): Added PREF_TRACKER_MAX_TRIES.
  13151. * src/TorrentMan.h
  13152. (Request.h): Removed.
  13153. (AnnounceList.h): New include.
  13154. (trackerNumTry): New variable.
  13155. (req): Removed.
  13156. (announceList): New variable.
  13157. * src/TrackerWatcherCommand.cc
  13158. (execute): Rewritten.
  13159. (createRequestCommand): New function.
  13160. * src/TrackerUpdateCommand.cc
  13161. (execute): Updated with the use of AnnounceList.
  13162. * src/AnnounceList.cc: New class.
  13163. * src/AnnounceList.h: New class.
  13164. To fix typo:
  13165. * src/prefs.h
  13166. (PREF_MAX_TRIES): max_try->max_tries
  13167. To not to decode "+" as space in URL decode:
  13168. * src/Util.cc
  13169. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13170. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13171. To add timeout to async name resolution:
  13172. * src/AbstractCommand.h
  13173. (nameResolveFinished): New function. This is not elegant way. It needs
  13174. to be more refined.
  13175. (nameResolverCheck): New variable.
  13176. * src/AbstractCommand.cc
  13177. (AbstractCommand): Added nameResolverCheck.
  13178. (execute): Added the check whether the name resolution has finished.
  13179. (setNameResolverCheck): Set nameResolverCheck to true.
  13180. (disableNameResolverCheck): Set nameResolverCheck to false.
  13181. (nameResolverFinished): New function.
  13182. * src/FtpInitiateConnectionCommand.h
  13183. (nameResolverFinished): New function.
  13184. * src/FtpInitiateConnectionCommand.cc
  13185. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13186. * src/HttpInitiateConnectionCommand.h
  13187. (nameResolverFinished): New function.
  13188. * src/HttpInitiateConnectionCommand.cc
  13189. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13190. * src/prefs.h
  13191. (PREF_DNS_TIMEOUT): New definition.
  13192. * src/main.cc
  13193. (main): Added PREF_DNS_TIMEOUT.
  13194. To add the support for a non-compact response from a tracker:
  13195. * src/PeerListProcessor.h: New class.
  13196. * src/DefaultPeerListProcessor.h: New class.
  13197. * src/DefaultPeerListProcessor.cc: New class.
  13198. * src/CompactPeerListProcessor.h: New class.
  13199. * src/CompactPeerListProcessor.cc: New class.
  13200. * src/DelegatingPeerListProcessor.h: New class.
  13201. * src/DelegatingPeerListProcessor.cc: New class.
  13202. * src/TorrentMan.cc
  13203. (addPeer): New function(overload).
  13204. (addPeer): Delete unused peers only when new peer is added.
  13205. * src/TorrentMan.h
  13206. (PeerListProcessor.h): Included.
  13207. (Peers): Removed.
  13208. (addPeer): New function(overload).
  13209. * src/TrackerUpdateCommand.cc
  13210. (netinet/in.h): Removed.
  13211. (DelegatingPeerListProcessor.h): Included.
  13212. (execute): Updated to use DelegatingPeerListProcessor.
  13213. To fix the memory leak in TorrentMan::peers:
  13214. * src/PeerAbstractCommand.cc
  13215. (onAbort): Added peer->resetStatus().
  13216. * src/Peer.h
  13217. (resetStatus): Made public.
  13218. To improve the precision of the speed calculation:
  13219. * src/SpeedCalc.h
  13220. (nextInterval): New variable.
  13221. * src/SpeedCalc.cc
  13222. (reset): Added nextInterval.
  13223. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13224. (changeSw): Set nextInterval to 15 seconds relative to the current
  13225. instant time.
  13226. * src/main.cc
  13227. (showVersion): Updated.
  13228. (showUsage): Updated.
  13229. * Release 0.8.1
  13230. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. * src/main.cc
  13232. (showUsage): Commented out --min-segment-size option.
  13233. (main): Commented out --min-segment-size option.
  13234. * Release 0.8.0
  13235. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13236. * src/*.{h,cc}:
  13237. Added an exception to the license which allows linking with OpenSSL.
  13238. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13239. * src/AbstractCommand.cc
  13240. (execute): Check whether the download has finished before checking
  13241. socket status.
  13242. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13243. Do not exit even if no segment is available.
  13244. * src/prefs.h
  13245. (PREF_STARTUP_IDLE_TIME): New definition.
  13246. * src/PeerInteractionCommand.cc
  13247. (executeInternal): Removed max speed limit. Because it performs bad.
  13248. (receiveMessages): Added max speed limit. This was better than above,
  13249. but still a little bit to be desired. Sometimes the download speed
  13250. became much faster than I specified.
  13251. * src/SpeedCalc.h
  13252. (start): New variable.
  13253. (accumulatedLength): New variable.
  13254. (getAvgSpeed): New function.
  13255. * src/SpeedCalc.cc
  13256. (reset): Added start, accumulatedLength.
  13257. (update): Added calculation of an average speed.
  13258. (getAvgSpeed): New function.
  13259. * src/DownloadCommand.h
  13260. (sw): Removed.
  13261. * src/main.cc
  13262. (main): Added PREF_STARTUP_IDLE_TIME.
  13263. * src/PeerStat.h
  13264. (STATUS): Added REQUEST_IDLE.
  13265. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13266. (getAvgDownloadSpeed): New function
  13267. (requestIdle): New function.
  13268. * src/SegmentMan.h
  13269. (SegmentEntryHandle): New type definition.
  13270. (SegmentEntries): Now holds SegmentEntryHandle.
  13271. (findSlowerSegmentEntry): New funtion.
  13272. * src/SegmentMan.cc
  13273. (save): Updated according to the changes in SegmentEntries.
  13274. (read): Updated according to the changes in SegmentEntries.
  13275. (FindSegmentEntryByIndex): Updated according to the changes in
  13276. SegmentEntries.
  13277. (FindSegmentEntryByCuid): Updated according to the changes in
  13278. SegmentEntries.
  13279. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13280. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13281. Renamed uitr as itr.
  13282. (findSlowerSegmentEntry): New function.
  13283. (getSegment): Updated according to the changes in SegmentEntries.
  13284. Added the feature that cancels the segment with slow server and fast
  13285. one takes it over.
  13286. (cancelSegment): Updated according to the changes in SegmentEntries.
  13287. (getDownloadLength): Updated according to the changes in
  13288. SegmentEntries.
  13289. (init): Assigned 0 to bitfield after deleting it.
  13290. * src/DownloadCommand.cc
  13291. (STARTUP_IDLE_TIME): Removed.
  13292. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13293. * src/PeerChokeCommand.cc
  13294. (optUnchokingPeer): Updated according to the changes in Peer.
  13295. (ResetDelta): Removed.
  13296. (UploadFaster): Updated according to the changes in Peer.
  13297. (DownloadFaster): Updated according to the changes in Peer.
  13298. (execute): I clarify the meaning of "upload" and "download" here.
  13299. "upload" means the transfer from localhost to remote host.
  13300. "download" means the transfer from remote host to localhost.
  13301. Based on this rule, I swapped orderByUploadRate and
  13302. orderByDownloadRate.
  13303. * src/PeerInteractionCommand.cc
  13304. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13305. (executeInternal): Removed the argument of
  13306. peerInteraction->sendMessages().
  13307. (receiveMessages): Rewritten download speed limit.
  13308. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13309. * src/HttpResponseCommand.cc
  13310. (handleDefaultEncoding): If file size is unknown in torrent request,
  13311. do not call segmentMan->initBitfield() here.
  13312. Disabled persistent connection feature in torrent request.
  13313. * src/UrlRequestInfo.h
  13314. (UrlRequestInfo): Removed const qualifier from option.
  13315. * src/TorrentMan.h
  13316. (TransferStat): New class.
  13317. (deltaDownloadLength): Removed.
  13318. (deltaUploadLength): Removed.
  13319. (addDeltaDownloadLength): Removed.
  13320. (getDeltaDownloadLength): Removed.
  13321. (resetDeltaDownloadLength): Removed.
  13322. (addDeltaUploadLength): Removed.
  13323. (getDeltaUploadLength): Removed.
  13324. (resetDeltaUploadLength): Removed.
  13325. (addActivePeer): Added peer->activate().
  13326. (deleteActivePeer): Added peer->deactivate().
  13327. (calculateStat): New function.
  13328. * src/TorrentMan.cc
  13329. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13330. (calculateStat): New function.
  13331. * src/PeerInteraction.h
  13332. (uploadLimit): Removed.
  13333. (option): New variable.
  13334. (setUploadLimit): Removed.
  13335. (getUploadSpeed): Removed.
  13336. (sendMessages): Removed the argument "currentUploadSpeed".
  13337. * src/PeerInteraction.cc
  13338. (prefs.h): Included.
  13339. (PeerInteraction): Removed uploadLimit. Added option.
  13340. (sendMessages): Rewritten upload speed limit.
  13341. (sendHandshake): Removed the argument from sendMessages().
  13342. (sendBitfield): Removed the argument from sendMessages().
  13343. * src/PeerAbstractCommand.cc
  13344. (execute): Commented out the portion of upload limit.
  13345. (onAbort): Removed peer->resetStatus().
  13346. * src/TorrentRequestInfo.cc
  13347. (timeoutSpecified): Declared extern.
  13348. (execute): Set timeout to 180 if timeout is not specified by.
  13349. command-line.
  13350. * src/PieceMessage.cc
  13351. (receivedAction): Added peer->updateDownloadLength().
  13352. Removed peer->addPeerUpload().
  13353. Removed torrentMan->addDeltaDownloadLength().
  13354. (send): Added peer->updateUploadLength().
  13355. Removed peer->addPeerDownload().
  13356. Removed torrentMan->addDeltaUploadLength().
  13357. * src/main.cc
  13358. (timeoutSpecified): New variable.
  13359. (main): Set timeoutSpecified to false.
  13360. If the command-line option "--upload-limit" is specified, then
  13361. timeoutSpecified is set to true. This option will remain in the next
  13362. release, but be deprecated in the future release.
  13363. * src/TorrentRequestInfo.h
  13364. (TorrentRequestInfo): Removed const qualifier from op.
  13365. * src/PeerStat.h
  13366. (uploadSpeed): New variable.
  13367. (PeerStat): Added default value to cuid.
  13368. (calculateUploadSpeed): New function.
  13369. (updateUploadLength): New function.
  13370. (getMaxUploadSpeed): New function.
  13371. (getAvgUploadSpeed): New function.
  13372. (reset): Added uploadSpeed. Set status to IDLE.
  13373. * src/TorrentDownloadEngine.h
  13374. (cp): Declared as Time.
  13375. (sessionDownloadLengthArray): Removed.
  13376. (sessionUploadLengthArray): Removed.
  13377. (currentCp): Removed.
  13378. (lastCalcStat): New variable
  13379. (lastElapsed): Removed.
  13380. (sessionDownloadLength): Removed.
  13381. (calculateStat): New function.
  13382. * src/TorrentDownloadEngine.cc
  13383. (initStatistics): Removed lastElapsed, cp[],
  13384. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13385. currentCp, sessionDownloadLength.
  13386. Added cp.reset() and lastCalcStat.reset().
  13387. (calculateSpeed): Changed the name of the argument.
  13388. (calculateStatistics): Rewritten.
  13389. (calculateStat): New function.
  13390. * src/Peer.h
  13391. (PeerStat.h): Included.
  13392. (peerUpload): Removed.
  13393. (peerDownload): Removed.
  13394. (peerStat): New variable.
  13395. (sessionUploadLength): New variable.
  13396. (sessionDownloadLength): New variable.
  13397. (deltaUpload): Removed.
  13398. (deltaDownload): Removed.
  13399. (resetStatus): Made private.
  13400. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13401. Removed peerUpload, peerDownload.
  13402. (updateUploadLength): New function.
  13403. (addDeltaUpload): Removed.
  13404. (updateDownloadLength): New function.
  13405. (resetDeltaUpload): Removed.
  13406. (getDeltaUpload): Removed.
  13407. (addDeltaDownload): Removed.
  13408. (calculateUploadSpeed): New function.
  13409. (resetDeltaDownload): Removed.
  13410. (getDeltaDownload): Removed.
  13411. (calculateDownloadSpeed): New function.
  13412. (getSessionUploadLength): New function.
  13413. (getSessionDownloadLength): New function.
  13414. (activate): New function.
  13415. (deactivate): New function.
  13416. (addPeerUpload): Removed.
  13417. (setPeerUpload): Removed.
  13418. (getPeerUpload): Removed.
  13419. (addPeerDownload): Removed.
  13420. (setPeerDownload): Removed.
  13421. (getPeerDownload): Removed.
  13422. * src/Peer.cc
  13423. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13424. * src/MetalinkRequestInfo.h
  13425. (MetalinkRequestInfo): Removed const qualifier from op.
  13426. * src/RequestInfo.h
  13427. (op): Removed const qualifier.
  13428. (RequestInfo): Removed const qualifier from op.
  13429. * src/prefs.h
  13430. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13431. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13432. * src/PeerInteractionCommand.cc
  13433. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13434. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13435. * src/PeerInteraction.cc
  13436. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13437. * src/main.cc
  13438. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13439. Added the description of "--max-download-limit" option.
  13440. Removed the description of "--upload-limit" option.
  13441. Added the description of "--max-upload-limit" option.
  13442. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13443. Added "--max-download-limit" option and "--max-upload-limit" option.
  13444. Added the warning message if "--upload-limit" option is used.
  13445. * src/DownloadCommand.cc
  13446. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13447. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13448. To rewrite segment download mechanism for HTTP/FTP download.
  13449. Use BitfieldMan to manage segment download.
  13450. * src/HttpResponseCommand.h
  13451. (executeInternal): Pass the reference of segment.
  13452. * src/AbstractCommand.cc
  13453. (prepareForRetry): Call segmentMan->cancelSegment here.
  13454. (onAbort): Call segmentMan->cancelSegment here.
  13455. * src/HttpDownloadCommand.cc
  13456. (prepareForNextSegment): New function.
  13457. * src/DownloadEngineFactory.cc
  13458. (newConsoleEngine): Removed splitter.
  13459. (newTorrentConsoleEngine): Removed splitter.
  13460. * src/Request.h
  13461. (segment): Renamed from seg.
  13462. * src/FtpInitiateConnectionCommand.h
  13463. (executeInternal): Pass the reference of segment.
  13464. * src/AbstractCommand.h
  13465. (executeInternal): Pass the reference of segment.
  13466. * src/pref.h
  13467. (PREF_SEGMENT_SIZE): New definition.
  13468. * src/HttpProxyRequestCommand.h
  13469. (executeInternal): Pass the reference of segment.
  13470. * src/HttpResponseCommand.cc
  13471. (checkResponse): Allowed status 206 when a request range starts 0.
  13472. (handleDefaultEncoding): Rewritten the code related to Segment.
  13473. (handleOtherEncoding): Rewritten the code related to Segment.
  13474. * src/SegmentMan.h
  13475. (SegmentEntry): New class.
  13476. (SegmentEntries): New type definition.
  13477. (bitfield): New variable.
  13478. (usedSegmentEntries): New variable.
  13479. (onNullBitfield): New function.
  13480. (checkoutSegment): New function.
  13481. (segments): Removed.
  13482. (splitter): Removed.
  13483. (unregisterId): Removed.
  13484. (getSegment): New function(overload)
  13485. (getDownloadedSize): Removed.
  13486. (cancelSegment): New function.
  13487. (completeSegment): New function.
  13488. (initBitfield): New function.
  13489. (hasSegment): New function.
  13490. (getDownloadLength): New function.
  13491. * src/BitfieldMan.h
  13492. (getStartIndex): New function.
  13493. (getEndIndex): New function.
  13494. (getMissingUnusedIndex): New function(overload).
  13495. (getSparseMissingUnusedIndex): New function.
  13496. * src/BitfieldMan.cc
  13497. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13498. (getMissingUnusedIndex): New function(overload).
  13499. (Range): New class.
  13500. (getStartIndex): New function.
  13501. (getEndIndex): New function.
  13502. (getSparseMissingUnusedIndex): New function.
  13503. (isBitSetInternal): Return false if the given index is less than 0.
  13504. * src/HttpInitiateConnectionCommand.h
  13505. (executeInternal): Pass the reference of segment.
  13506. * src/FtpNegotiateCommand.h
  13507. (executeInternal): Pass the reference of segment.
  13508. * src/FtpNegotiateCommand.cc
  13509. (recvSize): Initialize bitfield here.
  13510. * src/FtpTunnelResponseCommand.h
  13511. (executeInternal): Pass the reference of segment.
  13512. * src/HttpConnection.cc
  13513. (createRequest): Rewritten range header processing.
  13514. * src/DownloadCommand.h
  13515. (executeInternal): Pass the reference of segment.
  13516. (prepareForRetry): Removed.
  13517. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13518. function.
  13519. * src/main.cc
  13520. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13521. * src/SegmentMan.cc
  13522. (SegmentMan): Added bitfield. Removed splitter.
  13523. (~SegmentMan): Added bitfield. Removed splitter.
  13524. (unregisterId): Removed.
  13525. (getSegment): Rewritten.
  13526. (updateSegment): Rewritten.
  13527. (save): Rewritten.
  13528. (read): Rewritten.
  13529. (finished): Rewritten.
  13530. (getDownloadedSize): Removed.
  13531. (initBitfield): New function.
  13532. (FindSegmentEntryByIndex): New function object.
  13533. (FindSegmentEntryByCuid): New function object.
  13534. (checkoutSegment): New function.
  13535. (onNullBitfield): New function.
  13536. (getSegment): New function(overload).
  13537. (CancelSegment): New function object.
  13538. (cancelSegment): New function.
  13539. (completeSegment): New function.
  13540. (hasSegment): New function.
  13541. (getDownloadLength): New function.
  13542. * src/FtpInitiateConnectionCommand.cc
  13543. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13544. * src/Segment.h: Rewritten.
  13545. * src/Segment.cc (operator<<): New function.
  13546. * src/HttpDownloadCommand.h
  13547. (prepareForNextSegment): New function.
  13548. * src/Request.cc
  13549. (resetUrl): Made segment null.
  13550. * src/DownloadEngine.cc
  13551. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13552. * src/HttpProxyRequestCommand.h
  13553. (executeInternal): Pass the reference of segment.
  13554. * src/DownloadCommand.cc
  13555. (executeInternal): Rewritten the code related to Segment.
  13556. (prepareForRetry): Removed.
  13557. (prepareForNextSegment): Rewritten.
  13558. * src/FtpTunnelResponseCommand.h
  13559. (executeInternal): Pass the reference of segment.
  13560. To add HTTP 1.1 persistent connection support(experimental)
  13561. * src/HttpRequestCommand.cc
  13562. (executeInternal): Disable keep alive if it is disabled by
  13563. configuration.
  13564. * src/Request.h
  13565. (keepAlive): New variable.
  13566. (isKeepAlive): New function.
  13567. (setKeepAlive): New function.
  13568. * src/pref.h
  13569. (PREF_HTTP_KEEP_ALIVE): New definition.
  13570. * src/HttpResponseCommand.cc
  13571. (executeInternal): Check the remote server supports keep alive.
  13572. * src/HttpConnection.cc
  13573. (createRequest): Send "Connection: close" only if keep alive is
  13574. disabled.
  13575. * src/main.cc
  13576. (main):
  13577. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13578. To add max download speed limit:
  13579. * src/pref.h
  13580. (PREF_MAX_SPEED_LIMIT): New definition.
  13581. * src/PeerInteractionCommand.cc
  13582. (executeInternal): Added max download speed limit. Not tested yet.
  13583. * src/SegmentMan.h
  13584. (PeerStats): New type definition.
  13585. (peerStats): New variable.
  13586. (registerPeerStat): New function.
  13587. (FindPeerStat): New function object.
  13588. (getPeerStat): New function.
  13589. (calculateDownloadSpeed): New function.
  13590. * src/SpeedCalc.h: New class.
  13591. * src/SpeedCalc.cc: New class.
  13592. * src/main.cc
  13593. (main):
  13594. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13595. download speed is not restricted).
  13596. * src/PeerStat.h: New class.
  13597. * src/SegmentMan.cc
  13598. (registerPeerStat): New function.
  13599. (calculateDownloadSpeed): New function.
  13600. * src/DownloadCommand.cc
  13601. (STARTUP_IDLE_TIME): New definition.
  13602. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13603. downloadStart.
  13604. (~DownloadCommand): Call peerStat->downloadStop.
  13605. (executeInternal): Added download speed limitter. Rewritten lowest
  13606. speed limitter.
  13607. * src/HttpConnection.cc
  13608. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13609. * src/AbstractCommand.cc
  13610. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13611. Added hostname to the error message.
  13612. * src/ConsoleDownloadEngine.cc
  13613. (calculateStatistics): Initialize psize with dlSize.
  13614. * src/PieceMessage.cc
  13615. (receivedAction): Do not call peerInteraction->abortPiece here.
  13616. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13617. * src/BitfieldMan.h
  13618. (clearAllUseBit): New function.
  13619. (setAllUseBit): New function.
  13620. * src/BitfieldMan.cc
  13621. (clearAllBit): Do not clear useBitfield here.
  13622. (clearAllUseBit): New function.
  13623. (setAllUseBit): New function.
  13624. * src/Piece.cc
  13625. (clearAllBlock): Call bitfield->clearAllUseBit().
  13626. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13627. To make filename URL-decoded:
  13628. * src/HttpResponseCommand.h: Updated doc.
  13629. * src/HttpResponseCommand.cc
  13630. (determinFilename): Made filename URL-decoded.
  13631. * src/FtpInitiateConnectionCommand.cc
  13632. (executeInternal): Made filename URL-decoded.
  13633. * src/Util.h (urldecode): New function.
  13634. * src/Util.cc (urldecode): New function.
  13635. To fix a bug that caused assertion failure in ares_strerror:
  13636. * src/NameResolver.cc (callback): Fixed the bug.
  13637. * Release 0.7.3
  13638. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13639. To add --seed-time and --seed-ratio command-line option:
  13640. * src/Option.h (getAsDouble): New function.
  13641. * src/Option.cc (getAsDouble): New function.
  13642. * src/SeedCheckCommand.h: New class.
  13643. * src/SeedCheckCommand.cc: New class.
  13644. * src/DownloadEngineFactory.cc
  13645. (SeedCheckCommand.h): Included.
  13646. (UnionSeedCriteria.h): Included.
  13647. (TimeSeedCriteria.h): Included.
  13648. (ShareRatioSeedCriteria.h): Included.
  13649. (newTorrentConsoleEngine): Added the processing of seed option.
  13650. * src/SeedCriteria.h: New class.
  13651. * src/ShareRatioSeedCriteria.h: New class.
  13652. * src/TimeSeedCriteria.h: New class.
  13653. * src/UnionSeedCriteria.h: New class.
  13654. * src/prefs.h
  13655. (PREF_SEED_TIME): New definition.
  13656. (PREF_SEED_RATIO): New definition.
  13657. * src/main.cc
  13658. (showUsage): Added --seed-time and --seed-ratio option.
  13659. (main): Added --seed-time and --seed-ratio option.
  13660. Made default log file name "/dev/null".
  13661. * src/SharedHandle.h
  13662. (SharedHandle): Copy constructor. Made it assignable from the
  13663. SharedHandle of the subclasses.
  13664. (operator=): Made it assignable from the SharedHandle of the
  13665. subclasses.
  13666. (getRefCount): New function.
  13667. To add notice log level and the switch to write log to stdout. This
  13668. switch is configurable per log level.
  13669. * src/Logger.h
  13670. (notice): New function.
  13671. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13672. constant.
  13673. * src/LogFactory.cc
  13674. (getInstance): The use of NullLogger was removed. A log message with
  13675. notice log level was made written to stdout along with log file.
  13676. * src/NullLogger.h
  13677. (notice): New function.
  13678. * src/SimpleLogger.h
  13679. (writeHeader): Added the 'file' argument.
  13680. (writeLog): Added the 'file' argument.
  13681. (writeFile): New function.
  13682. (stdoutField): New variable.
  13683. (SimpleLogger): Removed the default constructor.
  13684. (SimpleLogger): Made the default value of logfile 0.
  13685. (debug): Added 'virtual' keyword.
  13686. (info): Added 'virtual' keyword.
  13687. (warn): Added 'virtual' keyword.
  13688. (error): Added 'virtual' keyword.
  13689. (notice): New function.
  13690. (setStdout): New function.
  13691. * src/SimpleLogger.cc
  13692. (WRITE_LOG): Replaced writeLog with writeFile.
  13693. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13694. (SimpleLogger): Removed the default constructor.
  13695. (setStdout): New function.
  13696. (writeLog): Added the handling of NOTICE log level.
  13697. (writeFile): New function.
  13698. (notice): New function.
  13699. * src/TorrentMan.h: Updated doc.
  13700. * src/BitfieldMan.h: Updated doc.
  13701. * src/TrackerWatcherCommand.cc
  13702. (execute): Return true if error occurred in the request to the tracker
  13703. and halt is requested.
  13704. * src/TrackerUpdateCommand.cc
  13705. (execute): Return true if error occurred in the request to the tracker
  13706. and halt is requested.
  13707. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13708. DownloadEngine:
  13709. * src/TorrentConsoleDownloadEngine.h
  13710. (onSelectiveDownloadingCompletes): Removed.
  13711. * src/TorrentConsoleDownloadEngine.cc
  13712. (onSelectiveDownloadingCompletes): Removed.
  13713. * src/TorrentDownloadEngine.h
  13714. (onEndOfRun): Added 'virtual' keyword.
  13715. (afterEachIteration): Removed.
  13716. (onSelectiveDownloadingCompletes): Removed.
  13717. * src/TorrentDownloadEngine.cc
  13718. (onEndOfRun): Removed filenameFixed.
  13719. (afterEachIteration): Removed.
  13720. * src/TorrentMan.cc
  13721. (completePiece): Call onDownloadComplete here.
  13722. (onDownloadComplete): Added 2 log messages.
  13723. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13724. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13725. * src/NameResolver.h: Added the prototype declaration of callback().
  13726. To support c-ares library:
  13727. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13728. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13729. * src/FtpInitiateConnectionCommand.h:
  13730. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13731. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13732. * src/HttpInitiateConnectionCommand.h:
  13733. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13734. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13735. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13736. #1542285 by tizianomueller)
  13737. * src/HttpInitiateConnectionCommand.cc:
  13738. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13739. * src/FtpInitiateConnectionCommand.cc:
  13740. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13741. * src/DownloadEngine.h:
  13742. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13743. * src/DownloadEngine.cc:
  13744. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13745. To fix the bug that causes compilation failure with metalink-support
  13746. disabled(bug#1543587):
  13747. * src/main.cc: Fixed with the patch by tizianomueller.
  13748. * Release 0.7.2
  13749. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13750. * src/main.cc
  13751. (main): Added a message to inform users that aria2 is starting to
  13752. verify checksum.
  13753. * src/RequestInfo.cc
  13754. (printDownloadAbortMessage): Added a message to inform users that
  13755. transfer can be resumed.
  13756. * src/FeatureConfig.cc
  13757. (FEATURE_ASYNC_DNS): New definition.
  13758. (FeatureConfig): Added aysnc DNS entry.
  13759. To replace CommandUuid with Command* in SocketEntry and
  13760. NameResolverEntry:
  13761. * src/DownloadEngine.h
  13762. (CommandUuids): Removed.
  13763. (SocketEntry::commandUuid): Removed.
  13764. (SocketEntry::command): New variable.
  13765. (SocketEntry::SocketEntry): Updated.
  13766. (SocketEntry::operator==): Updated.
  13767. (NameResolverEntry::commandUuid): Removed.
  13768. (NameResolverEntry::command): New variable.
  13769. (NameResolverEntry::NameResolverEntry): Updated.
  13770. (NameResolverEntry::operator==): Updated.
  13771. (waitData): Changed the argument type.
  13772. (addSocketForReadCheck): Changed the argument type.
  13773. (deleteSocketForReadCheck): Changed the argument type.
  13774. (addSocketForWriteCheck): Changed the argument type.
  13775. (deleteSocketForWriteCheck): Changed the argument type.
  13776. (addNameResolverCheck): Changed the argument type.
  13777. (deleteNameResolverCheck): Changed the argument type.
  13778. * src/DownloadEngine.cc
  13779. (FindCommand): Removed.
  13780. (run): Removed activeUuid. Added activeCommands instead.
  13781. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13782. (AccumulateActiveCommand): New function object.
  13783. (waitData): Use AccumulateActiveCommand.
  13784. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13785. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13786. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13787. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13788. (addNameResolverCheck): Use Command instead of CommandUuid.
  13789. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13790. * src/AbstractCommand.cc
  13791. (disableReadCheckSocket): Updated according to the changes in
  13792. DownloadEngine.
  13793. (setReadCheckSocket): Updated according to the changes in
  13794. DownloadEngine.
  13795. (disableWriteCheckSocket): Updated according to the changes in
  13796. DownloadEngine.
  13797. (setWriteCheckSocket): Updated according to the changes in
  13798. DownloadEngine.
  13799. (setNameResolverCheck): Updated according to the changes in
  13800. DownloadEngine.
  13801. (disableNameResolverCheck): Updated according to the changes in
  13802. DownloadEngine.
  13803. * src/AbstractCommand.cc
  13804. (disableReadCheckSocket): Updated according to the changes in
  13805. DownloadEngine.
  13806. (setReadCheckSocket): Updated according to the changes in
  13807. DownloadEngine.
  13808. (disableWriteCheckSocket): Updated according to the changes in
  13809. DownloadEngine.
  13810. (setWriteCheckSocket): Updated according to the changes in
  13811. DownloadEngine.
  13812. * release 0.7.1
  13813. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13814. To handle the case where some BitTorrent tracker requires all letters
  13815. except for [A-Za-z0-9] is URL encoded.
  13816. * src/Util.h
  13817. (torrentUrlencode): New function.
  13818. * src/Util.cc
  13819. (ctype.h): Included.
  13820. (torrentUrlencode): New function.
  13821. * src/TrackerWatcherCommand.cc
  13822. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13823. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13824. To add asynchronous DNS support(libares):
  13825. * src/AbstractCommand.h
  13826. (setNameResolverCheck): New function.
  13827. (disableNameResolverCheck): New function
  13828. (resolveHostname): New function.
  13829. * src/AbstractCommand.cc
  13830. (setNameResolverCheck): New function.
  13831. (disableNameResolverCheck): New function
  13832. (resolveHostname): New function.
  13833. * src/FtpInitiateConnectionCommand.h
  13834. (nameResolver): New function.
  13835. * src/FtpInitiateConnectionCommand.cc
  13836. (Util.h): Included.
  13837. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13838. disableWriteCheckSocket.
  13839. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13840. (executeInternal): Added async DNS support.
  13841. * src/HttpInitiateConnectionCommand.h
  13842. (nameResolver): New function.
  13843. * src/HttpInitiateConnectionCommand.cc
  13844. (DlRetryEx.h): Included.
  13845. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13846. disableWriteCheckSocket.
  13847. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13848. (executeInternal): Added async DNS support.
  13849. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13850. by extern "C" declaration.
  13851. * src/NameResolver.cc: New class.
  13852. * src/Util.h:
  13853. (isNumberAndDotsNotation): New function
  13854. * src/Util.cc
  13855. (isNumberAndDotsNotation): New function.
  13856. * src/DownloadEngine.h
  13857. (NameResolver.h): Included.
  13858. (NameResolverEntry): New class.
  13859. (NameResolverEntries): New type definition.
  13860. (addNameResolverCheck): New function.
  13861. (deleteNameResolverCheck): New function.
  13862. * src/DownloadEngine.cc
  13863. (run): Initialize cp with 0.
  13864. (SetDescriptor::operator()): Added for NameResolverEntry.
  13865. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13866. (waitData): Check nameResolver entries.
  13867. (updateFdSet): Update fds in nameResolver entries.
  13868. (addNameResolverCheck): New function.
  13869. (deleteNameResolverCheck): new function.
  13870. * src/PeerInteractionCommand.cc
  13871. (executeInternal): Fixed wrong socket handling.
  13872. * src/main.cc
  13873. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13874. * src/Util.cc
  13875. (fileChecksum): Removed the call to ctx.digestReset().
  13876. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13877. * po/ru.po: Azamat sent me Russian translation.
  13878. * src/FtpNegotiateCommand.cc
  13879. (recvGreeting): Call disableWriteCheckSocket just after
  13880. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13881. (recvRetr): Recognized status code 125 as a acceptable response code.
  13882. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13883. case-insesitive filesystem(BUG#1531057).
  13884. * src/Time.h: Renamed as TimeA2.h.
  13885. * src/Time.cc: Renamed as TimeA2.cc.
  13886. * src/TimeA2.h: New class.
  13887. * src/TimeA2.cc: New class.
  13888. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13889. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13890. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13891. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13892. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13893. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13894. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13895. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13896. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13897. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13898. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13899. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13900. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13901. * release 0.7.0
  13902. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13903. * src/PeerChokeCommand.h
  13904. (PeerChokeCommand): Rearranged the arguments.
  13905. * src/PeerChokeCommand.cc
  13906. (PeerChokeCommand): Rearranged the arguments.
  13907. * src/MetalinkEntry.h
  13908. (Checksum.h): Included.
  13909. (md5): Removed.
  13910. (sha1): Removed.
  13911. (checksum): New variable.
  13912. (operator=): Updated.
  13913. (check): Removed.
  13914. * src/prefs.h
  13915. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13916. (PREF_FOLLOW_TORRENT): New definition.
  13917. (PREF_SELECT_FILE): New definition.
  13918. (PREF_FOLLOW_METALINK): New definition.
  13919. * src/MetalinkResource.h
  13920. (TYPE_HTTPS): Added to enum TYPE.
  13921. * src/TorrentMan.cc
  13922. (~TorrentMan): Rewritten.
  13923. * src/MultiDiskWriter.cc
  13924. (MultiDiskAdaptor): Updated according to the changes in
  13925. MessageDigestContext.
  13926. (~MultiDiskAdaptor): Updated according to the changes in
  13927. MessageDigestContext.
  13928. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13929. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13930. * src/Util.h
  13931. (fileChecksum): Updated according to the changes in
  13932. MessageDigestContext.
  13933. * src/Util.cc
  13934. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13935. (fileChecksum): Updated according to the changes in
  13936. MessageDigestContext.
  13937. * src/messageDigest.h: Rewritten.
  13938. * src/MetalinkEntry.cc
  13939. (check): Removed.
  13940. (Supported): Updated.
  13941. (dropUnsupportedResource): Fixed a memory leak.
  13942. * src/ShaVisitor.cc
  13943. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13944. (~ShaVisitor): Updated according to the changes in
  13945. MessageDigestContext.
  13946. (visit): Updated according to the changes in MessageDigestContext.
  13947. * src/main.cc
  13948. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13949. command-line option added.
  13950. * src/DownloadEngine.h
  13951. (SocketEntry): New class.
  13952. (SocketEntries): New definition.
  13953. (PairFind): Removed.
  13954. (SockCmdMap): Removed.
  13955. * src/DownloadEngine.cc
  13956. (DownloadEngine): Rewritten.
  13957. (~DownloadEngine): Rewritten.
  13958. (run): Renamed activeCommandUuids as activeUuids.
  13959. (SetDescriptor): Rewritten.
  13960. (AccumulateActiveCommandUuid): Removed.
  13961. (AccumulateActiveUuid): New function object.
  13962. (waitData): Rewritten.
  13963. (updateFdSet): Rewritten.
  13964. (addSocket): Rewritten.
  13965. (deleteSocket): Rewritten.
  13966. (addSocketForReadCheck): Rewritten.
  13967. (deleteSocketForReadCheck): Rewritten.
  13968. (addSocketForWriteCheck): Rewritten.
  13969. (deleteSocketForWriteCheck): Rewritten.
  13970. * src/Xml2MetalinkProcessor.cc
  13971. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13972. * src/DownloadCommand.cc
  13973. (executeInternal): Added the check routine for lowest speed limit.
  13974. * src/AbstractDiskWriter.cc
  13975. (AbstractDiskWriter): Updated according to the changes in
  13976. MessageDigestContext.
  13977. (~AbstractDiskWriter): Updated according to the changes in
  13978. MessageDigestContext.
  13979. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13980. * src/RequestInfo.h: New class.
  13981. * src/UrlRequestInfo.h: New class.
  13982. * src/UrlRequestInfo.cc: New class.
  13983. * src/TorrentRequestInfo.h: New class.
  13984. * src/TorrentRequestInfo.cc: New class.
  13985. * src/MetalinkRequestInfo.h: New class.
  13986. * src/MetalinkRequestInfo.cc: New class.
  13987. * src/Checksum.h: New class.
  13988. * src/DownloadEngineFactory.h: New class.
  13989. * src/DownloadEngineFactory.cc: New class.
  13990. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13991. * src/Option.h
  13992. (getAsBool): New function.
  13993. * src/Option.cc
  13994. (prefs.h): Included.
  13995. (defined): 0-length value is now recognized as undefined.
  13996. (getAsInt): Rewritten.
  13997. (getAsLLInt): Rewritten.
  13998. (getAsBool): New function.
  13999. * src/FeatureConfig.h: Rewritten.
  14000. * src/FeatureConfig.cc: Rewritten.
  14001. * src/prefs.h
  14002. (PREF_STDOUT_LOG): New definition.
  14003. (PREF_LOG): New definition.
  14004. (PREF_DIR): New definition.
  14005. (PREF_OUT): New definition.
  14006. (PREF_SPLIT): New definition.
  14007. (PREF_DAEMON): New definition.
  14008. (PREF_REFERER): New definition.
  14009. (PREF_TORRENT_FILE): New definition.
  14010. (PREF_LISTEN_PORT): New definition.
  14011. (PREF_METALINK_FILE): New definition.
  14012. (PREF_METALINK_VERSION): New definition.
  14013. (PREF_METALINK_LANGUAGE): New definition.
  14014. (PREF_METALINK_OS): New definition.
  14015. (PREF_METALINK_SERVERS): New definition.
  14016. * src/main.cc
  14017. (main): Following command-line parameters are now put into Option
  14018. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14019. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14020. metalinkLanguage, metalinkOs, metalinkServers
  14021. To fix the bug that aria2 can not handle http response header properly.
  14022. * src/HttpHeader.cc
  14023. (put): Made name lowercased.
  14024. (defined): Made name lowercased.
  14025. (getFirst): Made name lowercased.
  14026. (get): Made name lowercased.
  14027. (getFirstAsInt): Rewritten.
  14028. (getFirstAsLLInt): Rewritten.
  14029. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14030. * src/TorrentMan.h:
  14031. (advertisePiece): Updated doc.
  14032. (getAdvertisedPieceIndexes): Updated doc.
  14033. (removeAdvertisedPiece); New function.
  14034. * src/TorrentMan.cc
  14035. (FindElapsedHave): New function object.
  14036. (removeAdvertisedPiece): New function.
  14037. * src/HaveEraseCommand.h: New class.
  14038. * src/HaveEraseCommand.cc: New class.
  14039. * src/FeatureConfig.h: New class.
  14040. * src/FeatureConfig.cc: New class.
  14041. * src/Request.h
  14042. (defaultPorts): Removed.
  14043. * src/Request.cc
  14044. (FeatureConfig.h): Included.
  14045. (Request): Removed the statements related to defaultPorts.
  14046. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14047. A default port number is now retrieved from FeatureConfig.
  14048. * src/main.cc
  14049. (HaveEraseCommand.h): Included.
  14050. (showVersion): Added the output of feature list.
  14051. (main): Added HaveEraseCommand to command queue in BitTorrent
  14052. downloading.
  14053. * src/PeerInteractionCommand.h
  14054. (chokeCheckPoint): Commented out.
  14055. (periodicExecPoint): New variable.
  14056. * src/PeerInteractionCommand.cc
  14057. (executeInternal): Following methods are now called in at least every
  14058. 0.5 seconds to reduce CPU usage:
  14059. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14060. checkHave(), sendKeepAlive().
  14061. (checkLongTimePeerChoking): Commented out.
  14062. * src/BitfieldMan.h
  14063. (getNthBitIndex): Changed the method signature.
  14064. (getMissingIndexRandomly): Changed the method signature.
  14065. * src/BitfieldMan.cc
  14066. (getNthBitIndex): Rewritten
  14067. (getMissingIndexRandomly): Rewritten.
  14068. (hasMissingPiece): Rewritten.
  14069. (getMissingIndex): Refactored.
  14070. (getMissingUnusedIndex); Refactored.
  14071. (getMissingIndex): Refactored.
  14072. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14073. * src/PeerMessage.h
  14074. (Piece.h): Included.
  14075. (SharedHandle.h): Included.
  14076. (invalidate): New variable.
  14077. (uploading): New variable.
  14078. (isInvalidate): New function.
  14079. (isUploading): New function.
  14080. (onPush): New function.
  14081. (onChoked): New function.
  14082. (onCanceled): New function.
  14083. (onAbortPiece): New function.
  14084. (PeerMessageHandle): New type definition.
  14085. * src/PeerMessage.cc
  14086. (PeerMessage): Added the initialization for invalidate and uploading.
  14087. * src/CancelMessage.h
  14088. (CancelMessage): Rewritten.
  14089. * src/RejectMessage.h
  14090. (RejectMessage): Rewritten.
  14091. * src/Metalinker.h
  14092. (operator=): Defined.
  14093. * src/MetaEntry.h
  14094. (operator=): Defined.
  14095. * src/MetalinkResource.h
  14096. (operator=): Defined.
  14097. * src/AllowedFastMessage.h
  14098. (AllowedFastMessage): Rewritten.
  14099. * src/HandshakeMessage.h
  14100. (HandshakeMessage): New function(overload).
  14101. * src/HandshakeMessage.cc
  14102. (HandshakeMessage): Rewritten.
  14103. (init): New function.
  14104. * src/HaveMessage.h
  14105. (HaveMessage): Rewritten.
  14106. * src/Time.h
  14107. (operator=): Defined the function body here.
  14108. * src/Time.cc
  14109. (operator=): Removed.
  14110. * src/SocketCore.h
  14111. (operator==): Defined here.
  14112. (operator!=): Defined here.
  14113. (operator<): Defined here.
  14114. * src/SocketCore.cc
  14115. (operator==): Removed.
  14116. (operator<): Removed.
  14117. * src/BitfieldMan.h
  14118. (operator=): Defined the function body here.
  14119. * src/BitfieldMan.cc
  14120. (operator=): Removed.
  14121. * src/TorrentMan.h
  14122. (deleteErrorPeer): Removed.
  14123. (deleteUnusedPeer); New function.
  14124. * src/TorrentMan.cc
  14125. (addPeer): Call deleteUnusedPeer.
  14126. (deleteErrorPeer): Removed.
  14127. (deleteUnusedPeer): New function.
  14128. * src/PeerAbstractCommand.h
  14129. (setNoCheck): New function.
  14130. (noCheck): New variable.
  14131. * src/PeerAbstractCommand.cc
  14132. (PeerAbstractCommand): Added the initialization of noCheck.
  14133. (execute): Added a check for noCheck.
  14134. (setNoCheck): New function.
  14135. * src/Util.h
  14136. (stdio.h): Included.
  14137. * src/Util.cc
  14138. (unistd.h): Included.
  14139. * src/DefaultDiskWriter.cc
  14140. (unistd.h): Included.
  14141. * src/Peer.h
  14142. (operator==): Defined the function body here.
  14143. (operator!=): Defined the function body here.
  14144. * src/Peer.cc
  14145. (operator==): Removed.
  14146. (operator!=): Removed.
  14147. * src/Piece.h
  14148. (Piece): Defined the function body here(copy constructor).
  14149. (operator=): Defined the function body here.
  14150. (operator==): Defined the function body here.
  14151. * src/Piece.cc
  14152. (Piece): Removed(copy constructor).
  14153. (operator=): Removed.
  14154. (operator==): Removed.
  14155. * src/PeerMessageUtil.h
  14156. (ChokeMessage.h): Removed.
  14157. (UnchokeMessage.h): Removed.
  14158. (InterestedMessage.h): Removed.
  14159. (NotInterestedMessage.h): Removed.
  14160. (HaveMessage.h): Removed.
  14161. (BitfieldMessage.h): Removed.
  14162. (RequestMessage.h): Removed.
  14163. (CancelMessage.h): Removed.
  14164. (PieceMessage.h): Removed.
  14165. (HandshakeMessage.h): Removed.
  14166. (KeepAliveMessage.h): Removed.
  14167. (PortMessage.h): Removed.
  14168. (HaveAllMessage.h): Removed.
  14169. (HaveNoneMessage.h): Removed.
  14170. (PeerConnection.h): Removed.
  14171. (HandshakeMessage.h): Included.
  14172. * src/BitfieldMessage.h
  14173. (init): New function.
  14174. (BitfieldMessage): Rewritten.
  14175. (BitfieldMessage): New function(overload).
  14176. * src/RequestSlot.h
  14177. (operator=): Defined the function body here.
  14178. (operator==): Defined the function body here.
  14179. * src/RequestSlot.cc
  14180. (operator=): Removed.
  14181. (operator==): Removed.
  14182. To remove the dependency on the PeerMessage subclass from
  14183. PeerInteraction:
  14184. * src/PeerMessageFactory.h: New class.
  14185. * src/PeerMessageFactory.cc: New class.
  14186. * src/SimplePeerMessage.cc
  14187. (send): If invalidate is true then do nothing.
  14188. * src/PeerInteractionCommand.cc
  14189. (HandshakeMessage.h): Included.
  14190. (KeepAliveMessage.h): Included.
  14191. (ChokeMessage.h): Included.
  14192. (UnchokeMessage.h): Included.
  14193. (HaveMessage.h): Included.
  14194. (executeInternal): Call setNoCheck().
  14195. Removed setWriteCheckSocket(socket).
  14196. * src/PeerInteraction.h
  14197. (ChokeMessage.h): Removed.
  14198. (UnchokeMessage.h): Removed.
  14199. (InterestedMessage.h): Removed.
  14200. (NotInterestedMessage.h): Removed.
  14201. (HaveMessage.h): Removed.
  14202. (BitfieldMessage.h): Removed.
  14203. (RequestMessage.h): Removed.
  14204. (CancelMessage.h): Removed.
  14205. (PieceMessage.h): Removed.
  14206. (HandshakeMessage.h): Removed.
  14207. (KeepAliveMessage.h): Removed.
  14208. (PortMessage.h): Removed.
  14209. (HaveAllMessage.h): Removed.
  14210. (HaveNoneMessage.h): Removed.
  14211. (RejectMessage.h): Removed.
  14212. (AllowedFastMessage.h): Removed.
  14213. (SuggestPieceMessage.h): Removed.
  14214. (PeerMessageFactory.h): Included.
  14215. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14216. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14217. (PeerMessageFactory): New variable.
  14218. (createPeerMessage): Removed.
  14219. (createHandshakeMessage): Removed.
  14220. (setPeerMessageCommonProperty): Removed.
  14221. (addRequestSlot): New function.
  14222. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14223. (getPeerMessageFactory): New function.
  14224. (createRequestMessage): Removed.
  14225. (createCancelMessage): Removed.
  14226. (createPieceMessage): Removed.
  14227. (createHaveMessage): Removed.
  14228. (createChokeMessage): Removed.
  14229. (createUnchokeMessage): Removed.
  14230. (createInterestedMessage): Removed.
  14231. (createNotInterestedMessage): Removed.
  14232. (createBitfieldMessage): Removed.
  14233. (createKeepAliveMessage): Removed.
  14234. (createHaveAllMessage): Removed.
  14235. (createHaveNoneMessage): Removed.
  14236. (createRejectMessage): Removed.
  14237. (createAllowedFastMessage): Removed.
  14238. * src/PeerInteraction.cc
  14239. (PeerInteraction): Allocate PeerMessageFactory here.
  14240. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14241. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14242. PieceMessage::ID.
  14243. (addMessage): Simplified by using PeerMessage::onPush().
  14244. (addRequestSlot): New function.
  14245. (rejectAllPieceMessageInQueue): Simplified by using
  14246. PeerMessage::onChoked().
  14247. (rejectPieceMessageInQueue): Simplified by using
  14248. PeerMessage::onCanceled().
  14249. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14250. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14251. (createHandshakeMessage): Removed.
  14252. (createPeerMessage): Removed.
  14253. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14254. (setPeerMessageCommonProperty): Removed.
  14255. (createRequestMessage): Removed.
  14256. (createCancelMessage): Removed.
  14257. (createPieceMessage): Removed.
  14258. (createHaveMessage): Removed.
  14259. (createChokeMessage): Removed.
  14260. (createUnchokeMessage): Removed.
  14261. (createInterestedMessage): Removed.
  14262. (createNotInterestedMessage): Removed.
  14263. (createBitfieldMessage): Removed.
  14264. (createKeepAliveMessage): Removed.
  14265. (createHaveAllMessage): Removed.
  14266. (createHaveNoneMessage): Removed.
  14267. (createRejectMessage): Removed.
  14268. (createAllowedFastMessage): Removed.
  14269. * src/PieceMessage.h
  14270. (createRejectMessage): New function.
  14271. (PieceMessage): Rewritten.
  14272. (onChoked): New function.
  14273. (onCanceled): New function.
  14274. * src/PieceMessage.cc
  14275. (send): If invalidate is true then do nothing, just return.
  14276. (createRejectMessage): New function.
  14277. (onChoked): New function.
  14278. (onCanceled): New function.
  14279. * src/RequestMessage.h
  14280. (RequestMessage): Rewritten.
  14281. (onPush): New function.
  14282. (onAbortPiece): New function.
  14283. * src/RequestMessage.cc
  14284. (onPush): New function.
  14285. (onAbortPiece): New function.
  14286. Update fd_set when a socket is added or deleted in order to improve
  14287. performance:
  14288. * src/DownloadEngine.h
  14289. (rfdset): New variable.
  14290. (wfdset): New variable.
  14291. (updateFdSet): New function.
  14292. * src/DownloadEngine.cc
  14293. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14294. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14295. (waitData): Copy rfdset and wfdset.
  14296. (updateFdSet): New function.
  14297. (addSocket): Call updateFdSet.
  14298. (deleteSocket): Call updateFdSet.
  14299. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14300. To add the support for Metalink3.0 backward compatible links:
  14301. * src/Request.h
  14302. (SAFE_CHARS): Added '#'.
  14303. (METALINK_MARK): New definition.
  14304. * src/Request.cc
  14305. (parseUrl): Added the support for Metalink3.0 backward compatible
  14306. links.
  14307. etc
  14308. * src/PeerInteraction.cc
  14309. (MsgPushBack): Removed.
  14310. (sendMessages): Use STL copy and back_inserter.
  14311. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14312. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14313. * src/TorrentMan.h
  14314. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14315. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14316. * src/SharedHandle.h: New class.
  14317. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14318. * src/HttpResponseCommand.h
  14319. (HttpResponseCommand): Wrapped Socket.
  14320. * src/SocketCore.h
  14321. (operator==): New function.
  14322. (operator!=): New function.
  14323. (operator<): New function.
  14324. (getSockfd): New function.
  14325. (isOpen): New function.
  14326. (writeData): New function.
  14327. * src/SocketCore.cc
  14328. (operator==): New function.
  14329. (operator!=): New function.
  14330. (operator<): New function.
  14331. * src/AbstractCommand.h
  14332. (socket): Changed its type to SocketHandle.
  14333. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14334. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14335. (disableReadCheckSocket): New function.
  14336. (disableWriteCheckSocket): New function.
  14337. (readCheckTarget): Changed its type to SocketHandle.
  14338. (writeCheckTarget): Changed its type to SocketHandle.
  14339. (AbstractCommand): Replaced Socket with SocketHandle.
  14340. * src/AbstractCommand.cc
  14341. (AbstractCommand): Replaced Socket with SocketHandle.
  14342. (~AbstractCommand): Removed the deallocation for Socket object.
  14343. (disableReadCheckSocket): New function.
  14344. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14345. (disableWriteCheckSocket): New function.
  14346. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14347. * src/HttpDownloadCommand.cc
  14348. (DownloadCommand): Replaced Socket with SocketHandle.
  14349. * src/PeerAbstractCommand.h
  14350. (socket): Changed its type to SocketHandle.
  14351. (peer): Changed its type to PeerHandle.
  14352. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14353. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14354. (disableReadCheckSocket): New function.
  14355. (disableWriteCheckSocket): New function.
  14356. (readCheckTarget): Changed its type to SocketHandle.
  14357. (writeCheckTarget): Changed its type to SocketHandle.
  14358. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14359. Replaced Peer with PeerHandle.
  14360. * src/HttpRequestCommand.cc
  14361. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14362. Use disableReadCheckSocket.
  14363. * src/PeerInitiateConnectionCommand.h
  14364. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14365. * src/PeerChokeCommand.cc
  14366. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14367. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14368. (execute): Use PeerHandle.
  14369. * src/PeerConnection.h
  14370. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14371. (socket): Changed its type to SocketHandle.
  14372. (PeerConnection): Replaced Socket with SocketHandle.
  14373. * src/PeerConnection.cc
  14374. (PeerConnection): Replaced Socket with SocketHandle.
  14375. * src/PeerInteractionCommand.h
  14376. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14377. Replaced Peer with PeerHandle.
  14378. * src/PeerInteractionCommand.cc
  14379. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14380. Replaced Peer with PeerHandle.
  14381. (executeInternal): Use disableWriteCheckSocket.
  14382. Use HandshakeMessageHandle.
  14383. (receiveMessages): Use PeerMessageHandle.
  14384. (prepareForNextPeer): Use PeerHandle.
  14385. * src/HttpProxyRequestCommand.h
  14386. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14387. * src/HttpResponseCommand.cc
  14388. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14389. * src/TorrentMan.cc
  14390. (nullPeer): Added external reference.
  14391. (~TorrentMan): Removed the deallocation of the elements of peers.
  14392. (addPeer): Rewritten.
  14393. (isPeerAvailable): Use nullPeer.
  14394. (deleteOldpeers): Replaced with deleteErrorPeer.
  14395. (deleteErrorPeer): New function.
  14396. (getPeer): Use PeerHandle and nullPeer.
  14397. (hasMissingPiece): Replaced Peer with PeerHandle.
  14398. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14399. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14400. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14401. (getMissingPiece): Replaced Peer with PeerHandle.
  14402. * src/FtpNegotiateCommand.cc
  14403. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14404. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14405. (recvGreeting): Use disableWriteCheckSocket.
  14406. (recvPasv): Removed the allocation of Socket.
  14407. Use disableReadCheckSocket.
  14408. (sendRestPasv): Use disableWriteCheckSocket.
  14409. (recvRetr): Changed assertion.
  14410. * src/PeerInteraction.h
  14411. (SharedHandle.h): Included SharedHandle.h.
  14412. (PeerMessageHandle): New type definition.
  14413. (HandshakeMessageHandle): New type definition.
  14414. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14415. (peer): Changed its type to PeerHandle.
  14416. (createHandshakeMessage): Replaced HandshakeMessage with
  14417. HandshakeMessageHandle.
  14418. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14419. (PeerInteraction): Replaced Peer with PeerHandle.
  14420. Replaced Socket with SocketHandle.
  14421. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14422. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14423. (receiveHandshake): Replaced HandshakeMessage with
  14424. HandshakeMessageHandle.
  14425. * src/PeerInteraction.cc
  14426. (PeerInteraction): Replaced Peer with PeerHandle.
  14427. Replaced Socket with SocketHandle.
  14428. (~PeerInteraction): Removed the deallocation of the elements of
  14429. messageQueue.
  14430. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14431. (isSendingMessageInProgress): Replaced PeerMessage with
  14432. PeerMessageHandle.
  14433. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14434. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14435. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14436. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14437. (abortPiece): Use PeerMessageHandle.
  14438. (receiveHandshake): Replaced HandshakeMessage with
  14439. HandshakeMessageHandle. Removed try-catch block.
  14440. (createHandshakeMessage): Replaced HandshakeMessage with
  14441. HandshakeMessageHandle.
  14442. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14443. Removed try-catch block.
  14444. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14445. * src/HttpProxyResponseCommand.cc
  14446. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14447. * src/FtpTunnelResponseCommand.h
  14448. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14449. * src/HttpConnection.cc
  14450. (HttpConnection): Replaced Socket with SocketHandle.
  14451. * src/PeerAbstractCommand.cc
  14452. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14453. (~PeerAbstractCommand): Removed the deallocation of socket.
  14454. Use disableReadCheckSocket, disableWriteCheckSocket.
  14455. (disableReadCheckSocket): New function.
  14456. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14457. (disableWriteCheckSocket): New function.
  14458. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14459. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14460. * src/FtpTunnelRequestCommand.cc
  14461. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14462. (~FtpTunnelRequestCommand): Corrected indentation.
  14463. * src/DownloadCommand.h
  14464. (DownloadCommand): Replaced Socket with SocketHandle.
  14465. * src/PeerListenCommand.cc
  14466. (PeerListenCommand): Removed the initialization of socket.
  14467. (~PeerListenCommand): Removed the deallocation of socket.
  14468. (bindPort): Use SocketHandle.
  14469. (execute): Use SocketHandle and PeerHandle.
  14470. * src/FtpDowndloadCommand.cc
  14471. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14472. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14473. * src/main.cc
  14474. (main): Corrected indentation.
  14475. * src/HttpInitiateConnectionCommand.cc
  14476. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14477. (executeInternal): Removed the allocation of socket.
  14478. * src/HttpRequestCommand.h
  14479. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14480. * src/FtpNegotiationCommand.h
  14481. (dataSocket): Changed its type to SocketHandle.
  14482. (serverSocket): Changed its type to SocketHandle.
  14483. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14484. * src/TorrentMan.h
  14485. (MAX_PEER_UPDATE): Removed.
  14486. (MAX_PEERS): New definition.
  14487. (Peers): The element is now of type PeerHandle.
  14488. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14489. (getPeer): Replaced Peer with PeerHandle.
  14490. (deleteOldErrorPeers): Removed.
  14491. (deleteErrorPeer): New function.
  14492. (hasMissingPiece): Replaced Peer with PeerHandle.
  14493. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14494. (getMissingPiece): Replaced Peer with PeerHandle.
  14495. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14496. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14497. (addActivePeer): Replaced Peer with PeerHandle.
  14498. (deleteActivePeer): Replaced Peer with PeerHandle.
  14499. Added a check for the return value of find.
  14500. * src/FtpTunnelResponseCommand.cc
  14501. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14502. * src/FtpInitiateConnectionCommand.cc
  14503. (executeInternal): Removed the allocation of socket.
  14504. * src/DownloadEngine.h
  14505. (Sockets): An element is now of type SocketHandle.
  14506. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14507. (CommandUuids): New type definition.
  14508. (rsockets): Changed its type to SockCmdMap.
  14509. (wsockets): Changed its type to SockCmdMap.
  14510. (addSocket): Rewritten.
  14511. (deleteSocket): Rewritten.
  14512. (addSocketForReadCheck): Rewritten.
  14513. (deleteSocketForReadCheck): Rewritten.
  14514. (addSocketForWriteCheck): Rewritten.
  14515. (deleteSocketForWriteCheck): Rewritten.
  14516. (PairFind): New template class.
  14517. * src/HttpDownloadCommand.h
  14518. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14519. * src/FtpConnection.cc
  14520. (FtpConnection): Replaced Socket with SocketHandle.
  14521. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14522. block.
  14523. * src/InitiateConnectionCommandFactory.cc
  14524. (DlAbortEx.h): Included DlAbortEx.h.
  14525. (createInitiateConnectionCommand): Throw exception if the protocol of
  14526. requested URI is not supported.
  14527. * src/Peer.cc
  14528. (nullPeer): Changed its type to PeerHandle.
  14529. (operator==): New function.
  14530. (operator!=): New function.
  14531. * src/Peer.h
  14532. (SharedHandle.h): Included SharedHandle.h.
  14533. (operator==): New function.
  14534. (operator!=): New function.
  14535. (Peer): Added the default constructor.
  14536. Use resetStatus() to initialize member variables.
  14537. (nullPeer): Removed.
  14538. * src/TrackerUpdateCommand.cc
  14539. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14540. with MIN_PEERS.
  14541. * src/PeerListenCommand.h
  14542. (socket): Changed its type to SocketHandle.
  14543. * src/Command.h
  14544. (CommandUuid): New type definition.
  14545. (uuid): New variable.
  14546. (uuidGen): New variable.
  14547. (Command): Added the initialization of uuid.
  14548. (getUuid): New function.
  14549. * src/Socket.h
  14550. (Socket): Removed.
  14551. (SocketHandle): New type definition.
  14552. * src/DownloadEngine.h
  14553. (FindCommand): New function object.
  14554. (run): The portion of socket check was rewritten.
  14555. (SetDescriptor): New function object.
  14556. (AccumulateActiveCommandUuid): New function object.
  14557. (waitData): Rewritten.
  14558. (addSocket): Rewritten.
  14559. (deleteSocket): Rewritten.
  14560. (addSocketForReadCheck): Rewritten.
  14561. (addSocketForWriteCheck): Rewritten.
  14562. (deleteSocketForReadCheck): Rewritten.
  14563. (deleteSocketForWriteCheck): Rewritten.
  14564. * src/HttpProxyResponseCommand.h
  14565. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14566. * src/HttpConnection.h
  14567. (socket): Changed its type to SocketHandle.
  14568. (HttpConnection): Replaced Socket with SocketHandle.
  14569. * src/PeerInitiateConnectionCommand.cc
  14570. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14571. (executeInternal): Removed the allocation of socket.
  14572. (prepareForNextPeer): Use PeerHandle.
  14573. * src/PeerMessage.h
  14574. (peer): Changed its type to PeerHandle.
  14575. (getPeer): Replaced Peer with PeerHandle.
  14576. (setPeer): Replaced Peer with PeerHandle.
  14577. * src/DownloadCommand.cc
  14578. (DownloadCommand): Replaced Socket with SocketHandle.
  14579. * src/FtpConnection.h
  14580. (socket): Changed its type to SocketHandle.
  14581. (FtpConnection): Replaced Socket with SocketHandle.
  14582. (sendPort); Replaced Socket with SocketHandle.
  14583. * src/FtpDowndloadCommand.h
  14584. (ctrlSocket): Changed its type to SocketHandle.
  14585. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14586. * src/HttpProxyRequestCommand.cc
  14587. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14588. * src/FtpTunnelRequestCommand.h
  14589. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14590. etc
  14591. * src/PeerChokeCommand.h
  14592. (setAllPeerChoked): Removed.
  14593. (setAllPeerResetDelta): Removed.
  14594. * src/PeerChokeCommand.cc
  14595. (setAllPeerChoked): Removed.
  14596. (ChokePeer): New function object.
  14597. (setAllPeerResetDelta): Removed.
  14598. (ResetDelta): New function object.
  14599. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14600. (execute): Show download speed when the local node is a seeder.
  14601. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14602. using STL.
  14603. * src/TrackerWatcherCommand.h
  14604. (MIN_PEERS): Removed.
  14605. * src/TorrentMan.cc
  14606. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14607. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14608. To fix the bug that .aria2 file is not saved if downloading is stopped
  14609. by the errors:it results that aria2 can not resume downloading:
  14610. * src/main.cc
  14611. (normalDownload): Added the call to save().
  14612. (main): Added the deletion of the elements in 'reserved'.
  14613. To fix log:
  14614. * src/PeerInteraction.cc
  14615. (receiveHandshake): Fixed log.
  14616. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14617. To improve download performance in BitTorrent:
  14618. * src/TorrentMan.cc
  14619. (getPeer): Check the number of connections. Return nullPeer if
  14620. it is greater than MAX_PEER_UPDATE.
  14621. This code was originally here, but was removed in 0.5.1.
  14622. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14623. To improve the conditional compilation:
  14624. * src/MultiDiskWriter.h:
  14625. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14626. * src/MultiDiskWriter.cc:
  14627. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14628. * src/Util.h:
  14629. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14630. Added ENABLE_BITTORRENT around computeFastSet().
  14631. * src/Util.cc:
  14632. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14633. Added ENABLE_BITTORRENT around computeFastSet().
  14634. * src/messageDigest.h:
  14635. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14636. * src/ShaVisitor.h:
  14637. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14638. * src/ShaVisitor.cc:
  14639. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14640. * src/main.cc:
  14641. Added ENABLE_BITTORRENT around includes and blocks related to
  14642. BitTorrent.
  14643. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14644. digest support is not available.
  14645. * src/AbstractDiskWriter.h:
  14646. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14647. * src/AbstractDiskWriter.cc:
  14648. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14649. * src/MetalinkEntry.cc
  14650. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14651. support is not available.
  14652. To add command-line options for Metalink:
  14653. * src/main.cc:
  14654. Added metalink-version, metalink-language, metalink-os,
  14655. follow-metalink.
  14656. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14657. * src/main.cc: Use these definition.
  14658. * Release 0.6.0
  14659. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14660. To add Metalink support(http/ftp only):
  14661. * src/AbstractCommand.h
  14662. (tryReserved): New function.
  14663. * src/AbstractCommand.cc
  14664. (execute): Call tryReserved().
  14665. (tryReserved): New function.
  14666. * src/Request.h
  14667. (Requests): New type definition.
  14668. * src/SegmentMan.h
  14669. (reserved): New variable.
  14670. * src/Util.h
  14671. (fileChecksum): New function.
  14672. (toUpper): New function.
  14673. (toLower): New function.
  14674. * src/Util.cc
  14675. (messageDigest.h): Included.
  14676. (trim): Trim \r\n\t.
  14677. (fileChecksum): New function.
  14678. (toUpper): New function.
  14679. (toLower): New function.
  14680. * src/main.cc
  14681. (normalDownload): New function.
  14682. (main): Added 2 command-line options: metalink-file,
  14683. metalink-connection. Their usage has not been written yet.
  14684. * src/MetalinkProcessor.h: New class.
  14685. * src/Xml2MetalinkProcessor.h: New class.
  14686. * src/Xml2MetalinkProcessor.cc: New class.
  14687. * src/MetalinkEntry.h: New class.
  14688. * src/MetalinkEntry.cc: New class.
  14689. * src/MetalinkResource.h: New class.
  14690. * src/MetalinkResource.cc: New class.
  14691. To add md5 message digest checking:
  14692. * src/messageDigest.h: Rewritten.
  14693. * src/MultiDiskWriter.cc: Updated according to the changes in
  14694. messageDigest.h.
  14695. * src/ShaVisitor.cc: Updated according to the changes in
  14696. messageDigest.h.
  14697. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14698. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14699. messageDigest.h.
  14700. To fix a bug that causes segfault when the payload length in peer
  14701. message is less than 0:
  14702. * src/PeerConnection.cc:
  14703. (receiveMessage): Fixed the bug.
  14704. * src/PeerMessageUtil.cc
  14705. (checkLength): Throw an exception if length is less than or equals to
  14706. 0.
  14707. To add new interfaces to Base64 encoding/decoding:
  14708. * src/Base64.h
  14709. (part_encode): Changed the method signature.
  14710. (encode): New function(overload).
  14711. (decode): New function(overload).
  14712. * src/Base64.cc
  14713. (part_encode): Rewritten.
  14714. (encode): Rewritten.
  14715. (encode): New function(overload).
  14716. To prevent a peer to download same piece if there is an error in
  14717. checksum:
  14718. * src/PieceMessage.cc
  14719. (receivedAction): Call peerInteraction->abortPiece().
  14720. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14721. To fix the bug that causes same have message is sent many times to
  14722. a single peer.
  14723. * src/Time.cc
  14724. (isNewer): Use Util::difftv().
  14725. * src/Util.cc
  14726. (difftv): Added a cast to (long long int).
  14727. * src/TorrentMan.cc
  14728. (advertisePiece): Use push_front.
  14729. (getAdvertisedPieceIndexes): A performance improvement was made.
  14730. To fix the bug that sends tracker requests without a sleep interval
  14731. when the number of connections is less than 15.
  14732. * src/TrackerWatcherCommand.cc
  14733. (execute): Now the number of connections is not a factor to decide
  14734. whether or not a tracker request should be sent or not.
  14735. * src/Time.h
  14736. (setTimeInSec): New function.
  14737. * src/Time.cc
  14738. (setTimeInSec): New function.
  14739. etc.
  14740. * src/ChokeMessage.cc
  14741. (receivedAction): Removed peer->snubbing = false
  14742. * src/PeerConnection.h
  14743. (receiveHandshake): Updated doc.
  14744. * src/TorrentMan.h
  14745. (getAdvertisedPieceIndexes): Updated the method signature.
  14746. * src/TorrentMan.cc
  14747. (getAdvertisedPieceIndexes): Updated the method signature.
  14748. * src/Time.h
  14749. (getTimeInMicros): Added a cast to (long long int).
  14750. (getTimeInMillis): Added a cast to (long long int).
  14751. * Release 0.5.2
  14752. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14753. To make a listening socket non-block:
  14754. * src/SocketCore.h
  14755. (setNonBlockingMode): New function.
  14756. * src/SocketCore.cc
  14757. (setNonBlockingMode): New function.
  14758. (beginListen): Added a call to setNonBlockingMode().
  14759. (acceptConnection): Call setNonBlockingMode().
  14760. (setBlockingMode): Updated.
  14761. To handle tracker's NAT-checking:
  14762. * src/PeerConnection.cc
  14763. (receiveHandshake): 'msg' param is filled with received data and
  14764. its length is assigned to 'length' param, even if all handshake
  14765. message is not yet received.
  14766. * src/PeerInteractionCommand.cc
  14767. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14768. a new peer connects to localhost.
  14769. A call to peerInteraction->sendHandshake() was removed because
  14770. it is called from peerInteraction->receiveHandshake(true).
  14771. * src/PeerInteraction.h
  14772. (quickReplied): New variable.
  14773. (receiveHandshake): Added an argument.
  14774. * src/PeerInteraction.cc
  14775. (PeerInteraction): Added the initialization of quickReplied.
  14776. (receiveHandshake): Send handshake message as soon as the info hash
  14777. in a handshake message from a peer is correct.
  14778. To change the random part of peer id and key parameter:
  14779. * src/TorrentMan.h
  14780. (key): New variable.
  14781. * src/TorrentMan.cc
  14782. (setupInternal1): Use Util::randomAlpha() to generate random part
  14783. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14784. key is also generated by Util::randomAlpha() and it is now 8 character
  14785. long.
  14786. * src/Util.h
  14787. (randomAlpha): New function.
  14788. * src/Util.cc
  14789. (randomAlpha): New function.
  14790. * src/TrackerWatcherCommand.cc
  14791. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14792. Added no_peer_id=1.
  14793. Set snubbing flag to false when a choke message is received from a
  14794. snubbed peer.
  14795. * src/ChokeMessage.cc
  14796. (receivedAction): Set snubbing flag to false.
  14797. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14798. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14799. * src/SimpleLogger.h (writeHeader): New function.
  14800. * src/SimpleLogger.cc (writeHeader): New function.
  14801. (writeLog): Fixed the bug that causes segfaults if exception message
  14802. contains an unescaped "%" character.
  14803. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14804. when a tracker request fails.
  14805. * src/Request.cc (parseUrl): Query string is now handled properly.
  14806. * Release 0.5.1
  14807. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14808. To add Time class which represents a specific instant in time and
  14809. its precision is microseconds. Time checking procedures were rewritten
  14810. using this object.
  14811. * src/Time.h: New class.
  14812. * src/Time.cc: New class.
  14813. * src/AbstractCommand.h
  14814. (updateCheckPoint): Removed.
  14815. (isTimeoutDetected): Removed.
  14816. (checkPoint): Changed the type to Time.
  14817. (timeout): New variable.
  14818. (setTimeout): New function.
  14819. * src/AbstractCommand.cc
  14820. (AbstractCommand): Removed the initialization of checkPoint.
  14821. Added the initialization of timeout.
  14822. (updateCheckPoint): Removed.
  14823. (isTimeoutDetected): Removed.
  14824. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14825. * src/PeerChokeCommand.h
  14826. (checkPoint): Changed the type to Time.
  14827. * src/PeerChokeCommand.cc
  14828. (PeerChokeCommand): Removed the initialization of checkPoint.
  14829. (execute): Rewritten using Time object.
  14830. * src/TrackerWatcherCommand.h
  14831. (checkPoint): Changed the type to Time.
  14832. * src/TrackerWatcherCommand.cc
  14833. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14834. (execute): Rewritten.
  14835. * src/ConsoleDownloadEngine.h
  14836. (cp): Changed the type to Time.
  14837. (startup): Changed the type to Time.
  14838. * src/ConsoleDownloadEngine.cc
  14839. (initStatistics): Use cp.reset(), startup.reset().
  14840. (calculateStatistics): Rewritten using Time object.
  14841. * src/PeerAbstractCommand.h
  14842. (updateCheckPoint): Removed.
  14843. (isTimeoutDetected): Removed.
  14844. (checkPoint): Changed the type to Time.
  14845. * src/PeerAbstractCommand.cc
  14846. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14847. (updateCheckPoint): Removed.
  14848. (isTimeoutDetected): Removed.
  14849. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14850. * src/PeerInteractionCommand.cc
  14851. (PeerInteractionCommand): Removed the initializations of struct
  14852. timeval variables.
  14853. * src/PeerInteractionCommand.h
  14854. (keepAliveCheckPoint): Changed the type to Time.
  14855. (chokeCheckPoint): Changed the type to Time.
  14856. (freqCheckPoint): Changed the type to Time.
  14857. (haveCheckTime): Changed the type to Time.
  14858. * src/PeerInteractionCommand.cc
  14859. (executeInternal): Rewritten using Time object.
  14860. (detectMessageFlooding): Rewritten using Time object.
  14861. (checkLongTimePeerChoking): Rewritten using Time object.
  14862. (sendKeepAlive): Rewritten using Time object.
  14863. (checkHave): Rewritten using Time object.
  14864. * src/SleepCommand.h
  14865. (checkPoint): Changed the type to Time.
  14866. * src/SleepCommand.cc
  14867. (SleepCommand): Removed the initialization of checkPoint.
  14868. (execute): Rewritten using Time object.
  14869. * src/TorrentAutoSaveCommand.h
  14870. (checkPoint): Changed the type to Time.
  14871. * src/TorrentAutoSaveCommand.cc
  14872. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14873. (execute): Rewritten.
  14874. * src/DownloadCommand.h
  14875. (sw): Changed the type to Time.
  14876. * src/DownloadCommand.cc
  14877. (DownloadCommand): Removed the initialization of sw.
  14878. (executeInternal): Rewritten.
  14879. * src/RequestSlot.h
  14880. (dispatchedTime): Changed the type to Time.
  14881. * src/RequestSlot.cc
  14882. (RequestSlot): Removed the call to setDispatchedTime().
  14883. (setDispatchedTime): Rewirtten.
  14884. (isTimeout): Rewritten.
  14885. (getLatencyInMillis): Rewritten.
  14886. * src/TorrentDownloadEngine.h
  14887. (cp): Changed the type to Time[2].
  14888. (startup): Changed the type to Time.
  14889. * src/TorrentDownloadEngine.cc
  14890. (initStatistics): Rewritten.
  14891. (calculateStatistics): Rewritten.
  14892. * src/DownloadEngine.cc
  14893. (run): Rewritten.
  14894. To detect all attempts to connect to the tracker are failed:
  14895. * src/AbstractCommand.cc
  14896. (execute): Increment e->segmentMan->errors if a command aborted.
  14897. * src/SegmentMan.h
  14898. (errors): New variable.
  14899. * src/SegmentMan.cc
  14900. (SegmentMan): Added the initialization of errors.
  14901. (init): Added the initialization of errors.
  14902. * src/TrackerWatcherCommand.cc
  14903. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14904. request was failed.
  14905. To handle snubbed peers:
  14906. * src/PeerChokeCommand.cc
  14907. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14908. (execute): Snubbed peers don't get unchoked.
  14909. * src/PeerInteraction.h
  14910. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14911. * src/PeerInteraction.cc
  14912. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14913. back the requested 16k block in 60 seconds.
  14914. * src/PieceMessage.cc
  14915. (receivedAction): A peer's snubbed state is cleard if it sends
  14916. the requested 16k block in 60 seconds.
  14917. * src/Peer.h
  14918. (snubbing): New variable.
  14919. * src/Peer.cc
  14920. (resetStatus): Added snubbed = false.
  14921. To fix the bug that causes have message is not sent:
  14922. * src/PeerInteractionCommand.cc
  14923. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14924. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14925. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14926. * src/TorrentMan.h
  14927. (HaveEntry): New class.
  14928. (advertisePiece): Rewritten.
  14929. (getAdvertisedPieceIndexes): Rewritten.
  14930. (Haves): Changed the type.
  14931. (getAdvertisedPieceIndexes): Added an argument.
  14932. Others:
  14933. * src/TorrentMan.h
  14934. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14935. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14936. * src/TorrentMan.cc
  14937. (getPeer): Don't check the number of connections here.
  14938. (setupInternal1): Changed peerId.
  14939. * src/PeerInteractionCommand.h
  14940. (KEEP_ALIVE_INTERVAL): New definition.
  14941. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14942. * src/main.cc
  14943. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14944. * src/DownloadEngine.h: Removed unnecessary header includes.
  14945. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14946. To fix the bug that causes segfaults if a tracker returns a zero-length
  14947. list as "peers":
  14948. * src/TrackerUpdateCommand.cc
  14949. (execute): Added a check to see wether the type of peers is Data*.
  14950. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14951. * Release 0.5.0
  14952. To fix compile issue with gcc3:
  14953. * src/CancelMessage.h
  14954. (ID): Renamed as ID_t
  14955. (ID_t): New enum.
  14956. * src/RejectMessage.h
  14957. (ID): Renamed as ID_t
  14958. (ID_t): New enum.
  14959. * src/SuggestPieceMessage.h
  14960. (ID): Renamed as ID_t
  14961. (ID_t): New enum.
  14962. * src/AllowedFastMessage.h
  14963. (ID): Renamed as ID_t
  14964. (ID_t): New enum.
  14965. * src/PortMessage.h
  14966. (ID): Renamed as ID_t
  14967. (ID_t): New enum.
  14968. * src/HaveNoneMessage.h
  14969. (ID): Renamed as ID_t
  14970. (ID_t): New enum.
  14971. * src/KeepAliveMessage.h
  14972. (ID): Renamed as ID_t
  14973. (ID_t): New enum.
  14974. * src/HaveAllMessage.h
  14975. (ID): Renamed as ID_t
  14976. (ID_t): New enum.
  14977. * src/UnchokeMessage.h
  14978. (ID): Renamed as ID_t
  14979. (ID_t): New enum.
  14980. * src/BitfieldMessage.h
  14981. (ID): Renamed as ID_t
  14982. (ID_t): New enum.
  14983. * src/PieceMessage.h
  14984. (ID): Renamed as ID_t
  14985. (ID_t): New enum.
  14986. * src/RequestMessage.h
  14987. (ID): Renamed as ID_t
  14988. (ID_t): New enum.
  14989. * src/NotInterestedMessage.h
  14990. (ID): Renamed as ID_t
  14991. (ID_t): New enum.
  14992. * src/ChokeMessage.h
  14993. (ID): Renamed as ID_t
  14994. (ID_t): New enum.
  14995. * src/InterestedMessage.h
  14996. (ID): Renamed as ID_t
  14997. (ID_t): New enum.
  14998. * src/HaveMessage.h
  14999. (ID): Renamed as ID_t
  15000. (ID_t): New enum.
  15001. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15002. * src/PeerAbstractCommand.h
  15003. (beforeSocketCheck): Removed.
  15004. * src/PeerAbstractCommand.cc
  15005. Modified in order to call executeInternal() even if socket check
  15006. and upload limit check fail.
  15007. * src/PeerInteractionCommand.h
  15008. (keepAlive): Removed.
  15009. (sendKeepAlive): New function.
  15010. (checkHave): New function.
  15011. (beforeSocketCheck): Removed.
  15012. * src/PeerInteractionCommand.cc
  15013. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15014. calls to checkHave() and sendKeepAlive().
  15015. (keepAlive): Renamed to sendKeepAlive().
  15016. (sendKeepAlive): New function.
  15017. (beforeSocketCheck): Removed.
  15018. (checkHave): New function.
  15019. * src/BitfieldMan.cc
  15020. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15021. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15022. 0.
  15023. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15024. * src/TorrentMan.h
  15025. (UsedPieces): Removed.
  15026. (Pieces): New type definition.
  15027. * src/Piece.h: Updated doc.
  15028. * src/Peer.h
  15029. (totalLength): Removed.
  15030. * src/Peer.cc
  15031. (updateLatency): Fixed the latency calculation.
  15032. * src/TorrentMan.cc
  15033. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15034. than or equal to MAX_PEER_LIST_SIZE.
  15035. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15036. then return false.
  15037. (deleteOldErrorPeers): Rewritten.
  15038. (deleteUsedPiece): Fixed the miss use of STL remove.
  15039. * src/PeerInteraction.h
  15040. (Pieces): Removed.
  15041. (deleteTimeoutRequestSlot): Removed.
  15042. (deleteCompletedRequestSlot): Removed.
  15043. (checkRequestSlot): New function.
  15044. * src/PeerInteraction.cc
  15045. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15046. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15047. (checkRequestSlot): New function.
  15048. * src/DownloadEngine.cc
  15049. (run): Clear activeSockets before calling waitData().
  15050. (waitData): Removed a call to activeSockets.clear().
  15051. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15052. To attempt to handle EINTR:
  15053. * src/SocketCore.cc
  15054. (isReadable): Added EINTR handling.
  15055. (isWritable): Added EINTR handling.
  15056. To improve the performance:
  15057. * src/AbstractCommand.cc
  15058. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15059. * src/PeerInteractionCommand.h
  15060. (receiveMessage): Renamed as receiveMessages().
  15061. (receiveMessages): New function.
  15062. * src/PeerInteractionCommand.cc
  15063. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15064. () function. detectMessageFlooding() is moved here.
  15065. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15066. (). The flooding detection for have message is comment out.
  15067. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15068. Util::difftv().
  15069. (receiveMessage): Renamed as receiveMessages().
  15070. (receiveMessages): New function.
  15071. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15072. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15073. * src/SleepCommand.cc
  15074. (execute): Use Util::difftvsec() instead of Util::difftv().
  15075. * src/BitfieldMan.h
  15076. (getNthBitIndex): New function.
  15077. (hasMissingPiece): New function.
  15078. (getAllMissingIndexes): New function.
  15079. * src/BitfieldMan.cc
  15080. (countSetBit): Rewritten.
  15081. (getNthBitIndex): New function.
  15082. (getMissingIndexRandomly): Rewritten.
  15083. (hasMissingPiece): New function.
  15084. (getAllMissingIndexes): New function.
  15085. * src/TorrentMan.cc
  15086. (hasMissingPiece): New function.
  15087. (deleteUsedPiece): Rewritten using STL.
  15088. * src/PeerInteraction.cc
  15089. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15090. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15091. (addRequests): Updated the number of pending requests.
  15092. * src/PeerAbstractCommand.cc
  15093. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15094. (execute): Returns true if TorrentMan::isHalt() is true.
  15095. Corrected the condition of upload limit checking.
  15096. * src/Util.h
  15097. (countBit): New function.
  15098. * src/Util.cc
  15099. (nbits): New variable.
  15100. (countBit): New function.
  15101. * src/DownloadEngine.h
  15102. (SockCmdMap): New type definition.
  15103. (waitData): Added an argument.
  15104. (addSocket): Added an argument.
  15105. (addSocketForReadCheck): Added an argument.
  15106. (addSocketForWriteCheck): Added an argument.
  15107. * src/DownloadEngine.cc
  15108. (run): Executes only commands whose sockets are ready to read or write.
  15109. All commands are executed in every 1 second.
  15110. (waitData): Calls select() again if it returned
  15111. EINTR.
  15112. (addSocket): Saves socket and command object pair to the map.
  15113. (deleteSocket): Deletes socket and command object pair from the map.
  15114. (addSocketForReadCheck): Added an argument.
  15115. (addSocketForWriteCheck): Added an argument.
  15116. * src/DownloadCommand.cc
  15117. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15118. To send "event=stopped" to the tracker when the application finishes:
  15119. * src/PeerChokeCommand.h
  15120. (checkPoint): New variable.
  15121. * src/PeerChokeCommand.cc
  15122. (PeerChokeCommand): Added the initialization of checkPoint.
  15123. (execute): The interval check is now done by checkPoint, not
  15124. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15125. * src/TorrentMan.h
  15126. (halt): New function.
  15127. (hasMissingPiece): New function.
  15128. (isHalt): New function.
  15129. (setHalt): New function.
  15130. * src/TorrentMan.cc
  15131. (TorrentMan): Added the initialization of halt.
  15132. * src/TorrentAutoSaveCommand.h
  15133. (checkPoint): New variable.
  15134. * src/PeerListenCommand.cc
  15135. (execute): Returns true if TorrentMan::isHalt() is true.
  15136. * src/main.cc
  15137. (setSignalHander): Added flags argument.
  15138. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15139. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15140. Removed printDownloadAbortMessage() after torrent downloading loop.
  15141. * src/TorrentAutoSaveCommand.cc
  15142. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15143. (execute): Returns true if TorrentMan::isHalt() is true.
  15144. The interval check is now done by checkPoint, not SleepCommand.
  15145. * src/TrackerWatcherCommand.cc
  15146. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15147. event=stopped.
  15148. * src/TrackerUpdateCommand.cc
  15149. (prepareForRetry): Do not use SleepCommand here.
  15150. (execute): Returns true if TorrentMan::isHalt() is true.
  15151. Others:
  15152. * src/TorrentMan.cc
  15153. (getMissingPieceIndex): Updated log message.
  15154. * src/PeerInteraction.cc
  15155. (createPeerMessag): Updated log message.
  15156. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15157. To add the ability to download several pieces in mix in a command and
  15158. increase the number of request slots according to request-cancel
  15159. latency:
  15160. * src/PeerInteractionCommand.cc
  15161. (executeInternal): The number of messages to be received at a time
  15162. is increased from 10 to 50.
  15163. * src/LogFactory
  15164. (getInstance): Added NullLogger.
  15165. * src/NullLogger.h: New class.
  15166. * src/BitfieldMan.h
  15167. (getMissingIndex): New function.
  15168. * src/BitfieldMan.cc
  15169. (getMissingIndex): New function.
  15170. * src/TorrentMan.h
  15171. (checkOutPiece): New function.
  15172. (getMissingPieceIndex): New function.
  15173. (getMissingFastPieceIndex): New function.
  15174. (getMissingFastPiece): New function.
  15175. * src/TorrentMan.cc
  15176. (updatePiece): Rewritten using STL.
  15177. (syncPiece): Rewritten using STL.
  15178. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15179. checkOutPiece().
  15180. (getMissingPieceIndex): New function.
  15181. (getMissingFastPieceIndex): New function.
  15182. (getMissingFastPiece): New function.
  15183. (checkOutPiece): New function.
  15184. * src/PeerInteraction.h
  15185. (Pieces): New type definition.
  15186. (piece): Removed.
  15187. (pieces): New variable.
  15188. (getNewPieceAndSendInterest): Added the "piece" argument.
  15189. (abortPiece): Added the "piece" argument.
  15190. (abortAllPieces): New function.
  15191. (isInRequestSlot): New function.
  15192. (hasDownloadPiece): Added the "index" argument.
  15193. (setDownloadPiece): Removed.
  15194. (getDownloadPiece): Added the "index" argument.
  15195. (updatePiece): New function.
  15196. (createRequestMessage): Added the "index" argument.
  15197. * src/PeerInteraction.cc
  15198. (onChoked): Rewritten.
  15199. (abortPiece): Rewirtten.
  15200. (abortAllPieces): New function.
  15201. (deleteTimeoutRequestSlot): Rewritten.
  15202. Clarified code a little bit.
  15203. (deleteCompletedRequestSlot): Rewritten.
  15204. (isInRequestSlot): New function.
  15205. (syncPiece): Rewritten.
  15206. (updatePiece): New function.
  15207. (getNewPieceAndSendInterest): Rewritten.
  15208. (addRequests): Rewritten.
  15209. (getDownloadPiece): Rewritten.
  15210. (hasDownloadPiece): Rewritten.
  15211. (createRequestMessage): Added the "index" argument.
  15212. * src/common.h
  15213. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15214. (DIV_FLOOR): New definition.
  15215. * src/PieceMessage.cc
  15216. (receivedAction): Update request-piece latency here.
  15217. * src/RequestSlot.h
  15218. (getLatencyInMillis): New function.
  15219. * src/RequestSlot.cc
  15220. (isTimeout): Rewritten using getLatencyInMillis.
  15221. (getLatencyInMillis): New function.
  15222. * src/Piece.h
  15223. (operator==): New function.
  15224. (getMissingBlockIndex): New function.
  15225. * src/Piece.cc
  15226. (operator==): New function.
  15227. (getMissingBlockIndex): New function.
  15228. * src/Peer.h
  15229. (DEFAULT_LATENCY): New definition.
  15230. (latency): New variable.
  15231. (updateLatency): New function.
  15232. (getLatency): New function.
  15233. * src/Peer.cc
  15234. (resetStatus): Reset latecy.
  15235. (updateLatency): New function.
  15236. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15237. * src/SocketCore.cc
  15238. (isReadable): Added secure to the condition.
  15239. * src/HttpConnection.cc
  15240. (receiveResponse): Fixed a bug that causes no response header
  15241. exception.
  15242. * src/Peer.h
  15243. (getFastSet): Fixed the return value type.
  15244. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15245. To remove a wait from download loop:
  15246. * src/DownloadEngine.cc
  15247. (run): Comment out shortSleep.
  15248. To rewrite the message handling:
  15249. * src/SimplePeerMessage.h: New class.
  15250. * src/SimplePeerMessage.cc: New class.
  15251. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15252. (msg): New variable.
  15253. (create): New function.
  15254. (send): Removed.
  15255. (getMessage): New function.
  15256. (getMessageLength): New function.
  15257. * src/CancelMessage.cc
  15258. (create): New function.
  15259. (receivedAction): Replaced deleteRequestMessageInQueue with
  15260. rejectPieceMessageInQueue.
  15261. (send): Removed.
  15262. (getMessage): New function.
  15263. (getMessageLength): New function.
  15264. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15265. (msg): New variable.
  15266. (msgLength): New variable.
  15267. (~BitfieldMessage): Deleted msg.
  15268. (send): Removed.
  15269. (getMessage): New function.
  15270. (getMessageLength): New function.
  15271. * src/BitfieldMessage.cc
  15272. (create): New function.
  15273. (send): Removed.
  15274. (getMessage): New function.
  15275. (getMessageLength): New function.
  15276. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15277. (msg): New variable.
  15278. (sendPredicate): New function.
  15279. (onSendComplete): New function.
  15280. (send): Removed.
  15281. (getMessage): New function.
  15282. (getMessageLength): New function.
  15283. (create): New function.
  15284. * src/ChokeMessage.cc
  15285. (create): New function.
  15286. (send): Removed.
  15287. (sendPredicate): New function.
  15288. (getMessage): New function.
  15289. (getMessageLength): New function.
  15290. (onSendComplete): New function.
  15291. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15292. (msg): New variable.
  15293. (send): Removed.
  15294. (getMessage): New function.
  15295. (getMessageLength): New function.
  15296. * src/KeepAliveMessage.cc
  15297. (send): Removed.
  15298. (getMessage): New function.
  15299. (getMessageLength): New function.
  15300. * src/PortMessage.h
  15301. (create): New function.
  15302. (receivedAction): Updated log message.
  15303. * src/PortMessage.cc: New file.
  15304. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15305. (msg): New variable.
  15306. (sendPredicate): New function.
  15307. (onSendComplete): New function.
  15308. (create): New function.
  15309. (send): Removed.
  15310. (getMessage): New function.
  15311. (getMessageLength): New function.
  15312. * src/UnchokeMessage.cc
  15313. (create): New function.
  15314. (send): Removed.
  15315. (sendPredicate): New function.
  15316. (getMessage): New function.
  15317. (getMessageLength): New function.
  15318. (onSendComplete): New function.
  15319. * src/PieceMessage.h
  15320. (leftPieceDataLength): Removed.
  15321. (leftDataLength): New variable.
  15322. (headerSend): New variable.
  15323. (pendingCount): New variable.
  15324. (msgHeader): New variable.
  15325. (sendPieceData): New function.
  15326. (incrementPendingCount): New function.
  15327. (isPendingCountMax): New function.
  15328. (create): New function.
  15329. (getMessageHeader): New function.
  15330. (getMessageHeaderLength): New function.
  15331. * src/PieceMessage.cc
  15332. (create): New function.
  15333. (getMessageHeader): New function.
  15334. (getMessageHeaderLength): New function.
  15335. (send): Rewritten.
  15336. (sendPieceData): New function.
  15337. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15338. (msg): New variable.
  15339. (create): New function.
  15340. (getMessage): New function.
  15341. (getMessageLength): New function.
  15342. * src/HaveMessage.cc
  15343. (create): New function.
  15344. (send): Removed.
  15345. (sendPieceData): New function.
  15346. (getMessage): New function.
  15347. (getMessageLength): New function.
  15348. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15349. (msg): New variable.
  15350. (create): New function.
  15351. (send): Removed.
  15352. (getMessage): New function.
  15353. (getMessageLength): New function.
  15354. * src/RequestMessage.cc
  15355. (create): New function.
  15356. (receivedAction): Added the handling of fast extension.
  15357. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15358. (send): Removed.
  15359. (getMessage): New function.
  15360. (getMessageLength): New function.
  15361. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15362. (msg): New variable.
  15363. (sendPredicate): New function.
  15364. (onSendComplete): New function.
  15365. (create): New function.
  15366. (getMessage): New function.
  15367. (getMessageLength): New function.
  15368. * src/InterestedMessage.cc
  15369. (create): New function.
  15370. (send): Removed.
  15371. (sendPieceData): New function.
  15372. (getMessage): New function.
  15373. (getMessageLength): New function.
  15374. (onSendComplete): New function.
  15375. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15376. (msg): New variable.
  15377. (sendPieceData): New function.
  15378. (onSendComplete): New function.
  15379. (create): New function.
  15380. (send): Removed.
  15381. (getMessage): New function.
  15382. (getMessageLength): New function.
  15383. * src/NotInterestedMessage.cc
  15384. (create): New function.
  15385. (send): Removed.
  15386. (sendPredicate): New function.
  15387. (getMessage): New function.
  15388. (getMessageLength): New function.
  15389. (onSendComplete): New function.
  15390. * src/AllowedFastMessage.h: New class.
  15391. * src/AllowedFastMessage.cc: New class.
  15392. * src/RejectMessage.h: New class.
  15393. * src/RejectMessage.cc: New class.
  15394. * src/SuggestPieceMessage.h: New class.
  15395. * src/SuggestPieceMessage.cc: New class.
  15396. * src/HaveAllMessage.h: New class.
  15397. * src/HaveAllMessage.cc: New class.
  15398. * src/HaveNoneMessage.h: New class.
  15399. * src/HaveNoneMessage.cc: New class.
  15400. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15401. (msg): New variable.
  15402. (reserved): New variable.
  15403. (create): New function.
  15404. (getId): New function.
  15405. (receivedAction): New function.
  15406. (getMessage): New function.
  15407. (getMessageLength): New function.
  15408. (isFastExtensionSupported): New function.
  15409. * src/HandshakeMessage.cc
  15410. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15411. (create): New function.
  15412. (getMessage): New function.
  15413. (getMessageLength): New function.
  15414. (toString): Added the output of reserved field.
  15415. (check): Added const qualifier.
  15416. (isFastExtensionSupported): New function.
  15417. * src/PeerMessageUtil.h
  15418. (createChokeMessage): Removed.
  15419. (createUnchokeMessage): Removed.
  15420. (createInterestedMessage): Removed.
  15421. (createNotInterestedMessage): Removed.
  15422. (createHaveMessage): Removed.
  15423. (createBitfieldMessage): Removed.
  15424. (createRequestMessage): Removed.
  15425. (createCancelMessage): Removed.
  15426. (createPieceMessage): Removed.
  15427. (createPortMessage): Removed.
  15428. (createChokeMessage): Removed.
  15429. (createUnchokeMessage): Removed.
  15430. (createInterestedMessage): Removed.
  15431. (createNotInterestedMessage): Removed.
  15432. (createHaveMessage): Removed.
  15433. (createBitfieldMessage): Removed.
  15434. (createRequestMessage): Removed.
  15435. (createCancelMessage): Removed.
  15436. (createPieceMessage): Removed.
  15437. (createKeepAliveMessage): Removed.
  15438. (createHandshakeMessage): Removed.
  15439. (setIntParam): New function.
  15440. (createPeerMessageString): New function.
  15441. * src/PeerMessageUtil.cc
  15442. (createChokeMessage): Removed.
  15443. (createUnchokeMessage): Removed.
  15444. (createInterestedMessage): Removed.
  15445. (createNotInterestedMessage): Removed.
  15446. (createHaveMessage): Removed.
  15447. (createBitfieldMessage): Removed.
  15448. (createRequestMessage): Removed.
  15449. (createCancelMessage): Removed.
  15450. (createPieceMessage): Removed.
  15451. (createPortMessage): Removed.
  15452. (createRequestMessage): Removed.
  15453. (createCancelMessage): Removed.
  15454. (createPieceMessage): Removed.
  15455. (createHaveMessage): Removed.
  15456. (createChokeMessage): Removed.
  15457. (createUnchokeMessage): Removed.
  15458. (createInterestedMessage): Removed.
  15459. (createNotInterestedMessage): Removed.
  15460. (createBitfieldMessage): Removed.
  15461. (createKeepAliveMessage): Removed.
  15462. (createHandshakeMessage): Removed.
  15463. (setIntParam): New function.
  15464. (createPeerMessageString): New function.
  15465. * src/PeerConnection.h
  15466. (peer): Removed.
  15467. (torrentMan): Removed.
  15468. (createNLengthMessage): Removed.
  15469. (setIntParam): Removed.
  15470. (writeOutgoingMessageLog): Removed all overloaded functions.
  15471. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15472. (sendMessage): New function.
  15473. (sendHandshake): Removed.
  15474. (sendKeepAlive): Removed.
  15475. (sendChoke): Removed.
  15476. (sendUnchoke): Removed.
  15477. (sendInterested): Removed.
  15478. (sendNotInterested): Removed.
  15479. (sendHave): Removed.
  15480. (sendBitfield): Removed.
  15481. (sendRequest): Removed.
  15482. (sendPiece): Removed.
  15483. (sendPieceHeader): Removed.
  15484. (sendPieceData): Removed.
  15485. (sendCancel): Removed.
  15486. (getPeer): Removed.
  15487. * src/PeerConnection.cc
  15488. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15489. (sendHandshake): Removed.
  15490. (sendKeepAlive): Removed.
  15491. (createNLengthMessage): Removed.
  15492. (setIntParam): Removed.
  15493. (writeOutgoingMessageLog): Removed all overloaded functions.
  15494. (sendChoke): Removed.
  15495. (sendUnchoke): Removed.
  15496. (sendInterested): Removed.
  15497. (sendNotInterested): Removed.
  15498. (sendHave): Removed.
  15499. (sendBitfield): Removed.
  15500. (sendRequest): Removed.
  15501. (sendPiece): Removed.
  15502. (sendPieceHeader): Removed.
  15503. (sendPieceData): Removed.
  15504. (sendMessage): New function.
  15505. (sendCancel): Removed.
  15506. * src/PeerInteractionCommand.cc
  15507. (PeerInteractionCommand): Call setUploadLimit.
  15508. (executeInternal): Call setUploadLimit.
  15509. Added the handling of "inProgress" state of handshake message.
  15510. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15511. sendNow().
  15512. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15513. sendNow().
  15514. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15515. * src/TorrentMan.h
  15516. (PEER_ID_LENGTH): New definition.
  15517. (hasAllPieces): New function.
  15518. * src/TorrentMan.cc
  15519. (getMissingPiece): Added the handling of fast extension.
  15520. (cancelPiece): Call updatePiece().
  15521. (hasAllPieces): New function.
  15522. * src/PeerInteraction.h
  15523. (fastSet): New variable.
  15524. (getNewPieceAndSendInterest): Changed the return type to void.
  15525. (send): Renamed as sendMessages.
  15526. (deleteAllRequestSlot): Removed.
  15527. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15528. (cancelAllRequest): Removed all overloaded functions.
  15529. (deleteAllRequestSlot): Removed.
  15530. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15531. (rejectPieceMessageInQueue): New function.
  15532. (rejectAllPieceMessageInQueue): New function.
  15533. (onChoked): New function.
  15534. (isSendingMessageInProgress): New function.
  15535. (getCorrespondingRequestSlot): Changed its arguments.
  15536. (isInFastSet): New function.
  15537. (addFastSetIndex): New function.
  15538. (addRequests): New function.
  15539. (sendNow): Removed.
  15540. (trySendNow): Removed.
  15541. (sendBitfield): New function.
  15542. (sendAllowdFast): New function.
  15543. (createHaveAllMessage): New function.
  15544. (createHaveNoneMessage): New function.
  15545. (createRejectMessage): New function.
  15546. (createAllowedFastMessage): New function.
  15547. * src/PeerInteraction.cc
  15548. (send): Renamed as sendMessages.
  15549. (sendMessages): New function.
  15550. (MsgPushBack): New class.
  15551. (isSendingMessageInProgress): New function.
  15552. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15553. (rejectAllPieceMessageInQueue): New function.
  15554. Added the handling of fast extension.
  15555. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15556. (rejectPieceMessageInQueue): New function.
  15557. Added the handling of fast extension.
  15558. (deleteRequestSlot): Replaced for loop with std::find.
  15559. (onChoked): New function.
  15560. (deleteAllRequestSlot): Removed.
  15561. (abortPiece): Rewirtten.
  15562. (deleteTimeoutRequestSlot): Updated log messages.
  15563. (getCorrespondingRequestSlot): Changed its arguments.
  15564. (cancelAllRequest): Removed all overloaded functions.
  15565. (receiveHandshake): Added the check to see whether an incoming peer
  15566. supports fast extension.
  15567. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15568. PeerMessageUtil.
  15569. (createPeerMessage): Use create() of each message class instead of
  15570. PeerMessageUtil.
  15571. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15572. AllowedFastMessage were added.
  15573. (getNewPieceAndSendInterest): Changed its return value type to void.
  15574. Added the handling of fast extension.
  15575. (addRequests): New function.
  15576. (sendNow): Removed.
  15577. (sendHandshake): Rewritten.
  15578. (trySendNow): Removed.
  15579. (sendBitfield): New function.
  15580. (sendAllowdFast): New function.
  15581. (isInFastSet): New function.
  15582. (addFastSetIndex): New function.
  15583. (createRequestMessage): Use RequestMessage::create instead of
  15584. PeerMessageUtil.
  15585. (createCancelMessage): Use CancelMessage::create instead of
  15586. PeerMessageUtil.
  15587. (createPieceMessage): Use PieceMessage::create instead of
  15588. PeerMessageUtil.
  15589. (createHaveMessage): Use HaveMessage::create instead of
  15590. PeerMessageUtil.
  15591. (createChokeMessage): Use ChokeMessage::create instead of
  15592. PeerMessageUtil.
  15593. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15594. PeerMessageUtil.
  15595. (createInterestedMessage): Use InterestedMessage::create instead of
  15596. PeerMessageUtil.
  15597. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15598. of PeerMessageUtil.
  15599. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15600. PeerMessageUtil.
  15601. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15602. PeerMessageUtil.
  15603. (createHaveAllMessage): New function.
  15604. (createHaveNoneMessage): New function.
  15605. (createRejectMessage): New function.
  15606. (createAllowedFastMessage: New function.
  15607. * src/Util.h
  15608. (sha1Sum): New function.
  15609. (computeFastSet): New function.
  15610. * src/Util.cc
  15611. (sha1Sum): New function.
  15612. (computeFastSet): New function.
  15613. * src/Peer.h
  15614. (fastExtensionEnabled): New variable.
  15615. (fastSet): New variable.
  15616. (setAllBitfield): New function.
  15617. (setFastExtensionEnabled): New function.
  15618. (isFastExtensionEnabled): New function.
  15619. (addFastSetIndex): New function.
  15620. (getFastSet): New function.
  15621. (isInFastSet): New function.
  15622. (countFastSet): New function.
  15623. * src/Peer.cc
  15624. (isInFastSet): New function.
  15625. (addFastSetIndex): New function.
  15626. (setAllBitfield): New function.
  15627. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15628. sockets.
  15629. * src/PeerAbstractCommand.cc
  15630. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15631. and uploadLimit.
  15632. (execute): Changed the procedure of checking sockets. The upload speed
  15633. checking were added.
  15634. (setUploadLimit): New function.
  15635. (setUploadLimitCheck): New function.
  15636. * src/PeerAbstractCommand.h
  15637. (setUploadLimit): New function.
  15638. (setUploadLimitCheck): New function.
  15639. (uploadLimit): New variable.
  15640. (uploadLimitCheck): New variable.
  15641. To contact a tracker regularly:
  15642. * src/TrackerWatcherCommand.h (interval): New variable.
  15643. (checkPoint): New variable.
  15644. (TrackerWatcherCommand): Added interval argument.
  15645. * src/TrackerWatcherCommand.cc
  15646. (TrackerWatcherCommand): Initialized checkPoint.
  15647. (execute): Now a tracker is contacted in every specified period.
  15648. If peer list is not needed, send request with numwant=0.
  15649. * src/TrackerUpdateCommand.cc
  15650. (execute): Updated log messages.
  15651. * src/DownloadEngine.cc
  15652. (~DownloadEngine): Removed two asserts.
  15653. (waitData): Uncommented wfds. May be a bug fix.
  15654. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15655. * src/PeerInteractionCommand.h
  15656. (checkInactiveConnection): Removed.
  15657. * src/PeerInteractionCommand.cc
  15658. (executeInternal): Removed following function calls:
  15659. detectMessageFlooding(), checkLongTimePeerChoking and
  15660. checkInactiveConnection().
  15661. (checkInactiveConnection): Removed.
  15662. (detectMessageFlooding): Removed function call to
  15663. checkInactiveConnection().
  15664. * src/PeerMessageUtil.h
  15665. (createChokeMessage): New function. Overload.
  15666. (createUnchokeMessage): New function. Overload.
  15667. (createInterestedMessage): New function. Overload.
  15668. (createNotInterestedMessage): New function. Overload.
  15669. (createHaveMessage): New function. Overload.
  15670. (createBitfieldMessage): New function. Overload.
  15671. (createRequestMessage): New function. Overload.
  15672. (createCancelMessage): New function. Overload.
  15673. (createPieceMessage): New function. Overload.
  15674. (createKeepAliveMessage): New function. Overload.
  15675. * src/PeerMessageUtil.cc
  15676. (createChokeMessage): New function. Overload.
  15677. (createUnchokeMessage): New function. Overload.
  15678. (createInterestedMessage): New function. Overload.
  15679. (createNotInterestedMessage): New function. Overload.
  15680. (createHaveMessage): New function. Overload.
  15681. (createBitfieldMessage): New function. Overload.
  15682. (createRequestMessage): New function. Overload.
  15683. (createCancelMessage): New function. Overload.
  15684. (createPieceMessage): New function. Overload.
  15685. (createKeepAliveMessage): New function. Overload.
  15686. * src/SendMessageQueue.cc
  15687. (createRequestMessage): Use PeerMessageUtil.
  15688. (createCancelMessage): Use PeerMessageUtil.
  15689. (createPieceMessage): Use PeerMessageUtil.
  15690. (createHaveMessage): Use PeerMessageUtil.
  15691. (createChokeMessage): Use PeerMessageUtil.
  15692. (createUnchokeMessage): Use PeerMessageUtil.
  15693. (createInterestedMessage): Use PeerMessageUtil.
  15694. (createNotInterestedMessage): Use PeerMessageUtil.
  15695. (createBitfieldMessage): Use PeerMessageUtil.
  15696. (createKeepAliveMessage): Use PeerMessageUtil.
  15697. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15698. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15699. * src/PeerInteraction.h: New class.
  15700. * src/PeerInteraction.cc: New class.
  15701. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15702. Each peer message has its own class.
  15703. * src/PendingMessages.h: Removed.
  15704. * src/PendingMessages.cc: Removed. The sending process was moved to
  15705. each message class.
  15706. * src/RequestSlotMan.h: Removed.
  15707. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15708. SendMessageQueue.
  15709. * src/RequestMessage.h: New class.
  15710. * src/RequestMessage.cc: New class.
  15711. * src/CancelMessage.h: New class.
  15712. * src/CancelMessage.cc: New class.
  15713. * src/BitfieldMessage.h: New class.
  15714. * src/BitfieldMessage.cc: New class.
  15715. * src/ChokeMessage.h: New class.
  15716. * src/ChokeMessage.cc: New class.
  15717. * src/KeepAliveMessage.h: New class.
  15718. * src/KeepAliveMessage.cc: New class.
  15719. * src/PortMessage.h: New class.
  15720. * src/UnchokeMessage.h: New class.
  15721. * src/UnchokeMessage.cc: New class.
  15722. * src/PieceMessage.h: New class.
  15723. * src/PieceMessage.cc: New class.
  15724. * src/HaveMessage.h: New class.
  15725. * src/HaveMessage.cc: New class.
  15726. * src/BitfieldMessage.h: New class.
  15727. * src/BitfieldMessage.cc: New class.
  15728. * src/NotInterestedMessage.h: New class.
  15729. * src/NotInterestedMessage.cc: New class.
  15730. * src/InterestedMessage.h: New class.
  15731. * src/InterestedMessage.cc: New class.
  15732. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15733. (getSendMessageQueue): New function.
  15734. (setSendMessageQueue): New function.
  15735. * src/HandshakeMessage.cc: New class.
  15736. * src/PeerConnection.h (receiveMessage): Changed return value and
  15737. arguments.
  15738. (receiveHandshake): Changed return value and arguments.
  15739. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15740. here.
  15741. (receiveHandshake): Do not create handshake class here.
  15742. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15743. (piece): Removed.
  15744. (syncPiece): Removed.
  15745. (sendInterest): Removed.
  15746. (sendMessages): Removed.
  15747. (createRequestPendingMessage): Removed.
  15748. (checkPieceHash): Removed.
  15749. (erasePieceOnDisk): Removed.
  15750. (getNewPieceAndSendInterest): Removed.
  15751. (onGotNewPice): Removed.
  15752. (onGotWrongPiece): Removed.
  15753. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15754. Removed peerConnection, piece.
  15755. (~PeerInteractionCommand): Removed peerConnection.
  15756. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15757. (syncPiece): Moved to SendMessageQueue.
  15758. (decideChoking): Removed PendingMessage.
  15759. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15760. The action after receiving peer message was moved to each message
  15761. class.
  15762. (onGotNewPice): Moved to SendMessageQueue.
  15763. (onGotWrongPiece): Moved to SendMessageQueue.
  15764. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15765. (sendInterest): Moved to SendMessageQueue.
  15766. (createRequestPendingMessage): Removed.
  15767. (sendMessages): Moved to SendMessageQueue.
  15768. (onAbort): Use SendMessageQueue::abortPiece()
  15769. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15770. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15771. (checkPieceHash): Moved to SendMessageQueue.
  15772. (erasePieceOnDisk): Moved to SendMessageQueue.
  15773. * src/PeerMessageUtil.h
  15774. (createBitfieldMessage): Removed.
  15775. (createHaveMessage): Changed return value and arguments.
  15776. (createBitfieldMessage): Changed return value and arguments.
  15777. (createRequestCancelMessage): Removed.
  15778. (createPieceMessage): Changed return value and arguments.
  15779. (getShortIntParam): New function.
  15780. (checkIndex): Changed arguments.
  15781. (checkBegin): Changed arguments.
  15782. (checkLength): Changed arguments.
  15783. (checkPieceOffset): Removed.
  15784. (checkRange): New function.
  15785. (checkBitfield): Changed arguments.
  15786. (createPeerMessage): Removed.
  15787. (checkIntegrity): Removed.
  15788. (createHandshakeMessage): Changed arguments.
  15789. (createChokeMessage): New function.
  15790. (createUnchokeMessage): New function.
  15791. (createInterestedMessage): New function.
  15792. (createNotInterestedMessage): New function.
  15793. (createRequestMessage): New function.
  15794. (createCancelMessage): New function.
  15795. (createPortMessage): New function.
  15796. * src/PeerMessageUtil.cc
  15797. (createBitfieldMessage): Removed.
  15798. (createHaveMessage): Changed return value and arguments.
  15799. (createBitfieldMessage): Changed return value and arguments.
  15800. (createRequestCancelMessage): Removed.
  15801. (createPieceMessage): Changed return value and arguments.
  15802. (getShortIntParam): New function.
  15803. (checkIndex): Changed arguments.
  15804. (checkBegin): Changed arguments.
  15805. (checkLength): Changed arguments.
  15806. (checkPieceOffset): Removed.
  15807. (checkRange): New function.
  15808. (checkBitfield): Changed arguments.
  15809. (createPeerMessage): Removed.
  15810. (checkIntegrity): Removed.
  15811. (createHandshakeMessage): Changed arguments.
  15812. (createChokeMessage): New function.
  15813. (createUnchokeMessage): New function.
  15814. (createInterestedMessage): New function.
  15815. (createNotInterestedMessage): New function.
  15816. (createRequestMessage): New function.
  15817. (createCancelMessage): New function.
  15818. (createPortMessage): New function.
  15819. * src/PeerMessage.h
  15820. (id): Removed.
  15821. (index): Removed.
  15822. (begin): Removed.
  15823. (length): Removed.
  15824. (bitfield): Removed.
  15825. (bitfieldLength): Removed.
  15826. (block): Removed.
  15827. (blockLength): Removed.
  15828. (inProgress): New variable.
  15829. (cuid): New variable.
  15830. (peer): New variable.
  15831. (sendMessageQueue): New variable.
  15832. (logger): New variable.
  15833. (setBitfield): Removed.
  15834. (getBitfield): Removed.
  15835. (setBlock): Removed.
  15836. (getBlock): Removed.
  15837. (getBitfieldLength): Removed.
  15838. (getBlockLength): Removed.
  15839. (isInProgress): New function.
  15840. (toString): Made pure virtual.
  15841. (check): New function.
  15842. (send): New function.
  15843. (receivedAction): New function.
  15844. (getId): Made pure virtual.
  15845. (setId): Removed.
  15846. (getIndex): Removed.
  15847. (setIndex): Removed.
  15848. (getBegin): Removed.
  15849. (setBegin): Removed.
  15850. (getLength): Removed.
  15851. (setLength): Removed.
  15852. (getCuid): New function.
  15853. (setCuid): New function.
  15854. (getPeer): New function.
  15855. (setPeer): New function.
  15856. (getSendMessageQueue): New function.
  15857. (setSendMessageQueue): New function.
  15858. (ID): Removed.
  15859. * src/PeerMessage.cc
  15860. (setBitfield): Removed.
  15861. (setBlock): Removed.
  15862. (toString): Removed.
  15863. * src/TorrentMan.h
  15864. (getPieceLength): New function.
  15865. (getPieceLength): New function.
  15866. * src/SendMessageQueue.h
  15867. (REQUEST_TIME_OUT): New definition.
  15868. (RequestSlots): New definition.
  15869. (MessageQueue): New definition.
  15870. (requestSlotMan): Removed.
  15871. (pendingMessages): Removed.
  15872. (requestSlots): New variable.
  15873. (messageQueue): New variable.
  15874. (torrentMan): New variable.
  15875. (peerConnection): New variable.
  15876. (peer): New variable.
  15877. (piece): New variable.
  15878. (getNewPieceAndSendInterest): New function.
  15879. (createPeerMessage): New function.
  15880. (createHandshakeMessage): New function.
  15881. (send): Made private.
  15882. (setPeerMessageCommonProperty): New function.
  15883. (deleteAllRequestSlot): New function.
  15884. (deleteRequestMessageInQueue): New function.
  15885. (cancelAllRequest): Made private.
  15886. (cancelAllRequest): Made private.
  15887. (countRequestSlot): Made private.
  15888. (addPendingMessage): Removed.
  15889. (deletePendingPieceMessage): Removed.
  15890. (deletePendingRequestMessage): Removed.
  15891. (addMessage): New function.
  15892. (deletePieceMessageInQueue): New function.
  15893. (deleteTimeoutRequestSlot): Changed argument.
  15894. (deleteCompletedRequestSlot): Changed argument.
  15895. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15896. (getCorrespondingRequestSlot): New function.
  15897. (countPendingMessage): Removed.
  15898. (countMessageInQueue): New function.
  15899. (getTorrentMan): New function.
  15900. (getPeerConnection): New function.
  15901. (hasDownloadPiece): New function.
  15902. (getDownloadPiece): New function.
  15903. (setDownloadPiece): New function.
  15904. (syncPiece): New function.
  15905. (sendMessages): New function.
  15906. (sendNow): New function.
  15907. (trySendNow): New function.
  15908. (abortPiece): New function.
  15909. (sendHandshake): New function.
  15910. (receiveMessage): New function.
  15911. (receiveHandshake): New function.
  15912. (createRequestMessage): New function.
  15913. (createCancelMessage): New function.
  15914. (createPieceMessage): New function.
  15915. (createHaveMessage): New function.
  15916. (createChokeMessage): New function.
  15917. (createUnchokeMessage): New function.
  15918. (createInterestedMessage): New function.
  15919. (createNotInterestedMessage): New function.
  15920. (createBitfieldMessage): New function.
  15921. (createKeepAliveMessage): New function.
  15922. * src/SendMessageQueue.cc
  15923. (SendMessageQueue): Removed requestSlotMan.
  15924. Instantiated peerConnection here.
  15925. (~SendMessageQueue): Removed requestSlotMan.
  15926. Added deletion of peerConnection and the contents of messageQueue.
  15927. (send): Updated according to the change of messageQueue.
  15928. (addPendingMessage): Renamed to addMessage.
  15929. (addMessage): New function.
  15930. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15931. (deletePieceMessageInQueue): New function.
  15932. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15933. (deleteRequestMessageInQueue): New function.
  15934. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15935. here.
  15936. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15937. (...) was moved here.
  15938. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15939. moved here.
  15940. (deleteCompletedRequestSlot):
  15941. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15942. (getCorrespondingRequestSlot):
  15943. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15944. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15945. (countPendingMessage): Renamed to countMessageInQueue.
  15946. (countMessageInQueue): New function.
  15947. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15948. (receiveHandshake): New function.
  15949. (createHandshakeMessage): New function.
  15950. (receiveMessage): New function.
  15951. (createPeerMessage): New function.
  15952. (syncPiece): New function.
  15953. (getNewPieceAndSendInterest): New function.
  15954. (sendMessages): New function.
  15955. (sendNow): New function.
  15956. (trySendNow): New function.
  15957. (sendHandshake): New function.
  15958. (abortPiece): New function.
  15959. (getDownloadPiece): New function.
  15960. (getPeerMessageCommonProperty): New function.
  15961. (createRequestMessage): New function.
  15962. (createCancelMessage): New function.
  15963. (createPieceMessage): New function.
  15964. (createHaveMessage): New function.
  15965. (createChokeMessage): New function.
  15966. (createUnchokeMessage): New function.
  15967. (createInterestedMessage): New function.
  15968. (createNotInterestedMessage): New function.
  15969. (createBitfieldMessage): New function.
  15970. (createKeepAliveMessage): New function.
  15971. To add simple Content-Disposition support:
  15972. * src/HttpResponseCommand.h (determinFilename): New function.
  15973. * src/HttpResponseCommand.cc (executeInternal):
  15974. Use determinFilename(headers) instead of req->getFile() when comparing
  15975. filename.
  15976. (determinFilename): New function.
  15977. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15978. req->getFile().
  15979. (handleOtherEncoding): Use determinFilename(headers) instead of
  15980. req->getFile().
  15981. * src/Util.h (getContentDispositionFilename): New function.
  15982. * src/Util.cc (getContentDispositionFilename): New function.
  15983. * src/LogFactory.h (release): New function.
  15984. * src/LogFactory.cc (release): New function.
  15985. To fix a bug that causes out-of-bound exception when HTTP status
  15986. line is wrong:
  15987. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15988. size.
  15989. * src/common.h (Deleter): New class.
  15990. * src/SegmentMan.cc
  15991. (~SegmentMan): Added deletion of splitter and diskWriter.
  15992. * src/DownloadEngine.h
  15993. (Commands): Use deque.
  15994. (clearQueue): New function.
  15995. * src/DownloadEngine.cc
  15996. (~DownloadEngine): Added deletion of segmentMan.
  15997. (cleanQueue): New function.
  15998. * src/TorrentDownloadEngine.h
  15999. (TorrentDownloadEngine): The implementation was moved to
  16000. TorrentDownloadEngine.cc.
  16001. (~TorrentDownloadEngine): The implementation was moved to
  16002. TorrentDownloadEngine.cc.
  16003. * src/TorrentDownloadEngine.cc
  16004. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16005. * src/main.cc
  16006. (clearRequest): Removed.
  16007. (handler): Added deletion of e.
  16008. (torrentHandler): Added deletion of te.
  16009. (main): Do not share splitter.
  16010. Use Deleter instead of clearRequest.
  16011. Deletion of classes were updated.
  16012. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16013. * src/main.cc (main): Fixed typo.
  16014. * src/message.h: Fixed typo.
  16015. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16016. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16017. To add --select-file command-line option:
  16018. * src/Util.cc
  16019. (unfoldRange): New function.
  16020. (getNum): New function.
  16021. (unfoldSubRange): New function
  16022. * src/main.cc
  16023. (showUsage): Added help message.
  16024. (main): Added --select-file command-line option. Updated the layout of
  16025. file listing.
  16026. * src/common.h
  16027. (Integers): New definition.
  16028. * src/SocketCore.cc
  16029. (writeData): Removed timeout argument.
  16030. (readData): Removed timeout argument.
  16031. (peekData): Removed timeout argument.
  16032. * src/Socket.cc
  16033. (writeData): Removed timeout argument.
  16034. (readData): Removed timeout argument.
  16035. (peekData): Removed timeout argument.
  16036. * Release 0.4.1
  16037. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16038. To deploy upload rate based choking algorithm:
  16039. * src/PeerInteractionCommand.cc
  16040. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16041. peer currently used.
  16042. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16043. download completes. Simplified.
  16044. (receiveMessage): Updated.
  16045. * src/TorrentMan.h
  16046. (activePeers): New variable.
  16047. (addActivePeer): New function.
  16048. (getActivePeers): New function.
  16049. (deleteActivePeer): New function.
  16050. * src/TorrentMan.cc
  16051. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16052. * src/PeerAbstractCommand.cc
  16053. (onAbort): Use peer->resetStatus().
  16054. * src/main.cc
  16055. (PeerChokeCommand.h): Included.
  16056. (main): Added the instance of ChokingCommand to the command queue.
  16057. * src/Peer.h
  16058. (amChoking): Renamed from amChocking
  16059. (chokingRequired): New variable.
  16060. (optUnchoking): New variable.
  16061. (deltaUpload): New variable.
  16062. (deltaDownload): New variable.
  16063. (addDeltaUpload): New function.
  16064. (resetDeltaUpload): New function.
  16065. (addDeltaDownload): New function.
  16066. (resetDeltaDownload): New function.
  16067. (addPeerUpload): Added a call to addDeltaUpload.
  16068. (addPeerDownload): Added a call to addDeltaDownload.
  16069. * src/Peer.cc
  16070. (shouldBeChoking): Renamed from shouldChoke.
  16071. (resetStatus): New function.
  16072. * src/PeerChokeCommand.h: New class.
  16073. * src/PeerChokeCommand.cc: New class.
  16074. To add lazy upload speed limiter:
  16075. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16076. statistics calculation to TorrentDownloadEngine.
  16077. * src/TorrentConsoleDownloadEngine.cc
  16078. (sendStatistics): Renamed from printStatistics.
  16079. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16080. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16081. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16082. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16083. calculation.
  16084. (sendStatistics): New function as pure virtual function.
  16085. (getUploadSpeed): New function.
  16086. * src/TorrentDownloadEngine.cc
  16087. (initStatistics): New function.
  16088. (calculateSpeed): New function.
  16089. (calculateStatistics): New function.
  16090. * src/SendMessageQueue.h
  16091. (uploadLength): New variable.
  16092. (send): Added an argument.
  16093. (setUploadLimit): New function.
  16094. (getUploadLimit): New function.
  16095. * src/SendMessageQueue.cc
  16096. (send): Added upload speed limiter.
  16097. * src/prefs.h
  16098. (PREF_UPLOAD_LIMIT): New definition.
  16099. * src/PeerInteractionCommand.cc
  16100. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16101. * src/main.cc
  16102. (main): Added --upload-limit option
  16103. For bug fixes:
  16104. * src/main.cc
  16105. (showUsage): Corrected --listen-port help
  16106. Other changes:
  16107. * src/TorrentMan.cc
  16108. (getPeer): Return nullPeer if connection is grather than
  16109. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16110. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16111. To add some useful information to the exception message:
  16112. * src/SocketCore.cc : Updated messages.
  16113. * src/SegmentMan.cc :
  16114. * src/TorrentMan.cc : Updated messages.
  16115. * src/MultiDiskWriter.cc : Updated messages.
  16116. * src/Util.cc : Updated messages.
  16117. * src/AbstractDiskWriter.cc : Updated messages.
  16118. * src/PreAllocationDiskWriter.cc : Updated messages.
  16119. * src/message.cc : Added new messages. Updated some messages.
  16120. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16121. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16122. Updated threshold from 30 to 15.
  16123. * src/AbstractDiskWriter.h (filename): New variable.
  16124. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16125. (createFile): Assigned filename.
  16126. * src/main.cc: Updated the help message for http-auth-scheme.
  16127. * Release 0.4.0
  16128. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16129. To add TrackerUpdateCommand with which replaces
  16130. CompactTrackerResponseProcessor:
  16131. * src/TrackerWatcherCommand.h (req): Removed.
  16132. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16133. if the number of peer connections are less than 30.
  16134. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16135. * src/SegmentMan.h (diskWriter): New function.
  16136. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16137. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16138. (main): Use TrackerUpdateCommand.
  16139. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16140. (req): New variable.
  16141. (setTrackerResponseProcessor): Removed.
  16142. (getTrackerResponseProcessor): Removed.
  16143. (processTrackerResponse): Removed.
  16144. * src/DownloadEngine.h (diskWriter): Removed.
  16145. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16146. to torrentMan->processTrackerResponse().
  16147. To add Util::expandBuffer:
  16148. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16149. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16150. * src/Util.h (expandBuffer): New function.
  16151. To fix the bug that causes segmentation fault when "-l ." is specified
  16152. in command-line option:
  16153. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16154. (openFile): New function.
  16155. (closeFile): New function.
  16156. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16157. (~SimpleLogger): Call closeFile();
  16158. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16159. * src/main.cc (main): Added a check to see logger is configured
  16160. properly.
  16161. To enable HTTP authentication without specifying "--http-auth-scheme"
  16162. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16163. * src/HttpConnection.cc (createRequest): Send Authorization header
  16164. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16165. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16166. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16167. * src/Peer.cc (shouldChoke): Updated algorithm.
  16168. * src/message.h (EX_AUTH_FAILED): New definition.
  16169. (EX_FILE_OPEN): New definition.
  16170. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16171. if status == 401.
  16172. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16173. if req->isTorrent == true.
  16174. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16175. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16176. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16177. (createFile): Updated message.
  16178. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16179. To add a readout of estimated remaining time to normal HTTP/FTP
  16180. downloads:
  16181. * src/ConsoleDownloadEngine.h (startup): New variable.
  16182. (startupLength): New variable.
  16183. (isStartupLengthSet): New variable.
  16184. (avgSpeed): New variable.
  16185. (eta): New variable.
  16186. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16187. estimated remaining time.
  16188. (initStatistics): Initialized newly added variables.
  16189. (calculateStatistics): Calculate average speed and estimated remaining
  16190. time.
  16191. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16192. * src/TrackerDownloadCommand.h: Removed.
  16193. * src/TrackerDownloadCommand.cc: Removed.
  16194. * src/TrackerInitCommand.h: Removed.
  16195. * src/TrackerInitCommand.cc: Removed.
  16196. * src/TrackerUpdateCommand.h: Removed.
  16197. * src/TrackerUpdateCommand.cc: Removed.
  16198. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16199. url written in TrackerInitCommand was moved here. Do not create
  16200. tracker request command if torrentMan->trackers != 0.
  16201. * src/CompactTrackerResponseProcessor.h: New class.
  16202. * src/CompactTrackerResponseProcessor.cc: New class.
  16203. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16204. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16205. Decoupled TorrentDownloadEngine from this.
  16206. * src/SegmentMan.h (init): New function.
  16207. * src/SegmentMan.cc (init): New function.
  16208. * src/TorrentMan.h (responseProcessor): New variable.
  16209. (trackers): New variable.
  16210. (setTrackerResponseProcessor): New function.
  16211. (getTrackerResponseProcessor): New function.
  16212. (processTrackerResponse): New function.
  16213. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16214. (processTrackerResponse): New function.
  16215. * src/main.cc (main): Use ByteArrayDiskWriter and
  16216. CompactTrackerResponseProcessor.
  16217. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16218. processTrackerResponse().
  16219. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16220. readout.
  16221. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16222. which indicates download has completed.
  16223. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16224. (closeFile): fd >= 0, not fd > 0
  16225. * src/main.cc (main): Added short cut for show-files.
  16226. Added short cut for torrent-file.
  16227. Added new command-line option listen-port.
  16228. Updated i18n messages.
  16229. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16230. To add LogFactory which creates singleton logger:
  16231. * src/LogFactory.h: New class.
  16232. * src/LogFactory.cc: New class.
  16233. * src/Command.h (logger): New variable.
  16234. (Constructor): Use LogFactory.
  16235. * src/AbstractCommand.cc: Use Command::logger
  16236. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16237. Use LogFactory.
  16238. * src/SegmentSplitter.h : Made logger protected.
  16239. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16240. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16241. * src/DownloadEngine.h : Made logger protected.
  16242. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16243. * src/PeerInteractionCommand.cc : Use Command::logger.
  16244. * src/HttpResponseCommand.cc : Use Command::logger.
  16245. * src/SegmentMan.h : Made logger private.
  16246. * src/TorrentMan.h : Made logger private.
  16247. * src/TorrentMan.cc : Use LogFactory.
  16248. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16249. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16250. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16251. Use LogFactory.
  16252. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16253. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16254. Use LogFactory.
  16255. * src/DownloadCommand.cc : Use Command::logger.
  16256. * src/PeerAbstractCommand.cc : Use Command::logger.
  16257. * src/PeerListenCommand.cc : Use Command::logger.
  16258. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16259. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16260. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16261. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16262. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16263. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16264. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16265. Use LogFactory.
  16266. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16267. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16268. Use LogFactory.
  16269. * src/main.cc (main): Use LogFactory.
  16270. * src/DiskAdaptor.h (logger): New variable.
  16271. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16272. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16273. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16274. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16275. parameter to a tracker request.
  16276. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16277. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16278. * src/main.cc (setSignalHander): New function.
  16279. (main): Added a handler for SIGTERM.
  16280. (handler): Updated message.
  16281. (torrentHandler): Updated message.
  16282. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16283. * src/TorrentConsoleDownloadEngine.cc
  16284. (onPartialDownloadingCompletes): Renamed as
  16285. onSelectiveDownloadingCompletes.
  16286. (onSelectiveDownloadingCompletes): Updated message.
  16287. To add DiskAdaptor which abstract DiskWriter family:
  16288. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16289. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16290. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16291. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16292. MultiDiskAdaptor.h.
  16293. (readFileEntry): Changed its arguments.
  16294. (setup): setupDiskWriter is merged into this function.
  16295. (setupDiskWriter): Removed.
  16296. (setFileFilter): New function.
  16297. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16298. made in readFileEntry.
  16299. (getFilePath): Removed.
  16300. (getTempFilePath): Removed.
  16301. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16302. (fixFilename): Removed.
  16303. (copySingleFile): Removed.
  16304. (splitMultiFile): Removed.
  16305. (deleteTempFile): Removed.
  16306. (setFileEntriesToDownload): Removed.
  16307. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16308. (isSelectiveDownloadingMode): New function.
  16309. (setAllMultiFileRequestedState): Removed.
  16310. (finishPartialDownloadingMode): Renamed as
  16311. finishSelectiveDownloadingMode.
  16312. (finishSelectiveDownloadingMode): New function.
  16313. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16314. (getSelectedTotalLength): New function.
  16315. (onDownloadComplete): Use diskAdaptor.
  16316. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16317. (Range): Removed.
  16318. (setMultiFileEntries): Renamed as setFileEntries.
  16319. (setFileEntries): New function.
  16320. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16321. (pieceLength): New variable.
  16322. * src/main.cc (printDownloadCompeleteMessage): New function.
  16323. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16324. (main): Renamed torrent-show-files to show-files.
  16325. Rewritten file contents listing.
  16326. * src/TorrentMan.h (FileEntry): Removed.
  16327. (multiFileTopDir): Removed.
  16328. (multiFileEntries): Removed.
  16329. (diskWriter): Removed.
  16330. (diskAdaptor): New variable.
  16331. * src/DefaultDiskWriter.h (totalLength): New variable.
  16332. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16333. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16334. diskWriter.
  16335. * src/TorrentConsoleDownloadEngine.h
  16336. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16337. (partialTotalLength): Renamed as selectedTotalLength.
  16338. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16339. openExistingFile, otherwise call initAndOpenFile.
  16340. (closeFile): fd > 0, not fd != 0.
  16341. * src/DirectDiskAdaptor.h: New class.
  16342. * src/DirectDiskAdaptor.cc: New class.
  16343. * src/MultiDiskAdaptor.h: New class.
  16344. * src/MultiDiskAdaptor.cc: New class.
  16345. * src/CopyDiskAdaptor.h: New class.
  16346. * src/CopyDiskAdaptor.cc: New class.
  16347. * src/DiskAdaptor.h: New class.
  16348. * src/DiskAdaptor.cc: New class.
  16349. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16350. (PREF_SHOW_FILES): New definition.
  16351. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16352. To add the ability to download multi torrent into respective files
  16353. directly:
  16354. * src/DiskWriter.h (openFile): New function.
  16355. (seek): Removed.
  16356. * src/MultiDiskWriter.h: New class.
  16357. * src/MultiDiskWriter.cc: New class.
  16358. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16359. protected.
  16360. (openFile): New function.
  16361. * src/AbstractDiskWriter.cc (openFile): New function.
  16362. * src/prefs.h (V_FALSE): New definition.
  16363. (PREF_DIRECT_FILE_MAPPING): New definition.
  16364. * src/TorrentMan.h (setupDiskWriter): New function.
  16365. (setAllMultiFileRequestedState): New function.
  16366. (onDownloadComplete): New function.
  16367. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16368. (setupDiskWriter): New function.
  16369. (getFilePath): Updated.
  16370. (getTempFilePath): Updated.
  16371. (getSegmentFilePath): Updated.
  16372. (fixFilename): Updated.
  16373. (deleteTempFile): Updated.
  16374. (setAllMultiFileRequestedState): New function.
  16375. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16376. (finishPartialDownloadingMode): Reset requested flags.
  16377. (onDownloadComplete): New function.
  16378. * src/main.cc: Added --direct-file-mapping option.
  16379. Use TorrentMan::setupDiskWriter().
  16380. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16381. onDownloadComplete().
  16382. To fix ETA bug:
  16383. * src/Util.h (difftvsec): New function.
  16384. * src/Util.cc (difftvsec): New function.
  16385. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16386. type of "elapsed" instead of long long int.
  16387. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16388. The updates of statistics takes place every 1 seconds.
  16389. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16390. (calculateSpeed): Changed its argument signature.
  16391. * src/PeerMessage.cc (toString): Fixed message.
  16392. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16393. To print ETA:
  16394. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16395. completion handling when dealing with
  16396. TorrentMan::isPartialDownloadingMode() == true.
  16397. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16398. New function.
  16399. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16400. (sessionDownloadLength): New variable.
  16401. (avgSpeed): New variable.
  16402. (eta): New variable.
  16403. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16404. new variables: eta, avgSpeed, startup.
  16405. (calculateSpeed): Calculate average speed and ETA.
  16406. (printStatistics): Added ETA.
  16407. * src/Util.h (secfmt): New function.
  16408. * src/Util.cc (secfmt): New function.
  16409. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16410. To detect "keep alive" flooding:
  16411. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16412. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16413. variable: keepAliveCount.
  16414. (detectMessageFlooding): Added "keep alive" flooding detection.
  16415. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16416. received.
  16417. To add the ability to download only specified files in multi-file
  16418. torrent:
  16419. * src/BitfieldMan.h (filterBitfield): New variable.
  16420. (filterEnabled): New variable.
  16421. (setFilterBit): New function.
  16422. (enableFilter): New function.
  16423. (disableFilter): New function.
  16424. (isFilterEnabled): New function.
  16425. (getFilteredTotalLength): New function.
  16426. (getCompletedLength): New function.
  16427. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16428. filterBitfield, filterEnabled.
  16429. (CopyConstructor): Added filterBitfield and filterEnabled.
  16430. (operator==): Added filterBitfield and filterEnabled.
  16431. (Destructor): Added filterBitfield.
  16432. (getMissingIndex): Use filterBitfield.
  16433. (getMissingUnusedIndex): Use filterBitfield.
  16434. (getFirstMissingUnusedIndex): Use filterBitfield.
  16435. (getFirstMissingUnusedIndex): Use filterBitfield.
  16436. (getAllMissingIndexes): Use filterBitfield.
  16437. (countMissingBlock): Use filterBitfield.
  16438. (countBlock): Use filterBitfield.
  16439. (setBitInternal): Added new argument on.
  16440. (setUseBit): Use setBitInternal.
  16441. (unsetUseBit): Use setBitInternal.
  16442. (setBit): Use setBitInternal.
  16443. (unsetBit): Use setBitInternal.
  16444. (isAllBitSet): Use filterBitfield.
  16445. (setFilterBit): New function.
  16446. (addFilter): New function.
  16447. (enableFilter): New function.
  16448. (disableFilter): New function.
  16449. (clearFilter): New function.
  16450. (isFilterEnabled): New function.
  16451. (getFilteredTotalLength): New function.
  16452. (getCompletedLength): New function.
  16453. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16454. Initalized newly added variables.
  16455. [FileEntry](offset): New variable.
  16456. [FileEntry](extracted): New variable.
  16457. [FileEntry](requested): New variable.
  16458. (readFileEntry): New function.
  16459. (option): New variable.
  16460. (splitMultiFile): Removed const qualifier.
  16461. (fixFilename): Removed const qualifier.
  16462. (readFileEntryFromMetaInfoFile): New function.
  16463. (finishPartialDownloadingMode): New function.
  16464. (isPartialDownloadingMode): New function.
  16465. (setFileEntriesToDownload): New function.
  16466. (getCompletedLength): New function.
  16467. (getPartialTotalLength): New function.
  16468. * src/TorrentMan.cc (readFileEntry): New function.
  16469. (setup): Use readFileEntry. If no-preallocation option is specified,
  16470. use DefaultDiskWriter.
  16471. (readFileEntryFromMetaInfoFile): New function.
  16472. (fixFilename): Removed const qualifier.
  16473. (splitMultiFile): Removed const qualifier.
  16474. (setFileEntriesToDownload): New function.
  16475. (isPartialDownloadingMode): New function.
  16476. (finishPartialDownloadingMode): New function.
  16477. (getCompletedLength): New function.
  16478. (getPartialTotalLength): New function.
  16479. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16480. New variable.
  16481. (partialTotalLength): New variable.
  16482. (downloadLength): New variable.
  16483. (totalLength): New variable.
  16484. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16485. Added log.
  16486. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16487. partialTotalLength, downloadLength, totalLength.
  16488. (calculate): Calculate downloadLength and totalLength.
  16489. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16490. * src/main.cc (addCommand): Changed argument signature.
  16491. (main): Added new variable: args. Added new option "torrent-show-files"
  16492. "no-preallocation". Usage is not updated yet.
  16493. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16494. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16495. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16496. Attempt to add the ability to listing file entries in a .torrent file.
  16497. This feature is not yet complete.
  16498. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16499. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16500. (getName): New function.
  16501. * src/TorrentMan.h (getMultiFileEntries): New function.
  16502. (getName): New function.
  16503. * src/main.cc (main): Use above 2 funtion.
  16504. * Release 0.3.2
  16505. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16506. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16507. (detectMessageFlooding): Updated threshold value.
  16508. (checkLongTimePeerChoking): Updated timeout value.
  16509. (getNewPieceAndSendInterest): Added debug log.
  16510. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16511. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16512. (getPeer): Updated.
  16513. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16514. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16515. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16516. is localhost.
  16517. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16518. * src/PendingMessage.cc (processMessage): Not to send piece message
  16519. if peer is not interested in the pieces localhost has.
  16520. * src/Peer.cc (shouldChoke): Updated.
  16521. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16522. * src/Util.cc (isPowerOf): New function.
  16523. * src/Util.h (isPowerOf): New function.
  16524. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16525. whether or not it is power of 2.
  16526. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16527. Added new class SendMessageQueue that includes PendingMessages and
  16528. RequestSlotMan.
  16529. * src/SendMessageQueue.h: New class.
  16530. * src/SendMessageQueue.cc: New class.
  16531. * src/PendingMessage.h: Added new member variable blockIndex and its
  16532. accessors.
  16533. (createRequestMessage): Updated.
  16534. * src/PendingMessage.cc (createRequestMessage): Updated.
  16535. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16536. SendMessageQueue.
  16537. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16538. (receiveMessage): Updated with SendMessageQueue.
  16539. (deletePendingPieceMessage): Removed.
  16540. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16541. (sendInterest): Updated with SendMessageQueue.
  16542. (createRequestPendingMessage): Updated with SendMessageQueue.
  16543. (sendMessages): Updated with SendMessageQueue.
  16544. (onAbort): Updated with SendMessageQueue.
  16545. (keepAlive): Updated with SendMessageQueue.
  16546. (beforeSocketCheck): Updated SendMessageQueue.
  16547. * src/PeerInteractionCommand (sendMessages): Shuffle
  16548. missingBLockIndexes before using it.
  16549. Added its own timeout for peer connection.
  16550. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16551. setter.
  16552. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16553. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16554. Added setTimeout() call.
  16555. (executeInternal): Added setTimeout() call.
  16556. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16557. Added timeout.
  16558. (isTimeoutDetected): Updated.
  16559. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16560. option.
  16561. Added *simple* message flooding checker.
  16562. * src/PeerInteractionCommand.cc (executeInternal):
  16563. Added detectMessageFlooding() call.
  16564. (detectMessageFlooding): New function.
  16565. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16566. (beforeSocketCheck): Added detectMessageFlooding() call.
  16567. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16568. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16569. Removed deletePendingPieceMessage(), getRequestSlot(),
  16570. deleteRequestSlot(), deleteAllRequestSlot().
  16571. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16572. Added checkLongTimePeerChoking() call.
  16573. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16574. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16575. if duplicate == false.
  16576. The parameter "uploaded" and "downloaded" in the tracker request are
  16577. the size since the client sent the "started" event to the tracker.
  16578. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16579. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16580. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16581. getSessionDownloadedSize(), getSessionUploadedSize().
  16582. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16583. getSessionUploadedSize() instead of getDownloadedSize(),
  16584. getUploadedSize().
  16585. * src/PendingMessage.cc (processMessage): Do not send request message
  16586. if the peer is choking the client.
  16587. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16588. less than interval.
  16589. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16590. * configure.in: Added gnutls support. Added several CPP macros.
  16591. * m4/openssl.m4: Added.
  16592. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16593. readData(), peekData(). Added gnutls support.
  16594. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16595. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16596. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16597. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16598. Instead, added a check for whether setup method has executed
  16599. successfully.
  16600. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16601. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16602. * src/Makefile.am: Updated.
  16603. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16604. using whether OpenSSL or gcrypt, depending on the result of configure
  16605. script.
  16606. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16607. messageDigest.h.
  16608. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16609. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16610. Fixed memory leak.
  16611. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16612. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16613. Removed instantiation of TrackerInitCommand. Instead,
  16614. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16615. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16616. ENABLE_SSL.
  16617. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16618. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16619. If a piece is already acquired by another command, delete the request
  16620. slots for the piece.
  16621. * src/TrackerUpdateCommand.cc (execute):
  16622. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16623. Added a check whether peer list is null.
  16624. Fixed the bug that causes sending completed event to the tracker
  16625. several times.
  16626. * src/TrackerInitCommand.cc (execute):
  16627. Fixed the bug that causes sending completed event to the tracker
  16628. several times.
  16629. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16630. by using messageDigest.h.
  16631. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16632. * PeerConnection.cc: Replaced log message "keep-alive" with
  16633. "keep alive".
  16634. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16635. localhost long time.
  16636. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16637. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16638. at most 100 failure entry from the list. If with duplicate = false,
  16639. MAX_PEER_LIST is not checked.
  16640. * PeerListenCommand.cc: Fixed the argument order of log message.
  16641. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16642. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16643. Added warn().
  16644. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16645. Implemented warn().
  16646. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16647. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16648. * Request.h: Added AFTER_COMPLETED event.
  16649. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16650. instead of downloaded size and progress(%) after download completes.
  16651. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16652. message to the peer if it is interested in what localhost has
  16653. downloaded.
  16654. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16655. destination instead of just renaming it.
  16656. * TorrentMan.cc: Added deleteTempFile().
  16657. * PeerAbstractCommand.cc: do not stop execution after download
  16658. completes. This makes localhost a seeder.
  16659. * Util.{h,cc}: Added fileCopy().
  16660. * PeerListenCommand.cc: do not stop execution after download completes.
  16661. This makes localhost a seeder.
  16662. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16663. Added TorrentMan::deleteTempFile() to torrentHandler.
  16664. Initialized the variable dir as ".".
  16665. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16666. Deleted renameSingleFile().
  16667. Added copySingleFile(), deleteTempFile().
  16668. * DownloadEngine.h: Added virtual function afterEachIteration().
  16669. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16670. in onEndOfRun() to afterEachIteration().
  16671. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16672. true.
  16673. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16674. In rangedFileCopy(), added try-catch block to properly close file
  16675. descriptors.
  16676. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16677. Added afterEachIteration(), isFilenameFixed().
  16678. * Peer.cc: Changed choking strategy.
  16679. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16680. * TrackerInitCommand.cc: Send completed event only once.
  16681. * DownloadEngine.cc: Added a call to afterEachIteration().
  16682. * TrackerUpdateCommand.cc: Do not stop execution after download
  16683. completes.
  16684. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16685. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16686. received from a tracker.
  16687. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16688. Decreased the number of failure peers to delete to 0(just comment out
  16689. the line).
  16690. * Release 0.3.1
  16691. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16692. * PeerInteractionCommand.cc: added a call to
  16693. TorrentMan::unadvertisePiece in Destructor.
  16694. * PeerInteractionCommand.cc: make have message sent immediately
  16695. if the size of pending message queue is zero.
  16696. * TorrentMan.cc: set the maximum size of peer list to 250.
  16697. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16698. to deque.
  16699. * Util.cc: fixed rangedFileCopy.
  16700. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16701. to Constructor. Also, moved digest cleanup to Destructor.
  16702. * MetaFileUtil.cc: fixed memory leak
  16703. * replaced std::vector with std::deque.
  16704. * AbstractCommand.cc: casted timeout value to long long int.
  16705. * ChunkedEncoding.cc: fixed memory leak.
  16706. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16707. * SleepCommand.cc: casted timeout value to long long int.
  16708. * Data.cc: fixed memory leak.
  16709. * Data.cc: fixed toLLInt().
  16710. * BitfieldMan.cc: fixed memory leak.
  16711. * TorrentMan.cc: initialized storeDir to ".".
  16712. * TorrentMan.cc: fixed memory leak.
  16713. * TorrentMan.cc: corrected file paths of splitted files.
  16714. * PeerAbstractCommand.cc: casted timeout to long long int.
  16715. * main.cc: added delete(req) and delete(te->diskWriter).
  16716. * RequestSlot.cc: casted timeout value to long long int.
  16717. * Request.cc: fixed memory leak.
  16718. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16719. have the piece.
  16720. * Peer.{h,cc}: added hasPiece(int index).
  16721. * main.cc: corrected addCommand.
  16722. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16723. * BitTorrent protocol support added.
  16724. * Release 0.3.0
  16725. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16726. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16727. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16728. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16729. decoding did not work properly.
  16730. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16731. * DownloadEngine.h: included sys/time.h
  16732. * DownloadEngine.cc: remove sys/time.h
  16733. * Makefile.am (SUBDIRS): Add intl.
  16734. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16735. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16736. * main.cc: correct help message for --http-auth-scheme.
  16737. * main.cc: changed e-mail address for bug reports.
  16738. * ja.po: added japanese translation.
  16739. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16740. * SimpleLogger.cc: flush log file instead of stdout.
  16741. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16742. * main.cc: Fixed command-line option: max-tries
  16743. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16744. does not equal to seg.sp.
  16745. * DownloadCommand.cc: If EOF is got from the server and the total size
  16746. of file is not zero, then throw DlRetryEx.
  16747. * main.cc: Set the minium value of min-segment-size to 1024.
  16748. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16749. fails because of a regression since 0.2.0 release.
  16750. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16751. * HttpConnection.cc:
  16752. * common.h: defined the user agent name as macro
  16753. * DownloadEngine.{h, cc}:
  16754. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16755. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16756. * main.cc: Download complete/abort message is now generated by main.
  16757. * Makefile.am (SUBDIRS): Add m4.
  16758. (ACLOCAL_AMFLAGS): New variable.
  16759. (EXTRA_DIST): New variable.
  16760. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16761. * gettext: added gettext functionality
  16762. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16763. * AbstractCommand.cc:
  16764. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16765. unregister its cuid from SegmentMan.
  16766. * DownloadEngine.cc: .aria2 file was written when a downloading
  16767. failed with errors.
  16768. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16769. Added "User-Agent" header to CONNECT proxy request.
  16770. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16771. properly.
  16772. * Logger.h:
  16773. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16774. * ChunkedEncoding.cc: Added #include directive for strings.h
  16775. * Release 0.2.1
  16776. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16777. * Util.{h,cc}: added startsWith().
  16778. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16779. Util::endsWith().
  16780. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16781. * common.h: added #include directive of limit.h.
  16782. * DownloadEngine.cc: added #include directive of sys/time.h and
  16783. algorithm.
  16784. * Exception.h: added #include directive of stdio.h.
  16785. * AbstractCommand.h: added #include directive of sys/time.h.
  16786. * DownloadCommand.h: added #include directive of sys/time.h.
  16787. * *.h: added #include directive of common.h to all base classes.
  16788. subclasses' one was removed.
  16789. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16790. does not define these macros.
  16791. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16792. * Release 0.2.0
  16793. * main.cc:
  16794. * HttpInitiateConnectionCommand.{h,cc}:
  16795. * prefs.h:
  16796. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16797. We can now use GET command in http proxy.
  16798. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16799. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16800. that splits slowest segment of SegmentMan::commands vector.
  16801. This is the default split algorithm of aria2.
  16802. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16803. that splits first segment of SegmentMan::commands vector.
  16804. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16805. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16806. * Segment.h:
  16807. * SegmentMan.cc: Added speed field to Segment.h
  16808. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16809. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16810. * message.h: Change file size related %d to %lld.
  16811. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16812. * FtpInitiateConnectionCommand.{h,cc}:
  16813. * FtpNegotiationCommand.{h,cc}:
  16814. * FtpDownloadCommand.{h,cc}:
  16815. * FtpConnection.{h,cc}: Added FTP support
  16816. * SimpleLogger.cc: Log message now includes time information.
  16817. * main.cc: The value of --http-auth-scheme option is chagned from
  16818. 'BASIC' to 'basic'
  16819. * main.cc: Added --timeout command-line option.
  16820. * main.cc: Added --min-segment-size command-line option.
  16821. * main.cc: Added --max-retries command-line option.
  16822. * prefs.h: option string constants are now defined in prefs.h
  16823. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16824. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16825. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16826. with version 0.1.0's one.
  16827. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16828. * configure.in: Added --enable-ssl option to configure script.
  16829. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16830. cannot permit absoluteURI as Request-URI.
  16831. * HttpConnection.cc: Added Referer support.
  16832. * main.cc: Added referer command-line option.
  16833. * main.cc: Added rety-wait command-line option.
  16834. * Exception.h: Fixed formating bug in Exception::setMsg()
  16835. * SocketCore.{h,cc}:
  16836. * Socket.{h, cc}:
  16837. * Request.cc:
  16838. * InitiateConnectionCommandFactory.cc:
  16839. * HttpRequestCommand.cc: Added HTTPS support.
  16840. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16841. for SocketCore.
  16842. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16843. size is wrong
  16844. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16845. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16846. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16847. * Release 0.1.0