ChangeLog 656 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073
  1. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated po templates.
  3. * po/aria2.pot
  4. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Bump up version number to 1.7.0
  6. * configure.ac
  7. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Fixed compile error if ENABLE_BITTORRENT is undefined.
  9. * src/DefaultPieceStorage.cc
  10. * src/DefaultPieceStorage.h
  11. * src/PieceStorage.h
  12. * src/UnknownLengthPieceStorage.cc
  13. * src/UnknownLengthPieceStorage.h
  14. * test/MockPieceStorage.h
  15. * test/ProtocolDetectorTest.cc
  16. * test/XmlRpcMethodTest.cc
  17. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Documented in man page that if getifaddrs() is missing,
  19. --interface option doesn't accept interface name.
  20. * doc/aria2c.1.txt
  21. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  23. * src/DefaultBtAnnounce.cc
  24. * src/DefaultBtAnnounce.h
  25. * test/DefaultBtAnnounceTest.cc
  26. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Fixed the bug that connection is always dropped if handshake
  28. message in extension protocol don't have metadata_size.
  29. src/HandshakeExtensionMessage.cc
  30. * src/HandshakeExtensionMessage.cc
  31. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  33. text saying DHT is recommended when Magnet URI is provided.
  34. * doc/aria2c.1.txt
  35. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  37. URI is supplied. Notify user that they should consider enabling
  38. DHT if they use Magnet URI.
  39. * src/RequestGroup.cc
  40. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Added --disable-ipv6 option to disable IPv6.
  42. * doc/aria2c.1.txt
  43. * src/InitiateConnectionCommand.cc
  44. * src/NameResolver.cc
  45. * src/NameResolver.h
  46. * src/OptionHandlerFactory.cc
  47. * src/main.cc
  48. * src/prefs.cc
  49. * src/prefs.h
  50. * src/usage_text.h
  51. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Updated usage text for --bt-prioritize-piece option.
  53. * doc/aria2c.1.txt
  54. * src/usage_text.h
  55. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. In configure script, if --with-PACKAGE and --enable-FEATURE are
  57. given and PACKAGE is missing in the system or FEATURE cannot be
  58. enabled, print error message and stop the script.
  59. * configure.ac
  60. * m4/aria2_arg.m4
  61. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Halt metadata download immediately when metadata download is done.
  63. Don't wait unresponsive tracker.
  64. * src/ByteArrayDiskWriter.h
  65. * src/DefaultBtInteractive.cc
  66. * src/DefaultExtensionMessageFactory.cc
  67. * src/DefaultExtensionMessageFactory.h
  68. * src/PeerInteractionCommand.cc
  69. * src/UTMetadataDataExtensionMessage.cc
  70. * src/UTMetadataDataExtensionMessage.h
  71. * src/UTMetadataRequestExtensionMessage.cc
  72. * test/UTMetadataDataExtensionMessageTest.cc
  73. * test/UTMetadataRequestExtensionMessageTest.cc
  74. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Documented --interface option in man page.
  76. * doc/aria2c.1.txt
  77. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Try resolved address in the order received from the resolver.
  79. * src/DNSCache.h
  80. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Added debug logs.
  82. * src/SocketCore.cc
  83. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Fixed type of tail to uint64_t
  85. * src/util.cc
  86. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Added --interface option. This feature binds sockets to given
  88. interface. You can specify interface name, IP address and
  89. hostname.
  90. * configure.ac
  91. * src/OptionHandlerFactory.cc
  92. * src/SocketCore.cc
  93. * src/SocketCore.h
  94. * src/main.cc
  95. * src/message.h
  96. * src/prefs.cc
  97. * src/prefs.h
  98. * src/usage_text.h
  99. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Updated man page for bt-prioritize-piece option in -i list.
  101. * doc/aria2c.1.txt
  102. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Added bt-prioritize-piece option to -i list.
  104. * src/download_helper.cc
  105. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Removed --http-auth-scheme option from man page.
  107. * doc/aria2c.1.txt
  108. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Removed --http-auth-scheme option since it doesn't do nothing.
  110. * src/OptionHandlerFactory.cc
  111. * src/prefs.cc
  112. * src/prefs.h
  113. * src/usage_text.h
  114. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Adjusted the number of peer info which get_peers reply message can
  116. carry.
  117. * src/DHTGetPeersReplyMessage.cc
  118. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Added extension_message_test_helper.h to aria2c_SOURCES.
  120. * test/Makefile.am
  121. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Documented --bt-prioritize-piece option in man page.
  123. * doc/aria2c.1.txt
  124. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Added option --bt-prioritize-piece. This option instruct aria2 to
  126. try to download first and last pieces of each file first. The
  127. argument can contain 2 keywords:head and tail. To include both
  128. keywords, they must be separated by comma. These keywords can take
  129. one parameter, SIZE. For example , if head=SIZE is specified,
  130. pieces in the range of first SIZE bytes of each file get higher
  131. priority. tail=SIZE means the range of last SIZE bytes of each
  132. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  133. * src/DefaultPieceStorage.h
  134. * src/Makefile.am
  135. * src/OptionHandlerFactory.cc
  136. * src/OptionHandlerImpl.h
  137. * src/PriorityPieceSelector.cc
  138. * src/PriorityPieceSelector.h
  139. * src/RequestGroup.cc
  140. * src/prefs.cc
  141. * src/prefs.h
  142. * src/usage_text.h
  143. * src/util.cc
  144. * src/util.h
  145. * test/Makefile.am
  146. * test/MockPieceSelector.h
  147. * test/PriorityPieceSelectorTest.cc
  148. * test/UtilTest.cc
  149. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Fixed typo
  151. * src/HttpRequest.h
  152. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. In Magnet URI with tr parameter, put each announce URI in separate
  154. tier.
  155. * src/bittorrent_helper.cc
  156. * test/BittorrentHelperTest.cc
  157. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Renamed ExtensionMessage::getBencodedData() as
  159. ExtensionMessage::getPayload()
  160. * src/BtExtendedMessage.cc
  161. * src/ExtensionMessage.h
  162. * src/HandshakeExtensionMessage.cc
  163. * src/HandshakeExtensionMessage.h
  164. * src/UTMetadataDataExtensionMessage.cc
  165. * src/UTMetadataDataExtensionMessage.h
  166. * src/UTMetadataRejectExtensionMessage.cc
  167. * src/UTMetadataRejectExtensionMessage.h
  168. * src/UTMetadataRequestExtensionMessage.cc
  169. * src/UTMetadataRequestExtensionMessage.h
  170. * src/UTPexExtensionMessage.cc
  171. * src/UTPexExtensionMessage.h
  172. * test/HandshakeExtensionMessageTest.cc
  173. * test/MockExtensionMessage.h
  174. * test/UTMetadataDataExtensionMessageTest.cc
  175. * test/UTMetadataRejectExtensionMessageTest.cc
  176. * test/UTMetadataRequestExtensionMessageTest.cc
  177. * test/UTPexExtensionMessageTest.cc
  178. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Updated man page for BitTorrent Magnet URI.
  180. * doc/aria2c.1.txt
  181. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Call DownloadContext::setOwnerRequestGroup() in
  183. RequestGroup::setDownloadContext().
  184. * src/BtDependency.cc
  185. * src/RequestGroup.cc
  186. * src/RequestGroup.h
  187. * src/download_helper.cc
  188. * test/DefaultBtMessageDispatcherTest.cc
  189. * test/DefaultExtensionMessageFactoryTest.cc
  190. * test/HandshakeExtensionMessageTest.cc
  191. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  193. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  194. from metadata, use new metadata2Torrent() function.
  195. * src/BtDependency.cc
  196. * src/UTMetadataPostDownloadHandler.cc
  197. * src/bittorrent_helper.cc
  198. * src/bittorrent_helper.h
  199. * test/BittorrentHelperTest.cc
  200. * test/BtDependencyTest.cc
  201. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Use createRequestGroupForUri to create the download for torrent
  203. file.
  204. * src/Metalink2RequestGroup.cc
  205. * test/Metalink2RequestGroupTest.cc
  206. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Fixed typo
  208. * src/DownloadContext.h
  209. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Use createRequestGroupForBitTorrent()
  211. * src/BtPostDownloadHandler.cc
  212. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Added remove().
  214. * src/Option.cc
  215. * src/Option.h
  216. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Removed options which is only valid for URIs specified in
  218. command-line. If they are left, because op is used as a template
  219. for new RequestGroup(such as created in XML-RPC command,
  220. BtPostDownloadHandler etc), they causes unintentional effect.
  221. * src/main.cc
  222. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Refer to option value of PREF_OUT only in download_helper.
  224. * src/FtpNegotiationCommand.cc
  225. * src/HttpResponseCommand.cc
  226. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  228. * src/download_helper.cc
  229. * src/download_helper.h
  230. * src/XmlRpcMethodImpl.cc
  231. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Updated man page for changeOption XML-RPC method.
  233. * doc/aria2c.1.txt
  234. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Added --bt-max-peers option to changeOption XML-RPC method.
  236. * src/XmlRpcMethod.cc
  237. * src/XmlRpcMethodImpl.cc
  238. * test/XmlRpcMethodTest.cc
  239. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  241. * test/XmlRpcMethodTest.cc
  242. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Removed redundant DownloadContext::hasAttribute(...) calls.
  244. * src/ConsoleStatCalc.cc
  245. * src/RequestGroup.cc
  246. * src/XmlRpcMethodImpl.cc
  247. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Changed the number of tracker request attempt from 5 to 2.
  249. * src/TrackerWatcherCommand.cc
  250. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Use host and protocol in original URI, because URI selector
  252. selects URI based on original URI, not redirected one.
  253. * src/Request.cc
  254. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Fixed the bug which causes segmentation fault with tellWaiting
  256. XML-RPC method when BitTorrent download is waiting. The key of
  257. BtRegistry is changed from info hash to GID, because it is
  258. registered per RequestGroup, not info hash.
  259. * src/BtRegistry.cc
  260. * src/BtRegistry.h
  261. * src/BtSetup.cc
  262. * src/ConsoleStatCalc.cc
  263. * src/InitiatorMSEHandshakeCommand.cc
  264. * src/PeerInitiateConnectionCommand.cc
  265. * src/PeerInteractionCommand.cc
  266. * src/PeerInteractionCommand.h
  267. * src/PeerReceiveHandshakeCommand.cc
  268. * src/RequestGroup.cc
  269. * src/XmlRpcMethodImpl.cc
  270. * test/BtRegistryTest.cc
  271. * test/XmlRpcMethodTest.cc
  272. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Updated man page for changeOption XML-RPC method.
  274. * doc/aria2c.1.txt
  275. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  277. method.
  278. * src/XmlRpcMethod.cc
  279. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Documented about BitTorrent Magnet URI in man page.
  281. * doc/aria2c.1.txt
  282. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Fixed the bug that trackers in BitTorrent Magnet URI are not
  284. inherited to generated RequestGroup.
  285. * src/UTMetadataPostDownloadHandler.cc
  286. * test/UTMetadataPostDownloadHandlerTest.cc
  287. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Prepended "[METADATA]" before dn.
  289. * src/bittorrent_helper.cc
  290. * test/BittorrentHelperTest.cc
  291. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Rewritten Magnet URI parser.
  293. * src/Makefile.am
  294. * src/ProtocolDetector.cc
  295. * src/bittorrent_helper.cc
  296. * src/bittorrent_helper.h
  297. * src/download_helper.cc
  298. * src/magnet.cc
  299. * src/magnet.h
  300. * test/BittorrentHelperTest.cc
  301. * test/MagnetTest.cc
  302. * test/Makefile.am
  303. * test/ProtocolDetectorTest.cc
  304. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Use hton64
  306. * src/base32.cc
  307. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Added Base32 encoded BitTorrent Magnet Link support.
  309. * src/Makefile.am
  310. * src/base32.cc
  311. * src/base32.h
  312. * src/bittorrent_helper.cc
  313. * test/Base32Test.cc
  314. * test/BittorrentHelperTest.cc
  315. * test/Makefile.am
  316. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Added BitTorrent Magnet Link support. Base32 encoded link is not
  318. supported yet. Fixed typo in method name in RequestGroup. In
  319. metadataGetMode, don't show "Your share ratio was ..." message.
  320. * src/DefaultBtInteractive.cc
  321. * src/DefaultBtInteractive.h
  322. * src/DownloadHandlerFactory.cc
  323. * src/DownloadHandlerFactory.h
  324. * src/HandshakeExtensionMessage.cc
  325. * src/Makefile.am
  326. * src/Metalink2RequestGroup.cc
  327. * src/PeerInteractionCommand.cc
  328. * src/RequestGroup.cc
  329. * src/RequestGroup.h
  330. * src/UTMetadataPostDownloadHandler.cc
  331. * src/UTMetadataPostDownloadHandler.h
  332. * src/download_helper.cc
  333. * test/HandshakeExtensionMessageTest.cc
  334. * test/Makefile.am
  335. * test/UTMetadataPostDownloadHandlerTest.cc
  336. * test/UTMetadataRejectExtensionMessageTest.cc
  337. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. In metadataGetMode, don't show SEEDING.
  339. * src/ConsoleStatCalc.cc
  340. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Fixed ut_metadata data handling. Implemented
  342. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  343. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  344. metadata_size is received.
  345. * src/DefaultExtensionMessageFactory.cc
  346. * src/DefaultExtensionMessageFactory.h
  347. * src/HandshakeExtensionMessage.cc
  348. * src/HandshakeExtensionMessage.h
  349. * src/UTMetadataDataExtensionMessage.cc
  350. * src/UTMetadataDataExtensionMessage.h
  351. * src/UTMetadataRequestExtensionMessage.cc
  352. * src/UTMetadataRequestFactory.cc
  353. * src/UTMetadataRequestFactory.h
  354. * src/UTMetadataRequestTracker.cc
  355. * src/UTMetadataRequestTracker.h
  356. * test/DefaultExtensionMessageFactoryTest.cc
  357. * test/HandshakeExtensionMessageTest.cc
  358. * test/MockBtMessage.h
  359. * test/UTMetadataDataExtensionMessageTest.cc
  360. * test/UTMetadataRequestExtensionMessageTest.cc
  361. * test/UTMetadataRequestFactoryTest.cc
  362. * test/UTMetadataRequestTrackerTest.cc
  363. * test/extension_message_test_helper.h
  364. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Drop connection if ut_metadata reject message is received.
  366. * src/UTMetadataRejectExtensionMessage.cc
  367. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  369. get high enough in that mode.
  370. * src/ActivePeerConnectionCommand.cc
  371. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Added BitTorrent magnet link support to ProtocolDetector.
  373. * src/ProtocolDetector.cc
  374. * src/ProtocolDetector.h
  375. * test/ProtocolDetectorTest.cc
  376. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Don't inject validator into BtMessage in metadataGetMode because
  378. most of the checks depends on the total length of download but it
  379. is unknown. Delegate metadataGetMode to BtMessage.
  380. * src/DefaultBtMessageFactory.cc
  381. * src/DefaultBtMessageFactory.h
  382. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  384. * src/DefaultPieceStorage.h
  385. * src/PieceStorage.h
  386. * src/UnknownLengthPieceStorage.h
  387. * test/MockPieceStorage.h
  388. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Added markTotalLengthIsKnown().
  390. * src/DownloadContext.h
  391. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  393. missing. If metadata is missing, always use DHT when it is ready.
  394. * src/BtSetup.cc
  395. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Added parseMagnetLink(). Hex encoded info hash is supported.
  397. Base32 encoded info hash is not supported yet.
  398. * src/bittorrent_helper.cc
  399. * src/bittorrent_helper.h
  400. * test/BittorrentHelperTest.cc
  401. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Added FromHex()
  403. * src/util.cc
  404. * src/util.h
  405. * test/UtilTest.cc
  406. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Added _metadataGetMode member variable. It toggles the action when
  408. messages are received: usually they almost do nothing if
  409. _metadataGetMode is true.
  410. * src/AbstractBtMessage.cc
  411. * src/AbstractBtMessage.h
  412. * src/BtAllowedFastMessage.cc
  413. * src/BtBitfieldMessage.cc
  414. * src/BtCancelMessage.cc
  415. * src/BtChokeMessage.cc
  416. * src/BtHaveAllMessage.cc
  417. * src/BtHaveMessage.cc
  418. * src/BtInterestedMessage.cc
  419. * src/BtNotInterestedMessage.cc
  420. * src/BtPieceMessage.cc
  421. * src/BtRejectMessage.cc
  422. * src/BtRequestMessage.cc
  423. * src/BtUnchokeMessage.cc
  424. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Added bencode::decode overload functions. They have extra argument
  426. 'end', passed by reference. 'end' points to the beyond the last
  427. position of data used in decoding process.
  428. * src/bencode.cc
  429. * src/bencode.h
  430. * test/BencodeTest.cc
  431. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Initial support of Extension for Peers to Send Metadata
  433. Files(BEP9). Currently aria2 only serves metadata and cannot get
  434. metadata from swarm.
  435. * src/BtConstants.h
  436. * src/DefaultBtInteractive.cc
  437. * src/DefaultExtensionMessageFactory.cc
  438. * src/DefaultExtensionMessageFactory.h
  439. * src/ExtensionMessage.h
  440. * src/ExtensionMessageRegistry.h
  441. * src/HandshakeExtensionMessage.cc
  442. * src/HandshakeExtensionMessage.h
  443. * src/Makefile.am
  444. * src/PeerConnection.h
  445. * src/PeerInteractionCommand.cc
  446. * src/UTMetadataDataExtensionMessage.cc
  447. * src/UTMetadataDataExtensionMessage.h
  448. * src/UTMetadataExtensionMessage.cc
  449. * src/UTMetadataExtensionMessage.h
  450. * src/UTMetadataRejectExtensionMessage.cc
  451. * src/UTMetadataRejectExtensionMessage.h
  452. * src/UTMetadataRequestExtensionMessage.cc
  453. * src/UTMetadataRequestExtensionMessage.h
  454. * src/bittorrent_helper.cc
  455. * src/bittorrent_helper.h
  456. * test/BittorrentHelperTest.cc
  457. * test/DefaultExtensionMessageFactoryTest.cc
  458. * test/HandshakeExtensionMessageTest.cc
  459. * test/Makefile.am
  460. * test/UTMetadataDataExtensionMessageTest.cc
  461. * test/UTMetadataRejectExtensionMessageTest.cc
  462. * test/UTMetadataRequestExtensionMessageTest.cc
  463. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Cancel segment in prepareForRetry() because there is a chance that
  465. the command has segments.
  466. * src/CreateRequestCommand.cc
  467. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Fixed the bug that slow server is not knocked down in favor of
  469. faster one.
  470. * src/AbstractCommand.cc
  471. * src/DefaultPieceStorage.cc
  472. * src/DefaultPieceStorage.h
  473. * src/PieceStorage.h
  474. * src/UnknownLengthPieceStorage.cc
  475. * src/UnknownLengthPieceStorage.h
  476. * test/MockPieceStorage.h
  477. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Fixed the bug that Request object is not added to
  479. _inFlightRequests in findFasterRequest().
  480. * src/FileEntry.cc
  481. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Changed the strategry of how to increase the number of outstanding
  483. requests. Now the number is doubled if there are no outstanding
  484. requests after receiving messages.
  485. * src/BtConstants.h
  486. * src/DefaultBtInteractive.cc
  487. * src/DefaultBtInteractive.h
  488. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Check socket for reading if there are outstanding requests.
  490. * src/PeerInteractionCommand.cc
  491. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Moved frequently called methods to header file so they get
  493. inlined.
  494. * src/RequestSlot.cc
  495. * src/RequestSlot.h
  496. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Copied in_addr instead of just casting from char* which might
  498. violate strict aliasing rules.
  499. * src/AsyncNameResolver.cc
  500. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Use dynamic_pointer_cast
  502. * test/BtPieceMessageTest.cc
  503. * test/BtRequestMessageTest.cc
  504. * test/DefaultBtRequestFactoryTest.cc
  505. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Added testSetUrl20()
  507. * test/RequestTest.cc
  508. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Code cleanup
  510. * src/bittorrent_helper.cc
  511. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Use C++ style cast
  513. * src/AsyncNameResolver.cc
  514. * src/Base64.h
  515. * src/BtBitfieldMessage.cc
  516. * src/BtHandshakeMessage.cc
  517. * src/DefaultBtMessageFactory.cc
  518. * src/DefaultBtProgressInfoFile.cc
  519. * src/EpollEventPoll.cc
  520. * src/ExpatMetalinkProcessor.cc
  521. * src/IteratableChecksumValidator.cc
  522. * src/IteratableChunkChecksumValidator.cc
  523. * src/MessageDigestHelper.cc
  524. * src/Platform.cc
  525. * src/RequestGroupMan.cc
  526. * src/SingleFileAllocationIterator.cc
  527. * src/Sqlite3MozCookieParser.cc
  528. * src/XML2SAXMetalinkProcessor.cc
  529. * src/Xml2XmlRpcRequestProcessor.cc
  530. * src/util.cc
  531. * src/util.h
  532. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Fixed integer potential alignment problem.
  534. * src/bitfield.h
  535. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Applied a patch from tizianomueller to fix sigbus errors on Linux
  537. sparc. I modified the patch to eliminate a cast to uint32_t* and
  538. include file ordering.
  539. * src/PeerListProcessor.h
  540. * src/bittorrent_helper.cc
  541. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  543. * src/Request.cc
  544. * src/util.cc
  545. * src/util.h
  546. * test/RequestTest.cc
  547. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Rewritten util::uitos()
  549. * src/util.h
  550. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Code cleanup
  552. * src/Request.cc
  553. * src/Request.h
  554. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Rewritten Request::parseUrl()
  556. * src/Request.cc
  557. * test/RequestTest.cc
  558. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Removed unused macro SAFE_CHARS
  560. * src/Request.cc
  561. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Updated doc
  563. * src/DHTRoutingTableDeserializer.cc
  564. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Release 1.6.3
  566. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Removed unused function.
  568. * test/DHTPeerAnnounceStorageTest.cc
  569. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Only decrement cols if cols > 0
  571. * src/ConsoleStatCalc.cc
  572. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Updated Polish, Catalan, French, Italian, Russian and Japanese
  574. translations. Thanks to all translators.
  575. * po/ca.po
  576. * po/fr.po
  577. * po/it.po
  578. * po/ja.po
  579. * po/pl.po
  580. * po/ru.po
  581. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Updated translation template
  583. * po
  584. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Fixed compile error without ssl library.
  586. * src/util.cc
  587. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Logged received nodes in get_peers reply message.
  589. * src/DHTAbstractNodeLookupTask.cc
  590. * src/DHTAbstractNodeLookupTask.h
  591. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  593. error occurred in DHTMessageDispatcherImpl::sendMessage().
  594. * src/DHTMessageDispatcherImpl.cc
  595. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Don't reuse URI if Request pool is not empty.
  597. * src/CreateRequestCommand.cc
  598. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  600. receive get_peers request for torrent which the client is now
  601. downloading.
  602. * src/BtSetup.cc
  603. * src/DHTPeerAnnounceEntry.cc
  604. * src/DHTPeerAnnounceEntry.h
  605. * src/DHTPeerAnnounceStorage.cc
  606. * src/DHTPeerAnnounceStorage.h
  607. * src/RequestGroup.cc
  608. * test/DHTPeerAnnounceEntryTest.cc
  609. * test/DHTPeerAnnounceStorageTest.cc
  610. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Fixed the bug that in Windows environment new blank line is
  612. inserted when console readout is updated.
  613. * src/ConsoleStatCalc.cc
  614. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Throw exception if binding listening port is failed. Removed
  616. RequestGroupMan::getInitialCommand(). Use
  617. fillRequestGroupFromReserver() instead. Delete commands for
  618. RequestGroup which has errors when it is being added.
  619. * src/BtSetup.cc
  620. * src/DownloadEngine.cc
  621. * src/DownloadEngine.h
  622. * src/DownloadEngineFactory.cc
  623. * src/MultiUrlRequestInfo.cc
  624. * src/RequestGroupMan.cc
  625. * src/RequestGroupMan.h
  626. * test/RequestGroupManTest.cc
  627. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Fixed the bug that when downloading more than one torrent,
  629. listening port is not reported properly to tracker for 2nd or
  630. later torrents.
  631. * src/BtSetup.cc
  632. * src/PeerListenCommand.cc
  633. * src/PeerListenCommand.h
  634. * src/RequestGroup.cc
  635. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Bump up version number to 1.6.3
  637. * configure.ac
  638. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Removed Util.cc from POTFILES.in
  640. * po/POTFILES.in
  641. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Updated man page for previous change.
  643. * doc/aria2c.1.txt
  644. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. If user name is embedded but password is missing in URI, first
  646. resolve password using .netrc. If password is found in .netrc,
  647. then use it as password. If not, use the password specified in
  648. --ftp-passwd.
  649. * src/AuthConfigFactory.cc
  650. * src/Request.cc
  651. * src/Request.h
  652. * test/AuthConfigFactoryTest.cc
  653. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Fixed typo
  655. * doc/aria2c.1.txt
  656. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Fixed typo
  658. * src/usage_text.h
  659. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Added missing bitfield.cc
  661. * src/bitfield.cc
  662. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Renamed Util.{cc,h} as util.{cc,h}
  664. * src/Util.cc
  665. * src/Util.h
  666. * src/util.cc
  667. * src/util.h
  668. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Moved static functions in Util class to namespace util.
  670. * src
  671. * test
  672. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  674. Moved generateRandomKey to bittorrent_helper.cc.
  675. * src/DHTBucket.cc
  676. * src/DHTGetPeersMessage.cc
  677. * src/DHTGetPeersReplyMessage.cc
  678. * src/DHTMessage.cc
  679. * src/DHTNode.cc
  680. * src/DHTTokenTracker.cc
  681. * src/DHTUtil.cc: Removed.
  682. * src/DHTUtil.h: Removed.
  683. * src/Makefile.am
  684. * src/Util.cc
  685. * src/Util.h
  686. * src/bitfield.h
  687. * src/bittorrent_helper.cc
  688. * src/bittorrent_helper.h
  689. * test/ARC4Test.cc
  690. * test/BNodeTest.cc
  691. * test/DHTAnnouncePeerMessageTest.cc
  692. * test/DHTAnnouncePeerReplyMessageTest.cc
  693. * test/DHTFindNodeMessageTest.cc
  694. * test/DHTFindNodeReplyMessageTest.cc
  695. * test/DHTGetPeersMessageTest.cc
  696. * test/DHTGetPeersReplyMessageTest.cc
  697. * test/DHTPingMessageTest.cc
  698. * test/DHTPingReplyMessageTest.cc
  699. * test/DHTTokenTrackerTest.cc
  700. * test/DHTUtilTest.cc: Removed.
  701. * test/Makefile.am
  702. * test/UtilTest.cc
  703. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Removed the call to trim() because trim() is called for each
  705. element in split().
  706. * src/CookieParser.cc
  707. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Replaced Util::slice() with split()
  709. * src/AbstractCommand.cc
  710. * src/CookieParser.cc
  711. * src/File.cc
  712. * src/HttpHeaderProcessor.cc
  713. * src/HttpRequest.cc
  714. * src/Metalink2RequestGroup.cc
  715. * src/MetalinkParserController.cc
  716. * src/Netrc.cc
  717. * src/NsCookieParser.cc
  718. * src/ParameterizedStringParser.cc
  719. * src/ServerStatMan.cc
  720. * src/UriListParser.cc
  721. * src/Util.cc
  722. * src/Util.h
  723. * src/bittorrent_helper.cc
  724. * test/UtilTest.cc
  725. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Use request->getDir() instead of "/" for embedded user/pass in
  727. URI.
  728. * src/AuthConfigFactory.cc
  729. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Fixed wrong insertion point for BasicCred.
  731. * src/AuthConfigFactory.cc
  732. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Allowed non-regular file in LocalFilePathOptionHandler
  734. * src/OptionHandlerImpl.h
  735. * src/message.h
  736. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Fixed the bug that Netrc::parse() cannot recognize comment line.
  738. * src/Netrc.cc
  739. * src/Util.h
  740. * test/NetrcTest.cc
  741. * test/sample.netrc
  742. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Fixed typo
  744. * src/BtDependency.cc
  745. * src/BtRejectMessage.cc
  746. * src/FtpConnection.cc
  747. * src/HttpHeaderProcessor.h
  748. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Fixed lintian report in man page
  750. * doc/aria2c.1.txt
  751. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Release 1.6.2
  753. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Updated Ukrainian translation. Thanks to all translators.
  755. * po/uk.po
  756. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Updated translation template
  758. * po
  759. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Bump up version number to 1.6.2
  761. * configure.ac
  762. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Updated licence message in -v output.
  764. * src/version_usage.cc
  765. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Replaced aria2 with aria2c in help message.
  767. * src/version_usage.cc
  768. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  770. * src/version_usage.cc
  771. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Quoted localedir
  773. * src/Makefile.am
  774. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  776. utime. Check header for utime.h.
  777. * configure.ac
  778. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  780. * configure.ac
  781. * src/daemon.cc
  782. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Don't set localedir manually. Leave it to autoconf.
  784. * configure.ac
  785. * src/Makefile.am
  786. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added --install to ACLOCAL_AMFLAGS.
  788. Removed m4 from SUBDIRS.
  789. Updated automake 1.11 and autoconf 2.64.
  790. Replaced some obsolute macros with new one.
  791. * Makefile.am
  792. * configure.ac
  793. * m4/aria2_arg.m4
  794. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Removed Makefile.am in m4 directory.
  796. * configure.ac
  797. * m4/ChangeLog
  798. * m4/Makefile.am
  799. * m4/Makefile.in
  800. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Removed unused m4 macros.
  802. * m4/intldir.m4
  803. * m4/inttypes.m4
  804. * m4/isc-posix.m4
  805. * m4/libgnutls-extra.m4
  806. * m4/ulonglong.m4
  807. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Fixed the bug that causes segmentation fault if
  809. req->getCurrentUrl() contains printf formatting characters such as
  810. %d. The statement that causes this bug is useless and removed.
  811. * src/AbstractCommand.cc
  812. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. * Release 1.6.1
  814. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Updated Simplified Chinese translation. Thanks to translators.
  816. * po/zh_CN.po
  817. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Updated translation template
  819. * po
  820. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Bump up version number to 1.6.1
  822. * configure.ac
  823. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Changed interval from 120 to 60 for dropping inactive peer.
  825. * src/DefaultBtInteractive.cc
  826. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Updated man page for --user-agent and --peer-id-prefix option.
  828. * doc/aria2c.1.txt
  829. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Code clean up
  831. * src/BtPostDownloadHandler.cc
  832. * src/ContentTypeRequestGroupCriteria.cc
  833. * src/ContentTypeRequestGroupCriteria.h
  834. * src/DownloadHandlerConstants.cc
  835. * src/DownloadHandlerConstants.h
  836. * src/DownloadHandlerFactory.cc
  837. * src/MetalinkPostDownloadHandler.cc
  838. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Don't save control file when aria2 exists while checking piece
  840. hash(behavior of -V option). If control file doesn't exist when
  841. aria2 launched, the completed length in saved control file will be
  842. 0 byte and this confuses user. disableSaveControlFile() is called
  843. in RequestGroup::processCheckIntegrityEntry().
  844. enableSaveControlFile() will be called after hash checking is
  845. done. See CheckIntegrityCommand.
  846. * src/CheckIntegrityCommand.cc
  847. * src/RequestGroup.cc
  848. * src/RequestGroup.h
  849. * src/RequestGroupMan.cc
  850. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Included version number in Peer ID and client version. Peer ID
  852. now starts with "aria2/VERSION-", where VERSION is
  853. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  854. * src/DefaultBtInteractive.cc
  855. * src/OptionHandlerFactory.cc
  856. * src/bittorrent_helper.cc
  857. * src/bittorrent_helper.h
  858. * src/main.cc
  859. * src/usage_text.h
  860. * test/BittorrentHelperTest.cc
  861. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Fixed memory leak.
  863. * src/DownloadCommand.cc
  864. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Removed server, port, user and passwd key from options before
  866. XMLRPC::Client.call since they are not options of aria2.
  867. * doc/xmlrpc/aria2mon
  868. * doc/xmlrpc/aria2rpc
  869. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Included version number in user-agent string.
  871. * src/OptionHandlerFactory.cc
  872. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Fixed the bug that the option values changed by XML-RPC
  874. method(changeOption and changeGlobalOption) are overwritten to the
  875. previous value by the next these request which doesn't contain
  876. that option value. Supporse max-download-limit is initially 0. You
  877. changed this value to 100K by changeOption. Then you issue
  878. changeOption request to change max-upload-limit to 50K. This
  879. second request doesn't contain xml-download-limit, so it is back
  880. to initial value, 0. Another improvement is that exception is
  881. thrown when changeOption and changeGlobalOption request contains
  882. option name which doesn't allowed in each request.
  883. * src/DownloadEngine.h
  884. * src/XmlRpcMethod.cc
  885. * src/XmlRpcMethod.h
  886. * src/XmlRpcMethodImpl.cc
  887. * src/download_helper.cc
  888. * src/download_helper.h
  889. * test/XmlRpcMethodTest.cc
  890. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added missing MetalinkParserStateImpl.{cc,h}
  892. * src/MetalinkParserStateImpl.cc
  893. * src/MetalinkParserStateImpl.h
  894. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Put all MetalinkParserState subclasses into
  896. MetalinkParserStateImpl.cc. Use stack to track element structure.
  897. * src/FileMetalinkParserState.cc: Removed
  898. * src/FileMetalinkParserState.h: Removed
  899. * src/FilesMetalinkParserState.cc: Removed
  900. * src/FilesMetalinkParserState.h: Removed
  901. * src/FinMetalinkParserState.cc: Removed
  902. * src/FinMetalinkParserState.h: Removed
  903. * src/HashMetalinkParserState.cc: Removed
  904. * src/HashMetalinkParserState.h: Removed
  905. * src/InitialMetalinkParserState.cc: Removed
  906. * src/InitialMetalinkParserState.h: Removed
  907. * src/LanguageMetalinkParserState.cc: Removed
  908. * src/LanguageMetalinkParserState.h: Removed
  909. * src/Makefile.am
  910. * src/MetalinkMetalinkParserState.cc: Removed
  911. * src/MetalinkMetalinkParserState.h: Removed
  912. * src/MetalinkParserState.h
  913. * src/MetalinkParserStateMachine.cc
  914. * src/MetalinkParserStateMachine.h
  915. * src/OSMetalinkParserState.cc: Removed
  916. * src/OSMetalinkParserState.h: Removed
  917. * src/PieceHashMetalinkParserState.cc: Removed
  918. * src/PieceHashMetalinkParserState.h: Removed
  919. * src/PiecesMetalinkParserState.cc: Removed
  920. * src/PiecesMetalinkParserState.h: Removed
  921. * src/ResourcesMetalinkParserState.cc: Removed
  922. * src/ResourcesMetalinkParserState.h: Removed
  923. * src/SignatureMetalinkParserState.cc: Removed
  924. * src/SignatureMetalinkParserState.h: Removed
  925. * src/SizeMetalinkParserState.cc: Removed
  926. * src/SizeMetalinkParserState.h: Removed
  927. * src/SkipTagMetalinkParserState.cc: Removed
  928. * src/SkipTagMetalinkParserState.h: Removed
  929. * src/URLMetalinkParserState.cc: Removed
  930. * src/URLMetalinkParserState.h: Removed
  931. * src/VerificationMetalinkParserState.cc: Removed
  932. * src/VerificationMetalinkParserState.h: Removed
  933. * src/VersionMetalinkParserState.cc: Removed
  934. * src/VersionMetalinkParserState.h: Removed
  935. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Move all functions in PeerMessageUtil to bittorrent_helper.
  937. * src/BtBitfieldMessage.cc
  938. * src/BtBitfieldMessageValidator.h
  939. * src/BtExtendedMessage.cc
  940. * src/BtHandshakeMessage.cc
  941. * src/BtHandshakeMessageValidator.h
  942. * src/BtPieceMessage.cc
  943. * src/BtPieceMessageValidator.h
  944. * src/BtPortMessage.cc
  945. * src/DHTFindNodeReplyMessage.cc
  946. * src/DHTGetPeersReplyMessage.cc
  947. * src/DHTMessageFactoryImpl.cc
  948. * src/DHTRoutingTableDeserializer.cc
  949. * src/DHTRoutingTableSerializer.cc
  950. * src/DHTTokenTracker.cc
  951. * src/DefaultBtMessageFactory.cc
  952. * src/IndexBtMessage.cc
  953. * src/IndexBtMessage.h
  954. * src/IndexBtMessageValidator.h
  955. * src/Makefile.am
  956. * src/PeerMessageUtil.cc: Removed.
  957. * src/PeerMessageUtil.h: Removed.
  958. * src/RangeBtMessage.cc
  959. * src/RangeBtMessage.h
  960. * src/RangeBtMessageValidator.h
  961. * src/UTPexExtensionMessage.cc
  962. * src/ZeroBtMessage.cc
  963. * src/ZeroBtMessage.h
  964. * src/bittorrent_helper.cc
  965. * src/bittorrent_helper.h
  966. * test/BittorrentHelperTest.cc
  967. * test/BtAllowedFastMessageTest.cc
  968. * test/BtBitfieldMessageTest.cc
  969. * test/BtCancelMessageTest.cc
  970. * test/BtChokeMessageTest.cc
  971. * test/BtExtendedMessageTest.cc
  972. * test/BtHandshakeMessageTest.cc
  973. * test/BtHaveAllMessageTest.cc
  974. * test/BtHaveMessageTest.cc
  975. * test/BtHaveNoneMessageTest.cc
  976. * test/BtInterestedMessageTest.cc
  977. * test/BtNotInterestedMessageTest.cc
  978. * test/BtPieceMessageTest.cc
  979. * test/BtPortMessageTest.cc
  980. * test/BtRejectMessageTest.cc
  981. * test/BtRequestMessageTest.cc
  982. * test/BtSuggestPieceMessageTest.cc
  983. * test/BtUnchokeMessageTest.cc
  984. * test/DHTFindNodeReplyMessageTest.cc
  985. * test/DHTGetPeersReplyMessageTest.cc
  986. * test/DHTMessageFactoryImplTest.cc
  987. * test/DHTRoutingTableDeserializerTest.cc
  988. * test/DHTRoutingTableSerializerTest.cc
  989. * test/DefaultBtMessageFactoryTest.cc
  990. * test/DefaultExtensionMessageFactoryTest.cc
  991. * test/Makefile.am
  992. * test/PeerListProcessorTest.cc
  993. * test/PeerMessageUtilTest.cc: Removed.
  994. * test/UTPexExtensionMessageTest.cc
  995. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Limit the size of values list when sending get_peers reply.
  997. * src/DHTGetPeersReplyMessage.cc
  998. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Updated banner
  1000. * doc/xmlrpc/aria2rpc
  1001. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Added missing help message for remove command.
  1003. * doc/xmlrpc/aria2rpc
  1004. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Generated configure and config.h.in
  1006. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1007. Add check for fork(), which is missing on MinGW
  1008. * src/daemon.cc
  1009. * configure.ac
  1010. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1012. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1013. Util::httpGMT().
  1014. * src/Util.cc
  1015. * src/Util.h
  1016. * test/UtilTest.cc
  1017. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. * Release 1.6.0
  1019. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Fixed a path to xmlrpc/README.txt
  1021. * doc/Makefile.am
  1022. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Added XML-RPC in -v Configuration output.
  1024. * src/FeatureConfig.cc
  1025. * src/FeatureConfig.h
  1026. * test/FeatureConfigTest.cc
  1027. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Updated Bulgarian, Russian, Slovak and Japanese
  1029. translations. Thanks to all translators.
  1030. * po/bg.po
  1031. * po/ja.po
  1032. * po/ru.po
  1033. * po/sk.po
  1034. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Removed --retry-wait option from aria2rpc
  1036. * doc/xmlrpc/aria2rpc
  1037. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Removed --retry-wait option from man page.
  1039. * doc/aria2c.1.txt
  1040. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Removed --retry-wait option since the current architecture doesn't
  1042. allow sleep for particular URI.
  1043. * src/AbstractCommand.cc
  1044. * src/OptionHandlerFactory.cc
  1045. * src/download_helper.cc
  1046. * src/prefs.cc
  1047. * src/prefs.h
  1048. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Removed Retry-After header support. Since the current architecture
  1050. doesn't allow sleep for particular URI.
  1051. * src/HttpSkipResponseCommand.cc
  1052. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Updated the help message for --daemon option.
  1054. * doc/aria2c.1.txt
  1055. * src/usage_text.h
  1056. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Added our own daemon() function for systems which desn't have
  1058. daemon(3).
  1059. * configure.ac
  1060. * src/Makefile.am
  1061. * src/daemon.cc
  1062. * src/daemon.h
  1063. * src/option_processing.cc
  1064. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Simplified File::getCurrentDir()
  1066. * src/File.cc
  1067. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Use exit() instead of _exit
  1069. * src/RequestGroupMan.cc
  1070. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Replaced "CATEGORY" with "TAGS".
  1072. * src/usage_text.h
  1073. * doc/aria2c.1.txt
  1074. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Updated the help message for --help option.
  1076. * src/usage_text.h
  1077. * doc/aria2c.1.txt
  1078. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Updated man page for added help tags.
  1080. * doc/aria2c.1.txt
  1081. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added help category #file. Added #file tag to the options related
  1083. to downloaded file.
  1084. * src/OptionHandlerFactory.cc
  1085. * src/help_tags.h
  1086. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Added help categories: #cookie and #hook. Added #https tag to
  1088. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1089. * src/OptionHandlerFactory.cc
  1090. * src/help_tags.h
  1091. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Made MSG_NOT_FILE translatable.
  1093. * src/message.h
  1094. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Updated man page for --help option.
  1096. * doc/aria2c.1.txt
  1097. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Updated doc.
  1099. * src/XmlRpcMethod.h
  1100. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Help category now starts with "#" to distinguish a category from
  1102. keyword search. For example, "http" categroy is now "#http". You
  1103. can type "--help=#http" to get explanation of options related to
  1104. http. If '#' is omitted, then the argument is treated as a keyword
  1105. and aria2 searches options whose name includes the keyword and
  1106. print matched ones. For example, "--help=http" will show options
  1107. whose name includes "http".
  1108. * src/OptionHandlerFactory.cc
  1109. * src/help_tags.h
  1110. * src/usage_text.h
  1111. * src/version_usage.cc
  1112. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Documented missing experimental tag and newly added xml-rpc tag in
  1114. man page.
  1115. * doc/aria2c.1.txt
  1116. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Added xml-rpc help tag. Tagged xml-rpc related options with
  1118. xml-rpc tag.
  1119. * src/OptionHandlerFactory.cc
  1120. * src/help_tags.h
  1121. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Updated message when a path is not a file. Updated common message
  1123. for wrong option.
  1124. * src/OptionHandlerException.cc
  1125. * src/message.h
  1126. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Use File::isFile() instead of File::exists(). Updated message when
  1128. a path is not a file.
  1129. * src/OptionHandlerImpl.cc
  1130. * src/message.h
  1131. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Fixed the bug that server performence profile is not updated when
  1133. aria2c was terminated by emergency shutdown.
  1134. * src/TrackerWatcherCommand.cc
  1135. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Use LocalFilePathOptionHandler for -T and -M option.
  1137. Updated message of MSG_FILE_NOT_EXIST.
  1138. * src/OptionHandlerFactory.cc
  1139. * src/message.h
  1140. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Added LocalFilePathOptionHandler which check whether the specified
  1142. file path does exist or not.
  1143. * src/OptionHandlerImpl.cc
  1144. * src/message.h
  1145. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Updated wiki page URI.
  1147. * README
  1148. * doc/aria2c.1.txt
  1149. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Added README.txt for xmlrpc directory.
  1151. * doc/Makefile.am
  1152. * doc/xmlrpc/README.txt
  1153. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Bump up version number to 1.6.0.
  1155. * configure.ac
  1156. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Added XML-RPC client scripts written in ruby.
  1158. * doc/Makefile.am
  1159. * doc/xmlrpc/aria2mon
  1160. * doc/xmlrpc/aria2rpc
  1161. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Added support for IPv6 literal address in URI. Now aria2 can
  1163. handle URI such as http://[::1]/
  1164. * src/HttpRequest.cc
  1165. * src/HttpRequest.h
  1166. * src/Request.cc
  1167. * src/Request.h
  1168. * test/HttpRequestTest.cc
  1169. * test/OptionHandlerTest.cc
  1170. * test/RequestTest.cc
  1171. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Fixed the bug that HTTP request header for XML-RPC request is not
  1173. parsed properly.
  1174. * src/HttpHeader.cc
  1175. * src/HttpHeaderProcessor.cc
  1176. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Fixed the bug that XML-RPC authorization might be done before HTTP
  1178. request header is fully received.
  1179. * src/HttpServerCommand.cc
  1180. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Documented --xml-rpc-listen-all option in man page.
  1182. * doc/aria2c.1.txt
  1183. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Added --xml-rpc-listen-all option. If true is given to this
  1185. option, aria2 listens incoming XML-RPC requests on all network
  1186. interfaces. If false is given, listens only on local loopback
  1187. interface. The default value is false.
  1188. * src/HttpListenCommand.cc
  1189. * src/OptionHandlerFactory.cc
  1190. * src/SocketCore.cc
  1191. * src/SocketCore.h
  1192. * src/prefs.cc
  1193. * src/prefs.h
  1194. * src/usage_text.h
  1195. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. * Release 1.5.2
  1197. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Updated Ukrainian and Russian translations. Thanks to all
  1199. translators.
  1200. * po/ru.po
  1201. * po/uk.po
  1202. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Bump up version number to 1.5.2
  1204. * configure.ac
  1205. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Get comment, comment.utf-8, created by and creation date from
  1207. .torrent file and print them in -S output.
  1208. * src/bittorrent_helper.cc
  1209. * src/bittorrent_helper.h
  1210. * test/BittorrentHelperTest.cc
  1211. * test/test.torrent
  1212. * test/utf8.torrent
  1213. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Show exact file size along in -S option output.
  1215. * src/Util.h
  1216. * src/bittorrent_helper.cc
  1217. * test/UtilTest.cc
  1218. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Avoided unnecessary memory allocation in
  1220. BitfieldMan::getCompletedLength().
  1221. * src/BitfieldMan.cc
  1222. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Fixed the bug that download fails if
  1224. SocketCore::establishConnection() throws exception and aria2
  1225. doesn't try another address.
  1226. * src/AbstractCommand.cc
  1227. * src/InitiateConnectionCommand.cc
  1228. * src/message.h
  1229. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1231. detected properly.
  1232. * m4/sqlite3.m4
  1233. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1235. because it causes compile error if PARAMS macro is defined.
  1236. * src/XmlRpcElements.cc
  1237. * src/XmlRpcElements.h
  1238. * src/XmlRpcRequestParserStateImpl.cc
  1239. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. * Release 1.5.1
  1241. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Bump up version number to 1.5.1
  1243. * configure.ac
  1244. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Fixed compile error without BitTorrent support
  1246. * src/DefaultBtProgressInfoFile.cc
  1247. * src/DownloadEngine.cc
  1248. * src/DownloadEngine.h
  1249. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Added missing '=' in Download Results
  1251. * src/RequestGroupMan.cc
  1252. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Fixed compiler warning
  1254. * src/DefaultBtProgressInfoFile.cc
  1255. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Fixed compiler warning on 32bit systems.
  1257. * src/DownloadCommand.cc
  1258. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Call flush from ServerStatMan::save()
  1260. * src/ServerStatMan.cc
  1261. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Check stream status after file is opened.
  1263. * src/CookieStorage.cc
  1264. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Rewritten Signature::save()
  1266. * src/Signature.cc
  1267. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Rewritten RequestGroupMan::saveServerStat()
  1269. * src/RequestGroupMan.cc
  1270. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Rewritten stream error handling
  1272. * src/DHTAutoSaveCommand.cc
  1273. * src/DHTRoutingTableDeserializer.cc
  1274. * src/DHTRoutingTableSerializer.cc
  1275. * src/DHTSetup.cc
  1276. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Check stream status after file is opened.
  1278. * src/DefaultBtProgressInfoFile.cc
  1279. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Rewritten stream error handling
  1281. * src/DefaultBtProgressInfoFile.cc
  1282. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Make sure that stream is closed before renaming file. Unit test
  1284. fails on mingw32 in the previous implementation.
  1285. * src/CookieStorage.cc
  1286. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Fixed the unit test error without sqlite3
  1288. * test/CookieStorageTest.cc
  1289. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Fixed the undefined reference error
  1291. * test/HttpResponseTest.cc
  1292. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. * Release 1.5.0
  1294. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1296. Ukrainian translations. Thanks to all translators.
  1297. * po/ru.po
  1298. * po/it.po
  1299. * po/da.po
  1300. * po/bg.po
  1301. * po/ja.po
  1302. * po/uk.po
  1303. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Added missing src/Logger.cc
  1305. * src/Logger.cc
  1306. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Rewritten Logger to avoiding constly virtual call.
  1308. * src/LogFactory.cc
  1309. * src/LogFactory.h
  1310. * src/Logger.h
  1311. * src/Makefile.am
  1312. * src/Makefile.in
  1313. * src/NullLogger.h: Removed.
  1314. * src/SimpleLogger.cc
  1315. * src/SimpleLogger.h
  1316. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Updated doc
  1318. * src/main.cc
  1319. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Updated debug log message
  1321. * src/AbstractCommand.cc
  1322. * src/message.h
  1323. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Avoid to create zombie process when commands specified in
  1325. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1326. X and NetBSD.
  1327. * src/main.cc
  1328. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Fixed typo
  1330. * src/usage_text.h
  1331. * doc/aria2c.1.txt
  1332. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Documented 'errorCode' of tellStatus in man page.
  1334. * doc/aria2c.1.txt
  1335. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1337. This key is only available for stopped/completed downloads and its
  1338. value is the error code defined in EXIT STATUS in man page.
  1339. * src/XmlRpcMethodImpl.cc
  1340. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Fixed the bug that session download length is not updated when
  1342. PeerStat is not fastest one.
  1343. * src/SegmentMan.cc
  1344. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Updated doc.
  1346. * doc/aria2c.1.txt
  1347. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Updated doc.
  1349. * src/AbstractCommand.cc
  1350. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Handle the case when DownloadContext has no FileEntry.
  1352. * src/XmlRpcMethodImpl.cc
  1353. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Handle the situation where struct option.name is char *.
  1355. * configure.ac
  1356. * src/OptionParser.cc
  1357. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Code cleanup
  1359. * src/AbstractCommand.cc
  1360. * src/DownloadCommand.cc
  1361. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Use option of each download to create AuthConfig instead of global
  1363. option.
  1364. * src/AuthConfigFactory.cc
  1365. * src/AuthConfigFactory.h
  1366. * src/FtpNegotiationCommand.cc
  1367. * src/HttpRequest.cc
  1368. * src/HttpRequest.h
  1369. * src/HttpRequestCommand.cc
  1370. * src/HttpSkipResponseCommand.cc
  1371. * src/MultiUrlRequestInfo.cc
  1372. * test/AuthConfigFactoryTest.cc
  1373. * test/FtpConnectionTest.cc
  1374. * test/HttpRequestTest.cc
  1375. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Don't call prepareForRetry(1) if all segments are ignored in
  1377. SegmentMan.
  1378. * src/AbstractCommand.cc
  1379. * src/BitfieldMan.cc
  1380. * src/BitfieldMan.h
  1381. * src/SegmentMan.cc
  1382. * src/SegmentMan.h
  1383. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Removed FileEntry::getAssociatedUris()
  1385. * src/FileEntry.h
  1386. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Updated doc: TODO1.5 -> TODO
  1388. * src/FileEntry.cc
  1389. * src/HttpResponseCommand.cc
  1390. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1392. involved.
  1393. * src/RequestGroup.cc
  1394. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Eliminated duplicated filterBitfield initialization code.
  1396. * src/BitfieldMan.cc
  1397. * src/BitfieldMan.h
  1398. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1400. relatively naive approach, though). For DownloadFailureException,
  1401. we handle the case when req is null properly.
  1402. * src/AbstractCommand.cc
  1403. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Added function returning suffix of control file to
  1405. DefaultBtProgressInfoFile.
  1406. * src/DefaultBtProgressInfoFile.cc
  1407. * src/DefaultBtProgressInfoFile.h
  1408. * src/RequestGroup.cc
  1409. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Documented getVersion in man page.
  1411. * doc/aria2c.1.txt
  1412. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Documented type of offset and num for tellWaiting xml-rpc method.
  1414. * doc/aria2c.1.txt
  1415. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Implemented getVersion xml-rpc method. This method returns struct
  1417. which has 2 key-value pairs: "version" key is associated to the
  1418. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1419. associated to the list of enabled features, such as "Async DNS",
  1420. "BitTorrent".
  1421. * src/FeatureConfig.h
  1422. * src/XmlRpcMethodFactory.cc
  1423. * src/XmlRpcMethodImpl.cc
  1424. * src/XmlRpcMethodImpl.h
  1425. * test/XmlRpcMethodTest.cc
  1426. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1428. for compatibility issue.
  1429. * src/SocketCore.cc
  1430. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Fixed compile error with openSSL
  1432. * src/bittorrent_helper.cc
  1433. * src/messageDigest.h
  1434. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Removed bad code: setting certificate type priority to key
  1436. exchange priority.
  1437. * src/SocketCore.cc
  1438. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Disconnect seeder if client is also in seed state.
  1440. * src/BtBitfieldMessage.cc
  1441. * src/BtHaveAllMessage.cc
  1442. * src/BtHaveMessage.cc
  1443. * src/message.h
  1444. * test/BtBitfieldMessageTest.cc
  1445. * test/BtHaveAllMessageTest.cc
  1446. * test/BtHaveMessageTest.cc
  1447. * test/MockPieceStorage.h
  1448. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Keep CreateRequestCommand in queue when no segment is available so
  1450. that they can pick up pieces which slow BitTorrent peers are
  1451. downloading.
  1452. * src/AbstractCommand.cc
  1453. * src/CreateRequestCommand.cc
  1454. * src/CreateRequestCommand.h
  1455. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. --bt-stop-timeout now only checks download speed.
  1457. * src/BtStopDownloadCommand.cc
  1458. * src/BtStopDownloadCommand.h
  1459. * src/BtSetup.cc
  1460. * src/usage_text.h
  1461. * doc/aria2c.1.txt
  1462. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Fixed compile error regarding BUFSIZE.
  1464. * src/DownloadCommand.cc
  1465. * src/DownloadCommand.h
  1466. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Documented tellWaiting xml-rpc method in man page.
  1468. * doc/aria2c.1.txt
  1469. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Bump up version number to 1.5.0
  1471. * configure.ac
  1472. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Removed resolved TODO1.5
  1474. * src/AbstractCommand.cc
  1475. * src/DownloadCommand.cc
  1476. * src/RequestGroup.cc
  1477. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Release pooled and in-flight Request objectsand URIResult objects
  1479. in FileEntry after download completed.
  1480. * src/DownloadContext.cc
  1481. * src/DownloadContext.h
  1482. * src/FileEntry.cc
  1483. * src/FileEntry.h
  1484. * src/RequestGroup.cc
  1485. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Set manual and source attribute in aria2c.1.txt
  1487. * doc/aria2c.1.txt
  1488. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Documented that the default value of --use-head is 'false' in man
  1490. page.
  1491. * doc/aria2c.1.txt
  1492. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Added bt-stop-timeout option to -i list.
  1494. * doc/aria2c.1.txt
  1495. * src/download_helper.cc
  1496. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Fixed typo
  1498. * doc/aria2c.1.txt
  1499. * src/usage_text.h
  1500. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Removed peer-id-prefix option from -i list.
  1502. * doc/aria2c.1.txt
  1503. * src/download_helper.cc
  1504. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Fixed typo
  1506. * doc/aria2c.1.txt
  1507. * src/usage_text.h
  1508. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Documented --bt-stop-timeout option in man page.
  1510. * doc/aria2c.1.txt
  1511. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Updated README regarding multi-file torrent web-seeding.
  1513. * doc/README.txt
  1514. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Updated man page regarding multi-file torrent web-seeding.
  1516. * doc/aria2c.1.txt
  1517. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Updated doc
  1519. * src/version_usage.cc
  1520. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Winsock select() doesn't work if no socket is in FD_SET. To
  1522. overcome this problem, a dummy socket is added to FD_SET and it is
  1523. given to select().
  1524. * src/SelectEventPoll.cc
  1525. * src/SelectEventPoll.h
  1526. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Disabled --use-head option by default because --use-head=true
  1528. causes problems on some web sites.
  1529. * src/OptionHandlerFactory.cc
  1530. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Print URL List in -S option for torrent.
  1532. * src/bittorrent_helper.cc
  1533. * src/bittorrent_helper.h
  1534. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Allocate buffer in ctor of DownloadCommand.
  1536. * src/DownloadCommand.cc
  1537. * src/DownloadCommand.h
  1538. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Removed DiskAdaptor::onDownloadComplete()
  1540. * src/DirectDiskAdaptor.cc
  1541. * src/DirectDiskAdaptor.h
  1542. * src/DiskAdaptor.h
  1543. * src/MultiDiskAdaptor.cc
  1544. * src/MultiDiskAdaptor.h
  1545. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Committed missing BtStopDownloadCommand.{cc,h}
  1547. * src/BtStopDownloadCommand.cc
  1548. * src/BtStopDownloadCommand.h
  1549. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1551. download if the download speed is 0 and the number of seeder is 0
  1552. in consecutive SEC seconds. By default, this function is disabled.
  1553. * src/BtSetup.cc
  1554. * src/Makefile.am
  1555. * src/OptionHandlerFactory.cc
  1556. * src/prefs.cc
  1557. * src/prefs.h
  1558. * src/usage_text.h
  1559. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Removed the call to DiskAdaptor::onDownloadComplete() from
  1561. BtCheckIntegrityEntry and DefaultPieceStorage.
  1562. * src/BtCheckIntegrityEntry.cc
  1563. * src/DefaultPieceStorage.cc
  1564. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Commented out throw statements when number of piece is 0 to
  1566. download 0 length torrent.
  1567. * src/bittorrent_helper.cc
  1568. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Call RequestGroup::createNextCommandWithAdj() from
  1570. BtFileAllocationEntry if at least one FileEntry has URI. The
  1571. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1572. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1573. * src/BtFileAllocationEntry.cc
  1574. * src/FileEntry.h
  1575. * src/RequestGroup.cc
  1576. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Generate peer ID after SimpleRandomizer is initialized.
  1578. * src/main.cc
  1579. * src/option_processing.cc
  1580. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Removed unused method argument.
  1582. * src/CreateRequestCommand.cc
  1583. * src/RequestGroup.cc
  1584. * src/RequestGroup.h
  1585. * src/RequestGroupMan.cc
  1586. * src/TrackerWatcherCommand.cc
  1587. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Made URI reusing function work.
  1589. * src/CreateRequestCommand.cc
  1590. * src/FileEntry.cc
  1591. * src/FileEntry.h
  1592. * test/FileEntryTest.cc
  1593. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Add formerly fastest PeerStat's sessionDownloadLength to new
  1595. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1596. bytes in a session.
  1597. * src/PeerStat.cc
  1598. * src/SegmentMan.cc
  1599. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. If pipelining is enabled, we can always pool socket.
  1601. * src/HttpDownloadCommand.cc
  1602. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. In a single file download, file size becomes known just after
  1604. downloading, set total length to FileEntry object when download
  1605. completed.
  1606. * src/DownloadCommand.cc
  1607. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Use std::vector::reserve() for fileEntries and pieceHashes in
  1609. bittorrent_helper
  1610. * src/bittorrent_helper.cc
  1611. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1613. Removed hidden option PREF_RESET_URI.
  1614. * src/AbstractCommand.cc
  1615. * src/OptionHandlerFactory.cc
  1616. * src/prefs.cc
  1617. * src/prefs.h
  1618. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Removed unused variable/function.
  1620. * src/PeerStat.h
  1621. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Show first URL in Download Results if file path is not available.
  1623. * src/FileEntry.h
  1624. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Throw exception if file path doesn't exist in FTP URL.
  1626. * src/InitiateConnectionCommandFactory.cc
  1627. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1629. * src/BitfieldMan.cc
  1630. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1632. of PeerStat in SegmentMan. peerStats is used for calculating
  1633. download speed. Therefore all active PeerStats should be in
  1634. there. Another one is _fastestPeerStats and it only contains
  1635. fastest PeerStat for each hostname/protocol pair. They are used
  1636. for updating ServerStat.
  1637. * src/DownloadCommand.cc
  1638. * src/Request.h
  1639. * src/RequestGroupMan.cc
  1640. * src/SegmentMan.cc
  1641. * src/SegmentMan.h
  1642. * test/SegmentManTest.cc
  1643. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Try all available addresses returned by DNS until it gets
  1645. connected in HTTP(S)/FTP download
  1646. * src/AbstractCommand.cc
  1647. * src/AbstractCommand.h
  1648. * src/AbstractProxyRequestCommand.cc
  1649. * src/AbstractProxyRequestCommand.h
  1650. * src/DNSCache.h
  1651. * src/DownloadEngine.cc
  1652. * src/DownloadEngine.h
  1653. * src/FtpInitiateConnectionCommand.cc
  1654. * src/FtpInitiateConnectionCommand.h
  1655. * src/FtpNegotiationCommand.cc
  1656. * src/FtpNegotiationCommand.h
  1657. * src/HttpInitiateConnectionCommand.cc
  1658. * src/HttpInitiateConnectionCommand.h
  1659. * src/HttpRequestCommand.cc
  1660. * src/HttpRequestCommand.h
  1661. * src/InitiateConnectionCommand.cc
  1662. * src/InitiateConnectionCommand.h
  1663. * test/DNSCacheTest.cc
  1664. * test/Makefile.am
  1665. * test/SimpleDNSCacheTest.cc
  1666. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Updated doc
  1668. * src/download_helper.cc
  1669. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Refactored fieldMan ctor.
  1671. * src/BitfieldMan.cc
  1672. * src/BitfieldMan.h
  1673. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Don't print "No files to download." message if -S is given.
  1675. * src/main.cc
  1676. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Set referer and method to newly created Request object.
  1678. * src/CreateRequestCommand.cc
  1679. * src/FileEntry.cc
  1680. * src/FileEntry.h
  1681. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1683. * src/AbstractCommand.cc
  1684. * src/AbstractCommand.h
  1685. * src/CreateRequestCommand.cc
  1686. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Get proxy download working
  1688. * src/AbstractProxyRequestCommand.cc
  1689. * src/AbstractProxyRequestCommand.h
  1690. * src/AbstractProxyResponseCommand.cc
  1691. * src/AbstractProxyResponseCommand.h
  1692. * src/FtpInitiateConnectionCommand.cc
  1693. * src/FtpTunnelRequestCommand.cc
  1694. * src/FtpTunnelRequestCommand.h
  1695. * src/FtpTunnelResponseCommand.cc
  1696. * src/FtpTunnelResponseCommand.h
  1697. * src/HttpInitiateConnectionCommand.cc
  1698. * src/HttpProxyRequestCommand.cc
  1699. * src/HttpProxyRequestCommand.h
  1700. * src/HttpProxyResponseCommand.cc
  1701. * src/HttpProxyResponseCommand.h
  1702. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Use SegmentMan::getSegment(cuid) for single file download.
  1704. * src/AbstractCommand.cc
  1705. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Fixed bufSize calculation
  1707. * src/DownloadCommand.cc
  1708. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Don't append "/" if base URI ends with "/".
  1710. * src/bittorrent_helper.cc
  1711. * test/url-list-multiFile.torrent
  1712. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. HTTP pipelining is now working. Fixed Segmention fault in
  1714. BitfieldMan's copy ctor.
  1715. * src/AbstractCommand.cc
  1716. * src/BitfieldMan.cc
  1717. * src/BitfieldMan.h
  1718. * src/DownloadCommand.cc
  1719. * src/HttpDownloadCommand.cc
  1720. * src/HttpRequest.cc
  1721. * src/SegmentMan.cc
  1722. * src/SegmentMan.h
  1723. * test/BitfieldManTest.cc
  1724. * test/SegmentManTest.cc
  1725. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. Removed ServerHost. Same functionality is implemented using
  1727. FileEntry's in-flight Request objects.
  1728. * src/AbstractCommand.cc
  1729. * src/BtDependency.cc
  1730. * src/CreateRequestCommand.cc
  1731. * src/FileEntry.cc
  1732. * src/FileEntry.h
  1733. * src/FtpNegotiationCommand.cc
  1734. * src/HttpResponseCommand.cc
  1735. * src/Makefile.am
  1736. * src/Metalink2RequestGroup.cc
  1737. * src/RequestGroup.cc
  1738. * src/RequestGroup.h
  1739. * src/ServerHost.cc: Removed
  1740. * src/ServerHost.h: Removed
  1741. * test/BtDependencyTest.cc
  1742. * test/FileEntryTest.cc
  1743. * test/RequestGroupTest.cc
  1744. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Rewritten PeerStat handling. In the previous implementation,
  1746. faster command tries to find slower command. In this new
  1747. implementation, slower command tries to find faster command.
  1748. PeerStat is now created in each HTTP/FTP request to get download
  1749. rate correctly. If the download range is small, the download rate
  1750. tends to small and this will occur at the later stage of download.
  1751. * src/AbstractCommand.cc
  1752. * src/DownloadCommand.cc
  1753. * src/FileEntry.cc
  1754. * src/FileEntry.h
  1755. * src/Request.cc
  1756. * src/Request.h
  1757. * src/RequestGroup.h
  1758. * src/RequestGroupMan.cc
  1759. * src/SegmentMan.cc
  1760. * src/SegmentMan.h
  1761. * test/SegmentManTest.cc
  1762. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Removed _uris from RequestGroup. All functions that refer to _uris
  1764. were moved to FileEntry. Exit status code are now defined in
  1765. DownloadResultCode.h.
  1766. * src/AbstractCommand.cc
  1767. * src/AdaptiveURISelector.cc
  1768. * src/AdaptiveURISelector.h
  1769. * src/AutoSaveCommand.cc
  1770. * src/BtPostDownloadHandler.cc
  1771. * src/CheckIntegrityDispatcherCommand.cc
  1772. * src/CookieStorage.cc
  1773. * src/DHTAutoSaveCommand.cc
  1774. * src/DHTBucketRefreshCommand.cc
  1775. * src/DHTEntryPointNameResolveCommand.cc
  1776. * src/DHTInteractionCommand.cc
  1777. * src/DHTPeerAnnounceCommand.cc
  1778. * src/DHTTokenUpdateCommand.cc
  1779. * src/DlAbortEx.h
  1780. * src/DlRetryEx.h
  1781. * src/DownloadCommand.cc
  1782. * src/DownloadContext.h
  1783. * src/DownloadFailureException.h
  1784. * src/DownloadResult.h
  1785. * src/DownloadResultCode.h
  1786. * src/FeedbackURISelector.cc
  1787. * src/FeedbackURISelector.h
  1788. * src/FileEntry.cc
  1789. * src/FileEntry.h
  1790. * src/FtpNegotiationCommand.cc
  1791. * src/HttpListenCommand.cc
  1792. * src/HttpResponseCommand.cc
  1793. * src/HttpServerResponseCommand.cc
  1794. * src/HttpSkipResponseCommand.cc
  1795. * src/InOrderURISelector.cc
  1796. * src/InOrderURISelector.h
  1797. * src/Makefile.am
  1798. * src/Makefile.in
  1799. * src/Metalink2RequestGroup.cc
  1800. * src/MultiUrlRequestInfo.cc
  1801. * src/MultiUrlRequestInfo.h
  1802. * src/OptionHandlerFactory.cc
  1803. * src/PeerListenCommand.cc
  1804. * src/RecoverableException.h
  1805. * src/RequestGroup.cc
  1806. * src/RequestGroup.h
  1807. * src/RequestGroupMan.cc
  1808. * src/RequestGroupMan.h
  1809. * src/TimedHaltCommand.cc
  1810. * src/TrackerWatcherCommand.cc
  1811. * src/URIResult.cc
  1812. * src/URIResult.h
  1813. * src/URISelector.h
  1814. * src/XmlRpcMethodImpl.cc
  1815. * src/bittorrent_helper.cc
  1816. * src/bittorrent_helper.h
  1817. * src/download_helper.cc
  1818. * src/main.cc
  1819. * src/option_processing.cc
  1820. * test/BtDependencyTest.cc
  1821. * test/BtPostDownloadHandlerTest.cc
  1822. * test/CookieStorageTest.cc
  1823. * test/DefaultBtMessageDispatcherTest.cc
  1824. * test/DownloadHandlerFactoryTest.cc
  1825. * test/DownloadHelperTest.cc
  1826. * test/FeedbackURISelectorTest.cc
  1827. * test/FileEntryTest.cc
  1828. * test/InOrderURISelectorTest.cc
  1829. * test/Metalink2RequestGroupTest.cc
  1830. * test/MetalinkPostDownloadHandlerTest.cc
  1831. * test/RequestGroupManTest.cc
  1832. * test/RequestGroupTest.cc
  1833. * test/XmlRpcMethodTest.cc
  1834. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Removed MockBtContext.h
  1836. * test/Makefile.am
  1837. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Removed _currentRequest from StreamCheckIntegrityEntry and
  1839. StreamFileAllocationEntry.
  1840. * src/AbstractCommand.cc
  1841. * src/HttpResponseCommand.cc
  1842. * src/RequestGroup.cc
  1843. * src/StreamCheckIntegrityEntry.cc
  1844. * src/StreamCheckIntegrityEntry.h
  1845. * src/StreamFileAllocationEntry.cc
  1846. * src/StreamFileAllocationEntry.h
  1847. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Rewritten DownloadContext and removed SingleFileDownloadContext
  1849. and BtContext and its derived classes. BitTorrent specific
  1850. attributes are now set by DownloadContext::setAttribute() with key
  1851. bittorrent::BITTORRENT.
  1852. * src/AbstractBtMessage.cc
  1853. * src/AbstractBtMessage.h
  1854. * src/AbstractCommand.cc
  1855. * src/AbstractCommand.h
  1856. * src/AbstractProxyRequestCommand.cc
  1857. * src/AbstractProxyResponseCommand.cc
  1858. * src/ActivePeerConnectionCommand.cc
  1859. * src/ActivePeerConnectionCommand.h
  1860. * src/AnnounceList.cc
  1861. * src/BtCheckIntegrityEntry.cc
  1862. * src/BtConstants.h
  1863. * src/BtContext.h: Removed
  1864. * src/BtDependency.cc
  1865. * src/BtExtendedMessage.cc
  1866. * src/BtPieceMessage.cc
  1867. * src/BtPieceMessage.h
  1868. * src/BtPostDownloadHandler.cc
  1869. * src/BtRegistry.cc
  1870. * src/BtRegistry.h
  1871. * src/BtSetup.cc
  1872. * src/CheckIntegrityCommand.cc
  1873. * src/CheckIntegrityEntry.cc
  1874. * src/ChecksumCheckIntegrityEntry.cc
  1875. * src/ConsoleStatCalc.cc
  1876. * src/ContentTypeRequestGroupCriteria.cc
  1877. * src/DHTGetPeersCommand.cc
  1878. * src/DHTGetPeersCommand.h
  1879. * src/DHTPeerLookupTask.cc
  1880. * src/DHTPeerLookupTask.h
  1881. * src/DHTTaskFactory.h
  1882. * src/DHTTaskFactoryImpl.cc
  1883. * src/DHTTaskFactoryImpl.h
  1884. * src/DefaultBtAnnounce.cc
  1885. * src/DefaultBtAnnounce.h
  1886. * src/DefaultBtContext.cc: Removed
  1887. * src/DefaultBtContext.h: Removed
  1888. * src/DefaultBtInteractive.cc
  1889. * src/DefaultBtInteractive.h
  1890. * src/DefaultBtMessageDispatcher.cc
  1891. * src/DefaultBtMessageDispatcher.h
  1892. * src/DefaultBtMessageFactory.cc
  1893. * src/DefaultBtMessageFactory.h
  1894. * src/DefaultBtMessageReceiver.cc
  1895. * src/DefaultBtMessageReceiver.h
  1896. * src/DefaultBtProgressInfoFile.cc
  1897. * src/DefaultBtRequestFactory.cc
  1898. * src/DefaultBtRequestFactory.h
  1899. * src/DefaultExtensionMessageFactory.cc
  1900. * src/DefaultExtensionMessageFactory.h
  1901. * src/DefaultPeerStorage.cc
  1902. * src/DefaultPeerStorage.h
  1903. * src/DefaultPieceStorage.cc
  1904. * src/DefaultSegmentManFactory.cc
  1905. * src/DiskAdaptor.cc
  1906. * src/DiskAdaptor.h
  1907. * src/DownloadContext.cc
  1908. * src/DownloadContext.h
  1909. * src/DownloadEngine.cc
  1910. * src/DownloadEngineFactory.cc
  1911. * src/DownloadHandler.cc
  1912. * src/DownloadResult.h
  1913. * src/FileAllocationCommand.cc
  1914. * src/FileAllocationDispatcherCommand.cc
  1915. * src/FileAllocationEntry.cc
  1916. * src/FileEntry.h
  1917. * src/FillRequestGroupCommand.cc
  1918. * src/FtpDownloadCommand.cc
  1919. * src/FtpFinishDownloadCommand.cc
  1920. * src/FtpInitiateConnectionCommand.cc
  1921. * src/FtpNegotiationCommand.cc
  1922. * src/FtpTunnelRequestCommand.cc
  1923. * src/FtpTunnelResponseCommand.cc
  1924. * src/HandshakeExtensionMessage.cc
  1925. * src/HandshakeExtensionMessage.h
  1926. * src/HaveEraseCommand.cc
  1927. * src/HttpDownloadCommand.cc
  1928. * src/HttpInitiateConnectionCommand.cc
  1929. * src/HttpProxyRequestCommand.cc
  1930. * src/HttpProxyResponseCommand.cc
  1931. * src/HttpRequest.cc
  1932. * src/HttpRequest.h
  1933. * src/HttpRequestCommand.cc
  1934. * src/HttpResponseCommand.cc
  1935. * src/HttpServerBodyCommand.cc
  1936. * src/HttpServerCommand.cc
  1937. * src/HttpSkipResponseCommand.cc
  1938. * src/InitiateConnectionCommandFactory.cc
  1939. * src/InitiatorMSEHandshakeCommand.cc
  1940. * src/InitiatorMSEHandshakeCommand.h
  1941. * src/IteratableChecksumValidator.cc
  1942. * src/IteratableChecksumValidator.h
  1943. * src/IteratableChunkChecksumValidator.cc
  1944. * src/MSEHandshake.cc
  1945. * src/MSEHandshake.h
  1946. * src/Makefile.am
  1947. * src/Makefile.in
  1948. * src/Metalink2RequestGroup.cc
  1949. * src/MetalinkPostDownloadHandler.cc
  1950. * src/MultiDiskAdaptor.cc
  1951. * src/MultiDiskAdaptor.h
  1952. * src/MultiFileAllocationIterator.cc
  1953. * src/MultiUrlRequestInfo.cc
  1954. * src/PeerChokeCommand.cc
  1955. * src/PeerChokeCommand.h
  1956. * src/PeerInitiateConnectionCommand.cc
  1957. * src/PeerInitiateConnectionCommand.h
  1958. * src/PeerInteractionCommand.cc
  1959. * src/PeerInteractionCommand.h
  1960. * src/PeerReceiveHandshakeCommand.cc
  1961. * src/PieceHashCheckIntegrityEntry.cc
  1962. * src/RealtimeCommand.cc
  1963. * src/ReceiverMSEHandshakeCommand.cc
  1964. * src/RequestGroup.cc
  1965. * src/RequestGroup.h
  1966. * src/RequestGroupEntry.cc
  1967. * src/RequestGroupMan.cc
  1968. * src/SeedCheckCommand.cc
  1969. * src/SeedCheckCommand.h
  1970. * src/SegmentMan.cc
  1971. * src/ShareRatioSeedCriteria.h
  1972. * src/SingleFileDownloadContext.cc: Removed
  1973. * src/SingleFileDownloadContext.h: Removed
  1974. * src/SleepCommand.cc
  1975. * src/StreamCheckIntegrityEntry.cc
  1976. * src/TrackerWatcherCommand.cc
  1977. * src/TrackerWatcherCommand.h
  1978. * src/UnknownLengthPieceStorage.cc
  1979. * src/Util.cc
  1980. * src/Util.h
  1981. * src/XmlRpcMethodImpl.cc
  1982. * src/bittorrent_helper.cc
  1983. * src/bittorrent_helper.h
  1984. * src/download_helper.cc
  1985. * src/main.cc
  1986. * src/option_processing.cc
  1987. * test/BitfieldManTest.cc
  1988. * test/BittorrentHelperTest.cc
  1989. * test/BtCancelMessageTest.cc
  1990. * test/BtChokeMessageTest.cc
  1991. * test/BtDependencyTest.cc
  1992. * test/BtPieceMessageTest.cc
  1993. * test/BtPostDownloadHandlerTest.cc
  1994. * test/BtRegistryTest.cc
  1995. * test/BtRejectMessageTest.cc
  1996. * test/BtRequestMessageTest.cc
  1997. * test/DHTPeerAnnounceStorageTest.cc
  1998. * test/DefaultBtAnnounceTest.cc
  1999. * test/DefaultBtContextTest.cc: Removed
  2000. * test/DefaultBtMessageDispatcherTest.cc
  2001. * test/DefaultBtMessageFactoryTest.cc
  2002. * test/DefaultBtProgressInfoFileTest.cc
  2003. * test/DefaultBtRequestFactoryTest.cc
  2004. * test/DefaultExtensionMessageFactoryTest.cc
  2005. * test/DefaultPeerStorageTest.cc
  2006. * test/DefaultPieceStorageTest.cc
  2007. * test/DirectDiskAdaptorTest.cc
  2008. * test/DownloadContextTest.cc
  2009. * test/DownloadHandlerFactoryTest.cc
  2010. * test/DownloadHelperTest.cc
  2011. * test/HandshakeExtensionMessageTest.cc
  2012. * test/HttpRequestTest.cc
  2013. * test/HttpResponseTest.cc
  2014. * test/IteratableChecksumValidatorTest.cc
  2015. * test/IteratableChunkChecksumValidatorTest.cc
  2016. * test/MSEHandshakeTest.cc
  2017. * test/Makefile.am
  2018. * test/Makefile.in
  2019. * test/Metalink2RequestGroupTest.cc
  2020. * test/MetalinkPostDownloadHandlerTest.cc
  2021. * test/MockBtContext.h: Removed
  2022. * test/MockDHTTaskFactory.h
  2023. * test/MockDownloadContext.h: Removed
  2024. * test/MockPieceStorage.h
  2025. * test/MultiDiskAdaptorTest.cc
  2026. * test/MultiFileAllocationIteratorTest.cc
  2027. * test/RequestGroupManTest.cc
  2028. * test/RequestGroupTest.cc
  2029. * test/SegmentManTest.cc
  2030. * test/ShareRatioSeedCriteriaTest.cc
  2031. * test/SingleFileDownloadContextTest.cc: Removed
  2032. * test/UtilTest.cc
  2033. * test/XmlRpcMethodTest.cc
  2034. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Added experimental support of WEB-Seeding for multi-file torrent.
  2036. Due to fundamental changes in file handling in HTTP/FTP code, many
  2037. functions are not working: PeerStat, ServerHost, proxy..etc
  2038. * src/AbstractCommand.cc
  2039. * src/AbstractCommand.h
  2040. * src/BitfieldMan.cc
  2041. * src/BitfieldMan.h
  2042. * src/CreateRequestCommand.cc
  2043. * src/CreateRequestCommand.h
  2044. * src/DefaultPieceStorage.cc
  2045. * src/DefaultPieceStorage.h
  2046. * src/DownloadCommand.cc
  2047. * src/DownloadCommand.h
  2048. * src/DownloadContext.cc
  2049. * src/DownloadContext.h
  2050. * src/FileEntry.cc
  2051. * src/FileEntry.h
  2052. * src/FtpDownloadCommand.cc
  2053. * src/FtpDownloadCommand.h
  2054. * src/FtpFinishDownloadCommand.cc
  2055. * src/FtpFinishDownloadCommand.h
  2056. * src/FtpInitiateConnectionCommand.cc
  2057. * src/FtpInitiateConnectionCommand.h
  2058. * src/FtpNegotiationCommand.cc
  2059. * src/FtpNegotiationCommand.h
  2060. * src/FtpTunnelResponseCommand.cc
  2061. * src/HttpDownloadCommand.cc
  2062. * src/HttpDownloadCommand.h
  2063. * src/HttpInitiateConnectionCommand.cc
  2064. * src/HttpInitiateConnectionCommand.h
  2065. * src/HttpProxyResponseCommand.cc
  2066. * src/HttpRequest.cc
  2067. * src/HttpRequest.h
  2068. * src/HttpRequestCommand.cc
  2069. * src/HttpRequestCommand.h
  2070. * src/HttpResponseCommand.cc
  2071. * src/HttpResponseCommand.h
  2072. * src/HttpSkipResponseCommand.cc
  2073. * src/HttpSkipResponseCommand.h
  2074. * src/InitiateConnectionCommand.cc
  2075. * src/InitiateConnectionCommand.h
  2076. * src/InitiateConnectionCommandFactory.cc
  2077. * src/InitiateConnectionCommandFactory.h
  2078. * src/Makefile.am
  2079. * src/PieceStorage.h
  2080. * src/RequestGroup.cc
  2081. * src/RequestGroup.h
  2082. * src/RequestGroupMan.cc
  2083. * src/SegmentMan.cc
  2084. * src/SegmentMan.h
  2085. * src/SingleFileDownloadContext.h
  2086. * src/StreamFileAllocationEntry.cc
  2087. * src/TrackerWatcherCommand.cc
  2088. * src/UnknownLengthPieceStorage.cc
  2089. * src/UnknownLengthPieceStorage.h
  2090. * src/array_fun.h
  2091. * src/bitfield.h
  2092. * src/download_helper.cc
  2093. * test/DownloadContextTest.cc
  2094. * test/Makefile.am
  2095. * test/MockDownloadContext.h
  2096. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Added tellWaiting XML-RPC method.
  2098. * src/SingleFileDownloadContext.cc
  2099. * src/XmlRpcMethodFactory.cc
  2100. * src/XmlRpcMethodImpl.cc
  2101. * src/XmlRpcMethodImpl.h
  2102. * test/XmlRpcMethodTest.cc
  2103. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Updated CookieStorageTest
  2105. * test/CookieStorageTest.cc
  2106. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2108. handle excepion inside these functions.
  2109. * src/LibgnutlsTLSContext.cc
  2110. * src/LibgnutlsTLSContext.h
  2111. * src/LibsslTLSContext.cc
  2112. * src/LibsslTLSContext.h
  2113. * src/MultiUrlRequestInfo.cc
  2114. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Added comment
  2116. * src/RequestGroup.cc
  2117. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. In CookieStorage::load() and saveNsFormat(), handle exception
  2119. inside the functions. When saving Cookies, first write temporary
  2120. file and after successful writes, then renames it to final
  2121. destination.
  2122. * src/CookieStorage.cc
  2123. * src/CookieStorage.h
  2124. * src/MultiUrlRequestInfo.cc
  2125. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. The default value of --dir option is the absolute path to the
  2127. current directory. If getcwd() is failed, then it is ".", which is
  2128. the same value with old implementation. This change is necessary
  2129. because after daemon() call, the current working directory is
  2130. changed to /.
  2131. * src/File.cc
  2132. * src/File.h
  2133. * src/OptionHandlerFactory.cc
  2134. * src/option_processing.cc
  2135. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Call daemon() with arguments(0,0), which means daemon() changes
  2137. current working directory to / and redirects stdin, stdout and
  2138. stderr to /dev/null.
  2139. * src/option_processing.cc
  2140. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Small performance optimizations.
  2142. * src/RequestGroupMan.cc
  2143. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2145. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2146. * src/RequestGroupMan.cc
  2147. * src/RequestGroupMan.h
  2148. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2150. setNoWiat(true) if newly created command calls
  2151. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2152. * src/HttpListenCommand.cc
  2153. * src/HttpServerBodyCommand.cc
  2154. * src/HttpServerCommand.cc
  2155. * src/HttpServerResponseCommand.cc
  2156. * src/InitiateConnectionCommand.cc
  2157. * src/RequestGroup.cc
  2158. * src/StreamFileAllocationEntry.cc
  2159. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Removed include vector
  2161. * src/BtRegistry.h
  2162. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Rewritten BtRegistry
  2164. * src/BtRegistry.cc
  2165. * src/BtRegistry.h
  2166. * src/BtSetup.cc
  2167. * src/ConsoleStatCalc.cc
  2168. * src/PeerInteractionCommand.cc
  2169. * src/PeerReceiveHandshakeCommand.cc
  2170. * src/ReceiverMSEHandshakeCommand.cc
  2171. * src/RequestGroup.cc
  2172. * src/XmlRpcMethodImpl.cc
  2173. * test/BtRegistryTest.cc
  2174. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2176. * src/DefaultBtProgressInfoFile.cc
  2177. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Throw an exception if position is less than 0.
  2179. * src/XmlRpcMethodImpl.cc
  2180. * test/XmlRpcMethodTest.cc
  2181. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Use writeFilePath() in ConsoleStatCalc.cc
  2183. * src/ConsoleStatCalc.cc
  2184. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Receive the return value as const reference from
  2186. DownloadContext::getFileEntries().
  2187. * src/DefaultPieceStorage.cc
  2188. * src/RequestGroupMan.cc
  2189. * src/XmlRpcMethodImpl.cc
  2190. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. DownloadContext now has _fileEntries so that
  2192. DownloadContext::getFileEntries() can returns its const reference.
  2193. * src/DefaultBtContext.cc
  2194. * src/DefaultBtContext.h
  2195. * src/DownloadContext.cc
  2196. * src/DownloadContext.h
  2197. * src/SingleFileDownloadContext.cc
  2198. * src/SingleFileDownloadContext.h
  2199. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2201. writeFilePath() function template from RequestGroupMan.cc to
  2202. FileEntry.h
  2203. * src/FileEntry.h
  2204. * src/RequestGroupMan.cc
  2205. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Documented 'position' parameter is starting from 0 in man page.
  2207. * doc/aria2c.1.txt
  2208. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Updated doc.
  2210. * src/MSEHandshake.cc
  2211. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Removed _acceptFeatures and its accessor functions from
  2213. RequestGroup since they are not used practically.
  2214. * src/HttpRequestCommand.cc
  2215. * src/RequestGroup.cc
  2216. * src/RequestGroup.h
  2217. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Removed member _maxTries from RequestGroup class to avoid
  2219. duplicate option value. Those classes who refer this variable
  2220. should use option value of PREF_MAX_TRIES directly.
  2221. * src/AbstractCommand.cc
  2222. * src/RequestGroup.cc
  2223. * src/RequestGroup.h
  2224. * src/TrackerWatcherCommand.cc
  2225. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. * Release 1.4.1
  2227. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Fixed compiler warnings on netbsd
  2229. * src/DHTConnectionImpl.cc
  2230. * src/PeerListenCommand.cc
  2231. * src/PeerSessionResource.cc
  2232. * src/SegmentMan.cc
  2233. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Updated Ukrainian translation. Thanks to all translators.
  2235. * po/uk.po
  2236. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Bump up version number to 1.4.1.
  2238. * configure.ac
  2239. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added unit tests for strjoin, strconcat and strappend.
  2241. * test/a2functionalTest.cc
  2242. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Rewritten strconcat and strappend using operator+ instead of
  2244. append().
  2245. * src/a2functional.h
  2246. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2248. is enabled.
  2249. * src/Makefile.am
  2250. * test/Makefile.am
  2251. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Added countSeeder() function which counts seeder in the given
  2253. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2254. * src/ConsoleStatCalc.cc
  2255. * src/Peer.h
  2256. * src/XmlRpcMethodImpl.cc
  2257. * test/PeerTest.cc
  2258. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Documented missing seeder in getPeers xml-rpc method.
  2260. Documented uploadLength and numSeeders.
  2261. * doc/aria2c.1.txt
  2262. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Added uploadLength and numSeeders to the response of tellStatus
  2264. xml-rpc method. Assert that PeerStorage instance is not null
  2265. instead of checking if statement. It should be non-null in this
  2266. context.
  2267. * src/XmlRpcMethodImpl.cc
  2268. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2270. * src/XmlRpcResponse.cc
  2271. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Avoid intermediate object during string concatenation.
  2273. * src/HttpRequest.cc
  2274. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Added strjoin function template. Use it in pathJoin()
  2276. * src/Util.h
  2277. * src/a2functional.h
  2278. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Avoid intermediate object during string concatenation. Replaced
  2280. post-increment unary operator with pre-increment one in for loop.
  2281. * src/AdaptiveURISelector.cc
  2282. * src/AnnounceList.cc
  2283. * src/AuthConfig.h
  2284. * src/BtBitfieldMessage.cc
  2285. * src/BtExtendedMessage.cc
  2286. * src/BtHandshakeMessage.cc
  2287. * src/BtPieceMessage.cc
  2288. * src/BtPortMessage.cc
  2289. * src/Cookie.cc
  2290. * src/DHTAnnouncePeerMessage.cc
  2291. * src/DHTAutoSaveCommand.cc
  2292. * src/DHTGetPeersReplyMessage.cc
  2293. * src/DHTNode.cc
  2294. * src/DHTQueryMessage.cc
  2295. * src/DHTResponseMessage.cc
  2296. * src/DHTUnknownMessage.cc
  2297. * src/DefaultBtAnnounce.cc
  2298. * src/DefaultBtContext.cc
  2299. * src/DefaultBtInteractive.cc
  2300. * src/DefaultBtProgressInfoFile.cc
  2301. * src/DefaultPeerStorage.cc
  2302. * src/DownloadEngine.cc
  2303. * src/FeatureConfig.cc
  2304. * src/File.cc
  2305. * src/FtpConnection.cc
  2306. * src/FtpNegotiationCommand.cc
  2307. * src/HandshakeExtensionMessage.cc
  2308. * src/HttpConnection.cc
  2309. * src/HttpRequest.cc
  2310. * src/HttpResponseCommand.cc
  2311. * src/HttpServer.cc
  2312. * src/IndexBtMessage.cc
  2313. * src/Metalink2RequestGroup.cc
  2314. * src/OptionHandlerImpl.h
  2315. * src/PStringBuildVisitor.cc
  2316. * src/Peer.cc
  2317. * src/PeerListenCommand.cc
  2318. * src/Piece.cc
  2319. * src/RangeBtMessage.cc
  2320. * src/Request.cc
  2321. * src/Request.h
  2322. * src/RequestGroup.cc
  2323. * src/RequestGroupMan.cc
  2324. * src/ServerStat.cc
  2325. * src/ServerStatMan.cc
  2326. * src/UTPexExtensionMessage.cc
  2327. * src/Util.cc
  2328. * src/a2functional.h
  2329. * src/download_helper.cc
  2330. * src/messageDigest.cc
  2331. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Unchoke a peer randomly at first and second choke round in seed
  2333. state.
  2334. * src/BtSeederStateChoke.cc
  2335. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2336. Added (sock_t) to quiet compiler warnings in MinGW
  2337. * src/SocketCore.cc
  2338. * src/SocketCore.h
  2339. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2341. * src/EpollEventPoll.h
  2342. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2343. Added fork() emulation using CreateProcess() in MinGW
  2344. * src/RequestGroupMan.cc
  2345. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. * Release 1.4.0
  2347. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Added utf8.torrent to EXTRA_DIST
  2349. * test/Makefile.am
  2350. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Fixed docs of aria2.addMetalink xml-rpc method.
  2352. * doc/aria2c.1.txt
  2353. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Added Slovak translation. Updated Ukrainian and Brazilian
  2355. Portuguese translation. Thanks to all translators.
  2356. * po/sk.po
  2357. * po/uk.po
  2358. * po/pt_BR.po
  2359. * po/LINGUAS
  2360. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Added test case for XmlRpcProcessor to fail to parse malformed
  2362. document.
  2363. * test/XmlRpcRequestProcessorTest.cc
  2364. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Removed *.gmo files in po because they are generated on 'make
  2366. dist'
  2367. * po/*.gmo
  2368. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Documented max-concurrent-downloads of changeGlobalOption method
  2370. in man page.
  2371. * doc/aria2c.1.txt
  2372. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Added max-concurrent-downloads option to changeGlobalOption
  2374. xml-rpc method. Rewritten loop conditional in
  2375. RequestGroupMan::fillRequestGroupFromReserver().
  2376. * src/RequestGroupMan.cc
  2377. * src/RequestGroupMan.h
  2378. * src/XmlRpcMethod.cc
  2379. * src/XmlRpcMethodImpl.cc
  2380. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Documented position parameter in man page.
  2382. * doc/aria2c.1.txt
  2383. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Added 'position' parameter to addUri, addTorrent and addMetalink
  2385. xml-rpc method.
  2386. * src/RequestGroupMan.cc
  2387. * src/RequestGroupMan.h
  2388. * src/XmlRpcMethodImpl.cc
  2389. * test/XmlRpcMethodTest.cc
  2390. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Removed Peer.cc from compile source list when --disable-bittorrent
  2392. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2393. takes Peer.
  2394. * src/DefaultPieceStorage.cc
  2395. * src/DefaultPieceStorage.h
  2396. * src/Makefile.am
  2397. * src/PieceStorage.h
  2398. * src/UnknownLengthPieceStorage.cc
  2399. * src/UnknownLengthPieceStorage.h
  2400. * test/MockPieceStorage.h
  2401. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Implemented getter methods in header files to give them more
  2403. chance of optimization.
  2404. Return const reference for SharadHandle if possible.
  2405. * src/AbstractAuthResolver.cc
  2406. * src/AbstractAuthResolver.h
  2407. * src/AbstractBtMessage.cc
  2408. * src/AbstractBtMessage.h
  2409. * src/AbstractSingleDiskAdaptor.cc
  2410. * src/AbstractSingleDiskAdaptor.h
  2411. * src/AsyncNameResolver.cc
  2412. * src/AsyncNameResolver.h
  2413. * src/BNode.cc
  2414. * src/BNode.h
  2415. * src/BitfieldMan.cc
  2416. * src/BitfieldMan.h
  2417. * src/BtAbortOutstandingRequestEvent.h
  2418. * src/BtExtendedMessage.cc
  2419. * src/BtExtendedMessage.h
  2420. * src/BtSeederStateChoke.cc
  2421. * src/BtSeederStateChoke.h
  2422. * src/Cookie.cc
  2423. * src/Cookie.h
  2424. * src/DHTBucket.cc
  2425. * src/DHTBucket.h
  2426. * src/DHTConnectionImpl.cc
  2427. * src/DHTConnectionImpl.h
  2428. * src/DHTFindNodeReplyMessage.cc
  2429. * src/DHTFindNodeReplyMessage.h
  2430. * src/DHTGetPeersReplyMessage.cc
  2431. * src/DHTGetPeersReplyMessage.h
  2432. * src/DHTInteractionCommand.cc
  2433. * src/DHTMessage.cc
  2434. * src/DHTMessage.h
  2435. * src/DHTMessageDispatcherImpl.cc
  2436. * src/DHTMessageEntry.cc
  2437. * src/DHTMessageReceiver.cc
  2438. * src/DHTMessageReceiver.h
  2439. * src/DHTMessageTrackerEntry.cc
  2440. * src/DHTMessageTrackerEntry.h
  2441. * src/DHTPeerAnnounceEntry.cc
  2442. * src/DHTPeerAnnounceEntry.h
  2443. * src/DHTPeerLookupTask.cc
  2444. * src/DHTPeerLookupTask.h
  2445. * src/DHTRoutingTableDeserializer.cc
  2446. * src/DHTRoutingTableDeserializer.h
  2447. * src/DefaultBtAnnounce.cc
  2448. * src/DefaultBtAnnounce.h
  2449. * src/DefaultBtMessageDispatcher.cc
  2450. * src/DefaultBtMessageDispatcher.h
  2451. * src/DefaultBtRequestFactory.cc
  2452. * src/DefaultBtRequestFactory.h
  2453. * src/DiskAdaptor.cc
  2454. * src/DiskAdaptor.h
  2455. * src/DownloadContext.cc
  2456. * src/DownloadContext.h
  2457. * src/DownloadEngine.cc
  2458. * src/DownloadEngine.h
  2459. * src/EpollEventPoll.cc
  2460. * src/EpollEventPoll.h
  2461. * src/FtpConnection.cc
  2462. * src/FtpConnection.h
  2463. * src/HttpConnection.cc
  2464. * src/HttpConnection.h
  2465. * src/HttpHeader.cc
  2466. * src/HttpHeader.h
  2467. * src/HttpRequest.cc
  2468. * src/HttpRequest.h
  2469. * src/HttpResponse.cc
  2470. * src/HttpResponse.h
  2471. * src/LibsslTLSContext.cc
  2472. * src/LibsslTLSContext.h
  2473. * src/MSEHandshake.cc
  2474. * src/MSEHandshake.h
  2475. * src/MetalinkEntry.cc
  2476. * src/MetalinkEntry.h
  2477. * src/MetalinkParserController.cc
  2478. * src/MetalinkParserController.h
  2479. * src/MetalinkParserStateMachine.cc
  2480. * src/MetalinkParserStateMachine.h
  2481. * src/MultiDiskAdaptor.cc
  2482. * src/MultiDiskAdaptor.h
  2483. * src/NetrcAuthResolver.cc
  2484. * src/NetrcAuthResolver.h
  2485. * src/Peer.cc
  2486. * src/Peer.h
  2487. * src/PeerSessionResource.cc
  2488. * src/PeerSessionResource.h
  2489. * src/Piece.cc
  2490. * src/Piece.h
  2491. * src/PieceStatMan.cc
  2492. * src/PieceStatMan.h
  2493. * src/Request.cc
  2494. * src/Request.h
  2495. * src/RequestGroup.cc
  2496. * src/RequestGroup.h
  2497. * src/RequestGroupMan.cc
  2498. * src/RequestGroupMan.h
  2499. * src/RequestSlot.cc
  2500. * src/RequestSlot.h
  2501. * src/SegmentMan.cc
  2502. * src/SegmentMan.h
  2503. * src/SelectEventPoll.cc
  2504. * src/SelectEventPoll.h
  2505. * src/ServerStat.cc
  2506. * src/ServerStat.h
  2507. * src/Signature.cc
  2508. * src/Signature.h
  2509. * src/URIResult.cc
  2510. * src/URIResult.h
  2511. * src/UTPexExtensionMessage.cc
  2512. * src/UTPexExtensionMessage.h
  2513. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Fixed compile error without BitTorrent and Metalink support.
  2515. * src/XmlRpcMethod.cc
  2516. * src/XmlRpcMethodFactory.cc
  2517. * src/XmlRpcMethodImpl.cc
  2518. * src/XmlRpcMethodImpl.h
  2519. * test/XmlRpcMethodTest.cc
  2520. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Rewritten the help message for --allow-overwrite option.
  2522. * doc/aria2c.1.txt
  2523. * src/usage_text.h
  2524. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Fixed typo
  2526. * doc/aria2c.1.txt
  2527. * src/usage_text.h
  2528. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Updated README for 1.4.0 release. Use new table syntax of
  2530. asciidoc.
  2531. * README
  2532. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Documented --xml-rpc-max-request-size option in man page.
  2534. * doc/aria2c.1.txt
  2535. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Moved C_* constants from BtContext to DefaultBtContext.
  2537. * src/BtContext.cc: Removed.
  2538. * src/BtContext.h
  2539. * src/DefaultBtContext.cc
  2540. * src/DefaultBtContext.h
  2541. * src/Makefile.am
  2542. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2544. path key respectively when persing .torrent file.
  2545. * src/BtContext.cc
  2546. * src/BtContext.h
  2547. * src/DefaultBtContext.cc
  2548. * test/DefaultBtContextTest.cc
  2549. * test/utf8.torrent
  2550. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Added --xml-rpc-max-request-size option to limit the size of
  2552. XML-RPC request.
  2553. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Documented XML-RPC API in man page.
  2555. * doc/aria2c.1.txt
  2556. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2558. will break strict-aliasing rules
  2559. * src/PeerConnection.cc
  2560. * test/DHTRoutingTableSerializerTest.cc
  2561. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2563. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2564. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2565. PKG_CHECK_MODULES macro uses latter name.
  2566. * m4/sqlite3.m4
  2567. * src/Makefile.am
  2568. * test/Makefile.am
  2569. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Fixed typo
  2571. * configure.ac
  2572. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2574. presence of libgnutls using pkg-config first. If it fails, fall
  2575. back to old macro libgnutls.m4.
  2576. * configure.ac
  2577. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Use s itself instead of !s.bad()
  2579. * src/CookieStorage.cc
  2580. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Documented --on-download-* option and --save-cookies option in man
  2582. page.
  2583. * doc/aria2c.1.txt
  2584. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Set possible values for --load-cookie option to "/path/to/file".
  2586. * src/OptionHandlerFactory.cc
  2587. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Added --save-cookies option.
  2589. * src/Cookie.cc
  2590. * src/Cookie.h
  2591. * src/CookieStorage.cc
  2592. * src/CookieStorage.h
  2593. * src/MultiUrlRequestInfo.cc
  2594. * src/OptionHandlerFactory.cc
  2595. * src/prefs.cc
  2596. * src/prefs.h
  2597. * src/usage_text.h
  2598. * test/CookieStorageTest.cc
  2599. * test/CookieTest.cc
  2600. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Removed tellAll XML-RPC command because its reponse tends to be
  2602. big if stopped/waiting downloads pile up.
  2603. * src/XmlRpcMethodFactory.cc
  2604. * src/XmlRpcMethodImpl.cc
  2605. * src/XmlRpcMethodImpl.h
  2606. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Added the ability to execute command when download starts and
  2608. stops. You can also specify command for particular cases such as
  2609. complete/error download. Added --on-download-start,
  2610. --on-download-stop, --on-download-complete and --on-download-error
  2611. option.
  2612. * src/OptionHandlerFactory.cc
  2613. * src/RequestGroupMan.cc
  2614. * src/prefs.cc
  2615. * src/prefs.h
  2616. * src/usage_text.h
  2617. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Fixed test error
  2619. * test/BencodeTest.cc
  2620. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Added unit tests.
  2622. * test/XmlRpcMethodTest.cc
  2623. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Made exception message more verbose.
  2625. * src/bencode.cc
  2626. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2628. space in console readout. Also they are now shown in MiB/s if
  2629. speed > 1024KiB/s.
  2630. * src/ConsoleStatCalc.cc
  2631. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Added SEED to console output, which represents the number of
  2633. seeders currently the client is connecting to.
  2634. * src/ConsoleStatCalc.cc
  2635. * src/ConsoleStatCalc.h
  2636. * src/DownloadEngine.cc
  2637. * src/NullStatCalc.h
  2638. * src/StatCalc.h
  2639. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Added source filename(__FILE__) and line number(__LINE__) to
  2641. exception message.
  2642. * src/AbstractCommand.cc
  2643. * src/AbstractDiskWriter.cc
  2644. * src/AbstractProxyResponseCommand.cc
  2645. * src/BDE.h
  2646. * src/BtAllowedFastMessage.cc
  2647. * src/BtHandshakeMessageValidator.h
  2648. * src/BtHaveAllMessage.cc
  2649. * src/BtHaveNoneMessage.cc
  2650. * src/BtPieceMessage.cc
  2651. * src/BtRejectMessage.cc
  2652. * src/ChunkedDecoder.cc
  2653. * src/CookieStorage.cc
  2654. * src/DHTAnnouncePeerMessage.cc
  2655. * src/DHTEntryPointNameResolveCommand.cc
  2656. * src/DHTMessageFactoryImpl.cc
  2657. * src/DHTMessageTracker.cc
  2658. * src/DHTRoutingTableDeserializer.cc
  2659. * src/DHTRoutingTableSerializer.cc
  2660. * src/DHTSetup.cc
  2661. * src/DHTTokenTracker.cc
  2662. * src/DefaultBtAnnounce.cc
  2663. * src/DefaultBtContext.cc
  2664. * src/DefaultBtInteractive.cc
  2665. * src/DefaultBtMessageFactory.cc
  2666. * src/DefaultBtProgressInfoFile.cc
  2667. * src/DefaultExtensionMessageFactory.cc
  2668. * src/DlAbortEx.h
  2669. * src/DlRetryEx.h
  2670. * src/DownloadCommand.cc
  2671. * src/DownloadEngineFactory.cc
  2672. * src/DownloadFailureException.h
  2673. * src/Exception.cc
  2674. * src/Exception.h
  2675. * src/ExpatMetalinkProcessor.cc
  2676. * src/ExpatXmlRpcRequestProcessor.cc
  2677. * src/FallocFileAllocationIterator.cc
  2678. * src/FatalException.h
  2679. * src/FtpConnection.cc
  2680. * src/FtpFinishDownloadCommand.cc
  2681. * src/FtpInitiateConnectionCommand.cc
  2682. * src/FtpNegotiationCommand.cc
  2683. * src/GZipDecoder.cc
  2684. * src/HandshakeExtensionMessage.cc
  2685. * src/HttpConnection.cc
  2686. * src/HttpHeaderProcessor.cc
  2687. * src/HttpInitiateConnectionCommand.cc
  2688. * src/HttpResponse.cc
  2689. * src/HttpResponseCommand.cc
  2690. * src/HttpServer.cc
  2691. * src/HttpSkipResponseCommand.cc
  2692. * src/InitiateConnectionCommandFactory.cc
  2693. * src/IteratableChunkChecksumValidator.cc
  2694. * src/LibgcryptARC4Context.h
  2695. * src/LibgcryptARC4Decryptor.h
  2696. * src/LibgcryptARC4Encryptor.h
  2697. * src/LibgcryptDHKeyExchange.h
  2698. * src/LibgnutlsTLSContext.cc
  2699. * src/LibsslARC4Context.h
  2700. * src/LibsslARC4Decryptor.h
  2701. * src/LibsslARC4Encryptor.h
  2702. * src/LibsslDHKeyExchange.h
  2703. * src/LibsslTLSContext.cc
  2704. * src/MSEHandshake.cc
  2705. * src/MessageDigestHelper.cc
  2706. * src/MetalinkHelper.cc
  2707. * src/MultiDiskAdaptor.cc
  2708. * src/NameMatchOptionHandler.h
  2709. * src/NameResolver.cc
  2710. * src/Netrc.cc
  2711. * src/NsCookieParser.cc
  2712. * src/OptionHandlerException.cc
  2713. * src/OptionHandlerException.h
  2714. * src/OptionHandlerImpl.h
  2715. * src/OptionParser.cc
  2716. * src/ParameterizedStringParser.cc
  2717. * src/PeerAbstractCommand.cc
  2718. * src/PeerConnection.cc
  2719. * src/PeerMessageUtil.cc
  2720. * src/PeerReceiveHandshakeCommand.cc
  2721. * src/Platform.cc
  2722. * src/ReceiverMSEHandshakeCommand.cc
  2723. * src/RecoverableException.h
  2724. * src/RequestGroup.cc
  2725. * src/SimpleLogger.cc
  2726. * src/SocketCore.cc
  2727. * src/Sqlite3MozCookieParser.cc
  2728. * src/UTPexExtensionMessage.cc
  2729. * src/Util.cc
  2730. * src/XML2SAXMetalinkProcessor.cc
  2731. * src/Xml2XmlRpcRequestProcessor.cc
  2732. * src/XmlRpcMethodImpl.cc
  2733. * src/bencode.cc
  2734. * src/download_helper.cc
  2735. * src/messageDigest.h
  2736. * test/ExceptionTest.cc
  2737. * test/TestUtil.cc
  2738. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Bump up version number to 1.4.0
  2740. * configure.ac
  2741. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Added 2files.metalink to EXTRA_DIST
  2743. * test/Makefile.am
  2744. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Added missing 2files.metalink
  2746. * test/2files.metalink
  2747. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Show "[MEMORY]" prefix before filename in download summary if it
  2749. is downloaded into memory.
  2750. * src/DownloadResult.h
  2751. * src/RequestGroup.cc
  2752. * src/RequestGroupMan.cc
  2753. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2755. * src/ExpatXmlRpcRequestProcessor.cc
  2756. * src/Xml2XmlRpcRequestProcessor.cc
  2757. * src/message.h
  2758. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Defined const BDEs to avoid duplicate instantiation.
  2760. Defined MSG_GID_NOT_PROVIDED.
  2761. * src/XmlRpcMethodImpl.cc
  2762. * src/message.h
  2763. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Code cleanup
  2765. * src/Xml2XmlRpcRequestProcessor.cc
  2766. * src/Xml2XmlRpcRequestProcessor.h
  2767. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Defined ENABLE_XML_RPC
  2769. * configure.ac
  2770. * configure
  2771. * config.h.in
  2772. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Added ExpatXmlRpcRequestProcessor
  2774. * src/ExpatXmlRpcRequestProcessor.cc
  2775. * src/ExpatXmlRpcRequestProcessor.h
  2776. * src/Makefile.am
  2777. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Added tests for addTorrent and addMetalink command.
  2779. * test/TestUtil.cc
  2780. * test/TestUtil.h
  2781. * test/XmlRpcMethodTest.cc
  2782. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Corrected the description of --file-allocation option.
  2784. * doc/aria2c.1.txt
  2785. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Added tellAll command.
  2787. * src/XmlRpcMethodFactory.cc
  2788. * src/XmlRpcMethodImpl.cc
  2789. * src/XmlRpcMethodImpl.h
  2790. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2792. * src/XmlRpcMethodImpl.cc
  2793. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Added changeGlobalOption command. Currently,
  2795. max-overall-download-limit and max-overall-upload-limit option are
  2796. available.
  2797. * src/RequestGroupMan.h
  2798. * src/XmlRpcMethod.cc
  2799. * src/XmlRpcMethod.h
  2800. * src/XmlRpcMethodFactory.cc
  2801. * src/XmlRpcMethodImpl.cc
  2802. * src/XmlRpcMethodImpl.h
  2803. * test/XmlRpcMethodTest.cc
  2804. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Added changeOption command. Currently, max-download-limit,
  2806. max-upload-limit option are available in this command.
  2807. * src/RequestGroup.h
  2808. * src/XmlRpcMethod.cc
  2809. * src/XmlRpcMethod.h
  2810. * src/XmlRpcMethodFactory.cc
  2811. * src/XmlRpcMethodImpl.cc
  2812. * src/XmlRpcMethodImpl.h
  2813. * test/XmlRpcMethodTest.cc
  2814. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Added purgeDownloadResult command.
  2816. * src/RequestGroupMan.cc
  2817. * src/RequestGroupMan.h
  2818. * src/XmlRpcMethodFactory.cc
  2819. * src/XmlRpcMethodImpl.cc
  2820. * src/XmlRpcMethodImpl.h
  2821. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Refactored.
  2823. * src/XmlRpcMethod.cc
  2824. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2826. XmlRpcResponse.
  2827. * src/HttpServerBodyCommand.cc
  2828. * src/Makefile.am
  2829. * src/XmlRpcMethod.cc
  2830. * src/XmlRpcMethod.h
  2831. * src/XmlRpcMethodImpl.cc
  2832. * src/XmlRpcResponse.cc
  2833. * src/XmlRpcResponse.h
  2834. * test/XmlRpcMethodTest.cc
  2835. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. In XML-RPC option struct, header and index-out option can take
  2837. array as value.
  2838. * src/XmlRpcMethod.cc
  2839. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Removed unused option member from PeerConnection.
  2841. * src/InitiatorMSEHandshakeCommand.cc
  2842. * src/PeerConnection.cc
  2843. * src/PeerConnection.h
  2844. * src/PeerInteractionCommand.cc
  2845. * src/PeerReceiveHandshakeCommand.cc
  2846. * src/ReceiverMSEHandshakeCommand.cc
  2847. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Added "seeder" key to getPeers response.
  2849. * src/XmlRpcMethodImpl.cc
  2850. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Added addMetalink XML-RPC command.
  2852. * src/XmlRpcMethodFactory.cc
  2853. * src/XmlRpcMethodImpl.cc
  2854. * src/XmlRpcMethodImpl.h
  2855. * src/download_helper.cc
  2856. * src/download_helper.h
  2857. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Fixed the bug that POU peers are never choked in seeding.
  2859. * src/BtSeederStateChoke.cc
  2860. * src/BtSeederStateChoke.h
  2861. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Added web-seeding URI handling in addTorrent command.
  2863. * src/XmlRpcMethodImpl.cc
  2864. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Added "length" key to getFiles response.
  2866. * src/XmlRpcMethodImpl.cc
  2867. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2868. Moved --no-netrc option from ftp option section to http/ftp option
  2869. section.
  2870. * doc/aria2c.1.txt
  2871. * src/OptionHandlerFactory.cc
  2872. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Removed garbage "\" character before '
  2874. * doc/aria2c.1.txt
  2875. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Removed garbage "\" character before http.
  2877. * doc/aria2c.1.txt
  2878. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Documented additional options that can be specified in -i list.
  2880. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2881. and --xml-rpc-passwd. Removed --enable-http-server and
  2882. --http-server-listen-port.
  2883. * doc/aria2c.1.txt
  2884. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2886. * src/DefaultPeerStorage.cc
  2887. * src/DefaultPeerStorage.h
  2888. * src/PeerStorage.h
  2889. * src/XmlRpcMethodImpl.cc
  2890. * test/MockPeerStorage.h
  2891. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Put a call to Socket::isReadable() in try block.
  2893. * src/HttpServerBodyCommand.cc
  2894. * src/HttpServerCommand.cc
  2895. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2897. exception , so it is now in try block.
  2898. * src/HttpServerResponseCommand.cc
  2899. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Added "amChoking" and "peerChoking" key in getPeers response.
  2901. * src/XmlRpcMethodImpl.cc
  2902. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Added test case for zero-length filter.
  2904. * test/BitfieldManTest.cc
  2905. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. getFiles command now returns file data for finished/stopped
  2907. downloads.
  2908. * src/XmlRpcMethodImpl.cc
  2909. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. DownloadResult now has the list of FileEntry. The download
  2911. summary displays the path of first selected file and the number of
  2912. remaining files for multi-file torrent.
  2913. * src/DownloadResult.h
  2914. * src/RequestGroup.cc
  2915. * src/RequestGroupMan.cc
  2916. * test/RequestGroupTest.cc
  2917. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Fixed segmentation fault error when no file is selected in
  2919. multi-file torrent.
  2920. * src/BitfieldMan.cc
  2921. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Escaped <,>,& character in XML-RPC response.
  2923. * src/XmlRpcMethod.cc
  2924. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Throw DlAbortEx instead of FatalException during parsing options
  2926. because we don't want for aria2 to quit when bad option is passed
  2927. via XML-RPC.
  2928. * src/OptionHandlerException.cc
  2929. * src/OptionHandlerException.h
  2930. * src/OptionHandlerImpl.h
  2931. * src/OptionParser.cc
  2932. * src/OptionParser.h
  2933. * src/PStringSegment.cc
  2934. * src/ParameterizedStringParser.cc
  2935. * src/download_helper.cc
  2936. * test/ParameterizedStringParserTest.cc
  2937. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Selecting files are now done in
  2939. DefaultBtContext::setFileFileter().
  2940. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2941. functions are removed because they are no longer used. Creating
  2942. filter in BitfieldMan is done in new funtion
  2943. PieceStorage::setupFileFilter()
  2944. * src/BtContext.cc
  2945. * src/BtContext.h
  2946. * src/DefaultBtContext.cc
  2947. * src/DefaultBtContext.h
  2948. * src/DefaultPieceStorage.cc
  2949. * src/DefaultPieceStorage.h
  2950. * src/DiskAdaptor.cc
  2951. * src/DiskAdaptor.h
  2952. * src/PieceStorage.h
  2953. * src/RequestGroup.cc
  2954. * src/UnknownLengthPieceStorage.h
  2955. * src/XmlRpcMethodImpl.cc
  2956. * test/DefaultBtContextTest.cc
  2957. * test/MockBtContext.h
  2958. * test/MockPieceStorage.h
  2959. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Fixed compile error on Mac OS X
  2961. * src/HttpServer.cc
  2962. * src/XmlRpcMethod.h
  2963. * src/XmlRpcMethodImpl.cc
  2964. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Use std::binary_search instead of std::find
  2966. * src/DefaultPieceStorage.cc
  2967. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2968. Removed unnecessary BDE() call; leave them to implicit conversion.
  2969. * src/XmlRpcMethodImpl.cc
  2970. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Return connections and gid in string
  2972. * src/XmlRpcMethodImpl.cc
  2973. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Renamed addURI as addUri
  2975. * src/XmlRpcMethodFactory.cc
  2976. * src/XmlRpcMethodImpl.cc
  2977. * src/XmlRpcMethodImpl.h
  2978. * test/XmlRpcMethodTest.cc
  2979. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Renamed addTorrentFile as addTorrent
  2981. * src/XmlRpcMethodFactory.cc
  2982. * src/XmlRpcMethodImpl.cc
  2983. * src/XmlRpcMethodImpl.h
  2984. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. The information for files, URIs, peers are removed from the
  2986. reponse of TellaActive, TellStatus command because they tend to be
  2987. large. Instead they can be retrieved by the dedicated commands:
  2988. getFiles, getUris and getPeers respectively.
  2989. * src/XmlRpcMethodFactory.cc
  2990. * src/XmlRpcMethodImpl.cc
  2991. * src/XmlRpcMethodImpl.h
  2992. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Removed --max-overall-upload-limit and
  2994. --max-overall-download-limit option from listRequestOptions.
  2995. * src/download_helper.cc
  2996. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Log incoming host in HttpListenCommand.
  2998. * src/HttpListenCommand.cc
  2999. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3001. --xml-rpc-passwd option.
  3002. * src/HttpServer.cc
  3003. * src/HttpServer.h
  3004. * src/HttpServerCommand.cc
  3005. * src/OptionHandlerFactory.cc
  3006. * src/prefs.cc
  3007. * src/prefs.h
  3008. * src/usage_text.h
  3009. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3011. processing 0 length request.
  3012. * src/HttpServerBodyCommand.cc
  3013. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Removed --enable-http-server and --http-server-listen-port
  3015. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3016. instead. The original feature for --enable-http-server that
  3017. reports download progress in HTML was officially removed. Persist
  3018. XML-RPC connection if client supports keep-alive.
  3019. * src/DownloadEngineFactory.cc
  3020. * src/HttpServerCommand.cc
  3021. * src/HttpServerResponseCommand.cc
  3022. * src/Makefile.am
  3023. * src/Makefile.in
  3024. * src/OptionHandlerFactory.cc
  3025. * src/RequestGroupMan.cc
  3026. * src/main.cc
  3027. * src/option_processing.cc
  3028. * src/prefs.cc
  3029. * src/prefs.h
  3030. * src/usage_text.h
  3031. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Added "uris" key to the response of tellStatus command. Added
  3033. "connections" key to the response of tellStatus and tellActive
  3034. command.
  3035. * src/XmlRpcMethodImpl.cc
  3036. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3038. Added TellStatusXmlRpcMethod. Remove command can now remove
  3039. waiting RequestGroup.
  3040. * src/RequestGroupMan.cc
  3041. * src/RequestGroupMan.h
  3042. * src/XmlRpcMethodFactory.cc
  3043. * src/XmlRpcMethodImpl.cc
  3044. * src/XmlRpcMethodImpl.h
  3045. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Initialized _peerId
  3047. * src/Peer.cc
  3048. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Return fault structure for error. FailXmlRpcMethod is renamed as
  3050. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3051. in non-torrent download. Return single param value.
  3052. * src/XmlRpcMethod.cc
  3053. * src/XmlRpcMethodFactory.cc
  3054. * src/XmlRpcMethodImpl.cc
  3055. * src/XmlRpcMethodImpl.h
  3056. * test/XmlRpcMethodTest.cc
  3057. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3059. command.
  3060. * src/RequestGroup.cc
  3061. * src/RequestGroup.h
  3062. * src/RequestGroupMan.cc
  3063. * src/XmlRpcMethodImpl.cc
  3064. * test/RequestGroupTest.cc
  3065. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Added more options that can be specified in -i list and xml-rpc
  3067. add* command.
  3068. * src/download_helper.h
  3069. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. The available options in -i list should be listed in
  3071. listRequestOptions().
  3072. * src/download_helper.cc
  3073. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3075. command.
  3076. * src/XmlRpcMethodImpl.cc
  3077. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Now RequestGroup has its own copy of Option object. This will help
  3079. to give custom option for each RequestGroup.
  3080. addTorrentFile command now takes options.
  3081. * src/AbstractCommand.cc
  3082. * src/AbstractCommand.h
  3083. * src/AbstractProxyRequestCommand.cc
  3084. * src/ActivePeerConnectionCommand.cc
  3085. * src/ActivePeerConnectionCommand.h
  3086. * src/AdaptiveURISelector.cc
  3087. * src/BtCheckIntegrityEntry.cc
  3088. * src/BtDependency.cc
  3089. * src/BtDependency.h
  3090. * src/BtFileAllocationEntry.cc
  3091. * src/BtPostDownloadHandler.cc
  3092. * src/CheckIntegrityEntry.cc
  3093. * src/DownloadCommand.cc
  3094. * src/FtpDownloadCommand.cc
  3095. * src/FtpFinishDownloadCommand.cc
  3096. * src/FtpInitiateConnectionCommand.cc
  3097. * src/FtpNegotiationCommand.cc
  3098. * src/HttpInitiateConnectionCommand.cc
  3099. * src/HttpRequestCommand.cc
  3100. * src/HttpResponseCommand.cc
  3101. * src/HttpSkipResponseCommand.cc
  3102. * src/InitiateConnectionCommand.cc
  3103. * src/InitiateConnectionCommandFactory.cc
  3104. * src/InitiatorMSEHandshakeCommand.cc
  3105. * src/InitiatorMSEHandshakeCommand.h
  3106. * src/Metalink2RequestGroup.cc
  3107. * src/Metalink2RequestGroup.h
  3108. * src/MetalinkPostDownloadHandler.cc
  3109. * src/MultiUrlRequestInfo.cc
  3110. * src/MultiUrlRequestInfo.h
  3111. * src/PeerAbstractCommand.cc
  3112. * src/PeerInteractionCommand.cc
  3113. * src/PeerInteractionCommand.h
  3114. * src/PeerReceiveHandshakeCommand.cc
  3115. * src/PeerReceiveHandshakeCommand.h
  3116. * src/RequestGroup.cc
  3117. * src/RequestGroup.h
  3118. * src/TrackerWatcherCommand.cc
  3119. * src/TrackerWatcherCommand.h
  3120. * src/XmlRpcMethod.cc
  3121. * src/XmlRpcMethod.h
  3122. * src/XmlRpcMethodImpl.cc
  3123. * src/download_helper.cc
  3124. * src/download_helper.h
  3125. * src/main.cc
  3126. * test/BtDependencyTest.cc
  3127. * test/BtPostDownloadHandlerTest.cc
  3128. * test/DefaultBtMessageDispatcherTest.cc
  3129. * test/DownloadHandlerFactoryTest.cc
  3130. * test/DownloadHelperTest.cc
  3131. * test/Metalink2RequestGroupTest.cc
  3132. * test/MetalinkPostDownloadHandlerTest.cc
  3133. * test/RequestGroupManTest.cc
  3134. * test/RequestGroupTest.cc
  3135. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Added tellActiveStatus xml-rpc command which reports download
  3137. status of active downloads.
  3138. * src/XmlRpcMethodFactory.cc
  3139. * src/XmlRpcMethodImpl.cc
  3140. * src/XmlRpcMethodImpl.h
  3141. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Added addTorrentFile xml-rpc command which receives uploaded
  3143. torrent file and add download for it.
  3144. * src/RequestGroupMan.cc
  3145. * src/XmlRpcMethodFactory.cc
  3146. * src/XmlRpcMethodImpl.cc
  3147. * src/XmlRpcMethodImpl.h
  3148. * src/download_helper.cc
  3149. * src/download_helper.h
  3150. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Added remove xml-rpc command which removes specified download.
  3152. There is a known issue: the removed unfinished downloads are
  3153. reported ERR when aria2 exits. They should be reported as INPR.
  3154. * src/RequestGroupMan.cc
  3155. * src/RequestGroupMan.h
  3156. * src/XmlRpcMethodFactory.cc
  3157. * src/XmlRpcMethodImpl.cc
  3158. * src/XmlRpcMethodImpl.h
  3159. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. If --enable-http-server is enabled, don't stop aria2 when all
  3161. download finished and don't quit when no files to download at
  3162. start up.
  3163. * src/RequestGroupMan.cc
  3164. * src/main.cc
  3165. * src/option_processing.cc
  3166. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Added missing AM_CONDITIONAL
  3168. * configure.ac
  3169. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Added xml-rpc functionality. Currently only addURI commad is
  3171. supported. To enable xml-rpc, run aria2 with
  3172. --enable-http-server. This option name is temporal and will be
  3173. changed. The feature that reports download progress in html format
  3174. is temporarily disabled.
  3175. * src/HttpServer.cc
  3176. * src/HttpServer.h
  3177. * src/HttpServerBodyCommand.cc
  3178. * src/HttpServerBodyCommand.h
  3179. * src/HttpServerCommand.cc
  3180. * src/HttpServerResponseCommand.cc
  3181. * src/Makefile.am
  3182. * src/OptionParser.cc
  3183. * src/OptionParser.h
  3184. * src/RequestGroupMan.cc
  3185. * src/RequestGroupMan.h
  3186. * src/XmlRpcMethod.cc
  3187. * src/XmlRpcMethod.h
  3188. * src/XmlRpcMethodFactory.cc
  3189. * src/XmlRpcMethodFactory.h
  3190. * src/XmlRpcMethodImpl.cc
  3191. * src/XmlRpcMethodImpl.h
  3192. * src/download_helper.cc
  3193. * src/download_helper.h
  3194. * test/Makefile.am
  3195. * test/XmlRpcMethodTest.cc
  3196. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Added xml-rpc request parser. The supported value types are:
  3198. i4/int, string, double, struct, array, base64. Currently only
  3199. libxml2 version is provided.
  3200. * src/Xml2XmlRpcRequestProcessor.cc
  3201. * src/Xml2XmlRpcRequestProcessor.h
  3202. * src/XmlRpcElements.cc
  3203. * src/XmlRpcElements.h
  3204. * src/XmlRpcRequest.h
  3205. * src/XmlRpcRequestParserController.cc
  3206. * src/XmlRpcRequestParserController.h
  3207. * src/XmlRpcRequestParserState.h
  3208. * src/XmlRpcRequestParserStateImpl.cc
  3209. * src/XmlRpcRequestParserStateImpl.h
  3210. * src/XmlRpcRequestParserStateMachine.cc
  3211. * src/XmlRpcRequestParserStateMachine.h
  3212. * src/XmlRpcRequestProcessor.h
  3213. * test/XmlRpcRequestParserControllerTest.cc
  3214. * test/XmlRpcRequestProcessorTest.cc
  3215. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3216. * Release 1.3.3
  3217. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Fixed compile error since r1202.
  3219. * src/ExpatMetalinkProcessor.cc
  3220. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Updated Ukrainian, Russian and Simplified Chinese
  3222. translations. Thanks to all translators.
  3223. * po/ru.po
  3224. * po/uk.po
  3225. * po/zh_CN.po
  3226. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Pass reference of Option object instead of pointer.
  3228. * src/download_helper.cc
  3229. * src/download_helper.h
  3230. * src/main.cc
  3231. * test/DownloadHelperTest.cc
  3232. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3234. from option directly. Instead, get them from RequestGroup.
  3235. * src/ActivePeerConnectionCommand.cc
  3236. * src/ActivePeerConnectionCommand.h
  3237. * src/PeerReceiveHandshakeCommand.cc
  3238. * src/RequestGroup.h
  3239. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Removed unused uploadLimitCheck and uploadLimit from
  3241. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3242. PeerInteractionCommand.
  3243. * src/PeerAbstractCommand.cc
  3244. * src/PeerAbstractCommand.h
  3245. * src/PeerInteractionCommand.cc
  3246. * src/PeerInteractionCommand.h
  3247. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Fixed broken file renaming feature since r1202.
  3249. * src/FtpNegotiationCommand.cc
  3250. * src/FtpNegotiationCommand.h
  3251. * src/HttpResponseCommand.cc
  3252. * src/RequestGroup.cc
  3253. * src/RequestGroup.h
  3254. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Removed unused debug log
  3256. * src/SocketCore.cc
  3257. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Generated configure and Makefile.in using autoconf 2.63 and
  3259. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3260. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3261. * configure.ac
  3262. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Moved piece statistics stuff to new PieceStatMan class.
  3264. Refactored PieceSelector interface.
  3265. * src/DefaultPieceStorage.cc
  3266. * src/DefaultPieceStorage.h
  3267. * src/LongestSequencePieceSelector.cc
  3268. * src/LongestSequencePieceSelector.h
  3269. * src/Makefile.am
  3270. * src/PieceSelector.h
  3271. * src/PieceStatMan.cc
  3272. * src/PieceStatMan.h
  3273. * src/RarestPieceSelector.cc
  3274. * src/RarestPieceSelector.h
  3275. * src/RequestGroup.cc
  3276. * test/DefaultPieceStorageTest.cc
  3277. * test/InOrderPieceSelector.h
  3278. * test/Makefile.am
  3279. * test/PieceStatManTest.cc
  3280. * test/RarestPieceSelectorTest.cc
  3281. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Added static member _protocolFamily to SocketCore. By default,
  3283. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3284. address. Sometime SocketCore::bind() and
  3285. SocketCore::establishConnection() use difference protocl family
  3286. and latter cannot connect to former. To avoid this situation, we
  3287. limit protocol family to AF_INET for unit tests.
  3288. * src/SocketCore.cc
  3289. * src/SocketCore.h
  3290. * test/AllTest.cc
  3291. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Avoid std::bad_alloc for negative bencode string length.
  3293. * src/bencode.cc
  3294. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Supported segmented downloading with chunked transfer encoding and
  3296. content-length.
  3297. * src/DownloadCommand.cc
  3298. * src/HttpResponseCommand.cc
  3299. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Bump up version number to 1.3.3
  3301. * configure.ac
  3302. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3304. from 4096 to 65536 (for insanely large ftp login banners)
  3305. * src/FtpConnection.h
  3306. * test/FtpConnectionTest.cc
  3307. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3308. In DefaultBtContext::getActualBasePath(), return first
  3309. FileEntry::getPath() for single file torrent.
  3310. * src/DefaultBtContext.cc
  3311. * test/DefaultBtContextTest.cc
  3312. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3314. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3315. Removed _directIOAllowed member from DiskWriter.
  3316. * src/AbstractDiskWriter.cc
  3317. * src/AbstractDiskWriter.h
  3318. * src/AbstractSingleDiskAdaptor.cc
  3319. * src/AbstractSingleDiskAdaptor.h
  3320. * src/BinaryStream.h
  3321. * src/ByteArrayDiskWriter.h
  3322. * src/DefaultPieceStorage.cc
  3323. * src/DiskWriter.h
  3324. * src/MultiDiskAdaptor.cc
  3325. * src/MultiDiskAdaptor.h
  3326. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3327. Now the constructor of AbstractDiskWriter takes filename as an
  3328. argument and filename argument is removed from openFile(),
  3329. initAndOpenFile(), openExistingFile() interface. storeDir member
  3330. and its accessor functions are removed from DiskAdaptor because it
  3331. is not used anymore. size() member function of DefaultDiskWriter,
  3332. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3333. opening file.
  3334. * src/AbstractDiskWriter.cc
  3335. * src/AbstractDiskWriter.h
  3336. * src/AbstractSingleDiskAdaptor.cc
  3337. * src/AbstractSingleDiskAdaptor.h
  3338. * src/ByteArrayDiskWriter.cc
  3339. * src/ByteArrayDiskWriter.h
  3340. * src/ByteArrayDiskWriterFactory.cc
  3341. * src/ByteArrayDiskWriterFactory.h
  3342. * src/DefaultDiskWriter.cc
  3343. * src/DefaultDiskWriter.h
  3344. * src/DefaultDiskWriterFactory.cc
  3345. * src/DefaultDiskWriterFactory.h
  3346. * src/DefaultPieceStorage.cc
  3347. * src/DirectDiskAdaptor.cc
  3348. * src/DirectDiskAdaptor.h
  3349. * src/DiskAdaptor.h
  3350. * src/DiskWriter.h
  3351. * src/DiskWriterFactory.h
  3352. * src/MessageDigestHelper.cc
  3353. * src/MultiDiskAdaptor.cc
  3354. * src/RequestGroup.cc
  3355. * src/UnknownLengthPieceStorage.cc
  3356. * src/Util.cc
  3357. * test/DefaultDiskWriterTest.cc
  3358. * test/DirectDiskAdaptorTest.cc
  3359. * test/FallocFileAllocationIteratorTest.cc
  3360. * test/MessageDigestHelperTest.cc
  3361. * test/MetalinkProcessorTest.cc
  3362. * test/MultiDiskAdaptorTest.cc
  3363. * test/MultiFileAllocationIteratorTest.cc
  3364. * test/SingleFileAllocationIteratorTest.cc
  3365. * test/UtilTest.cc
  3366. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Fixed the bug that aria2 aborts when --select-file is used. This
  3368. bug was introduced in r1199.
  3369. * src/MultiDiskAdaptor.cc
  3370. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Code cleanup
  3372. * test/MockPieceStorage.cc
  3373. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Fixed the bug that read-only file with wrong file size will cause
  3375. error because it cannot be truncated to the correct size. Now if
  3376. file size is different than the expected one, re-open file in
  3377. writable mode.
  3378. * src/AbstractSingleDiskAdaptor.cc
  3379. * src/AbstractSingleDiskAdaptor.h
  3380. * src/BtCheckIntegrityEntry.cc
  3381. * src/DiskAdaptor.h
  3382. * src/MultiDiskAdaptor.h
  3383. * src/RequestGroup.cc
  3384. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Fixed the bug that with --check-integrity option aria2 reports
  3386. downloaded file size is 0 even if some parts of file is correctly
  3387. downloaded. This bug is reproducible for the download that a file
  3388. includes last piece is missing. This bug doesn't reveal for
  3389. single-torrent with file allocation on.
  3390. * src/IteratableChecksumValidator.cc
  3391. * test/IteratableChecksumValidatorTest.cc
  3392. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3394. * src/RequestGroupMan.cc
  3395. * src/AdaptiveURISelector.cc
  3396. * src/AdaptiveURISelector.h
  3397. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. * Release 1.3.2
  3399. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3400. Updated README
  3401. * README
  3402. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Updated Ukrainian translations. Thanks to Alexander10.
  3404. * po/uk.po
  3405. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Code cleanup
  3407. * src/MetalinkParserStateMachine.cc
  3408. * src/MetalinkParserStateMachine.h
  3409. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3411. and expat simultaneously, MetalinkProcessor is now not base class
  3412. and it is directly implemented in XML2SAXMetalinkProcessor and
  3413. ExpatMetalinkProcessor.
  3414. * src/ExpatMetalinkProcessor.cc
  3415. * src/ExpatMetalinkProcessor.h
  3416. * src/Makefile.am
  3417. * src/MetalinkHelper.cc
  3418. * src/MetalinkProcessor.h
  3419. * src/MetalinkProcessorFactory.cc: Removed.
  3420. * src/MetalinkProcessorFactory.h: Removed
  3421. * src/XML2SAXMetalinkProcessor.cc
  3422. * src/XML2SAXMetalinkProcessor.h
  3423. * test/MetalinkProcessorTest.cc
  3424. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Bump up version number to 1.3.2
  3426. * configure.ac
  3427. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Added missing file.
  3429. * test/Makefile.am
  3430. * test/url-list-singleFileEndsWithSlash.torrent
  3431. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3433. request.
  3434. * src/AnnounceList.cc
  3435. * src/AnnounceList.h
  3436. * src/BDE.cc: Added
  3437. * src/BDE.h: Added
  3438. * src/DHTAbstractMessage.cc
  3439. * src/DHTAbstractMessage.h
  3440. * src/DHTAnnouncePeerMessage.cc
  3441. * src/DHTAnnouncePeerMessage.h
  3442. * src/DHTAnnouncePeerReplyMessage.cc
  3443. * src/DHTAnnouncePeerReplyMessage.h
  3444. * src/DHTFindNodeMessage.cc
  3445. * src/DHTFindNodeMessage.h
  3446. * src/DHTFindNodeReplyMessage.cc
  3447. * src/DHTFindNodeReplyMessage.h
  3448. * src/DHTGetPeersMessage.cc
  3449. * src/DHTGetPeersMessage.h
  3450. * src/DHTGetPeersReplyMessage.cc
  3451. * src/DHTGetPeersReplyMessage.h
  3452. * src/DHTMessageFactory.h
  3453. * src/DHTMessageFactoryImpl.cc
  3454. * src/DHTMessageFactoryImpl.h
  3455. * src/DHTMessageReceiver.cc
  3456. * src/DHTMessageTracker.cc
  3457. * src/DHTMessageTracker.h
  3458. * src/DHTPingMessage.cc
  3459. * src/DHTPingMessage.h
  3460. * src/DHTPingReplyMessage.cc
  3461. * src/DHTPingReplyMessage.h
  3462. * src/DHTQueryMessage.cc
  3463. * src/DHTQueryMessage.h
  3464. * src/DHTResponseMessage.cc
  3465. * src/DHTResponseMessage.h
  3466. * src/DefaultBtAnnounce.cc
  3467. * src/DefaultBtContext.cc
  3468. * src/DefaultBtContext.h
  3469. * src/HandshakeExtensionMessage.cc
  3470. * src/Makefile.am
  3471. * src/PeerListProcessor.h
  3472. * src/UTPexExtensionMessage.cc
  3473. * src/bencode.cc
  3474. * src/bencode.h
  3475. * test/AnnounceListTest.cc
  3476. * test/BDETest.cc: Added
  3477. * test/BencodeTest.cc
  3478. * test/DHTAnnouncePeerMessageTest.cc
  3479. * test/DHTAnnouncePeerReplyMessageTest.cc
  3480. * test/DHTFindNodeMessageTest.cc
  3481. * test/DHTFindNodeReplyMessageTest.cc
  3482. * test/DHTGetPeersMessageTest.cc
  3483. * test/DHTGetPeersReplyMessageTest.cc
  3484. * test/DHTMessageFactoryImplTest.cc
  3485. * test/DHTMessageTrackerTest.cc
  3486. * test/DHTPingMessageTest.cc
  3487. * test/DHTPingReplyMessageTest.cc
  3488. * test/Makefile.am
  3489. * test/MockDHTMessageFactory.h
  3490. * test/PeerListProcessorTest.cc
  3491. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Use url-list (web-seeding) only for single-file torrent. This is
  3493. basically the same behavior with Metalink file with torrent and
  3494. URIs.
  3495. * src/RequestGroup.cc
  3496. * src/DefaultBtContext.cc
  3497. * test/DefaultBtContextTest.cc
  3498. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3499. Rewritten expr
  3500. * src/array_fun.h
  3501. * test/array_funTest.cc
  3502. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3504. * src/DefaultBtMessageDispatcher.cc
  3505. * src/a2algo.h
  3506. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Removed ExtendedMessagingAware. Instead of using inheritance,
  3508. added ExtensionMessageRegistry and it is passed to
  3509. DefaultExtensionMessageFactory.
  3510. * src/DefaultBtInteractive.cc
  3511. * src/DefaultBtInteractive.h
  3512. * src/DefaultExtensionMessageFactory.cc
  3513. * src/DefaultExtensionMessageFactory.h
  3514. * src/ExtendedMessagingAware.h: Removed.
  3515. * src/ExtensionMessageFactory.h
  3516. * src/ExtensionMessageRegistry.h: Added.
  3517. * src/Makefile.am
  3518. * src/PeerInteractionCommand.cc
  3519. * test/DefaultExtensionMessageFactoryTest.cc
  3520. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Fixed typo in log messages
  3522. * src/MSEHandshake.cc
  3523. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3524. Fixed the bug that prevents torrent download from finishing. The
  3525. bug doesn't reveal for all torrents. The torrents affected this
  3526. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3527. of pieces.
  3528. * src/bitfield.h
  3529. * test/bitfieldTest.cc
  3530. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Code cleanup
  3532. * src/PeerListProcessor.h
  3533. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Removed RequestGroupAware
  3535. * src/AbstractCommand.cc
  3536. * src/AbstractCommand.h
  3537. * src/ActivePeerConnectionCommand.cc
  3538. * src/ActivePeerConnectionCommand.h
  3539. * src/DHTGetPeersCommand.cc
  3540. * src/DHTGetPeersCommand.h
  3541. * src/InitiatorMSEHandshakeCommand.cc
  3542. * src/InitiatorMSEHandshakeCommand.h
  3543. * src/Makefile.am
  3544. * src/PeerInitiateConnectionCommand.cc
  3545. * src/PeerInitiateConnectionCommand.h
  3546. * src/PeerInteractionCommand.cc
  3547. * src/PeerInteractionCommand.h
  3548. * src/RealtimeCommand.cc
  3549. * src/RealtimeCommand.h
  3550. * src/RequestGroupAware.cc: Removed
  3551. * src/RequestGroupAware.h: Removed
  3552. * src/SeedCheckCommand.cc
  3553. * src/SeedCheckCommand.h
  3554. * src/SleepCommand.cc
  3555. * src/TrackerWatcherCommand.cc
  3556. * src/TrackerWatcherCommand.h
  3557. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3558. Rewritten PeerListProcessor
  3559. * src/PeerListProcessor.h
  3560. * src/CompactPeerListProcessor.h: Removed
  3561. * src/CompactPeerListProcessor.cc: Removed
  3562. * src/DelegatingPeerListProcessor.cc: Removed.
  3563. * src/DefaultBtAnnounce.cc
  3564. * src/Makefile.am
  3565. * src/UTPexExtensionMessage.cc
  3566. * src/DefaultPeerListProcessor.h: Removed.
  3567. * src/DefaultPeerListProcessor.cc: Removed.
  3568. * src/DelegatingPeerListProcessor.h: Removed.
  3569. * test/Makefile.am
  3570. * test/PeerListProcessorTest.cc
  3571. * test/DefaultPeerListProcessorTest.cc: Removed.
  3572. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3573. Rewritten RequestGroupMan::calculateStat()
  3574. * src/RequestGroupMan.cc
  3575. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Removed unnecessary virtual destructor for Request class.
  3577. * src/Request.cc
  3578. * src/Request.h
  3579. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3580. Avoid dynamic_pointer_cast.
  3581. * src/DHTGetPeersCommand.cc
  3582. * src/DHTGetPeersCommand.h
  3583. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3585. BtEvent.
  3586. * src/AbstractBtEventListener.h: Removed.
  3587. * src/AbstractBtMessage.cc
  3588. * src/AbstractBtMessage.h
  3589. * src/BtAbortOutstandingRequestEvent.h
  3590. * src/BtCancelSendingPieceEvent.h
  3591. * src/BtChokedEvent.h: Removed.
  3592. * src/BtChokingEvent.h
  3593. * src/BtEvent.h: Removed
  3594. * src/BtEventListener.h: Removed.
  3595. * src/BtMessage.h
  3596. * src/BtPieceMessage.cc
  3597. * src/BtPieceMessage.h
  3598. * src/BtRequestMessage.cc
  3599. * src/BtRequestMessage.h
  3600. * src/DefaultBtMessageDispatcher.cc
  3601. * src/Makefile.am
  3602. * src/a2functional.h
  3603. * test/BtPieceMessageTest.cc
  3604. * test/BtRequestMessageTest.cc
  3605. * test/DefaultBtMessageDispatcherTest.cc
  3606. * test/MockBtMessage.h
  3607. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Code cleanup
  3609. * src/RequestGroupMan.cc
  3610. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Code cleanup
  3612. * src/DownloadCommand.cc
  3613. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3614. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3615. byte.
  3616. * src/DownloadCommand.cc
  3617. * src/bitfield.h
  3618. * test/bitfieldTest.cc
  3619. Fixed the bug that causes infinite loop if broken web server
  3620. returns chunked response without last "0" chunk-size marker and
  3621. closes connection.
  3622. * src/DownloadCommand.cc
  3623. Instantiate properly configured HttpDownloadCommand for
  3624. non-resumable downlaods.
  3625. * src/HttpResponseCommand.cc
  3626. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Rewritten array operation functions.
  3628. * src/BitfieldMan.cc
  3629. * src/array_fun.h
  3630. * test/array_funTest.cc
  3631. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Removed unused variable 'query'
  3633. * src/Request.cc
  3634. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3636. accidentally set to false in r1162.
  3637. * configure.ac
  3638. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3639. Code cleanup
  3640. * src/BNode.cc
  3641. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Increase prefixLength for the bucket which doesn't own local node
  3643. ID when splitting bucket.
  3644. * src/DHTBucket.cc
  3645. * test/DHTBucketTest.cc
  3646. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. * Release 1.3.1
  3648. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Bump up version number to 1.3.1
  3650. * configure.ac
  3651. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Removed unused variable checkPoint. Also removed include directive
  3653. for TimeA2.h.
  3654. * src/SeedCheckCommand.h
  3655. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Fixed the bug that upload limit exceeds the value specified in
  3657. --seed-ratio option depending on the timing of the execution of
  3658. SeedCheckCommand.
  3659. * src/SeedCheckCommand.cc
  3660. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Fixed the bug that removed peer's session upload/download length
  3662. are counted twice in _cachedTransferStat before it is
  3663. re-calculated. This affected the calculation of shara ratio,
  3664. resulting aria2 wrongly determines that specified share ratio is
  3665. reached. Also fixed the typo in calculateStatFor function name.
  3666. * src/BtSetup.cc
  3667. * src/DefaultPeerStorage.cc
  3668. * src/ShareRatioSeedCriteria.h
  3669. * test/ShareRatioSeedCriteriaTest.cc
  3670. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. * Release 1.3.0
  3672. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3674. Nynorsk translations. Thanks to all translators.
  3675. * po/es.po
  3676. * po/ja.po
  3677. * po/nn.po
  3678. * po/ru.po
  3679. * po/uk.po
  3680. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Rewritten isInRange()
  3682. * src/DHTBucket.cc
  3683. * test/DHTBucketTest.cc
  3684. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Fixed typo
  3686. * doc/aria2c.1.txt
  3687. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3688. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3689. malloc/realloc is not used.
  3690. * src/configure.ac
  3691. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3693. char* bitfield instead of stl container for efficiency.
  3694. PieceSelector::select now takes this
  3695. bitfield. RarestPieceSelector::select now also performs
  3696. efficiently for this change. bitfield namespace is introduced and
  3697. it has several helper functions to handle basic bitfield
  3698. operations such as test, count set bits, etc.
  3699. * src/BitfieldMan.cc
  3700. * src/BitfieldMan.h
  3701. * src/DefaultBtRequestFactory.cc
  3702. * src/DefaultPieceStorage.cc
  3703. * src/DefaultPieceStorage.h
  3704. * src/LongestSequencePieceSelector.cc
  3705. * src/LongestSequencePieceSelector.h
  3706. * src/Makefile.am
  3707. * src/Piece.cc
  3708. * src/Piece.h
  3709. * src/PieceSelector.h
  3710. * src/RarestPieceSelector.cc
  3711. * src/RarestPieceSelector.h
  3712. * src/Util.cc
  3713. * src/Util.h
  3714. * src/bitfield.h
  3715. * test/BitfieldManTest.cc
  3716. * test/LongestSequencePieceSelectorTest.cc
  3717. * test/Makefile.am
  3718. * test/RarestPieceSelectorTest.cc
  3719. * test/UtilTest.cc
  3720. * test/bitfieldTest.cc
  3721. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Made accepted socket non-block.
  3723. * src/FtpNegotiationCommand.cc
  3724. * src/HttpListenCommand.cc
  3725. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3727. * src/AbstractSingleDiskAdaptor.cc
  3728. * src/DefaultPieceStorage.cc
  3729. * src/DiskAdaptor.h
  3730. * src/DiskAdaptor.h
  3731. * src/MultiFileAllocationIterator.cc
  3732. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Run
  3734. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3735. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3736. it doesn't need to be called every time when
  3737. DefaultBtInteractive::doInteractionProcessing() is called.
  3738. * src/DefaultBtInteractive.cc
  3739. * src/DefaultBtInteractive.h
  3740. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Documented 'falloc' in man page.
  3742. * doc/aria2c.1.txt
  3743. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Updated doc
  3745. * src/usage_text.h
  3746. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3748. allocation mode uses posix_fallocate() system call to allocate
  3749. file on disk. If you are using newer file systems such as ext4
  3750. (with extents support), btrfs or xfs, 'falloc' is your best
  3751. choice. It allocates large(few GiB) files almost instantly. Don't
  3752. use 'falloc' with legacy file systems such as ext3 because it
  3753. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3754. until allocation finishes. 'falloc' may not be available if your
  3755. system doesn't have posix_fallocate() system call.
  3756. * configure.ac
  3757. * src/AbstractDiskWriter.cc
  3758. * src/AbstractDiskWriter.h
  3759. * src/AbstractSingleDiskAdaptor.cc
  3760. * src/BinaryStream.h
  3761. * src/BtCheckIntegrityEntry.cc
  3762. * src/ByteArrayDiskWriter.h
  3763. * src/CheckIntegrityEntry.cc
  3764. * src/CheckIntegrityEntry.h
  3765. * src/DefaultPieceStorage.cc
  3766. * src/DiskAdaptor.cc
  3767. * src/DiskAdaptor.h
  3768. * src/DiskWriter.h
  3769. * src/FallocFileAllocationIterator.cc
  3770. * src/FallocFileAllocationIterator.h
  3771. * src/FileAllocationEntry.cc
  3772. * src/FileAllocationEntry.h
  3773. * src/Makefile.am
  3774. * src/MultiFileAllocationIterator.cc
  3775. * src/MultiFileAllocationIterator.h
  3776. * src/OptionHandlerFactory.cc
  3777. * src/RequestGroup.cc
  3778. * src/StreamCheckIntegrityEntry.cc
  3779. * src/prefs.cc
  3780. * src/prefs.h
  3781. * src/usage_text.h
  3782. * test/FallocFileAllocationIteratorTest.cc
  3783. * test/Makefile.am
  3784. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Removed duplicate enableDirectIO() call.
  3786. * src/MultiFileAllocationIterator.cc
  3787. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3789. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3790. cost of std::rotate().
  3791. * src/RarestPieceSelector.cc
  3792. * src/RarestPieceSelector.h
  3793. * test/RarestPieceSelectorTest.cc
  3794. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Updated usage doc for --bt-tracker-interval option.
  3796. * src/usage_text.h
  3797. * doc/aria2c.1.txt
  3798. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Documented --bt-tracker-interval option in man page.
  3800. * doc/aria2c.1.txt
  3801. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Added an option to specify the interval between tracker requests.
  3803. If non-zero value is specified, aria2 uses it and ignores the
  3804. interval value in the response of tracker. If zero is specified,
  3805. aria2 determines the inteval value based on the tarcker response
  3806. and download progress.
  3807. * src/DefaultBtAnnounce.cc
  3808. * src/DefaultBtAnnounce.h
  3809. * src/OptionHandlerFactory.cc
  3810. * src/RequestGroup.cc
  3811. * src/prefs.cc
  3812. * src/prefs.h
  3813. * src/usage_text.h
  3814. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Added operator+=, operator-=, operator-
  3816. * src/TransferStat.cc
  3817. * src/TransferStat.h
  3818. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Refactored RarestPieceSelector to reduce CPU load, especially for
  3820. addPieceStats.
  3821. * src/RarestPieceSelector.cc
  3822. * src/RarestPieceSelector.h
  3823. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3825. getAllMissingBlockIndexes to reduce a call to
  3826. array_function_base::operator[].
  3827. * src/BitfieldMan.cc
  3828. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Cached TransferStat/download speed to avoid to sum them up in each
  3830. call.
  3831. * src/DefaultPeerStorage.cc
  3832. * src/DefaultPeerStorage.h
  3833. * src/SegmentMan.cc
  3834. * src/SegmentMan.h
  3835. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Typedefed cuid_t as int32_t in Command.h
  3837. * src/CUIDCounter.h
  3838. * src/Command.cc
  3839. * src/Command.h
  3840. * src/DownloadEngine.cc
  3841. * src/DownloadEngine.h
  3842. * src/PeerStat.h
  3843. * src/SegmentMan.cc
  3844. * src/SegmentMan.h
  3845. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Reduced the number of calls to PeerStorage::calculateStat() and
  3847. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3848. transfer rate.
  3849. * src/DefaultBtInteractive.cc
  3850. * src/DefaultBtMessageDispatcher.cc
  3851. * src/DefaultPeerStorage.cc
  3852. * src/DefaultPeerStorage.h
  3853. * src/DownloadCommand.cc
  3854. * src/DownloadEngine.cc
  3855. * src/PeerStorage.h
  3856. * src/SegmentMan.cc
  3857. * src/SegmentMan.h
  3858. * test/MockPeerStorage.h
  3859. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Prepended _dir+"/" after joining path elements in torrent file.
  3861. * src/DefaultBtContext.cc
  3862. * test/DefaultBtContextTest.cc
  3863. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Added missing IndexBtMessageValidator.h
  3865. * src/Makefile.am
  3866. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3868. Chinese translations. Thank you for contributing our project.
  3869. * po/id.po
  3870. * po/it.po
  3871. * po/ru.po
  3872. * po/uk.po
  3873. * po/zh_CN.po
  3874. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Updated README
  3876. * README
  3877. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Bump up version number to 1.3.0
  3879. * configure.ac
  3880. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Updated doc
  3882. * src/DefaultBtContext.h
  3883. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Slice/joinPath for name of single torrent.
  3885. * src/DefaultBtContext.cc
  3886. * test/DefaultBtContextTest.cc
  3887. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. Updated man page: Documented --dry-run and --index-out
  3889. options. Changed the default value of --uri-selector and
  3890. --http-auth-challenge options. Removed --direct-file-mapping
  3891. option. Added example for --index-out
  3892. * doc/aria2c.1.txt
  3893. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Updated TEXT_DRY_RUN
  3895. * src/usage_text.h
  3896. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Changed the default value of --uri-selector option from 'inorder'
  3898. to 'feedback'
  3899. * src/OptionHandlerFactory.cc
  3900. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Included current URI in exception message.
  3902. * src/AbstractCommand.cc
  3903. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Renamed ServerStatURISelector as FeedbackURISelector.
  3905. * src/FeedbackURISelector.cc
  3906. * src/FeedbackURISelector.h
  3907. * src/Makefile.am
  3908. * src/RequestGroupMan.cc
  3909. * src/ServerStatURISelector.cc
  3910. * src/ServerStatURISelector.h
  3911. * test/FeedbackURISelectorTest.cc
  3912. * test/Makefile.am
  3913. * test/ServerStatURISelectorTest.cc
  3914. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3916. all URIs are tested and their timeout is not reached.
  3917. * src/AdaptiveURISelector.cc
  3918. * src/AdaptiveURISelector.h
  3919. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Changed the default value of --http-auth-challenge option to false.
  3921. * src/OptionHandlerFactory.cc
  3922. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Reuse URIs when all unused URIs run out.
  3924. * src/OptionHandlerFactory.cc
  3925. * src/RequestGroup.cc
  3926. * src/prefs.cc
  3927. * src/prefs.h
  3928. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3930. and BtRejectMessage are derived from RangeBtMessage class.
  3931. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3932. derived from IndexBtMessage class. BtChokeMessage,
  3933. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3934. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3935. ZeroBtMessage class.
  3936. * src/AbstractBtMessage.cc
  3937. * src/AbstractBtMessage.h
  3938. * src/BtAllowedFastMessage.cc
  3939. * src/BtAllowedFastMessage.h
  3940. * src/BtAllowedFastMessageValidator.h: Removed
  3941. * src/BtBitfieldMessage.cc
  3942. * src/BtBitfieldMessage.h
  3943. * src/BtCancelMessage.cc
  3944. * src/BtCancelMessage.h
  3945. * src/BtCancelMessageValidator.h: Removed
  3946. * src/BtChokeMessage.cc
  3947. * src/BtChokeMessage.h
  3948. * src/BtExtendedMessage.cc
  3949. * src/BtExtendedMessage.h
  3950. * src/BtHandshakeMessage.cc
  3951. * src/BtHandshakeMessage.h
  3952. * src/BtHaveAllMessage.cc
  3953. * src/BtHaveAllMessage.h
  3954. * src/BtHaveMessage.cc
  3955. * src/BtHaveMessage.h
  3956. * src/BtHaveMessageValidator.h: Removed
  3957. * src/BtHaveNoneMessage.cc
  3958. * src/BtHaveNoneMessage.h
  3959. * src/BtInterestedMessage.cc
  3960. * src/BtInterestedMessage.h
  3961. * src/BtKeepAliveMessage.cc
  3962. * src/BtKeepAliveMessage.h
  3963. * src/BtNotInterestedMessage.cc
  3964. * src/BtNotInterestedMessage.h
  3965. * src/BtPieceMessage.cc
  3966. * src/BtPieceMessage.h
  3967. * src/BtPortMessage.cc
  3968. * src/BtPortMessage.h
  3969. * src/BtRejectMessage.cc
  3970. * src/BtRejectMessage.h
  3971. * src/BtRejectMessageValidator.h: Removed
  3972. * src/BtRequestMessage.cc
  3973. * src/BtRequestMessage.h
  3974. * src/BtRequestMessageValidator.h: Removed
  3975. * src/BtSuggestPieceMessage.cc
  3976. * src/BtSuggestPieceMessage.h
  3977. * src/BtSuggestPieceMessageValidator.h: Removed
  3978. * src/BtUnchokeMessage.cc
  3979. * src/BtUnchokeMessage.h
  3980. * src/DefaultBtMessageFactory.cc
  3981. * src/IndexBtMessage.cc
  3982. * src/IndexBtMessage.h
  3983. * src/IndexBtMessageValidator.h
  3984. * src/Makefile.am
  3985. * src/PeerMessageUtil.cc
  3986. * src/PeerMessageUtil.h
  3987. * src/RangeBtMessage.cc
  3988. * src/RangeBtMessage.h
  3989. * src/RangeBtMessageValidator.h
  3990. * src/SimpleBtMessage.cc
  3991. * src/SimpleBtMessage.h
  3992. * src/ZeroBtMessage.cc
  3993. * src/ZeroBtMessage.h
  3994. * test/BtRequestMessageTest.cc
  3995. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Reverted usage_text.h to r1093 to avoid to lose translated
  3997. messages.
  3998. * src/usage_text.h
  3999. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4001. declared as non-const previously is now const and defined in class
  4002. definition.
  4003. * src/AbstractBtMessage.cc
  4004. * src/AbstractBtMessage.h
  4005. * src/BtAllowedFastMessage.cc
  4006. * src/BtAllowedFastMessage.h
  4007. * src/BtBitfieldMessage.h
  4008. * src/BtCancelMessage.cc
  4009. * src/BtCancelMessage.h
  4010. * src/BtChokeMessage.cc
  4011. * src/BtChokeMessage.h
  4012. * src/BtExtendedMessage.cc
  4013. * src/BtExtendedMessage.h
  4014. * src/BtHandshakeMessage.cc
  4015. * src/BtHandshakeMessage.h
  4016. * src/BtHaveAllMessage.cc
  4017. * src/BtHaveAllMessage.h
  4018. * src/BtHaveMessage.cc
  4019. * src/BtHaveMessage.h
  4020. * src/BtHaveNoneMessage.cc
  4021. * src/BtHaveNoneMessage.h
  4022. * src/BtInterestedMessage.cc
  4023. * src/BtInterestedMessage.h
  4024. * src/BtKeepAliveMessage.cc
  4025. * src/BtKeepAliveMessage.h
  4026. * src/BtMessage.h
  4027. * src/BtNotInterestedMessage.cc
  4028. * src/BtNotInterestedMessage.h
  4029. * src/BtPieceMessage.h
  4030. * src/BtPortMessage.cc
  4031. * src/BtPortMessage.h
  4032. * src/BtRejectMessage.cc
  4033. * src/BtRejectMessage.h
  4034. * src/BtRequestMessage.cc
  4035. * src/BtRequestMessage.h
  4036. * src/BtSuggestPieceMessage.cc
  4037. * src/BtSuggestPieceMessage.h
  4038. * src/BtUnchokeMessage.cc
  4039. * src/BtUnchokeMessage.h
  4040. * src/SimpleBtMessage.cc
  4041. * src/SimpleBtMessage.h
  4042. * test/MockBtMessage.h
  4043. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4044. Use FileEntry::exists()
  4045. * src/MultiDiskAdaptor.cc
  4046. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Added exists()
  4048. * src/FileEntry.cc
  4049. * src/FileEntry.h
  4050. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Added missing prefix dir.
  4052. * src/download_helper.cc
  4053. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4055. * src/CopyDiskAdaptor.cc: Removed
  4056. * src/CopyDiskAdaptor.h: Removed
  4057. * src/DefaultPieceStorage.cc
  4058. * src/Makefile.am
  4059. * src/OptionHandlerFactory.cc
  4060. * src/prefs.cc
  4061. * src/prefs.h
  4062. * src/usage_text.h
  4063. * test/CopyDiskAdaptorTest.cc: Removed
  4064. * test/Makefile.am
  4065. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4066. Rewritten isSameFileBeingDownloaded()
  4067. * src/RequestGroupMan.cc
  4068. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Removed getName() from DownloadContext. getName() is declared in
  4070. BtContext.
  4071. * src/BtContext.h
  4072. * src/DownloadContext.h
  4073. * src/SingleFileDownloadContext.cc
  4074. * src/SingleFileDownloadContext.h
  4075. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4076. in AbstractSingleDiskAdaptor.
  4077. * src/AbstractSingleDiskAdaptor.h
  4078. * src/DiskAdaptor.h
  4079. * src/MultiDiskAdaptor.h
  4080. * src/RequestGroup.cc
  4081. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4082. MultiDiskAdaptor.
  4083. * src/DefaultPieceStorage.cc
  4084. * src/MultiDiskAdaptor.cc
  4085. * src/MultiDiskAdaptor.h
  4086. * test/MultiDiskAdaptorTest.cc
  4087. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. FileEntry::getPath() contains store(top level) directory to
  4089. simplify path handling operation. In the previous implementation,
  4090. store directory is concatenated to FileEntry::getPath() in
  4091. DownloadContext.
  4092. * src/BtDependency.cc
  4093. * src/BtPostDownloadHandler.cc
  4094. * src/CopyDiskAdaptor.cc
  4095. * src/DefaultBtContext.cc
  4096. * src/DirectDiskAdaptor.cc
  4097. * src/FileEntry.cc
  4098. * src/FileEntry.h
  4099. * src/FtpNegotiationCommand.cc
  4100. * src/HttpResponse.cc
  4101. * src/HttpResponseCommand.cc
  4102. * src/Metalink2RequestGroup.cc
  4103. * src/MultiDiskAdaptor.cc
  4104. * src/MultiDiskAdaptor.h
  4105. * src/MultiFileAllocationIterator.cc
  4106. * src/RequestGroup.cc
  4107. * src/SingleFileDownloadContext.cc
  4108. * src/SingleFileDownloadContext.h
  4109. * src/download_helper.cc
  4110. * test/BtDependencyTest.cc
  4111. * test/CopyDiskAdaptorTest.cc
  4112. * test/DefaultBtContextTest.cc
  4113. * test/DefaultBtProgressInfoFileTest.cc
  4114. * test/DirectDiskAdaptorTest.cc
  4115. * test/DownloadHelperTest.cc
  4116. * test/FileEntryTest.cc
  4117. * test/MultiDiskAdaptorTest.cc
  4118. * test/MultiFileAllocationIteratorTest.cc
  4119. * test/RequestGroupTest.cc
  4120. * test/SingleFileDownloadContextTest.cc
  4121. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Fixed compiler warning
  4123. * src/download_helper.cc
  4124. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Throw exception if same infohash torrent is now downloading.
  4126. * src/RequestGroup.cc
  4127. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Added --dry-run option. In this mode, aria2 just checks whether
  4129. the remote file is available and doesn't download data. This
  4130. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4131. are canceled in this mode.
  4132. * src/FtpNegotiationCommand.cc
  4133. * src/HttpResponseCommand.cc
  4134. * src/HttpResponseCommand.h
  4135. * src/OptionHandlerFactory.cc
  4136. * src/RequestGroup.cc
  4137. * src/RequestGroupMan.cc
  4138. * src/prefs.cc
  4139. * src/prefs.h
  4140. * src/usage_text.h
  4141. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Fixed compiler waring
  4143. * test/UriListParserTest.cc
  4144. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Parse options in -i list using OptionParser.
  4146. * src/UriListParser.cc
  4147. * src/UriListParser.h
  4148. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4149. Don't reset URI in retry to avoid additional round trips because
  4150. of redirects.
  4151. * src/AbstractCommand.cc
  4152. * src/OptionHandlerFactory.cc
  4153. * src/prefs.cc
  4154. * src/prefs.h
  4155. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Declared hide() in OptionHandler.
  4157. * src/NameMatchOptionHandler.h
  4158. * src/OptionHandler.h
  4159. * src/OptionHandlerImpl.h
  4160. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Updated doc
  4162. * src/Peer.h
  4163. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Added log message in setStatusInternal()
  4165. * src/ServerStat.cc
  4166. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4168. effectively exclude failed server.
  4169. * src/AbstractCommand.cc
  4170. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Added --index-out option to specify each file path for torrent.
  4172. Here index shown in --show-files option is used to specify which
  4173. file path should be altered. For example, to change the file path
  4174. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4175. option multiple times: --index-out=1=aria2.tar.bz2
  4176. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4177. available. This option can be specified in -i list.
  4178. * src/DefaultBtContext.cc
  4179. * src/DefaultBtContext.h
  4180. * src/MultiDiskAdaptor.cc
  4181. * src/MultiDiskAdaptor.h
  4182. * src/MultiFileAllocationIterator.cc
  4183. * src/OptionHandlerFactory.cc
  4184. * src/OptionHandlerImpl.h
  4185. * src/Util.cc
  4186. * src/Util.h
  4187. * src/download_helper.cc
  4188. * src/prefs.cc
  4189. * src/prefs.h
  4190. * src/usage_text.h
  4191. * test/DefaultBtContextTest.cc
  4192. * test/MultiDiskAdaptorTest.cc
  4193. * test/MultiFileAllocationIteratorTest.cc
  4194. * test/UtilTest.cc
  4195. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Use Util::pathJoin()
  4197. * src/MetalinkParserController.cc
  4198. * test/test.xml
  4199. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Use Util::pathJoin()
  4201. * src/DefaultBtContext.cc
  4202. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4203. Added Util::pathJoin()
  4204. * src/Util.h
  4205. * test/UtilTest.cc
  4206. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Applied basename function to remove directory element in
  4208. content-disposition value.
  4209. Return empty string if content-disposition value is ".." or ".".
  4210. * src/Util.cc
  4211. * test/UtilTest.cc
  4212. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Added --max-overall-download-limit in man page.
  4214. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4215. * doc/aria2c.1.txt
  4216. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4217. Added --max-overall-download-limit option. Now --max-upload-limit
  4218. option is not ignored when --max-overall-upload-limit option has
  4219. non-zero value. aria2 checks download(upload) speed in the order:
  4220. first checks overall speed limit and if it is not exceeded, then
  4221. checks speed limit per download. Thus you can specify both
  4222. value. For example, set --max-overall-download-limit=1M and
  4223. --max-download-limit=500K to prevent from one download from eating
  4224. all overall speed limit.
  4225. * src/DefaultBtInteractive.cc
  4226. * src/DefaultBtInteractive.h
  4227. * src/DefaultBtMessageDispatcher.cc
  4228. * src/DefaultBtMessageDispatcher.h
  4229. * src/DownloadCommand.cc
  4230. * src/DownloadCommand.h
  4231. * src/FtpNegotiationCommand.cc
  4232. * src/HttpResponseCommand.cc
  4233. * src/OptionHandlerFactory.cc
  4234. * src/PeerInteractionCommand.cc
  4235. * src/RequestGroup.cc
  4236. * src/RequestGroup.h
  4237. * src/RequestGroupMan.cc
  4238. * src/RequestGroupMan.h
  4239. * src/prefs.cc
  4240. * src/prefs.h
  4241. * src/usage_text.h
  4242. * test/DefaultBtMessageDispatcherTest.cc
  4243. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Documented select-file option in Input File section.
  4245. Documented --http-auth-challenge option.
  4246. * doc/aria2c.1.txt
  4247. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Now select-file can be specified in the uri list(-i list).
  4249. * src/BtContext.cc
  4250. * src/BtContext.h
  4251. * src/RequestGroup.cc
  4252. * src/Sequence.h
  4253. * src/download_helper.cc
  4254. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Made the upper value of --max-concurrent-downloads options unlimited.
  4256. * src/OptionHandlerFactory.cc
  4257. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4258. Fixed the bug that disk writer is not created even if it shares
  4259. same piece with the preceding file if the length of previous file
  4260. is 0.
  4261. * src/MultiDiskAdaptor.cc
  4262. * test/MultiDiskAdaptorTest.cc
  4263. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. In BitTorrent, Open files in read-only mode for hash check. After
  4265. that, re-open file in read/write mode only when the download is
  4266. not finished.
  4267. * src/AbstractDiskWriter.cc
  4268. * src/AbstractDiskWriter.h
  4269. * src/AbstractSingleDiskAdaptor.cc
  4270. * src/AbstractSingleDiskAdaptor.h
  4271. * src/BtCheckIntegrityEntry.cc
  4272. * src/DiskAdaptor.h
  4273. * src/DiskWriter.h
  4274. * src/MultiDiskAdaptor.cc
  4275. * src/MultiDiskAdaptor.h
  4276. * src/RequestGroup.cc
  4277. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Added --http-auth-challenge option. If it is set to true(by
  4279. default), aria2 sends HTTP authorization header only when it is
  4280. requested by the server. If false is set, then authorization
  4281. header is always sent to the server. This is useful for servers
  4282. that don't respond 401 code when authentication is required.
  4283. There is an exception: if username and password are embedded in
  4284. URI, authorization header is always sent to the server regardless
  4285. of this option.
  4286. * src/AuthConfigFactory.cc
  4287. * src/HttpSkipResponseCommand.cc
  4288. * src/OptionHandlerFactory.cc
  4289. * src/prefs.cc
  4290. * src/prefs.h
  4291. * src/usage_text.h
  4292. * test/AuthConfigFactoryTest.cc
  4293. * test/HttpRequestTest.cc
  4294. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4295. * Release 1.2.0
  4296. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4298. Thanks to all translators.
  4299. * po/es.po
  4300. * po/ja.po
  4301. * po/ru.po
  4302. * po/uk.po
  4303. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Call deleteSocketForReadCheck() before socket is closed.
  4305. * src/HttpListenCommand.cc
  4306. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Defined virtual destructor for BObject.
  4308. * src/bencode.h
  4309. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Rewritten BDE to make it efficient.
  4311. * src/bencode.cc
  4312. * src/bencode.h
  4313. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4314. Removed function throw list.
  4315. * src/bencode.cc
  4316. * src/bencode.h
  4317. * test/BencodeTest.cc
  4318. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Enclosed all URLs in double quotes in command-line examples.
  4320. * doc/aria2c.1.txt
  4321. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Updated reference/see also section.
  4323. * README
  4324. * doc/aria2c.1.txt
  4325. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Reorganized man page based on man man-pages.
  4327. * doc/aria2c.1.txt
  4328. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4330. because same documents are available in man page. Added
  4331. References section.
  4332. * README
  4333. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4335. PERFORMANCE PROFILE section.
  4336. * doc/aria2c.1.txt
  4337. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Rewritten the section for configuration file.
  4339. * README
  4340. * doc/aria2c.1.txt
  4341. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4342. Fixed the segmentation fault during execution of choking algorithm
  4343. in leecher state because of broken compare operator
  4344. implementation.
  4345. * src/BtLeecherStateChoke.cc
  4346. * src/BtLeecherStateChoke.h
  4347. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Open file in binary mode.
  4349. * src/CookieStorage.cc
  4350. * src/DHTSetup.cc
  4351. * src/DHTUtil.cc
  4352. * src/Netrc.cc
  4353. * src/NsCookieParser.cc
  4354. * src/ProtocolDetector.cc
  4355. * src/RequestGroupMan.cc
  4356. * src/Signature.cc
  4357. * src/bencode.cc
  4358. * src/download_helper.cc
  4359. * src/option_processing.cc
  4360. * test/CookieParserTest.cc
  4361. * test/DefaultBtProgressInfoFileTest.cc
  4362. * test/FileTest.cc
  4363. * test/GZipDecoderTest.cc
  4364. * test/RequestGroupManTest.cc
  4365. * test/SignatureTest.cc
  4366. * test/SingleFileAllocationIteratorTest.cc
  4367. * test/UriListParserTest.cc
  4368. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4369. Removed operator[] because it is ambiguous with built-in []
  4370. operator.
  4371. * src/array_fun.h
  4372. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Fixed compile error
  4374. * src/OptionParser.cc
  4375. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Added missing call to arrayWrapperConst
  4377. * test/array_funTest.cc
  4378. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4379. Use array_wrapper instead of array_ptr.
  4380. * src/DHTRoutingTableDeserializer.cc
  4381. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4382. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4383. * src/array_fun.h
  4384. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Added array_wrapper template.
  4386. * src/array_fun.h
  4387. * test/array_funTest.cc
  4388. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4389. Use operator T* of array_ptr.
  4390. * src/OptionParser.cc
  4391. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4392. Use localhost instead of 127.0.0.1
  4393. * test/FtpConnectionTest.cc
  4394. * test/MSEHandshakeTest.cc
  4395. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Added operator T*
  4397. * src/array_fun.h
  4398. * test/array_funTest.cc
  4399. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Use dynamically allocated char array to detect memory access
  4401. violation.
  4402. * src/DHTRoutingTableDeserializer.cc
  4403. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4405. defined.
  4406. * src/PeerMessageUtil.cc
  4407. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4409. * configure.ac
  4410. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Added a check to see struct sockaddr_in has sin_len member.
  4412. * configure.ac
  4413. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Fixed buffer overrun.
  4415. * src/DHTRoutingTableDeserializer.cc
  4416. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Added LL for long long int constant.
  4418. * test/FtpConnectionTest.cc
  4419. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Casted to unsigned int to suppress compiler warning on netbsd.
  4421. * src/BtRuntime.h
  4422. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4424. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4425. type time_t.
  4426. * src/SimpleLogger.cc
  4427. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Added test for FtpConnection::receiveSizeResponse().
  4429. * test/FtpConnectionTest.cc
  4430. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Fix epoll error on the old kernel 2.6.8 or ealier.
  4432. * src/EpollEventPoll.cc
  4433. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Use Util::parseLLInt instead of sscanf for portability. The
  4435. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4436. * src/FtpConnection.cc
  4437. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4439. block. It should not filter anything.
  4440. * src/BitfieldMan.cc
  4441. * src/ConsoleStatCalc.cc
  4442. * test/BitfieldManTest.cc
  4443. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Fixed the bug that the boolean options that don't take arguments
  4445. don't work.
  4446. * src/OptionHandlerImpl.h
  4447. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Fixed broken selected file BitTorrent download.
  4449. * src/MultiDiskAdaptor.cc
  4450. * test/MultiDiskAdaptorTest.cc
  4451. * test/MultiFileAllocationIteratorTest.cc
  4452. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Fixed #define guard for EpollEventPoll
  4454. * src/EpollEventPoll.h
  4455. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Wait 2 seconds. 1 second is sometimes not enough.
  4457. * test/TimeSeedCriteriaTest.cc
  4458. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Use localhost instead of 127.0.0.1.
  4460. * test/DHTConnectionImplTest.cc
  4461. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4462. Suppressed compiler warning.
  4463. * src/AdaptiveURISelector.cc
  4464. * src/DefaultPieceStorage.cc
  4465. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Defined virtual destructor.
  4467. * src/MetalinkParserState.h
  4468. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4469. Give NULL for second argument of getaddrinfo instead of "0".
  4470. * src/NameResolver.cc
  4471. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4472. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4473. included strptime doesn't parse data for this format.
  4474. * src/FtpConnection.cc
  4475. * test/FtpConnectionTest.cc
  4476. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Removed tests giving -1 for unsigned argument.
  4478. * test/SingleFileDownloadContextTest.cc
  4479. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Don't use sha256 in tests because it might not be supported by the
  4481. SSL library.
  4482. * test/MetalinkProcessorTest.cc
  4483. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Removed tests giving -1 for unsigned argument.
  4485. * test/AlphaNumberDecoratorTest
  4486. * test/BitfieldManTest.cc
  4487. * test/DefaultBtContextTest.cc
  4488. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Fixed compile error without libcares when epoll is available.
  4490. * src/EpollEventPoll.cc
  4491. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Included fstream instead of iostream.
  4493. * test/SignatureTest.cc
  4494. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Removed #include <algorithm>
  4496. * test/RequestGroupTest.cc
  4497. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4498. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4499. using RequestGroup::extractURIResult().
  4500. * src/AdaptiveURISelector.cc
  4501. * src/RequestGroup.cc
  4502. * src/RequestGroup.h
  4503. * test/RequestGroupTest.cc
  4504. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Added tests for array_ptr.
  4506. * test/array_funTest.cc
  4507. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4508. Don't send ip parameter to a tracker if ip parameter is empty
  4509. string.
  4510. * src/DefaultBtAnnounce.cc
  4511. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Adjusted line feed.
  4513. * src/version_usage.cc
  4514. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Print tags, possible values when OptionHandlerException is caught.
  4516. * src/option_processing.cc
  4517. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Changed the message for FatalException.
  4519. * src/OptionParser.cc
  4520. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Documented --bt-external-ip option in man page. Updated man pages
  4522. for --proxy-method option.
  4523. * doc/aria2c.1.txt
  4524. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4525. Use GET method for FTP via HTTP proxy.
  4526. * src/FtpInitiateConnectionCommand.cc
  4527. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Changed the default value of --proxy-method option from 'tunnel'
  4529. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4530. option.
  4531. * src/AbstractCommand.cc
  4532. * src/AbstractCommand.h
  4533. * src/FtpInitiateConnectionCommand.cc
  4534. * src/HttpDownloadCommand.cc
  4535. * src/HttpInitiateConnectionCommand.cc
  4536. * src/HttpInitiateConnectionCommand.h
  4537. * src/OptionHandlerFactory.cc
  4538. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Initialized _logger
  4540. * src/SelectEventPoll.cc
  4541. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Defined a copy constructor for the same type.
  4543. * src/SharedHandle.h
  4544. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Added OptionParser::parseArg() which internally uses getopt_long
  4546. to parse command-line options. All command-line options are now
  4547. configured by OptionHandler. No manual editing of struct option*
  4548. is required any more.
  4549. * src/NameMatchOptionHandler.h
  4550. * src/OptionHandler.h
  4551. * src/OptionHandlerFactory.cc
  4552. * src/OptionHandlerImpl.h
  4553. * src/OptionParser.cc
  4554. * src/OptionParser.h
  4555. * src/array_fun.h
  4556. * src/main.cc
  4557. * src/option_processing.cc
  4558. * test/OptionHandlerTest.cc
  4559. * test/OptionParserTest.cc
  4560. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Fixed configure error with --disable-epoll
  4562. * configure.ac
  4563. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4564. Fixed compile error when HAVE_EPOLL is not defined.
  4565. Fixed linker error on bigendian systems.
  4566. * src/SocketCore.cc
  4567. * src/SocketCore.h
  4568. * test/DefaultBtProgressInfoFileTest.cc
  4569. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Added --bt-external-ip option. You can specify the external IP
  4571. address to report to a BitTorrent tracker. Although this function
  4572. is named 'external', it can accept any kind of IP addresses.
  4573. * src/DefaultBtAnnounce.cc
  4574. * src/OptionHandlerFactory.cc
  4575. * src/option_processing.cc
  4576. * src/prefs.cc
  4577. * src/prefs.h
  4578. * src/usage_text.h
  4579. * test/DefaultBtAnnounceTest.cc
  4580. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Extracted the algorithm to find the longest incremental sequence
  4582. as max_sequence template.
  4583. * src/LongestSequencePieceSelector.cc
  4584. * src/a2algo.h
  4585. * test/Makefile.am
  4586. * test/a2algoTest.cc
  4587. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4589. * src/usage_text.h
  4590. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Updated doc for --uri-selector, --http-server-listen-port and
  4592. --enable-http-server option. Documented --event-poll option.
  4593. * doc/aria2c.1.txt
  4594. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4595. Updated doc for --enable-http-server.
  4596. * src/usage_text.h
  4597. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4598. Documented --http-server-listen-port and --enable-http-server in
  4599. man page.
  4600. * doc/aria2c.1.txt
  4601. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4603. translations. Thanks to all translators.
  4604. * po/es.po
  4605. * po/id.po
  4606. * po/it.po
  4607. * po/ru.po
  4608. * po/uk.po
  4609. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Bump up version number to 1.2.0
  4611. * configure.ac
  4612. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. BtContext::getAnnounceTiers() now returns const reference.
  4614. * src/BtContext.h
  4615. * src/DefaultBtContext.cc
  4616. * src/DefaultBtContext.h
  4617. * test/MockBtContext.h
  4618. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Change the number of retries for tracker request based on the
  4620. number of available tracker in a torrent file.
  4621. * src/TrackerWatcherCommand.cc
  4622. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Added _maxTries property to RequestGroup and assign the option
  4624. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4625. RequestGroup::getMaxTries() instead of
  4626. Option::getAsInt(PREF_MAX_TRIES).
  4627. * src/AbstractCommand.cc
  4628. * src/RequestGroup.cc
  4629. * src/RequestGroup.h
  4630. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4632. Mandriva. I modified the patch: make RequestGroup have the
  4633. timeout value and AdaptiveURISelector directly modifies that
  4634. value.
  4635. * src/AbstractCommand.cc
  4636. * src/AdaptiveURISelector.cc
  4637. * src/AdaptiveURISelector.h
  4638. * src/FtpNegotiationCommand.cc
  4639. * src/RequestGroup.cc
  4640. * src/RequestGroup.h
  4641. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Fixed compiler warning
  4643. * test/IteratableChecksumValidatorTest.cc
  4644. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4646. integrated downloads. This PieceSelector subclass finds the
  4647. longest continuous sequence in the available missing pieces and
  4648. selects the last index of such sequence. This makes HTTP/FTP
  4649. connections less interrupted by the pieces obtained by BitTorrent
  4650. peers.
  4651. * src/DefaultPieceStorage.cc
  4652. * src/DefaultPieceStorage.h
  4653. * src/LongestSequencePieceSelector.cc
  4654. * src/LongestSequencePieceSelector.h
  4655. * src/Makefile.am
  4656. * src/PieceSelector.h
  4657. * src/RarestPieceSelector.h
  4658. * src/RequestGroup.cc
  4659. * test/BtDependencyTest.cc
  4660. * test/DefaultPieceStorageTest.cc
  4661. * test/IteratableChecksumValidatorTest.cc
  4662. * test/LongestSequencePieceSelectorTest.cc
  4663. * test/Makefile.am
  4664. * test/SegmentManTest.cc
  4665. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Fixed the bug that the average speed is wrong in
  4667. http/ftp/BitTorrent integrated download. Only the download bytes
  4668. in BitTorrent were considered.
  4669. * src/RequestGroup.cc
  4670. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4671. Choose port for BitTorrent/DHT randomly from the specified range.
  4672. * src/DHTConnectionImpl.cc
  4673. * src/PeerListenCommand.cc
  4674. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4675. Send HTTP Authorization header only if it is requested by the
  4676. server(response 401). There are some exceptions. The authorization
  4677. header for proxy is always sent if it is available without request
  4678. by the server. If username/password is specified in the URI, it
  4679. is immediately sent to the server without request by the server.
  4680. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4681. SharedHandle<AuthConfig>().
  4682. NetrcAuthResolver::resolveAuthConfig() returns
  4683. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4684. * src/AbstractAuthResolver.cc
  4685. * src/AbstractProxyRequestCommand.cc
  4686. * src/AuthConfigFactory.cc
  4687. * src/AuthConfigFactory.h
  4688. * src/HttpConnection.cc
  4689. * src/HttpRequest.cc
  4690. * src/HttpRequest.h
  4691. * src/HttpResponse.cc
  4692. * src/HttpResponseCommand.cc
  4693. * src/HttpSkipResponseCommand.cc
  4694. * test/AuthConfigFactoryTest.cc
  4695. * test/HttpRequestTest.cc
  4696. * test/HttpResponseTest.cc
  4697. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4698. Remove leading "--" from help keyword and a substring after "="
  4699. from help keyword, so that one can query options by '-h--max-' or
  4700. '-hmax-peers=10'.
  4701. * src/option_processing.cc
  4702. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Rewritten PStringVisitor and its implementation.
  4704. * src/PStringBuildVisitor.cc
  4705. * src/PStringBuildVisitor.h
  4706. * src/PStringDatum.h
  4707. * src/PStringNumLoop.h
  4708. * src/PStringSegment.cc
  4709. * src/PStringSegment.h
  4710. * src/PStringSelect.h
  4711. * src/PStringVisitor.h
  4712. * src/download_helper.cc
  4713. * test/PStringBuildVisitorTest.cc
  4714. * test/ParameterizedStringParserTest.cc
  4715. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Persist connection between the built-in HTTP server and a client
  4717. if a client supports keep-alive. Fixed the bug that aria2 exits
  4718. when the HTTP server receives EOF from a client.
  4719. * src/HttpServer.cc
  4720. * src/HttpServer.h
  4721. * src/HttpServerCommand.cc
  4722. * src/HttpServerCommand.h
  4723. * src/HttpServerResponseCommand.cc
  4724. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Added experimental built-in HTTP server. Currently, when a client
  4726. accesses to the server, it responds with the current download
  4727. progress. By default, it is disabled. To enable the server, give
  4728. --enable-http-server option. To change the default port number
  4729. for the server to listen to, use --http-server-listen-port option.
  4730. The response HTML is very simple and refreshes it self each 1
  4731. second. Because of this refresh, you see flicker in normal web
  4732. browser such as Firefox. I recommend to use console-based browser
  4733. such as elinks, w3m. To connect to the server, run 'elinks
  4734. http://localhost:6800/' while running aria2. Please replace port
  4735. number '6800'(which is default) with your preference.
  4736. * src/DownloadEngineFactory.cc
  4737. * src/HttpHeader.cc
  4738. * src/HttpHeader.h
  4739. * src/HttpHeaderProcessor.cc
  4740. * src/HttpHeaderProcessor.h
  4741. * src/HttpListenCommand.cc
  4742. * src/HttpListenCommand.h
  4743. * src/HttpServer.cc
  4744. * src/HttpServer.h
  4745. * src/HttpServerCommand.cc
  4746. * src/HttpServerCommand.h
  4747. * src/HttpServerResponseCommand.cc
  4748. * src/HttpServerResponseCommand.h
  4749. * src/Makefile.am
  4750. * src/OptionHandlerFactory.cc
  4751. * src/Util.cc
  4752. * src/Util.h
  4753. * src/help_tags.h
  4754. * src/option_processing.cc
  4755. * src/prefs.cc
  4756. * src/prefs.h
  4757. * src/usage_text.h
  4758. * test/HttpHeaderProcessorTest.cc
  4759. * test/UtilTest.cc
  4760. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Removed.
  4762. * src/CheckIntegrityMan.cc
  4763. * src/FileAllocationMan.cc
  4764. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Made (piece) hash check sequential for each RequestGroup because
  4766. simultaneous hash check is slower than sequential execution.
  4767. * src/CheckIntegrityCommand.cc
  4768. * src/CheckIntegrityDispatcherCommand.cc
  4769. * src/CheckIntegrityDispatcherCommand.h
  4770. * src/CheckIntegrityMan.h
  4771. * src/ConsoleStatCalc.cc
  4772. * src/DownloadCommand.cc
  4773. * src/DownloadEngine.cc
  4774. * src/DownloadEngine.h
  4775. * src/DownloadEngineFactory.cc
  4776. * src/Makefile.am
  4777. * src/Makefile.in
  4778. * src/RequestGroup.cc
  4779. * src/StatCalc.h
  4780. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4781. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4782. SequentialDispatcherCommand.
  4783. * src/FileAllocationDispatcherCommand.cc
  4784. * src/SequentialDispatcherCommand.h
  4785. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4786. Rewritten FileAllocationDispatcherCommand using brand new
  4787. SequentialDispatcherCommand.
  4788. * src/DownloadEngineFactory.cc
  4789. * src/FileAllocationCommand.cc
  4790. * src/FileAllocationDispatcherCommand.cc
  4791. * src/FileAllocationDispatcherCommand.h
  4792. * src/Makefile.am
  4793. * src/SequentialDispatcherCommand.h
  4794. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Replaced FileAllocationMan with
  4796. SequentialPicker<FileAllocationEntry>.
  4797. * src/BtCheckIntegrityEntry.cc
  4798. * src/ConsoleStatCalc.cc
  4799. * src/DownloadEngine.cc
  4800. * src/DownloadEngine.h
  4801. * src/DownloadEngineFactory.cc
  4802. * src/FileAllocationCommand.cc
  4803. * src/FileAllocationDispatcherCommand.cc
  4804. * src/FileAllocationMan.h
  4805. * src/Makefile.am
  4806. * src/SequentialPicker.h
  4807. * src/StatCalc.h
  4808. * src/StreamCheckIntegrityEntry.cc
  4809. * test/Makefile.am
  4810. * test/SequentialPickerTest.cc
  4811. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Added doc for adaptive URI selector.
  4813. * doc/aria2c.1.txt
  4814. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Added doc for adaptive URI selector.
  4816. * src/usage_text.h
  4817. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4818. Added doc for --bt-max-peers option.
  4819. * doc/aria2c.1.txt
  4820. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4821. Added doc for --bt-hash-check-seed option.
  4822. * doc/aria2c.1.txt
  4823. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Documented exit codes.
  4825. * doc/aria2c.1.txt
  4826. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Added --bt-max-peers option to specify the maximum number of peers
  4828. per torrent. 0 means unlimited number of peers.
  4829. * src/ActivePeerConnectionCommand.cc
  4830. * src/BtRuntime.h
  4831. * src/DefaultPeerStorage.cc
  4832. * src/DefaultPeerStorage.h
  4833. * src/OptionHandlerFactory.cc
  4834. * src/RequestGroup.cc
  4835. * src/option_processing.cc
  4836. * src/prefs.cc
  4837. * src/prefs.h
  4838. * src/usage_text.h
  4839. * test/DefaultPeerStorageTest.cc
  4840. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Added --bt-hash-check-seed option. If true is given to this
  4842. option, after hash check using --check-integrity option and file
  4843. is complete, continue to seed file. If you want to check file and
  4844. download it only when it is damaged or incomplete, set this option
  4845. to false. This option has effect only on BitTorrent download.
  4846. The default value is true(This is the same behavior with the
  4847. previous release).
  4848. * src/BtCheckIntegrityEntry.cc
  4849. * src/OptionHandlerFactory.cc
  4850. * src/option_processing.cc
  4851. * src/prefs.cc
  4852. * src/prefs.h
  4853. * src/usage_text.h
  4854. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4855. Updated copyright year.
  4856. * src/version_usage.cc
  4857. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4858. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4859. * doc/aria2c.1.txt
  4860. * src/usage_text.h
  4861. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Made the max value of split option unlimited.
  4863. * doc/aria2c.1.txt
  4864. * src/OptionHandlerFactory.cc
  4865. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4866. Fixed compile warning/error.
  4867. * src/DownloadResult.h
  4868. * src/HttpDownloadCommand.cc
  4869. * src/ServerStat.cc
  4870. * test/RequestGroupTest.cc
  4871. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Added --event-poll option to select the method for polling events.
  4873. The available methods are "select" and "epoll". "epoll" is
  4874. available on Linux only. The earlier release has the compile
  4875. option to choose from these methods.
  4876. * configure.ac
  4877. * src/RequestGroupMan.cc
  4878. * src/OptionHandlerFactory.cc
  4879. * src/EpollEventPoll.h
  4880. * src/StreamFileAllocationEntry.cc
  4881. * src/a2io.h
  4882. * src/SelectEventPoll.h
  4883. * src/option_processing.cc
  4884. * src/prefs.h
  4885. * src/EpollEventPoll.cc
  4886. * src/EventPoll.h
  4887. * src/SocketCore.h
  4888. * src/Makefile.am
  4889. * src/main.cc
  4890. * src/DownloadEngine.h
  4891. * src/SelectEventPoll.cc
  4892. * src/DownloadEngine.cc
  4893. * src/SocketCore.cc
  4894. * src/DownloadEngineFactory.cc
  4895. * src/Makefile.in
  4896. * src/prefs.cc
  4897. * src/usage_text.h
  4898. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Included RecoverableException.h from main.cc
  4900. * src/main.cc
  4901. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4903. now returns last error encountered in the HTTP/FTP downloads as a
  4904. exit status value. If all downloads finished successfully, aria2
  4905. returns 0. The error code is defined in src/DownloadResult.h.
  4906. The error occurred in the download currently in progress is not
  4907. reported as a last error. If no error has encountered but there
  4908. are in progress or waiting downloads, aria2 returns 7.
  4909. * src/AbstractCommand.cc
  4910. * src/DlAbortEx.h
  4911. * src/DlRetryEx.h
  4912. * src/DownloadCommand.cc
  4913. * src/DownloadFailureException.h
  4914. * src/DownloadResult.h
  4915. * src/FtpNegotiationCommand.cc
  4916. * src/HttpSkipResponseCommand.cc
  4917. * src/Makefile.am
  4918. * src/MultiUrlRequestInfo.cc
  4919. * src/MultiUrlRequestInfo.h
  4920. * src/RecoverableException.h
  4921. * src/RequestGroup.cc
  4922. * src/RequestGroup.h
  4923. * src/RequestGroupMan.cc
  4924. * src/RequestGroupMan.h
  4925. * src/URIResult.cc
  4926. * src/URIResult.h
  4927. * src/main.cc
  4928. * src/option_processing.cc
  4929. * test/RequestGroupTest.cc
  4930. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4932. patch adds AdaptiveURISelector, which selects one of the bests
  4933. mirrors for first and reserved connections. For supplementary
  4934. ones, it returns mirrors which has not been tested yet, and if
  4935. each of them already tested, returns mirrors which has to be
  4936. tested again. Otherwise, it doesn't return anymore mirrors.
  4937. * src/AdaptiveURISelector.cc
  4938. * src/AdaptiveURISelector.h
  4939. * src/FtpNegotiationCommand.cc
  4940. * src/HttpResponseCommand.cc
  4941. * src/Makefile.am
  4942. * src/Makefile.in
  4943. * src/OptionHandlerFactory.cc
  4944. * src/RequestGroup.cc
  4945. * src/RequestGroup.h
  4946. * src/RequestGroupMan.cc
  4947. * src/ServerStat.cc
  4948. * src/ServerStat.h
  4949. * src/ServerStatMan.cc
  4950. * src/SpeedCalc.cc
  4951. * src/URISelector.h
  4952. * src/prefs.cc
  4953. * src/prefs.h
  4954. * test/RequestGroupManTest.cc
  4955. * test/ServerStatManTest.cc
  4956. * test/ServerStatTest.cc
  4957. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Fixed unit test error.
  4959. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4960. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. * Release 1.1.2
  4962. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Updated Russian translation. Thanks to the translators.
  4964. * po/ru.po
  4965. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4966. Added the description of --use-head option to man page.
  4967. * doc/aria2c.1.txt
  4968. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4969. Bump up version number to 1.1.2
  4970. * configure.ac
  4971. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4972. Added --use-head option to toggle whether HEAD method should be
  4973. used in the first HTTP request. By default aria2 uses HEAD method
  4974. as the first request. When the server doesn't recognize HEAD, then
  4975. give aria2 --use-head=false to force aria2 to use GET method
  4976. instead.
  4977. * src/OptionHandlerFactory.cc
  4978. * src/RequestGroupMan.cc
  4979. * src/option_processing.cc
  4980. * src/prefs.cc
  4981. * src/prefs.h
  4982. * src/usage_text.h
  4983. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4985. message is received before CHOKE message. The old implementation
  4986. doen't clear the use-bit of the piece when recieved REJECT
  4987. message.
  4988. * src/DefaultBtMessageDispatcher.cc
  4989. * test/DefaultBtMessageDispatcherTest.cc
  4990. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4991. * Release 1.1.1
  4992. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Bump up version number to 1.1.1.
  4994. * configure.ac
  4995. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4996. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4997. is printed repeatedly.
  4998. * src/ConsoleStatCalc.cc
  4999. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5000. * Release 1.1.0
  5001. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Added ifdef clause for conditional compilation.
  5003. * src/main.cc
  5004. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5006. translations. Thanks to all translators.
  5007. * po/ja.po
  5008. * po/ru.po
  5009. * po/uk.po
  5010. * po/zh_CN.po
  5011. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Added the preceding ">>> " before the message "Printing the
  5013. contents of file..." to make the output more readable.
  5014. * src/main.cc
  5015. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Added try-catch block in the loop in showFiles() to continue the
  5017. operation even if the exception occurred in one file.
  5018. * src/main.cc (showFiles)
  5019. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. Made messages in showFiles() translatable.
  5021. * po/aria2.pot
  5022. * src/main.cc
  5023. * src/message.h
  5024. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5025. Print the contents of Torrent/Metalink files are printed without
  5026. -T/-M options.
  5027. * src/main.cc
  5028. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Escaped '--' with '\--'
  5030. * README
  5031. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Updated "How to build" section in README. Mentioned about
  5033. --with-ca-bundle compile option.
  5034. * README
  5035. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Bump up version number to 1.1.0.
  5037. * configure.ac
  5038. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Added a note for --dht-listen-port option.
  5040. * doc/aria2c.1.txt
  5041. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Update doc for --realtime-chunk-checksum option.
  5043. * doc/aria2c.1.txt
  5044. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5045. Update doc for --realtime-chunk-checksum option.
  5046. * src/usage_text.h
  5047. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5048. Updated French, Japanese, Russian and Ukrainian translations.
  5049. Thanks to all translators.
  5050. * po/fr.po
  5051. * po/ja.po
  5052. * po/ru.po
  5053. * po/uk.po
  5054. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Renamed aria2c.pot to aria2.pot
  5056. * po/aria2.pot
  5057. * po/aria2c.pot: Removed.
  5058. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Removed MetaEntry.h
  5060. * src/Makefile.am
  5061. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. Rename file by appending digits if a local file exists and its
  5063. file size is larger than that of remote file with --continue
  5064. option. The old implementation just throws exception in such case.
  5065. * src/RequestGroup.cc
  5066. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5067. Fixed the bug that download progress summary is not printed in the
  5068. interval specified by the option.
  5069. * src/ConsoleStatCalc.cc
  5070. * src/ConsoleStatCalc.h
  5071. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Fixed compiler warning
  5073. * src/Cookie.cc
  5074. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Fixed the cookie implementation based on RFC2965.
  5076. Now if a value in domain field is not started with dot, then
  5077. prepend dot. That means a cookie with domain=sf.net is sent to
  5078. wiki.sf.net.
  5079. * src/Cookie.cc
  5080. * test/CookieParserTest.cc
  5081. * test/CookieStorageTest.cc
  5082. * test/CookieTest.cc
  5083. * test/NsCookieParserTest.cc
  5084. * test/Sqlite3MozCookieParserTest.cc
  5085. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5086. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5087. is enabled and the server doesn't support keep-alive.
  5088. * src/AbstractCommand.cc
  5089. * src/DownloadCommand.cc
  5090. * src/HttpDownloadCommand.cc
  5091. * src/HttpDownloadCommand.h
  5092. * src/HttpResponseCommand.cc
  5093. * src/Request.cc
  5094. * src/Request.h
  5095. * test/RequestTest.cc
  5096. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Removed Dictionary/List/Data and its related classes.
  5098. * src/BencodeVisitor.cc: Removed.
  5099. * src/BencodeVisitor.h: Removed.
  5100. * src/Data.cc: Removed.
  5101. * src/Data.h: Removed.
  5102. * src/Dictionary.cc: Removed.
  5103. * src/Dictionary.h: Removed.
  5104. * src/List.cc: Removed.
  5105. * src/List.h: Removed.
  5106. * src/Makefile.am
  5107. * src/MetaEntry.h: Removed.
  5108. * src/MetaEntryVisitor.h: Removed.
  5109. * src/MetaFileUtil.cc: Removed.
  5110. * src/MetaFileUtil.h: Removed.
  5111. * test/BencodeVisitorTest.cc: Removed.
  5112. * test/DataTest.cc: Removed.
  5113. * test/DictionaryTest.cc: Removed.
  5114. * test/ListTest.cc: Removed.
  5115. * test/Makefile.am
  5116. * test/MetaFileUtilTest.cc: Removed.
  5117. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5118. Removed include of MetaEntry.h
  5119. * test/DHTMessageTrackerEntryTest.cc
  5120. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Use BDE instead of Dictionary/List/Data.
  5122. * src/AnnounceList.cc
  5123. * src/AnnounceList.h
  5124. * test/AnnounceListTest.cc
  5125. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Use BDE instead of Dictionary/List/Data.
  5127. * src/DHTAbstractMessage.cc
  5128. * src/DHTAbstractMessage.h
  5129. * src/DHTAnnouncePeerMessage.cc
  5130. * src/DHTAnnouncePeerMessage.h
  5131. * src/DHTAnnouncePeerReplyMessage.cc
  5132. * src/DHTAnnouncePeerReplyMessage.h
  5133. * src/DHTFindNodeMessage.cc
  5134. * src/DHTFindNodeMessage.h
  5135. * src/DHTFindNodeReplyMessage.cc
  5136. * src/DHTFindNodeReplyMessage.h
  5137. * src/DHTGetPeersMessage.cc
  5138. * src/DHTGetPeersMessage.h
  5139. * src/DHTGetPeersReplyMessage.cc
  5140. * src/DHTGetPeersReplyMessage.h
  5141. * src/DHTMessageFactory.h
  5142. * src/DHTMessageFactoryImpl.cc
  5143. * src/DHTMessageFactoryImpl.h
  5144. * src/DHTMessageReceiver.cc
  5145. * src/DHTMessageTracker.cc
  5146. * src/DHTMessageTracker.h
  5147. * src/DHTPingMessage.cc
  5148. * src/DHTPingMessage.h
  5149. * src/DHTPingReplyMessage.cc
  5150. * src/DHTPingReplyMessage.h
  5151. * src/DHTQueryMessage.cc
  5152. * src/DHTQueryMessage.h
  5153. * src/DHTResponseMessage.cc
  5154. * src/DHTResponseMessage.h
  5155. * test/DHTAnnouncePeerMessageTest.cc
  5156. * test/DHTAnnouncePeerReplyMessageTest.cc
  5157. * test/DHTFindNodeMessageTest.cc
  5158. * test/DHTFindNodeReplyMessageTest.cc
  5159. * test/DHTGetPeersMessageTest.cc
  5160. * test/DHTGetPeersReplyMessageTest.cc
  5161. * test/DHTMessageFactoryImplTest.cc
  5162. * test/DHTMessageTrackerTest.cc
  5163. * test/DHTPingMessageTest.cc
  5164. * test/DHTPingReplyMessageTest.cc
  5165. * test/MockDHTMessageFactory.h
  5166. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5167. Added tests the case where length < 0 is specified.
  5168. * test/BencodeTest.cc
  5169. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5170. Fixed memory leak in decoderawstring()
  5171. * src/bencode.cc
  5172. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5173. Added missing #ifdef guard. Added uc() function for String and
  5174. removeKey() for Dict.
  5175. * src/bencode.cc
  5176. * src/bencode.h
  5177. * test/BencodeTest.cc
  5178. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Use BDE instead of Dictionary/List/Data.
  5180. * src/HandshakeExtensionMessage.cc
  5181. * src/HandshakeExtensionMessage.h
  5182. * test/HandshakeExtensionMessageTest.cc
  5183. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Added --max-overall-upload-limit option. This option limits the
  5185. overall upload speed. Stated in help message that the existing
  5186. --max-upload-limit option limits the upload speed per each
  5187. torrent. Man page is also updated.
  5188. * doc/aria2c.1.txt
  5189. * src/DefaultBtMessageDispatcher.cc
  5190. * src/DefaultBtMessageDispatcher.h
  5191. * src/OptionHandlerFactory.cc
  5192. * src/PeerInteractionCommand.cc
  5193. * src/option_processing.cc
  5194. * src/prefs.cc
  5195. * src/prefs.h
  5196. * src/usage_text.h
  5197. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5198. Use BDE instead of Dictionary/List/Data classes.
  5199. * src/CompactPeerListProcessor.cc
  5200. * src/CompactPeerListProcessor.h
  5201. * src/DefaultBtAnnounce.cc
  5202. * src/DefaultBtContext.cc
  5203. * src/DefaultBtContext.h
  5204. * src/DefaultPeerListProcessor.cc
  5205. * src/DefaultPeerListProcessor.h
  5206. * src/DelegatingPeerListProcessor.cc
  5207. * src/DelegatingPeerListProcessor.h
  5208. * src/PeerListProcessor.h
  5209. * src/UTPexExtensionMessage.cc
  5210. * src/Util.h
  5211. * src/message.h
  5212. * test/DefaultBtContextTest.cc
  5213. * test/DefaultPeerListProcessorTest.cc
  5214. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Added bencode helper functions and BDE class.
  5216. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5217. * src/Makefile.am
  5218. * src/bencode.cc
  5219. * src/bencode.h
  5220. * test/BencodeTest.cc
  5221. * test/Makefile.am
  5222. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Fixed the bug that bad URI is sent to the tracker when the announe
  5224. URI in torrent file includes query.
  5225. * src/DefaultBtAnnounce.cc
  5226. * test/DefaultBtAnnounceTest.cc
  5227. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Added Option::blank().
  5229. Use !Option::blank(name) instead of Option::defined(name) for
  5230. the options that take filename.
  5231. * src/MultiUrlRequestInfo.cc
  5232. * src/Option.cc
  5233. * src/Option.h
  5234. * src/main.cc
  5235. * src/option_processing.cc
  5236. * test/OptionTest.cc
  5237. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Documented the default value of --check-certificate option in man
  5239. page.
  5240. * doc/aria2c.1.txt
  5241. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Enabled --check-certificate by default. Added compile
  5243. time(configure) option --with-ca-bundle to specify CA bundle.
  5244. Warn if --check-certificate=true and --ca-certificate is not
  5245. specified or loading CA certificate is failed.
  5246. * configure.ac
  5247. * src/MultiUrlRequestInfo.cc
  5248. * src/OptionHandlerFactory.cc
  5249. * src/message.h
  5250. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. Mentioned https tag in help option.
  5252. * doc/aria2c.1.txt
  5253. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5254. Added `https' tag to help option category. Added https tag to
  5255. --ca-certificate, --certificate, --check-certificate and
  5256. --private-key option.
  5257. * src/OptionHandlerFactory.cc
  5258. * src/help_tags.h
  5259. * src/option_processing.cc
  5260. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Changed the package name from `aria2c' to `aria2' in order to fix
  5262. the packaging issue in Debian and Fedora. The name of the
  5263. executable is not changed.
  5264. * configure.ac
  5265. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5266. Fixed typos
  5267. * src/usage_text.h
  5268. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Fixed typos and updated doc.
  5270. * README
  5271. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Fixed typos
  5273. * doc/aria2c.1.txt
  5274. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Fixed typos
  5276. * src/usage_text.h
  5277. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Print a message when no files to download.
  5279. * src/download_helper.cc
  5280. * src/main.cc
  5281. * src/message.h
  5282. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. RFC3986 complied Percent-Encoding(urlencode).
  5284. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5285. ones.
  5286. * src/Request.cc
  5287. * src/Util.cc
  5288. * src/Util.h
  5289. * test/BtHandshakeMessageTest.cc
  5290. * test/DefaultBtAnnounceTest.cc
  5291. * test/DefaultBtContextTest.cc
  5292. * test/RequestTest.cc
  5293. * test/UtilTest.cc
  5294. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Fixed the bug that prevents aria2 from downloading 0-length files
  5296. via HTTP/FTP.
  5297. * src/DefaultBtContext.cc
  5298. * src/DefaultBtContext.h
  5299. * src/DownloadContext.h
  5300. * src/FtpNegotiationCommand.cc
  5301. * src/HttpResponseCommand.cc
  5302. * src/HttpResponseCommand.h
  5303. * src/RequestGroup.cc
  5304. * src/SingleFileDownloadContext.cc
  5305. * src/SingleFileDownloadContext.h
  5306. * test/BtPostDownloadHandlerTest.cc
  5307. * test/MetalinkPostDownloadHandlerTest.cc
  5308. * test/MockBtContext.h
  5309. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5311. * src/option_processing.cc
  5312. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Applied aria2-1.0.1-mingw.patch.
  5314. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5315. mingw.
  5316. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5317. * src/SocketCore.cc
  5318. * src/a2netcompat.h
  5319. * test/SocketCoreTest.cc
  5320. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. * Release 1.0.1
  5322. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Updated Ukrainian and Norwegian Nynorsk translations.
  5324. Thanks to all translators.
  5325. * po/nn.po
  5326. * po/uk.po
  5327. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Don't show download result when -S option is used.
  5329. * src/main.cc
  5330. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Bump up version number to 1.0.1
  5332. * configure.ac
  5333. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5334. Closed files after the test cases in MultiDiskWriterTest::
  5335. testResetDiskWriterEntries(). This will fix the unit test error
  5336. in mingw32 build.
  5337. * test/MultiDiskWriterTest.cc
  5338. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Use HEAD method to get file size from HTTP server for segmented
  5340. downloading.
  5341. The request to the BitTorrent Tracker always uses GET method because
  5342. the response of the tracker is small and it doesn't need segmented
  5343. download.
  5344. * src/FtpNegotiationCommand.cc
  5345. * src/HttpRequest.cc
  5346. * src/HttpResponseCommand.cc
  5347. * src/HttpSkipResponseCommand.cc
  5348. * src/RequestGroup.cc
  5349. * src/RequestGroup.h
  5350. * src/TrackerWatcherCommand.cc
  5351. * test/HttpRequestTest.cc
  5352. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5353. Fixed the bug that causes floating exception when -T option is used and
  5354. no URIs are given.
  5355. * src/download_helper.cc
  5356. * test/DownloadHelperTest.cc
  5357. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5358. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5359. errors in MinGW:
  5360. Closed file after saving server stats (RequestGroupMan.cc)
  5361. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5362. Ignored case & handled 2-digit years (strptime.c)
  5363. Added missing suseconds_t definition (a2time.h)
  5364. Fixed socket CLOSE() define (SocketCore.cc)
  5365. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5366. Changed utime() test values from x000 to x00000 as MinGW failed on
  5367. values less than timezone offset from Unix epoch
  5368. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5369. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5370. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5371. handle negative dates (CookieParserTest.cc)
  5372. * src/a2time.h
  5373. * src/FtpConnection.cc
  5374. * src/RequestGroupMan.cc
  5375. * src/SocketCore.cc
  5376. * src/strptime.c
  5377. * test/CookieParserTest.cc
  5378. * test/CopyDiskAdaptorTest.cc
  5379. * test/FileTest.cc
  5380. * test/FtpConnectionTest.cc
  5381. * test/MultiDiskAdaptorTest.cc
  5382. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5383. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5384. * doc/aria2c.1.txt
  5385. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. * Release 1.0.0
  5387. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Added '~' to reserved characters.
  5389. * src/Util.cc
  5390. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Do not urlencode Request::url in setUrl() because we want unmodified
  5392. URL using Request::getUrl()
  5393. * src/Request.cc
  5394. * src/Request.h
  5395. * test/RequestTest.cc
  5396. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5398. Thanks to all translators.
  5399. * po/bg.po
  5400. * po/fr.po
  5401. * po/ja.po
  5402. * po/ru.po
  5403. * po/uk.po
  5404. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5405. Bump up version number to 1.0.0
  5406. * configure.ac
  5407. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5408. Added nosqlite3 build to build_test.sh.
  5409. Renamed noxml as expat.
  5410. * build_test.sh
  5411. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Updated INPUT FILE section.
  5413. * doc/aria2c.1.txt
  5414. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5416. on big endian systems because test .aria2 files are made for little
  5417. endian systems.
  5418. * test/DefaultBtProgressInfoFileTest.cc
  5419. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5420. Dropped ares support.
  5421. * README
  5422. * configure.ac
  5423. * m4/libares.m4: Removed.
  5424. * src/AsyncNameResolver.cc
  5425. * src/Makefile.am
  5426. * test/Makefile.am
  5427. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5429. Removed const qualifier from DiskWriter::size().
  5430. * src/AbstractDiskWriter.cc
  5431. * src/AbstractDiskWriter.h
  5432. * src/ByteArrayDiskWriter.cc
  5433. * src/ByteArrayDiskWriter.h
  5434. * src/DiskWriter.h
  5435. * test/ByteArrayDiskWriterTest.cc
  5436. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Fixed the bug that causes segmentation fault/bus error during executing
  5438. choking algorithm while seeding. This is caused by improper
  5439. implementation of compare function which returns inconsistent results
  5440. depending on the timing of last unchoke.
  5441. * src/BtSeederStateChoke.cc
  5442. * src/BtSeederStateChoke.h
  5443. * src/DefaultPeerStorage.cc
  5444. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. Removed TODO
  5446. * TODO
  5447. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Added a section that explains how to pass argument to options that
  5449. takes optional arguments with its short form.
  5450. * doc/aria2c.1.txt
  5451. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Added -u for the short form of --max-upload-limit option.
  5453. * doc/aria2c.1.txt
  5454. * src/option_processing.cc
  5455. * src/usage_text.h
  5456. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. Added -V for the short form of --check-integrity option.
  5458. Now the argument of --check-integrity option is optional:
  5459. if it is omitted, it is evaluated as true.
  5460. * doc/aria2c.1.txt
  5461. * src/option_processing.cc
  5462. * src/usage_text.h
  5463. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. Made the default value of --ftp-pasv option set to true and it can take
  5465. true/false values.
  5466. * src/OptionHandlerFactory.cc
  5467. * src/option_processing.cc
  5468. * src/usage_text.h
  5469. * doc/aria2c.1.txt
  5470. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Given custom random number generator to std::random_shuffle.
  5472. * src/AnnounceList.cc
  5473. * src/BtLeecherStateChoke.cc
  5474. * src/BtSeederStateChoke.cc
  5475. * src/DefaultBtRequestFactory.cc
  5476. * src/MetalinkEntry.cc
  5477. * src/RarestPieceSelector.cc
  5478. * src/SimpleRandomizer.cc
  5479. * src/SimpleRandomizer.h
  5480. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. Now the default value of --enable-direct-io is true.
  5482. * src/OptionHandlerFactory.cc
  5483. * doc/aria2c.1.txt
  5484. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. Erase peer before executing onReturningPeer and onErasingPeer
  5486. because choking algorithm called from onReturningPeer doesn't
  5487. like erasing peer in the active peer list.
  5488. * src/DefaultPeerStorage.cc
  5489. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5490. Instead of creating special filename in createDownloadResult() if
  5491. inMemoryDownload() is true, now it is done in getFilePath().
  5492. * src/RequestGroup.cc
  5493. * test/RequestGroupTest.cc
  5494. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5496. processed in memory. This is the fix for previous comment out.
  5497. * src/MemoryBufferPreDownloadHandler.cc
  5498. * src/RequestGroup.cc
  5499. * src/RequestGroup.h
  5500. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Commented out the code which sets virtual directory path "[MEMORY]"
  5502. propagate directory to store to following RequestGroup.
  5503. * src/MemoryBufferPreDownloadHandler.cc
  5504. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5505. Bump up version number to 1.0.0b
  5506. * configure.ac
  5507. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. Added input_uris.txt to EXTRA_DIST
  5509. * test/Makefile.am
  5510. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5511. Removed PeerObject.h from Makefile.am
  5512. * src/Makefile.am
  5513. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5514. Avoid slow seeding
  5515. * src/PeerInteractionCommand.cc
  5516. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5517. Updated usage for -i option.
  5518. * src/usage_text.h (TEXT_INPUT_FILE)
  5519. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Added INPUT FILE section to man page.
  5521. Escaped fake URLs.
  5522. * doc/aria2c.1.txt
  5523. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5524. Fixed wrong note position for -o option.
  5525. * doc/aria2c.1.txt
  5526. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5527. Fixed compile error without SSL/XML library.
  5528. * src/DefaultBtProgressInfoFile.cc
  5529. * src/DefaultBtProgressInfoFile.h
  5530. * src/FileMetalinkParserState.cc
  5531. * src/RequestGroup.h
  5532. * src/SocketCore.cc
  5533. * src/SocketCore.h
  5534. * src/VerificationMetalinkParserState.cc
  5535. * src/download_helper.h
  5536. * src/main.cc
  5537. * test/DefaultBtProgressInfoFileTest.cc
  5538. * test/DownloadHelperTest.cc
  5539. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5540. Rewritten URI handling functions. They are now provided as a testable
  5541. functions.
  5542. * src/Makefile.am
  5543. * src/RequestGroup.cc
  5544. * src/RequestGroup.h
  5545. * src/download_helper.cc
  5546. * src/download_helper.h
  5547. * src/main.cc
  5548. * test/DownloadHelperTest.cc
  5549. * test/Makefile.am
  5550. * test/input_uris.txt
  5551. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5552. Quickly terminate commands when ctrl-c is pressed.
  5553. * src/DownloadEngine.cc
  5554. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5555. Quickly terminate idle commands when download finished.
  5556. * src/AbstractCommand.cc
  5557. * src/DownloadCommand.cc
  5558. * src/DownloadEngine.cc
  5559. * src/DownloadEngine.h
  5560. * src/SleepCommand.cc
  5561. * src/SleepCommand.h
  5562. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Added the ability to specify output filename and directory in input
  5564. file.
  5565. Additional parameters are added in the following line of URIs
  5566. with proceeding white space(s), 1 parameter in 1 line.
  5567. The parameter names are the same with the command-line option name
  5568. without proceeding "--". Not all the options are available here:
  5569. at the moment, 'dir' and 'out' options are avialable.
  5570. Please note that out option has no effect against Metalink or BitTorrent
  5571. downloads.
  5572. Example input file:
  5573. http://host/foo-1.1.tar.bz2
  5574. out=foo.tar.bz2
  5575. dir=/tmp/downloads
  5576. http://host/thundermonkey-2.0.tar.bz2
  5577. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5578. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5579. thundermonkey-2.0.tar.bz2 is saved as
  5580. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5581. * src/BtPostDownloadHandler.cc
  5582. * src/Metalink2RequestGroup.cc
  5583. * src/Metalink2RequestGroup.h
  5584. * src/MetalinkPostDownloadHandler.cc
  5585. * src/UriListParser.cc
  5586. * src/UriListParser.h
  5587. * src/main.cc
  5588. * test/Metalink2RequestGroupTest.cc
  5589. * test/UriListParserTest.cc
  5590. * test/filelist1.txt
  5591. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5592. Fixed error when SSL library is not found.
  5593. * configure.ac
  5594. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5595. Cross referenced among -s, -C and -j options.
  5596. Updated usage of -C and -s options.
  5597. * src/usage_text.h
  5598. * doc/aria2c.1.txt
  5599. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Fixed bad cast in 32bit platforms.
  5601. * test/DefaultPieceStorageTest.cc
  5602. (DefaultPieceStorageTest::testGetCompletedLength)
  5603. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5604. Fixed unit test fails on 32bit platforms.
  5605. * test/CookieParserTest.cc
  5606. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5607. Show an average download speed in Download results.
  5608. * src/BtFileAllocationEntry.cc
  5609. * src/DefaultPieceStorage.cc
  5610. * src/DownloadContext.cc
  5611. * src/DownloadContext.h
  5612. * src/DownloadResult.h
  5613. * src/RequestGroup.cc
  5614. * src/RequestGroupMan.cc
  5615. * src/StreamFileAllocationEntry.cc
  5616. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. Fixed the bug that metalink file is not processed if Content-Type
  5618. field has a paramter.
  5619. * src/HttpResponse.cc
  5620. * src/HttpResponse.h
  5621. * test/HttpResponseTest.cc
  5622. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Removed unused code.
  5624. * src/DefaultBtAnnounce.cc
  5625. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5627. the value larger than DefaultPieceStorage::getTotalLength() when
  5628. in flight pieces are involved.
  5629. * src/DefaultPieceStorage.cc
  5630. * test/DefaultPieceStorageTest.cc
  5631. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5632. Bump up version number to 1.0.0a.
  5633. * configure.ac
  5634. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5635. Updated configure.ac
  5636. * configure.ac
  5637. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5638. Added usege for proxy.
  5639. * doc/aria2c.1.txt
  5640. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Added usage for --ca-certificate, --certificate, --private-key and
  5642. --check-certificate options.
  5643. * doc/aria2c.1.txt
  5644. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Updated man page
  5646. * doc/aria2c.1.txt
  5647. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Added --no-proxy option. It receives comman separated hostname or
  5649. domains to which proxy should not be used.
  5650. aria2 honors the environment variable no_proxy to override no-proxy
  5651. value in configuration file. The user can override the environment
  5652. variable no_proxy with --no-proxy command-line option.
  5653. * src/AbstractCommand.cc
  5654. * src/OptionHandlerFactory.cc
  5655. * src/option_processing.cc
  5656. * src/prefs.cc
  5657. * src/prefs.h
  5658. * src/usage_text.h
  5659. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5661. The CA certificates are specified in --ca-certificate option.
  5662. By default, the verification is disabled. Use --check-certificate
  5663. option to enable it.
  5664. * src/HttpRequestCommand.cc
  5665. * src/LibgnutlsTLSContext.cc
  5666. * src/LibgnutlsTLSContext.h
  5667. * src/LibsslTLSContext.cc
  5668. * src/LibsslTLSContext.h
  5669. * src/MultiUrlRequestInfo.cc
  5670. * src/OptionHandlerFactory.cc
  5671. * src/SocketCore.cc
  5672. * src/SocketCore.h
  5673. * src/a2functional.h
  5674. * src/message.h
  5675. * src/option_processing.cc
  5676. * src/prefs.cc
  5677. * src/prefs.h
  5678. * src/usage_text.h
  5679. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Added client certificate authentication for SSL/TLS.
  5681. Currently a private key must be decrypted for use with aria2.
  5682. If a user accidentally gives encrypted file to aria2 then following
  5683. thing happens:
  5684. If encrypted private key is given to aria2, it behaves differently
  5685. depending on the ssl library it uses. If aria2 built with openssl then
  5686. openssl prompts the user for password. If aria2 build with gnutls then
  5687. aria2 exists with error at start up.
  5688. * src/DownloadEngineFactory.cc
  5689. * src/MultiUrlRequestInfo.cc
  5690. * src/OptionHandlerFactory.cc
  5691. * src/option_processing.cc
  5692. * src/prefs.cc
  5693. * src/prefs.h
  5694. * src/usage_text.h
  5695. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5696. Introduced TLSContext that holds TLS related data that can be shared
  5697. with multiple SSL connections.
  5698. * src/DownloadEngineFactory.cc
  5699. * src/LibgnutlsTLSContext.cc
  5700. * src/LibgnutlsTLSContext.h
  5701. * src/LibsslTLSContext.cc
  5702. * src/LibsslTLSContext.h
  5703. * src/Makefile.am
  5704. * src/SocketCore.cc
  5705. * src/SocketCore.h
  5706. * src/TLSContext.h
  5707. * src/message.h
  5708. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5709. Fixed the bug that the DiskWriter of the first FileEntry whose
  5710. `needsFileAllocation' property is false is not created
  5711. even if it shares a piece with next FileEntry which `requested' property
  5712. is true.
  5713. Fixed the bug that zero-length file is not created if pre file
  5714. allocation is not done.
  5715. * src/MultiDiskAdaptor.cc
  5716. * src/MultiDiskAdaptor.h
  5717. * test/MultiDiskAdaptorTest.cc
  5718. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Added the ability to pool proxy connection.
  5720. The conneciton in FTP with proxy-method=GET is not pooled.
  5721. Proxy-Connection header will not be sent when sending CONNECT method.
  5722. * src/DownloadEngine.cc
  5723. * src/DownloadEngine.h
  5724. * src/FtpFinishDownloadCommand.cc
  5725. * src/FtpInitiateConnectionCommand.cc
  5726. * src/FtpNegotiationCommand.cc
  5727. * src/HttpDownloadCommand.cc
  5728. * src/HttpInitiateConnectionCommand.cc
  5729. * src/HttpRequest.cc
  5730. * src/HttpRequest.h
  5731. * src/HttpResponse.cc
  5732. * src/HttpSkipResponseCommand.cc
  5733. * test/HttpRequestTest.cc
  5734. * test/HttpResponseTest.cc
  5735. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Handle date before epoch.
  5737. To create *bad* Time object, call Time::null().
  5738. * src/CookieParser.cc
  5739. * src/FtpConnection.cc
  5740. * src/FtpConnection.h
  5741. * src/FtpNegotiationCommand.cc
  5742. * src/RequestGroup.cc
  5743. * src/TimeA2.cc
  5744. * src/TimeA2.h
  5745. * test/CookieParserTest.cc
  5746. * test/FtpConnectionTest.cc
  5747. * test/TimeTest.cc
  5748. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Added support for following envrionment variables: http_proxy,
  5750. https_proxy, ftp_proxy and all_proxy.
  5751. Each variable is equivalent to the aria2 option whose name is the
  5752. variable name with '_' replaced with '-'.
  5753. They overrides options specified in aria2.conf file.
  5754. The envrionment variables can be overrode using command-line option.
  5755. * src/option_processing.cc
  5756. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Renamed --http-proxy-method as --proxy-method.
  5758. * src/AbstractCommand.cc
  5759. * src/FtpInitiateConnectionCommand.cc
  5760. * src/HttpInitiateConnectionCommand.cc
  5761. * src/OptionHandlerFactory.cc
  5762. * src/option_processing.cc
  5763. * src/prefs.cc
  5764. * src/prefs.h
  5765. * src/usage_text.h
  5766. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5767. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5768. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5769. Above 3 options and --http-proxy option can handle proxy in URL format
  5770. like: http://user:passwd@host:port.
  5771. If a proxy requires user/password, they must be specified in a URL.
  5772. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5773. instead.
  5774. * src/AbstractCommand.cc
  5775. * src/AbstractCommand.h
  5776. * src/AbstractProxyRequestCommand.cc
  5777. * src/AbstractProxyRequestCommand.h
  5778. * src/AuthConfigFactory.cc
  5779. * src/AuthConfigFactory.h
  5780. * src/FtpFinishDownloadCommand.cc
  5781. * src/FtpInitiateConnectionCommand.cc
  5782. * src/FtpInitiateConnectionCommand.h
  5783. * src/FtpNegotiationCommand.cc
  5784. * src/FtpTunnelRequestCommand.cc
  5785. * src/FtpTunnelRequestCommand.h
  5786. * src/HttpDownloadCommand.cc
  5787. * src/HttpInitiateConnectionCommand.cc
  5788. * src/HttpInitiateConnectionCommand.h
  5789. * src/HttpProxyRequestCommand.cc
  5790. * src/HttpProxyRequestCommand.h
  5791. * src/HttpRequest.cc
  5792. * src/HttpRequest.h
  5793. * src/HttpRequestCommand.cc
  5794. * src/HttpRequestCommand.h
  5795. * src/HttpSkipResponseCommand.cc
  5796. * src/InitiateConnectionCommand.cc
  5797. * src/InitiateConnectionCommand.h
  5798. * src/OptionHandlerFactory.cc
  5799. * src/OptionHandlerImpl.h
  5800. * src/Request.cc
  5801. * src/option_processing.cc
  5802. * src/prefs.cc
  5803. * src/prefs.h
  5804. * src/usage_text.h
  5805. * test/AuthConfigFactoryTest.cc
  5806. * test/HttpRequestTest.cc
  5807. * test/OptionHandlerTest.cc
  5808. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Execute choking algorithm when unchoked and interested peer is
  5810. disconected.
  5811. * src/DefaultPeerStorage.cc
  5812. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Added testcase for BtNotInterestedMessage from unchoked peer.
  5814. * test/BtNotInterestedMessageTest.cc
  5815. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Execute choking algorithm when BtInterestedMessage arrives from
  5817. unchoked peer.
  5818. * src/BtInterestedMessage.cc
  5819. * src/BtInterestedMessage.h
  5820. * src/DefaultBtMessageFactory.cc
  5821. * test/BtInterestedMessageTest.cc
  5822. * test/MockPeerStorage.h
  5823. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. AuthConfigFactory is now part of DownloadEngine.
  5825. * src/AbstractProxyRequestCommand.cc
  5826. * src/AuthConfigFactory.h
  5827. * src/DownloadEngine.cc
  5828. * src/DownloadEngine.h
  5829. * src/FtpConnection.cc
  5830. * src/FtpConnection.h
  5831. * src/FtpNegotiationCommand.cc
  5832. * src/HttpConnection.cc
  5833. * src/HttpRequest.cc
  5834. * src/HttpRequest.h
  5835. * src/HttpRequestCommand.cc
  5836. * src/HttpResponse.cc
  5837. * src/HttpResponseCommand.cc
  5838. * src/HttpSkipResponseCommand.cc
  5839. * src/MultiUrlRequestInfo.cc
  5840. * src/main.cc
  5841. * test/FtpConnectionTest.cc
  5842. * test/HttpRequestTest.cc
  5843. * test/HttpResponseTest.cc
  5844. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Corrected catched exception type.
  5846. * src/ServerStatMan.cc
  5847. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. DNSCache is now part of DownloadEngine.
  5849. * src/DNSCache.h
  5850. * src/DownloadEngine.cc
  5851. * src/DownloadEngine.h
  5852. * src/InitiateConnectionCommand.cc
  5853. * src/MultiUrlRequestInfo.cc
  5854. * test/Makefile.am
  5855. * test/Makefile.in
  5856. * test/SimpleDNSCacheTest.cc
  5857. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5859. DownloadEngine.
  5860. * src/ActivePeerConnectionCommand.cc
  5861. * src/BtSetup.cc
  5862. * src/CUIDCounter.h
  5863. * src/DHTSetup.cc
  5864. * src/DownloadCommand.cc
  5865. * src/DownloadEngine.cc
  5866. * src/DownloadEngine.h
  5867. * src/DownloadEngineFactory.cc
  5868. * src/FileAllocationDispatcherCommand.cc
  5869. * src/InitiatorMSEHandshakeCommand.cc
  5870. * src/PeerInitiateConnectionCommand.cc
  5871. * src/PeerInteractionCommand.cc
  5872. * src/PeerListenCommand.cc
  5873. * src/RequestGroup.cc
  5874. * src/StreamFileAllocationEntry.cc
  5875. * src/TrackerWatcherCommand.cc
  5876. * src/main.cc
  5877. * test/RequestGroupManTest.cc
  5878. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5879. Implemented commented code in BtSeederStateChoke
  5880. * src/BtSeederStateChoke.cc
  5881. * src/Peer.cc
  5882. * src/Peer.h
  5883. * src/PeerInteractionCommand.cc
  5884. * src/PeerSessionResource.cc
  5885. * src/PeerSessionResource.h
  5886. * test/MockBtMessageDispatcher.h
  5887. * test/PeerSessionResourceTest.cc
  5888. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5890. its object.
  5891. * src/AbstractBtMessage.cc
  5892. * src/ActivePeerConnectionCommand.cc
  5893. * src/ActivePeerConnectionCommand.h
  5894. * src/BtContextAwareCommand.cc
  5895. * src/BtContextAwareCommand.h
  5896. * src/BtExtendedMessage.cc
  5897. * src/BtExtendedMessage.h
  5898. * src/BtInterestedMessage.cc
  5899. * src/BtInterestedMessage.h
  5900. * src/BtNotInterestedMessage.cc
  5901. * src/BtNotInterestedMessage.h
  5902. * src/BtRegistry.cc
  5903. * src/BtRegistry.h
  5904. * src/BtSeederStateChoke.cc
  5905. * src/BtSetup.cc
  5906. * src/DHTGetPeersCommand.cc
  5907. * src/DHTGetPeersCommand.h
  5908. * src/DHTPeerAnnounceEntry.cc
  5909. * src/DHTPeerAnnounceEntry.h
  5910. * src/DHTPeerAnnounceStorage.cc
  5911. * src/DHTPeerAnnounceStorage.h
  5912. * src/DHTPeerLookupTask.cc
  5913. * src/DHTPeerLookupTask.h
  5914. * src/DHTSetup.cc
  5915. * src/DHTSetup.h
  5916. * src/DHTTaskFactory.h
  5917. * src/DHTTaskFactoryImpl.cc
  5918. * src/DHTTaskFactoryImpl.h
  5919. * src/DefaultBtAnnounce.cc
  5920. * src/DefaultBtInteractive.cc
  5921. * src/DefaultBtInteractive.h
  5922. * src/DefaultBtMessageDispatcher.cc
  5923. * src/DefaultBtMessageDispatcher.h
  5924. * src/DefaultBtMessageFactory.cc
  5925. * src/DefaultBtMessageFactory.h
  5926. * src/DefaultBtMessageReceiver.cc
  5927. * src/DefaultBtProgressInfoFile.cc
  5928. * src/DefaultBtProgressInfoFile.h
  5929. * src/DefaultBtRequestFactory.cc
  5930. * src/DefaultBtRequestFactory.h
  5931. * src/DefaultExtensionMessageFactory.cc
  5932. * src/DefaultExtensionMessageFactory.h
  5933. * src/DefaultPeerStorage.cc
  5934. * src/DefaultPeerStorage.h
  5935. * src/DownloadEngine.cc
  5936. * src/DownloadEngine.h
  5937. * src/InitiatorMSEHandshakeCommand.cc
  5938. * src/InitiatorMSEHandshakeCommand.h
  5939. * src/MSEHandshake.cc
  5940. * src/MSEHandshake.h
  5941. * src/Makefile.am
  5942. * src/Makefile.in
  5943. * src/PeerChokeCommand.cc
  5944. * src/PeerChokeCommand.h
  5945. * src/PeerInitiateConnectionCommand.cc
  5946. * src/PeerInitiateConnectionCommand.h
  5947. * src/PeerInteractionCommand.cc
  5948. * src/PeerInteractionCommand.h
  5949. * src/PeerObject.h
  5950. * src/PeerReceiveHandshakeCommand.cc
  5951. * src/PeerReceiveHandshakeCommand.h
  5952. * src/ReceiverMSEHandshakeCommand.cc
  5953. * src/RequestGroup.cc
  5954. * src/RequestGroup.h
  5955. * src/RequestGroupMan.cc
  5956. * src/RequestGroupMan.h
  5957. * src/SeedCheckCommand.cc
  5958. * src/SeedCheckCommand.h
  5959. * src/ShareRatioSeedCriteria.h
  5960. * src/SimpleBtMessage.cc
  5961. * src/TrackerWatcherCommand.cc
  5962. * src/TrackerWatcherCommand.h
  5963. * src/UTPexExtensionMessage.cc
  5964. * src/UTPexExtensionMessage.h
  5965. * test/BtCancelMessageTest.cc
  5966. * test/BtChokeMessageTest.cc
  5967. * test/BtExtendedMessageTest.cc
  5968. * test/BtInterestedMessageTest.cc
  5969. * test/BtNotInterestedMessageTest.cc
  5970. * test/BtPieceMessageTest.cc
  5971. * test/BtPortMessageTest.cc
  5972. * test/BtRegistryTest.cc
  5973. * test/BtRejectMessageTest.cc
  5974. * test/BtRequestMessageTest.cc
  5975. * test/DHTPeerAnnounceEntryTest.cc
  5976. * test/DHTPeerAnnounceStorageTest.cc
  5977. * test/DefaultBtMessageDispatcherTest.cc
  5978. * test/DefaultBtMessageFactoryTest.cc
  5979. * test/DefaultBtProgressInfoFileTest.cc
  5980. * test/DefaultBtRequestFactoryTest.cc
  5981. * test/DefaultExtensionMessageFactoryTest.cc
  5982. * test/MSEHandshakeTest.cc
  5983. * test/MockDHTTaskFactory.h
  5984. * test/ShareRatioSeedCriteriaTest.cc
  5985. * test/UTPexExtensionMessageTest.cc
  5986. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. Fixed compiler warning.
  5988. * test/UtilTest.cc
  5989. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Treat Cookie object as session cookie if expiry = 0 is given.
  5991. With this change, you can specify session scoped cookies in an external
  5992. file setting expiry value to 0.
  5993. * src/Cookie.cc
  5994. * src/Cookie.h
  5995. * test/CookieParserTest.cc
  5996. * test/CookieStorageTest.cc
  5997. * test/CookieTest.cc
  5998. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Changed signature of DHTMessageFactory::createResponseMessage().
  6000. Removed unused validateIDMatch.
  6001. * src/DHTMessageFactory.h
  6002. * src/DHTMessageFactoryImpl.cc
  6003. * src/DHTMessageFactoryImpl.h
  6004. * src/DHTMessageTracker.cc
  6005. * test/DHTMessageFactoryImplTest.cc
  6006. * test/MockDHTMessageFactory.h
  6007. Dropped DHT message coming from same ID of localhost.
  6008. * src/DHTMessageReceiver.cc
  6009. Rejected adding node whose ID is the same as localhost's.
  6010. * src/DHTRoutingTable.cc
  6011. * test/BtPortMessageTest.cc
  6012. * test/DHTRoutingTableTest.cc
  6013. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Pool connection when redirection occurs with Content-Length = 0.
  6015. * src/HttpSkipResponseCommand.cc
  6016. * src/HttpSkipResponseCommand.h
  6017. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Fixed the bug that causes time out when redirection occurs with
  6019. content-length 0.
  6020. * src/HttpResponseCommand.cc
  6021. * src/HttpSkipResponseCommand.cc
  6022. * src/HttpSkipResponseCommand.h
  6023. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Now each status legends is shown only when it appears in Download
  6025. Result. If Download Result has no item, then status legend will not
  6026. be printed.
  6027. * src/RequestGroupMan.cc
  6028. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Removed duplicate creation of OptionHandlers.
  6030. * src/option_processing.cc
  6031. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Fixed the bug that causes segmentation fault when accessing files which
  6033. don't exist or are not included in --select-file option while
  6034. validating chunk checksum.
  6035. * src/MultiDiskAdaptor.cc
  6036. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Fixed compiler warning.
  6038. * test/UtilTest.cc
  6039. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6041. * src/IteratableChecksumValidator.cc
  6042. * src/IteratableChunkChecksumValidator.cc
  6043. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. * Release 0.16.2
  6045. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Added Serbian translation. Updated Ukrainian translation.
  6047. Thanks to all translators.
  6048. * po/sr.po
  6049. * po/uk.po
  6050. * po/LINGUAS
  6051. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Bump up version number to 0.16.2
  6053. * configure.ac
  6054. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Added length equality test to operator== to drop a piece message
  6056. whose length does not match to the requested one.
  6057. * src/RequestSlot.cc
  6058. * test/DefaultBtMessageDispatcherTest.cc
  6059. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6061. recieved.
  6062. In this fix, if a request larger than 16KiB length is received, aria2
  6063. disconnects the peer.
  6064. * src/BtConstants.h
  6065. * src/PeerMessageUtil.cc
  6066. * src/PeerMessageUtil.h
  6067. * test/BtRequestMessageTest.cc
  6068. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. * Release 0.16.1
  6070. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6072. * doc/aria2c.1.txt
  6073. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6075. Updated French, Simplified Chinese and Japanese translations.
  6076. Thanks to all translators.
  6077. en@quot and en@boldquot are also added.
  6078. * po/LINGUAS
  6079. * po/fr.po
  6080. * po/ja.po
  6081. * po/uk.po
  6082. * po/vi.po
  6083. * po/zh_CN.po
  6084. * po/zh_TW.po
  6085. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Bump up version number to 0.16.1.
  6087. * configure.ac
  6088. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Updated README.
  6090. * README
  6091. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6093. not to replace '--' with em dash character.
  6094. * doc/aria2c.1.txt
  6095. * doc/makeman
  6096. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6098. every SEC seconds.
  6099. * src/DownloadEngineFactory.cc
  6100. * src/OptionHandlerFactory.cc
  6101. * src/option_processing.cc
  6102. * src/usage_text.h
  6103. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Fixed compile warning on linux-amd64
  6105. * src/FtpConnection.cc
  6106. * src/IteratableChunkChecksumValidator.cc
  6107. * src/MultiDiskAdaptor.cc
  6108. Fixed the bug that unit test fails on linux-amd64
  6109. * test/UtilTest.cc
  6110. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Added --dht-file-path option to change the path to dht.dat, which is a
  6112. serialized DHT routing table.
  6113. * src/OptionHandlerFactory.cc
  6114. * src/option_processing.cc
  6115. * src/usage_text.h
  6116. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Fixed possible underflow.
  6118. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6119. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Fixed the bug that last character in URI is not encoded.
  6121. * src/Request.cc
  6122. * test/RequestTest.cc
  6123. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Fixed the bug that referer header field contains fragment.
  6125. Now Request class removes fragment part of URI and encodes it
  6126. in Request::setUri() and setReferer().
  6127. * src/Request.h
  6128. * src/Request.cc
  6129. * test/RequestTest.cc
  6130. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Added missing m4 macros.
  6132. * m4/cppunit.m4
  6133. * m4/libgcrypt.m4
  6134. * m4/libgnutls-extra.m4
  6135. * m4/libgnutls.m4
  6136. * m4/libxml2.m4
  6137. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Fixed compile error with gcc-4.4(snapshot)
  6139. * src/File.cc
  6140. * src/FtpConnection.cc
  6141. * src/OptionHandlerImpl.h
  6142. * src/Util.cc
  6143. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6144. Removed assert()
  6145. * src/SocketBuffer.cc (SocketBuffer::send)
  6146. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Changed the type of _numNewConnection to unsigned int.
  6148. * src/ActivePeerConnectionCommand.cc
  6149. * src/ActivePeerConnectionCommand.h
  6150. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. * Release 0.16.0
  6152. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Updated doc
  6154. * README
  6155. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6157. translations. Thanks to all translators.
  6158. * po/bg.po
  6159. * po/de.po
  6160. * po/fr.po
  6161. * po/ja.po
  6162. * po/zh_CN.po
  6163. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Bump up version number to 0.16.0.
  6165. * configure.ac
  6166. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6168. int32_t.
  6169. Changed the type of count to int32_t.
  6170. * src/Metalink2RequestGroup.cc
  6171. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Added test for Time::elapsed(time_t).
  6173. * test/TimeTest.cc
  6174. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6176. Util::difftv() should be used instead.
  6177. * src/TimeA2.cc
  6178. * src/TimeA2.h
  6179. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Made socket for dht connections non-blocking
  6181. * src/DHTAbstractMessage.cc
  6182. * src/DHTAbstractMessage.h
  6183. * src/DHTConnection.h
  6184. * src/DHTConnectionImpl.cc
  6185. * src/DHTConnectionImpl.h
  6186. * src/DHTMessage.h
  6187. * src/DHTMessageDispatcherImpl.cc
  6188. * src/DHTMessageDispatcherImpl.h
  6189. * src/DHTUnknownMessage.cc
  6190. * src/DHTUnknownMessage.h
  6191. * src/SocketCore.cc
  6192. * src/SocketCore.h
  6193. * test/MockDHTMessage.h
  6194. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Changed the type of offset to int.
  6196. * src/ParameterizedStringParser.cc
  6197. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Made getAsInt() return int32_t
  6199. * src/Option.h
  6200. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6202. build.
  6203. * configure.ac
  6204. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Use sqlite3_open if sqlite3_open_v2 is not available.
  6206. * src/Sqlite3MozCookieParser.cc
  6207. * src/Sqlite3MozCookieParser.h
  6208. * m4/sqlite3.m4
  6209. * test/Sqlite3MozCookieParserTest.cc
  6210. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6212. * src/BtPieceMessage.cc
  6213. * src/DHTPeerAnnounceStorage.cc
  6214. * src/DefaultPieceStorage.cc
  6215. * src/DownloadCommand.cc
  6216. * src/DownloadEngine.cc
  6217. * src/FtpConnection.cc
  6218. * src/PeerConnection.cc
  6219. * src/PeerMessageUtil.cc
  6220. * src/RequestGroup.cc
  6221. * src/RequestGroupMan.cc
  6222. * src/SimpleBtMessage.cc
  6223. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6224. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6225. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6226. * src/AbstractDiskWriter.cc
  6227. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Don't set Request::supportsPersistentConnection() in HttpConnection
  6229. since this code is also used in AbstractProxyResponseCommand.
  6230. Moved those code to HttpResponse.
  6231. * src/HttpResponse.cc
  6232. * src/HttpResponse.h
  6233. * src/HttpConnection.cc
  6234. * src/HttpConnection.h
  6235. * src/HttpResponseCommand.cc
  6236. * test/HttpResponseTest.cc
  6237. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6239. The configuration is minimum: no torrent, no metalink, so there may be
  6240. other compile error on their code.
  6241. * src/a2netcompat.h
  6242. * src/File.cc
  6243. * src/File.h
  6244. * src/SocketCore.cc
  6245. * src/SocketCore.h
  6246. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Made a socket of incoming peer non-blocking.
  6248. * src/PeerListenCommand.cc
  6249. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6251. whole message data is not sent in one send() call.
  6252. * src/BtPieceMessage.cc
  6253. * src/BtPieceMessage.h
  6254. * src/PeerConnection.cc
  6255. * src/PeerConnection.h
  6256. * src/SimpleBtMessage.cc
  6257. * src/SimpleBtMessage.h
  6258. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Fixed the bug that aria2 downloads faster than max-download-limit when
  6260. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6261. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6262. , instead of sum of them.
  6263. * src/ActivePeerConnectionCommand.cc
  6264. * src/DefaultBtInteractive.cc
  6265. * src/DownloadCommand.cc
  6266. * src/PeerInteractionCommand.cc
  6267. * src/PeerReceiveHandshakeCommand.cc
  6268. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Fixed the bug that HTTPS download fails.
  6270. * src/AbstractCommand.cc
  6271. * src/AbstractCommand.h
  6272. * src/DownloadCommand.cc
  6273. * src/FtpConnection.cc
  6274. * src/HttpConnection.cc
  6275. * src/HttpRequestCommand.cc
  6276. * src/HttpResponseCommand.cc
  6277. * src/HttpSkipResponseCommand.cc
  6278. * src/MSEHandshake.cc
  6279. * src/PeerConnection.cc
  6280. * src/SocketCore.cc
  6281. * src/SocketCore.h
  6282. Fixed the bug that aria2 doesn't download whole content body and cannot
  6283. reuse connection if chunked transfer encoding and gzip content encoding
  6284. are set.
  6285. * src/DownloadCommand.cc
  6286. * src/HttpSkipResponseCommand.cc
  6287. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6288. Updated man page.
  6289. * doc/aria2c.1.txt
  6290. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. When error occurred while aria2 was parsing an .aria2.conf file, print
  6292. the usage of the option that caused error.
  6293. * src/option_processing.cc
  6294. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Fixed compile error on OptionHandlerException
  6296. * src/Makefile.am
  6297. * src/OptionHandlerException.cc
  6298. * src/OptionHandlerException.h
  6299. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Moved message of the error to OptionHandlerException.h
  6301. * src/NameMatchOptionHandler.h
  6302. * src/OptionHandlerException.h
  6303. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. When error occurs while aria2 is parsing an command-line option, print
  6305. the usage of the option.
  6306. * src/Makefile.am
  6307. * src/NameMatchOptionHandler.h
  6308. * src/OptionHandlerException.h
  6309. * src/option_processing.cc
  6310. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. Reverted previous change.
  6312. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6313. username is not in URI.
  6314. * src/HttpRequest.cc
  6315. * src/Request.cc
  6316. * test/HttpRequestTest.cc
  6317. * test/RequestTest.cc
  6318. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. Now colon is required for username and password in FTP URL, like:
  6320. ftp://username:password@host.
  6321. If colon is not there, aria2 don't parse it as a username. For example,
  6322. aria2 don't retrieve username from ftp://username@host.
  6323. This fix was made in order to login FTP server via non-transparent ftp
  6324. proxy.
  6325. * src/Request.cc
  6326. * test/RequestTest.cc
  6327. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Use netrc for HTTP.
  6329. Now FTP user/password is sent in Authorization header when
  6330. --ftp-via-http-proxy=get is given.
  6331. * src/AuthConfigFactory.cc
  6332. * src/HttpRequest.cc
  6333. * src/HttpRequest.h
  6334. * src/NetrcAuthResolver.cc
  6335. * src/NetrcAuthResolver.h
  6336. * src/OptionHandlerFactory.cc
  6337. * src/option_processing.cc
  6338. * src/prefs.cc
  6339. * src/prefs.h
  6340. * test/AuthConfigFactoryTest.cc
  6341. * test/HttpRequestTest.cc
  6342. * test/NetrcAuthResolverTest.cc
  6343. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Issue PWD command first and get working directory and use it as a prefix
  6345. for CWD command.
  6346. * src/DownloadEngine.cc
  6347. * src/DownloadEngine.h
  6348. * src/FtpConnection.cc
  6349. * src/FtpConnection.h
  6350. * src/FtpFinishDownloadCommand.cc
  6351. * src/FtpInitiateConnectionCommand.cc
  6352. * src/FtpNegotiationCommand.cc
  6353. * src/FtpNegotiationCommand.h
  6354. * test/FtpConnectionTest.cc
  6355. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Removed default user/pass for FTP user/pass, since it should not have
  6357. precedence over netrc configuration by default.
  6358. * src/OptionHandlerFactory.cc
  6359. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Added debug log for socket event.
  6361. * src/AbstractCommand.cc
  6362. * src/PeerAbstractCommand.cc
  6363. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Log microseconds.
  6365. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6366. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Replaced HelpItem.cc with OptionHandler.cc.
  6368. * po/POTFILES.in
  6369. Updated po files with 'make update-po'
  6370. * po/aria2c.pot
  6371. * po/*.po
  6372. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Removed possible values from the text.
  6374. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6375. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Removed unused preferences:
  6377. PREF_NO_PREALLOCATION
  6378. PREF_STDOUT_LOG
  6379. PREF_TRACKER_MAX_TRIES
  6380. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6381. PREF_MIN_SEGMENT_SIZE
  6382. * src/option_processing.cc
  6383. * src/prefs.cc
  6384. * src/prefs.h
  6385. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Integrated HelpItem into OptionParser to ease the workload for adding
  6387. new options. Removed default value from usage text.
  6388. * src/HelpItem.cc: Removed.
  6389. * src/HelpItem.h: Removed.
  6390. * src/HelpItemFactory.cc: Removed.
  6391. * src/HelpItemFactory.h: Removed.
  6392. * src/Makefile.am
  6393. * src/Makefile.in
  6394. * src/NameMatchOptionHandler.h
  6395. * src/OptionHandler.cc
  6396. * src/OptionHandler.h
  6397. * src/OptionHandlerFactory.cc
  6398. * src/OptionHandlerImpl.h
  6399. * src/OptionParser.cc
  6400. * src/OptionParser.h
  6401. * src/TagContainer.cc: Removed.
  6402. * src/TagContainer.h: Removed.
  6403. * src/TaggedItem.cc: Removed.
  6404. * src/TaggedItem.h: Removed.
  6405. * src/main.cc
  6406. * src/option_processing.cc
  6407. * src/usage_text.h
  6408. * src/version_usage.cc
  6409. * test/HelpItemTest.cc: Removed.
  6410. * test/Makefile.am
  6411. * test/Makefile.in
  6412. * test/OptionHandlerTest.cc
  6413. * test/OptionParserTest.cc
  6414. * test/TagContainerTest.cc: Removed.
  6415. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Moved `TransferStat stat = ...' to inside the `if' clause.
  6417. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6418. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Fixed the bug that a block in a piece is requested when same block is
  6420. already requested to the same peer in end game mode.
  6421. * src/BtRequestFactory.h
  6422. * src/DefaultBtInteractive.cc
  6423. * src/DefaultBtRequestFactory.cc
  6424. * src/DefaultBtRequestFactory.h
  6425. * src/DefaultPieceStorage.cc
  6426. * src/DefaultPieceStorage.h
  6427. * src/PieceStorage.h
  6428. * src/UnknownLengthPieceStorage.cc
  6429. * src/UnknownLengthPieceStorage.h
  6430. * test/DefaultBtRequestFactoryTest.cc
  6431. * test/DefaultPieceStorageTest.cc
  6432. * test/MockBtRequestFactory.h
  6433. * test/MockPieceStorage.h
  6434. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Removed _uploadLength and _downloadLength from PeerSessionResource
  6436. and use PeerStat::_sessionUploadLength and
  6437. PeerStat::_sessionDownloadLength.
  6438. * src/PeerSessionResource.cc
  6439. * src/PeerSessionResource.h
  6440. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6441. Fixed the bug that prefixLength of split bucket which doesn't include
  6442. local node ID is incremented.
  6443. * src/DHTBucket.cc
  6444. * src/DHTBucket.h
  6445. * test/DHTBucketTest.cc
  6446. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Added cookies.sqlite to EXTRA_DIST
  6448. * test/Makefile.am
  6449. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Added Turkish translation. Updated French, German, Russian and
  6451. Simplified Chinese translations. Thanks to all translators.
  6452. * po/LINGUAS
  6453. * po/de.po
  6454. * po/fr.po
  6455. * po/ru.po
  6456. * po/tr.po
  6457. * po/zh_CN.po
  6458. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Added deliminating text to the beginning of the log so that one can find
  6460. where the log starts easily.
  6461. * src/main.cc
  6462. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6464. to fix compile error when async DNS is not enabled by configuration.
  6465. * src/AbstractCommand.cc
  6466. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. If establishing conneciton to a server is failed, then mark error on
  6468. its ServerStat.
  6469. Added the cause of error to log when error event occurred.
  6470. Moved message string to message.h for translation.
  6471. * src/AbstractCommand.cc
  6472. * src/AbstractCommand.h
  6473. * src/FtpNegotiationCommand.cc
  6474. * src/HttpRequestCommand.cc
  6475. * src/PeerAbstractCommand.cc
  6476. * src/message.h
  6477. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Added the function to get error message from socket.
  6479. * src/SocketCore.cc
  6480. * src/SocketCore.h
  6481. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6483. * src/RequestGroupMan.cc
  6484. * src/RequestGroupMan.h
  6485. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. If error event is received in epoll, then abort download immediately.
  6487. * src/AbstractCommand.cc
  6488. * src/Command.cc
  6489. * src/Command.h
  6490. * src/DownloadEngine.cc
  6491. * src/PeerAbstractCommand.cc
  6492. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6493. Added usage message for --uri-selector, --server-stat-of,
  6494. --server-stat-in, --server-stat-timeout options.
  6495. * src/HelpItemFactory.cc
  6496. * src/usage_text.h
  6497. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Added upper limit of FTP response buffer. The current implementation
  6499. uses 4096bytes as a limit.
  6500. * src/FtpConnection.cc
  6501. * src/FtpConnection.h
  6502. * test/FtpConnectionTest.cc
  6503. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Use non-blocking socket for TCP communication to avoid possible
  6505. blocking due to buffer full.
  6506. * src/AbstractProxyRequestCommand.cc
  6507. * src/FtpConnection.cc
  6508. * src/FtpConnection.h
  6509. * src/FtpNegotiationCommand.cc
  6510. * src/FtpNegotiationCommand.h
  6511. * src/HttpConnection.cc
  6512. * src/HttpConnection.h
  6513. * src/HttpRequestCommand.cc
  6514. * src/InitiatorMSEHandshakeCommand.cc
  6515. * src/InitiatorMSEHandshakeCommand.h
  6516. * src/MSEHandshake.cc
  6517. * src/MSEHandshake.h
  6518. * src/Makefile.am
  6519. * src/PeerConnection.cc
  6520. * src/PeerConnection.h
  6521. * src/PeerInteractionCommand.cc
  6522. * src/PeerListenCommand.cc
  6523. * src/ReceiverMSEHandshakeCommand.cc
  6524. * src/ReceiverMSEHandshakeCommand.h
  6525. * src/SocketBuffer.cc
  6526. * src/SocketBuffer.h
  6527. * src/SocketCore.cc
  6528. * src/SocketCore.h
  6529. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Call setStatusRealtime() in constructor.
  6531. * src/RealtimeCommand.cc
  6532. * src/RealtimeCommand.h
  6533. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Call Download::setNoWait(true) to execute newly created command without
  6535. a pause.
  6536. * src/AbstractCommand.cc
  6537. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6539. found' error from HTTP/FTP server NUM times without getting single
  6540. bytes of data, then force the download to fail.
  6541. Basically aria2 tris all URIs available. So if long list of URIs are
  6542. specified in Metalink, then aria2 will take a long time to fail
  6543. eventually if all URIs are outdated. This option eases this situation
  6544. to limit the number of servers to try.
  6545. * src/FtpNegotiationCommand.cc
  6546. * src/HelpItemFactory.cc
  6547. * src/HttpResponseCommand.cc
  6548. * src/OptionHandlerFactory.cc
  6549. * src/PeerStat.h
  6550. * src/RequestGroup.cc
  6551. * src/RequestGroup.h
  6552. * src/SegmentMan.cc
  6553. * src/SegmentMan.h
  6554. * src/option_processing.cc
  6555. * src/prefs.cc
  6556. * src/prefs.h
  6557. * src/usage_text.h
  6558. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6560. response even if more than one response is in it.
  6561. * src/FtpConnection.cc
  6562. * src/FtpConnection.h
  6563. * test/FtpConnectionTest.cc
  6564. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Merged from stable-0.15
  6566. * m4/libcares.m4
  6567. Use pkg-config
  6568. * m4/sqlite3.m4
  6569. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Removed unnecessary if statement.
  6571. * src/DefaultPieceStorage.cc (initPieceStorage)
  6572. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Added --connect-timeout option to specify connect timeout in seconds.
  6574. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6575. connecting to BitTorrent peer is not controlled by this option.
  6576. * src/AbstractProxyRequestCommand.cc
  6577. * src/FtpNegotiationCommand.cc
  6578. * src/HelpItemFactory.cc
  6579. * src/HttpRequestCommand.cc
  6580. * src/OptionHandlerFactory.cc
  6581. * src/option_processing.cc
  6582. * src/prefs.cc
  6583. * src/prefs.h
  6584. * src/usage_text.h
  6585. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6586. Added help message for -R option.
  6587. * src/HelpItemFactory.cc
  6588. * src/usage_text.h
  6589. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Added the message that the time is in local time zone.
  6591. * src/RequestGroup.cc
  6592. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Implemented the ability to get timestamp from remote FTP server using
  6594. MDTM command described in RFC3659.
  6595. * src/FtpConnection.cc
  6596. * src/FtpConnection.h
  6597. * src/FtpNegotiationCommand.cc
  6598. * src/FtpNegotiationCommand.h
  6599. * test/FtpConnectionTest.cc
  6600. * test/Makefile.am
  6601. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Implemented the ability to get timestamp from remote HTTP server and
  6603. apply it to local file. To enable this feature, --remote-time option
  6604. is added. No usage text has been written yet.
  6605. If several servers returns difference timestamp, then aria2 uses latest
  6606. one.
  6607. * src/CopyDiskAdaptor.cc
  6608. * src/CopyDiskAdaptor.h
  6609. * src/DirectDiskAdaptor.cc
  6610. * src/DirectDiskAdaptor.h
  6611. * src/DiskAdaptor.h
  6612. * src/File.cc
  6613. * src/File.h
  6614. * src/HttpHeader.cc
  6615. * src/HttpHeader.h
  6616. * src/HttpResponse.cc
  6617. * src/HttpResponse.h
  6618. * src/HttpResponseCommand.cc
  6619. * src/HttpResponseCommand.h
  6620. * src/MultiDiskAdaptor.cc
  6621. * src/MultiDiskAdaptor.h
  6622. * src/OptionHandlerFactory.cc
  6623. * src/RequestGroup.cc
  6624. * src/RequestGroup.h
  6625. * src/RequestGroupMan.cc
  6626. * src/option_processing.cc
  6627. * src/prefs.cc
  6628. * src/prefs.h
  6629. * test/CopyDiskAdaptorTest.cc
  6630. * test/FileTest.cc
  6631. * test/Makefile.am
  6632. * test/Makefile.in
  6633. * test/MultiDiskAdaptorTest.cc
  6634. * test/TestUtil.cc
  6635. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Fixed the bug that DiskWriterEntry is not created when its
  6637. FileEntry.isRequested() is false and it doesn't share a piece with
  6638. other FileEntries that are requested. This bug causes segmentation fault
  6639. in the end.
  6640. * src/MultiDiskAdaptor.cc
  6641. * src/MultiDiskAdaptor.h
  6642. * src/MultiFileAllocationIterator.cc
  6643. * test/MultiDiskAdaptorTest.cc
  6644. * test/MultiFileAllocationIteratorTest.cc
  6645. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6647. called if the number of file entries are greater than max open files.
  6648. * src/AbstractSingleDiskAdaptor.cc
  6649. * src/AbstractSingleDiskAdaptor.h
  6650. * src/DiskAdaptor.h
  6651. * src/MultiDiskAdaptor.cc
  6652. * src/MultiDiskAdaptor.h
  6653. * test/MultiDiskAdaptorTest.cc
  6654. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Added a constuctor that receives struct timeval.
  6656. Added operator<.
  6657. * src/TimeA2.cc
  6658. * src/TimeA2.h
  6659. * test/TimeTest.cc
  6660. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6662. * src/CookieParser.cc
  6663. * test/CookieParserTest.cc
  6664. * test/HttpResponseTest.cc
  6665. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Implmented the functions to parse date.
  6667. * src/TimeA2.cc
  6668. * src/TimeA2.h
  6669. * test/TimeTest.cc
  6670. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Added "Firefox3 Cookie" feature to FeatureConfig
  6672. * src/FeatureConfig.cc
  6673. * src/FeatureConfig.h
  6674. * test/FeatureConfigTest.cc
  6675. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Bump up version number to 0.16.0b
  6677. * configure.ac
  6678. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Use pkg-config if is is available.
  6680. * m4/openssl.m4
  6681. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6683. * src/BtAnnounce.h
  6684. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. If an error occurred with a URI, remove identical URI from remaining
  6686. URI list because it is likely that same error occurred in the end and it
  6687. is waste of time.
  6688. * src/AbstractCommand.cc
  6689. * src/RequestGroup.cc
  6690. * src/RequestGroup.h
  6691. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Removed wrong comment.
  6693. * src/DefaultPeerStorage.cc
  6694. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6696. Added return value of getpid() to argument of srand() to achieve more
  6697. randomized value.
  6698. * src/SimpleRandomizer.cc
  6699. * src/SimpleRandomizer.h
  6700. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Contact tracker frequently when the number of connections are 0 and
  6702. download is not finished yet.
  6703. * src/ActivePeerConnectionCommand.cc
  6704. * src/BtAnnounce.h
  6705. * src/DefaultBtAnnounce.cc
  6706. * src/DefaultBtAnnounce.h
  6707. * test/MockBtAnnounce.h
  6708. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Moved threshold values to UTPexExtensionMessage.
  6710. * src/DefaultBtInteractive.cc
  6711. * src/Peer.cc
  6712. * src/Peer.h
  6713. * src/UTPexExtensionMessage.cc
  6714. * src/UTPexExtensionMessage.h
  6715. * test/UTPexExtensionMessageTest.cc
  6716. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Added _incoming member to Peer class and made it true if the peer
  6718. initiated connection. Don't add those peer to UTPex message.
  6719. If extended handshake is received, assign _incoming to false.
  6720. * src/DefaultBtInteractive.cc
  6721. * src/HandshakeExtensionMessage.cc
  6722. * src/Peer.cc
  6723. * src/Peer.h
  6724. * src/PeerListenCommand.cc
  6725. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6727. Encoding Decoder. Removed size threshold for turning off on the fly
  6728. inflation because resulting file may or may not be inflated depending
  6729. on the file size and I think it is not expected by users.
  6730. This change fixes segmentation fault when Metalink file contains gzipped
  6731. file and its filesize is provided.
  6732. * src/HttpResponseCommand.cc
  6733. * src/HttpResponseCommand.h
  6734. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Made Cookie immutable.
  6736. * src/Cookie.cc
  6737. * src/Cookie.h
  6738. * src/CookieParser.cc
  6739. * src/CookieParser.h
  6740. * src/CookieStorage.cc
  6741. * test/CookieParserTest.cc
  6742. * test/CookieStorageTest.cc
  6743. * test/NsCookieParserTest.cc
  6744. * test/Sqlite3MozCookieParserTest.cc
  6745. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Removed CookieBox, CookieBoxFactory.
  6747. * src/CookieBox.cc
  6748. * src/CookieBox.h
  6749. * src/CookieBoxFactory.cc
  6750. * src/CookieBoxFactory.h
  6751. * src/Makefile.am
  6752. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Use CookieStorage class instead of CookieBox class.
  6754. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6755. * src/AbstractProxyRequestCommand.cc
  6756. * src/CookieStorage.cc
  6757. * src/DownloadEngine.cc
  6758. * src/DownloadEngine.h
  6759. * src/HttpConnection.cc
  6760. * src/HttpConnection.h
  6761. * src/HttpRequest.cc
  6762. * src/HttpRequest.h
  6763. * src/HttpRequestCommand.cc
  6764. * src/HttpResponse.cc
  6765. * src/HttpResponseCommand.cc
  6766. * src/HttpSkipResponseCommand.cc
  6767. * src/Makefile.am
  6768. * src/MultiUrlRequestInfo.cc
  6769. * src/Request.cc
  6770. * src/Request.h
  6771. * src/main.cc
  6772. * test/AllTest.cc
  6773. * test/CookieStorageTest.cc
  6774. * test/CookieTest.cc
  6775. * test/HttpRequestTest.cc
  6776. * test/HttpResponseTest.cc
  6777. * test/Makefile.am
  6778. * test/NsCookieParserTest.cc
  6779. * test/Sqlite3MozCookieParserTest.cc
  6780. * test/nscookietest.txt
  6781. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Updated
  6783. * test/Cookies.sqlite
  6784. * test/nscookietest.txt
  6785. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Added tests for CookieStorage::load()
  6787. * test/CookieStorageTest.cc
  6788. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Added CookieStorage class which is based on RFC2109 and manages cookies
  6790. more strictly than CookieBox and CookieBoxFactory class.
  6791. * src/CookieStorage.cc
  6792. * src/CookieStorage.h
  6793. * src/Cookie.cc
  6794. * src/Cookie.h
  6795. * test/CookieStorageTest.cc
  6796. * test/CookieTest.cc
  6797. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6798. Fixed the bug that commands are created more than the number of pieces.
  6799. * src/RequestGroup.cc
  6800. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Fixed infinite loop bug in FTP when SIZE command failed.
  6802. * src/FtpNegotiationCommand.cc
  6803. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Removed DirectDiskAdaptorTest.h
  6805. * test/Makefile.am
  6806. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Fixed chunk checksum validation cannot detect trailing garbage data.
  6808. BUG#2074141
  6809. * src/AbstractSingleDiskAdaptor.cc
  6810. * src/AbstractSingleDiskAdaptor.h
  6811. * src/CheckIntegrityEntry.cc
  6812. * src/CheckIntegrityEntry.h
  6813. * src/DiskAdaptor.h
  6814. * src/MultiDiskAdaptor.cc
  6815. * src/MultiDiskAdaptor.h
  6816. * src/RequestGroup.cc
  6817. * test/DirectDiskAdaptorTest.cc
  6818. * test/MultiDiskAdaptorTest.cc
  6819. * test/TestUtil.cc
  6820. * test/TestUtil.h
  6821. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Bump up version number of dht.dat file to 3. In version 3 format, time
  6823. is stored in 64bit, network byte order.
  6824. New build can load old format(version 2) but it saves the file in new
  6825. format. It means once you used new build, your dht.dat becomes
  6826. incompatible with older build.
  6827. * src/DHTRoutingTableDeserializer.cc
  6828. * src/DHTRoutingTableSerializer.cc
  6829. * test/DHTRoutingTableSerializerTest.cc
  6830. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6832. * test/Makefile.am
  6833. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Bump up version number of .aria2 control file to 0001.
  6835. New aria2 can still load version 0000 file but it saves the file in
  6836. version 0001 format. It means that new aria2 can resume download
  6837. started by old aria2 but the opposite is not true.
  6838. * src/DefaultBtProgressInfoFile.cc
  6839. * src/DefaultBtProgressInfoFile.h
  6840. * test/DefaultBtProgressInfoFileTest.cc
  6841. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Added ntoh64 and hton64 as inline functions.
  6843. * src/Util.cc
  6844. * test/UtilTest.cc
  6845. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6846. Added sqlite3 depenency and Firefox3 cookie support.
  6847. * README
  6848. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6849. State that firefox3 cookie is supported explicitly in the usage.
  6850. * src/usage_text.h
  6851. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Externalized message.
  6853. * src/RequestGroupMan.cc
  6854. * src/message.h
  6855. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6856. Save temporary file first and rename to the destination on success.
  6857. Added test cases.
  6858. * src/RequestGroupMan.cc
  6859. * test/RequestGroupManTest.cc
  6860. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Fixed the bug that the number of connected peer is exceeding the limit
  6862. (55 by default) in seeding mode.
  6863. Multiplied 0.8 to _maxUploadSpeedLimit.
  6864. * src/ActivePeerConnectionCommand.cc
  6865. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Clear table item.
  6867. * src/Dictionary.cc
  6868. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Fixed error handling of lseek.
  6870. * src/AbstractDiskWriter.cc
  6871. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6873. style cookie file.
  6874. * src/usage_text.h
  6875. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6877. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6878. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6879. * src/Util.cc
  6880. * src/Util.h
  6881. * src/CookieParser.cc
  6882. * test/UtilTest.cc
  6883. * test/CookieParserTest.cc
  6884. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Separate the implementation to load old mozilla format of cookie to
  6886. NsCookieParser class.
  6887. * src/CookieBoxFactory.cc
  6888. * src/CookieBoxFactory.h
  6889. * src/NsCookieParser.cc
  6890. * src/NsCookieParser.h
  6891. * test/NsCookieParserTest.cc
  6892. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Made parse() const
  6894. * src/Sqlite3MozCookieParser.cc
  6895. * src/Sqlite3MozCookieParser.h
  6896. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Added firefox3 cookie support based on the patch submitted by
  6898. tizianomueller.
  6899. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6900. this functionality.
  6901. * configure.ac
  6902. * m4/sqlite3.m4
  6903. * src/CookieBoxFactory.cc
  6904. * src/CookieBoxFactory.h
  6905. * src/Makefile.am
  6906. * src/Makefile.in
  6907. * src/Sqlite3MozCookieParser.cc
  6908. * src/Sqlite3MozCookieParser.h
  6909. * src/main.cc
  6910. * test/CookieBoxFactoryTest.cc
  6911. * test/Makefile.am
  6912. * test/Makefile.in
  6913. * test/Sqlite3MozCookieParserTest.cc
  6914. * test/badcookies.sqlite
  6915. * test/cookies.sqlite
  6916. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Added Danish and Greek translations.
  6918. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6919. Great thanks to all translators.
  6920. * po/LINGUAS
  6921. * po/el.po
  6922. * po/da.po
  6923. * po/es.po
  6924. * po/ca.po
  6925. * po/nn.po
  6926. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Fixed man page: --follow-bittorrent should be --follow-torrent
  6928. * doc/aria2c.1.txt
  6929. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Fixed: numCommand is less than the value specified in -C option.
  6931. * src/RequestGroup.cc
  6932. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Fixed occasional assertion failure in PieceSegment.
  6934. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6935. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6936. creation of duplicate segments and one of the segment was finished then
  6937. assertion failure was caused.
  6938. * src/SegmentMan.cc
  6939. * test/SegmentManTest.cc
  6940. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Added options to load/save the server's performance/status to a file
  6942. and the timeout to drop their data.
  6943. --server-stat-of=FILE specifies the file to which performance data
  6944. is saved.
  6945. --server-stat-if=FILE specifies the file to read previously saved
  6946. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6947. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6948. TIMEOUT is specified in seconds and the default value is 24hours.
  6949. * src/MultiUrlRequestInfo.cc
  6950. * src/OptionHandlerFactory.cc
  6951. * src/RequestGroupMan.cc
  6952. * src/RequestGroupMan.h
  6953. * src/ServerStatMan.cc
  6954. * src/ServerStatMan.h
  6955. * src/option_processing.cc
  6956. * src/prefs.cc
  6957. * src/prefs.h
  6958. * test/ServerStatManTest.cc
  6959. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6961. * src/ServerStatMan.cc
  6962. * src/ServerStatMan.h
  6963. * test/ServerStatManTest.cc
  6964. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Implemented ServerStatMan::load(...) function and its test case.
  6966. * src/ServerStat.cc
  6967. * src/ServerStat.h
  6968. * src/ServerStatMan.cc
  6969. * test/ServerStatManTest.cc
  6970. * test/ServerStatTest.cc
  6971. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Use time_t instead of int32_t. Use int64_t where milli second is
  6973. expected.
  6974. * src/TimeA2.cc
  6975. * src/TimeA2.h
  6976. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Implemented ServerStatMan::save(...) function and its test case.
  6978. * src/ServerStat.cc
  6979. * src/ServerStat.h
  6980. * src/ServerStatMan.cc
  6981. * src/ServerStatMan.h
  6982. * test/ServerStatManTest.cc
  6983. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Now aria2 uses name attribute in Metalink as local filename in
  6985. BitTorrent downloads. BUG#2033999
  6986. * src/BtContext.h
  6987. * src/BtDependency.cc
  6988. * src/DefaultBtContext.cc
  6989. * src/DefaultBtContext.h
  6990. * src/SingleFileDownloadContext.cc
  6991. * src/SingleFileDownloadContext.h
  6992. * test/BtDependencyTest.cc
  6993. * test/DefaultBtContextTest.cc
  6994. * test/MockBtContext.h
  6995. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Added AC_C_BIGENDIAN
  6997. * src/configure.ac
  6998. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Limited numCommand less than or equal to the number of piece.
  7000. * src/RequestGroup.cc
  7001. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7003. directive.
  7004. * test/DefaultPieceStorageTest.cc
  7005. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Fixed memory leak in test code
  7007. * test/AnnounceListTest.cc
  7008. * test/DefaultPeerListProcessorTest.cc
  7009. * test/DefaultPeerStorageTest.cc
  7010. * test/MetaFileUtilTest.cc
  7011. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7013. * src/DefaultPieceStorage.cc
  7014. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Initialized _directIOAllowed
  7016. * src/MultiDiskAdaptor.cc
  7017. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Fixed memory leak
  7019. * src/GZipDecoder.cc
  7020. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Fixed memory leak
  7022. * src/MetalinkParserStateMachine.cc
  7023. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Fixed memory leak
  7025. * src/Dictionary.cc
  7026. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Fixed memory leak
  7028. * src/IteratableChunkChecksumValidator.h
  7029. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. Fixed unmatched malloc/free.
  7031. * src/IteratableChunkChecksumValidator.cc
  7032. * src/IteratableChecksumValidator.cc
  7033. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7034. Removed max chunk size check. This change fixes BUG#2040169
  7035. * src/ChunkedDecoder.cc
  7036. * src/ChunkedDecoder.h
  7037. * test/ChunkedDecoderTest.cc
  7038. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Implemented download speed based URI selection algorithm.
  7040. Introduced new option --uri-selector.
  7041. If --uri-selector=feedback is given, aria2 uses download speed observed
  7042. in the previous downloads and chooses fastest server in the URI list.
  7043. Currently at most 10 URIs are considered to introduce randomeness for
  7044. finding better servers. The speed is average download speed in the
  7045. downloads.
  7046. On the other hand, if --uri-selector=inorder is given, which is default,
  7047. URI is tried in order in URI list.
  7048. The usage text for the new option has not been written yet.
  7049. * src/AbstractCommand.cc
  7050. * src/DownloadCommand.cc
  7051. * src/DownloadEngine.cc
  7052. * src/DownloadEngineFactory.cc
  7053. * src/InOrderURISelector.cc
  7054. * src/InOrderURISelector.h
  7055. * src/OptionHandlerFactory.cc
  7056. * src/PeerStat.h
  7057. * src/RequestGroup.cc
  7058. * src/RequestGroup.h
  7059. * src/RequestGroupMan.cc
  7060. * src/RequestGroupMan.h
  7061. * src/SegmentMan.cc
  7062. * src/SegmentMan.h
  7063. * src/ServerStat.cc
  7064. * src/ServerStat.h
  7065. * src/ServerStatMan.cc
  7066. * src/ServerStatMan.h
  7067. * src/ServerStatURISelector.cc
  7068. * src/ServerStatURISelector.h
  7069. * src/URISelector.h
  7070. * src/option_processing.cc
  7071. * src/prefs.cc
  7072. * src/prefs.h
  7073. * test/InOrderURISelectorTest.cc
  7074. * test/RequestGroupManTest.cc
  7075. * test/ServerStatManTest.cc
  7076. * test/ServerStatURISelectorTest.cc
  7077. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. * Release 0.15.1+2
  7079. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Bump up version number to 0.15.1+2
  7081. * configure.ac
  7082. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7084. * m4/aria2_arg.m4
  7085. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. * Release 0.15.1+1
  7087. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Bump up version number to 0.15.1+1
  7089. * configure.ac
  7090. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Fixed the bug that causes segmentaion fault when resuming download
  7092. using metalink without size tag. Reproducible only using HTTP URI.
  7093. * src/HttpResponseCommand.cc
  7094. * src/FtpNegotiationCommand.cc
  7095. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. * Release 0.15.1
  7097. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Updated Bulgarian and French translations, thanks to all translators.
  7099. * po/bg.po
  7100. * po/fr.po
  7101. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Bump up version number to 0.15.1
  7103. * configure.ac
  7104. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Avoid repeated call of gettimeofday() when calculating speed.
  7106. * src/SpeedCalc.cc
  7107. * src/SpeedCalc.h
  7108. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Removed writable check when socket's send buffer is full in BitTorrent
  7110. downloads to lower CPU usage.
  7111. * src/PeerInteractionCommand.cc
  7112. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Fixed broken gzip inflation.
  7114. Turn off segmented downloading if gzip content is smaller than or equal
  7115. to 1MiB and inflate the data on the fly, because HTTP response header
  7116. doesn't contain the length of inflated file we can't determin where
  7117. the chunk of data should be written.
  7118. On the other hand, if gzip content is larger than 1MB, then turn off
  7119. on the fly inflation, because some servers returns "content-type: gzip"
  7120. for *.tgz, *.gz files.
  7121. * src/DownloadCommand.cc
  7122. * src/HttpResponseCommand.cc
  7123. * src/HttpResponseCommand.h
  7124. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Applied tizianomueller's patch to fix compile error.
  7126. * test/BitfieldManTest.cc
  7127. * test/BtRequestMessageTest.cc
  7128. * test/DefaultBtContextTest.cc
  7129. * test/DefaultDiskWriterTest.cc
  7130. * test/DefaultPieceStorageTest.cc
  7131. * test/HttpHeaderProcessorTest.cc
  7132. * test/HttpResponseTest.cc
  7133. * test/Metalink2RequestGroupTest.cc
  7134. * test/MetalinkParserControllerTest.cc
  7135. * test/MetalinkProcessorTest.cc
  7136. * test/PeerSessionResourceTest.cc
  7137. * test/UtilTest.cc
  7138. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. * Release 0.15.0
  7140. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Reordered src files in POTFILES.in so that usage text appears first.
  7142. * po/POTFILES.in
  7143. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Bump up version number to 0.15.0
  7145. * configure.ac
  7146. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Added Bulgarian translation.
  7148. Updated Catalan, Spanish, French and Japanese translations.
  7149. Thanks to all translators.
  7150. * po/LINGUAS
  7151. * po/bg.po
  7152. * po/ca.po
  7153. * po/es.po
  7154. * po/fr.po
  7155. * po/ja.po
  7156. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Updated feature list. Added libz for dependency section.
  7158. Added a description about unit testing using CppUnit.
  7159. * README
  7160. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Added a test for libz. Quoted where it is necessary.
  7162. * build_test.sh
  7163. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Added GZip to `Enabled Features' list.
  7165. * src/FeatureConfig.cc
  7166. * src/FeatureConfig.h
  7167. * test/FeatureConfigTest.cc
  7168. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7170. the transfer has not yet started.
  7171. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7172. * src/SegmentMan.cc
  7173. * src/SegmentMan.h
  7174. * test/SegmentManTest.cc
  7175. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Cache last calculated average download/upload speed.
  7177. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7178. cached value.
  7179. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7180. * src/PeerStat.h
  7181. * src/SpeedCalc.cc
  7182. * src/SpeedCalc.h
  7183. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Call parseUrl directly.
  7185. * src/Request.cc (resetUrl)
  7186. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Supported absolute/relative path in Location header field.
  7188. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7189. * src/HttpHeader.cc
  7190. * src/HttpHeader.h
  7191. * src/HttpResponse.cc
  7192. * src/HttpSkipResponseCommand.cc
  7193. * src/Request.cc
  7194. * test/HttpHeaderTest.cc
  7195. * test/HttpResponseTest.cc
  7196. * test/RequestTest.cc
  7197. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Changed help text for --load-cookie option.
  7199. * doc/aria2c.1.txt
  7200. * src/usage_text.h
  7201. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Regenerated test/Makefile.in to remove stale ChangeLog.
  7203. * test/Makefile.in
  7204. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Updated po files.
  7206. * po/aria2c.pot
  7207. * po/*.po
  7208. * po/*.gmo
  7209. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Bump up version number to 0.15.0b
  7211. * configure.ac
  7212. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Externalize messages.
  7214. * src/RequestGroupMan.cc
  7215. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7216. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Use File::exists() instead of File::isFile() to allow non-regular file
  7218. such as block special files.
  7219. * src/AbstractDiskWriter.cc
  7220. * src/MultiDiskWriter.cc
  7221. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7223. * src/gai_strerror.h
  7224. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Fixed compile error. Thanks gknauf for the patch.
  7226. * src/asctime_r.c
  7227. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Included asctime_r.h from a2time.h.
  7229. * src/a2time.h
  7230. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Added a message "aria2 doesn't verify signature" to log message when
  7232. signature file is saved.
  7233. * src/RequestGroupMan.cc
  7234. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Added the ability to save signature when download is completed if
  7236. signature is available. The filename of signature file is the path to
  7237. download file followed by ".sig". If it already exists, then signature
  7238. will not be saved.
  7239. * src/RequestGroupMan.cc
  7240. * src/Signature.cc
  7241. * test/SignatureTest.cc
  7242. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Updated the descriptions for --bt-seed-unverified.
  7244. * doc/aria2c.1
  7245. * doc/aria2c.1.html
  7246. * doc/aria2c.1.txt
  7247. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7249. that this is not going to verify files using piece hashes.
  7250. * src/HelpItemFactory.cc
  7251. * src/OptionHandlerFactory.cc
  7252. * src/RequestGroup.cc
  7253. * src/option_processing.cc
  7254. * src/prefs.cc
  7255. * src/prefs.h
  7256. * src/usage_text.h
  7257. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Added the ability to retrieve signature from Metalink file.
  7259. A retrieved signature is stored in Signature class and it is held by
  7260. DownloadContext class. Note that aria2 doesn't verify signature.
  7261. * src/DownloadContext.cc
  7262. * src/DownloadContext.h
  7263. * src/Makefile.am
  7264. * src/Makefile.in
  7265. * src/Metalink2RequestGroup.cc
  7266. * src/MetalinkEntry.cc
  7267. * src/MetalinkEntry.h
  7268. * src/MetalinkParserController.cc
  7269. * src/MetalinkParserController.h
  7270. * src/MetalinkParserStateMachine.cc
  7271. * src/MetalinkParserStateMachine.h
  7272. * src/Signature.cc
  7273. * src/Signature.h
  7274. * src/SignatureMetalinkParserState.cc
  7275. * src/SignatureMetalinkParserState.h
  7276. * src/VerificationMetalinkParserState.cc
  7277. * src/VerificationMetalinkParserState.h
  7278. * test/Metalink2RequestGroupTest.cc
  7279. * test/MetalinkParserControllerTest.cc
  7280. * test/MetalinkProcessorTest.cc
  7281. * test/test.xml
  7282. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Close DiskAdaptor after renaming file.
  7284. * src/RequestGroup.cc
  7285. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Corrected indentation
  7287. * src/DefaultBtProgressInfoFile.cc
  7288. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Moved the calls of std::ios::exceptions() inside of try-catch block
  7290. because if an error occurred in constructor of std::fstream, then
  7291. exception is thrown immediately when std::ios::exceptions() is called
  7292. which results unhandled exception and aria2c aborts.
  7293. * src/DefaultBtProgressInfoFile.cc
  7294. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7295. Added the test for the previous change in DefaultBtContext.cc
  7296. * test/DefaultBtContextTest.cc
  7297. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Fixed the bug that causes infinite loop when the number of pieces are
  7299. fewer than allowed fast set size which is 10 by default.
  7300. * src/DefaultBtContext.cc
  7301. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Updated the descriptions for -j, -s. Added --bt-seed.
  7303. * doc/aria2c.1
  7304. * doc/aria2c.1.html
  7305. * doc/aria2c.1.txt
  7306. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7308. aria2 seeds previously downloaded files without validating piece hashs.
  7309. * src/HelpItemFactory.cc
  7310. * src/OptionHandlerFactory.cc
  7311. * src/RequestGroup.cc
  7312. * src/option_processing.cc
  7313. * src/prefs.cc
  7314. * src/prefs.h
  7315. * src/usage_text.h
  7316. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Updated DESCRIPTION of man page.
  7318. * doc/aria2c.1
  7319. * doc/aria2c.1.html
  7320. * doc/aria2c.1.txt
  7321. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7323. Don't define `struct addrinfo' when __sun is defined.
  7324. * src/getaddrinfo.h
  7325. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7327. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7328. second argument is of type `struct _stati64'. Otherwise it is defined as
  7329. `struct stat'.
  7330. * src/AbstractDiskWriter.cc
  7331. * src/File.cc
  7332. * src/File.h
  7333. * src/a2io.h
  7334. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Fixed the compile error in hurd-i386
  7336. See the original bug report:
  7337. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7338. * src/a2io.h
  7339. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Code cleanup.
  7341. * src/PeerAbstractCommand.cc
  7342. * src/PeerAbstractCommand.h
  7343. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Removed TransferEncoding.
  7345. * src/DownloadCommand.cc
  7346. * src/DownloadCommand.h
  7347. * src/HttpResponseCommand.cc
  7348. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Updated po files.
  7350. * po/aria2c.pot
  7351. * po/*.po
  7352. * po/*.gmo
  7353. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7355. * src/A2STR.cc
  7356. * src/A2STR.h
  7357. * src/ChunkedDecoder.cc
  7358. * src/ChunkedDecoder.h
  7359. * src/ChunkedEncoding.cc: Removed
  7360. * src/ChunkedEncoding.h: Removed
  7361. * src/DownloadCommand.cc
  7362. * src/DownloadCommand.h
  7363. * src/HttpDownloadCommand.cc
  7364. * src/HttpResponse.cc
  7365. * src/HttpResponse.h
  7366. * src/HttpResponseCommand.cc
  7367. * src/HttpSkipResponseCommand.cc
  7368. * src/HttpSkipResponseCommand.h
  7369. * src/Makefile.am
  7370. * src/TransferEncoding.h: Removed
  7371. * test/ChunkedDecoderTest.cc
  7372. * test/ChunkedEncodingTest.cc: Removed
  7373. * test/HttpResponseTest.cc
  7374. * test/Makefile.am
  7375. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Use append instead of insert.
  7377. * src/GZipDecoder.cc
  7378. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Updated doc
  7380. * src/Decoder.h
  7381. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Updated usage text for -s option.
  7383. * src/usage_text.h
  7384. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7386. * src/Request.cc
  7387. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Cleaned up configure.ac.
  7389. * configure.ac
  7390. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7392. AC_ARG_ENABLE.
  7393. * configure.ac
  7394. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7396. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7397. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7398. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7399. fly and writes decoded data to a local disk.
  7400. * README
  7401. * README.html
  7402. * configure.ac
  7403. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7404. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7405. * m4/libz.m4
  7406. * src/Decoder.h
  7407. * src/DownloadCommand.cc
  7408. * src/DownloadCommand.h
  7409. * src/Exception.h
  7410. * src/GZipDecoder.cc
  7411. * src/GZipDecoder.h
  7412. * src/HttpHeader.cc
  7413. * src/HttpHeader.h
  7414. * src/HttpRequest.cc
  7415. * src/HttpRequest.h
  7416. * src/HttpResponse.cc
  7417. * src/HttpResponse.h
  7418. * src/HttpResponseCommand.cc
  7419. * src/Makefile.am
  7420. * test/GZipDecoderTest.cc
  7421. * test/HttpRequestTest.cc
  7422. * test/HttpResponseTest.cc
  7423. * test/Makefile.am
  7424. * test/Makefile.in
  7425. * test/gzip_decode_test.gz
  7426. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Clarified usage of -j option.
  7428. * src/usage_text.h
  7429. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Disabled getting size from the response of RETR.
  7431. If SIZE command failed, then disable resuming and segmented downloading.
  7432. * src/FtpConnection.cc
  7433. * src/FtpConnection.h
  7434. * src/FtpNegotiationCommand.cc
  7435. * src/FtpNegotiationCommand.h
  7436. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Use digits to find first byte of file size, which makes the intention
  7438. of the code clearer.
  7439. * src/FtpConnection.cc
  7440. Don't call validateTotalLength() when size is 0.
  7441. * src/FtpNegotiationCommand.cc
  7442. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Updated po files.
  7444. * po/aria2c.pot
  7445. * po/*.gmo
  7446. * po/*.po
  7447. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Clarified usage text for --split option.
  7449. * src/usage_text.h
  7450. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Bump up version number to 0.15.0dev. "dev" means "development"
  7452. version, which means I started the development of the next release!
  7453. * src/configure.ac
  7454. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. If FTP server returns negative response with REST raw command and
  7456. requested range is not 0, throw exception. If requested range is 0,
  7457. continue download a file from 0 byte.
  7458. * src/FtpNegotiationCommand.cc
  7459. * src/FtpNegotiationCommand.h
  7460. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Supported FTP server which don't recognize SIZE raw command.
  7462. If SIZE raw command is failed, aria2 will try to get file size
  7463. from the response of RETR raw command. If both attempts are failed,
  7464. then resuming and segmented downloading are disabled.
  7465. * src/FtpConnection.cc
  7466. * src/FtpConnection.h
  7467. * src/FtpNegotiationCommand.cc
  7468. * src/FtpNegotiationCommand.h
  7469. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. * Release 0.14.0+1
  7471. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Bump up version number to 0.14.0+1
  7473. * src/configure.ac
  7474. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Fixed the code that refers static member variable from non-static
  7476. context.
  7477. * src/DefaultPeerStorage.cc
  7478. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. * Release 0.14.0
  7480. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Added build test script
  7482. * build_test.sh
  7483. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Updated ja.po
  7485. * src/ja.po
  7486. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. Bump up version number to 0.14.0
  7488. * src/configure.ac
  7489. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Updated ja.po and fr.po. Great thanks for french translators and
  7491. Sebastien WILLEMIJNS.
  7492. * po/fr.po
  7493. * po/ja.po
  7494. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Added configure option to enable/disable epoll support.
  7496. * configure.ac
  7497. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Updated man page.
  7499. * doc/aria2c.1.txt
  7500. * doc/aria2c.1
  7501. * doc/aria2c.1.html
  7502. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Added missing default value '5' to the usage of --split option.
  7504. * src/HelpItemFactory.cc
  7505. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Filled up pieces based on the number of missing blocks, rather than
  7507. simplay the number of piece * block length.
  7508. * src/BtRequestFactory.h
  7509. * src/DefaultBtInteractive.cc
  7510. * src/DefaultBtInteractive.h
  7511. * src/DefaultBtRequestFactory.cc
  7512. * src/DefaultBtRequestFactory.h
  7513. * src/Piece.cc
  7514. * src/Piece.h
  7515. * test/BitfieldManTest.cc
  7516. * test/DefaultBtRequestFactoryTest.cc
  7517. * test/MockBtRequestFactory.h
  7518. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Made _epEvents a member variable.
  7520. * src/DownloadEngine.cc
  7521. * src/DownloadEngine.h
  7522. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. Cancel download if http redirect is bounded more than 20 times.
  7524. * src/AbstractCommand.cc
  7525. * src/HttpSkipResponseCommand.cc
  7526. * src/Request.cc
  7527. * src/Request.h
  7528. * test/RequestTest.cc
  7529. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Fixed unhandled exception(removed keyword `new').
  7531. * src/SocketCore.cc (initEPOLL)
  7532. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Removed visit(const MetaEntry*)
  7534. * src/MetaEntryVisitor.h:
  7535. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7536. and made them virtual.
  7537. * src/BencodeVisitor.h
  7538. * src/BencodeVisitor.cc
  7539. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Updated po files.
  7541. * po/aria2c.pot
  7542. * po/*.po
  7543. * po/*.gmo
  7544. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7546. the number of socket to watch out.
  7547. * src/PeerInteractionCommand.cc
  7548. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. When there is not enough space in disk when writing a chunk of data,
  7550. aria2 now prints the message to the console to warn user and aborts
  7551. its download. Not all downloads are canceled because some downloads
  7552. may use another disk or partition. BUG#1640332
  7553. * src/AbstractDiskWriter.cc
  7554. * src/PeerAbstractCommand.cc
  7555. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7556. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7557. setHaltRequested(true) to cancel download.
  7558. * src/PeerInteractionCommand.h
  7559. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7561. socket from int to sock_t as sockets are unsigned in Windows.
  7562. For AsyncNameResolver, DownloadEngine, I did additional modification
  7563. for the portion of the code changed according to epoll support.
  7564. I defined sock_t in a2netcompat.h to use sock_t without including
  7565. SocketCore.h.
  7566. * src/AsyncNameResolver.cc
  7567. * src/AsyncNameResolver.h
  7568. * src/DownloadEngine.cc
  7569. * src/DownloadEngine.h
  7570. * src/SocketCore.cc
  7571. * src/SocketCore.h
  7572. * src/a2netcompat.h
  7573. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7575. changes in the patch were applied.
  7576. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7577. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7578. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7579. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7581. a2io.h and common.h were modified.
  7582. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7583. MinGW.
  7584. * src/common.h: Changed off_t to 64 bit in MinGW.
  7585. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7587. only a2netcompat.h is modified.
  7588. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7589. directives.
  7590. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7592. only gai_strerror.h is modified.
  7593. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7594. winsock errors in MinGW.
  7595. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7597. follow sources are applied.
  7598. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7599. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7600. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7601. I included locale.h from Platform.cc.
  7602. * src/main.cc: Moved common setup/teardown code to Platform class.
  7603. * test/AllTest.cc: Use Platform class.
  7604. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7605. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7607. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7608. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7609. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7611. aria2-0.13.2+1-mingw-2.patch.
  7612. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7613. systems which don't have termious.h. I moved the directive inside of
  7614. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7615. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7616. anyway.
  7617. * src/asctime_r.h
  7618. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7619. I added 2nd argument to the prototype declaration.
  7620. * src/StringFormat.cc: Get rid of vasprintf.
  7621. * src/getaddrinfo.h: Fixed constants.
  7622. * configure.ac: Added the check for asctime_r function.
  7623. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7624. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Added writable test for Socket when the sending message is in progress.
  7626. Usually the sending message is piece message. Without wriable check,
  7627. upload latency is dropped to more than 1sec.
  7628. * src/PeerInteractionCommand.cc
  7629. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. Create only requested files and files which shares a piece with
  7631. requested file in multi-torrent downloads. Directory structures are
  7632. also created in the same rule.
  7633. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7634. DiskWriterEntry as in the previous implementation.
  7635. * src/MultiDiskWriter.cc
  7636. * src/MultiFileAllocationIterator.cc
  7637. * src/MultiFileAllocationIterator.h
  7638. * test/MultiFileAllocationIteratorTest.cc
  7639. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Commented out -lprofiler
  7641. * src/Makefile.am
  7642. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Bump up version number to 0.14.0b.
  7644. * src/configure.ac
  7645. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Actively establish connection to peers in seeding, when peer cache
  7647. is not full and max upload speed limit is not reached.
  7648. * src/ActivePeerConnectionCommand.cc
  7649. * src/ActivePeerConnectionCommand.h
  7650. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7652. to make room more fleshy, recently found peers.
  7653. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7654. it.
  7655. * src/DefaultPeerStorage.cc
  7656. * test/DefaultPeerStorageTest.cc
  7657. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Returns cached data only when the previous receiveHandshake() is called
  7659. with peek = true.
  7660. * src/PeerConnection.cc (receiveHandshake)
  7661. * src/PeerConnection.h (receiveHandshake)
  7662. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Changed default value of -s option from 1 to 5.
  7664. Also max value of -s option is changed from 5 to 16.
  7665. * src/HelpItemFactory.cc
  7666. * src/OptionHandlerFactory.cc
  7667. * src/option_processing.cc
  7668. * src/usage_text.h
  7669. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Changed -s options behavior. Now it means the number of connections
  7671. made simultaneously in each http/ftp download.
  7672. If 1 URL is specified, the behavior is the same with old implementation.
  7673. If -s N is given and more than N URLs are specified, first N URLs are
  7674. used and remaining URLs are used for backup. If less than N URLs are
  7675. specified, some of URLs are used more than once so that totally N
  7676. connections are made simultaneously.
  7677. * src/main.cc
  7678. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Included missing iosfwd or ostream header.
  7680. * src/RequestGroupMan.cc
  7681. * src/TaggedItem.cc
  7682. * src/TaggedItem.h
  7683. * src/Util.cc
  7684. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7686. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7687. * src/HttpConnection.cc: Included missing sstream.
  7688. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Added --bt-max-open-files option.
  7690. * src/DefaultPieceStorage.cc
  7691. * src/HelpItemFactory.cc
  7692. * src/MultiDiskAdaptor.cc
  7693. * src/MultiDiskAdaptor.h
  7694. * src/OptionHandlerFactory.cc
  7695. * src/option_processing.cc
  7696. * src/prefs.cc
  7697. * src/prefs.h
  7698. * src/usage_text.h
  7699. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Fixed the bug that aria2 aborts when a path to a directory is given
  7701. in command-line.
  7702. * src/ProtocolDetector.cc
  7703. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Limited the number files opened in each BitTorrent download. The default
  7705. value is 100. The option to change this value will be added.
  7706. * src/MultiDiskAdaptor.cc
  7707. * src/MultiDiskAdaptor.h
  7708. * src/MultiFileAllocationIterator.cc
  7709. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Fixed the bug that HTTP downloads don't start with old libraries.
  7711. * src/HttpHeaderProcessor.cc
  7712. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Use empty() instead of size() > 0.
  7714. * src/HttpConnection.cc
  7715. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Drop connection if the incoming peer ID is the same with localhost's
  7717. one. The previous implementation drops connection when incoming peer's
  7718. IP address is the same with localhost's one.
  7719. * src/PeerListenCommand.cc
  7720. * src/DefaultBtInteractive.cc
  7721. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Returns cached data without checking whether socket is readable
  7723. if the cache is available.
  7724. * src/PeerConnection.cc (receiveHandshake)
  7725. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Included stdint.h
  7727. * src/common.h
  7728. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Removed duplicate HAVE_GETTIMEOFDAY
  7730. * src/Makefile.am
  7731. * src/Makefile.in
  7732. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Use interval as a minInterval when minInterval is not supplied.
  7734. * src/DefaultBtAnnounce.cc
  7735. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7737. attempt is failed, then 2nd attempt get kicked out more quickly.
  7738. And it is now static const member of DefaultBtAnnounce.
  7739. * src/DefaultBtAnnounce.h
  7740. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7742. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7743. * src/ActivePeerConnectionCommand.cc
  7744. * src/BtConstants.h
  7745. * src/BtRuntime.h
  7746. * src/DHTGetPeersCommand.cc
  7747. * src/DefaultBtAnnounce.cc
  7748. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7749. BtRuntime::MAX_PEERS.
  7750. * src/DefaultPeerStorage.h
  7751. * src/InitiatorMSEHandshakeCommand.cc
  7752. * src/PeerInitiateConnectionCommand.cc
  7753. * src/PeerInteractionCommand.cc
  7754. * src/PeerReceiveHandshakeCommand.cc
  7755. * src/TrackerWatcherCommand.cc
  7756. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Always Connect to _numNewConnection
  7758. * src/ActivePeerConnectionCommand.cc
  7759. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Made `begin' unsigned int.
  7761. * src/GrowSegment.h
  7762. * src/Piece.cc
  7763. * src/Piece.h
  7764. * src/PiecedSegment.cc
  7765. * src/PiecedSegment.h
  7766. * src/Segment.h
  7767. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Calculate piece hash when data is arrived if the data is arrived in
  7769. order. This removes additional read operation for hash calculation.
  7770. If the data is arrived in out of order, the hash is calucated when the
  7771. piece is completed. This is the same behavior as the old implementation.
  7772. * src/BtPieceMessage.cc
  7773. * src/DefaultBtProgressInfoFile.cc
  7774. * src/DefaultPieceStorage.cc
  7775. * src/DownloadCommand.cc
  7776. * src/DownloadCommand.h
  7777. * src/DownloadEngine.cc
  7778. * src/GrowSegment.cc
  7779. * src/GrowSegment.h
  7780. * src/Piece.cc
  7781. * src/Piece.h
  7782. * src/PiecedSegment.cc
  7783. * src/PiecedSegment.h
  7784. * src/Segment.h
  7785. * test/PieceTest.cc
  7786. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Try to keep the ordering of outgoing piece message.
  7788. * src/DefaultBtMessageDispatcher.cc
  7789. (DefaultBtMessageDispatcher::sendMessages)
  7790. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Fixed busy loop when error/hup epoll events occur.
  7792. * src/AbstractCommand.cc
  7793. * src/PeerAbstractCommand.cc
  7794. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Added --bt-request-peer-speed-limit option, which was a constant
  7796. SLOW_SPEED_THRESHOLD.
  7797. * src/ActivePeerConnectionCommand.cc
  7798. * src/ActivePeerConnectionCommand.h
  7799. * src/BtConstants.h
  7800. * src/HelpItemFactory.cc
  7801. * src/OptionHandlerFactory.cc
  7802. * src/PeerReceiveHandshakeCommand.cc
  7803. * src/option_processing.cc
  7804. * src/prefs.cc
  7805. * src/prefs.h
  7806. * src/usage_text.h
  7807. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Removed repeated call of getTopDirPath(). Instead, call it once and
  7809. cache the result.
  7810. * src/MultiDiskAdaptor.cc
  7811. * src/MultiDiskAdaptor.h
  7812. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7813. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Fixed compile error on debian etch.
  7815. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7816. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7817. it is undefined.
  7818. * src/Util.cc (ULLONG_MAX)
  7819. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Added epoll support. Use epoll if it is available. If not, use select.
  7821. When async dns is enabled in compile time, epoll support is enabled
  7822. only when aria2 is built with c-ares. This condition statement is
  7823. defined in a2io.h.
  7824. Currently aria2 supports both c-ares and ares, but ares is maintained
  7825. for quite a while and debian already has c-ares package, ares support
  7826. will be dropped in the future version.
  7827. * configure.ac
  7828. * src/AbstractCommand.cc
  7829. * src/AsyncNameResolver.cc
  7830. * src/AsyncNameResolver.h
  7831. * src/Command.cc
  7832. * src/Command.h
  7833. * src/DownloadEngine.cc
  7834. * src/DownloadEngine.h
  7835. * src/PeerAbstractCommand.cc
  7836. * src/SocketCore.cc
  7837. * src/SocketCore.h
  7838. * src/a2io.h
  7839. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7841. directive.
  7842. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7843. Do not do write operation to /dev/null file.
  7844. * src/LogFactory.cc
  7845. * src/SimpleLogger.cc
  7846. Replaced vasprintf with vsnprintf
  7847. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7848. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7849. * src/BtRequestMessage.cc
  7850. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7851. for segmentation fault caused by previous commit.
  7852. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Reduced the usage of gettimeofday().
  7854. * src/DefaultBtMessageDispatcher.cc
  7855. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7856. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7857. * src/RequestSlot.cc
  7858. * src/RequestSlot.h
  7859. (RequestSlot::isTimeout)
  7860. Made RequestSlot have a reference to Piece object to avoid find
  7861. Piece repeatedly.
  7862. * src/DefaultBtMessageDispatcher.cc
  7863. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7864. * src/RequestSlot.cc
  7865. * src/RequestSlot.h
  7866. (RequestSlot::getPiece)
  7867. * test/DefaultBtMessageDispatcherTest.cc
  7868. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. * src/TimeA2.cc
  7870. * src/TimeA2.h
  7871. (Time::difference): New function.
  7872. (Time::elapsed): Done optimization.
  7873. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7875. directive.
  7876. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. * src/option_processing.cc: Added missing `defined' keyword to #if
  7878. directive.
  7879. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Bump up version number to 0.13.2+1
  7881. * src/configure.ac
  7882. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. Refactored broken outstanding piece handling.
  7884. * src/DefaultPieceStorage.cc
  7885. * src/DefaultPieceStorage.h
  7886. * src/Piece.cc
  7887. * src/Piece.h
  7888. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7890. name collision of static variable and predefined macro.
  7891. * src/BtContext.cc
  7892. * src/BtContext.h
  7893. * src/CookieBoxFactory.cc
  7894. * src/CookieBoxFactory.h
  7895. * src/CookieParser.cc
  7896. * src/CookieParser.h
  7897. * src/DefaultBtContext.cc
  7898. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. * src/RequestGroup.cc
  7900. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7901. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. * Release 0.13.2
  7903. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7905. * po/fr.po
  7906. * po/ja.po
  7907. * po/aria2c.pot
  7908. * po/*.po
  7909. * po/*.gmo
  7910. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Bump up version number to 0.13.2
  7912. * src/configure.ac
  7913. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Refactord.
  7915. * src/RequestGroupMan.cc
  7916. (removeStoppedGroup)
  7917. (fillRequestGroupFromReserver)
  7918. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Fixed compile error on Ubuntu.
  7920. * src/BtPieceMessage.cc
  7921. * src/MessageDigestHelper.cc
  7922. * src/Util.cc
  7923. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Fixed compile error when configured with --disable-bittorrent
  7925. * test/DownloadHandlerFactoryTest.cc
  7926. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Done make update-po
  7928. * po/aria2c.pot
  7929. * po/*.po
  7930. * po/*.gmo
  7931. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Bump up version number to 0.13.2rc.
  7933. * src/configure.ac
  7934. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Made option name bold. Updated SYNOPSIS to make it more readable.
  7936. * doc/aria2c.1.txt
  7937. * doc/aria2c.1
  7938. * doc/aria2c.1.html
  7939. * src/version_usage.cc
  7940. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Refactored. Use std::string instead of size and char*.
  7942. * Data.cc
  7943. * Data.h
  7944. * test/Data.cc
  7945. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Added trimSelf(). Rewritten trim() to use trimSelf().
  7947. * Util.cc
  7948. * Util.h
  7949. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7951. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Fixed compile error when configured with --disable-metalink.
  7953. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7954. * test/FeatureConfigTest.cc
  7955. * test/DownloadHandlerFactoryTest.cc
  7956. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Fixed compile error when configured with --without-gnutls
  7958. --without-openssl
  7959. * src/main.cc
  7960. * test/DefaultBtProgressInfoFileTest.cc
  7961. * test/SegmentManTest.cc
  7962. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Fixed compile error with OpenSSL.
  7964. * src/IteratableChunkChecksumValidator.cc
  7965. * src/LibsslDHKeyExchange.h
  7966. * src/MessageDigestHelper.cc
  7967. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Revert the default value of --max-concurrent-downloads to 5.
  7969. Revert the default value of --metalink-servers to 5.
  7970. Man pages was also updated.
  7971. * src/option_processing.cc
  7972. * doc/aria2c.1.txt
  7973. * doc/aria2c.1.html
  7974. * doc/aria2c.1
  7975. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7976. Returns const reference:
  7977. DownloadContext::getPieceHash, DownloadContext::getName,
  7978. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7979. BtContext::getInfoHashAsString,
  7980. * src/BtContext.h
  7981. * src/DefaultBtContext.cc
  7982. * src/DefaultBtContext.h
  7983. * src/DownloadContext.h
  7984. * src/SingleFileDownloadContext.h
  7985. * test/MockBtContext.h
  7986. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. * src/RequestGroup.h (getDir): Removed.
  7988. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Returns const reference. The internal urlencode function was optimized
  7990. a little bit.
  7991. * src/Request.cc
  7992. * src/Request.h
  7993. * src/HttpRequest.cc
  7994. * src/HttpRequest.h
  7995. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Defined option name and possible values as std::string to reduce
  7997. temporary string object creation in runtime.
  7998. * src/HelpItemFactory.cc
  7999. * src/LogFactory.cc
  8000. * src/Option.cc
  8001. * src/OptionHandlerFactory.cc
  8002. * src/option_processing.cc
  8003. * src/prefs.cc
  8004. * src/prefs.h
  8005. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Return const reference.
  8007. * src/DownloadHandlerConstants.cc
  8008. * src/DownloadHandlerConstants.h
  8009. (getMetalinkExtensions)
  8010. (getMetalinkContentTypes)
  8011. (getBtExtensions)
  8012. (getBtContentTypes)
  8013. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. * src/HttpHeader.cc (get): Rewritten.
  8015. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Make HttpHeader::getFirst(...) return const reference.
  8017. * src/HttpHeader.cc
  8018. * src/HttpHeader.h
  8019. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8021. it with V_TRUE.
  8022. * src/DefaultPieceStorage.cc
  8023. * src/DownloadCommand.cc
  8024. * src/FtpNegotiationCommand.cc
  8025. * src/HttpRequest.cc
  8026. * src/InitiateConnectionCommand.cc
  8027. * src/RequestGroup.cc
  8028. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Made Option::get(...) return const reference of std::string.
  8030. * src/Option.cc
  8031. * src/Option.h
  8032. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Replaced std:copy with insert.
  8034. * src/DefaultBtMessageDispatcher.cc
  8035. * src/DefaultPieceStorage.cc
  8036. * src/DownloadEngineFactory.cc
  8037. * src/RequestGroup.cc
  8038. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Included SocketCore.h to fix compiler warning.
  8040. * src/InitiateConnectionCommand.cc
  8041. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. Put piece selection strategy algorithm to RarestPieceSelector class,
  8043. Added a switch to choose whether randomized selection so that unit
  8044. tests emit same results in, possibly, win32.
  8045. * src/DefaultPieceStorage.cc
  8046. * src/DefaultPieceStorage.h
  8047. * src/RarestPieceSelector.cc
  8048. * src/RarestPieceSelector.h
  8049. * test/DefaultPieceStorageTest.cc
  8050. * test/RarestPieceSelectorTest.cc
  8051. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Don't pool connection if HTTP proxy is enabled.
  8053. * src/FtpFinishDownloadCommand.cc
  8054. * src/FtpNegotiationCommand.cc
  8055. * src/HttpSkipResponseCommand.cc
  8056. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8058. * src/AbstractCommand.cc
  8059. * src/AbstractCommand.h
  8060. * src/ActivePeerConnectionCommand.cc
  8061. * src/FtpInitiateConnectionCommand.cc
  8062. * src/HttpInitiateConnectionCommand.cc
  8063. * src/InitiateConnectionCommandFactory.cc
  8064. * src/PeerAbstractCommand.cc
  8065. * src/PeerAbstractCommand.h
  8066. * src/PeerInitiateConnectionCommand.cc
  8067. * src/TrackerWatcherCommand.cc
  8068. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Sort RequestSlot in ascending order and manipulate them using
  8070. lower_bound.
  8071. * src/DefaultBtMessageDispatcher.cc
  8072. * src/DefaultBtMessageDispatcher.h
  8073. (getMessageQueue): Added const qualifier.
  8074. (getRequestSlots): Added const qualifier.
  8075. (sendMessages): Use empty() instead of size().
  8076. (doCancelSendingPieceAction): Use HandleEvent object.
  8077. (doAbortOutstandingRequestAction): Rewritten.
  8078. (doChokedAction): Rewritten.
  8079. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8080. (isOutstandingRequest): Rewritten.
  8081. (getOutstandingRequest): Rewritten.
  8082. (removeOutstandingRequest): Rewritten.
  8083. (addOutstandingRequest): Rewritten.
  8084. * src/RequestSlot.cc
  8085. * src/RequestSlot.h
  8086. (operator=): Rewritten.
  8087. (operator!=): New function.
  8088. (operator<): New function.
  8089. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. * src/DefaultBtRequestFactory.cc
  8091. (doChokedAction): Rewritten.
  8092. (removeCompletedPiece): Rewritten.
  8093. (removeTargetPiece): Rewritten.
  8094. (createRequestMessages): Added the debug log.
  8095. (createRequestMessagesOnEndGame: Added the debug log.
  8096. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Added the debug log message.
  8098. * src/BtPieceMessage.cc (doReceivedAction)
  8099. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8101. used lower_bound to process them rather than linear search.
  8102. * src/DHTPeerAnnounceStorage.cc
  8103. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8105. peer has at least one completed piece.
  8106. * src/Peer.cc
  8107. * src/Peer.h
  8108. * src/PeerInteractionCommand.cc
  8109. * src/PeerSessionResource.cc
  8110. * src/PeerSessionResource.h
  8111. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Removed unnecessary sorting
  8113. * src/DefaultPieceStorage (DefaultPieceStorage)
  8114. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Rewritten the portion of the code that mangaes allowed fast indexes.
  8116. * src/PeerSessionResource.cc
  8117. * src/PeerSessionResource.h
  8118. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Removed the invalid string including '\r' from ru.po and
  8120. did make update-po.
  8121. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Added --log-level and --summary-interval to man page.
  8123. * doc/aria2c.1.txt
  8124. * doc/aria2c.1.html
  8125. * doc/aria2c.1
  8126. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Added --log-level option to specify log level. Log messages under
  8128. the specified level are not output. Default value is `debug'.
  8129. * src/HelpItemFactory.cc
  8130. * src/LogFactory.cc
  8131. * src/LogFactory.h
  8132. * src/Logger.h
  8133. * src/OptionHandlerFactory.cc
  8134. * src/SimpleLogger.cc
  8135. * src/SimpleLogger.h
  8136. * src/main.cc
  8137. * src/option_processing.cc
  8138. * src/prefs.h
  8139. * src/usage_text.h
  8140. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Print download progress summary of all parallel downloads in specified
  8142. interval, default 60 secs. While aria2 could download several files
  8143. in parallel (see -j option), it displayed just first download progress,
  8144. and the other downloads are hidden from the users. This new feature
  8145. prints all downloads currently in-progress to the console so that you
  8146. can check the status of all downloads. The interval can be adjusted
  8147. by --summary-interval option.
  8148. The progress readout is now cut so that all fits in the one line of
  8149. console.
  8150. * src/ConsoleStatCalc.cc
  8151. * src/ConsoleStatCalc.h
  8152. * src/HelpItemFactory.cc
  8153. * src/OptionHandlerFactory.cc
  8154. * src/RequestGroupMan.cc
  8155. * src/RequestGroupMan.h
  8156. * src/main.cc
  8157. * src/option_processing.cc
  8158. * src/prefs.h
  8159. * src/usage_text.h
  8160. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8162. * src/DownloadEngine.cc (DownloadEngine)
  8163. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8165. defined.
  8166. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8167. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Use erase+lower_bound+insert instead of sort.
  8169. * src/DefaultPieceStorage.cc (addPieceStats)
  8170. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8172. * src/A2STR.cc
  8173. * src/A2STR.h
  8174. * src/OptionParser.cc (parse)
  8175. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Defined fake filename `[tracker.announce]' as static const std::string.
  8177. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8178. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Defined default filename `index.html' as static const std::string
  8180. * src/SingleFileDownloadContext.cc
  8181. * src/SingleFileDownloadContext.h
  8182. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Defined "[MEMORY]" as static const std::string.
  8184. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8185. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Defined control file's version number as static const std::string.
  8187. * src/DefaultBtProgressInfoFile.cc
  8188. * src/DefaultBtProgressInfoFile.h
  8189. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Use Request::METHOD_GET
  8191. * src/RequestGroup.cc (createNextCommandWithAdj)
  8192. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Defined "OK", "ERR", "INPR" as static const std::string
  8194. * src/RequestGroupMan.cc (showDownloadResults)
  8195. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Defined default client used in extended handshake as static const
  8197. std::string
  8198. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8199. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8201. * src/HttpConnection.cc (eraseConfidentialInfo)
  8202. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Defined default ftp user and password as static const std::string
  8204. * src/AuthConfigFactory.cc
  8205. * src/AuthConfigFactory.h
  8206. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Defined strings used in netrc as static const std::string
  8208. * src/Netrc.cc
  8209. * src/Netrc.h
  8210. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Defined HTTP status as static const std::string
  8212. * src/AbstractProxyResponseCommand.cc
  8213. * src/HttpHeader.cc
  8214. * src/HttpHeader.h
  8215. * src/HttpResponse.cc
  8216. * src/HttpResponseCommand.cc
  8217. * src/HttpSkipResponseCommand.cc
  8218. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Defined "\r\n", "A", "I" as static const std::string
  8220. * src/A2STR.cc
  8221. * src/A2STR.h
  8222. * src/FtpConnection.cc
  8223. * src/FtpConnection.h
  8224. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8225. Added COLON_C(".") and used it in Request::parseUrl()
  8226. * src/A2STR.cc
  8227. * src/A2STR.h
  8228. * src/Request.cc (parseUrl)
  8229. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Changed the type of padName from `const std::string&' to `const char*'.
  8231. * src/MSEHandshake.cc (verifyPadLength)
  8232. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Defined "sha1" as static const std::string.
  8234. * src/MetalinkParserController.cc
  8235. * src/MetalinkParserController.h
  8236. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Defined message digest algorithm name as static const std::string
  8238. * src/DHTTokenTracker.cc
  8239. * src/DHTUtil.cc
  8240. * src/DefaultBtContext.cc
  8241. * src/MSEHandshake.cc
  8242. * src/MessageDigestHelper.cc
  8243. * src/Peer.cc
  8244. * src/messageDigest.cc
  8245. * src/messageDigest.h
  8246. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Made string literals used in SAX parser static const std::string.
  8248. * src/FileMetalinkParserState.cc
  8249. * src/FileMetalinkParserState.h
  8250. * src/FilesMetalinkParserState.cc
  8251. * src/FilesMetalinkParserState.h
  8252. * src/InitialMetalinkParserState.cc
  8253. * src/InitialMetalinkParserState.h
  8254. * src/MetalinkMetalinkParserState.cc
  8255. * src/MetalinkMetalinkParserState.h
  8256. * src/PiecesMetalinkParserState.cc
  8257. * src/PiecesMetalinkParserState.h
  8258. * src/ResourcesMetalinkParserState.cc
  8259. * src/ResourcesMetalinkParserState.h
  8260. * src/VerificationMetalinkParserState.cc
  8261. * src/VerificationMetalinkParserState.h
  8262. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8264. * src/A2STR.cc
  8265. * src/A2STR.h
  8266. * src/File.cc
  8267. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Defined static const std::string IP("ip"), PORT("port") and use them
  8269. instead of string literals.
  8270. * src/DefaultPeerListProcessor.cc
  8271. * src/DefaultPeerListProcessor.h
  8272. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Made string literals for torrent file processing static const
  8274. std::string.
  8275. * src/BtContext.cc
  8276. * src/BtContext.h
  8277. * src/DefaultBtContext.cc
  8278. * src/DefaultBtContext.h
  8279. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Made string literal for tracker response static const std::string
  8281. * src/BtAnnounce.cc
  8282. * src/BtAnnounce.h
  8283. * src/DefaultBtAnnounce.cc
  8284. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Use DHTMessage::T instead of "t".
  8286. * src/DHTMessageTracker.cc (messageArrived)
  8287. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Made keyName static const. Made trimmed charset static const
  8289. std::string.
  8290. * src/Util.cc (getContentDispositionFilename)
  8291. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Made USER_AGENT const. Made "/" static const std::string.
  8293. * src/A2STR.cc
  8294. * src/A2STR.h
  8295. * src/HttpRequest.cc
  8296. * src/HttpRequest.h
  8297. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Made string listeral to static const std::string:
  8299. "Content-Range", "Content-Length"
  8300. * src/HttpHeader.cc
  8301. * src/HttpHeader.h
  8302. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Made string listeral to static const std::string.
  8304. * src/HttpConnection.cc
  8305. * src/HttpHeader.cc
  8306. * src/HttpHeader.h
  8307. * src/HttpResponse.cc
  8308. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Made string listeral to static const std::string.
  8310. * src/A2STR.cc
  8311. * src/A2STR.h
  8312. * src/SimpleLogger.cc
  8313. * src/SimpleLogger.h
  8314. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Made string literal to static const std::string.
  8316. Rewritten CookieParser::setField.
  8317. * src/A2STR.cc
  8318. * src/A2STR.h
  8319. * src/CookieBoxFactory.cc
  8320. * src/CookieBoxFactory.h
  8321. * src/CookieParser.cc
  8322. * src/CookieParser.h
  8323. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Made string literal to static const std::string
  8325. * src/DHTAbstractMessage.cc
  8326. * src/DHTAnnouncePeerMessage.cc
  8327. * src/DHTAnnouncePeerMessage.h
  8328. * src/DHTAnnouncePeerReplyMessage.cc
  8329. * src/DHTAnnouncePeerReplyMessage.h
  8330. * src/DHTFindNodeMessage.cc
  8331. * src/DHTFindNodeMessage.h
  8332. * src/DHTFindNodeReplyMessage.cc
  8333. * src/DHTFindNodeReplyMessage.h
  8334. * src/DHTGetPeersMessage.cc
  8335. * src/DHTGetPeersMessage.h
  8336. * src/DHTGetPeersReplyMessage.cc
  8337. * src/DHTGetPeersReplyMessage.h
  8338. * src/DHTMessage.cc
  8339. * src/DHTMessage.h
  8340. * src/DHTMessageFactoryImpl.cc
  8341. * src/DHTMessageReceiver.cc
  8342. * src/DHTPingMessage.cc
  8343. * src/DHTPingMessage.h
  8344. * src/DHTPingReplyMessage.cc
  8345. * src/DHTPingReplyMessage.h
  8346. * src/DHTQueryMessage.cc
  8347. * src/DHTQueryMessage.h
  8348. * src/DHTResponseMessage.cc
  8349. * src/DHTResponseMessage.h
  8350. * src/DHTUnknownMessage.cc
  8351. * src/DHTUnknownMessage.h
  8352. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Made string literal to static const std::string
  8354. * src/BtChokeMessage.cc (toString)
  8355. * src/BtHaveAllMessage.cc (toString)
  8356. * src/BtHaveNoneMessage.cc (toString)
  8357. * src/BtInterestedMessage.cc (toString)
  8358. * src/BtNotInterestedMessage.cc (toString)
  8359. * src/BtUnchokeMessage.cc (toString)
  8360. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Replaced "" with static const variable A2STR::NIL.
  8362. Replaced string comparison against "" with std::string::empty().
  8363. Added PROTO_* to Request class and use them as a protocol string
  8364. constant.
  8365. Made "started", "stopped", "completed" static const variable in
  8366. AnnounceList class.
  8367. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Updated translations. Great thanks to translators.
  8369. * po/ca.po
  8370. * po/de.po
  8371. * po/fr.po
  8372. * po/it.po
  8373. * po/ja.po
  8374. * po/ru.po
  8375. * po/zh_CN.po
  8376. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Updated man page; categorized options and fixed typo.
  8378. * doc/aria2c.1.txt
  8379. * doc/aria2c.1.html
  8380. * doc/aria2c.1
  8381. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Removed const ref
  8383. * src/MetalinkEntry.cc (AddProtocolPreference)
  8384. * src/RequestGroup.cc (FindServerHostByHostname)
  8385. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Rewritten Accept-Features handling.
  8387. * src/HttpRequestCommand.cc (createHttpRequest)
  8388. * src/a2functional.h
  8389. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Changed method signature:
  8391. DHTAbstractNodeLookupTask::toEntries
  8392. * src/DHTAbstractNodeLookupTask.cc
  8393. * src/DHTAbstractNodeLookupTask.h
  8394. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Changed method signature:
  8396. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8397. * src/BtContext.h
  8398. * src/DefaultBtContext.cc
  8399. * src/DefaultBtContext.h
  8400. * src/DefaultBtInteractive.cc
  8401. * test/DefaultBtContextTest.cc
  8402. * test/MockBtContext.h
  8403. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Changed method signature:
  8405. MultiFileAllocationIterator::makeDiskWriterEntries
  8406. * src/MultiFileAllocationIterator.cc
  8407. * src/MultiFileAllocationIterator.h
  8408. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Changed method sinature:
  8410. MetalinkEntry::toFileEntry,
  8411. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8412. Metalinker::queryEntry
  8413. * src/Metalink2RequestGroup.cc
  8414. * src/MetalinkEntry.cc
  8415. * src/MetalinkEntry.h
  8416. * src/MetalinkHelper.cc
  8417. * src/MetalinkHelper.h
  8418. * src/Metalinker.cc
  8419. * src/Metalinker.h
  8420. * src/main.cc
  8421. * test/MetalinkHelperTest.cc
  8422. * test/MetalinkerTest.cc
  8423. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Changed method sinature:
  8425. RequestGroup::getURIs
  8426. * src/RequestGroup.cc
  8427. * src/RequestGroup.h
  8428. * test/Metalink2RequestGroupTest.cc
  8429. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Changed method signature:
  8431. PeerListProcessor::extractPeer
  8432. * src/CompactPeerListProcessor.cc
  8433. * src/CompactPeerListProcessor.h
  8434. * src/DefaultBtAnnounce.cc
  8435. * src/DefaultPeerListProcessor.cc
  8436. * src/DefaultPeerListProcessor.h
  8437. * src/DelegatingPeerListProcessor.cc
  8438. * src/DelegatingPeerListProcessor.h
  8439. * src/PeerListProcessor.h
  8440. * src/UTPexExtensionMessage.cc
  8441. * test/DefaultPeerListProcessorTest.cc
  8442. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Changed method signature:
  8444. BtRequestFactory::createRequestMessages,
  8445. BtRequestFactory::createRequestMessagesOnEndGame
  8446. * src/BtRequestFactory.h
  8447. * src/DefaultBtInteractive.cc
  8448. * src/DefaultBtRequestFactory.cc
  8449. * src/DefaultBtRequestFactory.h
  8450. * test/DefaultBtRequestFactoryTest.cc
  8451. * test/MockBtRequestFactory.h
  8452. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Changed method signature:
  8454. PieceStorage::getInFlightPieces
  8455. * src/DefaultBtProgressInfoFile.cc
  8456. * src/DefaultPieceStorage.cc
  8457. * src/DefaultPieceStorage.h
  8458. * src/PieceStorage.h
  8459. * src/UnknownLengthPieceStorage.cc
  8460. * src/UnknownLengthPieceStorage.h
  8461. * test/DefaultBtProgressInfoFileTest.cc
  8462. * test/MockPieceStorage.h
  8463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Changed method signature:
  8465. PostDownloadHandler::getNextRequestGroups
  8466. Metalink2RequestGroup::generate
  8467. RequestGroup::postDownloadProcessing
  8468. * src/BtPostDownloadHandler.cc
  8469. * src/BtPostDownloadHandler.h
  8470. * src/Metalink2RequestGroup.cc
  8471. * src/Metalink2RequestGroup.h
  8472. * src/MetalinkPostDownloadHandler.cc
  8473. * src/MetalinkPostDownloadHandler.h
  8474. * src/PostDownloadHandler.h
  8475. * src/RequestGroup.cc
  8476. * src/RequestGroup.h
  8477. * src/RequestGroupMan.cc
  8478. * src/main.cc
  8479. * test/BtPostDownloadHandlerTest.cc
  8480. * test/Metalink2RequestGroupTest.cc
  8481. * test/MetalinkPostDownloadHandlerTest.cc
  8482. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Rewritten AccRequestGroup
  8484. * src/main.cc
  8485. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Rewritten.
  8487. * src/TaggedItem.cc (toTagString)
  8488. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Rewritten Accept-Features handling.
  8490. * src/HttpRequestCommand.cc (createHttpRequest)
  8491. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Rewritten accept types handling.
  8493. * HttpRequest.cc (createRequest)
  8494. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Rewritten
  8496. * src/FeatureConfig.cc (featureSummary)
  8497. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Changed method signature:
  8499. PeerStorage::getActivePeers
  8500. * src/DHTPeerAnnounceEntry.cc
  8501. * src/DefaultPeerStorage.cc
  8502. * src/DefaultPeerStorage.h
  8503. * src/PeerStorage.h
  8504. * test/DefaultPeerStorageTest.cc
  8505. * test/MockPeerStorage.h
  8506. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Changed method signature:
  8508. DHTPeerAnnounceStorage::getPeers,
  8509. DHTPeerAnnounceEntry::getPeers
  8510. * src/DHTGetPeersMessage.cc
  8511. * src/DHTPeerAnnounceEntry.cc
  8512. * src/DHTPeerAnnounceEntry.h
  8513. * src/DHTPeerAnnounceStorage.cc
  8514. * src/DHTPeerAnnounceStorage.h
  8515. * test/DHTAnnouncePeerMessageTest.cc
  8516. * test/DHTPeerAnnounceEntryTest.cc
  8517. * test/DHTPeerAnnounceStorageTest.cc
  8518. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Changed method signature:
  8520. NameResolver::resolve
  8521. * src/DHTEntryPointNameResolveCommand.cc
  8522. * src/InitiateConnectionCommand.cc
  8523. * src/NameResolver.cc
  8524. * src/NameResolver.h
  8525. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Changed method signature:
  8527. PieceStorage::getAdvertisedPieceIndexes
  8528. * src/DefaultBtInteractive.cc
  8529. * src/DefaultPieceStorage.cc
  8530. * src/DefaultPieceStorage.h
  8531. * src/PieceStorage.h
  8532. * src/UnknownLengthPieceStorage.h
  8533. * test/MockPieceStorage.h
  8534. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Changed method signature:
  8536. SegmentMan::getInFlightSegment
  8537. * src/AbstractCommand.cc
  8538. * src/SegmentMan.cc
  8539. * src/SegmentMan.h
  8540. * test/SegmentManTest.cc
  8541. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Changed method signature:
  8543. DHTAbstractNodeLookupTask::getNodesFromMessage
  8544. * src/DHTAbstractNodeLookupTask.cc
  8545. * src/DHTAbstractNodeLookupTask.h
  8546. * src/DHTNodeLookupTask.cc
  8547. * src/DHTNodeLookupTask.h
  8548. * src/DHTPeerLookupTask.cc
  8549. * src/DHTPeerLookupTask.h
  8550. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8552. * src/AbstractCommand.cc
  8553. * src/BtCheckIntegrityEntry.cc
  8554. * src/BtCheckIntegrityEntry.h
  8555. * src/BtFileAllocationEntry.cc
  8556. * src/BtFileAllocationEntry.h
  8557. * src/BtSetup.cc
  8558. * src/BtSetup.h
  8559. * src/CheckIntegrityCommand.cc
  8560. * src/CheckIntegrityEntry.h
  8561. * src/ChecksumCheckIntegrityEntry.cc
  8562. * src/ChecksumCheckIntegrityEntry.h
  8563. * src/DHTSetup.cc
  8564. * src/DHTSetup.h
  8565. * src/DownloadEngine.cc
  8566. * src/FileAllocationCommand.cc
  8567. * src/FileAllocationEntry.h
  8568. * src/RequestGroup.cc
  8569. * src/RequestGroup.h
  8570. * src/RequestGroupMan.cc
  8571. * src/RequestGroupMan.h
  8572. * src/StreamCheckIntegrityEntry.cc
  8573. * src/StreamCheckIntegrityEntry.h
  8574. * src/StreamFileAllocationEntry.cc
  8575. * src/StreamFileAllocationEntry.h
  8576. * src/TrackerWatcherCommand.cc
  8577. * src/a2functional.h
  8578. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Changed method signature:
  8580. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8581. DHTBucket::getGoodNodes,
  8582. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8583. * src/BNode.cc
  8584. * src/BNode.h
  8585. * src/DHTAbstractNodeLookupTask.cc
  8586. * src/DHTAutoSaveCommand.cc
  8587. * src/DHTBucket.cc
  8588. * src/DHTBucket.h
  8589. * src/DHTBucketRefreshTask.cc
  8590. * src/DHTFindNodeMessage.cc
  8591. * src/DHTGetPeersMessage.cc
  8592. * src/DHTRoutingTable.cc
  8593. * src/DHTRoutingTable.h
  8594. * test/BNodeTest.cc
  8595. * test/DHTBucketTest.cc
  8596. * test/DHTRoutingTableTest.cc
  8597. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. In piece selection functions, Pass std::deque<...> by reference rather
  8599. than returning it.
  8600. * src/BitfieldMan.cc
  8601. * src/BitfieldMan.h
  8602. * src/DefaultBtRequestFactory.cc
  8603. * src/DefaultPieceStorage.cc
  8604. * src/Piece.cc
  8605. * src/Piece.h
  8606. * test/BitfieldManTest.cc
  8607. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Implemented rarest piece first piece selection strategy.
  8609. * src/AbstractBtMessage.cc
  8610. * src/AbstractBtMessage.h
  8611. * src/BitfieldMan.cc
  8612. * src/BitfieldMan.h
  8613. * src/BtBitfieldMessage.cc
  8614. * src/BtHaveAllMessage.cc
  8615. * src/BtHaveMessage.cc
  8616. * src/DefaultPieceStorage.cc
  8617. * src/DefaultPieceStorage.h
  8618. * src/PeerInteractionCommand.cc
  8619. * src/PieceStorage.h
  8620. * src/UnknownLengthPieceStorage.h
  8621. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Rewritten readData and writeData.
  8623. * src/MultiDiskAdaptor.cc
  8624. * src/MultiDiskAdaptor.h
  8625. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Move \n out of the message "Usage: ...".
  8627. * src/version_usage.cc
  8628. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Bump up version number to 0.13.2b.
  8630. * configure.ac
  8631. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Added const qualifier to argument Exception& e.
  8633. * src/Logger.h
  8634. * src/SimpleLogger.cc
  8635. * src/SimpleLogger.h
  8636. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Pool connection when CWD, SIZE command fails.
  8638. * src/FtpNegotiationCommand.cc
  8639. * src/FtpNegotiationCommand.h
  8640. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8642. * src/HttpResponseCommand.cc
  8643. * src/HttpSkipResponseCommand.cc
  8644. * src/HttpSkipResponseCommand.h
  8645. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Pool connection when a server returns 4xx, 5xx responses.
  8647. * src/HttpNullDownloadCommand.cc
  8648. * src/HttpNullDownloadCommand.h
  8649. * src/HttpResponse.cc
  8650. * src/HttpResponse.h
  8651. * src/HttpResponseCommand.cc
  8652. * src/HttpResponseCommand.h
  8653. * test/HttpResponseTest.cc
  8654. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Print usage when no URL is specifed or bad command-line option is
  8656. specified.
  8657. * src/HelpItemFactory.cc
  8658. * src/help_tags.h
  8659. * src/option_processing.cc
  8660. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Removed duplicate log message.
  8662. * src/AbstractCommand.cc (asyncResolveHostname)
  8663. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8665. Changed -j option's default value from 5 to 1.
  8666. Added new examples using protocol auto detection feature.
  8667. Removed -T, -M usage where it can be omitted.
  8668. * doc/aria2c.1.txt
  8669. * doc/aria2c.1.html
  8670. * doc/aria2c.1.txt
  8671. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Updated command-line usage text, so that it tells users that they
  8673. can specify any number of torrent files and metalink files in
  8674. command-line.
  8675. * src/version_usage.cc
  8676. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Changed the default value of -j option to 1.
  8678. * src/HelpItemFactory.cc
  8679. * src/option_processing.cc
  8680. * src/usage_text.h
  8681. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Added the ability to reuse connection in FTP and it is enabled by
  8683. default. It can be disabled by --ftp-reuse-connection=false option.
  8684. * src/Command.cc
  8685. * src/DownloadCommand.cc
  8686. * src/FtpDownloadCommand.cc
  8687. * src/FtpDownloadCommand.h
  8688. * src/FtpFinishDownloadCommand.cc
  8689. * src/FtpFinishDownloadCommand.h
  8690. * src/FtpInitiateConnectionCommand.cc
  8691. * src/FtpNegotiationCommand.cc
  8692. * src/FtpNegotiationCommand.h
  8693. * src/HelpItemFactory.cc
  8694. * src/Makefile.am
  8695. * src/Makefile.in
  8696. * src/OptionHandlerFactory.cc
  8697. * src/option_processing.cc
  8698. * src/prefs.h
  8699. * src/usage_text.h
  8700. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Call Command::transitStatus() before calling Command::execute(),
  8702. so that the status change made in execute() is not cleared.
  8703. * src/DownloadEngine.cc
  8704. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Removed forward declaration of SocketCore class.
  8706. * src/HttpDownloadCommand.h
  8707. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8709. in InitiateConnectionCommandFactory. They should be set only when
  8710. the protocol is HTTP or HTTPS.
  8711. * src/InitiateConnectionCommandFactory.cc
  8712. * src/RequestGroup.cc
  8713. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Fixed infinite loop in checksum checking.
  8715. * src/IteratableChecksumValidator.cc
  8716. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Set _supportsPersistentConnection to true by default.
  8718. * src/Request.cc
  8719. * src/RequestGroup.cc
  8720. * test/HttpRequestTest.cc
  8721. * test/RequestTest.cc
  8722. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Added timeout to socket pool. The default timeout is 15 seconds,
  8724. which is the same value Apache uses.
  8725. * src/DownloadEngine.cc
  8726. * src/DownloadEngine.h
  8727. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Fixed misuse of multimap::find()
  8729. * src/HttpHeader.cc
  8730. * test/HttpHeaderTest.cc
  8731. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8733. option.
  8734. The asynchronous DNS is not capable of IPv6 yet.
  8735. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8736. least for HTTP download.
  8737. * src/AbstractCommand.cc
  8738. * src/AbstractCommand.h
  8739. * src/AsyncNameResolver.cc
  8740. * src/AsyncNameResolver.h
  8741. * src/DHTEntryPointNameResolveCommand.cc
  8742. * src/DHTEntryPointNameResolveCommand.h
  8743. * src/DownloadEngine.cc
  8744. * src/DownloadEngine.h
  8745. * src/FtpInitiateConnectionCommand.cc
  8746. * src/FtpInitiateConnectionCommand.h
  8747. * src/HelpItemFactory.cc
  8748. * src/HttpInitiateConnectionCommand.cc
  8749. * src/HttpInitiateConnectionCommand.h
  8750. * src/InitiateConnectionCommand.cc
  8751. * src/InitiateConnectionCommand.h
  8752. * src/Makefile.am
  8753. * src/Makefile.in
  8754. * src/NameResolver.cc
  8755. * src/NameResolver.h
  8756. * src/OptionHandlerFactory.cc
  8757. * src/SocketCore.cc
  8758. * src/SocketCore.h
  8759. * src/Util.cc
  8760. * src/Util.h
  8761. * src/option_processing.cc
  8762. * src/prefs.h
  8763. * src/usage_text.h
  8764. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Updated man page: --quiet, --header were added.
  8766. --metalink-servers and --enable-http-keep-alive option were updated.
  8767. * doc/aria2c.1
  8768. * doc/aria2c.1.html
  8769. * doc/aria2c.1.txt
  8770. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Enable HTTP keep-alive by default.
  8772. * src/HelpItemFactory.cc
  8773. * src/option_processing.cc
  8774. * src/usage_text.h
  8775. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Disable http keep-alive if the remote server is not HTTP/1.1.
  8777. * src/HttpConnection.cc
  8778. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Receive content body of 302 response so that the connection can be
  8780. reused later when http keep-alive is enabled.
  8781. * src/HttpNullDownloadCommand.cc
  8782. * src/HttpNullDownloadCommand.h
  8783. * src/HttpResponseCommand.cc
  8784. * src/HttpResponseCommand.h
  8785. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. const SharedHandle<Request> -> const SharedHandle<Request>&
  8787. * src/FtpDowndloadCommand.cc
  8788. * src/FtpDowndloadCommand.h
  8789. * src/HttpDownloadCommand.cc
  8790. * src/HttpDownloadCommand.h
  8791. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Fixed the bug that the control file(.aria2 file) is not renamed
  8793. according to tryAutoFileRenaming().
  8794. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8795. its control file exist, use them and continue download.
  8796. The old implementation didn't take into account of control file's
  8797. existence, so basically you couldn't continue download of renamed file.
  8798. * src/BtProgressInfoFile.h
  8799. * src/DefaultBtProgressInfoFile.cc
  8800. * src/DefaultBtProgressInfoFile.h
  8801. * src/NullProgressInfoFile.h
  8802. * src/RequestGroup.cc
  8803. * test/DefaultBtProgressInfoFileTest.cc
  8804. * test/MockBtProgressInfoFile.h
  8805. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Change the default value of --metalink-servers option from `5' to `1'.
  8807. * src/HelpItemFactory.cc
  8808. * src/option_processing.cc
  8809. * src/usage_text.h
  8810. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Reimplemented transparent metalink using Accept request header.
  8812. * src/HttpRequest.cc
  8813. * src/HttpRequest.h
  8814. * src/HttpRequestCommand.cc
  8815. * src/Metalink2RequestGroup.cc
  8816. * src/RequestGroup.cc
  8817. * src/RequestGroup.h
  8818. * test/HttpRequestTest.cc
  8819. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Bump up version number to 0.13.2a
  8821. * configure.ac
  8822. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Updated configure.ac using the result of autoscan.
  8824. * configure.ac
  8825. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Fixed compilation error without gcrypt/openssl.
  8827. * src/DownloadCommand.cc
  8828. * src/DownloadCommand.h
  8829. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Reorganized version information so that it can be displayed in a
  8831. standard terminal screen without scrolling.
  8832. Removed http, ftp from Configuration section, because they are always
  8833. enabled.
  8834. * src/FeatureConfig.cc
  8835. * src/FeatureConfig.h
  8836. * src/main.cc
  8837. * src/messageDigest.cc
  8838. * src/messageDigest.h
  8839. * src/version_usage.cc
  8840. * test/FeatureConfigTest.cc
  8841. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Masked user ID in log.
  8843. * src/FtpConnection.cc (sendUser)
  8844. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Removed query part from filename in HTTP download. The query part means
  8846. the substring after "?" in URL. Firefox seems do the same thing.
  8847. A query part is sometimes very long and not suitable to filename,
  8848. so I think it is better to remove it from filename.
  8849. * src/HttpRequest.cc
  8850. * src/HttpRequest.h
  8851. * src/Request.cc
  8852. * src/Request.h
  8853. * test/HttpRequestTest.cc
  8854. * test/RequestTest.cc
  8855. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Rewritten Exception class. Throw exception object, not its pointer and
  8857. catch by reference, so that remove problematic delete operator for
  8858. catched exception.
  8859. * src/Exception.cc
  8860. * src/Exception.h
  8861. * test/ExceptionTest.cc
  8862. * src/*: All files throwing/catching exception.
  8863. * test/*: All files throwing/catching exception.
  8864. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8865. Now auto protocol detection is enabled without -Z option.
  8866. But there is a important difference between with/without -Z optoin.
  8867. For example, if you type:
  8868. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8869. then, aria2 interprets there are 3 request groups:
  8870. (1) http://host/file, http://mirror/file <-- multi-source download
  8871. (2) file1.torrent
  8872. (3) file2.metalink
  8873. On the other hand, if you invoke above command with -Z option, it is
  8874. interpreted as 4 request groups:
  8875. (1) http://host/file
  8876. (2) file1.torrent
  8877. (3) file2.metalink
  8878. (4) http://mirror/file
  8879. I think usually user don't mix multi-source URLs and torrent files, so
  8880. there is no big problem here.
  8881. * src/main.cc
  8882. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Fixed the bug that causes segmentaion fault when reading XML containing
  8884. unescapsed character like '&'.
  8885. Also a modification was made which avoids adding unnecessary
  8886. characters stack and appending unused string.
  8887. * src/ExpatMetalinkProcessor.cc
  8888. * src/FileMetalinkParserState.h
  8889. * src/FilesMetalinkParserState.h
  8890. * src/FinMetalinkParserState.h
  8891. * src/HashMetalinkParserState.h
  8892. * src/InitialMetalinkParserState.h
  8893. * src/LanguageMetalinkParserState.h
  8894. * src/MetalinkMetalinkParserState.h
  8895. * src/MetalinkParserState.h
  8896. * src/MetalinkParserStateMachine.cc
  8897. * src/MetalinkParserStateMachine.h
  8898. * src/OSMetalinkParserState.h
  8899. * src/PieceHashMetalinkParserState.h
  8900. * src/PiecesMetalinkParserState.h
  8901. * src/ResourcesMetalinkParserState.h
  8902. * src/SizeMetalinkParserState.h
  8903. * src/SkipTagMetalinkParserState.h
  8904. * src/URLMetalinkParserState.h
  8905. * src/VerificationMetalinkParserState.h
  8906. * src/VersionMetalinkParserState.h
  8907. * src/XML2SAXMetalinkProcessor.cc
  8908. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Added StringFormat class, which internally calls vasprintf.
  8910. operator<< is defined for this class, so it can be used with iostream
  8911. classes nicely. SimpleLogger and following functions are rewritten
  8912. using StringFormat class.
  8913. Besides, now Logger class's methods are non-const, many classes
  8914. that has a const Logger* as a member variable are modified to remove
  8915. const qualifier from the variable declaration.
  8916. * src/HelpItemFactory.cc
  8917. * src/Request.cc
  8918. * src/SimpleLogger.cc
  8919. * src/StringFormat.cc
  8920. * src/StringFormat.h
  8921. * src/Util.cc
  8922. * src/option_processing.cc
  8923. * src/version_usage.cc
  8924. * test/StringFormatTest.cc
  8925. * src/*.h: The classes that has const Logger* as a member variable.
  8926. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8928. failed. Also fixed memory link when exception is thrown there.
  8929. * src/main.cc (AccRequestGroup)
  8930. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Added build-in "Accept-Features" support. For now only "metalink" is
  8932. used in this header field.
  8933. This "metalink" value is removed from the list when connecting URLs
  8934. fed by metalink file to avoid loop in "transparent" metlaink.
  8935. * src/HttpRequest.cc
  8936. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8937. header is also held in this variable. Also renamed setUserHeaders as
  8938. addHeader and it was rewritten to add header not just to clear the old
  8939. value.
  8940. * src/HttpRequestCommand.cc
  8941. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8942. from "Accept-Features" list.
  8943. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8944. default.
  8945. * src/RequestGroup.h
  8946. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8947. * src/a2functional.h: Included <string> because Concat class depends on
  8948. it.
  8949. * test/HttpRequestTest.cc
  8950. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Added comment
  8952. * src/RequestGroup.cc (createNextCommand)
  8953. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Capitalized METHOD_GET and METHOD_HEAD
  8955. * src/Request.cc
  8956. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Added getDownloadResults() method
  8958. * src/RequestGroupMan.cc
  8959. * src/RequestGroupMan.h
  8960. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Fixed the bug that aria2 exits when commands is empty() but
  8962. _routineCommands are not.
  8963. * src/DownloadEngine.cc
  8964. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Use the default value pulled from Option object in HelpItemFactory.
  8966. except options whose defualt value is embedded in a usage text.
  8967. * src/HelpItemFactory.cc
  8968. * src/HelpItemFactory.h
  8969. * src/option_processing.cc
  8970. * src/version_usage.cc
  8971. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. Added --quiet option to make aria2 quiet (no console output).
  8973. --quiet option is tagged with ADVANCED.
  8974. * src/HelpItemFactory.cc
  8975. * src/LogFactory.cc
  8976. * src/LogFactory.h
  8977. * src/MultiUrlRequestInfo.cc
  8978. * src/MultiUrlRequestInfo.h
  8979. * src/NullStatCalc.h: New class. This class prints nothing.
  8980. * src/OptionHandlerFactory.cc
  8981. * src/main.cc
  8982. * src/option_processing.cc
  8983. * src/prefs.h
  8984. * src/usage_text.h
  8985. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8987. * src/HelpItemFactory.cc (createHelpItems):
  8988. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Fixed compilation error in ExpatMetalinkProcessor.cc
  8990. * src/ExpatMetalinkProcessor.cc
  8991. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Reuse socket if the origin server supports HTTP keep-alive and
  8993. --enable-http-keep-alive or --enable-http-pipelining is given.
  8994. The current implementation doesn't reuse the connections established
  8995. against proxy server.
  8996. * src/AbstractCommand.cc
  8997. * src/DownloadEngine.cc
  8998. * src/DownloadEngine.h
  8999. * src/HttpDownloadCommand.cc
  9000. * src/HttpInitiateConnectionCommand.cc
  9001. * src/HttpResponseCommand.cc
  9002. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Rewritten HTTP keep-alive and pipelining routine.
  9004. * src/AbstractCommand.cc
  9005. * src/HttpConnection.cc
  9006. * src/HttpDownloadCommand.cc
  9007. * src/HttpRequest.cc
  9008. * src/HttpRequestCommand.cc
  9009. * src/HttpResponseCommand.cc
  9010. * src/Request.cc
  9011. * src/Request.h
  9012. * src/RequestGroup.cc
  9013. * test/HttpRequestTest.cc
  9014. * test/HttpResponseTest.cc
  9015. * test/RequestTest.cc
  9016. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Added missing setUserHeaders call
  9018. * src/HttpRequestCommand.cc
  9019. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9021. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9022. waste of time because it is more likey false.
  9023. * src/FileAllocationDispatcherCommand.cc (execute)
  9024. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Now HTTP status and version are a member variable of HttpHeader.
  9026. HTTP status is processed as a string, not integer.
  9027. * src/AbstractProxyResponseCommand.cc
  9028. * src/HttpConnection.cc
  9029. * src/HttpHeader.cc
  9030. * src/HttpHeader.h
  9031. * src/HttpHeaderProcessor.cc
  9032. * src/HttpHeaderProcessor.h
  9033. * src/HttpResponse.cc
  9034. * src/HttpResponse.h
  9035. * test/HttpHeaderProcessorTest.cc
  9036. * test/HttpResponseTest.cc
  9037. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Added --header option. You can specify any number of additional HTTP headers
  9039. like:
  9040. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9041. Unlike other commad-line option, you can use --header option multiple times.
  9042. * src/HelpItemFactory.cc
  9043. * src/HttpRequest.{cc, h}
  9044. * src/HttpRequestCommand.cc
  9045. * src/OptionHandlerFactory.cc
  9046. * src/OptionHandlerImpl.h
  9047. * src/option_processing.cc
  9048. * src/prefs.h
  9049. * src/usage_text.h
  9050. * test/HttpRequestTest.cc (testUserHeaders)
  9051. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Eliminates the time lag between sequential downloads and commands in
  9053. the same RequestGroup.
  9054. In old implementation, aria2 occasionally waits 1 seconds before
  9055. executing next command or RequestGroup.
  9056. This is really a waste of time, and new implementation eliminates
  9057. this unnecessary time lag.
  9058. * src/AbstractCommand.cc
  9059. * src/AutoSaveCommand.cc
  9060. * src/CheckIntegrityCommand.cc
  9061. * src/Command.{cc, h}
  9062. * src/DownloadEngine.{cc, h}
  9063. * src/DownloadEngineFactory.cc
  9064. * src/FileAllocationCommand.cc
  9065. * src/FileAllocationDispatcherCommand.cc
  9066. * src/FillRequestGroupCommand.cc
  9067. * src/FtpInitiateConnectionCommand.cc
  9068. * src/HaveEraseCommand.cc
  9069. * src/HttpInitiateConnectionCommand.cc
  9070. * src/HttpResponseCommand.cc
  9071. * src/RealtimeCommand.cc
  9072. * src/RequestGroup.cc
  9073. * src/RequestGroupMan.cc
  9074. * src/StreamFileAllocationEntry.cc
  9075. * src/TimeBasedCommand.{cc, h}
  9076. * src/TimedHaltCommand.cc
  9077. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9079. keyword explicit and SharedHandle's default constructor initializes
  9080. its internal obj to null, old implementation initializes it using
  9081. obj's default constructor.
  9082. To assign null, write SharedHandle<T> x(...); x.reset();
  9083. TODO: test/SharedHandleTest.cc needs more tests.
  9084. * src/SharedHandle.h
  9085. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Fixed type in man page.
  9087. * doc/aria2c.1.txt
  9088. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9090. * src/SimpleLogger.{cc, h}
  9091. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Implemented auto protocol detection.
  9093. Now you can do:
  9094. aria2c -Z http://host/file file1.torrent file2.metalink
  9095. (Note: -Z option is required for auto protcol detection.)
  9096. Then aria2c downloads 3 files simultaneously:
  9097. 1. http://host/file
  9098. 2. file1.torrent <-- read local torrent file
  9099. 3. file2.metalink <-- read local Metalink file.
  9100. Same thing goes with -i option. Assume your uris.txt contans:
  9101. http://host/file
  9102. file1.torrent
  9103. file2.metalink
  9104. Then you can do: aria2c -i uris.txt
  9105. (Note: -Z option is not needed if -i option is given.)
  9106. * src/main.cc
  9107. * src/ProtocolDetector.{cc, h}
  9108. * test/ProtocolDetectorTest.cc
  9109. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9111. installed
  9112. * src/ARC4Encryptor.h
  9113. * src/ARC4Decryptor.h
  9114. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Renamed argument from 'errno' to 'err', since errno is confused with
  9116. errno defined in errno.h.
  9117. * src/LibgcryptARC4Decryptor.h
  9118. * src/LibgcryptARC4Context.h
  9119. * src/LibgcryptDHKeyExchange.h
  9120. * src/LibgcryptARC4Encryptor.h
  9121. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Rewritten choking algorithm.
  9123. * src/PeerChokeCommand.{cc, h}
  9124. * src/BtInterestedMessage.cc
  9125. * src/PeerSessionResource.{cc, h}
  9126. * src/DefaultPeerStorage.{cc, h}
  9127. * src/BtNotInterestedMessage.cc
  9128. * src/DefaultBtMessageDispatcher.{cc, h}
  9129. * src/BtMessageDispatcher.h
  9130. * src/Peer.{cc, h}
  9131. * src/BtLeecherStateChoke.{cc, h}
  9132. * src/BtSetup.cc
  9133. * src/BtSeederStateChoke.{cc, h}
  9134. * src/PeerStorage.h
  9135. * test/MockPeerStorage.h
  9136. * test/MockBtMessageDispatcher.h
  9137. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Fixed compilation error on x84-64 platform.
  9139. * src/AuthConfig.cc: Included ostream.
  9140. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Rewritten getBasename() and getDirname(), without standard library
  9142. basename(), dirname().
  9143. * src/File.cc
  9144. * test/FileTest.cc
  9145. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Added Simplified Chinese translation. Also updated the following
  9147. translations: Polish, Dutch, German. Great thanks to all translators.
  9148. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Suppress content-range error when 'Content-Range' response header
  9150. doesn't contains bytes-unit specifier 'bytes'
  9151. * src/HttpHeader.cc (getRange)
  9152. * test/HttpHeaderTest.cc
  9153. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Fixed compilation error with g++-4.3
  9155. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Added missing include files for MinGW
  9157. * test/HttpHeaderProcessorTest.cc
  9158. * test/DHTRoutingTableSerializerTest.cc
  9159. * test/DHTRoutingTableDeserializerTest.cc
  9160. * test/UriListParserTest.cc
  9161. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Now download line is printed nicely with no garbage at the end of
  9163. line. I use ioctl to get the columns of terminal.
  9164. If stdout is redirected to another device, instead of carriage return,
  9165. end of line '\n' character is used. This is feature request#1909659
  9166. * src/ConsoleStatCalc.cc (calculateStat)
  9167. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Included a2time.h
  9169. * src/DHTMessageDispatcher.h
  9170. * src/DHTMessageEntry.h
  9171. * src/DHTReplaceNodeTask.h
  9172. * src/DHTMessageTracker.h
  9173. * src/Util.h
  9174. * src/CookieBox.h
  9175. * src/SocketCore.h
  9176. * src/DefaultBtMessageDispatcher.h
  9177. * src/SocketCore.cc
  9178. * src/Util.cc
  9179. * src/DHTPingTask.h
  9180. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Fixed high memory footprint when DHT is enabled.
  9182. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9183. queued than it is processed and the queue is getting longer. As a
  9184. consequence, momory usage is increased.
  9185. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9186. replacement cache in DHTBucket which is described in Kademlia paper.
  9187. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9188. DHTReplaceNodeTask.
  9189. * src/DHTBucket.{h, cc}
  9190. (cacheNode): New function.
  9191. (getCachedNodes): New function.
  9192. (dropNode): Push back cached node to _nodes.
  9193. * test/DHTBucketTest.cc
  9194. (testCacheNode): New test
  9195. (testDropNode): New test
  9196. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9198. the unused 4KB memory when ssl is not used.
  9199. * src/SocketCore.cc
  9200. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Added summary log for peer announce storage.
  9202. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9203. Removed cast
  9204. * src/DefaultPeerStorage.cc (addPeer)
  9205. Log exception message
  9206. * src/DHTMessageTracker.cc (handleTimeout)
  9207. Fixed casting
  9208. * test/HttpRequestTest.cc
  9209. * test/MetalinkProcessorTest.cc
  9210. * test/PieceTest.cc
  9211. * test/MetalinkEntryTest.cc
  9212. * test/SequenceTest.cc
  9213. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. * src/ParameterizedStringParser.cc (createLoop):
  9215. Removed unused variable sstep.
  9216. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9217. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. * src/Util.{h, cc}
  9219. (parseUInt): New function.
  9220. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9221. The actual range is uint32_t.
  9222. * test/UtilTest.cc
  9223. * src/ParameterizedStringParser.cc:
  9224. Use Util::parseUInt() for loop variables.
  9225. * test/ParameterizedStringParserTest.cc
  9226. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9227. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Rewritten the functions for binding port.
  9229. * src/DHTConnectionImpl.{h, cc}
  9230. * src/PeerListenCommand.{h, cc}
  9231. * src/DHTSetup.cc
  9232. * src/BtSetup.cc
  9233. * test/DHTConnectionImplTest.cc
  9234. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. type cleanup for allmost all remaining files.
  9236. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Type clarification
  9238. * src/PeerSessionResource.{h, cc}
  9239. * src/DefaultPieceStorage.{h, cc}
  9240. * src/Peer.{h, cc}
  9241. * test/PeerSessionResourceTest.cc
  9242. Use div function
  9243. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9244. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Type clarification
  9246. * src/DefaultPeerStorage.{h, cc}
  9247. * test/DefaultPeerStorageTest.cc
  9248. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Type clarification: size_t for length or size, uint64_t for file
  9250. length, off_t for file offset.
  9251. * src/DefaultBtProgressInfoFile.cc
  9252. * src/DefaultBtContext.{h, cc}
  9253. * src/DefaultBtInteractive.cc
  9254. * src/DownloadCommand.{h, cc}
  9255. * src/IteratableChunkChecksumValidator.{h, cc}
  9256. * src/SegmentMan.{h, cc}
  9257. * src/SingleFileDownloadContext.{h, cc}
  9258. * src/IteratableChecksumValidator.{h, cc}
  9259. * src/BtContext.h
  9260. * src/IteratableValidator.h
  9261. * src/DownloadContext.h
  9262. * test/SingleFileDownloadContextTest.cc
  9263. * test/DefaultBtContextTest.cc
  9264. * test/MockBtContext.h
  9265. * test/Metalink2RequestGroupTest.cc
  9266. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Type clarification: size_t for length or size, uint64_t for file
  9268. length, off_t for file offset.
  9269. * src/PiecedSegment.cc
  9270. * src/GrowSegment.h
  9271. * src/DefaultBtRequestFactory.h
  9272. * src/DefaultBtProgressInfoFile.cc
  9273. * src/UnknownLengthPieceStorage.h
  9274. * src/DefaultPieceStorage.cc
  9275. * src/UnknownLengthPieceStorage.cc
  9276. * src/DefaultBtInteractive.cc
  9277. * src/GrowSegment.cc
  9278. * src/BitfieldMan.h
  9279. * src/DownloadCommand.cc
  9280. * src/BtRequestFactory.h
  9281. * src/PiecedSegment.h
  9282. * src/DefaultPieceStorage.h
  9283. * src/Piece.cc
  9284. * src/DefaultBtRequestFactory.cc
  9285. * src/PieceStorage.h
  9286. * src/Segment.h
  9287. * src/Piece.h
  9288. * src/BitfieldMan.cc
  9289. * src/Util.cc
  9290. * test/DefaultBtProgressInfoFileTest.cc
  9291. * test/DefaultPieceStorageTest.cc
  9292. * test/MockPieceStorage.h
  9293. * test/BtRequestMessageTest.cc
  9294. * test/DefaultBtMessageDispatcherTest.cc
  9295. * test/BitfieldManTest.cc
  9296. * test/GrowSegmentTest.cc
  9297. * test/PieceTest.cc
  9298. * test/SegmentTest.cc
  9299. * test/SegmentManTest.cc
  9300. * test/DefaultBtRequestFactoryTest.cc
  9301. * test/MockBtRequestFactory.h
  9302. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Fixed compilation error with --disable-nls
  9304. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9305. in gettext.h causes the problem.
  9306. * src/common.h
  9307. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Removed subPiece related functions.
  9309. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9310. * src/DefaultPieceStorage.{h, cc}
  9311. * test/PieceTest.cc
  9312. * test/DefaultPieceStorageTest.cc
  9313. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Use unsigned char for data store.
  9315. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Bump up version number to 0.13.0+1
  9317. * configure.ac
  9318. * Release 0.13.0+1
  9319. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Changed inactive connection timeout to 120.
  9321. To accept more mulually interested peers, disconnect peer when there
  9322. is no interest between us after certain time passed.
  9323. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9324. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9326. when compiled with async DNS support.
  9327. * src/DownloadEngine.cc
  9328. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9329. value '10' will be a little bit short when some DNS servers are
  9330. offline and several DNS servers are tried. It should be configured
  9331. by command-line option.
  9332. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Merged Ross's mingw patch.
  9334. * src/DHTRoutingTableDeserializer.cc
  9335. * src/DHTRoutingTableSerializer.cc
  9336. * src/Platform.{h, cc}
  9337. * src/timegm.h
  9338. * src/gettimeofday.h
  9339. * src/getaddrinfo.h
  9340. * src/SocketCore.h
  9341. * src/common.h
  9342. * src/inet_aton.h
  9343. * src/DownloadEngine.h
  9344. * src/gai_strerror.h
  9345. * src/a2netcompat.h
  9346. * configure.ac
  9347. * configure
  9348. * aclocal.m4
  9349. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Included missing iostream.
  9351. * test/AllTest.cc
  9352. * test/BtDependencyTest.cc
  9353. * test/BtExtendedMessageTest.cc
  9354. * test/DHTConnectionImplTest.cc
  9355. * test/DHTMessageFactoryImplTest.cc
  9356. * test/DHTMessageTrackerEntryTest.cc
  9357. * test/DHTNodeTest.cc
  9358. * test/DHTRoutingTableSerializerTest.cc
  9359. * test/DefaultBtAnnounceTest.cc
  9360. * test/DefaultBtContextTest.cc
  9361. * test/DefaultBtMessageFactoryTest.cc
  9362. * test/DefaultExtensionMessageFactoryTest.cc
  9363. * test/HandshakeExtensionMessageTest.cc
  9364. * test/HttpResponseTest.cc
  9365. * test/MetalinkProcessorTest.cc
  9366. * test/MultiFileAllocationIteratorTest.cc
  9367. * test/SocketCoreTest.cc
  9368. * test/UTPexExtensionMessageTest.cc
  9369. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Reorganized includes.
  9371. * src/NameResolver.cc
  9372. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Fixed compilation error without ares/c-ares
  9374. * src/NameResolver.h:
  9375. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Added a test for large file.
  9377. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9378. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Fixed the bug that file size is ignored if size > INT32_MAX
  9380. * src/SizeMetalinkParserState.cc (endElement):
  9381. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Bump up version number to 0.13.0
  9383. * configure.ac
  9384. * Release 0.13.0
  9385. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Updated Makfefile.am to make 'make dist' work.
  9387. Now packaged filename is aria2c-VERSION.tar.bz2.
  9388. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9389. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9390. Large file support is now configured by configure script.
  9391. * configure.ac
  9392. Removed unsused source files
  9393. * src/
  9394. * test/
  9395. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9396. Peer.h and BtContext.h respectively.
  9397. * src/Peer.h
  9398. * src/BtContext.h
  9399. Updated translations.
  9400. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9401. translations. Great thanks to all translators!;)
  9402. * po/*.{po, gmo}
  9403. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9404. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9405. statically declared sha1 MessageDigestContext.
  9406. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9407. initialization of short-lived MessageDigestContext.
  9408. * src/MessageDigestHelper.{h, cc}
  9409. * src/main.cc
  9410. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9411. the initialization of MessageDigestContext every time in validating
  9412. chunk checksum.
  9413. * src/DownloadCommand.{h, cc}
  9414. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Add a file descriptor which connected to fast peer(latency<1500) to
  9416. select(). This change reduced CPU load.
  9417. * src/PeerInteractionCommand.cc
  9418. * src/DefaultBtInteractive.{h, cc}
  9419. * src/BtInteractive.h
  9420. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Fixed the previous insufficient fix for possible busy loop.
  9422. * src/MSEHandshake.cc (identifyHandshakeType)
  9423. Removed unused functions.
  9424. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9425. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Fixed possible busy loop if first 20 bytes are not received for a few
  9427. minutes.
  9428. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9429. * src/ReceiverMSEHandshakeCommand.cc
  9430. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Fixed compilation error
  9432. * src/ExpatMetalinkProcessor.cc
  9433. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9435. * src/DHTBucket.cc
  9436. Removed unnecessary cast.
  9437. * src/HandshakeExtensionMessage.cc
  9438. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9440. is missing.
  9441. * src/OptionHandlerFactory.cc
  9442. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Fixed the bug that HAVE message is not sent for a piece they are
  9444. downloaded fom http/ftp server before any BitTorrent handshake is done
  9445. with peers.
  9446. * src/DefaultBtInteractive.cc
  9447. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9449. * src/Makefile.am
  9450. * src/Makefile.in
  9451. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Updated README. Added html version of README and man page.
  9453. * README
  9454. * README.html
  9455. * readme2html: Shell script to generate README.html from README using
  9456. asciidoc.
  9457. * doc/aria2c.1.html
  9458. * doc/makeman: Added the line to generate aria2c.1.html
  9459. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Fixed offset calculation.
  9461. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9462. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Rewritten itos and uitos using template. llitos and ullitos are
  9464. replaced with itos and uitos respectively.
  9465. * src/Util.{h, cc}
  9466. * test/UtilTest.cc
  9467. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9469. of the number of bytes required for storing public key and shared
  9470. secret.
  9471. * src/LibgcryptDHKeyExchange.h
  9472. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9473. * src/MSEHandshake.cc
  9474. * test/DHKeyExchangeTest.cc
  9475. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Removed since they are not used.
  9477. * src/Xml2MetalinkProcessor.{h, cc}
  9478. * src/Socket.cc
  9479. * src/SegmentSplitter.{h, cc}
  9480. * test/Xml2MetalinkProcessorTest.cc
  9481. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. Fixed the bug that prevents aria2 from stopping other than by pressing
  9483. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9484. option. aria2 doesn't stop even after --seed-time is satisfied and
  9485. continues to output blank lines in the console.
  9486. * src/ReceiverMSEHandshakeCommand.cc
  9487. * src/PeerReceiveHandshakeCommand.cc
  9488. * src/PeerListenCommand.cc
  9489. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Bump up version number to 0.13.0rc
  9491. * configure.ac
  9492. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Updated man page and some usage text.
  9494. * doc/aria2c.1.txt
  9495. * src/usage_text.h
  9496. * po/*.{po, gmo}
  9497. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Updated translations. Added Finnish and Hebrew translations.
  9499. Great thanks to all translators!
  9500. * po/*.{po, gmo}
  9501. * po/LINGUAS
  9502. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Log more detailed information about each message.
  9504. * src/DHTQueryMessage.{h, cc}
  9505. * src/DHTGetPeersMessage.{h, cc}
  9506. * src/DHTFindNodeReplyMessage.{h, cc}
  9507. * src/DHTGetPeersReplyMessage.{h, cc}
  9508. * src/DHTAnnouncePeerMessage.{h, cc}
  9509. * src/DHTResponseMessage.{h, cc}
  9510. * src/DHTFindNodeMessage.{h, cc}
  9511. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Use constants defined in prefs.h
  9513. * src/option_processing.cc
  9514. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9516. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Make room for future enchancements for IPv6 addresses.
  9518. Bump up version number of dht.dat file format to 2.
  9519. Not compatible with previous version.
  9520. * src/DHTRoutingTableSerializer.cc
  9521. * src/DHTRoutingTableDeserializer.cc
  9522. * test/DHTRoutingTableSerializerTest.cc
  9523. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Added handling for the return values from
  9525. PeerMessageUtil::createcompact().
  9526. * src/DefaultBtContext.cc (computeFastSet):
  9527. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Fixed abort when peer's ip address is IPv4-mapped address.
  9529. * src/DefaultBtContext.cc (computeFastSet)
  9530. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9531. cannot handle IPv4-mapped addresses.
  9532. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9533. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9534. Proper return value handling for OpenSSL functions.
  9535. * src/LibsslDHKeyExchange.h
  9536. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Random bytes generation using libgcrypt and OpenSSL.
  9538. * src/DHTUtil.{h, cc}
  9539. * test/DHTUtilTest.cc
  9540. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9542. received.
  9543. * src/DHTMessageReceiver.cc (receiveMessage)
  9544. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Fixed the bug that a return code is always 0. BUG#1897704
  9546. If error occurred during the download or there exist unfinished
  9547. downloads, aria2 returns with code 1.
  9548. * src/RequestGroupMan.{h, cc}
  9549. * src/MultiUrlRequestInfo.{h, cc}
  9550. * src/main.cc
  9551. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. IPv6 support for SocketCore class.
  9553. TODO: In SocketCore::establishConnection(), this is insufficient to
  9554. determin the failure of connect() here because the socket is
  9555. non-blocking state. The next addresses should be tried after select().
  9556. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9557. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9558. instead which address family independent.
  9559. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9560. information in a compact peer format which is for IPv4 only.
  9561. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9562. this is a spec of BitTorrent protocol.
  9563. * src/SocketCore.{h, cc}
  9564. * src/PeerMessageUtil.cc
  9565. * test/SocketCoreTest.cc
  9566. * test/PeerMessageUtilTest.cc
  9567. * test/DHTConnectionImplTest.cc
  9568. Handle IPv4-mapped addresses.
  9569. * src/DHTNode.cc: Now identity is determined by node id.
  9570. * src/DHTMessageTrackerEntry.cc
  9571. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9572. should handle it.
  9573. * src/DHTRoutingTableDeserializer.cc
  9574. * src/DHTMessageFactoryImpl.cc
  9575. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Change the unit of --stop option from a minute to a second.
  9577. * src/usage_text.h
  9578. * src/DownloadEngineFactory.cc
  9579. * src/OptionHandlerFactory.cc
  9580. * src/message.h
  9581. * src/TimedHaltCommand.cc
  9582. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Make listening socket non-block mode.
  9584. * src/FtpConnection.cc
  9585. * src/FtpNegotiationCommand.{h, cc}
  9586. * src/PeerListenCommand.cc
  9587. Fixed the bug that cause slow ftp negotiation.
  9588. * src/FtpNegotiationCommand.{h, cc}
  9589. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Added basic tag to --enable-dht, --dht-listen-port option.
  9591. * src/HelpItemFactory.cc (createHelpItems)
  9592. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Updated text.
  9594. * src/usage_text.h
  9595. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9597. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Determin _threadtholdSpeed in each constructor for
  9599. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9600. * src/ActivePeerConnectionCommand.{h, cc}
  9601. * src/PeerReceiveHandshakeCommand.{h, cc}
  9602. * src/BtSetup.cc
  9603. * src/BtConstants.h
  9604. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Added --bt-min-crypto-level and --bt-require-crypto options.
  9606. * src/OptionHandlerFactory.cc
  9607. * src/MSEHandshake.cc
  9608. * src/HelpItemFactory.cc
  9609. * src/option_processing.cc
  9610. * src/ReceiverMSEHandshakeCommand.cc
  9611. * src/prefs.h
  9612. * src/DefaultBtAnnounce.cc
  9613. * src/InitiatorMSEHandshakeCommand.cc
  9614. * src/usage_text.h
  9615. * test/MSEHandshakeTest.cc
  9616. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Bump version number to 0.13.0b
  9618. * configure.ac
  9619. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Updated doc.
  9621. * src/MessageDigestHelper.h:
  9622. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Use raw message digest as a token instead of its hexadecimal
  9624. representation.
  9625. * src/DHTTokenTracker.cc (generateToken)
  9626. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Added Message Stream Encryption(MSE) support.
  9628. Currently, aria2 accepts incoming connections with Obfuscation Header
  9629. and legacy BitTorrent Header and establishes connections with
  9630. Obfuscation Header first and if failed then retry with legacy
  9631. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9632. choose ARC4. The new option to change the default behavior is planned.
  9633. For tracker extension, "supportcrypto=1" is added statically.
  9634. * src/PeerInitiateConnectionCommand.{h, cc}
  9635. * src/PeerConnection.{h, cc}
  9636. * src/HandleRegistry.h
  9637. * src/SocketCore.h
  9638. * src/PeerReceiveHandshakeCommand.{h, cc}
  9639. * src/BtRegistry.{h, cc}
  9640. * src/PeerListenCommand.cc
  9641. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9642. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9643. * src/MSEHandshake.{h, cc}
  9644. * src/ARC4Encryptor.h
  9645. * src/ARC4Decryptor.h
  9646. * src/LibgcryptARC4Encryptor.h
  9647. * src/LibgcryptARC4Decryptor.h
  9648. * src/LibgcryptARC4Context.h
  9649. * src/LibsslARC4Encryptor.h
  9650. * src/LibsslARC4Decryptor.h
  9651. * src/LibsslARC4Context.h
  9652. * src/DHKeyExchange.h
  9653. * src/LibgcryptDHKeyExchange.h
  9654. * src/LibsslDHKeyExchange.h
  9655. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9656. * test/DefaultBtAnnounceTest.cc
  9657. * test/ARC4Test.cc
  9658. * test/DHKeyExchangeTest.cc
  9659. Removed prepareForRetry() because it is not used.
  9660. * src/PeerAbstractCommand.{h, cc}
  9661. * src/PeerInteractionCommand.{h, cc}
  9662. * src/PeerInitiateConnectionCommand.{h, cc}
  9663. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Added the ability to load nodes from torrent file. These nodes are
  9665. added to the routing table when downloading that torrent.
  9666. * src/BtContext.h
  9667. * src/DefaultBtContext.{h, cc}
  9668. * src/DHTSetup.cc
  9669. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9670. hostname and port pair, and resolves all of them.
  9671. * src/NameResolver.{h, cc}: Added reset().
  9672. * src/RequestGroup.cc
  9673. * test/DefaultBtContextTest.cc
  9674. * test/MockBtContext.h
  9675. Removed assert() from DefaultBtContext and throw exception instead.
  9676. * src/DefaultBtContext.cc
  9677. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Fixed segmentation fault bug when exiting if dht is disabled.
  9679. * src/RequestGroup.cc
  9680. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Fixed typo in log message and define the message in message.h
  9682. * src/TimedHaltCommand.cc
  9683. * src/message.h
  9684. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Included RecoverableException.h to fix compilation error.
  9686. * test/DHTMessageFactoryImplTest.cc
  9687. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9689. * test/DHTPingMessageTest.cc
  9690. * test/DHTGetPeersMessageTest.cc
  9691. * test/DHTFindNodeMessageTest.cc
  9692. * test/DHTAnnouncePeerMessageTest.cc
  9693. * test/MockDHTMessage.h
  9694. * test/MockDHTMessageFactory.h
  9695. * test/MockDHTMessageDispatcher.h: New class.
  9696. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9698. virtual.
  9699. * src/DHTMessageDispatcher.h
  9700. * src/DHTMessageDispatcherImpl.{h, cc}
  9701. * src/DHTSetup.cc
  9702. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Adding handling of DHT error message. Just log error message and
  9704. throw exception.
  9705. * src/DHTMessageFactoryImpl.cc
  9706. * test/DHTMessageFactoryImplTest.cc
  9707. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Added handling of dynamic cast failure.
  9709. * src/DHTNodeLookupTask.cc
  9710. * src/DHTPeerLookupTask.cc
  9711. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Added the ability to stop aria2 itself when given time has passed
  9713. from start. Use --stop option to specify time in minutes.
  9714. When 0 is given, this feature is disabled.
  9715. * src/OptionHandlerFactory.cc
  9716. * src/TimeBasedCommand.h: Make _interval protected scope.
  9717. * src/HelpItemFactory.cc
  9718. * src/option_processing.cc
  9719. * src/prefs.h
  9720. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9721. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9722. Without this modification, the result list shows "ERR" when aria2 is
  9723. stopped by --stop option. It should be "INPR".
  9724. * src/DownloadEngine.{h, cc}
  9725. * src/DownloadEngineFactory.cc
  9726. * src/usage_text.h
  9727. * src/TimedHaltCommand.{h, cc}: New class.
  9728. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. Bootstrap through node added by port message.
  9730. Currently bootstrap is executed if the number of buckets in routing
  9731. table is 1.
  9732. * src/BtPortMessage.{h, cc}
  9733. * src/DefaultBtMessageFactory.{h, cc}
  9734. * src/PeerInteractionCommand.cc
  9735. * test/BtPortMessageTest.cc
  9736. * test/MockDHTTask.h
  9737. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Extract the Peer class's member variables, which are only needed after
  9739. PeerInteractionCommand, into PeerSessionResource class.
  9740. This class is instantiated in PeerInteractionCommand class's ctor and
  9741. released in its dtor.
  9742. This will make Peer class lightweight and uses less memory for peers
  9743. which are not connected and wait in the queue.
  9744. * src/PeerChokeCommand.cc
  9745. * src/PeerSessionResource.{h, cc}
  9746. * src/PeerInteractionCommand.cc
  9747. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9748. * src/DefaultBtInteractive.cc
  9749. * src/BtPieceMessage.cc
  9750. * src/BtInterestedMessage.cc
  9751. * src/BtUnchokeMessage.cc
  9752. * src/DefaultPeerStorage.{h, cc}
  9753. * src/PeerInitiateConnectionCommand.cc
  9754. * src/ActivePeerConnectionCommand.cc
  9755. * src/BtNotInterestedMessage.cc
  9756. * src/DefaultBtMessageDispatcher.cc
  9757. * src/BtChokeMessage.cc
  9758. * src/BtRequestMessage.cc
  9759. * src/Peer.{h, cc}
  9760. * src/BtRegistry.h
  9761. * src/TrackerWatcherCommand.cc
  9762. * src/PeerReceiveHandshakeCommand.cc
  9763. * test/BtExtendedMessageTest.cc
  9764. * test/BtAllowedFastMessageTest.cc
  9765. * test/BtCancelMessageTest.cc
  9766. * test/DefaultPieceStorageTest.cc
  9767. * test/BtBitfieldMessageTest.cc
  9768. * test/BtHaveMessageTest.cc
  9769. * test/BtNotInterestedMessageTest.cc
  9770. * test/BtRequestMessageTest.cc
  9771. * test/PeerSessionResourceTest.cc
  9772. * test/DefaultBtMessageDispatcherTest.cc
  9773. * test/PeerTest.cc
  9774. * test/BtInterestedMessageTest.cc
  9775. * test/BtRejectMessageTest.cc
  9776. * test/BtChokeMessageTest.cc
  9777. * test/DefaultPeerStorageTest.cc
  9778. * test/BtHaveNoneMessageTest.cc
  9779. * test/BtHaveAllMessageTest.cc
  9780. * test/DefaultExtensionMessageFactoryTest.cc
  9781. * test/BtUnchokeMessageTest.cc
  9782. * test/DefaultBtMessageFactoryTest.cc
  9783. * test/HandshakeExtensionMessageTest.cc
  9784. * test/UTPexExtensionMessageTest.cc
  9785. * test/DefaultBtRequestFactoryTest.cc
  9786. * test/BtPieceMessageTest.cc
  9787. Removed typedef PeerStats.
  9788. * src/PeerStat.h
  9789. * src/SegmentMan.cc
  9790. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Added std namespace to copy, remove_copy, back_inserter,
  9792. front_inserter.
  9793. * src/RequestGroupMan.cc
  9794. * src/DefaultPieceStorage.cc
  9795. * src/StreamFileAllocationEntry.cc
  9796. * src/BtFileAllocationEntry.cc
  9797. * src/RequestGroup.cc
  9798. * src/MetalinkEntry.cc
  9799. * src/DelegatingPeerListProcessor.cc
  9800. * src/DefaultBtRequestFactory.cc
  9801. * src/DefaultBtMessageDispatcher.cc
  9802. * src/version_usage.cc: Included <algorithm>
  9803. * src/main.cc
  9804. * src/MetalinkParserController.cc
  9805. * src/DefaultBtContext.cc
  9806. * src/DownloadEngineFactory.cc
  9807. * src/a2algo.h
  9808. Removed.
  9809. * test/StreamUriListParserTest.cc
  9810. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9812. ActivePeerConnectionCommand when it is given and
  9813. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9814. * src/ActivePeerConnectionCommand.{h, cc}
  9815. * src/BtSetup.cc
  9816. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Only add socket to DownloadEngine's select routine when peer or
  9818. localhost is unchoked and interested. This lowers CPU usage a
  9819. little bit.
  9820. * src/PeerInteractionCommand.cc
  9821. * src/PeerAbstractCommand.{h, cc}
  9822. * src/BtInteractive.h
  9823. * src/DefaultBtInteractive.{h, cc}
  9824. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Revert previous change because get_peers message is needed for
  9826. announce_peer anyway.
  9827. * src/DHTGetPeersCommand.cc
  9828. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Request peers thought DHT only when download hasn't finished.
  9830. * src/DHTGetPeersCommand.cc
  9831. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9833. * src/DHTBucketRefreshTask.{h, cc}
  9834. * src/DHTSetup.cc
  9835. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9837. standard classes.
  9838. Included string.h where mem* function are used.
  9839. Added namespace aria2.
  9840. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. Create directory before saving DHT routing table.
  9842. Now ios::failure is now handled properly.
  9843. * src/DHTAutoSaveCommand.cc
  9844. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Removed unnecessary cerr.
  9846. * src/DownloadEngine.cc
  9847. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Catch exception inside DHTMessageReceiver::receiveMessage().
  9849. Log unknown message.
  9850. * src/DHTMessageReceiver.{h, cc}
  9851. * src/DHTMessageFactory.h
  9852. * src/DHTMessageFactoryImpl.{h, cc}
  9853. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9854. * src/DHTInteractionCommand.cc
  9855. * src/DHTUnknownMessage.{h, cc}
  9856. * test/DHTUnknownMessageTest.cc
  9857. * test/MockDHTMessageFactory.h
  9858. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Commented out ip address comparison because a host can have multiple
  9860. ip addresses and it is hard to predict the hostname is resolved into
  9861. which one.
  9862. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9863. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. * po/Makefile.in: Removed since this is generated by configure.
  9865. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Fixed compiler warning about redefinition of SIZE_MAX.
  9867. Use common.h instead of config.h directly here.
  9868. * src/Platform.{h, cc}
  9869. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9870. here.
  9871. * common.h
  9872. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9873. Updated gettext related files.
  9874. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9875. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9876. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Added DHT functionality, compatible with mainline.
  9878. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9879. You may need to specify entry point to DHT network using
  9880. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9881. Use --dht-listen-port to specify port number. Make sure that your
  9882. firewall configuration can pass through UDP traffic to the port.
  9883. The routing table is saved in $HOME/.aria2/dht.dat.
  9884. * src/DHT*
  9885. * src/BNode.{h, cc}
  9886. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9887. particular torrent.
  9888. * src/Data.cc: Rewritten ctor.
  9889. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9890. --dht-entry-point.
  9891. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9892. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9893. ends, remove BtContext from DHTPeerAnnounceStorage.
  9894. * src/BtPortMessage.{h, cc}: Rewritten.
  9895. * src/message.h
  9896. * src/OptionHandlerImpl.cc
  9897. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9898. --dht-entry-point.
  9899. * src/Dictionary.{h, cc} (remove): New function.
  9900. * src/prefs.h
  9901. * src/DefaultBtMessageFactory.h
  9902. * src/BtHandshakeMessage.cc
  9903. * src/ActivePeerConnectionCommand.cc
  9904. * src/SocketCore.{h, cc}: Added datagram socket support.
  9905. * src/DefaultBtMessageFactory.cc
  9906. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9907. Create DHT commands.
  9908. * src/BtMessageFactory.h
  9909. * src/PeerMessageUtil.{h, cc}
  9910. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Fixed the bug that log file is not written when configuration file doesn't exist.
  9912. This is caused by using Logger class before LogFactory is not configured.
  9913. BUG #1875079
  9914. * src/option_processing.cc
  9915. Warning message "configuration doesn't exist" is only printed when --conf is
  9916. given.
  9917. * src/option_processing.cc
  9918. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9920. ShaVisitor is now deprecated and slated to be removed.
  9921. * src/DefaultBtContext.cc
  9922. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Externalize message to message.h
  9924. * src/Platform.cc
  9925. * src/message.h
  9926. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Set default domain and default path to cookie.
  9928. * src/HttpResponse.cc
  9929. * src/CookieBox.{h, cc}
  9930. * src/CookieParser.{h, cc}
  9931. * test/CookieParserTest.cc
  9932. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Added --no-conf and --conf-path command-line option.
  9934. --no-conf option disables loading aria2.conf file.
  9935. --conf-path option changes the configuration file path. The default
  9936. file path is $HOME/.aria2/aria2.conf
  9937. Added a warning message when the configuration file is not found.
  9938. * src/HelpItemFactory.cc
  9939. * src/option_processing.cc
  9940. * src/prefs.h
  9941. * src/usage_text.h
  9942. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Added the message to inform users that other help categories are
  9944. available in -h option.
  9945. * src/version_usage.cc
  9946. * src/TagContainer.{h, cc}
  9947. * test/TagContainerTest.cc
  9948. * src/TaggedItem.{h, cc}
  9949. * test/TaggedItemTest.cc
  9950. * src/HelpItem.h
  9951. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9953. from PiecedSegment's ctor.
  9954. Previously Piece::getAllMissingBlockIndexes() is called from
  9955. PiecedSegment() but it is rather expensive since only first element is
  9956. used.
  9957. * src/PiecedSegment.cc
  9958. * src/Piece.{h, cc}
  9959. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9961. each time these functions are called.
  9962. * src/BitfieldMan.{h, cc}
  9963. * test/BitfieldManTest.cc
  9964. * src/array_fun.h
  9965. * test/array_funTest.cc
  9966. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9967. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9968. filtered. Removed unnecessary cast to int32_t.
  9969. * src/BitfieldMan.{h, cc}
  9970. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9972. payload length(4bytes) are received. This happens because lenbufLength
  9973. is not updated in this particular case and successive call of
  9974. receiveMessage() overwrites payload length with bytes recieved which
  9975. are payload body.
  9976. * src/PeerConnection.{h, cc}
  9977. * src/message.h
  9978. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9980. peer if there are peers that have same ipaddr and port.
  9981. I've experiened segmentation fault and "pure virtual function was
  9982. called" error.
  9983. * src/Peer.h
  9984. * test/PeerTest.cc
  9985. * src/DefaultPeerStorage.cc
  9986. * test/DefaultPeerStorageTest.cc
  9987. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Removed a call to isPowerOf() because it is no longer necessary here
  9989. and a request block is not always power of 2.
  9990. BUG#1866924
  9991. * src/PeerMessageUtil.cc (checkLength)
  9992. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Fixed the bug that always first found Segment is removed from
  9994. usedSegmentEntries. Removed unused functions.
  9995. * src/SegmentMan.{h, cc}
  9996. * test/SegmentManTest.cc
  9997. Fixed the bug that ServerHost is not removed.
  9998. * src/RequestGroup.cc
  9999. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. Fixed the bug that SegmentMan::completeSegment() is not called
  10001. even if Segment is complete when --lowest-speed-limit is enabled.
  10002. BUG#1864525
  10003. * src/DownloadCommand.{h, cc}
  10004. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Fixed: hash algorithm 'sha1' is always used.
  10006. * src/DownloadCommand.cc (validatePieceHash)
  10007. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Added --enable-peer-exchange command-line option.
  10009. * src/OptionHandlerFactory.cc
  10010. * src/HelpItemFactory.cc
  10011. * src/option_processing.cc
  10012. * src/usage_text.h
  10013. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Move extension from BtRuntime to ExtensionMessageFactory, because
  10015. extension can be specified per peer, not per torrent.
  10016. * src/DefaultBtInteractive.cc
  10017. * src/BtRuntime.h
  10018. * src/ExtendedMessagingAware.h
  10019. * src/ExtensionMessageFactory.h
  10020. * src/DefaultExtensionMessageFactory.cc
  10021. * test/DefaultExtensionMessageFactoryTest.cc
  10022. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Added categorized option help. Specify category using --help option.
  10024. Also added the ability to search options in forward match.
  10025. * src/HelpItem.{h, cc}
  10026. * test/HelpItemTest.cc
  10027. * src/HelpItemFactory.{h, cc}
  10028. * src/TagContainer.{h, cc}
  10029. * test/TagContainerTest.cc
  10030. * src/option_processing.cc
  10031. * src/prefs.h
  10032. * src/TaggedItem.{h, cc}
  10033. * test/TaggedItemTest.cc
  10034. * src/version_usage.cc
  10035. * src/help_tags.h
  10036. * src/usage_text.h
  10037. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Fixed segmentation fault when bad torrent metainfo is parsed.
  10039. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10040. and then throw exception or skip it.
  10041. * src/DefaultBtContext.{h, cc}
  10042. * test/DefaultBtContextTest.cc
  10043. * src/AnnounceList.cc
  10044. * src/CompactPeerListProcessor.cc
  10045. * src/message.h
  10046. * src/DefaultBtAnnounce.{h, cc}
  10047. * test/DefaultBtAnnounceTest.cc
  10048. * src/BencodeVisitor.cc
  10049. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Added missing "B"(=Byte). So now the message looks like this:
  10051. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10052. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10053. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. Show the seed ratio after torrent downloads.
  10055. For example, after torrent download completed and --seed-time and
  10056. --seed-ratio conditions are fulfilled, following message is printed
  10057. right after "Download complete: .....":
  10058. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10059. * src/RequestGroupMan.cc
  10060. * src/RequestGroup.{h, cc}
  10061. * src/message.h
  10062. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Remove a defunct control file. A defunct control file means that while
  10064. it exists, but the corresponding download file is missing.
  10065. After its removal, a download restarts from the beginning.
  10066. * src/RequestGroup.cc
  10067. * src/message.h
  10068. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Allocate bitfield in Peer when it is really used. More specifically,
  10070. bitfield in Peer is allocated after the connection is established and
  10071. deallocated when the connection is dropped.
  10072. Since 2 parameters(piece length and total length) was removed from the
  10073. constructor of Peer class, many test classes were modified accordingly.
  10074. See svn log for more detailed information.
  10075. * src/PeerInteractionCommand.cc
  10076. * src/CompactPeerListProcessor.cc
  10077. * src/Peer.cc
  10078. * src/DefaultPeerListProcessor.cc
  10079. * src/PeerListenCommand.cc
  10080. * src/PeerReceiveHandshakeCommand.cc
  10081. Fixed memory leak
  10082. * src/Piece.cc
  10083. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10085. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10086. command-line options.
  10087. * src/option_processing.cc
  10088. * src/ActivePeerConnectionCommand.cc
  10089. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. Send have message to peer if it already has the piece.
  10091. * src/BtHaveMessage.{h, cc}
  10092. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10094. port.
  10095. * src/DefaultPeerStorage.{h, cc}
  10096. * test/DefaultPeerStorageTest.cc
  10097. * src/HandshakeExtensionMessage.cc
  10098. * test/HandshakeExtensionMessageTest.cc
  10099. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10100. * src/PeerStorage.h
  10101. * test/MockPeerStorage.h
  10102. * src/PeerListenCommand.cc
  10103. * src/PeerReceiveHandshakeCommand.cc
  10104. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Added --metalink-enable-unique-protocol option.
  10106. * src/Metalink2RequestGroup.cc
  10107. * src/option_processing.cc
  10108. * src/prefs.h
  10109. * src/version_usage.cc
  10110. * doc/aria2c.1.txt
  10111. * doc/aria2c.1
  10112. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Allow a peer in incomingPeer to be added peers.
  10114. * src/DefaultPeerStorage.cc
  10115. * test/DefaultPeerStorageTest.cc
  10116. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10117. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10118. I could reproduce this bug in following procedure:
  10119. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10120. 2. Restart aria2.
  10121. 3. You see the download stopped around 99%.
  10122. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10123. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10124. If timeout is reached, then _nextCommand is unused and it may contains
  10125. segments and they won't be canceled. Actually, timeout is not needed
  10126. here because if the server dropped connection, then retry is made.
  10127. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Added uTorrent compatible Peer Exchange.
  10129. * src/BencodeVisitor.{h, cc}
  10130. * test/BencodeVisitorTest.cc
  10131. * src/BtConstants.h
  10132. * src/BtContext.h: Added 'private' flag.
  10133. * src/BtExtendedMessage.{h, cc}
  10134. * test/BtExtendedMessageTest.cc
  10135. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10136. reserved field.
  10137. * test/BtHandshakeMessageTest.cc
  10138. * src/BtMessageFactory.h
  10139. * src/BtRegistry.h
  10140. * src/BtRuntime.h: This class holds default extension message IDs for
  10141. aria2. By default, aria2 uses ID 8 for ut_pex.
  10142. * src/DefaultBtContext.cc
  10143. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10144. When it is true, aria2 enables ut_pex. This value is set by
  10145. PeerInteractionCommand.
  10146. * src/DefaultBtMessageFactory.{h, cc}
  10147. * test/DefaultBtMessageFactoryTest.cc
  10148. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10149. handling to DefaultBtInteractive class.
  10150. * src/DefaultExtensionMessageFactory.{h, cc}
  10151. * test/DefaultExtensionMessageFactoryTest.cc
  10152. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10153. the container(peers and incomingPeers. The equality is determined by
  10154. Peer::id).
  10155. * test/DefaultPeerStorageTest.cc
  10156. * src/ExtensionMessage.h
  10157. * test/MockExtensionMessage.h
  10158. * src/ExtensionMessageFactory.h
  10159. * test/MockExtensionMessageFactory.h
  10160. * src/HandshakeExtensionMessage.{h, cc}
  10161. * test/HandshakeExtensionMessageTest.cc
  10162. * src/MetaEntry.h
  10163. * src/Peer.{h, cc}
  10164. * src/PeerInteractionCommand.cc
  10165. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10166. addIncomingPeer.
  10167. * src/PeerMessageUtil.{h, cc}
  10168. * src/PeerObject.h
  10169. * src/UTPexExtensionMessage.{h, cc}
  10170. * test/UTPexExtensionMessageTest.cc
  10171. * src/message.h
  10172. * src/prefs.h
  10173. Fixed the bug that returns incomplete data when it contains null
  10174. character. A convenient constructor was also added.
  10175. * src/Data.{h, cc}
  10176. Rewritten.
  10177. * src/CompactPeerListProcessor.cc
  10178. Fixed typos.
  10179. * src/message.h
  10180. * src/MetaFileUtil.cc
  10181. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Added "Status Legend" label to the explanation text of 'stat' in
  10183. download result and moved it to the last. BUG#1848214
  10184. * src/RequestGroupMan.cc
  10185. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10187. * src/Makefie.am
  10188. * test/Makefile.am
  10189. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10190. Fixed the bug that prevents aria2 from loading cookie file when expire
  10191. value is greater than 2^31-1. BUG#1851066
  10192. * src/CookieBoxFactory.cc
  10193. * test/CookieBoxFactoryTest.cc
  10194. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. Fixed possible memory leak when an exception is thrown.
  10196. * src/XML2SAXMetalinkProcessor.cc
  10197. Added Expat support. If both libxml2 and Expat are installed, then
  10198. libxml2 is used by default.
  10199. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10200. ExpatMetalinkProcessor according to the configuration.
  10201. * src/ExpatMetalinkProcessor.{h, cc}
  10202. * src/main.cc: Removed libxml2 specific header and init/free function.
  10203. * src/MetalinkProcessorFactory.{h, cc}
  10204. * src/MetalinkHelper.cc
  10205. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10206. * src/MetalinkProcessor.h
  10207. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10208. MetalinkProcessorTest is used instead.
  10209. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10210. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10211. MetalinkProcessorFactory::newInstance().
  10212. * m4/libexpat.m4
  10213. * configure.ac: Added configuration options for libexpat.
  10214. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Disabled -s option in metalink download.
  10216. * src/Metalink2RequestGroup.cc
  10217. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. If several protocols are available for a mirror in metalink file,
  10219. aria2 now use one of them. --metalink-preferred-protocol option was
  10220. added to specify the preference of protocol.
  10221. * src/AbstractCommand.cc
  10222. * src/OptionHandlerFactory.cc
  10223. * src/ServerHost.{h, cc}
  10224. * src/Metalink2RequestGroup.cc
  10225. * src/RequestGroup.{h, cc}
  10226. * test/RequestGroupTest.cc
  10227. * src/option_processing.cc
  10228. * src/prefs.h
  10229. * src/HttpResponseCommand.cc
  10230. * src/MetalinkResource.{h, cc}
  10231. * src/FtpNegotiationCommand.cc
  10232. * src/MetalinkEntry.{h, cc}
  10233. * src/MetalinkEntryTest.cc
  10234. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Code cleanup and added debug log.
  10236. * src/PeerConnection.cc
  10237. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. Compiler error fix: applied the patch by Tiziano Mueller
  10239. * src/RequestGroup.cc
  10240. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10242. in stopped and completed event.
  10243. * src/AnnounceList.{h, cc}
  10244. * test/AnnounceListTest.cc
  10245. * src/DefaultBtAnnounce.cc
  10246. * test/DefaultBtAnnounceTest.cc
  10247. Sorted URLs.
  10248. * test/Metalink2RequestGroupTest.cc
  10249. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Removed unnecessary string copy. Updated doc and corrected indentation.
  10251. * src/Base64.cc
  10252. Fixed compilation warnings
  10253. * test/DataTest.cc
  10254. * test/HttpRequestTest.cc
  10255. * test/MetaFileUtilTest.cc
  10256. * test/RequestTest.cc
  10257. * Release 0.12.0
  10258. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Updated translations
  10260. * po/{de,fr,ja,nl,ru}.po
  10261. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10262. translations. Many thanks to translators.
  10263. * po/{ca,es,it,pt_BR,sv}.po
  10264. * po/LINGUAS
  10265. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10266. Added a notice about URL
  10267. * src/version_usage.cc
  10268. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10269. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10270. aria2 repeatedly sends stopped request when tracker returns error code.
  10271. * src/AnnounceList.cc
  10272. * test/AnnounceListTest.cc
  10273. * src/AnnounceTier.h
  10274. Added a message when ctrl-c is hit.
  10275. Now second ctrl-c is also handled in signal handler.
  10276. * src/RequestGroupMan.{h, cc}
  10277. * src/RequestGroup.{h, cc}
  10278. * src/MultiUrlRequestInfo.cc
  10279. * src/DownloadEngine.cc
  10280. * src/TrackerWatcherCommand.cc
  10281. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10282. Code cleanup
  10283. * src/Base64.cc (encode)
  10284. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Changed Direct/IO enable/disable procesure in file allocation routine.
  10286. * src/SingleFileAllocationIterator.cc
  10287. (SingleFileAllocationIterator):
  10288. Disable directIO if offset is not multiple of 512.
  10289. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10290. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10291. Enable created SingleFileAllocationIterator's directIO.
  10292. * src/FileAllocationEntry.cc
  10293. (FileAllocationEntry): Enable directIO here.
  10294. (~FileAllocationEntry): Disable directIO here.
  10295. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10297. * src/Peer.{h, cc}
  10298. * src/DefaultPieceStorage.cc
  10299. * test/DefaultPieceStorageTest.cc
  10300. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Rewritten direct I/O support routine
  10302. * src/SingleFileAllocationIterator.cc
  10303. * src/MultiDiskAdaptor.{h, cc}
  10304. * src/ByteArrayDiskWriter.h
  10305. * src/AbstractSingleDiskAdaptor.h
  10306. * src/AbstractDiskWriter.cc
  10307. * src/DefaultPieceStorage.cc
  10308. * src/DiskWriter.h
  10309. * src/BinaryStream.h
  10310. * src/IteratableChunkChecksumValidator.cc
  10311. * src/IteratableChecksumValidator.cc
  10312. * src/CheckIntegrityEntry.cc
  10313. * src/FileAllocationEntry.cc
  10314. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Fixed typo
  10316. * src/version_usage.cc
  10317. Updated doc
  10318. * doc/aria2c.1.txt
  10319. * doc/aria2c.1
  10320. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10321. Fixed compile error without message digest support.
  10322. * src/FileMetalinkParserState.cc
  10323. * src/MetalinkParserController.{h, cc}
  10324. * test/XML2SAXMetalinkProcessorTest.cc
  10325. * test/MetalinkParserControllerTest.cc
  10326. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10327. Enable direct I/O support in checksum checking.
  10328. * src/IteratableChunkChecksumValidator.{h, cc}
  10329. * test/IteratableChunkChecksumValidatorTest.cc
  10330. * src/CheckIntegrityEntry.cc
  10331. * src/PieceHashCheckIntegrityEntry.cc
  10332. * src/IteratableChecksumValidator.{h, cc}
  10333. * src/BtCheckIntegrityEntry.cc: Added doc.
  10334. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Added --allow-piece-length-change option.
  10336. * src/DefaultBtProgressInfoFile.cc
  10337. * test/DefaultBtProgressInfoFileTest.cc
  10338. * src/OptionHandlerFactory.cc
  10339. * src/option_processing.cc
  10340. * src/prefs.h
  10341. * src/version_usage.cc
  10342. * doc/aria2c.1.txt
  10343. * doc/aria2c.1
  10344. Fixed: duplicated result entry appears when exception is thrown in
  10345. RequestGroup::createInitiateConnectionCommand().
  10346. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10347. Add RequestGroup to _requestGroup after RequetGroup::
  10348. createInitiateConnectionCommand() succeeds.
  10349. Externalized message
  10350. * src/XML2SAXMetalinkProcessor.cc
  10351. * src/message.h
  10352. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. Forced download abort when received negative response from http/ftp
  10354. server.
  10355. * src/HttpResponseCommand.cc
  10356. * src/FtpNegotiationCommand.cc
  10357. * src/HttpResponse.cc
  10358. * src/FtpConnection.cc
  10359. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10360. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10361. the predecessor, Xml2MetalinkParser class.
  10362. I tested them against 94KB metalink file with 1234 chunk checksums.
  10363. The new one parsed it in 22msec, while it took 6000msec with old one.
  10364. * src/XML2SAXMetalinkProcessor.{h, cc}
  10365. * test/XML2SAXMetalinkProcessorTest.cc
  10366. * src/MetalinkParserController.{h, cc}
  10367. * test/MetalinkParserControllerTest.cc
  10368. * src/MetalinkParserState.h: Also added 16 subclasses.
  10369. * src/main.cc
  10370. * src/Metalink2RequestGroup.cc
  10371. * src/MetalinkHelper.cc
  10372. * src/MetalinkEntry.cc
  10373. * src/ChunkChecksum.h
  10374. Rewritten Base64 class for better performance.
  10375. * src/Base64.{h, cc}
  10376. * test/Base64Test.cc
  10377. * src/HttpRequest.cc
  10378. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Fixed the bug#1841757: aria2 will connect to server to only get
  10380. file size.
  10381. * src/StreamFileAllocationEntry.cc
  10382. * src/option_processing.cc
  10383. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10384. downloads.
  10385. * src/FtpNegotiationCommand.cc
  10386. Suppressed wrong message when finding PreDownloadHandler
  10387. * src/RequestGroup.cc
  10388. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. Updated usage
  10390. * src/version_usage.cc
  10391. Updated man page
  10392. * doc/aria2c.1.txt
  10393. * doc/aria2c.1
  10394. Updated po files
  10395. * po/aria2c.pot
  10396. * po/*.po
  10397. * po/*.gmo
  10398. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. Eliminated g++-4.2 warning
  10400. * src/DownloadHandlerConstants.{h, cc}
  10401. * src/Util.cc
  10402. * test/MetaFileUtilTest.cc
  10403. * test/PStringBuildVisitorTest.cc
  10404. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10405. * src/RequestGroup.cc
  10406. * src/BtCheckIntegrityEntry.cc
  10407. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10408. Fixed a2io.h
  10409. * src/a2io.h
  10410. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Added direct I/O support. The current implementation uses O_DIRECT,
  10412. which is not posix standard and is tested on linux 2.6.21.
  10413. Currently only file allocation uses direct I/O.
  10414. * src/SingleFileAllocationIterator.{h, cc}
  10415. * test/SingleFileAllocationIteratorTest.cc
  10416. * src/MultiFileAllocationIterator.{h, cc}
  10417. * test/MultiFileAllocationIteratorTest.cc
  10418. * src/BinaryStream.h
  10419. * src/DiskWriter.h
  10420. * src/AbstractDiskWriter.{h, cc}
  10421. * src/ByteArrayDiskWriter.h
  10422. * src/DiskAdaptor.h
  10423. * src/AbstractSingleDiskAdaptor.{h, cc}
  10424. * src/MultiDiskAdaptor.{h, cc}
  10425. * src/FileAllocationEntry.cc
  10426. * src/Util.{h, cc}
  10427. * src/OptionHandlerFactory.cc
  10428. * src/prefs.h
  10429. * src/version_usage.cc
  10430. * src/option_processing.cc
  10431. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10432. handleException.
  10433. * src/MultiFileAllocationIterator.cc
  10434. Added EINTR handling
  10435. * src/SocketCore.cc
  10436. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Updated usage
  10438. * src/version_usage.cc
  10439. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Applied Ross's patch for MinGW port.
  10441. * src/DownloadEngine.h
  10442. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Set Content-Type to SingleFileDownloadContext when http response is
  10444. received.
  10445. * src/HttpResponseCommand.cc
  10446. * src/HttpResponse.{h, cc}
  10447. * test/HttpResponseTest.cc
  10448. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. Rewritten to add content-type support.
  10450. * src/DownloadHandler.{h, cc}
  10451. * src/BtPostDownloadHandler.{h, cc}
  10452. * test/BtPostDownloadHandlerTest.cc
  10453. * src/MetalinkPostDownloadHandler.{h, cc}
  10454. * test/MetalinkPostDownloadHandlerTest.cc
  10455. * src/PostDownloadHandler.{h, cc}
  10456. * src/DownloadHandlerConstants.{h, cc}
  10457. * src/RequestGroup.cc
  10458. * src/HttpResponseCommand.cc
  10459. * src/FtpNegotiationCommand.cc
  10460. * src/SingleFileDownloadContext.{h, cc}
  10461. * src/RequestGroup.h
  10462. * src/RequestGroupCriteria.h
  10463. * src/ContentTypeRequestGroupCriteria.h
  10464. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10465. If it is give, metalink/torrent file is not written to the disk, but
  10466. just is kept in memory. Parsing is occurred on memory.
  10467. * src/MetalinkHelper.{h, cc}
  10468. * src/MetalinkProcessor.h
  10469. * src/Xml2MetalinkProcessor.{h, cc}
  10470. * test/Xml2MetalinkProcessorTest.cc
  10471. * src/DownloadHandlerFactory.{h, cc}
  10472. * test/DownloadHandlerFactoryTest.cc
  10473. * src/PreDownloadHandler.{h, cc}
  10474. * src/OptionHandlerFactory.cc
  10475. * src/DefaultBtContext.{h, cc}
  10476. * test/DefaultBtContextTest.cc
  10477. * src/version_usage.cc
  10478. * src/Metalink2RequestGroup.{h, cc}
  10479. * src/RequestGroup.{h, cc}
  10480. * src/a2functional.h
  10481. * test/a2functionalTest.cc
  10482. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10483. * src/OptionHandlerImpl.h
  10484. * src/prefs.h
  10485. * src/Util.{h, cc}
  10486. * test/UtilTest.cc
  10487. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10488. memory usage.
  10489. * src/RequestGroupMan.{h, cc}
  10490. * src/DownloadEngine.cc
  10491. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10492. WeakHandle to SharedHandle because WeakHandle could be null.
  10493. * src/RequestGroup.{h, cc}
  10494. * src/DownloadEngineFactory.cc
  10495. * src/DownloadResult.h
  10496. Set totalLength after download finished
  10497. * src/UnknownLengthPieceStorage.{h, cc}
  10498. Keep torrent file specified in metalink in memory.
  10499. * src/Metalink2RequestGroup.cc
  10500. * src/BtDependency.cc
  10501. * src/TrueRequestGroupCriteria.h
  10502. Fixed the bug: seekg is used where seekp should be used.
  10503. * src/ByteArrayDiskWriter.cc
  10504. * test/ByteArraydiskWriterTest.cc
  10505. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. Fixed syntax error
  10507. * test/SequenceTest.cc
  10508. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10510. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10511. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10512. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10513. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Added the check to see whether ares_host_callback accepts timeouts
  10515. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10516. * src/NameResolver.{h, cc}
  10517. * m4/libcares.m4
  10518. * configure.ac: Set C++ for language choice.
  10519. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Fixed: compilation fails without c-ares/ares
  10521. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10522. Generate http/ftp commands only when download is incomplete.
  10523. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10524. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10525. Corrected typo. Examples are removed since they are available in man
  10526. page.
  10527. * src/version_usage.cc
  10528. Updated man page.
  10529. * doc/aria2c.1
  10530. * doc/aria2c.1.txt
  10531. * doc/makeman: Commented out sed command.
  10532. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Throw DlAbortEx when a remote file is not found.
  10534. * src/HttpResponse.cc
  10535. * src/FtpNegotiationCommand.cc
  10536. * src/message.h
  10537. Overwrite an existing file if --allow-overwrite=true is given.
  10538. * src/RequestGroup.cc
  10539. Removed unused functions
  10540. * src/AbstractCommand.h
  10541. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Removed 'extern' from 'extern typedef ...' in src/*.h
  10543. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Updated usage
  10545. * src/version_usage.cc
  10546. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10547. Trim announce URL
  10548. * src/DefaultBtContext.cc
  10549. * test/ShaVisitorTest.cc
  10550. Trim argument s. Give trimed s to exception constructor.
  10551. * src/Util.cc (parseInt)(parseLLInt)
  10552. * test/UtilTest.cc
  10553. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Set precision back to 1.
  10555. * src/ConsoleStatCalc.cc (calculateStat)
  10556. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Replaced strtol with Util::parseInt
  10558. * src/ChunkedEncoding.cc
  10559. * src/HttpConnection.cc
  10560. * src/CookieBoxFactory.cc
  10561. * src/ParameterizedStringParser.cc
  10562. * src/Util.cc
  10563. * test/UtilTest.cc
  10564. * test/OptionHandlerTest.cc
  10565. * src/Request.cc
  10566. Throw exception when empty string is given. The message for exception
  10567. changed.
  10568. * src/Util.cc (parseInt)(parseLLInt)
  10569. * src/message.h
  10570. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10572. set to 1.
  10573. * src/ConsoleStatCalc.cc (calculateStat)
  10574. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Preallocate non-requested file which is adjacent forward to requested
  10576. file('requested' files means the files given in --select-file option)
  10577. if they share a same piece.
  10578. This fixes long pause in the file system which doesn't support sparse
  10579. files like FAT32 while downloading.
  10580. * src/MultiFileAllocationIterator.{h, cc}
  10581. * test/MultiFileAllocationIteratorTest.cc
  10582. * src/FileEntry.{h, cc}
  10583. Removed unused _option.
  10584. * src/MultiDiskAdaptor.h
  10585. * test/MultiDiskAdaptorTest.cc
  10586. * src/DefaultPieceStorage.cc
  10587. Set the default value of --seed-ratio to 1.0.
  10588. If 0.0 is given, then seeding continues regardless of share ratio.
  10589. * src/version_usage.cc
  10590. * src/option_processing.cc
  10591. * src/BtSetup.cc
  10592. * doc/aria2c.1.txt
  10593. * doc/aria2c.1
  10594. Fixed: Selective download is not working in BitTorrent
  10595. * src/RequestGroup.cc
  10596. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10597. * src/PieceStorage.h
  10598. * test/MockPieceStorage.h
  10599. * src/UnknownLengthPieceStorage.h
  10600. * src/DefaultPieceStorage.{h, cc}
  10601. * src/Metalink2RequestGroup.cc
  10602. * src/RequestGroup.cc
  10603. * src/Sequence.h
  10604. * test/SequenceTest.cc
  10605. * src/IntSequence.h
  10606. * src/message.h
  10607. * src/Util.{h, cc}
  10608. * test/UtilTest.cc
  10609. Added new function 'parse' to catch exception thrown by subclass's
  10610. parseArg
  10611. * src/OptionHandler.h
  10612. * src/OptionParser.cc
  10613. * src/NameMatchOptionHandler.h
  10614. * src/OptionHandlerImpl.h
  10615. * test/OptionHandlerTest.cc
  10616. Added IntegerRangeOptionHandler. Used for --listen-port and
  10617. --select-file. Now --listen-port accepts range of port.
  10618. * src/OptionHandlerFactory.cc
  10619. * src/version_usage.cc
  10620. * src/OptionHandlerImpl.h
  10621. * src/option_processing.cc
  10622. * src/BtSetup.cc
  10623. * src/PeerListenCommand.{h, cc}
  10624. * doc/aria2c.1.txt
  10625. * doc/aria2c.1
  10626. Implemented operator< for Exception class to provide easy way to print
  10627. exception stack trace.
  10628. * src/Exception.{h, cc}
  10629. * src/main.cc
  10630. * src/option_processing.cc
  10631. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. * src/version_usage.cc
  10633. (showVersion): Reworked.
  10634. (showUsage): Added examples.
  10635. Removed Hint for total length and file name.
  10636. * src/Metalink2RequestGroup.cc
  10637. * src/RequestGroup.{h, cc}
  10638. * src/HttpResponseCommand.cc
  10639. * src/FtpNegotiationCommand.cc
  10640. Now --follow-torrent and --follow-metalink option work properly.
  10641. * src/RequestGroup.cc
  10642. Updated man page
  10643. * doc/aria2c.1.txt
  10644. * doc/aria2c.1
  10645. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Removed.
  10647. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10648. Use Segment::operator==()
  10649. * src/HttpConnection.cc
  10650. * src/Segment.h
  10651. Updated usage
  10652. * src/version_usage.cc
  10653. Added EINTR treatment.
  10654. * src/SocketCore.cc
  10655. * src/AbstractDiskWriter.cc
  10656. Rewritten.
  10657. * src/Util.cc (rangedFileCopy)
  10658. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10659. Fixed typo.
  10660. * src/version_usage.cc
  10661. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. Implemented. Now -c option works fine.
  10663. * src/DefaultPieceStorage.cc (markPiecesDone)
  10664. * test/DefaultPieceStorageTest.cc
  10665. Removed.
  10666. * src/SegmentMan.{h, cc}
  10667. (markAllPiecesDone)
  10668. (markPieceDone)
  10669. Synchronized po files with
  10670. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10671. * src/fr.po
  10672. * src/ru.po
  10673. * src/de.po
  10674. * src/ja.po
  10675. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. Added ifdef and some modifications to compile without BitTorrent,
  10677. Metalink, MessageDigest
  10678. support.
  10679. * src/PieceHashCheckIntegrityEntry.cc
  10680. * src/MetalinkEntry.h
  10681. * src/version_usage.cc
  10682. * src/main.cc
  10683. * src/DownloadEngine.{h, cc}
  10684. * src/Metalink2RequestGroup.cc
  10685. * src/Peer.cc
  10686. * src/RequestGroup.cc
  10687. * src/MetalinkHelper.cc
  10688. * test/DefaultPieceStorageTest.cc
  10689. * test/MetalinkPostDownloadHandlerTest.cc
  10690. * test/Metalink2RequestGroupTest.cc
  10691. Hide TOTAL SPD when all downloads complete.
  10692. * src/ConsoleStatCalc.cc
  10693. Log target system information.
  10694. * src/main.cc
  10695. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Now --metalink-location accepts a comma-deliminated list of locations.
  10697. * src/MetalinkEntry.{h, cc}
  10698. * test/MetalinkEntryTest.cc
  10699. * src/version_usage.cc
  10700. * src/Metalink2RequestGroup.cc
  10701. * src/Xml2MetalinkProcessor.cc
  10702. * test/Xml2MetalinkProcessorTest.cc
  10703. * doc/aria2c.1.txt
  10704. * doc/aria2c.1
  10705. * src/Util.cc (toUpper)(toLower): Rewritten.
  10706. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. Added the ability to detect duplicate download entry which is about to
  10708. download the same file other RequestGroup is downloading.
  10709. * src/RequestGroup.cc
  10710. * src/HttpResponseCommand.cc
  10711. * src/FtpNegotiationCommand.cc
  10712. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Recalculates download progress when loading a control file,
  10714. if the piece length of DownloadContext is different from the one saved
  10715. in the control file. Currently in-flight pieces are ignored.
  10716. * src/DefaultBtProgressInfoFile.cc
  10717. * test/DefaultBtProgressInfoFileTest.cc
  10718. * src/Util.{h, cc}
  10719. * test/UtilTest.cc
  10720. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Do not rotate tiers in announce-list.
  10722. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10723. AnnounceList::allTiersFailed() used instead to detect whether all
  10724. tiers are tried and failed.
  10725. * test/DefaultBtAnnounceTest.cc
  10726. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10727. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10728. * test/AnnounceListTest.cc
  10729. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10730. clause. Catch RecoverableException instead of DlRetryEx instead.
  10731. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. Implemented checksum validation feature(1 checksum for each file)
  10733. The validation takes place after the download.
  10734. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10735. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10736. * src/CheckIntegrityCommand.cc: Changed log message.
  10737. * src/Metalink2RequestGroup.cc: Set checksum to
  10738. SingleFileDownloadContext.
  10739. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10740. PieceHashCheckIntegrity class.
  10741. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10742. PieceHashCheckIntegrity class.
  10743. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10744. * src/IteratableValidator.h: New class.
  10745. * src/message.h
  10746. * src/CheckIntegrityEntry.{h, cc}
  10747. * src/IteratableChunkChecksumValidator.{h, cc}
  10748. * src/SingleFileDownloadContext.h
  10749. * src/DownloadCommand.cc
  10750. --allow-overwrite=true is no longer needed to check file integrity
  10751. before download in BitTorrent download.
  10752. * src/RequestGroup.cc (getInitialCommand)
  10753. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10754. throws exception.
  10755. * src/RequestGroupMan.cc (getInitialCommands)
  10756. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. urlencode the given url inside Request::parseUrl(...)
  10758. * src/Request.{h, cc}
  10759. * src/Util.{h, cc}
  10760. * test/RequestTest.cc
  10761. Removed #!metalink3! notation support because it is deleted from
  10762. the metalink specification.
  10763. * src/Request.{h, cc}
  10764. * test/RequestTest.cc
  10765. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Don't connect server before checking file integrity at startup, if
  10767. filesize and output file path are known.
  10768. * src/AbstractCommand.cc
  10769. * src/StreamFileAllocationEntry.cc
  10770. * src/Metalink2RequestGroup.cc
  10771. * src/RequestGroup.{h, cc}
  10772. * src/HttpResponseCommand.cc
  10773. * src/FtpNegotiationCommand.cc
  10774. Added DownloadFailureException. If it is thrown, RequestGroup should
  10775. halt.
  10776. * src/AbstractCommand.cc
  10777. * src/DownloadFailureException.h
  10778. * src/RequestGroup.cc
  10779. Catch RecoverableException, instead of DlAbortEx.
  10780. * src/RequestGroupMan.cc
  10781. * src/FillRequestGroupCommand.cc
  10782. * src/MetaFileUtil.cc
  10783. * src/IteratableChunkChecksumValidator.cc
  10784. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10785. getGID())
  10786. * src/CheckIntegrityCommand.cc
  10787. * src/message.h
  10788. Print gid instead of idx.
  10789. * src/RequestGroupMan.cc
  10790. Removed exception throwers declaration.
  10791. * src/DirectDiskAdaptor.{h, cc}
  10792. * src/SocketCore.{h, cc}
  10793. * src/MultiDiskAdaptor.{h, cc}
  10794. * src/HttpConnection.{h, cc}
  10795. * src/HttpResponse.{h, cc}
  10796. * src/DiskAdaptor.{h, cc}
  10797. * src/CopyDiskAdaptor.{h, cc}
  10798. * src/MultiDiskAdaptor.{h, cc}
  10799. * src/HttpHeaderProcessor.{h, cc}
  10800. * src/AbstractSingleDiskAdaptor.{h, cc}
  10801. * src/Util.{h, cc}
  10802. * test/UtilTest.cc
  10803. * src/DefaultDiskWriter.{h, cc}
  10804. * src/FtpConnection.{h, cc}
  10805. * src/AbstractDiskWriter.{h, cc}
  10806. Removed duplicate code.
  10807. * src/StreamCheckIntegrityEntry.cc
  10808. Removed unnecessary include.
  10809. * src/DiskWriter.h
  10810. Included Exception.h
  10811. * src/option_processing.cc
  10812. Included 2 files and added doc
  10813. * src/TrackerWatcherCommand.cc
  10814. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10815. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10816. Changed CheckIntegrityEntry interface so that it can define
  10817. the action when all the chunk checksums are valid.
  10818. * src/CheckIntegrityEntry.h
  10819. * src/StreamCheckIntegrityEntry.{h, cc}
  10820. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10821. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10822. to exit rather than doing seeding. So, it would be good to toggle this
  10823. behavior.
  10824. * src/CheckIntegrityCommand.cc
  10825. * src/AbstractCommand.cc
  10826. * src/RequestGroup.cc
  10827. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10828. Reflect the download length of in-flight pieces.
  10829. It makes the download length readout more precise.
  10830. * src/DefaultPieceStorage.{h, cc}
  10831. * test/DefaultPieceStorageTest.cc
  10832. * src/a2functional.h
  10833. * test/a2functionalTest.cc
  10834. Lower CPU load when --max-download-limit is used.
  10835. There is up and down in speed indicator when enabling
  10836. http-pipelining but a download goes well. I think the problem is that
  10837. because http-pipelining is enabled, DownloadCommand is created for
  10838. each segment and in its constructor, PeerStat::downloadStart() is
  10839. called. In PeerStat::downloadStart(), speed calculation object is
  10840. reseted, which makes download speed zero.
  10841. * src/DownloadCommand.cc
  10842. Rewritten using accumulate.
  10843. * src/RequestGroupMan.cc (calculateStat)
  10844. Code clearnup.
  10845. * src/FtpNegotiationCommand.cc
  10846. * src/HttpResponseCommand.cc
  10847. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. Fixed: Can not resume: aria2 reports download already finished.
  10849. * src/AbstractCommand.{h, cc}
  10850. * src/HttpResponseCommand.cc
  10851. * src/FtpNegotiateCommand.cc
  10852. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. Now a file is stored in the directory specified in .metalnk file
  10854. (file[@name]).
  10855. * src/Metalink2RequestGroup.cc
  10856. Create the directory structure when opening the file if it doesn't
  10857. exist.
  10858. * src/AbstractDiskWriter.cc
  10859. * src/Util.{h, cc}
  10860. * src/File.h
  10861. * test/UtilTest.cc
  10862. Removed file name comparison
  10863. * src/Metalink2RequestGroup.cc
  10864. * src/HttpResponseCommand.cc
  10865. Rewritten using Util::mkdirs()
  10866. * src/FileEntry.cc (setupDir)
  10867. * test/FileEntryTest.cc
  10868. Updated doc
  10869. * src/SingleFileDownloadContext.h
  10870. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. Now SleepCommand dispatches nextCommand when halt is requested.
  10872. It avoids a possible long wait after hitting CTRL-C.
  10873. * src/SleepCommand.{h, cc}
  10874. * src/RequestGroupAware.{h, cc}
  10875. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10877. to open listen port, then remove the port number from the tracker
  10878. request.
  10879. * src/DefaultBtAnnounce.cc
  10880. * test/DefaultBtAnnounceTest.cc
  10881. * test/MockPieceStorage.h
  10882. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10883. them more testable.
  10884. * src/DefaultBtAnnounce.{h, cc}
  10885. * src/DefaultBtContext.{h, cc}
  10886. * src/Util.{h, cc}
  10887. * test/DefaultBtAnnounceTest.cc
  10888. * test/DefaultBtContextTest.cc
  10889. * test/UtilTest.cc
  10890. Added 'B' to upload bytes readout.
  10891. * src/ConsoleStatCalc.cc
  10892. Now the listen port for BitTorrent download is opened when it is
  10893. needed.
  10894. * src/DownloadEngineFactory.cc
  10895. * src/BtSetup.{h, cc}
  10896. * src/PeerListenCommand.{h, cc}
  10897. Now an exception thrown while parsing tracker response is now logged.
  10898. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10899. called, which means no retry is made in this case, assuming a tracker
  10900. has a problem.
  10901. * src/TrackerWatcherCommand.cc
  10902. Fixed: downloading a file whose length is unkown fails.
  10903. * src/DownloadCommand.cc
  10904. Simplified prepareForNextSegment()
  10905. * src/DownloadCommand.cc
  10906. Updated
  10907. * po/POTFILES.in
  10908. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10909. Re-implemented a file listing for Metalink, which was dropped while
  10910. http/ftp/torrent integration was being implemented.
  10911. * src/MetalinkHelper.{h, cc}: New class.
  10912. * test/MetalinkHelperTest.cc
  10913. * src/main.cc
  10914. * src/Metalink2RequestGroup.cc
  10915. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10916. Added the ability to display the detailed torrent file information.
  10917. Now -S option gives not only a file listing, but also total download
  10918. length, info hash, announce URI, piece length, the number of pieces,
  10919. and mode(single or multi-torrent).
  10920. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10921. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10922. KiB)
  10923. * test/UtilTest.cc
  10924. * src/main.cc
  10925. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Added ftp://USER:PASSWD@Servername automatic parsing.
  10927. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10928. _password. Recognize username and password in URI.
  10929. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10930. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10931. * src/RequestFactory.{h, cc}: Removed.
  10932. * src/AuthConfigFactory.{h, cc}: New class.
  10933. * src/FtpConnection.cc: Use AuthConfigFactory.
  10934. * src/HttpRequest.cc: Use AuthConfigFactory.
  10935. * test/HttpRequestTest.cc: Updated.
  10936. * test/RequestTest.cc: Updated.
  10937. * test/AuthConfigFactoryTest.cc: New class.
  10938. * test/RequestFactoryTest.cc: Removed.
  10939. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10940. Use RequestGroup::allDownloadFinished() to decide whether the control
  10941. file should be removed or saved.
  10942. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10943. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10944. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Use File::renameTo()
  10946. * src/DefaultBtProgressInfoFile.cc
  10947. Added --no-file-allocation-limit command-line option.
  10948. * src/version_usage.cc
  10949. * src/option_processing.cc
  10950. * src/OptionHandlerFactory.cc
  10951. * src/RequestGroup.{h, cc}
  10952. * src/BtCheckIntegrityEntry.cc
  10953. * src/StreamCheckIntegrityEntry.cc
  10954. * src/prefs.h
  10955. * doc/aria2c.1.txt
  10956. * doc/aria2c.1
  10957. Now prealloc is the default value for --file-allocation option.
  10958. * src/version_usage.cc
  10959. * src/option_processing.cc
  10960. * doc/aria2c.1.txt
  10961. * doc/aria2c.1
  10962. Don't URL-encode user-agent.
  10963. * src/HttpRequest.cc
  10964. Updated translations
  10965. * po/LINGUAS: Added nl for Dutch translation.
  10966. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10967. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10968. * po/POTFILES.in: Updated.
  10969. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Added the ability to recognize url-list in a torrent file.
  10971. The retrieved URLs are attached to the corresponding FileEntry.
  10972. * src/DefaultBtContext.{h, cc}
  10973. * src/FileEntry.{h, cc}
  10974. * test/DefaultBtContextTest.cc
  10975. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10977. after the download finishes.
  10978. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10980. the data smaller than block length.
  10981. A block length can be specified by constructor's argument.
  10982. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10983. Get a missing piece in the range of given FileEntry. This function is
  10984. not used in the program yet.
  10985. * src/Util.h: Added some macros.
  10986. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Added HTTP/1.1 keep alive and pipelining support.
  10988. See --enable-http-keep-alive and --enable-http-pipelining option.
  10989. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10990. Segment.
  10991. * src/HttpDownloadCommand.{h, cc}
  10992. * src/OptionHandlerFactory.cc
  10993. * src/HttpConnection.{h, cc}
  10994. * src/version_usage.cc
  10995. * src/HttpInitiateConnectionCommand.cc
  10996. * src/FtpInitiateConnectionCommand.cc
  10997. * src/Segment.h
  10998. * src/HttpRequestCommand.{h, cc}
  10999. * src/option_processing.cc
  11000. * src/prefs.h
  11001. * src/HttpResponseCommand.cc
  11002. * src/SegmentMan.{h, cc}
  11003. * src/FtpNegotiateCommand.cc
  11004. * src/HttpProxyResponseCommand.cc
  11005. * src/Request.cc
  11006. * src/HttpRequest.cc
  11007. * src/DownloadCommand.cc
  11008. * test/HttpRequestTest.cc
  11009. * test/RequestTest.cc
  11010. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11012. finished.
  11013. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11015. catching it inside the method.
  11016. When no file entry is found in a metalink without querying user
  11017. preferences, throw the exception with the error message that suggests
  11018. metalink file is probably broken.
  11019. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11020. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11021. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11022. processed.
  11023. * src/RequestGroupMan.cc (removeStoppedGroup)
  11024. Added debug message.
  11025. * src/BtPostDownloadHandler.cc
  11026. * src/MetalinkPostDownloadHandler.cc
  11027. * src/PostDownloadHandler.{h, cc}
  11028. * src/RequestGroup.cc
  11029. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11031. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11033. stops and there are any unfinished or in-progress downloads.
  11034. Added the legend of "stat".
  11035. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11036. Throw exception when chunck checksum verification fails.
  11037. * src/DownloadCommand.cc (validatePieceHash): New function.
  11038. * src/PiecedSegment.{h, cc} (clear): New function.
  11039. * src/GrowSegment.{h, cc} (clear): New function.
  11040. * src/Segment.h (clear): New function.
  11041. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11042. * test/SegmentTest.cc
  11043. * test/GrowSegmentTest.cc
  11044. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Do not send referer when redirected.
  11046. * src/Request.cc (redirectUrl)
  11047. * test/RequestTest.cc
  11048. * test/HttpRequestTest.cc
  11049. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Implemented BitTorrent/http/ftp integrated download.
  11051. I've rewritten lots of files and now some headers have forward
  11052. class declarations to reduce compile time.
  11053. The implementation is extremely alpha stage, I recommend to use this
  11054. for testing purpose only.
  11055. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. Fixed the compilation error on 64bit platform.
  11057. * test/HttpHeaderProcessorTest.cc
  11058. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11059. Merged Ross's patch that fixes compilation problem in MinGW
  11060. * test/DefaultBtProgressInfoFileTest.cc
  11061. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Updated fr.po by sebone
  11063. * po/fr.po
  11064. Updated man page.
  11065. * doc/aria2c.1.txt
  11066. * Release 0.11.3
  11067. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11069. failure in Metalink.
  11070. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Automatically save *.aria2 control file of http/ftp download in every
  11072. 60 seconds.
  11073. * src/AutoSaveCommand.{h, cc}: New class.
  11074. * src/TimeBasedCommand.{h, cc}: New class.
  11075. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11076. Disable parameterized URI support by default. Added -P option to
  11077. enable the feature.
  11078. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11079. * src/OptionHandlerFactory.cc
  11080. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11081. Updated Japanese translation.
  11082. * po/ja.po
  11083. Updated man page.
  11084. * doc/aria2c.1.txt
  11085. * Release 0.11.3-rc
  11086. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11088. it is successful, then renamed to *.aria2.
  11089. This prevents *.aria2 file from being truncated or corrupted when
  11090. file system becomes out of space.
  11091. * src/DefaultBtProgressInfoFile.cc (save)
  11092. * src/SegmentMan.cc (save)
  11093. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11094. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Reduced the fragmentation of bitfield in http/ftp download.
  11096. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11097. * test/BitfieldManTest.cc
  11098. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Added the ability to disable segmented download in .metalink.
  11100. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11101. 'url' tag.
  11102. * src/MetalinkEntry.{h, cc}
  11103. * src/RequestResource.{h, cc}
  11104. * src/MetalinkRequestInfo.cc
  11105. * src/Xml2MetalinkProcessor.cc
  11106. * test/Xml2MetalinkProcessorTest.cc
  11107. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Added parameterized URI support.
  11109. * src/main.cc: -Z option added.
  11110. * src/OptionHandlerFactory.cc
  11111. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11112. * src/PStringDatum.h: New class.
  11113. * src/PStringSegment.{h,cc}: New class.
  11114. * src/PStringNumLoop.h: New class.
  11115. * src/PStringSelect.h: New class.
  11116. * src/NumberDecorator.h: New class.
  11117. * src/FixedWidthNumberDecorator.h: New class.
  11118. * src/AlphaNumberDecorator.h: New class.
  11119. * src/PStringVisitor.h: New class.
  11120. * src/PStringBuildVisitor.{h,cc}: New class.
  11121. * src/ParameterizedStringParser.{h,cc}: New class.
  11122. * src/Util.{h,cc}
  11123. (isNumber): New function.
  11124. (isLowercase): New function.
  11125. (isUppercase): New function.
  11126. (alphaToNum): New function.
  11127. * test/ParameterizedStringParserTest.cc: New class.
  11128. * test/AlphaNumberDecoratorTest.cc: New class.
  11129. * test/PStringBuildVisitorTest.cc: New class.
  11130. * test/UtilTest.cc
  11131. (testIsNumber): New function.
  11132. (testIsLowercase): New function.
  11133. (testIsUppercase): New function.
  11134. (testAlphaToNum): New function.
  11135. Added '\n' after the error message
  11136. * src/RequestInfo.h (printDownloadAbortMessage)
  11137. Added auto file renaming feature in http(s)/ftp download.
  11138. * src/main.cc: Added --auto-file-renaming command-line option.
  11139. * src/OptionHandlerFactory.cc
  11140. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11141. * src/RequestGroup.{h, cc}
  11142. (shouldCancelDownloadForSafety): Rewritten
  11143. (tryAutoFileRenaming): New function.
  11144. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11145. * src/HttpResponseCommand.cc
  11146. (executeInternal): Removed the call to RequestGroupMan::
  11147. isSameFileBeingDownloaded()
  11148. * src/FtpNegotiateCommand.cc
  11149. (recvSize): Removed the call to RequestGroupMan::
  11150. isSameFileBeingDownloaded()
  11151. * test/RequestGroupTest.cc: New class.
  11152. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11153. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11154. IO.
  11155. * src/DefaultBtProgressInfoFile.cc
  11156. * src/MetaFileUtil.cc
  11157. * src/SimpleLogger.cc
  11158. * src/SegmentMan.cc
  11159. * src/Util.cc
  11160. * src/Platform.cc
  11161. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11163. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11165. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11166. Fixed the bug that prevents file allocation is not done when
  11167. dowloading multi-torrent file.
  11168. * src/AbstractDiskWriter.cc (openFile)
  11169. Increase the maximum number of -j option from 15 to 45.
  11170. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11171. Added fr.po, thanks to Charles Landemaine.
  11172. * po/fr.po
  11173. * po/LINGUAS
  11174. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11175. gcc 3.4.4 support:
  11176. * src/DefaultBtContext.cc: int32_t -> int
  11177. * src/main.cc: int -> int32_t, int32_t -> int
  11178. * src/messageDigest.h: uint32_t -> unsigned int
  11179. * src/NameResolver.h: int32_t -> int
  11180. * src/PeerConnection.cc: int -> int32_t
  11181. * src/SpeedCalc.cc: int32_t -> int
  11182. * src/TrackerUpdateCommand.h: int -> int32_t
  11183. * src/Util.cc: int32_t -> int
  11184. * src/Util.h: int32_t -> int
  11185. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11186. * test/AnnounceListTest.cc: int -> int32_t
  11187. * test/ChunkedEncodingTest.cc: int -> int32_t
  11188. * test/DataTest.cc: int -> int32_t
  11189. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11190. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11191. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11192. * test/FeatureConfigTest.cc: int -> int32_t
  11193. * test/MetalinkEntryTest.cc: int -> int32_t
  11194. * test/MockBtRequestFactory.h: int -> int32_t
  11195. * test/MockPieceStorage.h: int -> int32_t
  11196. * test/OptionTest.cc: int -> int32_t
  11197. * test/RequestTest.cc: int -> int32_t
  11198. * test/SegmentManTest.cc: int -> int32_t
  11199. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11200. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11201. Move sleep functions to Util class:
  11202. * src/Util.cc
  11203. (sleep): New function.
  11204. (usleep): New function.
  11205. * src/DownloadCommand.cc: sleep -> Util::sleep
  11206. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11207. MinGW build enhancements. The following files are added:
  11208. * src/timegm.{c,h}
  11209. Changes to support the above new files:
  11210. * configure.ac
  11211. * src/Makefile.am
  11212. * src/a2time.h
  11213. * src/Util.cc:
  11214. * src/strptime.c: Added support for %Z option.
  11215. Fixed MinGW non-blocking bug.
  11216. * src/SocketCore.cc
  11217. * src/HttpRequestCommand.cc
  11218. Miscellenous build fixes/enhancements.
  11219. * configure.ac: Added summary report.
  11220. * src/Platform.h: Tweaked #include's.
  11221. * src/a2netcompat.h: Tweaked #include's.
  11222. * src/strptime.h: Tweaked #include's.
  11223. * src/gai_strerror.c: Tweaked #include's.
  11224. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11225. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11226. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11227. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11228. Increased the initial connection size in BitTorrent download to 40.
  11229. * src/BtRuntime.h
  11230. Added the usage message of --peer-id-prefix option.
  11231. * src/main.cc
  11232. * Release 0.11.2
  11233. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. MessageDigestHelper is introduced in order to simplify the use
  11235. of message digest. Removed repeated code.
  11236. The message digest algorithm is now specified by string, like "sha1",
  11237. "md5".
  11238. * src/messageDigest.{h, cc}
  11239. * src/MessageDigestHelper.{h, cc}: New class.
  11240. * src/DefaultPieceStorage.cc
  11241. * src/DefaultBtContext.{h, cc}
  11242. (computeFastSet): New function.
  11243. (setInfoHash): Added for unit testing.
  11244. (setNumPieces): Added for unit testing.
  11245. * src/DefaultBtInteractive.cc
  11246. * src/BtPieceMessage.cc
  11247. * src/Peer.cc
  11248. * src/Checksum.h
  11249. * src/message.h
  11250. * src/IteratableChecksumValidator.h
  11251. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11252. inside it.
  11253. * src/SegmentMan.{h, cc}
  11254. (checkIntegrity): Removed.
  11255. * src/IteratableChunkChecksumValidator.{h, cc}
  11256. * src/Util.h
  11257. (sha1Sum): Removed.
  11258. (simpleMessageDigest): Removed.
  11259. (fileChecksum): Removed.
  11260. (computeFastSet): Removed.
  11261. * src/ShaVisitor.cc
  11262. * src/ChunkChecksum.h
  11263. * src/DownloadCommand.cc
  11264. Removed messageDigest virtual functions.
  11265. * src/MultiDiskAdaptor.{h, cc}
  11266. * src/DiskAdaptor.h
  11267. * src/ByteArrayDiskWriter.h
  11268. * src/DiskWriter.h
  11269. * src/DiskAdaptorWriter.h
  11270. * src/AbstractSingleDiskAdaptor.{h, cc}
  11271. * src/AbstractDiskWriter.{h, cc}
  11272. Fixed comilation error when message digest is disabled.
  11273. * src/MetalinkEntry.{h, cc}
  11274. * src/MetalinkRequestInfo.cc
  11275. Removed srandom and random.
  11276. * src/SimpleRandomizer.h
  11277. Added size() virtual function to DiskAdaptor
  11278. * src/MultiDiskAdaptor.h
  11279. Fixed the bug that causes that files are not opened correctly in
  11280. multi-file torrent.
  11281. * src/TorrentRequestInfo.cc
  11282. * src/MultiDiskAdaptor.cc
  11283. Added SHA256 support
  11284. * src/messageDigest.cc
  11285. * src/Xml2MetalinkProcessor.cc
  11286. Show supported message digest algorithms
  11287. * src/main.cc
  11288. Updated contact info.
  11289. * src/main.cc
  11290. Applied Ross's patch
  11291. * src/a2netcompat.h
  11292. * src/main.cc
  11293. Fixed the bug that prevents a remote metalink from not being processed
  11294. even if '-o foo.metalink' is specified.
  11295. * src/MetalinkRequestInfo.cc
  11296. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11297. Merged Dan's patch:
  11298. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11299. Use va_copy to avoid core dump on amd64:
  11300. * src/SimpleLogger.cc
  11301. Updated contact info.
  11302. * src/main.cc
  11303. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11304. digest is not available.
  11305. * src/MetalinkEntry.h
  11306. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11307. Make a2netcompat.h include a2io.h to fix compilation error:
  11308. * src/a2netcompat.h
  11309. * src/SocketCore.cc: Removed include of a2io.h
  11310. * src/Util.cc: Removed include of a2io.h
  11311. Gather time related functions to a2time.h:
  11312. * src/a2time.h: New file.
  11313. * src/DefaultPeerStorage.cc
  11314. * src/SimpleLogger.cc
  11315. * src/Util.{h, cc}
  11316. * src/SimpleRandomizer.h
  11317. * src/TimeA2.{h,cc}
  11318. * src/DownloadCommand.cc
  11319. * src/main.cc
  11320. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11321. a2netcompat.h:
  11322. * src/NameResolver.cc
  11323. Fixed compilation error without openssl:
  11324. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11325. Added default block to suppress compiler warnings:
  11326. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11327. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11328. MinGW build enhancements. The following files are added:
  11329. * src/gai_strerror.{c,h}
  11330. * src/gettimeofday.{c,h}
  11331. Changes to support the above new files:
  11332. * configure.ac
  11333. * src/Makefile.am
  11334. * src/a2netcompat.h
  11335. * src/TimeA2.cc
  11336. * src/DefaultPeerStorage.cc
  11337. * src/NameResolver.cc: removed mingw_strerror() function.
  11338. * src/SocketCore.cc: removed mingw_strerror() function.
  11339. Miscellaneous MinGW build fixes.
  11340. * src/a2io.h: Use _lseeki64() instead of lseek()
  11341. * src/common.h
  11342. * src/DefaultFileAllocator.cc
  11343. * src/GlowFileAllocator.cc
  11344. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11345. * src/NameResolver.cc
  11346. (callback): Changed int32_t to int.
  11347. (resolve): Changed int32_t to int.
  11348. * src/Platform.cc
  11349. * src/Platform.h
  11350. * test/MultiDiskWriterTest.cc
  11351. * test/PeerMessageUtilTest.cc
  11352. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11353. Other enhancements and fixes.
  11354. * src/HttpRequestCommand.cc
  11355. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11356. * src/SocketCore.cc:
  11357. (error): New function to abstract errno/WSAGetLastError().
  11358. (errorMsg): New function to abstract errno/WSAGetLastError().
  11359. (initiateSecureConnection): Added more detailed error reporting.
  11360. * src/SocketCore.h: Added private variable blocking, to allow
  11361. proper handling of OpenSSL psuedo-errors.
  11362. * src/message.h
  11363. (EX_SSL_INIT_FAILURE)
  11364. (EX_SSL_IO_ERROR)
  11365. (EX_SSL_PROTOCOL_ERROR)
  11366. (EX_SSL_UNKNOWN_ERROR)
  11367. (EX_SSL_CONNECT_ERROR)
  11368. (EX_SOCKET_BLOCKING)
  11369. (EX_SOCKET_NONBLOCKING)
  11370. (EX_SOCKET_UNKNOWN_ERROR)
  11371. * src/Util.cc
  11372. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11373. reserved name.
  11374. (httpGMT): Fixed typo.
  11375. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11376. Merged Ross's win32 patch(manually)
  11377. In the course of merging, following files are added.
  11378. * src/strptime.{h,c}
  11379. * src/libgen.{h,c}
  11380. * src/inet_aton.{h,c}
  11381. * src/Platform.{h,cc}
  11382. * src/localtime_r.{h,c}
  11383. * src/getaddrinfo.{h,c}
  11384. I've gethered network related things, and put them to following file:
  11385. * src/a2netcompat.h
  11386. Also io related things are put to following file:
  11387. * src/a2io.h
  11388. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11389. * src/message.h
  11390. (MSG_ALLOCATION_COMPLETED)
  11391. (EX_TOO_LARGE_FILE)
  11392. (EX_SIZE_MISMATCH)
  11393. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11394. (EX_INVALID_CHUNK_CHECKSUM)
  11395. (EX_INVALID_RANGE_HEADER)
  11396. * src/FileAllocationCommand.cc
  11397. * src/HttpResponse.cc
  11398. * src/RequestGroup.cc
  11399. * src/MultiDiskAdaptor.cc
  11400. * src/OptionHandlerImpl.h
  11401. * src/HttpResponseCommand.cc
  11402. * src/FtpNegotiateCommand.cc
  11403. * src/IteratableChecksumValidator.cc
  11404. * src/SegmentMan.cc
  11405. * src/ChunkChecksumValidator.cc
  11406. Added Randomizer::getRandomNumber(long int)
  11407. * src/Randomizer.h (getRandomNumber)
  11408. * src/SimpleRandomizer.h (getRandomNumber)
  11409. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11410. * src/Util.cc (randomAlpha): Use this new function.
  11411. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. Converted int's to in32_t. long long int's are also converted to
  11413. int64_t
  11414. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11415. Fixed the bug that prevents cookies from being sent to the server
  11416. if the domain of cookie is FQDN and starts with ".".
  11417. * src/Cookie.cc (match)
  11418. To add the ability to change peer id.
  11419. * src/DefaultBtContext.h
  11420. (_peerIdPrefix): New variable
  11421. (setPeerIdPrefix): New function.
  11422. * src/torrentRequestInfo.cc
  11423. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11424. DefaultBtContext.
  11425. * src/main.cc (main): Added peer-id-prefix command-line option.
  11426. The usage message is not added yet.
  11427. * src/DefaultBtContext.cc
  11428. (generatePeerId): Use _peerIdPrefix.
  11429. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11430. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11431. Fixed the bug that prevents filename in content-disposition from
  11432. being retrieved when filename is not quoted.
  11433. * src/Util.cc (getContentDispositionFilename)
  11434. Fixed the bug that causes infinate loop and memory leak when file open
  11435. operation failed.
  11436. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11437. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11438. Fixed the bug that causes segfault when all URIs specified are
  11439. unsupported.
  11440. * src/RequestGroupMan.cc (getInitialCommands)
  11441. Check if RequestGroup::createNextCommand() returns empty list of
  11442. commands.
  11443. * src/RequestGroup.cc (createNextCommand)
  11444. Change log level from info to error so that users can notice that
  11445. an error occurred.
  11446. Fixed the bug that causes segfault when a zero-sized file is
  11447. downloaded.
  11448. * src/BitfieldMan.cc (isAllBitSet)
  11449. Return true if bitfieldLength is 0.
  11450. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11451. * src/main.cc
  11452. (showUsage): Added 3 usage examples for metalink download.
  11453. Replace MetalinkChunkChecksum with ChunkChecksum.
  11454. * src/MetalinkChunkChecksum.h: Removed.
  11455. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11456. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11457. * src/Xml2MetalinkProcessor.cc
  11458. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11459. * src/MetalinkRequestInfo.cc (execute)
  11460. * Release 0.11.1
  11461. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11462. Reads URIs from stdin when "-i -" is specified.
  11463. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11464. * src/UriListParser.h, src/UriListParser.cc: New class.
  11465. * src/StreamUriListParser.h: New class.
  11466. * src/FileUriListParser.h: New class.
  11467. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11468. instead of UriFileListParser.
  11469. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. Made console readout more readable.
  11471. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11472. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Fix the bug that causes -s option not to work.
  11474. * src/main.cc (main)
  11475. * src/a2algo.h: New file.
  11476. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. Create directory structure specified in metalink file.
  11478. * src/RequestGroup.h, src/RequestGroup.cc
  11479. (initAndOpenFile): Create a directory to store files if it does not
  11480. exist.
  11481. (getDir): New function.
  11482. Added ETA and download speed for an individual file to readout.
  11483. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11484. * src/RequestGroup.h
  11485. (calculateDownloadSpeed): New function.
  11486. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. Made -S option work with metalink file and provided selective download
  11488. to metalink.
  11489. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11490. (filename): Removed.
  11491. (file): New variable.
  11492. (size): Removed.
  11493. (operator=): Updated.
  11494. (getPath): New function.
  11495. (getLength): New function.
  11496. (toFileEntry): New function.
  11497. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11498. (execute): Use toStream.
  11499. (showFileEntry): Removed.
  11500. * src/MetalinkRequestInfo.h
  11501. (targetFiles): New variable.
  11502. (setTargetFiles): New variable.
  11503. * src/MetalinkRequestInfo.cc
  11504. (execute): Added the ability to print file information included in
  11505. a metalink file.
  11506. Added selective download mode to metalink.
  11507. * src/main.cc
  11508. (showUsage): Updated to denote that -S and --select-file options are
  11509. applicable to metalink.
  11510. * src/FileEntry.h
  11511. (operator=): New function.
  11512. (getBasename): New function.
  11513. (getDirname): New function.
  11514. * src/Util.h, src/Util.cc
  11515. (toStream): New function.
  11516. * src/Xml2MetalinkProcessor.cc: Updated.
  11517. Made aria2 work with metalink with directory structure.
  11518. * src/File.h, src/File.cc
  11519. (getBasename): New function.
  11520. (getDirname): New function.
  11521. * src/RequestGroup.h, src/RequestGroup.cc
  11522. (_topDir): New variable.
  11523. (setTopDir): New function.
  11524. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11525. Rewrote HTTP header parsing with stringstream.
  11526. * src/HttpConnection.h, src/HttpConnection.cc
  11527. (HttpRequestEntry): New class.
  11528. (headerBuf): Removed.
  11529. (headerBufLength): Removed.
  11530. (outstandingHttpRequests): Now its element type is
  11531. HttpRequestEntryHandle.
  11532. (findEndOfHeader): Removed.
  11533. (receiveResponse): Rewritten.
  11534. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11535. Updated doc for -j option to notice that it should be used with -i
  11536. option.
  11537. * src/main.cc (showUsage)
  11538. Removed unused classes.
  11539. * src/RequestInfo.h
  11540. (FileInfo): Removed.
  11541. (checksum): Removed.
  11542. (fileInfo): Removed.
  11543. (setChecksum): Removed.
  11544. (getChecksum): Removed.
  11545. (getFileInfo): Removed.
  11546. Use ISO units.
  11547. * src/ConsoleDownloadEngine.cc
  11548. * src/TorrentConsoleDownloadEngine.cc
  11549. * src/Util.cc (abbrevSize)
  11550. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11551. Added the default listening ports to the help message.
  11552. * src/main.cc (showUsage)
  11553. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11554. Reduce the number of calls to gettimeofday to lower CPU load.
  11555. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11556. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11557. * src/Peer.h (calculateUploadSpeed): New function.
  11558. (calculateDownloadSpeed): New function.
  11559. * src/DefaultPeerStorage.cc
  11560. (CalculateStat): Added _now variable.
  11561. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11562. and Peer::calculateUploadSpeed(const struct timeval&)
  11563. Drop connection if no request or piece message is exchanged in
  11564. a certain interval.
  11565. * src/DefaultBtInteractive.h
  11566. (btRuntime): New variable.
  11567. (inactiveCheckPoint): New variable.
  11568. (checkActiveInteraction): New function.
  11569. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11570. request or piece message is received.
  11571. (checkActiveInteraction): New function.
  11572. (doInteractionProcessing): Call checkActiveInteraction.
  11573. Fixed the bug that causes remote Metalink and Torrent files are not
  11574. processed.
  11575. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11576. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. Changed format of log file.
  11578. * src/SimpleLogger.cc
  11579. * Release 0.11.0
  11580. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. * src/AbstractCommand.cc
  11582. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11583. MSG_MAX_TRY from error to info.
  11584. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11585. * src/message.h
  11586. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11587. (MSG_DOWNLOAD_ABORTED): Added %s.
  11588. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11589. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11590. * src/PeerAbstractCommand.cc
  11591. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11592. * src/Request.h
  11593. (cookieBox): Made ShardHandle.
  11594. * src/RequestGroup.h, src/RequestGroup.cc
  11595. (createNextCommandWithAdj): New function.
  11596. * src/FileAllocationCommand.cc
  11597. (executeInternal): Use createNextCommandWithAdj().
  11598. * src/CheckIntegrityCommand.cc
  11599. (executeInternal): Use createNextCommandWithAdj().
  11600. Added --load-cookies command-option.
  11601. * src/OptionHandlerFactory.cc
  11602. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11603. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11604. Now aria2 can handle cookie's expiration date.
  11605. * src/Cookie.h (expires): Changed its type to time_t.
  11606. * src/main.cc: Added --load-cookies command-line option.
  11607. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11608. * src/Util.h, src/Util.cc (httpGMT): New function.
  11609. * src/Request.cc (Request): Initialize cookieBox using
  11610. CookieBoxFactory.
  11611. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11612. * src/CookieParser.h, src/CookieParser.cc: New class.
  11613. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11614. * src/HttpResponseCommand.cc
  11615. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11616. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11617. download.
  11618. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11619. Added -j command-line option.
  11620. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11621. * src/main.cc
  11622. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11623. Rewritten using stringstream.
  11624. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11625. Rewritten using stringstream.
  11626. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Make download size shown in MB, KB.
  11628. * src/ConsoleDownloadEngine.h (sendStatistics)
  11629. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11630. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11631. Accept incoming connections if download rate is low.
  11632. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11633. (_lowestSpeedLimit): New variable.
  11634. (setLowestSpeedLimit): New function.
  11635. (execute): Accept incoming connections if download rate is low.
  11636. MAX_PEERS is ignored in this case.
  11637. Disable PREF_OUT in multiple concurrent download:
  11638. * src/RequestGroup.h, src/RequestGroup.cc
  11639. (setUserDefinedFilename): New function.
  11640. * src/DownloadEngineFactory.cc
  11641. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11642. concurrent download.
  11643. * src/DefaultSegmentManFactory.cc
  11644. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11645. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11646. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11647. Added its overloaded method.
  11648. * src/RequestGroup.h
  11649. (_numConcurrentCommand): New variable.
  11650. (setNumConcurrentCommand): New function.
  11651. * src/RequestGroup.cc
  11652. Abort download if same file is being downloaded concurrently.
  11653. * src/RequestGroup.h, src/RequestGroupMan.cc
  11654. (isSameFileBeingDownloaded): New function.
  11655. * src/HttpResponseCommand.cc (executeInternal)
  11656. * src/FtpNegotiateCommand.cc (recvSize)
  11657. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11658. * main.cc: Added help message for -i option.
  11659. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11660. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11661. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11662. * src/MetalinkEntry.h
  11663. (checksum): Changed to ChecksumHandle
  11664. * src/MetalinkRequestInfo.cc
  11665. (checksum): Changed to ChecksumHandle
  11666. * src/File.cc
  11667. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11668. * src/common.h
  11669. (DIR_OPEN_MODE): New definition
  11670. * src/RequestGroup.cc
  11671. (prepareForNextAction): Added an argument.
  11672. * src/message.h
  11673. (MSG_GOOD_CHECKSUM): New definition
  11674. (MSG_BAD_CHECKSUM): New definition
  11675. * src/HttpResponseCommand.cc
  11676. (handleDefaultEncoding): Continue download sequence in new
  11677. non-segmented download.
  11678. * src/FileAllocationEntry.h
  11679. (_nextDownloadCommand): New variable.
  11680. * src/DownloadCommand.cc
  11681. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11682. available.
  11683. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11684. * src/IteratableChecksumValidator.h,
  11685. src/IteratableChecksumValidator.cc: New class.
  11686. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11687. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11688. Change file mode to 666:
  11689. * src/common.h (OPEN_MODE): New definition.
  11690. * src/File.cc
  11691. * src/Util.cc
  11692. * src/Directry.cc
  11693. * src/AbstractDiskWriter.cc
  11694. Change the level of log message "download aborted" to debug:
  11695. * src/PeerAbstractCommand.cc (execute)
  11696. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11697. * src/TrackerWatcherCommand.cc
  11698. (createCommand): Sleep some seconds after request failed.
  11699. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11700. then abort tracker request.
  11701. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11702. * Added the simultaneous download feature.
  11703. * src/main.cc: Print "Exception caught: " when exception is caught.
  11704. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11705. * src/ActivePeerConnectionCommand.cc
  11706. * src/PeerInteractionCommand.cc
  11707. * src/BtRuntime.h
  11708. (cuidCounter): Removed.
  11709. (getNewCuid): Removed.
  11710. * src/DownloadEngineFactory.cc
  11711. * src/PeerListenCommand.cc
  11712. * src/TrackerUpdateCommand.cc
  11713. * src/PeerInitiateConnectionCommand.cc
  11714. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11715. * src/PeerAbstractCommand.cc
  11716. (onAbort): Call PeerStorage::returnPeer()
  11717. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11718. (incomingPeers): New variable.
  11719. (addIncomingPeer): New function.
  11720. (returnPeer): New function.
  11721. (onErasingPeer): New function.
  11722. (addPeer): push_back -> push_front
  11723. (getActivePeers): Rewritten.
  11724. (calculateStat): Rewritten.
  11725. * src/PeerStorage.h
  11726. (TransferStat::copy): New function.
  11727. (TransferStat::TransferStat): New function.
  11728. (TransferStat::operator=): New function.
  11729. (addIncomingPeer): New function.
  11730. (returnPeer): New function.
  11731. * src/PeerListenCommand.cc
  11732. (execute): Use PeerStorage::addIncomingPeer() instead of
  11733. Peer::addPeer().
  11734. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Connect to a peer actively when download speed is lower than specified
  11736. speed in torrent download:
  11737. * src/ActivePeerConnectionCommand.h: New class.
  11738. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11740. * src/main.cc: Fixed the bug that prevents download if .netrc
  11741. doesn't exist.
  11742. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11743. To cache resolved hostname:
  11744. * src/AbstractCommand.h, src/AbstractCommand.cc
  11745. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11746. Added dns cache.
  11747. * src/FtpInitiateConnectionCommand.cc
  11748. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11749. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11750. NameResolver working without ares.
  11751. * src/TorrentRequestInfo.cc
  11752. (execute): Don't cache dns in torrent download.
  11753. * src/HttpInitiateConnectionCommand.cc
  11754. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11755. * src/DNSCache.h: New class.
  11756. * src/UrlRequestInfo.cc
  11757. (execute): Use dns cache.
  11758. In http request, suppress port number in http request header if port
  11759. is 80 or 443:
  11760. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11761. request header if port is 80 or 443.
  11762. (createProxyRequest): Allways send port number.
  11763. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. To add the command-line option which disables netrc support:
  11765. * src/OptionHandlerFactory.cc
  11766. (createOptionHandlers): Added PREF_NO_NETRC.
  11767. * src/main.cc: Added -n option.
  11768. * src/prefs.h (PREF_NO_NETRC): New definition.
  11769. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11770. V_TRUE.
  11771. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11772. is V_FALSE. This may get configurable in the future release.
  11773. To clear peer's error status by time basis:
  11774. * src/PeerAbstractCommand.cc
  11775. (onAbort): Call Peer::startBadCondition().
  11776. * src/Peer.h, src/Peer.cc
  11777. (error): Removed.
  11778. (_badConditionStartTime): New variable.
  11779. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11780. (startBadCondition): New function.
  11781. (isGood): New function.
  11782. * src/DefaultPeerStorage.cc
  11783. (addPeer): Use Peer::isGood().
  11784. (FindFinePeer): Use Peer::isGood().
  11785. Always include port number in http request header:
  11786. * src/HttpRequest.cc (getHostText): Always include port number in
  11787. http request header.
  11788. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11789. To the ability to read options from a config file:
  11790. * src/main.cc: Command-line parameter validation is delegated to
  11791. OptionHandler class.
  11792. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11793. * src/Option.h, src/Option.cc (clear): New function.
  11794. * src/OptionParser.h, src/OptionParser.cc: New class.
  11795. * src/OptionHandler.h: New class.
  11796. * src/NameMatchOptionHandler.h: New class.
  11797. * src/OptionHandlerImpl.h: New classes.
  11798. * src/prefs.h: '_' -> '-'
  11799. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11800. (FTP_PASV): New definition.
  11801. * src/Util.h, src/Util.cc (getRealSize): New function.
  11802. To disable netrc support if .netrc file does not have correct
  11803. permissions:
  11804. * src/File.h, src/File.cc (mode): New function.
  11805. To prevent confidential information to be logged:
  11806. * src/HttpConnection.h, src/HttpConnection.cc
  11807. (eraseConfidentialInfo): New function.
  11808. (sendRequest): Call eraseConfidentialInfo().
  11809. (sendProxyRequest): Call eraseConfidentialInfo().
  11810. * src/main.cc: Validate permissions of .netrc file.
  11811. To add --user-agent command-line option:
  11812. * src/main.cc: Added new command line option: --user-agent
  11813. * src/prefs.h (PREF_USER_AGENT): New definition.
  11814. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11815. parameter to HttpRequest object.
  11816. * src/AbstractProxyRequestCommand.cc
  11817. (executeInternal): Set user-agent option parameter to HttpRequest
  11818. object.
  11819. Marged the patches from Dan Fandrich.
  11820. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Use filename and size from Metalink file instead of sending HEAD
  11822. request:
  11823. * src/UrlRequestInfo.h
  11824. (_filename): New variable.
  11825. (_totalLength): New variable.
  11826. (setTotalLength): New variable.
  11827. (setFilename): New variable.
  11828. * src/MetalinkRequestInfo.cc
  11829. (execute): Set filename and size to UrlRequestInfo
  11830. * src/UrlRequestInfo.cc
  11831. (execute): Use filename and size from Metalink instead of seding
  11832. HEAD request to servers.
  11833. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11834. To add the ability to resume downloading a partially downloaded file
  11835. which is downloaded from the beginning:
  11836. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11837. takes this role.
  11838. * src/main.cc: Added -c option.
  11839. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11840. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11841. * src/prefs.h (PREF_CONTINUE): New definition.
  11842. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11843. * src/DefaultDiskWriter.cc
  11844. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11845. * src/AbstractDiskWriter.h
  11846. (glowFileAllocator): New variable.
  11847. * src/AbstractDiskWriter.cc
  11848. (openExistingFile): Now preallocate file space from the end of the
  11849. existing file if totalLength argument is specified and grater than 0.
  11850. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11851. to download exists in local, continue the download of the file.
  11852. --allow-overwrite=true is assumed in this context.
  11853. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11854. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11855. Throw exception if --check-integrity=true is specified but chunk
  11856. checksums are not provided:
  11857. * src/UrlRequestInfo.cc
  11858. Do not print URLs to stdout:
  11859. * src/UrlRequestInfo.cc
  11860. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11861. * src/Request.h: Use AuthResolver to get authentication information.
  11862. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11863. set to RequestFactory object.
  11864. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11865. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11866. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11867. create Request object.
  11868. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11869. To integrate Netrc into exsiting classes:
  11870. * src/Request.h
  11871. (_userDefinedAuthConfig): New variable.
  11872. (findNetrcAuthenticator): New function.
  11873. (segment): Removed.
  11874. (setUserDefinedAuthConfig): New function.
  11875. (resolveHttpAuthConfigItem): New function.
  11876. (resolveFtpAuthConfigItem): New function.
  11877. (resolveHttpProxyAuthConfigItem): New function.
  11878. * src/HttpRequest.h
  11879. (authConfig): Removed.
  11880. (proxyAuthConfig): Removed.
  11881. (setAuthConfig): Removed.
  11882. (setProxyAuthConfig): Removed.
  11883. * src/UrlRequest.h
  11884. (getHeadResult): Added a parameter: authConfigHandle
  11885. * src/common.h
  11886. (SingletonHolder.h): New include.
  11887. * src/main.cc
  11888. (Netrc.h): New include.
  11889. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11890. Added initial value of PREF_NETRC_PATH.
  11891. Added the initialization of netrc.
  11892. * src/AuthConfig.h: New class.
  11893. * src/prefs.h
  11894. (PREF_NETRC_PATH): New definition.
  11895. * src/HttpAuthConfig.h: Removed.
  11896. * src/Netrc.cc
  11897. (getRequiredNextToken): New function.
  11898. (skipMacdef): New function.
  11899. (parse): Rewritten.
  11900. * src/Netrc.h
  11901. (getRequiredNextToken): New function.
  11902. (skipMacdef): New function.
  11903. * src/Util.h, src/Util.cc
  11904. (getHomeDir): New function.
  11905. * src/TrackerWatcherComand.cc
  11906. (createRequestCommand): Use AuthConfig.
  11907. * src/FtpConnection.cc
  11908. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11909. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11910. * src/Request.cc
  11911. (findNetrcAuthenticator): New function.
  11912. (resolveHttpAuthConfigItem): New function.
  11913. (resolveFtpAuthConfigItem): New function.
  11914. (resolveHttpProxyAuthConfigItem): New function.
  11915. * src/UrlRequestInfo.cc: Use AuthConfig.
  11916. * src/HttpRequest.cc
  11917. (createRequest): Use authConfig.
  11918. (getProxyAuthString): Use authConfig.
  11919. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11920. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11921. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. To reduce overhead to find commands whose socket is either
  11923. readable or writable in the download engine loop:
  11924. * src/Command.h, src/Command.cc
  11925. (STATUS): New enum.
  11926. (status): New variable.
  11927. (statusMatch): New function.
  11928. (setStatusActive): New function.
  11929. (setStatusInactive): New function.
  11930. * src/DownloadEngine.h, src/DownloadEngine.cc
  11931. (executeCommand): New function.
  11932. (run): Simplified.
  11933. (waitData): Call Command::setStatusActive() when command's socket is
  11934. readable or writable.
  11935. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11936. To handle Segment as SegmentHandle:
  11937. * src/AbstractCommand.cc (execute): Rewritten.
  11938. * src/SegmentMan.h: Segment -> SegmentHandle
  11939. Introducded HttpResponse class, HttpRequest class to improve code
  11940. extensiveness and make it clear:
  11941. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11942. HttpResponse class.
  11943. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11944. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11945. * src/HttpConnection.cc: Contruction of http request were moved to
  11946. HttpRequest class.
  11947. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11948. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11949. * src/HttpAuthConfig.h: New class.
  11950. * src/Range.h: New class.
  11951. To make FtpTunnel{Request, Response}Command and
  11952. HttpProxy{Request, Response}Command derived from
  11953. AbstractProxy{Request, Response}Command:
  11954. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11955. Derived from AbstractProxyRequestCommand class.
  11956. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11957. Derived from AbstractProxyResponseCommand class.
  11958. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11959. Derived from AbstractProxyRequestCommand class.
  11960. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11961. Derived from AbstractProxyResponseCommand class.
  11962. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11963. : New class.
  11964. * src/AbstractProxyResponseCommand.h,
  11965. src/AbstractProxyResponseCommand.cc: New class.
  11966. To add netrc support:
  11967. * src/Netrc.h, src/Netrc.cc: New class.
  11968. * src/Util.h, src/Util.cc (split): New function.
  11969. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11970. "Content-Range" header instead of "Range" header.
  11971. * src/HttpHeader.h
  11972. (getStatus): Removed.
  11973. (setStatus): Removed.
  11974. * src/Segment.h
  11975. (getPositionToWrite): New function.
  11976. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11977. * src/HttpHeader.h
  11978. (Range.h): New include.
  11979. (status): New variable.
  11980. (HttpHeader): Initialized status with 0.
  11981. (getStatus): New function.
  11982. (setStatus): New function.
  11983. (getRange): New function.
  11984. (HttpHeaderHandle): New function.
  11985. * src/HttpHeader.cc
  11986. (getRange): New function.
  11987. * src/Request.h
  11988. (RequestWeakHandle): New definition.
  11989. * src/HttpConnection.h
  11990. (HttpConnectionHandle): New type definition.
  11991. * src/HttpConnection.cc
  11992. (receiveResponse): Set HTTP status to headers.
  11993. * src/main.cc
  11994. (showUsage): Fixed typo.
  11995. * src/Segment.h
  11996. (SegmentHandle): New type definition.
  11997. * src/BitfieldMan.h
  11998. (getMissingUnusedLength): New function.
  11999. * src/BitfieldMan.cc
  12000. (getMissingUnusedLength): New function.
  12001. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. To fix static initialization order problem:
  12003. * src/BitfieldManFactory.h
  12004. (defaultRandomizer): Removed.
  12005. (factory): New variable.
  12006. (getNewFactory): Removed.
  12007. (getFactoryInstance): New function.
  12008. (setDefaultRandomizer): Rewritten.
  12009. (getDefaultRandomizer): Rewritten.
  12010. * src/BitfieldManFactory.cc
  12011. (defaultRandomizer): Removed.
  12012. (factory): Initialized to 0.
  12013. (BitfieldManFactory): Initialized randomizer to 0.
  12014. * src/DefaultPieceStorage.cc
  12015. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12016. * src/Peer.cc
  12017. (Peer): getNewFactory() -> getFactoryInstance()
  12018. * src/SegmentMan.cc
  12019. (initBitfield): getNewFactory() -> getFactoryInstance()
  12020. * src/Piece.cc
  12021. (Piece): getNewFactory() -> getFactoryInstance()
  12022. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12023. To fix the bug that causes crash on Max OS X:
  12024. * src/SimpleRandomizer.h
  12025. (getInstance): Create new instance if the static variable is null.
  12026. * src/SimpleRandomizer.cc
  12027. (randomizer): Initialized to 0.
  12028. * src/BitfieldManFactory.h
  12029. (getNewFactory): Removed the call to setRandomizer().
  12030. To fix the miscalculation of the range of checksum:
  12031. * src/BitfieldMan.h
  12032. (isBitSetOffsetRange): New function.
  12033. * src/BitfieldMan.cc
  12034. (isBitSetOffsetRange): New function.
  12035. * src/SegmentMan.cc
  12036. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12037. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12038. * Release 0.10.1
  12039. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. To lower CPU usage in BitTorrent download when --max-upload-limit
  12041. command-line option specified:
  12042. * src/DefaultBtMessageDispatcher.cc
  12043. (sendMessages): Calculate uploading speed only when current message
  12044. is uploading data and is not sent yet.
  12045. * src/DefaultPeerStorage.h
  12046. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12047. * src/HttpResponseCommand.cc
  12048. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12049. This fixes compile error in Soralis 10.
  12050. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. To fix segfault in Metalink download:
  12052. * src/UrlRequestInfo.h
  12053. (filename): Removed.
  12054. (totalLength): Removed.
  12055. (setTotalLength): Removed.
  12056. (setFilename): Removed.
  12057. * src/MetalinkRequestInfo.cc
  12058. (execute): Do not set filename and totalLength to reqInfo.
  12059. Set chunk checksum to reqInfo if it is not null.
  12060. * src/HttpResponseCommand.cc
  12061. (executeInternal): Fixed filename in log.
  12062. (handleDefaultEncoding): Removed the call to initBitfield() and
  12063. markAllPiecesDone().
  12064. (handleOtherEncoding): Added HEAD method handling.
  12065. * src/FtpNegotiateCommand.cc
  12066. (executeInternal): Added SEQ_HEAD_OK handling.
  12067. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12068. return false.
  12069. * src/FtpNegotiateCommand.h
  12070. (SEQ_HEAD_OK): New definition.
  12071. * src/SegmentMan.cc
  12072. (initBitfield): Delete bitfield.
  12073. (isChunkChecksumValidationReady): Fixed the condition.
  12074. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12075. works fine.
  12076. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12077. * src/Xml2MetalinkProcessor.h
  12078. (xpathExists): New function.
  12079. * src/Xml2MetalinkProcessor.cc
  12080. (xpathExists): New function.
  12081. Not to send HEAD request if filename and size are available in Metalink
  12082. file:
  12083. * src/UrlRequestInfo.h
  12084. (filename): New variable.
  12085. (totalLength): New variable.
  12086. (setTotalLength): New function.
  12087. (setFilename): New function.
  12088. * src/MetalinkRequestInfo.cc
  12089. (execute): Set filename and size to UrlRequestInfo.
  12090. * src/MetalinkEntry.cc
  12091. (MetalinkEntry): Initialize size with 0.
  12092. * src/UrlRequestInfo.cc
  12093. (execute): Set filename and size to SegmentMan.
  12094. Not to download rest of the files after selected files are downloaded
  12095. in BitTorrent:
  12096. * src/PieceStorage.h
  12097. (allDownloadFinished): New function.
  12098. * src/DefaultBtAnnounce.cc
  12099. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12100. downloadFinished.
  12101. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12102. * src/DefaultPieceStorage.cc
  12103. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12104. Commented out the call to finishSelectiveDownloadingMode().
  12105. (downloadFinished): Call isFilteredAllBitSet() instead of
  12106. isAllBitSet().
  12107. (allDownloadFinished): New function.
  12108. * src/DefaultBtInteractive.cc
  12109. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12110. downloadFinished().
  12111. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12112. * src/TorrentDownloadEngine.cc
  12113. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12114. * src/BitfieldMan.h
  12115. (isFilteredAllBitSet): New function.
  12116. * src/ShareRatioSeedCriteria.h
  12117. (PieceStorage.h): New include.
  12118. (pieceStorage): New variable.
  12119. (evaluate):
  12120. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12121. * src/BitfieldMan.cc
  12122. (isFilteredAllBitSet): New function.
  12123. (isAllBitSet): Filter is not took into account.
  12124. Rename --force-truncate as --allow-overwrite:
  12125. * src/TorrentRequestInfo.cc
  12126. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12127. * src/main.cc
  12128. (showUsage): --force-truncate -> --allow-overwrite
  12129. * src/message.h
  12130. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12131. * src/prefs.h
  12132. (PREF_FORCE_TRUNCATE): Removed.
  12133. (PREF_ALLOW_OVERWRITE): New definition.
  12134. * src/SegmentMan.cc
  12135. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12136. * src/MetalinkRequestInfo.cc
  12137. (execute): Queueing message are now logged in info level.
  12138. * src/common.h
  12139. (LONG_LONG_MAX): Removed.
  12140. (LONG_LONG_MIN): Removed.
  12141. * src/HttpResponseCommand.cc
  12142. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12143. * src/FtpNegotiateCommand.cc
  12144. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12145. * src/main.cc
  12146. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12147. command-line option.
  12148. (main): Added --check-integriy and --realtime-chunk-checksum
  12149. command-line option.
  12150. --force-truncate -> --allow-overwrite
  12151. Set initial value of --check-integrity option to false.
  12152. Don't show usage when error occurs while persing command-line options.
  12153. Removed deprecated --upload-limit option.
  12154. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12155. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12156. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12157. * src/BtAllowedFastMessage.cc:
  12158. * src/BtBitfieldMessage.cc
  12159. * src/BtCancelMessage.cc
  12160. * src/BtChokeMessage.cc
  12161. * src/BtHaveAllMessage.cc
  12162. * src/BtHaveMessage.cc
  12163. * src/BtHaveNoneMessage.cc
  12164. * src/BtInterestedMessage.cc
  12165. * src/BtNotInterestedMessage.cc
  12166. * src/BtPieceMessage.cc
  12167. * src/BtPortMessage.cc
  12168. * src/BtRejectMessage.cc
  12169. * src/BtRequestMessage.cc
  12170. * src/BtSuggestPieceMessage.cc
  12171. * src/BtUnchokeMessage.cc
  12172. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12173. files are affected.
  12174. * src/ChunkChecksumValidator.cc
  12175. * src/SegmentMan.cc
  12176. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12177. To add chunk checksum validation:
  12178. * src/MetalinkEntry.h
  12179. (MetalinkChunkChecksum.h): New include.
  12180. (chunkChecksum): New variable.
  12181. * src/Request.h
  12182. (method): New variable.
  12183. (setMethod): New function.
  12184. (getMethod): New function.
  12185. (METHOD_GET): New static constant.
  12186. (METHOD_HEAD): New static constant.
  12187. * src/Xml2MetalinkProcessor.h
  12188. (getPieceHash): New function.
  12189. * src/PieceStorage.h
  12190. (markAllPiecesDone): New function.
  12191. (checkIntegrity): New function.
  12192. * src/FileAllocator.h
  12193. (NullFileAllocationMonitor.h): New include.
  12194. (FileAllocator): Initialize fileAllocationMonitor with new
  12195. NullFileAllocationMonitor().
  12196. * src/MultiDiskAdaptor.h
  12197. (messageDigest.h): Remove include.
  12198. (ctx): Removed.
  12199. (hashUpdate): Added ctx.
  12200. (MultiDiskAdaptor): Removed ctx.
  12201. (sha1Sum): Renamed as messageDigest.
  12202. (messageDigest): New function.
  12203. * src/UrlRequestInfo.h
  12204. (HeadResult): New class.
  12205. (digestAlgo): New variable.
  12206. (chunkChecksumLength): New variable.
  12207. (chunkChecksums): New variable.
  12208. (getHeadResult): New function.
  12209. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12210. (setDigestAlgo): New function.
  12211. (setChunkChecksumLength): New function.
  12212. (setChunkChecksums): New function.
  12213. * src/DefaultPieceStorage.cc
  12214. (DiskAdaptorWriter.h): New include.
  12215. (ChunkChecksumValidator.h): New include.
  12216. (markAllPiecesDone): New function.
  12217. (checkIntegrity): New function.
  12218. * src/DefaultBtContext.h
  12219. (getPieceHashes): New function.
  12220. * src/TorrentRequestInfo.cc
  12221. (execute): Try to validate chunk checksum if file already exists and
  12222. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12223. * src/messageDigest.h
  12224. (~MessageDigestContext): Added digestFree().
  12225. * src/MetalinkRequestInfo.cc
  12226. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12227. * src/DiskAdaptor.h
  12228. (messageDigest.h): New include.
  12229. (sha1Sum): Renamed as messageDigest.
  12230. (messageDigest): New function.
  12231. * src/DownloadCommand.h
  12232. (PeerStat.h): New include.
  12233. (maxDownloadSpeedLimit): New variable.
  12234. (startupIdleTime): New variable.
  12235. (lowestDownloadSpeedLimit): New variable.
  12236. (peerStat): New variable.
  12237. (setMaxDownloadSpeedLimit): New function.
  12238. (setStartupIdleTime): New function.
  12239. (setLowestDownloadSPeedLimit): New function.
  12240. * src/BtContext.h
  12241. (getPieceHashes): New function.
  12242. * src/main.cc
  12243. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12244. option to true for testing purpose.
  12245. * src/BtPieceMessage.cc
  12246. (checkPieceHash): Use messageDigest
  12247. * src/DownloadEngine.cc
  12248. (SetDescriptor): Removed.
  12249. (AccumulateActiveCommand): Removed.
  12250. (waitData): Rewritten.
  12251. (updateFdSet): Rewritten.
  12252. * src/MultiDiskAdaptor.cc
  12253. (hashUpdate): Added ctx.
  12254. (sha1Sum): Renamed as messageDigest.
  12255. (messageDigest): New function.
  12256. * src/BitfieldMan.h
  12257. (isBitRangeSet): New function.
  12258. (unsetBitRange): New function.
  12259. * src/ByteArrayDiskWriter.h
  12260. (sha1Sum): Renamed as messageDigest.
  12261. (messageDigest): New function.
  12262. * src/ConsoleDownloadEngine.cc
  12263. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12264. * src/DiskWriter.h
  12265. (messageDigest.h): New include.
  12266. (sha1Sum): Renamed as messageDigest.
  12267. (messageDigest): New function.
  12268. * src/ChunkChecksumValidator.h: New class.
  12269. * src/DiskAdaptorWriter.h: New class.
  12270. * src/prefs.h
  12271. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12272. (PREF_CHECK_INTEGRITY): New definition.
  12273. * src/HttpResponseCommand.cc
  12274. (handleDefaultEncoding): Added method "HEAD" handling.
  12275. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12276. (handleOtherEncoding):
  12277. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12278. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12279. startupIdleTime, lowestDownloadSpeedLimit to command.
  12280. * src/SegmentMan.h
  12281. (getSegmentEntryByIndex): New function.
  12282. (getSegmentEntryByCuid): New function.
  12283. (getSegmentEntryIteratorByCuid): New function.
  12284. (diskWriter): DiskWriter -> DiskWriterHandle
  12285. (pieceHashes): New variable.
  12286. (chunkHashLength): New variable.
  12287. (digestAlgo): New variable.
  12288. (FindPeerStat): Removed.
  12289. (getPeerStat): Rewritten.
  12290. (markAllPiecesDone): New function.
  12291. (checkIntegrity): New function.
  12292. (tryChunkChecksumValidation): New function.
  12293. (isChunkChecksumValidationReady): New function.
  12294. * src/BitfieldMan.cc
  12295. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12296. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12297. blocks to 0.
  12298. (isBitRangeSet): New function.
  12299. (unsetBitRange): New function.
  12300. * src/FtpNegotiateCommand.cc
  12301. (executeInternal): Set maxDownloadSpeedLimit,
  12302. startupIdleTime, lowestDownloadSpeedLimit to command.
  12303. (recvSize): Added method "HEAD" handling.
  12304. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12305. * src/AbstractSingleDiskAdaptor.cc
  12306. (sha1Sum): Renamed as messageDigest.
  12307. (messageDigest): New function.
  12308. * src/AbstractSingleDiskAdaptor.h
  12309. (sha1Sum): Renamed as messageDigest.
  12310. (messageDigest): New function.
  12311. * src/Util.h
  12312. (indexRange): New function.
  12313. * src/MetalinkEntry.cc
  12314. (MetalinkEntry): Initialized chunkChecksum to 0.
  12315. * src/ShaVisitor.cc
  12316. (~ShaVisitor): Removed the call to ctx.digestFree().
  12317. * src/SegmentMan.cc
  12318. (ChunkChecksumValidator.h): New include.
  12319. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12320. to DIGEST_ALGO_SHA1.
  12321. (~SegmentMan): Removed diskWriter.
  12322. (FindSegmentEntryByIndex): Removed.
  12323. (FindSegmentEntryByCuid): Removed.
  12324. (checkoutSegment): Rewritten.
  12325. (findSlowerSegmentEntry): Rewritten.
  12326. (getSegment): Rewritten.
  12327. (updateSegment): Rewritten.
  12328. (completeSegment): Rewritten.
  12329. (markAllPiecesDone): New function.
  12330. (checkIntegrity): New function.
  12331. (isChunkChecksumValidationReady): New function.
  12332. (tryChunkChecksumValidation): New function.
  12333. * src/Xml2MetalinkProcessor.cc
  12334. (getEntry): Get size and set it to entry.
  12335. Get chunk checksum and set it to entry.
  12336. (getPieceHash): New function.
  12337. * src/Util.cc
  12338. (sha1Sum): Removed ctx.digestFree()
  12339. (fileChecksum): Removed ctx.digestFree()
  12340. (indexRange): New function.
  12341. * src/Request.cc
  12342. (METHOD_GET): New variable.
  12343. (METHOD_HEAD): New variable.
  12344. (Request): Added method.
  12345. * src/UrlRequestInfo.cc
  12346. (FatalException.h): New include.
  12347. (message.h): New include.
  12348. (operator<<): Added operator<< for class HeadResult.
  12349. (getHeadResult): New function.
  12350. (execute): Get filename and size in separate download engine.
  12351. * src/ChunkChecksumValidator.cc: New class.
  12352. * src/DownloadCommand.cc:
  12353. (DownloadCommand): Added peerStat.
  12354. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12355. the value from Option.
  12356. The buffer size is now 16KB.
  12357. Use peerStat member instead of getting it from SegmentMan.
  12358. Use startupIdleTime member instead of gettingit from Option.
  12359. Added chunk checksum validation.
  12360. * src/AbstractDiskWriter.cc
  12361. (AbstractDiskWriter): Removed ctx.
  12362. (~AbstractDiskWriter): Removed ctx.digestFree()
  12363. (writeDataInternal): Returns the return value of write.
  12364. (readDataInternal): Returns the return value of read.
  12365. (sha1Sum): Renamed as messageDigest
  12366. (messageDigest): New function.
  12367. * src/AbstractDiwkWriter.h
  12368. (messageDigest.h): Removed include.
  12369. (ctx): Removed.
  12370. (sha1Sum): Renamed as messageDigest
  12371. (messageDigest): New function.
  12372. * src/DefaultPieceStorage.h
  12373. (markAllPiecesDone): New function.
  12374. (checkIntegrity): New function.
  12375. * src/NullFileAllocationMonitor.h: New class.
  12376. * src/MetalinkChunkChecksum.h: New class.
  12377. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12378. To decrease CPU usage in bittorrent download, calculation results in
  12379. BitfieldMan were cached and realtime fetching PeerObject was removed
  12380. with WeakHandle introduced. Option values are set to the objects
  12381. by setter before download begins.
  12382. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12383. * src/DefaultBtRequestFactory.h
  12384. (dispatcher): BtMessageDispatcherHandle ->
  12385. BtMessageDispatcherWeakHandle.
  12386. (messageFactory): New variable.
  12387. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12388. BtMessageDispatcherWeakHandle.
  12389. (setBtMessageFactory): New function.
  12390. * src/DefaultBtMessageDispatcher.cc:
  12391. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12392. from Option.
  12393. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12394. feating the value from Option.
  12395. Use messageFactory member.
  12396. * src/PeerInteractionCommand.cc
  12397. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12398. Add reverse dependencies to factory object.
  12399. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12400. dispatcher.
  12401. Set messageFactory to receiver.
  12402. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12403. btInteractive.
  12404. Set receiver to peerObject.
  12405. Set maxDownloadSpeedLimit to this.
  12406. (executeInternal): Use maxDownloadSpeedLimit member.
  12407. * src/BtChokeMessage.cc
  12408. (doReceivedAction): Use dispatcher, requestFactory member.
  12409. (onSendComplete): Use dispatcher member.
  12410. * src/PeerInteractionCommand.h
  12411. (maxDownloadSpeedLimit): New variable.
  12412. * src/DefaultBtMessageReceiver.h
  12413. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12414. (dispatcher):
  12415. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12416. (messageFactory): New variable.
  12417. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12418. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12419. (setDispatcher):
  12420. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12421. (setBtMessageFactory): New function.
  12422. * src/DefaultBtInteractive.cc
  12423. (initiateHandshake): Use messageFactory member.
  12424. (addBitfieldMessageToQueue): Use messageFactory member.
  12425. (addAllowedFastMessageToQueue): Use messageFactory member.
  12426. (decideChoking): Use messageFactory member.
  12427. (checkHave): Use messageFactory member.
  12428. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12429. (receiveMessages): Use maxDownloadSpeedLimit member.
  12430. (decideInterest): Use messageFactory member.
  12431. * src/BtRequestMessage.cc
  12432. (doReceivedAction): Use messageFactory, dispatcher member.
  12433. (onQueued): Use dispatcher member.
  12434. * src/BtPieceMessage.cc
  12435. (doReceivedAction): Use dispatcher member.
  12436. (send): Use peerConnection member.
  12437. (onWrongPiece): Use requestFactory member.
  12438. (handleChokingEvent): Use messageFactory, dispatcher member.
  12439. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12440. * src/BtMessageDispatcher.h
  12441. (BtMessageDispatcherWeakHandle): New type definition.
  12442. * src/SimpleBtMessage.cc
  12443. (send): Use peerConnection member.
  12444. * src/BtRejectMessage.cc
  12445. (doReceivedAction): Use dispatcher member.
  12446. * src/DefaultBtMessageDispatcher.h
  12447. (Option.h): Removed include.
  12448. (messageFactory): New variable.
  12449. (option): Removed.
  12450. (maxUploadSpeedLimit): New variable.
  12451. (requestTimeout): New variable.
  12452. (DefaultBtMessageDispatcher): Removed option.
  12453. Added maxUploadSpeedLimit, requestTimeout.
  12454. (setOption): Removed.
  12455. (getOption): Removed.
  12456. (setMaxUploadSpeedLimit): New function.
  12457. (setRequestTimeout): New function.
  12458. (setBtMessageFactory): New function.
  12459. * src/DefaultBtInteractive.h
  12460. (btMessageReceiver):
  12461. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12462. (dispatcher):
  12463. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12464. (btRequestFactory):
  12465. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12466. (peerConnection):
  12467. PeerConnectionHandle -> PeerConnectionWeakHandle
  12468. (messageFactory): New variable.
  12469. (option): Removed.
  12470. (keepAliveInterval): New variable.
  12471. (maxDownloadSpeedLimit): New variable.
  12472. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12473. (setBtMessageReceiver):
  12474. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12475. (setDispatcher):
  12476. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12477. (setBtRequestFactory):
  12478. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12479. (setPeerConnection):
  12480. PeerConnectionHandle -> PeerConnectionWeakHandle
  12481. (setOption): Removed.
  12482. (setKeepAliveInterval): New function.
  12483. (setMaxDownloadSpeedLimit): New function.
  12484. (setBtMessageFactory): New function.
  12485. * src/BitfieldMan.h
  12486. (cachedNumMissingBlock): New variable.
  12487. (cachedNumFilteredBlock): New variable.
  12488. (cachedCompletedLength): New variable.
  12489. (cachedFilteredComletedLength): New variable.
  12490. (cachedFilteredTotalLength): New variable.
  12491. (countMissingBlockNow): New function.
  12492. (countFilteredBlockNow): New function.
  12493. (getFilteredTotalLengthNow): New function.
  12494. (getCompletedLengthNow): New function.
  12495. (getFilteredCompletedLengthNow): New function.
  12496. (updateCache): New function.
  12497. * src/AbstractBtMessage.h
  12498. (BtMessageDispatcher.h): New include.
  12499. (PeerConnection.h): New include.
  12500. (BtRequestFactory.h): New include
  12501. (BtMessageFactory.h): New include.
  12502. (dispatcher): New variable.
  12503. (messageFactory): New variable.
  12504. (peerConnection: New variable.
  12505. (setBtMessageDispatcher): New function.
  12506. (setPeerConnection): New function.
  12507. (setBtMessageFactory): New function.
  12508. (setBtRequestFactory): New function.
  12509. * src/DefaultBtMessageFactory.cc
  12510. (setCommonProperty): Set dispatcher, requestFactory, this,
  12511. peerConnection to msg.
  12512. * src/BtRegistry.h
  12513. (BT_MESSAGE_RECEIVER): New macro.
  12514. * src/PeerConnection.h
  12515. (PeerConnectionWeakHandle): New type definition.
  12516. * src/BtMessageFactory.h
  12517. (BtMessageFactoryWeakHandle): New type definition.
  12518. * src/BitfieldMan.cc
  12519. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12520. cachedCompletedLength, cachedFilteredComletedLength,
  12521. cachedFilteredTotalLength.
  12522. Call updateCache().
  12523. (countMissingBlock): Return cachedNumMissingBlock.
  12524. (countMissingBlockNow): New function.
  12525. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12526. (countFilteredBlockNow): New function.
  12527. (setBit): Call updateCache().
  12528. (unsetBit): Call updateCache().
  12529. (setBitfield): Call updateCache().
  12530. (clearAllBit): Call updateCache().
  12531. (setAllBit): Use setBitInternal instead of setBit.
  12532. Call updateCache().
  12533. (addFilter): Call updateCache().
  12534. (enableFilter): Call updateCache().
  12535. (disableFilter): Call updateCache().
  12536. (clearFilter): Call updateCache().
  12537. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12538. (getFilteredTotalLengthNow): New function.
  12539. (getCompletedLength): Return cachedCompletedLength.
  12540. (getCompletedLengthNow): New function.
  12541. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12542. (getFilteredCompletedLengthNow): New function.
  12543. (updateCache): New function.
  12544. * src/BtMessageReceiver.h
  12545. (BtMessageReceiverWeakHandle): New type definition.
  12546. * src/DefaultBtMessageReceiver.cc
  12547. (receiveHandshake): Use messageFactory member.
  12548. (sendHandshake): Use messageFactory member.
  12549. (receiveMessage): Use messageFactory member.
  12550. * src/DefaultBtMessageFactory.h
  12551. (dispatcher): New variable.
  12552. (requestFactory): New variable.
  12553. (peerConnection): New variablle.
  12554. (setBtMessageDispatcher): New function.
  12555. (setBtRequestFactory): New function.
  12556. (setPeerConnection): New function.
  12557. * src/SharedHandle.h
  12558. (RefCount): New class.
  12559. (WeakHandle): New class.
  12560. * src/PeerObject.h
  12561. (BtMessageReceiver.h): New include.
  12562. (PeerObject): Added btMessageReceiver.
  12563. (btMessageReceiver): New variable.
  12564. * src/Util.cc
  12565. (countBit): Simplified.
  12566. * src/BtCancelMessage.cc
  12567. (doReceivedAction): Use dispatcher member.
  12568. * src/BtRequestFactory.h
  12569. (BtRequestFactoryWeakHandle): New type definition.
  12570. * src/PeerStorage.h
  12571. (downloadSpeed): int -> uint32_t
  12572. (uploadSpeed): int -> uint32_t
  12573. (sessionDownloadLength): long long int -> uint64_t
  12574. (sessionUploadLength): long long int -> uint64_t
  12575. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12576. To add RecoverableException, FatalException:
  12577. * src/AbstractCommand.cc
  12578. (onAbort): Exception -> RecoverableException
  12579. * src/PeerAbstractCommand.h
  12580. (RecoverableException.h): New include.
  12581. (onAbort): Exception -> RecoverableException.
  12582. * src/PeerInteractionCommand.cc
  12583. (onAbort): Exception -> RecoverableException.
  12584. * src/PeerAbstractCommand.cc
  12585. (execute): Exception -> RecoverableException.
  12586. (onAbort): Exception -> RecoverableException.
  12587. * src/TorrentRequestInfo.cc
  12588. (execute): Exception -> RecoverableException.
  12589. * src/MetalinkRequestInfo.cc
  12590. (execute): Exception -> RecoverableException.
  12591. * src/MetaFileUtil.cc: RecoverableException.
  12592. * src/AbstractCommand.h
  12593. (onAbort): Exception -> RecoverableException.
  12594. * src/DlRetryEx.h: Exception -> RecoverableException.
  12595. * src/DlAbortEx.h: Exception -> RecoverableException.
  12596. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12597. * src/Util.cc: Exception -> RecoverableException.
  12598. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12599. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12600. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12601. To make ID static const int
  12602. * src/BtInterestedMessage.h
  12603. (ID_t): Removed.
  12604. (ID): New variable.
  12605. (getId): Made non-const.
  12606. * src/BtPieceMessage.h
  12607. (ID_t): Removed.
  12608. (ID): New variable.
  12609. (getId): Made non-const.
  12610. * src/BtChokeMessage.h
  12611. (ID_t): Removed.
  12612. (ID): New variable.
  12613. (getId): Made non-const.
  12614. * src/BtHaveAllMessage.h
  12615. (ID_t): Removed.
  12616. (ID): New variable.
  12617. (getId): Made non-const.
  12618. * src/BtKeepAliveMessage.h
  12619. (ID_t): Removed.
  12620. (ID): New variable.
  12621. (getId): Made non-const.
  12622. * src/BtHandshakeMessage.h
  12623. (ID): New variable.
  12624. (getId): Made non-const.
  12625. * src/BtSuggestPieceMessage.h
  12626. (ID_t): Removed.
  12627. (ID): New variable.
  12628. (getId): Made non-const.
  12629. * src/BtPortMessage.h
  12630. (ID_t): Removed.
  12631. (ID): New variable.
  12632. (getId): Made non-const.
  12633. * src/AbstractBtMessage.h
  12634. (id): Removed.
  12635. (AbstractBtMessage): Removed id.
  12636. (getId): Removed.
  12637. * src/BtHaveMessage.h
  12638. (ID_t): Removed.
  12639. (ID): New variable.
  12640. (getId): Made non-const.
  12641. * src/BtAllowedFastMessage.h
  12642. (ID_t): Removed.
  12643. (ID): New variable.
  12644. (getId): Made non-const.
  12645. * src/BtCancelMessage.h
  12646. (ID_t): Removed.
  12647. (ID): New variable.
  12648. (getId): Made non-const.
  12649. * src/BtNotInterestedMessage.h
  12650. (ID_t): Removed.
  12651. (ID): New variable.
  12652. (getId): Made non-const.
  12653. * src/BtChokeMessage.h
  12654. (ID_t): Removed.
  12655. (ID): New variable.
  12656. (getId): Made non-const.
  12657. * src/BtRejectMessage.h
  12658. (ID_t): Removed.
  12659. (ID): New variable.
  12660. (getId): Made non-const.
  12661. * src/BtBitfieldMessage.h
  12662. (ID_t): Removed.
  12663. (ID): New variable.
  12664. (getId): Made non-const.
  12665. * src/BtUnchokeMessage.h
  12666. (ID_t): Removed.
  12667. (ID): New variable.
  12668. (getId): Made non-const.
  12669. * src/BtRequestMessage.h
  12670. (ID_t): Removed.
  12671. (ID): New variable.
  12672. (getId): Made non-const.
  12673. * src/BtHaveMessage.h
  12674. (ID_t): Removed.
  12675. (ID): New variable.
  12676. (getId): Made non-const.
  12677. To add --force-truncate command-line option and a check whether
  12678. the file already exists:
  12679. * src/DirectDiskAdaptor.h
  12680. (getFilePath): Made virtual public.
  12681. * src/MultiDiskAdaptor.h
  12682. (File.h): New include.
  12683. (DiskWriterEntry::fileEntry): Made private.
  12684. (DiskWriterEntry::fileExists): New function.
  12685. (DiskWriterEntry::getFileEntry): New function.
  12686. (fileExists): New function.
  12687. (getFilePath): New function.
  12688. * src/TorrentRequestInfo.cc
  12689. (FatalException.h): New include.
  12690. (message.h): New include.
  12691. (RecoverableException.h): New include.
  12692. (execute): Added a check whether file is already exists or not.
  12693. * src/DiskAdaptor.h
  12694. (fileExists): New function.
  12695. (getFilePath): New function.
  12696. * src/main.cc
  12697. (showUsage): Added an explanation of --force-truncate command-line
  12698. option.
  12699. (main): Added --force-truncate command-line option.
  12700. * src/Exception.h
  12701. (setMsg): buf[256] -> buf[1024]
  12702. * src/CopyDiskWriter.h
  12703. (getFilePath): Made public virtual.
  12704. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12705. (fileExists): New function.
  12706. * src/DownloadEngineFactory.cc
  12707. (newTorrentConsoleEngine): Don't open file here.
  12708. * src/message.h
  12709. (EX_FILE_ALREADY_EXISTS): New definition.
  12710. * src/prefs.h
  12711. (PREF_FOECE_TRUNCATE): New definition.
  12712. * src/HttpResponseCommand.cc
  12713. (handleDefaultEncoding): Added a check whether the file already exists.
  12714. * src/SegmentMan.h
  12715. (fileExists): New function.
  12716. (shouldCancelDownloadForSafety): New function.
  12717. * src/FtpNegotiateCommand.cc
  12718. (recvSize): Added a check whether the file already exists.
  12719. * src/AbstractSingleDiskAdaptor.cc
  12720. (File.h): New include.
  12721. (fileExists): New function.
  12722. * src/AbstractSingleDiskAdaptor.h
  12723. (getFilePath): Removed.
  12724. (fileExists): New function.
  12725. * src/SegmentMan.cc
  12726. (fileExists): New function.
  12727. (shouldCancelDownloadForSafety): New function.
  12728. To fix regression bug in torrent downloading:
  12729. * src/DefaultBtRequestFactory.cc
  12730. (doChokedAction): New function.
  12731. * src/DefaultBtRequestFactory.h
  12732. (doChokedAction): New function.
  12733. * src/DefaultBtMessageDispatcher.cc
  12734. (doChokedAction): Do not delete request if its target is in allowed
  12735. fast set.
  12736. * src/DefaultBtInteractive.cc
  12737. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12738. (sendKeepAlive): Send keep alive message even if the outgoing message
  12739. queue is not empty.
  12740. (decideInterest): Simplified the code.
  12741. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12742. it is already called when BtChokeMessage is received from a peer.
  12743. * src/BtRequestFactory.h
  12744. (doChokedAction): New function.
  12745. To clean up code:
  12746. * src/PeerInteractionCommand.h
  12747. (executeInternal): Added virtual keyword explicitly.
  12748. (prepareForRetry): Added virtual keyword explicitly.
  12749. (prepareForNextPeer): Added virtual keyword explicitly.
  12750. (onAbort): Added virtual keyword explicitly.
  12751. * src/RequestSlot.cc
  12752. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12753. * src/BtPieceMessage.cc
  12754. (doReceivedAction): Added a debug log of piece's bitfield.
  12755. * src/Piece.h
  12756. (getBitfieldLength): New function.
  12757. * src/ByteArrayDiskWriter.cc
  12758. (clear): Added buf = 0 to avoid double free corruption.
  12759. * src/FileAllocator.cc
  12760. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12761. Added cp.reset().
  12762. * src/BitfieldMan.h
  12763. (operator=): Rewritten.
  12764. * src/BitfieldMan.cc
  12765. (BitfieldMan): Initialized bitfield, useBitfield.
  12766. * src/PeerConnection.cc
  12767. (receiveMessage): Added a call to socket->readable() after getting
  12768. message length to avoid possible EOF.
  12769. * src/Util.cc
  12770. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12771. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12772. To add an ability to pre-allocate file space:
  12773. * src/DirectDiskAdaptor.h: Rewritten.
  12774. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12775. * src/MultiDiskAdaptor.h: Rewritten.
  12776. * src/DefaultPieceStorage.cc
  12777. (MultiDiskWriter.h): Removed include.
  12778. (PreAllocationDiskWriter.h): Removed include.
  12779. (FileAllocationMonitor.h): New include.
  12780. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12781. (initStorage): Rewritten.
  12782. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12783. * src/FileAllocator.h: New class.
  12784. * src/FileAllocator.cc: New class.
  12785. * src/FileAllocationMonitor.h: New class.
  12786. * src/FileAllocationMonitor.cc: New class.
  12787. * src/ConsoleFileAllocationMonitor.h: New class.
  12788. * src/ConsoleFileAllocationMonitor.cc: New class.
  12789. * src/AbstractSingleDiskAdaptor.h: New class.
  12790. * src/AbstractSingleDiskAdaptor.cc: New class.
  12791. * src/DiskAdaptor.h
  12792. (Directory.h): Removed include.
  12793. (DiskWriter.h): Removed include.
  12794. (FileEntry.h): Removed include.
  12795. (diskWriter): Removed.
  12796. (DiskAdaptor): Removed diskWriter.
  12797. (openFile): Made pure virtual.
  12798. (closeFile): Made pure virtual.
  12799. (openExistingFile): Made pure virtual.
  12800. (initAndOpenFile): Made pure virtual.
  12801. (writeData): Made pure virtual.
  12802. (readData): Made pure virtual.
  12803. (sha1Sum): Made pure virtual.
  12804. (getStoreDir): Returns const reference of storeDir.
  12805. (DiskAdaptorHandle): New type definition.
  12806. * src/main.cc
  12807. (ConsoleFileAllocationMonitor.h): New include.
  12808. (showUsage): Added default value description of -s option.
  12809. Added the description of --file-allocation option.
  12810. (main): Set default value of --file-allocation option to 'none'.
  12811. Added --file-allocation command-line option.
  12812. Setup FileAllocationMonitorFactory.
  12813. * src/FtpInitiateConnectionCommand.cc
  12814. (executeInternal): Removed diskWriter related processing, which was
  12815. moved to FtpNegotiationCommand.cc.
  12816. * src/DirectDiskAdaptor.cc
  12817. (getFilePath): Made non-const.
  12818. * src/CopyDiskAdaptor.h
  12819. (DiskAdaptor.h): Removed include.
  12820. (DiskWriter.h): Removed include.
  12821. (AbstractSingleDiskAdaptor.h): New include.
  12822. (getFilePath): Made non-const. Added virtual keyword.
  12823. (CopyDiskAdaptor): Removed diskWriter.
  12824. (getTempFile): Returns const reference.
  12825. (CopyDiskAdaptorHandle): New type definition.
  12826. * src/ByteArrayDiskWriter.cc
  12827. (clear): Simplified.
  12828. (initAndOpenFile): Rewritten.
  12829. (openFile): Call initAndOpenFile()
  12830. * src/MultiDiskAdaptor.cc: Rewritten.
  12831. * src/DownloadEngineFactory.cc
  12832. (FileAllocator.h): New include.
  12833. (FileAllocationMonitor.h): New include.
  12834. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12835. create DefaultDiskWriter with file allocator.
  12836. * src/DiskWriter.h
  12837. (initAndOpenFile): Added totalLength argument.
  12838. (openFile): Added totalLength argument.
  12839. * src/prefs.h
  12840. (PREF_FILE_ALLOCATION): New definition.
  12841. (V_PREALLOC): New definition.
  12842. (V_NONE): New definition.
  12843. * src/HttpResponseCommand.cc
  12844. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12845. size.
  12846. * src/FtpNegotiateCommand.cc
  12847. (Util.h): New include.
  12848. (recvSize): Open file here.
  12849. * src/Util.h
  12850. (ullitos): New function.
  12851. * src/CopyDiskWriter.h
  12852. (getFilePath): Made non-const.
  12853. * src/DefaultDiskWriter.h
  12854. (Option.h): New include.
  12855. (totalLength): Removed.
  12856. (DefaultDiskWriter): Removed totalLength.
  12857. (initAndOpenFile): Added totalLength argument.
  12858. (DefaultDiskWriterHandle): New type definition.
  12859. (createNewDiskWriter): New function.
  12860. * src/Util.cc
  12861. (ullitos): New function.
  12862. * src/DefaultDiskWriter.cc
  12863. (message.h): New include.
  12864. (FileAllocator.h): New include.
  12865. (prefs.h): New include.
  12866. (Util.h): New include.
  12867. (DefaultDiskWriter): Removed totalLength.
  12868. (initAndOpenFile): Added file allocation.
  12869. (createNewDiskWriter): New function. Just for temporary solution.
  12870. It will be rewritten later.
  12871. * src/DiskAdaptor.cc
  12872. (DiskAdaptor): Removed diskWriter.
  12873. * src/AbstractDiskWriter.cc
  12874. (LogFactory.h): New include.
  12875. (AbstractDiskWriter): Added fileAllocator, logger.
  12876. (openFile): Added totalLength argument.
  12877. * src/AbstractDiskWriter.h
  12878. (FileAllocator.h): New include.
  12879. (Logger.h): New include.
  12880. (fileAllocator): New variable.
  12881. (logger): New variable.
  12882. (openFile): Added totalLength argument. Added virtual keyword
  12883. explicitly.
  12884. (openExistingFile): Added totalLength argument. Added virtual keyword
  12885. explicitly.
  12886. (closeFile): Added virtual keyword explicitly.
  12887. (sha1Sum): Added virtual keyword explicitly.
  12888. (writeData): Added virtual keyword explicitly.
  12889. (readData): Added virtual keyword explicitly.
  12890. (setFileAllocator): New function.
  12891. * src/DefaultPieceStorage.h
  12892. (FileAllocator.h): New include.
  12893. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12894. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12895. * src/FileProgressMonitor.h: New class.
  12896. To compile aria2 on PC-BSD:
  12897. * src/DefaultBtContext.cc
  12898. (libgen.h): New include.
  12899. To fix memory leak:
  12900. * src/Exception.h
  12901. (~Exception): Delete cause. Fixed memory leak.
  12902. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. Rewritten a portion of bittorrent implementation:
  12904. * src/BtMessageValidator.h: New class.
  12905. * src/BtBitfieldMessageValidator.h: New class.
  12906. * src/BtHandshakeMessageValidator.h: New class.
  12907. * src/BtRequestMessageValidator.h: New class.
  12908. * src/BtSuggestPieceMessageValidator.h: New class.
  12909. * src/BtAllowedFastMessageValidator.h: New class.
  12910. * src/BtRejectMessageValidator.h: New class.
  12911. * src/BtCancelMessageValidator.h: New class.
  12912. * src/BtPieceMessageValidator.h: New class.
  12913. * src/BtHaveMessageValidator.h: New class.
  12914. * src/BtEventListener.h: New class.
  12915. * src/AbstractBtEventListener.h: New class.
  12916. * src/BtEvent.h: New class.
  12917. * src/BtChokingEvent.h: New class.
  12918. * src/BtChokedEvent.h: New class.
  12919. * src/BtCancelSendingPieceEvent.h: New class.
  12920. * src/BtAbortOutstandingRequestEvent.h: New class.
  12921. * src/Randomizer.h: New class.
  12922. * src/SimpleRandomizer.h: New class.
  12923. * src/BtMessage.h: New class.
  12924. * src/AbstractBtMessage.h: New class.
  12925. * src/SimpleBtMessage.h: New class.
  12926. * src/BtHaveMessage.h: New class.
  12927. * src/BtInterestedMessage.h: New class.
  12928. * src/BtAllowedFastMessage.h: New class.
  12929. * src/BtUnchokeMessage.h: New class.
  12930. * src/BtCancelMessage.h: New class.
  12931. * src/BtNotInterestedMessage.h: New class.
  12932. * src/BtChokeMessage.h: New class.
  12933. * src/BtHaveNoneMessage.h: New class.
  12934. * src/BtHandshakeMessage.h: New class.
  12935. * src/BtSuggestPieceMessage.h: New class.
  12936. * src/BtHaveMessage.h: New class.
  12937. * src/BtPieceMessage.h: New class.
  12938. * src/BtHaveAllMessage.h: New class.
  12939. * src/BtKeepAliveMessage.h: New class.
  12940. * src/BtPortMessage.h: New class.
  12941. * src/BtRejectMessage.h: New class.
  12942. * src/BtBitfieldMessage.h: New class.
  12943. * src/BtRequestMessage.h: New class.
  12944. * src/DefaultBtRequestFactory.h: New class.
  12945. * src/DefaultBtMessageReceiver.h: New class.
  12946. * src/BtInteractive.h: New class.
  12947. * src/BtMessageDispatcher.h: New class.
  12948. * src/DefaultBtMessageDispatcher.h: New class.
  12949. * src/DefaultBtInteractive.h: New class.
  12950. * src/BitfieldManFactory.h: New class.
  12951. * src/HandleRegistry.h: New class.
  12952. * src/BtMessageFactory.h: New class.
  12953. * src/BtMessageReceiver.h: New class.
  12954. * src/DefaultBtMessageFactory.h: New class.
  12955. * src/PeerObject.h: New class.
  12956. * src/BtRequestFactory.h: New class.
  12957. * src/SuggestPieceMessage.h: Removed.
  12958. * src/PortMessage.h: Removed.
  12959. * src/SuggestPieceMessage.h: Removed.
  12960. * src/KeepAliveMessage.h: Removed.
  12961. * src/HandshakeMessage.h: Removed.
  12962. * src/PeerInteraction.h: Removed.
  12963. * src/UnchokeMessage.h: Removed.
  12964. * src/PieceMessage.h: Removed.
  12965. * src/RequestMessage.h: Removed.
  12966. * src/InterestedMessage.h: Removed.
  12967. * src/HaveMessage.h: Removed.
  12968. * src/CancelMessage.h: Removed.
  12969. * src/RejectMessage.h: Removed.
  12970. * src/AllowedFastMessage.h: Removed.
  12971. * src/HaveNoneMessage.h: Removed.
  12972. * src/SimplePeerMessage.h: Removed.
  12973. * src/HaveAllMessage.h: Removed.
  12974. * src/BitfieldMessage.h: Removed.
  12975. * src/PeerMessageFactory.h: Removed.
  12976. * src/NotInterestedMessage.h: Removed.
  12977. * src/ChokeMessage.h: Removed.
  12978. * src/PeerMessage.h: Removed.
  12979. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12980. To know root cause of exception:
  12981. * src/Exception.h
  12982. (cause): New variable.
  12983. (Exception): Added a parameter.
  12984. (getMsg): Return const reference to msg.
  12985. (getCause): New function.
  12986. * src/DlRetryEx.h
  12987. (DlRetryEx): Added a parameter 'cause'.
  12988. Added an overloaded constructor.
  12989. (DlAbortEx): Added a parameter 'cause'.
  12990. Added an overloaded constructor.
  12991. * src/SimpleLogger.cc
  12992. (writeLog): Log nested exception messages recursively.
  12993. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12994. * src/DefaultBtProgressInfoFile.cc
  12995. (load): Fixed memory leak when the infohash doesn't match.
  12996. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12997. * src/DefaultPeerStorage.cc
  12998. (calculateStat): Simplified the code by combining 2 loops into 1.
  12999. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13000. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13001. for BitTorrent download:
  13002. * src/PeerAbstractCommand.cc
  13003. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13004. * src/main.cc:
  13005. (timeoutSpecified): Removed.
  13006. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13007. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13008. * src/TorrentRequestInfo.cc
  13009. (timeoutSpecified): Removed.
  13010. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13011. timeout value.
  13012. * src/prefs.h
  13013. (PREF_BT_TIMEOUT): New definition.
  13014. Delete unused variables:
  13015. * src/TorrentRequestInfo.cc
  13016. (requestInfo): Removed.
  13017. Move setSignalHander to Util::setGlobalSignalHandler:
  13018. * src/TorrentRequestInfo.cc:
  13019. setSignalHander -> Util::setGlobalSignalHandler
  13020. * src/main.cc
  13021. (setSignalHander): Removed.
  13022. (main): setSignalHander -> Util::setGlobalSignalHandler
  13023. * src/Util.h
  13024. (setGlobalSignalHandler): New function.
  13025. * src/Util.cc
  13026. (setGlobalSignalHandler): New function.
  13027. * src/UrlRequestInfo.cc:
  13028. setSignalHander -> Util::setGlobalSignalHandler
  13029. Reset peer status in order to exit gracefully:
  13030. * src/PeerAbstractCommand.cc
  13031. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13032. To fix the bug that causes the number of bytes uploaded is not saved
  13033. to .aria2 file:
  13034. * src/DefaultPeerStorage.h
  13035. (removedPeerSessionDownloadLength): New variable.
  13036. (removedPeerSessionUploadLength): New variable.
  13037. * src/DefaultPeerStorage.cc
  13038. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13039. removedPeerSessionUploadLength(0).
  13040. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13041. through all peers, and then add removedPeerSessionDownloadLength(
  13042. removedPeerSessionUploadLength) to it.
  13043. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13044. (to) the peer to removedPeerSessionDownloadLength
  13045. (removedPeerSessionUploadLength).
  13046. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13047. To add Metalink location option:
  13048. * src/MetalinkRequestInfo.cc
  13049. (execute): Call MetalinkEntry::setLocationPreference()
  13050. * src/main.cc
  13051. (showUsage): Added the help message for --metalink-location option.
  13052. (main): Added --metalink-location option.
  13053. * src/prefs.h
  13054. (PREF_METALINK_LOCATION): New definition.
  13055. * src/MetalinkEntry.cc
  13056. (AddLocationPreference): New function object.
  13057. (setLocationPreference): New function.
  13058. * src/Xml2MetalinkProcessor.cc
  13059. (getResource): Set location attribute to MetalinkResource
  13060. To show URLs to download
  13061. * src/UrlRequestInfo.h
  13062. (printUrls): New function.
  13063. To add multiple <file> Metalink support:
  13064. * src/MetalinkEntry.h
  13065. (MetalinkResources): Removed.
  13066. (setLocationPreference): New function.
  13067. (MetalinkEntryHandle): New type definition.
  13068. (MetalinkEntries): New type definition.
  13069. * src/Xml2MetalinkProcessor.h
  13070. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13071. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13072. (parseFile): Metalinker* -> MetalinkerHandle
  13073. * src/UrlRequestInfo.h
  13074. (execute): RequestInfo* -> RequestInfos
  13075. * src/MetalinkRequestInfo.cc
  13076. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13077. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13078. (execute): RequestInfo* -> RequestInfos
  13079. Added multiple <file> support. Print filename when it is queued.
  13080. * src/MetalinkRequestInfo.h
  13081. (execute): RequestInfo* -> RequestInfos
  13082. (getDownloadEngine): Removed.
  13083. * src/RequestInfo.h
  13084. (RequestInfoHandle): New type definition.
  13085. (RequestInfos): New type definition.
  13086. (execute): RequestInfo* -> RequestInfos
  13087. (getDownloadEngine): Removed.
  13088. * src/MetalinkResource.h
  13089. (MetalinkResourceHandle): New type definition.
  13090. (MetalinkResources): New type definition.
  13091. * src/MetalinkEntry.cc
  13092. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13093. because the element is now of type MetalinkResourceHandle.
  13094. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13095. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13096. (dropUnsupportedResource): Removed the deletion of the elements of
  13097. resources because the element is now of type MetalinkResourceHandle.
  13098. * src/Xml2MetalinkProcessor.cc
  13099. (parseFile): Metalinker* -> MetalinkerHandle
  13100. MetalinkEntry* -> MetalinkEntryHandle
  13101. Removed try-catch block.
  13102. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13103. MetalinkResource* -> MetalinkResourceHandle
  13104. Removed try-catch block.
  13105. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13106. Free result by using xmlXPathFreeObject()
  13107. * src/Metalinker.cc
  13108. (~Metalinker): Removed the deletion of entries.
  13109. MetalinkEntry* -> MetalinkEntryHandle
  13110. (queryEntry): Add multiple <file> Metalink support.
  13111. * src/Metalinker.h
  13112. (MetalinkEntries): Removed.
  13113. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13114. * src/MetalinkProcessor.h
  13115. (parseFile): Metalinker* -> MetalinkerHandle
  13116. Bug fixes:
  13117. * src/PeerChokeCommand.cc
  13118. (execute): cat01->cat02
  13119. * src/DefaultPieceStorage.cc
  13120. (DefaultPieceStorage): Added diskAdaptor(0)
  13121. * src/TrackerWatcherComand.cc:
  13122. (execute): Use btAnnounce->noMoreAnnounce()
  13123. to determin whether the function returns true or not.
  13124. * src/TrackerUpdateCommand.cc:
  13125. (execute): Use btAnnounce->noMoreAnnounce()
  13126. to determin whether the function returns true or not.
  13127. * src/FtpConnection.cc
  13128. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13129. This is the fix of the busy loop bug.
  13130. * src/DownloadCommand.cc
  13131. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13132. cached PeerStat.
  13133. The value of "name" entry in torrent file is now set by
  13134. *DiskAdaptor::setTopDir(...) methods.
  13135. * src/MultiDiskAdaptor.h
  13136. (topDir): New variable.
  13137. (setTopDir): New function.
  13138. (getTopDir): New function.
  13139. * src/MultiDiskAdaptor.cc
  13140. (getFilePath): Concat storDir, "/" and topDir.
  13141. (mkdir): Use getFilePath() to get the directory path for output.
  13142. * src/DefaultPieceStorage.cc
  13143. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13144. CopyDiskAdaptor.
  13145. * src/CopyDiskAdaptor.h
  13146. (topDir): New variable.
  13147. (setTopDir): New function.
  13148. (getTopDir): New function.
  13149. * src/CopyDiskAdaptor.cc
  13150. (fixFilename): Updated.
  13151. Misc
  13152. * src/UrlRequestInfo.h
  13153. (e): Removed.
  13154. (UrlRequestInfo): Removed e.
  13155. (getDownloadEngine): Removed.
  13156. * src/UrlRequestInfo.cc
  13157. (handler): Rewritten.
  13158. (printUrls): New function.
  13159. (execute): Call printUrls().
  13160. * src/HandshakeMessage.cc
  13161. (check): peerinteraction->getBtContext() -> btContext
  13162. * src/PeerInteraction.h
  13163. (getBtContext): Removed.
  13164. * src/TorrentRequestInfo.h
  13165. (execute): RequestInfo* -> RequestInfos
  13166. (getDownloadEngine): Removed.
  13167. * src/TorrentRequestInfo.cc
  13168. (haltRequested): Removed.
  13169. (btHaltRequested): New variable.
  13170. (torrentHandler): haltRequested -> btHaltRequested
  13171. (execute): RequestInfo* -> RequestInfos
  13172. * src/TorrentConsoleDownloadEngine.cc
  13173. (afterEachIteration): haltRequested -> btHaltRequested.
  13174. * src/ConsoleDownloadEngine.h
  13175. (initStatistics): Added virtual.
  13176. (calculateStatistics): Added virtual.
  13177. (onEndOfRun): Added virtual.
  13178. (afterEachIteration): Added virtual.
  13179. * src/ConsoleDownloadEngine.cc
  13180. (haltRequested): New variable.
  13181. (afterEachIteration): New function.
  13182. * src/main.cc
  13183. (requestInfo): Removed.
  13184. * src/SegmentMan.cc
  13185. (findSlowerSegmentEntry): Refactored.
  13186. * Release 0.9.0
  13187. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13188. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13189. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13190. * src/TorrentMan.h: Removed.
  13191. * src/TorrentMan.cc: Removed.
  13192. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13193. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13194. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13195. * src/PeerAbstractCommand.cc: Use btRuntime.
  13196. * src/BtContextAwareCommand.h: New class.
  13197. * src/FileEntry.h: Added accessor methods for following variables.
  13198. (path): Made private.
  13199. (length): Made private.
  13200. (offset): Made private.
  13201. (extracted): Made private.
  13202. (requested): Made private.
  13203. (FileEntries): New definition.
  13204. (FileEntryHandle): New definition.
  13205. * src/FileEntry.cc: New file.
  13206. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13207. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13208. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13209. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13210. * src/PieceStorage.h: New file.
  13211. * src/PeerInteractionCommand.h: Use btContext.
  13212. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13213. btRuntime.
  13214. * src/DefaultBtProgressInfoFile.h: New file.
  13215. * src/DefaultBtProgressInfoFile.cc: New file.
  13216. * src/File.cc
  13217. (Util.h): New include.
  13218. (mkdirs): New function.
  13219. * src/MultiDiskAdaptor.h
  13220. (mkdir): New function.
  13221. * src/PeerListProcessor.h
  13222. (Peers): Removed.
  13223. * src/PeerInteraction.h
  13224. (torrentMan): Removed.
  13225. (btContext): New variable.
  13226. (peerStorage): New variable.
  13227. (pieceStorage): New variable.
  13228. (btAnnounce): New variable.
  13229. (getTorrentMan): Removed.
  13230. (getBtContext): New function.
  13231. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13232. btAnnounce.
  13233. * src/HandshakeMessage.h
  13234. (TorrentMan.h): Removed.
  13235. * src/HandshakeMessage.cc: Use btContext.
  13236. * src/DefaultBtAnnounce.cc: New file.
  13237. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13238. * src/DefaultPieceStorage.cc: New file.
  13239. * src/DefaultBtContext.h: New file.
  13240. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13241. Use the accessor methods of FileEntry.
  13242. * src/CookieBox.cc: Updated to use Util::slice().
  13243. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13244. * src/common.h (SharedHandle.h): New include.
  13245. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13246. pieceStorage.
  13247. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13248. * src/DiskAdaptor.h
  13249. (topDir): Removed.
  13250. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13251. (setTopDir): Removed.
  13252. (getTopDir): Removed.
  13253. * src/BtContext.h: New file.
  13254. * src/DefaultPeerStorage.h: New file.
  13255. * src/PieceMessage.h (TorrentMan.h): Removed.
  13256. * src/RequestMessage.h (TorrentMan.h): Removed.
  13257. * src/TorrentDownloadEngine.h
  13258. (uploadLength): New variable.
  13259. (btContext): New variable.
  13260. (btRuntime): New variable.
  13261. (pieceStorage): New variable.
  13262. (peerStorage): New variable.
  13263. (btAnnounce): New variable.
  13264. (btProgressInfoFile): New variable.
  13265. (torrentMan): Removed.
  13266. (setBtContext): New function.
  13267. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13268. peerStorage, btAnnounce, btProgressInfoFile.
  13269. * src/Piece.h
  13270. (toString): New function.
  13271. (Pieces): New type definition.
  13272. * src/Peer.h
  13273. (active): New variable.
  13274. (Peer): Added active.
  13275. (activate): Set active to true.
  13276. (deactivate): Set active to false.
  13277. (isActive): New function.
  13278. (Peers): New type definition.
  13279. * src/DirectDiskAdaptor.cc
  13280. (getFilePath): Use the accessor methods of FileEntry.
  13281. * src/TorrentConsoleDownloadEngine.h
  13282. (afterEachIteration): New function.
  13283. * src/TorrentConsoleDownloadEngine.cc
  13284. (haltRequested): New variable.
  13285. (sendStatistics): Use pieceStorage, btRuntime.
  13286. (afterEachIteration): New function.
  13287. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13288. * src/Directry.h
  13289. (Directory): New function.
  13290. (DirectoryHandle): New type definition.
  13291. * src/BtProgressInfoFile.h: New file.
  13292. * src/RequestMessage.cc: Use pieceStorage.
  13293. * src/BtRuntime.h: New file.
  13294. * src/DefaultBtContext.cc: New file.
  13295. * src/BitfieldMan.h
  13296. (getCompletedLength): New function(private).
  13297. (getCompletedLength): New function.
  13298. (getFilteredCompletedLength): New function.
  13299. * src/BitfieldMan.h
  13300. (getCompletedLength): New function(private).
  13301. (getCompletedLength): New function.
  13302. (getFilteredCompletedLength): New function.
  13303. * src/MultiDiskAdaptor.cc
  13304. (mkdir): New function.
  13305. (openFile): Call mkdir().
  13306. (initAndOpenFile): Call mkdir().
  13307. * src/CancelMessage.h
  13308. (TorrentMan.h): Removed.
  13309. * src/RejectMessage.h
  13310. (TorrentMan.h): Removed.
  13311. * src/DownloadEngineFactory.cc
  13312. (DefaultPieceStorage.h): New include.
  13313. (DefaultPeerStorage.h): New include.
  13314. (DefaultBtAnnounce.h): New include.
  13315. (DefaultBtProgressInfoFile.h): New include.
  13316. (newTorrentConsoleEngine): Rewritten.
  13317. * src/ShareRatioSeedCriteria.h
  13318. (torrentMan): Removed.
  13319. (btContext): New variable.
  13320. (peerStorage): New variable.
  13321. (btRuntime): New variable.
  13322. (evaluate): Use btContext, btRuntime, peerStorage.
  13323. * src/AnnounceTier.h: New file.
  13324. * src/BtAnnounce.h: New file.
  13325. * src/BtRegistry.h: New file.
  13326. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13327. * src/PeerConnection.h (TorrentMan.h): Removed.
  13328. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13329. * src/Util.h
  13330. (slice): Added an argument.
  13331. * src/Util.cc
  13332. (slice): Added an argument to control whether trim is made or not.
  13333. * src/PeerStorage.h: New file.
  13334. * src/BtRegistry.cc: New file.
  13335. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13336. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13337. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13338. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13339. * src/TorrentRequestInfo.h
  13340. (e): Removed.
  13341. (showFileEntry): Added an argument.
  13342. (getDownloadEngine): Return 0.
  13343. * src/DefaultBtAnnounce.h: New file.
  13344. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13345. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13346. * src/PeerMessageFactory.h
  13347. (btContext): New variable.
  13348. (pieceStorage): New variable.
  13349. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13350. btAnnounce.
  13351. * src/DiskAdaptor.cc
  13352. (DiskAdaptor): Removed topDir.
  13353. (~DiskAdaptor): Removed topDir.
  13354. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13355. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13356. * src/File.h (mkdirs): New function.
  13357. * src/DefaultPeerStorage): New file.
  13358. * src/DownloadEngineFactory.h
  13359. (newTorrentConsoleEngine): Use btContext.
  13360. * src/BtContextAwareCommand.cc: New file.
  13361. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13362. * src/PeerMessage.h
  13363. (btContext): New variable.
  13364. (peerStorage): New variable.
  13365. (pieceStorage): New variable.
  13366. (setBtContext): New function.
  13367. * src/Directry.cc
  13368. (Directory): New function.
  13369. (createDir): Do nothing if name.size() == 0.
  13370. * src/AnnounceList.h
  13371. (AnnounceTier): Removed.
  13372. (AnnounceTiers): Removed.
  13373. * src/DefaultPieceStorage.h: New file.
  13374. * src/Piece.cc (toString): New function.
  13375. To fix typo:
  13376. * src/main.cc (showVersion): Fixed typo.
  13377. To fix compile warning:
  13378. * src/DelegatingPeerListProcessor.cc
  13379. (canHandle): Added "return false".
  13380. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13381. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13382. make the process of announce request testable.
  13383. * src/TrackerWatcherCommand.h
  13384. (TimeA2.h): Removed.
  13385. (interval): Removed.
  13386. (checkPoint): Removed.
  13387. (createRequestCommand): Added an argument 'url'.
  13388. (TrackerWatherCommand): Removed interval.
  13389. (createCommand): New function.
  13390. * src/DownloadEngineFactory.cc
  13391. (newTorrentConsoleEngine): Updated according to the changes in
  13392. TrackerWatherCommand.
  13393. * src/TorrentMan.cc
  13394. (DelegatingPeerListProcessor.h): New includes.
  13395. (TorrentMan): Added the initialization of announceInterval.
  13396. (isStoppedAnnounceReady): New function.
  13397. (isCompletedAnnounceReady): New function.
  13398. (isDefaultAnnounceReady): New function.
  13399. (isAnnounceReady): New function.
  13400. (getAnnounceUrl): New function.
  13401. (announceStart): New function.
  13402. (announceFailure): New function.
  13403. (announceSuccess): New function.
  13404. (isAllAnnounceFailed): New function.
  13405. (resetAnnounce): New function.
  13406. (processAnnounceResponse): New function.
  13407. (needMorePeerConnection): New function.
  13408. (noMoreAnnounce): New function.
  13409. * src/TrackerUpdateCommand.h
  13410. (getTrackerResponse): int->size_t
  13411. * src/TorrentMan.h
  13412. (isStoppedAnnounceReady): New function.
  13413. (isCompletedAnnounceReady): New function.
  13414. (isDefaultAnnounceReady): New function.
  13415. (announceInterval): New variable.
  13416. (isAnnounceReady): New function.
  13417. (getAnnounceUrl): New function.
  13418. (announceStart): New function.
  13419. (announceFailure): New function.
  13420. (announceSuccess): New function.
  13421. (isAllAnnounceFailed): New function.
  13422. (resetAnnounce): New function.
  13423. (processAnnounceResponse): New function.
  13424. (needMorePeerConnection): New function.
  13425. (noMoreAnnounce): New function.
  13426. * src/TrackerWatcherCommand.cc
  13427. (TrackerWatherCommand): Removed interval and checkPoint.
  13428. (execute): Rewritten.
  13429. (createCommand): New function.
  13430. (createRequestCommand): Rewritten.
  13431. * src/TrackerUpdateCommand.cc
  13432. (MetaFileUtil.h): Removed.
  13433. (DelegatingPeerListProcessor.h): Removed.
  13434. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13435. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13436. Request -> RequestHandle:
  13437. * src/HttpResponseCommand.h: Request->RequestHandle
  13438. * src/AbstractCommand.cc: Request->RequestHandle
  13439. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13440. * src/HttpRequestCommand.cc: Request->RequestHandle
  13441. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13442. * src/AbstractCommand.h: Request->RequestHandle
  13443. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13444. * src/HttpResponseCommand.cc: Request->RequestHandle
  13445. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13446. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13447. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13448. * src/HttpConnection.h: Request->RequestHandle
  13449. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13450. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13451. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13452. * src/DownloadCommand.h: Request->RequestHandle
  13453. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13454. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13455. * src/HttpRequestCommand.h: Request->RequestHandle
  13456. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13457. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13458. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13459. * src/HttpDownloadCommand.h: Request->RequestHandle
  13460. * src/FtpConnection.cc: Request->RequestHandle
  13461. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13462. * src/UrlRequestInfo.cc: Request->RequestHandle
  13463. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13464. * src/HttpConnection.h: Request->RequestHandle
  13465. * src/DownloadCommand.cc: Request->RequestHandle
  13466. * src/FtpConnection.h: Request->RequestHandle
  13467. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13468. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13469. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13470. * src/Request.h
  13471. (SharedHandle.h): New include.
  13472. (RequestHandle): New type definition.
  13473. (Requests): Redefined.
  13474. To add MULTITRACKER support:
  13475. * src/TrackerWatcherCommand.h
  13476. (createRequestCommand): New function.
  13477. * src/DownloadEngineFactory.cc
  13478. (newTorrentConsoleEngine): Removed req.
  13479. * src/prefs.h
  13480. (PREF_TRACKER_MAX_TRIES): New definition.
  13481. * src/TorrentMan.cc
  13482. (TorrentMan): Removed req. Added trackerNumTry.
  13483. (~TorrentMan): Removed req.
  13484. (setupInternal1): Added announceList.
  13485. * src/TorrentRequestInfo.cc
  13486. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13487. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13488. * src/main.cc
  13489. (main): Added PREF_TRACKER_MAX_TRIES.
  13490. * src/TorrentMan.h
  13491. (Request.h): Removed.
  13492. (AnnounceList.h): New include.
  13493. (trackerNumTry): New variable.
  13494. (req): Removed.
  13495. (announceList): New variable.
  13496. * src/TrackerWatcherCommand.cc
  13497. (execute): Rewritten.
  13498. (createRequestCommand): New function.
  13499. * src/TrackerUpdateCommand.cc
  13500. (execute): Updated with the use of AnnounceList.
  13501. * src/AnnounceList.cc: New class.
  13502. * src/AnnounceList.h: New class.
  13503. To fix typo:
  13504. * src/prefs.h
  13505. (PREF_MAX_TRIES): max_try->max_tries
  13506. To not to decode "+" as space in URL decode:
  13507. * src/Util.cc
  13508. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13509. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13510. To add timeout to async name resolution:
  13511. * src/AbstractCommand.h
  13512. (nameResolveFinished): New function. This is not elegant way. It needs
  13513. to be more refined.
  13514. (nameResolverCheck): New variable.
  13515. * src/AbstractCommand.cc
  13516. (AbstractCommand): Added nameResolverCheck.
  13517. (execute): Added the check whether the name resolution has finished.
  13518. (setNameResolverCheck): Set nameResolverCheck to true.
  13519. (disableNameResolverCheck): Set nameResolverCheck to false.
  13520. (nameResolverFinished): New function.
  13521. * src/FtpInitiateConnectionCommand.h
  13522. (nameResolverFinished): New function.
  13523. * src/FtpInitiateConnectionCommand.cc
  13524. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13525. * src/HttpInitiateConnectionCommand.h
  13526. (nameResolverFinished): New function.
  13527. * src/HttpInitiateConnectionCommand.cc
  13528. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13529. * src/prefs.h
  13530. (PREF_DNS_TIMEOUT): New definition.
  13531. * src/main.cc
  13532. (main): Added PREF_DNS_TIMEOUT.
  13533. To add the support for a non-compact response from a tracker:
  13534. * src/PeerListProcessor.h: New class.
  13535. * src/DefaultPeerListProcessor.h: New class.
  13536. * src/DefaultPeerListProcessor.cc: New class.
  13537. * src/CompactPeerListProcessor.h: New class.
  13538. * src/CompactPeerListProcessor.cc: New class.
  13539. * src/DelegatingPeerListProcessor.h: New class.
  13540. * src/DelegatingPeerListProcessor.cc: New class.
  13541. * src/TorrentMan.cc
  13542. (addPeer): New function(overload).
  13543. (addPeer): Delete unused peers only when new peer is added.
  13544. * src/TorrentMan.h
  13545. (PeerListProcessor.h): Included.
  13546. (Peers): Removed.
  13547. (addPeer): New function(overload).
  13548. * src/TrackerUpdateCommand.cc
  13549. (netinet/in.h): Removed.
  13550. (DelegatingPeerListProcessor.h): Included.
  13551. (execute): Updated to use DelegatingPeerListProcessor.
  13552. To fix the memory leak in TorrentMan::peers:
  13553. * src/PeerAbstractCommand.cc
  13554. (onAbort): Added peer->resetStatus().
  13555. * src/Peer.h
  13556. (resetStatus): Made public.
  13557. To improve the precision of the speed calculation:
  13558. * src/SpeedCalc.h
  13559. (nextInterval): New variable.
  13560. * src/SpeedCalc.cc
  13561. (reset): Added nextInterval.
  13562. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13563. (changeSw): Set nextInterval to 15 seconds relative to the current
  13564. instant time.
  13565. * src/main.cc
  13566. (showVersion): Updated.
  13567. (showUsage): Updated.
  13568. * Release 0.8.1
  13569. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13570. * src/main.cc
  13571. (showUsage): Commented out --min-segment-size option.
  13572. (main): Commented out --min-segment-size option.
  13573. * Release 0.8.0
  13574. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13575. * src/*.{h,cc}:
  13576. Added an exception to the license which allows linking with OpenSSL.
  13577. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13578. * src/AbstractCommand.cc
  13579. (execute): Check whether the download has finished before checking
  13580. socket status.
  13581. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13582. Do not exit even if no segment is available.
  13583. * src/prefs.h
  13584. (PREF_STARTUP_IDLE_TIME): New definition.
  13585. * src/PeerInteractionCommand.cc
  13586. (executeInternal): Removed max speed limit. Because it performs bad.
  13587. (receiveMessages): Added max speed limit. This was better than above,
  13588. but still a little bit to be desired. Sometimes the download speed
  13589. became much faster than I specified.
  13590. * src/SpeedCalc.h
  13591. (start): New variable.
  13592. (accumulatedLength): New variable.
  13593. (getAvgSpeed): New function.
  13594. * src/SpeedCalc.cc
  13595. (reset): Added start, accumulatedLength.
  13596. (update): Added calculation of an average speed.
  13597. (getAvgSpeed): New function.
  13598. * src/DownloadCommand.h
  13599. (sw): Removed.
  13600. * src/main.cc
  13601. (main): Added PREF_STARTUP_IDLE_TIME.
  13602. * src/PeerStat.h
  13603. (STATUS): Added REQUEST_IDLE.
  13604. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13605. (getAvgDownloadSpeed): New function
  13606. (requestIdle): New function.
  13607. * src/SegmentMan.h
  13608. (SegmentEntryHandle): New type definition.
  13609. (SegmentEntries): Now holds SegmentEntryHandle.
  13610. (findSlowerSegmentEntry): New funtion.
  13611. * src/SegmentMan.cc
  13612. (save): Updated according to the changes in SegmentEntries.
  13613. (read): Updated according to the changes in SegmentEntries.
  13614. (FindSegmentEntryByIndex): Updated according to the changes in
  13615. SegmentEntries.
  13616. (FindSegmentEntryByCuid): Updated according to the changes in
  13617. SegmentEntries.
  13618. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13619. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13620. Renamed uitr as itr.
  13621. (findSlowerSegmentEntry): New function.
  13622. (getSegment): Updated according to the changes in SegmentEntries.
  13623. Added the feature that cancels the segment with slow server and fast
  13624. one takes it over.
  13625. (cancelSegment): Updated according to the changes in SegmentEntries.
  13626. (getDownloadLength): Updated according to the changes in
  13627. SegmentEntries.
  13628. (init): Assigned 0 to bitfield after deleting it.
  13629. * src/DownloadCommand.cc
  13630. (STARTUP_IDLE_TIME): Removed.
  13631. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13632. * src/PeerChokeCommand.cc
  13633. (optUnchokingPeer): Updated according to the changes in Peer.
  13634. (ResetDelta): Removed.
  13635. (UploadFaster): Updated according to the changes in Peer.
  13636. (DownloadFaster): Updated according to the changes in Peer.
  13637. (execute): I clarify the meaning of "upload" and "download" here.
  13638. "upload" means the transfer from localhost to remote host.
  13639. "download" means the transfer from remote host to localhost.
  13640. Based on this rule, I swapped orderByUploadRate and
  13641. orderByDownloadRate.
  13642. * src/PeerInteractionCommand.cc
  13643. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13644. (executeInternal): Removed the argument of
  13645. peerInteraction->sendMessages().
  13646. (receiveMessages): Rewritten download speed limit.
  13647. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13648. * src/HttpResponseCommand.cc
  13649. (handleDefaultEncoding): If file size is unknown in torrent request,
  13650. do not call segmentMan->initBitfield() here.
  13651. Disabled persistent connection feature in torrent request.
  13652. * src/UrlRequestInfo.h
  13653. (UrlRequestInfo): Removed const qualifier from option.
  13654. * src/TorrentMan.h
  13655. (TransferStat): New class.
  13656. (deltaDownloadLength): Removed.
  13657. (deltaUploadLength): Removed.
  13658. (addDeltaDownloadLength): Removed.
  13659. (getDeltaDownloadLength): Removed.
  13660. (resetDeltaDownloadLength): Removed.
  13661. (addDeltaUploadLength): Removed.
  13662. (getDeltaUploadLength): Removed.
  13663. (resetDeltaUploadLength): Removed.
  13664. (addActivePeer): Added peer->activate().
  13665. (deleteActivePeer): Added peer->deactivate().
  13666. (calculateStat): New function.
  13667. * src/TorrentMan.cc
  13668. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13669. (calculateStat): New function.
  13670. * src/PeerInteraction.h
  13671. (uploadLimit): Removed.
  13672. (option): New variable.
  13673. (setUploadLimit): Removed.
  13674. (getUploadSpeed): Removed.
  13675. (sendMessages): Removed the argument "currentUploadSpeed".
  13676. * src/PeerInteraction.cc
  13677. (prefs.h): Included.
  13678. (PeerInteraction): Removed uploadLimit. Added option.
  13679. (sendMessages): Rewritten upload speed limit.
  13680. (sendHandshake): Removed the argument from sendMessages().
  13681. (sendBitfield): Removed the argument from sendMessages().
  13682. * src/PeerAbstractCommand.cc
  13683. (execute): Commented out the portion of upload limit.
  13684. (onAbort): Removed peer->resetStatus().
  13685. * src/TorrentRequestInfo.cc
  13686. (timeoutSpecified): Declared extern.
  13687. (execute): Set timeout to 180 if timeout is not specified by.
  13688. command-line.
  13689. * src/PieceMessage.cc
  13690. (receivedAction): Added peer->updateDownloadLength().
  13691. Removed peer->addPeerUpload().
  13692. Removed torrentMan->addDeltaDownloadLength().
  13693. (send): Added peer->updateUploadLength().
  13694. Removed peer->addPeerDownload().
  13695. Removed torrentMan->addDeltaUploadLength().
  13696. * src/main.cc
  13697. (timeoutSpecified): New variable.
  13698. (main): Set timeoutSpecified to false.
  13699. If the command-line option "--upload-limit" is specified, then
  13700. timeoutSpecified is set to true. This option will remain in the next
  13701. release, but be deprecated in the future release.
  13702. * src/TorrentRequestInfo.h
  13703. (TorrentRequestInfo): Removed const qualifier from op.
  13704. * src/PeerStat.h
  13705. (uploadSpeed): New variable.
  13706. (PeerStat): Added default value to cuid.
  13707. (calculateUploadSpeed): New function.
  13708. (updateUploadLength): New function.
  13709. (getMaxUploadSpeed): New function.
  13710. (getAvgUploadSpeed): New function.
  13711. (reset): Added uploadSpeed. Set status to IDLE.
  13712. * src/TorrentDownloadEngine.h
  13713. (cp): Declared as Time.
  13714. (sessionDownloadLengthArray): Removed.
  13715. (sessionUploadLengthArray): Removed.
  13716. (currentCp): Removed.
  13717. (lastCalcStat): New variable
  13718. (lastElapsed): Removed.
  13719. (sessionDownloadLength): Removed.
  13720. (calculateStat): New function.
  13721. * src/TorrentDownloadEngine.cc
  13722. (initStatistics): Removed lastElapsed, cp[],
  13723. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13724. currentCp, sessionDownloadLength.
  13725. Added cp.reset() and lastCalcStat.reset().
  13726. (calculateSpeed): Changed the name of the argument.
  13727. (calculateStatistics): Rewritten.
  13728. (calculateStat): New function.
  13729. * src/Peer.h
  13730. (PeerStat.h): Included.
  13731. (peerUpload): Removed.
  13732. (peerDownload): Removed.
  13733. (peerStat): New variable.
  13734. (sessionUploadLength): New variable.
  13735. (sessionDownloadLength): New variable.
  13736. (deltaUpload): Removed.
  13737. (deltaDownload): Removed.
  13738. (resetStatus): Made private.
  13739. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13740. Removed peerUpload, peerDownload.
  13741. (updateUploadLength): New function.
  13742. (addDeltaUpload): Removed.
  13743. (updateDownloadLength): New function.
  13744. (resetDeltaUpload): Removed.
  13745. (getDeltaUpload): Removed.
  13746. (addDeltaDownload): Removed.
  13747. (calculateUploadSpeed): New function.
  13748. (resetDeltaDownload): Removed.
  13749. (getDeltaDownload): Removed.
  13750. (calculateDownloadSpeed): New function.
  13751. (getSessionUploadLength): New function.
  13752. (getSessionDownloadLength): New function.
  13753. (activate): New function.
  13754. (deactivate): New function.
  13755. (addPeerUpload): Removed.
  13756. (setPeerUpload): Removed.
  13757. (getPeerUpload): Removed.
  13758. (addPeerDownload): Removed.
  13759. (setPeerDownload): Removed.
  13760. (getPeerDownload): Removed.
  13761. * src/Peer.cc
  13762. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13763. * src/MetalinkRequestInfo.h
  13764. (MetalinkRequestInfo): Removed const qualifier from op.
  13765. * src/RequestInfo.h
  13766. (op): Removed const qualifier.
  13767. (RequestInfo): Removed const qualifier from op.
  13768. * src/prefs.h
  13769. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13770. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13771. * src/PeerInteractionCommand.cc
  13772. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13773. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13774. * src/PeerInteraction.cc
  13775. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13776. * src/main.cc
  13777. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13778. Added the description of "--max-download-limit" option.
  13779. Removed the description of "--upload-limit" option.
  13780. Added the description of "--max-upload-limit" option.
  13781. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13782. Added "--max-download-limit" option and "--max-upload-limit" option.
  13783. Added the warning message if "--upload-limit" option is used.
  13784. * src/DownloadCommand.cc
  13785. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13786. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13787. To rewrite segment download mechanism for HTTP/FTP download.
  13788. Use BitfieldMan to manage segment download.
  13789. * src/HttpResponseCommand.h
  13790. (executeInternal): Pass the reference of segment.
  13791. * src/AbstractCommand.cc
  13792. (prepareForRetry): Call segmentMan->cancelSegment here.
  13793. (onAbort): Call segmentMan->cancelSegment here.
  13794. * src/HttpDownloadCommand.cc
  13795. (prepareForNextSegment): New function.
  13796. * src/DownloadEngineFactory.cc
  13797. (newConsoleEngine): Removed splitter.
  13798. (newTorrentConsoleEngine): Removed splitter.
  13799. * src/Request.h
  13800. (segment): Renamed from seg.
  13801. * src/FtpInitiateConnectionCommand.h
  13802. (executeInternal): Pass the reference of segment.
  13803. * src/AbstractCommand.h
  13804. (executeInternal): Pass the reference of segment.
  13805. * src/pref.h
  13806. (PREF_SEGMENT_SIZE): New definition.
  13807. * src/HttpProxyRequestCommand.h
  13808. (executeInternal): Pass the reference of segment.
  13809. * src/HttpResponseCommand.cc
  13810. (checkResponse): Allowed status 206 when a request range starts 0.
  13811. (handleDefaultEncoding): Rewritten the code related to Segment.
  13812. (handleOtherEncoding): Rewritten the code related to Segment.
  13813. * src/SegmentMan.h
  13814. (SegmentEntry): New class.
  13815. (SegmentEntries): New type definition.
  13816. (bitfield): New variable.
  13817. (usedSegmentEntries): New variable.
  13818. (onNullBitfield): New function.
  13819. (checkoutSegment): New function.
  13820. (segments): Removed.
  13821. (splitter): Removed.
  13822. (unregisterId): Removed.
  13823. (getSegment): New function(overload)
  13824. (getDownloadedSize): Removed.
  13825. (cancelSegment): New function.
  13826. (completeSegment): New function.
  13827. (initBitfield): New function.
  13828. (hasSegment): New function.
  13829. (getDownloadLength): New function.
  13830. * src/BitfieldMan.h
  13831. (getStartIndex): New function.
  13832. (getEndIndex): New function.
  13833. (getMissingUnusedIndex): New function(overload).
  13834. (getSparseMissingUnusedIndex): New function.
  13835. * src/BitfieldMan.cc
  13836. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13837. (getMissingUnusedIndex): New function(overload).
  13838. (Range): New class.
  13839. (getStartIndex): New function.
  13840. (getEndIndex): New function.
  13841. (getSparseMissingUnusedIndex): New function.
  13842. (isBitSetInternal): Return false if the given index is less than 0.
  13843. * src/HttpInitiateConnectionCommand.h
  13844. (executeInternal): Pass the reference of segment.
  13845. * src/FtpNegotiateCommand.h
  13846. (executeInternal): Pass the reference of segment.
  13847. * src/FtpNegotiateCommand.cc
  13848. (recvSize): Initialize bitfield here.
  13849. * src/FtpTunnelResponseCommand.h
  13850. (executeInternal): Pass the reference of segment.
  13851. * src/HttpConnection.cc
  13852. (createRequest): Rewritten range header processing.
  13853. * src/DownloadCommand.h
  13854. (executeInternal): Pass the reference of segment.
  13855. (prepareForRetry): Removed.
  13856. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13857. function.
  13858. * src/main.cc
  13859. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13860. * src/SegmentMan.cc
  13861. (SegmentMan): Added bitfield. Removed splitter.
  13862. (~SegmentMan): Added bitfield. Removed splitter.
  13863. (unregisterId): Removed.
  13864. (getSegment): Rewritten.
  13865. (updateSegment): Rewritten.
  13866. (save): Rewritten.
  13867. (read): Rewritten.
  13868. (finished): Rewritten.
  13869. (getDownloadedSize): Removed.
  13870. (initBitfield): New function.
  13871. (FindSegmentEntryByIndex): New function object.
  13872. (FindSegmentEntryByCuid): New function object.
  13873. (checkoutSegment): New function.
  13874. (onNullBitfield): New function.
  13875. (getSegment): New function(overload).
  13876. (CancelSegment): New function object.
  13877. (cancelSegment): New function.
  13878. (completeSegment): New function.
  13879. (hasSegment): New function.
  13880. (getDownloadLength): New function.
  13881. * src/FtpInitiateConnectionCommand.cc
  13882. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13883. * src/Segment.h: Rewritten.
  13884. * src/Segment.cc (operator<<): New function.
  13885. * src/HttpDownloadCommand.h
  13886. (prepareForNextSegment): New function.
  13887. * src/Request.cc
  13888. (resetUrl): Made segment null.
  13889. * src/DownloadEngine.cc
  13890. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13891. * src/HttpProxyRequestCommand.h
  13892. (executeInternal): Pass the reference of segment.
  13893. * src/DownloadCommand.cc
  13894. (executeInternal): Rewritten the code related to Segment.
  13895. (prepareForRetry): Removed.
  13896. (prepareForNextSegment): Rewritten.
  13897. * src/FtpTunnelResponseCommand.h
  13898. (executeInternal): Pass the reference of segment.
  13899. To add HTTP 1.1 persistent connection support(experimental)
  13900. * src/HttpRequestCommand.cc
  13901. (executeInternal): Disable keep alive if it is disabled by
  13902. configuration.
  13903. * src/Request.h
  13904. (keepAlive): New variable.
  13905. (isKeepAlive): New function.
  13906. (setKeepAlive): New function.
  13907. * src/pref.h
  13908. (PREF_HTTP_KEEP_ALIVE): New definition.
  13909. * src/HttpResponseCommand.cc
  13910. (executeInternal): Check the remote server supports keep alive.
  13911. * src/HttpConnection.cc
  13912. (createRequest): Send "Connection: close" only if keep alive is
  13913. disabled.
  13914. * src/main.cc
  13915. (main):
  13916. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13917. To add max download speed limit:
  13918. * src/pref.h
  13919. (PREF_MAX_SPEED_LIMIT): New definition.
  13920. * src/PeerInteractionCommand.cc
  13921. (executeInternal): Added max download speed limit. Not tested yet.
  13922. * src/SegmentMan.h
  13923. (PeerStats): New type definition.
  13924. (peerStats): New variable.
  13925. (registerPeerStat): New function.
  13926. (FindPeerStat): New function object.
  13927. (getPeerStat): New function.
  13928. (calculateDownloadSpeed): New function.
  13929. * src/SpeedCalc.h: New class.
  13930. * src/SpeedCalc.cc: New class.
  13931. * src/main.cc
  13932. (main):
  13933. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13934. download speed is not restricted).
  13935. * src/PeerStat.h: New class.
  13936. * src/SegmentMan.cc
  13937. (registerPeerStat): New function.
  13938. (calculateDownloadSpeed): New function.
  13939. * src/DownloadCommand.cc
  13940. (STARTUP_IDLE_TIME): New definition.
  13941. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13942. downloadStart.
  13943. (~DownloadCommand): Call peerStat->downloadStop.
  13944. (executeInternal): Added download speed limitter. Rewritten lowest
  13945. speed limitter.
  13946. * src/HttpConnection.cc
  13947. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13948. * src/AbstractCommand.cc
  13949. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13950. Added hostname to the error message.
  13951. * src/ConsoleDownloadEngine.cc
  13952. (calculateStatistics): Initialize psize with dlSize.
  13953. * src/PieceMessage.cc
  13954. (receivedAction): Do not call peerInteraction->abortPiece here.
  13955. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13956. * src/BitfieldMan.h
  13957. (clearAllUseBit): New function.
  13958. (setAllUseBit): New function.
  13959. * src/BitfieldMan.cc
  13960. (clearAllBit): Do not clear useBitfield here.
  13961. (clearAllUseBit): New function.
  13962. (setAllUseBit): New function.
  13963. * src/Piece.cc
  13964. (clearAllBlock): Call bitfield->clearAllUseBit().
  13965. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13966. To make filename URL-decoded:
  13967. * src/HttpResponseCommand.h: Updated doc.
  13968. * src/HttpResponseCommand.cc
  13969. (determinFilename): Made filename URL-decoded.
  13970. * src/FtpInitiateConnectionCommand.cc
  13971. (executeInternal): Made filename URL-decoded.
  13972. * src/Util.h (urldecode): New function.
  13973. * src/Util.cc (urldecode): New function.
  13974. To fix a bug that caused assertion failure in ares_strerror:
  13975. * src/NameResolver.cc (callback): Fixed the bug.
  13976. * Release 0.7.3
  13977. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13978. To add --seed-time and --seed-ratio command-line option:
  13979. * src/Option.h (getAsDouble): New function.
  13980. * src/Option.cc (getAsDouble): New function.
  13981. * src/SeedCheckCommand.h: New class.
  13982. * src/SeedCheckCommand.cc: New class.
  13983. * src/DownloadEngineFactory.cc
  13984. (SeedCheckCommand.h): Included.
  13985. (UnionSeedCriteria.h): Included.
  13986. (TimeSeedCriteria.h): Included.
  13987. (ShareRatioSeedCriteria.h): Included.
  13988. (newTorrentConsoleEngine): Added the processing of seed option.
  13989. * src/SeedCriteria.h: New class.
  13990. * src/ShareRatioSeedCriteria.h: New class.
  13991. * src/TimeSeedCriteria.h: New class.
  13992. * src/UnionSeedCriteria.h: New class.
  13993. * src/prefs.h
  13994. (PREF_SEED_TIME): New definition.
  13995. (PREF_SEED_RATIO): New definition.
  13996. * src/main.cc
  13997. (showUsage): Added --seed-time and --seed-ratio option.
  13998. (main): Added --seed-time and --seed-ratio option.
  13999. Made default log file name "/dev/null".
  14000. * src/SharedHandle.h
  14001. (SharedHandle): Copy constructor. Made it assignable from the
  14002. SharedHandle of the subclasses.
  14003. (operator=): Made it assignable from the SharedHandle of the
  14004. subclasses.
  14005. (getRefCount): New function.
  14006. To add notice log level and the switch to write log to stdout. This
  14007. switch is configurable per log level.
  14008. * src/Logger.h
  14009. (notice): New function.
  14010. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14011. constant.
  14012. * src/LogFactory.cc
  14013. (getInstance): The use of NullLogger was removed. A log message with
  14014. notice log level was made written to stdout along with log file.
  14015. * src/NullLogger.h
  14016. (notice): New function.
  14017. * src/SimpleLogger.h
  14018. (writeHeader): Added the 'file' argument.
  14019. (writeLog): Added the 'file' argument.
  14020. (writeFile): New function.
  14021. (stdoutField): New variable.
  14022. (SimpleLogger): Removed the default constructor.
  14023. (SimpleLogger): Made the default value of logfile 0.
  14024. (debug): Added 'virtual' keyword.
  14025. (info): Added 'virtual' keyword.
  14026. (warn): Added 'virtual' keyword.
  14027. (error): Added 'virtual' keyword.
  14028. (notice): New function.
  14029. (setStdout): New function.
  14030. * src/SimpleLogger.cc
  14031. (WRITE_LOG): Replaced writeLog with writeFile.
  14032. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14033. (SimpleLogger): Removed the default constructor.
  14034. (setStdout): New function.
  14035. (writeLog): Added the handling of NOTICE log level.
  14036. (writeFile): New function.
  14037. (notice): New function.
  14038. * src/TorrentMan.h: Updated doc.
  14039. * src/BitfieldMan.h: Updated doc.
  14040. * src/TrackerWatcherCommand.cc
  14041. (execute): Return true if error occurred in the request to the tracker
  14042. and halt is requested.
  14043. * src/TrackerUpdateCommand.cc
  14044. (execute): Return true if error occurred in the request to the tracker
  14045. and halt is requested.
  14046. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14047. DownloadEngine:
  14048. * src/TorrentConsoleDownloadEngine.h
  14049. (onSelectiveDownloadingCompletes): Removed.
  14050. * src/TorrentConsoleDownloadEngine.cc
  14051. (onSelectiveDownloadingCompletes): Removed.
  14052. * src/TorrentDownloadEngine.h
  14053. (onEndOfRun): Added 'virtual' keyword.
  14054. (afterEachIteration): Removed.
  14055. (onSelectiveDownloadingCompletes): Removed.
  14056. * src/TorrentDownloadEngine.cc
  14057. (onEndOfRun): Removed filenameFixed.
  14058. (afterEachIteration): Removed.
  14059. * src/TorrentMan.cc
  14060. (completePiece): Call onDownloadComplete here.
  14061. (onDownloadComplete): Added 2 log messages.
  14062. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14063. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14064. * src/NameResolver.h: Added the prototype declaration of callback().
  14065. To support c-ares library:
  14066. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14067. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14068. * src/FtpInitiateConnectionCommand.h:
  14069. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14070. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14071. * src/HttpInitiateConnectionCommand.h:
  14072. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14073. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14074. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14075. #1542285 by tizianomueller)
  14076. * src/HttpInitiateConnectionCommand.cc:
  14077. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14078. * src/FtpInitiateConnectionCommand.cc:
  14079. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14080. * src/DownloadEngine.h:
  14081. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14082. * src/DownloadEngine.cc:
  14083. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14084. To fix the bug that causes compilation failure with metalink-support
  14085. disabled(bug#1543587):
  14086. * src/main.cc: Fixed with the patch by tizianomueller.
  14087. * Release 0.7.2
  14088. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14089. * src/main.cc
  14090. (main): Added a message to inform users that aria2 is starting to
  14091. verify checksum.
  14092. * src/RequestInfo.cc
  14093. (printDownloadAbortMessage): Added a message to inform users that
  14094. transfer can be resumed.
  14095. * src/FeatureConfig.cc
  14096. (FEATURE_ASYNC_DNS): New definition.
  14097. (FeatureConfig): Added aysnc DNS entry.
  14098. To replace CommandUuid with Command* in SocketEntry and
  14099. NameResolverEntry:
  14100. * src/DownloadEngine.h
  14101. (CommandUuids): Removed.
  14102. (SocketEntry::commandUuid): Removed.
  14103. (SocketEntry::command): New variable.
  14104. (SocketEntry::SocketEntry): Updated.
  14105. (SocketEntry::operator==): Updated.
  14106. (NameResolverEntry::commandUuid): Removed.
  14107. (NameResolverEntry::command): New variable.
  14108. (NameResolverEntry::NameResolverEntry): Updated.
  14109. (NameResolverEntry::operator==): Updated.
  14110. (waitData): Changed the argument type.
  14111. (addSocketForReadCheck): Changed the argument type.
  14112. (deleteSocketForReadCheck): Changed the argument type.
  14113. (addSocketForWriteCheck): Changed the argument type.
  14114. (deleteSocketForWriteCheck): Changed the argument type.
  14115. (addNameResolverCheck): Changed the argument type.
  14116. (deleteNameResolverCheck): Changed the argument type.
  14117. * src/DownloadEngine.cc
  14118. (FindCommand): Removed.
  14119. (run): Removed activeUuid. Added activeCommands instead.
  14120. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14121. (AccumulateActiveCommand): New function object.
  14122. (waitData): Use AccumulateActiveCommand.
  14123. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14124. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14125. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14126. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14127. (addNameResolverCheck): Use Command instead of CommandUuid.
  14128. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14129. * src/AbstractCommand.cc
  14130. (disableReadCheckSocket): Updated according to the changes in
  14131. DownloadEngine.
  14132. (setReadCheckSocket): Updated according to the changes in
  14133. DownloadEngine.
  14134. (disableWriteCheckSocket): Updated according to the changes in
  14135. DownloadEngine.
  14136. (setWriteCheckSocket): Updated according to the changes in
  14137. DownloadEngine.
  14138. (setNameResolverCheck): Updated according to the changes in
  14139. DownloadEngine.
  14140. (disableNameResolverCheck): Updated according to the changes in
  14141. DownloadEngine.
  14142. * src/AbstractCommand.cc
  14143. (disableReadCheckSocket): Updated according to the changes in
  14144. DownloadEngine.
  14145. (setReadCheckSocket): Updated according to the changes in
  14146. DownloadEngine.
  14147. (disableWriteCheckSocket): Updated according to the changes in
  14148. DownloadEngine.
  14149. (setWriteCheckSocket): Updated according to the changes in
  14150. DownloadEngine.
  14151. * release 0.7.1
  14152. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14153. To handle the case where some BitTorrent tracker requires all letters
  14154. except for [A-Za-z0-9] is URL encoded.
  14155. * src/Util.h
  14156. (torrentUrlencode): New function.
  14157. * src/Util.cc
  14158. (ctype.h): Included.
  14159. (torrentUrlencode): New function.
  14160. * src/TrackerWatcherCommand.cc
  14161. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14162. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14163. To add asynchronous DNS support(libares):
  14164. * src/AbstractCommand.h
  14165. (setNameResolverCheck): New function.
  14166. (disableNameResolverCheck): New function
  14167. (resolveHostname): New function.
  14168. * src/AbstractCommand.cc
  14169. (setNameResolverCheck): New function.
  14170. (disableNameResolverCheck): New function
  14171. (resolveHostname): New function.
  14172. * src/FtpInitiateConnectionCommand.h
  14173. (nameResolver): New function.
  14174. * src/FtpInitiateConnectionCommand.cc
  14175. (Util.h): Included.
  14176. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14177. disableWriteCheckSocket.
  14178. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14179. (executeInternal): Added async DNS support.
  14180. * src/HttpInitiateConnectionCommand.h
  14181. (nameResolver): New function.
  14182. * src/HttpInitiateConnectionCommand.cc
  14183. (DlRetryEx.h): Included.
  14184. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14185. disableWriteCheckSocket.
  14186. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14187. (executeInternal): Added async DNS support.
  14188. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14189. by extern "C" declaration.
  14190. * src/NameResolver.cc: New class.
  14191. * src/Util.h:
  14192. (isNumberAndDotsNotation): New function
  14193. * src/Util.cc
  14194. (isNumberAndDotsNotation): New function.
  14195. * src/DownloadEngine.h
  14196. (NameResolver.h): Included.
  14197. (NameResolverEntry): New class.
  14198. (NameResolverEntries): New type definition.
  14199. (addNameResolverCheck): New function.
  14200. (deleteNameResolverCheck): New function.
  14201. * src/DownloadEngine.cc
  14202. (run): Initialize cp with 0.
  14203. (SetDescriptor::operator()): Added for NameResolverEntry.
  14204. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14205. (waitData): Check nameResolver entries.
  14206. (updateFdSet): Update fds in nameResolver entries.
  14207. (addNameResolverCheck): New function.
  14208. (deleteNameResolverCheck): new function.
  14209. * src/PeerInteractionCommand.cc
  14210. (executeInternal): Fixed wrong socket handling.
  14211. * src/main.cc
  14212. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14213. * src/Util.cc
  14214. (fileChecksum): Removed the call to ctx.digestReset().
  14215. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14216. * po/ru.po: Azamat sent me Russian translation.
  14217. * src/FtpNegotiateCommand.cc
  14218. (recvGreeting): Call disableWriteCheckSocket just after
  14219. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14220. (recvRetr): Recognized status code 125 as a acceptable response code.
  14221. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14222. case-insesitive filesystem(BUG#1531057).
  14223. * src/Time.h: Renamed as TimeA2.h.
  14224. * src/Time.cc: Renamed as TimeA2.cc.
  14225. * src/TimeA2.h: New class.
  14226. * src/TimeA2.cc: New class.
  14227. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14228. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14229. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14230. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14231. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14232. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14233. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14234. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14235. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14236. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14237. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14238. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14239. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14240. * release 0.7.0
  14241. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14242. * src/PeerChokeCommand.h
  14243. (PeerChokeCommand): Rearranged the arguments.
  14244. * src/PeerChokeCommand.cc
  14245. (PeerChokeCommand): Rearranged the arguments.
  14246. * src/MetalinkEntry.h
  14247. (Checksum.h): Included.
  14248. (md5): Removed.
  14249. (sha1): Removed.
  14250. (checksum): New variable.
  14251. (operator=): Updated.
  14252. (check): Removed.
  14253. * src/prefs.h
  14254. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14255. (PREF_FOLLOW_TORRENT): New definition.
  14256. (PREF_SELECT_FILE): New definition.
  14257. (PREF_FOLLOW_METALINK): New definition.
  14258. * src/MetalinkResource.h
  14259. (TYPE_HTTPS): Added to enum TYPE.
  14260. * src/TorrentMan.cc
  14261. (~TorrentMan): Rewritten.
  14262. * src/MultiDiskWriter.cc
  14263. (MultiDiskAdaptor): Updated according to the changes in
  14264. MessageDigestContext.
  14265. (~MultiDiskAdaptor): Updated according to the changes in
  14266. MessageDigestContext.
  14267. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14268. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14269. * src/Util.h
  14270. (fileChecksum): Updated according to the changes in
  14271. MessageDigestContext.
  14272. * src/Util.cc
  14273. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14274. (fileChecksum): Updated according to the changes in
  14275. MessageDigestContext.
  14276. * src/messageDigest.h: Rewritten.
  14277. * src/MetalinkEntry.cc
  14278. (check): Removed.
  14279. (Supported): Updated.
  14280. (dropUnsupportedResource): Fixed a memory leak.
  14281. * src/ShaVisitor.cc
  14282. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14283. (~ShaVisitor): Updated according to the changes in
  14284. MessageDigestContext.
  14285. (visit): Updated according to the changes in MessageDigestContext.
  14286. * src/main.cc
  14287. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14288. command-line option added.
  14289. * src/DownloadEngine.h
  14290. (SocketEntry): New class.
  14291. (SocketEntries): New definition.
  14292. (PairFind): Removed.
  14293. (SockCmdMap): Removed.
  14294. * src/DownloadEngine.cc
  14295. (DownloadEngine): Rewritten.
  14296. (~DownloadEngine): Rewritten.
  14297. (run): Renamed activeCommandUuids as activeUuids.
  14298. (SetDescriptor): Rewritten.
  14299. (AccumulateActiveCommandUuid): Removed.
  14300. (AccumulateActiveUuid): New function object.
  14301. (waitData): Rewritten.
  14302. (updateFdSet): Rewritten.
  14303. (addSocket): Rewritten.
  14304. (deleteSocket): Rewritten.
  14305. (addSocketForReadCheck): Rewritten.
  14306. (deleteSocketForReadCheck): Rewritten.
  14307. (addSocketForWriteCheck): Rewritten.
  14308. (deleteSocketForWriteCheck): Rewritten.
  14309. * src/Xml2MetalinkProcessor.cc
  14310. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14311. * src/DownloadCommand.cc
  14312. (executeInternal): Added the check routine for lowest speed limit.
  14313. * src/AbstractDiskWriter.cc
  14314. (AbstractDiskWriter): Updated according to the changes in
  14315. MessageDigestContext.
  14316. (~AbstractDiskWriter): Updated according to the changes in
  14317. MessageDigestContext.
  14318. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14319. * src/RequestInfo.h: New class.
  14320. * src/UrlRequestInfo.h: New class.
  14321. * src/UrlRequestInfo.cc: New class.
  14322. * src/TorrentRequestInfo.h: New class.
  14323. * src/TorrentRequestInfo.cc: New class.
  14324. * src/MetalinkRequestInfo.h: New class.
  14325. * src/MetalinkRequestInfo.cc: New class.
  14326. * src/Checksum.h: New class.
  14327. * src/DownloadEngineFactory.h: New class.
  14328. * src/DownloadEngineFactory.cc: New class.
  14329. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14330. * src/Option.h
  14331. (getAsBool): New function.
  14332. * src/Option.cc
  14333. (prefs.h): Included.
  14334. (defined): 0-length value is now recognized as undefined.
  14335. (getAsInt): Rewritten.
  14336. (getAsLLInt): Rewritten.
  14337. (getAsBool): New function.
  14338. * src/FeatureConfig.h: Rewritten.
  14339. * src/FeatureConfig.cc: Rewritten.
  14340. * src/prefs.h
  14341. (PREF_STDOUT_LOG): New definition.
  14342. (PREF_LOG): New definition.
  14343. (PREF_DIR): New definition.
  14344. (PREF_OUT): New definition.
  14345. (PREF_SPLIT): New definition.
  14346. (PREF_DAEMON): New definition.
  14347. (PREF_REFERER): New definition.
  14348. (PREF_TORRENT_FILE): New definition.
  14349. (PREF_LISTEN_PORT): New definition.
  14350. (PREF_METALINK_FILE): New definition.
  14351. (PREF_METALINK_VERSION): New definition.
  14352. (PREF_METALINK_LANGUAGE): New definition.
  14353. (PREF_METALINK_OS): New definition.
  14354. (PREF_METALINK_SERVERS): New definition.
  14355. * src/main.cc
  14356. (main): Following command-line parameters are now put into Option
  14357. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14358. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14359. metalinkLanguage, metalinkOs, metalinkServers
  14360. To fix the bug that aria2 can not handle http response header properly.
  14361. * src/HttpHeader.cc
  14362. (put): Made name lowercased.
  14363. (defined): Made name lowercased.
  14364. (getFirst): Made name lowercased.
  14365. (get): Made name lowercased.
  14366. (getFirstAsInt): Rewritten.
  14367. (getFirstAsLLInt): Rewritten.
  14368. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14369. * src/TorrentMan.h:
  14370. (advertisePiece): Updated doc.
  14371. (getAdvertisedPieceIndexes): Updated doc.
  14372. (removeAdvertisedPiece); New function.
  14373. * src/TorrentMan.cc
  14374. (FindElapsedHave): New function object.
  14375. (removeAdvertisedPiece): New function.
  14376. * src/HaveEraseCommand.h: New class.
  14377. * src/HaveEraseCommand.cc: New class.
  14378. * src/FeatureConfig.h: New class.
  14379. * src/FeatureConfig.cc: New class.
  14380. * src/Request.h
  14381. (defaultPorts): Removed.
  14382. * src/Request.cc
  14383. (FeatureConfig.h): Included.
  14384. (Request): Removed the statements related to defaultPorts.
  14385. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14386. A default port number is now retrieved from FeatureConfig.
  14387. * src/main.cc
  14388. (HaveEraseCommand.h): Included.
  14389. (showVersion): Added the output of feature list.
  14390. (main): Added HaveEraseCommand to command queue in BitTorrent
  14391. downloading.
  14392. * src/PeerInteractionCommand.h
  14393. (chokeCheckPoint): Commented out.
  14394. (periodicExecPoint): New variable.
  14395. * src/PeerInteractionCommand.cc
  14396. (executeInternal): Following methods are now called in at least every
  14397. 0.5 seconds to reduce CPU usage:
  14398. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14399. checkHave(), sendKeepAlive().
  14400. (checkLongTimePeerChoking): Commented out.
  14401. * src/BitfieldMan.h
  14402. (getNthBitIndex): Changed the method signature.
  14403. (getMissingIndexRandomly): Changed the method signature.
  14404. * src/BitfieldMan.cc
  14405. (getNthBitIndex): Rewritten
  14406. (getMissingIndexRandomly): Rewritten.
  14407. (hasMissingPiece): Rewritten.
  14408. (getMissingIndex): Refactored.
  14409. (getMissingUnusedIndex); Refactored.
  14410. (getMissingIndex): Refactored.
  14411. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14412. * src/PeerMessage.h
  14413. (Piece.h): Included.
  14414. (SharedHandle.h): Included.
  14415. (invalidate): New variable.
  14416. (uploading): New variable.
  14417. (isInvalidate): New function.
  14418. (isUploading): New function.
  14419. (onPush): New function.
  14420. (onChoked): New function.
  14421. (onCanceled): New function.
  14422. (onAbortPiece): New function.
  14423. (PeerMessageHandle): New type definition.
  14424. * src/PeerMessage.cc
  14425. (PeerMessage): Added the initialization for invalidate and uploading.
  14426. * src/CancelMessage.h
  14427. (CancelMessage): Rewritten.
  14428. * src/RejectMessage.h
  14429. (RejectMessage): Rewritten.
  14430. * src/Metalinker.h
  14431. (operator=): Defined.
  14432. * src/MetaEntry.h
  14433. (operator=): Defined.
  14434. * src/MetalinkResource.h
  14435. (operator=): Defined.
  14436. * src/AllowedFastMessage.h
  14437. (AllowedFastMessage): Rewritten.
  14438. * src/HandshakeMessage.h
  14439. (HandshakeMessage): New function(overload).
  14440. * src/HandshakeMessage.cc
  14441. (HandshakeMessage): Rewritten.
  14442. (init): New function.
  14443. * src/HaveMessage.h
  14444. (HaveMessage): Rewritten.
  14445. * src/Time.h
  14446. (operator=): Defined the function body here.
  14447. * src/Time.cc
  14448. (operator=): Removed.
  14449. * src/SocketCore.h
  14450. (operator==): Defined here.
  14451. (operator!=): Defined here.
  14452. (operator<): Defined here.
  14453. * src/SocketCore.cc
  14454. (operator==): Removed.
  14455. (operator<): Removed.
  14456. * src/BitfieldMan.h
  14457. (operator=): Defined the function body here.
  14458. * src/BitfieldMan.cc
  14459. (operator=): Removed.
  14460. * src/TorrentMan.h
  14461. (deleteErrorPeer): Removed.
  14462. (deleteUnusedPeer); New function.
  14463. * src/TorrentMan.cc
  14464. (addPeer): Call deleteUnusedPeer.
  14465. (deleteErrorPeer): Removed.
  14466. (deleteUnusedPeer): New function.
  14467. * src/PeerAbstractCommand.h
  14468. (setNoCheck): New function.
  14469. (noCheck): New variable.
  14470. * src/PeerAbstractCommand.cc
  14471. (PeerAbstractCommand): Added the initialization of noCheck.
  14472. (execute): Added a check for noCheck.
  14473. (setNoCheck): New function.
  14474. * src/Util.h
  14475. (stdio.h): Included.
  14476. * src/Util.cc
  14477. (unistd.h): Included.
  14478. * src/DefaultDiskWriter.cc
  14479. (unistd.h): Included.
  14480. * src/Peer.h
  14481. (operator==): Defined the function body here.
  14482. (operator!=): Defined the function body here.
  14483. * src/Peer.cc
  14484. (operator==): Removed.
  14485. (operator!=): Removed.
  14486. * src/Piece.h
  14487. (Piece): Defined the function body here(copy constructor).
  14488. (operator=): Defined the function body here.
  14489. (operator==): Defined the function body here.
  14490. * src/Piece.cc
  14491. (Piece): Removed(copy constructor).
  14492. (operator=): Removed.
  14493. (operator==): Removed.
  14494. * src/PeerMessageUtil.h
  14495. (ChokeMessage.h): Removed.
  14496. (UnchokeMessage.h): Removed.
  14497. (InterestedMessage.h): Removed.
  14498. (NotInterestedMessage.h): Removed.
  14499. (HaveMessage.h): Removed.
  14500. (BitfieldMessage.h): Removed.
  14501. (RequestMessage.h): Removed.
  14502. (CancelMessage.h): Removed.
  14503. (PieceMessage.h): Removed.
  14504. (HandshakeMessage.h): Removed.
  14505. (KeepAliveMessage.h): Removed.
  14506. (PortMessage.h): Removed.
  14507. (HaveAllMessage.h): Removed.
  14508. (HaveNoneMessage.h): Removed.
  14509. (PeerConnection.h): Removed.
  14510. (HandshakeMessage.h): Included.
  14511. * src/BitfieldMessage.h
  14512. (init): New function.
  14513. (BitfieldMessage): Rewritten.
  14514. (BitfieldMessage): New function(overload).
  14515. * src/RequestSlot.h
  14516. (operator=): Defined the function body here.
  14517. (operator==): Defined the function body here.
  14518. * src/RequestSlot.cc
  14519. (operator=): Removed.
  14520. (operator==): Removed.
  14521. To remove the dependency on the PeerMessage subclass from
  14522. PeerInteraction:
  14523. * src/PeerMessageFactory.h: New class.
  14524. * src/PeerMessageFactory.cc: New class.
  14525. * src/SimplePeerMessage.cc
  14526. (send): If invalidate is true then do nothing.
  14527. * src/PeerInteractionCommand.cc
  14528. (HandshakeMessage.h): Included.
  14529. (KeepAliveMessage.h): Included.
  14530. (ChokeMessage.h): Included.
  14531. (UnchokeMessage.h): Included.
  14532. (HaveMessage.h): Included.
  14533. (executeInternal): Call setNoCheck().
  14534. Removed setWriteCheckSocket(socket).
  14535. * src/PeerInteraction.h
  14536. (ChokeMessage.h): Removed.
  14537. (UnchokeMessage.h): Removed.
  14538. (InterestedMessage.h): Removed.
  14539. (NotInterestedMessage.h): Removed.
  14540. (HaveMessage.h): Removed.
  14541. (BitfieldMessage.h): Removed.
  14542. (RequestMessage.h): Removed.
  14543. (CancelMessage.h): Removed.
  14544. (PieceMessage.h): Removed.
  14545. (HandshakeMessage.h): Removed.
  14546. (KeepAliveMessage.h): Removed.
  14547. (PortMessage.h): Removed.
  14548. (HaveAllMessage.h): Removed.
  14549. (HaveNoneMessage.h): Removed.
  14550. (RejectMessage.h): Removed.
  14551. (AllowedFastMessage.h): Removed.
  14552. (SuggestPieceMessage.h): Removed.
  14553. (PeerMessageFactory.h): Included.
  14554. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14555. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14556. (PeerMessageFactory): New variable.
  14557. (createPeerMessage): Removed.
  14558. (createHandshakeMessage): Removed.
  14559. (setPeerMessageCommonProperty): Removed.
  14560. (addRequestSlot): New function.
  14561. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14562. (getPeerMessageFactory): New function.
  14563. (createRequestMessage): Removed.
  14564. (createCancelMessage): Removed.
  14565. (createPieceMessage): Removed.
  14566. (createHaveMessage): Removed.
  14567. (createChokeMessage): Removed.
  14568. (createUnchokeMessage): Removed.
  14569. (createInterestedMessage): Removed.
  14570. (createNotInterestedMessage): Removed.
  14571. (createBitfieldMessage): Removed.
  14572. (createKeepAliveMessage): Removed.
  14573. (createHaveAllMessage): Removed.
  14574. (createHaveNoneMessage): Removed.
  14575. (createRejectMessage): Removed.
  14576. (createAllowedFastMessage): Removed.
  14577. * src/PeerInteraction.cc
  14578. (PeerInteraction): Allocate PeerMessageFactory here.
  14579. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14580. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14581. PieceMessage::ID.
  14582. (addMessage): Simplified by using PeerMessage::onPush().
  14583. (addRequestSlot): New function.
  14584. (rejectAllPieceMessageInQueue): Simplified by using
  14585. PeerMessage::onChoked().
  14586. (rejectPieceMessageInQueue): Simplified by using
  14587. PeerMessage::onCanceled().
  14588. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14589. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14590. (createHandshakeMessage): Removed.
  14591. (createPeerMessage): Removed.
  14592. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14593. (setPeerMessageCommonProperty): Removed.
  14594. (createRequestMessage): Removed.
  14595. (createCancelMessage): Removed.
  14596. (createPieceMessage): Removed.
  14597. (createHaveMessage): Removed.
  14598. (createChokeMessage): Removed.
  14599. (createUnchokeMessage): Removed.
  14600. (createInterestedMessage): Removed.
  14601. (createNotInterestedMessage): Removed.
  14602. (createBitfieldMessage): Removed.
  14603. (createKeepAliveMessage): Removed.
  14604. (createHaveAllMessage): Removed.
  14605. (createHaveNoneMessage): Removed.
  14606. (createRejectMessage): Removed.
  14607. (createAllowedFastMessage): Removed.
  14608. * src/PieceMessage.h
  14609. (createRejectMessage): New function.
  14610. (PieceMessage): Rewritten.
  14611. (onChoked): New function.
  14612. (onCanceled): New function.
  14613. * src/PieceMessage.cc
  14614. (send): If invalidate is true then do nothing, just return.
  14615. (createRejectMessage): New function.
  14616. (onChoked): New function.
  14617. (onCanceled): New function.
  14618. * src/RequestMessage.h
  14619. (RequestMessage): Rewritten.
  14620. (onPush): New function.
  14621. (onAbortPiece): New function.
  14622. * src/RequestMessage.cc
  14623. (onPush): New function.
  14624. (onAbortPiece): New function.
  14625. Update fd_set when a socket is added or deleted in order to improve
  14626. performance:
  14627. * src/DownloadEngine.h
  14628. (rfdset): New variable.
  14629. (wfdset): New variable.
  14630. (updateFdSet): New function.
  14631. * src/DownloadEngine.cc
  14632. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14633. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14634. (waitData): Copy rfdset and wfdset.
  14635. (updateFdSet): New function.
  14636. (addSocket): Call updateFdSet.
  14637. (deleteSocket): Call updateFdSet.
  14638. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14639. To add the support for Metalink3.0 backward compatible links:
  14640. * src/Request.h
  14641. (SAFE_CHARS): Added '#'.
  14642. (METALINK_MARK): New definition.
  14643. * src/Request.cc
  14644. (parseUrl): Added the support for Metalink3.0 backward compatible
  14645. links.
  14646. etc
  14647. * src/PeerInteraction.cc
  14648. (MsgPushBack): Removed.
  14649. (sendMessages): Use STL copy and back_inserter.
  14650. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14651. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14652. * src/TorrentMan.h
  14653. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14654. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14655. * src/SharedHandle.h: New class.
  14656. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14657. * src/HttpResponseCommand.h
  14658. (HttpResponseCommand): Wrapped Socket.
  14659. * src/SocketCore.h
  14660. (operator==): New function.
  14661. (operator!=): New function.
  14662. (operator<): New function.
  14663. (getSockfd): New function.
  14664. (isOpen): New function.
  14665. (writeData): New function.
  14666. * src/SocketCore.cc
  14667. (operator==): New function.
  14668. (operator!=): New function.
  14669. (operator<): New function.
  14670. * src/AbstractCommand.h
  14671. (socket): Changed its type to SocketHandle.
  14672. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14673. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14674. (disableReadCheckSocket): New function.
  14675. (disableWriteCheckSocket): New function.
  14676. (readCheckTarget): Changed its type to SocketHandle.
  14677. (writeCheckTarget): Changed its type to SocketHandle.
  14678. (AbstractCommand): Replaced Socket with SocketHandle.
  14679. * src/AbstractCommand.cc
  14680. (AbstractCommand): Replaced Socket with SocketHandle.
  14681. (~AbstractCommand): Removed the deallocation for Socket object.
  14682. (disableReadCheckSocket): New function.
  14683. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14684. (disableWriteCheckSocket): New function.
  14685. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14686. * src/HttpDownloadCommand.cc
  14687. (DownloadCommand): Replaced Socket with SocketHandle.
  14688. * src/PeerAbstractCommand.h
  14689. (socket): Changed its type to SocketHandle.
  14690. (peer): Changed its type to PeerHandle.
  14691. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14692. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14693. (disableReadCheckSocket): New function.
  14694. (disableWriteCheckSocket): New function.
  14695. (readCheckTarget): Changed its type to SocketHandle.
  14696. (writeCheckTarget): Changed its type to SocketHandle.
  14697. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14698. Replaced Peer with PeerHandle.
  14699. * src/HttpRequestCommand.cc
  14700. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14701. Use disableReadCheckSocket.
  14702. * src/PeerInitiateConnectionCommand.h
  14703. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14704. * src/PeerChokeCommand.cc
  14705. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14706. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14707. (execute): Use PeerHandle.
  14708. * src/PeerConnection.h
  14709. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14710. (socket): Changed its type to SocketHandle.
  14711. (PeerConnection): Replaced Socket with SocketHandle.
  14712. * src/PeerConnection.cc
  14713. (PeerConnection): Replaced Socket with SocketHandle.
  14714. * src/PeerInteractionCommand.h
  14715. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14716. Replaced Peer with PeerHandle.
  14717. * src/PeerInteractionCommand.cc
  14718. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14719. Replaced Peer with PeerHandle.
  14720. (executeInternal): Use disableWriteCheckSocket.
  14721. Use HandshakeMessageHandle.
  14722. (receiveMessages): Use PeerMessageHandle.
  14723. (prepareForNextPeer): Use PeerHandle.
  14724. * src/HttpProxyRequestCommand.h
  14725. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14726. * src/HttpResponseCommand.cc
  14727. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14728. * src/TorrentMan.cc
  14729. (nullPeer): Added external reference.
  14730. (~TorrentMan): Removed the deallocation of the elements of peers.
  14731. (addPeer): Rewritten.
  14732. (isPeerAvailable): Use nullPeer.
  14733. (deleteOldpeers): Replaced with deleteErrorPeer.
  14734. (deleteErrorPeer): New function.
  14735. (getPeer): Use PeerHandle and nullPeer.
  14736. (hasMissingPiece): Replaced Peer with PeerHandle.
  14737. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14738. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14739. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14740. (getMissingPiece): Replaced Peer with PeerHandle.
  14741. * src/FtpNegotiateCommand.cc
  14742. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14743. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14744. (recvGreeting): Use disableWriteCheckSocket.
  14745. (recvPasv): Removed the allocation of Socket.
  14746. Use disableReadCheckSocket.
  14747. (sendRestPasv): Use disableWriteCheckSocket.
  14748. (recvRetr): Changed assertion.
  14749. * src/PeerInteraction.h
  14750. (SharedHandle.h): Included SharedHandle.h.
  14751. (PeerMessageHandle): New type definition.
  14752. (HandshakeMessageHandle): New type definition.
  14753. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14754. (peer): Changed its type to PeerHandle.
  14755. (createHandshakeMessage): Replaced HandshakeMessage with
  14756. HandshakeMessageHandle.
  14757. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14758. (PeerInteraction): Replaced Peer with PeerHandle.
  14759. Replaced Socket with SocketHandle.
  14760. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14761. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14762. (receiveHandshake): Replaced HandshakeMessage with
  14763. HandshakeMessageHandle.
  14764. * src/PeerInteraction.cc
  14765. (PeerInteraction): Replaced Peer with PeerHandle.
  14766. Replaced Socket with SocketHandle.
  14767. (~PeerInteraction): Removed the deallocation of the elements of
  14768. messageQueue.
  14769. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14770. (isSendingMessageInProgress): Replaced PeerMessage with
  14771. PeerMessageHandle.
  14772. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14773. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14774. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14775. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14776. (abortPiece): Use PeerMessageHandle.
  14777. (receiveHandshake): Replaced HandshakeMessage with
  14778. HandshakeMessageHandle. Removed try-catch block.
  14779. (createHandshakeMessage): Replaced HandshakeMessage with
  14780. HandshakeMessageHandle.
  14781. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14782. Removed try-catch block.
  14783. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14784. * src/HttpProxyResponseCommand.cc
  14785. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14786. * src/FtpTunnelResponseCommand.h
  14787. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14788. * src/HttpConnection.cc
  14789. (HttpConnection): Replaced Socket with SocketHandle.
  14790. * src/PeerAbstractCommand.cc
  14791. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14792. (~PeerAbstractCommand): Removed the deallocation of socket.
  14793. Use disableReadCheckSocket, disableWriteCheckSocket.
  14794. (disableReadCheckSocket): New function.
  14795. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14796. (disableWriteCheckSocket): New function.
  14797. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14798. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14799. * src/FtpTunnelRequestCommand.cc
  14800. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14801. (~FtpTunnelRequestCommand): Corrected indentation.
  14802. * src/DownloadCommand.h
  14803. (DownloadCommand): Replaced Socket with SocketHandle.
  14804. * src/PeerListenCommand.cc
  14805. (PeerListenCommand): Removed the initialization of socket.
  14806. (~PeerListenCommand): Removed the deallocation of socket.
  14807. (bindPort): Use SocketHandle.
  14808. (execute): Use SocketHandle and PeerHandle.
  14809. * src/FtpDowndloadCommand.cc
  14810. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14811. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14812. * src/main.cc
  14813. (main): Corrected indentation.
  14814. * src/HttpInitiateConnectionCommand.cc
  14815. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14816. (executeInternal): Removed the allocation of socket.
  14817. * src/HttpRequestCommand.h
  14818. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14819. * src/FtpNegotiationCommand.h
  14820. (dataSocket): Changed its type to SocketHandle.
  14821. (serverSocket): Changed its type to SocketHandle.
  14822. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14823. * src/TorrentMan.h
  14824. (MAX_PEER_UPDATE): Removed.
  14825. (MAX_PEERS): New definition.
  14826. (Peers): The element is now of type PeerHandle.
  14827. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14828. (getPeer): Replaced Peer with PeerHandle.
  14829. (deleteOldErrorPeers): Removed.
  14830. (deleteErrorPeer): New function.
  14831. (hasMissingPiece): Replaced Peer with PeerHandle.
  14832. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14833. (getMissingPiece): Replaced Peer with PeerHandle.
  14834. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14835. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14836. (addActivePeer): Replaced Peer with PeerHandle.
  14837. (deleteActivePeer): Replaced Peer with PeerHandle.
  14838. Added a check for the return value of find.
  14839. * src/FtpTunnelResponseCommand.cc
  14840. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14841. * src/FtpInitiateConnectionCommand.cc
  14842. (executeInternal): Removed the allocation of socket.
  14843. * src/DownloadEngine.h
  14844. (Sockets): An element is now of type SocketHandle.
  14845. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14846. (CommandUuids): New type definition.
  14847. (rsockets): Changed its type to SockCmdMap.
  14848. (wsockets): Changed its type to SockCmdMap.
  14849. (addSocket): Rewritten.
  14850. (deleteSocket): Rewritten.
  14851. (addSocketForReadCheck): Rewritten.
  14852. (deleteSocketForReadCheck): Rewritten.
  14853. (addSocketForWriteCheck): Rewritten.
  14854. (deleteSocketForWriteCheck): Rewritten.
  14855. (PairFind): New template class.
  14856. * src/HttpDownloadCommand.h
  14857. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14858. * src/FtpConnection.cc
  14859. (FtpConnection): Replaced Socket with SocketHandle.
  14860. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14861. block.
  14862. * src/InitiateConnectionCommandFactory.cc
  14863. (DlAbortEx.h): Included DlAbortEx.h.
  14864. (createInitiateConnectionCommand): Throw exception if the protocol of
  14865. requested URI is not supported.
  14866. * src/Peer.cc
  14867. (nullPeer): Changed its type to PeerHandle.
  14868. (operator==): New function.
  14869. (operator!=): New function.
  14870. * src/Peer.h
  14871. (SharedHandle.h): Included SharedHandle.h.
  14872. (operator==): New function.
  14873. (operator!=): New function.
  14874. (Peer): Added the default constructor.
  14875. Use resetStatus() to initialize member variables.
  14876. (nullPeer): Removed.
  14877. * src/TrackerUpdateCommand.cc
  14878. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14879. with MIN_PEERS.
  14880. * src/PeerListenCommand.h
  14881. (socket): Changed its type to SocketHandle.
  14882. * src/Command.h
  14883. (CommandUuid): New type definition.
  14884. (uuid): New variable.
  14885. (uuidGen): New variable.
  14886. (Command): Added the initialization of uuid.
  14887. (getUuid): New function.
  14888. * src/Socket.h
  14889. (Socket): Removed.
  14890. (SocketHandle): New type definition.
  14891. * src/DownloadEngine.h
  14892. (FindCommand): New function object.
  14893. (run): The portion of socket check was rewritten.
  14894. (SetDescriptor): New function object.
  14895. (AccumulateActiveCommandUuid): New function object.
  14896. (waitData): Rewritten.
  14897. (addSocket): Rewritten.
  14898. (deleteSocket): Rewritten.
  14899. (addSocketForReadCheck): Rewritten.
  14900. (addSocketForWriteCheck): Rewritten.
  14901. (deleteSocketForReadCheck): Rewritten.
  14902. (deleteSocketForWriteCheck): Rewritten.
  14903. * src/HttpProxyResponseCommand.h
  14904. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14905. * src/HttpConnection.h
  14906. (socket): Changed its type to SocketHandle.
  14907. (HttpConnection): Replaced Socket with SocketHandle.
  14908. * src/PeerInitiateConnectionCommand.cc
  14909. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14910. (executeInternal): Removed the allocation of socket.
  14911. (prepareForNextPeer): Use PeerHandle.
  14912. * src/PeerMessage.h
  14913. (peer): Changed its type to PeerHandle.
  14914. (getPeer): Replaced Peer with PeerHandle.
  14915. (setPeer): Replaced Peer with PeerHandle.
  14916. * src/DownloadCommand.cc
  14917. (DownloadCommand): Replaced Socket with SocketHandle.
  14918. * src/FtpConnection.h
  14919. (socket): Changed its type to SocketHandle.
  14920. (FtpConnection): Replaced Socket with SocketHandle.
  14921. (sendPort); Replaced Socket with SocketHandle.
  14922. * src/FtpDowndloadCommand.h
  14923. (ctrlSocket): Changed its type to SocketHandle.
  14924. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14925. * src/HttpProxyRequestCommand.cc
  14926. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14927. * src/FtpTunnelRequestCommand.h
  14928. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14929. etc
  14930. * src/PeerChokeCommand.h
  14931. (setAllPeerChoked): Removed.
  14932. (setAllPeerResetDelta): Removed.
  14933. * src/PeerChokeCommand.cc
  14934. (setAllPeerChoked): Removed.
  14935. (ChokePeer): New function object.
  14936. (setAllPeerResetDelta): Removed.
  14937. (ResetDelta): New function object.
  14938. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14939. (execute): Show download speed when the local node is a seeder.
  14940. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14941. using STL.
  14942. * src/TrackerWatcherCommand.h
  14943. (MIN_PEERS): Removed.
  14944. * src/TorrentMan.cc
  14945. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14946. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14947. To fix the bug that .aria2 file is not saved if downloading is stopped
  14948. by the errors:it results that aria2 can not resume downloading:
  14949. * src/main.cc
  14950. (normalDownload): Added the call to save().
  14951. (main): Added the deletion of the elements in 'reserved'.
  14952. To fix log:
  14953. * src/PeerInteraction.cc
  14954. (receiveHandshake): Fixed log.
  14955. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14956. To improve download performance in BitTorrent:
  14957. * src/TorrentMan.cc
  14958. (getPeer): Check the number of connections. Return nullPeer if
  14959. it is greater than MAX_PEER_UPDATE.
  14960. This code was originally here, but was removed in 0.5.1.
  14961. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14962. To improve the conditional compilation:
  14963. * src/MultiDiskWriter.h:
  14964. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14965. * src/MultiDiskWriter.cc:
  14966. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14967. * src/Util.h:
  14968. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14969. Added ENABLE_BITTORRENT around computeFastSet().
  14970. * src/Util.cc:
  14971. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14972. Added ENABLE_BITTORRENT around computeFastSet().
  14973. * src/messageDigest.h:
  14974. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14975. * src/ShaVisitor.h:
  14976. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14977. * src/ShaVisitor.cc:
  14978. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14979. * src/main.cc:
  14980. Added ENABLE_BITTORRENT around includes and blocks related to
  14981. BitTorrent.
  14982. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14983. digest support is not available.
  14984. * src/AbstractDiskWriter.h:
  14985. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14986. * src/AbstractDiskWriter.cc:
  14987. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14988. * src/MetalinkEntry.cc
  14989. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14990. support is not available.
  14991. To add command-line options for Metalink:
  14992. * src/main.cc:
  14993. Added metalink-version, metalink-language, metalink-os,
  14994. follow-metalink.
  14995. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14996. * src/main.cc: Use these definition.
  14997. * Release 0.6.0
  14998. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14999. To add Metalink support(http/ftp only):
  15000. * src/AbstractCommand.h
  15001. (tryReserved): New function.
  15002. * src/AbstractCommand.cc
  15003. (execute): Call tryReserved().
  15004. (tryReserved): New function.
  15005. * src/Request.h
  15006. (Requests): New type definition.
  15007. * src/SegmentMan.h
  15008. (reserved): New variable.
  15009. * src/Util.h
  15010. (fileChecksum): New function.
  15011. (toUpper): New function.
  15012. (toLower): New function.
  15013. * src/Util.cc
  15014. (messageDigest.h): Included.
  15015. (trim): Trim \r\n\t.
  15016. (fileChecksum): New function.
  15017. (toUpper): New function.
  15018. (toLower): New function.
  15019. * src/main.cc
  15020. (normalDownload): New function.
  15021. (main): Added 2 command-line options: metalink-file,
  15022. metalink-connection. Their usage has not been written yet.
  15023. * src/MetalinkProcessor.h: New class.
  15024. * src/Xml2MetalinkProcessor.h: New class.
  15025. * src/Xml2MetalinkProcessor.cc: New class.
  15026. * src/MetalinkEntry.h: New class.
  15027. * src/MetalinkEntry.cc: New class.
  15028. * src/MetalinkResource.h: New class.
  15029. * src/MetalinkResource.cc: New class.
  15030. To add md5 message digest checking:
  15031. * src/messageDigest.h: Rewritten.
  15032. * src/MultiDiskWriter.cc: Updated according to the changes in
  15033. messageDigest.h.
  15034. * src/ShaVisitor.cc: Updated according to the changes in
  15035. messageDigest.h.
  15036. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15037. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15038. messageDigest.h.
  15039. To fix a bug that causes segfault when the payload length in peer
  15040. message is less than 0:
  15041. * src/PeerConnection.cc:
  15042. (receiveMessage): Fixed the bug.
  15043. * src/PeerMessageUtil.cc
  15044. (checkLength): Throw an exception if length is less than or equals to
  15045. 0.
  15046. To add new interfaces to Base64 encoding/decoding:
  15047. * src/Base64.h
  15048. (part_encode): Changed the method signature.
  15049. (encode): New function(overload).
  15050. (decode): New function(overload).
  15051. * src/Base64.cc
  15052. (part_encode): Rewritten.
  15053. (encode): Rewritten.
  15054. (encode): New function(overload).
  15055. To prevent a peer to download same piece if there is an error in
  15056. checksum:
  15057. * src/PieceMessage.cc
  15058. (receivedAction): Call peerInteraction->abortPiece().
  15059. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15060. To fix the bug that causes same have message is sent many times to
  15061. a single peer.
  15062. * src/Time.cc
  15063. (isNewer): Use Util::difftv().
  15064. * src/Util.cc
  15065. (difftv): Added a cast to (long long int).
  15066. * src/TorrentMan.cc
  15067. (advertisePiece): Use push_front.
  15068. (getAdvertisedPieceIndexes): A performance improvement was made.
  15069. To fix the bug that sends tracker requests without a sleep interval
  15070. when the number of connections is less than 15.
  15071. * src/TrackerWatcherCommand.cc
  15072. (execute): Now the number of connections is not a factor to decide
  15073. whether or not a tracker request should be sent or not.
  15074. * src/Time.h
  15075. (setTimeInSec): New function.
  15076. * src/Time.cc
  15077. (setTimeInSec): New function.
  15078. etc.
  15079. * src/ChokeMessage.cc
  15080. (receivedAction): Removed peer->snubbing = false
  15081. * src/PeerConnection.h
  15082. (receiveHandshake): Updated doc.
  15083. * src/TorrentMan.h
  15084. (getAdvertisedPieceIndexes): Updated the method signature.
  15085. * src/TorrentMan.cc
  15086. (getAdvertisedPieceIndexes): Updated the method signature.
  15087. * src/Time.h
  15088. (getTimeInMicros): Added a cast to (long long int).
  15089. (getTimeInMillis): Added a cast to (long long int).
  15090. * Release 0.5.2
  15091. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15092. To make a listening socket non-block:
  15093. * src/SocketCore.h
  15094. (setNonBlockingMode): New function.
  15095. * src/SocketCore.cc
  15096. (setNonBlockingMode): New function.
  15097. (beginListen): Added a call to setNonBlockingMode().
  15098. (acceptConnection): Call setNonBlockingMode().
  15099. (setBlockingMode): Updated.
  15100. To handle tracker's NAT-checking:
  15101. * src/PeerConnection.cc
  15102. (receiveHandshake): 'msg' param is filled with received data and
  15103. its length is assigned to 'length' param, even if all handshake
  15104. message is not yet received.
  15105. * src/PeerInteractionCommand.cc
  15106. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15107. a new peer connects to localhost.
  15108. A call to peerInteraction->sendHandshake() was removed because
  15109. it is called from peerInteraction->receiveHandshake(true).
  15110. * src/PeerInteraction.h
  15111. (quickReplied): New variable.
  15112. (receiveHandshake): Added an argument.
  15113. * src/PeerInteraction.cc
  15114. (PeerInteraction): Added the initialization of quickReplied.
  15115. (receiveHandshake): Send handshake message as soon as the info hash
  15116. in a handshake message from a peer is correct.
  15117. To change the random part of peer id and key parameter:
  15118. * src/TorrentMan.h
  15119. (key): New variable.
  15120. * src/TorrentMan.cc
  15121. (setupInternal1): Use Util::randomAlpha() to generate random part
  15122. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15123. key is also generated by Util::randomAlpha() and it is now 8 character
  15124. long.
  15125. * src/Util.h
  15126. (randomAlpha): New function.
  15127. * src/Util.cc
  15128. (randomAlpha): New function.
  15129. * src/TrackerWatcherCommand.cc
  15130. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15131. Added no_peer_id=1.
  15132. Set snubbing flag to false when a choke message is received from a
  15133. snubbed peer.
  15134. * src/ChokeMessage.cc
  15135. (receivedAction): Set snubbing flag to false.
  15136. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15137. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15138. * src/SimpleLogger.h (writeHeader): New function.
  15139. * src/SimpleLogger.cc (writeHeader): New function.
  15140. (writeLog): Fixed the bug that causes segfaults if exception message
  15141. contains an unescaped "%" character.
  15142. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15143. when a tracker request fails.
  15144. * src/Request.cc (parseUrl): Query string is now handled properly.
  15145. * Release 0.5.1
  15146. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15147. To add Time class which represents a specific instant in time and
  15148. its precision is microseconds. Time checking procedures were rewritten
  15149. using this object.
  15150. * src/Time.h: New class.
  15151. * src/Time.cc: New class.
  15152. * src/AbstractCommand.h
  15153. (updateCheckPoint): Removed.
  15154. (isTimeoutDetected): Removed.
  15155. (checkPoint): Changed the type to Time.
  15156. (timeout): New variable.
  15157. (setTimeout): New function.
  15158. * src/AbstractCommand.cc
  15159. (AbstractCommand): Removed the initialization of checkPoint.
  15160. Added the initialization of timeout.
  15161. (updateCheckPoint): Removed.
  15162. (isTimeoutDetected): Removed.
  15163. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15164. * src/PeerChokeCommand.h
  15165. (checkPoint): Changed the type to Time.
  15166. * src/PeerChokeCommand.cc
  15167. (PeerChokeCommand): Removed the initialization of checkPoint.
  15168. (execute): Rewritten using Time object.
  15169. * src/TrackerWatcherCommand.h
  15170. (checkPoint): Changed the type to Time.
  15171. * src/TrackerWatcherCommand.cc
  15172. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15173. (execute): Rewritten.
  15174. * src/ConsoleDownloadEngine.h
  15175. (cp): Changed the type to Time.
  15176. (startup): Changed the type to Time.
  15177. * src/ConsoleDownloadEngine.cc
  15178. (initStatistics): Use cp.reset(), startup.reset().
  15179. (calculateStatistics): Rewritten using Time object.
  15180. * src/PeerAbstractCommand.h
  15181. (updateCheckPoint): Removed.
  15182. (isTimeoutDetected): Removed.
  15183. (checkPoint): Changed the type to Time.
  15184. * src/PeerAbstractCommand.cc
  15185. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15186. (updateCheckPoint): Removed.
  15187. (isTimeoutDetected): Removed.
  15188. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15189. * src/PeerInteractionCommand.cc
  15190. (PeerInteractionCommand): Removed the initializations of struct
  15191. timeval variables.
  15192. * src/PeerInteractionCommand.h
  15193. (keepAliveCheckPoint): Changed the type to Time.
  15194. (chokeCheckPoint): Changed the type to Time.
  15195. (freqCheckPoint): Changed the type to Time.
  15196. (haveCheckTime): Changed the type to Time.
  15197. * src/PeerInteractionCommand.cc
  15198. (executeInternal): Rewritten using Time object.
  15199. (detectMessageFlooding): Rewritten using Time object.
  15200. (checkLongTimePeerChoking): Rewritten using Time object.
  15201. (sendKeepAlive): Rewritten using Time object.
  15202. (checkHave): Rewritten using Time object.
  15203. * src/SleepCommand.h
  15204. (checkPoint): Changed the type to Time.
  15205. * src/SleepCommand.cc
  15206. (SleepCommand): Removed the initialization of checkPoint.
  15207. (execute): Rewritten using Time object.
  15208. * src/TorrentAutoSaveCommand.h
  15209. (checkPoint): Changed the type to Time.
  15210. * src/TorrentAutoSaveCommand.cc
  15211. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15212. (execute): Rewritten.
  15213. * src/DownloadCommand.h
  15214. (sw): Changed the type to Time.
  15215. * src/DownloadCommand.cc
  15216. (DownloadCommand): Removed the initialization of sw.
  15217. (executeInternal): Rewritten.
  15218. * src/RequestSlot.h
  15219. (dispatchedTime): Changed the type to Time.
  15220. * src/RequestSlot.cc
  15221. (RequestSlot): Removed the call to setDispatchedTime().
  15222. (setDispatchedTime): Rewirtten.
  15223. (isTimeout): Rewritten.
  15224. (getLatencyInMillis): Rewritten.
  15225. * src/TorrentDownloadEngine.h
  15226. (cp): Changed the type to Time[2].
  15227. (startup): Changed the type to Time.
  15228. * src/TorrentDownloadEngine.cc
  15229. (initStatistics): Rewritten.
  15230. (calculateStatistics): Rewritten.
  15231. * src/DownloadEngine.cc
  15232. (run): Rewritten.
  15233. To detect all attempts to connect to the tracker are failed:
  15234. * src/AbstractCommand.cc
  15235. (execute): Increment e->segmentMan->errors if a command aborted.
  15236. * src/SegmentMan.h
  15237. (errors): New variable.
  15238. * src/SegmentMan.cc
  15239. (SegmentMan): Added the initialization of errors.
  15240. (init): Added the initialization of errors.
  15241. * src/TrackerWatcherCommand.cc
  15242. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15243. request was failed.
  15244. To handle snubbed peers:
  15245. * src/PeerChokeCommand.cc
  15246. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15247. (execute): Snubbed peers don't get unchoked.
  15248. * src/PeerInteraction.h
  15249. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15250. * src/PeerInteraction.cc
  15251. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15252. back the requested 16k block in 60 seconds.
  15253. * src/PieceMessage.cc
  15254. (receivedAction): A peer's snubbed state is cleard if it sends
  15255. the requested 16k block in 60 seconds.
  15256. * src/Peer.h
  15257. (snubbing): New variable.
  15258. * src/Peer.cc
  15259. (resetStatus): Added snubbed = false.
  15260. To fix the bug that causes have message is not sent:
  15261. * src/PeerInteractionCommand.cc
  15262. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15263. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15264. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15265. * src/TorrentMan.h
  15266. (HaveEntry): New class.
  15267. (advertisePiece): Rewritten.
  15268. (getAdvertisedPieceIndexes): Rewritten.
  15269. (Haves): Changed the type.
  15270. (getAdvertisedPieceIndexes): Added an argument.
  15271. Others:
  15272. * src/TorrentMan.h
  15273. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15274. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15275. * src/TorrentMan.cc
  15276. (getPeer): Don't check the number of connections here.
  15277. (setupInternal1): Changed peerId.
  15278. * src/PeerInteractionCommand.h
  15279. (KEEP_ALIVE_INTERVAL): New definition.
  15280. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15281. * src/main.cc
  15282. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15283. * src/DownloadEngine.h: Removed unnecessary header includes.
  15284. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15285. To fix the bug that causes segfaults if a tracker returns a zero-length
  15286. list as "peers":
  15287. * src/TrackerUpdateCommand.cc
  15288. (execute): Added a check to see wether the type of peers is Data*.
  15289. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15290. * Release 0.5.0
  15291. To fix compile issue with gcc3:
  15292. * src/CancelMessage.h
  15293. (ID): Renamed as ID_t
  15294. (ID_t): New enum.
  15295. * src/RejectMessage.h
  15296. (ID): Renamed as ID_t
  15297. (ID_t): New enum.
  15298. * src/SuggestPieceMessage.h
  15299. (ID): Renamed as ID_t
  15300. (ID_t): New enum.
  15301. * src/AllowedFastMessage.h
  15302. (ID): Renamed as ID_t
  15303. (ID_t): New enum.
  15304. * src/PortMessage.h
  15305. (ID): Renamed as ID_t
  15306. (ID_t): New enum.
  15307. * src/HaveNoneMessage.h
  15308. (ID): Renamed as ID_t
  15309. (ID_t): New enum.
  15310. * src/KeepAliveMessage.h
  15311. (ID): Renamed as ID_t
  15312. (ID_t): New enum.
  15313. * src/HaveAllMessage.h
  15314. (ID): Renamed as ID_t
  15315. (ID_t): New enum.
  15316. * src/UnchokeMessage.h
  15317. (ID): Renamed as ID_t
  15318. (ID_t): New enum.
  15319. * src/BitfieldMessage.h
  15320. (ID): Renamed as ID_t
  15321. (ID_t): New enum.
  15322. * src/PieceMessage.h
  15323. (ID): Renamed as ID_t
  15324. (ID_t): New enum.
  15325. * src/RequestMessage.h
  15326. (ID): Renamed as ID_t
  15327. (ID_t): New enum.
  15328. * src/NotInterestedMessage.h
  15329. (ID): Renamed as ID_t
  15330. (ID_t): New enum.
  15331. * src/ChokeMessage.h
  15332. (ID): Renamed as ID_t
  15333. (ID_t): New enum.
  15334. * src/InterestedMessage.h
  15335. (ID): Renamed as ID_t
  15336. (ID_t): New enum.
  15337. * src/HaveMessage.h
  15338. (ID): Renamed as ID_t
  15339. (ID_t): New enum.
  15340. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15341. * src/PeerAbstractCommand.h
  15342. (beforeSocketCheck): Removed.
  15343. * src/PeerAbstractCommand.cc
  15344. Modified in order to call executeInternal() even if socket check
  15345. and upload limit check fail.
  15346. * src/PeerInteractionCommand.h
  15347. (keepAlive): Removed.
  15348. (sendKeepAlive): New function.
  15349. (checkHave): New function.
  15350. (beforeSocketCheck): Removed.
  15351. * src/PeerInteractionCommand.cc
  15352. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15353. calls to checkHave() and sendKeepAlive().
  15354. (keepAlive): Renamed to sendKeepAlive().
  15355. (sendKeepAlive): New function.
  15356. (beforeSocketCheck): Removed.
  15357. (checkHave): New function.
  15358. * src/BitfieldMan.cc
  15359. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15360. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15361. 0.
  15362. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15363. * src/TorrentMan.h
  15364. (UsedPieces): Removed.
  15365. (Pieces): New type definition.
  15366. * src/Piece.h: Updated doc.
  15367. * src/Peer.h
  15368. (totalLength): Removed.
  15369. * src/Peer.cc
  15370. (updateLatency): Fixed the latency calculation.
  15371. * src/TorrentMan.cc
  15372. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15373. than or equal to MAX_PEER_LIST_SIZE.
  15374. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15375. then return false.
  15376. (deleteOldErrorPeers): Rewritten.
  15377. (deleteUsedPiece): Fixed the miss use of STL remove.
  15378. * src/PeerInteraction.h
  15379. (Pieces): Removed.
  15380. (deleteTimeoutRequestSlot): Removed.
  15381. (deleteCompletedRequestSlot): Removed.
  15382. (checkRequestSlot): New function.
  15383. * src/PeerInteraction.cc
  15384. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15385. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15386. (checkRequestSlot): New function.
  15387. * src/DownloadEngine.cc
  15388. (run): Clear activeSockets before calling waitData().
  15389. (waitData): Removed a call to activeSockets.clear().
  15390. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15391. To attempt to handle EINTR:
  15392. * src/SocketCore.cc
  15393. (isReadable): Added EINTR handling.
  15394. (isWritable): Added EINTR handling.
  15395. To improve the performance:
  15396. * src/AbstractCommand.cc
  15397. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15398. * src/PeerInteractionCommand.h
  15399. (receiveMessage): Renamed as receiveMessages().
  15400. (receiveMessages): New function.
  15401. * src/PeerInteractionCommand.cc
  15402. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15403. () function. detectMessageFlooding() is moved here.
  15404. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15405. (). The flooding detection for have message is comment out.
  15406. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15407. Util::difftv().
  15408. (receiveMessage): Renamed as receiveMessages().
  15409. (receiveMessages): New function.
  15410. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15411. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15412. * src/SleepCommand.cc
  15413. (execute): Use Util::difftvsec() instead of Util::difftv().
  15414. * src/BitfieldMan.h
  15415. (getNthBitIndex): New function.
  15416. (hasMissingPiece): New function.
  15417. (getAllMissingIndexes): New function.
  15418. * src/BitfieldMan.cc
  15419. (countSetBit): Rewritten.
  15420. (getNthBitIndex): New function.
  15421. (getMissingIndexRandomly): Rewritten.
  15422. (hasMissingPiece): New function.
  15423. (getAllMissingIndexes): New function.
  15424. * src/TorrentMan.cc
  15425. (hasMissingPiece): New function.
  15426. (deleteUsedPiece): Rewritten using STL.
  15427. * src/PeerInteraction.cc
  15428. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15429. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15430. (addRequests): Updated the number of pending requests.
  15431. * src/PeerAbstractCommand.cc
  15432. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15433. (execute): Returns true if TorrentMan::isHalt() is true.
  15434. Corrected the condition of upload limit checking.
  15435. * src/Util.h
  15436. (countBit): New function.
  15437. * src/Util.cc
  15438. (nbits): New variable.
  15439. (countBit): New function.
  15440. * src/DownloadEngine.h
  15441. (SockCmdMap): New type definition.
  15442. (waitData): Added an argument.
  15443. (addSocket): Added an argument.
  15444. (addSocketForReadCheck): Added an argument.
  15445. (addSocketForWriteCheck): Added an argument.
  15446. * src/DownloadEngine.cc
  15447. (run): Executes only commands whose sockets are ready to read or write.
  15448. All commands are executed in every 1 second.
  15449. (waitData): Calls select() again if it returned
  15450. EINTR.
  15451. (addSocket): Saves socket and command object pair to the map.
  15452. (deleteSocket): Deletes socket and command object pair from the map.
  15453. (addSocketForReadCheck): Added an argument.
  15454. (addSocketForWriteCheck): Added an argument.
  15455. * src/DownloadCommand.cc
  15456. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15457. To send "event=stopped" to the tracker when the application finishes:
  15458. * src/PeerChokeCommand.h
  15459. (checkPoint): New variable.
  15460. * src/PeerChokeCommand.cc
  15461. (PeerChokeCommand): Added the initialization of checkPoint.
  15462. (execute): The interval check is now done by checkPoint, not
  15463. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15464. * src/TorrentMan.h
  15465. (halt): New function.
  15466. (hasMissingPiece): New function.
  15467. (isHalt): New function.
  15468. (setHalt): New function.
  15469. * src/TorrentMan.cc
  15470. (TorrentMan): Added the initialization of halt.
  15471. * src/TorrentAutoSaveCommand.h
  15472. (checkPoint): New variable.
  15473. * src/PeerListenCommand.cc
  15474. (execute): Returns true if TorrentMan::isHalt() is true.
  15475. * src/main.cc
  15476. (setSignalHander): Added flags argument.
  15477. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15478. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15479. Removed printDownloadAbortMessage() after torrent downloading loop.
  15480. * src/TorrentAutoSaveCommand.cc
  15481. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15482. (execute): Returns true if TorrentMan::isHalt() is true.
  15483. The interval check is now done by checkPoint, not SleepCommand.
  15484. * src/TrackerWatcherCommand.cc
  15485. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15486. event=stopped.
  15487. * src/TrackerUpdateCommand.cc
  15488. (prepareForRetry): Do not use SleepCommand here.
  15489. (execute): Returns true if TorrentMan::isHalt() is true.
  15490. Others:
  15491. * src/TorrentMan.cc
  15492. (getMissingPieceIndex): Updated log message.
  15493. * src/PeerInteraction.cc
  15494. (createPeerMessag): Updated log message.
  15495. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15496. To add the ability to download several pieces in mix in a command and
  15497. increase the number of request slots according to request-cancel
  15498. latency:
  15499. * src/PeerInteractionCommand.cc
  15500. (executeInternal): The number of messages to be received at a time
  15501. is increased from 10 to 50.
  15502. * src/LogFactory
  15503. (getInstance): Added NullLogger.
  15504. * src/NullLogger.h: New class.
  15505. * src/BitfieldMan.h
  15506. (getMissingIndex): New function.
  15507. * src/BitfieldMan.cc
  15508. (getMissingIndex): New function.
  15509. * src/TorrentMan.h
  15510. (checkOutPiece): New function.
  15511. (getMissingPieceIndex): New function.
  15512. (getMissingFastPieceIndex): New function.
  15513. (getMissingFastPiece): New function.
  15514. * src/TorrentMan.cc
  15515. (updatePiece): Rewritten using STL.
  15516. (syncPiece): Rewritten using STL.
  15517. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15518. checkOutPiece().
  15519. (getMissingPieceIndex): New function.
  15520. (getMissingFastPieceIndex): New function.
  15521. (getMissingFastPiece): New function.
  15522. (checkOutPiece): New function.
  15523. * src/PeerInteraction.h
  15524. (Pieces): New type definition.
  15525. (piece): Removed.
  15526. (pieces): New variable.
  15527. (getNewPieceAndSendInterest): Added the "piece" argument.
  15528. (abortPiece): Added the "piece" argument.
  15529. (abortAllPieces): New function.
  15530. (isInRequestSlot): New function.
  15531. (hasDownloadPiece): Added the "index" argument.
  15532. (setDownloadPiece): Removed.
  15533. (getDownloadPiece): Added the "index" argument.
  15534. (updatePiece): New function.
  15535. (createRequestMessage): Added the "index" argument.
  15536. * src/PeerInteraction.cc
  15537. (onChoked): Rewritten.
  15538. (abortPiece): Rewirtten.
  15539. (abortAllPieces): New function.
  15540. (deleteTimeoutRequestSlot): Rewritten.
  15541. Clarified code a little bit.
  15542. (deleteCompletedRequestSlot): Rewritten.
  15543. (isInRequestSlot): New function.
  15544. (syncPiece): Rewritten.
  15545. (updatePiece): New function.
  15546. (getNewPieceAndSendInterest): Rewritten.
  15547. (addRequests): Rewritten.
  15548. (getDownloadPiece): Rewritten.
  15549. (hasDownloadPiece): Rewritten.
  15550. (createRequestMessage): Added the "index" argument.
  15551. * src/common.h
  15552. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15553. (DIV_FLOOR): New definition.
  15554. * src/PieceMessage.cc
  15555. (receivedAction): Update request-piece latency here.
  15556. * src/RequestSlot.h
  15557. (getLatencyInMillis): New function.
  15558. * src/RequestSlot.cc
  15559. (isTimeout): Rewritten using getLatencyInMillis.
  15560. (getLatencyInMillis): New function.
  15561. * src/Piece.h
  15562. (operator==): New function.
  15563. (getMissingBlockIndex): New function.
  15564. * src/Piece.cc
  15565. (operator==): New function.
  15566. (getMissingBlockIndex): New function.
  15567. * src/Peer.h
  15568. (DEFAULT_LATENCY): New definition.
  15569. (latency): New variable.
  15570. (updateLatency): New function.
  15571. (getLatency): New function.
  15572. * src/Peer.cc
  15573. (resetStatus): Reset latecy.
  15574. (updateLatency): New function.
  15575. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15576. * src/SocketCore.cc
  15577. (isReadable): Added secure to the condition.
  15578. * src/HttpConnection.cc
  15579. (receiveResponse): Fixed a bug that causes no response header
  15580. exception.
  15581. * src/Peer.h
  15582. (getFastSet): Fixed the return value type.
  15583. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15584. To remove a wait from download loop:
  15585. * src/DownloadEngine.cc
  15586. (run): Comment out shortSleep.
  15587. To rewrite the message handling:
  15588. * src/SimplePeerMessage.h: New class.
  15589. * src/SimplePeerMessage.cc: New class.
  15590. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15591. (msg): New variable.
  15592. (create): New function.
  15593. (send): Removed.
  15594. (getMessage): New function.
  15595. (getMessageLength): New function.
  15596. * src/CancelMessage.cc
  15597. (create): New function.
  15598. (receivedAction): Replaced deleteRequestMessageInQueue with
  15599. rejectPieceMessageInQueue.
  15600. (send): Removed.
  15601. (getMessage): New function.
  15602. (getMessageLength): New function.
  15603. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15604. (msg): New variable.
  15605. (msgLength): New variable.
  15606. (~BitfieldMessage): Deleted msg.
  15607. (send): Removed.
  15608. (getMessage): New function.
  15609. (getMessageLength): New function.
  15610. * src/BitfieldMessage.cc
  15611. (create): New function.
  15612. (send): Removed.
  15613. (getMessage): New function.
  15614. (getMessageLength): New function.
  15615. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15616. (msg): New variable.
  15617. (sendPredicate): New function.
  15618. (onSendComplete): New function.
  15619. (send): Removed.
  15620. (getMessage): New function.
  15621. (getMessageLength): New function.
  15622. (create): New function.
  15623. * src/ChokeMessage.cc
  15624. (create): New function.
  15625. (send): Removed.
  15626. (sendPredicate): New function.
  15627. (getMessage): New function.
  15628. (getMessageLength): New function.
  15629. (onSendComplete): New function.
  15630. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15631. (msg): New variable.
  15632. (send): Removed.
  15633. (getMessage): New function.
  15634. (getMessageLength): New function.
  15635. * src/KeepAliveMessage.cc
  15636. (send): Removed.
  15637. (getMessage): New function.
  15638. (getMessageLength): New function.
  15639. * src/PortMessage.h
  15640. (create): New function.
  15641. (receivedAction): Updated log message.
  15642. * src/PortMessage.cc: New file.
  15643. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15644. (msg): New variable.
  15645. (sendPredicate): New function.
  15646. (onSendComplete): New function.
  15647. (create): New function.
  15648. (send): Removed.
  15649. (getMessage): New function.
  15650. (getMessageLength): New function.
  15651. * src/UnchokeMessage.cc
  15652. (create): New function.
  15653. (send): Removed.
  15654. (sendPredicate): New function.
  15655. (getMessage): New function.
  15656. (getMessageLength): New function.
  15657. (onSendComplete): New function.
  15658. * src/PieceMessage.h
  15659. (leftPieceDataLength): Removed.
  15660. (leftDataLength): New variable.
  15661. (headerSend): New variable.
  15662. (pendingCount): New variable.
  15663. (msgHeader): New variable.
  15664. (sendPieceData): New function.
  15665. (incrementPendingCount): New function.
  15666. (isPendingCountMax): New function.
  15667. (create): New function.
  15668. (getMessageHeader): New function.
  15669. (getMessageHeaderLength): New function.
  15670. * src/PieceMessage.cc
  15671. (create): New function.
  15672. (getMessageHeader): New function.
  15673. (getMessageHeaderLength): New function.
  15674. (send): Rewritten.
  15675. (sendPieceData): New function.
  15676. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15677. (msg): New variable.
  15678. (create): New function.
  15679. (getMessage): New function.
  15680. (getMessageLength): New function.
  15681. * src/HaveMessage.cc
  15682. (create): New function.
  15683. (send): Removed.
  15684. (sendPieceData): New function.
  15685. (getMessage): New function.
  15686. (getMessageLength): New function.
  15687. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15688. (msg): New variable.
  15689. (create): New function.
  15690. (send): Removed.
  15691. (getMessage): New function.
  15692. (getMessageLength): New function.
  15693. * src/RequestMessage.cc
  15694. (create): New function.
  15695. (receivedAction): Added the handling of fast extension.
  15696. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15697. (send): Removed.
  15698. (getMessage): New function.
  15699. (getMessageLength): New function.
  15700. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15701. (msg): New variable.
  15702. (sendPredicate): New function.
  15703. (onSendComplete): New function.
  15704. (create): New function.
  15705. (getMessage): New function.
  15706. (getMessageLength): New function.
  15707. * src/InterestedMessage.cc
  15708. (create): New function.
  15709. (send): Removed.
  15710. (sendPieceData): New function.
  15711. (getMessage): New function.
  15712. (getMessageLength): New function.
  15713. (onSendComplete): New function.
  15714. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15715. (msg): New variable.
  15716. (sendPieceData): New function.
  15717. (onSendComplete): New function.
  15718. (create): New function.
  15719. (send): Removed.
  15720. (getMessage): New function.
  15721. (getMessageLength): New function.
  15722. * src/NotInterestedMessage.cc
  15723. (create): New function.
  15724. (send): Removed.
  15725. (sendPredicate): New function.
  15726. (getMessage): New function.
  15727. (getMessageLength): New function.
  15728. (onSendComplete): New function.
  15729. * src/AllowedFastMessage.h: New class.
  15730. * src/AllowedFastMessage.cc: New class.
  15731. * src/RejectMessage.h: New class.
  15732. * src/RejectMessage.cc: New class.
  15733. * src/SuggestPieceMessage.h: New class.
  15734. * src/SuggestPieceMessage.cc: New class.
  15735. * src/HaveAllMessage.h: New class.
  15736. * src/HaveAllMessage.cc: New class.
  15737. * src/HaveNoneMessage.h: New class.
  15738. * src/HaveNoneMessage.cc: New class.
  15739. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15740. (msg): New variable.
  15741. (reserved): New variable.
  15742. (create): New function.
  15743. (getId): New function.
  15744. (receivedAction): New function.
  15745. (getMessage): New function.
  15746. (getMessageLength): New function.
  15747. (isFastExtensionSupported): New function.
  15748. * src/HandshakeMessage.cc
  15749. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15750. (create): New function.
  15751. (getMessage): New function.
  15752. (getMessageLength): New function.
  15753. (toString): Added the output of reserved field.
  15754. (check): Added const qualifier.
  15755. (isFastExtensionSupported): New function.
  15756. * src/PeerMessageUtil.h
  15757. (createChokeMessage): Removed.
  15758. (createUnchokeMessage): Removed.
  15759. (createInterestedMessage): Removed.
  15760. (createNotInterestedMessage): Removed.
  15761. (createHaveMessage): Removed.
  15762. (createBitfieldMessage): Removed.
  15763. (createRequestMessage): Removed.
  15764. (createCancelMessage): Removed.
  15765. (createPieceMessage): Removed.
  15766. (createPortMessage): Removed.
  15767. (createChokeMessage): Removed.
  15768. (createUnchokeMessage): Removed.
  15769. (createInterestedMessage): Removed.
  15770. (createNotInterestedMessage): Removed.
  15771. (createHaveMessage): Removed.
  15772. (createBitfieldMessage): Removed.
  15773. (createRequestMessage): Removed.
  15774. (createCancelMessage): Removed.
  15775. (createPieceMessage): Removed.
  15776. (createKeepAliveMessage): Removed.
  15777. (createHandshakeMessage): Removed.
  15778. (setIntParam): New function.
  15779. (createPeerMessageString): New function.
  15780. * src/PeerMessageUtil.cc
  15781. (createChokeMessage): Removed.
  15782. (createUnchokeMessage): Removed.
  15783. (createInterestedMessage): Removed.
  15784. (createNotInterestedMessage): Removed.
  15785. (createHaveMessage): Removed.
  15786. (createBitfieldMessage): Removed.
  15787. (createRequestMessage): Removed.
  15788. (createCancelMessage): Removed.
  15789. (createPieceMessage): Removed.
  15790. (createPortMessage): Removed.
  15791. (createRequestMessage): Removed.
  15792. (createCancelMessage): Removed.
  15793. (createPieceMessage): Removed.
  15794. (createHaveMessage): Removed.
  15795. (createChokeMessage): Removed.
  15796. (createUnchokeMessage): Removed.
  15797. (createInterestedMessage): Removed.
  15798. (createNotInterestedMessage): Removed.
  15799. (createBitfieldMessage): Removed.
  15800. (createKeepAliveMessage): Removed.
  15801. (createHandshakeMessage): Removed.
  15802. (setIntParam): New function.
  15803. (createPeerMessageString): New function.
  15804. * src/PeerConnection.h
  15805. (peer): Removed.
  15806. (torrentMan): Removed.
  15807. (createNLengthMessage): Removed.
  15808. (setIntParam): Removed.
  15809. (writeOutgoingMessageLog): Removed all overloaded functions.
  15810. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15811. (sendMessage): New function.
  15812. (sendHandshake): Removed.
  15813. (sendKeepAlive): Removed.
  15814. (sendChoke): Removed.
  15815. (sendUnchoke): Removed.
  15816. (sendInterested): Removed.
  15817. (sendNotInterested): Removed.
  15818. (sendHave): Removed.
  15819. (sendBitfield): Removed.
  15820. (sendRequest): Removed.
  15821. (sendPiece): Removed.
  15822. (sendPieceHeader): Removed.
  15823. (sendPieceData): Removed.
  15824. (sendCancel): Removed.
  15825. (getPeer): Removed.
  15826. * src/PeerConnection.cc
  15827. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15828. (sendHandshake): Removed.
  15829. (sendKeepAlive): Removed.
  15830. (createNLengthMessage): Removed.
  15831. (setIntParam): Removed.
  15832. (writeOutgoingMessageLog): Removed all overloaded functions.
  15833. (sendChoke): Removed.
  15834. (sendUnchoke): Removed.
  15835. (sendInterested): Removed.
  15836. (sendNotInterested): Removed.
  15837. (sendHave): Removed.
  15838. (sendBitfield): Removed.
  15839. (sendRequest): Removed.
  15840. (sendPiece): Removed.
  15841. (sendPieceHeader): Removed.
  15842. (sendPieceData): Removed.
  15843. (sendMessage): New function.
  15844. (sendCancel): Removed.
  15845. * src/PeerInteractionCommand.cc
  15846. (PeerInteractionCommand): Call setUploadLimit.
  15847. (executeInternal): Call setUploadLimit.
  15848. Added the handling of "inProgress" state of handshake message.
  15849. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15850. sendNow().
  15851. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15852. sendNow().
  15853. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15854. * src/TorrentMan.h
  15855. (PEER_ID_LENGTH): New definition.
  15856. (hasAllPieces): New function.
  15857. * src/TorrentMan.cc
  15858. (getMissingPiece): Added the handling of fast extension.
  15859. (cancelPiece): Call updatePiece().
  15860. (hasAllPieces): New function.
  15861. * src/PeerInteraction.h
  15862. (fastSet): New variable.
  15863. (getNewPieceAndSendInterest): Changed the return type to void.
  15864. (send): Renamed as sendMessages.
  15865. (deleteAllRequestSlot): Removed.
  15866. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15867. (cancelAllRequest): Removed all overloaded functions.
  15868. (deleteAllRequestSlot): Removed.
  15869. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15870. (rejectPieceMessageInQueue): New function.
  15871. (rejectAllPieceMessageInQueue): New function.
  15872. (onChoked): New function.
  15873. (isSendingMessageInProgress): New function.
  15874. (getCorrespondingRequestSlot): Changed its arguments.
  15875. (isInFastSet): New function.
  15876. (addFastSetIndex): New function.
  15877. (addRequests): New function.
  15878. (sendNow): Removed.
  15879. (trySendNow): Removed.
  15880. (sendBitfield): New function.
  15881. (sendAllowdFast): New function.
  15882. (createHaveAllMessage): New function.
  15883. (createHaveNoneMessage): New function.
  15884. (createRejectMessage): New function.
  15885. (createAllowedFastMessage): New function.
  15886. * src/PeerInteraction.cc
  15887. (send): Renamed as sendMessages.
  15888. (sendMessages): New function.
  15889. (MsgPushBack): New class.
  15890. (isSendingMessageInProgress): New function.
  15891. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15892. (rejectAllPieceMessageInQueue): New function.
  15893. Added the handling of fast extension.
  15894. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15895. (rejectPieceMessageInQueue): New function.
  15896. Added the handling of fast extension.
  15897. (deleteRequestSlot): Replaced for loop with std::find.
  15898. (onChoked): New function.
  15899. (deleteAllRequestSlot): Removed.
  15900. (abortPiece): Rewirtten.
  15901. (deleteTimeoutRequestSlot): Updated log messages.
  15902. (getCorrespondingRequestSlot): Changed its arguments.
  15903. (cancelAllRequest): Removed all overloaded functions.
  15904. (receiveHandshake): Added the check to see whether an incoming peer
  15905. supports fast extension.
  15906. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15907. PeerMessageUtil.
  15908. (createPeerMessage): Use create() of each message class instead of
  15909. PeerMessageUtil.
  15910. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15911. AllowedFastMessage were added.
  15912. (getNewPieceAndSendInterest): Changed its return value type to void.
  15913. Added the handling of fast extension.
  15914. (addRequests): New function.
  15915. (sendNow): Removed.
  15916. (sendHandshake): Rewritten.
  15917. (trySendNow): Removed.
  15918. (sendBitfield): New function.
  15919. (sendAllowdFast): New function.
  15920. (isInFastSet): New function.
  15921. (addFastSetIndex): New function.
  15922. (createRequestMessage): Use RequestMessage::create instead of
  15923. PeerMessageUtil.
  15924. (createCancelMessage): Use CancelMessage::create instead of
  15925. PeerMessageUtil.
  15926. (createPieceMessage): Use PieceMessage::create instead of
  15927. PeerMessageUtil.
  15928. (createHaveMessage): Use HaveMessage::create instead of
  15929. PeerMessageUtil.
  15930. (createChokeMessage): Use ChokeMessage::create instead of
  15931. PeerMessageUtil.
  15932. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15933. PeerMessageUtil.
  15934. (createInterestedMessage): Use InterestedMessage::create instead of
  15935. PeerMessageUtil.
  15936. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15937. of PeerMessageUtil.
  15938. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15939. PeerMessageUtil.
  15940. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15941. PeerMessageUtil.
  15942. (createHaveAllMessage): New function.
  15943. (createHaveNoneMessage): New function.
  15944. (createRejectMessage): New function.
  15945. (createAllowedFastMessage: New function.
  15946. * src/Util.h
  15947. (sha1Sum): New function.
  15948. (computeFastSet): New function.
  15949. * src/Util.cc
  15950. (sha1Sum): New function.
  15951. (computeFastSet): New function.
  15952. * src/Peer.h
  15953. (fastExtensionEnabled): New variable.
  15954. (fastSet): New variable.
  15955. (setAllBitfield): New function.
  15956. (setFastExtensionEnabled): New function.
  15957. (isFastExtensionEnabled): New function.
  15958. (addFastSetIndex): New function.
  15959. (getFastSet): New function.
  15960. (isInFastSet): New function.
  15961. (countFastSet): New function.
  15962. * src/Peer.cc
  15963. (isInFastSet): New function.
  15964. (addFastSetIndex): New function.
  15965. (setAllBitfield): New function.
  15966. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15967. sockets.
  15968. * src/PeerAbstractCommand.cc
  15969. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15970. and uploadLimit.
  15971. (execute): Changed the procedure of checking sockets. The upload speed
  15972. checking were added.
  15973. (setUploadLimit): New function.
  15974. (setUploadLimitCheck): New function.
  15975. * src/PeerAbstractCommand.h
  15976. (setUploadLimit): New function.
  15977. (setUploadLimitCheck): New function.
  15978. (uploadLimit): New variable.
  15979. (uploadLimitCheck): New variable.
  15980. To contact a tracker regularly:
  15981. * src/TrackerWatcherCommand.h (interval): New variable.
  15982. (checkPoint): New variable.
  15983. (TrackerWatcherCommand): Added interval argument.
  15984. * src/TrackerWatcherCommand.cc
  15985. (TrackerWatcherCommand): Initialized checkPoint.
  15986. (execute): Now a tracker is contacted in every specified period.
  15987. If peer list is not needed, send request with numwant=0.
  15988. * src/TrackerUpdateCommand.cc
  15989. (execute): Updated log messages.
  15990. * src/DownloadEngine.cc
  15991. (~DownloadEngine): Removed two asserts.
  15992. (waitData): Uncommented wfds. May be a bug fix.
  15993. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15994. * src/PeerInteractionCommand.h
  15995. (checkInactiveConnection): Removed.
  15996. * src/PeerInteractionCommand.cc
  15997. (executeInternal): Removed following function calls:
  15998. detectMessageFlooding(), checkLongTimePeerChoking and
  15999. checkInactiveConnection().
  16000. (checkInactiveConnection): Removed.
  16001. (detectMessageFlooding): Removed function call to
  16002. checkInactiveConnection().
  16003. * src/PeerMessageUtil.h
  16004. (createChokeMessage): New function. Overload.
  16005. (createUnchokeMessage): New function. Overload.
  16006. (createInterestedMessage): New function. Overload.
  16007. (createNotInterestedMessage): New function. Overload.
  16008. (createHaveMessage): New function. Overload.
  16009. (createBitfieldMessage): New function. Overload.
  16010. (createRequestMessage): New function. Overload.
  16011. (createCancelMessage): New function. Overload.
  16012. (createPieceMessage): New function. Overload.
  16013. (createKeepAliveMessage): New function. Overload.
  16014. * src/PeerMessageUtil.cc
  16015. (createChokeMessage): New function. Overload.
  16016. (createUnchokeMessage): New function. Overload.
  16017. (createInterestedMessage): New function. Overload.
  16018. (createNotInterestedMessage): New function. Overload.
  16019. (createHaveMessage): New function. Overload.
  16020. (createBitfieldMessage): New function. Overload.
  16021. (createRequestMessage): New function. Overload.
  16022. (createCancelMessage): New function. Overload.
  16023. (createPieceMessage): New function. Overload.
  16024. (createKeepAliveMessage): New function. Overload.
  16025. * src/SendMessageQueue.cc
  16026. (createRequestMessage): Use PeerMessageUtil.
  16027. (createCancelMessage): Use PeerMessageUtil.
  16028. (createPieceMessage): Use PeerMessageUtil.
  16029. (createHaveMessage): Use PeerMessageUtil.
  16030. (createChokeMessage): Use PeerMessageUtil.
  16031. (createUnchokeMessage): Use PeerMessageUtil.
  16032. (createInterestedMessage): Use PeerMessageUtil.
  16033. (createNotInterestedMessage): Use PeerMessageUtil.
  16034. (createBitfieldMessage): Use PeerMessageUtil.
  16035. (createKeepAliveMessage): Use PeerMessageUtil.
  16036. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16037. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16038. * src/PeerInteraction.h: New class.
  16039. * src/PeerInteraction.cc: New class.
  16040. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16041. Each peer message has its own class.
  16042. * src/PendingMessages.h: Removed.
  16043. * src/PendingMessages.cc: Removed. The sending process was moved to
  16044. each message class.
  16045. * src/RequestSlotMan.h: Removed.
  16046. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16047. SendMessageQueue.
  16048. * src/RequestMessage.h: New class.
  16049. * src/RequestMessage.cc: New class.
  16050. * src/CancelMessage.h: New class.
  16051. * src/CancelMessage.cc: New class.
  16052. * src/BitfieldMessage.h: New class.
  16053. * src/BitfieldMessage.cc: New class.
  16054. * src/ChokeMessage.h: New class.
  16055. * src/ChokeMessage.cc: New class.
  16056. * src/KeepAliveMessage.h: New class.
  16057. * src/KeepAliveMessage.cc: New class.
  16058. * src/PortMessage.h: New class.
  16059. * src/UnchokeMessage.h: New class.
  16060. * src/UnchokeMessage.cc: New class.
  16061. * src/PieceMessage.h: New class.
  16062. * src/PieceMessage.cc: New class.
  16063. * src/HaveMessage.h: New class.
  16064. * src/HaveMessage.cc: New class.
  16065. * src/BitfieldMessage.h: New class.
  16066. * src/BitfieldMessage.cc: New class.
  16067. * src/NotInterestedMessage.h: New class.
  16068. * src/NotInterestedMessage.cc: New class.
  16069. * src/InterestedMessage.h: New class.
  16070. * src/InterestedMessage.cc: New class.
  16071. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16072. (getSendMessageQueue): New function.
  16073. (setSendMessageQueue): New function.
  16074. * src/HandshakeMessage.cc: New class.
  16075. * src/PeerConnection.h (receiveMessage): Changed return value and
  16076. arguments.
  16077. (receiveHandshake): Changed return value and arguments.
  16078. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16079. here.
  16080. (receiveHandshake): Do not create handshake class here.
  16081. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16082. (piece): Removed.
  16083. (syncPiece): Removed.
  16084. (sendInterest): Removed.
  16085. (sendMessages): Removed.
  16086. (createRequestPendingMessage): Removed.
  16087. (checkPieceHash): Removed.
  16088. (erasePieceOnDisk): Removed.
  16089. (getNewPieceAndSendInterest): Removed.
  16090. (onGotNewPice): Removed.
  16091. (onGotWrongPiece): Removed.
  16092. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16093. Removed peerConnection, piece.
  16094. (~PeerInteractionCommand): Removed peerConnection.
  16095. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16096. (syncPiece): Moved to SendMessageQueue.
  16097. (decideChoking): Removed PendingMessage.
  16098. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16099. The action after receiving peer message was moved to each message
  16100. class.
  16101. (onGotNewPice): Moved to SendMessageQueue.
  16102. (onGotWrongPiece): Moved to SendMessageQueue.
  16103. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16104. (sendInterest): Moved to SendMessageQueue.
  16105. (createRequestPendingMessage): Removed.
  16106. (sendMessages): Moved to SendMessageQueue.
  16107. (onAbort): Use SendMessageQueue::abortPiece()
  16108. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16109. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16110. (checkPieceHash): Moved to SendMessageQueue.
  16111. (erasePieceOnDisk): Moved to SendMessageQueue.
  16112. * src/PeerMessageUtil.h
  16113. (createBitfieldMessage): Removed.
  16114. (createHaveMessage): Changed return value and arguments.
  16115. (createBitfieldMessage): Changed return value and arguments.
  16116. (createRequestCancelMessage): Removed.
  16117. (createPieceMessage): Changed return value and arguments.
  16118. (getShortIntParam): New function.
  16119. (checkIndex): Changed arguments.
  16120. (checkBegin): Changed arguments.
  16121. (checkLength): Changed arguments.
  16122. (checkPieceOffset): Removed.
  16123. (checkRange): New function.
  16124. (checkBitfield): Changed arguments.
  16125. (createPeerMessage): Removed.
  16126. (checkIntegrity): Removed.
  16127. (createHandshakeMessage): Changed arguments.
  16128. (createChokeMessage): New function.
  16129. (createUnchokeMessage): New function.
  16130. (createInterestedMessage): New function.
  16131. (createNotInterestedMessage): New function.
  16132. (createRequestMessage): New function.
  16133. (createCancelMessage): New function.
  16134. (createPortMessage): New function.
  16135. * src/PeerMessageUtil.cc
  16136. (createBitfieldMessage): Removed.
  16137. (createHaveMessage): Changed return value and arguments.
  16138. (createBitfieldMessage): Changed return value and arguments.
  16139. (createRequestCancelMessage): Removed.
  16140. (createPieceMessage): Changed return value and arguments.
  16141. (getShortIntParam): New function.
  16142. (checkIndex): Changed arguments.
  16143. (checkBegin): Changed arguments.
  16144. (checkLength): Changed arguments.
  16145. (checkPieceOffset): Removed.
  16146. (checkRange): New function.
  16147. (checkBitfield): Changed arguments.
  16148. (createPeerMessage): Removed.
  16149. (checkIntegrity): Removed.
  16150. (createHandshakeMessage): Changed arguments.
  16151. (createChokeMessage): New function.
  16152. (createUnchokeMessage): New function.
  16153. (createInterestedMessage): New function.
  16154. (createNotInterestedMessage): New function.
  16155. (createRequestMessage): New function.
  16156. (createCancelMessage): New function.
  16157. (createPortMessage): New function.
  16158. * src/PeerMessage.h
  16159. (id): Removed.
  16160. (index): Removed.
  16161. (begin): Removed.
  16162. (length): Removed.
  16163. (bitfield): Removed.
  16164. (bitfieldLength): Removed.
  16165. (block): Removed.
  16166. (blockLength): Removed.
  16167. (inProgress): New variable.
  16168. (cuid): New variable.
  16169. (peer): New variable.
  16170. (sendMessageQueue): New variable.
  16171. (logger): New variable.
  16172. (setBitfield): Removed.
  16173. (getBitfield): Removed.
  16174. (setBlock): Removed.
  16175. (getBlock): Removed.
  16176. (getBitfieldLength): Removed.
  16177. (getBlockLength): Removed.
  16178. (isInProgress): New function.
  16179. (toString): Made pure virtual.
  16180. (check): New function.
  16181. (send): New function.
  16182. (receivedAction): New function.
  16183. (getId): Made pure virtual.
  16184. (setId): Removed.
  16185. (getIndex): Removed.
  16186. (setIndex): Removed.
  16187. (getBegin): Removed.
  16188. (setBegin): Removed.
  16189. (getLength): Removed.
  16190. (setLength): Removed.
  16191. (getCuid): New function.
  16192. (setCuid): New function.
  16193. (getPeer): New function.
  16194. (setPeer): New function.
  16195. (getSendMessageQueue): New function.
  16196. (setSendMessageQueue): New function.
  16197. (ID): Removed.
  16198. * src/PeerMessage.cc
  16199. (setBitfield): Removed.
  16200. (setBlock): Removed.
  16201. (toString): Removed.
  16202. * src/TorrentMan.h
  16203. (getPieceLength): New function.
  16204. (getPieceLength): New function.
  16205. * src/SendMessageQueue.h
  16206. (REQUEST_TIME_OUT): New definition.
  16207. (RequestSlots): New definition.
  16208. (MessageQueue): New definition.
  16209. (requestSlotMan): Removed.
  16210. (pendingMessages): Removed.
  16211. (requestSlots): New variable.
  16212. (messageQueue): New variable.
  16213. (torrentMan): New variable.
  16214. (peerConnection): New variable.
  16215. (peer): New variable.
  16216. (piece): New variable.
  16217. (getNewPieceAndSendInterest): New function.
  16218. (createPeerMessage): New function.
  16219. (createHandshakeMessage): New function.
  16220. (send): Made private.
  16221. (setPeerMessageCommonProperty): New function.
  16222. (deleteAllRequestSlot): New function.
  16223. (deleteRequestMessageInQueue): New function.
  16224. (cancelAllRequest): Made private.
  16225. (cancelAllRequest): Made private.
  16226. (countRequestSlot): Made private.
  16227. (addPendingMessage): Removed.
  16228. (deletePendingPieceMessage): Removed.
  16229. (deletePendingRequestMessage): Removed.
  16230. (addMessage): New function.
  16231. (deletePieceMessageInQueue): New function.
  16232. (deleteTimeoutRequestSlot): Changed argument.
  16233. (deleteCompletedRequestSlot): Changed argument.
  16234. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16235. (getCorrespondingRequestSlot): New function.
  16236. (countPendingMessage): Removed.
  16237. (countMessageInQueue): New function.
  16238. (getTorrentMan): New function.
  16239. (getPeerConnection): New function.
  16240. (hasDownloadPiece): New function.
  16241. (getDownloadPiece): New function.
  16242. (setDownloadPiece): New function.
  16243. (syncPiece): New function.
  16244. (sendMessages): New function.
  16245. (sendNow): New function.
  16246. (trySendNow): New function.
  16247. (abortPiece): New function.
  16248. (sendHandshake): New function.
  16249. (receiveMessage): New function.
  16250. (receiveHandshake): New function.
  16251. (createRequestMessage): New function.
  16252. (createCancelMessage): New function.
  16253. (createPieceMessage): New function.
  16254. (createHaveMessage): New function.
  16255. (createChokeMessage): New function.
  16256. (createUnchokeMessage): New function.
  16257. (createInterestedMessage): New function.
  16258. (createNotInterestedMessage): New function.
  16259. (createBitfieldMessage): New function.
  16260. (createKeepAliveMessage): New function.
  16261. * src/SendMessageQueue.cc
  16262. (SendMessageQueue): Removed requestSlotMan.
  16263. Instantiated peerConnection here.
  16264. (~SendMessageQueue): Removed requestSlotMan.
  16265. Added deletion of peerConnection and the contents of messageQueue.
  16266. (send): Updated according to the change of messageQueue.
  16267. (addPendingMessage): Renamed to addMessage.
  16268. (addMessage): New function.
  16269. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16270. (deletePieceMessageInQueue): New function.
  16271. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16272. (deleteRequestMessageInQueue): New function.
  16273. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16274. here.
  16275. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16276. (...) was moved here.
  16277. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16278. moved here.
  16279. (deleteCompletedRequestSlot):
  16280. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16281. (getCorrespondingRequestSlot):
  16282. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16283. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16284. (countPendingMessage): Renamed to countMessageInQueue.
  16285. (countMessageInQueue): New function.
  16286. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16287. (receiveHandshake): New function.
  16288. (createHandshakeMessage): New function.
  16289. (receiveMessage): New function.
  16290. (createPeerMessage): New function.
  16291. (syncPiece): New function.
  16292. (getNewPieceAndSendInterest): New function.
  16293. (sendMessages): New function.
  16294. (sendNow): New function.
  16295. (trySendNow): New function.
  16296. (sendHandshake): New function.
  16297. (abortPiece): New function.
  16298. (getDownloadPiece): New function.
  16299. (getPeerMessageCommonProperty): New function.
  16300. (createRequestMessage): New function.
  16301. (createCancelMessage): New function.
  16302. (createPieceMessage): New function.
  16303. (createHaveMessage): New function.
  16304. (createChokeMessage): New function.
  16305. (createUnchokeMessage): New function.
  16306. (createInterestedMessage): New function.
  16307. (createNotInterestedMessage): New function.
  16308. (createBitfieldMessage): New function.
  16309. (createKeepAliveMessage): New function.
  16310. To add simple Content-Disposition support:
  16311. * src/HttpResponseCommand.h (determinFilename): New function.
  16312. * src/HttpResponseCommand.cc (executeInternal):
  16313. Use determinFilename(headers) instead of req->getFile() when comparing
  16314. filename.
  16315. (determinFilename): New function.
  16316. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16317. req->getFile().
  16318. (handleOtherEncoding): Use determinFilename(headers) instead of
  16319. req->getFile().
  16320. * src/Util.h (getContentDispositionFilename): New function.
  16321. * src/Util.cc (getContentDispositionFilename): New function.
  16322. * src/LogFactory.h (release): New function.
  16323. * src/LogFactory.cc (release): New function.
  16324. To fix a bug that causes out-of-bound exception when HTTP status
  16325. line is wrong:
  16326. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16327. size.
  16328. * src/common.h (Deleter): New class.
  16329. * src/SegmentMan.cc
  16330. (~SegmentMan): Added deletion of splitter and diskWriter.
  16331. * src/DownloadEngine.h
  16332. (Commands): Use deque.
  16333. (clearQueue): New function.
  16334. * src/DownloadEngine.cc
  16335. (~DownloadEngine): Added deletion of segmentMan.
  16336. (cleanQueue): New function.
  16337. * src/TorrentDownloadEngine.h
  16338. (TorrentDownloadEngine): The implementation was moved to
  16339. TorrentDownloadEngine.cc.
  16340. (~TorrentDownloadEngine): The implementation was moved to
  16341. TorrentDownloadEngine.cc.
  16342. * src/TorrentDownloadEngine.cc
  16343. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16344. * src/main.cc
  16345. (clearRequest): Removed.
  16346. (handler): Added deletion of e.
  16347. (torrentHandler): Added deletion of te.
  16348. (main): Do not share splitter.
  16349. Use Deleter instead of clearRequest.
  16350. Deletion of classes were updated.
  16351. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16352. * src/main.cc (main): Fixed typo.
  16353. * src/message.h: Fixed typo.
  16354. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16355. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16356. To add --select-file command-line option:
  16357. * src/Util.cc
  16358. (unfoldRange): New function.
  16359. (getNum): New function.
  16360. (unfoldSubRange): New function
  16361. * src/main.cc
  16362. (showUsage): Added help message.
  16363. (main): Added --select-file command-line option. Updated the layout of
  16364. file listing.
  16365. * src/common.h
  16366. (Integers): New definition.
  16367. * src/SocketCore.cc
  16368. (writeData): Removed timeout argument.
  16369. (readData): Removed timeout argument.
  16370. (peekData): Removed timeout argument.
  16371. * src/Socket.cc
  16372. (writeData): Removed timeout argument.
  16373. (readData): Removed timeout argument.
  16374. (peekData): Removed timeout argument.
  16375. * Release 0.4.1
  16376. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16377. To deploy upload rate based choking algorithm:
  16378. * src/PeerInteractionCommand.cc
  16379. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16380. peer currently used.
  16381. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16382. download completes. Simplified.
  16383. (receiveMessage): Updated.
  16384. * src/TorrentMan.h
  16385. (activePeers): New variable.
  16386. (addActivePeer): New function.
  16387. (getActivePeers): New function.
  16388. (deleteActivePeer): New function.
  16389. * src/TorrentMan.cc
  16390. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16391. * src/PeerAbstractCommand.cc
  16392. (onAbort): Use peer->resetStatus().
  16393. * src/main.cc
  16394. (PeerChokeCommand.h): Included.
  16395. (main): Added the instance of ChokingCommand to the command queue.
  16396. * src/Peer.h
  16397. (amChoking): Renamed from amChocking
  16398. (chokingRequired): New variable.
  16399. (optUnchoking): New variable.
  16400. (deltaUpload): New variable.
  16401. (deltaDownload): New variable.
  16402. (addDeltaUpload): New function.
  16403. (resetDeltaUpload): New function.
  16404. (addDeltaDownload): New function.
  16405. (resetDeltaDownload): New function.
  16406. (addPeerUpload): Added a call to addDeltaUpload.
  16407. (addPeerDownload): Added a call to addDeltaDownload.
  16408. * src/Peer.cc
  16409. (shouldBeChoking): Renamed from shouldChoke.
  16410. (resetStatus): New function.
  16411. * src/PeerChokeCommand.h: New class.
  16412. * src/PeerChokeCommand.cc: New class.
  16413. To add lazy upload speed limiter:
  16414. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16415. statistics calculation to TorrentDownloadEngine.
  16416. * src/TorrentConsoleDownloadEngine.cc
  16417. (sendStatistics): Renamed from printStatistics.
  16418. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16419. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16420. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16421. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16422. calculation.
  16423. (sendStatistics): New function as pure virtual function.
  16424. (getUploadSpeed): New function.
  16425. * src/TorrentDownloadEngine.cc
  16426. (initStatistics): New function.
  16427. (calculateSpeed): New function.
  16428. (calculateStatistics): New function.
  16429. * src/SendMessageQueue.h
  16430. (uploadLength): New variable.
  16431. (send): Added an argument.
  16432. (setUploadLimit): New function.
  16433. (getUploadLimit): New function.
  16434. * src/SendMessageQueue.cc
  16435. (send): Added upload speed limiter.
  16436. * src/prefs.h
  16437. (PREF_UPLOAD_LIMIT): New definition.
  16438. * src/PeerInteractionCommand.cc
  16439. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16440. * src/main.cc
  16441. (main): Added --upload-limit option
  16442. For bug fixes:
  16443. * src/main.cc
  16444. (showUsage): Corrected --listen-port help
  16445. Other changes:
  16446. * src/TorrentMan.cc
  16447. (getPeer): Return nullPeer if connection is grather than
  16448. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16449. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16450. To add some useful information to the exception message:
  16451. * src/SocketCore.cc : Updated messages.
  16452. * src/SegmentMan.cc :
  16453. * src/TorrentMan.cc : Updated messages.
  16454. * src/MultiDiskWriter.cc : Updated messages.
  16455. * src/Util.cc : Updated messages.
  16456. * src/AbstractDiskWriter.cc : Updated messages.
  16457. * src/PreAllocationDiskWriter.cc : Updated messages.
  16458. * src/message.cc : Added new messages. Updated some messages.
  16459. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16460. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16461. Updated threshold from 30 to 15.
  16462. * src/AbstractDiskWriter.h (filename): New variable.
  16463. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16464. (createFile): Assigned filename.
  16465. * src/main.cc: Updated the help message for http-auth-scheme.
  16466. * Release 0.4.0
  16467. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16468. To add TrackerUpdateCommand with which replaces
  16469. CompactTrackerResponseProcessor:
  16470. * src/TrackerWatcherCommand.h (req): Removed.
  16471. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16472. if the number of peer connections are less than 30.
  16473. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16474. * src/SegmentMan.h (diskWriter): New function.
  16475. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16476. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16477. (main): Use TrackerUpdateCommand.
  16478. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16479. (req): New variable.
  16480. (setTrackerResponseProcessor): Removed.
  16481. (getTrackerResponseProcessor): Removed.
  16482. (processTrackerResponse): Removed.
  16483. * src/DownloadEngine.h (diskWriter): Removed.
  16484. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16485. to torrentMan->processTrackerResponse().
  16486. To add Util::expandBuffer:
  16487. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16488. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16489. * src/Util.h (expandBuffer): New function.
  16490. To fix the bug that causes segmentation fault when "-l ." is specified
  16491. in command-line option:
  16492. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16493. (openFile): New function.
  16494. (closeFile): New function.
  16495. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16496. (~SimpleLogger): Call closeFile();
  16497. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16498. * src/main.cc (main): Added a check to see logger is configured
  16499. properly.
  16500. To enable HTTP authentication without specifying "--http-auth-scheme"
  16501. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16502. * src/HttpConnection.cc (createRequest): Send Authorization header
  16503. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16504. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16505. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16506. * src/Peer.cc (shouldChoke): Updated algorithm.
  16507. * src/message.h (EX_AUTH_FAILED): New definition.
  16508. (EX_FILE_OPEN): New definition.
  16509. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16510. if status == 401.
  16511. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16512. if req->isTorrent == true.
  16513. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16514. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16515. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16516. (createFile): Updated message.
  16517. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16518. To add a readout of estimated remaining time to normal HTTP/FTP
  16519. downloads:
  16520. * src/ConsoleDownloadEngine.h (startup): New variable.
  16521. (startupLength): New variable.
  16522. (isStartupLengthSet): New variable.
  16523. (avgSpeed): New variable.
  16524. (eta): New variable.
  16525. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16526. estimated remaining time.
  16527. (initStatistics): Initialized newly added variables.
  16528. (calculateStatistics): Calculate average speed and estimated remaining
  16529. time.
  16530. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16531. * src/TrackerDownloadCommand.h: Removed.
  16532. * src/TrackerDownloadCommand.cc: Removed.
  16533. * src/TrackerInitCommand.h: Removed.
  16534. * src/TrackerInitCommand.cc: Removed.
  16535. * src/TrackerUpdateCommand.h: Removed.
  16536. * src/TrackerUpdateCommand.cc: Removed.
  16537. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16538. url written in TrackerInitCommand was moved here. Do not create
  16539. tracker request command if torrentMan->trackers != 0.
  16540. * src/CompactTrackerResponseProcessor.h: New class.
  16541. * src/CompactTrackerResponseProcessor.cc: New class.
  16542. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16543. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16544. Decoupled TorrentDownloadEngine from this.
  16545. * src/SegmentMan.h (init): New function.
  16546. * src/SegmentMan.cc (init): New function.
  16547. * src/TorrentMan.h (responseProcessor): New variable.
  16548. (trackers): New variable.
  16549. (setTrackerResponseProcessor): New function.
  16550. (getTrackerResponseProcessor): New function.
  16551. (processTrackerResponse): New function.
  16552. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16553. (processTrackerResponse): New function.
  16554. * src/main.cc (main): Use ByteArrayDiskWriter and
  16555. CompactTrackerResponseProcessor.
  16556. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16557. processTrackerResponse().
  16558. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16559. readout.
  16560. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16561. which indicates download has completed.
  16562. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16563. (closeFile): fd >= 0, not fd > 0
  16564. * src/main.cc (main): Added short cut for show-files.
  16565. Added short cut for torrent-file.
  16566. Added new command-line option listen-port.
  16567. Updated i18n messages.
  16568. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16569. To add LogFactory which creates singleton logger:
  16570. * src/LogFactory.h: New class.
  16571. * src/LogFactory.cc: New class.
  16572. * src/Command.h (logger): New variable.
  16573. (Constructor): Use LogFactory.
  16574. * src/AbstractCommand.cc: Use Command::logger
  16575. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16576. Use LogFactory.
  16577. * src/SegmentSplitter.h : Made logger protected.
  16578. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16579. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16580. * src/DownloadEngine.h : Made logger protected.
  16581. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16582. * src/PeerInteractionCommand.cc : Use Command::logger.
  16583. * src/HttpResponseCommand.cc : Use Command::logger.
  16584. * src/SegmentMan.h : Made logger private.
  16585. * src/TorrentMan.h : Made logger private.
  16586. * src/TorrentMan.cc : Use LogFactory.
  16587. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16588. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16589. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16590. Use LogFactory.
  16591. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16592. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16593. Use LogFactory.
  16594. * src/DownloadCommand.cc : Use Command::logger.
  16595. * src/PeerAbstractCommand.cc : Use Command::logger.
  16596. * src/PeerListenCommand.cc : Use Command::logger.
  16597. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16598. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16599. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16600. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16601. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16602. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16603. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16604. Use LogFactory.
  16605. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16606. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16607. Use LogFactory.
  16608. * src/main.cc (main): Use LogFactory.
  16609. * src/DiskAdaptor.h (logger): New variable.
  16610. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16611. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16612. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16613. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16614. parameter to a tracker request.
  16615. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16616. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16617. * src/main.cc (setSignalHander): New function.
  16618. (main): Added a handler for SIGTERM.
  16619. (handler): Updated message.
  16620. (torrentHandler): Updated message.
  16621. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16622. * src/TorrentConsoleDownloadEngine.cc
  16623. (onPartialDownloadingCompletes): Renamed as
  16624. onSelectiveDownloadingCompletes.
  16625. (onSelectiveDownloadingCompletes): Updated message.
  16626. To add DiskAdaptor which abstract DiskWriter family:
  16627. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16628. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16629. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16630. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16631. MultiDiskAdaptor.h.
  16632. (readFileEntry): Changed its arguments.
  16633. (setup): setupDiskWriter is merged into this function.
  16634. (setupDiskWriter): Removed.
  16635. (setFileFilter): New function.
  16636. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16637. made in readFileEntry.
  16638. (getFilePath): Removed.
  16639. (getTempFilePath): Removed.
  16640. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16641. (fixFilename): Removed.
  16642. (copySingleFile): Removed.
  16643. (splitMultiFile): Removed.
  16644. (deleteTempFile): Removed.
  16645. (setFileEntriesToDownload): Removed.
  16646. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16647. (isSelectiveDownloadingMode): New function.
  16648. (setAllMultiFileRequestedState): Removed.
  16649. (finishPartialDownloadingMode): Renamed as
  16650. finishSelectiveDownloadingMode.
  16651. (finishSelectiveDownloadingMode): New function.
  16652. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16653. (getSelectedTotalLength): New function.
  16654. (onDownloadComplete): Use diskAdaptor.
  16655. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16656. (Range): Removed.
  16657. (setMultiFileEntries): Renamed as setFileEntries.
  16658. (setFileEntries): New function.
  16659. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16660. (pieceLength): New variable.
  16661. * src/main.cc (printDownloadCompeleteMessage): New function.
  16662. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16663. (main): Renamed torrent-show-files to show-files.
  16664. Rewritten file contents listing.
  16665. * src/TorrentMan.h (FileEntry): Removed.
  16666. (multiFileTopDir): Removed.
  16667. (multiFileEntries): Removed.
  16668. (diskWriter): Removed.
  16669. (diskAdaptor): New variable.
  16670. * src/DefaultDiskWriter.h (totalLength): New variable.
  16671. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16672. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16673. diskWriter.
  16674. * src/TorrentConsoleDownloadEngine.h
  16675. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16676. (partialTotalLength): Renamed as selectedTotalLength.
  16677. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16678. openExistingFile, otherwise call initAndOpenFile.
  16679. (closeFile): fd > 0, not fd != 0.
  16680. * src/DirectDiskAdaptor.h: New class.
  16681. * src/DirectDiskAdaptor.cc: New class.
  16682. * src/MultiDiskAdaptor.h: New class.
  16683. * src/MultiDiskAdaptor.cc: New class.
  16684. * src/CopyDiskAdaptor.h: New class.
  16685. * src/CopyDiskAdaptor.cc: New class.
  16686. * src/DiskAdaptor.h: New class.
  16687. * src/DiskAdaptor.cc: New class.
  16688. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16689. (PREF_SHOW_FILES): New definition.
  16690. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16691. To add the ability to download multi torrent into respective files
  16692. directly:
  16693. * src/DiskWriter.h (openFile): New function.
  16694. (seek): Removed.
  16695. * src/MultiDiskWriter.h: New class.
  16696. * src/MultiDiskWriter.cc: New class.
  16697. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16698. protected.
  16699. (openFile): New function.
  16700. * src/AbstractDiskWriter.cc (openFile): New function.
  16701. * src/prefs.h (V_FALSE): New definition.
  16702. (PREF_DIRECT_FILE_MAPPING): New definition.
  16703. * src/TorrentMan.h (setupDiskWriter): New function.
  16704. (setAllMultiFileRequestedState): New function.
  16705. (onDownloadComplete): New function.
  16706. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16707. (setupDiskWriter): New function.
  16708. (getFilePath): Updated.
  16709. (getTempFilePath): Updated.
  16710. (getSegmentFilePath): Updated.
  16711. (fixFilename): Updated.
  16712. (deleteTempFile): Updated.
  16713. (setAllMultiFileRequestedState): New function.
  16714. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16715. (finishPartialDownloadingMode): Reset requested flags.
  16716. (onDownloadComplete): New function.
  16717. * src/main.cc: Added --direct-file-mapping option.
  16718. Use TorrentMan::setupDiskWriter().
  16719. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16720. onDownloadComplete().
  16721. To fix ETA bug:
  16722. * src/Util.h (difftvsec): New function.
  16723. * src/Util.cc (difftvsec): New function.
  16724. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16725. type of "elapsed" instead of long long int.
  16726. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16727. The updates of statistics takes place every 1 seconds.
  16728. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16729. (calculateSpeed): Changed its argument signature.
  16730. * src/PeerMessage.cc (toString): Fixed message.
  16731. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16732. To print ETA:
  16733. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16734. completion handling when dealing with
  16735. TorrentMan::isPartialDownloadingMode() == true.
  16736. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16737. New function.
  16738. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16739. (sessionDownloadLength): New variable.
  16740. (avgSpeed): New variable.
  16741. (eta): New variable.
  16742. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16743. new variables: eta, avgSpeed, startup.
  16744. (calculateSpeed): Calculate average speed and ETA.
  16745. (printStatistics): Added ETA.
  16746. * src/Util.h (secfmt): New function.
  16747. * src/Util.cc (secfmt): New function.
  16748. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16749. To detect "keep alive" flooding:
  16750. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16751. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16752. variable: keepAliveCount.
  16753. (detectMessageFlooding): Added "keep alive" flooding detection.
  16754. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16755. received.
  16756. To add the ability to download only specified files in multi-file
  16757. torrent:
  16758. * src/BitfieldMan.h (filterBitfield): New variable.
  16759. (filterEnabled): New variable.
  16760. (setFilterBit): New function.
  16761. (enableFilter): New function.
  16762. (disableFilter): New function.
  16763. (isFilterEnabled): New function.
  16764. (getFilteredTotalLength): New function.
  16765. (getCompletedLength): New function.
  16766. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16767. filterBitfield, filterEnabled.
  16768. (CopyConstructor): Added filterBitfield and filterEnabled.
  16769. (operator==): Added filterBitfield and filterEnabled.
  16770. (Destructor): Added filterBitfield.
  16771. (getMissingIndex): Use filterBitfield.
  16772. (getMissingUnusedIndex): Use filterBitfield.
  16773. (getFirstMissingUnusedIndex): Use filterBitfield.
  16774. (getFirstMissingUnusedIndex): Use filterBitfield.
  16775. (getAllMissingIndexes): Use filterBitfield.
  16776. (countMissingBlock): Use filterBitfield.
  16777. (countBlock): Use filterBitfield.
  16778. (setBitInternal): Added new argument on.
  16779. (setUseBit): Use setBitInternal.
  16780. (unsetUseBit): Use setBitInternal.
  16781. (setBit): Use setBitInternal.
  16782. (unsetBit): Use setBitInternal.
  16783. (isAllBitSet): Use filterBitfield.
  16784. (setFilterBit): New function.
  16785. (addFilter): New function.
  16786. (enableFilter): New function.
  16787. (disableFilter): New function.
  16788. (clearFilter): New function.
  16789. (isFilterEnabled): New function.
  16790. (getFilteredTotalLength): New function.
  16791. (getCompletedLength): New function.
  16792. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16793. Initalized newly added variables.
  16794. [FileEntry](offset): New variable.
  16795. [FileEntry](extracted): New variable.
  16796. [FileEntry](requested): New variable.
  16797. (readFileEntry): New function.
  16798. (option): New variable.
  16799. (splitMultiFile): Removed const qualifier.
  16800. (fixFilename): Removed const qualifier.
  16801. (readFileEntryFromMetaInfoFile): New function.
  16802. (finishPartialDownloadingMode): New function.
  16803. (isPartialDownloadingMode): New function.
  16804. (setFileEntriesToDownload): New function.
  16805. (getCompletedLength): New function.
  16806. (getPartialTotalLength): New function.
  16807. * src/TorrentMan.cc (readFileEntry): New function.
  16808. (setup): Use readFileEntry. If no-preallocation option is specified,
  16809. use DefaultDiskWriter.
  16810. (readFileEntryFromMetaInfoFile): New function.
  16811. (fixFilename): Removed const qualifier.
  16812. (splitMultiFile): Removed const qualifier.
  16813. (setFileEntriesToDownload): New function.
  16814. (isPartialDownloadingMode): New function.
  16815. (finishPartialDownloadingMode): New function.
  16816. (getCompletedLength): New function.
  16817. (getPartialTotalLength): New function.
  16818. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16819. New variable.
  16820. (partialTotalLength): New variable.
  16821. (downloadLength): New variable.
  16822. (totalLength): New variable.
  16823. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16824. Added log.
  16825. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16826. partialTotalLength, downloadLength, totalLength.
  16827. (calculate): Calculate downloadLength and totalLength.
  16828. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16829. * src/main.cc (addCommand): Changed argument signature.
  16830. (main): Added new variable: args. Added new option "torrent-show-files"
  16831. "no-preallocation". Usage is not updated yet.
  16832. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16833. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16834. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16835. Attempt to add the ability to listing file entries in a .torrent file.
  16836. This feature is not yet complete.
  16837. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16838. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16839. (getName): New function.
  16840. * src/TorrentMan.h (getMultiFileEntries): New function.
  16841. (getName): New function.
  16842. * src/main.cc (main): Use above 2 funtion.
  16843. * Release 0.3.2
  16844. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16845. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16846. (detectMessageFlooding): Updated threshold value.
  16847. (checkLongTimePeerChoking): Updated timeout value.
  16848. (getNewPieceAndSendInterest): Added debug log.
  16849. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16850. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16851. (getPeer): Updated.
  16852. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16853. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16854. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16855. is localhost.
  16856. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16857. * src/PendingMessage.cc (processMessage): Not to send piece message
  16858. if peer is not interested in the pieces localhost has.
  16859. * src/Peer.cc (shouldChoke): Updated.
  16860. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16861. * src/Util.cc (isPowerOf): New function.
  16862. * src/Util.h (isPowerOf): New function.
  16863. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16864. whether or not it is power of 2.
  16865. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16866. Added new class SendMessageQueue that includes PendingMessages and
  16867. RequestSlotMan.
  16868. * src/SendMessageQueue.h: New class.
  16869. * src/SendMessageQueue.cc: New class.
  16870. * src/PendingMessage.h: Added new member variable blockIndex and its
  16871. accessors.
  16872. (createRequestMessage): Updated.
  16873. * src/PendingMessage.cc (createRequestMessage): Updated.
  16874. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16875. SendMessageQueue.
  16876. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16877. (receiveMessage): Updated with SendMessageQueue.
  16878. (deletePendingPieceMessage): Removed.
  16879. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16880. (sendInterest): Updated with SendMessageQueue.
  16881. (createRequestPendingMessage): Updated with SendMessageQueue.
  16882. (sendMessages): Updated with SendMessageQueue.
  16883. (onAbort): Updated with SendMessageQueue.
  16884. (keepAlive): Updated with SendMessageQueue.
  16885. (beforeSocketCheck): Updated SendMessageQueue.
  16886. * src/PeerInteractionCommand (sendMessages): Shuffle
  16887. missingBLockIndexes before using it.
  16888. Added its own timeout for peer connection.
  16889. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16890. setter.
  16891. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16892. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16893. Added setTimeout() call.
  16894. (executeInternal): Added setTimeout() call.
  16895. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16896. Added timeout.
  16897. (isTimeoutDetected): Updated.
  16898. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16899. option.
  16900. Added *simple* message flooding checker.
  16901. * src/PeerInteractionCommand.cc (executeInternal):
  16902. Added detectMessageFlooding() call.
  16903. (detectMessageFlooding): New function.
  16904. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16905. (beforeSocketCheck): Added detectMessageFlooding() call.
  16906. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16907. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16908. Removed deletePendingPieceMessage(), getRequestSlot(),
  16909. deleteRequestSlot(), deleteAllRequestSlot().
  16910. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16911. Added checkLongTimePeerChoking() call.
  16912. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16913. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16914. if duplicate == false.
  16915. The parameter "uploaded" and "downloaded" in the tracker request are
  16916. the size since the client sent the "started" event to the tracker.
  16917. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16918. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16919. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16920. getSessionDownloadedSize(), getSessionUploadedSize().
  16921. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16922. getSessionUploadedSize() instead of getDownloadedSize(),
  16923. getUploadedSize().
  16924. * src/PendingMessage.cc (processMessage): Do not send request message
  16925. if the peer is choking the client.
  16926. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16927. less than interval.
  16928. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16929. * configure.in: Added gnutls support. Added several CPP macros.
  16930. * m4/openssl.m4: Added.
  16931. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16932. readData(), peekData(). Added gnutls support.
  16933. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16934. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16935. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16936. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16937. Instead, added a check for whether setup method has executed
  16938. successfully.
  16939. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16940. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16941. * src/Makefile.am: Updated.
  16942. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16943. using whether OpenSSL or gcrypt, depending on the result of configure
  16944. script.
  16945. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16946. messageDigest.h.
  16947. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16948. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16949. Fixed memory leak.
  16950. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16951. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16952. Removed instantiation of TrackerInitCommand. Instead,
  16953. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16954. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16955. ENABLE_SSL.
  16956. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16957. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16958. If a piece is already acquired by another command, delete the request
  16959. slots for the piece.
  16960. * src/TrackerUpdateCommand.cc (execute):
  16961. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16962. Added a check whether peer list is null.
  16963. Fixed the bug that causes sending completed event to the tracker
  16964. several times.
  16965. * src/TrackerInitCommand.cc (execute):
  16966. Fixed the bug that causes sending completed event to the tracker
  16967. several times.
  16968. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16969. by using messageDigest.h.
  16970. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16971. * PeerConnection.cc: Replaced log message "keep-alive" with
  16972. "keep alive".
  16973. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16974. localhost long time.
  16975. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16976. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16977. at most 100 failure entry from the list. If with duplicate = false,
  16978. MAX_PEER_LIST is not checked.
  16979. * PeerListenCommand.cc: Fixed the argument order of log message.
  16980. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16981. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16982. Added warn().
  16983. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16984. Implemented warn().
  16985. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16986. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16987. * Request.h: Added AFTER_COMPLETED event.
  16988. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16989. instead of downloaded size and progress(%) after download completes.
  16990. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16991. message to the peer if it is interested in what localhost has
  16992. downloaded.
  16993. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16994. destination instead of just renaming it.
  16995. * TorrentMan.cc: Added deleteTempFile().
  16996. * PeerAbstractCommand.cc: do not stop execution after download
  16997. completes. This makes localhost a seeder.
  16998. * Util.{h,cc}: Added fileCopy().
  16999. * PeerListenCommand.cc: do not stop execution after download completes.
  17000. This makes localhost a seeder.
  17001. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17002. Added TorrentMan::deleteTempFile() to torrentHandler.
  17003. Initialized the variable dir as ".".
  17004. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17005. Deleted renameSingleFile().
  17006. Added copySingleFile(), deleteTempFile().
  17007. * DownloadEngine.h: Added virtual function afterEachIteration().
  17008. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17009. in onEndOfRun() to afterEachIteration().
  17010. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17011. true.
  17012. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17013. In rangedFileCopy(), added try-catch block to properly close file
  17014. descriptors.
  17015. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17016. Added afterEachIteration(), isFilenameFixed().
  17017. * Peer.cc: Changed choking strategy.
  17018. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17019. * TrackerInitCommand.cc: Send completed event only once.
  17020. * DownloadEngine.cc: Added a call to afterEachIteration().
  17021. * TrackerUpdateCommand.cc: Do not stop execution after download
  17022. completes.
  17023. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17024. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17025. received from a tracker.
  17026. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17027. Decreased the number of failure peers to delete to 0(just comment out
  17028. the line).
  17029. * Release 0.3.1
  17030. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17031. * PeerInteractionCommand.cc: added a call to
  17032. TorrentMan::unadvertisePiece in Destructor.
  17033. * PeerInteractionCommand.cc: make have message sent immediately
  17034. if the size of pending message queue is zero.
  17035. * TorrentMan.cc: set the maximum size of peer list to 250.
  17036. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17037. to deque.
  17038. * Util.cc: fixed rangedFileCopy.
  17039. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17040. to Constructor. Also, moved digest cleanup to Destructor.
  17041. * MetaFileUtil.cc: fixed memory leak
  17042. * replaced std::vector with std::deque.
  17043. * AbstractCommand.cc: casted timeout value to long long int.
  17044. * ChunkedEncoding.cc: fixed memory leak.
  17045. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17046. * SleepCommand.cc: casted timeout value to long long int.
  17047. * Data.cc: fixed memory leak.
  17048. * Data.cc: fixed toLLInt().
  17049. * BitfieldMan.cc: fixed memory leak.
  17050. * TorrentMan.cc: initialized storeDir to ".".
  17051. * TorrentMan.cc: fixed memory leak.
  17052. * TorrentMan.cc: corrected file paths of splitted files.
  17053. * PeerAbstractCommand.cc: casted timeout to long long int.
  17054. * main.cc: added delete(req) and delete(te->diskWriter).
  17055. * RequestSlot.cc: casted timeout value to long long int.
  17056. * Request.cc: fixed memory leak.
  17057. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17058. have the piece.
  17059. * Peer.{h,cc}: added hasPiece(int index).
  17060. * main.cc: corrected addCommand.
  17061. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17062. * BitTorrent protocol support added.
  17063. * Release 0.3.0
  17064. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17065. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17066. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17067. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17068. decoding did not work properly.
  17069. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17070. * DownloadEngine.h: included sys/time.h
  17071. * DownloadEngine.cc: remove sys/time.h
  17072. * Makefile.am (SUBDIRS): Add intl.
  17073. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17074. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17075. * main.cc: correct help message for --http-auth-scheme.
  17076. * main.cc: changed e-mail address for bug reports.
  17077. * ja.po: added japanese translation.
  17078. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17079. * SimpleLogger.cc: flush log file instead of stdout.
  17080. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17081. * main.cc: Fixed command-line option: max-tries
  17082. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17083. does not equal to seg.sp.
  17084. * DownloadCommand.cc: If EOF is got from the server and the total size
  17085. of file is not zero, then throw DlRetryEx.
  17086. * main.cc: Set the minium value of min-segment-size to 1024.
  17087. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17088. fails because of a regression since 0.2.0 release.
  17089. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17090. * HttpConnection.cc:
  17091. * common.h: defined the user agent name as macro
  17092. * DownloadEngine.{h, cc}:
  17093. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17094. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17095. * main.cc: Download complete/abort message is now generated by main.
  17096. * Makefile.am (SUBDIRS): Add m4.
  17097. (ACLOCAL_AMFLAGS): New variable.
  17098. (EXTRA_DIST): New variable.
  17099. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17100. * gettext: added gettext functionality
  17101. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17102. * AbstractCommand.cc:
  17103. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17104. unregister its cuid from SegmentMan.
  17105. * DownloadEngine.cc: .aria2 file was written when a downloading
  17106. failed with errors.
  17107. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17108. Added "User-Agent" header to CONNECT proxy request.
  17109. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17110. properly.
  17111. * Logger.h:
  17112. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17113. * ChunkedEncoding.cc: Added #include directive for strings.h
  17114. * Release 0.2.1
  17115. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17116. * Util.{h,cc}: added startsWith().
  17117. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17118. Util::endsWith().
  17119. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17120. * common.h: added #include directive of limit.h.
  17121. * DownloadEngine.cc: added #include directive of sys/time.h and
  17122. algorithm.
  17123. * Exception.h: added #include directive of stdio.h.
  17124. * AbstractCommand.h: added #include directive of sys/time.h.
  17125. * DownloadCommand.h: added #include directive of sys/time.h.
  17126. * *.h: added #include directive of common.h to all base classes.
  17127. subclasses' one was removed.
  17128. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17129. does not define these macros.
  17130. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17131. * Release 0.2.0
  17132. * main.cc:
  17133. * HttpInitiateConnectionCommand.{h,cc}:
  17134. * prefs.h:
  17135. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17136. We can now use GET command in http proxy.
  17137. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17138. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17139. that splits slowest segment of SegmentMan::commands vector.
  17140. This is the default split algorithm of aria2.
  17141. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17142. that splits first segment of SegmentMan::commands vector.
  17143. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17144. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17145. * Segment.h:
  17146. * SegmentMan.cc: Added speed field to Segment.h
  17147. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17148. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17149. * message.h: Change file size related %d to %lld.
  17150. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17151. * FtpInitiateConnectionCommand.{h,cc}:
  17152. * FtpNegotiationCommand.{h,cc}:
  17153. * FtpDownloadCommand.{h,cc}:
  17154. * FtpConnection.{h,cc}: Added FTP support
  17155. * SimpleLogger.cc: Log message now includes time information.
  17156. * main.cc: The value of --http-auth-scheme option is chagned from
  17157. 'BASIC' to 'basic'
  17158. * main.cc: Added --timeout command-line option.
  17159. * main.cc: Added --min-segment-size command-line option.
  17160. * main.cc: Added --max-retries command-line option.
  17161. * prefs.h: option string constants are now defined in prefs.h
  17162. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17163. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17164. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17165. with version 0.1.0's one.
  17166. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17167. * configure.in: Added --enable-ssl option to configure script.
  17168. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17169. cannot permit absoluteURI as Request-URI.
  17170. * HttpConnection.cc: Added Referer support.
  17171. * main.cc: Added referer command-line option.
  17172. * main.cc: Added rety-wait command-line option.
  17173. * Exception.h: Fixed formating bug in Exception::setMsg()
  17174. * SocketCore.{h,cc}:
  17175. * Socket.{h, cc}:
  17176. * Request.cc:
  17177. * InitiateConnectionCommandFactory.cc:
  17178. * HttpRequestCommand.cc: Added HTTPS support.
  17179. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17180. for SocketCore.
  17181. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17182. size is wrong
  17183. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17184. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17185. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17186. * Release 0.1.0