ChangeLog 712 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043
  1. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. urldecode -> percentDecode
  3. * src/FtpConnection.cc
  4. * src/FtpNegotiationCommand.cc
  5. * src/HttpResponse.cc
  6. * src/Request.cc
  7. * src/magnet.cc
  8. * src/util.cc
  9. * src/util.h
  10. * test/UtilTest.cc
  11. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. urlencode -> percentEncode,
  13. torrentUrlencode -> torrentPercentEncode
  14. * src/BtHandshakeMessage.cc
  15. * src/BtHandshakeMessageValidator.h
  16. * src/DHTMessageFactoryImpl.cc
  17. * src/DefaultBtAnnounce.cc
  18. * src/HandshakeExtensionMessage.cc
  19. * src/HttpRequest.cc
  20. * src/XmlRpcMethodImpl.cc
  21. * src/bittorrent_helper.cc
  22. * src/util.cc
  23. * src/util.h
  24. * test/DHTAnnouncePeerMessageTest.cc
  25. * test/DHTGetPeersMessageTest.cc
  26. * test/DHTGetPeersReplyMessageTest.cc
  27. * test/UTPexExtensionMessageTest.cc
  28. * test/UtilTest.cc
  29. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Fixed the bug that filename is percent encoded where it must be
  31. percent decoded in sendMdtm().
  32. * src/FtpConnection.cc
  33. * test/FtpConnectionTest.cc
  34. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. url -> uri in Request class.
  36. * src/AbstractCommand.cc
  37. * src/AdaptiveURISelector.cc
  38. * src/DefaultBtAnnounce.cc
  39. * src/FeedbackURISelector.cc
  40. * src/FileEntry.cc
  41. * src/FileEntry.h
  42. * src/HttpRequest.h
  43. * src/HttpResponse.cc
  44. * src/InitiateConnectionCommandFactory.cc
  45. * src/Metalink2RequestGroup.cc
  46. * src/OptionHandlerImpl.h
  47. * src/ProtocolDetector.cc
  48. * src/Request.cc
  49. * src/Request.h
  50. * src/XmlRpcMethodImpl.cc
  51. * test/AuthConfigFactoryTest.cc
  52. * test/FtpConnectionTest.cc
  53. * test/HttpRequestTest.cc
  54. * test/HttpResponseTest.cc
  55. * test/RequestTest.cc
  56. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Added getServers XML-RPC method.
  58. * doc/aria2c.1.txt
  59. * src/FileEntry.h
  60. * src/XmlRpcMethodFactory.cc
  61. * src/XmlRpcMethodImpl.cc
  62. * src/XmlRpcMethodImpl.h
  63. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Pool request when download finished.
  65. * src/DownloadCommand.cc
  66. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  68. 1-based.
  69. * doc/aria2c.1.txt
  70. * src/XmlRpcMethodImpl.cc
  71. * test/XmlRpcMethodTest.cc
  72. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Call RequestGroupMan::requestQueueCheck() when
  74. max-concurrent-downloads option is changed or new downloads are
  75. added/inserted into reserved list.
  76. * src/RequestGroupMan.cc
  77. * src/XmlRpcMethodImpl.cc
  78. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Added aria2.forceRemove XML-RPC method.
  80. * doc/aria2c.1.txt
  81. * src/XmlRpcMethodFactory.cc
  82. * src/XmlRpcMethodImpl.cc
  83. * src/XmlRpcMethodImpl.h
  84. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Added debug log.
  86. * src/AbstractCommand.cc
  87. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Create CreateRequestCommand to the number of -s/-C when URIs are
  89. added by XML-RPC.
  90. * src/RequestGroup.cc
  91. * src/RequestGroup.h
  92. * src/XmlRpcMethodImpl.cc
  93. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Added 'status' key to the response of getUri XML-RPC method.
  95. * doc/aria2c.1.txt
  96. * src/XmlRpcMethodImpl.cc
  97. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Replaced Time::reset() call with assigning of global::wallclock.
  99. * src/BtLeecherStateChoke.cc
  100. * src/BtSeederStateChoke.cc
  101. * src/PeerSessionResource.cc
  102. * src/RequestSlot.cc
  103. * src/ServerStat.cc
  104. * src/SpeedCalc.cc
  105. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added changeUri XML-RPC method. This method removes/adds URIs
  107. dynamically.
  108. * doc/aria2c.1.txt
  109. * src/AbstractCommand.cc
  110. * src/DownloadContext.cc
  111. * src/DownloadContext.h
  112. * src/FileEntry.cc
  113. * src/FileEntry.h
  114. * src/Request.cc
  115. * src/Request.h
  116. * src/RequestGroup.cc
  117. * src/RequestGroupMan.cc
  118. * src/XmlRpcMethodFactory.cc
  119. * src/XmlRpcMethodImpl.cc
  120. * src/XmlRpcMethodImpl.h
  121. * test/FileEntryTest.cc
  122. * test/XmlRpcMethodTest.cc
  123. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Rewritten copy ctor of RequestSlot to use initialization list.
  125. * src/RequestSlot.h
  126. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Added Time global::wallclock to cache "current time" to reduce the
  128. call gettimeofday(). Global variables are now in namespace global.
  129. * src/AbstractCommand.cc
  130. * src/ActivePeerConnectionCommand.cc
  131. * src/AdaptiveURISelector.cc
  132. * src/BtLeecherStateChoke.cc
  133. * src/BtLeecherStateChoke.h
  134. * src/BtSeederStateChoke.cc
  135. * src/BtSeederStateChoke.h
  136. * src/BtStopDownloadCommand.cc
  137. * src/ConsoleStatCalc.cc
  138. * src/DHTBucket.cc
  139. * src/DHTGetPeersCommand.cc
  140. * src/DHTMessageTrackerEntry.cc
  141. * src/DHTNode.cc
  142. * src/DHTPeerAnnounceEntry.cc
  143. * src/DHTPeerAnnounceStorage.cc
  144. * src/DHTSetup.cc
  145. * src/DefaultBtAnnounce.cc
  146. * src/DefaultBtInteractive.cc
  147. * src/DefaultBtMessageDispatcher.cc
  148. * src/DefaultPeerStorage.cc
  149. * src/DefaultPieceStorage.cc
  150. * src/DownloadCommand.cc
  151. * src/DownloadEngine.cc
  152. * src/FileEntry.cc
  153. * src/HttpServerBodyCommand.cc
  154. * src/HttpServerCommand.cc
  155. * src/HttpServerResponseCommand.cc
  156. * src/LpdMessageDispatcher.cc
  157. * src/MultiUrlRequestInfo.cc
  158. * src/Peer.cc
  159. * src/Peer.h
  160. * src/PeerAbstractCommand.cc
  161. * src/PeerStat.h
  162. * src/RequestSlot.cc
  163. * src/RequestSlot.h
  164. * src/SegmentMan.cc
  165. * src/ServerStatMan.cc
  166. * src/SleepCommand.cc
  167. * src/SpeedCalc.cc
  168. * src/SpeedCalc.h
  169. * src/TimeA2.cc
  170. * src/TimeA2.h
  171. * src/TimeBasedCommand.cc
  172. * src/TimeSeedCriteria.h
  173. * src/UTMetadataRequestTracker.h
  174. * src/UTPexExtensionMessage.cc
  175. * src/wallclock.h
  176. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Fixed the bug that util::itos(INT64_MIN) fails.
  178. * src/util.cc
  179. * src/util.h
  180. * test/UtilTest.cc
  181. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Fixed memory leak in SocketBuffer when _bufq is not empty when
  183. SocketBuffer is deleted. Added BufEntry constructor and deleted
  184. static factory functions.
  185. * src/SocketBuffer.cc
  186. * src/SocketBuffer.h
  187. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  189. queue maintenance is requested by RequestGroup to avoid to call
  190. the function unnecessarily.
  191. * src/FillRequestGroupCommand.cc
  192. * src/RequestGroup.cc
  193. * src/RequestGroup.h
  194. * src/RequestGroupMan.cc
  195. * src/RequestGroupMan.h
  196. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Don't use hash for Peer::id. Simple concatenation of ip address
  198. and port is enough.
  199. * src/Peer.cc
  200. * test/PeerTest.cc
  201. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Enclosed log of DHTMessage::toString() with Logger::info().
  203. * src/DHTMessageDispatcherImpl.cc
  204. * src/DHTMessageReceiver.cc
  205. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Rewritten util::toHex().
  207. * src/util.cc
  208. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Removed SocketBuffer::feedAndSend(). Renamed
  210. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  211. * src/FtpConnection.cc
  212. * src/HttpConnection.cc
  213. * src/HttpServer.cc
  214. * src/MSEHandshake.cc
  215. * src/PeerConnection.cc
  216. * src/SocketBuffer.cc
  217. * src/SocketBuffer.h
  218. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Removed unused PeerConnection::sendMessage(). Updated doc.
  220. * src/PeerConnection.cc
  221. * src/PeerConnection.h
  222. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Reduced copying/std::string instantiation in sending/receiving
  224. BitTorrent messages.
  225. * src/BtBitfieldMessage.cc
  226. * src/BtBitfieldMessage.h
  227. * src/BtExtendedMessage.cc
  228. * src/BtExtendedMessage.h
  229. * src/BtHandshakeMessage.cc
  230. * src/BtHandshakeMessage.h
  231. * src/BtKeepAliveMessage.cc
  232. * src/BtKeepAliveMessage.h
  233. * src/BtPieceMessage.cc
  234. * src/BtPieceMessage.h
  235. * src/BtPortMessage.cc
  236. * src/BtPortMessage.h
  237. * src/BtUnchokeMessage.h
  238. * src/DefaultBtMessageReceiver.cc
  239. * src/IndexBtMessage.cc
  240. * src/IndexBtMessage.h
  241. * src/PeerConnection.cc
  242. * src/PeerConnection.h
  243. * src/RangeBtMessage.cc
  244. * src/RangeBtMessage.h
  245. * src/SimpleBtMessage.cc
  246. * src/SimpleBtMessage.h
  247. * src/SocketBuffer.cc
  248. * src/SocketBuffer.h
  249. * src/ZeroBtMessage.cc
  250. * src/ZeroBtMessage.h
  251. * test/BtAllowedFastMessageTest.cc
  252. * test/BtBitfieldMessageTest.cc
  253. * test/BtCancelMessageTest.cc
  254. * test/BtChokeMessageTest.cc
  255. * test/BtExtendedMessageTest.cc
  256. * test/BtHandshakeMessageTest.cc
  257. * test/BtHaveAllMessageTest.cc
  258. * test/BtHaveMessageTest.cc
  259. * test/BtHaveNoneMessageTest.cc
  260. * test/BtInterestedMessageTest.cc
  261. * test/BtKeepAliveMessageTest.cc
  262. * test/BtNotInterestedMessageTest.cc
  263. * test/BtPieceMessageTest.cc
  264. * test/BtPortMessageTest.cc
  265. * test/BtRejectMessageTest.cc
  266. * test/BtRequestMessageTest.cc
  267. * test/BtSuggestPieceMessageTest.cc
  268. * test/BtUnchokeMessageTest.cc
  269. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Rewritten SocketBuffer. Old implementation uses single std::string
  271. to store data and erase sent data, which is costly. New
  272. implementation uses deque to hold each data to avoid to mutate
  273. string.
  274. * src/SocketBuffer.cc
  275. * src/SocketBuffer.h
  276. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Removed unused FileEntry::extracted
  278. * src/FileEntry.cc
  279. * src/FileEntry.h
  280. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Wait until data arrives.
  282. * test/LpdMessageReceiverTest.cc
  283. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. In Metalink4, if size element contains invalid size, discard whole
  285. document. Added strict hash value check for metalink3/4.
  286. * src/MetalinkParserController.cc
  287. * src/MetalinkParserStateMachine.cc
  288. * src/MetalinkParserStateMachine.h
  289. * src/MetalinkParserStateV3Impl.cc
  290. * src/MetalinkParserStateV4Impl.cc
  291. * src/util.cc
  292. * src/util.h
  293. * test/MetalinkParserControllerTest.cc
  294. * test/MetalinkProcessorTest.cc
  295. * test/metalink4.xml
  296. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Added strict attribute validation for metalink4. When
  298. specification violation is found, discard the whole document.
  299. * src/ExpatMetalinkProcessor.cc
  300. * src/MetalinkParserStateMachine.cc
  301. * src/MetalinkParserStateMachine.h
  302. * src/MetalinkParserStateV4Impl.cc
  303. * src/XML2SAXMetalinkProcessor.cc
  304. * test/Makefile.am
  305. * test/MetalinkProcessorTest.cc
  306. * test/metalink4-attrs.xml: Removed
  307. * test/metalink4-dirtraversal.xml: Removed
  308. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Added test for Metaurl transaction.
  310. * src/MetalinkParserController.cc
  311. * test/MetalinkParserControllerTest.cc
  312. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Avoid costly BtMessage::toString() if info level log is not
  314. required.
  315. * src/DefaultBtInteractive.cc
  316. * src/Logger.h
  317. * src/SimpleBtMessage.cc
  318. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Reserved vector elements based on profiler results.
  320. * src/DefaultBtInteractive.cc
  321. * src/DefaultBtProgressInfoFile.cc
  322. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Avoid to calculate end() iterator in each loop. std::deque is
  324. particularly slow. Make sure that recalculate end iterator if
  325. element is erased during loop.
  326. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Use vector instead of deque for containers which is used for
  328. mostly read-only purpose.
  329. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  330. Fixed typo
  331. * test/Makefile.am
  332. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  334. * test/Makefile.am
  335. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Small optimization: In updateTransferStatFor(), don't search peer
  337. ID twice.
  338. * src/DefaultPeerStorage.cc
  339. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Use vector instead of deque for MetalinkEntry and MetalinkResource
  341. objects.
  342. * src/Metalink2RequestGroup.cc
  343. * src/Metalink2RequestGroup.h
  344. * src/MetalinkEntry.cc
  345. * src/MetalinkEntry.h
  346. * src/MetalinkHelper.cc
  347. * src/MetalinkHelper.h
  348. * src/Metalinker.cc
  349. * src/Metalinker.h
  350. * src/main.cc
  351. * test/MetalinkEntryTest.cc
  352. * test/MetalinkHelperTest.cc
  353. * test/MetalinkProcessorTest.cc
  354. * test/MetalinkerTest.cc
  355. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Fixed the bug that grouped FileEntry objects are not used but
  357. instead all FileEntry objects are used for each metaurl group.
  358. * src/Metalink2RequestGroup.cc
  359. * test/Metalink2RequestGroupTest.cc
  360. * test/metalink4-groupbymetaurl.xml
  361. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Use vector instead of deque for ChunkChecksum.
  363. * src/ChunkChecksum.h
  364. * src/MetalinkParserController.cc
  365. * src/MetalinkParserController.h
  366. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  368. algorithm in Metalink properly
  369. * src/MetalinkParserController.cc
  370. * src/MetalinkParserController.h
  371. * src/messageDigest.cc
  372. * src/messageDigest.h
  373. * test/MetalinkProcessorTest.cc
  374. * test/metalink4.xml
  375. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Replaced null or control characters in file path with '_'. For
  377. MinGW32 build, additional characters which is not allowed in
  378. Windows kernel are also replaced. util::detectDirTraversal() now
  379. returns true if given string contains null or control characters.
  380. * src/DownloadContext.cc
  381. * src/DownloadContext.h
  382. * src/Metalink2RequestGroup.cc
  383. * src/MetalinkParserController.cc
  384. * src/bittorrent_helper.cc
  385. * src/util.cc
  386. * src/util.h
  387. * test/UtilTest.cc
  388. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Discard metalink:file if its name attribute is empty string.
  390. Removed FileEntry instantiation in
  391. MetalinkParserController::setFileLengthOfEntry()
  392. * src/MetalinkParserController.cc
  393. * src/MetalinkParserStateV3Impl.cc
  394. * src/MetalinkParserStateV4Impl.cc
  395. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Discard torrent file if path data in it contains directory
  397. traversal directives. Discard metalink:file element in Metalink3
  398. format if its name attribute contains directory traversal
  399. directives. Ignore name attribute of metalink:signature element
  400. in Metalink3 format if it contains directory traversal directives.
  401. * src/MetalinkParserStateV3Impl.cc
  402. * src/bittorrent_helper.cc
  403. * src/message.h
  404. * test/BittorrentHelperTest.cc
  405. * test/Makefile.am
  406. * test/MetalinkProcessorTest.cc
  407. * test/metalink3-dirtraversal.xml
  408. * test/test.xml
  409. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Removed useless comment
  411. * src/MetalinkParserStateV4Impl.cc
  412. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Supported name attribute of metalink::metaurl element and
  414. multi-file torrent with Metalink4. Files with same metaurl are
  415. grouped and downloaded in one RequestGroup.
  416. * src/BtDependency.cc
  417. * src/FileEntry.h
  418. * src/Metalink2RequestGroup.cc
  419. * src/Metalink2RequestGroup.h
  420. * src/MetalinkEntry.cc
  421. * src/MetalinkEntry.h
  422. * src/MetalinkHelper.cc
  423. * src/MetalinkHelper.h
  424. * src/MetalinkMetaurl.cc
  425. * src/MetalinkMetaurl.h
  426. * src/MetalinkParserController.cc
  427. * src/RequestGroup.cc
  428. * src/RequestGroup.h
  429. * src/bittorrent_helper.cc
  430. * test/BittorrentHelperTest.cc
  431. * test/BtDependencyTest.cc
  432. * test/MetalinkHelperTest.cc
  433. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  435. * src/MetalinkMetaurl.h
  436. * src/MetalinkParserController.cc
  437. * src/MetalinkParserController.h
  438. * src/MetalinkParserStateMachine.cc
  439. * src/MetalinkParserStateMachine.h
  440. * src/MetalinkParserStateV4Impl.cc
  441. * test/MetalinkProcessorTest.cc
  442. * test/metalink4-dirtraversal.xml
  443. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  445. element.
  446. * src/Makefile.am
  447. * src/Metalink2RequestGroup.cc
  448. * src/MetalinkEntry.cc
  449. * src/MetalinkEntry.h
  450. * src/MetalinkMetaurl.cc
  451. * src/MetalinkMetaurl.h
  452. * src/MetalinkParserController.cc
  453. * src/MetalinkParserController.h
  454. * src/MetalinkParserStateMachine.cc
  455. * src/MetalinkParserStateMachine.h
  456. * src/MetalinkParserStateV4Impl.cc
  457. * src/MetalinkParserStateV4Impl.h
  458. * test/MetalinkProcessorTest.cc
  459. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added Metalink4 support. Currently, name attribute of
  461. metalink::metaurl is ignored and multi-file torrent cannot be used
  462. with Metalink4.
  463. * doc/aria2c.1.txt
  464. * src/DownloadHandlerConstants.cc
  465. * src/ExpatMetalinkProcessor.cc
  466. * src/Makefile.am
  467. * src/Metalink2RequestGroup.cc
  468. * src/MetalinkEntry.cc
  469. * src/MetalinkEntry.h
  470. * src/MetalinkParserController.cc
  471. * src/MetalinkParserController.h
  472. * src/MetalinkParserState.h
  473. * src/MetalinkParserStateImpl.cc
  474. * src/MetalinkParserStateImpl.h
  475. * src/MetalinkParserStateMachine.cc
  476. * src/MetalinkParserStateMachine.h
  477. * src/MetalinkParserStateV3Impl.cc
  478. * src/MetalinkParserStateV3Impl.h
  479. * src/MetalinkParserStateV4Impl.cc
  480. * src/MetalinkParserStateV4Impl.h
  481. * src/MetalinkResource.cc
  482. * src/MetalinkResource.h
  483. * src/Metalinker.cc
  484. * src/RequestGroup.cc
  485. * src/RequestGroup.h
  486. * src/XML2SAXMetalinkProcessor.cc
  487. * src/messageDigest.cc
  488. * src/util.cc
  489. * src/util.h
  490. * test/Makefile.am
  491. * test/MetalinkEntryTest.cc
  492. * test/MetalinkParserControllerTest.cc
  493. * test/MetalinkProcessorTest.cc
  494. * test/MetalinkerTest.cc
  495. * test/UtilTest.cc
  496. * test/metalink4-attrs.xml
  497. * test/metalink4-dirtraversal.xml
  498. * test/metalink4.xml
  499. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Added aiFlags argument to getInterfaceAddress(). Use
  501. AI_NUMERICHOST to find interface specified using
  502. --bt-lpd-interface option to avoid time-consuming address lookup.
  503. * src/BtSetup.cc
  504. * src/SocketCore.cc
  505. * src/SocketCore.h
  506. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  508. is bad in LpdMessageReceiver.
  509. * src/LpdMessage.h
  510. * src/LpdMessageReceiver.cc
  511. * src/LpdMessageReceiver.h
  512. * src/LpdReceiveMessageCommand.cc
  513. * test/LpdMessageReceiverTest.cc
  514. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Added --bt-lpd-interface option to specify the interface to use
  516. for Local Peer Discovery. LpdMessageDispatcher object now has its
  517. own socket. LpdMessageReceiver's socket is binded to multicast
  518. address to only receive multicast packets.
  519. * src/BtSetup.cc
  520. * src/LpdMessageDispatcher.cc
  521. * src/LpdMessageDispatcher.h
  522. * src/LpdMessageReceiver.cc
  523. * src/LpdMessageReceiver.h
  524. * src/LpdReceiveMessageCommand.cc
  525. * src/LpdReceiveMessageCommand.h
  526. * src/OptionHandlerFactory.cc
  527. * src/SocketCore.cc
  528. * src/SocketCore.h
  529. * src/prefs.cc
  530. * src/prefs.h
  531. * src/usage_text.h
  532. * test/LpdMessageDispatcherTest.cc
  533. * test/LpdMessageReceiverTest.cc
  534. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Put the portion of code to get interface addresses in
  536. SocketCore::bindAddress() into newly added getInterfaceAddress().
  537. * src/SocketCore.cc
  538. * src/SocketCore.h
  539. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Rewritten util::parseInt() and parseUInt()
  541. * src/util.cc
  542. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Fixed compile error with mingw32 cross compiler. Defined
  544. a2_sockopt_t as void* for the target systems other than mingw32.
  545. * src/SocketCore.cc
  546. * src/a2netcompat.h
  547. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Removed 'always true' condition
  549. * src/util.cc
  550. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Documented --bt-enable-lpd option in man page.
  552. * doc/aria2c.1.txt
  553. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Added Local Peer Discovery. It is disabled by default. Use
  555. --bt-enable-lpd to enable the function.
  556. * src/BtConstants.h
  557. * src/BtSetup.cc
  558. * src/LpdDispatchMessageCommand.cc
  559. * src/LpdDispatchMessageCommand.h
  560. * src/LpdMessage.h
  561. * src/LpdMessageDispatcher.cc
  562. * src/LpdMessageDispatcher.h
  563. * src/LpdMessageReceiver.cc
  564. * src/LpdMessageReceiver.h
  565. * src/LpdReceiveMessageCommand.cc
  566. * src/LpdReceiveMessageCommand.h
  567. * src/Makefile.am
  568. * src/OptionHandlerFactory.cc
  569. * src/Peer.cc
  570. * src/Peer.h
  571. * src/PeerInteractionCommand.cc
  572. * src/SocketCore.cc
  573. * src/SocketCore.h
  574. * src/prefs.cc
  575. * src/prefs.h
  576. * src/usage_text.h
  577. * src/util.cc
  578. * src/util.h
  579. * test/LpdMessageDispatcherTest.cc
  580. * test/LpdMessageReceiverTest.cc
  581. * test/Makefile.am
  582. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. User-defined custom request headers specified by --header option
  584. now override builtin headers if they have same name.
  585. * src/HttpRequest.cc
  586. * src/HttpRequest.h
  587. * test/HttpRequestTest.cc
  588. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Rewirtten util::isNumber()
  590. * src/util.cc
  591. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  593. because without it localized error messages are not printed
  594. correctly.
  595. * src/Platform.cc
  596. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Added unit tests for util::getContentDispositionFilename() from
  598. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  599. tests are passed.
  600. * src/util.cc
  601. * test/UtilTest.cc
  602. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  604. util.cc
  605. * src/Platform.cc
  606. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Support RFC2231 "Parameter Value Character Set and Language
  608. Information" in Content-Disposition header.
  609. * src/HttpResponse.cc
  610. * src/util.cc
  611. * src/util.h
  612. * test/UtilTest.cc
  613. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Print CXXFLAGS
  615. * configure.ac
  616. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Small optimization for A2_WOULDBLOCK(e)
  618. * src/SocketCore.cc
  619. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Removed test file
  621. * test/CookieStorageTest.cc
  622. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Check both EAGAIN and EWOULDBLOCK
  624. * src/SocketCore.cc
  625. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Removed ret == 0 checking for SSL_read(), SSL_write() and
  627. SSL_peek() because the checks are done in the caller. In
  628. SocketBuffer::send(), throw exception if nothing could be written
  629. and socket error was not EWOULDBLOCK
  630. * src/SocketBuffer.cc
  631. * src/SocketCore.cc
  632. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Fixed error code handling so that it can handle Winsock2 error
  634. code.
  635. * src/SocketCore.cc
  636. * src/SocketCore.h
  637. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Bump up version number to 1.9.0a
  639. * configure.ac
  640. * doc/aria2c.1.txt
  641. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Fixed the bug that aria2 doesn't handle return value if error
  643. occurred before download begins.
  644. * src/MultiUrlRequestInfo.cc
  645. * src/main.cc
  646. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Removed SegmentManFactory class.
  648. * src/AbstractSegmentManFactory.h
  649. * src/DefaultSegmentManFactory.cc
  650. * src/DefaultSegmentManFactory.h
  651. * src/Makefile.am
  652. * src/RequestGroup.cc
  653. * src/RequestGroup.h
  654. * src/SegmentManFactory.h
  655. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Destroyed digest context after getting calculated hash.
  657. * src/Piece.cc
  658. * src/Piece.h
  659. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Removed BitfieldManFactory class.
  661. * src/BitfieldManFactory.cc
  662. * src/BitfieldManFactory.h
  663. * src/DefaultPieceStorage.cc
  664. * src/Makefile.am
  665. * src/PeerSessionResource.cc
  666. * src/Piece.cc
  667. * src/main.cc
  668. * test/DefaultPieceStorageTest.cc
  669. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Removed unused methods from BitfieldMan class. Moved
  671. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  672. class.
  673. * src/BitfieldMan.cc
  674. * src/BitfieldMan.h
  675. * src/BitfieldManFactory.cc
  676. * src/BitfieldManFactory.h
  677. * src/bitfield.h
  678. * src/main.cc
  679. * test/BitfieldManTest.cc
  680. * test/DefaultPieceStorageTest.cc
  681. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Moved getFirstNMissingIndex to bitfield.h and made it return the
  683. number of appended indexes.
  684. * src/BitfieldMan.cc
  685. * src/BitfieldMan.h
  686. * src/Piece.cc
  687. * src/Piece.h
  688. * src/bitfield.h
  689. * test/BitfieldManTest.cc
  690. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Added more tests.
  692. * test/BitfieldManTest.cc
  693. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  695. unused block indexes at once instead of calling
  696. getFirstMissingUnusedIndex() multiple times. Made use of it in
  697. Piece class and DefaultBtRequestFactory class via Piece class.
  698. * src/BitfieldMan.cc
  699. * src/BitfieldMan.h
  700. * src/DefaultBtRequestFactory.cc
  701. * src/Piece.cc
  702. * src/Piece.h
  703. * test/BitfieldManTest.cc
  704. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Use std::make_pair(...)
  706. * src/DHTMessageTracker.cc
  707. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Use std::make_pair(...)
  709. * src/bittorrent_helper.cc
  710. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. urlencode(removeFragment(...)) in parseUrl(...)
  712. * src/Request.cc
  713. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  715. * src/AbstractCommand.cc
  716. * src/AdaptiveURISelector.cc
  717. * src/BtPieceMessage.cc
  718. * src/BtPortMessage.cc
  719. * src/CreateRequestCommand.cc
  720. * src/DHTAbstractNodeLookupTask.cc
  721. * src/DHTBucket.cc
  722. * src/DHTGetPeersCommand.cc
  723. * src/DHTMessageDispatcherImpl.cc
  724. * src/DHTMessageFactoryImpl.cc
  725. * src/DHTMessageTracker.cc
  726. * src/DHTPeerAnnounceStorage.cc
  727. * src/DHTRoutingTable.cc
  728. * src/DHTSetup.cc
  729. * src/DefaultBtAnnounce.cc
  730. * src/DefaultBtInteractive.cc
  731. * src/DefaultBtMessageDispatcher.cc
  732. * src/DefaultBtMessageReceiver.cc
  733. * src/DefaultBtProgressInfoFile.cc
  734. * src/DefaultBtRequestFactory.cc
  735. * src/DefaultPeerStorage.cc
  736. * src/DefaultPieceStorage.cc
  737. * src/DownloadCommand.cc
  738. * src/DownloadEngine.cc
  739. * src/EpollEventPoll.cc
  740. * src/FileAllocationCommand.cc
  741. * src/FileEntry.cc
  742. * src/FtpNegotiationCommand.cc
  743. * src/HandshakeExtensionMessage.cc
  744. * src/HttpListenCommand.cc
  745. * src/HttpServer.cc
  746. * src/HttpSkipResponseCommand.cc
  747. * src/IteratableChunkChecksumValidator.cc
  748. * src/Logger.h
  749. * src/MSEHandshake.cc
  750. * src/MetalinkPostDownloadHandler.cc
  751. * src/MultiDiskAdaptor.cc
  752. * src/PeerAbstractCommand.cc
  753. * src/PeerConnection.cc
  754. * src/PeerListenCommand.cc
  755. * src/PeerReceiveHandshakeCommand.cc
  756. * src/RequestGroup.cc
  757. * src/RequestGroupMan.cc
  758. * src/SegmentMan.cc
  759. * src/SelectEventPoll.cc
  760. * src/ServerStat.cc
  761. * src/SimpleBtMessage.cc
  762. * src/SocketCore.cc
  763. * src/TrackerWatcherCommand.cc
  764. * src/UTMetadataDataExtensionMessage.cc
  765. * src/UTMetadataRequestFactory.cc
  766. * src/UTMetadataRequestTracker.cc
  767. * src/XmlRpcMethod.cc
  768. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Changed log level from debug to info
  770. * src/BtDependency.cc
  771. * src/BtPostDownloadHandler.cc
  772. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Removed unused PeerSessionResource::_latency.
  774. * src/BtConstants.h
  775. * src/BtPieceMessage.cc
  776. * src/Peer.cc
  777. * src/Peer.h
  778. * src/PeerSessionResource.cc
  779. * src/PeerSessionResource.h
  780. * test/PeerSessionResourceTest.cc
  781. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Fixed the bug that --file-allocation=falloc doesn't work with
  783. single file download.
  784. * src/AbstractSingleDiskAdaptor.cc
  785. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Release 1.8.2
  787. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Added Portuguese translation. Updated Ukrainian and Spanish
  789. translation. Thanks to all translators.
  790. * po/LINGUAS
  791. * po/es.po
  792. * po/pt.po
  793. * po/uk.po
  794. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Remove fragment from redirected URI.
  796. * src/Request.cc
  797. * test/RequestTest.cc
  798. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Updated po templates.
  800. * po/aria2.pot
  801. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Drop legacy ifdef for ares support and code cleanup.
  803. * src/AsyncNameResolver.cc
  804. * src/AsyncNameResolver.h
  805. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Call ares_library_init and ares_library_cleanup if they are
  807. available. Some code cleanups.
  808. * src/Platform.cc
  809. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Call ares_process_fd() each time after epoll to handle timeout.
  811. * src/EpollEventPoll.cc
  812. * src/EpollEventPoll.h
  813. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Suppressed type-cast compiler warning
  815. * src/CookieStorage.cc
  816. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Fixed compile error on Mac OS X.
  818. * src/CookieStorage.h
  819. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Removed cookietest.txt from Makefile.am
  821. * test/Makefile.am
  822. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Updated version number in man page.
  824. * doc/aria2c.1.txt
  825. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Rewritten help message for --allow-overwrite option.
  827. * doc/aria2c.1.txt
  828. * src/usage_text.h
  829. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Added bittorrent key to the response of tellStatus XML-RPC method.
  831. The associated value of the key is a struct and contains data
  832. retrieved from .torrent file, such as name, announce-list,
  833. comment, etc.
  834. * doc/aria2c.1.txt
  835. * src/XmlRpcMethodImpl.cc
  836. * src/XmlRpcMethodImpl.h
  837. * test/XmlRpcMethodTest.cc
  838. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Removed parse(std::istream&) and parse(const std::string&) from
  840. CookieParser.
  841. * src/CookieParser.cc
  842. * src/CookieParser.h
  843. * test/CookieParserTest.cc
  844. * test/cookietest.txt: Removed
  845. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Fixed the bug that cookie for domain a.b.c is not sent to the host
  847. a.b.c if no other cookies are stored. Fixed the bug that
  848. Cookie::markOriginServerOnly() is not called when cookies are
  849. loaded from file/sqlite3 database.
  850. * src/Cookie.h
  851. * src/CookieStorage.cc
  852. * src/NsCookieParser.cc
  853. * src/Sqlite3MozCookieParser.cc
  854. * test/CookieStorageTest.cc
  855. * test/NsCookieParserTest.cc
  856. * test/Sqlite3MozCookieParserTest.cc
  857. * test/cookies.sqlite
  858. * test/nscookietest.txt
  859. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  861. both _pieceStorage and _segmentMan are initialized or they are
  862. not.
  863. * src/RequestGroup.cc
  864. * src/RequestGroup.h
  865. * test/BtDependencyTest.cc
  866. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Bump up version number to 1.8.2
  868. * configure.ac
  869. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Replaced "." with A2STR::DOT_C
  871. * src/AbstractCommand.cc
  872. * src/Cookie.cc
  873. * src/DownloadContext.cc
  874. * src/FtpConnection.cc
  875. * src/RequestGroup.cc
  876. * src/util.cc
  877. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Replaced isNumberAndDotsNotation() with isNumericHost().
  879. isNumericHost() can handle IPv6 address.
  880. * src/Cookie.cc
  881. * src/CookieStorage.cc
  882. * src/util.cc
  883. * src/util.h
  884. * test/CookieTest.cc
  885. * test/UtilTest.cc
  886. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Included A2STR.h
  888. * src/CookieStorage.cc
  889. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Rewritten Cookie storage.
  891. * src/Cookie.cc
  892. * src/Cookie.h
  893. * src/CookieParser.cc
  894. * src/CookieStorage.cc
  895. * src/CookieStorage.h
  896. * src/a2functional.h
  897. * test/CookieParserTest.cc
  898. * test/CookieStorageTest.cc
  899. * test/CookieTest.cc
  900. * test/HttpResponseTest.cc
  901. * test/TestUtil.h
  902. * test/a2functionalTest.cc
  903. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Handle redirected URI which is not properly percent encoded.
  905. * src/Request.cc
  906. * test/RequestTest.cc
  907. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  909. not found' in the N times(N is where --max-file-not-found=N, N>0)
  910. in a row without single '200 OK' response.
  911. * src/RequestGroup.cc.
  912. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  914. readout by 80 characters in mingw32 build. Catch exception in
  915. DHTMessageReceiver::receiveMessage().
  916. * src/AbstractDiskWriter.cc
  917. * src/ConsoleStatCalc.cc
  918. * src/DHTMessageReceiver.cc
  919. * src/File.cc
  920. * src/RequestGroupMan.cc
  921. * src/a2io.h
  922. * test/FileTest.cc
  923. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Fixed compile error with intel compiler
  925. * src/XmlRpcMethodImpl.cc
  926. * src/XmlRpcMethodImpl.h
  927. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Release 1.8.1
  929. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Updated Swedish, Russian and Italian translations. Thanks to all
  931. translators.
  932. * po/it.po
  933. * po/ru.po
  934. * po/sv.po
  935. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Fixed broken OptionParser::findByName().
  937. * src/OptionParser.cc
  938. * test/OptionParserTest.cc
  939. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Fixed test error without BitTorrent support.
  941. * test/XmlRpcMethodTest.cc
  942. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Fixed compile error without GNUTLS/OpenSSL.
  944. * src/util.cc
  945. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Changed compression level to Z_DEFAULT_COMPRESSION.
  947. * src/GZipEncoder.cc
  948. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Added missing command line options: --http-no-cache,
  950. --bt-save-metadata and --bt-metadata-only.
  951. * doc/xmlrpc/aria2rpc
  952. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  954. client accepts gzip content encoding.
  955. * src/A2STR.cc
  956. * src/A2STR.h
  957. * src/GZipEncoder.cc
  958. * src/GZipEncoder.h
  959. * src/HttpHeader.cc
  960. * src/HttpHeader.h
  961. * src/HttpServer.cc
  962. * src/HttpServer.h
  963. * src/HttpServerBodyCommand.cc
  964. * src/HttpServerCommand.cc
  965. * src/Makefile.am
  966. * src/XmlRpcResponse.cc
  967. * src/XmlRpcResponse.h
  968. * test/GZipEncoderTest.cc
  969. * test/Makefile.am
  970. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Added XML-RPC client sample code in Python.
  972. * doc/aria2c.1.txt
  973. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Updated po templates.
  975. * po/aria2.pot
  976. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Bump up version number to 1.8.1
  978. * configure.ac
  979. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Added version number to man page. Updated copyright year in man
  981. page.
  982. * doc/aria2c.1.txt
  983. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Rewritten toTagString
  985. * src/NameMatchOptionHandler.cc
  986. * test/OptionHandlerTest.cc
  987. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Added dir and files key to the response struct of aria2.tellStatus
  989. XML-RPC method. The value associated with files key is the list
  990. of files. Its element is the same struct used in aria2.getFiles
  991. XML-RPC method. Added uris key to the response struct of
  992. aria2.getFiles XML-RPC method. The value associated with uris key
  993. is the list of URIs. Its element is the same struct used in
  994. aria2.getUris XML-RPC method.
  995. * doc/aria2c.1.txt
  996. * src/XmlRpcMethodImpl.cc
  997. * test/XmlRpcMethodTest.cc
  998. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1000. struct containing Session ID, which is generated each time when
  1001. aria2 is invoked.
  1002. * doc/aria2c.1.txt
  1003. * doc/xmlrpc/aria2rpc
  1004. * src/DownloadEngine.cc
  1005. * src/DownloadEngine.h
  1006. * src/XmlRpcMethodFactory.cc
  1007. * src/XmlRpcMethodImpl.cc
  1008. * src/XmlRpcMethodImpl.h
  1009. * test/XmlRpcMethodTest.cc
  1010. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Moved generateRandomKey() from bittorrent_helper to util.
  1012. * src/DHTBucket.cc
  1013. * src/DHTNode.cc
  1014. * src/bittorrent_helper.cc
  1015. * src/bittorrent_helper.h
  1016. * src/util.cc
  1017. * src/util.h
  1018. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Updated doc about GID.
  1020. * doc/aria2c.1.txt
  1021. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1023. accepts a negative integer. 'offset' == -1 points last download
  1024. in the waiting queue and 'offset' == -2 points the download before
  1025. the last download, and so on. The downloads in the response are in
  1026. reversed order.
  1027. * doc/aria2c.1.txt
  1028. * src/XmlRpcMethodImpl.cc
  1029. * src/XmlRpcMethodImpl.h
  1030. * test/XmlRpcMethodTest.cc
  1031. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Added --human-readable option. This option, when true is given,
  1033. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1034. 3.4Mi) in the console readout. The default value is true and it
  1035. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1036. appears when false is given. In this case, sizes and speed are
  1037. printed without in bytes. No Ki, Mi units conversion is used.
  1038. This may be useful for a program to parse the output of aria2.
  1039. * doc/aria2c.1.txt
  1040. * src/ConsoleStatCalc.cc
  1041. * src/ConsoleStatCalc.h
  1042. * src/OptionHandlerFactory.cc
  1043. * src/main.cc
  1044. * src/prefs.cc
  1045. * src/prefs.h
  1046. * src/usage_text.h
  1047. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1048. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1049. option accepts empty string "". When "" is given, it erases
  1050. previously defined proxy.
  1051. * doc/aria2c.1.txt
  1052. * src/OptionHandlerImpl.h
  1053. * src/usage_text.h
  1054. * test/OptionHandlerTest.cc
  1055. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Code cleanup for proxy URI handling.
  1057. * src/AbstractCommand.cc
  1058. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Added --bt-metadata-only option. If true is given to this option,
  1060. aria2 downloads metadata only. The file(s) described in metadata
  1061. will not be downloaded. This option has effect only when
  1062. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1063. * doc/aria2c.1.txt
  1064. * src/OptionHandlerFactory.cc
  1065. * src/UTMetadataPostDownloadHandler.cc
  1066. * src/download_helper.cc
  1067. * src/prefs.cc
  1068. * src/prefs.h
  1069. * src/usage_text.h
  1070. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1072. deleted when exception is thrown. Make sure that when passing
  1073. std::deque<Command*> to function to store Commands, handle
  1074. exception and delete these Commands.
  1075. * src/AbstractCommand.cc
  1076. * src/CheckIntegrityCommand.cc
  1077. * src/FileAllocationCommand.cc
  1078. * src/RequestGroup.cc
  1079. * src/TrackerWatcherCommand.cc
  1080. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1082. * src/A2STR.cc
  1083. * src/A2STR.h
  1084. * src/FtpNegotiationCommand.cc
  1085. * src/HttpResponseCommand.cc
  1086. * src/util.cc
  1087. * src/util.h
  1088. * test/UtilTest.cc
  1089. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Treat --dir="" as --dir="."
  1091. * src/FtpNegotiationCommand.cc
  1092. * src/HttpResponseCommand.cc
  1093. * src/Metalink2RequestGroup.cc
  1094. * src/UTMetadataPostDownloadHandler.cc
  1095. * src/bittorrent_helper.cc
  1096. * src/download_helper.cc
  1097. * src/util.cc
  1098. * src/util.h
  1099. * test/UtilTest.cc
  1100. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Code clean up.
  1102. * src/main.cc
  1103. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Reset GID to 1 when they reach maximum value. Rewritten
  1105. CUIDCounter::newID()
  1106. * src/CUIDCounter.h
  1107. * src/RequestGroup.cc
  1108. * src/RequestGroup.h
  1109. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Documented --http-no-cache option in man page.
  1111. * doc/aria2c.1.txt
  1112. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Added --http-no-cache option. When true is given, aria2 sends
  1114. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1115. cached content. If false is given , these headers are not sent
  1116. and you can add Cache-Control header with a directive you like
  1117. using --header option.
  1118. * src/HttpRequest.cc
  1119. * src/HttpRequest.h
  1120. * src/HttpRequestCommand.cc
  1121. * src/OptionHandlerFactory.cc
  1122. * src/download_helper.cc
  1123. * src/prefs.cc
  1124. * src/prefs.h
  1125. * src/usage_text.h
  1126. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Removed Logger from OptionParser. When OptionParser is used to
  1128. parse options at bootstrap, LogFactory is not configured yet
  1129. properly. When LogFactory is used in OptionParser, it initializes
  1130. itself to return a logger which has no ability to write log to the
  1131. disk.
  1132. * src/OptionParser.cc
  1133. * src/OptionParser.h
  1134. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Added following sentance to the help message of --out option:
  1136. --out option is ignored when -Z is used.
  1137. * doc/aria2c.1.txt
  1138. * src/usage_text.h
  1139. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Added --bt-save-metadata option to -i list options.
  1141. * doc/aria2c.1.txt
  1142. * src/download_helper.cc
  1143. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1145. additional libraries.
  1146. * src/MultiUrlRequestInfo.cc
  1147. * src/NameResolver.cc
  1148. * src/SelectEventPoll.cc
  1149. * src/SelectEventPoll.h
  1150. * src/SocketCore.cc
  1151. * src/SocketCore.h
  1152. * src/a2netcompat.h
  1153. * src/daemon.cc
  1154. * src/main.cc
  1155. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Fixed typo.
  1157. * src/DHTMessageReceiver.cc
  1158. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Fixed the bug that causes segmentation fault if unknown option is
  1160. put in aria2.conf file. BUG#2928303
  1161. * src/OptionParser.cc
  1162. * src/OptionParser.h
  1163. * src/option_processing.cc
  1164. * test/OptionParserTest.cc
  1165. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Ignore port message with port=0.
  1167. * src/BtPortMessage.cc
  1168. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Run autoupdate
  1170. * configure.ac
  1171. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Updated autoconf/automake auxiliary files.
  1173. * INSTALL
  1174. * config.guess
  1175. * config.sub
  1176. * depcomp
  1177. * install-sh
  1178. * m4/intldir.m4
  1179. * missing
  1180. * mkinstalldirs
  1181. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Removed unused function.
  1183. * src/SharedHandle.h
  1184. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Find pooled socket using all cached addresses.
  1186. * src/DNSCache.h
  1187. * src/DownloadEngine.cc
  1188. * src/DownloadEngine.h
  1189. * src/InitiateConnectionCommand.cc
  1190. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Updated copyright year.
  1192. * src/version_usage.cc
  1193. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Pool connection if _contentEncodingDecoder is used and server
  1195. supports persistent connection.
  1196. * src/HttpDownloadCommand.cc
  1197. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Updated doc.
  1199. * src/DownloadCommand.cc
  1200. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Untabify. Fixed one line in copyright which is longer than 80
  1202. columns.
  1203. * src
  1204. * test
  1205. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Release 1.8.0
  1207. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Updated po templates.
  1209. * po/aria2.pot
  1210. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Documented --bt-save-metadata option in man page.
  1212. * doc/aria2c.1.txt
  1213. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Fixed usage of --bt-save-metadata option.
  1215. * src/usage_text.h
  1216. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Updated po templates.
  1218. * po/aria2.pot
  1219. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1221. causes name resolution error when none of network interface has
  1222. IPv4 address.
  1223. * src/main.cc
  1224. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Bump up version number to 1.8.0.
  1226. * configure.ac
  1227. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Use info hash as a filename when saving BitTorrent metadata.
  1229. * src/UTMetadataPostDownloadHandler.cc
  1230. * test/UTMetadataPostDownloadHandlerTest.cc
  1231. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Documented system.multicall XML-RPC method in man page.
  1233. * doc/aria2c.1.txt
  1234. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Added signal handler for SIGHUP to save .aria2 file when terminal
  1236. is closed. The handler is the same one for SIGINT and SIGTERM.
  1237. * src/MultiUrlRequestInfo.cc
  1238. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Defined method name in XmlRpcMethod subclasses.
  1240. * src/XmlRpcMethodFactory.cc
  1241. * src/XmlRpcMethodImpl.cc
  1242. * src/XmlRpcMethodImpl.h
  1243. * test/XmlRpcMethodTest.cc
  1244. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Added system.multicall XML-RPC method.
  1246. * src/XmlRpcMethod.cc
  1247. * src/XmlRpcMethod.h
  1248. * src/XmlRpcMethodFactory.cc
  1249. * src/XmlRpcMethodImpl.cc
  1250. * src/XmlRpcMethodImpl.h
  1251. * test/XmlRpcMethodTest.cc
  1252. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Check structure depth when decoding.
  1254. * src/bencode.cc
  1255. * src/bencode.h
  1256. * test/BencodeTest.cc
  1257. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Documented tellStopped XML-RPC method in man page.
  1259. * doc/aria2c.1.txt
  1260. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Added tellStopped XML-RPC method to aria2rpc.
  1262. * doc/xmlrpc/aria2rpc
  1263. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Added tellStopped XML-RPC method. This method returns stopped
  1265. download in the specified range. It takes same parameters with
  1266. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1267. * src/XmlRpcMethodFactory.cc
  1268. * src/XmlRpcMethodImpl.cc
  1269. * src/XmlRpcMethodImpl.h
  1270. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1272. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1273. when conducting unit tests because they fail if networking
  1274. interface is not configured with IPv4 address.
  1275. * src/NameResolver.cc
  1276. * src/SocketCore.cc
  1277. * src/SocketCore.h
  1278. * src/a2netcompat.h
  1279. * test/AllTest.cc
  1280. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Fixed unit test error
  1282. * test/UTMetadataPostDownloadHandlerTest.cc
  1283. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Defined static string constants for efficiency.
  1285. * src/XmlRpcMethodImpl.cc
  1286. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added --bt-save-metadata option. When true is given, it saves
  1288. metadata as .torrent file. This option has effect only when
  1289. BitTorrent Magnet URI is used. The filename is name in metadata
  1290. with suffix .torrent. The directory to be saved is the same
  1291. directory where download file is saved. If the same file already
  1292. exists, metdata is not saved.
  1293. * src/OptionHandlerFactory.cc
  1294. * src/UTMetadataPostDownloadHandler.cc
  1295. * src/UTMetadataPostDownloadHandler.h
  1296. * src/message.h
  1297. * src/prefs.cc
  1298. * src/prefs.h
  1299. * src/usage_text.h
  1300. * test/UTMetadataDataExtensionMessageTest.cc
  1301. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Added util::saveAs() function. Use it in Signature::save().
  1303. * src/Signature.cc
  1304. * src/util.cc
  1305. * src/util.h
  1306. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Upcase info hash in Magnet URI.
  1308. * doc/aria2c.1.txt
  1309. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Refactored RequestGroupMan::changeReservedGroupPosition()
  1311. * src/RequestGroupMan.cc
  1312. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Updated the description for aria2.addTorrent XML-RPC method.
  1314. * doc/aria2c.1.txt
  1315. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Added changePosition to aria2rpc.
  1317. * doc/xmlrpc/aria2rpc
  1318. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Documented changePosition XML-RPC method in man page.
  1320. * doc/aria2c.1.txt
  1321. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1323. pos and how. This method changes the position of download denoted
  1324. by gid. If how is POS_SET, it moves the download to a position
  1325. relative to the beginning of the queue. If how is POS_CUR, it
  1326. moves the download to a position relative to the current
  1327. position. If how is POS_END, it moves the download to a position
  1328. relative to the end of the queue. If the destination position is
  1329. less than 0 or beyond the end of the queue, it moves the download
  1330. to the beginning or the end of the queue respectively. Returns
  1331. the destination position.
  1332. * src/RequestGroupMan.cc
  1333. * src/RequestGroupMan.h
  1334. * src/XmlRpcMethodFactory.cc
  1335. * src/XmlRpcMethodImpl.cc
  1336. * src/XmlRpcMethodImpl.h
  1337. * test/RequestGroupManTest.cc
  1338. * test/XmlRpcMethodTest.cc
  1339. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Added getOption and getGlobalOption to aria2rpc.
  1341. * doc/xmlrpc/aria2rpc
  1342. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Documented getOption and getGlobalOption XML-RPC method in man
  1344. page
  1345. * doc/aria2c.1.txt
  1346. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Added getOption and getGlobalOption XML-RPC method. getOption
  1348. takes GID as a parameter and returns its options as struct.
  1349. getGlobalOption takes no parameter and returns global
  1350. options. Because global option is used as a template for the
  1351. option of newly added downloads, it includes options returned by
  1352. getOption.
  1353. * src/Option.h
  1354. * src/XmlRpcMethodFactory.cc
  1355. * src/XmlRpcMethodImpl.cc
  1356. * src/XmlRpcMethodImpl.h
  1357. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Sort _optionHandlers in OptionParser by name in ascending order.
  1359. Use vector instead of deque for efficiency.
  1360. * src/OptionHandler.h
  1361. * src/OptionHandlerFactory.h
  1362. * src/OptionParser.cc
  1363. * src/OptionParser.h
  1364. * src/version_usage.cc
  1365. * test/OptionParserTest.cc
  1366. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Code cleanup
  1368. * src/XmlRpcMethod.cc
  1369. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Documented about followedBy and belongsTo in man page.
  1371. * doc/aria2c.1.txt
  1372. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Added following 2 keys, followedBy and belongsTo, to the response
  1374. of tellStatus.
  1375. followedBy: List of GIDs which are generated by the consequence of
  1376. this download. For example, when aria2 downloaded Metalink file,
  1377. it generates downloads described in it(see *--follow-metalink*
  1378. option). This value is useful to track these auto generated
  1379. downloads. If there is no such downloads, this key will not be
  1380. included in the response.
  1381. belongsTo: GID of a parent download. Some downloads are a part of
  1382. another download. For example, if a file in Metalink has
  1383. BitTorrent resource, the download of .torrent is a part of that
  1384. file. If this download has no parent, this key will not be
  1385. included in the response.
  1386. * src/BtPostDownloadHandler.cc
  1387. * src/DownloadResult.h
  1388. * src/Metalink2RequestGroup.cc
  1389. * src/MetalinkPostDownloadHandler.cc
  1390. * src/RequestGroup.cc
  1391. * src/RequestGroup.h
  1392. * src/UTMetadataPostDownloadHandler.cc
  1393. * src/XmlRpcMethodImpl.cc
  1394. * src/XmlRpcMethodImpl.h
  1395. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Assigned BObject in BDE() to avoid segmentation fault when calling
  1397. methods of BDE::none().
  1398. * src/BDE.cc
  1399. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Show info hash in Magnet URI in upper case letters in -S output.
  1401. * src/bittorrent_helper.cc
  1402. * test/BittorrentHelperTest.cc
  1403. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Removed old useless comment
  1405. * src/MultiUrlRequestInfo.cc
  1406. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1408. not properly used in configure script and failed to detect gnutls.
  1409. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1410. and the initialization of pkg-config is done in first occurrence
  1411. of PKG_CHECK_MODULES which is not executed because it is inside of
  1412. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1413. * configure.ac
  1414. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Release 1.7.2
  1416. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1418. true even if all downloads haven't finished, especially when
  1419. PostDownloadHandler is involved. Changed the condition so that it
  1420. only returns true if both _requestGroups and _reservedGroups are
  1421. empty.
  1422. * src/RequestGroupMan.cc
  1423. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Log listening port for BitTorrent/DHT in notice level.
  1425. * src/DHTConnectionImpl.cc
  1426. * src/PeerListenCommand.cc
  1427. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Updated po templates.
  1429. * po/aria2.pot
  1430. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Bump up version number to 1.7.2
  1432. * configure.ac
  1433. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Changed default value of --enable-dht from 'false' to 'true'.
  1435. * doc/aria2c.1.txt
  1436. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Enabled DHT by default because of Magnet URI support. To disable
  1438. DHT, use --enable-dht=false
  1439. * src/OptionHandlerFactory.cc
  1440. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Print Magnet URI in -S output.
  1442. * src/AnnounceList.cc
  1443. * src/bittorrent_helper.cc
  1444. * src/bittorrent_helper.h
  1445. * test/BittorrentHelperTest.cc
  1446. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Added --bt-prioritize-piece option to aria2rpc.
  1448. * doc/xmlrpc/aria2rpc
  1449. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Refer Magnet URI in --help. Made some cosmetic changes.
  1451. * src/version_usage.cc
  1452. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Updated -T and -M option.
  1454. * doc/aria2c.1.txt
  1455. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Fixed typo
  1457. * doc/aria2c.1.txt
  1458. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Fixed the bug that line separator is missing in horizontal bar.
  1460. * doc/xmlrpc/aria2mon
  1461. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Updated usage text for --metalink-file option.
  1463. * src/usage_text.h
  1464. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. If '-' is given as an argument to --metalink-file option, aria2
  1466. reads Metalink file from stdin.
  1467. * src/OptionHandlerFactory.cc
  1468. * src/OptionHandlerImpl.h
  1469. * src/a2io.h
  1470. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Fixed the bug that aria2 listens wrong port if --interface option
  1472. is used.
  1473. * src/SocketCore.cc
  1474. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Fixed the bug that query parameter in magnet URI is not decoded.
  1476. * src/magnet.cc
  1477. * test/MagnetTest.cc
  1478. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Specified defaultSize as an argument for easy testing.
  1480. * src/util.cc
  1481. * src/util.h
  1482. * test/UtilTest.cc
  1483. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Release 1.7.1
  1485. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Bump up version number to 1.7.1
  1487. * configure.ac
  1488. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Fixed the bug --bt-prioritize-piece=tail is not working.
  1490. * src/util.cc
  1491. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Release 1.7.0
  1493. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Updated po templates.
  1495. * po/aria2.pot
  1496. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Updated help message for --bt-prioritize-piece. Some cosmetic
  1498. changes.
  1499. * doc/aria2c.1.txt
  1500. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1502. * src/usage_text.h
  1503. * src/util.cc
  1504. * test/UtilTest.cc
  1505. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Updated Russian, Ukrainian, German and French translations.
  1507. Thanks to all translators involved.
  1508. * po/de.po
  1509. * po/fr.po
  1510. * po/ru.po
  1511. * po/uk.po
  1512. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Mentioned about pkg-config
  1514. * README
  1515. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Fixed typo. Referred --index-out option in BitTorrent notes.
  1517. * README
  1518. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1520. bind, try all addresses until success
  1521. * src/SocketCore.cc
  1522. * src/SocketCore.h
  1523. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Updated po templates.
  1525. * po/aria2.pot
  1526. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Bump up version number to 1.7.0
  1528. * configure.ac
  1529. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1531. * src/DefaultPieceStorage.cc
  1532. * src/DefaultPieceStorage.h
  1533. * src/PieceStorage.h
  1534. * src/UnknownLengthPieceStorage.cc
  1535. * src/UnknownLengthPieceStorage.h
  1536. * test/MockPieceStorage.h
  1537. * test/ProtocolDetectorTest.cc
  1538. * test/XmlRpcMethodTest.cc
  1539. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Documented in man page that if getifaddrs() is missing,
  1541. --interface option doesn't accept interface name.
  1542. * doc/aria2c.1.txt
  1543. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1545. * src/DefaultBtAnnounce.cc
  1546. * src/DefaultBtAnnounce.h
  1547. * test/DefaultBtAnnounceTest.cc
  1548. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Fixed the bug that connection is always dropped if handshake
  1550. message in extension protocol don't have metadata_size.
  1551. src/HandshakeExtensionMessage.cc
  1552. * src/HandshakeExtensionMessage.cc
  1553. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1555. text saying DHT is recommended when Magnet URI is provided.
  1556. * doc/aria2c.1.txt
  1557. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1559. URI is supplied. Notify user that they should consider enabling
  1560. DHT if they use Magnet URI.
  1561. * src/RequestGroup.cc
  1562. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Added --disable-ipv6 option to disable IPv6.
  1564. * doc/aria2c.1.txt
  1565. * src/InitiateConnectionCommand.cc
  1566. * src/NameResolver.cc
  1567. * src/NameResolver.h
  1568. * src/OptionHandlerFactory.cc
  1569. * src/main.cc
  1570. * src/prefs.cc
  1571. * src/prefs.h
  1572. * src/usage_text.h
  1573. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Updated usage text for --bt-prioritize-piece option.
  1575. * doc/aria2c.1.txt
  1576. * src/usage_text.h
  1577. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1579. given and PACKAGE is missing in the system or FEATURE cannot be
  1580. enabled, print error message and stop the script.
  1581. * configure.ac
  1582. * m4/aria2_arg.m4
  1583. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Halt metadata download immediately when metadata download is done.
  1585. Don't wait unresponsive tracker.
  1586. * src/ByteArrayDiskWriter.h
  1587. * src/DefaultBtInteractive.cc
  1588. * src/DefaultExtensionMessageFactory.cc
  1589. * src/DefaultExtensionMessageFactory.h
  1590. * src/PeerInteractionCommand.cc
  1591. * src/UTMetadataDataExtensionMessage.cc
  1592. * src/UTMetadataDataExtensionMessage.h
  1593. * src/UTMetadataRequestExtensionMessage.cc
  1594. * test/UTMetadataDataExtensionMessageTest.cc
  1595. * test/UTMetadataRequestExtensionMessageTest.cc
  1596. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Documented --interface option in man page.
  1598. * doc/aria2c.1.txt
  1599. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Try resolved address in the order received from the resolver.
  1601. * src/DNSCache.h
  1602. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Added debug logs.
  1604. * src/SocketCore.cc
  1605. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Fixed type of tail to uint64_t
  1607. * src/util.cc
  1608. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Added --interface option. This feature binds sockets to given
  1610. interface. You can specify interface name, IP address and
  1611. hostname.
  1612. * configure.ac
  1613. * src/OptionHandlerFactory.cc
  1614. * src/SocketCore.cc
  1615. * src/SocketCore.h
  1616. * src/main.cc
  1617. * src/message.h
  1618. * src/prefs.cc
  1619. * src/prefs.h
  1620. * src/usage_text.h
  1621. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Updated man page for bt-prioritize-piece option in -i list.
  1623. * doc/aria2c.1.txt
  1624. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Added bt-prioritize-piece option to -i list.
  1626. * src/download_helper.cc
  1627. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Removed --http-auth-scheme option from man page.
  1629. * doc/aria2c.1.txt
  1630. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Removed --http-auth-scheme option since it doesn't do nothing.
  1632. * src/OptionHandlerFactory.cc
  1633. * src/prefs.cc
  1634. * src/prefs.h
  1635. * src/usage_text.h
  1636. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Adjusted the number of peer info which get_peers reply message can
  1638. carry.
  1639. * src/DHTGetPeersReplyMessage.cc
  1640. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Added extension_message_test_helper.h to aria2c_SOURCES.
  1642. * test/Makefile.am
  1643. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Documented --bt-prioritize-piece option in man page.
  1645. * doc/aria2c.1.txt
  1646. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Added option --bt-prioritize-piece. This option instruct aria2 to
  1648. try to download first and last pieces of each file first. The
  1649. argument can contain 2 keywords:head and tail. To include both
  1650. keywords, they must be separated by comma. These keywords can take
  1651. one parameter, SIZE. For example , if head=SIZE is specified,
  1652. pieces in the range of first SIZE bytes of each file get higher
  1653. priority. tail=SIZE means the range of last SIZE bytes of each
  1654. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1655. * src/DefaultPieceStorage.h
  1656. * src/Makefile.am
  1657. * src/OptionHandlerFactory.cc
  1658. * src/OptionHandlerImpl.h
  1659. * src/PriorityPieceSelector.cc
  1660. * src/PriorityPieceSelector.h
  1661. * src/RequestGroup.cc
  1662. * src/prefs.cc
  1663. * src/prefs.h
  1664. * src/usage_text.h
  1665. * src/util.cc
  1666. * src/util.h
  1667. * test/Makefile.am
  1668. * test/MockPieceSelector.h
  1669. * test/PriorityPieceSelectorTest.cc
  1670. * test/UtilTest.cc
  1671. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Fixed typo
  1673. * src/HttpRequest.h
  1674. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. In Magnet URI with tr parameter, put each announce URI in separate
  1676. tier.
  1677. * src/bittorrent_helper.cc
  1678. * test/BittorrentHelperTest.cc
  1679. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Renamed ExtensionMessage::getBencodedData() as
  1681. ExtensionMessage::getPayload()
  1682. * src/BtExtendedMessage.cc
  1683. * src/ExtensionMessage.h
  1684. * src/HandshakeExtensionMessage.cc
  1685. * src/HandshakeExtensionMessage.h
  1686. * src/UTMetadataDataExtensionMessage.cc
  1687. * src/UTMetadataDataExtensionMessage.h
  1688. * src/UTMetadataRejectExtensionMessage.cc
  1689. * src/UTMetadataRejectExtensionMessage.h
  1690. * src/UTMetadataRequestExtensionMessage.cc
  1691. * src/UTMetadataRequestExtensionMessage.h
  1692. * src/UTPexExtensionMessage.cc
  1693. * src/UTPexExtensionMessage.h
  1694. * test/HandshakeExtensionMessageTest.cc
  1695. * test/MockExtensionMessage.h
  1696. * test/UTMetadataDataExtensionMessageTest.cc
  1697. * test/UTMetadataRejectExtensionMessageTest.cc
  1698. * test/UTMetadataRequestExtensionMessageTest.cc
  1699. * test/UTPexExtensionMessageTest.cc
  1700. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Updated man page for BitTorrent Magnet URI.
  1702. * doc/aria2c.1.txt
  1703. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Call DownloadContext::setOwnerRequestGroup() in
  1705. RequestGroup::setDownloadContext().
  1706. * src/BtDependency.cc
  1707. * src/RequestGroup.cc
  1708. * src/RequestGroup.h
  1709. * src/download_helper.cc
  1710. * test/DefaultBtMessageDispatcherTest.cc
  1711. * test/DefaultExtensionMessageFactoryTest.cc
  1712. * test/HandshakeExtensionMessageTest.cc
  1713. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1715. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1716. from metadata, use new metadata2Torrent() function.
  1717. * src/BtDependency.cc
  1718. * src/UTMetadataPostDownloadHandler.cc
  1719. * src/bittorrent_helper.cc
  1720. * src/bittorrent_helper.h
  1721. * test/BittorrentHelperTest.cc
  1722. * test/BtDependencyTest.cc
  1723. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Use createRequestGroupForUri to create the download for torrent
  1725. file.
  1726. * src/Metalink2RequestGroup.cc
  1727. * test/Metalink2RequestGroupTest.cc
  1728. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Fixed typo
  1730. * src/DownloadContext.h
  1731. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Use createRequestGroupForBitTorrent()
  1733. * src/BtPostDownloadHandler.cc
  1734. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Added remove().
  1736. * src/Option.cc
  1737. * src/Option.h
  1738. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Removed options which is only valid for URIs specified in
  1740. command-line. If they are left, because op is used as a template
  1741. for new RequestGroup(such as created in XML-RPC command,
  1742. BtPostDownloadHandler etc), they causes unintentional effect.
  1743. * src/main.cc
  1744. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Refer to option value of PREF_OUT only in download_helper.
  1746. * src/FtpNegotiationCommand.cc
  1747. * src/HttpResponseCommand.cc
  1748. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1749. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1750. * src/download_helper.cc
  1751. * src/download_helper.h
  1752. * src/XmlRpcMethodImpl.cc
  1753. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Updated man page for changeOption XML-RPC method.
  1755. * doc/aria2c.1.txt
  1756. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Added --bt-max-peers option to changeOption XML-RPC method.
  1758. * src/XmlRpcMethod.cc
  1759. * src/XmlRpcMethodImpl.cc
  1760. * test/XmlRpcMethodTest.cc
  1761. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1763. * test/XmlRpcMethodTest.cc
  1764. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Removed redundant DownloadContext::hasAttribute(...) calls.
  1766. * src/ConsoleStatCalc.cc
  1767. * src/RequestGroup.cc
  1768. * src/XmlRpcMethodImpl.cc
  1769. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Changed the number of tracker request attempt from 5 to 2.
  1771. * src/TrackerWatcherCommand.cc
  1772. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Use host and protocol in original URI, because URI selector
  1774. selects URI based on original URI, not redirected one.
  1775. * src/Request.cc
  1776. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Fixed the bug which causes segmentation fault with tellWaiting
  1778. XML-RPC method when BitTorrent download is waiting. The key of
  1779. BtRegistry is changed from info hash to GID, because it is
  1780. registered per RequestGroup, not info hash.
  1781. * src/BtRegistry.cc
  1782. * src/BtRegistry.h
  1783. * src/BtSetup.cc
  1784. * src/ConsoleStatCalc.cc
  1785. * src/InitiatorMSEHandshakeCommand.cc
  1786. * src/PeerInitiateConnectionCommand.cc
  1787. * src/PeerInteractionCommand.cc
  1788. * src/PeerInteractionCommand.h
  1789. * src/PeerReceiveHandshakeCommand.cc
  1790. * src/RequestGroup.cc
  1791. * src/XmlRpcMethodImpl.cc
  1792. * test/BtRegistryTest.cc
  1793. * test/XmlRpcMethodTest.cc
  1794. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Updated man page for changeOption XML-RPC method.
  1796. * doc/aria2c.1.txt
  1797. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1799. method.
  1800. * src/XmlRpcMethod.cc
  1801. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Documented about BitTorrent Magnet URI in man page.
  1803. * doc/aria2c.1.txt
  1804. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1806. inherited to generated RequestGroup.
  1807. * src/UTMetadataPostDownloadHandler.cc
  1808. * test/UTMetadataPostDownloadHandlerTest.cc
  1809. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Prepended "[METADATA]" before dn.
  1811. * src/bittorrent_helper.cc
  1812. * test/BittorrentHelperTest.cc
  1813. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Rewritten Magnet URI parser.
  1815. * src/Makefile.am
  1816. * src/ProtocolDetector.cc
  1817. * src/bittorrent_helper.cc
  1818. * src/bittorrent_helper.h
  1819. * src/download_helper.cc
  1820. * src/magnet.cc
  1821. * src/magnet.h
  1822. * test/BittorrentHelperTest.cc
  1823. * test/MagnetTest.cc
  1824. * test/Makefile.am
  1825. * test/ProtocolDetectorTest.cc
  1826. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Use hton64
  1828. * src/base32.cc
  1829. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Added Base32 encoded BitTorrent Magnet Link support.
  1831. * src/Makefile.am
  1832. * src/base32.cc
  1833. * src/base32.h
  1834. * src/bittorrent_helper.cc
  1835. * test/Base32Test.cc
  1836. * test/BittorrentHelperTest.cc
  1837. * test/Makefile.am
  1838. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1840. supported yet. Fixed typo in method name in RequestGroup. In
  1841. metadataGetMode, don't show "Your share ratio was ..." message.
  1842. * src/DefaultBtInteractive.cc
  1843. * src/DefaultBtInteractive.h
  1844. * src/DownloadHandlerFactory.cc
  1845. * src/DownloadHandlerFactory.h
  1846. * src/HandshakeExtensionMessage.cc
  1847. * src/Makefile.am
  1848. * src/Metalink2RequestGroup.cc
  1849. * src/PeerInteractionCommand.cc
  1850. * src/RequestGroup.cc
  1851. * src/RequestGroup.h
  1852. * src/UTMetadataPostDownloadHandler.cc
  1853. * src/UTMetadataPostDownloadHandler.h
  1854. * src/download_helper.cc
  1855. * test/HandshakeExtensionMessageTest.cc
  1856. * test/Makefile.am
  1857. * test/UTMetadataPostDownloadHandlerTest.cc
  1858. * test/UTMetadataRejectExtensionMessageTest.cc
  1859. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. In metadataGetMode, don't show SEEDING.
  1861. * src/ConsoleStatCalc.cc
  1862. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Fixed ut_metadata data handling. Implemented
  1864. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1865. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1866. metadata_size is received.
  1867. * src/DefaultExtensionMessageFactory.cc
  1868. * src/DefaultExtensionMessageFactory.h
  1869. * src/HandshakeExtensionMessage.cc
  1870. * src/HandshakeExtensionMessage.h
  1871. * src/UTMetadataDataExtensionMessage.cc
  1872. * src/UTMetadataDataExtensionMessage.h
  1873. * src/UTMetadataRequestExtensionMessage.cc
  1874. * src/UTMetadataRequestFactory.cc
  1875. * src/UTMetadataRequestFactory.h
  1876. * src/UTMetadataRequestTracker.cc
  1877. * src/UTMetadataRequestTracker.h
  1878. * test/DefaultExtensionMessageFactoryTest.cc
  1879. * test/HandshakeExtensionMessageTest.cc
  1880. * test/MockBtMessage.h
  1881. * test/UTMetadataDataExtensionMessageTest.cc
  1882. * test/UTMetadataRequestExtensionMessageTest.cc
  1883. * test/UTMetadataRequestFactoryTest.cc
  1884. * test/UTMetadataRequestTrackerTest.cc
  1885. * test/extension_message_test_helper.h
  1886. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Drop connection if ut_metadata reject message is received.
  1888. * src/UTMetadataRejectExtensionMessage.cc
  1889. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1891. get high enough in that mode.
  1892. * src/ActivePeerConnectionCommand.cc
  1893. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Added BitTorrent magnet link support to ProtocolDetector.
  1895. * src/ProtocolDetector.cc
  1896. * src/ProtocolDetector.h
  1897. * test/ProtocolDetectorTest.cc
  1898. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Don't inject validator into BtMessage in metadataGetMode because
  1900. most of the checks depends on the total length of download but it
  1901. is unknown. Delegate metadataGetMode to BtMessage.
  1902. * src/DefaultBtMessageFactory.cc
  1903. * src/DefaultBtMessageFactory.h
  1904. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1906. * src/DefaultPieceStorage.h
  1907. * src/PieceStorage.h
  1908. * src/UnknownLengthPieceStorage.h
  1909. * test/MockPieceStorage.h
  1910. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Added markTotalLengthIsKnown().
  1912. * src/DownloadContext.h
  1913. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1915. missing. If metadata is missing, always use DHT when it is ready.
  1916. * src/BtSetup.cc
  1917. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Added parseMagnetLink(). Hex encoded info hash is supported.
  1919. Base32 encoded info hash is not supported yet.
  1920. * src/bittorrent_helper.cc
  1921. * src/bittorrent_helper.h
  1922. * test/BittorrentHelperTest.cc
  1923. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Added FromHex()
  1925. * src/util.cc
  1926. * src/util.h
  1927. * test/UtilTest.cc
  1928. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Added _metadataGetMode member variable. It toggles the action when
  1930. messages are received: usually they almost do nothing if
  1931. _metadataGetMode is true.
  1932. * src/AbstractBtMessage.cc
  1933. * src/AbstractBtMessage.h
  1934. * src/BtAllowedFastMessage.cc
  1935. * src/BtBitfieldMessage.cc
  1936. * src/BtCancelMessage.cc
  1937. * src/BtChokeMessage.cc
  1938. * src/BtHaveAllMessage.cc
  1939. * src/BtHaveMessage.cc
  1940. * src/BtInterestedMessage.cc
  1941. * src/BtNotInterestedMessage.cc
  1942. * src/BtPieceMessage.cc
  1943. * src/BtRejectMessage.cc
  1944. * src/BtRequestMessage.cc
  1945. * src/BtUnchokeMessage.cc
  1946. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Added bencode::decode overload functions. They have extra argument
  1948. 'end', passed by reference. 'end' points to the beyond the last
  1949. position of data used in decoding process.
  1950. * src/bencode.cc
  1951. * src/bencode.h
  1952. * test/BencodeTest.cc
  1953. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Initial support of Extension for Peers to Send Metadata
  1955. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1956. metadata from swarm.
  1957. * src/BtConstants.h
  1958. * src/DefaultBtInteractive.cc
  1959. * src/DefaultExtensionMessageFactory.cc
  1960. * src/DefaultExtensionMessageFactory.h
  1961. * src/ExtensionMessage.h
  1962. * src/ExtensionMessageRegistry.h
  1963. * src/HandshakeExtensionMessage.cc
  1964. * src/HandshakeExtensionMessage.h
  1965. * src/Makefile.am
  1966. * src/PeerConnection.h
  1967. * src/PeerInteractionCommand.cc
  1968. * src/UTMetadataDataExtensionMessage.cc
  1969. * src/UTMetadataDataExtensionMessage.h
  1970. * src/UTMetadataExtensionMessage.cc
  1971. * src/UTMetadataExtensionMessage.h
  1972. * src/UTMetadataRejectExtensionMessage.cc
  1973. * src/UTMetadataRejectExtensionMessage.h
  1974. * src/UTMetadataRequestExtensionMessage.cc
  1975. * src/UTMetadataRequestExtensionMessage.h
  1976. * src/bittorrent_helper.cc
  1977. * src/bittorrent_helper.h
  1978. * test/BittorrentHelperTest.cc
  1979. * test/DefaultExtensionMessageFactoryTest.cc
  1980. * test/HandshakeExtensionMessageTest.cc
  1981. * test/Makefile.am
  1982. * test/UTMetadataDataExtensionMessageTest.cc
  1983. * test/UTMetadataRejectExtensionMessageTest.cc
  1984. * test/UTMetadataRequestExtensionMessageTest.cc
  1985. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Cancel segment in prepareForRetry() because there is a chance that
  1987. the command has segments.
  1988. * src/CreateRequestCommand.cc
  1989. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Fixed the bug that slow server is not knocked down in favor of
  1991. faster one.
  1992. * src/AbstractCommand.cc
  1993. * src/DefaultPieceStorage.cc
  1994. * src/DefaultPieceStorage.h
  1995. * src/PieceStorage.h
  1996. * src/UnknownLengthPieceStorage.cc
  1997. * src/UnknownLengthPieceStorage.h
  1998. * test/MockPieceStorage.h
  1999. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Fixed the bug that Request object is not added to
  2001. _inFlightRequests in findFasterRequest().
  2002. * src/FileEntry.cc
  2003. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Changed the strategry of how to increase the number of outstanding
  2005. requests. Now the number is doubled if there are no outstanding
  2006. requests after receiving messages.
  2007. * src/BtConstants.h
  2008. * src/DefaultBtInteractive.cc
  2009. * src/DefaultBtInteractive.h
  2010. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Check socket for reading if there are outstanding requests.
  2012. * src/PeerInteractionCommand.cc
  2013. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Moved frequently called methods to header file so they get
  2015. inlined.
  2016. * src/RequestSlot.cc
  2017. * src/RequestSlot.h
  2018. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Copied in_addr instead of just casting from char* which might
  2020. violate strict aliasing rules.
  2021. * src/AsyncNameResolver.cc
  2022. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Use dynamic_pointer_cast
  2024. * test/BtPieceMessageTest.cc
  2025. * test/BtRequestMessageTest.cc
  2026. * test/DefaultBtRequestFactoryTest.cc
  2027. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Added testSetUrl20()
  2029. * test/RequestTest.cc
  2030. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2031. Code cleanup
  2032. * src/bittorrent_helper.cc
  2033. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Use C++ style cast
  2035. * src/AsyncNameResolver.cc
  2036. * src/Base64.h
  2037. * src/BtBitfieldMessage.cc
  2038. * src/BtHandshakeMessage.cc
  2039. * src/DefaultBtMessageFactory.cc
  2040. * src/DefaultBtProgressInfoFile.cc
  2041. * src/EpollEventPoll.cc
  2042. * src/ExpatMetalinkProcessor.cc
  2043. * src/IteratableChecksumValidator.cc
  2044. * src/IteratableChunkChecksumValidator.cc
  2045. * src/MessageDigestHelper.cc
  2046. * src/Platform.cc
  2047. * src/RequestGroupMan.cc
  2048. * src/SingleFileAllocationIterator.cc
  2049. * src/Sqlite3MozCookieParser.cc
  2050. * src/XML2SAXMetalinkProcessor.cc
  2051. * src/Xml2XmlRpcRequestProcessor.cc
  2052. * src/util.cc
  2053. * src/util.h
  2054. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Fixed integer potential alignment problem.
  2056. * src/bitfield.h
  2057. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2059. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2060. include file ordering.
  2061. * src/PeerListProcessor.h
  2062. * src/bittorrent_helper.cc
  2063. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2065. * src/Request.cc
  2066. * src/util.cc
  2067. * src/util.h
  2068. * test/RequestTest.cc
  2069. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Rewritten util::uitos()
  2071. * src/util.h
  2072. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Code cleanup
  2074. * src/Request.cc
  2075. * src/Request.h
  2076. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Rewritten Request::parseUrl()
  2078. * src/Request.cc
  2079. * test/RequestTest.cc
  2080. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Removed unused macro SAFE_CHARS
  2082. * src/Request.cc
  2083. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Updated doc
  2085. * src/DHTRoutingTableDeserializer.cc
  2086. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Release 1.6.3
  2088. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Removed unused function.
  2090. * test/DHTPeerAnnounceStorageTest.cc
  2091. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Only decrement cols if cols > 0
  2093. * src/ConsoleStatCalc.cc
  2094. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2096. translations. Thanks to all translators.
  2097. * po/ca.po
  2098. * po/fr.po
  2099. * po/it.po
  2100. * po/ja.po
  2101. * po/pl.po
  2102. * po/ru.po
  2103. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Updated translation template
  2105. * po
  2106. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Fixed compile error without ssl library.
  2108. * src/util.cc
  2109. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Logged received nodes in get_peers reply message.
  2111. * src/DHTAbstractNodeLookupTask.cc
  2112. * src/DHTAbstractNodeLookupTask.h
  2113. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2115. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2116. * src/DHTMessageDispatcherImpl.cc
  2117. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Don't reuse URI if Request pool is not empty.
  2119. * src/CreateRequestCommand.cc
  2120. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2122. receive get_peers request for torrent which the client is now
  2123. downloading.
  2124. * src/BtSetup.cc
  2125. * src/DHTPeerAnnounceEntry.cc
  2126. * src/DHTPeerAnnounceEntry.h
  2127. * src/DHTPeerAnnounceStorage.cc
  2128. * src/DHTPeerAnnounceStorage.h
  2129. * src/RequestGroup.cc
  2130. * test/DHTPeerAnnounceEntryTest.cc
  2131. * test/DHTPeerAnnounceStorageTest.cc
  2132. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Fixed the bug that in Windows environment new blank line is
  2134. inserted when console readout is updated.
  2135. * src/ConsoleStatCalc.cc
  2136. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Throw exception if binding listening port is failed. Removed
  2138. RequestGroupMan::getInitialCommand(). Use
  2139. fillRequestGroupFromReserver() instead. Delete commands for
  2140. RequestGroup which has errors when it is being added.
  2141. * src/BtSetup.cc
  2142. * src/DownloadEngine.cc
  2143. * src/DownloadEngine.h
  2144. * src/DownloadEngineFactory.cc
  2145. * src/MultiUrlRequestInfo.cc
  2146. * src/RequestGroupMan.cc
  2147. * src/RequestGroupMan.h
  2148. * test/RequestGroupManTest.cc
  2149. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Fixed the bug that when downloading more than one torrent,
  2151. listening port is not reported properly to tracker for 2nd or
  2152. later torrents.
  2153. * src/BtSetup.cc
  2154. * src/PeerListenCommand.cc
  2155. * src/PeerListenCommand.h
  2156. * src/RequestGroup.cc
  2157. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Bump up version number to 1.6.3
  2159. * configure.ac
  2160. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Removed Util.cc from POTFILES.in
  2162. * po/POTFILES.in
  2163. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Updated man page for previous change.
  2165. * doc/aria2c.1.txt
  2166. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. If user name is embedded but password is missing in URI, first
  2168. resolve password using .netrc. If password is found in .netrc,
  2169. then use it as password. If not, use the password specified in
  2170. --ftp-passwd.
  2171. * src/AuthConfigFactory.cc
  2172. * src/Request.cc
  2173. * src/Request.h
  2174. * test/AuthConfigFactoryTest.cc
  2175. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Fixed typo
  2177. * doc/aria2c.1.txt
  2178. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Fixed typo
  2180. * src/usage_text.h
  2181. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Added missing bitfield.cc
  2183. * src/bitfield.cc
  2184. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Renamed Util.{cc,h} as util.{cc,h}
  2186. * src/Util.cc
  2187. * src/Util.h
  2188. * src/util.cc
  2189. * src/util.h
  2190. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Moved static functions in Util class to namespace util.
  2192. * src
  2193. * test
  2194. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2196. Moved generateRandomKey to bittorrent_helper.cc.
  2197. * src/DHTBucket.cc
  2198. * src/DHTGetPeersMessage.cc
  2199. * src/DHTGetPeersReplyMessage.cc
  2200. * src/DHTMessage.cc
  2201. * src/DHTNode.cc
  2202. * src/DHTTokenTracker.cc
  2203. * src/DHTUtil.cc: Removed.
  2204. * src/DHTUtil.h: Removed.
  2205. * src/Makefile.am
  2206. * src/Util.cc
  2207. * src/Util.h
  2208. * src/bitfield.h
  2209. * src/bittorrent_helper.cc
  2210. * src/bittorrent_helper.h
  2211. * test/ARC4Test.cc
  2212. * test/BNodeTest.cc
  2213. * test/DHTAnnouncePeerMessageTest.cc
  2214. * test/DHTAnnouncePeerReplyMessageTest.cc
  2215. * test/DHTFindNodeMessageTest.cc
  2216. * test/DHTFindNodeReplyMessageTest.cc
  2217. * test/DHTGetPeersMessageTest.cc
  2218. * test/DHTGetPeersReplyMessageTest.cc
  2219. * test/DHTPingMessageTest.cc
  2220. * test/DHTPingReplyMessageTest.cc
  2221. * test/DHTTokenTrackerTest.cc
  2222. * test/DHTUtilTest.cc: Removed.
  2223. * test/Makefile.am
  2224. * test/UtilTest.cc
  2225. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Removed the call to trim() because trim() is called for each
  2227. element in split().
  2228. * src/CookieParser.cc
  2229. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Replaced Util::slice() with split()
  2231. * src/AbstractCommand.cc
  2232. * src/CookieParser.cc
  2233. * src/File.cc
  2234. * src/HttpHeaderProcessor.cc
  2235. * src/HttpRequest.cc
  2236. * src/Metalink2RequestGroup.cc
  2237. * src/MetalinkParserController.cc
  2238. * src/Netrc.cc
  2239. * src/NsCookieParser.cc
  2240. * src/ParameterizedStringParser.cc
  2241. * src/ServerStatMan.cc
  2242. * src/UriListParser.cc
  2243. * src/Util.cc
  2244. * src/Util.h
  2245. * src/bittorrent_helper.cc
  2246. * test/UtilTest.cc
  2247. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Use request->getDir() instead of "/" for embedded user/pass in
  2249. URI.
  2250. * src/AuthConfigFactory.cc
  2251. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Fixed wrong insertion point for BasicCred.
  2253. * src/AuthConfigFactory.cc
  2254. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Allowed non-regular file in LocalFilePathOptionHandler
  2256. * src/OptionHandlerImpl.h
  2257. * src/message.h
  2258. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2260. * src/Netrc.cc
  2261. * src/Util.h
  2262. * test/NetrcTest.cc
  2263. * test/sample.netrc
  2264. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Fixed typo
  2266. * src/BtDependency.cc
  2267. * src/BtRejectMessage.cc
  2268. * src/FtpConnection.cc
  2269. * src/HttpHeaderProcessor.h
  2270. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Fixed lintian report in man page
  2272. * doc/aria2c.1.txt
  2273. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Release 1.6.2
  2275. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Updated Ukrainian translation. Thanks to all translators.
  2277. * po/uk.po
  2278. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Updated translation template
  2280. * po
  2281. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Bump up version number to 1.6.2
  2283. * configure.ac
  2284. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Updated licence message in -v output.
  2286. * src/version_usage.cc
  2287. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Replaced aria2 with aria2c in help message.
  2289. * src/version_usage.cc
  2290. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2292. * src/version_usage.cc
  2293. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Quoted localedir
  2295. * src/Makefile.am
  2296. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2298. utime. Check header for utime.h.
  2299. * configure.ac
  2300. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2302. * configure.ac
  2303. * src/daemon.cc
  2304. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Don't set localedir manually. Leave it to autoconf.
  2306. * configure.ac
  2307. * src/Makefile.am
  2308. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Added --install to ACLOCAL_AMFLAGS.
  2310. Removed m4 from SUBDIRS.
  2311. Updated automake 1.11 and autoconf 2.64.
  2312. Replaced some obsolute macros with new one.
  2313. * Makefile.am
  2314. * configure.ac
  2315. * m4/aria2_arg.m4
  2316. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Removed Makefile.am in m4 directory.
  2318. * configure.ac
  2319. * m4/ChangeLog
  2320. * m4/Makefile.am
  2321. * m4/Makefile.in
  2322. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Removed unused m4 macros.
  2324. * m4/intldir.m4
  2325. * m4/inttypes.m4
  2326. * m4/isc-posix.m4
  2327. * m4/libgnutls-extra.m4
  2328. * m4/ulonglong.m4
  2329. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Fixed the bug that causes segmentation fault if
  2331. req->getCurrentUrl() contains printf formatting characters such as
  2332. %d. The statement that causes this bug is useless and removed.
  2333. * src/AbstractCommand.cc
  2334. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. * Release 1.6.1
  2336. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Updated Simplified Chinese translation. Thanks to translators.
  2338. * po/zh_CN.po
  2339. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Updated translation template
  2341. * po
  2342. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Bump up version number to 1.6.1
  2344. * configure.ac
  2345. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Changed interval from 120 to 60 for dropping inactive peer.
  2347. * src/DefaultBtInteractive.cc
  2348. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Updated man page for --user-agent and --peer-id-prefix option.
  2350. * doc/aria2c.1.txt
  2351. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Code clean up
  2353. * src/BtPostDownloadHandler.cc
  2354. * src/ContentTypeRequestGroupCriteria.cc
  2355. * src/ContentTypeRequestGroupCriteria.h
  2356. * src/DownloadHandlerConstants.cc
  2357. * src/DownloadHandlerConstants.h
  2358. * src/DownloadHandlerFactory.cc
  2359. * src/MetalinkPostDownloadHandler.cc
  2360. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Don't save control file when aria2 exists while checking piece
  2362. hash(behavior of -V option). If control file doesn't exist when
  2363. aria2 launched, the completed length in saved control file will be
  2364. 0 byte and this confuses user. disableSaveControlFile() is called
  2365. in RequestGroup::processCheckIntegrityEntry().
  2366. enableSaveControlFile() will be called after hash checking is
  2367. done. See CheckIntegrityCommand.
  2368. * src/CheckIntegrityCommand.cc
  2369. * src/RequestGroup.cc
  2370. * src/RequestGroup.h
  2371. * src/RequestGroupMan.cc
  2372. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Included version number in Peer ID and client version. Peer ID
  2374. now starts with "aria2/VERSION-", where VERSION is
  2375. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2376. * src/DefaultBtInteractive.cc
  2377. * src/OptionHandlerFactory.cc
  2378. * src/bittorrent_helper.cc
  2379. * src/bittorrent_helper.h
  2380. * src/main.cc
  2381. * src/usage_text.h
  2382. * test/BittorrentHelperTest.cc
  2383. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Fixed memory leak.
  2385. * src/DownloadCommand.cc
  2386. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Removed server, port, user and passwd key from options before
  2388. XMLRPC::Client.call since they are not options of aria2.
  2389. * doc/xmlrpc/aria2mon
  2390. * doc/xmlrpc/aria2rpc
  2391. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Included version number in user-agent string.
  2393. * src/OptionHandlerFactory.cc
  2394. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Fixed the bug that the option values changed by XML-RPC
  2396. method(changeOption and changeGlobalOption) are overwritten to the
  2397. previous value by the next these request which doesn't contain
  2398. that option value. Supporse max-download-limit is initially 0. You
  2399. changed this value to 100K by changeOption. Then you issue
  2400. changeOption request to change max-upload-limit to 50K. This
  2401. second request doesn't contain xml-download-limit, so it is back
  2402. to initial value, 0. Another improvement is that exception is
  2403. thrown when changeOption and changeGlobalOption request contains
  2404. option name which doesn't allowed in each request.
  2405. * src/DownloadEngine.h
  2406. * src/XmlRpcMethod.cc
  2407. * src/XmlRpcMethod.h
  2408. * src/XmlRpcMethodImpl.cc
  2409. * src/download_helper.cc
  2410. * src/download_helper.h
  2411. * test/XmlRpcMethodTest.cc
  2412. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added missing MetalinkParserStateImpl.{cc,h}
  2414. * src/MetalinkParserStateImpl.cc
  2415. * src/MetalinkParserStateImpl.h
  2416. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Put all MetalinkParserState subclasses into
  2418. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2419. * src/FileMetalinkParserState.cc: Removed
  2420. * src/FileMetalinkParserState.h: Removed
  2421. * src/FilesMetalinkParserState.cc: Removed
  2422. * src/FilesMetalinkParserState.h: Removed
  2423. * src/FinMetalinkParserState.cc: Removed
  2424. * src/FinMetalinkParserState.h: Removed
  2425. * src/HashMetalinkParserState.cc: Removed
  2426. * src/HashMetalinkParserState.h: Removed
  2427. * src/InitialMetalinkParserState.cc: Removed
  2428. * src/InitialMetalinkParserState.h: Removed
  2429. * src/LanguageMetalinkParserState.cc: Removed
  2430. * src/LanguageMetalinkParserState.h: Removed
  2431. * src/Makefile.am
  2432. * src/MetalinkMetalinkParserState.cc: Removed
  2433. * src/MetalinkMetalinkParserState.h: Removed
  2434. * src/MetalinkParserState.h
  2435. * src/MetalinkParserStateMachine.cc
  2436. * src/MetalinkParserStateMachine.h
  2437. * src/OSMetalinkParserState.cc: Removed
  2438. * src/OSMetalinkParserState.h: Removed
  2439. * src/PieceHashMetalinkParserState.cc: Removed
  2440. * src/PieceHashMetalinkParserState.h: Removed
  2441. * src/PiecesMetalinkParserState.cc: Removed
  2442. * src/PiecesMetalinkParserState.h: Removed
  2443. * src/ResourcesMetalinkParserState.cc: Removed
  2444. * src/ResourcesMetalinkParserState.h: Removed
  2445. * src/SignatureMetalinkParserState.cc: Removed
  2446. * src/SignatureMetalinkParserState.h: Removed
  2447. * src/SizeMetalinkParserState.cc: Removed
  2448. * src/SizeMetalinkParserState.h: Removed
  2449. * src/SkipTagMetalinkParserState.cc: Removed
  2450. * src/SkipTagMetalinkParserState.h: Removed
  2451. * src/URLMetalinkParserState.cc: Removed
  2452. * src/URLMetalinkParserState.h: Removed
  2453. * src/VerificationMetalinkParserState.cc: Removed
  2454. * src/VerificationMetalinkParserState.h: Removed
  2455. * src/VersionMetalinkParserState.cc: Removed
  2456. * src/VersionMetalinkParserState.h: Removed
  2457. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Move all functions in PeerMessageUtil to bittorrent_helper.
  2459. * src/BtBitfieldMessage.cc
  2460. * src/BtBitfieldMessageValidator.h
  2461. * src/BtExtendedMessage.cc
  2462. * src/BtHandshakeMessage.cc
  2463. * src/BtHandshakeMessageValidator.h
  2464. * src/BtPieceMessage.cc
  2465. * src/BtPieceMessageValidator.h
  2466. * src/BtPortMessage.cc
  2467. * src/DHTFindNodeReplyMessage.cc
  2468. * src/DHTGetPeersReplyMessage.cc
  2469. * src/DHTMessageFactoryImpl.cc
  2470. * src/DHTRoutingTableDeserializer.cc
  2471. * src/DHTRoutingTableSerializer.cc
  2472. * src/DHTTokenTracker.cc
  2473. * src/DefaultBtMessageFactory.cc
  2474. * src/IndexBtMessage.cc
  2475. * src/IndexBtMessage.h
  2476. * src/IndexBtMessageValidator.h
  2477. * src/Makefile.am
  2478. * src/PeerMessageUtil.cc: Removed.
  2479. * src/PeerMessageUtil.h: Removed.
  2480. * src/RangeBtMessage.cc
  2481. * src/RangeBtMessage.h
  2482. * src/RangeBtMessageValidator.h
  2483. * src/UTPexExtensionMessage.cc
  2484. * src/ZeroBtMessage.cc
  2485. * src/ZeroBtMessage.h
  2486. * src/bittorrent_helper.cc
  2487. * src/bittorrent_helper.h
  2488. * test/BittorrentHelperTest.cc
  2489. * test/BtAllowedFastMessageTest.cc
  2490. * test/BtBitfieldMessageTest.cc
  2491. * test/BtCancelMessageTest.cc
  2492. * test/BtChokeMessageTest.cc
  2493. * test/BtExtendedMessageTest.cc
  2494. * test/BtHandshakeMessageTest.cc
  2495. * test/BtHaveAllMessageTest.cc
  2496. * test/BtHaveMessageTest.cc
  2497. * test/BtHaveNoneMessageTest.cc
  2498. * test/BtInterestedMessageTest.cc
  2499. * test/BtNotInterestedMessageTest.cc
  2500. * test/BtPieceMessageTest.cc
  2501. * test/BtPortMessageTest.cc
  2502. * test/BtRejectMessageTest.cc
  2503. * test/BtRequestMessageTest.cc
  2504. * test/BtSuggestPieceMessageTest.cc
  2505. * test/BtUnchokeMessageTest.cc
  2506. * test/DHTFindNodeReplyMessageTest.cc
  2507. * test/DHTGetPeersReplyMessageTest.cc
  2508. * test/DHTMessageFactoryImplTest.cc
  2509. * test/DHTRoutingTableDeserializerTest.cc
  2510. * test/DHTRoutingTableSerializerTest.cc
  2511. * test/DefaultBtMessageFactoryTest.cc
  2512. * test/DefaultExtensionMessageFactoryTest.cc
  2513. * test/Makefile.am
  2514. * test/PeerListProcessorTest.cc
  2515. * test/PeerMessageUtilTest.cc: Removed.
  2516. * test/UTPexExtensionMessageTest.cc
  2517. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Limit the size of values list when sending get_peers reply.
  2519. * src/DHTGetPeersReplyMessage.cc
  2520. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Updated banner
  2522. * doc/xmlrpc/aria2rpc
  2523. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Added missing help message for remove command.
  2525. * doc/xmlrpc/aria2rpc
  2526. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Generated configure and config.h.in
  2528. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2529. Add check for fork(), which is missing on MinGW
  2530. * src/daemon.cc
  2531. * configure.ac
  2532. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2534. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2535. Util::httpGMT().
  2536. * src/Util.cc
  2537. * src/Util.h
  2538. * test/UtilTest.cc
  2539. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. * Release 1.6.0
  2541. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Fixed a path to xmlrpc/README.txt
  2543. * doc/Makefile.am
  2544. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Added XML-RPC in -v Configuration output.
  2546. * src/FeatureConfig.cc
  2547. * src/FeatureConfig.h
  2548. * test/FeatureConfigTest.cc
  2549. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Updated Bulgarian, Russian, Slovak and Japanese
  2551. translations. Thanks to all translators.
  2552. * po/bg.po
  2553. * po/ja.po
  2554. * po/ru.po
  2555. * po/sk.po
  2556. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Removed --retry-wait option from aria2rpc
  2558. * doc/xmlrpc/aria2rpc
  2559. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Removed --retry-wait option from man page.
  2561. * doc/aria2c.1.txt
  2562. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Removed --retry-wait option since the current architecture doesn't
  2564. allow sleep for particular URI.
  2565. * src/AbstractCommand.cc
  2566. * src/OptionHandlerFactory.cc
  2567. * src/download_helper.cc
  2568. * src/prefs.cc
  2569. * src/prefs.h
  2570. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Removed Retry-After header support. Since the current architecture
  2572. doesn't allow sleep for particular URI.
  2573. * src/HttpSkipResponseCommand.cc
  2574. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Updated the help message for --daemon option.
  2576. * doc/aria2c.1.txt
  2577. * src/usage_text.h
  2578. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Added our own daemon() function for systems which desn't have
  2580. daemon(3).
  2581. * configure.ac
  2582. * src/Makefile.am
  2583. * src/daemon.cc
  2584. * src/daemon.h
  2585. * src/option_processing.cc
  2586. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2587. Simplified File::getCurrentDir()
  2588. * src/File.cc
  2589. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Use exit() instead of _exit
  2591. * src/RequestGroupMan.cc
  2592. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Replaced "CATEGORY" with "TAGS".
  2594. * src/usage_text.h
  2595. * doc/aria2c.1.txt
  2596. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Updated the help message for --help option.
  2598. * src/usage_text.h
  2599. * doc/aria2c.1.txt
  2600. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Updated man page for added help tags.
  2602. * doc/aria2c.1.txt
  2603. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Added help category #file. Added #file tag to the options related
  2605. to downloaded file.
  2606. * src/OptionHandlerFactory.cc
  2607. * src/help_tags.h
  2608. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Added help categories: #cookie and #hook. Added #https tag to
  2610. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2611. * src/OptionHandlerFactory.cc
  2612. * src/help_tags.h
  2613. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Made MSG_NOT_FILE translatable.
  2615. * src/message.h
  2616. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Updated man page for --help option.
  2618. * doc/aria2c.1.txt
  2619. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Updated doc.
  2621. * src/XmlRpcMethod.h
  2622. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Help category now starts with "#" to distinguish a category from
  2624. keyword search. For example, "http" categroy is now "#http". You
  2625. can type "--help=#http" to get explanation of options related to
  2626. http. If '#' is omitted, then the argument is treated as a keyword
  2627. and aria2 searches options whose name includes the keyword and
  2628. print matched ones. For example, "--help=http" will show options
  2629. whose name includes "http".
  2630. * src/OptionHandlerFactory.cc
  2631. * src/help_tags.h
  2632. * src/usage_text.h
  2633. * src/version_usage.cc
  2634. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Documented missing experimental tag and newly added xml-rpc tag in
  2636. man page.
  2637. * doc/aria2c.1.txt
  2638. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Added xml-rpc help tag. Tagged xml-rpc related options with
  2640. xml-rpc tag.
  2641. * src/OptionHandlerFactory.cc
  2642. * src/help_tags.h
  2643. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Updated message when a path is not a file. Updated common message
  2645. for wrong option.
  2646. * src/OptionHandlerException.cc
  2647. * src/message.h
  2648. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Use File::isFile() instead of File::exists(). Updated message when
  2650. a path is not a file.
  2651. * src/OptionHandlerImpl.cc
  2652. * src/message.h
  2653. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Fixed the bug that server performence profile is not updated when
  2655. aria2c was terminated by emergency shutdown.
  2656. * src/TrackerWatcherCommand.cc
  2657. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Use LocalFilePathOptionHandler for -T and -M option.
  2659. Updated message of MSG_FILE_NOT_EXIST.
  2660. * src/OptionHandlerFactory.cc
  2661. * src/message.h
  2662. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Added LocalFilePathOptionHandler which check whether the specified
  2664. file path does exist or not.
  2665. * src/OptionHandlerImpl.cc
  2666. * src/message.h
  2667. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Updated wiki page URI.
  2669. * README
  2670. * doc/aria2c.1.txt
  2671. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Added README.txt for xmlrpc directory.
  2673. * doc/Makefile.am
  2674. * doc/xmlrpc/README.txt
  2675. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Bump up version number to 1.6.0.
  2677. * configure.ac
  2678. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Added XML-RPC client scripts written in ruby.
  2680. * doc/Makefile.am
  2681. * doc/xmlrpc/aria2mon
  2682. * doc/xmlrpc/aria2rpc
  2683. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Added support for IPv6 literal address in URI. Now aria2 can
  2685. handle URI such as http://[::1]/
  2686. * src/HttpRequest.cc
  2687. * src/HttpRequest.h
  2688. * src/Request.cc
  2689. * src/Request.h
  2690. * test/HttpRequestTest.cc
  2691. * test/OptionHandlerTest.cc
  2692. * test/RequestTest.cc
  2693. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Fixed the bug that HTTP request header for XML-RPC request is not
  2695. parsed properly.
  2696. * src/HttpHeader.cc
  2697. * src/HttpHeaderProcessor.cc
  2698. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Fixed the bug that XML-RPC authorization might be done before HTTP
  2700. request header is fully received.
  2701. * src/HttpServerCommand.cc
  2702. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Documented --xml-rpc-listen-all option in man page.
  2704. * doc/aria2c.1.txt
  2705. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Added --xml-rpc-listen-all option. If true is given to this
  2707. option, aria2 listens incoming XML-RPC requests on all network
  2708. interfaces. If false is given, listens only on local loopback
  2709. interface. The default value is false.
  2710. * src/HttpListenCommand.cc
  2711. * src/OptionHandlerFactory.cc
  2712. * src/SocketCore.cc
  2713. * src/SocketCore.h
  2714. * src/prefs.cc
  2715. * src/prefs.h
  2716. * src/usage_text.h
  2717. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. * Release 1.5.2
  2719. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Updated Ukrainian and Russian translations. Thanks to all
  2721. translators.
  2722. * po/ru.po
  2723. * po/uk.po
  2724. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Bump up version number to 1.5.2
  2726. * configure.ac
  2727. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Get comment, comment.utf-8, created by and creation date from
  2729. .torrent file and print them in -S output.
  2730. * src/bittorrent_helper.cc
  2731. * src/bittorrent_helper.h
  2732. * test/BittorrentHelperTest.cc
  2733. * test/test.torrent
  2734. * test/utf8.torrent
  2735. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Show exact file size along in -S option output.
  2737. * src/Util.h
  2738. * src/bittorrent_helper.cc
  2739. * test/UtilTest.cc
  2740. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2741. Avoided unnecessary memory allocation in
  2742. BitfieldMan::getCompletedLength().
  2743. * src/BitfieldMan.cc
  2744. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Fixed the bug that download fails if
  2746. SocketCore::establishConnection() throws exception and aria2
  2747. doesn't try another address.
  2748. * src/AbstractCommand.cc
  2749. * src/InitiateConnectionCommand.cc
  2750. * src/message.h
  2751. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2753. detected properly.
  2754. * m4/sqlite3.m4
  2755. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2757. because it causes compile error if PARAMS macro is defined.
  2758. * src/XmlRpcElements.cc
  2759. * src/XmlRpcElements.h
  2760. * src/XmlRpcRequestParserStateImpl.cc
  2761. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. * Release 1.5.1
  2763. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Bump up version number to 1.5.1
  2765. * configure.ac
  2766. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Fixed compile error without BitTorrent support
  2768. * src/DefaultBtProgressInfoFile.cc
  2769. * src/DownloadEngine.cc
  2770. * src/DownloadEngine.h
  2771. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Added missing '=' in Download Results
  2773. * src/RequestGroupMan.cc
  2774. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Fixed compiler warning
  2776. * src/DefaultBtProgressInfoFile.cc
  2777. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Fixed compiler warning on 32bit systems.
  2779. * src/DownloadCommand.cc
  2780. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Call flush from ServerStatMan::save()
  2782. * src/ServerStatMan.cc
  2783. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Check stream status after file is opened.
  2785. * src/CookieStorage.cc
  2786. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Rewritten Signature::save()
  2788. * src/Signature.cc
  2789. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Rewritten RequestGroupMan::saveServerStat()
  2791. * src/RequestGroupMan.cc
  2792. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Rewritten stream error handling
  2794. * src/DHTAutoSaveCommand.cc
  2795. * src/DHTRoutingTableDeserializer.cc
  2796. * src/DHTRoutingTableSerializer.cc
  2797. * src/DHTSetup.cc
  2798. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Check stream status after file is opened.
  2800. * src/DefaultBtProgressInfoFile.cc
  2801. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Rewritten stream error handling
  2803. * src/DefaultBtProgressInfoFile.cc
  2804. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Make sure that stream is closed before renaming file. Unit test
  2806. fails on mingw32 in the previous implementation.
  2807. * src/CookieStorage.cc
  2808. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Fixed the unit test error without sqlite3
  2810. * test/CookieStorageTest.cc
  2811. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Fixed the undefined reference error
  2813. * test/HttpResponseTest.cc
  2814. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. * Release 1.5.0
  2816. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2818. Ukrainian translations. Thanks to all translators.
  2819. * po/ru.po
  2820. * po/it.po
  2821. * po/da.po
  2822. * po/bg.po
  2823. * po/ja.po
  2824. * po/uk.po
  2825. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2826. Added missing src/Logger.cc
  2827. * src/Logger.cc
  2828. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Rewritten Logger to avoiding constly virtual call.
  2830. * src/LogFactory.cc
  2831. * src/LogFactory.h
  2832. * src/Logger.h
  2833. * src/Makefile.am
  2834. * src/Makefile.in
  2835. * src/NullLogger.h: Removed.
  2836. * src/SimpleLogger.cc
  2837. * src/SimpleLogger.h
  2838. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Updated doc
  2840. * src/main.cc
  2841. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Updated debug log message
  2843. * src/AbstractCommand.cc
  2844. * src/message.h
  2845. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Avoid to create zombie process when commands specified in
  2847. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2848. X and NetBSD.
  2849. * src/main.cc
  2850. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Fixed typo
  2852. * src/usage_text.h
  2853. * doc/aria2c.1.txt
  2854. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. Documented 'errorCode' of tellStatus in man page.
  2856. * doc/aria2c.1.txt
  2857. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2859. This key is only available for stopped/completed downloads and its
  2860. value is the error code defined in EXIT STATUS in man page.
  2861. * src/XmlRpcMethodImpl.cc
  2862. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Fixed the bug that session download length is not updated when
  2864. PeerStat is not fastest one.
  2865. * src/SegmentMan.cc
  2866. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Updated doc.
  2868. * doc/aria2c.1.txt
  2869. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Updated doc.
  2871. * src/AbstractCommand.cc
  2872. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Handle the case when DownloadContext has no FileEntry.
  2874. * src/XmlRpcMethodImpl.cc
  2875. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Handle the situation where struct option.name is char *.
  2877. * configure.ac
  2878. * src/OptionParser.cc
  2879. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Code cleanup
  2881. * src/AbstractCommand.cc
  2882. * src/DownloadCommand.cc
  2883. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Use option of each download to create AuthConfig instead of global
  2885. option.
  2886. * src/AuthConfigFactory.cc
  2887. * src/AuthConfigFactory.h
  2888. * src/FtpNegotiationCommand.cc
  2889. * src/HttpRequest.cc
  2890. * src/HttpRequest.h
  2891. * src/HttpRequestCommand.cc
  2892. * src/HttpSkipResponseCommand.cc
  2893. * src/MultiUrlRequestInfo.cc
  2894. * test/AuthConfigFactoryTest.cc
  2895. * test/FtpConnectionTest.cc
  2896. * test/HttpRequestTest.cc
  2897. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Don't call prepareForRetry(1) if all segments are ignored in
  2899. SegmentMan.
  2900. * src/AbstractCommand.cc
  2901. * src/BitfieldMan.cc
  2902. * src/BitfieldMan.h
  2903. * src/SegmentMan.cc
  2904. * src/SegmentMan.h
  2905. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Removed FileEntry::getAssociatedUris()
  2907. * src/FileEntry.h
  2908. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Updated doc: TODO1.5 -> TODO
  2910. * src/FileEntry.cc
  2911. * src/HttpResponseCommand.cc
  2912. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2914. involved.
  2915. * src/RequestGroup.cc
  2916. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Eliminated duplicated filterBitfield initialization code.
  2918. * src/BitfieldMan.cc
  2919. * src/BitfieldMan.h
  2920. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2922. relatively naive approach, though). For DownloadFailureException,
  2923. we handle the case when req is null properly.
  2924. * src/AbstractCommand.cc
  2925. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Added function returning suffix of control file to
  2927. DefaultBtProgressInfoFile.
  2928. * src/DefaultBtProgressInfoFile.cc
  2929. * src/DefaultBtProgressInfoFile.h
  2930. * src/RequestGroup.cc
  2931. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Documented getVersion in man page.
  2933. * doc/aria2c.1.txt
  2934. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Documented type of offset and num for tellWaiting xml-rpc method.
  2936. * doc/aria2c.1.txt
  2937. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Implemented getVersion xml-rpc method. This method returns struct
  2939. which has 2 key-value pairs: "version" key is associated to the
  2940. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2941. associated to the list of enabled features, such as "Async DNS",
  2942. "BitTorrent".
  2943. * src/FeatureConfig.h
  2944. * src/XmlRpcMethodFactory.cc
  2945. * src/XmlRpcMethodImpl.cc
  2946. * src/XmlRpcMethodImpl.h
  2947. * test/XmlRpcMethodTest.cc
  2948. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2950. for compatibility issue.
  2951. * src/SocketCore.cc
  2952. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Fixed compile error with openSSL
  2954. * src/bittorrent_helper.cc
  2955. * src/messageDigest.h
  2956. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Removed bad code: setting certificate type priority to key
  2958. exchange priority.
  2959. * src/SocketCore.cc
  2960. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Disconnect seeder if client is also in seed state.
  2962. * src/BtBitfieldMessage.cc
  2963. * src/BtHaveAllMessage.cc
  2964. * src/BtHaveMessage.cc
  2965. * src/message.h
  2966. * test/BtBitfieldMessageTest.cc
  2967. * test/BtHaveAllMessageTest.cc
  2968. * test/BtHaveMessageTest.cc
  2969. * test/MockPieceStorage.h
  2970. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Keep CreateRequestCommand in queue when no segment is available so
  2972. that they can pick up pieces which slow BitTorrent peers are
  2973. downloading.
  2974. * src/AbstractCommand.cc
  2975. * src/CreateRequestCommand.cc
  2976. * src/CreateRequestCommand.h
  2977. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. --bt-stop-timeout now only checks download speed.
  2979. * src/BtStopDownloadCommand.cc
  2980. * src/BtStopDownloadCommand.h
  2981. * src/BtSetup.cc
  2982. * src/usage_text.h
  2983. * doc/aria2c.1.txt
  2984. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Fixed compile error regarding BUFSIZE.
  2986. * src/DownloadCommand.cc
  2987. * src/DownloadCommand.h
  2988. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Documented tellWaiting xml-rpc method in man page.
  2990. * doc/aria2c.1.txt
  2991. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Bump up version number to 1.5.0
  2993. * configure.ac
  2994. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Removed resolved TODO1.5
  2996. * src/AbstractCommand.cc
  2997. * src/DownloadCommand.cc
  2998. * src/RequestGroup.cc
  2999. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Release pooled and in-flight Request objectsand URIResult objects
  3001. in FileEntry after download completed.
  3002. * src/DownloadContext.cc
  3003. * src/DownloadContext.h
  3004. * src/FileEntry.cc
  3005. * src/FileEntry.h
  3006. * src/RequestGroup.cc
  3007. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Set manual and source attribute in aria2c.1.txt
  3009. * doc/aria2c.1.txt
  3010. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Documented that the default value of --use-head is 'false' in man
  3012. page.
  3013. * doc/aria2c.1.txt
  3014. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Added bt-stop-timeout option to -i list.
  3016. * doc/aria2c.1.txt
  3017. * src/download_helper.cc
  3018. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Fixed typo
  3020. * doc/aria2c.1.txt
  3021. * src/usage_text.h
  3022. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Removed peer-id-prefix option from -i list.
  3024. * doc/aria2c.1.txt
  3025. * src/download_helper.cc
  3026. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Fixed typo
  3028. * doc/aria2c.1.txt
  3029. * src/usage_text.h
  3030. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Documented --bt-stop-timeout option in man page.
  3032. * doc/aria2c.1.txt
  3033. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Updated README regarding multi-file torrent web-seeding.
  3035. * doc/README.txt
  3036. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. Updated man page regarding multi-file torrent web-seeding.
  3038. * doc/aria2c.1.txt
  3039. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3040. Updated doc
  3041. * src/version_usage.cc
  3042. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Winsock select() doesn't work if no socket is in FD_SET. To
  3044. overcome this problem, a dummy socket is added to FD_SET and it is
  3045. given to select().
  3046. * src/SelectEventPoll.cc
  3047. * src/SelectEventPoll.h
  3048. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Disabled --use-head option by default because --use-head=true
  3050. causes problems on some web sites.
  3051. * src/OptionHandlerFactory.cc
  3052. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Print URL List in -S option for torrent.
  3054. * src/bittorrent_helper.cc
  3055. * src/bittorrent_helper.h
  3056. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3057. Allocate buffer in ctor of DownloadCommand.
  3058. * src/DownloadCommand.cc
  3059. * src/DownloadCommand.h
  3060. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Removed DiskAdaptor::onDownloadComplete()
  3062. * src/DirectDiskAdaptor.cc
  3063. * src/DirectDiskAdaptor.h
  3064. * src/DiskAdaptor.h
  3065. * src/MultiDiskAdaptor.cc
  3066. * src/MultiDiskAdaptor.h
  3067. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3068. Committed missing BtStopDownloadCommand.{cc,h}
  3069. * src/BtStopDownloadCommand.cc
  3070. * src/BtStopDownloadCommand.h
  3071. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3073. download if the download speed is 0 and the number of seeder is 0
  3074. in consecutive SEC seconds. By default, this function is disabled.
  3075. * src/BtSetup.cc
  3076. * src/Makefile.am
  3077. * src/OptionHandlerFactory.cc
  3078. * src/prefs.cc
  3079. * src/prefs.h
  3080. * src/usage_text.h
  3081. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Removed the call to DiskAdaptor::onDownloadComplete() from
  3083. BtCheckIntegrityEntry and DefaultPieceStorage.
  3084. * src/BtCheckIntegrityEntry.cc
  3085. * src/DefaultPieceStorage.cc
  3086. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Commented out throw statements when number of piece is 0 to
  3088. download 0 length torrent.
  3089. * src/bittorrent_helper.cc
  3090. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Call RequestGroup::createNextCommandWithAdj() from
  3092. BtFileAllocationEntry if at least one FileEntry has URI. The
  3093. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3094. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3095. * src/BtFileAllocationEntry.cc
  3096. * src/FileEntry.h
  3097. * src/RequestGroup.cc
  3098. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. Generate peer ID after SimpleRandomizer is initialized.
  3100. * src/main.cc
  3101. * src/option_processing.cc
  3102. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Removed unused method argument.
  3104. * src/CreateRequestCommand.cc
  3105. * src/RequestGroup.cc
  3106. * src/RequestGroup.h
  3107. * src/RequestGroupMan.cc
  3108. * src/TrackerWatcherCommand.cc
  3109. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Made URI reusing function work.
  3111. * src/CreateRequestCommand.cc
  3112. * src/FileEntry.cc
  3113. * src/FileEntry.h
  3114. * test/FileEntryTest.cc
  3115. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. Add formerly fastest PeerStat's sessionDownloadLength to new
  3117. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3118. bytes in a session.
  3119. * src/PeerStat.cc
  3120. * src/SegmentMan.cc
  3121. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. If pipelining is enabled, we can always pool socket.
  3123. * src/HttpDownloadCommand.cc
  3124. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. In a single file download, file size becomes known just after
  3126. downloading, set total length to FileEntry object when download
  3127. completed.
  3128. * src/DownloadCommand.cc
  3129. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Use std::vector::reserve() for fileEntries and pieceHashes in
  3131. bittorrent_helper
  3132. * src/bittorrent_helper.cc
  3133. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3135. Removed hidden option PREF_RESET_URI.
  3136. * src/AbstractCommand.cc
  3137. * src/OptionHandlerFactory.cc
  3138. * src/prefs.cc
  3139. * src/prefs.h
  3140. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Removed unused variable/function.
  3142. * src/PeerStat.h
  3143. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Show first URL in Download Results if file path is not available.
  3145. * src/FileEntry.h
  3146. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Throw exception if file path doesn't exist in FTP URL.
  3148. * src/InitiateConnectionCommandFactory.cc
  3149. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3151. * src/BitfieldMan.cc
  3152. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3154. of PeerStat in SegmentMan. peerStats is used for calculating
  3155. download speed. Therefore all active PeerStats should be in
  3156. there. Another one is _fastestPeerStats and it only contains
  3157. fastest PeerStat for each hostname/protocol pair. They are used
  3158. for updating ServerStat.
  3159. * src/DownloadCommand.cc
  3160. * src/Request.h
  3161. * src/RequestGroupMan.cc
  3162. * src/SegmentMan.cc
  3163. * src/SegmentMan.h
  3164. * test/SegmentManTest.cc
  3165. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Try all available addresses returned by DNS until it gets
  3167. connected in HTTP(S)/FTP download
  3168. * src/AbstractCommand.cc
  3169. * src/AbstractCommand.h
  3170. * src/AbstractProxyRequestCommand.cc
  3171. * src/AbstractProxyRequestCommand.h
  3172. * src/DNSCache.h
  3173. * src/DownloadEngine.cc
  3174. * src/DownloadEngine.h
  3175. * src/FtpInitiateConnectionCommand.cc
  3176. * src/FtpInitiateConnectionCommand.h
  3177. * src/FtpNegotiationCommand.cc
  3178. * src/FtpNegotiationCommand.h
  3179. * src/HttpInitiateConnectionCommand.cc
  3180. * src/HttpInitiateConnectionCommand.h
  3181. * src/HttpRequestCommand.cc
  3182. * src/HttpRequestCommand.h
  3183. * src/InitiateConnectionCommand.cc
  3184. * src/InitiateConnectionCommand.h
  3185. * test/DNSCacheTest.cc
  3186. * test/Makefile.am
  3187. * test/SimpleDNSCacheTest.cc
  3188. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3189. Updated doc
  3190. * src/download_helper.cc
  3191. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Refactored fieldMan ctor.
  3193. * src/BitfieldMan.cc
  3194. * src/BitfieldMan.h
  3195. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Don't print "No files to download." message if -S is given.
  3197. * src/main.cc
  3198. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Set referer and method to newly created Request object.
  3200. * src/CreateRequestCommand.cc
  3201. * src/FileEntry.cc
  3202. * src/FileEntry.h
  3203. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3205. * src/AbstractCommand.cc
  3206. * src/AbstractCommand.h
  3207. * src/CreateRequestCommand.cc
  3208. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Get proxy download working
  3210. * src/AbstractProxyRequestCommand.cc
  3211. * src/AbstractProxyRequestCommand.h
  3212. * src/AbstractProxyResponseCommand.cc
  3213. * src/AbstractProxyResponseCommand.h
  3214. * src/FtpInitiateConnectionCommand.cc
  3215. * src/FtpTunnelRequestCommand.cc
  3216. * src/FtpTunnelRequestCommand.h
  3217. * src/FtpTunnelResponseCommand.cc
  3218. * src/FtpTunnelResponseCommand.h
  3219. * src/HttpInitiateConnectionCommand.cc
  3220. * src/HttpProxyRequestCommand.cc
  3221. * src/HttpProxyRequestCommand.h
  3222. * src/HttpProxyResponseCommand.cc
  3223. * src/HttpProxyResponseCommand.h
  3224. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Use SegmentMan::getSegment(cuid) for single file download.
  3226. * src/AbstractCommand.cc
  3227. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Fixed bufSize calculation
  3229. * src/DownloadCommand.cc
  3230. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. Don't append "/" if base URI ends with "/".
  3232. * src/bittorrent_helper.cc
  3233. * test/url-list-multiFile.torrent
  3234. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. HTTP pipelining is now working. Fixed Segmention fault in
  3236. BitfieldMan's copy ctor.
  3237. * src/AbstractCommand.cc
  3238. * src/BitfieldMan.cc
  3239. * src/BitfieldMan.h
  3240. * src/DownloadCommand.cc
  3241. * src/HttpDownloadCommand.cc
  3242. * src/HttpRequest.cc
  3243. * src/SegmentMan.cc
  3244. * src/SegmentMan.h
  3245. * test/BitfieldManTest.cc
  3246. * test/SegmentManTest.cc
  3247. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Removed ServerHost. Same functionality is implemented using
  3249. FileEntry's in-flight Request objects.
  3250. * src/AbstractCommand.cc
  3251. * src/BtDependency.cc
  3252. * src/CreateRequestCommand.cc
  3253. * src/FileEntry.cc
  3254. * src/FileEntry.h
  3255. * src/FtpNegotiationCommand.cc
  3256. * src/HttpResponseCommand.cc
  3257. * src/Makefile.am
  3258. * src/Metalink2RequestGroup.cc
  3259. * src/RequestGroup.cc
  3260. * src/RequestGroup.h
  3261. * src/ServerHost.cc: Removed
  3262. * src/ServerHost.h: Removed
  3263. * test/BtDependencyTest.cc
  3264. * test/FileEntryTest.cc
  3265. * test/RequestGroupTest.cc
  3266. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Rewritten PeerStat handling. In the previous implementation,
  3268. faster command tries to find slower command. In this new
  3269. implementation, slower command tries to find faster command.
  3270. PeerStat is now created in each HTTP/FTP request to get download
  3271. rate correctly. If the download range is small, the download rate
  3272. tends to small and this will occur at the later stage of download.
  3273. * src/AbstractCommand.cc
  3274. * src/DownloadCommand.cc
  3275. * src/FileEntry.cc
  3276. * src/FileEntry.h
  3277. * src/Request.cc
  3278. * src/Request.h
  3279. * src/RequestGroup.h
  3280. * src/RequestGroupMan.cc
  3281. * src/SegmentMan.cc
  3282. * src/SegmentMan.h
  3283. * test/SegmentManTest.cc
  3284. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Removed _uris from RequestGroup. All functions that refer to _uris
  3286. were moved to FileEntry. Exit status code are now defined in
  3287. DownloadResultCode.h.
  3288. * src/AbstractCommand.cc
  3289. * src/AdaptiveURISelector.cc
  3290. * src/AdaptiveURISelector.h
  3291. * src/AutoSaveCommand.cc
  3292. * src/BtPostDownloadHandler.cc
  3293. * src/CheckIntegrityDispatcherCommand.cc
  3294. * src/CookieStorage.cc
  3295. * src/DHTAutoSaveCommand.cc
  3296. * src/DHTBucketRefreshCommand.cc
  3297. * src/DHTEntryPointNameResolveCommand.cc
  3298. * src/DHTInteractionCommand.cc
  3299. * src/DHTPeerAnnounceCommand.cc
  3300. * src/DHTTokenUpdateCommand.cc
  3301. * src/DlAbortEx.h
  3302. * src/DlRetryEx.h
  3303. * src/DownloadCommand.cc
  3304. * src/DownloadContext.h
  3305. * src/DownloadFailureException.h
  3306. * src/DownloadResult.h
  3307. * src/DownloadResultCode.h
  3308. * src/FeedbackURISelector.cc
  3309. * src/FeedbackURISelector.h
  3310. * src/FileEntry.cc
  3311. * src/FileEntry.h
  3312. * src/FtpNegotiationCommand.cc
  3313. * src/HttpListenCommand.cc
  3314. * src/HttpResponseCommand.cc
  3315. * src/HttpServerResponseCommand.cc
  3316. * src/HttpSkipResponseCommand.cc
  3317. * src/InOrderURISelector.cc
  3318. * src/InOrderURISelector.h
  3319. * src/Makefile.am
  3320. * src/Makefile.in
  3321. * src/Metalink2RequestGroup.cc
  3322. * src/MultiUrlRequestInfo.cc
  3323. * src/MultiUrlRequestInfo.h
  3324. * src/OptionHandlerFactory.cc
  3325. * src/PeerListenCommand.cc
  3326. * src/RecoverableException.h
  3327. * src/RequestGroup.cc
  3328. * src/RequestGroup.h
  3329. * src/RequestGroupMan.cc
  3330. * src/RequestGroupMan.h
  3331. * src/TimedHaltCommand.cc
  3332. * src/TrackerWatcherCommand.cc
  3333. * src/URIResult.cc
  3334. * src/URIResult.h
  3335. * src/URISelector.h
  3336. * src/XmlRpcMethodImpl.cc
  3337. * src/bittorrent_helper.cc
  3338. * src/bittorrent_helper.h
  3339. * src/download_helper.cc
  3340. * src/main.cc
  3341. * src/option_processing.cc
  3342. * test/BtDependencyTest.cc
  3343. * test/BtPostDownloadHandlerTest.cc
  3344. * test/CookieStorageTest.cc
  3345. * test/DefaultBtMessageDispatcherTest.cc
  3346. * test/DownloadHandlerFactoryTest.cc
  3347. * test/DownloadHelperTest.cc
  3348. * test/FeedbackURISelectorTest.cc
  3349. * test/FileEntryTest.cc
  3350. * test/InOrderURISelectorTest.cc
  3351. * test/Metalink2RequestGroupTest.cc
  3352. * test/MetalinkPostDownloadHandlerTest.cc
  3353. * test/RequestGroupManTest.cc
  3354. * test/RequestGroupTest.cc
  3355. * test/XmlRpcMethodTest.cc
  3356. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Removed MockBtContext.h
  3358. * test/Makefile.am
  3359. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Removed _currentRequest from StreamCheckIntegrityEntry and
  3361. StreamFileAllocationEntry.
  3362. * src/AbstractCommand.cc
  3363. * src/HttpResponseCommand.cc
  3364. * src/RequestGroup.cc
  3365. * src/StreamCheckIntegrityEntry.cc
  3366. * src/StreamCheckIntegrityEntry.h
  3367. * src/StreamFileAllocationEntry.cc
  3368. * src/StreamFileAllocationEntry.h
  3369. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. Rewritten DownloadContext and removed SingleFileDownloadContext
  3371. and BtContext and its derived classes. BitTorrent specific
  3372. attributes are now set by DownloadContext::setAttribute() with key
  3373. bittorrent::BITTORRENT.
  3374. * src/AbstractBtMessage.cc
  3375. * src/AbstractBtMessage.h
  3376. * src/AbstractCommand.cc
  3377. * src/AbstractCommand.h
  3378. * src/AbstractProxyRequestCommand.cc
  3379. * src/AbstractProxyResponseCommand.cc
  3380. * src/ActivePeerConnectionCommand.cc
  3381. * src/ActivePeerConnectionCommand.h
  3382. * src/AnnounceList.cc
  3383. * src/BtCheckIntegrityEntry.cc
  3384. * src/BtConstants.h
  3385. * src/BtContext.h: Removed
  3386. * src/BtDependency.cc
  3387. * src/BtExtendedMessage.cc
  3388. * src/BtPieceMessage.cc
  3389. * src/BtPieceMessage.h
  3390. * src/BtPostDownloadHandler.cc
  3391. * src/BtRegistry.cc
  3392. * src/BtRegistry.h
  3393. * src/BtSetup.cc
  3394. * src/CheckIntegrityCommand.cc
  3395. * src/CheckIntegrityEntry.cc
  3396. * src/ChecksumCheckIntegrityEntry.cc
  3397. * src/ConsoleStatCalc.cc
  3398. * src/ContentTypeRequestGroupCriteria.cc
  3399. * src/DHTGetPeersCommand.cc
  3400. * src/DHTGetPeersCommand.h
  3401. * src/DHTPeerLookupTask.cc
  3402. * src/DHTPeerLookupTask.h
  3403. * src/DHTTaskFactory.h
  3404. * src/DHTTaskFactoryImpl.cc
  3405. * src/DHTTaskFactoryImpl.h
  3406. * src/DefaultBtAnnounce.cc
  3407. * src/DefaultBtAnnounce.h
  3408. * src/DefaultBtContext.cc: Removed
  3409. * src/DefaultBtContext.h: Removed
  3410. * src/DefaultBtInteractive.cc
  3411. * src/DefaultBtInteractive.h
  3412. * src/DefaultBtMessageDispatcher.cc
  3413. * src/DefaultBtMessageDispatcher.h
  3414. * src/DefaultBtMessageFactory.cc
  3415. * src/DefaultBtMessageFactory.h
  3416. * src/DefaultBtMessageReceiver.cc
  3417. * src/DefaultBtMessageReceiver.h
  3418. * src/DefaultBtProgressInfoFile.cc
  3419. * src/DefaultBtRequestFactory.cc
  3420. * src/DefaultBtRequestFactory.h
  3421. * src/DefaultExtensionMessageFactory.cc
  3422. * src/DefaultExtensionMessageFactory.h
  3423. * src/DefaultPeerStorage.cc
  3424. * src/DefaultPeerStorage.h
  3425. * src/DefaultPieceStorage.cc
  3426. * src/DefaultSegmentManFactory.cc
  3427. * src/DiskAdaptor.cc
  3428. * src/DiskAdaptor.h
  3429. * src/DownloadContext.cc
  3430. * src/DownloadContext.h
  3431. * src/DownloadEngine.cc
  3432. * src/DownloadEngineFactory.cc
  3433. * src/DownloadHandler.cc
  3434. * src/DownloadResult.h
  3435. * src/FileAllocationCommand.cc
  3436. * src/FileAllocationDispatcherCommand.cc
  3437. * src/FileAllocationEntry.cc
  3438. * src/FileEntry.h
  3439. * src/FillRequestGroupCommand.cc
  3440. * src/FtpDownloadCommand.cc
  3441. * src/FtpFinishDownloadCommand.cc
  3442. * src/FtpInitiateConnectionCommand.cc
  3443. * src/FtpNegotiationCommand.cc
  3444. * src/FtpTunnelRequestCommand.cc
  3445. * src/FtpTunnelResponseCommand.cc
  3446. * src/HandshakeExtensionMessage.cc
  3447. * src/HandshakeExtensionMessage.h
  3448. * src/HaveEraseCommand.cc
  3449. * src/HttpDownloadCommand.cc
  3450. * src/HttpInitiateConnectionCommand.cc
  3451. * src/HttpProxyRequestCommand.cc
  3452. * src/HttpProxyResponseCommand.cc
  3453. * src/HttpRequest.cc
  3454. * src/HttpRequest.h
  3455. * src/HttpRequestCommand.cc
  3456. * src/HttpResponseCommand.cc
  3457. * src/HttpServerBodyCommand.cc
  3458. * src/HttpServerCommand.cc
  3459. * src/HttpSkipResponseCommand.cc
  3460. * src/InitiateConnectionCommandFactory.cc
  3461. * src/InitiatorMSEHandshakeCommand.cc
  3462. * src/InitiatorMSEHandshakeCommand.h
  3463. * src/IteratableChecksumValidator.cc
  3464. * src/IteratableChecksumValidator.h
  3465. * src/IteratableChunkChecksumValidator.cc
  3466. * src/MSEHandshake.cc
  3467. * src/MSEHandshake.h
  3468. * src/Makefile.am
  3469. * src/Makefile.in
  3470. * src/Metalink2RequestGroup.cc
  3471. * src/MetalinkPostDownloadHandler.cc
  3472. * src/MultiDiskAdaptor.cc
  3473. * src/MultiDiskAdaptor.h
  3474. * src/MultiFileAllocationIterator.cc
  3475. * src/MultiUrlRequestInfo.cc
  3476. * src/PeerChokeCommand.cc
  3477. * src/PeerChokeCommand.h
  3478. * src/PeerInitiateConnectionCommand.cc
  3479. * src/PeerInitiateConnectionCommand.h
  3480. * src/PeerInteractionCommand.cc
  3481. * src/PeerInteractionCommand.h
  3482. * src/PeerReceiveHandshakeCommand.cc
  3483. * src/PieceHashCheckIntegrityEntry.cc
  3484. * src/RealtimeCommand.cc
  3485. * src/ReceiverMSEHandshakeCommand.cc
  3486. * src/RequestGroup.cc
  3487. * src/RequestGroup.h
  3488. * src/RequestGroupEntry.cc
  3489. * src/RequestGroupMan.cc
  3490. * src/SeedCheckCommand.cc
  3491. * src/SeedCheckCommand.h
  3492. * src/SegmentMan.cc
  3493. * src/ShareRatioSeedCriteria.h
  3494. * src/SingleFileDownloadContext.cc: Removed
  3495. * src/SingleFileDownloadContext.h: Removed
  3496. * src/SleepCommand.cc
  3497. * src/StreamCheckIntegrityEntry.cc
  3498. * src/TrackerWatcherCommand.cc
  3499. * src/TrackerWatcherCommand.h
  3500. * src/UnknownLengthPieceStorage.cc
  3501. * src/Util.cc
  3502. * src/Util.h
  3503. * src/XmlRpcMethodImpl.cc
  3504. * src/bittorrent_helper.cc
  3505. * src/bittorrent_helper.h
  3506. * src/download_helper.cc
  3507. * src/main.cc
  3508. * src/option_processing.cc
  3509. * test/BitfieldManTest.cc
  3510. * test/BittorrentHelperTest.cc
  3511. * test/BtCancelMessageTest.cc
  3512. * test/BtChokeMessageTest.cc
  3513. * test/BtDependencyTest.cc
  3514. * test/BtPieceMessageTest.cc
  3515. * test/BtPostDownloadHandlerTest.cc
  3516. * test/BtRegistryTest.cc
  3517. * test/BtRejectMessageTest.cc
  3518. * test/BtRequestMessageTest.cc
  3519. * test/DHTPeerAnnounceStorageTest.cc
  3520. * test/DefaultBtAnnounceTest.cc
  3521. * test/DefaultBtContextTest.cc: Removed
  3522. * test/DefaultBtMessageDispatcherTest.cc
  3523. * test/DefaultBtMessageFactoryTest.cc
  3524. * test/DefaultBtProgressInfoFileTest.cc
  3525. * test/DefaultBtRequestFactoryTest.cc
  3526. * test/DefaultExtensionMessageFactoryTest.cc
  3527. * test/DefaultPeerStorageTest.cc
  3528. * test/DefaultPieceStorageTest.cc
  3529. * test/DirectDiskAdaptorTest.cc
  3530. * test/DownloadContextTest.cc
  3531. * test/DownloadHandlerFactoryTest.cc
  3532. * test/DownloadHelperTest.cc
  3533. * test/HandshakeExtensionMessageTest.cc
  3534. * test/HttpRequestTest.cc
  3535. * test/HttpResponseTest.cc
  3536. * test/IteratableChecksumValidatorTest.cc
  3537. * test/IteratableChunkChecksumValidatorTest.cc
  3538. * test/MSEHandshakeTest.cc
  3539. * test/Makefile.am
  3540. * test/Makefile.in
  3541. * test/Metalink2RequestGroupTest.cc
  3542. * test/MetalinkPostDownloadHandlerTest.cc
  3543. * test/MockBtContext.h: Removed
  3544. * test/MockDHTTaskFactory.h
  3545. * test/MockDownloadContext.h: Removed
  3546. * test/MockPieceStorage.h
  3547. * test/MultiDiskAdaptorTest.cc
  3548. * test/MultiFileAllocationIteratorTest.cc
  3549. * test/RequestGroupManTest.cc
  3550. * test/RequestGroupTest.cc
  3551. * test/SegmentManTest.cc
  3552. * test/ShareRatioSeedCriteriaTest.cc
  3553. * test/SingleFileDownloadContextTest.cc: Removed
  3554. * test/UtilTest.cc
  3555. * test/XmlRpcMethodTest.cc
  3556. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Added experimental support of WEB-Seeding for multi-file torrent.
  3558. Due to fundamental changes in file handling in HTTP/FTP code, many
  3559. functions are not working: PeerStat, ServerHost, proxy..etc
  3560. * src/AbstractCommand.cc
  3561. * src/AbstractCommand.h
  3562. * src/BitfieldMan.cc
  3563. * src/BitfieldMan.h
  3564. * src/CreateRequestCommand.cc
  3565. * src/CreateRequestCommand.h
  3566. * src/DefaultPieceStorage.cc
  3567. * src/DefaultPieceStorage.h
  3568. * src/DownloadCommand.cc
  3569. * src/DownloadCommand.h
  3570. * src/DownloadContext.cc
  3571. * src/DownloadContext.h
  3572. * src/FileEntry.cc
  3573. * src/FileEntry.h
  3574. * src/FtpDownloadCommand.cc
  3575. * src/FtpDownloadCommand.h
  3576. * src/FtpFinishDownloadCommand.cc
  3577. * src/FtpFinishDownloadCommand.h
  3578. * src/FtpInitiateConnectionCommand.cc
  3579. * src/FtpInitiateConnectionCommand.h
  3580. * src/FtpNegotiationCommand.cc
  3581. * src/FtpNegotiationCommand.h
  3582. * src/FtpTunnelResponseCommand.cc
  3583. * src/HttpDownloadCommand.cc
  3584. * src/HttpDownloadCommand.h
  3585. * src/HttpInitiateConnectionCommand.cc
  3586. * src/HttpInitiateConnectionCommand.h
  3587. * src/HttpProxyResponseCommand.cc
  3588. * src/HttpRequest.cc
  3589. * src/HttpRequest.h
  3590. * src/HttpRequestCommand.cc
  3591. * src/HttpRequestCommand.h
  3592. * src/HttpResponseCommand.cc
  3593. * src/HttpResponseCommand.h
  3594. * src/HttpSkipResponseCommand.cc
  3595. * src/HttpSkipResponseCommand.h
  3596. * src/InitiateConnectionCommand.cc
  3597. * src/InitiateConnectionCommand.h
  3598. * src/InitiateConnectionCommandFactory.cc
  3599. * src/InitiateConnectionCommandFactory.h
  3600. * src/Makefile.am
  3601. * src/PieceStorage.h
  3602. * src/RequestGroup.cc
  3603. * src/RequestGroup.h
  3604. * src/RequestGroupMan.cc
  3605. * src/SegmentMan.cc
  3606. * src/SegmentMan.h
  3607. * src/SingleFileDownloadContext.h
  3608. * src/StreamFileAllocationEntry.cc
  3609. * src/TrackerWatcherCommand.cc
  3610. * src/UnknownLengthPieceStorage.cc
  3611. * src/UnknownLengthPieceStorage.h
  3612. * src/array_fun.h
  3613. * src/bitfield.h
  3614. * src/download_helper.cc
  3615. * test/DownloadContextTest.cc
  3616. * test/Makefile.am
  3617. * test/MockDownloadContext.h
  3618. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Added tellWaiting XML-RPC method.
  3620. * src/SingleFileDownloadContext.cc
  3621. * src/XmlRpcMethodFactory.cc
  3622. * src/XmlRpcMethodImpl.cc
  3623. * src/XmlRpcMethodImpl.h
  3624. * test/XmlRpcMethodTest.cc
  3625. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Updated CookieStorageTest
  3627. * test/CookieStorageTest.cc
  3628. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3630. handle excepion inside these functions.
  3631. * src/LibgnutlsTLSContext.cc
  3632. * src/LibgnutlsTLSContext.h
  3633. * src/LibsslTLSContext.cc
  3634. * src/LibsslTLSContext.h
  3635. * src/MultiUrlRequestInfo.cc
  3636. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Added comment
  3638. * src/RequestGroup.cc
  3639. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. In CookieStorage::load() and saveNsFormat(), handle exception
  3641. inside the functions. When saving Cookies, first write temporary
  3642. file and after successful writes, then renames it to final
  3643. destination.
  3644. * src/CookieStorage.cc
  3645. * src/CookieStorage.h
  3646. * src/MultiUrlRequestInfo.cc
  3647. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. The default value of --dir option is the absolute path to the
  3649. current directory. If getcwd() is failed, then it is ".", which is
  3650. the same value with old implementation. This change is necessary
  3651. because after daemon() call, the current working directory is
  3652. changed to /.
  3653. * src/File.cc
  3654. * src/File.h
  3655. * src/OptionHandlerFactory.cc
  3656. * src/option_processing.cc
  3657. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Call daemon() with arguments(0,0), which means daemon() changes
  3659. current working directory to / and redirects stdin, stdout and
  3660. stderr to /dev/null.
  3661. * src/option_processing.cc
  3662. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Small performance optimizations.
  3664. * src/RequestGroupMan.cc
  3665. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3667. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3668. * src/RequestGroupMan.cc
  3669. * src/RequestGroupMan.h
  3670. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3672. setNoWiat(true) if newly created command calls
  3673. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3674. * src/HttpListenCommand.cc
  3675. * src/HttpServerBodyCommand.cc
  3676. * src/HttpServerCommand.cc
  3677. * src/HttpServerResponseCommand.cc
  3678. * src/InitiateConnectionCommand.cc
  3679. * src/RequestGroup.cc
  3680. * src/StreamFileAllocationEntry.cc
  3681. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Removed include vector
  3683. * src/BtRegistry.h
  3684. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Rewritten BtRegistry
  3686. * src/BtRegistry.cc
  3687. * src/BtRegistry.h
  3688. * src/BtSetup.cc
  3689. * src/ConsoleStatCalc.cc
  3690. * src/PeerInteractionCommand.cc
  3691. * src/PeerReceiveHandshakeCommand.cc
  3692. * src/ReceiverMSEHandshakeCommand.cc
  3693. * src/RequestGroup.cc
  3694. * src/XmlRpcMethodImpl.cc
  3695. * test/BtRegistryTest.cc
  3696. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3698. * src/DefaultBtProgressInfoFile.cc
  3699. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3700. Throw an exception if position is less than 0.
  3701. * src/XmlRpcMethodImpl.cc
  3702. * test/XmlRpcMethodTest.cc
  3703. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Use writeFilePath() in ConsoleStatCalc.cc
  3705. * src/ConsoleStatCalc.cc
  3706. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Receive the return value as const reference from
  3708. DownloadContext::getFileEntries().
  3709. * src/DefaultPieceStorage.cc
  3710. * src/RequestGroupMan.cc
  3711. * src/XmlRpcMethodImpl.cc
  3712. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. DownloadContext now has _fileEntries so that
  3714. DownloadContext::getFileEntries() can returns its const reference.
  3715. * src/DefaultBtContext.cc
  3716. * src/DefaultBtContext.h
  3717. * src/DownloadContext.cc
  3718. * src/DownloadContext.h
  3719. * src/SingleFileDownloadContext.cc
  3720. * src/SingleFileDownloadContext.h
  3721. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3723. writeFilePath() function template from RequestGroupMan.cc to
  3724. FileEntry.h
  3725. * src/FileEntry.h
  3726. * src/RequestGroupMan.cc
  3727. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Documented 'position' parameter is starting from 0 in man page.
  3729. * doc/aria2c.1.txt
  3730. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3731. Updated doc.
  3732. * src/MSEHandshake.cc
  3733. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3734. Removed _acceptFeatures and its accessor functions from
  3735. RequestGroup since they are not used practically.
  3736. * src/HttpRequestCommand.cc
  3737. * src/RequestGroup.cc
  3738. * src/RequestGroup.h
  3739. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Removed member _maxTries from RequestGroup class to avoid
  3741. duplicate option value. Those classes who refer this variable
  3742. should use option value of PREF_MAX_TRIES directly.
  3743. * src/AbstractCommand.cc
  3744. * src/RequestGroup.cc
  3745. * src/RequestGroup.h
  3746. * src/TrackerWatcherCommand.cc
  3747. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. * Release 1.4.1
  3749. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Fixed compiler warnings on netbsd
  3751. * src/DHTConnectionImpl.cc
  3752. * src/PeerListenCommand.cc
  3753. * src/PeerSessionResource.cc
  3754. * src/SegmentMan.cc
  3755. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Updated Ukrainian translation. Thanks to all translators.
  3757. * po/uk.po
  3758. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Bump up version number to 1.4.1.
  3760. * configure.ac
  3761. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Added unit tests for strjoin, strconcat and strappend.
  3763. * test/a2functionalTest.cc
  3764. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Rewritten strconcat and strappend using operator+ instead of
  3766. append().
  3767. * src/a2functional.h
  3768. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3770. is enabled.
  3771. * src/Makefile.am
  3772. * test/Makefile.am
  3773. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3774. Added countSeeder() function which counts seeder in the given
  3775. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3776. * src/ConsoleStatCalc.cc
  3777. * src/Peer.h
  3778. * src/XmlRpcMethodImpl.cc
  3779. * test/PeerTest.cc
  3780. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Documented missing seeder in getPeers xml-rpc method.
  3782. Documented uploadLength and numSeeders.
  3783. * doc/aria2c.1.txt
  3784. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Added uploadLength and numSeeders to the response of tellStatus
  3786. xml-rpc method. Assert that PeerStorage instance is not null
  3787. instead of checking if statement. It should be non-null in this
  3788. context.
  3789. * src/XmlRpcMethodImpl.cc
  3790. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3792. * src/XmlRpcResponse.cc
  3793. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Avoid intermediate object during string concatenation.
  3795. * src/HttpRequest.cc
  3796. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Added strjoin function template. Use it in pathJoin()
  3798. * src/Util.h
  3799. * src/a2functional.h
  3800. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3801. Avoid intermediate object during string concatenation. Replaced
  3802. post-increment unary operator with pre-increment one in for loop.
  3803. * src/AdaptiveURISelector.cc
  3804. * src/AnnounceList.cc
  3805. * src/AuthConfig.h
  3806. * src/BtBitfieldMessage.cc
  3807. * src/BtExtendedMessage.cc
  3808. * src/BtHandshakeMessage.cc
  3809. * src/BtPieceMessage.cc
  3810. * src/BtPortMessage.cc
  3811. * src/Cookie.cc
  3812. * src/DHTAnnouncePeerMessage.cc
  3813. * src/DHTAutoSaveCommand.cc
  3814. * src/DHTGetPeersReplyMessage.cc
  3815. * src/DHTNode.cc
  3816. * src/DHTQueryMessage.cc
  3817. * src/DHTResponseMessage.cc
  3818. * src/DHTUnknownMessage.cc
  3819. * src/DefaultBtAnnounce.cc
  3820. * src/DefaultBtContext.cc
  3821. * src/DefaultBtInteractive.cc
  3822. * src/DefaultBtProgressInfoFile.cc
  3823. * src/DefaultPeerStorage.cc
  3824. * src/DownloadEngine.cc
  3825. * src/FeatureConfig.cc
  3826. * src/File.cc
  3827. * src/FtpConnection.cc
  3828. * src/FtpNegotiationCommand.cc
  3829. * src/HandshakeExtensionMessage.cc
  3830. * src/HttpConnection.cc
  3831. * src/HttpRequest.cc
  3832. * src/HttpResponseCommand.cc
  3833. * src/HttpServer.cc
  3834. * src/IndexBtMessage.cc
  3835. * src/Metalink2RequestGroup.cc
  3836. * src/OptionHandlerImpl.h
  3837. * src/PStringBuildVisitor.cc
  3838. * src/Peer.cc
  3839. * src/PeerListenCommand.cc
  3840. * src/Piece.cc
  3841. * src/RangeBtMessage.cc
  3842. * src/Request.cc
  3843. * src/Request.h
  3844. * src/RequestGroup.cc
  3845. * src/RequestGroupMan.cc
  3846. * src/ServerStat.cc
  3847. * src/ServerStatMan.cc
  3848. * src/UTPexExtensionMessage.cc
  3849. * src/Util.cc
  3850. * src/a2functional.h
  3851. * src/download_helper.cc
  3852. * src/messageDigest.cc
  3853. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Unchoke a peer randomly at first and second choke round in seed
  3855. state.
  3856. * src/BtSeederStateChoke.cc
  3857. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3858. Added (sock_t) to quiet compiler warnings in MinGW
  3859. * src/SocketCore.cc
  3860. * src/SocketCore.h
  3861. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3863. * src/EpollEventPoll.h
  3864. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3865. Added fork() emulation using CreateProcess() in MinGW
  3866. * src/RequestGroupMan.cc
  3867. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. * Release 1.4.0
  3869. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Added utf8.torrent to EXTRA_DIST
  3871. * test/Makefile.am
  3872. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Fixed docs of aria2.addMetalink xml-rpc method.
  3874. * doc/aria2c.1.txt
  3875. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. Added Slovak translation. Updated Ukrainian and Brazilian
  3877. Portuguese translation. Thanks to all translators.
  3878. * po/sk.po
  3879. * po/uk.po
  3880. * po/pt_BR.po
  3881. * po/LINGUAS
  3882. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Added test case for XmlRpcProcessor to fail to parse malformed
  3884. document.
  3885. * test/XmlRpcRequestProcessorTest.cc
  3886. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Removed *.gmo files in po because they are generated on 'make
  3888. dist'
  3889. * po/*.gmo
  3890. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Documented max-concurrent-downloads of changeGlobalOption method
  3892. in man page.
  3893. * doc/aria2c.1.txt
  3894. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Added max-concurrent-downloads option to changeGlobalOption
  3896. xml-rpc method. Rewritten loop conditional in
  3897. RequestGroupMan::fillRequestGroupFromReserver().
  3898. * src/RequestGroupMan.cc
  3899. * src/RequestGroupMan.h
  3900. * src/XmlRpcMethod.cc
  3901. * src/XmlRpcMethodImpl.cc
  3902. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Documented position parameter in man page.
  3904. * doc/aria2c.1.txt
  3905. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Added 'position' parameter to addUri, addTorrent and addMetalink
  3907. xml-rpc method.
  3908. * src/RequestGroupMan.cc
  3909. * src/RequestGroupMan.h
  3910. * src/XmlRpcMethodImpl.cc
  3911. * test/XmlRpcMethodTest.cc
  3912. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Removed Peer.cc from compile source list when --disable-bittorrent
  3914. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3915. takes Peer.
  3916. * src/DefaultPieceStorage.cc
  3917. * src/DefaultPieceStorage.h
  3918. * src/Makefile.am
  3919. * src/PieceStorage.h
  3920. * src/UnknownLengthPieceStorage.cc
  3921. * src/UnknownLengthPieceStorage.h
  3922. * test/MockPieceStorage.h
  3923. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Implemented getter methods in header files to give them more
  3925. chance of optimization.
  3926. Return const reference for SharadHandle if possible.
  3927. * src/AbstractAuthResolver.cc
  3928. * src/AbstractAuthResolver.h
  3929. * src/AbstractBtMessage.cc
  3930. * src/AbstractBtMessage.h
  3931. * src/AbstractSingleDiskAdaptor.cc
  3932. * src/AbstractSingleDiskAdaptor.h
  3933. * src/AsyncNameResolver.cc
  3934. * src/AsyncNameResolver.h
  3935. * src/BNode.cc
  3936. * src/BNode.h
  3937. * src/BitfieldMan.cc
  3938. * src/BitfieldMan.h
  3939. * src/BtAbortOutstandingRequestEvent.h
  3940. * src/BtExtendedMessage.cc
  3941. * src/BtExtendedMessage.h
  3942. * src/BtSeederStateChoke.cc
  3943. * src/BtSeederStateChoke.h
  3944. * src/Cookie.cc
  3945. * src/Cookie.h
  3946. * src/DHTBucket.cc
  3947. * src/DHTBucket.h
  3948. * src/DHTConnectionImpl.cc
  3949. * src/DHTConnectionImpl.h
  3950. * src/DHTFindNodeReplyMessage.cc
  3951. * src/DHTFindNodeReplyMessage.h
  3952. * src/DHTGetPeersReplyMessage.cc
  3953. * src/DHTGetPeersReplyMessage.h
  3954. * src/DHTInteractionCommand.cc
  3955. * src/DHTMessage.cc
  3956. * src/DHTMessage.h
  3957. * src/DHTMessageDispatcherImpl.cc
  3958. * src/DHTMessageEntry.cc
  3959. * src/DHTMessageReceiver.cc
  3960. * src/DHTMessageReceiver.h
  3961. * src/DHTMessageTrackerEntry.cc
  3962. * src/DHTMessageTrackerEntry.h
  3963. * src/DHTPeerAnnounceEntry.cc
  3964. * src/DHTPeerAnnounceEntry.h
  3965. * src/DHTPeerLookupTask.cc
  3966. * src/DHTPeerLookupTask.h
  3967. * src/DHTRoutingTableDeserializer.cc
  3968. * src/DHTRoutingTableDeserializer.h
  3969. * src/DefaultBtAnnounce.cc
  3970. * src/DefaultBtAnnounce.h
  3971. * src/DefaultBtMessageDispatcher.cc
  3972. * src/DefaultBtMessageDispatcher.h
  3973. * src/DefaultBtRequestFactory.cc
  3974. * src/DefaultBtRequestFactory.h
  3975. * src/DiskAdaptor.cc
  3976. * src/DiskAdaptor.h
  3977. * src/DownloadContext.cc
  3978. * src/DownloadContext.h
  3979. * src/DownloadEngine.cc
  3980. * src/DownloadEngine.h
  3981. * src/EpollEventPoll.cc
  3982. * src/EpollEventPoll.h
  3983. * src/FtpConnection.cc
  3984. * src/FtpConnection.h
  3985. * src/HttpConnection.cc
  3986. * src/HttpConnection.h
  3987. * src/HttpHeader.cc
  3988. * src/HttpHeader.h
  3989. * src/HttpRequest.cc
  3990. * src/HttpRequest.h
  3991. * src/HttpResponse.cc
  3992. * src/HttpResponse.h
  3993. * src/LibsslTLSContext.cc
  3994. * src/LibsslTLSContext.h
  3995. * src/MSEHandshake.cc
  3996. * src/MSEHandshake.h
  3997. * src/MetalinkEntry.cc
  3998. * src/MetalinkEntry.h
  3999. * src/MetalinkParserController.cc
  4000. * src/MetalinkParserController.h
  4001. * src/MetalinkParserStateMachine.cc
  4002. * src/MetalinkParserStateMachine.h
  4003. * src/MultiDiskAdaptor.cc
  4004. * src/MultiDiskAdaptor.h
  4005. * src/NetrcAuthResolver.cc
  4006. * src/NetrcAuthResolver.h
  4007. * src/Peer.cc
  4008. * src/Peer.h
  4009. * src/PeerSessionResource.cc
  4010. * src/PeerSessionResource.h
  4011. * src/Piece.cc
  4012. * src/Piece.h
  4013. * src/PieceStatMan.cc
  4014. * src/PieceStatMan.h
  4015. * src/Request.cc
  4016. * src/Request.h
  4017. * src/RequestGroup.cc
  4018. * src/RequestGroup.h
  4019. * src/RequestGroupMan.cc
  4020. * src/RequestGroupMan.h
  4021. * src/RequestSlot.cc
  4022. * src/RequestSlot.h
  4023. * src/SegmentMan.cc
  4024. * src/SegmentMan.h
  4025. * src/SelectEventPoll.cc
  4026. * src/SelectEventPoll.h
  4027. * src/ServerStat.cc
  4028. * src/ServerStat.h
  4029. * src/Signature.cc
  4030. * src/Signature.h
  4031. * src/URIResult.cc
  4032. * src/URIResult.h
  4033. * src/UTPexExtensionMessage.cc
  4034. * src/UTPexExtensionMessage.h
  4035. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Fixed compile error without BitTorrent and Metalink support.
  4037. * src/XmlRpcMethod.cc
  4038. * src/XmlRpcMethodFactory.cc
  4039. * src/XmlRpcMethodImpl.cc
  4040. * src/XmlRpcMethodImpl.h
  4041. * test/XmlRpcMethodTest.cc
  4042. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. Rewritten the help message for --allow-overwrite option.
  4044. * doc/aria2c.1.txt
  4045. * src/usage_text.h
  4046. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Fixed typo
  4048. * doc/aria2c.1.txt
  4049. * src/usage_text.h
  4050. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Updated README for 1.4.0 release. Use new table syntax of
  4052. asciidoc.
  4053. * README
  4054. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Documented --xml-rpc-max-request-size option in man page.
  4056. * doc/aria2c.1.txt
  4057. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Moved C_* constants from BtContext to DefaultBtContext.
  4059. * src/BtContext.cc: Removed.
  4060. * src/BtContext.h
  4061. * src/DefaultBtContext.cc
  4062. * src/DefaultBtContext.h
  4063. * src/Makefile.am
  4064. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4066. path key respectively when persing .torrent file.
  4067. * src/BtContext.cc
  4068. * src/BtContext.h
  4069. * src/DefaultBtContext.cc
  4070. * test/DefaultBtContextTest.cc
  4071. * test/utf8.torrent
  4072. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4073. Added --xml-rpc-max-request-size option to limit the size of
  4074. XML-RPC request.
  4075. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. Documented XML-RPC API in man page.
  4077. * doc/aria2c.1.txt
  4078. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4080. will break strict-aliasing rules
  4081. * src/PeerConnection.cc
  4082. * test/DHTRoutingTableSerializerTest.cc
  4083. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4084. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4085. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4086. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4087. PKG_CHECK_MODULES macro uses latter name.
  4088. * m4/sqlite3.m4
  4089. * src/Makefile.am
  4090. * test/Makefile.am
  4091. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Fixed typo
  4093. * configure.ac
  4094. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4096. presence of libgnutls using pkg-config first. If it fails, fall
  4097. back to old macro libgnutls.m4.
  4098. * configure.ac
  4099. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Use s itself instead of !s.bad()
  4101. * src/CookieStorage.cc
  4102. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Documented --on-download-* option and --save-cookies option in man
  4104. page.
  4105. * doc/aria2c.1.txt
  4106. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4107. Set possible values for --load-cookie option to "/path/to/file".
  4108. * src/OptionHandlerFactory.cc
  4109. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Added --save-cookies option.
  4111. * src/Cookie.cc
  4112. * src/Cookie.h
  4113. * src/CookieStorage.cc
  4114. * src/CookieStorage.h
  4115. * src/MultiUrlRequestInfo.cc
  4116. * src/OptionHandlerFactory.cc
  4117. * src/prefs.cc
  4118. * src/prefs.h
  4119. * src/usage_text.h
  4120. * test/CookieStorageTest.cc
  4121. * test/CookieTest.cc
  4122. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Removed tellAll XML-RPC command because its reponse tends to be
  4124. big if stopped/waiting downloads pile up.
  4125. * src/XmlRpcMethodFactory.cc
  4126. * src/XmlRpcMethodImpl.cc
  4127. * src/XmlRpcMethodImpl.h
  4128. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. Added the ability to execute command when download starts and
  4130. stops. You can also specify command for particular cases such as
  4131. complete/error download. Added --on-download-start,
  4132. --on-download-stop, --on-download-complete and --on-download-error
  4133. option.
  4134. * src/OptionHandlerFactory.cc
  4135. * src/RequestGroupMan.cc
  4136. * src/prefs.cc
  4137. * src/prefs.h
  4138. * src/usage_text.h
  4139. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Fixed test error
  4141. * test/BencodeTest.cc
  4142. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4143. Added unit tests.
  4144. * test/XmlRpcMethodTest.cc
  4145. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4146. Made exception message more verbose.
  4147. * src/bencode.cc
  4148. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4149. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4150. space in console readout. Also they are now shown in MiB/s if
  4151. speed > 1024KiB/s.
  4152. * src/ConsoleStatCalc.cc
  4153. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Added SEED to console output, which represents the number of
  4155. seeders currently the client is connecting to.
  4156. * src/ConsoleStatCalc.cc
  4157. * src/ConsoleStatCalc.h
  4158. * src/DownloadEngine.cc
  4159. * src/NullStatCalc.h
  4160. * src/StatCalc.h
  4161. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Added source filename(__FILE__) and line number(__LINE__) to
  4163. exception message.
  4164. * src/AbstractCommand.cc
  4165. * src/AbstractDiskWriter.cc
  4166. * src/AbstractProxyResponseCommand.cc
  4167. * src/BDE.h
  4168. * src/BtAllowedFastMessage.cc
  4169. * src/BtHandshakeMessageValidator.h
  4170. * src/BtHaveAllMessage.cc
  4171. * src/BtHaveNoneMessage.cc
  4172. * src/BtPieceMessage.cc
  4173. * src/BtRejectMessage.cc
  4174. * src/ChunkedDecoder.cc
  4175. * src/CookieStorage.cc
  4176. * src/DHTAnnouncePeerMessage.cc
  4177. * src/DHTEntryPointNameResolveCommand.cc
  4178. * src/DHTMessageFactoryImpl.cc
  4179. * src/DHTMessageTracker.cc
  4180. * src/DHTRoutingTableDeserializer.cc
  4181. * src/DHTRoutingTableSerializer.cc
  4182. * src/DHTSetup.cc
  4183. * src/DHTTokenTracker.cc
  4184. * src/DefaultBtAnnounce.cc
  4185. * src/DefaultBtContext.cc
  4186. * src/DefaultBtInteractive.cc
  4187. * src/DefaultBtMessageFactory.cc
  4188. * src/DefaultBtProgressInfoFile.cc
  4189. * src/DefaultExtensionMessageFactory.cc
  4190. * src/DlAbortEx.h
  4191. * src/DlRetryEx.h
  4192. * src/DownloadCommand.cc
  4193. * src/DownloadEngineFactory.cc
  4194. * src/DownloadFailureException.h
  4195. * src/Exception.cc
  4196. * src/Exception.h
  4197. * src/ExpatMetalinkProcessor.cc
  4198. * src/ExpatXmlRpcRequestProcessor.cc
  4199. * src/FallocFileAllocationIterator.cc
  4200. * src/FatalException.h
  4201. * src/FtpConnection.cc
  4202. * src/FtpFinishDownloadCommand.cc
  4203. * src/FtpInitiateConnectionCommand.cc
  4204. * src/FtpNegotiationCommand.cc
  4205. * src/GZipDecoder.cc
  4206. * src/HandshakeExtensionMessage.cc
  4207. * src/HttpConnection.cc
  4208. * src/HttpHeaderProcessor.cc
  4209. * src/HttpInitiateConnectionCommand.cc
  4210. * src/HttpResponse.cc
  4211. * src/HttpResponseCommand.cc
  4212. * src/HttpServer.cc
  4213. * src/HttpSkipResponseCommand.cc
  4214. * src/InitiateConnectionCommandFactory.cc
  4215. * src/IteratableChunkChecksumValidator.cc
  4216. * src/LibgcryptARC4Context.h
  4217. * src/LibgcryptARC4Decryptor.h
  4218. * src/LibgcryptARC4Encryptor.h
  4219. * src/LibgcryptDHKeyExchange.h
  4220. * src/LibgnutlsTLSContext.cc
  4221. * src/LibsslARC4Context.h
  4222. * src/LibsslARC4Decryptor.h
  4223. * src/LibsslARC4Encryptor.h
  4224. * src/LibsslDHKeyExchange.h
  4225. * src/LibsslTLSContext.cc
  4226. * src/MSEHandshake.cc
  4227. * src/MessageDigestHelper.cc
  4228. * src/MetalinkHelper.cc
  4229. * src/MultiDiskAdaptor.cc
  4230. * src/NameMatchOptionHandler.h
  4231. * src/NameResolver.cc
  4232. * src/Netrc.cc
  4233. * src/NsCookieParser.cc
  4234. * src/OptionHandlerException.cc
  4235. * src/OptionHandlerException.h
  4236. * src/OptionHandlerImpl.h
  4237. * src/OptionParser.cc
  4238. * src/ParameterizedStringParser.cc
  4239. * src/PeerAbstractCommand.cc
  4240. * src/PeerConnection.cc
  4241. * src/PeerMessageUtil.cc
  4242. * src/PeerReceiveHandshakeCommand.cc
  4243. * src/Platform.cc
  4244. * src/ReceiverMSEHandshakeCommand.cc
  4245. * src/RecoverableException.h
  4246. * src/RequestGroup.cc
  4247. * src/SimpleLogger.cc
  4248. * src/SocketCore.cc
  4249. * src/Sqlite3MozCookieParser.cc
  4250. * src/UTPexExtensionMessage.cc
  4251. * src/Util.cc
  4252. * src/XML2SAXMetalinkProcessor.cc
  4253. * src/Xml2XmlRpcRequestProcessor.cc
  4254. * src/XmlRpcMethodImpl.cc
  4255. * src/bencode.cc
  4256. * src/download_helper.cc
  4257. * src/messageDigest.h
  4258. * test/ExceptionTest.cc
  4259. * test/TestUtil.cc
  4260. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4261. Bump up version number to 1.4.0
  4262. * configure.ac
  4263. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Added 2files.metalink to EXTRA_DIST
  4265. * test/Makefile.am
  4266. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Added missing 2files.metalink
  4268. * test/2files.metalink
  4269. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Show "[MEMORY]" prefix before filename in download summary if it
  4271. is downloaded into memory.
  4272. * src/DownloadResult.h
  4273. * src/RequestGroup.cc
  4274. * src/RequestGroupMan.cc
  4275. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4277. * src/ExpatXmlRpcRequestProcessor.cc
  4278. * src/Xml2XmlRpcRequestProcessor.cc
  4279. * src/message.h
  4280. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4281. Defined const BDEs to avoid duplicate instantiation.
  4282. Defined MSG_GID_NOT_PROVIDED.
  4283. * src/XmlRpcMethodImpl.cc
  4284. * src/message.h
  4285. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4286. Code cleanup
  4287. * src/Xml2XmlRpcRequestProcessor.cc
  4288. * src/Xml2XmlRpcRequestProcessor.h
  4289. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4290. Defined ENABLE_XML_RPC
  4291. * configure.ac
  4292. * configure
  4293. * config.h.in
  4294. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4295. Added ExpatXmlRpcRequestProcessor
  4296. * src/ExpatXmlRpcRequestProcessor.cc
  4297. * src/ExpatXmlRpcRequestProcessor.h
  4298. * src/Makefile.am
  4299. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Added tests for addTorrent and addMetalink command.
  4301. * test/TestUtil.cc
  4302. * test/TestUtil.h
  4303. * test/XmlRpcMethodTest.cc
  4304. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. Corrected the description of --file-allocation option.
  4306. * doc/aria2c.1.txt
  4307. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Added tellAll command.
  4309. * src/XmlRpcMethodFactory.cc
  4310. * src/XmlRpcMethodImpl.cc
  4311. * src/XmlRpcMethodImpl.h
  4312. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4314. * src/XmlRpcMethodImpl.cc
  4315. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Added changeGlobalOption command. Currently,
  4317. max-overall-download-limit and max-overall-upload-limit option are
  4318. available.
  4319. * src/RequestGroupMan.h
  4320. * src/XmlRpcMethod.cc
  4321. * src/XmlRpcMethod.h
  4322. * src/XmlRpcMethodFactory.cc
  4323. * src/XmlRpcMethodImpl.cc
  4324. * src/XmlRpcMethodImpl.h
  4325. * test/XmlRpcMethodTest.cc
  4326. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Added changeOption command. Currently, max-download-limit,
  4328. max-upload-limit option are available in this command.
  4329. * src/RequestGroup.h
  4330. * src/XmlRpcMethod.cc
  4331. * src/XmlRpcMethod.h
  4332. * src/XmlRpcMethodFactory.cc
  4333. * src/XmlRpcMethodImpl.cc
  4334. * src/XmlRpcMethodImpl.h
  4335. * test/XmlRpcMethodTest.cc
  4336. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Added purgeDownloadResult command.
  4338. * src/RequestGroupMan.cc
  4339. * src/RequestGroupMan.h
  4340. * src/XmlRpcMethodFactory.cc
  4341. * src/XmlRpcMethodImpl.cc
  4342. * src/XmlRpcMethodImpl.h
  4343. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Refactored.
  4345. * src/XmlRpcMethod.cc
  4346. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4347. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4348. XmlRpcResponse.
  4349. * src/HttpServerBodyCommand.cc
  4350. * src/Makefile.am
  4351. * src/XmlRpcMethod.cc
  4352. * src/XmlRpcMethod.h
  4353. * src/XmlRpcMethodImpl.cc
  4354. * src/XmlRpcResponse.cc
  4355. * src/XmlRpcResponse.h
  4356. * test/XmlRpcMethodTest.cc
  4357. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. In XML-RPC option struct, header and index-out option can take
  4359. array as value.
  4360. * src/XmlRpcMethod.cc
  4361. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Removed unused option member from PeerConnection.
  4363. * src/InitiatorMSEHandshakeCommand.cc
  4364. * src/PeerConnection.cc
  4365. * src/PeerConnection.h
  4366. * src/PeerInteractionCommand.cc
  4367. * src/PeerReceiveHandshakeCommand.cc
  4368. * src/ReceiverMSEHandshakeCommand.cc
  4369. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4370. Added "seeder" key to getPeers response.
  4371. * src/XmlRpcMethodImpl.cc
  4372. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Added addMetalink XML-RPC command.
  4374. * src/XmlRpcMethodFactory.cc
  4375. * src/XmlRpcMethodImpl.cc
  4376. * src/XmlRpcMethodImpl.h
  4377. * src/download_helper.cc
  4378. * src/download_helper.h
  4379. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Fixed the bug that POU peers are never choked in seeding.
  4381. * src/BtSeederStateChoke.cc
  4382. * src/BtSeederStateChoke.h
  4383. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Added web-seeding URI handling in addTorrent command.
  4385. * src/XmlRpcMethodImpl.cc
  4386. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Added "length" key to getFiles response.
  4388. * src/XmlRpcMethodImpl.cc
  4389. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Moved --no-netrc option from ftp option section to http/ftp option
  4391. section.
  4392. * doc/aria2c.1.txt
  4393. * src/OptionHandlerFactory.cc
  4394. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Removed garbage "\" character before '
  4396. * doc/aria2c.1.txt
  4397. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Removed garbage "\" character before http.
  4399. * doc/aria2c.1.txt
  4400. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Documented additional options that can be specified in -i list.
  4402. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4403. and --xml-rpc-passwd. Removed --enable-http-server and
  4404. --http-server-listen-port.
  4405. * doc/aria2c.1.txt
  4406. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4408. * src/DefaultPeerStorage.cc
  4409. * src/DefaultPeerStorage.h
  4410. * src/PeerStorage.h
  4411. * src/XmlRpcMethodImpl.cc
  4412. * test/MockPeerStorage.h
  4413. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Put a call to Socket::isReadable() in try block.
  4415. * src/HttpServerBodyCommand.cc
  4416. * src/HttpServerCommand.cc
  4417. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4418. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4419. exception , so it is now in try block.
  4420. * src/HttpServerResponseCommand.cc
  4421. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Added "amChoking" and "peerChoking" key in getPeers response.
  4423. * src/XmlRpcMethodImpl.cc
  4424. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Added test case for zero-length filter.
  4426. * test/BitfieldManTest.cc
  4427. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. getFiles command now returns file data for finished/stopped
  4429. downloads.
  4430. * src/XmlRpcMethodImpl.cc
  4431. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4432. DownloadResult now has the list of FileEntry. The download
  4433. summary displays the path of first selected file and the number of
  4434. remaining files for multi-file torrent.
  4435. * src/DownloadResult.h
  4436. * src/RequestGroup.cc
  4437. * src/RequestGroupMan.cc
  4438. * test/RequestGroupTest.cc
  4439. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Fixed segmentation fault error when no file is selected in
  4441. multi-file torrent.
  4442. * src/BitfieldMan.cc
  4443. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Escaped <,>,& character in XML-RPC response.
  4445. * src/XmlRpcMethod.cc
  4446. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Throw DlAbortEx instead of FatalException during parsing options
  4448. because we don't want for aria2 to quit when bad option is passed
  4449. via XML-RPC.
  4450. * src/OptionHandlerException.cc
  4451. * src/OptionHandlerException.h
  4452. * src/OptionHandlerImpl.h
  4453. * src/OptionParser.cc
  4454. * src/OptionParser.h
  4455. * src/PStringSegment.cc
  4456. * src/ParameterizedStringParser.cc
  4457. * src/download_helper.cc
  4458. * test/ParameterizedStringParserTest.cc
  4459. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Selecting files are now done in
  4461. DefaultBtContext::setFileFileter().
  4462. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4463. functions are removed because they are no longer used. Creating
  4464. filter in BitfieldMan is done in new funtion
  4465. PieceStorage::setupFileFilter()
  4466. * src/BtContext.cc
  4467. * src/BtContext.h
  4468. * src/DefaultBtContext.cc
  4469. * src/DefaultBtContext.h
  4470. * src/DefaultPieceStorage.cc
  4471. * src/DefaultPieceStorage.h
  4472. * src/DiskAdaptor.cc
  4473. * src/DiskAdaptor.h
  4474. * src/PieceStorage.h
  4475. * src/RequestGroup.cc
  4476. * src/UnknownLengthPieceStorage.h
  4477. * src/XmlRpcMethodImpl.cc
  4478. * test/DefaultBtContextTest.cc
  4479. * test/MockBtContext.h
  4480. * test/MockPieceStorage.h
  4481. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Fixed compile error on Mac OS X
  4483. * src/HttpServer.cc
  4484. * src/XmlRpcMethod.h
  4485. * src/XmlRpcMethodImpl.cc
  4486. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Use std::binary_search instead of std::find
  4488. * src/DefaultPieceStorage.cc
  4489. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. Removed unnecessary BDE() call; leave them to implicit conversion.
  4491. * src/XmlRpcMethodImpl.cc
  4492. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Return connections and gid in string
  4494. * src/XmlRpcMethodImpl.cc
  4495. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4496. Renamed addURI as addUri
  4497. * src/XmlRpcMethodFactory.cc
  4498. * src/XmlRpcMethodImpl.cc
  4499. * src/XmlRpcMethodImpl.h
  4500. * test/XmlRpcMethodTest.cc
  4501. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Renamed addTorrentFile as addTorrent
  4503. * src/XmlRpcMethodFactory.cc
  4504. * src/XmlRpcMethodImpl.cc
  4505. * src/XmlRpcMethodImpl.h
  4506. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. The information for files, URIs, peers are removed from the
  4508. reponse of TellaActive, TellStatus command because they tend to be
  4509. large. Instead they can be retrieved by the dedicated commands:
  4510. getFiles, getUris and getPeers respectively.
  4511. * src/XmlRpcMethodFactory.cc
  4512. * src/XmlRpcMethodImpl.cc
  4513. * src/XmlRpcMethodImpl.h
  4514. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Removed --max-overall-upload-limit and
  4516. --max-overall-download-limit option from listRequestOptions.
  4517. * src/download_helper.cc
  4518. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Log incoming host in HttpListenCommand.
  4520. * src/HttpListenCommand.cc
  4521. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4522. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4523. --xml-rpc-passwd option.
  4524. * src/HttpServer.cc
  4525. * src/HttpServer.h
  4526. * src/HttpServerCommand.cc
  4527. * src/OptionHandlerFactory.cc
  4528. * src/prefs.cc
  4529. * src/prefs.h
  4530. * src/usage_text.h
  4531. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4533. processing 0 length request.
  4534. * src/HttpServerBodyCommand.cc
  4535. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Removed --enable-http-server and --http-server-listen-port
  4537. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4538. instead. The original feature for --enable-http-server that
  4539. reports download progress in HTML was officially removed. Persist
  4540. XML-RPC connection if client supports keep-alive.
  4541. * src/DownloadEngineFactory.cc
  4542. * src/HttpServerCommand.cc
  4543. * src/HttpServerResponseCommand.cc
  4544. * src/Makefile.am
  4545. * src/Makefile.in
  4546. * src/OptionHandlerFactory.cc
  4547. * src/RequestGroupMan.cc
  4548. * src/main.cc
  4549. * src/option_processing.cc
  4550. * src/prefs.cc
  4551. * src/prefs.h
  4552. * src/usage_text.h
  4553. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Added "uris" key to the response of tellStatus command. Added
  4555. "connections" key to the response of tellStatus and tellActive
  4556. command.
  4557. * src/XmlRpcMethodImpl.cc
  4558. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4559. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4560. Added TellStatusXmlRpcMethod. Remove command can now remove
  4561. waiting RequestGroup.
  4562. * src/RequestGroupMan.cc
  4563. * src/RequestGroupMan.h
  4564. * src/XmlRpcMethodFactory.cc
  4565. * src/XmlRpcMethodImpl.cc
  4566. * src/XmlRpcMethodImpl.h
  4567. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Initialized _peerId
  4569. * src/Peer.cc
  4570. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Return fault structure for error. FailXmlRpcMethod is renamed as
  4572. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4573. in non-torrent download. Return single param value.
  4574. * src/XmlRpcMethod.cc
  4575. * src/XmlRpcMethodFactory.cc
  4576. * src/XmlRpcMethodImpl.cc
  4577. * src/XmlRpcMethodImpl.h
  4578. * test/XmlRpcMethodTest.cc
  4579. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4581. command.
  4582. * src/RequestGroup.cc
  4583. * src/RequestGroup.h
  4584. * src/RequestGroupMan.cc
  4585. * src/XmlRpcMethodImpl.cc
  4586. * test/RequestGroupTest.cc
  4587. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Added more options that can be specified in -i list and xml-rpc
  4589. add* command.
  4590. * src/download_helper.h
  4591. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. The available options in -i list should be listed in
  4593. listRequestOptions().
  4594. * src/download_helper.cc
  4595. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4597. command.
  4598. * src/XmlRpcMethodImpl.cc
  4599. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Now RequestGroup has its own copy of Option object. This will help
  4601. to give custom option for each RequestGroup.
  4602. addTorrentFile command now takes options.
  4603. * src/AbstractCommand.cc
  4604. * src/AbstractCommand.h
  4605. * src/AbstractProxyRequestCommand.cc
  4606. * src/ActivePeerConnectionCommand.cc
  4607. * src/ActivePeerConnectionCommand.h
  4608. * src/AdaptiveURISelector.cc
  4609. * src/BtCheckIntegrityEntry.cc
  4610. * src/BtDependency.cc
  4611. * src/BtDependency.h
  4612. * src/BtFileAllocationEntry.cc
  4613. * src/BtPostDownloadHandler.cc
  4614. * src/CheckIntegrityEntry.cc
  4615. * src/DownloadCommand.cc
  4616. * src/FtpDownloadCommand.cc
  4617. * src/FtpFinishDownloadCommand.cc
  4618. * src/FtpInitiateConnectionCommand.cc
  4619. * src/FtpNegotiationCommand.cc
  4620. * src/HttpInitiateConnectionCommand.cc
  4621. * src/HttpRequestCommand.cc
  4622. * src/HttpResponseCommand.cc
  4623. * src/HttpSkipResponseCommand.cc
  4624. * src/InitiateConnectionCommand.cc
  4625. * src/InitiateConnectionCommandFactory.cc
  4626. * src/InitiatorMSEHandshakeCommand.cc
  4627. * src/InitiatorMSEHandshakeCommand.h
  4628. * src/Metalink2RequestGroup.cc
  4629. * src/Metalink2RequestGroup.h
  4630. * src/MetalinkPostDownloadHandler.cc
  4631. * src/MultiUrlRequestInfo.cc
  4632. * src/MultiUrlRequestInfo.h
  4633. * src/PeerAbstractCommand.cc
  4634. * src/PeerInteractionCommand.cc
  4635. * src/PeerInteractionCommand.h
  4636. * src/PeerReceiveHandshakeCommand.cc
  4637. * src/PeerReceiveHandshakeCommand.h
  4638. * src/RequestGroup.cc
  4639. * src/RequestGroup.h
  4640. * src/TrackerWatcherCommand.cc
  4641. * src/TrackerWatcherCommand.h
  4642. * src/XmlRpcMethod.cc
  4643. * src/XmlRpcMethod.h
  4644. * src/XmlRpcMethodImpl.cc
  4645. * src/download_helper.cc
  4646. * src/download_helper.h
  4647. * src/main.cc
  4648. * test/BtDependencyTest.cc
  4649. * test/BtPostDownloadHandlerTest.cc
  4650. * test/DefaultBtMessageDispatcherTest.cc
  4651. * test/DownloadHandlerFactoryTest.cc
  4652. * test/DownloadHelperTest.cc
  4653. * test/Metalink2RequestGroupTest.cc
  4654. * test/MetalinkPostDownloadHandlerTest.cc
  4655. * test/RequestGroupManTest.cc
  4656. * test/RequestGroupTest.cc
  4657. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Added tellActiveStatus xml-rpc command which reports download
  4659. status of active downloads.
  4660. * src/XmlRpcMethodFactory.cc
  4661. * src/XmlRpcMethodImpl.cc
  4662. * src/XmlRpcMethodImpl.h
  4663. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. Added addTorrentFile xml-rpc command which receives uploaded
  4665. torrent file and add download for it.
  4666. * src/RequestGroupMan.cc
  4667. * src/XmlRpcMethodFactory.cc
  4668. * src/XmlRpcMethodImpl.cc
  4669. * src/XmlRpcMethodImpl.h
  4670. * src/download_helper.cc
  4671. * src/download_helper.h
  4672. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Added remove xml-rpc command which removes specified download.
  4674. There is a known issue: the removed unfinished downloads are
  4675. reported ERR when aria2 exits. They should be reported as INPR.
  4676. * src/RequestGroupMan.cc
  4677. * src/RequestGroupMan.h
  4678. * src/XmlRpcMethodFactory.cc
  4679. * src/XmlRpcMethodImpl.cc
  4680. * src/XmlRpcMethodImpl.h
  4681. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. If --enable-http-server is enabled, don't stop aria2 when all
  4683. download finished and don't quit when no files to download at
  4684. start up.
  4685. * src/RequestGroupMan.cc
  4686. * src/main.cc
  4687. * src/option_processing.cc
  4688. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Added missing AM_CONDITIONAL
  4690. * configure.ac
  4691. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Added xml-rpc functionality. Currently only addURI commad is
  4693. supported. To enable xml-rpc, run aria2 with
  4694. --enable-http-server. This option name is temporal and will be
  4695. changed. The feature that reports download progress in html format
  4696. is temporarily disabled.
  4697. * src/HttpServer.cc
  4698. * src/HttpServer.h
  4699. * src/HttpServerBodyCommand.cc
  4700. * src/HttpServerBodyCommand.h
  4701. * src/HttpServerCommand.cc
  4702. * src/HttpServerResponseCommand.cc
  4703. * src/Makefile.am
  4704. * src/OptionParser.cc
  4705. * src/OptionParser.h
  4706. * src/RequestGroupMan.cc
  4707. * src/RequestGroupMan.h
  4708. * src/XmlRpcMethod.cc
  4709. * src/XmlRpcMethod.h
  4710. * src/XmlRpcMethodFactory.cc
  4711. * src/XmlRpcMethodFactory.h
  4712. * src/XmlRpcMethodImpl.cc
  4713. * src/XmlRpcMethodImpl.h
  4714. * src/download_helper.cc
  4715. * src/download_helper.h
  4716. * test/Makefile.am
  4717. * test/XmlRpcMethodTest.cc
  4718. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4719. Added xml-rpc request parser. The supported value types are:
  4720. i4/int, string, double, struct, array, base64. Currently only
  4721. libxml2 version is provided.
  4722. * src/Xml2XmlRpcRequestProcessor.cc
  4723. * src/Xml2XmlRpcRequestProcessor.h
  4724. * src/XmlRpcElements.cc
  4725. * src/XmlRpcElements.h
  4726. * src/XmlRpcRequest.h
  4727. * src/XmlRpcRequestParserController.cc
  4728. * src/XmlRpcRequestParserController.h
  4729. * src/XmlRpcRequestParserState.h
  4730. * src/XmlRpcRequestParserStateImpl.cc
  4731. * src/XmlRpcRequestParserStateImpl.h
  4732. * src/XmlRpcRequestParserStateMachine.cc
  4733. * src/XmlRpcRequestParserStateMachine.h
  4734. * src/XmlRpcRequestProcessor.h
  4735. * test/XmlRpcRequestParserControllerTest.cc
  4736. * test/XmlRpcRequestProcessorTest.cc
  4737. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. * Release 1.3.3
  4739. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4740. Fixed compile error since r1202.
  4741. * src/ExpatMetalinkProcessor.cc
  4742. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Updated Ukrainian, Russian and Simplified Chinese
  4744. translations. Thanks to all translators.
  4745. * po/ru.po
  4746. * po/uk.po
  4747. * po/zh_CN.po
  4748. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4749. Pass reference of Option object instead of pointer.
  4750. * src/download_helper.cc
  4751. * src/download_helper.h
  4752. * src/main.cc
  4753. * test/DownloadHelperTest.cc
  4754. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4755. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4756. from option directly. Instead, get them from RequestGroup.
  4757. * src/ActivePeerConnectionCommand.cc
  4758. * src/ActivePeerConnectionCommand.h
  4759. * src/PeerReceiveHandshakeCommand.cc
  4760. * src/RequestGroup.h
  4761. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Removed unused uploadLimitCheck and uploadLimit from
  4763. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4764. PeerInteractionCommand.
  4765. * src/PeerAbstractCommand.cc
  4766. * src/PeerAbstractCommand.h
  4767. * src/PeerInteractionCommand.cc
  4768. * src/PeerInteractionCommand.h
  4769. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Fixed broken file renaming feature since r1202.
  4771. * src/FtpNegotiationCommand.cc
  4772. * src/FtpNegotiationCommand.h
  4773. * src/HttpResponseCommand.cc
  4774. * src/RequestGroup.cc
  4775. * src/RequestGroup.h
  4776. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4777. Removed unused debug log
  4778. * src/SocketCore.cc
  4779. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Generated configure and Makefile.in using autoconf 2.63 and
  4781. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4782. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4783. * configure.ac
  4784. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Moved piece statistics stuff to new PieceStatMan class.
  4786. Refactored PieceSelector interface.
  4787. * src/DefaultPieceStorage.cc
  4788. * src/DefaultPieceStorage.h
  4789. * src/LongestSequencePieceSelector.cc
  4790. * src/LongestSequencePieceSelector.h
  4791. * src/Makefile.am
  4792. * src/PieceSelector.h
  4793. * src/PieceStatMan.cc
  4794. * src/PieceStatMan.h
  4795. * src/RarestPieceSelector.cc
  4796. * src/RarestPieceSelector.h
  4797. * src/RequestGroup.cc
  4798. * test/DefaultPieceStorageTest.cc
  4799. * test/InOrderPieceSelector.h
  4800. * test/Makefile.am
  4801. * test/PieceStatManTest.cc
  4802. * test/RarestPieceSelectorTest.cc
  4803. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Added static member _protocolFamily to SocketCore. By default,
  4805. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4806. address. Sometime SocketCore::bind() and
  4807. SocketCore::establishConnection() use difference protocl family
  4808. and latter cannot connect to former. To avoid this situation, we
  4809. limit protocol family to AF_INET for unit tests.
  4810. * src/SocketCore.cc
  4811. * src/SocketCore.h
  4812. * test/AllTest.cc
  4813. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Avoid std::bad_alloc for negative bencode string length.
  4815. * src/bencode.cc
  4816. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4817. Supported segmented downloading with chunked transfer encoding and
  4818. content-length.
  4819. * src/DownloadCommand.cc
  4820. * src/HttpResponseCommand.cc
  4821. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Bump up version number to 1.3.3
  4823. * configure.ac
  4824. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4826. from 4096 to 65536 (for insanely large ftp login banners)
  4827. * src/FtpConnection.h
  4828. * test/FtpConnectionTest.cc
  4829. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. In DefaultBtContext::getActualBasePath(), return first
  4831. FileEntry::getPath() for single file torrent.
  4832. * src/DefaultBtContext.cc
  4833. * test/DefaultBtContextTest.cc
  4834. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4836. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4837. Removed _directIOAllowed member from DiskWriter.
  4838. * src/AbstractDiskWriter.cc
  4839. * src/AbstractDiskWriter.h
  4840. * src/AbstractSingleDiskAdaptor.cc
  4841. * src/AbstractSingleDiskAdaptor.h
  4842. * src/BinaryStream.h
  4843. * src/ByteArrayDiskWriter.h
  4844. * src/DefaultPieceStorage.cc
  4845. * src/DiskWriter.h
  4846. * src/MultiDiskAdaptor.cc
  4847. * src/MultiDiskAdaptor.h
  4848. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Now the constructor of AbstractDiskWriter takes filename as an
  4850. argument and filename argument is removed from openFile(),
  4851. initAndOpenFile(), openExistingFile() interface. storeDir member
  4852. and its accessor functions are removed from DiskAdaptor because it
  4853. is not used anymore. size() member function of DefaultDiskWriter,
  4854. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4855. opening file.
  4856. * src/AbstractDiskWriter.cc
  4857. * src/AbstractDiskWriter.h
  4858. * src/AbstractSingleDiskAdaptor.cc
  4859. * src/AbstractSingleDiskAdaptor.h
  4860. * src/ByteArrayDiskWriter.cc
  4861. * src/ByteArrayDiskWriter.h
  4862. * src/ByteArrayDiskWriterFactory.cc
  4863. * src/ByteArrayDiskWriterFactory.h
  4864. * src/DefaultDiskWriter.cc
  4865. * src/DefaultDiskWriter.h
  4866. * src/DefaultDiskWriterFactory.cc
  4867. * src/DefaultDiskWriterFactory.h
  4868. * src/DefaultPieceStorage.cc
  4869. * src/DirectDiskAdaptor.cc
  4870. * src/DirectDiskAdaptor.h
  4871. * src/DiskAdaptor.h
  4872. * src/DiskWriter.h
  4873. * src/DiskWriterFactory.h
  4874. * src/MessageDigestHelper.cc
  4875. * src/MultiDiskAdaptor.cc
  4876. * src/RequestGroup.cc
  4877. * src/UnknownLengthPieceStorage.cc
  4878. * src/Util.cc
  4879. * test/DefaultDiskWriterTest.cc
  4880. * test/DirectDiskAdaptorTest.cc
  4881. * test/FallocFileAllocationIteratorTest.cc
  4882. * test/MessageDigestHelperTest.cc
  4883. * test/MetalinkProcessorTest.cc
  4884. * test/MultiDiskAdaptorTest.cc
  4885. * test/MultiFileAllocationIteratorTest.cc
  4886. * test/SingleFileAllocationIteratorTest.cc
  4887. * test/UtilTest.cc
  4888. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Fixed the bug that aria2 aborts when --select-file is used. This
  4890. bug was introduced in r1199.
  4891. * src/MultiDiskAdaptor.cc
  4892. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4893. Code cleanup
  4894. * test/MockPieceStorage.cc
  4895. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Fixed the bug that read-only file with wrong file size will cause
  4897. error because it cannot be truncated to the correct size. Now if
  4898. file size is different than the expected one, re-open file in
  4899. writable mode.
  4900. * src/AbstractSingleDiskAdaptor.cc
  4901. * src/AbstractSingleDiskAdaptor.h
  4902. * src/BtCheckIntegrityEntry.cc
  4903. * src/DiskAdaptor.h
  4904. * src/MultiDiskAdaptor.h
  4905. * src/RequestGroup.cc
  4906. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Fixed the bug that with --check-integrity option aria2 reports
  4908. downloaded file size is 0 even if some parts of file is correctly
  4909. downloaded. This bug is reproducible for the download that a file
  4910. includes last piece is missing. This bug doesn't reveal for
  4911. single-torrent with file allocation on.
  4912. * src/IteratableChecksumValidator.cc
  4913. * test/IteratableChecksumValidatorTest.cc
  4914. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4916. * src/RequestGroupMan.cc
  4917. * src/AdaptiveURISelector.cc
  4918. * src/AdaptiveURISelector.h
  4919. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4920. * Release 1.3.2
  4921. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4922. Updated README
  4923. * README
  4924. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Updated Ukrainian translations. Thanks to Alexander10.
  4926. * po/uk.po
  4927. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Code cleanup
  4929. * src/MetalinkParserStateMachine.cc
  4930. * src/MetalinkParserStateMachine.h
  4931. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4933. and expat simultaneously, MetalinkProcessor is now not base class
  4934. and it is directly implemented in XML2SAXMetalinkProcessor and
  4935. ExpatMetalinkProcessor.
  4936. * src/ExpatMetalinkProcessor.cc
  4937. * src/ExpatMetalinkProcessor.h
  4938. * src/Makefile.am
  4939. * src/MetalinkHelper.cc
  4940. * src/MetalinkProcessor.h
  4941. * src/MetalinkProcessorFactory.cc: Removed.
  4942. * src/MetalinkProcessorFactory.h: Removed
  4943. * src/XML2SAXMetalinkProcessor.cc
  4944. * src/XML2SAXMetalinkProcessor.h
  4945. * test/MetalinkProcessorTest.cc
  4946. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Bump up version number to 1.3.2
  4948. * configure.ac
  4949. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Added missing file.
  4951. * test/Makefile.am
  4952. * test/url-list-singleFileEndsWithSlash.torrent
  4953. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4955. request.
  4956. * src/AnnounceList.cc
  4957. * src/AnnounceList.h
  4958. * src/BDE.cc: Added
  4959. * src/BDE.h: Added
  4960. * src/DHTAbstractMessage.cc
  4961. * src/DHTAbstractMessage.h
  4962. * src/DHTAnnouncePeerMessage.cc
  4963. * src/DHTAnnouncePeerMessage.h
  4964. * src/DHTAnnouncePeerReplyMessage.cc
  4965. * src/DHTAnnouncePeerReplyMessage.h
  4966. * src/DHTFindNodeMessage.cc
  4967. * src/DHTFindNodeMessage.h
  4968. * src/DHTFindNodeReplyMessage.cc
  4969. * src/DHTFindNodeReplyMessage.h
  4970. * src/DHTGetPeersMessage.cc
  4971. * src/DHTGetPeersMessage.h
  4972. * src/DHTGetPeersReplyMessage.cc
  4973. * src/DHTGetPeersReplyMessage.h
  4974. * src/DHTMessageFactory.h
  4975. * src/DHTMessageFactoryImpl.cc
  4976. * src/DHTMessageFactoryImpl.h
  4977. * src/DHTMessageReceiver.cc
  4978. * src/DHTMessageTracker.cc
  4979. * src/DHTMessageTracker.h
  4980. * src/DHTPingMessage.cc
  4981. * src/DHTPingMessage.h
  4982. * src/DHTPingReplyMessage.cc
  4983. * src/DHTPingReplyMessage.h
  4984. * src/DHTQueryMessage.cc
  4985. * src/DHTQueryMessage.h
  4986. * src/DHTResponseMessage.cc
  4987. * src/DHTResponseMessage.h
  4988. * src/DefaultBtAnnounce.cc
  4989. * src/DefaultBtContext.cc
  4990. * src/DefaultBtContext.h
  4991. * src/HandshakeExtensionMessage.cc
  4992. * src/Makefile.am
  4993. * src/PeerListProcessor.h
  4994. * src/UTPexExtensionMessage.cc
  4995. * src/bencode.cc
  4996. * src/bencode.h
  4997. * test/AnnounceListTest.cc
  4998. * test/BDETest.cc: Added
  4999. * test/BencodeTest.cc
  5000. * test/DHTAnnouncePeerMessageTest.cc
  5001. * test/DHTAnnouncePeerReplyMessageTest.cc
  5002. * test/DHTFindNodeMessageTest.cc
  5003. * test/DHTFindNodeReplyMessageTest.cc
  5004. * test/DHTGetPeersMessageTest.cc
  5005. * test/DHTGetPeersReplyMessageTest.cc
  5006. * test/DHTMessageFactoryImplTest.cc
  5007. * test/DHTMessageTrackerTest.cc
  5008. * test/DHTPingMessageTest.cc
  5009. * test/DHTPingReplyMessageTest.cc
  5010. * test/Makefile.am
  5011. * test/MockDHTMessageFactory.h
  5012. * test/PeerListProcessorTest.cc
  5013. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. Use url-list (web-seeding) only for single-file torrent. This is
  5015. basically the same behavior with Metalink file with torrent and
  5016. URIs.
  5017. * src/RequestGroup.cc
  5018. * src/DefaultBtContext.cc
  5019. * test/DefaultBtContextTest.cc
  5020. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5021. Rewritten expr
  5022. * src/array_fun.h
  5023. * test/array_funTest.cc
  5024. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5025. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5026. * src/DefaultBtMessageDispatcher.cc
  5027. * src/a2algo.h
  5028. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Removed ExtendedMessagingAware. Instead of using inheritance,
  5030. added ExtensionMessageRegistry and it is passed to
  5031. DefaultExtensionMessageFactory.
  5032. * src/DefaultBtInteractive.cc
  5033. * src/DefaultBtInteractive.h
  5034. * src/DefaultExtensionMessageFactory.cc
  5035. * src/DefaultExtensionMessageFactory.h
  5036. * src/ExtendedMessagingAware.h: Removed.
  5037. * src/ExtensionMessageFactory.h
  5038. * src/ExtensionMessageRegistry.h: Added.
  5039. * src/Makefile.am
  5040. * src/PeerInteractionCommand.cc
  5041. * test/DefaultExtensionMessageFactoryTest.cc
  5042. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Fixed typo in log messages
  5044. * src/MSEHandshake.cc
  5045. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Fixed the bug that prevents torrent download from finishing. The
  5047. bug doesn't reveal for all torrents. The torrents affected this
  5048. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5049. of pieces.
  5050. * src/bitfield.h
  5051. * test/bitfieldTest.cc
  5052. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Code cleanup
  5054. * src/PeerListProcessor.h
  5055. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Removed RequestGroupAware
  5057. * src/AbstractCommand.cc
  5058. * src/AbstractCommand.h
  5059. * src/ActivePeerConnectionCommand.cc
  5060. * src/ActivePeerConnectionCommand.h
  5061. * src/DHTGetPeersCommand.cc
  5062. * src/DHTGetPeersCommand.h
  5063. * src/InitiatorMSEHandshakeCommand.cc
  5064. * src/InitiatorMSEHandshakeCommand.h
  5065. * src/Makefile.am
  5066. * src/PeerInitiateConnectionCommand.cc
  5067. * src/PeerInitiateConnectionCommand.h
  5068. * src/PeerInteractionCommand.cc
  5069. * src/PeerInteractionCommand.h
  5070. * src/RealtimeCommand.cc
  5071. * src/RealtimeCommand.h
  5072. * src/RequestGroupAware.cc: Removed
  5073. * src/RequestGroupAware.h: Removed
  5074. * src/SeedCheckCommand.cc
  5075. * src/SeedCheckCommand.h
  5076. * src/SleepCommand.cc
  5077. * src/TrackerWatcherCommand.cc
  5078. * src/TrackerWatcherCommand.h
  5079. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Rewritten PeerListProcessor
  5081. * src/PeerListProcessor.h
  5082. * src/CompactPeerListProcessor.h: Removed
  5083. * src/CompactPeerListProcessor.cc: Removed
  5084. * src/DelegatingPeerListProcessor.cc: Removed.
  5085. * src/DefaultBtAnnounce.cc
  5086. * src/Makefile.am
  5087. * src/UTPexExtensionMessage.cc
  5088. * src/DefaultPeerListProcessor.h: Removed.
  5089. * src/DefaultPeerListProcessor.cc: Removed.
  5090. * src/DelegatingPeerListProcessor.h: Removed.
  5091. * test/Makefile.am
  5092. * test/PeerListProcessorTest.cc
  5093. * test/DefaultPeerListProcessorTest.cc: Removed.
  5094. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. Rewritten RequestGroupMan::calculateStat()
  5096. * src/RequestGroupMan.cc
  5097. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Removed unnecessary virtual destructor for Request class.
  5099. * src/Request.cc
  5100. * src/Request.h
  5101. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Avoid dynamic_pointer_cast.
  5103. * src/DHTGetPeersCommand.cc
  5104. * src/DHTGetPeersCommand.h
  5105. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5107. BtEvent.
  5108. * src/AbstractBtEventListener.h: Removed.
  5109. * src/AbstractBtMessage.cc
  5110. * src/AbstractBtMessage.h
  5111. * src/BtAbortOutstandingRequestEvent.h
  5112. * src/BtCancelSendingPieceEvent.h
  5113. * src/BtChokedEvent.h: Removed.
  5114. * src/BtChokingEvent.h
  5115. * src/BtEvent.h: Removed
  5116. * src/BtEventListener.h: Removed.
  5117. * src/BtMessage.h
  5118. * src/BtPieceMessage.cc
  5119. * src/BtPieceMessage.h
  5120. * src/BtRequestMessage.cc
  5121. * src/BtRequestMessage.h
  5122. * src/DefaultBtMessageDispatcher.cc
  5123. * src/Makefile.am
  5124. * src/a2functional.h
  5125. * test/BtPieceMessageTest.cc
  5126. * test/BtRequestMessageTest.cc
  5127. * test/DefaultBtMessageDispatcherTest.cc
  5128. * test/MockBtMessage.h
  5129. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Code cleanup
  5131. * src/RequestGroupMan.cc
  5132. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Code cleanup
  5134. * src/DownloadCommand.cc
  5135. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5137. byte.
  5138. * src/DownloadCommand.cc
  5139. * src/bitfield.h
  5140. * test/bitfieldTest.cc
  5141. Fixed the bug that causes infinite loop if broken web server
  5142. returns chunked response without last "0" chunk-size marker and
  5143. closes connection.
  5144. * src/DownloadCommand.cc
  5145. Instantiate properly configured HttpDownloadCommand for
  5146. non-resumable downlaods.
  5147. * src/HttpResponseCommand.cc
  5148. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5149. Rewritten array operation functions.
  5150. * src/BitfieldMan.cc
  5151. * src/array_fun.h
  5152. * test/array_funTest.cc
  5153. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5154. Removed unused variable 'query'
  5155. * src/Request.cc
  5156. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5157. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5158. accidentally set to false in r1162.
  5159. * configure.ac
  5160. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5161. Code cleanup
  5162. * src/BNode.cc
  5163. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5164. Increase prefixLength for the bucket which doesn't own local node
  5165. ID when splitting bucket.
  5166. * src/DHTBucket.cc
  5167. * test/DHTBucketTest.cc
  5168. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. * Release 1.3.1
  5170. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5171. Bump up version number to 1.3.1
  5172. * configure.ac
  5173. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5174. Removed unused variable checkPoint. Also removed include directive
  5175. for TimeA2.h.
  5176. * src/SeedCheckCommand.h
  5177. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5178. Fixed the bug that upload limit exceeds the value specified in
  5179. --seed-ratio option depending on the timing of the execution of
  5180. SeedCheckCommand.
  5181. * src/SeedCheckCommand.cc
  5182. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Fixed the bug that removed peer's session upload/download length
  5184. are counted twice in _cachedTransferStat before it is
  5185. re-calculated. This affected the calculation of shara ratio,
  5186. resulting aria2 wrongly determines that specified share ratio is
  5187. reached. Also fixed the typo in calculateStatFor function name.
  5188. * src/BtSetup.cc
  5189. * src/DefaultPeerStorage.cc
  5190. * src/ShareRatioSeedCriteria.h
  5191. * test/ShareRatioSeedCriteriaTest.cc
  5192. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5193. * Release 1.3.0
  5194. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5196. Nynorsk translations. Thanks to all translators.
  5197. * po/es.po
  5198. * po/ja.po
  5199. * po/nn.po
  5200. * po/ru.po
  5201. * po/uk.po
  5202. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5203. Rewritten isInRange()
  5204. * src/DHTBucket.cc
  5205. * test/DHTBucketTest.cc
  5206. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5207. Fixed typo
  5208. * doc/aria2c.1.txt
  5209. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5210. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5211. malloc/realloc is not used.
  5212. * src/configure.ac
  5213. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5215. char* bitfield instead of stl container for efficiency.
  5216. PieceSelector::select now takes this
  5217. bitfield. RarestPieceSelector::select now also performs
  5218. efficiently for this change. bitfield namespace is introduced and
  5219. it has several helper functions to handle basic bitfield
  5220. operations such as test, count set bits, etc.
  5221. * src/BitfieldMan.cc
  5222. * src/BitfieldMan.h
  5223. * src/DefaultBtRequestFactory.cc
  5224. * src/DefaultPieceStorage.cc
  5225. * src/DefaultPieceStorage.h
  5226. * src/LongestSequencePieceSelector.cc
  5227. * src/LongestSequencePieceSelector.h
  5228. * src/Makefile.am
  5229. * src/Piece.cc
  5230. * src/Piece.h
  5231. * src/PieceSelector.h
  5232. * src/RarestPieceSelector.cc
  5233. * src/RarestPieceSelector.h
  5234. * src/Util.cc
  5235. * src/Util.h
  5236. * src/bitfield.h
  5237. * test/BitfieldManTest.cc
  5238. * test/LongestSequencePieceSelectorTest.cc
  5239. * test/Makefile.am
  5240. * test/RarestPieceSelectorTest.cc
  5241. * test/UtilTest.cc
  5242. * test/bitfieldTest.cc
  5243. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5244. Made accepted socket non-block.
  5245. * src/FtpNegotiationCommand.cc
  5246. * src/HttpListenCommand.cc
  5247. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5249. * src/AbstractSingleDiskAdaptor.cc
  5250. * src/DefaultPieceStorage.cc
  5251. * src/DiskAdaptor.h
  5252. * src/DiskAdaptor.h
  5253. * src/MultiFileAllocationIterator.cc
  5254. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Run
  5256. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5257. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5258. it doesn't need to be called every time when
  5259. DefaultBtInteractive::doInteractionProcessing() is called.
  5260. * src/DefaultBtInteractive.cc
  5261. * src/DefaultBtInteractive.h
  5262. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5263. Documented 'falloc' in man page.
  5264. * doc/aria2c.1.txt
  5265. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5266. Updated doc
  5267. * src/usage_text.h
  5268. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5270. allocation mode uses posix_fallocate() system call to allocate
  5271. file on disk. If you are using newer file systems such as ext4
  5272. (with extents support), btrfs or xfs, 'falloc' is your best
  5273. choice. It allocates large(few GiB) files almost instantly. Don't
  5274. use 'falloc' with legacy file systems such as ext3 because it
  5275. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5276. until allocation finishes. 'falloc' may not be available if your
  5277. system doesn't have posix_fallocate() system call.
  5278. * configure.ac
  5279. * src/AbstractDiskWriter.cc
  5280. * src/AbstractDiskWriter.h
  5281. * src/AbstractSingleDiskAdaptor.cc
  5282. * src/BinaryStream.h
  5283. * src/BtCheckIntegrityEntry.cc
  5284. * src/ByteArrayDiskWriter.h
  5285. * src/CheckIntegrityEntry.cc
  5286. * src/CheckIntegrityEntry.h
  5287. * src/DefaultPieceStorage.cc
  5288. * src/DiskAdaptor.cc
  5289. * src/DiskAdaptor.h
  5290. * src/DiskWriter.h
  5291. * src/FallocFileAllocationIterator.cc
  5292. * src/FallocFileAllocationIterator.h
  5293. * src/FileAllocationEntry.cc
  5294. * src/FileAllocationEntry.h
  5295. * src/Makefile.am
  5296. * src/MultiFileAllocationIterator.cc
  5297. * src/MultiFileAllocationIterator.h
  5298. * src/OptionHandlerFactory.cc
  5299. * src/RequestGroup.cc
  5300. * src/StreamCheckIntegrityEntry.cc
  5301. * src/prefs.cc
  5302. * src/prefs.h
  5303. * src/usage_text.h
  5304. * test/FallocFileAllocationIteratorTest.cc
  5305. * test/Makefile.am
  5306. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Removed duplicate enableDirectIO() call.
  5308. * src/MultiFileAllocationIterator.cc
  5309. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5311. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5312. cost of std::rotate().
  5313. * src/RarestPieceSelector.cc
  5314. * src/RarestPieceSelector.h
  5315. * test/RarestPieceSelectorTest.cc
  5316. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5317. Updated usage doc for --bt-tracker-interval option.
  5318. * src/usage_text.h
  5319. * doc/aria2c.1.txt
  5320. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Documented --bt-tracker-interval option in man page.
  5322. * doc/aria2c.1.txt
  5323. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Added an option to specify the interval between tracker requests.
  5325. If non-zero value is specified, aria2 uses it and ignores the
  5326. interval value in the response of tracker. If zero is specified,
  5327. aria2 determines the inteval value based on the tarcker response
  5328. and download progress.
  5329. * src/DefaultBtAnnounce.cc
  5330. * src/DefaultBtAnnounce.h
  5331. * src/OptionHandlerFactory.cc
  5332. * src/RequestGroup.cc
  5333. * src/prefs.cc
  5334. * src/prefs.h
  5335. * src/usage_text.h
  5336. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Added operator+=, operator-=, operator-
  5338. * src/TransferStat.cc
  5339. * src/TransferStat.h
  5340. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Refactored RarestPieceSelector to reduce CPU load, especially for
  5342. addPieceStats.
  5343. * src/RarestPieceSelector.cc
  5344. * src/RarestPieceSelector.h
  5345. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5347. getAllMissingBlockIndexes to reduce a call to
  5348. array_function_base::operator[].
  5349. * src/BitfieldMan.cc
  5350. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5351. Cached TransferStat/download speed to avoid to sum them up in each
  5352. call.
  5353. * src/DefaultPeerStorage.cc
  5354. * src/DefaultPeerStorage.h
  5355. * src/SegmentMan.cc
  5356. * src/SegmentMan.h
  5357. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Typedefed cuid_t as int32_t in Command.h
  5359. * src/CUIDCounter.h
  5360. * src/Command.cc
  5361. * src/Command.h
  5362. * src/DownloadEngine.cc
  5363. * src/DownloadEngine.h
  5364. * src/PeerStat.h
  5365. * src/SegmentMan.cc
  5366. * src/SegmentMan.h
  5367. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. Reduced the number of calls to PeerStorage::calculateStat() and
  5369. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5370. transfer rate.
  5371. * src/DefaultBtInteractive.cc
  5372. * src/DefaultBtMessageDispatcher.cc
  5373. * src/DefaultPeerStorage.cc
  5374. * src/DefaultPeerStorage.h
  5375. * src/DownloadCommand.cc
  5376. * src/DownloadEngine.cc
  5377. * src/PeerStorage.h
  5378. * src/SegmentMan.cc
  5379. * src/SegmentMan.h
  5380. * test/MockPeerStorage.h
  5381. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Prepended _dir+"/" after joining path elements in torrent file.
  5383. * src/DefaultBtContext.cc
  5384. * test/DefaultBtContextTest.cc
  5385. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Added missing IndexBtMessageValidator.h
  5387. * src/Makefile.am
  5388. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5390. Chinese translations. Thank you for contributing our project.
  5391. * po/id.po
  5392. * po/it.po
  5393. * po/ru.po
  5394. * po/uk.po
  5395. * po/zh_CN.po
  5396. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Updated README
  5398. * README
  5399. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5400. Bump up version number to 1.3.0
  5401. * configure.ac
  5402. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Updated doc
  5404. * src/DefaultBtContext.h
  5405. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Slice/joinPath for name of single torrent.
  5407. * src/DefaultBtContext.cc
  5408. * test/DefaultBtContextTest.cc
  5409. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Updated man page: Documented --dry-run and --index-out
  5411. options. Changed the default value of --uri-selector and
  5412. --http-auth-challenge options. Removed --direct-file-mapping
  5413. option. Added example for --index-out
  5414. * doc/aria2c.1.txt
  5415. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Updated TEXT_DRY_RUN
  5417. * src/usage_text.h
  5418. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Changed the default value of --uri-selector option from 'inorder'
  5420. to 'feedback'
  5421. * src/OptionHandlerFactory.cc
  5422. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Included current URI in exception message.
  5424. * src/AbstractCommand.cc
  5425. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Renamed ServerStatURISelector as FeedbackURISelector.
  5427. * src/FeedbackURISelector.cc
  5428. * src/FeedbackURISelector.h
  5429. * src/Makefile.am
  5430. * src/RequestGroupMan.cc
  5431. * src/ServerStatURISelector.cc
  5432. * src/ServerStatURISelector.h
  5433. * test/FeedbackURISelectorTest.cc
  5434. * test/Makefile.am
  5435. * test/ServerStatURISelectorTest.cc
  5436. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5438. all URIs are tested and their timeout is not reached.
  5439. * src/AdaptiveURISelector.cc
  5440. * src/AdaptiveURISelector.h
  5441. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5442. Changed the default value of --http-auth-challenge option to false.
  5443. * src/OptionHandlerFactory.cc
  5444. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. Reuse URIs when all unused URIs run out.
  5446. * src/OptionHandlerFactory.cc
  5447. * src/RequestGroup.cc
  5448. * src/prefs.cc
  5449. * src/prefs.h
  5450. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5452. and BtRejectMessage are derived from RangeBtMessage class.
  5453. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5454. derived from IndexBtMessage class. BtChokeMessage,
  5455. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5456. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5457. ZeroBtMessage class.
  5458. * src/AbstractBtMessage.cc
  5459. * src/AbstractBtMessage.h
  5460. * src/BtAllowedFastMessage.cc
  5461. * src/BtAllowedFastMessage.h
  5462. * src/BtAllowedFastMessageValidator.h: Removed
  5463. * src/BtBitfieldMessage.cc
  5464. * src/BtBitfieldMessage.h
  5465. * src/BtCancelMessage.cc
  5466. * src/BtCancelMessage.h
  5467. * src/BtCancelMessageValidator.h: Removed
  5468. * src/BtChokeMessage.cc
  5469. * src/BtChokeMessage.h
  5470. * src/BtExtendedMessage.cc
  5471. * src/BtExtendedMessage.h
  5472. * src/BtHandshakeMessage.cc
  5473. * src/BtHandshakeMessage.h
  5474. * src/BtHaveAllMessage.cc
  5475. * src/BtHaveAllMessage.h
  5476. * src/BtHaveMessage.cc
  5477. * src/BtHaveMessage.h
  5478. * src/BtHaveMessageValidator.h: Removed
  5479. * src/BtHaveNoneMessage.cc
  5480. * src/BtHaveNoneMessage.h
  5481. * src/BtInterestedMessage.cc
  5482. * src/BtInterestedMessage.h
  5483. * src/BtKeepAliveMessage.cc
  5484. * src/BtKeepAliveMessage.h
  5485. * src/BtNotInterestedMessage.cc
  5486. * src/BtNotInterestedMessage.h
  5487. * src/BtPieceMessage.cc
  5488. * src/BtPieceMessage.h
  5489. * src/BtPortMessage.cc
  5490. * src/BtPortMessage.h
  5491. * src/BtRejectMessage.cc
  5492. * src/BtRejectMessage.h
  5493. * src/BtRejectMessageValidator.h: Removed
  5494. * src/BtRequestMessage.cc
  5495. * src/BtRequestMessage.h
  5496. * src/BtRequestMessageValidator.h: Removed
  5497. * src/BtSuggestPieceMessage.cc
  5498. * src/BtSuggestPieceMessage.h
  5499. * src/BtSuggestPieceMessageValidator.h: Removed
  5500. * src/BtUnchokeMessage.cc
  5501. * src/BtUnchokeMessage.h
  5502. * src/DefaultBtMessageFactory.cc
  5503. * src/IndexBtMessage.cc
  5504. * src/IndexBtMessage.h
  5505. * src/IndexBtMessageValidator.h
  5506. * src/Makefile.am
  5507. * src/PeerMessageUtil.cc
  5508. * src/PeerMessageUtil.h
  5509. * src/RangeBtMessage.cc
  5510. * src/RangeBtMessage.h
  5511. * src/RangeBtMessageValidator.h
  5512. * src/SimpleBtMessage.cc
  5513. * src/SimpleBtMessage.h
  5514. * src/ZeroBtMessage.cc
  5515. * src/ZeroBtMessage.h
  5516. * test/BtRequestMessageTest.cc
  5517. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5518. Reverted usage_text.h to r1093 to avoid to lose translated
  5519. messages.
  5520. * src/usage_text.h
  5521. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5523. declared as non-const previously is now const and defined in class
  5524. definition.
  5525. * src/AbstractBtMessage.cc
  5526. * src/AbstractBtMessage.h
  5527. * src/BtAllowedFastMessage.cc
  5528. * src/BtAllowedFastMessage.h
  5529. * src/BtBitfieldMessage.h
  5530. * src/BtCancelMessage.cc
  5531. * src/BtCancelMessage.h
  5532. * src/BtChokeMessage.cc
  5533. * src/BtChokeMessage.h
  5534. * src/BtExtendedMessage.cc
  5535. * src/BtExtendedMessage.h
  5536. * src/BtHandshakeMessage.cc
  5537. * src/BtHandshakeMessage.h
  5538. * src/BtHaveAllMessage.cc
  5539. * src/BtHaveAllMessage.h
  5540. * src/BtHaveMessage.cc
  5541. * src/BtHaveMessage.h
  5542. * src/BtHaveNoneMessage.cc
  5543. * src/BtHaveNoneMessage.h
  5544. * src/BtInterestedMessage.cc
  5545. * src/BtInterestedMessage.h
  5546. * src/BtKeepAliveMessage.cc
  5547. * src/BtKeepAliveMessage.h
  5548. * src/BtMessage.h
  5549. * src/BtNotInterestedMessage.cc
  5550. * src/BtNotInterestedMessage.h
  5551. * src/BtPieceMessage.h
  5552. * src/BtPortMessage.cc
  5553. * src/BtPortMessage.h
  5554. * src/BtRejectMessage.cc
  5555. * src/BtRejectMessage.h
  5556. * src/BtRequestMessage.cc
  5557. * src/BtRequestMessage.h
  5558. * src/BtSuggestPieceMessage.cc
  5559. * src/BtSuggestPieceMessage.h
  5560. * src/BtUnchokeMessage.cc
  5561. * src/BtUnchokeMessage.h
  5562. * src/SimpleBtMessage.cc
  5563. * src/SimpleBtMessage.h
  5564. * test/MockBtMessage.h
  5565. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Use FileEntry::exists()
  5567. * src/MultiDiskAdaptor.cc
  5568. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Added exists()
  5570. * src/FileEntry.cc
  5571. * src/FileEntry.h
  5572. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Added missing prefix dir.
  5574. * src/download_helper.cc
  5575. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5577. * src/CopyDiskAdaptor.cc: Removed
  5578. * src/CopyDiskAdaptor.h: Removed
  5579. * src/DefaultPieceStorage.cc
  5580. * src/Makefile.am
  5581. * src/OptionHandlerFactory.cc
  5582. * src/prefs.cc
  5583. * src/prefs.h
  5584. * src/usage_text.h
  5585. * test/CopyDiskAdaptorTest.cc: Removed
  5586. * test/Makefile.am
  5587. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Rewritten isSameFileBeingDownloaded()
  5589. * src/RequestGroupMan.cc
  5590. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5591. Removed getName() from DownloadContext. getName() is declared in
  5592. BtContext.
  5593. * src/BtContext.h
  5594. * src/DownloadContext.h
  5595. * src/SingleFileDownloadContext.cc
  5596. * src/SingleFileDownloadContext.h
  5597. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5598. in AbstractSingleDiskAdaptor.
  5599. * src/AbstractSingleDiskAdaptor.h
  5600. * src/DiskAdaptor.h
  5601. * src/MultiDiskAdaptor.h
  5602. * src/RequestGroup.cc
  5603. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5604. MultiDiskAdaptor.
  5605. * src/DefaultPieceStorage.cc
  5606. * src/MultiDiskAdaptor.cc
  5607. * src/MultiDiskAdaptor.h
  5608. * test/MultiDiskAdaptorTest.cc
  5609. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. FileEntry::getPath() contains store(top level) directory to
  5611. simplify path handling operation. In the previous implementation,
  5612. store directory is concatenated to FileEntry::getPath() in
  5613. DownloadContext.
  5614. * src/BtDependency.cc
  5615. * src/BtPostDownloadHandler.cc
  5616. * src/CopyDiskAdaptor.cc
  5617. * src/DefaultBtContext.cc
  5618. * src/DirectDiskAdaptor.cc
  5619. * src/FileEntry.cc
  5620. * src/FileEntry.h
  5621. * src/FtpNegotiationCommand.cc
  5622. * src/HttpResponse.cc
  5623. * src/HttpResponseCommand.cc
  5624. * src/Metalink2RequestGroup.cc
  5625. * src/MultiDiskAdaptor.cc
  5626. * src/MultiDiskAdaptor.h
  5627. * src/MultiFileAllocationIterator.cc
  5628. * src/RequestGroup.cc
  5629. * src/SingleFileDownloadContext.cc
  5630. * src/SingleFileDownloadContext.h
  5631. * src/download_helper.cc
  5632. * test/BtDependencyTest.cc
  5633. * test/CopyDiskAdaptorTest.cc
  5634. * test/DefaultBtContextTest.cc
  5635. * test/DefaultBtProgressInfoFileTest.cc
  5636. * test/DirectDiskAdaptorTest.cc
  5637. * test/DownloadHelperTest.cc
  5638. * test/FileEntryTest.cc
  5639. * test/MultiDiskAdaptorTest.cc
  5640. * test/MultiFileAllocationIteratorTest.cc
  5641. * test/RequestGroupTest.cc
  5642. * test/SingleFileDownloadContextTest.cc
  5643. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5644. Fixed compiler warning
  5645. * src/download_helper.cc
  5646. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5647. Throw exception if same infohash torrent is now downloading.
  5648. * src/RequestGroup.cc
  5649. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5650. Added --dry-run option. In this mode, aria2 just checks whether
  5651. the remote file is available and doesn't download data. This
  5652. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5653. are canceled in this mode.
  5654. * src/FtpNegotiationCommand.cc
  5655. * src/HttpResponseCommand.cc
  5656. * src/HttpResponseCommand.h
  5657. * src/OptionHandlerFactory.cc
  5658. * src/RequestGroup.cc
  5659. * src/RequestGroupMan.cc
  5660. * src/prefs.cc
  5661. * src/prefs.h
  5662. * src/usage_text.h
  5663. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5664. Fixed compiler waring
  5665. * test/UriListParserTest.cc
  5666. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5667. Parse options in -i list using OptionParser.
  5668. * src/UriListParser.cc
  5669. * src/UriListParser.h
  5670. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Don't reset URI in retry to avoid additional round trips because
  5672. of redirects.
  5673. * src/AbstractCommand.cc
  5674. * src/OptionHandlerFactory.cc
  5675. * src/prefs.cc
  5676. * src/prefs.h
  5677. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Declared hide() in OptionHandler.
  5679. * src/NameMatchOptionHandler.h
  5680. * src/OptionHandler.h
  5681. * src/OptionHandlerImpl.h
  5682. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Updated doc
  5684. * src/Peer.h
  5685. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5686. Added log message in setStatusInternal()
  5687. * src/ServerStat.cc
  5688. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5689. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5690. effectively exclude failed server.
  5691. * src/AbstractCommand.cc
  5692. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Added --index-out option to specify each file path for torrent.
  5694. Here index shown in --show-files option is used to specify which
  5695. file path should be altered. For example, to change the file path
  5696. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5697. option multiple times: --index-out=1=aria2.tar.bz2
  5698. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5699. available. This option can be specified in -i list.
  5700. * src/DefaultBtContext.cc
  5701. * src/DefaultBtContext.h
  5702. * src/MultiDiskAdaptor.cc
  5703. * src/MultiDiskAdaptor.h
  5704. * src/MultiFileAllocationIterator.cc
  5705. * src/OptionHandlerFactory.cc
  5706. * src/OptionHandlerImpl.h
  5707. * src/Util.cc
  5708. * src/Util.h
  5709. * src/download_helper.cc
  5710. * src/prefs.cc
  5711. * src/prefs.h
  5712. * src/usage_text.h
  5713. * test/DefaultBtContextTest.cc
  5714. * test/MultiDiskAdaptorTest.cc
  5715. * test/MultiFileAllocationIteratorTest.cc
  5716. * test/UtilTest.cc
  5717. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5718. Use Util::pathJoin()
  5719. * src/MetalinkParserController.cc
  5720. * test/test.xml
  5721. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Use Util::pathJoin()
  5723. * src/DefaultBtContext.cc
  5724. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5725. Added Util::pathJoin()
  5726. * src/Util.h
  5727. * test/UtilTest.cc
  5728. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5729. Applied basename function to remove directory element in
  5730. content-disposition value.
  5731. Return empty string if content-disposition value is ".." or ".".
  5732. * src/Util.cc
  5733. * test/UtilTest.cc
  5734. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5735. Added --max-overall-download-limit in man page.
  5736. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5737. * doc/aria2c.1.txt
  5738. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Added --max-overall-download-limit option. Now --max-upload-limit
  5740. option is not ignored when --max-overall-upload-limit option has
  5741. non-zero value. aria2 checks download(upload) speed in the order:
  5742. first checks overall speed limit and if it is not exceeded, then
  5743. checks speed limit per download. Thus you can specify both
  5744. value. For example, set --max-overall-download-limit=1M and
  5745. --max-download-limit=500K to prevent from one download from eating
  5746. all overall speed limit.
  5747. * src/DefaultBtInteractive.cc
  5748. * src/DefaultBtInteractive.h
  5749. * src/DefaultBtMessageDispatcher.cc
  5750. * src/DefaultBtMessageDispatcher.h
  5751. * src/DownloadCommand.cc
  5752. * src/DownloadCommand.h
  5753. * src/FtpNegotiationCommand.cc
  5754. * src/HttpResponseCommand.cc
  5755. * src/OptionHandlerFactory.cc
  5756. * src/PeerInteractionCommand.cc
  5757. * src/RequestGroup.cc
  5758. * src/RequestGroup.h
  5759. * src/RequestGroupMan.cc
  5760. * src/RequestGroupMan.h
  5761. * src/prefs.cc
  5762. * src/prefs.h
  5763. * src/usage_text.h
  5764. * test/DefaultBtMessageDispatcherTest.cc
  5765. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Documented select-file option in Input File section.
  5767. Documented --http-auth-challenge option.
  5768. * doc/aria2c.1.txt
  5769. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Now select-file can be specified in the uri list(-i list).
  5771. * src/BtContext.cc
  5772. * src/BtContext.h
  5773. * src/RequestGroup.cc
  5774. * src/Sequence.h
  5775. * src/download_helper.cc
  5776. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5777. Made the upper value of --max-concurrent-downloads options unlimited.
  5778. * src/OptionHandlerFactory.cc
  5779. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5780. Fixed the bug that disk writer is not created even if it shares
  5781. same piece with the preceding file if the length of previous file
  5782. is 0.
  5783. * src/MultiDiskAdaptor.cc
  5784. * test/MultiDiskAdaptorTest.cc
  5785. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5786. In BitTorrent, Open files in read-only mode for hash check. After
  5787. that, re-open file in read/write mode only when the download is
  5788. not finished.
  5789. * src/AbstractDiskWriter.cc
  5790. * src/AbstractDiskWriter.h
  5791. * src/AbstractSingleDiskAdaptor.cc
  5792. * src/AbstractSingleDiskAdaptor.h
  5793. * src/BtCheckIntegrityEntry.cc
  5794. * src/DiskAdaptor.h
  5795. * src/DiskWriter.h
  5796. * src/MultiDiskAdaptor.cc
  5797. * src/MultiDiskAdaptor.h
  5798. * src/RequestGroup.cc
  5799. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5800. Added --http-auth-challenge option. If it is set to true(by
  5801. default), aria2 sends HTTP authorization header only when it is
  5802. requested by the server. If false is set, then authorization
  5803. header is always sent to the server. This is useful for servers
  5804. that don't respond 401 code when authentication is required.
  5805. There is an exception: if username and password are embedded in
  5806. URI, authorization header is always sent to the server regardless
  5807. of this option.
  5808. * src/AuthConfigFactory.cc
  5809. * src/HttpSkipResponseCommand.cc
  5810. * src/OptionHandlerFactory.cc
  5811. * src/prefs.cc
  5812. * src/prefs.h
  5813. * src/usage_text.h
  5814. * test/AuthConfigFactoryTest.cc
  5815. * test/HttpRequestTest.cc
  5816. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. * Release 1.2.0
  5818. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5819. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5820. Thanks to all translators.
  5821. * po/es.po
  5822. * po/ja.po
  5823. * po/ru.po
  5824. * po/uk.po
  5825. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5826. Call deleteSocketForReadCheck() before socket is closed.
  5827. * src/HttpListenCommand.cc
  5828. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5829. Defined virtual destructor for BObject.
  5830. * src/bencode.h
  5831. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5832. Rewritten BDE to make it efficient.
  5833. * src/bencode.cc
  5834. * src/bencode.h
  5835. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5836. Removed function throw list.
  5837. * src/bencode.cc
  5838. * src/bencode.h
  5839. * test/BencodeTest.cc
  5840. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5841. Enclosed all URLs in double quotes in command-line examples.
  5842. * doc/aria2c.1.txt
  5843. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Updated reference/see also section.
  5845. * README
  5846. * doc/aria2c.1.txt
  5847. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5848. Reorganized man page based on man man-pages.
  5849. * doc/aria2c.1.txt
  5850. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5851. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5852. because same documents are available in man page. Added
  5853. References section.
  5854. * README
  5855. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5857. PERFORMANCE PROFILE section.
  5858. * doc/aria2c.1.txt
  5859. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5860. Rewritten the section for configuration file.
  5861. * README
  5862. * doc/aria2c.1.txt
  5863. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5864. Fixed the segmentation fault during execution of choking algorithm
  5865. in leecher state because of broken compare operator
  5866. implementation.
  5867. * src/BtLeecherStateChoke.cc
  5868. * src/BtLeecherStateChoke.h
  5869. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Open file in binary mode.
  5871. * src/CookieStorage.cc
  5872. * src/DHTSetup.cc
  5873. * src/DHTUtil.cc
  5874. * src/Netrc.cc
  5875. * src/NsCookieParser.cc
  5876. * src/ProtocolDetector.cc
  5877. * src/RequestGroupMan.cc
  5878. * src/Signature.cc
  5879. * src/bencode.cc
  5880. * src/download_helper.cc
  5881. * src/option_processing.cc
  5882. * test/CookieParserTest.cc
  5883. * test/DefaultBtProgressInfoFileTest.cc
  5884. * test/FileTest.cc
  5885. * test/GZipDecoderTest.cc
  5886. * test/RequestGroupManTest.cc
  5887. * test/SignatureTest.cc
  5888. * test/SingleFileAllocationIteratorTest.cc
  5889. * test/UriListParserTest.cc
  5890. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5891. Removed operator[] because it is ambiguous with built-in []
  5892. operator.
  5893. * src/array_fun.h
  5894. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. Fixed compile error
  5896. * src/OptionParser.cc
  5897. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5898. Added missing call to arrayWrapperConst
  5899. * test/array_funTest.cc
  5900. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5901. Use array_wrapper instead of array_ptr.
  5902. * src/DHTRoutingTableDeserializer.cc
  5903. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5905. * src/array_fun.h
  5906. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5907. Added array_wrapper template.
  5908. * src/array_fun.h
  5909. * test/array_funTest.cc
  5910. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5911. Use operator T* of array_ptr.
  5912. * src/OptionParser.cc
  5913. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Use localhost instead of 127.0.0.1
  5915. * test/FtpConnectionTest.cc
  5916. * test/MSEHandshakeTest.cc
  5917. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Added operator T*
  5919. * src/array_fun.h
  5920. * test/array_funTest.cc
  5921. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5922. Use dynamically allocated char array to detect memory access
  5923. violation.
  5924. * src/DHTRoutingTableDeserializer.cc
  5925. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5926. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5927. defined.
  5928. * src/PeerMessageUtil.cc
  5929. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5930. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5931. * configure.ac
  5932. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5933. Added a check to see struct sockaddr_in has sin_len member.
  5934. * configure.ac
  5935. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Fixed buffer overrun.
  5937. * src/DHTRoutingTableDeserializer.cc
  5938. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Added LL for long long int constant.
  5940. * test/FtpConnectionTest.cc
  5941. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Casted to unsigned int to suppress compiler warning on netbsd.
  5943. * src/BtRuntime.h
  5944. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5946. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5947. type time_t.
  5948. * src/SimpleLogger.cc
  5949. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5950. Added test for FtpConnection::receiveSizeResponse().
  5951. * test/FtpConnectionTest.cc
  5952. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Fix epoll error on the old kernel 2.6.8 or ealier.
  5954. * src/EpollEventPoll.cc
  5955. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5956. Use Util::parseLLInt instead of sscanf for portability. The
  5957. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5958. * src/FtpConnection.cc
  5959. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5960. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5961. block. It should not filter anything.
  5962. * src/BitfieldMan.cc
  5963. * src/ConsoleStatCalc.cc
  5964. * test/BitfieldManTest.cc
  5965. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5966. Fixed the bug that the boolean options that don't take arguments
  5967. don't work.
  5968. * src/OptionHandlerImpl.h
  5969. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5970. Fixed broken selected file BitTorrent download.
  5971. * src/MultiDiskAdaptor.cc
  5972. * test/MultiDiskAdaptorTest.cc
  5973. * test/MultiFileAllocationIteratorTest.cc
  5974. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5975. Fixed #define guard for EpollEventPoll
  5976. * src/EpollEventPoll.h
  5977. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5978. Wait 2 seconds. 1 second is sometimes not enough.
  5979. * test/TimeSeedCriteriaTest.cc
  5980. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5981. Use localhost instead of 127.0.0.1.
  5982. * test/DHTConnectionImplTest.cc
  5983. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5984. Suppressed compiler warning.
  5985. * src/AdaptiveURISelector.cc
  5986. * src/DefaultPieceStorage.cc
  5987. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Defined virtual destructor.
  5989. * src/MetalinkParserState.h
  5990. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Give NULL for second argument of getaddrinfo instead of "0".
  5992. * src/NameResolver.cc
  5993. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5995. included strptime doesn't parse data for this format.
  5996. * src/FtpConnection.cc
  5997. * test/FtpConnectionTest.cc
  5998. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5999. Removed tests giving -1 for unsigned argument.
  6000. * test/SingleFileDownloadContextTest.cc
  6001. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Don't use sha256 in tests because it might not be supported by the
  6003. SSL library.
  6004. * test/MetalinkProcessorTest.cc
  6005. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6006. Removed tests giving -1 for unsigned argument.
  6007. * test/AlphaNumberDecoratorTest
  6008. * test/BitfieldManTest.cc
  6009. * test/DefaultBtContextTest.cc
  6010. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6011. Fixed compile error without libcares when epoll is available.
  6012. * src/EpollEventPoll.cc
  6013. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6014. Included fstream instead of iostream.
  6015. * test/SignatureTest.cc
  6016. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Removed #include <algorithm>
  6018. * test/RequestGroupTest.cc
  6019. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6021. using RequestGroup::extractURIResult().
  6022. * src/AdaptiveURISelector.cc
  6023. * src/RequestGroup.cc
  6024. * src/RequestGroup.h
  6025. * test/RequestGroupTest.cc
  6026. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6027. Added tests for array_ptr.
  6028. * test/array_funTest.cc
  6029. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Don't send ip parameter to a tracker if ip parameter is empty
  6031. string.
  6032. * src/DefaultBtAnnounce.cc
  6033. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Adjusted line feed.
  6035. * src/version_usage.cc
  6036. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6037. Print tags, possible values when OptionHandlerException is caught.
  6038. * src/option_processing.cc
  6039. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Changed the message for FatalException.
  6041. * src/OptionParser.cc
  6042. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6043. Documented --bt-external-ip option in man page. Updated man pages
  6044. for --proxy-method option.
  6045. * doc/aria2c.1.txt
  6046. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6047. Use GET method for FTP via HTTP proxy.
  6048. * src/FtpInitiateConnectionCommand.cc
  6049. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6050. Changed the default value of --proxy-method option from 'tunnel'
  6051. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6052. option.
  6053. * src/AbstractCommand.cc
  6054. * src/AbstractCommand.h
  6055. * src/FtpInitiateConnectionCommand.cc
  6056. * src/HttpDownloadCommand.cc
  6057. * src/HttpInitiateConnectionCommand.cc
  6058. * src/HttpInitiateConnectionCommand.h
  6059. * src/OptionHandlerFactory.cc
  6060. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Initialized _logger
  6062. * src/SelectEventPoll.cc
  6063. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Defined a copy constructor for the same type.
  6065. * src/SharedHandle.h
  6066. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6067. Added OptionParser::parseArg() which internally uses getopt_long
  6068. to parse command-line options. All command-line options are now
  6069. configured by OptionHandler. No manual editing of struct option*
  6070. is required any more.
  6071. * src/NameMatchOptionHandler.h
  6072. * src/OptionHandler.h
  6073. * src/OptionHandlerFactory.cc
  6074. * src/OptionHandlerImpl.h
  6075. * src/OptionParser.cc
  6076. * src/OptionParser.h
  6077. * src/array_fun.h
  6078. * src/main.cc
  6079. * src/option_processing.cc
  6080. * test/OptionHandlerTest.cc
  6081. * test/OptionParserTest.cc
  6082. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6083. Fixed configure error with --disable-epoll
  6084. * configure.ac
  6085. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6086. Fixed compile error when HAVE_EPOLL is not defined.
  6087. Fixed linker error on bigendian systems.
  6088. * src/SocketCore.cc
  6089. * src/SocketCore.h
  6090. * test/DefaultBtProgressInfoFileTest.cc
  6091. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Added --bt-external-ip option. You can specify the external IP
  6093. address to report to a BitTorrent tracker. Although this function
  6094. is named 'external', it can accept any kind of IP addresses.
  6095. * src/DefaultBtAnnounce.cc
  6096. * src/OptionHandlerFactory.cc
  6097. * src/option_processing.cc
  6098. * src/prefs.cc
  6099. * src/prefs.h
  6100. * src/usage_text.h
  6101. * test/DefaultBtAnnounceTest.cc
  6102. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Extracted the algorithm to find the longest incremental sequence
  6104. as max_sequence template.
  6105. * src/LongestSequencePieceSelector.cc
  6106. * src/a2algo.h
  6107. * test/Makefile.am
  6108. * test/a2algoTest.cc
  6109. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6110. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6111. * src/usage_text.h
  6112. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6113. Updated doc for --uri-selector, --http-server-listen-port and
  6114. --enable-http-server option. Documented --event-poll option.
  6115. * doc/aria2c.1.txt
  6116. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Updated doc for --enable-http-server.
  6118. * src/usage_text.h
  6119. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Documented --http-server-listen-port and --enable-http-server in
  6121. man page.
  6122. * doc/aria2c.1.txt
  6123. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6124. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6125. translations. Thanks to all translators.
  6126. * po/es.po
  6127. * po/id.po
  6128. * po/it.po
  6129. * po/ru.po
  6130. * po/uk.po
  6131. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6132. Bump up version number to 1.2.0
  6133. * configure.ac
  6134. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. BtContext::getAnnounceTiers() now returns const reference.
  6136. * src/BtContext.h
  6137. * src/DefaultBtContext.cc
  6138. * src/DefaultBtContext.h
  6139. * test/MockBtContext.h
  6140. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6141. Change the number of retries for tracker request based on the
  6142. number of available tracker in a torrent file.
  6143. * src/TrackerWatcherCommand.cc
  6144. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Added _maxTries property to RequestGroup and assign the option
  6146. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6147. RequestGroup::getMaxTries() instead of
  6148. Option::getAsInt(PREF_MAX_TRIES).
  6149. * src/AbstractCommand.cc
  6150. * src/RequestGroup.cc
  6151. * src/RequestGroup.h
  6152. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6154. Mandriva. I modified the patch: make RequestGroup have the
  6155. timeout value and AdaptiveURISelector directly modifies that
  6156. value.
  6157. * src/AbstractCommand.cc
  6158. * src/AdaptiveURISelector.cc
  6159. * src/AdaptiveURISelector.h
  6160. * src/FtpNegotiationCommand.cc
  6161. * src/RequestGroup.cc
  6162. * src/RequestGroup.h
  6163. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6164. Fixed compiler warning
  6165. * test/IteratableChecksumValidatorTest.cc
  6166. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6167. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6168. integrated downloads. This PieceSelector subclass finds the
  6169. longest continuous sequence in the available missing pieces and
  6170. selects the last index of such sequence. This makes HTTP/FTP
  6171. connections less interrupted by the pieces obtained by BitTorrent
  6172. peers.
  6173. * src/DefaultPieceStorage.cc
  6174. * src/DefaultPieceStorage.h
  6175. * src/LongestSequencePieceSelector.cc
  6176. * src/LongestSequencePieceSelector.h
  6177. * src/Makefile.am
  6178. * src/PieceSelector.h
  6179. * src/RarestPieceSelector.h
  6180. * src/RequestGroup.cc
  6181. * test/BtDependencyTest.cc
  6182. * test/DefaultPieceStorageTest.cc
  6183. * test/IteratableChecksumValidatorTest.cc
  6184. * test/LongestSequencePieceSelectorTest.cc
  6185. * test/Makefile.am
  6186. * test/SegmentManTest.cc
  6187. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Fixed the bug that the average speed is wrong in
  6189. http/ftp/BitTorrent integrated download. Only the download bytes
  6190. in BitTorrent were considered.
  6191. * src/RequestGroup.cc
  6192. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6193. Choose port for BitTorrent/DHT randomly from the specified range.
  6194. * src/DHTConnectionImpl.cc
  6195. * src/PeerListenCommand.cc
  6196. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6197. Send HTTP Authorization header only if it is requested by the
  6198. server(response 401). There are some exceptions. The authorization
  6199. header for proxy is always sent if it is available without request
  6200. by the server. If username/password is specified in the URI, it
  6201. is immediately sent to the server without request by the server.
  6202. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6203. SharedHandle<AuthConfig>().
  6204. NetrcAuthResolver::resolveAuthConfig() returns
  6205. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6206. * src/AbstractAuthResolver.cc
  6207. * src/AbstractProxyRequestCommand.cc
  6208. * src/AuthConfigFactory.cc
  6209. * src/AuthConfigFactory.h
  6210. * src/HttpConnection.cc
  6211. * src/HttpRequest.cc
  6212. * src/HttpRequest.h
  6213. * src/HttpResponse.cc
  6214. * src/HttpResponseCommand.cc
  6215. * src/HttpSkipResponseCommand.cc
  6216. * test/AuthConfigFactoryTest.cc
  6217. * test/HttpRequestTest.cc
  6218. * test/HttpResponseTest.cc
  6219. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Remove leading "--" from help keyword and a substring after "="
  6221. from help keyword, so that one can query options by '-h--max-' or
  6222. '-hmax-peers=10'.
  6223. * src/option_processing.cc
  6224. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Rewritten PStringVisitor and its implementation.
  6226. * src/PStringBuildVisitor.cc
  6227. * src/PStringBuildVisitor.h
  6228. * src/PStringDatum.h
  6229. * src/PStringNumLoop.h
  6230. * src/PStringSegment.cc
  6231. * src/PStringSegment.h
  6232. * src/PStringSelect.h
  6233. * src/PStringVisitor.h
  6234. * src/download_helper.cc
  6235. * test/PStringBuildVisitorTest.cc
  6236. * test/ParameterizedStringParserTest.cc
  6237. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Persist connection between the built-in HTTP server and a client
  6239. if a client supports keep-alive. Fixed the bug that aria2 exits
  6240. when the HTTP server receives EOF from a client.
  6241. * src/HttpServer.cc
  6242. * src/HttpServer.h
  6243. * src/HttpServerCommand.cc
  6244. * src/HttpServerCommand.h
  6245. * src/HttpServerResponseCommand.cc
  6246. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Added experimental built-in HTTP server. Currently, when a client
  6248. accesses to the server, it responds with the current download
  6249. progress. By default, it is disabled. To enable the server, give
  6250. --enable-http-server option. To change the default port number
  6251. for the server to listen to, use --http-server-listen-port option.
  6252. The response HTML is very simple and refreshes it self each 1
  6253. second. Because of this refresh, you see flicker in normal web
  6254. browser such as Firefox. I recommend to use console-based browser
  6255. such as elinks, w3m. To connect to the server, run 'elinks
  6256. http://localhost:6800/' while running aria2. Please replace port
  6257. number '6800'(which is default) with your preference.
  6258. * src/DownloadEngineFactory.cc
  6259. * src/HttpHeader.cc
  6260. * src/HttpHeader.h
  6261. * src/HttpHeaderProcessor.cc
  6262. * src/HttpHeaderProcessor.h
  6263. * src/HttpListenCommand.cc
  6264. * src/HttpListenCommand.h
  6265. * src/HttpServer.cc
  6266. * src/HttpServer.h
  6267. * src/HttpServerCommand.cc
  6268. * src/HttpServerCommand.h
  6269. * src/HttpServerResponseCommand.cc
  6270. * src/HttpServerResponseCommand.h
  6271. * src/Makefile.am
  6272. * src/OptionHandlerFactory.cc
  6273. * src/Util.cc
  6274. * src/Util.h
  6275. * src/help_tags.h
  6276. * src/option_processing.cc
  6277. * src/prefs.cc
  6278. * src/prefs.h
  6279. * src/usage_text.h
  6280. * test/HttpHeaderProcessorTest.cc
  6281. * test/UtilTest.cc
  6282. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. Removed.
  6284. * src/CheckIntegrityMan.cc
  6285. * src/FileAllocationMan.cc
  6286. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Made (piece) hash check sequential for each RequestGroup because
  6288. simultaneous hash check is slower than sequential execution.
  6289. * src/CheckIntegrityCommand.cc
  6290. * src/CheckIntegrityDispatcherCommand.cc
  6291. * src/CheckIntegrityDispatcherCommand.h
  6292. * src/CheckIntegrityMan.h
  6293. * src/ConsoleStatCalc.cc
  6294. * src/DownloadCommand.cc
  6295. * src/DownloadEngine.cc
  6296. * src/DownloadEngine.h
  6297. * src/DownloadEngineFactory.cc
  6298. * src/Makefile.am
  6299. * src/Makefile.in
  6300. * src/RequestGroup.cc
  6301. * src/StatCalc.h
  6302. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6303. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6304. SequentialDispatcherCommand.
  6305. * src/FileAllocationDispatcherCommand.cc
  6306. * src/SequentialDispatcherCommand.h
  6307. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6308. Rewritten FileAllocationDispatcherCommand using brand new
  6309. SequentialDispatcherCommand.
  6310. * src/DownloadEngineFactory.cc
  6311. * src/FileAllocationCommand.cc
  6312. * src/FileAllocationDispatcherCommand.cc
  6313. * src/FileAllocationDispatcherCommand.h
  6314. * src/Makefile.am
  6315. * src/SequentialDispatcherCommand.h
  6316. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6317. Replaced FileAllocationMan with
  6318. SequentialPicker<FileAllocationEntry>.
  6319. * src/BtCheckIntegrityEntry.cc
  6320. * src/ConsoleStatCalc.cc
  6321. * src/DownloadEngine.cc
  6322. * src/DownloadEngine.h
  6323. * src/DownloadEngineFactory.cc
  6324. * src/FileAllocationCommand.cc
  6325. * src/FileAllocationDispatcherCommand.cc
  6326. * src/FileAllocationMan.h
  6327. * src/Makefile.am
  6328. * src/SequentialPicker.h
  6329. * src/StatCalc.h
  6330. * src/StreamCheckIntegrityEntry.cc
  6331. * test/Makefile.am
  6332. * test/SequentialPickerTest.cc
  6333. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Added doc for adaptive URI selector.
  6335. * doc/aria2c.1.txt
  6336. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6337. Added doc for adaptive URI selector.
  6338. * src/usage_text.h
  6339. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6340. Added doc for --bt-max-peers option.
  6341. * doc/aria2c.1.txt
  6342. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6343. Added doc for --bt-hash-check-seed option.
  6344. * doc/aria2c.1.txt
  6345. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6346. Documented exit codes.
  6347. * doc/aria2c.1.txt
  6348. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6349. Added --bt-max-peers option to specify the maximum number of peers
  6350. per torrent. 0 means unlimited number of peers.
  6351. * src/ActivePeerConnectionCommand.cc
  6352. * src/BtRuntime.h
  6353. * src/DefaultPeerStorage.cc
  6354. * src/DefaultPeerStorage.h
  6355. * src/OptionHandlerFactory.cc
  6356. * src/RequestGroup.cc
  6357. * src/option_processing.cc
  6358. * src/prefs.cc
  6359. * src/prefs.h
  6360. * src/usage_text.h
  6361. * test/DefaultPeerStorageTest.cc
  6362. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Added --bt-hash-check-seed option. If true is given to this
  6364. option, after hash check using --check-integrity option and file
  6365. is complete, continue to seed file. If you want to check file and
  6366. download it only when it is damaged or incomplete, set this option
  6367. to false. This option has effect only on BitTorrent download.
  6368. The default value is true(This is the same behavior with the
  6369. previous release).
  6370. * src/BtCheckIntegrityEntry.cc
  6371. * src/OptionHandlerFactory.cc
  6372. * src/option_processing.cc
  6373. * src/prefs.cc
  6374. * src/prefs.h
  6375. * src/usage_text.h
  6376. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Updated copyright year.
  6378. * src/version_usage.cc
  6379. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6380. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6381. * doc/aria2c.1.txt
  6382. * src/usage_text.h
  6383. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6384. Made the max value of split option unlimited.
  6385. * doc/aria2c.1.txt
  6386. * src/OptionHandlerFactory.cc
  6387. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6388. Fixed compile warning/error.
  6389. * src/DownloadResult.h
  6390. * src/HttpDownloadCommand.cc
  6391. * src/ServerStat.cc
  6392. * test/RequestGroupTest.cc
  6393. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Added --event-poll option to select the method for polling events.
  6395. The available methods are "select" and "epoll". "epoll" is
  6396. available on Linux only. The earlier release has the compile
  6397. option to choose from these methods.
  6398. * configure.ac
  6399. * src/RequestGroupMan.cc
  6400. * src/OptionHandlerFactory.cc
  6401. * src/EpollEventPoll.h
  6402. * src/StreamFileAllocationEntry.cc
  6403. * src/a2io.h
  6404. * src/SelectEventPoll.h
  6405. * src/option_processing.cc
  6406. * src/prefs.h
  6407. * src/EpollEventPoll.cc
  6408. * src/EventPoll.h
  6409. * src/SocketCore.h
  6410. * src/Makefile.am
  6411. * src/main.cc
  6412. * src/DownloadEngine.h
  6413. * src/SelectEventPoll.cc
  6414. * src/DownloadEngine.cc
  6415. * src/SocketCore.cc
  6416. * src/DownloadEngineFactory.cc
  6417. * src/Makefile.in
  6418. * src/prefs.cc
  6419. * src/usage_text.h
  6420. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Included RecoverableException.h from main.cc
  6422. * src/main.cc
  6423. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6424. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6425. now returns last error encountered in the HTTP/FTP downloads as a
  6426. exit status value. If all downloads finished successfully, aria2
  6427. returns 0. The error code is defined in src/DownloadResult.h.
  6428. The error occurred in the download currently in progress is not
  6429. reported as a last error. If no error has encountered but there
  6430. are in progress or waiting downloads, aria2 returns 7.
  6431. * src/AbstractCommand.cc
  6432. * src/DlAbortEx.h
  6433. * src/DlRetryEx.h
  6434. * src/DownloadCommand.cc
  6435. * src/DownloadFailureException.h
  6436. * src/DownloadResult.h
  6437. * src/FtpNegotiationCommand.cc
  6438. * src/HttpSkipResponseCommand.cc
  6439. * src/Makefile.am
  6440. * src/MultiUrlRequestInfo.cc
  6441. * src/MultiUrlRequestInfo.h
  6442. * src/RecoverableException.h
  6443. * src/RequestGroup.cc
  6444. * src/RequestGroup.h
  6445. * src/RequestGroupMan.cc
  6446. * src/RequestGroupMan.h
  6447. * src/URIResult.cc
  6448. * src/URIResult.h
  6449. * src/main.cc
  6450. * src/option_processing.cc
  6451. * test/RequestGroupTest.cc
  6452. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6453. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6454. patch adds AdaptiveURISelector, which selects one of the bests
  6455. mirrors for first and reserved connections. For supplementary
  6456. ones, it returns mirrors which has not been tested yet, and if
  6457. each of them already tested, returns mirrors which has to be
  6458. tested again. Otherwise, it doesn't return anymore mirrors.
  6459. * src/AdaptiveURISelector.cc
  6460. * src/AdaptiveURISelector.h
  6461. * src/FtpNegotiationCommand.cc
  6462. * src/HttpResponseCommand.cc
  6463. * src/Makefile.am
  6464. * src/Makefile.in
  6465. * src/OptionHandlerFactory.cc
  6466. * src/RequestGroup.cc
  6467. * src/RequestGroup.h
  6468. * src/RequestGroupMan.cc
  6469. * src/ServerStat.cc
  6470. * src/ServerStat.h
  6471. * src/ServerStatMan.cc
  6472. * src/SpeedCalc.cc
  6473. * src/URISelector.h
  6474. * src/prefs.cc
  6475. * src/prefs.h
  6476. * test/RequestGroupManTest.cc
  6477. * test/ServerStatManTest.cc
  6478. * test/ServerStatTest.cc
  6479. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6480. Fixed unit test error.
  6481. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6482. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6483. * Release 1.1.2
  6484. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6485. Updated Russian translation. Thanks to the translators.
  6486. * po/ru.po
  6487. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6488. Added the description of --use-head option to man page.
  6489. * doc/aria2c.1.txt
  6490. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6491. Bump up version number to 1.1.2
  6492. * configure.ac
  6493. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6494. Added --use-head option to toggle whether HEAD method should be
  6495. used in the first HTTP request. By default aria2 uses HEAD method
  6496. as the first request. When the server doesn't recognize HEAD, then
  6497. give aria2 --use-head=false to force aria2 to use GET method
  6498. instead.
  6499. * src/OptionHandlerFactory.cc
  6500. * src/RequestGroupMan.cc
  6501. * src/option_processing.cc
  6502. * src/prefs.cc
  6503. * src/prefs.h
  6504. * src/usage_text.h
  6505. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6506. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6507. message is received before CHOKE message. The old implementation
  6508. doen't clear the use-bit of the piece when recieved REJECT
  6509. message.
  6510. * src/DefaultBtMessageDispatcher.cc
  6511. * test/DefaultBtMessageDispatcherTest.cc
  6512. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6513. * Release 1.1.1
  6514. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Bump up version number to 1.1.1.
  6516. * configure.ac
  6517. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6519. is printed repeatedly.
  6520. * src/ConsoleStatCalc.cc
  6521. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6522. * Release 1.1.0
  6523. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6524. Added ifdef clause for conditional compilation.
  6525. * src/main.cc
  6526. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6527. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6528. translations. Thanks to all translators.
  6529. * po/ja.po
  6530. * po/ru.po
  6531. * po/uk.po
  6532. * po/zh_CN.po
  6533. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6534. Added the preceding ">>> " before the message "Printing the
  6535. contents of file..." to make the output more readable.
  6536. * src/main.cc
  6537. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Added try-catch block in the loop in showFiles() to continue the
  6539. operation even if the exception occurred in one file.
  6540. * src/main.cc (showFiles)
  6541. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6542. Made messages in showFiles() translatable.
  6543. * po/aria2.pot
  6544. * src/main.cc
  6545. * src/message.h
  6546. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6547. Print the contents of Torrent/Metalink files are printed without
  6548. -T/-M options.
  6549. * src/main.cc
  6550. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Escaped '--' with '\--'
  6552. * README
  6553. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6554. Updated "How to build" section in README. Mentioned about
  6555. --with-ca-bundle compile option.
  6556. * README
  6557. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6558. Bump up version number to 1.1.0.
  6559. * configure.ac
  6560. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6561. Added a note for --dht-listen-port option.
  6562. * doc/aria2c.1.txt
  6563. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Update doc for --realtime-chunk-checksum option.
  6565. * doc/aria2c.1.txt
  6566. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Update doc for --realtime-chunk-checksum option.
  6568. * src/usage_text.h
  6569. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Updated French, Japanese, Russian and Ukrainian translations.
  6571. Thanks to all translators.
  6572. * po/fr.po
  6573. * po/ja.po
  6574. * po/ru.po
  6575. * po/uk.po
  6576. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Renamed aria2c.pot to aria2.pot
  6578. * po/aria2.pot
  6579. * po/aria2c.pot: Removed.
  6580. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6581. Removed MetaEntry.h
  6582. * src/Makefile.am
  6583. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6584. Rename file by appending digits if a local file exists and its
  6585. file size is larger than that of remote file with --continue
  6586. option. The old implementation just throws exception in such case.
  6587. * src/RequestGroup.cc
  6588. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6589. Fixed the bug that download progress summary is not printed in the
  6590. interval specified by the option.
  6591. * src/ConsoleStatCalc.cc
  6592. * src/ConsoleStatCalc.h
  6593. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6594. Fixed compiler warning
  6595. * src/Cookie.cc
  6596. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6597. Fixed the cookie implementation based on RFC2965.
  6598. Now if a value in domain field is not started with dot, then
  6599. prepend dot. That means a cookie with domain=sf.net is sent to
  6600. wiki.sf.net.
  6601. * src/Cookie.cc
  6602. * test/CookieParserTest.cc
  6603. * test/CookieStorageTest.cc
  6604. * test/CookieTest.cc
  6605. * test/NsCookieParserTest.cc
  6606. * test/Sqlite3MozCookieParserTest.cc
  6607. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6608. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6609. is enabled and the server doesn't support keep-alive.
  6610. * src/AbstractCommand.cc
  6611. * src/DownloadCommand.cc
  6612. * src/HttpDownloadCommand.cc
  6613. * src/HttpDownloadCommand.h
  6614. * src/HttpResponseCommand.cc
  6615. * src/Request.cc
  6616. * src/Request.h
  6617. * test/RequestTest.cc
  6618. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Removed Dictionary/List/Data and its related classes.
  6620. * src/BencodeVisitor.cc: Removed.
  6621. * src/BencodeVisitor.h: Removed.
  6622. * src/Data.cc: Removed.
  6623. * src/Data.h: Removed.
  6624. * src/Dictionary.cc: Removed.
  6625. * src/Dictionary.h: Removed.
  6626. * src/List.cc: Removed.
  6627. * src/List.h: Removed.
  6628. * src/Makefile.am
  6629. * src/MetaEntry.h: Removed.
  6630. * src/MetaEntryVisitor.h: Removed.
  6631. * src/MetaFileUtil.cc: Removed.
  6632. * src/MetaFileUtil.h: Removed.
  6633. * test/BencodeVisitorTest.cc: Removed.
  6634. * test/DataTest.cc: Removed.
  6635. * test/DictionaryTest.cc: Removed.
  6636. * test/ListTest.cc: Removed.
  6637. * test/Makefile.am
  6638. * test/MetaFileUtilTest.cc: Removed.
  6639. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6640. Removed include of MetaEntry.h
  6641. * test/DHTMessageTrackerEntryTest.cc
  6642. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Use BDE instead of Dictionary/List/Data.
  6644. * src/AnnounceList.cc
  6645. * src/AnnounceList.h
  6646. * test/AnnounceListTest.cc
  6647. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6648. Use BDE instead of Dictionary/List/Data.
  6649. * src/DHTAbstractMessage.cc
  6650. * src/DHTAbstractMessage.h
  6651. * src/DHTAnnouncePeerMessage.cc
  6652. * src/DHTAnnouncePeerMessage.h
  6653. * src/DHTAnnouncePeerReplyMessage.cc
  6654. * src/DHTAnnouncePeerReplyMessage.h
  6655. * src/DHTFindNodeMessage.cc
  6656. * src/DHTFindNodeMessage.h
  6657. * src/DHTFindNodeReplyMessage.cc
  6658. * src/DHTFindNodeReplyMessage.h
  6659. * src/DHTGetPeersMessage.cc
  6660. * src/DHTGetPeersMessage.h
  6661. * src/DHTGetPeersReplyMessage.cc
  6662. * src/DHTGetPeersReplyMessage.h
  6663. * src/DHTMessageFactory.h
  6664. * src/DHTMessageFactoryImpl.cc
  6665. * src/DHTMessageFactoryImpl.h
  6666. * src/DHTMessageReceiver.cc
  6667. * src/DHTMessageTracker.cc
  6668. * src/DHTMessageTracker.h
  6669. * src/DHTPingMessage.cc
  6670. * src/DHTPingMessage.h
  6671. * src/DHTPingReplyMessage.cc
  6672. * src/DHTPingReplyMessage.h
  6673. * src/DHTQueryMessage.cc
  6674. * src/DHTQueryMessage.h
  6675. * src/DHTResponseMessage.cc
  6676. * src/DHTResponseMessage.h
  6677. * test/DHTAnnouncePeerMessageTest.cc
  6678. * test/DHTAnnouncePeerReplyMessageTest.cc
  6679. * test/DHTFindNodeMessageTest.cc
  6680. * test/DHTFindNodeReplyMessageTest.cc
  6681. * test/DHTGetPeersMessageTest.cc
  6682. * test/DHTGetPeersReplyMessageTest.cc
  6683. * test/DHTMessageFactoryImplTest.cc
  6684. * test/DHTMessageTrackerTest.cc
  6685. * test/DHTPingMessageTest.cc
  6686. * test/DHTPingReplyMessageTest.cc
  6687. * test/MockDHTMessageFactory.h
  6688. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6689. Added tests the case where length < 0 is specified.
  6690. * test/BencodeTest.cc
  6691. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Fixed memory leak in decoderawstring()
  6693. * src/bencode.cc
  6694. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Added missing #ifdef guard. Added uc() function for String and
  6696. removeKey() for Dict.
  6697. * src/bencode.cc
  6698. * src/bencode.h
  6699. * test/BencodeTest.cc
  6700. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6701. Use BDE instead of Dictionary/List/Data.
  6702. * src/HandshakeExtensionMessage.cc
  6703. * src/HandshakeExtensionMessage.h
  6704. * test/HandshakeExtensionMessageTest.cc
  6705. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Added --max-overall-upload-limit option. This option limits the
  6707. overall upload speed. Stated in help message that the existing
  6708. --max-upload-limit option limits the upload speed per each
  6709. torrent. Man page is also updated.
  6710. * doc/aria2c.1.txt
  6711. * src/DefaultBtMessageDispatcher.cc
  6712. * src/DefaultBtMessageDispatcher.h
  6713. * src/OptionHandlerFactory.cc
  6714. * src/PeerInteractionCommand.cc
  6715. * src/option_processing.cc
  6716. * src/prefs.cc
  6717. * src/prefs.h
  6718. * src/usage_text.h
  6719. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Use BDE instead of Dictionary/List/Data classes.
  6721. * src/CompactPeerListProcessor.cc
  6722. * src/CompactPeerListProcessor.h
  6723. * src/DefaultBtAnnounce.cc
  6724. * src/DefaultBtContext.cc
  6725. * src/DefaultBtContext.h
  6726. * src/DefaultPeerListProcessor.cc
  6727. * src/DefaultPeerListProcessor.h
  6728. * src/DelegatingPeerListProcessor.cc
  6729. * src/DelegatingPeerListProcessor.h
  6730. * src/PeerListProcessor.h
  6731. * src/UTPexExtensionMessage.cc
  6732. * src/Util.h
  6733. * src/message.h
  6734. * test/DefaultBtContextTest.cc
  6735. * test/DefaultPeerListProcessorTest.cc
  6736. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6737. Added bencode helper functions and BDE class.
  6738. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6739. * src/Makefile.am
  6740. * src/bencode.cc
  6741. * src/bencode.h
  6742. * test/BencodeTest.cc
  6743. * test/Makefile.am
  6744. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. Fixed the bug that bad URI is sent to the tracker when the announe
  6746. URI in torrent file includes query.
  6747. * src/DefaultBtAnnounce.cc
  6748. * test/DefaultBtAnnounceTest.cc
  6749. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6750. Added Option::blank().
  6751. Use !Option::blank(name) instead of Option::defined(name) for
  6752. the options that take filename.
  6753. * src/MultiUrlRequestInfo.cc
  6754. * src/Option.cc
  6755. * src/Option.h
  6756. * src/main.cc
  6757. * src/option_processing.cc
  6758. * test/OptionTest.cc
  6759. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6760. Documented the default value of --check-certificate option in man
  6761. page.
  6762. * doc/aria2c.1.txt
  6763. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6764. Enabled --check-certificate by default. Added compile
  6765. time(configure) option --with-ca-bundle to specify CA bundle.
  6766. Warn if --check-certificate=true and --ca-certificate is not
  6767. specified or loading CA certificate is failed.
  6768. * configure.ac
  6769. * src/MultiUrlRequestInfo.cc
  6770. * src/OptionHandlerFactory.cc
  6771. * src/message.h
  6772. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6773. Mentioned https tag in help option.
  6774. * doc/aria2c.1.txt
  6775. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6776. Added `https' tag to help option category. Added https tag to
  6777. --ca-certificate, --certificate, --check-certificate and
  6778. --private-key option.
  6779. * src/OptionHandlerFactory.cc
  6780. * src/help_tags.h
  6781. * src/option_processing.cc
  6782. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6783. Changed the package name from `aria2c' to `aria2' in order to fix
  6784. the packaging issue in Debian and Fedora. The name of the
  6785. executable is not changed.
  6786. * configure.ac
  6787. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Fixed typos
  6789. * src/usage_text.h
  6790. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6791. Fixed typos and updated doc.
  6792. * README
  6793. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Fixed typos
  6795. * doc/aria2c.1.txt
  6796. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6797. Fixed typos
  6798. * src/usage_text.h
  6799. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6800. Print a message when no files to download.
  6801. * src/download_helper.cc
  6802. * src/main.cc
  6803. * src/message.h
  6804. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6805. RFC3986 complied Percent-Encoding(urlencode).
  6806. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6807. ones.
  6808. * src/Request.cc
  6809. * src/Util.cc
  6810. * src/Util.h
  6811. * test/BtHandshakeMessageTest.cc
  6812. * test/DefaultBtAnnounceTest.cc
  6813. * test/DefaultBtContextTest.cc
  6814. * test/RequestTest.cc
  6815. * test/UtilTest.cc
  6816. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Fixed the bug that prevents aria2 from downloading 0-length files
  6818. via HTTP/FTP.
  6819. * src/DefaultBtContext.cc
  6820. * src/DefaultBtContext.h
  6821. * src/DownloadContext.h
  6822. * src/FtpNegotiationCommand.cc
  6823. * src/HttpResponseCommand.cc
  6824. * src/HttpResponseCommand.h
  6825. * src/RequestGroup.cc
  6826. * src/SingleFileDownloadContext.cc
  6827. * src/SingleFileDownloadContext.h
  6828. * test/BtPostDownloadHandlerTest.cc
  6829. * test/MetalinkPostDownloadHandlerTest.cc
  6830. * test/MockBtContext.h
  6831. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6833. * src/option_processing.cc
  6834. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6835. Applied aria2-1.0.1-mingw.patch.
  6836. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6837. mingw.
  6838. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6839. * src/SocketCore.cc
  6840. * src/a2netcompat.h
  6841. * test/SocketCoreTest.cc
  6842. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6843. * Release 1.0.1
  6844. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6845. Updated Ukrainian and Norwegian Nynorsk translations.
  6846. Thanks to all translators.
  6847. * po/nn.po
  6848. * po/uk.po
  6849. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6850. Don't show download result when -S option is used.
  6851. * src/main.cc
  6852. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6853. Bump up version number to 1.0.1
  6854. * configure.ac
  6855. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6856. Closed files after the test cases in MultiDiskWriterTest::
  6857. testResetDiskWriterEntries(). This will fix the unit test error
  6858. in mingw32 build.
  6859. * test/MultiDiskWriterTest.cc
  6860. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6861. Use HEAD method to get file size from HTTP server for segmented
  6862. downloading.
  6863. The request to the BitTorrent Tracker always uses GET method because
  6864. the response of the tracker is small and it doesn't need segmented
  6865. download.
  6866. * src/FtpNegotiationCommand.cc
  6867. * src/HttpRequest.cc
  6868. * src/HttpResponseCommand.cc
  6869. * src/HttpSkipResponseCommand.cc
  6870. * src/RequestGroup.cc
  6871. * src/RequestGroup.h
  6872. * src/TrackerWatcherCommand.cc
  6873. * test/HttpRequestTest.cc
  6874. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6875. Fixed the bug that causes floating exception when -T option is used and
  6876. no URIs are given.
  6877. * src/download_helper.cc
  6878. * test/DownloadHelperTest.cc
  6879. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6880. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6881. errors in MinGW:
  6882. Closed file after saving server stats (RequestGroupMan.cc)
  6883. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6884. Ignored case & handled 2-digit years (strptime.c)
  6885. Added missing suseconds_t definition (a2time.h)
  6886. Fixed socket CLOSE() define (SocketCore.cc)
  6887. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6888. Changed utime() test values from x000 to x00000 as MinGW failed on
  6889. values less than timezone offset from Unix epoch
  6890. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6891. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6892. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6893. handle negative dates (CookieParserTest.cc)
  6894. * src/a2time.h
  6895. * src/FtpConnection.cc
  6896. * src/RequestGroupMan.cc
  6897. * src/SocketCore.cc
  6898. * src/strptime.c
  6899. * test/CookieParserTest.cc
  6900. * test/CopyDiskAdaptorTest.cc
  6901. * test/FileTest.cc
  6902. * test/FtpConnectionTest.cc
  6903. * test/MultiDiskAdaptorTest.cc
  6904. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6905. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6906. * doc/aria2c.1.txt
  6907. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6908. * Release 1.0.0
  6909. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6910. Added '~' to reserved characters.
  6911. * src/Util.cc
  6912. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6913. Do not urlencode Request::url in setUrl() because we want unmodified
  6914. URL using Request::getUrl()
  6915. * src/Request.cc
  6916. * src/Request.h
  6917. * test/RequestTest.cc
  6918. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6919. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6920. Thanks to all translators.
  6921. * po/bg.po
  6922. * po/fr.po
  6923. * po/ja.po
  6924. * po/ru.po
  6925. * po/uk.po
  6926. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6927. Bump up version number to 1.0.0
  6928. * configure.ac
  6929. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6930. Added nosqlite3 build to build_test.sh.
  6931. Renamed noxml as expat.
  6932. * build_test.sh
  6933. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6934. Updated INPUT FILE section.
  6935. * doc/aria2c.1.txt
  6936. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6937. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6938. on big endian systems because test .aria2 files are made for little
  6939. endian systems.
  6940. * test/DefaultBtProgressInfoFileTest.cc
  6941. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6942. Dropped ares support.
  6943. * README
  6944. * configure.ac
  6945. * m4/libares.m4: Removed.
  6946. * src/AsyncNameResolver.cc
  6947. * src/Makefile.am
  6948. * test/Makefile.am
  6949. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6950. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6951. Removed const qualifier from DiskWriter::size().
  6952. * src/AbstractDiskWriter.cc
  6953. * src/AbstractDiskWriter.h
  6954. * src/ByteArrayDiskWriter.cc
  6955. * src/ByteArrayDiskWriter.h
  6956. * src/DiskWriter.h
  6957. * test/ByteArrayDiskWriterTest.cc
  6958. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6959. Fixed the bug that causes segmentation fault/bus error during executing
  6960. choking algorithm while seeding. This is caused by improper
  6961. implementation of compare function which returns inconsistent results
  6962. depending on the timing of last unchoke.
  6963. * src/BtSeederStateChoke.cc
  6964. * src/BtSeederStateChoke.h
  6965. * src/DefaultPeerStorage.cc
  6966. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6967. Removed TODO
  6968. * TODO
  6969. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6970. Added a section that explains how to pass argument to options that
  6971. takes optional arguments with its short form.
  6972. * doc/aria2c.1.txt
  6973. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6974. Added -u for the short form of --max-upload-limit option.
  6975. * doc/aria2c.1.txt
  6976. * src/option_processing.cc
  6977. * src/usage_text.h
  6978. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6979. Added -V for the short form of --check-integrity option.
  6980. Now the argument of --check-integrity option is optional:
  6981. if it is omitted, it is evaluated as true.
  6982. * doc/aria2c.1.txt
  6983. * src/option_processing.cc
  6984. * src/usage_text.h
  6985. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6986. Made the default value of --ftp-pasv option set to true and it can take
  6987. true/false values.
  6988. * src/OptionHandlerFactory.cc
  6989. * src/option_processing.cc
  6990. * src/usage_text.h
  6991. * doc/aria2c.1.txt
  6992. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6993. Given custom random number generator to std::random_shuffle.
  6994. * src/AnnounceList.cc
  6995. * src/BtLeecherStateChoke.cc
  6996. * src/BtSeederStateChoke.cc
  6997. * src/DefaultBtRequestFactory.cc
  6998. * src/MetalinkEntry.cc
  6999. * src/RarestPieceSelector.cc
  7000. * src/SimpleRandomizer.cc
  7001. * src/SimpleRandomizer.h
  7002. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7003. Now the default value of --enable-direct-io is true.
  7004. * src/OptionHandlerFactory.cc
  7005. * doc/aria2c.1.txt
  7006. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7007. Erase peer before executing onReturningPeer and onErasingPeer
  7008. because choking algorithm called from onReturningPeer doesn't
  7009. like erasing peer in the active peer list.
  7010. * src/DefaultPeerStorage.cc
  7011. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7012. Instead of creating special filename in createDownloadResult() if
  7013. inMemoryDownload() is true, now it is done in getFilePath().
  7014. * src/RequestGroup.cc
  7015. * test/RequestGroupTest.cc
  7016. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7018. processed in memory. This is the fix for previous comment out.
  7019. * src/MemoryBufferPreDownloadHandler.cc
  7020. * src/RequestGroup.cc
  7021. * src/RequestGroup.h
  7022. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7023. Commented out the code which sets virtual directory path "[MEMORY]"
  7024. propagate directory to store to following RequestGroup.
  7025. * src/MemoryBufferPreDownloadHandler.cc
  7026. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7027. Bump up version number to 1.0.0b
  7028. * configure.ac
  7029. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7030. Added input_uris.txt to EXTRA_DIST
  7031. * test/Makefile.am
  7032. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7033. Removed PeerObject.h from Makefile.am
  7034. * src/Makefile.am
  7035. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7036. Avoid slow seeding
  7037. * src/PeerInteractionCommand.cc
  7038. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7039. Updated usage for -i option.
  7040. * src/usage_text.h (TEXT_INPUT_FILE)
  7041. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7042. Added INPUT FILE section to man page.
  7043. Escaped fake URLs.
  7044. * doc/aria2c.1.txt
  7045. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7046. Fixed wrong note position for -o option.
  7047. * doc/aria2c.1.txt
  7048. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7049. Fixed compile error without SSL/XML library.
  7050. * src/DefaultBtProgressInfoFile.cc
  7051. * src/DefaultBtProgressInfoFile.h
  7052. * src/FileMetalinkParserState.cc
  7053. * src/RequestGroup.h
  7054. * src/SocketCore.cc
  7055. * src/SocketCore.h
  7056. * src/VerificationMetalinkParserState.cc
  7057. * src/download_helper.h
  7058. * src/main.cc
  7059. * test/DefaultBtProgressInfoFileTest.cc
  7060. * test/DownloadHelperTest.cc
  7061. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7062. Rewritten URI handling functions. They are now provided as a testable
  7063. functions.
  7064. * src/Makefile.am
  7065. * src/RequestGroup.cc
  7066. * src/RequestGroup.h
  7067. * src/download_helper.cc
  7068. * src/download_helper.h
  7069. * src/main.cc
  7070. * test/DownloadHelperTest.cc
  7071. * test/Makefile.am
  7072. * test/input_uris.txt
  7073. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7074. Quickly terminate commands when ctrl-c is pressed.
  7075. * src/DownloadEngine.cc
  7076. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7077. Quickly terminate idle commands when download finished.
  7078. * src/AbstractCommand.cc
  7079. * src/DownloadCommand.cc
  7080. * src/DownloadEngine.cc
  7081. * src/DownloadEngine.h
  7082. * src/SleepCommand.cc
  7083. * src/SleepCommand.h
  7084. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7085. Added the ability to specify output filename and directory in input
  7086. file.
  7087. Additional parameters are added in the following line of URIs
  7088. with proceeding white space(s), 1 parameter in 1 line.
  7089. The parameter names are the same with the command-line option name
  7090. without proceeding "--". Not all the options are available here:
  7091. at the moment, 'dir' and 'out' options are avialable.
  7092. Please note that out option has no effect against Metalink or BitTorrent
  7093. downloads.
  7094. Example input file:
  7095. http://host/foo-1.1.tar.bz2
  7096. out=foo.tar.bz2
  7097. dir=/tmp/downloads
  7098. http://host/thundermonkey-2.0.tar.bz2
  7099. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7100. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7101. thundermonkey-2.0.tar.bz2 is saved as
  7102. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7103. * src/BtPostDownloadHandler.cc
  7104. * src/Metalink2RequestGroup.cc
  7105. * src/Metalink2RequestGroup.h
  7106. * src/MetalinkPostDownloadHandler.cc
  7107. * src/UriListParser.cc
  7108. * src/UriListParser.h
  7109. * src/main.cc
  7110. * test/Metalink2RequestGroupTest.cc
  7111. * test/UriListParserTest.cc
  7112. * test/filelist1.txt
  7113. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7114. Fixed error when SSL library is not found.
  7115. * configure.ac
  7116. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7117. Cross referenced among -s, -C and -j options.
  7118. Updated usage of -C and -s options.
  7119. * src/usage_text.h
  7120. * doc/aria2c.1.txt
  7121. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7122. Fixed bad cast in 32bit platforms.
  7123. * test/DefaultPieceStorageTest.cc
  7124. (DefaultPieceStorageTest::testGetCompletedLength)
  7125. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7126. Fixed unit test fails on 32bit platforms.
  7127. * test/CookieParserTest.cc
  7128. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7129. Show an average download speed in Download results.
  7130. * src/BtFileAllocationEntry.cc
  7131. * src/DefaultPieceStorage.cc
  7132. * src/DownloadContext.cc
  7133. * src/DownloadContext.h
  7134. * src/DownloadResult.h
  7135. * src/RequestGroup.cc
  7136. * src/RequestGroupMan.cc
  7137. * src/StreamFileAllocationEntry.cc
  7138. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7139. Fixed the bug that metalink file is not processed if Content-Type
  7140. field has a paramter.
  7141. * src/HttpResponse.cc
  7142. * src/HttpResponse.h
  7143. * test/HttpResponseTest.cc
  7144. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7145. Removed unused code.
  7146. * src/DefaultBtAnnounce.cc
  7147. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7148. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7149. the value larger than DefaultPieceStorage::getTotalLength() when
  7150. in flight pieces are involved.
  7151. * src/DefaultPieceStorage.cc
  7152. * test/DefaultPieceStorageTest.cc
  7153. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7154. Bump up version number to 1.0.0a.
  7155. * configure.ac
  7156. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7157. Updated configure.ac
  7158. * configure.ac
  7159. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7160. Added usege for proxy.
  7161. * doc/aria2c.1.txt
  7162. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7163. Added usage for --ca-certificate, --certificate, --private-key and
  7164. --check-certificate options.
  7165. * doc/aria2c.1.txt
  7166. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7167. Updated man page
  7168. * doc/aria2c.1.txt
  7169. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7170. Added --no-proxy option. It receives comman separated hostname or
  7171. domains to which proxy should not be used.
  7172. aria2 honors the environment variable no_proxy to override no-proxy
  7173. value in configuration file. The user can override the environment
  7174. variable no_proxy with --no-proxy command-line option.
  7175. * src/AbstractCommand.cc
  7176. * src/OptionHandlerFactory.cc
  7177. * src/option_processing.cc
  7178. * src/prefs.cc
  7179. * src/prefs.h
  7180. * src/usage_text.h
  7181. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7182. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7183. The CA certificates are specified in --ca-certificate option.
  7184. By default, the verification is disabled. Use --check-certificate
  7185. option to enable it.
  7186. * src/HttpRequestCommand.cc
  7187. * src/LibgnutlsTLSContext.cc
  7188. * src/LibgnutlsTLSContext.h
  7189. * src/LibsslTLSContext.cc
  7190. * src/LibsslTLSContext.h
  7191. * src/MultiUrlRequestInfo.cc
  7192. * src/OptionHandlerFactory.cc
  7193. * src/SocketCore.cc
  7194. * src/SocketCore.h
  7195. * src/a2functional.h
  7196. * src/message.h
  7197. * src/option_processing.cc
  7198. * src/prefs.cc
  7199. * src/prefs.h
  7200. * src/usage_text.h
  7201. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7202. Added client certificate authentication for SSL/TLS.
  7203. Currently a private key must be decrypted for use with aria2.
  7204. If a user accidentally gives encrypted file to aria2 then following
  7205. thing happens:
  7206. If encrypted private key is given to aria2, it behaves differently
  7207. depending on the ssl library it uses. If aria2 built with openssl then
  7208. openssl prompts the user for password. If aria2 build with gnutls then
  7209. aria2 exists with error at start up.
  7210. * src/DownloadEngineFactory.cc
  7211. * src/MultiUrlRequestInfo.cc
  7212. * src/OptionHandlerFactory.cc
  7213. * src/option_processing.cc
  7214. * src/prefs.cc
  7215. * src/prefs.h
  7216. * src/usage_text.h
  7217. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7218. Introduced TLSContext that holds TLS related data that can be shared
  7219. with multiple SSL connections.
  7220. * src/DownloadEngineFactory.cc
  7221. * src/LibgnutlsTLSContext.cc
  7222. * src/LibgnutlsTLSContext.h
  7223. * src/LibsslTLSContext.cc
  7224. * src/LibsslTLSContext.h
  7225. * src/Makefile.am
  7226. * src/SocketCore.cc
  7227. * src/SocketCore.h
  7228. * src/TLSContext.h
  7229. * src/message.h
  7230. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7231. Fixed the bug that the DiskWriter of the first FileEntry whose
  7232. `needsFileAllocation' property is false is not created
  7233. even if it shares a piece with next FileEntry which `requested' property
  7234. is true.
  7235. Fixed the bug that zero-length file is not created if pre file
  7236. allocation is not done.
  7237. * src/MultiDiskAdaptor.cc
  7238. * src/MultiDiskAdaptor.h
  7239. * test/MultiDiskAdaptorTest.cc
  7240. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Added the ability to pool proxy connection.
  7242. The conneciton in FTP with proxy-method=GET is not pooled.
  7243. Proxy-Connection header will not be sent when sending CONNECT method.
  7244. * src/DownloadEngine.cc
  7245. * src/DownloadEngine.h
  7246. * src/FtpFinishDownloadCommand.cc
  7247. * src/FtpInitiateConnectionCommand.cc
  7248. * src/FtpNegotiationCommand.cc
  7249. * src/HttpDownloadCommand.cc
  7250. * src/HttpInitiateConnectionCommand.cc
  7251. * src/HttpRequest.cc
  7252. * src/HttpRequest.h
  7253. * src/HttpResponse.cc
  7254. * src/HttpSkipResponseCommand.cc
  7255. * test/HttpRequestTest.cc
  7256. * test/HttpResponseTest.cc
  7257. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Handle date before epoch.
  7259. To create *bad* Time object, call Time::null().
  7260. * src/CookieParser.cc
  7261. * src/FtpConnection.cc
  7262. * src/FtpConnection.h
  7263. * src/FtpNegotiationCommand.cc
  7264. * src/RequestGroup.cc
  7265. * src/TimeA2.cc
  7266. * src/TimeA2.h
  7267. * test/CookieParserTest.cc
  7268. * test/FtpConnectionTest.cc
  7269. * test/TimeTest.cc
  7270. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Added support for following envrionment variables: http_proxy,
  7272. https_proxy, ftp_proxy and all_proxy.
  7273. Each variable is equivalent to the aria2 option whose name is the
  7274. variable name with '_' replaced with '-'.
  7275. They overrides options specified in aria2.conf file.
  7276. The envrionment variables can be overrode using command-line option.
  7277. * src/option_processing.cc
  7278. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Renamed --http-proxy-method as --proxy-method.
  7280. * src/AbstractCommand.cc
  7281. * src/FtpInitiateConnectionCommand.cc
  7282. * src/HttpInitiateConnectionCommand.cc
  7283. * src/OptionHandlerFactory.cc
  7284. * src/option_processing.cc
  7285. * src/prefs.cc
  7286. * src/prefs.h
  7287. * src/usage_text.h
  7288. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7290. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7291. Above 3 options and --http-proxy option can handle proxy in URL format
  7292. like: http://user:passwd@host:port.
  7293. If a proxy requires user/password, they must be specified in a URL.
  7294. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7295. instead.
  7296. * src/AbstractCommand.cc
  7297. * src/AbstractCommand.h
  7298. * src/AbstractProxyRequestCommand.cc
  7299. * src/AbstractProxyRequestCommand.h
  7300. * src/AuthConfigFactory.cc
  7301. * src/AuthConfigFactory.h
  7302. * src/FtpFinishDownloadCommand.cc
  7303. * src/FtpInitiateConnectionCommand.cc
  7304. * src/FtpInitiateConnectionCommand.h
  7305. * src/FtpNegotiationCommand.cc
  7306. * src/FtpTunnelRequestCommand.cc
  7307. * src/FtpTunnelRequestCommand.h
  7308. * src/HttpDownloadCommand.cc
  7309. * src/HttpInitiateConnectionCommand.cc
  7310. * src/HttpInitiateConnectionCommand.h
  7311. * src/HttpProxyRequestCommand.cc
  7312. * src/HttpProxyRequestCommand.h
  7313. * src/HttpRequest.cc
  7314. * src/HttpRequest.h
  7315. * src/HttpRequestCommand.cc
  7316. * src/HttpRequestCommand.h
  7317. * src/HttpSkipResponseCommand.cc
  7318. * src/InitiateConnectionCommand.cc
  7319. * src/InitiateConnectionCommand.h
  7320. * src/OptionHandlerFactory.cc
  7321. * src/OptionHandlerImpl.h
  7322. * src/Request.cc
  7323. * src/option_processing.cc
  7324. * src/prefs.cc
  7325. * src/prefs.h
  7326. * src/usage_text.h
  7327. * test/AuthConfigFactoryTest.cc
  7328. * test/HttpRequestTest.cc
  7329. * test/OptionHandlerTest.cc
  7330. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Execute choking algorithm when unchoked and interested peer is
  7332. disconected.
  7333. * src/DefaultPeerStorage.cc
  7334. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Added testcase for BtNotInterestedMessage from unchoked peer.
  7336. * test/BtNotInterestedMessageTest.cc
  7337. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Execute choking algorithm when BtInterestedMessage arrives from
  7339. unchoked peer.
  7340. * src/BtInterestedMessage.cc
  7341. * src/BtInterestedMessage.h
  7342. * src/DefaultBtMessageFactory.cc
  7343. * test/BtInterestedMessageTest.cc
  7344. * test/MockPeerStorage.h
  7345. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. AuthConfigFactory is now part of DownloadEngine.
  7347. * src/AbstractProxyRequestCommand.cc
  7348. * src/AuthConfigFactory.h
  7349. * src/DownloadEngine.cc
  7350. * src/DownloadEngine.h
  7351. * src/FtpConnection.cc
  7352. * src/FtpConnection.h
  7353. * src/FtpNegotiationCommand.cc
  7354. * src/HttpConnection.cc
  7355. * src/HttpRequest.cc
  7356. * src/HttpRequest.h
  7357. * src/HttpRequestCommand.cc
  7358. * src/HttpResponse.cc
  7359. * src/HttpResponseCommand.cc
  7360. * src/HttpSkipResponseCommand.cc
  7361. * src/MultiUrlRequestInfo.cc
  7362. * src/main.cc
  7363. * test/FtpConnectionTest.cc
  7364. * test/HttpRequestTest.cc
  7365. * test/HttpResponseTest.cc
  7366. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Corrected catched exception type.
  7368. * src/ServerStatMan.cc
  7369. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. DNSCache is now part of DownloadEngine.
  7371. * src/DNSCache.h
  7372. * src/DownloadEngine.cc
  7373. * src/DownloadEngine.h
  7374. * src/InitiateConnectionCommand.cc
  7375. * src/MultiUrlRequestInfo.cc
  7376. * test/Makefile.am
  7377. * test/Makefile.in
  7378. * test/SimpleDNSCacheTest.cc
  7379. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7381. DownloadEngine.
  7382. * src/ActivePeerConnectionCommand.cc
  7383. * src/BtSetup.cc
  7384. * src/CUIDCounter.h
  7385. * src/DHTSetup.cc
  7386. * src/DownloadCommand.cc
  7387. * src/DownloadEngine.cc
  7388. * src/DownloadEngine.h
  7389. * src/DownloadEngineFactory.cc
  7390. * src/FileAllocationDispatcherCommand.cc
  7391. * src/InitiatorMSEHandshakeCommand.cc
  7392. * src/PeerInitiateConnectionCommand.cc
  7393. * src/PeerInteractionCommand.cc
  7394. * src/PeerListenCommand.cc
  7395. * src/RequestGroup.cc
  7396. * src/StreamFileAllocationEntry.cc
  7397. * src/TrackerWatcherCommand.cc
  7398. * src/main.cc
  7399. * test/RequestGroupManTest.cc
  7400. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Implemented commented code in BtSeederStateChoke
  7402. * src/BtSeederStateChoke.cc
  7403. * src/Peer.cc
  7404. * src/Peer.h
  7405. * src/PeerInteractionCommand.cc
  7406. * src/PeerSessionResource.cc
  7407. * src/PeerSessionResource.h
  7408. * test/MockBtMessageDispatcher.h
  7409. * test/PeerSessionResourceTest.cc
  7410. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7412. its object.
  7413. * src/AbstractBtMessage.cc
  7414. * src/ActivePeerConnectionCommand.cc
  7415. * src/ActivePeerConnectionCommand.h
  7416. * src/BtContextAwareCommand.cc
  7417. * src/BtContextAwareCommand.h
  7418. * src/BtExtendedMessage.cc
  7419. * src/BtExtendedMessage.h
  7420. * src/BtInterestedMessage.cc
  7421. * src/BtInterestedMessage.h
  7422. * src/BtNotInterestedMessage.cc
  7423. * src/BtNotInterestedMessage.h
  7424. * src/BtRegistry.cc
  7425. * src/BtRegistry.h
  7426. * src/BtSeederStateChoke.cc
  7427. * src/BtSetup.cc
  7428. * src/DHTGetPeersCommand.cc
  7429. * src/DHTGetPeersCommand.h
  7430. * src/DHTPeerAnnounceEntry.cc
  7431. * src/DHTPeerAnnounceEntry.h
  7432. * src/DHTPeerAnnounceStorage.cc
  7433. * src/DHTPeerAnnounceStorage.h
  7434. * src/DHTPeerLookupTask.cc
  7435. * src/DHTPeerLookupTask.h
  7436. * src/DHTSetup.cc
  7437. * src/DHTSetup.h
  7438. * src/DHTTaskFactory.h
  7439. * src/DHTTaskFactoryImpl.cc
  7440. * src/DHTTaskFactoryImpl.h
  7441. * src/DefaultBtAnnounce.cc
  7442. * src/DefaultBtInteractive.cc
  7443. * src/DefaultBtInteractive.h
  7444. * src/DefaultBtMessageDispatcher.cc
  7445. * src/DefaultBtMessageDispatcher.h
  7446. * src/DefaultBtMessageFactory.cc
  7447. * src/DefaultBtMessageFactory.h
  7448. * src/DefaultBtMessageReceiver.cc
  7449. * src/DefaultBtProgressInfoFile.cc
  7450. * src/DefaultBtProgressInfoFile.h
  7451. * src/DefaultBtRequestFactory.cc
  7452. * src/DefaultBtRequestFactory.h
  7453. * src/DefaultExtensionMessageFactory.cc
  7454. * src/DefaultExtensionMessageFactory.h
  7455. * src/DefaultPeerStorage.cc
  7456. * src/DefaultPeerStorage.h
  7457. * src/DownloadEngine.cc
  7458. * src/DownloadEngine.h
  7459. * src/InitiatorMSEHandshakeCommand.cc
  7460. * src/InitiatorMSEHandshakeCommand.h
  7461. * src/MSEHandshake.cc
  7462. * src/MSEHandshake.h
  7463. * src/Makefile.am
  7464. * src/Makefile.in
  7465. * src/PeerChokeCommand.cc
  7466. * src/PeerChokeCommand.h
  7467. * src/PeerInitiateConnectionCommand.cc
  7468. * src/PeerInitiateConnectionCommand.h
  7469. * src/PeerInteractionCommand.cc
  7470. * src/PeerInteractionCommand.h
  7471. * src/PeerObject.h
  7472. * src/PeerReceiveHandshakeCommand.cc
  7473. * src/PeerReceiveHandshakeCommand.h
  7474. * src/ReceiverMSEHandshakeCommand.cc
  7475. * src/RequestGroup.cc
  7476. * src/RequestGroup.h
  7477. * src/RequestGroupMan.cc
  7478. * src/RequestGroupMan.h
  7479. * src/SeedCheckCommand.cc
  7480. * src/SeedCheckCommand.h
  7481. * src/ShareRatioSeedCriteria.h
  7482. * src/SimpleBtMessage.cc
  7483. * src/TrackerWatcherCommand.cc
  7484. * src/TrackerWatcherCommand.h
  7485. * src/UTPexExtensionMessage.cc
  7486. * src/UTPexExtensionMessage.h
  7487. * test/BtCancelMessageTest.cc
  7488. * test/BtChokeMessageTest.cc
  7489. * test/BtExtendedMessageTest.cc
  7490. * test/BtInterestedMessageTest.cc
  7491. * test/BtNotInterestedMessageTest.cc
  7492. * test/BtPieceMessageTest.cc
  7493. * test/BtPortMessageTest.cc
  7494. * test/BtRegistryTest.cc
  7495. * test/BtRejectMessageTest.cc
  7496. * test/BtRequestMessageTest.cc
  7497. * test/DHTPeerAnnounceEntryTest.cc
  7498. * test/DHTPeerAnnounceStorageTest.cc
  7499. * test/DefaultBtMessageDispatcherTest.cc
  7500. * test/DefaultBtMessageFactoryTest.cc
  7501. * test/DefaultBtProgressInfoFileTest.cc
  7502. * test/DefaultBtRequestFactoryTest.cc
  7503. * test/DefaultExtensionMessageFactoryTest.cc
  7504. * test/MSEHandshakeTest.cc
  7505. * test/MockDHTTaskFactory.h
  7506. * test/ShareRatioSeedCriteriaTest.cc
  7507. * test/UTPexExtensionMessageTest.cc
  7508. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Fixed compiler warning.
  7510. * test/UtilTest.cc
  7511. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Treat Cookie object as session cookie if expiry = 0 is given.
  7513. With this change, you can specify session scoped cookies in an external
  7514. file setting expiry value to 0.
  7515. * src/Cookie.cc
  7516. * src/Cookie.h
  7517. * test/CookieParserTest.cc
  7518. * test/CookieStorageTest.cc
  7519. * test/CookieTest.cc
  7520. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Changed signature of DHTMessageFactory::createResponseMessage().
  7522. Removed unused validateIDMatch.
  7523. * src/DHTMessageFactory.h
  7524. * src/DHTMessageFactoryImpl.cc
  7525. * src/DHTMessageFactoryImpl.h
  7526. * src/DHTMessageTracker.cc
  7527. * test/DHTMessageFactoryImplTest.cc
  7528. * test/MockDHTMessageFactory.h
  7529. Dropped DHT message coming from same ID of localhost.
  7530. * src/DHTMessageReceiver.cc
  7531. Rejected adding node whose ID is the same as localhost's.
  7532. * src/DHTRoutingTable.cc
  7533. * test/BtPortMessageTest.cc
  7534. * test/DHTRoutingTableTest.cc
  7535. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Pool connection when redirection occurs with Content-Length = 0.
  7537. * src/HttpSkipResponseCommand.cc
  7538. * src/HttpSkipResponseCommand.h
  7539. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Fixed the bug that causes time out when redirection occurs with
  7541. content-length 0.
  7542. * src/HttpResponseCommand.cc
  7543. * src/HttpSkipResponseCommand.cc
  7544. * src/HttpSkipResponseCommand.h
  7545. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Now each status legends is shown only when it appears in Download
  7547. Result. If Download Result has no item, then status legend will not
  7548. be printed.
  7549. * src/RequestGroupMan.cc
  7550. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Removed duplicate creation of OptionHandlers.
  7552. * src/option_processing.cc
  7553. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Fixed the bug that causes segmentation fault when accessing files which
  7555. don't exist or are not included in --select-file option while
  7556. validating chunk checksum.
  7557. * src/MultiDiskAdaptor.cc
  7558. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Fixed compiler warning.
  7560. * test/UtilTest.cc
  7561. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7563. * src/IteratableChecksumValidator.cc
  7564. * src/IteratableChunkChecksumValidator.cc
  7565. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. * Release 0.16.2
  7567. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Added Serbian translation. Updated Ukrainian translation.
  7569. Thanks to all translators.
  7570. * po/sr.po
  7571. * po/uk.po
  7572. * po/LINGUAS
  7573. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Bump up version number to 0.16.2
  7575. * configure.ac
  7576. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7577. Added length equality test to operator== to drop a piece message
  7578. whose length does not match to the requested one.
  7579. * src/RequestSlot.cc
  7580. * test/DefaultBtMessageDispatcherTest.cc
  7581. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7583. recieved.
  7584. In this fix, if a request larger than 16KiB length is received, aria2
  7585. disconnects the peer.
  7586. * src/BtConstants.h
  7587. * src/PeerMessageUtil.cc
  7588. * src/PeerMessageUtil.h
  7589. * test/BtRequestMessageTest.cc
  7590. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. * Release 0.16.1
  7592. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7594. * doc/aria2c.1.txt
  7595. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7597. Updated French, Simplified Chinese and Japanese translations.
  7598. Thanks to all translators.
  7599. en@quot and en@boldquot are also added.
  7600. * po/LINGUAS
  7601. * po/fr.po
  7602. * po/ja.po
  7603. * po/uk.po
  7604. * po/vi.po
  7605. * po/zh_CN.po
  7606. * po/zh_TW.po
  7607. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Bump up version number to 0.16.1.
  7609. * configure.ac
  7610. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Updated README.
  7612. * README
  7613. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7615. not to replace '--' with em dash character.
  7616. * doc/aria2c.1.txt
  7617. * doc/makeman
  7618. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7620. every SEC seconds.
  7621. * src/DownloadEngineFactory.cc
  7622. * src/OptionHandlerFactory.cc
  7623. * src/option_processing.cc
  7624. * src/usage_text.h
  7625. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Fixed compile warning on linux-amd64
  7627. * src/FtpConnection.cc
  7628. * src/IteratableChunkChecksumValidator.cc
  7629. * src/MultiDiskAdaptor.cc
  7630. Fixed the bug that unit test fails on linux-amd64
  7631. * test/UtilTest.cc
  7632. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Added --dht-file-path option to change the path to dht.dat, which is a
  7634. serialized DHT routing table.
  7635. * src/OptionHandlerFactory.cc
  7636. * src/option_processing.cc
  7637. * src/usage_text.h
  7638. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Fixed possible underflow.
  7640. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7641. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Fixed the bug that last character in URI is not encoded.
  7643. * src/Request.cc
  7644. * test/RequestTest.cc
  7645. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Fixed the bug that referer header field contains fragment.
  7647. Now Request class removes fragment part of URI and encodes it
  7648. in Request::setUri() and setReferer().
  7649. * src/Request.h
  7650. * src/Request.cc
  7651. * test/RequestTest.cc
  7652. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Added missing m4 macros.
  7654. * m4/cppunit.m4
  7655. * m4/libgcrypt.m4
  7656. * m4/libgnutls-extra.m4
  7657. * m4/libgnutls.m4
  7658. * m4/libxml2.m4
  7659. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Fixed compile error with gcc-4.4(snapshot)
  7661. * src/File.cc
  7662. * src/FtpConnection.cc
  7663. * src/OptionHandlerImpl.h
  7664. * src/Util.cc
  7665. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Removed assert()
  7667. * src/SocketBuffer.cc (SocketBuffer::send)
  7668. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Changed the type of _numNewConnection to unsigned int.
  7670. * src/ActivePeerConnectionCommand.cc
  7671. * src/ActivePeerConnectionCommand.h
  7672. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. * Release 0.16.0
  7674. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Updated doc
  7676. * README
  7677. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7679. translations. Thanks to all translators.
  7680. * po/bg.po
  7681. * po/de.po
  7682. * po/fr.po
  7683. * po/ja.po
  7684. * po/zh_CN.po
  7685. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Bump up version number to 0.16.0.
  7687. * configure.ac
  7688. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7690. int32_t.
  7691. Changed the type of count to int32_t.
  7692. * src/Metalink2RequestGroup.cc
  7693. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Added test for Time::elapsed(time_t).
  7695. * test/TimeTest.cc
  7696. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7698. Util::difftv() should be used instead.
  7699. * src/TimeA2.cc
  7700. * src/TimeA2.h
  7701. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Made socket for dht connections non-blocking
  7703. * src/DHTAbstractMessage.cc
  7704. * src/DHTAbstractMessage.h
  7705. * src/DHTConnection.h
  7706. * src/DHTConnectionImpl.cc
  7707. * src/DHTConnectionImpl.h
  7708. * src/DHTMessage.h
  7709. * src/DHTMessageDispatcherImpl.cc
  7710. * src/DHTMessageDispatcherImpl.h
  7711. * src/DHTUnknownMessage.cc
  7712. * src/DHTUnknownMessage.h
  7713. * src/SocketCore.cc
  7714. * src/SocketCore.h
  7715. * test/MockDHTMessage.h
  7716. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Changed the type of offset to int.
  7718. * src/ParameterizedStringParser.cc
  7719. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. Made getAsInt() return int32_t
  7721. * src/Option.h
  7722. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7724. build.
  7725. * configure.ac
  7726. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Use sqlite3_open if sqlite3_open_v2 is not available.
  7728. * src/Sqlite3MozCookieParser.cc
  7729. * src/Sqlite3MozCookieParser.h
  7730. * m4/sqlite3.m4
  7731. * test/Sqlite3MozCookieParserTest.cc
  7732. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7734. * src/BtPieceMessage.cc
  7735. * src/DHTPeerAnnounceStorage.cc
  7736. * src/DefaultPieceStorage.cc
  7737. * src/DownloadCommand.cc
  7738. * src/DownloadEngine.cc
  7739. * src/FtpConnection.cc
  7740. * src/PeerConnection.cc
  7741. * src/PeerMessageUtil.cc
  7742. * src/RequestGroup.cc
  7743. * src/RequestGroupMan.cc
  7744. * src/SimpleBtMessage.cc
  7745. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7747. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7748. * src/AbstractDiskWriter.cc
  7749. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Don't set Request::supportsPersistentConnection() in HttpConnection
  7751. since this code is also used in AbstractProxyResponseCommand.
  7752. Moved those code to HttpResponse.
  7753. * src/HttpResponse.cc
  7754. * src/HttpResponse.h
  7755. * src/HttpConnection.cc
  7756. * src/HttpConnection.h
  7757. * src/HttpResponseCommand.cc
  7758. * test/HttpResponseTest.cc
  7759. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7761. The configuration is minimum: no torrent, no metalink, so there may be
  7762. other compile error on their code.
  7763. * src/a2netcompat.h
  7764. * src/File.cc
  7765. * src/File.h
  7766. * src/SocketCore.cc
  7767. * src/SocketCore.h
  7768. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Made a socket of incoming peer non-blocking.
  7770. * src/PeerListenCommand.cc
  7771. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7773. whole message data is not sent in one send() call.
  7774. * src/BtPieceMessage.cc
  7775. * src/BtPieceMessage.h
  7776. * src/PeerConnection.cc
  7777. * src/PeerConnection.h
  7778. * src/SimpleBtMessage.cc
  7779. * src/SimpleBtMessage.h
  7780. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Fixed the bug that aria2 downloads faster than max-download-limit when
  7782. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7783. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7784. , instead of sum of them.
  7785. * src/ActivePeerConnectionCommand.cc
  7786. * src/DefaultBtInteractive.cc
  7787. * src/DownloadCommand.cc
  7788. * src/PeerInteractionCommand.cc
  7789. * src/PeerReceiveHandshakeCommand.cc
  7790. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Fixed the bug that HTTPS download fails.
  7792. * src/AbstractCommand.cc
  7793. * src/AbstractCommand.h
  7794. * src/DownloadCommand.cc
  7795. * src/FtpConnection.cc
  7796. * src/HttpConnection.cc
  7797. * src/HttpRequestCommand.cc
  7798. * src/HttpResponseCommand.cc
  7799. * src/HttpSkipResponseCommand.cc
  7800. * src/MSEHandshake.cc
  7801. * src/PeerConnection.cc
  7802. * src/SocketCore.cc
  7803. * src/SocketCore.h
  7804. Fixed the bug that aria2 doesn't download whole content body and cannot
  7805. reuse connection if chunked transfer encoding and gzip content encoding
  7806. are set.
  7807. * src/DownloadCommand.cc
  7808. * src/HttpSkipResponseCommand.cc
  7809. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Updated man page.
  7811. * doc/aria2c.1.txt
  7812. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. When error occurred while aria2 was parsing an .aria2.conf file, print
  7814. the usage of the option that caused error.
  7815. * src/option_processing.cc
  7816. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Fixed compile error on OptionHandlerException
  7818. * src/Makefile.am
  7819. * src/OptionHandlerException.cc
  7820. * src/OptionHandlerException.h
  7821. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Moved message of the error to OptionHandlerException.h
  7823. * src/NameMatchOptionHandler.h
  7824. * src/OptionHandlerException.h
  7825. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. When error occurs while aria2 is parsing an command-line option, print
  7827. the usage of the option.
  7828. * src/Makefile.am
  7829. * src/NameMatchOptionHandler.h
  7830. * src/OptionHandlerException.h
  7831. * src/option_processing.cc
  7832. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Reverted previous change.
  7834. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7835. username is not in URI.
  7836. * src/HttpRequest.cc
  7837. * src/Request.cc
  7838. * test/HttpRequestTest.cc
  7839. * test/RequestTest.cc
  7840. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Now colon is required for username and password in FTP URL, like:
  7842. ftp://username:password@host.
  7843. If colon is not there, aria2 don't parse it as a username. For example,
  7844. aria2 don't retrieve username from ftp://username@host.
  7845. This fix was made in order to login FTP server via non-transparent ftp
  7846. proxy.
  7847. * src/Request.cc
  7848. * test/RequestTest.cc
  7849. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Use netrc for HTTP.
  7851. Now FTP user/password is sent in Authorization header when
  7852. --ftp-via-http-proxy=get is given.
  7853. * src/AuthConfigFactory.cc
  7854. * src/HttpRequest.cc
  7855. * src/HttpRequest.h
  7856. * src/NetrcAuthResolver.cc
  7857. * src/NetrcAuthResolver.h
  7858. * src/OptionHandlerFactory.cc
  7859. * src/option_processing.cc
  7860. * src/prefs.cc
  7861. * src/prefs.h
  7862. * test/AuthConfigFactoryTest.cc
  7863. * test/HttpRequestTest.cc
  7864. * test/NetrcAuthResolverTest.cc
  7865. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Issue PWD command first and get working directory and use it as a prefix
  7867. for CWD command.
  7868. * src/DownloadEngine.cc
  7869. * src/DownloadEngine.h
  7870. * src/FtpConnection.cc
  7871. * src/FtpConnection.h
  7872. * src/FtpFinishDownloadCommand.cc
  7873. * src/FtpInitiateConnectionCommand.cc
  7874. * src/FtpNegotiationCommand.cc
  7875. * src/FtpNegotiationCommand.h
  7876. * test/FtpConnectionTest.cc
  7877. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Removed default user/pass for FTP user/pass, since it should not have
  7879. precedence over netrc configuration by default.
  7880. * src/OptionHandlerFactory.cc
  7881. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Added debug log for socket event.
  7883. * src/AbstractCommand.cc
  7884. * src/PeerAbstractCommand.cc
  7885. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Log microseconds.
  7887. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7888. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Replaced HelpItem.cc with OptionHandler.cc.
  7890. * po/POTFILES.in
  7891. Updated po files with 'make update-po'
  7892. * po/aria2c.pot
  7893. * po/*.po
  7894. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Removed possible values from the text.
  7896. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7897. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Removed unused preferences:
  7899. PREF_NO_PREALLOCATION
  7900. PREF_STDOUT_LOG
  7901. PREF_TRACKER_MAX_TRIES
  7902. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7903. PREF_MIN_SEGMENT_SIZE
  7904. * src/option_processing.cc
  7905. * src/prefs.cc
  7906. * src/prefs.h
  7907. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Integrated HelpItem into OptionParser to ease the workload for adding
  7909. new options. Removed default value from usage text.
  7910. * src/HelpItem.cc: Removed.
  7911. * src/HelpItem.h: Removed.
  7912. * src/HelpItemFactory.cc: Removed.
  7913. * src/HelpItemFactory.h: Removed.
  7914. * src/Makefile.am
  7915. * src/Makefile.in
  7916. * src/NameMatchOptionHandler.h
  7917. * src/OptionHandler.cc
  7918. * src/OptionHandler.h
  7919. * src/OptionHandlerFactory.cc
  7920. * src/OptionHandlerImpl.h
  7921. * src/OptionParser.cc
  7922. * src/OptionParser.h
  7923. * src/TagContainer.cc: Removed.
  7924. * src/TagContainer.h: Removed.
  7925. * src/TaggedItem.cc: Removed.
  7926. * src/TaggedItem.h: Removed.
  7927. * src/main.cc
  7928. * src/option_processing.cc
  7929. * src/usage_text.h
  7930. * src/version_usage.cc
  7931. * test/HelpItemTest.cc: Removed.
  7932. * test/Makefile.am
  7933. * test/Makefile.in
  7934. * test/OptionHandlerTest.cc
  7935. * test/OptionParserTest.cc
  7936. * test/TagContainerTest.cc: Removed.
  7937. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Moved `TransferStat stat = ...' to inside the `if' clause.
  7939. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7940. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Fixed the bug that a block in a piece is requested when same block is
  7942. already requested to the same peer in end game mode.
  7943. * src/BtRequestFactory.h
  7944. * src/DefaultBtInteractive.cc
  7945. * src/DefaultBtRequestFactory.cc
  7946. * src/DefaultBtRequestFactory.h
  7947. * src/DefaultPieceStorage.cc
  7948. * src/DefaultPieceStorage.h
  7949. * src/PieceStorage.h
  7950. * src/UnknownLengthPieceStorage.cc
  7951. * src/UnknownLengthPieceStorage.h
  7952. * test/DefaultBtRequestFactoryTest.cc
  7953. * test/DefaultPieceStorageTest.cc
  7954. * test/MockBtRequestFactory.h
  7955. * test/MockPieceStorage.h
  7956. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Removed _uploadLength and _downloadLength from PeerSessionResource
  7958. and use PeerStat::_sessionUploadLength and
  7959. PeerStat::_sessionDownloadLength.
  7960. * src/PeerSessionResource.cc
  7961. * src/PeerSessionResource.h
  7962. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Fixed the bug that prefixLength of split bucket which doesn't include
  7964. local node ID is incremented.
  7965. * src/DHTBucket.cc
  7966. * src/DHTBucket.h
  7967. * test/DHTBucketTest.cc
  7968. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Added cookies.sqlite to EXTRA_DIST
  7970. * test/Makefile.am
  7971. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Added Turkish translation. Updated French, German, Russian and
  7973. Simplified Chinese translations. Thanks to all translators.
  7974. * po/LINGUAS
  7975. * po/de.po
  7976. * po/fr.po
  7977. * po/ru.po
  7978. * po/tr.po
  7979. * po/zh_CN.po
  7980. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Added deliminating text to the beginning of the log so that one can find
  7982. where the log starts easily.
  7983. * src/main.cc
  7984. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7986. to fix compile error when async DNS is not enabled by configuration.
  7987. * src/AbstractCommand.cc
  7988. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. If establishing conneciton to a server is failed, then mark error on
  7990. its ServerStat.
  7991. Added the cause of error to log when error event occurred.
  7992. Moved message string to message.h for translation.
  7993. * src/AbstractCommand.cc
  7994. * src/AbstractCommand.h
  7995. * src/FtpNegotiationCommand.cc
  7996. * src/HttpRequestCommand.cc
  7997. * src/PeerAbstractCommand.cc
  7998. * src/message.h
  7999. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Added the function to get error message from socket.
  8001. * src/SocketCore.cc
  8002. * src/SocketCore.h
  8003. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8005. * src/RequestGroupMan.cc
  8006. * src/RequestGroupMan.h
  8007. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. If error event is received in epoll, then abort download immediately.
  8009. * src/AbstractCommand.cc
  8010. * src/Command.cc
  8011. * src/Command.h
  8012. * src/DownloadEngine.cc
  8013. * src/PeerAbstractCommand.cc
  8014. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added usage message for --uri-selector, --server-stat-of,
  8016. --server-stat-in, --server-stat-timeout options.
  8017. * src/HelpItemFactory.cc
  8018. * src/usage_text.h
  8019. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Added upper limit of FTP response buffer. The current implementation
  8021. uses 4096bytes as a limit.
  8022. * src/FtpConnection.cc
  8023. * src/FtpConnection.h
  8024. * test/FtpConnectionTest.cc
  8025. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Use non-blocking socket for TCP communication to avoid possible
  8027. blocking due to buffer full.
  8028. * src/AbstractProxyRequestCommand.cc
  8029. * src/FtpConnection.cc
  8030. * src/FtpConnection.h
  8031. * src/FtpNegotiationCommand.cc
  8032. * src/FtpNegotiationCommand.h
  8033. * src/HttpConnection.cc
  8034. * src/HttpConnection.h
  8035. * src/HttpRequestCommand.cc
  8036. * src/InitiatorMSEHandshakeCommand.cc
  8037. * src/InitiatorMSEHandshakeCommand.h
  8038. * src/MSEHandshake.cc
  8039. * src/MSEHandshake.h
  8040. * src/Makefile.am
  8041. * src/PeerConnection.cc
  8042. * src/PeerConnection.h
  8043. * src/PeerInteractionCommand.cc
  8044. * src/PeerListenCommand.cc
  8045. * src/ReceiverMSEHandshakeCommand.cc
  8046. * src/ReceiverMSEHandshakeCommand.h
  8047. * src/SocketBuffer.cc
  8048. * src/SocketBuffer.h
  8049. * src/SocketCore.cc
  8050. * src/SocketCore.h
  8051. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Call setStatusRealtime() in constructor.
  8053. * src/RealtimeCommand.cc
  8054. * src/RealtimeCommand.h
  8055. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Call Download::setNoWait(true) to execute newly created command without
  8057. a pause.
  8058. * src/AbstractCommand.cc
  8059. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8061. found' error from HTTP/FTP server NUM times without getting single
  8062. bytes of data, then force the download to fail.
  8063. Basically aria2 tris all URIs available. So if long list of URIs are
  8064. specified in Metalink, then aria2 will take a long time to fail
  8065. eventually if all URIs are outdated. This option eases this situation
  8066. to limit the number of servers to try.
  8067. * src/FtpNegotiationCommand.cc
  8068. * src/HelpItemFactory.cc
  8069. * src/HttpResponseCommand.cc
  8070. * src/OptionHandlerFactory.cc
  8071. * src/PeerStat.h
  8072. * src/RequestGroup.cc
  8073. * src/RequestGroup.h
  8074. * src/SegmentMan.cc
  8075. * src/SegmentMan.h
  8076. * src/option_processing.cc
  8077. * src/prefs.cc
  8078. * src/prefs.h
  8079. * src/usage_text.h
  8080. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8081. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8082. response even if more than one response is in it.
  8083. * src/FtpConnection.cc
  8084. * src/FtpConnection.h
  8085. * test/FtpConnectionTest.cc
  8086. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Merged from stable-0.15
  8088. * m4/libcares.m4
  8089. Use pkg-config
  8090. * m4/sqlite3.m4
  8091. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Removed unnecessary if statement.
  8093. * src/DefaultPieceStorage.cc (initPieceStorage)
  8094. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Added --connect-timeout option to specify connect timeout in seconds.
  8096. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8097. connecting to BitTorrent peer is not controlled by this option.
  8098. * src/AbstractProxyRequestCommand.cc
  8099. * src/FtpNegotiationCommand.cc
  8100. * src/HelpItemFactory.cc
  8101. * src/HttpRequestCommand.cc
  8102. * src/OptionHandlerFactory.cc
  8103. * src/option_processing.cc
  8104. * src/prefs.cc
  8105. * src/prefs.h
  8106. * src/usage_text.h
  8107. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Added help message for -R option.
  8109. * src/HelpItemFactory.cc
  8110. * src/usage_text.h
  8111. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Added the message that the time is in local time zone.
  8113. * src/RequestGroup.cc
  8114. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Implemented the ability to get timestamp from remote FTP server using
  8116. MDTM command described in RFC3659.
  8117. * src/FtpConnection.cc
  8118. * src/FtpConnection.h
  8119. * src/FtpNegotiationCommand.cc
  8120. * src/FtpNegotiationCommand.h
  8121. * test/FtpConnectionTest.cc
  8122. * test/Makefile.am
  8123. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Implemented the ability to get timestamp from remote HTTP server and
  8125. apply it to local file. To enable this feature, --remote-time option
  8126. is added. No usage text has been written yet.
  8127. If several servers returns difference timestamp, then aria2 uses latest
  8128. one.
  8129. * src/CopyDiskAdaptor.cc
  8130. * src/CopyDiskAdaptor.h
  8131. * src/DirectDiskAdaptor.cc
  8132. * src/DirectDiskAdaptor.h
  8133. * src/DiskAdaptor.h
  8134. * src/File.cc
  8135. * src/File.h
  8136. * src/HttpHeader.cc
  8137. * src/HttpHeader.h
  8138. * src/HttpResponse.cc
  8139. * src/HttpResponse.h
  8140. * src/HttpResponseCommand.cc
  8141. * src/HttpResponseCommand.h
  8142. * src/MultiDiskAdaptor.cc
  8143. * src/MultiDiskAdaptor.h
  8144. * src/OptionHandlerFactory.cc
  8145. * src/RequestGroup.cc
  8146. * src/RequestGroup.h
  8147. * src/RequestGroupMan.cc
  8148. * src/option_processing.cc
  8149. * src/prefs.cc
  8150. * src/prefs.h
  8151. * test/CopyDiskAdaptorTest.cc
  8152. * test/FileTest.cc
  8153. * test/Makefile.am
  8154. * test/Makefile.in
  8155. * test/MultiDiskAdaptorTest.cc
  8156. * test/TestUtil.cc
  8157. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Fixed the bug that DiskWriterEntry is not created when its
  8159. FileEntry.isRequested() is false and it doesn't share a piece with
  8160. other FileEntries that are requested. This bug causes segmentation fault
  8161. in the end.
  8162. * src/MultiDiskAdaptor.cc
  8163. * src/MultiDiskAdaptor.h
  8164. * src/MultiFileAllocationIterator.cc
  8165. * test/MultiDiskAdaptorTest.cc
  8166. * test/MultiFileAllocationIteratorTest.cc
  8167. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8169. called if the number of file entries are greater than max open files.
  8170. * src/AbstractSingleDiskAdaptor.cc
  8171. * src/AbstractSingleDiskAdaptor.h
  8172. * src/DiskAdaptor.h
  8173. * src/MultiDiskAdaptor.cc
  8174. * src/MultiDiskAdaptor.h
  8175. * test/MultiDiskAdaptorTest.cc
  8176. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Added a constuctor that receives struct timeval.
  8178. Added operator<.
  8179. * src/TimeA2.cc
  8180. * src/TimeA2.h
  8181. * test/TimeTest.cc
  8182. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8184. * src/CookieParser.cc
  8185. * test/CookieParserTest.cc
  8186. * test/HttpResponseTest.cc
  8187. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Implmented the functions to parse date.
  8189. * src/TimeA2.cc
  8190. * src/TimeA2.h
  8191. * test/TimeTest.cc
  8192. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Added "Firefox3 Cookie" feature to FeatureConfig
  8194. * src/FeatureConfig.cc
  8195. * src/FeatureConfig.h
  8196. * test/FeatureConfigTest.cc
  8197. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Bump up version number to 0.16.0b
  8199. * configure.ac
  8200. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Use pkg-config if is is available.
  8202. * m4/openssl.m4
  8203. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8205. * src/BtAnnounce.h
  8206. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. If an error occurred with a URI, remove identical URI from remaining
  8208. URI list because it is likely that same error occurred in the end and it
  8209. is waste of time.
  8210. * src/AbstractCommand.cc
  8211. * src/RequestGroup.cc
  8212. * src/RequestGroup.h
  8213. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Removed wrong comment.
  8215. * src/DefaultPeerStorage.cc
  8216. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8218. Added return value of getpid() to argument of srand() to achieve more
  8219. randomized value.
  8220. * src/SimpleRandomizer.cc
  8221. * src/SimpleRandomizer.h
  8222. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Contact tracker frequently when the number of connections are 0 and
  8224. download is not finished yet.
  8225. * src/ActivePeerConnectionCommand.cc
  8226. * src/BtAnnounce.h
  8227. * src/DefaultBtAnnounce.cc
  8228. * src/DefaultBtAnnounce.h
  8229. * test/MockBtAnnounce.h
  8230. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Moved threshold values to UTPexExtensionMessage.
  8232. * src/DefaultBtInteractive.cc
  8233. * src/Peer.cc
  8234. * src/Peer.h
  8235. * src/UTPexExtensionMessage.cc
  8236. * src/UTPexExtensionMessage.h
  8237. * test/UTPexExtensionMessageTest.cc
  8238. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Added _incoming member to Peer class and made it true if the peer
  8240. initiated connection. Don't add those peer to UTPex message.
  8241. If extended handshake is received, assign _incoming to false.
  8242. * src/DefaultBtInteractive.cc
  8243. * src/HandshakeExtensionMessage.cc
  8244. * src/Peer.cc
  8245. * src/Peer.h
  8246. * src/PeerListenCommand.cc
  8247. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8249. Encoding Decoder. Removed size threshold for turning off on the fly
  8250. inflation because resulting file may or may not be inflated depending
  8251. on the file size and I think it is not expected by users.
  8252. This change fixes segmentation fault when Metalink file contains gzipped
  8253. file and its filesize is provided.
  8254. * src/HttpResponseCommand.cc
  8255. * src/HttpResponseCommand.h
  8256. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Made Cookie immutable.
  8258. * src/Cookie.cc
  8259. * src/Cookie.h
  8260. * src/CookieParser.cc
  8261. * src/CookieParser.h
  8262. * src/CookieStorage.cc
  8263. * test/CookieParserTest.cc
  8264. * test/CookieStorageTest.cc
  8265. * test/NsCookieParserTest.cc
  8266. * test/Sqlite3MozCookieParserTest.cc
  8267. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Removed CookieBox, CookieBoxFactory.
  8269. * src/CookieBox.cc
  8270. * src/CookieBox.h
  8271. * src/CookieBoxFactory.cc
  8272. * src/CookieBoxFactory.h
  8273. * src/Makefile.am
  8274. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Use CookieStorage class instead of CookieBox class.
  8276. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8277. * src/AbstractProxyRequestCommand.cc
  8278. * src/CookieStorage.cc
  8279. * src/DownloadEngine.cc
  8280. * src/DownloadEngine.h
  8281. * src/HttpConnection.cc
  8282. * src/HttpConnection.h
  8283. * src/HttpRequest.cc
  8284. * src/HttpRequest.h
  8285. * src/HttpRequestCommand.cc
  8286. * src/HttpResponse.cc
  8287. * src/HttpResponseCommand.cc
  8288. * src/HttpSkipResponseCommand.cc
  8289. * src/Makefile.am
  8290. * src/MultiUrlRequestInfo.cc
  8291. * src/Request.cc
  8292. * src/Request.h
  8293. * src/main.cc
  8294. * test/AllTest.cc
  8295. * test/CookieStorageTest.cc
  8296. * test/CookieTest.cc
  8297. * test/HttpRequestTest.cc
  8298. * test/HttpResponseTest.cc
  8299. * test/Makefile.am
  8300. * test/NsCookieParserTest.cc
  8301. * test/Sqlite3MozCookieParserTest.cc
  8302. * test/nscookietest.txt
  8303. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Updated
  8305. * test/Cookies.sqlite
  8306. * test/nscookietest.txt
  8307. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Added tests for CookieStorage::load()
  8309. * test/CookieStorageTest.cc
  8310. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Added CookieStorage class which is based on RFC2109 and manages cookies
  8312. more strictly than CookieBox and CookieBoxFactory class.
  8313. * src/CookieStorage.cc
  8314. * src/CookieStorage.h
  8315. * src/Cookie.cc
  8316. * src/Cookie.h
  8317. * test/CookieStorageTest.cc
  8318. * test/CookieTest.cc
  8319. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Fixed the bug that commands are created more than the number of pieces.
  8321. * src/RequestGroup.cc
  8322. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Fixed infinite loop bug in FTP when SIZE command failed.
  8324. * src/FtpNegotiationCommand.cc
  8325. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Removed DirectDiskAdaptorTest.h
  8327. * test/Makefile.am
  8328. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Fixed chunk checksum validation cannot detect trailing garbage data.
  8330. BUG#2074141
  8331. * src/AbstractSingleDiskAdaptor.cc
  8332. * src/AbstractSingleDiskAdaptor.h
  8333. * src/CheckIntegrityEntry.cc
  8334. * src/CheckIntegrityEntry.h
  8335. * src/DiskAdaptor.h
  8336. * src/MultiDiskAdaptor.cc
  8337. * src/MultiDiskAdaptor.h
  8338. * src/RequestGroup.cc
  8339. * test/DirectDiskAdaptorTest.cc
  8340. * test/MultiDiskAdaptorTest.cc
  8341. * test/TestUtil.cc
  8342. * test/TestUtil.h
  8343. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Bump up version number of dht.dat file to 3. In version 3 format, time
  8345. is stored in 64bit, network byte order.
  8346. New build can load old format(version 2) but it saves the file in new
  8347. format. It means once you used new build, your dht.dat becomes
  8348. incompatible with older build.
  8349. * src/DHTRoutingTableDeserializer.cc
  8350. * src/DHTRoutingTableSerializer.cc
  8351. * test/DHTRoutingTableSerializerTest.cc
  8352. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8354. * test/Makefile.am
  8355. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Bump up version number of .aria2 control file to 0001.
  8357. New aria2 can still load version 0000 file but it saves the file in
  8358. version 0001 format. It means that new aria2 can resume download
  8359. started by old aria2 but the opposite is not true.
  8360. * src/DefaultBtProgressInfoFile.cc
  8361. * src/DefaultBtProgressInfoFile.h
  8362. * test/DefaultBtProgressInfoFileTest.cc
  8363. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Added ntoh64 and hton64 as inline functions.
  8365. * src/Util.cc
  8366. * test/UtilTest.cc
  8367. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Added sqlite3 depenency and Firefox3 cookie support.
  8369. * README
  8370. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. State that firefox3 cookie is supported explicitly in the usage.
  8372. * src/usage_text.h
  8373. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Externalized message.
  8375. * src/RequestGroupMan.cc
  8376. * src/message.h
  8377. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Save temporary file first and rename to the destination on success.
  8379. Added test cases.
  8380. * src/RequestGroupMan.cc
  8381. * test/RequestGroupManTest.cc
  8382. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Fixed the bug that the number of connected peer is exceeding the limit
  8384. (55 by default) in seeding mode.
  8385. Multiplied 0.8 to _maxUploadSpeedLimit.
  8386. * src/ActivePeerConnectionCommand.cc
  8387. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Clear table item.
  8389. * src/Dictionary.cc
  8390. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. Fixed error handling of lseek.
  8392. * src/AbstractDiskWriter.cc
  8393. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8395. style cookie file.
  8396. * src/usage_text.h
  8397. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8399. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8400. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8401. * src/Util.cc
  8402. * src/Util.h
  8403. * src/CookieParser.cc
  8404. * test/UtilTest.cc
  8405. * test/CookieParserTest.cc
  8406. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Separate the implementation to load old mozilla format of cookie to
  8408. NsCookieParser class.
  8409. * src/CookieBoxFactory.cc
  8410. * src/CookieBoxFactory.h
  8411. * src/NsCookieParser.cc
  8412. * src/NsCookieParser.h
  8413. * test/NsCookieParserTest.cc
  8414. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Made parse() const
  8416. * src/Sqlite3MozCookieParser.cc
  8417. * src/Sqlite3MozCookieParser.h
  8418. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Added firefox3 cookie support based on the patch submitted by
  8420. tizianomueller.
  8421. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8422. this functionality.
  8423. * configure.ac
  8424. * m4/sqlite3.m4
  8425. * src/CookieBoxFactory.cc
  8426. * src/CookieBoxFactory.h
  8427. * src/Makefile.am
  8428. * src/Makefile.in
  8429. * src/Sqlite3MozCookieParser.cc
  8430. * src/Sqlite3MozCookieParser.h
  8431. * src/main.cc
  8432. * test/CookieBoxFactoryTest.cc
  8433. * test/Makefile.am
  8434. * test/Makefile.in
  8435. * test/Sqlite3MozCookieParserTest.cc
  8436. * test/badcookies.sqlite
  8437. * test/cookies.sqlite
  8438. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Added Danish and Greek translations.
  8440. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8441. Great thanks to all translators.
  8442. * po/LINGUAS
  8443. * po/el.po
  8444. * po/da.po
  8445. * po/es.po
  8446. * po/ca.po
  8447. * po/nn.po
  8448. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Fixed man page: --follow-bittorrent should be --follow-torrent
  8450. * doc/aria2c.1.txt
  8451. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Fixed: numCommand is less than the value specified in -C option.
  8453. * src/RequestGroup.cc
  8454. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Fixed occasional assertion failure in PieceSegment.
  8456. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8457. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8458. creation of duplicate segments and one of the segment was finished then
  8459. assertion failure was caused.
  8460. * src/SegmentMan.cc
  8461. * test/SegmentManTest.cc
  8462. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Added options to load/save the server's performance/status to a file
  8464. and the timeout to drop their data.
  8465. --server-stat-of=FILE specifies the file to which performance data
  8466. is saved.
  8467. --server-stat-if=FILE specifies the file to read previously saved
  8468. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8469. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8470. TIMEOUT is specified in seconds and the default value is 24hours.
  8471. * src/MultiUrlRequestInfo.cc
  8472. * src/OptionHandlerFactory.cc
  8473. * src/RequestGroupMan.cc
  8474. * src/RequestGroupMan.h
  8475. * src/ServerStatMan.cc
  8476. * src/ServerStatMan.h
  8477. * src/option_processing.cc
  8478. * src/prefs.cc
  8479. * src/prefs.h
  8480. * test/ServerStatManTest.cc
  8481. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8483. * src/ServerStatMan.cc
  8484. * src/ServerStatMan.h
  8485. * test/ServerStatManTest.cc
  8486. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Implemented ServerStatMan::load(...) function and its test case.
  8488. * src/ServerStat.cc
  8489. * src/ServerStat.h
  8490. * src/ServerStatMan.cc
  8491. * test/ServerStatManTest.cc
  8492. * test/ServerStatTest.cc
  8493. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Use time_t instead of int32_t. Use int64_t where milli second is
  8495. expected.
  8496. * src/TimeA2.cc
  8497. * src/TimeA2.h
  8498. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Implemented ServerStatMan::save(...) function and its test case.
  8500. * src/ServerStat.cc
  8501. * src/ServerStat.h
  8502. * src/ServerStatMan.cc
  8503. * src/ServerStatMan.h
  8504. * test/ServerStatManTest.cc
  8505. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Now aria2 uses name attribute in Metalink as local filename in
  8507. BitTorrent downloads. BUG#2033999
  8508. * src/BtContext.h
  8509. * src/BtDependency.cc
  8510. * src/DefaultBtContext.cc
  8511. * src/DefaultBtContext.h
  8512. * src/SingleFileDownloadContext.cc
  8513. * src/SingleFileDownloadContext.h
  8514. * test/BtDependencyTest.cc
  8515. * test/DefaultBtContextTest.cc
  8516. * test/MockBtContext.h
  8517. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Added AC_C_BIGENDIAN
  8519. * src/configure.ac
  8520. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Limited numCommand less than or equal to the number of piece.
  8522. * src/RequestGroup.cc
  8523. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8525. directive.
  8526. * test/DefaultPieceStorageTest.cc
  8527. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Fixed memory leak in test code
  8529. * test/AnnounceListTest.cc
  8530. * test/DefaultPeerListProcessorTest.cc
  8531. * test/DefaultPeerStorageTest.cc
  8532. * test/MetaFileUtilTest.cc
  8533. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8535. * src/DefaultPieceStorage.cc
  8536. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Initialized _directIOAllowed
  8538. * src/MultiDiskAdaptor.cc
  8539. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Fixed memory leak
  8541. * src/GZipDecoder.cc
  8542. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Fixed memory leak
  8544. * src/MetalinkParserStateMachine.cc
  8545. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Fixed memory leak
  8547. * src/Dictionary.cc
  8548. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Fixed memory leak
  8550. * src/IteratableChunkChecksumValidator.h
  8551. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Fixed unmatched malloc/free.
  8553. * src/IteratableChunkChecksumValidator.cc
  8554. * src/IteratableChecksumValidator.cc
  8555. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Removed max chunk size check. This change fixes BUG#2040169
  8557. * src/ChunkedDecoder.cc
  8558. * src/ChunkedDecoder.h
  8559. * test/ChunkedDecoderTest.cc
  8560. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Implemented download speed based URI selection algorithm.
  8562. Introduced new option --uri-selector.
  8563. If --uri-selector=feedback is given, aria2 uses download speed observed
  8564. in the previous downloads and chooses fastest server in the URI list.
  8565. Currently at most 10 URIs are considered to introduce randomeness for
  8566. finding better servers. The speed is average download speed in the
  8567. downloads.
  8568. On the other hand, if --uri-selector=inorder is given, which is default,
  8569. URI is tried in order in URI list.
  8570. The usage text for the new option has not been written yet.
  8571. * src/AbstractCommand.cc
  8572. * src/DownloadCommand.cc
  8573. * src/DownloadEngine.cc
  8574. * src/DownloadEngineFactory.cc
  8575. * src/InOrderURISelector.cc
  8576. * src/InOrderURISelector.h
  8577. * src/OptionHandlerFactory.cc
  8578. * src/PeerStat.h
  8579. * src/RequestGroup.cc
  8580. * src/RequestGroup.h
  8581. * src/RequestGroupMan.cc
  8582. * src/RequestGroupMan.h
  8583. * src/SegmentMan.cc
  8584. * src/SegmentMan.h
  8585. * src/ServerStat.cc
  8586. * src/ServerStat.h
  8587. * src/ServerStatMan.cc
  8588. * src/ServerStatMan.h
  8589. * src/ServerStatURISelector.cc
  8590. * src/ServerStatURISelector.h
  8591. * src/URISelector.h
  8592. * src/option_processing.cc
  8593. * src/prefs.cc
  8594. * src/prefs.h
  8595. * test/InOrderURISelectorTest.cc
  8596. * test/RequestGroupManTest.cc
  8597. * test/ServerStatManTest.cc
  8598. * test/ServerStatURISelectorTest.cc
  8599. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. * Release 0.15.1+2
  8601. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Bump up version number to 0.15.1+2
  8603. * configure.ac
  8604. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8606. * m4/aria2_arg.m4
  8607. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. * Release 0.15.1+1
  8609. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Bump up version number to 0.15.1+1
  8611. * configure.ac
  8612. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Fixed the bug that causes segmentaion fault when resuming download
  8614. using metalink without size tag. Reproducible only using HTTP URI.
  8615. * src/HttpResponseCommand.cc
  8616. * src/FtpNegotiationCommand.cc
  8617. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. * Release 0.15.1
  8619. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Updated Bulgarian and French translations, thanks to all translators.
  8621. * po/bg.po
  8622. * po/fr.po
  8623. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Bump up version number to 0.15.1
  8625. * configure.ac
  8626. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Avoid repeated call of gettimeofday() when calculating speed.
  8628. * src/SpeedCalc.cc
  8629. * src/SpeedCalc.h
  8630. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Removed writable check when socket's send buffer is full in BitTorrent
  8632. downloads to lower CPU usage.
  8633. * src/PeerInteractionCommand.cc
  8634. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. Fixed broken gzip inflation.
  8636. Turn off segmented downloading if gzip content is smaller than or equal
  8637. to 1MiB and inflate the data on the fly, because HTTP response header
  8638. doesn't contain the length of inflated file we can't determin where
  8639. the chunk of data should be written.
  8640. On the other hand, if gzip content is larger than 1MB, then turn off
  8641. on the fly inflation, because some servers returns "content-type: gzip"
  8642. for *.tgz, *.gz files.
  8643. * src/DownloadCommand.cc
  8644. * src/HttpResponseCommand.cc
  8645. * src/HttpResponseCommand.h
  8646. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Applied tizianomueller's patch to fix compile error.
  8648. * test/BitfieldManTest.cc
  8649. * test/BtRequestMessageTest.cc
  8650. * test/DefaultBtContextTest.cc
  8651. * test/DefaultDiskWriterTest.cc
  8652. * test/DefaultPieceStorageTest.cc
  8653. * test/HttpHeaderProcessorTest.cc
  8654. * test/HttpResponseTest.cc
  8655. * test/Metalink2RequestGroupTest.cc
  8656. * test/MetalinkParserControllerTest.cc
  8657. * test/MetalinkProcessorTest.cc
  8658. * test/PeerSessionResourceTest.cc
  8659. * test/UtilTest.cc
  8660. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. * Release 0.15.0
  8662. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Reordered src files in POTFILES.in so that usage text appears first.
  8664. * po/POTFILES.in
  8665. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Bump up version number to 0.15.0
  8667. * configure.ac
  8668. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. Added Bulgarian translation.
  8670. Updated Catalan, Spanish, French and Japanese translations.
  8671. Thanks to all translators.
  8672. * po/LINGUAS
  8673. * po/bg.po
  8674. * po/ca.po
  8675. * po/es.po
  8676. * po/fr.po
  8677. * po/ja.po
  8678. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Updated feature list. Added libz for dependency section.
  8680. Added a description about unit testing using CppUnit.
  8681. * README
  8682. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Added a test for libz. Quoted where it is necessary.
  8684. * build_test.sh
  8685. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Added GZip to `Enabled Features' list.
  8687. * src/FeatureConfig.cc
  8688. * src/FeatureConfig.h
  8689. * test/FeatureConfigTest.cc
  8690. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8692. the transfer has not yet started.
  8693. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8694. * src/SegmentMan.cc
  8695. * src/SegmentMan.h
  8696. * test/SegmentManTest.cc
  8697. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Cache last calculated average download/upload speed.
  8699. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8700. cached value.
  8701. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8702. * src/PeerStat.h
  8703. * src/SpeedCalc.cc
  8704. * src/SpeedCalc.h
  8705. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Call parseUrl directly.
  8707. * src/Request.cc (resetUrl)
  8708. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Supported absolute/relative path in Location header field.
  8710. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8711. * src/HttpHeader.cc
  8712. * src/HttpHeader.h
  8713. * src/HttpResponse.cc
  8714. * src/HttpSkipResponseCommand.cc
  8715. * src/Request.cc
  8716. * test/HttpHeaderTest.cc
  8717. * test/HttpResponseTest.cc
  8718. * test/RequestTest.cc
  8719. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. Changed help text for --load-cookie option.
  8721. * doc/aria2c.1.txt
  8722. * src/usage_text.h
  8723. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Regenerated test/Makefile.in to remove stale ChangeLog.
  8725. * test/Makefile.in
  8726. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Updated po files.
  8728. * po/aria2c.pot
  8729. * po/*.po
  8730. * po/*.gmo
  8731. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Bump up version number to 0.15.0b
  8733. * configure.ac
  8734. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Externalize messages.
  8736. * src/RequestGroupMan.cc
  8737. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8738. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Use File::exists() instead of File::isFile() to allow non-regular file
  8740. such as block special files.
  8741. * src/AbstractDiskWriter.cc
  8742. * src/MultiDiskWriter.cc
  8743. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8745. * src/gai_strerror.h
  8746. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Fixed compile error. Thanks gknauf for the patch.
  8748. * src/asctime_r.c
  8749. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Included asctime_r.h from a2time.h.
  8751. * src/a2time.h
  8752. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Added a message "aria2 doesn't verify signature" to log message when
  8754. signature file is saved.
  8755. * src/RequestGroupMan.cc
  8756. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Added the ability to save signature when download is completed if
  8758. signature is available. The filename of signature file is the path to
  8759. download file followed by ".sig". If it already exists, then signature
  8760. will not be saved.
  8761. * src/RequestGroupMan.cc
  8762. * src/Signature.cc
  8763. * test/SignatureTest.cc
  8764. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Updated the descriptions for --bt-seed-unverified.
  8766. * doc/aria2c.1
  8767. * doc/aria2c.1.html
  8768. * doc/aria2c.1.txt
  8769. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8771. that this is not going to verify files using piece hashes.
  8772. * src/HelpItemFactory.cc
  8773. * src/OptionHandlerFactory.cc
  8774. * src/RequestGroup.cc
  8775. * src/option_processing.cc
  8776. * src/prefs.cc
  8777. * src/prefs.h
  8778. * src/usage_text.h
  8779. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8780. Added the ability to retrieve signature from Metalink file.
  8781. A retrieved signature is stored in Signature class and it is held by
  8782. DownloadContext class. Note that aria2 doesn't verify signature.
  8783. * src/DownloadContext.cc
  8784. * src/DownloadContext.h
  8785. * src/Makefile.am
  8786. * src/Makefile.in
  8787. * src/Metalink2RequestGroup.cc
  8788. * src/MetalinkEntry.cc
  8789. * src/MetalinkEntry.h
  8790. * src/MetalinkParserController.cc
  8791. * src/MetalinkParserController.h
  8792. * src/MetalinkParserStateMachine.cc
  8793. * src/MetalinkParserStateMachine.h
  8794. * src/Signature.cc
  8795. * src/Signature.h
  8796. * src/SignatureMetalinkParserState.cc
  8797. * src/SignatureMetalinkParserState.h
  8798. * src/VerificationMetalinkParserState.cc
  8799. * src/VerificationMetalinkParserState.h
  8800. * test/Metalink2RequestGroupTest.cc
  8801. * test/MetalinkParserControllerTest.cc
  8802. * test/MetalinkProcessorTest.cc
  8803. * test/test.xml
  8804. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Close DiskAdaptor after renaming file.
  8806. * src/RequestGroup.cc
  8807. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Corrected indentation
  8809. * src/DefaultBtProgressInfoFile.cc
  8810. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Moved the calls of std::ios::exceptions() inside of try-catch block
  8812. because if an error occurred in constructor of std::fstream, then
  8813. exception is thrown immediately when std::ios::exceptions() is called
  8814. which results unhandled exception and aria2c aborts.
  8815. * src/DefaultBtProgressInfoFile.cc
  8816. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Added the test for the previous change in DefaultBtContext.cc
  8818. * test/DefaultBtContextTest.cc
  8819. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Fixed the bug that causes infinite loop when the number of pieces are
  8821. fewer than allowed fast set size which is 10 by default.
  8822. * src/DefaultBtContext.cc
  8823. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Updated the descriptions for -j, -s. Added --bt-seed.
  8825. * doc/aria2c.1
  8826. * doc/aria2c.1.html
  8827. * doc/aria2c.1.txt
  8828. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8830. aria2 seeds previously downloaded files without validating piece hashs.
  8831. * src/HelpItemFactory.cc
  8832. * src/OptionHandlerFactory.cc
  8833. * src/RequestGroup.cc
  8834. * src/option_processing.cc
  8835. * src/prefs.cc
  8836. * src/prefs.h
  8837. * src/usage_text.h
  8838. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Updated DESCRIPTION of man page.
  8840. * doc/aria2c.1
  8841. * doc/aria2c.1.html
  8842. * doc/aria2c.1.txt
  8843. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8845. Don't define `struct addrinfo' when __sun is defined.
  8846. * src/getaddrinfo.h
  8847. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8849. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8850. second argument is of type `struct _stati64'. Otherwise it is defined as
  8851. `struct stat'.
  8852. * src/AbstractDiskWriter.cc
  8853. * src/File.cc
  8854. * src/File.h
  8855. * src/a2io.h
  8856. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Fixed the compile error in hurd-i386
  8858. See the original bug report:
  8859. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8860. * src/a2io.h
  8861. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Code cleanup.
  8863. * src/PeerAbstractCommand.cc
  8864. * src/PeerAbstractCommand.h
  8865. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Removed TransferEncoding.
  8867. * src/DownloadCommand.cc
  8868. * src/DownloadCommand.h
  8869. * src/HttpResponseCommand.cc
  8870. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. Updated po files.
  8872. * po/aria2c.pot
  8873. * po/*.po
  8874. * po/*.gmo
  8875. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8877. * src/A2STR.cc
  8878. * src/A2STR.h
  8879. * src/ChunkedDecoder.cc
  8880. * src/ChunkedDecoder.h
  8881. * src/ChunkedEncoding.cc: Removed
  8882. * src/ChunkedEncoding.h: Removed
  8883. * src/DownloadCommand.cc
  8884. * src/DownloadCommand.h
  8885. * src/HttpDownloadCommand.cc
  8886. * src/HttpResponse.cc
  8887. * src/HttpResponse.h
  8888. * src/HttpResponseCommand.cc
  8889. * src/HttpSkipResponseCommand.cc
  8890. * src/HttpSkipResponseCommand.h
  8891. * src/Makefile.am
  8892. * src/TransferEncoding.h: Removed
  8893. * test/ChunkedDecoderTest.cc
  8894. * test/ChunkedEncodingTest.cc: Removed
  8895. * test/HttpResponseTest.cc
  8896. * test/Makefile.am
  8897. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Use append instead of insert.
  8899. * src/GZipDecoder.cc
  8900. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Updated doc
  8902. * src/Decoder.h
  8903. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Updated usage text for -s option.
  8905. * src/usage_text.h
  8906. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8908. * src/Request.cc
  8909. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Cleaned up configure.ac.
  8911. * configure.ac
  8912. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8914. AC_ARG_ENABLE.
  8915. * configure.ac
  8916. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8918. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8919. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8920. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8921. fly and writes decoded data to a local disk.
  8922. * README
  8923. * README.html
  8924. * configure.ac
  8925. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8926. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8927. * m4/libz.m4
  8928. * src/Decoder.h
  8929. * src/DownloadCommand.cc
  8930. * src/DownloadCommand.h
  8931. * src/Exception.h
  8932. * src/GZipDecoder.cc
  8933. * src/GZipDecoder.h
  8934. * src/HttpHeader.cc
  8935. * src/HttpHeader.h
  8936. * src/HttpRequest.cc
  8937. * src/HttpRequest.h
  8938. * src/HttpResponse.cc
  8939. * src/HttpResponse.h
  8940. * src/HttpResponseCommand.cc
  8941. * src/Makefile.am
  8942. * test/GZipDecoderTest.cc
  8943. * test/HttpRequestTest.cc
  8944. * test/HttpResponseTest.cc
  8945. * test/Makefile.am
  8946. * test/Makefile.in
  8947. * test/gzip_decode_test.gz
  8948. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Clarified usage of -j option.
  8950. * src/usage_text.h
  8951. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Disabled getting size from the response of RETR.
  8953. If SIZE command failed, then disable resuming and segmented downloading.
  8954. * src/FtpConnection.cc
  8955. * src/FtpConnection.h
  8956. * src/FtpNegotiationCommand.cc
  8957. * src/FtpNegotiationCommand.h
  8958. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. Use digits to find first byte of file size, which makes the intention
  8960. of the code clearer.
  8961. * src/FtpConnection.cc
  8962. Don't call validateTotalLength() when size is 0.
  8963. * src/FtpNegotiationCommand.cc
  8964. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Updated po files.
  8966. * po/aria2c.pot
  8967. * po/*.gmo
  8968. * po/*.po
  8969. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Clarified usage text for --split option.
  8971. * src/usage_text.h
  8972. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Bump up version number to 0.15.0dev. "dev" means "development"
  8974. version, which means I started the development of the next release!
  8975. * src/configure.ac
  8976. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. If FTP server returns negative response with REST raw command and
  8978. requested range is not 0, throw exception. If requested range is 0,
  8979. continue download a file from 0 byte.
  8980. * src/FtpNegotiationCommand.cc
  8981. * src/FtpNegotiationCommand.h
  8982. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Supported FTP server which don't recognize SIZE raw command.
  8984. If SIZE raw command is failed, aria2 will try to get file size
  8985. from the response of RETR raw command. If both attempts are failed,
  8986. then resuming and segmented downloading are disabled.
  8987. * src/FtpConnection.cc
  8988. * src/FtpConnection.h
  8989. * src/FtpNegotiationCommand.cc
  8990. * src/FtpNegotiationCommand.h
  8991. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. * Release 0.14.0+1
  8993. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Bump up version number to 0.14.0+1
  8995. * src/configure.ac
  8996. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Fixed the code that refers static member variable from non-static
  8998. context.
  8999. * src/DefaultPeerStorage.cc
  9000. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. * Release 0.14.0
  9002. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Added build test script
  9004. * build_test.sh
  9005. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Updated ja.po
  9007. * src/ja.po
  9008. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Bump up version number to 0.14.0
  9010. * src/configure.ac
  9011. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Updated ja.po and fr.po. Great thanks for french translators and
  9013. Sebastien WILLEMIJNS.
  9014. * po/fr.po
  9015. * po/ja.po
  9016. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Added configure option to enable/disable epoll support.
  9018. * configure.ac
  9019. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Updated man page.
  9021. * doc/aria2c.1.txt
  9022. * doc/aria2c.1
  9023. * doc/aria2c.1.html
  9024. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Added missing default value '5' to the usage of --split option.
  9026. * src/HelpItemFactory.cc
  9027. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Filled up pieces based on the number of missing blocks, rather than
  9029. simplay the number of piece * block length.
  9030. * src/BtRequestFactory.h
  9031. * src/DefaultBtInteractive.cc
  9032. * src/DefaultBtInteractive.h
  9033. * src/DefaultBtRequestFactory.cc
  9034. * src/DefaultBtRequestFactory.h
  9035. * src/Piece.cc
  9036. * src/Piece.h
  9037. * test/BitfieldManTest.cc
  9038. * test/DefaultBtRequestFactoryTest.cc
  9039. * test/MockBtRequestFactory.h
  9040. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Made _epEvents a member variable.
  9042. * src/DownloadEngine.cc
  9043. * src/DownloadEngine.h
  9044. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Cancel download if http redirect is bounded more than 20 times.
  9046. * src/AbstractCommand.cc
  9047. * src/HttpSkipResponseCommand.cc
  9048. * src/Request.cc
  9049. * src/Request.h
  9050. * test/RequestTest.cc
  9051. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Fixed unhandled exception(removed keyword `new').
  9053. * src/SocketCore.cc (initEPOLL)
  9054. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Removed visit(const MetaEntry*)
  9056. * src/MetaEntryVisitor.h:
  9057. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9058. and made them virtual.
  9059. * src/BencodeVisitor.h
  9060. * src/BencodeVisitor.cc
  9061. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Updated po files.
  9063. * po/aria2c.pot
  9064. * po/*.po
  9065. * po/*.gmo
  9066. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9068. the number of socket to watch out.
  9069. * src/PeerInteractionCommand.cc
  9070. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. When there is not enough space in disk when writing a chunk of data,
  9072. aria2 now prints the message to the console to warn user and aborts
  9073. its download. Not all downloads are canceled because some downloads
  9074. may use another disk or partition. BUG#1640332
  9075. * src/AbstractDiskWriter.cc
  9076. * src/PeerAbstractCommand.cc
  9077. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9078. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9079. setHaltRequested(true) to cancel download.
  9080. * src/PeerInteractionCommand.h
  9081. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9083. socket from int to sock_t as sockets are unsigned in Windows.
  9084. For AsyncNameResolver, DownloadEngine, I did additional modification
  9085. for the portion of the code changed according to epoll support.
  9086. I defined sock_t in a2netcompat.h to use sock_t without including
  9087. SocketCore.h.
  9088. * src/AsyncNameResolver.cc
  9089. * src/AsyncNameResolver.h
  9090. * src/DownloadEngine.cc
  9091. * src/DownloadEngine.h
  9092. * src/SocketCore.cc
  9093. * src/SocketCore.h
  9094. * src/a2netcompat.h
  9095. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9097. changes in the patch were applied.
  9098. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9099. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9100. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9101. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9103. a2io.h and common.h were modified.
  9104. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9105. MinGW.
  9106. * src/common.h: Changed off_t to 64 bit in MinGW.
  9107. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9109. only a2netcompat.h is modified.
  9110. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9111. directives.
  9112. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9114. only gai_strerror.h is modified.
  9115. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9116. winsock errors in MinGW.
  9117. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9119. follow sources are applied.
  9120. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9121. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9122. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9123. I included locale.h from Platform.cc.
  9124. * src/main.cc: Moved common setup/teardown code to Platform class.
  9125. * test/AllTest.cc: Use Platform class.
  9126. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9127. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9129. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9130. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9131. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9133. aria2-0.13.2+1-mingw-2.patch.
  9134. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9135. systems which don't have termious.h. I moved the directive inside of
  9136. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9137. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9138. anyway.
  9139. * src/asctime_r.h
  9140. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9141. I added 2nd argument to the prototype declaration.
  9142. * src/StringFormat.cc: Get rid of vasprintf.
  9143. * src/getaddrinfo.h: Fixed constants.
  9144. * configure.ac: Added the check for asctime_r function.
  9145. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9146. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Added writable test for Socket when the sending message is in progress.
  9148. Usually the sending message is piece message. Without wriable check,
  9149. upload latency is dropped to more than 1sec.
  9150. * src/PeerInteractionCommand.cc
  9151. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Create only requested files and files which shares a piece with
  9153. requested file in multi-torrent downloads. Directory structures are
  9154. also created in the same rule.
  9155. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9156. DiskWriterEntry as in the previous implementation.
  9157. * src/MultiDiskWriter.cc
  9158. * src/MultiFileAllocationIterator.cc
  9159. * src/MultiFileAllocationIterator.h
  9160. * test/MultiFileAllocationIteratorTest.cc
  9161. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Commented out -lprofiler
  9163. * src/Makefile.am
  9164. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Bump up version number to 0.14.0b.
  9166. * src/configure.ac
  9167. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Actively establish connection to peers in seeding, when peer cache
  9169. is not full and max upload speed limit is not reached.
  9170. * src/ActivePeerConnectionCommand.cc
  9171. * src/ActivePeerConnectionCommand.h
  9172. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9174. to make room more fleshy, recently found peers.
  9175. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9176. it.
  9177. * src/DefaultPeerStorage.cc
  9178. * test/DefaultPeerStorageTest.cc
  9179. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Returns cached data only when the previous receiveHandshake() is called
  9181. with peek = true.
  9182. * src/PeerConnection.cc (receiveHandshake)
  9183. * src/PeerConnection.h (receiveHandshake)
  9184. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Changed default value of -s option from 1 to 5.
  9186. Also max value of -s option is changed from 5 to 16.
  9187. * src/HelpItemFactory.cc
  9188. * src/OptionHandlerFactory.cc
  9189. * src/option_processing.cc
  9190. * src/usage_text.h
  9191. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Changed -s options behavior. Now it means the number of connections
  9193. made simultaneously in each http/ftp download.
  9194. If 1 URL is specified, the behavior is the same with old implementation.
  9195. If -s N is given and more than N URLs are specified, first N URLs are
  9196. used and remaining URLs are used for backup. If less than N URLs are
  9197. specified, some of URLs are used more than once so that totally N
  9198. connections are made simultaneously.
  9199. * src/main.cc
  9200. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Included missing iosfwd or ostream header.
  9202. * src/RequestGroupMan.cc
  9203. * src/TaggedItem.cc
  9204. * src/TaggedItem.h
  9205. * src/Util.cc
  9206. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9208. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9209. * src/HttpConnection.cc: Included missing sstream.
  9210. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Added --bt-max-open-files option.
  9212. * src/DefaultPieceStorage.cc
  9213. * src/HelpItemFactory.cc
  9214. * src/MultiDiskAdaptor.cc
  9215. * src/MultiDiskAdaptor.h
  9216. * src/OptionHandlerFactory.cc
  9217. * src/option_processing.cc
  9218. * src/prefs.cc
  9219. * src/prefs.h
  9220. * src/usage_text.h
  9221. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Fixed the bug that aria2 aborts when a path to a directory is given
  9223. in command-line.
  9224. * src/ProtocolDetector.cc
  9225. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. Limited the number files opened in each BitTorrent download. The default
  9227. value is 100. The option to change this value will be added.
  9228. * src/MultiDiskAdaptor.cc
  9229. * src/MultiDiskAdaptor.h
  9230. * src/MultiFileAllocationIterator.cc
  9231. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Fixed the bug that HTTP downloads don't start with old libraries.
  9233. * src/HttpHeaderProcessor.cc
  9234. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Use empty() instead of size() > 0.
  9236. * src/HttpConnection.cc
  9237. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Drop connection if the incoming peer ID is the same with localhost's
  9239. one. The previous implementation drops connection when incoming peer's
  9240. IP address is the same with localhost's one.
  9241. * src/PeerListenCommand.cc
  9242. * src/DefaultBtInteractive.cc
  9243. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Returns cached data without checking whether socket is readable
  9245. if the cache is available.
  9246. * src/PeerConnection.cc (receiveHandshake)
  9247. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Included stdint.h
  9249. * src/common.h
  9250. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Removed duplicate HAVE_GETTIMEOFDAY
  9252. * src/Makefile.am
  9253. * src/Makefile.in
  9254. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9255. Use interval as a minInterval when minInterval is not supplied.
  9256. * src/DefaultBtAnnounce.cc
  9257. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9258. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9259. attempt is failed, then 2nd attempt get kicked out more quickly.
  9260. And it is now static const member of DefaultBtAnnounce.
  9261. * src/DefaultBtAnnounce.h
  9262. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9264. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9265. * src/ActivePeerConnectionCommand.cc
  9266. * src/BtConstants.h
  9267. * src/BtRuntime.h
  9268. * src/DHTGetPeersCommand.cc
  9269. * src/DefaultBtAnnounce.cc
  9270. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9271. BtRuntime::MAX_PEERS.
  9272. * src/DefaultPeerStorage.h
  9273. * src/InitiatorMSEHandshakeCommand.cc
  9274. * src/PeerInitiateConnectionCommand.cc
  9275. * src/PeerInteractionCommand.cc
  9276. * src/PeerReceiveHandshakeCommand.cc
  9277. * src/TrackerWatcherCommand.cc
  9278. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Always Connect to _numNewConnection
  9280. * src/ActivePeerConnectionCommand.cc
  9281. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Made `begin' unsigned int.
  9283. * src/GrowSegment.h
  9284. * src/Piece.cc
  9285. * src/Piece.h
  9286. * src/PiecedSegment.cc
  9287. * src/PiecedSegment.h
  9288. * src/Segment.h
  9289. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Calculate piece hash when data is arrived if the data is arrived in
  9291. order. This removes additional read operation for hash calculation.
  9292. If the data is arrived in out of order, the hash is calucated when the
  9293. piece is completed. This is the same behavior as the old implementation.
  9294. * src/BtPieceMessage.cc
  9295. * src/DefaultBtProgressInfoFile.cc
  9296. * src/DefaultPieceStorage.cc
  9297. * src/DownloadCommand.cc
  9298. * src/DownloadCommand.h
  9299. * src/DownloadEngine.cc
  9300. * src/GrowSegment.cc
  9301. * src/GrowSegment.h
  9302. * src/Piece.cc
  9303. * src/Piece.h
  9304. * src/PiecedSegment.cc
  9305. * src/PiecedSegment.h
  9306. * src/Segment.h
  9307. * test/PieceTest.cc
  9308. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Try to keep the ordering of outgoing piece message.
  9310. * src/DefaultBtMessageDispatcher.cc
  9311. (DefaultBtMessageDispatcher::sendMessages)
  9312. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. Fixed busy loop when error/hup epoll events occur.
  9314. * src/AbstractCommand.cc
  9315. * src/PeerAbstractCommand.cc
  9316. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Added --bt-request-peer-speed-limit option, which was a constant
  9318. SLOW_SPEED_THRESHOLD.
  9319. * src/ActivePeerConnectionCommand.cc
  9320. * src/ActivePeerConnectionCommand.h
  9321. * src/BtConstants.h
  9322. * src/HelpItemFactory.cc
  9323. * src/OptionHandlerFactory.cc
  9324. * src/PeerReceiveHandshakeCommand.cc
  9325. * src/option_processing.cc
  9326. * src/prefs.cc
  9327. * src/prefs.h
  9328. * src/usage_text.h
  9329. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Removed repeated call of getTopDirPath(). Instead, call it once and
  9331. cache the result.
  9332. * src/MultiDiskAdaptor.cc
  9333. * src/MultiDiskAdaptor.h
  9334. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9335. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Fixed compile error on debian etch.
  9337. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9338. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9339. it is undefined.
  9340. * src/Util.cc (ULLONG_MAX)
  9341. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Added epoll support. Use epoll if it is available. If not, use select.
  9343. When async dns is enabled in compile time, epoll support is enabled
  9344. only when aria2 is built with c-ares. This condition statement is
  9345. defined in a2io.h.
  9346. Currently aria2 supports both c-ares and ares, but ares is maintained
  9347. for quite a while and debian already has c-ares package, ares support
  9348. will be dropped in the future version.
  9349. * configure.ac
  9350. * src/AbstractCommand.cc
  9351. * src/AsyncNameResolver.cc
  9352. * src/AsyncNameResolver.h
  9353. * src/Command.cc
  9354. * src/Command.h
  9355. * src/DownloadEngine.cc
  9356. * src/DownloadEngine.h
  9357. * src/PeerAbstractCommand.cc
  9358. * src/SocketCore.cc
  9359. * src/SocketCore.h
  9360. * src/a2io.h
  9361. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9363. directive.
  9364. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Do not do write operation to /dev/null file.
  9366. * src/LogFactory.cc
  9367. * src/SimpleLogger.cc
  9368. Replaced vasprintf with vsnprintf
  9369. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9370. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. * src/BtRequestMessage.cc
  9372. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9373. for segmentation fault caused by previous commit.
  9374. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Reduced the usage of gettimeofday().
  9376. * src/DefaultBtMessageDispatcher.cc
  9377. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9378. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9379. * src/RequestSlot.cc
  9380. * src/RequestSlot.h
  9381. (RequestSlot::isTimeout)
  9382. Made RequestSlot have a reference to Piece object to avoid find
  9383. Piece repeatedly.
  9384. * src/DefaultBtMessageDispatcher.cc
  9385. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9386. * src/RequestSlot.cc
  9387. * src/RequestSlot.h
  9388. (RequestSlot::getPiece)
  9389. * test/DefaultBtMessageDispatcherTest.cc
  9390. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. * src/TimeA2.cc
  9392. * src/TimeA2.h
  9393. (Time::difference): New function.
  9394. (Time::elapsed): Done optimization.
  9395. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9397. directive.
  9398. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. * src/option_processing.cc: Added missing `defined' keyword to #if
  9400. directive.
  9401. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Bump up version number to 0.13.2+1
  9403. * src/configure.ac
  9404. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Refactored broken outstanding piece handling.
  9406. * src/DefaultPieceStorage.cc
  9407. * src/DefaultPieceStorage.h
  9408. * src/Piece.cc
  9409. * src/Piece.h
  9410. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9412. name collision of static variable and predefined macro.
  9413. * src/BtContext.cc
  9414. * src/BtContext.h
  9415. * src/CookieBoxFactory.cc
  9416. * src/CookieBoxFactory.h
  9417. * src/CookieParser.cc
  9418. * src/CookieParser.h
  9419. * src/DefaultBtContext.cc
  9420. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. * src/RequestGroup.cc
  9422. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9423. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9424. * Release 0.13.2
  9425. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9427. * po/fr.po
  9428. * po/ja.po
  9429. * po/aria2c.pot
  9430. * po/*.po
  9431. * po/*.gmo
  9432. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Bump up version number to 0.13.2
  9434. * src/configure.ac
  9435. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Refactord.
  9437. * src/RequestGroupMan.cc
  9438. (removeStoppedGroup)
  9439. (fillRequestGroupFromReserver)
  9440. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Fixed compile error on Ubuntu.
  9442. * src/BtPieceMessage.cc
  9443. * src/MessageDigestHelper.cc
  9444. * src/Util.cc
  9445. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Fixed compile error when configured with --disable-bittorrent
  9447. * test/DownloadHandlerFactoryTest.cc
  9448. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. Done make update-po
  9450. * po/aria2c.pot
  9451. * po/*.po
  9452. * po/*.gmo
  9453. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Bump up version number to 0.13.2rc.
  9455. * src/configure.ac
  9456. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Made option name bold. Updated SYNOPSIS to make it more readable.
  9458. * doc/aria2c.1.txt
  9459. * doc/aria2c.1
  9460. * doc/aria2c.1.html
  9461. * src/version_usage.cc
  9462. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Refactored. Use std::string instead of size and char*.
  9464. * Data.cc
  9465. * Data.h
  9466. * test/Data.cc
  9467. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Added trimSelf(). Rewritten trim() to use trimSelf().
  9469. * Util.cc
  9470. * Util.h
  9471. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9473. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Fixed compile error when configured with --disable-metalink.
  9475. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9476. * test/FeatureConfigTest.cc
  9477. * test/DownloadHandlerFactoryTest.cc
  9478. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Fixed compile error when configured with --without-gnutls
  9480. --without-openssl
  9481. * src/main.cc
  9482. * test/DefaultBtProgressInfoFileTest.cc
  9483. * test/SegmentManTest.cc
  9484. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9485. Fixed compile error with OpenSSL.
  9486. * src/IteratableChunkChecksumValidator.cc
  9487. * src/LibsslDHKeyExchange.h
  9488. * src/MessageDigestHelper.cc
  9489. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Revert the default value of --max-concurrent-downloads to 5.
  9491. Revert the default value of --metalink-servers to 5.
  9492. Man pages was also updated.
  9493. * src/option_processing.cc
  9494. * doc/aria2c.1.txt
  9495. * doc/aria2c.1.html
  9496. * doc/aria2c.1
  9497. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Returns const reference:
  9499. DownloadContext::getPieceHash, DownloadContext::getName,
  9500. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9501. BtContext::getInfoHashAsString,
  9502. * src/BtContext.h
  9503. * src/DefaultBtContext.cc
  9504. * src/DefaultBtContext.h
  9505. * src/DownloadContext.h
  9506. * src/SingleFileDownloadContext.h
  9507. * test/MockBtContext.h
  9508. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. * src/RequestGroup.h (getDir): Removed.
  9510. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Returns const reference. The internal urlencode function was optimized
  9512. a little bit.
  9513. * src/Request.cc
  9514. * src/Request.h
  9515. * src/HttpRequest.cc
  9516. * src/HttpRequest.h
  9517. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Defined option name and possible values as std::string to reduce
  9519. temporary string object creation in runtime.
  9520. * src/HelpItemFactory.cc
  9521. * src/LogFactory.cc
  9522. * src/Option.cc
  9523. * src/OptionHandlerFactory.cc
  9524. * src/option_processing.cc
  9525. * src/prefs.cc
  9526. * src/prefs.h
  9527. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Return const reference.
  9529. * src/DownloadHandlerConstants.cc
  9530. * src/DownloadHandlerConstants.h
  9531. (getMetalinkExtensions)
  9532. (getMetalinkContentTypes)
  9533. (getBtExtensions)
  9534. (getBtContentTypes)
  9535. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. * src/HttpHeader.cc (get): Rewritten.
  9537. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Make HttpHeader::getFirst(...) return const reference.
  9539. * src/HttpHeader.cc
  9540. * src/HttpHeader.h
  9541. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9543. it with V_TRUE.
  9544. * src/DefaultPieceStorage.cc
  9545. * src/DownloadCommand.cc
  9546. * src/FtpNegotiationCommand.cc
  9547. * src/HttpRequest.cc
  9548. * src/InitiateConnectionCommand.cc
  9549. * src/RequestGroup.cc
  9550. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9551. Made Option::get(...) return const reference of std::string.
  9552. * src/Option.cc
  9553. * src/Option.h
  9554. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Replaced std:copy with insert.
  9556. * src/DefaultBtMessageDispatcher.cc
  9557. * src/DefaultPieceStorage.cc
  9558. * src/DownloadEngineFactory.cc
  9559. * src/RequestGroup.cc
  9560. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Included SocketCore.h to fix compiler warning.
  9562. * src/InitiateConnectionCommand.cc
  9563. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Put piece selection strategy algorithm to RarestPieceSelector class,
  9565. Added a switch to choose whether randomized selection so that unit
  9566. tests emit same results in, possibly, win32.
  9567. * src/DefaultPieceStorage.cc
  9568. * src/DefaultPieceStorage.h
  9569. * src/RarestPieceSelector.cc
  9570. * src/RarestPieceSelector.h
  9571. * test/DefaultPieceStorageTest.cc
  9572. * test/RarestPieceSelectorTest.cc
  9573. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. Don't pool connection if HTTP proxy is enabled.
  9575. * src/FtpFinishDownloadCommand.cc
  9576. * src/FtpNegotiationCommand.cc
  9577. * src/HttpSkipResponseCommand.cc
  9578. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9580. * src/AbstractCommand.cc
  9581. * src/AbstractCommand.h
  9582. * src/ActivePeerConnectionCommand.cc
  9583. * src/FtpInitiateConnectionCommand.cc
  9584. * src/HttpInitiateConnectionCommand.cc
  9585. * src/InitiateConnectionCommandFactory.cc
  9586. * src/PeerAbstractCommand.cc
  9587. * src/PeerAbstractCommand.h
  9588. * src/PeerInitiateConnectionCommand.cc
  9589. * src/TrackerWatcherCommand.cc
  9590. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Sort RequestSlot in ascending order and manipulate them using
  9592. lower_bound.
  9593. * src/DefaultBtMessageDispatcher.cc
  9594. * src/DefaultBtMessageDispatcher.h
  9595. (getMessageQueue): Added const qualifier.
  9596. (getRequestSlots): Added const qualifier.
  9597. (sendMessages): Use empty() instead of size().
  9598. (doCancelSendingPieceAction): Use HandleEvent object.
  9599. (doAbortOutstandingRequestAction): Rewritten.
  9600. (doChokedAction): Rewritten.
  9601. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9602. (isOutstandingRequest): Rewritten.
  9603. (getOutstandingRequest): Rewritten.
  9604. (removeOutstandingRequest): Rewritten.
  9605. (addOutstandingRequest): Rewritten.
  9606. * src/RequestSlot.cc
  9607. * src/RequestSlot.h
  9608. (operator=): Rewritten.
  9609. (operator!=): New function.
  9610. (operator<): New function.
  9611. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. * src/DefaultBtRequestFactory.cc
  9613. (doChokedAction): Rewritten.
  9614. (removeCompletedPiece): Rewritten.
  9615. (removeTargetPiece): Rewritten.
  9616. (createRequestMessages): Added the debug log.
  9617. (createRequestMessagesOnEndGame: Added the debug log.
  9618. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Added the debug log message.
  9620. * src/BtPieceMessage.cc (doReceivedAction)
  9621. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9623. used lower_bound to process them rather than linear search.
  9624. * src/DHTPeerAnnounceStorage.cc
  9625. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9627. peer has at least one completed piece.
  9628. * src/Peer.cc
  9629. * src/Peer.h
  9630. * src/PeerInteractionCommand.cc
  9631. * src/PeerSessionResource.cc
  9632. * src/PeerSessionResource.h
  9633. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Removed unnecessary sorting
  9635. * src/DefaultPieceStorage (DefaultPieceStorage)
  9636. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Rewritten the portion of the code that mangaes allowed fast indexes.
  9638. * src/PeerSessionResource.cc
  9639. * src/PeerSessionResource.h
  9640. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Removed the invalid string including '\r' from ru.po and
  9642. did make update-po.
  9643. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. Added --log-level and --summary-interval to man page.
  9645. * doc/aria2c.1.txt
  9646. * doc/aria2c.1.html
  9647. * doc/aria2c.1
  9648. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Added --log-level option to specify log level. Log messages under
  9650. the specified level are not output. Default value is `debug'.
  9651. * src/HelpItemFactory.cc
  9652. * src/LogFactory.cc
  9653. * src/LogFactory.h
  9654. * src/Logger.h
  9655. * src/OptionHandlerFactory.cc
  9656. * src/SimpleLogger.cc
  9657. * src/SimpleLogger.h
  9658. * src/main.cc
  9659. * src/option_processing.cc
  9660. * src/prefs.h
  9661. * src/usage_text.h
  9662. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Print download progress summary of all parallel downloads in specified
  9664. interval, default 60 secs. While aria2 could download several files
  9665. in parallel (see -j option), it displayed just first download progress,
  9666. and the other downloads are hidden from the users. This new feature
  9667. prints all downloads currently in-progress to the console so that you
  9668. can check the status of all downloads. The interval can be adjusted
  9669. by --summary-interval option.
  9670. The progress readout is now cut so that all fits in the one line of
  9671. console.
  9672. * src/ConsoleStatCalc.cc
  9673. * src/ConsoleStatCalc.h
  9674. * src/HelpItemFactory.cc
  9675. * src/OptionHandlerFactory.cc
  9676. * src/RequestGroupMan.cc
  9677. * src/RequestGroupMan.h
  9678. * src/main.cc
  9679. * src/option_processing.cc
  9680. * src/prefs.h
  9681. * src/usage_text.h
  9682. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9684. * src/DownloadEngine.cc (DownloadEngine)
  9685. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9687. defined.
  9688. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9689. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. Use erase+lower_bound+insert instead of sort.
  9691. * src/DefaultPieceStorage.cc (addPieceStats)
  9692. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9694. * src/A2STR.cc
  9695. * src/A2STR.h
  9696. * src/OptionParser.cc (parse)
  9697. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Defined fake filename `[tracker.announce]' as static const std::string.
  9699. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9700. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Defined default filename `index.html' as static const std::string
  9702. * src/SingleFileDownloadContext.cc
  9703. * src/SingleFileDownloadContext.h
  9704. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Defined "[MEMORY]" as static const std::string.
  9706. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9707. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Defined control file's version number as static const std::string.
  9709. * src/DefaultBtProgressInfoFile.cc
  9710. * src/DefaultBtProgressInfoFile.h
  9711. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Use Request::METHOD_GET
  9713. * src/RequestGroup.cc (createNextCommandWithAdj)
  9714. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Defined "OK", "ERR", "INPR" as static const std::string
  9716. * src/RequestGroupMan.cc (showDownloadResults)
  9717. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Defined default client used in extended handshake as static const
  9719. std::string
  9720. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9721. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9723. * src/HttpConnection.cc (eraseConfidentialInfo)
  9724. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Defined default ftp user and password as static const std::string
  9726. * src/AuthConfigFactory.cc
  9727. * src/AuthConfigFactory.h
  9728. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. Defined strings used in netrc as static const std::string
  9730. * src/Netrc.cc
  9731. * src/Netrc.h
  9732. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Defined HTTP status as static const std::string
  9734. * src/AbstractProxyResponseCommand.cc
  9735. * src/HttpHeader.cc
  9736. * src/HttpHeader.h
  9737. * src/HttpResponse.cc
  9738. * src/HttpResponseCommand.cc
  9739. * src/HttpSkipResponseCommand.cc
  9740. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Defined "\r\n", "A", "I" as static const std::string
  9742. * src/A2STR.cc
  9743. * src/A2STR.h
  9744. * src/FtpConnection.cc
  9745. * src/FtpConnection.h
  9746. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Added COLON_C(".") and used it in Request::parseUrl()
  9748. * src/A2STR.cc
  9749. * src/A2STR.h
  9750. * src/Request.cc (parseUrl)
  9751. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Changed the type of padName from `const std::string&' to `const char*'.
  9753. * src/MSEHandshake.cc (verifyPadLength)
  9754. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Defined "sha1" as static const std::string.
  9756. * src/MetalinkParserController.cc
  9757. * src/MetalinkParserController.h
  9758. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9759. Defined message digest algorithm name as static const std::string
  9760. * src/DHTTokenTracker.cc
  9761. * src/DHTUtil.cc
  9762. * src/DefaultBtContext.cc
  9763. * src/MSEHandshake.cc
  9764. * src/MessageDigestHelper.cc
  9765. * src/Peer.cc
  9766. * src/messageDigest.cc
  9767. * src/messageDigest.h
  9768. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Made string literals used in SAX parser static const std::string.
  9770. * src/FileMetalinkParserState.cc
  9771. * src/FileMetalinkParserState.h
  9772. * src/FilesMetalinkParserState.cc
  9773. * src/FilesMetalinkParserState.h
  9774. * src/InitialMetalinkParserState.cc
  9775. * src/InitialMetalinkParserState.h
  9776. * src/MetalinkMetalinkParserState.cc
  9777. * src/MetalinkMetalinkParserState.h
  9778. * src/PiecesMetalinkParserState.cc
  9779. * src/PiecesMetalinkParserState.h
  9780. * src/ResourcesMetalinkParserState.cc
  9781. * src/ResourcesMetalinkParserState.h
  9782. * src/VerificationMetalinkParserState.cc
  9783. * src/VerificationMetalinkParserState.h
  9784. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9786. * src/A2STR.cc
  9787. * src/A2STR.h
  9788. * src/File.cc
  9789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Defined static const std::string IP("ip"), PORT("port") and use them
  9791. instead of string literals.
  9792. * src/DefaultPeerListProcessor.cc
  9793. * src/DefaultPeerListProcessor.h
  9794. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Made string literals for torrent file processing static const
  9796. std::string.
  9797. * src/BtContext.cc
  9798. * src/BtContext.h
  9799. * src/DefaultBtContext.cc
  9800. * src/DefaultBtContext.h
  9801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Made string literal for tracker response static const std::string
  9803. * src/BtAnnounce.cc
  9804. * src/BtAnnounce.h
  9805. * src/DefaultBtAnnounce.cc
  9806. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9807. Use DHTMessage::T instead of "t".
  9808. * src/DHTMessageTracker.cc (messageArrived)
  9809. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Made keyName static const. Made trimmed charset static const
  9811. std::string.
  9812. * src/Util.cc (getContentDispositionFilename)
  9813. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Made USER_AGENT const. Made "/" static const std::string.
  9815. * src/A2STR.cc
  9816. * src/A2STR.h
  9817. * src/HttpRequest.cc
  9818. * src/HttpRequest.h
  9819. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Made string listeral to static const std::string:
  9821. "Content-Range", "Content-Length"
  9822. * src/HttpHeader.cc
  9823. * src/HttpHeader.h
  9824. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Made string listeral to static const std::string.
  9826. * src/HttpConnection.cc
  9827. * src/HttpHeader.cc
  9828. * src/HttpHeader.h
  9829. * src/HttpResponse.cc
  9830. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. Made string listeral to static const std::string.
  9832. * src/A2STR.cc
  9833. * src/A2STR.h
  9834. * src/SimpleLogger.cc
  9835. * src/SimpleLogger.h
  9836. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Made string literal to static const std::string.
  9838. Rewritten CookieParser::setField.
  9839. * src/A2STR.cc
  9840. * src/A2STR.h
  9841. * src/CookieBoxFactory.cc
  9842. * src/CookieBoxFactory.h
  9843. * src/CookieParser.cc
  9844. * src/CookieParser.h
  9845. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. Made string literal to static const std::string
  9847. * src/DHTAbstractMessage.cc
  9848. * src/DHTAnnouncePeerMessage.cc
  9849. * src/DHTAnnouncePeerMessage.h
  9850. * src/DHTAnnouncePeerReplyMessage.cc
  9851. * src/DHTAnnouncePeerReplyMessage.h
  9852. * src/DHTFindNodeMessage.cc
  9853. * src/DHTFindNodeMessage.h
  9854. * src/DHTFindNodeReplyMessage.cc
  9855. * src/DHTFindNodeReplyMessage.h
  9856. * src/DHTGetPeersMessage.cc
  9857. * src/DHTGetPeersMessage.h
  9858. * src/DHTGetPeersReplyMessage.cc
  9859. * src/DHTGetPeersReplyMessage.h
  9860. * src/DHTMessage.cc
  9861. * src/DHTMessage.h
  9862. * src/DHTMessageFactoryImpl.cc
  9863. * src/DHTMessageReceiver.cc
  9864. * src/DHTPingMessage.cc
  9865. * src/DHTPingMessage.h
  9866. * src/DHTPingReplyMessage.cc
  9867. * src/DHTPingReplyMessage.h
  9868. * src/DHTQueryMessage.cc
  9869. * src/DHTQueryMessage.h
  9870. * src/DHTResponseMessage.cc
  9871. * src/DHTResponseMessage.h
  9872. * src/DHTUnknownMessage.cc
  9873. * src/DHTUnknownMessage.h
  9874. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Made string literal to static const std::string
  9876. * src/BtChokeMessage.cc (toString)
  9877. * src/BtHaveAllMessage.cc (toString)
  9878. * src/BtHaveNoneMessage.cc (toString)
  9879. * src/BtInterestedMessage.cc (toString)
  9880. * src/BtNotInterestedMessage.cc (toString)
  9881. * src/BtUnchokeMessage.cc (toString)
  9882. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Replaced "" with static const variable A2STR::NIL.
  9884. Replaced string comparison against "" with std::string::empty().
  9885. Added PROTO_* to Request class and use them as a protocol string
  9886. constant.
  9887. Made "started", "stopped", "completed" static const variable in
  9888. AnnounceList class.
  9889. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Updated translations. Great thanks to translators.
  9891. * po/ca.po
  9892. * po/de.po
  9893. * po/fr.po
  9894. * po/it.po
  9895. * po/ja.po
  9896. * po/ru.po
  9897. * po/zh_CN.po
  9898. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Updated man page; categorized options and fixed typo.
  9900. * doc/aria2c.1.txt
  9901. * doc/aria2c.1.html
  9902. * doc/aria2c.1
  9903. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Removed const ref
  9905. * src/MetalinkEntry.cc (AddProtocolPreference)
  9906. * src/RequestGroup.cc (FindServerHostByHostname)
  9907. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Rewritten Accept-Features handling.
  9909. * src/HttpRequestCommand.cc (createHttpRequest)
  9910. * src/a2functional.h
  9911. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Changed method signature:
  9913. DHTAbstractNodeLookupTask::toEntries
  9914. * src/DHTAbstractNodeLookupTask.cc
  9915. * src/DHTAbstractNodeLookupTask.h
  9916. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9917. Changed method signature:
  9918. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9919. * src/BtContext.h
  9920. * src/DefaultBtContext.cc
  9921. * src/DefaultBtContext.h
  9922. * src/DefaultBtInteractive.cc
  9923. * test/DefaultBtContextTest.cc
  9924. * test/MockBtContext.h
  9925. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Changed method signature:
  9927. MultiFileAllocationIterator::makeDiskWriterEntries
  9928. * src/MultiFileAllocationIterator.cc
  9929. * src/MultiFileAllocationIterator.h
  9930. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Changed method sinature:
  9932. MetalinkEntry::toFileEntry,
  9933. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9934. Metalinker::queryEntry
  9935. * src/Metalink2RequestGroup.cc
  9936. * src/MetalinkEntry.cc
  9937. * src/MetalinkEntry.h
  9938. * src/MetalinkHelper.cc
  9939. * src/MetalinkHelper.h
  9940. * src/Metalinker.cc
  9941. * src/Metalinker.h
  9942. * src/main.cc
  9943. * test/MetalinkHelperTest.cc
  9944. * test/MetalinkerTest.cc
  9945. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Changed method sinature:
  9947. RequestGroup::getURIs
  9948. * src/RequestGroup.cc
  9949. * src/RequestGroup.h
  9950. * test/Metalink2RequestGroupTest.cc
  9951. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Changed method signature:
  9953. PeerListProcessor::extractPeer
  9954. * src/CompactPeerListProcessor.cc
  9955. * src/CompactPeerListProcessor.h
  9956. * src/DefaultBtAnnounce.cc
  9957. * src/DefaultPeerListProcessor.cc
  9958. * src/DefaultPeerListProcessor.h
  9959. * src/DelegatingPeerListProcessor.cc
  9960. * src/DelegatingPeerListProcessor.h
  9961. * src/PeerListProcessor.h
  9962. * src/UTPexExtensionMessage.cc
  9963. * test/DefaultPeerListProcessorTest.cc
  9964. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. Changed method signature:
  9966. BtRequestFactory::createRequestMessages,
  9967. BtRequestFactory::createRequestMessagesOnEndGame
  9968. * src/BtRequestFactory.h
  9969. * src/DefaultBtInteractive.cc
  9970. * src/DefaultBtRequestFactory.cc
  9971. * src/DefaultBtRequestFactory.h
  9972. * test/DefaultBtRequestFactoryTest.cc
  9973. * test/MockBtRequestFactory.h
  9974. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9975. Changed method signature:
  9976. PieceStorage::getInFlightPieces
  9977. * src/DefaultBtProgressInfoFile.cc
  9978. * src/DefaultPieceStorage.cc
  9979. * src/DefaultPieceStorage.h
  9980. * src/PieceStorage.h
  9981. * src/UnknownLengthPieceStorage.cc
  9982. * src/UnknownLengthPieceStorage.h
  9983. * test/DefaultBtProgressInfoFileTest.cc
  9984. * test/MockPieceStorage.h
  9985. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Changed method signature:
  9987. PostDownloadHandler::getNextRequestGroups
  9988. Metalink2RequestGroup::generate
  9989. RequestGroup::postDownloadProcessing
  9990. * src/BtPostDownloadHandler.cc
  9991. * src/BtPostDownloadHandler.h
  9992. * src/Metalink2RequestGroup.cc
  9993. * src/Metalink2RequestGroup.h
  9994. * src/MetalinkPostDownloadHandler.cc
  9995. * src/MetalinkPostDownloadHandler.h
  9996. * src/PostDownloadHandler.h
  9997. * src/RequestGroup.cc
  9998. * src/RequestGroup.h
  9999. * src/RequestGroupMan.cc
  10000. * src/main.cc
  10001. * test/BtPostDownloadHandlerTest.cc
  10002. * test/Metalink2RequestGroupTest.cc
  10003. * test/MetalinkPostDownloadHandlerTest.cc
  10004. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Rewritten AccRequestGroup
  10006. * src/main.cc
  10007. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Rewritten.
  10009. * src/TaggedItem.cc (toTagString)
  10010. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Rewritten Accept-Features handling.
  10012. * src/HttpRequestCommand.cc (createHttpRequest)
  10013. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Rewritten accept types handling.
  10015. * HttpRequest.cc (createRequest)
  10016. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Rewritten
  10018. * src/FeatureConfig.cc (featureSummary)
  10019. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Changed method signature:
  10021. PeerStorage::getActivePeers
  10022. * src/DHTPeerAnnounceEntry.cc
  10023. * src/DefaultPeerStorage.cc
  10024. * src/DefaultPeerStorage.h
  10025. * src/PeerStorage.h
  10026. * test/DefaultPeerStorageTest.cc
  10027. * test/MockPeerStorage.h
  10028. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Changed method signature:
  10030. DHTPeerAnnounceStorage::getPeers,
  10031. DHTPeerAnnounceEntry::getPeers
  10032. * src/DHTGetPeersMessage.cc
  10033. * src/DHTPeerAnnounceEntry.cc
  10034. * src/DHTPeerAnnounceEntry.h
  10035. * src/DHTPeerAnnounceStorage.cc
  10036. * src/DHTPeerAnnounceStorage.h
  10037. * test/DHTAnnouncePeerMessageTest.cc
  10038. * test/DHTPeerAnnounceEntryTest.cc
  10039. * test/DHTPeerAnnounceStorageTest.cc
  10040. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Changed method signature:
  10042. NameResolver::resolve
  10043. * src/DHTEntryPointNameResolveCommand.cc
  10044. * src/InitiateConnectionCommand.cc
  10045. * src/NameResolver.cc
  10046. * src/NameResolver.h
  10047. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Changed method signature:
  10049. PieceStorage::getAdvertisedPieceIndexes
  10050. * src/DefaultBtInteractive.cc
  10051. * src/DefaultPieceStorage.cc
  10052. * src/DefaultPieceStorage.h
  10053. * src/PieceStorage.h
  10054. * src/UnknownLengthPieceStorage.h
  10055. * test/MockPieceStorage.h
  10056. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. Changed method signature:
  10058. SegmentMan::getInFlightSegment
  10059. * src/AbstractCommand.cc
  10060. * src/SegmentMan.cc
  10061. * src/SegmentMan.h
  10062. * test/SegmentManTest.cc
  10063. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Changed method signature:
  10065. DHTAbstractNodeLookupTask::getNodesFromMessage
  10066. * src/DHTAbstractNodeLookupTask.cc
  10067. * src/DHTAbstractNodeLookupTask.h
  10068. * src/DHTNodeLookupTask.cc
  10069. * src/DHTNodeLookupTask.h
  10070. * src/DHTPeerLookupTask.cc
  10071. * src/DHTPeerLookupTask.h
  10072. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10074. * src/AbstractCommand.cc
  10075. * src/BtCheckIntegrityEntry.cc
  10076. * src/BtCheckIntegrityEntry.h
  10077. * src/BtFileAllocationEntry.cc
  10078. * src/BtFileAllocationEntry.h
  10079. * src/BtSetup.cc
  10080. * src/BtSetup.h
  10081. * src/CheckIntegrityCommand.cc
  10082. * src/CheckIntegrityEntry.h
  10083. * src/ChecksumCheckIntegrityEntry.cc
  10084. * src/ChecksumCheckIntegrityEntry.h
  10085. * src/DHTSetup.cc
  10086. * src/DHTSetup.h
  10087. * src/DownloadEngine.cc
  10088. * src/FileAllocationCommand.cc
  10089. * src/FileAllocationEntry.h
  10090. * src/RequestGroup.cc
  10091. * src/RequestGroup.h
  10092. * src/RequestGroupMan.cc
  10093. * src/RequestGroupMan.h
  10094. * src/StreamCheckIntegrityEntry.cc
  10095. * src/StreamCheckIntegrityEntry.h
  10096. * src/StreamFileAllocationEntry.cc
  10097. * src/StreamFileAllocationEntry.h
  10098. * src/TrackerWatcherCommand.cc
  10099. * src/a2functional.h
  10100. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Changed method signature:
  10102. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10103. DHTBucket::getGoodNodes,
  10104. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10105. * src/BNode.cc
  10106. * src/BNode.h
  10107. * src/DHTAbstractNodeLookupTask.cc
  10108. * src/DHTAutoSaveCommand.cc
  10109. * src/DHTBucket.cc
  10110. * src/DHTBucket.h
  10111. * src/DHTBucketRefreshTask.cc
  10112. * src/DHTFindNodeMessage.cc
  10113. * src/DHTGetPeersMessage.cc
  10114. * src/DHTRoutingTable.cc
  10115. * src/DHTRoutingTable.h
  10116. * test/BNodeTest.cc
  10117. * test/DHTBucketTest.cc
  10118. * test/DHTRoutingTableTest.cc
  10119. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. In piece selection functions, Pass std::deque<...> by reference rather
  10121. than returning it.
  10122. * src/BitfieldMan.cc
  10123. * src/BitfieldMan.h
  10124. * src/DefaultBtRequestFactory.cc
  10125. * src/DefaultPieceStorage.cc
  10126. * src/Piece.cc
  10127. * src/Piece.h
  10128. * test/BitfieldManTest.cc
  10129. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10130. Implemented rarest piece first piece selection strategy.
  10131. * src/AbstractBtMessage.cc
  10132. * src/AbstractBtMessage.h
  10133. * src/BitfieldMan.cc
  10134. * src/BitfieldMan.h
  10135. * src/BtBitfieldMessage.cc
  10136. * src/BtHaveAllMessage.cc
  10137. * src/BtHaveMessage.cc
  10138. * src/DefaultPieceStorage.cc
  10139. * src/DefaultPieceStorage.h
  10140. * src/PeerInteractionCommand.cc
  10141. * src/PieceStorage.h
  10142. * src/UnknownLengthPieceStorage.h
  10143. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Rewritten readData and writeData.
  10145. * src/MultiDiskAdaptor.cc
  10146. * src/MultiDiskAdaptor.h
  10147. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Move \n out of the message "Usage: ...".
  10149. * src/version_usage.cc
  10150. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10151. Bump up version number to 0.13.2b.
  10152. * configure.ac
  10153. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Added const qualifier to argument Exception& e.
  10155. * src/Logger.h
  10156. * src/SimpleLogger.cc
  10157. * src/SimpleLogger.h
  10158. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. Pool connection when CWD, SIZE command fails.
  10160. * src/FtpNegotiationCommand.cc
  10161. * src/FtpNegotiationCommand.h
  10162. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10164. * src/HttpResponseCommand.cc
  10165. * src/HttpSkipResponseCommand.cc
  10166. * src/HttpSkipResponseCommand.h
  10167. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Pool connection when a server returns 4xx, 5xx responses.
  10169. * src/HttpNullDownloadCommand.cc
  10170. * src/HttpNullDownloadCommand.h
  10171. * src/HttpResponse.cc
  10172. * src/HttpResponse.h
  10173. * src/HttpResponseCommand.cc
  10174. * src/HttpResponseCommand.h
  10175. * test/HttpResponseTest.cc
  10176. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Print usage when no URL is specifed or bad command-line option is
  10178. specified.
  10179. * src/HelpItemFactory.cc
  10180. * src/help_tags.h
  10181. * src/option_processing.cc
  10182. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. Removed duplicate log message.
  10184. * src/AbstractCommand.cc (asyncResolveHostname)
  10185. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10187. Changed -j option's default value from 5 to 1.
  10188. Added new examples using protocol auto detection feature.
  10189. Removed -T, -M usage where it can be omitted.
  10190. * doc/aria2c.1.txt
  10191. * doc/aria2c.1.html
  10192. * doc/aria2c.1.txt
  10193. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Updated command-line usage text, so that it tells users that they
  10195. can specify any number of torrent files and metalink files in
  10196. command-line.
  10197. * src/version_usage.cc
  10198. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Changed the default value of -j option to 1.
  10200. * src/HelpItemFactory.cc
  10201. * src/option_processing.cc
  10202. * src/usage_text.h
  10203. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Added the ability to reuse connection in FTP and it is enabled by
  10205. default. It can be disabled by --ftp-reuse-connection=false option.
  10206. * src/Command.cc
  10207. * src/DownloadCommand.cc
  10208. * src/FtpDownloadCommand.cc
  10209. * src/FtpDownloadCommand.h
  10210. * src/FtpFinishDownloadCommand.cc
  10211. * src/FtpFinishDownloadCommand.h
  10212. * src/FtpInitiateConnectionCommand.cc
  10213. * src/FtpNegotiationCommand.cc
  10214. * src/FtpNegotiationCommand.h
  10215. * src/HelpItemFactory.cc
  10216. * src/Makefile.am
  10217. * src/Makefile.in
  10218. * src/OptionHandlerFactory.cc
  10219. * src/option_processing.cc
  10220. * src/prefs.h
  10221. * src/usage_text.h
  10222. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Call Command::transitStatus() before calling Command::execute(),
  10224. so that the status change made in execute() is not cleared.
  10225. * src/DownloadEngine.cc
  10226. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. Removed forward declaration of SocketCore class.
  10228. * src/HttpDownloadCommand.h
  10229. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10231. in InitiateConnectionCommandFactory. They should be set only when
  10232. the protocol is HTTP or HTTPS.
  10233. * src/InitiateConnectionCommandFactory.cc
  10234. * src/RequestGroup.cc
  10235. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. Fixed infinite loop in checksum checking.
  10237. * src/IteratableChecksumValidator.cc
  10238. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Set _supportsPersistentConnection to true by default.
  10240. * src/Request.cc
  10241. * src/RequestGroup.cc
  10242. * test/HttpRequestTest.cc
  10243. * test/RequestTest.cc
  10244. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Added timeout to socket pool. The default timeout is 15 seconds,
  10246. which is the same value Apache uses.
  10247. * src/DownloadEngine.cc
  10248. * src/DownloadEngine.h
  10249. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Fixed misuse of multimap::find()
  10251. * src/HttpHeader.cc
  10252. * test/HttpHeaderTest.cc
  10253. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10255. option.
  10256. The asynchronous DNS is not capable of IPv6 yet.
  10257. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10258. least for HTTP download.
  10259. * src/AbstractCommand.cc
  10260. * src/AbstractCommand.h
  10261. * src/AsyncNameResolver.cc
  10262. * src/AsyncNameResolver.h
  10263. * src/DHTEntryPointNameResolveCommand.cc
  10264. * src/DHTEntryPointNameResolveCommand.h
  10265. * src/DownloadEngine.cc
  10266. * src/DownloadEngine.h
  10267. * src/FtpInitiateConnectionCommand.cc
  10268. * src/FtpInitiateConnectionCommand.h
  10269. * src/HelpItemFactory.cc
  10270. * src/HttpInitiateConnectionCommand.cc
  10271. * src/HttpInitiateConnectionCommand.h
  10272. * src/InitiateConnectionCommand.cc
  10273. * src/InitiateConnectionCommand.h
  10274. * src/Makefile.am
  10275. * src/Makefile.in
  10276. * src/NameResolver.cc
  10277. * src/NameResolver.h
  10278. * src/OptionHandlerFactory.cc
  10279. * src/SocketCore.cc
  10280. * src/SocketCore.h
  10281. * src/Util.cc
  10282. * src/Util.h
  10283. * src/option_processing.cc
  10284. * src/prefs.h
  10285. * src/usage_text.h
  10286. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Updated man page: --quiet, --header were added.
  10288. --metalink-servers and --enable-http-keep-alive option were updated.
  10289. * doc/aria2c.1
  10290. * doc/aria2c.1.html
  10291. * doc/aria2c.1.txt
  10292. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Enable HTTP keep-alive by default.
  10294. * src/HelpItemFactory.cc
  10295. * src/option_processing.cc
  10296. * src/usage_text.h
  10297. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. Disable http keep-alive if the remote server is not HTTP/1.1.
  10299. * src/HttpConnection.cc
  10300. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Receive content body of 302 response so that the connection can be
  10302. reused later when http keep-alive is enabled.
  10303. * src/HttpNullDownloadCommand.cc
  10304. * src/HttpNullDownloadCommand.h
  10305. * src/HttpResponseCommand.cc
  10306. * src/HttpResponseCommand.h
  10307. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. const SharedHandle<Request> -> const SharedHandle<Request>&
  10309. * src/FtpDowndloadCommand.cc
  10310. * src/FtpDowndloadCommand.h
  10311. * src/HttpDownloadCommand.cc
  10312. * src/HttpDownloadCommand.h
  10313. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Fixed the bug that the control file(.aria2 file) is not renamed
  10315. according to tryAutoFileRenaming().
  10316. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10317. its control file exist, use them and continue download.
  10318. The old implementation didn't take into account of control file's
  10319. existence, so basically you couldn't continue download of renamed file.
  10320. * src/BtProgressInfoFile.h
  10321. * src/DefaultBtProgressInfoFile.cc
  10322. * src/DefaultBtProgressInfoFile.h
  10323. * src/NullProgressInfoFile.h
  10324. * src/RequestGroup.cc
  10325. * test/DefaultBtProgressInfoFileTest.cc
  10326. * test/MockBtProgressInfoFile.h
  10327. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Change the default value of --metalink-servers option from `5' to `1'.
  10329. * src/HelpItemFactory.cc
  10330. * src/option_processing.cc
  10331. * src/usage_text.h
  10332. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Reimplemented transparent metalink using Accept request header.
  10334. * src/HttpRequest.cc
  10335. * src/HttpRequest.h
  10336. * src/HttpRequestCommand.cc
  10337. * src/Metalink2RequestGroup.cc
  10338. * src/RequestGroup.cc
  10339. * src/RequestGroup.h
  10340. * test/HttpRequestTest.cc
  10341. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Bump up version number to 0.13.2a
  10343. * configure.ac
  10344. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Updated configure.ac using the result of autoscan.
  10346. * configure.ac
  10347. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Fixed compilation error without gcrypt/openssl.
  10349. * src/DownloadCommand.cc
  10350. * src/DownloadCommand.h
  10351. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Reorganized version information so that it can be displayed in a
  10353. standard terminal screen without scrolling.
  10354. Removed http, ftp from Configuration section, because they are always
  10355. enabled.
  10356. * src/FeatureConfig.cc
  10357. * src/FeatureConfig.h
  10358. * src/main.cc
  10359. * src/messageDigest.cc
  10360. * src/messageDigest.h
  10361. * src/version_usage.cc
  10362. * test/FeatureConfigTest.cc
  10363. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Masked user ID in log.
  10365. * src/FtpConnection.cc (sendUser)
  10366. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Removed query part from filename in HTTP download. The query part means
  10368. the substring after "?" in URL. Firefox seems do the same thing.
  10369. A query part is sometimes very long and not suitable to filename,
  10370. so I think it is better to remove it from filename.
  10371. * src/HttpRequest.cc
  10372. * src/HttpRequest.h
  10373. * src/Request.cc
  10374. * src/Request.h
  10375. * test/HttpRequestTest.cc
  10376. * test/RequestTest.cc
  10377. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Rewritten Exception class. Throw exception object, not its pointer and
  10379. catch by reference, so that remove problematic delete operator for
  10380. catched exception.
  10381. * src/Exception.cc
  10382. * src/Exception.h
  10383. * test/ExceptionTest.cc
  10384. * src/*: All files throwing/catching exception.
  10385. * test/*: All files throwing/catching exception.
  10386. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Now auto protocol detection is enabled without -Z option.
  10388. But there is a important difference between with/without -Z optoin.
  10389. For example, if you type:
  10390. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10391. then, aria2 interprets there are 3 request groups:
  10392. (1) http://host/file, http://mirror/file <-- multi-source download
  10393. (2) file1.torrent
  10394. (3) file2.metalink
  10395. On the other hand, if you invoke above command with -Z option, it is
  10396. interpreted as 4 request groups:
  10397. (1) http://host/file
  10398. (2) file1.torrent
  10399. (3) file2.metalink
  10400. (4) http://mirror/file
  10401. I think usually user don't mix multi-source URLs and torrent files, so
  10402. there is no big problem here.
  10403. * src/main.cc
  10404. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Fixed the bug that causes segmentaion fault when reading XML containing
  10406. unescapsed character like '&'.
  10407. Also a modification was made which avoids adding unnecessary
  10408. characters stack and appending unused string.
  10409. * src/ExpatMetalinkProcessor.cc
  10410. * src/FileMetalinkParserState.h
  10411. * src/FilesMetalinkParserState.h
  10412. * src/FinMetalinkParserState.h
  10413. * src/HashMetalinkParserState.h
  10414. * src/InitialMetalinkParserState.h
  10415. * src/LanguageMetalinkParserState.h
  10416. * src/MetalinkMetalinkParserState.h
  10417. * src/MetalinkParserState.h
  10418. * src/MetalinkParserStateMachine.cc
  10419. * src/MetalinkParserStateMachine.h
  10420. * src/OSMetalinkParserState.h
  10421. * src/PieceHashMetalinkParserState.h
  10422. * src/PiecesMetalinkParserState.h
  10423. * src/ResourcesMetalinkParserState.h
  10424. * src/SizeMetalinkParserState.h
  10425. * src/SkipTagMetalinkParserState.h
  10426. * src/URLMetalinkParserState.h
  10427. * src/VerificationMetalinkParserState.h
  10428. * src/VersionMetalinkParserState.h
  10429. * src/XML2SAXMetalinkProcessor.cc
  10430. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Added StringFormat class, which internally calls vasprintf.
  10432. operator<< is defined for this class, so it can be used with iostream
  10433. classes nicely. SimpleLogger and following functions are rewritten
  10434. using StringFormat class.
  10435. Besides, now Logger class's methods are non-const, many classes
  10436. that has a const Logger* as a member variable are modified to remove
  10437. const qualifier from the variable declaration.
  10438. * src/HelpItemFactory.cc
  10439. * src/Request.cc
  10440. * src/SimpleLogger.cc
  10441. * src/StringFormat.cc
  10442. * src/StringFormat.h
  10443. * src/Util.cc
  10444. * src/option_processing.cc
  10445. * src/version_usage.cc
  10446. * test/StringFormatTest.cc
  10447. * src/*.h: The classes that has const Logger* as a member variable.
  10448. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10450. failed. Also fixed memory link when exception is thrown there.
  10451. * src/main.cc (AccRequestGroup)
  10452. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10453. Added build-in "Accept-Features" support. For now only "metalink" is
  10454. used in this header field.
  10455. This "metalink" value is removed from the list when connecting URLs
  10456. fed by metalink file to avoid loop in "transparent" metlaink.
  10457. * src/HttpRequest.cc
  10458. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10459. header is also held in this variable. Also renamed setUserHeaders as
  10460. addHeader and it was rewritten to add header not just to clear the old
  10461. value.
  10462. * src/HttpRequestCommand.cc
  10463. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10464. from "Accept-Features" list.
  10465. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10466. default.
  10467. * src/RequestGroup.h
  10468. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10469. * src/a2functional.h: Included <string> because Concat class depends on
  10470. it.
  10471. * test/HttpRequestTest.cc
  10472. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. Added comment
  10474. * src/RequestGroup.cc (createNextCommand)
  10475. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Capitalized METHOD_GET and METHOD_HEAD
  10477. * src/Request.cc
  10478. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Added getDownloadResults() method
  10480. * src/RequestGroupMan.cc
  10481. * src/RequestGroupMan.h
  10482. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Fixed the bug that aria2 exits when commands is empty() but
  10484. _routineCommands are not.
  10485. * src/DownloadEngine.cc
  10486. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Use the default value pulled from Option object in HelpItemFactory.
  10488. except options whose defualt value is embedded in a usage text.
  10489. * src/HelpItemFactory.cc
  10490. * src/HelpItemFactory.h
  10491. * src/option_processing.cc
  10492. * src/version_usage.cc
  10493. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10494. Added --quiet option to make aria2 quiet (no console output).
  10495. --quiet option is tagged with ADVANCED.
  10496. * src/HelpItemFactory.cc
  10497. * src/LogFactory.cc
  10498. * src/LogFactory.h
  10499. * src/MultiUrlRequestInfo.cc
  10500. * src/MultiUrlRequestInfo.h
  10501. * src/NullStatCalc.h: New class. This class prints nothing.
  10502. * src/OptionHandlerFactory.cc
  10503. * src/main.cc
  10504. * src/option_processing.cc
  10505. * src/prefs.h
  10506. * src/usage_text.h
  10507. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10509. * src/HelpItemFactory.cc (createHelpItems):
  10510. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Fixed compilation error in ExpatMetalinkProcessor.cc
  10512. * src/ExpatMetalinkProcessor.cc
  10513. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Reuse socket if the origin server supports HTTP keep-alive and
  10515. --enable-http-keep-alive or --enable-http-pipelining is given.
  10516. The current implementation doesn't reuse the connections established
  10517. against proxy server.
  10518. * src/AbstractCommand.cc
  10519. * src/DownloadEngine.cc
  10520. * src/DownloadEngine.h
  10521. * src/HttpDownloadCommand.cc
  10522. * src/HttpInitiateConnectionCommand.cc
  10523. * src/HttpResponseCommand.cc
  10524. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10525. Rewritten HTTP keep-alive and pipelining routine.
  10526. * src/AbstractCommand.cc
  10527. * src/HttpConnection.cc
  10528. * src/HttpDownloadCommand.cc
  10529. * src/HttpRequest.cc
  10530. * src/HttpRequestCommand.cc
  10531. * src/HttpResponseCommand.cc
  10532. * src/Request.cc
  10533. * src/Request.h
  10534. * src/RequestGroup.cc
  10535. * test/HttpRequestTest.cc
  10536. * test/HttpResponseTest.cc
  10537. * test/RequestTest.cc
  10538. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Added missing setUserHeaders call
  10540. * src/HttpRequestCommand.cc
  10541. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10543. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10544. waste of time because it is more likey false.
  10545. * src/FileAllocationDispatcherCommand.cc (execute)
  10546. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10547. Now HTTP status and version are a member variable of HttpHeader.
  10548. HTTP status is processed as a string, not integer.
  10549. * src/AbstractProxyResponseCommand.cc
  10550. * src/HttpConnection.cc
  10551. * src/HttpHeader.cc
  10552. * src/HttpHeader.h
  10553. * src/HttpHeaderProcessor.cc
  10554. * src/HttpHeaderProcessor.h
  10555. * src/HttpResponse.cc
  10556. * src/HttpResponse.h
  10557. * test/HttpHeaderProcessorTest.cc
  10558. * test/HttpResponseTest.cc
  10559. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Added --header option. You can specify any number of additional HTTP headers
  10561. like:
  10562. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10563. Unlike other commad-line option, you can use --header option multiple times.
  10564. * src/HelpItemFactory.cc
  10565. * src/HttpRequest.{cc, h}
  10566. * src/HttpRequestCommand.cc
  10567. * src/OptionHandlerFactory.cc
  10568. * src/OptionHandlerImpl.h
  10569. * src/option_processing.cc
  10570. * src/prefs.h
  10571. * src/usage_text.h
  10572. * test/HttpRequestTest.cc (testUserHeaders)
  10573. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Eliminates the time lag between sequential downloads and commands in
  10575. the same RequestGroup.
  10576. In old implementation, aria2 occasionally waits 1 seconds before
  10577. executing next command or RequestGroup.
  10578. This is really a waste of time, and new implementation eliminates
  10579. this unnecessary time lag.
  10580. * src/AbstractCommand.cc
  10581. * src/AutoSaveCommand.cc
  10582. * src/CheckIntegrityCommand.cc
  10583. * src/Command.{cc, h}
  10584. * src/DownloadEngine.{cc, h}
  10585. * src/DownloadEngineFactory.cc
  10586. * src/FileAllocationCommand.cc
  10587. * src/FileAllocationDispatcherCommand.cc
  10588. * src/FillRequestGroupCommand.cc
  10589. * src/FtpInitiateConnectionCommand.cc
  10590. * src/HaveEraseCommand.cc
  10591. * src/HttpInitiateConnectionCommand.cc
  10592. * src/HttpResponseCommand.cc
  10593. * src/RealtimeCommand.cc
  10594. * src/RequestGroup.cc
  10595. * src/RequestGroupMan.cc
  10596. * src/StreamFileAllocationEntry.cc
  10597. * src/TimeBasedCommand.{cc, h}
  10598. * src/TimedHaltCommand.cc
  10599. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10601. keyword explicit and SharedHandle's default constructor initializes
  10602. its internal obj to null, old implementation initializes it using
  10603. obj's default constructor.
  10604. To assign null, write SharedHandle<T> x(...); x.reset();
  10605. TODO: test/SharedHandleTest.cc needs more tests.
  10606. * src/SharedHandle.h
  10607. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10608. Fixed type in man page.
  10609. * doc/aria2c.1.txt
  10610. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10612. * src/SimpleLogger.{cc, h}
  10613. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Implemented auto protocol detection.
  10615. Now you can do:
  10616. aria2c -Z http://host/file file1.torrent file2.metalink
  10617. (Note: -Z option is required for auto protcol detection.)
  10618. Then aria2c downloads 3 files simultaneously:
  10619. 1. http://host/file
  10620. 2. file1.torrent <-- read local torrent file
  10621. 3. file2.metalink <-- read local Metalink file.
  10622. Same thing goes with -i option. Assume your uris.txt contans:
  10623. http://host/file
  10624. file1.torrent
  10625. file2.metalink
  10626. Then you can do: aria2c -i uris.txt
  10627. (Note: -Z option is not needed if -i option is given.)
  10628. * src/main.cc
  10629. * src/ProtocolDetector.{cc, h}
  10630. * test/ProtocolDetectorTest.cc
  10631. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10633. installed
  10634. * src/ARC4Encryptor.h
  10635. * src/ARC4Decryptor.h
  10636. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. Renamed argument from 'errno' to 'err', since errno is confused with
  10638. errno defined in errno.h.
  10639. * src/LibgcryptARC4Decryptor.h
  10640. * src/LibgcryptARC4Context.h
  10641. * src/LibgcryptDHKeyExchange.h
  10642. * src/LibgcryptARC4Encryptor.h
  10643. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Rewritten choking algorithm.
  10645. * src/PeerChokeCommand.{cc, h}
  10646. * src/BtInterestedMessage.cc
  10647. * src/PeerSessionResource.{cc, h}
  10648. * src/DefaultPeerStorage.{cc, h}
  10649. * src/BtNotInterestedMessage.cc
  10650. * src/DefaultBtMessageDispatcher.{cc, h}
  10651. * src/BtMessageDispatcher.h
  10652. * src/Peer.{cc, h}
  10653. * src/BtLeecherStateChoke.{cc, h}
  10654. * src/BtSetup.cc
  10655. * src/BtSeederStateChoke.{cc, h}
  10656. * src/PeerStorage.h
  10657. * test/MockPeerStorage.h
  10658. * test/MockBtMessageDispatcher.h
  10659. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10660. Fixed compilation error on x84-64 platform.
  10661. * src/AuthConfig.cc: Included ostream.
  10662. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. Rewritten getBasename() and getDirname(), without standard library
  10664. basename(), dirname().
  10665. * src/File.cc
  10666. * test/FileTest.cc
  10667. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10668. Added Simplified Chinese translation. Also updated the following
  10669. translations: Polish, Dutch, German. Great thanks to all translators.
  10670. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Suppress content-range error when 'Content-Range' response header
  10672. doesn't contains bytes-unit specifier 'bytes'
  10673. * src/HttpHeader.cc (getRange)
  10674. * test/HttpHeaderTest.cc
  10675. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. Fixed compilation error with g++-4.3
  10677. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Added missing include files for MinGW
  10679. * test/HttpHeaderProcessorTest.cc
  10680. * test/DHTRoutingTableSerializerTest.cc
  10681. * test/DHTRoutingTableDeserializerTest.cc
  10682. * test/UriListParserTest.cc
  10683. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10684. Now download line is printed nicely with no garbage at the end of
  10685. line. I use ioctl to get the columns of terminal.
  10686. If stdout is redirected to another device, instead of carriage return,
  10687. end of line '\n' character is used. This is feature request#1909659
  10688. * src/ConsoleStatCalc.cc (calculateStat)
  10689. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Included a2time.h
  10691. * src/DHTMessageDispatcher.h
  10692. * src/DHTMessageEntry.h
  10693. * src/DHTReplaceNodeTask.h
  10694. * src/DHTMessageTracker.h
  10695. * src/Util.h
  10696. * src/CookieBox.h
  10697. * src/SocketCore.h
  10698. * src/DefaultBtMessageDispatcher.h
  10699. * src/SocketCore.cc
  10700. * src/Util.cc
  10701. * src/DHTPingTask.h
  10702. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Fixed high memory footprint when DHT is enabled.
  10704. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10705. queued than it is processed and the queue is getting longer. As a
  10706. consequence, momory usage is increased.
  10707. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10708. replacement cache in DHTBucket which is described in Kademlia paper.
  10709. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10710. DHTReplaceNodeTask.
  10711. * src/DHTBucket.{h, cc}
  10712. (cacheNode): New function.
  10713. (getCachedNodes): New function.
  10714. (dropNode): Push back cached node to _nodes.
  10715. * test/DHTBucketTest.cc
  10716. (testCacheNode): New test
  10717. (testDropNode): New test
  10718. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10719. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10720. the unused 4KB memory when ssl is not used.
  10721. * src/SocketCore.cc
  10722. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10723. Added summary log for peer announce storage.
  10724. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10725. Removed cast
  10726. * src/DefaultPeerStorage.cc (addPeer)
  10727. Log exception message
  10728. * src/DHTMessageTracker.cc (handleTimeout)
  10729. Fixed casting
  10730. * test/HttpRequestTest.cc
  10731. * test/MetalinkProcessorTest.cc
  10732. * test/PieceTest.cc
  10733. * test/MetalinkEntryTest.cc
  10734. * test/SequenceTest.cc
  10735. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. * src/ParameterizedStringParser.cc (createLoop):
  10737. Removed unused variable sstep.
  10738. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10739. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. * src/Util.{h, cc}
  10741. (parseUInt): New function.
  10742. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10743. The actual range is uint32_t.
  10744. * test/UtilTest.cc
  10745. * src/ParameterizedStringParser.cc:
  10746. Use Util::parseUInt() for loop variables.
  10747. * test/ParameterizedStringParserTest.cc
  10748. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10749. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. Rewritten the functions for binding port.
  10751. * src/DHTConnectionImpl.{h, cc}
  10752. * src/PeerListenCommand.{h, cc}
  10753. * src/DHTSetup.cc
  10754. * src/BtSetup.cc
  10755. * test/DHTConnectionImplTest.cc
  10756. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. type cleanup for allmost all remaining files.
  10758. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10759. Type clarification
  10760. * src/PeerSessionResource.{h, cc}
  10761. * src/DefaultPieceStorage.{h, cc}
  10762. * src/Peer.{h, cc}
  10763. * test/PeerSessionResourceTest.cc
  10764. Use div function
  10765. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10766. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Type clarification
  10768. * src/DefaultPeerStorage.{h, cc}
  10769. * test/DefaultPeerStorageTest.cc
  10770. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Type clarification: size_t for length or size, uint64_t for file
  10772. length, off_t for file offset.
  10773. * src/DefaultBtProgressInfoFile.cc
  10774. * src/DefaultBtContext.{h, cc}
  10775. * src/DefaultBtInteractive.cc
  10776. * src/DownloadCommand.{h, cc}
  10777. * src/IteratableChunkChecksumValidator.{h, cc}
  10778. * src/SegmentMan.{h, cc}
  10779. * src/SingleFileDownloadContext.{h, cc}
  10780. * src/IteratableChecksumValidator.{h, cc}
  10781. * src/BtContext.h
  10782. * src/IteratableValidator.h
  10783. * src/DownloadContext.h
  10784. * test/SingleFileDownloadContextTest.cc
  10785. * test/DefaultBtContextTest.cc
  10786. * test/MockBtContext.h
  10787. * test/Metalink2RequestGroupTest.cc
  10788. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10789. Type clarification: size_t for length or size, uint64_t for file
  10790. length, off_t for file offset.
  10791. * src/PiecedSegment.cc
  10792. * src/GrowSegment.h
  10793. * src/DefaultBtRequestFactory.h
  10794. * src/DefaultBtProgressInfoFile.cc
  10795. * src/UnknownLengthPieceStorage.h
  10796. * src/DefaultPieceStorage.cc
  10797. * src/UnknownLengthPieceStorage.cc
  10798. * src/DefaultBtInteractive.cc
  10799. * src/GrowSegment.cc
  10800. * src/BitfieldMan.h
  10801. * src/DownloadCommand.cc
  10802. * src/BtRequestFactory.h
  10803. * src/PiecedSegment.h
  10804. * src/DefaultPieceStorage.h
  10805. * src/Piece.cc
  10806. * src/DefaultBtRequestFactory.cc
  10807. * src/PieceStorage.h
  10808. * src/Segment.h
  10809. * src/Piece.h
  10810. * src/BitfieldMan.cc
  10811. * src/Util.cc
  10812. * test/DefaultBtProgressInfoFileTest.cc
  10813. * test/DefaultPieceStorageTest.cc
  10814. * test/MockPieceStorage.h
  10815. * test/BtRequestMessageTest.cc
  10816. * test/DefaultBtMessageDispatcherTest.cc
  10817. * test/BitfieldManTest.cc
  10818. * test/GrowSegmentTest.cc
  10819. * test/PieceTest.cc
  10820. * test/SegmentTest.cc
  10821. * test/SegmentManTest.cc
  10822. * test/DefaultBtRequestFactoryTest.cc
  10823. * test/MockBtRequestFactory.h
  10824. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Fixed compilation error with --disable-nls
  10826. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10827. in gettext.h causes the problem.
  10828. * src/common.h
  10829. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10830. Removed subPiece related functions.
  10831. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10832. * src/DefaultPieceStorage.{h, cc}
  10833. * test/PieceTest.cc
  10834. * test/DefaultPieceStorageTest.cc
  10835. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Use unsigned char for data store.
  10837. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10838. Bump up version number to 0.13.0+1
  10839. * configure.ac
  10840. * Release 0.13.0+1
  10841. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. Changed inactive connection timeout to 120.
  10843. To accept more mulually interested peers, disconnect peer when there
  10844. is no interest between us after certain time passed.
  10845. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10846. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10848. when compiled with async DNS support.
  10849. * src/DownloadEngine.cc
  10850. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10851. value '10' will be a little bit short when some DNS servers are
  10852. offline and several DNS servers are tried. It should be configured
  10853. by command-line option.
  10854. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10855. Merged Ross's mingw patch.
  10856. * src/DHTRoutingTableDeserializer.cc
  10857. * src/DHTRoutingTableSerializer.cc
  10858. * src/Platform.{h, cc}
  10859. * src/timegm.h
  10860. * src/gettimeofday.h
  10861. * src/getaddrinfo.h
  10862. * src/SocketCore.h
  10863. * src/common.h
  10864. * src/inet_aton.h
  10865. * src/DownloadEngine.h
  10866. * src/gai_strerror.h
  10867. * src/a2netcompat.h
  10868. * configure.ac
  10869. * configure
  10870. * aclocal.m4
  10871. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10872. Included missing iostream.
  10873. * test/AllTest.cc
  10874. * test/BtDependencyTest.cc
  10875. * test/BtExtendedMessageTest.cc
  10876. * test/DHTConnectionImplTest.cc
  10877. * test/DHTMessageFactoryImplTest.cc
  10878. * test/DHTMessageTrackerEntryTest.cc
  10879. * test/DHTNodeTest.cc
  10880. * test/DHTRoutingTableSerializerTest.cc
  10881. * test/DefaultBtAnnounceTest.cc
  10882. * test/DefaultBtContextTest.cc
  10883. * test/DefaultBtMessageFactoryTest.cc
  10884. * test/DefaultExtensionMessageFactoryTest.cc
  10885. * test/HandshakeExtensionMessageTest.cc
  10886. * test/HttpResponseTest.cc
  10887. * test/MetalinkProcessorTest.cc
  10888. * test/MultiFileAllocationIteratorTest.cc
  10889. * test/SocketCoreTest.cc
  10890. * test/UTPexExtensionMessageTest.cc
  10891. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. Reorganized includes.
  10893. * src/NameResolver.cc
  10894. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. Fixed compilation error without ares/c-ares
  10896. * src/NameResolver.h:
  10897. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Added a test for large file.
  10899. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10900. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10901. Fixed the bug that file size is ignored if size > INT32_MAX
  10902. * src/SizeMetalinkParserState.cc (endElement):
  10903. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10904. Bump up version number to 0.13.0
  10905. * configure.ac
  10906. * Release 0.13.0
  10907. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10908. Updated Makfefile.am to make 'make dist' work.
  10909. Now packaged filename is aria2c-VERSION.tar.bz2.
  10910. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10911. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10912. Large file support is now configured by configure script.
  10913. * configure.ac
  10914. Removed unsused source files
  10915. * src/
  10916. * test/
  10917. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10918. Peer.h and BtContext.h respectively.
  10919. * src/Peer.h
  10920. * src/BtContext.h
  10921. Updated translations.
  10922. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10923. translations. Great thanks to all translators!;)
  10924. * po/*.{po, gmo}
  10925. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10927. statically declared sha1 MessageDigestContext.
  10928. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10929. initialization of short-lived MessageDigestContext.
  10930. * src/MessageDigestHelper.{h, cc}
  10931. * src/main.cc
  10932. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10933. the initialization of MessageDigestContext every time in validating
  10934. chunk checksum.
  10935. * src/DownloadCommand.{h, cc}
  10936. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Add a file descriptor which connected to fast peer(latency<1500) to
  10938. select(). This change reduced CPU load.
  10939. * src/PeerInteractionCommand.cc
  10940. * src/DefaultBtInteractive.{h, cc}
  10941. * src/BtInteractive.h
  10942. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. Fixed the previous insufficient fix for possible busy loop.
  10944. * src/MSEHandshake.cc (identifyHandshakeType)
  10945. Removed unused functions.
  10946. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10947. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10948. Fixed possible busy loop if first 20 bytes are not received for a few
  10949. minutes.
  10950. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10951. * src/ReceiverMSEHandshakeCommand.cc
  10952. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Fixed compilation error
  10954. * src/ExpatMetalinkProcessor.cc
  10955. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10957. * src/DHTBucket.cc
  10958. Removed unnecessary cast.
  10959. * src/HandshakeExtensionMessage.cc
  10960. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10962. is missing.
  10963. * src/OptionHandlerFactory.cc
  10964. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Fixed the bug that HAVE message is not sent for a piece they are
  10966. downloaded fom http/ftp server before any BitTorrent handshake is done
  10967. with peers.
  10968. * src/DefaultBtInteractive.cc
  10969. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10971. * src/Makefile.am
  10972. * src/Makefile.in
  10973. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Updated README. Added html version of README and man page.
  10975. * README
  10976. * README.html
  10977. * readme2html: Shell script to generate README.html from README using
  10978. asciidoc.
  10979. * doc/aria2c.1.html
  10980. * doc/makeman: Added the line to generate aria2c.1.html
  10981. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10982. Fixed offset calculation.
  10983. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10984. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Rewritten itos and uitos using template. llitos and ullitos are
  10986. replaced with itos and uitos respectively.
  10987. * src/Util.{h, cc}
  10988. * test/UtilTest.cc
  10989. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10991. of the number of bytes required for storing public key and shared
  10992. secret.
  10993. * src/LibgcryptDHKeyExchange.h
  10994. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10995. * src/MSEHandshake.cc
  10996. * test/DHKeyExchangeTest.cc
  10997. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Removed since they are not used.
  10999. * src/Xml2MetalinkProcessor.{h, cc}
  11000. * src/Socket.cc
  11001. * src/SegmentSplitter.{h, cc}
  11002. * test/Xml2MetalinkProcessorTest.cc
  11003. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Fixed the bug that prevents aria2 from stopping other than by pressing
  11005. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11006. option. aria2 doesn't stop even after --seed-time is satisfied and
  11007. continues to output blank lines in the console.
  11008. * src/ReceiverMSEHandshakeCommand.cc
  11009. * src/PeerReceiveHandshakeCommand.cc
  11010. * src/PeerListenCommand.cc
  11011. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. Bump up version number to 0.13.0rc
  11013. * configure.ac
  11014. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. Updated man page and some usage text.
  11016. * doc/aria2c.1.txt
  11017. * src/usage_text.h
  11018. * po/*.{po, gmo}
  11019. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Updated translations. Added Finnish and Hebrew translations.
  11021. Great thanks to all translators!
  11022. * po/*.{po, gmo}
  11023. * po/LINGUAS
  11024. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Log more detailed information about each message.
  11026. * src/DHTQueryMessage.{h, cc}
  11027. * src/DHTGetPeersMessage.{h, cc}
  11028. * src/DHTFindNodeReplyMessage.{h, cc}
  11029. * src/DHTGetPeersReplyMessage.{h, cc}
  11030. * src/DHTAnnouncePeerMessage.{h, cc}
  11031. * src/DHTResponseMessage.{h, cc}
  11032. * src/DHTFindNodeMessage.{h, cc}
  11033. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Use constants defined in prefs.h
  11035. * src/option_processing.cc
  11036. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11037. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11038. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Make room for future enchancements for IPv6 addresses.
  11040. Bump up version number of dht.dat file format to 2.
  11041. Not compatible with previous version.
  11042. * src/DHTRoutingTableSerializer.cc
  11043. * src/DHTRoutingTableDeserializer.cc
  11044. * test/DHTRoutingTableSerializerTest.cc
  11045. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11046. Added handling for the return values from
  11047. PeerMessageUtil::createcompact().
  11048. * src/DefaultBtContext.cc (computeFastSet):
  11049. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Fixed abort when peer's ip address is IPv4-mapped address.
  11051. * src/DefaultBtContext.cc (computeFastSet)
  11052. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11053. cannot handle IPv4-mapped addresses.
  11054. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11055. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. Proper return value handling for OpenSSL functions.
  11057. * src/LibsslDHKeyExchange.h
  11058. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11059. Random bytes generation using libgcrypt and OpenSSL.
  11060. * src/DHTUtil.{h, cc}
  11061. * test/DHTUtilTest.cc
  11062. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11063. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11064. received.
  11065. * src/DHTMessageReceiver.cc (receiveMessage)
  11066. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11067. Fixed the bug that a return code is always 0. BUG#1897704
  11068. If error occurred during the download or there exist unfinished
  11069. downloads, aria2 returns with code 1.
  11070. * src/RequestGroupMan.{h, cc}
  11071. * src/MultiUrlRequestInfo.{h, cc}
  11072. * src/main.cc
  11073. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. IPv6 support for SocketCore class.
  11075. TODO: In SocketCore::establishConnection(), this is insufficient to
  11076. determin the failure of connect() here because the socket is
  11077. non-blocking state. The next addresses should be tried after select().
  11078. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11079. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11080. instead which address family independent.
  11081. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11082. information in a compact peer format which is for IPv4 only.
  11083. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11084. this is a spec of BitTorrent protocol.
  11085. * src/SocketCore.{h, cc}
  11086. * src/PeerMessageUtil.cc
  11087. * test/SocketCoreTest.cc
  11088. * test/PeerMessageUtilTest.cc
  11089. * test/DHTConnectionImplTest.cc
  11090. Handle IPv4-mapped addresses.
  11091. * src/DHTNode.cc: Now identity is determined by node id.
  11092. * src/DHTMessageTrackerEntry.cc
  11093. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11094. should handle it.
  11095. * src/DHTRoutingTableDeserializer.cc
  11096. * src/DHTMessageFactoryImpl.cc
  11097. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11098. Change the unit of --stop option from a minute to a second.
  11099. * src/usage_text.h
  11100. * src/DownloadEngineFactory.cc
  11101. * src/OptionHandlerFactory.cc
  11102. * src/message.h
  11103. * src/TimedHaltCommand.cc
  11104. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11105. Make listening socket non-block mode.
  11106. * src/FtpConnection.cc
  11107. * src/FtpNegotiationCommand.{h, cc}
  11108. * src/PeerListenCommand.cc
  11109. Fixed the bug that cause slow ftp negotiation.
  11110. * src/FtpNegotiationCommand.{h, cc}
  11111. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11112. Added basic tag to --enable-dht, --dht-listen-port option.
  11113. * src/HelpItemFactory.cc (createHelpItems)
  11114. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11115. Updated text.
  11116. * src/usage_text.h
  11117. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11119. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11120. Determin _threadtholdSpeed in each constructor for
  11121. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11122. * src/ActivePeerConnectionCommand.{h, cc}
  11123. * src/PeerReceiveHandshakeCommand.{h, cc}
  11124. * src/BtSetup.cc
  11125. * src/BtConstants.h
  11126. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Added --bt-min-crypto-level and --bt-require-crypto options.
  11128. * src/OptionHandlerFactory.cc
  11129. * src/MSEHandshake.cc
  11130. * src/HelpItemFactory.cc
  11131. * src/option_processing.cc
  11132. * src/ReceiverMSEHandshakeCommand.cc
  11133. * src/prefs.h
  11134. * src/DefaultBtAnnounce.cc
  11135. * src/InitiatorMSEHandshakeCommand.cc
  11136. * src/usage_text.h
  11137. * test/MSEHandshakeTest.cc
  11138. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Bump version number to 0.13.0b
  11140. * configure.ac
  11141. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Updated doc.
  11143. * src/MessageDigestHelper.h:
  11144. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Use raw message digest as a token instead of its hexadecimal
  11146. representation.
  11147. * src/DHTTokenTracker.cc (generateToken)
  11148. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. Added Message Stream Encryption(MSE) support.
  11150. Currently, aria2 accepts incoming connections with Obfuscation Header
  11151. and legacy BitTorrent Header and establishes connections with
  11152. Obfuscation Header first and if failed then retry with legacy
  11153. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11154. choose ARC4. The new option to change the default behavior is planned.
  11155. For tracker extension, "supportcrypto=1" is added statically.
  11156. * src/PeerInitiateConnectionCommand.{h, cc}
  11157. * src/PeerConnection.{h, cc}
  11158. * src/HandleRegistry.h
  11159. * src/SocketCore.h
  11160. * src/PeerReceiveHandshakeCommand.{h, cc}
  11161. * src/BtRegistry.{h, cc}
  11162. * src/PeerListenCommand.cc
  11163. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11164. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11165. * src/MSEHandshake.{h, cc}
  11166. * src/ARC4Encryptor.h
  11167. * src/ARC4Decryptor.h
  11168. * src/LibgcryptARC4Encryptor.h
  11169. * src/LibgcryptARC4Decryptor.h
  11170. * src/LibgcryptARC4Context.h
  11171. * src/LibsslARC4Encryptor.h
  11172. * src/LibsslARC4Decryptor.h
  11173. * src/LibsslARC4Context.h
  11174. * src/DHKeyExchange.h
  11175. * src/LibgcryptDHKeyExchange.h
  11176. * src/LibsslDHKeyExchange.h
  11177. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11178. * test/DefaultBtAnnounceTest.cc
  11179. * test/ARC4Test.cc
  11180. * test/DHKeyExchangeTest.cc
  11181. Removed prepareForRetry() because it is not used.
  11182. * src/PeerAbstractCommand.{h, cc}
  11183. * src/PeerInteractionCommand.{h, cc}
  11184. * src/PeerInitiateConnectionCommand.{h, cc}
  11185. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. Added the ability to load nodes from torrent file. These nodes are
  11187. added to the routing table when downloading that torrent.
  11188. * src/BtContext.h
  11189. * src/DefaultBtContext.{h, cc}
  11190. * src/DHTSetup.cc
  11191. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11192. hostname and port pair, and resolves all of them.
  11193. * src/NameResolver.{h, cc}: Added reset().
  11194. * src/RequestGroup.cc
  11195. * test/DefaultBtContextTest.cc
  11196. * test/MockBtContext.h
  11197. Removed assert() from DefaultBtContext and throw exception instead.
  11198. * src/DefaultBtContext.cc
  11199. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. Fixed segmentation fault bug when exiting if dht is disabled.
  11201. * src/RequestGroup.cc
  11202. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. Fixed typo in log message and define the message in message.h
  11204. * src/TimedHaltCommand.cc
  11205. * src/message.h
  11206. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Included RecoverableException.h to fix compilation error.
  11208. * test/DHTMessageFactoryImplTest.cc
  11209. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11210. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11211. * test/DHTPingMessageTest.cc
  11212. * test/DHTGetPeersMessageTest.cc
  11213. * test/DHTFindNodeMessageTest.cc
  11214. * test/DHTAnnouncePeerMessageTest.cc
  11215. * test/MockDHTMessage.h
  11216. * test/MockDHTMessageFactory.h
  11217. * test/MockDHTMessageDispatcher.h: New class.
  11218. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11220. virtual.
  11221. * src/DHTMessageDispatcher.h
  11222. * src/DHTMessageDispatcherImpl.{h, cc}
  11223. * src/DHTSetup.cc
  11224. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Adding handling of DHT error message. Just log error message and
  11226. throw exception.
  11227. * src/DHTMessageFactoryImpl.cc
  11228. * test/DHTMessageFactoryImplTest.cc
  11229. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11230. Added handling of dynamic cast failure.
  11231. * src/DHTNodeLookupTask.cc
  11232. * src/DHTPeerLookupTask.cc
  11233. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. Added the ability to stop aria2 itself when given time has passed
  11235. from start. Use --stop option to specify time in minutes.
  11236. When 0 is given, this feature is disabled.
  11237. * src/OptionHandlerFactory.cc
  11238. * src/TimeBasedCommand.h: Make _interval protected scope.
  11239. * src/HelpItemFactory.cc
  11240. * src/option_processing.cc
  11241. * src/prefs.h
  11242. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11243. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11244. Without this modification, the result list shows "ERR" when aria2 is
  11245. stopped by --stop option. It should be "INPR".
  11246. * src/DownloadEngine.{h, cc}
  11247. * src/DownloadEngineFactory.cc
  11248. * src/usage_text.h
  11249. * src/TimedHaltCommand.{h, cc}: New class.
  11250. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11251. Bootstrap through node added by port message.
  11252. Currently bootstrap is executed if the number of buckets in routing
  11253. table is 1.
  11254. * src/BtPortMessage.{h, cc}
  11255. * src/DefaultBtMessageFactory.{h, cc}
  11256. * src/PeerInteractionCommand.cc
  11257. * test/BtPortMessageTest.cc
  11258. * test/MockDHTTask.h
  11259. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11260. Extract the Peer class's member variables, which are only needed after
  11261. PeerInteractionCommand, into PeerSessionResource class.
  11262. This class is instantiated in PeerInteractionCommand class's ctor and
  11263. released in its dtor.
  11264. This will make Peer class lightweight and uses less memory for peers
  11265. which are not connected and wait in the queue.
  11266. * src/PeerChokeCommand.cc
  11267. * src/PeerSessionResource.{h, cc}
  11268. * src/PeerInteractionCommand.cc
  11269. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11270. * src/DefaultBtInteractive.cc
  11271. * src/BtPieceMessage.cc
  11272. * src/BtInterestedMessage.cc
  11273. * src/BtUnchokeMessage.cc
  11274. * src/DefaultPeerStorage.{h, cc}
  11275. * src/PeerInitiateConnectionCommand.cc
  11276. * src/ActivePeerConnectionCommand.cc
  11277. * src/BtNotInterestedMessage.cc
  11278. * src/DefaultBtMessageDispatcher.cc
  11279. * src/BtChokeMessage.cc
  11280. * src/BtRequestMessage.cc
  11281. * src/Peer.{h, cc}
  11282. * src/BtRegistry.h
  11283. * src/TrackerWatcherCommand.cc
  11284. * src/PeerReceiveHandshakeCommand.cc
  11285. * test/BtExtendedMessageTest.cc
  11286. * test/BtAllowedFastMessageTest.cc
  11287. * test/BtCancelMessageTest.cc
  11288. * test/DefaultPieceStorageTest.cc
  11289. * test/BtBitfieldMessageTest.cc
  11290. * test/BtHaveMessageTest.cc
  11291. * test/BtNotInterestedMessageTest.cc
  11292. * test/BtRequestMessageTest.cc
  11293. * test/PeerSessionResourceTest.cc
  11294. * test/DefaultBtMessageDispatcherTest.cc
  11295. * test/PeerTest.cc
  11296. * test/BtInterestedMessageTest.cc
  11297. * test/BtRejectMessageTest.cc
  11298. * test/BtChokeMessageTest.cc
  11299. * test/DefaultPeerStorageTest.cc
  11300. * test/BtHaveNoneMessageTest.cc
  11301. * test/BtHaveAllMessageTest.cc
  11302. * test/DefaultExtensionMessageFactoryTest.cc
  11303. * test/BtUnchokeMessageTest.cc
  11304. * test/DefaultBtMessageFactoryTest.cc
  11305. * test/HandshakeExtensionMessageTest.cc
  11306. * test/UTPexExtensionMessageTest.cc
  11307. * test/DefaultBtRequestFactoryTest.cc
  11308. * test/BtPieceMessageTest.cc
  11309. Removed typedef PeerStats.
  11310. * src/PeerStat.h
  11311. * src/SegmentMan.cc
  11312. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11313. Added std namespace to copy, remove_copy, back_inserter,
  11314. front_inserter.
  11315. * src/RequestGroupMan.cc
  11316. * src/DefaultPieceStorage.cc
  11317. * src/StreamFileAllocationEntry.cc
  11318. * src/BtFileAllocationEntry.cc
  11319. * src/RequestGroup.cc
  11320. * src/MetalinkEntry.cc
  11321. * src/DelegatingPeerListProcessor.cc
  11322. * src/DefaultBtRequestFactory.cc
  11323. * src/DefaultBtMessageDispatcher.cc
  11324. * src/version_usage.cc: Included <algorithm>
  11325. * src/main.cc
  11326. * src/MetalinkParserController.cc
  11327. * src/DefaultBtContext.cc
  11328. * src/DownloadEngineFactory.cc
  11329. * src/a2algo.h
  11330. Removed.
  11331. * test/StreamUriListParserTest.cc
  11332. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11334. ActivePeerConnectionCommand when it is given and
  11335. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11336. * src/ActivePeerConnectionCommand.{h, cc}
  11337. * src/BtSetup.cc
  11338. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11339. Only add socket to DownloadEngine's select routine when peer or
  11340. localhost is unchoked and interested. This lowers CPU usage a
  11341. little bit.
  11342. * src/PeerInteractionCommand.cc
  11343. * src/PeerAbstractCommand.{h, cc}
  11344. * src/BtInteractive.h
  11345. * src/DefaultBtInteractive.{h, cc}
  11346. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11347. Revert previous change because get_peers message is needed for
  11348. announce_peer anyway.
  11349. * src/DHTGetPeersCommand.cc
  11350. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11351. Request peers thought DHT only when download hasn't finished.
  11352. * src/DHTGetPeersCommand.cc
  11353. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11354. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11355. * src/DHTBucketRefreshTask.{h, cc}
  11356. * src/DHTSetup.cc
  11357. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11358. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11359. standard classes.
  11360. Included string.h where mem* function are used.
  11361. Added namespace aria2.
  11362. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11363. Create directory before saving DHT routing table.
  11364. Now ios::failure is now handled properly.
  11365. * src/DHTAutoSaveCommand.cc
  11366. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11367. Removed unnecessary cerr.
  11368. * src/DownloadEngine.cc
  11369. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. Catch exception inside DHTMessageReceiver::receiveMessage().
  11371. Log unknown message.
  11372. * src/DHTMessageReceiver.{h, cc}
  11373. * src/DHTMessageFactory.h
  11374. * src/DHTMessageFactoryImpl.{h, cc}
  11375. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11376. * src/DHTInteractionCommand.cc
  11377. * src/DHTUnknownMessage.{h, cc}
  11378. * test/DHTUnknownMessageTest.cc
  11379. * test/MockDHTMessageFactory.h
  11380. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11381. Commented out ip address comparison because a host can have multiple
  11382. ip addresses and it is hard to predict the hostname is resolved into
  11383. which one.
  11384. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11385. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. * po/Makefile.in: Removed since this is generated by configure.
  11387. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11388. Fixed compiler warning about redefinition of SIZE_MAX.
  11389. Use common.h instead of config.h directly here.
  11390. * src/Platform.{h, cc}
  11391. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11392. here.
  11393. * common.h
  11394. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11395. Updated gettext related files.
  11396. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11397. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11398. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11399. Added DHT functionality, compatible with mainline.
  11400. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11401. You may need to specify entry point to DHT network using
  11402. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11403. Use --dht-listen-port to specify port number. Make sure that your
  11404. firewall configuration can pass through UDP traffic to the port.
  11405. The routing table is saved in $HOME/.aria2/dht.dat.
  11406. * src/DHT*
  11407. * src/BNode.{h, cc}
  11408. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11409. particular torrent.
  11410. * src/Data.cc: Rewritten ctor.
  11411. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11412. --dht-entry-point.
  11413. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11414. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11415. ends, remove BtContext from DHTPeerAnnounceStorage.
  11416. * src/BtPortMessage.{h, cc}: Rewritten.
  11417. * src/message.h
  11418. * src/OptionHandlerImpl.cc
  11419. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11420. --dht-entry-point.
  11421. * src/Dictionary.{h, cc} (remove): New function.
  11422. * src/prefs.h
  11423. * src/DefaultBtMessageFactory.h
  11424. * src/BtHandshakeMessage.cc
  11425. * src/ActivePeerConnectionCommand.cc
  11426. * src/SocketCore.{h, cc}: Added datagram socket support.
  11427. * src/DefaultBtMessageFactory.cc
  11428. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11429. Create DHT commands.
  11430. * src/BtMessageFactory.h
  11431. * src/PeerMessageUtil.{h, cc}
  11432. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11433. Fixed the bug that log file is not written when configuration file doesn't exist.
  11434. This is caused by using Logger class before LogFactory is not configured.
  11435. BUG #1875079
  11436. * src/option_processing.cc
  11437. Warning message "configuration doesn't exist" is only printed when --conf is
  11438. given.
  11439. * src/option_processing.cc
  11440. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11442. ShaVisitor is now deprecated and slated to be removed.
  11443. * src/DefaultBtContext.cc
  11444. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11445. Externalize message to message.h
  11446. * src/Platform.cc
  11447. * src/message.h
  11448. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Set default domain and default path to cookie.
  11450. * src/HttpResponse.cc
  11451. * src/CookieBox.{h, cc}
  11452. * src/CookieParser.{h, cc}
  11453. * test/CookieParserTest.cc
  11454. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Added --no-conf and --conf-path command-line option.
  11456. --no-conf option disables loading aria2.conf file.
  11457. --conf-path option changes the configuration file path. The default
  11458. file path is $HOME/.aria2/aria2.conf
  11459. Added a warning message when the configuration file is not found.
  11460. * src/HelpItemFactory.cc
  11461. * src/option_processing.cc
  11462. * src/prefs.h
  11463. * src/usage_text.h
  11464. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11465. Added the message to inform users that other help categories are
  11466. available in -h option.
  11467. * src/version_usage.cc
  11468. * src/TagContainer.{h, cc}
  11469. * test/TagContainerTest.cc
  11470. * src/TaggedItem.{h, cc}
  11471. * test/TaggedItemTest.cc
  11472. * src/HelpItem.h
  11473. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11474. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11475. from PiecedSegment's ctor.
  11476. Previously Piece::getAllMissingBlockIndexes() is called from
  11477. PiecedSegment() but it is rather expensive since only first element is
  11478. used.
  11479. * src/PiecedSegment.cc
  11480. * src/Piece.{h, cc}
  11481. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11483. each time these functions are called.
  11484. * src/BitfieldMan.{h, cc}
  11485. * test/BitfieldManTest.cc
  11486. * src/array_fun.h
  11487. * test/array_funTest.cc
  11488. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11489. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11490. filtered. Removed unnecessary cast to int32_t.
  11491. * src/BitfieldMan.{h, cc}
  11492. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11493. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11494. payload length(4bytes) are received. This happens because lenbufLength
  11495. is not updated in this particular case and successive call of
  11496. receiveMessage() overwrites payload length with bytes recieved which
  11497. are payload body.
  11498. * src/PeerConnection.{h, cc}
  11499. * src/message.h
  11500. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11501. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11502. peer if there are peers that have same ipaddr and port.
  11503. I've experiened segmentation fault and "pure virtual function was
  11504. called" error.
  11505. * src/Peer.h
  11506. * test/PeerTest.cc
  11507. * src/DefaultPeerStorage.cc
  11508. * test/DefaultPeerStorageTest.cc
  11509. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. Removed a call to isPowerOf() because it is no longer necessary here
  11511. and a request block is not always power of 2.
  11512. BUG#1866924
  11513. * src/PeerMessageUtil.cc (checkLength)
  11514. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11515. Fixed the bug that always first found Segment is removed from
  11516. usedSegmentEntries. Removed unused functions.
  11517. * src/SegmentMan.{h, cc}
  11518. * test/SegmentManTest.cc
  11519. Fixed the bug that ServerHost is not removed.
  11520. * src/RequestGroup.cc
  11521. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. Fixed the bug that SegmentMan::completeSegment() is not called
  11523. even if Segment is complete when --lowest-speed-limit is enabled.
  11524. BUG#1864525
  11525. * src/DownloadCommand.{h, cc}
  11526. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Fixed: hash algorithm 'sha1' is always used.
  11528. * src/DownloadCommand.cc (validatePieceHash)
  11529. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11530. Added --enable-peer-exchange command-line option.
  11531. * src/OptionHandlerFactory.cc
  11532. * src/HelpItemFactory.cc
  11533. * src/option_processing.cc
  11534. * src/usage_text.h
  11535. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. Move extension from BtRuntime to ExtensionMessageFactory, because
  11537. extension can be specified per peer, not per torrent.
  11538. * src/DefaultBtInteractive.cc
  11539. * src/BtRuntime.h
  11540. * src/ExtendedMessagingAware.h
  11541. * src/ExtensionMessageFactory.h
  11542. * src/DefaultExtensionMessageFactory.cc
  11543. * test/DefaultExtensionMessageFactoryTest.cc
  11544. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Added categorized option help. Specify category using --help option.
  11546. Also added the ability to search options in forward match.
  11547. * src/HelpItem.{h, cc}
  11548. * test/HelpItemTest.cc
  11549. * src/HelpItemFactory.{h, cc}
  11550. * src/TagContainer.{h, cc}
  11551. * test/TagContainerTest.cc
  11552. * src/option_processing.cc
  11553. * src/prefs.h
  11554. * src/TaggedItem.{h, cc}
  11555. * test/TaggedItemTest.cc
  11556. * src/version_usage.cc
  11557. * src/help_tags.h
  11558. * src/usage_text.h
  11559. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11560. Fixed segmentation fault when bad torrent metainfo is parsed.
  11561. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11562. and then throw exception or skip it.
  11563. * src/DefaultBtContext.{h, cc}
  11564. * test/DefaultBtContextTest.cc
  11565. * src/AnnounceList.cc
  11566. * src/CompactPeerListProcessor.cc
  11567. * src/message.h
  11568. * src/DefaultBtAnnounce.{h, cc}
  11569. * test/DefaultBtAnnounceTest.cc
  11570. * src/BencodeVisitor.cc
  11571. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Added missing "B"(=Byte). So now the message looks like this:
  11573. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11574. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11575. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11576. Show the seed ratio after torrent downloads.
  11577. For example, after torrent download completed and --seed-time and
  11578. --seed-ratio conditions are fulfilled, following message is printed
  11579. right after "Download complete: .....":
  11580. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11581. * src/RequestGroupMan.cc
  11582. * src/RequestGroup.{h, cc}
  11583. * src/message.h
  11584. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. Remove a defunct control file. A defunct control file means that while
  11586. it exists, but the corresponding download file is missing.
  11587. After its removal, a download restarts from the beginning.
  11588. * src/RequestGroup.cc
  11589. * src/message.h
  11590. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. Allocate bitfield in Peer when it is really used. More specifically,
  11592. bitfield in Peer is allocated after the connection is established and
  11593. deallocated when the connection is dropped.
  11594. Since 2 parameters(piece length and total length) was removed from the
  11595. constructor of Peer class, many test classes were modified accordingly.
  11596. See svn log for more detailed information.
  11597. * src/PeerInteractionCommand.cc
  11598. * src/CompactPeerListProcessor.cc
  11599. * src/Peer.cc
  11600. * src/DefaultPeerListProcessor.cc
  11601. * src/PeerListenCommand.cc
  11602. * src/PeerReceiveHandshakeCommand.cc
  11603. Fixed memory leak
  11604. * src/Piece.cc
  11605. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11606. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11607. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11608. command-line options.
  11609. * src/option_processing.cc
  11610. * src/ActivePeerConnectionCommand.cc
  11611. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Send have message to peer if it already has the piece.
  11613. * src/BtHaveMessage.{h, cc}
  11614. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11615. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11616. port.
  11617. * src/DefaultPeerStorage.{h, cc}
  11618. * test/DefaultPeerStorageTest.cc
  11619. * src/HandshakeExtensionMessage.cc
  11620. * test/HandshakeExtensionMessageTest.cc
  11621. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11622. * src/PeerStorage.h
  11623. * test/MockPeerStorage.h
  11624. * src/PeerListenCommand.cc
  11625. * src/PeerReceiveHandshakeCommand.cc
  11626. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Added --metalink-enable-unique-protocol option.
  11628. * src/Metalink2RequestGroup.cc
  11629. * src/option_processing.cc
  11630. * src/prefs.h
  11631. * src/version_usage.cc
  11632. * doc/aria2c.1.txt
  11633. * doc/aria2c.1
  11634. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Allow a peer in incomingPeer to be added peers.
  11636. * src/DefaultPeerStorage.cc
  11637. * test/DefaultPeerStorageTest.cc
  11638. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11640. I could reproduce this bug in following procedure:
  11641. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11642. 2. Restart aria2.
  11643. 3. You see the download stopped around 99%.
  11644. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11645. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11646. If timeout is reached, then _nextCommand is unused and it may contains
  11647. segments and they won't be canceled. Actually, timeout is not needed
  11648. here because if the server dropped connection, then retry is made.
  11649. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11650. Added uTorrent compatible Peer Exchange.
  11651. * src/BencodeVisitor.{h, cc}
  11652. * test/BencodeVisitorTest.cc
  11653. * src/BtConstants.h
  11654. * src/BtContext.h: Added 'private' flag.
  11655. * src/BtExtendedMessage.{h, cc}
  11656. * test/BtExtendedMessageTest.cc
  11657. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11658. reserved field.
  11659. * test/BtHandshakeMessageTest.cc
  11660. * src/BtMessageFactory.h
  11661. * src/BtRegistry.h
  11662. * src/BtRuntime.h: This class holds default extension message IDs for
  11663. aria2. By default, aria2 uses ID 8 for ut_pex.
  11664. * src/DefaultBtContext.cc
  11665. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11666. When it is true, aria2 enables ut_pex. This value is set by
  11667. PeerInteractionCommand.
  11668. * src/DefaultBtMessageFactory.{h, cc}
  11669. * test/DefaultBtMessageFactoryTest.cc
  11670. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11671. handling to DefaultBtInteractive class.
  11672. * src/DefaultExtensionMessageFactory.{h, cc}
  11673. * test/DefaultExtensionMessageFactoryTest.cc
  11674. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11675. the container(peers and incomingPeers. The equality is determined by
  11676. Peer::id).
  11677. * test/DefaultPeerStorageTest.cc
  11678. * src/ExtensionMessage.h
  11679. * test/MockExtensionMessage.h
  11680. * src/ExtensionMessageFactory.h
  11681. * test/MockExtensionMessageFactory.h
  11682. * src/HandshakeExtensionMessage.{h, cc}
  11683. * test/HandshakeExtensionMessageTest.cc
  11684. * src/MetaEntry.h
  11685. * src/Peer.{h, cc}
  11686. * src/PeerInteractionCommand.cc
  11687. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11688. addIncomingPeer.
  11689. * src/PeerMessageUtil.{h, cc}
  11690. * src/PeerObject.h
  11691. * src/UTPexExtensionMessage.{h, cc}
  11692. * test/UTPexExtensionMessageTest.cc
  11693. * src/message.h
  11694. * src/prefs.h
  11695. Fixed the bug that returns incomplete data when it contains null
  11696. character. A convenient constructor was also added.
  11697. * src/Data.{h, cc}
  11698. Rewritten.
  11699. * src/CompactPeerListProcessor.cc
  11700. Fixed typos.
  11701. * src/message.h
  11702. * src/MetaFileUtil.cc
  11703. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11704. Added "Status Legend" label to the explanation text of 'stat' in
  11705. download result and moved it to the last. BUG#1848214
  11706. * src/RequestGroupMan.cc
  11707. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11708. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11709. * src/Makefie.am
  11710. * test/Makefile.am
  11711. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11712. Fixed the bug that prevents aria2 from loading cookie file when expire
  11713. value is greater than 2^31-1. BUG#1851066
  11714. * src/CookieBoxFactory.cc
  11715. * test/CookieBoxFactoryTest.cc
  11716. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11717. Fixed possible memory leak when an exception is thrown.
  11718. * src/XML2SAXMetalinkProcessor.cc
  11719. Added Expat support. If both libxml2 and Expat are installed, then
  11720. libxml2 is used by default.
  11721. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11722. ExpatMetalinkProcessor according to the configuration.
  11723. * src/ExpatMetalinkProcessor.{h, cc}
  11724. * src/main.cc: Removed libxml2 specific header and init/free function.
  11725. * src/MetalinkProcessorFactory.{h, cc}
  11726. * src/MetalinkHelper.cc
  11727. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11728. * src/MetalinkProcessor.h
  11729. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11730. MetalinkProcessorTest is used instead.
  11731. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11732. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11733. MetalinkProcessorFactory::newInstance().
  11734. * m4/libexpat.m4
  11735. * configure.ac: Added configuration options for libexpat.
  11736. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11737. Disabled -s option in metalink download.
  11738. * src/Metalink2RequestGroup.cc
  11739. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11740. If several protocols are available for a mirror in metalink file,
  11741. aria2 now use one of them. --metalink-preferred-protocol option was
  11742. added to specify the preference of protocol.
  11743. * src/AbstractCommand.cc
  11744. * src/OptionHandlerFactory.cc
  11745. * src/ServerHost.{h, cc}
  11746. * src/Metalink2RequestGroup.cc
  11747. * src/RequestGroup.{h, cc}
  11748. * test/RequestGroupTest.cc
  11749. * src/option_processing.cc
  11750. * src/prefs.h
  11751. * src/HttpResponseCommand.cc
  11752. * src/MetalinkResource.{h, cc}
  11753. * src/FtpNegotiationCommand.cc
  11754. * src/MetalinkEntry.{h, cc}
  11755. * src/MetalinkEntryTest.cc
  11756. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. Code cleanup and added debug log.
  11758. * src/PeerConnection.cc
  11759. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Compiler error fix: applied the patch by Tiziano Mueller
  11761. * src/RequestGroup.cc
  11762. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11763. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11764. in stopped and completed event.
  11765. * src/AnnounceList.{h, cc}
  11766. * test/AnnounceListTest.cc
  11767. * src/DefaultBtAnnounce.cc
  11768. * test/DefaultBtAnnounceTest.cc
  11769. Sorted URLs.
  11770. * test/Metalink2RequestGroupTest.cc
  11771. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11772. Removed unnecessary string copy. Updated doc and corrected indentation.
  11773. * src/Base64.cc
  11774. Fixed compilation warnings
  11775. * test/DataTest.cc
  11776. * test/HttpRequestTest.cc
  11777. * test/MetaFileUtilTest.cc
  11778. * test/RequestTest.cc
  11779. * Release 0.12.0
  11780. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11781. Updated translations
  11782. * po/{de,fr,ja,nl,ru}.po
  11783. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11784. translations. Many thanks to translators.
  11785. * po/{ca,es,it,pt_BR,sv}.po
  11786. * po/LINGUAS
  11787. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11788. Added a notice about URL
  11789. * src/version_usage.cc
  11790. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11791. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11792. aria2 repeatedly sends stopped request when tracker returns error code.
  11793. * src/AnnounceList.cc
  11794. * test/AnnounceListTest.cc
  11795. * src/AnnounceTier.h
  11796. Added a message when ctrl-c is hit.
  11797. Now second ctrl-c is also handled in signal handler.
  11798. * src/RequestGroupMan.{h, cc}
  11799. * src/RequestGroup.{h, cc}
  11800. * src/MultiUrlRequestInfo.cc
  11801. * src/DownloadEngine.cc
  11802. * src/TrackerWatcherCommand.cc
  11803. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. Code cleanup
  11805. * src/Base64.cc (encode)
  11806. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. Changed Direct/IO enable/disable procesure in file allocation routine.
  11808. * src/SingleFileAllocationIterator.cc
  11809. (SingleFileAllocationIterator):
  11810. Disable directIO if offset is not multiple of 512.
  11811. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11812. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11813. Enable created SingleFileAllocationIterator's directIO.
  11814. * src/FileAllocationEntry.cc
  11815. (FileAllocationEntry): Enable directIO here.
  11816. (~FileAllocationEntry): Disable directIO here.
  11817. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11819. * src/Peer.{h, cc}
  11820. * src/DefaultPieceStorage.cc
  11821. * test/DefaultPieceStorageTest.cc
  11822. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. Rewritten direct I/O support routine
  11824. * src/SingleFileAllocationIterator.cc
  11825. * src/MultiDiskAdaptor.{h, cc}
  11826. * src/ByteArrayDiskWriter.h
  11827. * src/AbstractSingleDiskAdaptor.h
  11828. * src/AbstractDiskWriter.cc
  11829. * src/DefaultPieceStorage.cc
  11830. * src/DiskWriter.h
  11831. * src/BinaryStream.h
  11832. * src/IteratableChunkChecksumValidator.cc
  11833. * src/IteratableChecksumValidator.cc
  11834. * src/CheckIntegrityEntry.cc
  11835. * src/FileAllocationEntry.cc
  11836. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. Fixed typo
  11838. * src/version_usage.cc
  11839. Updated doc
  11840. * doc/aria2c.1.txt
  11841. * doc/aria2c.1
  11842. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11843. Fixed compile error without message digest support.
  11844. * src/FileMetalinkParserState.cc
  11845. * src/MetalinkParserController.{h, cc}
  11846. * test/XML2SAXMetalinkProcessorTest.cc
  11847. * test/MetalinkParserControllerTest.cc
  11848. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. Enable direct I/O support in checksum checking.
  11850. * src/IteratableChunkChecksumValidator.{h, cc}
  11851. * test/IteratableChunkChecksumValidatorTest.cc
  11852. * src/CheckIntegrityEntry.cc
  11853. * src/PieceHashCheckIntegrityEntry.cc
  11854. * src/IteratableChecksumValidator.{h, cc}
  11855. * src/BtCheckIntegrityEntry.cc: Added doc.
  11856. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11857. Added --allow-piece-length-change option.
  11858. * src/DefaultBtProgressInfoFile.cc
  11859. * test/DefaultBtProgressInfoFileTest.cc
  11860. * src/OptionHandlerFactory.cc
  11861. * src/option_processing.cc
  11862. * src/prefs.h
  11863. * src/version_usage.cc
  11864. * doc/aria2c.1.txt
  11865. * doc/aria2c.1
  11866. Fixed: duplicated result entry appears when exception is thrown in
  11867. RequestGroup::createInitiateConnectionCommand().
  11868. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11869. Add RequestGroup to _requestGroup after RequetGroup::
  11870. createInitiateConnectionCommand() succeeds.
  11871. Externalized message
  11872. * src/XML2SAXMetalinkProcessor.cc
  11873. * src/message.h
  11874. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. Forced download abort when received negative response from http/ftp
  11876. server.
  11877. * src/HttpResponseCommand.cc
  11878. * src/FtpNegotiationCommand.cc
  11879. * src/HttpResponse.cc
  11880. * src/FtpConnection.cc
  11881. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11882. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11883. the predecessor, Xml2MetalinkParser class.
  11884. I tested them against 94KB metalink file with 1234 chunk checksums.
  11885. The new one parsed it in 22msec, while it took 6000msec with old one.
  11886. * src/XML2SAXMetalinkProcessor.{h, cc}
  11887. * test/XML2SAXMetalinkProcessorTest.cc
  11888. * src/MetalinkParserController.{h, cc}
  11889. * test/MetalinkParserControllerTest.cc
  11890. * src/MetalinkParserState.h: Also added 16 subclasses.
  11891. * src/main.cc
  11892. * src/Metalink2RequestGroup.cc
  11893. * src/MetalinkHelper.cc
  11894. * src/MetalinkEntry.cc
  11895. * src/ChunkChecksum.h
  11896. Rewritten Base64 class for better performance.
  11897. * src/Base64.{h, cc}
  11898. * test/Base64Test.cc
  11899. * src/HttpRequest.cc
  11900. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. Fixed the bug#1841757: aria2 will connect to server to only get
  11902. file size.
  11903. * src/StreamFileAllocationEntry.cc
  11904. * src/option_processing.cc
  11905. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11906. downloads.
  11907. * src/FtpNegotiationCommand.cc
  11908. Suppressed wrong message when finding PreDownloadHandler
  11909. * src/RequestGroup.cc
  11910. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11911. Updated usage
  11912. * src/version_usage.cc
  11913. Updated man page
  11914. * doc/aria2c.1.txt
  11915. * doc/aria2c.1
  11916. Updated po files
  11917. * po/aria2c.pot
  11918. * po/*.po
  11919. * po/*.gmo
  11920. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11921. Eliminated g++-4.2 warning
  11922. * src/DownloadHandlerConstants.{h, cc}
  11923. * src/Util.cc
  11924. * test/MetaFileUtilTest.cc
  11925. * test/PStringBuildVisitorTest.cc
  11926. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11927. * src/RequestGroup.cc
  11928. * src/BtCheckIntegrityEntry.cc
  11929. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11930. Fixed a2io.h
  11931. * src/a2io.h
  11932. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Added direct I/O support. The current implementation uses O_DIRECT,
  11934. which is not posix standard and is tested on linux 2.6.21.
  11935. Currently only file allocation uses direct I/O.
  11936. * src/SingleFileAllocationIterator.{h, cc}
  11937. * test/SingleFileAllocationIteratorTest.cc
  11938. * src/MultiFileAllocationIterator.{h, cc}
  11939. * test/MultiFileAllocationIteratorTest.cc
  11940. * src/BinaryStream.h
  11941. * src/DiskWriter.h
  11942. * src/AbstractDiskWriter.{h, cc}
  11943. * src/ByteArrayDiskWriter.h
  11944. * src/DiskAdaptor.h
  11945. * src/AbstractSingleDiskAdaptor.{h, cc}
  11946. * src/MultiDiskAdaptor.{h, cc}
  11947. * src/FileAllocationEntry.cc
  11948. * src/Util.{h, cc}
  11949. * src/OptionHandlerFactory.cc
  11950. * src/prefs.h
  11951. * src/version_usage.cc
  11952. * src/option_processing.cc
  11953. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11954. handleException.
  11955. * src/MultiFileAllocationIterator.cc
  11956. Added EINTR handling
  11957. * src/SocketCore.cc
  11958. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11959. Updated usage
  11960. * src/version_usage.cc
  11961. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11962. Applied Ross's patch for MinGW port.
  11963. * src/DownloadEngine.h
  11964. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11965. Set Content-Type to SingleFileDownloadContext when http response is
  11966. received.
  11967. * src/HttpResponseCommand.cc
  11968. * src/HttpResponse.{h, cc}
  11969. * test/HttpResponseTest.cc
  11970. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Rewritten to add content-type support.
  11972. * src/DownloadHandler.{h, cc}
  11973. * src/BtPostDownloadHandler.{h, cc}
  11974. * test/BtPostDownloadHandlerTest.cc
  11975. * src/MetalinkPostDownloadHandler.{h, cc}
  11976. * test/MetalinkPostDownloadHandlerTest.cc
  11977. * src/PostDownloadHandler.{h, cc}
  11978. * src/DownloadHandlerConstants.{h, cc}
  11979. * src/RequestGroup.cc
  11980. * src/HttpResponseCommand.cc
  11981. * src/FtpNegotiationCommand.cc
  11982. * src/SingleFileDownloadContext.{h, cc}
  11983. * src/RequestGroup.h
  11984. * src/RequestGroupCriteria.h
  11985. * src/ContentTypeRequestGroupCriteria.h
  11986. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11987. If it is give, metalink/torrent file is not written to the disk, but
  11988. just is kept in memory. Parsing is occurred on memory.
  11989. * src/MetalinkHelper.{h, cc}
  11990. * src/MetalinkProcessor.h
  11991. * src/Xml2MetalinkProcessor.{h, cc}
  11992. * test/Xml2MetalinkProcessorTest.cc
  11993. * src/DownloadHandlerFactory.{h, cc}
  11994. * test/DownloadHandlerFactoryTest.cc
  11995. * src/PreDownloadHandler.{h, cc}
  11996. * src/OptionHandlerFactory.cc
  11997. * src/DefaultBtContext.{h, cc}
  11998. * test/DefaultBtContextTest.cc
  11999. * src/version_usage.cc
  12000. * src/Metalink2RequestGroup.{h, cc}
  12001. * src/RequestGroup.{h, cc}
  12002. * src/a2functional.h
  12003. * test/a2functionalTest.cc
  12004. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12005. * src/OptionHandlerImpl.h
  12006. * src/prefs.h
  12007. * src/Util.{h, cc}
  12008. * test/UtilTest.cc
  12009. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12010. memory usage.
  12011. * src/RequestGroupMan.{h, cc}
  12012. * src/DownloadEngine.cc
  12013. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12014. WeakHandle to SharedHandle because WeakHandle could be null.
  12015. * src/RequestGroup.{h, cc}
  12016. * src/DownloadEngineFactory.cc
  12017. * src/DownloadResult.h
  12018. Set totalLength after download finished
  12019. * src/UnknownLengthPieceStorage.{h, cc}
  12020. Keep torrent file specified in metalink in memory.
  12021. * src/Metalink2RequestGroup.cc
  12022. * src/BtDependency.cc
  12023. * src/TrueRequestGroupCriteria.h
  12024. Fixed the bug: seekg is used where seekp should be used.
  12025. * src/ByteArrayDiskWriter.cc
  12026. * test/ByteArraydiskWriterTest.cc
  12027. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12028. Fixed syntax error
  12029. * test/SequenceTest.cc
  12030. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12032. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12033. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12034. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12035. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. Added the check to see whether ares_host_callback accepts timeouts
  12037. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12038. * src/NameResolver.{h, cc}
  12039. * m4/libcares.m4
  12040. * configure.ac: Set C++ for language choice.
  12041. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. Fixed: compilation fails without c-ares/ares
  12043. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12044. Generate http/ftp commands only when download is incomplete.
  12045. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12046. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12047. Corrected typo. Examples are removed since they are available in man
  12048. page.
  12049. * src/version_usage.cc
  12050. Updated man page.
  12051. * doc/aria2c.1
  12052. * doc/aria2c.1.txt
  12053. * doc/makeman: Commented out sed command.
  12054. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12055. Throw DlAbortEx when a remote file is not found.
  12056. * src/HttpResponse.cc
  12057. * src/FtpNegotiationCommand.cc
  12058. * src/message.h
  12059. Overwrite an existing file if --allow-overwrite=true is given.
  12060. * src/RequestGroup.cc
  12061. Removed unused functions
  12062. * src/AbstractCommand.h
  12063. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12064. Removed 'extern' from 'extern typedef ...' in src/*.h
  12065. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. Updated usage
  12067. * src/version_usage.cc
  12068. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12069. Trim announce URL
  12070. * src/DefaultBtContext.cc
  12071. * test/ShaVisitorTest.cc
  12072. Trim argument s. Give trimed s to exception constructor.
  12073. * src/Util.cc (parseInt)(parseLLInt)
  12074. * test/UtilTest.cc
  12075. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Set precision back to 1.
  12077. * src/ConsoleStatCalc.cc (calculateStat)
  12078. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12079. Replaced strtol with Util::parseInt
  12080. * src/ChunkedEncoding.cc
  12081. * src/HttpConnection.cc
  12082. * src/CookieBoxFactory.cc
  12083. * src/ParameterizedStringParser.cc
  12084. * src/Util.cc
  12085. * test/UtilTest.cc
  12086. * test/OptionHandlerTest.cc
  12087. * src/Request.cc
  12088. Throw exception when empty string is given. The message for exception
  12089. changed.
  12090. * src/Util.cc (parseInt)(parseLLInt)
  12091. * src/message.h
  12092. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12093. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12094. set to 1.
  12095. * src/ConsoleStatCalc.cc (calculateStat)
  12096. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12097. Preallocate non-requested file which is adjacent forward to requested
  12098. file('requested' files means the files given in --select-file option)
  12099. if they share a same piece.
  12100. This fixes long pause in the file system which doesn't support sparse
  12101. files like FAT32 while downloading.
  12102. * src/MultiFileAllocationIterator.{h, cc}
  12103. * test/MultiFileAllocationIteratorTest.cc
  12104. * src/FileEntry.{h, cc}
  12105. Removed unused _option.
  12106. * src/MultiDiskAdaptor.h
  12107. * test/MultiDiskAdaptorTest.cc
  12108. * src/DefaultPieceStorage.cc
  12109. Set the default value of --seed-ratio to 1.0.
  12110. If 0.0 is given, then seeding continues regardless of share ratio.
  12111. * src/version_usage.cc
  12112. * src/option_processing.cc
  12113. * src/BtSetup.cc
  12114. * doc/aria2c.1.txt
  12115. * doc/aria2c.1
  12116. Fixed: Selective download is not working in BitTorrent
  12117. * src/RequestGroup.cc
  12118. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12119. * src/PieceStorage.h
  12120. * test/MockPieceStorage.h
  12121. * src/UnknownLengthPieceStorage.h
  12122. * src/DefaultPieceStorage.{h, cc}
  12123. * src/Metalink2RequestGroup.cc
  12124. * src/RequestGroup.cc
  12125. * src/Sequence.h
  12126. * test/SequenceTest.cc
  12127. * src/IntSequence.h
  12128. * src/message.h
  12129. * src/Util.{h, cc}
  12130. * test/UtilTest.cc
  12131. Added new function 'parse' to catch exception thrown by subclass's
  12132. parseArg
  12133. * src/OptionHandler.h
  12134. * src/OptionParser.cc
  12135. * src/NameMatchOptionHandler.h
  12136. * src/OptionHandlerImpl.h
  12137. * test/OptionHandlerTest.cc
  12138. Added IntegerRangeOptionHandler. Used for --listen-port and
  12139. --select-file. Now --listen-port accepts range of port.
  12140. * src/OptionHandlerFactory.cc
  12141. * src/version_usage.cc
  12142. * src/OptionHandlerImpl.h
  12143. * src/option_processing.cc
  12144. * src/BtSetup.cc
  12145. * src/PeerListenCommand.{h, cc}
  12146. * doc/aria2c.1.txt
  12147. * doc/aria2c.1
  12148. Implemented operator< for Exception class to provide easy way to print
  12149. exception stack trace.
  12150. * src/Exception.{h, cc}
  12151. * src/main.cc
  12152. * src/option_processing.cc
  12153. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12154. * src/version_usage.cc
  12155. (showVersion): Reworked.
  12156. (showUsage): Added examples.
  12157. Removed Hint for total length and file name.
  12158. * src/Metalink2RequestGroup.cc
  12159. * src/RequestGroup.{h, cc}
  12160. * src/HttpResponseCommand.cc
  12161. * src/FtpNegotiationCommand.cc
  12162. Now --follow-torrent and --follow-metalink option work properly.
  12163. * src/RequestGroup.cc
  12164. Updated man page
  12165. * doc/aria2c.1.txt
  12166. * doc/aria2c.1
  12167. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12168. Removed.
  12169. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12170. Use Segment::operator==()
  12171. * src/HttpConnection.cc
  12172. * src/Segment.h
  12173. Updated usage
  12174. * src/version_usage.cc
  12175. Added EINTR treatment.
  12176. * src/SocketCore.cc
  12177. * src/AbstractDiskWriter.cc
  12178. Rewritten.
  12179. * src/Util.cc (rangedFileCopy)
  12180. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12181. Fixed typo.
  12182. * src/version_usage.cc
  12183. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. Implemented. Now -c option works fine.
  12185. * src/DefaultPieceStorage.cc (markPiecesDone)
  12186. * test/DefaultPieceStorageTest.cc
  12187. Removed.
  12188. * src/SegmentMan.{h, cc}
  12189. (markAllPiecesDone)
  12190. (markPieceDone)
  12191. Synchronized po files with
  12192. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12193. * src/fr.po
  12194. * src/ru.po
  12195. * src/de.po
  12196. * src/ja.po
  12197. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. Added ifdef and some modifications to compile without BitTorrent,
  12199. Metalink, MessageDigest
  12200. support.
  12201. * src/PieceHashCheckIntegrityEntry.cc
  12202. * src/MetalinkEntry.h
  12203. * src/version_usage.cc
  12204. * src/main.cc
  12205. * src/DownloadEngine.{h, cc}
  12206. * src/Metalink2RequestGroup.cc
  12207. * src/Peer.cc
  12208. * src/RequestGroup.cc
  12209. * src/MetalinkHelper.cc
  12210. * test/DefaultPieceStorageTest.cc
  12211. * test/MetalinkPostDownloadHandlerTest.cc
  12212. * test/Metalink2RequestGroupTest.cc
  12213. Hide TOTAL SPD when all downloads complete.
  12214. * src/ConsoleStatCalc.cc
  12215. Log target system information.
  12216. * src/main.cc
  12217. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Now --metalink-location accepts a comma-deliminated list of locations.
  12219. * src/MetalinkEntry.{h, cc}
  12220. * test/MetalinkEntryTest.cc
  12221. * src/version_usage.cc
  12222. * src/Metalink2RequestGroup.cc
  12223. * src/Xml2MetalinkProcessor.cc
  12224. * test/Xml2MetalinkProcessorTest.cc
  12225. * doc/aria2c.1.txt
  12226. * doc/aria2c.1
  12227. * src/Util.cc (toUpper)(toLower): Rewritten.
  12228. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12229. Added the ability to detect duplicate download entry which is about to
  12230. download the same file other RequestGroup is downloading.
  12231. * src/RequestGroup.cc
  12232. * src/HttpResponseCommand.cc
  12233. * src/FtpNegotiationCommand.cc
  12234. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12235. Recalculates download progress when loading a control file,
  12236. if the piece length of DownloadContext is different from the one saved
  12237. in the control file. Currently in-flight pieces are ignored.
  12238. * src/DefaultBtProgressInfoFile.cc
  12239. * test/DefaultBtProgressInfoFileTest.cc
  12240. * src/Util.{h, cc}
  12241. * test/UtilTest.cc
  12242. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. Do not rotate tiers in announce-list.
  12244. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12245. AnnounceList::allTiersFailed() used instead to detect whether all
  12246. tiers are tried and failed.
  12247. * test/DefaultBtAnnounceTest.cc
  12248. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12249. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12250. * test/AnnounceListTest.cc
  12251. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12252. clause. Catch RecoverableException instead of DlRetryEx instead.
  12253. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12254. Implemented checksum validation feature(1 checksum for each file)
  12255. The validation takes place after the download.
  12256. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12257. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12258. * src/CheckIntegrityCommand.cc: Changed log message.
  12259. * src/Metalink2RequestGroup.cc: Set checksum to
  12260. SingleFileDownloadContext.
  12261. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12262. PieceHashCheckIntegrity class.
  12263. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12264. PieceHashCheckIntegrity class.
  12265. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12266. * src/IteratableValidator.h: New class.
  12267. * src/message.h
  12268. * src/CheckIntegrityEntry.{h, cc}
  12269. * src/IteratableChunkChecksumValidator.{h, cc}
  12270. * src/SingleFileDownloadContext.h
  12271. * src/DownloadCommand.cc
  12272. --allow-overwrite=true is no longer needed to check file integrity
  12273. before download in BitTorrent download.
  12274. * src/RequestGroup.cc (getInitialCommand)
  12275. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12276. throws exception.
  12277. * src/RequestGroupMan.cc (getInitialCommands)
  12278. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12279. urlencode the given url inside Request::parseUrl(...)
  12280. * src/Request.{h, cc}
  12281. * src/Util.{h, cc}
  12282. * test/RequestTest.cc
  12283. Removed #!metalink3! notation support because it is deleted from
  12284. the metalink specification.
  12285. * src/Request.{h, cc}
  12286. * test/RequestTest.cc
  12287. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. Don't connect server before checking file integrity at startup, if
  12289. filesize and output file path are known.
  12290. * src/AbstractCommand.cc
  12291. * src/StreamFileAllocationEntry.cc
  12292. * src/Metalink2RequestGroup.cc
  12293. * src/RequestGroup.{h, cc}
  12294. * src/HttpResponseCommand.cc
  12295. * src/FtpNegotiationCommand.cc
  12296. Added DownloadFailureException. If it is thrown, RequestGroup should
  12297. halt.
  12298. * src/AbstractCommand.cc
  12299. * src/DownloadFailureException.h
  12300. * src/RequestGroup.cc
  12301. Catch RecoverableException, instead of DlAbortEx.
  12302. * src/RequestGroupMan.cc
  12303. * src/FillRequestGroupCommand.cc
  12304. * src/MetaFileUtil.cc
  12305. * src/IteratableChunkChecksumValidator.cc
  12306. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12307. getGID())
  12308. * src/CheckIntegrityCommand.cc
  12309. * src/message.h
  12310. Print gid instead of idx.
  12311. * src/RequestGroupMan.cc
  12312. Removed exception throwers declaration.
  12313. * src/DirectDiskAdaptor.{h, cc}
  12314. * src/SocketCore.{h, cc}
  12315. * src/MultiDiskAdaptor.{h, cc}
  12316. * src/HttpConnection.{h, cc}
  12317. * src/HttpResponse.{h, cc}
  12318. * src/DiskAdaptor.{h, cc}
  12319. * src/CopyDiskAdaptor.{h, cc}
  12320. * src/MultiDiskAdaptor.{h, cc}
  12321. * src/HttpHeaderProcessor.{h, cc}
  12322. * src/AbstractSingleDiskAdaptor.{h, cc}
  12323. * src/Util.{h, cc}
  12324. * test/UtilTest.cc
  12325. * src/DefaultDiskWriter.{h, cc}
  12326. * src/FtpConnection.{h, cc}
  12327. * src/AbstractDiskWriter.{h, cc}
  12328. Removed duplicate code.
  12329. * src/StreamCheckIntegrityEntry.cc
  12330. Removed unnecessary include.
  12331. * src/DiskWriter.h
  12332. Included Exception.h
  12333. * src/option_processing.cc
  12334. Included 2 files and added doc
  12335. * src/TrackerWatcherCommand.cc
  12336. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12337. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Changed CheckIntegrityEntry interface so that it can define
  12339. the action when all the chunk checksums are valid.
  12340. * src/CheckIntegrityEntry.h
  12341. * src/StreamCheckIntegrityEntry.{h, cc}
  12342. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12343. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12344. to exit rather than doing seeding. So, it would be good to toggle this
  12345. behavior.
  12346. * src/CheckIntegrityCommand.cc
  12347. * src/AbstractCommand.cc
  12348. * src/RequestGroup.cc
  12349. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12350. Reflect the download length of in-flight pieces.
  12351. It makes the download length readout more precise.
  12352. * src/DefaultPieceStorage.{h, cc}
  12353. * test/DefaultPieceStorageTest.cc
  12354. * src/a2functional.h
  12355. * test/a2functionalTest.cc
  12356. Lower CPU load when --max-download-limit is used.
  12357. There is up and down in speed indicator when enabling
  12358. http-pipelining but a download goes well. I think the problem is that
  12359. because http-pipelining is enabled, DownloadCommand is created for
  12360. each segment and in its constructor, PeerStat::downloadStart() is
  12361. called. In PeerStat::downloadStart(), speed calculation object is
  12362. reseted, which makes download speed zero.
  12363. * src/DownloadCommand.cc
  12364. Rewritten using accumulate.
  12365. * src/RequestGroupMan.cc (calculateStat)
  12366. Code clearnup.
  12367. * src/FtpNegotiationCommand.cc
  12368. * src/HttpResponseCommand.cc
  12369. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12370. Fixed: Can not resume: aria2 reports download already finished.
  12371. * src/AbstractCommand.{h, cc}
  12372. * src/HttpResponseCommand.cc
  12373. * src/FtpNegotiateCommand.cc
  12374. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12375. Now a file is stored in the directory specified in .metalnk file
  12376. (file[@name]).
  12377. * src/Metalink2RequestGroup.cc
  12378. Create the directory structure when opening the file if it doesn't
  12379. exist.
  12380. * src/AbstractDiskWriter.cc
  12381. * src/Util.{h, cc}
  12382. * src/File.h
  12383. * test/UtilTest.cc
  12384. Removed file name comparison
  12385. * src/Metalink2RequestGroup.cc
  12386. * src/HttpResponseCommand.cc
  12387. Rewritten using Util::mkdirs()
  12388. * src/FileEntry.cc (setupDir)
  12389. * test/FileEntryTest.cc
  12390. Updated doc
  12391. * src/SingleFileDownloadContext.h
  12392. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Now SleepCommand dispatches nextCommand when halt is requested.
  12394. It avoids a possible long wait after hitting CTRL-C.
  12395. * src/SleepCommand.{h, cc}
  12396. * src/RequestGroupAware.{h, cc}
  12397. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12398. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12399. to open listen port, then remove the port number from the tracker
  12400. request.
  12401. * src/DefaultBtAnnounce.cc
  12402. * test/DefaultBtAnnounceTest.cc
  12403. * test/MockPieceStorage.h
  12404. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12405. them more testable.
  12406. * src/DefaultBtAnnounce.{h, cc}
  12407. * src/DefaultBtContext.{h, cc}
  12408. * src/Util.{h, cc}
  12409. * test/DefaultBtAnnounceTest.cc
  12410. * test/DefaultBtContextTest.cc
  12411. * test/UtilTest.cc
  12412. Added 'B' to upload bytes readout.
  12413. * src/ConsoleStatCalc.cc
  12414. Now the listen port for BitTorrent download is opened when it is
  12415. needed.
  12416. * src/DownloadEngineFactory.cc
  12417. * src/BtSetup.{h, cc}
  12418. * src/PeerListenCommand.{h, cc}
  12419. Now an exception thrown while parsing tracker response is now logged.
  12420. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12421. called, which means no retry is made in this case, assuming a tracker
  12422. has a problem.
  12423. * src/TrackerWatcherCommand.cc
  12424. Fixed: downloading a file whose length is unkown fails.
  12425. * src/DownloadCommand.cc
  12426. Simplified prepareForNextSegment()
  12427. * src/DownloadCommand.cc
  12428. Updated
  12429. * po/POTFILES.in
  12430. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12431. Re-implemented a file listing for Metalink, which was dropped while
  12432. http/ftp/torrent integration was being implemented.
  12433. * src/MetalinkHelper.{h, cc}: New class.
  12434. * test/MetalinkHelperTest.cc
  12435. * src/main.cc
  12436. * src/Metalink2RequestGroup.cc
  12437. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12438. Added the ability to display the detailed torrent file information.
  12439. Now -S option gives not only a file listing, but also total download
  12440. length, info hash, announce URI, piece length, the number of pieces,
  12441. and mode(single or multi-torrent).
  12442. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12443. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12444. KiB)
  12445. * test/UtilTest.cc
  12446. * src/main.cc
  12447. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12448. Added ftp://USER:PASSWD@Servername automatic parsing.
  12449. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12450. _password. Recognize username and password in URI.
  12451. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12452. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12453. * src/RequestFactory.{h, cc}: Removed.
  12454. * src/AuthConfigFactory.{h, cc}: New class.
  12455. * src/FtpConnection.cc: Use AuthConfigFactory.
  12456. * src/HttpRequest.cc: Use AuthConfigFactory.
  12457. * test/HttpRequestTest.cc: Updated.
  12458. * test/RequestTest.cc: Updated.
  12459. * test/AuthConfigFactoryTest.cc: New class.
  12460. * test/RequestFactoryTest.cc: Removed.
  12461. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. Use RequestGroup::allDownloadFinished() to decide whether the control
  12463. file should be removed or saved.
  12464. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12465. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12466. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12467. Use File::renameTo()
  12468. * src/DefaultBtProgressInfoFile.cc
  12469. Added --no-file-allocation-limit command-line option.
  12470. * src/version_usage.cc
  12471. * src/option_processing.cc
  12472. * src/OptionHandlerFactory.cc
  12473. * src/RequestGroup.{h, cc}
  12474. * src/BtCheckIntegrityEntry.cc
  12475. * src/StreamCheckIntegrityEntry.cc
  12476. * src/prefs.h
  12477. * doc/aria2c.1.txt
  12478. * doc/aria2c.1
  12479. Now prealloc is the default value for --file-allocation option.
  12480. * src/version_usage.cc
  12481. * src/option_processing.cc
  12482. * doc/aria2c.1.txt
  12483. * doc/aria2c.1
  12484. Don't URL-encode user-agent.
  12485. * src/HttpRequest.cc
  12486. Updated translations
  12487. * po/LINGUAS: Added nl for Dutch translation.
  12488. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12489. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12490. * po/POTFILES.in: Updated.
  12491. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12492. Added the ability to recognize url-list in a torrent file.
  12493. The retrieved URLs are attached to the corresponding FileEntry.
  12494. * src/DefaultBtContext.{h, cc}
  12495. * src/FileEntry.{h, cc}
  12496. * test/DefaultBtContextTest.cc
  12497. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12499. after the download finishes.
  12500. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12501. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12502. the data smaller than block length.
  12503. A block length can be specified by constructor's argument.
  12504. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12505. Get a missing piece in the range of given FileEntry. This function is
  12506. not used in the program yet.
  12507. * src/Util.h: Added some macros.
  12508. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12509. Added HTTP/1.1 keep alive and pipelining support.
  12510. See --enable-http-keep-alive and --enable-http-pipelining option.
  12511. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12512. Segment.
  12513. * src/HttpDownloadCommand.{h, cc}
  12514. * src/OptionHandlerFactory.cc
  12515. * src/HttpConnection.{h, cc}
  12516. * src/version_usage.cc
  12517. * src/HttpInitiateConnectionCommand.cc
  12518. * src/FtpInitiateConnectionCommand.cc
  12519. * src/Segment.h
  12520. * src/HttpRequestCommand.{h, cc}
  12521. * src/option_processing.cc
  12522. * src/prefs.h
  12523. * src/HttpResponseCommand.cc
  12524. * src/SegmentMan.{h, cc}
  12525. * src/FtpNegotiateCommand.cc
  12526. * src/HttpProxyResponseCommand.cc
  12527. * src/Request.cc
  12528. * src/HttpRequest.cc
  12529. * src/DownloadCommand.cc
  12530. * test/HttpRequestTest.cc
  12531. * test/RequestTest.cc
  12532. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12533. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12534. finished.
  12535. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12536. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12537. catching it inside the method.
  12538. When no file entry is found in a metalink without querying user
  12539. preferences, throw the exception with the error message that suggests
  12540. metalink file is probably broken.
  12541. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12542. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12543. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12544. processed.
  12545. * src/RequestGroupMan.cc (removeStoppedGroup)
  12546. Added debug message.
  12547. * src/BtPostDownloadHandler.cc
  12548. * src/MetalinkPostDownloadHandler.cc
  12549. * src/PostDownloadHandler.{h, cc}
  12550. * src/RequestGroup.cc
  12551. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12552. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12553. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12554. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12555. stops and there are any unfinished or in-progress downloads.
  12556. Added the legend of "stat".
  12557. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12558. Throw exception when chunck checksum verification fails.
  12559. * src/DownloadCommand.cc (validatePieceHash): New function.
  12560. * src/PiecedSegment.{h, cc} (clear): New function.
  12561. * src/GrowSegment.{h, cc} (clear): New function.
  12562. * src/Segment.h (clear): New function.
  12563. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12564. * test/SegmentTest.cc
  12565. * test/GrowSegmentTest.cc
  12566. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. Do not send referer when redirected.
  12568. * src/Request.cc (redirectUrl)
  12569. * test/RequestTest.cc
  12570. * test/HttpRequestTest.cc
  12571. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12572. Implemented BitTorrent/http/ftp integrated download.
  12573. I've rewritten lots of files and now some headers have forward
  12574. class declarations to reduce compile time.
  12575. The implementation is extremely alpha stage, I recommend to use this
  12576. for testing purpose only.
  12577. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12578. Fixed the compilation error on 64bit platform.
  12579. * test/HttpHeaderProcessorTest.cc
  12580. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12581. Merged Ross's patch that fixes compilation problem in MinGW
  12582. * test/DefaultBtProgressInfoFileTest.cc
  12583. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12584. Updated fr.po by sebone
  12585. * po/fr.po
  12586. Updated man page.
  12587. * doc/aria2c.1.txt
  12588. * Release 0.11.3
  12589. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12590. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12591. failure in Metalink.
  12592. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Automatically save *.aria2 control file of http/ftp download in every
  12594. 60 seconds.
  12595. * src/AutoSaveCommand.{h, cc}: New class.
  12596. * src/TimeBasedCommand.{h, cc}: New class.
  12597. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12598. Disable parameterized URI support by default. Added -P option to
  12599. enable the feature.
  12600. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12601. * src/OptionHandlerFactory.cc
  12602. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12603. Updated Japanese translation.
  12604. * po/ja.po
  12605. Updated man page.
  12606. * doc/aria2c.1.txt
  12607. * Release 0.11.3-rc
  12608. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12609. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12610. it is successful, then renamed to *.aria2.
  12611. This prevents *.aria2 file from being truncated or corrupted when
  12612. file system becomes out of space.
  12613. * src/DefaultBtProgressInfoFile.cc (save)
  12614. * src/SegmentMan.cc (save)
  12615. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12616. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12617. Reduced the fragmentation of bitfield in http/ftp download.
  12618. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12619. * test/BitfieldManTest.cc
  12620. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12621. Added the ability to disable segmented download in .metalink.
  12622. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12623. 'url' tag.
  12624. * src/MetalinkEntry.{h, cc}
  12625. * src/RequestResource.{h, cc}
  12626. * src/MetalinkRequestInfo.cc
  12627. * src/Xml2MetalinkProcessor.cc
  12628. * test/Xml2MetalinkProcessorTest.cc
  12629. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. Added parameterized URI support.
  12631. * src/main.cc: -Z option added.
  12632. * src/OptionHandlerFactory.cc
  12633. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12634. * src/PStringDatum.h: New class.
  12635. * src/PStringSegment.{h,cc}: New class.
  12636. * src/PStringNumLoop.h: New class.
  12637. * src/PStringSelect.h: New class.
  12638. * src/NumberDecorator.h: New class.
  12639. * src/FixedWidthNumberDecorator.h: New class.
  12640. * src/AlphaNumberDecorator.h: New class.
  12641. * src/PStringVisitor.h: New class.
  12642. * src/PStringBuildVisitor.{h,cc}: New class.
  12643. * src/ParameterizedStringParser.{h,cc}: New class.
  12644. * src/Util.{h,cc}
  12645. (isNumber): New function.
  12646. (isLowercase): New function.
  12647. (isUppercase): New function.
  12648. (alphaToNum): New function.
  12649. * test/ParameterizedStringParserTest.cc: New class.
  12650. * test/AlphaNumberDecoratorTest.cc: New class.
  12651. * test/PStringBuildVisitorTest.cc: New class.
  12652. * test/UtilTest.cc
  12653. (testIsNumber): New function.
  12654. (testIsLowercase): New function.
  12655. (testIsUppercase): New function.
  12656. (testAlphaToNum): New function.
  12657. Added '\n' after the error message
  12658. * src/RequestInfo.h (printDownloadAbortMessage)
  12659. Added auto file renaming feature in http(s)/ftp download.
  12660. * src/main.cc: Added --auto-file-renaming command-line option.
  12661. * src/OptionHandlerFactory.cc
  12662. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12663. * src/RequestGroup.{h, cc}
  12664. (shouldCancelDownloadForSafety): Rewritten
  12665. (tryAutoFileRenaming): New function.
  12666. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12667. * src/HttpResponseCommand.cc
  12668. (executeInternal): Removed the call to RequestGroupMan::
  12669. isSameFileBeingDownloaded()
  12670. * src/FtpNegotiateCommand.cc
  12671. (recvSize): Removed the call to RequestGroupMan::
  12672. isSameFileBeingDownloaded()
  12673. * test/RequestGroupTest.cc: New class.
  12674. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12675. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12676. IO.
  12677. * src/DefaultBtProgressInfoFile.cc
  12678. * src/MetaFileUtil.cc
  12679. * src/SimpleLogger.cc
  12680. * src/SegmentMan.cc
  12681. * src/Util.cc
  12682. * src/Platform.cc
  12683. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12684. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12685. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12686. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12687. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12688. Fixed the bug that prevents file allocation is not done when
  12689. dowloading multi-torrent file.
  12690. * src/AbstractDiskWriter.cc (openFile)
  12691. Increase the maximum number of -j option from 15 to 45.
  12692. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12693. Added fr.po, thanks to Charles Landemaine.
  12694. * po/fr.po
  12695. * po/LINGUAS
  12696. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12697. gcc 3.4.4 support:
  12698. * src/DefaultBtContext.cc: int32_t -> int
  12699. * src/main.cc: int -> int32_t, int32_t -> int
  12700. * src/messageDigest.h: uint32_t -> unsigned int
  12701. * src/NameResolver.h: int32_t -> int
  12702. * src/PeerConnection.cc: int -> int32_t
  12703. * src/SpeedCalc.cc: int32_t -> int
  12704. * src/TrackerUpdateCommand.h: int -> int32_t
  12705. * src/Util.cc: int32_t -> int
  12706. * src/Util.h: int32_t -> int
  12707. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12708. * test/AnnounceListTest.cc: int -> int32_t
  12709. * test/ChunkedEncodingTest.cc: int -> int32_t
  12710. * test/DataTest.cc: int -> int32_t
  12711. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12712. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12713. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12714. * test/FeatureConfigTest.cc: int -> int32_t
  12715. * test/MetalinkEntryTest.cc: int -> int32_t
  12716. * test/MockBtRequestFactory.h: int -> int32_t
  12717. * test/MockPieceStorage.h: int -> int32_t
  12718. * test/OptionTest.cc: int -> int32_t
  12719. * test/RequestTest.cc: int -> int32_t
  12720. * test/SegmentManTest.cc: int -> int32_t
  12721. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12722. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12723. Move sleep functions to Util class:
  12724. * src/Util.cc
  12725. (sleep): New function.
  12726. (usleep): New function.
  12727. * src/DownloadCommand.cc: sleep -> Util::sleep
  12728. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12729. MinGW build enhancements. The following files are added:
  12730. * src/timegm.{c,h}
  12731. Changes to support the above new files:
  12732. * configure.ac
  12733. * src/Makefile.am
  12734. * src/a2time.h
  12735. * src/Util.cc:
  12736. * src/strptime.c: Added support for %Z option.
  12737. Fixed MinGW non-blocking bug.
  12738. * src/SocketCore.cc
  12739. * src/HttpRequestCommand.cc
  12740. Miscellenous build fixes/enhancements.
  12741. * configure.ac: Added summary report.
  12742. * src/Platform.h: Tweaked #include's.
  12743. * src/a2netcompat.h: Tweaked #include's.
  12744. * src/strptime.h: Tweaked #include's.
  12745. * src/gai_strerror.c: Tweaked #include's.
  12746. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12747. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12748. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12749. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12750. Increased the initial connection size in BitTorrent download to 40.
  12751. * src/BtRuntime.h
  12752. Added the usage message of --peer-id-prefix option.
  12753. * src/main.cc
  12754. * Release 0.11.2
  12755. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. MessageDigestHelper is introduced in order to simplify the use
  12757. of message digest. Removed repeated code.
  12758. The message digest algorithm is now specified by string, like "sha1",
  12759. "md5".
  12760. * src/messageDigest.{h, cc}
  12761. * src/MessageDigestHelper.{h, cc}: New class.
  12762. * src/DefaultPieceStorage.cc
  12763. * src/DefaultBtContext.{h, cc}
  12764. (computeFastSet): New function.
  12765. (setInfoHash): Added for unit testing.
  12766. (setNumPieces): Added for unit testing.
  12767. * src/DefaultBtInteractive.cc
  12768. * src/BtPieceMessage.cc
  12769. * src/Peer.cc
  12770. * src/Checksum.h
  12771. * src/message.h
  12772. * src/IteratableChecksumValidator.h
  12773. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12774. inside it.
  12775. * src/SegmentMan.{h, cc}
  12776. (checkIntegrity): Removed.
  12777. * src/IteratableChunkChecksumValidator.{h, cc}
  12778. * src/Util.h
  12779. (sha1Sum): Removed.
  12780. (simpleMessageDigest): Removed.
  12781. (fileChecksum): Removed.
  12782. (computeFastSet): Removed.
  12783. * src/ShaVisitor.cc
  12784. * src/ChunkChecksum.h
  12785. * src/DownloadCommand.cc
  12786. Removed messageDigest virtual functions.
  12787. * src/MultiDiskAdaptor.{h, cc}
  12788. * src/DiskAdaptor.h
  12789. * src/ByteArrayDiskWriter.h
  12790. * src/DiskWriter.h
  12791. * src/DiskAdaptorWriter.h
  12792. * src/AbstractSingleDiskAdaptor.{h, cc}
  12793. * src/AbstractDiskWriter.{h, cc}
  12794. Fixed comilation error when message digest is disabled.
  12795. * src/MetalinkEntry.{h, cc}
  12796. * src/MetalinkRequestInfo.cc
  12797. Removed srandom and random.
  12798. * src/SimpleRandomizer.h
  12799. Added size() virtual function to DiskAdaptor
  12800. * src/MultiDiskAdaptor.h
  12801. Fixed the bug that causes that files are not opened correctly in
  12802. multi-file torrent.
  12803. * src/TorrentRequestInfo.cc
  12804. * src/MultiDiskAdaptor.cc
  12805. Added SHA256 support
  12806. * src/messageDigest.cc
  12807. * src/Xml2MetalinkProcessor.cc
  12808. Show supported message digest algorithms
  12809. * src/main.cc
  12810. Updated contact info.
  12811. * src/main.cc
  12812. Applied Ross's patch
  12813. * src/a2netcompat.h
  12814. * src/main.cc
  12815. Fixed the bug that prevents a remote metalink from not being processed
  12816. even if '-o foo.metalink' is specified.
  12817. * src/MetalinkRequestInfo.cc
  12818. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12819. Merged Dan's patch:
  12820. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12821. Use va_copy to avoid core dump on amd64:
  12822. * src/SimpleLogger.cc
  12823. Updated contact info.
  12824. * src/main.cc
  12825. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12826. digest is not available.
  12827. * src/MetalinkEntry.h
  12828. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12829. Make a2netcompat.h include a2io.h to fix compilation error:
  12830. * src/a2netcompat.h
  12831. * src/SocketCore.cc: Removed include of a2io.h
  12832. * src/Util.cc: Removed include of a2io.h
  12833. Gather time related functions to a2time.h:
  12834. * src/a2time.h: New file.
  12835. * src/DefaultPeerStorage.cc
  12836. * src/SimpleLogger.cc
  12837. * src/Util.{h, cc}
  12838. * src/SimpleRandomizer.h
  12839. * src/TimeA2.{h,cc}
  12840. * src/DownloadCommand.cc
  12841. * src/main.cc
  12842. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12843. a2netcompat.h:
  12844. * src/NameResolver.cc
  12845. Fixed compilation error without openssl:
  12846. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12847. Added default block to suppress compiler warnings:
  12848. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12849. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12850. MinGW build enhancements. The following files are added:
  12851. * src/gai_strerror.{c,h}
  12852. * src/gettimeofday.{c,h}
  12853. Changes to support the above new files:
  12854. * configure.ac
  12855. * src/Makefile.am
  12856. * src/a2netcompat.h
  12857. * src/TimeA2.cc
  12858. * src/DefaultPeerStorage.cc
  12859. * src/NameResolver.cc: removed mingw_strerror() function.
  12860. * src/SocketCore.cc: removed mingw_strerror() function.
  12861. Miscellaneous MinGW build fixes.
  12862. * src/a2io.h: Use _lseeki64() instead of lseek()
  12863. * src/common.h
  12864. * src/DefaultFileAllocator.cc
  12865. * src/GlowFileAllocator.cc
  12866. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12867. * src/NameResolver.cc
  12868. (callback): Changed int32_t to int.
  12869. (resolve): Changed int32_t to int.
  12870. * src/Platform.cc
  12871. * src/Platform.h
  12872. * test/MultiDiskWriterTest.cc
  12873. * test/PeerMessageUtilTest.cc
  12874. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12875. Other enhancements and fixes.
  12876. * src/HttpRequestCommand.cc
  12877. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12878. * src/SocketCore.cc:
  12879. (error): New function to abstract errno/WSAGetLastError().
  12880. (errorMsg): New function to abstract errno/WSAGetLastError().
  12881. (initiateSecureConnection): Added more detailed error reporting.
  12882. * src/SocketCore.h: Added private variable blocking, to allow
  12883. proper handling of OpenSSL psuedo-errors.
  12884. * src/message.h
  12885. (EX_SSL_INIT_FAILURE)
  12886. (EX_SSL_IO_ERROR)
  12887. (EX_SSL_PROTOCOL_ERROR)
  12888. (EX_SSL_UNKNOWN_ERROR)
  12889. (EX_SSL_CONNECT_ERROR)
  12890. (EX_SOCKET_BLOCKING)
  12891. (EX_SOCKET_NONBLOCKING)
  12892. (EX_SOCKET_UNKNOWN_ERROR)
  12893. * src/Util.cc
  12894. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12895. reserved name.
  12896. (httpGMT): Fixed typo.
  12897. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12898. Merged Ross's win32 patch(manually)
  12899. In the course of merging, following files are added.
  12900. * src/strptime.{h,c}
  12901. * src/libgen.{h,c}
  12902. * src/inet_aton.{h,c}
  12903. * src/Platform.{h,cc}
  12904. * src/localtime_r.{h,c}
  12905. * src/getaddrinfo.{h,c}
  12906. I've gethered network related things, and put them to following file:
  12907. * src/a2netcompat.h
  12908. Also io related things are put to following file:
  12909. * src/a2io.h
  12910. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12911. * src/message.h
  12912. (MSG_ALLOCATION_COMPLETED)
  12913. (EX_TOO_LARGE_FILE)
  12914. (EX_SIZE_MISMATCH)
  12915. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12916. (EX_INVALID_CHUNK_CHECKSUM)
  12917. (EX_INVALID_RANGE_HEADER)
  12918. * src/FileAllocationCommand.cc
  12919. * src/HttpResponse.cc
  12920. * src/RequestGroup.cc
  12921. * src/MultiDiskAdaptor.cc
  12922. * src/OptionHandlerImpl.h
  12923. * src/HttpResponseCommand.cc
  12924. * src/FtpNegotiateCommand.cc
  12925. * src/IteratableChecksumValidator.cc
  12926. * src/SegmentMan.cc
  12927. * src/ChunkChecksumValidator.cc
  12928. Added Randomizer::getRandomNumber(long int)
  12929. * src/Randomizer.h (getRandomNumber)
  12930. * src/SimpleRandomizer.h (getRandomNumber)
  12931. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12932. * src/Util.cc (randomAlpha): Use this new function.
  12933. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12934. Converted int's to in32_t. long long int's are also converted to
  12935. int64_t
  12936. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12937. Fixed the bug that prevents cookies from being sent to the server
  12938. if the domain of cookie is FQDN and starts with ".".
  12939. * src/Cookie.cc (match)
  12940. To add the ability to change peer id.
  12941. * src/DefaultBtContext.h
  12942. (_peerIdPrefix): New variable
  12943. (setPeerIdPrefix): New function.
  12944. * src/torrentRequestInfo.cc
  12945. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12946. DefaultBtContext.
  12947. * src/main.cc (main): Added peer-id-prefix command-line option.
  12948. The usage message is not added yet.
  12949. * src/DefaultBtContext.cc
  12950. (generatePeerId): Use _peerIdPrefix.
  12951. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12952. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. Fixed the bug that prevents filename in content-disposition from
  12954. being retrieved when filename is not quoted.
  12955. * src/Util.cc (getContentDispositionFilename)
  12956. Fixed the bug that causes infinate loop and memory leak when file open
  12957. operation failed.
  12958. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12959. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12960. Fixed the bug that causes segfault when all URIs specified are
  12961. unsupported.
  12962. * src/RequestGroupMan.cc (getInitialCommands)
  12963. Check if RequestGroup::createNextCommand() returns empty list of
  12964. commands.
  12965. * src/RequestGroup.cc (createNextCommand)
  12966. Change log level from info to error so that users can notice that
  12967. an error occurred.
  12968. Fixed the bug that causes segfault when a zero-sized file is
  12969. downloaded.
  12970. * src/BitfieldMan.cc (isAllBitSet)
  12971. Return true if bitfieldLength is 0.
  12972. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12973. * src/main.cc
  12974. (showUsage): Added 3 usage examples for metalink download.
  12975. Replace MetalinkChunkChecksum with ChunkChecksum.
  12976. * src/MetalinkChunkChecksum.h: Removed.
  12977. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12978. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12979. * src/Xml2MetalinkProcessor.cc
  12980. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12981. * src/MetalinkRequestInfo.cc (execute)
  12982. * Release 0.11.1
  12983. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12984. Reads URIs from stdin when "-i -" is specified.
  12985. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12986. * src/UriListParser.h, src/UriListParser.cc: New class.
  12987. * src/StreamUriListParser.h: New class.
  12988. * src/FileUriListParser.h: New class.
  12989. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12990. instead of UriFileListParser.
  12991. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12992. Made console readout more readable.
  12993. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12994. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12995. Fix the bug that causes -s option not to work.
  12996. * src/main.cc (main)
  12997. * src/a2algo.h: New file.
  12998. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12999. Create directory structure specified in metalink file.
  13000. * src/RequestGroup.h, src/RequestGroup.cc
  13001. (initAndOpenFile): Create a directory to store files if it does not
  13002. exist.
  13003. (getDir): New function.
  13004. Added ETA and download speed for an individual file to readout.
  13005. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13006. * src/RequestGroup.h
  13007. (calculateDownloadSpeed): New function.
  13008. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13009. Made -S option work with metalink file and provided selective download
  13010. to metalink.
  13011. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13012. (filename): Removed.
  13013. (file): New variable.
  13014. (size): Removed.
  13015. (operator=): Updated.
  13016. (getPath): New function.
  13017. (getLength): New function.
  13018. (toFileEntry): New function.
  13019. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13020. (execute): Use toStream.
  13021. (showFileEntry): Removed.
  13022. * src/MetalinkRequestInfo.h
  13023. (targetFiles): New variable.
  13024. (setTargetFiles): New variable.
  13025. * src/MetalinkRequestInfo.cc
  13026. (execute): Added the ability to print file information included in
  13027. a metalink file.
  13028. Added selective download mode to metalink.
  13029. * src/main.cc
  13030. (showUsage): Updated to denote that -S and --select-file options are
  13031. applicable to metalink.
  13032. * src/FileEntry.h
  13033. (operator=): New function.
  13034. (getBasename): New function.
  13035. (getDirname): New function.
  13036. * src/Util.h, src/Util.cc
  13037. (toStream): New function.
  13038. * src/Xml2MetalinkProcessor.cc: Updated.
  13039. Made aria2 work with metalink with directory structure.
  13040. * src/File.h, src/File.cc
  13041. (getBasename): New function.
  13042. (getDirname): New function.
  13043. * src/RequestGroup.h, src/RequestGroup.cc
  13044. (_topDir): New variable.
  13045. (setTopDir): New function.
  13046. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13047. Rewrote HTTP header parsing with stringstream.
  13048. * src/HttpConnection.h, src/HttpConnection.cc
  13049. (HttpRequestEntry): New class.
  13050. (headerBuf): Removed.
  13051. (headerBufLength): Removed.
  13052. (outstandingHttpRequests): Now its element type is
  13053. HttpRequestEntryHandle.
  13054. (findEndOfHeader): Removed.
  13055. (receiveResponse): Rewritten.
  13056. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13057. Updated doc for -j option to notice that it should be used with -i
  13058. option.
  13059. * src/main.cc (showUsage)
  13060. Removed unused classes.
  13061. * src/RequestInfo.h
  13062. (FileInfo): Removed.
  13063. (checksum): Removed.
  13064. (fileInfo): Removed.
  13065. (setChecksum): Removed.
  13066. (getChecksum): Removed.
  13067. (getFileInfo): Removed.
  13068. Use ISO units.
  13069. * src/ConsoleDownloadEngine.cc
  13070. * src/TorrentConsoleDownloadEngine.cc
  13071. * src/Util.cc (abbrevSize)
  13072. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13073. Added the default listening ports to the help message.
  13074. * src/main.cc (showUsage)
  13075. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13076. Reduce the number of calls to gettimeofday to lower CPU load.
  13077. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13078. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13079. * src/Peer.h (calculateUploadSpeed): New function.
  13080. (calculateDownloadSpeed): New function.
  13081. * src/DefaultPeerStorage.cc
  13082. (CalculateStat): Added _now variable.
  13083. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13084. and Peer::calculateUploadSpeed(const struct timeval&)
  13085. Drop connection if no request or piece message is exchanged in
  13086. a certain interval.
  13087. * src/DefaultBtInteractive.h
  13088. (btRuntime): New variable.
  13089. (inactiveCheckPoint): New variable.
  13090. (checkActiveInteraction): New function.
  13091. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13092. request or piece message is received.
  13093. (checkActiveInteraction): New function.
  13094. (doInteractionProcessing): Call checkActiveInteraction.
  13095. Fixed the bug that causes remote Metalink and Torrent files are not
  13096. processed.
  13097. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13098. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13099. Changed format of log file.
  13100. * src/SimpleLogger.cc
  13101. * Release 0.11.0
  13102. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13103. * src/AbstractCommand.cc
  13104. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13105. MSG_MAX_TRY from error to info.
  13106. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13107. * src/message.h
  13108. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13109. (MSG_DOWNLOAD_ABORTED): Added %s.
  13110. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13111. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13112. * src/PeerAbstractCommand.cc
  13113. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13114. * src/Request.h
  13115. (cookieBox): Made ShardHandle.
  13116. * src/RequestGroup.h, src/RequestGroup.cc
  13117. (createNextCommandWithAdj): New function.
  13118. * src/FileAllocationCommand.cc
  13119. (executeInternal): Use createNextCommandWithAdj().
  13120. * src/CheckIntegrityCommand.cc
  13121. (executeInternal): Use createNextCommandWithAdj().
  13122. Added --load-cookies command-option.
  13123. * src/OptionHandlerFactory.cc
  13124. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13125. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13126. Now aria2 can handle cookie's expiration date.
  13127. * src/Cookie.h (expires): Changed its type to time_t.
  13128. * src/main.cc: Added --load-cookies command-line option.
  13129. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13130. * src/Util.h, src/Util.cc (httpGMT): New function.
  13131. * src/Request.cc (Request): Initialize cookieBox using
  13132. CookieBoxFactory.
  13133. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13134. * src/CookieParser.h, src/CookieParser.cc: New class.
  13135. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13136. * src/HttpResponseCommand.cc
  13137. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13138. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13139. download.
  13140. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13141. Added -j command-line option.
  13142. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13143. * src/main.cc
  13144. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13145. Rewritten using stringstream.
  13146. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13147. Rewritten using stringstream.
  13148. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13149. Make download size shown in MB, KB.
  13150. * src/ConsoleDownloadEngine.h (sendStatistics)
  13151. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13152. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13153. Accept incoming connections if download rate is low.
  13154. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13155. (_lowestSpeedLimit): New variable.
  13156. (setLowestSpeedLimit): New function.
  13157. (execute): Accept incoming connections if download rate is low.
  13158. MAX_PEERS is ignored in this case.
  13159. Disable PREF_OUT in multiple concurrent download:
  13160. * src/RequestGroup.h, src/RequestGroup.cc
  13161. (setUserDefinedFilename): New function.
  13162. * src/DownloadEngineFactory.cc
  13163. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13164. concurrent download.
  13165. * src/DefaultSegmentManFactory.cc
  13166. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13167. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13168. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13169. Added its overloaded method.
  13170. * src/RequestGroup.h
  13171. (_numConcurrentCommand): New variable.
  13172. (setNumConcurrentCommand): New function.
  13173. * src/RequestGroup.cc
  13174. Abort download if same file is being downloaded concurrently.
  13175. * src/RequestGroup.h, src/RequestGroupMan.cc
  13176. (isSameFileBeingDownloaded): New function.
  13177. * src/HttpResponseCommand.cc (executeInternal)
  13178. * src/FtpNegotiateCommand.cc (recvSize)
  13179. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13180. * main.cc: Added help message for -i option.
  13181. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13182. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13183. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13184. * src/MetalinkEntry.h
  13185. (checksum): Changed to ChecksumHandle
  13186. * src/MetalinkRequestInfo.cc
  13187. (checksum): Changed to ChecksumHandle
  13188. * src/File.cc
  13189. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13190. * src/common.h
  13191. (DIR_OPEN_MODE): New definition
  13192. * src/RequestGroup.cc
  13193. (prepareForNextAction): Added an argument.
  13194. * src/message.h
  13195. (MSG_GOOD_CHECKSUM): New definition
  13196. (MSG_BAD_CHECKSUM): New definition
  13197. * src/HttpResponseCommand.cc
  13198. (handleDefaultEncoding): Continue download sequence in new
  13199. non-segmented download.
  13200. * src/FileAllocationEntry.h
  13201. (_nextDownloadCommand): New variable.
  13202. * src/DownloadCommand.cc
  13203. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13204. available.
  13205. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13206. * src/IteratableChecksumValidator.h,
  13207. src/IteratableChecksumValidator.cc: New class.
  13208. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13209. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13210. Change file mode to 666:
  13211. * src/common.h (OPEN_MODE): New definition.
  13212. * src/File.cc
  13213. * src/Util.cc
  13214. * src/Directry.cc
  13215. * src/AbstractDiskWriter.cc
  13216. Change the level of log message "download aborted" to debug:
  13217. * src/PeerAbstractCommand.cc (execute)
  13218. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13219. * src/TrackerWatcherCommand.cc
  13220. (createCommand): Sleep some seconds after request failed.
  13221. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13222. then abort tracker request.
  13223. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13224. * Added the simultaneous download feature.
  13225. * src/main.cc: Print "Exception caught: " when exception is caught.
  13226. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13227. * src/ActivePeerConnectionCommand.cc
  13228. * src/PeerInteractionCommand.cc
  13229. * src/BtRuntime.h
  13230. (cuidCounter): Removed.
  13231. (getNewCuid): Removed.
  13232. * src/DownloadEngineFactory.cc
  13233. * src/PeerListenCommand.cc
  13234. * src/TrackerUpdateCommand.cc
  13235. * src/PeerInitiateConnectionCommand.cc
  13236. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13237. * src/PeerAbstractCommand.cc
  13238. (onAbort): Call PeerStorage::returnPeer()
  13239. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13240. (incomingPeers): New variable.
  13241. (addIncomingPeer): New function.
  13242. (returnPeer): New function.
  13243. (onErasingPeer): New function.
  13244. (addPeer): push_back -> push_front
  13245. (getActivePeers): Rewritten.
  13246. (calculateStat): Rewritten.
  13247. * src/PeerStorage.h
  13248. (TransferStat::copy): New function.
  13249. (TransferStat::TransferStat): New function.
  13250. (TransferStat::operator=): New function.
  13251. (addIncomingPeer): New function.
  13252. (returnPeer): New function.
  13253. * src/PeerListenCommand.cc
  13254. (execute): Use PeerStorage::addIncomingPeer() instead of
  13255. Peer::addPeer().
  13256. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13257. Connect to a peer actively when download speed is lower than specified
  13258. speed in torrent download:
  13259. * src/ActivePeerConnectionCommand.h: New class.
  13260. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13261. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13262. * src/main.cc: Fixed the bug that prevents download if .netrc
  13263. doesn't exist.
  13264. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13265. To cache resolved hostname:
  13266. * src/AbstractCommand.h, src/AbstractCommand.cc
  13267. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13268. Added dns cache.
  13269. * src/FtpInitiateConnectionCommand.cc
  13270. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13271. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13272. NameResolver working without ares.
  13273. * src/TorrentRequestInfo.cc
  13274. (execute): Don't cache dns in torrent download.
  13275. * src/HttpInitiateConnectionCommand.cc
  13276. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13277. * src/DNSCache.h: New class.
  13278. * src/UrlRequestInfo.cc
  13279. (execute): Use dns cache.
  13280. In http request, suppress port number in http request header if port
  13281. is 80 or 443:
  13282. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13283. request header if port is 80 or 443.
  13284. (createProxyRequest): Allways send port number.
  13285. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13286. To add the command-line option which disables netrc support:
  13287. * src/OptionHandlerFactory.cc
  13288. (createOptionHandlers): Added PREF_NO_NETRC.
  13289. * src/main.cc: Added -n option.
  13290. * src/prefs.h (PREF_NO_NETRC): New definition.
  13291. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13292. V_TRUE.
  13293. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13294. is V_FALSE. This may get configurable in the future release.
  13295. To clear peer's error status by time basis:
  13296. * src/PeerAbstractCommand.cc
  13297. (onAbort): Call Peer::startBadCondition().
  13298. * src/Peer.h, src/Peer.cc
  13299. (error): Removed.
  13300. (_badConditionStartTime): New variable.
  13301. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13302. (startBadCondition): New function.
  13303. (isGood): New function.
  13304. * src/DefaultPeerStorage.cc
  13305. (addPeer): Use Peer::isGood().
  13306. (FindFinePeer): Use Peer::isGood().
  13307. Always include port number in http request header:
  13308. * src/HttpRequest.cc (getHostText): Always include port number in
  13309. http request header.
  13310. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13311. To the ability to read options from a config file:
  13312. * src/main.cc: Command-line parameter validation is delegated to
  13313. OptionHandler class.
  13314. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13315. * src/Option.h, src/Option.cc (clear): New function.
  13316. * src/OptionParser.h, src/OptionParser.cc: New class.
  13317. * src/OptionHandler.h: New class.
  13318. * src/NameMatchOptionHandler.h: New class.
  13319. * src/OptionHandlerImpl.h: New classes.
  13320. * src/prefs.h: '_' -> '-'
  13321. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13322. (FTP_PASV): New definition.
  13323. * src/Util.h, src/Util.cc (getRealSize): New function.
  13324. To disable netrc support if .netrc file does not have correct
  13325. permissions:
  13326. * src/File.h, src/File.cc (mode): New function.
  13327. To prevent confidential information to be logged:
  13328. * src/HttpConnection.h, src/HttpConnection.cc
  13329. (eraseConfidentialInfo): New function.
  13330. (sendRequest): Call eraseConfidentialInfo().
  13331. (sendProxyRequest): Call eraseConfidentialInfo().
  13332. * src/main.cc: Validate permissions of .netrc file.
  13333. To add --user-agent command-line option:
  13334. * src/main.cc: Added new command line option: --user-agent
  13335. * src/prefs.h (PREF_USER_AGENT): New definition.
  13336. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13337. parameter to HttpRequest object.
  13338. * src/AbstractProxyRequestCommand.cc
  13339. (executeInternal): Set user-agent option parameter to HttpRequest
  13340. object.
  13341. Marged the patches from Dan Fandrich.
  13342. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13343. Use filename and size from Metalink file instead of sending HEAD
  13344. request:
  13345. * src/UrlRequestInfo.h
  13346. (_filename): New variable.
  13347. (_totalLength): New variable.
  13348. (setTotalLength): New variable.
  13349. (setFilename): New variable.
  13350. * src/MetalinkRequestInfo.cc
  13351. (execute): Set filename and size to UrlRequestInfo
  13352. * src/UrlRequestInfo.cc
  13353. (execute): Use filename and size from Metalink instead of seding
  13354. HEAD request to servers.
  13355. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13356. To add the ability to resume downloading a partially downloaded file
  13357. which is downloaded from the beginning:
  13358. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13359. takes this role.
  13360. * src/main.cc: Added -c option.
  13361. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13362. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13363. * src/prefs.h (PREF_CONTINUE): New definition.
  13364. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13365. * src/DefaultDiskWriter.cc
  13366. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13367. * src/AbstractDiskWriter.h
  13368. (glowFileAllocator): New variable.
  13369. * src/AbstractDiskWriter.cc
  13370. (openExistingFile): Now preallocate file space from the end of the
  13371. existing file if totalLength argument is specified and grater than 0.
  13372. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13373. to download exists in local, continue the download of the file.
  13374. --allow-overwrite=true is assumed in this context.
  13375. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13376. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13377. Throw exception if --check-integrity=true is specified but chunk
  13378. checksums are not provided:
  13379. * src/UrlRequestInfo.cc
  13380. Do not print URLs to stdout:
  13381. * src/UrlRequestInfo.cc
  13382. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13383. * src/Request.h: Use AuthResolver to get authentication information.
  13384. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13385. set to RequestFactory object.
  13386. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13387. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13388. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13389. create Request object.
  13390. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13391. To integrate Netrc into exsiting classes:
  13392. * src/Request.h
  13393. (_userDefinedAuthConfig): New variable.
  13394. (findNetrcAuthenticator): New function.
  13395. (segment): Removed.
  13396. (setUserDefinedAuthConfig): New function.
  13397. (resolveHttpAuthConfigItem): New function.
  13398. (resolveFtpAuthConfigItem): New function.
  13399. (resolveHttpProxyAuthConfigItem): New function.
  13400. * src/HttpRequest.h
  13401. (authConfig): Removed.
  13402. (proxyAuthConfig): Removed.
  13403. (setAuthConfig): Removed.
  13404. (setProxyAuthConfig): Removed.
  13405. * src/UrlRequest.h
  13406. (getHeadResult): Added a parameter: authConfigHandle
  13407. * src/common.h
  13408. (SingletonHolder.h): New include.
  13409. * src/main.cc
  13410. (Netrc.h): New include.
  13411. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13412. Added initial value of PREF_NETRC_PATH.
  13413. Added the initialization of netrc.
  13414. * src/AuthConfig.h: New class.
  13415. * src/prefs.h
  13416. (PREF_NETRC_PATH): New definition.
  13417. * src/HttpAuthConfig.h: Removed.
  13418. * src/Netrc.cc
  13419. (getRequiredNextToken): New function.
  13420. (skipMacdef): New function.
  13421. (parse): Rewritten.
  13422. * src/Netrc.h
  13423. (getRequiredNextToken): New function.
  13424. (skipMacdef): New function.
  13425. * src/Util.h, src/Util.cc
  13426. (getHomeDir): New function.
  13427. * src/TrackerWatcherComand.cc
  13428. (createRequestCommand): Use AuthConfig.
  13429. * src/FtpConnection.cc
  13430. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13431. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13432. * src/Request.cc
  13433. (findNetrcAuthenticator): New function.
  13434. (resolveHttpAuthConfigItem): New function.
  13435. (resolveFtpAuthConfigItem): New function.
  13436. (resolveHttpProxyAuthConfigItem): New function.
  13437. * src/UrlRequestInfo.cc: Use AuthConfig.
  13438. * src/HttpRequest.cc
  13439. (createRequest): Use authConfig.
  13440. (getProxyAuthString): Use authConfig.
  13441. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13442. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13443. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13444. To reduce overhead to find commands whose socket is either
  13445. readable or writable in the download engine loop:
  13446. * src/Command.h, src/Command.cc
  13447. (STATUS): New enum.
  13448. (status): New variable.
  13449. (statusMatch): New function.
  13450. (setStatusActive): New function.
  13451. (setStatusInactive): New function.
  13452. * src/DownloadEngine.h, src/DownloadEngine.cc
  13453. (executeCommand): New function.
  13454. (run): Simplified.
  13455. (waitData): Call Command::setStatusActive() when command's socket is
  13456. readable or writable.
  13457. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13458. To handle Segment as SegmentHandle:
  13459. * src/AbstractCommand.cc (execute): Rewritten.
  13460. * src/SegmentMan.h: Segment -> SegmentHandle
  13461. Introducded HttpResponse class, HttpRequest class to improve code
  13462. extensiveness and make it clear:
  13463. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13464. HttpResponse class.
  13465. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13466. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13467. * src/HttpConnection.cc: Contruction of http request were moved to
  13468. HttpRequest class.
  13469. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13470. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13471. * src/HttpAuthConfig.h: New class.
  13472. * src/Range.h: New class.
  13473. To make FtpTunnel{Request, Response}Command and
  13474. HttpProxy{Request, Response}Command derived from
  13475. AbstractProxy{Request, Response}Command:
  13476. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13477. Derived from AbstractProxyRequestCommand class.
  13478. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13479. Derived from AbstractProxyResponseCommand class.
  13480. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13481. Derived from AbstractProxyRequestCommand class.
  13482. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13483. Derived from AbstractProxyResponseCommand class.
  13484. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13485. : New class.
  13486. * src/AbstractProxyResponseCommand.h,
  13487. src/AbstractProxyResponseCommand.cc: New class.
  13488. To add netrc support:
  13489. * src/Netrc.h, src/Netrc.cc: New class.
  13490. * src/Util.h, src/Util.cc (split): New function.
  13491. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13492. "Content-Range" header instead of "Range" header.
  13493. * src/HttpHeader.h
  13494. (getStatus): Removed.
  13495. (setStatus): Removed.
  13496. * src/Segment.h
  13497. (getPositionToWrite): New function.
  13498. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13499. * src/HttpHeader.h
  13500. (Range.h): New include.
  13501. (status): New variable.
  13502. (HttpHeader): Initialized status with 0.
  13503. (getStatus): New function.
  13504. (setStatus): New function.
  13505. (getRange): New function.
  13506. (HttpHeaderHandle): New function.
  13507. * src/HttpHeader.cc
  13508. (getRange): New function.
  13509. * src/Request.h
  13510. (RequestWeakHandle): New definition.
  13511. * src/HttpConnection.h
  13512. (HttpConnectionHandle): New type definition.
  13513. * src/HttpConnection.cc
  13514. (receiveResponse): Set HTTP status to headers.
  13515. * src/main.cc
  13516. (showUsage): Fixed typo.
  13517. * src/Segment.h
  13518. (SegmentHandle): New type definition.
  13519. * src/BitfieldMan.h
  13520. (getMissingUnusedLength): New function.
  13521. * src/BitfieldMan.cc
  13522. (getMissingUnusedLength): New function.
  13523. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13524. To fix static initialization order problem:
  13525. * src/BitfieldManFactory.h
  13526. (defaultRandomizer): Removed.
  13527. (factory): New variable.
  13528. (getNewFactory): Removed.
  13529. (getFactoryInstance): New function.
  13530. (setDefaultRandomizer): Rewritten.
  13531. (getDefaultRandomizer): Rewritten.
  13532. * src/BitfieldManFactory.cc
  13533. (defaultRandomizer): Removed.
  13534. (factory): Initialized to 0.
  13535. (BitfieldManFactory): Initialized randomizer to 0.
  13536. * src/DefaultPieceStorage.cc
  13537. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13538. * src/Peer.cc
  13539. (Peer): getNewFactory() -> getFactoryInstance()
  13540. * src/SegmentMan.cc
  13541. (initBitfield): getNewFactory() -> getFactoryInstance()
  13542. * src/Piece.cc
  13543. (Piece): getNewFactory() -> getFactoryInstance()
  13544. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13545. To fix the bug that causes crash on Max OS X:
  13546. * src/SimpleRandomizer.h
  13547. (getInstance): Create new instance if the static variable is null.
  13548. * src/SimpleRandomizer.cc
  13549. (randomizer): Initialized to 0.
  13550. * src/BitfieldManFactory.h
  13551. (getNewFactory): Removed the call to setRandomizer().
  13552. To fix the miscalculation of the range of checksum:
  13553. * src/BitfieldMan.h
  13554. (isBitSetOffsetRange): New function.
  13555. * src/BitfieldMan.cc
  13556. (isBitSetOffsetRange): New function.
  13557. * src/SegmentMan.cc
  13558. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13559. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13560. * Release 0.10.1
  13561. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13562. To lower CPU usage in BitTorrent download when --max-upload-limit
  13563. command-line option specified:
  13564. * src/DefaultBtMessageDispatcher.cc
  13565. (sendMessages): Calculate uploading speed only when current message
  13566. is uploading data and is not sent yet.
  13567. * src/DefaultPeerStorage.h
  13568. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13569. * src/HttpResponseCommand.cc
  13570. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13571. This fixes compile error in Soralis 10.
  13572. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13573. To fix segfault in Metalink download:
  13574. * src/UrlRequestInfo.h
  13575. (filename): Removed.
  13576. (totalLength): Removed.
  13577. (setTotalLength): Removed.
  13578. (setFilename): Removed.
  13579. * src/MetalinkRequestInfo.cc
  13580. (execute): Do not set filename and totalLength to reqInfo.
  13581. Set chunk checksum to reqInfo if it is not null.
  13582. * src/HttpResponseCommand.cc
  13583. (executeInternal): Fixed filename in log.
  13584. (handleDefaultEncoding): Removed the call to initBitfield() and
  13585. markAllPiecesDone().
  13586. (handleOtherEncoding): Added HEAD method handling.
  13587. * src/FtpNegotiateCommand.cc
  13588. (executeInternal): Added SEQ_HEAD_OK handling.
  13589. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13590. return false.
  13591. * src/FtpNegotiateCommand.h
  13592. (SEQ_HEAD_OK): New definition.
  13593. * src/SegmentMan.cc
  13594. (initBitfield): Delete bitfield.
  13595. (isChunkChecksumValidationReady): Fixed the condition.
  13596. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13597. works fine.
  13598. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13599. * src/Xml2MetalinkProcessor.h
  13600. (xpathExists): New function.
  13601. * src/Xml2MetalinkProcessor.cc
  13602. (xpathExists): New function.
  13603. Not to send HEAD request if filename and size are available in Metalink
  13604. file:
  13605. * src/UrlRequestInfo.h
  13606. (filename): New variable.
  13607. (totalLength): New variable.
  13608. (setTotalLength): New function.
  13609. (setFilename): New function.
  13610. * src/MetalinkRequestInfo.cc
  13611. (execute): Set filename and size to UrlRequestInfo.
  13612. * src/MetalinkEntry.cc
  13613. (MetalinkEntry): Initialize size with 0.
  13614. * src/UrlRequestInfo.cc
  13615. (execute): Set filename and size to SegmentMan.
  13616. Not to download rest of the files after selected files are downloaded
  13617. in BitTorrent:
  13618. * src/PieceStorage.h
  13619. (allDownloadFinished): New function.
  13620. * src/DefaultBtAnnounce.cc
  13621. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13622. downloadFinished.
  13623. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13624. * src/DefaultPieceStorage.cc
  13625. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13626. Commented out the call to finishSelectiveDownloadingMode().
  13627. (downloadFinished): Call isFilteredAllBitSet() instead of
  13628. isAllBitSet().
  13629. (allDownloadFinished): New function.
  13630. * src/DefaultBtInteractive.cc
  13631. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13632. downloadFinished().
  13633. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13634. * src/TorrentDownloadEngine.cc
  13635. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13636. * src/BitfieldMan.h
  13637. (isFilteredAllBitSet): New function.
  13638. * src/ShareRatioSeedCriteria.h
  13639. (PieceStorage.h): New include.
  13640. (pieceStorage): New variable.
  13641. (evaluate):
  13642. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13643. * src/BitfieldMan.cc
  13644. (isFilteredAllBitSet): New function.
  13645. (isAllBitSet): Filter is not took into account.
  13646. Rename --force-truncate as --allow-overwrite:
  13647. * src/TorrentRequestInfo.cc
  13648. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13649. * src/main.cc
  13650. (showUsage): --force-truncate -> --allow-overwrite
  13651. * src/message.h
  13652. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13653. * src/prefs.h
  13654. (PREF_FORCE_TRUNCATE): Removed.
  13655. (PREF_ALLOW_OVERWRITE): New definition.
  13656. * src/SegmentMan.cc
  13657. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13658. * src/MetalinkRequestInfo.cc
  13659. (execute): Queueing message are now logged in info level.
  13660. * src/common.h
  13661. (LONG_LONG_MAX): Removed.
  13662. (LONG_LONG_MIN): Removed.
  13663. * src/HttpResponseCommand.cc
  13664. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13665. * src/FtpNegotiateCommand.cc
  13666. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13667. * src/main.cc
  13668. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13669. command-line option.
  13670. (main): Added --check-integriy and --realtime-chunk-checksum
  13671. command-line option.
  13672. --force-truncate -> --allow-overwrite
  13673. Set initial value of --check-integrity option to false.
  13674. Don't show usage when error occurs while persing command-line options.
  13675. Removed deprecated --upload-limit option.
  13676. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13677. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13678. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13679. * src/BtAllowedFastMessage.cc:
  13680. * src/BtBitfieldMessage.cc
  13681. * src/BtCancelMessage.cc
  13682. * src/BtChokeMessage.cc
  13683. * src/BtHaveAllMessage.cc
  13684. * src/BtHaveMessage.cc
  13685. * src/BtHaveNoneMessage.cc
  13686. * src/BtInterestedMessage.cc
  13687. * src/BtNotInterestedMessage.cc
  13688. * src/BtPieceMessage.cc
  13689. * src/BtPortMessage.cc
  13690. * src/BtRejectMessage.cc
  13691. * src/BtRequestMessage.cc
  13692. * src/BtSuggestPieceMessage.cc
  13693. * src/BtUnchokeMessage.cc
  13694. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13695. files are affected.
  13696. * src/ChunkChecksumValidator.cc
  13697. * src/SegmentMan.cc
  13698. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13699. To add chunk checksum validation:
  13700. * src/MetalinkEntry.h
  13701. (MetalinkChunkChecksum.h): New include.
  13702. (chunkChecksum): New variable.
  13703. * src/Request.h
  13704. (method): New variable.
  13705. (setMethod): New function.
  13706. (getMethod): New function.
  13707. (METHOD_GET): New static constant.
  13708. (METHOD_HEAD): New static constant.
  13709. * src/Xml2MetalinkProcessor.h
  13710. (getPieceHash): New function.
  13711. * src/PieceStorage.h
  13712. (markAllPiecesDone): New function.
  13713. (checkIntegrity): New function.
  13714. * src/FileAllocator.h
  13715. (NullFileAllocationMonitor.h): New include.
  13716. (FileAllocator): Initialize fileAllocationMonitor with new
  13717. NullFileAllocationMonitor().
  13718. * src/MultiDiskAdaptor.h
  13719. (messageDigest.h): Remove include.
  13720. (ctx): Removed.
  13721. (hashUpdate): Added ctx.
  13722. (MultiDiskAdaptor): Removed ctx.
  13723. (sha1Sum): Renamed as messageDigest.
  13724. (messageDigest): New function.
  13725. * src/UrlRequestInfo.h
  13726. (HeadResult): New class.
  13727. (digestAlgo): New variable.
  13728. (chunkChecksumLength): New variable.
  13729. (chunkChecksums): New variable.
  13730. (getHeadResult): New function.
  13731. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13732. (setDigestAlgo): New function.
  13733. (setChunkChecksumLength): New function.
  13734. (setChunkChecksums): New function.
  13735. * src/DefaultPieceStorage.cc
  13736. (DiskAdaptorWriter.h): New include.
  13737. (ChunkChecksumValidator.h): New include.
  13738. (markAllPiecesDone): New function.
  13739. (checkIntegrity): New function.
  13740. * src/DefaultBtContext.h
  13741. (getPieceHashes): New function.
  13742. * src/TorrentRequestInfo.cc
  13743. (execute): Try to validate chunk checksum if file already exists and
  13744. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13745. * src/messageDigest.h
  13746. (~MessageDigestContext): Added digestFree().
  13747. * src/MetalinkRequestInfo.cc
  13748. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13749. * src/DiskAdaptor.h
  13750. (messageDigest.h): New include.
  13751. (sha1Sum): Renamed as messageDigest.
  13752. (messageDigest): New function.
  13753. * src/DownloadCommand.h
  13754. (PeerStat.h): New include.
  13755. (maxDownloadSpeedLimit): New variable.
  13756. (startupIdleTime): New variable.
  13757. (lowestDownloadSpeedLimit): New variable.
  13758. (peerStat): New variable.
  13759. (setMaxDownloadSpeedLimit): New function.
  13760. (setStartupIdleTime): New function.
  13761. (setLowestDownloadSPeedLimit): New function.
  13762. * src/BtContext.h
  13763. (getPieceHashes): New function.
  13764. * src/main.cc
  13765. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13766. option to true for testing purpose.
  13767. * src/BtPieceMessage.cc
  13768. (checkPieceHash): Use messageDigest
  13769. * src/DownloadEngine.cc
  13770. (SetDescriptor): Removed.
  13771. (AccumulateActiveCommand): Removed.
  13772. (waitData): Rewritten.
  13773. (updateFdSet): Rewritten.
  13774. * src/MultiDiskAdaptor.cc
  13775. (hashUpdate): Added ctx.
  13776. (sha1Sum): Renamed as messageDigest.
  13777. (messageDigest): New function.
  13778. * src/BitfieldMan.h
  13779. (isBitRangeSet): New function.
  13780. (unsetBitRange): New function.
  13781. * src/ByteArrayDiskWriter.h
  13782. (sha1Sum): Renamed as messageDigest.
  13783. (messageDigest): New function.
  13784. * src/ConsoleDownloadEngine.cc
  13785. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13786. * src/DiskWriter.h
  13787. (messageDigest.h): New include.
  13788. (sha1Sum): Renamed as messageDigest.
  13789. (messageDigest): New function.
  13790. * src/ChunkChecksumValidator.h: New class.
  13791. * src/DiskAdaptorWriter.h: New class.
  13792. * src/prefs.h
  13793. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13794. (PREF_CHECK_INTEGRITY): New definition.
  13795. * src/HttpResponseCommand.cc
  13796. (handleDefaultEncoding): Added method "HEAD" handling.
  13797. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13798. (handleOtherEncoding):
  13799. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13800. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13801. startupIdleTime, lowestDownloadSpeedLimit to command.
  13802. * src/SegmentMan.h
  13803. (getSegmentEntryByIndex): New function.
  13804. (getSegmentEntryByCuid): New function.
  13805. (getSegmentEntryIteratorByCuid): New function.
  13806. (diskWriter): DiskWriter -> DiskWriterHandle
  13807. (pieceHashes): New variable.
  13808. (chunkHashLength): New variable.
  13809. (digestAlgo): New variable.
  13810. (FindPeerStat): Removed.
  13811. (getPeerStat): Rewritten.
  13812. (markAllPiecesDone): New function.
  13813. (checkIntegrity): New function.
  13814. (tryChunkChecksumValidation): New function.
  13815. (isChunkChecksumValidationReady): New function.
  13816. * src/BitfieldMan.cc
  13817. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13818. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13819. blocks to 0.
  13820. (isBitRangeSet): New function.
  13821. (unsetBitRange): New function.
  13822. * src/FtpNegotiateCommand.cc
  13823. (executeInternal): Set maxDownloadSpeedLimit,
  13824. startupIdleTime, lowestDownloadSpeedLimit to command.
  13825. (recvSize): Added method "HEAD" handling.
  13826. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13827. * src/AbstractSingleDiskAdaptor.cc
  13828. (sha1Sum): Renamed as messageDigest.
  13829. (messageDigest): New function.
  13830. * src/AbstractSingleDiskAdaptor.h
  13831. (sha1Sum): Renamed as messageDigest.
  13832. (messageDigest): New function.
  13833. * src/Util.h
  13834. (indexRange): New function.
  13835. * src/MetalinkEntry.cc
  13836. (MetalinkEntry): Initialized chunkChecksum to 0.
  13837. * src/ShaVisitor.cc
  13838. (~ShaVisitor): Removed the call to ctx.digestFree().
  13839. * src/SegmentMan.cc
  13840. (ChunkChecksumValidator.h): New include.
  13841. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13842. to DIGEST_ALGO_SHA1.
  13843. (~SegmentMan): Removed diskWriter.
  13844. (FindSegmentEntryByIndex): Removed.
  13845. (FindSegmentEntryByCuid): Removed.
  13846. (checkoutSegment): Rewritten.
  13847. (findSlowerSegmentEntry): Rewritten.
  13848. (getSegment): Rewritten.
  13849. (updateSegment): Rewritten.
  13850. (completeSegment): Rewritten.
  13851. (markAllPiecesDone): New function.
  13852. (checkIntegrity): New function.
  13853. (isChunkChecksumValidationReady): New function.
  13854. (tryChunkChecksumValidation): New function.
  13855. * src/Xml2MetalinkProcessor.cc
  13856. (getEntry): Get size and set it to entry.
  13857. Get chunk checksum and set it to entry.
  13858. (getPieceHash): New function.
  13859. * src/Util.cc
  13860. (sha1Sum): Removed ctx.digestFree()
  13861. (fileChecksum): Removed ctx.digestFree()
  13862. (indexRange): New function.
  13863. * src/Request.cc
  13864. (METHOD_GET): New variable.
  13865. (METHOD_HEAD): New variable.
  13866. (Request): Added method.
  13867. * src/UrlRequestInfo.cc
  13868. (FatalException.h): New include.
  13869. (message.h): New include.
  13870. (operator<<): Added operator<< for class HeadResult.
  13871. (getHeadResult): New function.
  13872. (execute): Get filename and size in separate download engine.
  13873. * src/ChunkChecksumValidator.cc: New class.
  13874. * src/DownloadCommand.cc:
  13875. (DownloadCommand): Added peerStat.
  13876. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13877. the value from Option.
  13878. The buffer size is now 16KB.
  13879. Use peerStat member instead of getting it from SegmentMan.
  13880. Use startupIdleTime member instead of gettingit from Option.
  13881. Added chunk checksum validation.
  13882. * src/AbstractDiskWriter.cc
  13883. (AbstractDiskWriter): Removed ctx.
  13884. (~AbstractDiskWriter): Removed ctx.digestFree()
  13885. (writeDataInternal): Returns the return value of write.
  13886. (readDataInternal): Returns the return value of read.
  13887. (sha1Sum): Renamed as messageDigest
  13888. (messageDigest): New function.
  13889. * src/AbstractDiwkWriter.h
  13890. (messageDigest.h): Removed include.
  13891. (ctx): Removed.
  13892. (sha1Sum): Renamed as messageDigest
  13893. (messageDigest): New function.
  13894. * src/DefaultPieceStorage.h
  13895. (markAllPiecesDone): New function.
  13896. (checkIntegrity): New function.
  13897. * src/NullFileAllocationMonitor.h: New class.
  13898. * src/MetalinkChunkChecksum.h: New class.
  13899. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13900. To decrease CPU usage in bittorrent download, calculation results in
  13901. BitfieldMan were cached and realtime fetching PeerObject was removed
  13902. with WeakHandle introduced. Option values are set to the objects
  13903. by setter before download begins.
  13904. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13905. * src/DefaultBtRequestFactory.h
  13906. (dispatcher): BtMessageDispatcherHandle ->
  13907. BtMessageDispatcherWeakHandle.
  13908. (messageFactory): New variable.
  13909. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13910. BtMessageDispatcherWeakHandle.
  13911. (setBtMessageFactory): New function.
  13912. * src/DefaultBtMessageDispatcher.cc:
  13913. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13914. from Option.
  13915. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13916. feating the value from Option.
  13917. Use messageFactory member.
  13918. * src/PeerInteractionCommand.cc
  13919. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13920. Add reverse dependencies to factory object.
  13921. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13922. dispatcher.
  13923. Set messageFactory to receiver.
  13924. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13925. btInteractive.
  13926. Set receiver to peerObject.
  13927. Set maxDownloadSpeedLimit to this.
  13928. (executeInternal): Use maxDownloadSpeedLimit member.
  13929. * src/BtChokeMessage.cc
  13930. (doReceivedAction): Use dispatcher, requestFactory member.
  13931. (onSendComplete): Use dispatcher member.
  13932. * src/PeerInteractionCommand.h
  13933. (maxDownloadSpeedLimit): New variable.
  13934. * src/DefaultBtMessageReceiver.h
  13935. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13936. (dispatcher):
  13937. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13938. (messageFactory): New variable.
  13939. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13940. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13941. (setDispatcher):
  13942. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13943. (setBtMessageFactory): New function.
  13944. * src/DefaultBtInteractive.cc
  13945. (initiateHandshake): Use messageFactory member.
  13946. (addBitfieldMessageToQueue): Use messageFactory member.
  13947. (addAllowedFastMessageToQueue): Use messageFactory member.
  13948. (decideChoking): Use messageFactory member.
  13949. (checkHave): Use messageFactory member.
  13950. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13951. (receiveMessages): Use maxDownloadSpeedLimit member.
  13952. (decideInterest): Use messageFactory member.
  13953. * src/BtRequestMessage.cc
  13954. (doReceivedAction): Use messageFactory, dispatcher member.
  13955. (onQueued): Use dispatcher member.
  13956. * src/BtPieceMessage.cc
  13957. (doReceivedAction): Use dispatcher member.
  13958. (send): Use peerConnection member.
  13959. (onWrongPiece): Use requestFactory member.
  13960. (handleChokingEvent): Use messageFactory, dispatcher member.
  13961. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13962. * src/BtMessageDispatcher.h
  13963. (BtMessageDispatcherWeakHandle): New type definition.
  13964. * src/SimpleBtMessage.cc
  13965. (send): Use peerConnection member.
  13966. * src/BtRejectMessage.cc
  13967. (doReceivedAction): Use dispatcher member.
  13968. * src/DefaultBtMessageDispatcher.h
  13969. (Option.h): Removed include.
  13970. (messageFactory): New variable.
  13971. (option): Removed.
  13972. (maxUploadSpeedLimit): New variable.
  13973. (requestTimeout): New variable.
  13974. (DefaultBtMessageDispatcher): Removed option.
  13975. Added maxUploadSpeedLimit, requestTimeout.
  13976. (setOption): Removed.
  13977. (getOption): Removed.
  13978. (setMaxUploadSpeedLimit): New function.
  13979. (setRequestTimeout): New function.
  13980. (setBtMessageFactory): New function.
  13981. * src/DefaultBtInteractive.h
  13982. (btMessageReceiver):
  13983. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13984. (dispatcher):
  13985. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13986. (btRequestFactory):
  13987. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13988. (peerConnection):
  13989. PeerConnectionHandle -> PeerConnectionWeakHandle
  13990. (messageFactory): New variable.
  13991. (option): Removed.
  13992. (keepAliveInterval): New variable.
  13993. (maxDownloadSpeedLimit): New variable.
  13994. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13995. (setBtMessageReceiver):
  13996. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13997. (setDispatcher):
  13998. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13999. (setBtRequestFactory):
  14000. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14001. (setPeerConnection):
  14002. PeerConnectionHandle -> PeerConnectionWeakHandle
  14003. (setOption): Removed.
  14004. (setKeepAliveInterval): New function.
  14005. (setMaxDownloadSpeedLimit): New function.
  14006. (setBtMessageFactory): New function.
  14007. * src/BitfieldMan.h
  14008. (cachedNumMissingBlock): New variable.
  14009. (cachedNumFilteredBlock): New variable.
  14010. (cachedCompletedLength): New variable.
  14011. (cachedFilteredComletedLength): New variable.
  14012. (cachedFilteredTotalLength): New variable.
  14013. (countMissingBlockNow): New function.
  14014. (countFilteredBlockNow): New function.
  14015. (getFilteredTotalLengthNow): New function.
  14016. (getCompletedLengthNow): New function.
  14017. (getFilteredCompletedLengthNow): New function.
  14018. (updateCache): New function.
  14019. * src/AbstractBtMessage.h
  14020. (BtMessageDispatcher.h): New include.
  14021. (PeerConnection.h): New include.
  14022. (BtRequestFactory.h): New include
  14023. (BtMessageFactory.h): New include.
  14024. (dispatcher): New variable.
  14025. (messageFactory): New variable.
  14026. (peerConnection: New variable.
  14027. (setBtMessageDispatcher): New function.
  14028. (setPeerConnection): New function.
  14029. (setBtMessageFactory): New function.
  14030. (setBtRequestFactory): New function.
  14031. * src/DefaultBtMessageFactory.cc
  14032. (setCommonProperty): Set dispatcher, requestFactory, this,
  14033. peerConnection to msg.
  14034. * src/BtRegistry.h
  14035. (BT_MESSAGE_RECEIVER): New macro.
  14036. * src/PeerConnection.h
  14037. (PeerConnectionWeakHandle): New type definition.
  14038. * src/BtMessageFactory.h
  14039. (BtMessageFactoryWeakHandle): New type definition.
  14040. * src/BitfieldMan.cc
  14041. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14042. cachedCompletedLength, cachedFilteredComletedLength,
  14043. cachedFilteredTotalLength.
  14044. Call updateCache().
  14045. (countMissingBlock): Return cachedNumMissingBlock.
  14046. (countMissingBlockNow): New function.
  14047. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14048. (countFilteredBlockNow): New function.
  14049. (setBit): Call updateCache().
  14050. (unsetBit): Call updateCache().
  14051. (setBitfield): Call updateCache().
  14052. (clearAllBit): Call updateCache().
  14053. (setAllBit): Use setBitInternal instead of setBit.
  14054. Call updateCache().
  14055. (addFilter): Call updateCache().
  14056. (enableFilter): Call updateCache().
  14057. (disableFilter): Call updateCache().
  14058. (clearFilter): Call updateCache().
  14059. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14060. (getFilteredTotalLengthNow): New function.
  14061. (getCompletedLength): Return cachedCompletedLength.
  14062. (getCompletedLengthNow): New function.
  14063. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14064. (getFilteredCompletedLengthNow): New function.
  14065. (updateCache): New function.
  14066. * src/BtMessageReceiver.h
  14067. (BtMessageReceiverWeakHandle): New type definition.
  14068. * src/DefaultBtMessageReceiver.cc
  14069. (receiveHandshake): Use messageFactory member.
  14070. (sendHandshake): Use messageFactory member.
  14071. (receiveMessage): Use messageFactory member.
  14072. * src/DefaultBtMessageFactory.h
  14073. (dispatcher): New variable.
  14074. (requestFactory): New variable.
  14075. (peerConnection): New variablle.
  14076. (setBtMessageDispatcher): New function.
  14077. (setBtRequestFactory): New function.
  14078. (setPeerConnection): New function.
  14079. * src/SharedHandle.h
  14080. (RefCount): New class.
  14081. (WeakHandle): New class.
  14082. * src/PeerObject.h
  14083. (BtMessageReceiver.h): New include.
  14084. (PeerObject): Added btMessageReceiver.
  14085. (btMessageReceiver): New variable.
  14086. * src/Util.cc
  14087. (countBit): Simplified.
  14088. * src/BtCancelMessage.cc
  14089. (doReceivedAction): Use dispatcher member.
  14090. * src/BtRequestFactory.h
  14091. (BtRequestFactoryWeakHandle): New type definition.
  14092. * src/PeerStorage.h
  14093. (downloadSpeed): int -> uint32_t
  14094. (uploadSpeed): int -> uint32_t
  14095. (sessionDownloadLength): long long int -> uint64_t
  14096. (sessionUploadLength): long long int -> uint64_t
  14097. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. To add RecoverableException, FatalException:
  14099. * src/AbstractCommand.cc
  14100. (onAbort): Exception -> RecoverableException
  14101. * src/PeerAbstractCommand.h
  14102. (RecoverableException.h): New include.
  14103. (onAbort): Exception -> RecoverableException.
  14104. * src/PeerInteractionCommand.cc
  14105. (onAbort): Exception -> RecoverableException.
  14106. * src/PeerAbstractCommand.cc
  14107. (execute): Exception -> RecoverableException.
  14108. (onAbort): Exception -> RecoverableException.
  14109. * src/TorrentRequestInfo.cc
  14110. (execute): Exception -> RecoverableException.
  14111. * src/MetalinkRequestInfo.cc
  14112. (execute): Exception -> RecoverableException.
  14113. * src/MetaFileUtil.cc: RecoverableException.
  14114. * src/AbstractCommand.h
  14115. (onAbort): Exception -> RecoverableException.
  14116. * src/DlRetryEx.h: Exception -> RecoverableException.
  14117. * src/DlAbortEx.h: Exception -> RecoverableException.
  14118. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14119. * src/Util.cc: Exception -> RecoverableException.
  14120. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14121. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14122. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14123. To make ID static const int
  14124. * src/BtInterestedMessage.h
  14125. (ID_t): Removed.
  14126. (ID): New variable.
  14127. (getId): Made non-const.
  14128. * src/BtPieceMessage.h
  14129. (ID_t): Removed.
  14130. (ID): New variable.
  14131. (getId): Made non-const.
  14132. * src/BtChokeMessage.h
  14133. (ID_t): Removed.
  14134. (ID): New variable.
  14135. (getId): Made non-const.
  14136. * src/BtHaveAllMessage.h
  14137. (ID_t): Removed.
  14138. (ID): New variable.
  14139. (getId): Made non-const.
  14140. * src/BtKeepAliveMessage.h
  14141. (ID_t): Removed.
  14142. (ID): New variable.
  14143. (getId): Made non-const.
  14144. * src/BtHandshakeMessage.h
  14145. (ID): New variable.
  14146. (getId): Made non-const.
  14147. * src/BtSuggestPieceMessage.h
  14148. (ID_t): Removed.
  14149. (ID): New variable.
  14150. (getId): Made non-const.
  14151. * src/BtPortMessage.h
  14152. (ID_t): Removed.
  14153. (ID): New variable.
  14154. (getId): Made non-const.
  14155. * src/AbstractBtMessage.h
  14156. (id): Removed.
  14157. (AbstractBtMessage): Removed id.
  14158. (getId): Removed.
  14159. * src/BtHaveMessage.h
  14160. (ID_t): Removed.
  14161. (ID): New variable.
  14162. (getId): Made non-const.
  14163. * src/BtAllowedFastMessage.h
  14164. (ID_t): Removed.
  14165. (ID): New variable.
  14166. (getId): Made non-const.
  14167. * src/BtCancelMessage.h
  14168. (ID_t): Removed.
  14169. (ID): New variable.
  14170. (getId): Made non-const.
  14171. * src/BtNotInterestedMessage.h
  14172. (ID_t): Removed.
  14173. (ID): New variable.
  14174. (getId): Made non-const.
  14175. * src/BtChokeMessage.h
  14176. (ID_t): Removed.
  14177. (ID): New variable.
  14178. (getId): Made non-const.
  14179. * src/BtRejectMessage.h
  14180. (ID_t): Removed.
  14181. (ID): New variable.
  14182. (getId): Made non-const.
  14183. * src/BtBitfieldMessage.h
  14184. (ID_t): Removed.
  14185. (ID): New variable.
  14186. (getId): Made non-const.
  14187. * src/BtUnchokeMessage.h
  14188. (ID_t): Removed.
  14189. (ID): New variable.
  14190. (getId): Made non-const.
  14191. * src/BtRequestMessage.h
  14192. (ID_t): Removed.
  14193. (ID): New variable.
  14194. (getId): Made non-const.
  14195. * src/BtHaveMessage.h
  14196. (ID_t): Removed.
  14197. (ID): New variable.
  14198. (getId): Made non-const.
  14199. To add --force-truncate command-line option and a check whether
  14200. the file already exists:
  14201. * src/DirectDiskAdaptor.h
  14202. (getFilePath): Made virtual public.
  14203. * src/MultiDiskAdaptor.h
  14204. (File.h): New include.
  14205. (DiskWriterEntry::fileEntry): Made private.
  14206. (DiskWriterEntry::fileExists): New function.
  14207. (DiskWriterEntry::getFileEntry): New function.
  14208. (fileExists): New function.
  14209. (getFilePath): New function.
  14210. * src/TorrentRequestInfo.cc
  14211. (FatalException.h): New include.
  14212. (message.h): New include.
  14213. (RecoverableException.h): New include.
  14214. (execute): Added a check whether file is already exists or not.
  14215. * src/DiskAdaptor.h
  14216. (fileExists): New function.
  14217. (getFilePath): New function.
  14218. * src/main.cc
  14219. (showUsage): Added an explanation of --force-truncate command-line
  14220. option.
  14221. (main): Added --force-truncate command-line option.
  14222. * src/Exception.h
  14223. (setMsg): buf[256] -> buf[1024]
  14224. * src/CopyDiskWriter.h
  14225. (getFilePath): Made public virtual.
  14226. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14227. (fileExists): New function.
  14228. * src/DownloadEngineFactory.cc
  14229. (newTorrentConsoleEngine): Don't open file here.
  14230. * src/message.h
  14231. (EX_FILE_ALREADY_EXISTS): New definition.
  14232. * src/prefs.h
  14233. (PREF_FOECE_TRUNCATE): New definition.
  14234. * src/HttpResponseCommand.cc
  14235. (handleDefaultEncoding): Added a check whether the file already exists.
  14236. * src/SegmentMan.h
  14237. (fileExists): New function.
  14238. (shouldCancelDownloadForSafety): New function.
  14239. * src/FtpNegotiateCommand.cc
  14240. (recvSize): Added a check whether the file already exists.
  14241. * src/AbstractSingleDiskAdaptor.cc
  14242. (File.h): New include.
  14243. (fileExists): New function.
  14244. * src/AbstractSingleDiskAdaptor.h
  14245. (getFilePath): Removed.
  14246. (fileExists): New function.
  14247. * src/SegmentMan.cc
  14248. (fileExists): New function.
  14249. (shouldCancelDownloadForSafety): New function.
  14250. To fix regression bug in torrent downloading:
  14251. * src/DefaultBtRequestFactory.cc
  14252. (doChokedAction): New function.
  14253. * src/DefaultBtRequestFactory.h
  14254. (doChokedAction): New function.
  14255. * src/DefaultBtMessageDispatcher.cc
  14256. (doChokedAction): Do not delete request if its target is in allowed
  14257. fast set.
  14258. * src/DefaultBtInteractive.cc
  14259. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14260. (sendKeepAlive): Send keep alive message even if the outgoing message
  14261. queue is not empty.
  14262. (decideInterest): Simplified the code.
  14263. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14264. it is already called when BtChokeMessage is received from a peer.
  14265. * src/BtRequestFactory.h
  14266. (doChokedAction): New function.
  14267. To clean up code:
  14268. * src/PeerInteractionCommand.h
  14269. (executeInternal): Added virtual keyword explicitly.
  14270. (prepareForRetry): Added virtual keyword explicitly.
  14271. (prepareForNextPeer): Added virtual keyword explicitly.
  14272. (onAbort): Added virtual keyword explicitly.
  14273. * src/RequestSlot.cc
  14274. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14275. * src/BtPieceMessage.cc
  14276. (doReceivedAction): Added a debug log of piece's bitfield.
  14277. * src/Piece.h
  14278. (getBitfieldLength): New function.
  14279. * src/ByteArrayDiskWriter.cc
  14280. (clear): Added buf = 0 to avoid double free corruption.
  14281. * src/FileAllocator.cc
  14282. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14283. Added cp.reset().
  14284. * src/BitfieldMan.h
  14285. (operator=): Rewritten.
  14286. * src/BitfieldMan.cc
  14287. (BitfieldMan): Initialized bitfield, useBitfield.
  14288. * src/PeerConnection.cc
  14289. (receiveMessage): Added a call to socket->readable() after getting
  14290. message length to avoid possible EOF.
  14291. * src/Util.cc
  14292. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14293. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14294. To add an ability to pre-allocate file space:
  14295. * src/DirectDiskAdaptor.h: Rewritten.
  14296. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14297. * src/MultiDiskAdaptor.h: Rewritten.
  14298. * src/DefaultPieceStorage.cc
  14299. (MultiDiskWriter.h): Removed include.
  14300. (PreAllocationDiskWriter.h): Removed include.
  14301. (FileAllocationMonitor.h): New include.
  14302. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14303. (initStorage): Rewritten.
  14304. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14305. * src/FileAllocator.h: New class.
  14306. * src/FileAllocator.cc: New class.
  14307. * src/FileAllocationMonitor.h: New class.
  14308. * src/FileAllocationMonitor.cc: New class.
  14309. * src/ConsoleFileAllocationMonitor.h: New class.
  14310. * src/ConsoleFileAllocationMonitor.cc: New class.
  14311. * src/AbstractSingleDiskAdaptor.h: New class.
  14312. * src/AbstractSingleDiskAdaptor.cc: New class.
  14313. * src/DiskAdaptor.h
  14314. (Directory.h): Removed include.
  14315. (DiskWriter.h): Removed include.
  14316. (FileEntry.h): Removed include.
  14317. (diskWriter): Removed.
  14318. (DiskAdaptor): Removed diskWriter.
  14319. (openFile): Made pure virtual.
  14320. (closeFile): Made pure virtual.
  14321. (openExistingFile): Made pure virtual.
  14322. (initAndOpenFile): Made pure virtual.
  14323. (writeData): Made pure virtual.
  14324. (readData): Made pure virtual.
  14325. (sha1Sum): Made pure virtual.
  14326. (getStoreDir): Returns const reference of storeDir.
  14327. (DiskAdaptorHandle): New type definition.
  14328. * src/main.cc
  14329. (ConsoleFileAllocationMonitor.h): New include.
  14330. (showUsage): Added default value description of -s option.
  14331. Added the description of --file-allocation option.
  14332. (main): Set default value of --file-allocation option to 'none'.
  14333. Added --file-allocation command-line option.
  14334. Setup FileAllocationMonitorFactory.
  14335. * src/FtpInitiateConnectionCommand.cc
  14336. (executeInternal): Removed diskWriter related processing, which was
  14337. moved to FtpNegotiationCommand.cc.
  14338. * src/DirectDiskAdaptor.cc
  14339. (getFilePath): Made non-const.
  14340. * src/CopyDiskAdaptor.h
  14341. (DiskAdaptor.h): Removed include.
  14342. (DiskWriter.h): Removed include.
  14343. (AbstractSingleDiskAdaptor.h): New include.
  14344. (getFilePath): Made non-const. Added virtual keyword.
  14345. (CopyDiskAdaptor): Removed diskWriter.
  14346. (getTempFile): Returns const reference.
  14347. (CopyDiskAdaptorHandle): New type definition.
  14348. * src/ByteArrayDiskWriter.cc
  14349. (clear): Simplified.
  14350. (initAndOpenFile): Rewritten.
  14351. (openFile): Call initAndOpenFile()
  14352. * src/MultiDiskAdaptor.cc: Rewritten.
  14353. * src/DownloadEngineFactory.cc
  14354. (FileAllocator.h): New include.
  14355. (FileAllocationMonitor.h): New include.
  14356. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14357. create DefaultDiskWriter with file allocator.
  14358. * src/DiskWriter.h
  14359. (initAndOpenFile): Added totalLength argument.
  14360. (openFile): Added totalLength argument.
  14361. * src/prefs.h
  14362. (PREF_FILE_ALLOCATION): New definition.
  14363. (V_PREALLOC): New definition.
  14364. (V_NONE): New definition.
  14365. * src/HttpResponseCommand.cc
  14366. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14367. size.
  14368. * src/FtpNegotiateCommand.cc
  14369. (Util.h): New include.
  14370. (recvSize): Open file here.
  14371. * src/Util.h
  14372. (ullitos): New function.
  14373. * src/CopyDiskWriter.h
  14374. (getFilePath): Made non-const.
  14375. * src/DefaultDiskWriter.h
  14376. (Option.h): New include.
  14377. (totalLength): Removed.
  14378. (DefaultDiskWriter): Removed totalLength.
  14379. (initAndOpenFile): Added totalLength argument.
  14380. (DefaultDiskWriterHandle): New type definition.
  14381. (createNewDiskWriter): New function.
  14382. * src/Util.cc
  14383. (ullitos): New function.
  14384. * src/DefaultDiskWriter.cc
  14385. (message.h): New include.
  14386. (FileAllocator.h): New include.
  14387. (prefs.h): New include.
  14388. (Util.h): New include.
  14389. (DefaultDiskWriter): Removed totalLength.
  14390. (initAndOpenFile): Added file allocation.
  14391. (createNewDiskWriter): New function. Just for temporary solution.
  14392. It will be rewritten later.
  14393. * src/DiskAdaptor.cc
  14394. (DiskAdaptor): Removed diskWriter.
  14395. * src/AbstractDiskWriter.cc
  14396. (LogFactory.h): New include.
  14397. (AbstractDiskWriter): Added fileAllocator, logger.
  14398. (openFile): Added totalLength argument.
  14399. * src/AbstractDiskWriter.h
  14400. (FileAllocator.h): New include.
  14401. (Logger.h): New include.
  14402. (fileAllocator): New variable.
  14403. (logger): New variable.
  14404. (openFile): Added totalLength argument. Added virtual keyword
  14405. explicitly.
  14406. (openExistingFile): Added totalLength argument. Added virtual keyword
  14407. explicitly.
  14408. (closeFile): Added virtual keyword explicitly.
  14409. (sha1Sum): Added virtual keyword explicitly.
  14410. (writeData): Added virtual keyword explicitly.
  14411. (readData): Added virtual keyword explicitly.
  14412. (setFileAllocator): New function.
  14413. * src/DefaultPieceStorage.h
  14414. (FileAllocator.h): New include.
  14415. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14416. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14417. * src/FileProgressMonitor.h: New class.
  14418. To compile aria2 on PC-BSD:
  14419. * src/DefaultBtContext.cc
  14420. (libgen.h): New include.
  14421. To fix memory leak:
  14422. * src/Exception.h
  14423. (~Exception): Delete cause. Fixed memory leak.
  14424. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14425. Rewritten a portion of bittorrent implementation:
  14426. * src/BtMessageValidator.h: New class.
  14427. * src/BtBitfieldMessageValidator.h: New class.
  14428. * src/BtHandshakeMessageValidator.h: New class.
  14429. * src/BtRequestMessageValidator.h: New class.
  14430. * src/BtSuggestPieceMessageValidator.h: New class.
  14431. * src/BtAllowedFastMessageValidator.h: New class.
  14432. * src/BtRejectMessageValidator.h: New class.
  14433. * src/BtCancelMessageValidator.h: New class.
  14434. * src/BtPieceMessageValidator.h: New class.
  14435. * src/BtHaveMessageValidator.h: New class.
  14436. * src/BtEventListener.h: New class.
  14437. * src/AbstractBtEventListener.h: New class.
  14438. * src/BtEvent.h: New class.
  14439. * src/BtChokingEvent.h: New class.
  14440. * src/BtChokedEvent.h: New class.
  14441. * src/BtCancelSendingPieceEvent.h: New class.
  14442. * src/BtAbortOutstandingRequestEvent.h: New class.
  14443. * src/Randomizer.h: New class.
  14444. * src/SimpleRandomizer.h: New class.
  14445. * src/BtMessage.h: New class.
  14446. * src/AbstractBtMessage.h: New class.
  14447. * src/SimpleBtMessage.h: New class.
  14448. * src/BtHaveMessage.h: New class.
  14449. * src/BtInterestedMessage.h: New class.
  14450. * src/BtAllowedFastMessage.h: New class.
  14451. * src/BtUnchokeMessage.h: New class.
  14452. * src/BtCancelMessage.h: New class.
  14453. * src/BtNotInterestedMessage.h: New class.
  14454. * src/BtChokeMessage.h: New class.
  14455. * src/BtHaveNoneMessage.h: New class.
  14456. * src/BtHandshakeMessage.h: New class.
  14457. * src/BtSuggestPieceMessage.h: New class.
  14458. * src/BtHaveMessage.h: New class.
  14459. * src/BtPieceMessage.h: New class.
  14460. * src/BtHaveAllMessage.h: New class.
  14461. * src/BtKeepAliveMessage.h: New class.
  14462. * src/BtPortMessage.h: New class.
  14463. * src/BtRejectMessage.h: New class.
  14464. * src/BtBitfieldMessage.h: New class.
  14465. * src/BtRequestMessage.h: New class.
  14466. * src/DefaultBtRequestFactory.h: New class.
  14467. * src/DefaultBtMessageReceiver.h: New class.
  14468. * src/BtInteractive.h: New class.
  14469. * src/BtMessageDispatcher.h: New class.
  14470. * src/DefaultBtMessageDispatcher.h: New class.
  14471. * src/DefaultBtInteractive.h: New class.
  14472. * src/BitfieldManFactory.h: New class.
  14473. * src/HandleRegistry.h: New class.
  14474. * src/BtMessageFactory.h: New class.
  14475. * src/BtMessageReceiver.h: New class.
  14476. * src/DefaultBtMessageFactory.h: New class.
  14477. * src/PeerObject.h: New class.
  14478. * src/BtRequestFactory.h: New class.
  14479. * src/SuggestPieceMessage.h: Removed.
  14480. * src/PortMessage.h: Removed.
  14481. * src/SuggestPieceMessage.h: Removed.
  14482. * src/KeepAliveMessage.h: Removed.
  14483. * src/HandshakeMessage.h: Removed.
  14484. * src/PeerInteraction.h: Removed.
  14485. * src/UnchokeMessage.h: Removed.
  14486. * src/PieceMessage.h: Removed.
  14487. * src/RequestMessage.h: Removed.
  14488. * src/InterestedMessage.h: Removed.
  14489. * src/HaveMessage.h: Removed.
  14490. * src/CancelMessage.h: Removed.
  14491. * src/RejectMessage.h: Removed.
  14492. * src/AllowedFastMessage.h: Removed.
  14493. * src/HaveNoneMessage.h: Removed.
  14494. * src/SimplePeerMessage.h: Removed.
  14495. * src/HaveAllMessage.h: Removed.
  14496. * src/BitfieldMessage.h: Removed.
  14497. * src/PeerMessageFactory.h: Removed.
  14498. * src/NotInterestedMessage.h: Removed.
  14499. * src/ChokeMessage.h: Removed.
  14500. * src/PeerMessage.h: Removed.
  14501. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14502. To know root cause of exception:
  14503. * src/Exception.h
  14504. (cause): New variable.
  14505. (Exception): Added a parameter.
  14506. (getMsg): Return const reference to msg.
  14507. (getCause): New function.
  14508. * src/DlRetryEx.h
  14509. (DlRetryEx): Added a parameter 'cause'.
  14510. Added an overloaded constructor.
  14511. (DlAbortEx): Added a parameter 'cause'.
  14512. Added an overloaded constructor.
  14513. * src/SimpleLogger.cc
  14514. (writeLog): Log nested exception messages recursively.
  14515. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14516. * src/DefaultBtProgressInfoFile.cc
  14517. (load): Fixed memory leak when the infohash doesn't match.
  14518. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14519. * src/DefaultPeerStorage.cc
  14520. (calculateStat): Simplified the code by combining 2 loops into 1.
  14521. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14522. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14523. for BitTorrent download:
  14524. * src/PeerAbstractCommand.cc
  14525. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14526. * src/main.cc:
  14527. (timeoutSpecified): Removed.
  14528. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14529. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14530. * src/TorrentRequestInfo.cc
  14531. (timeoutSpecified): Removed.
  14532. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14533. timeout value.
  14534. * src/prefs.h
  14535. (PREF_BT_TIMEOUT): New definition.
  14536. Delete unused variables:
  14537. * src/TorrentRequestInfo.cc
  14538. (requestInfo): Removed.
  14539. Move setSignalHander to Util::setGlobalSignalHandler:
  14540. * src/TorrentRequestInfo.cc:
  14541. setSignalHander -> Util::setGlobalSignalHandler
  14542. * src/main.cc
  14543. (setSignalHander): Removed.
  14544. (main): setSignalHander -> Util::setGlobalSignalHandler
  14545. * src/Util.h
  14546. (setGlobalSignalHandler): New function.
  14547. * src/Util.cc
  14548. (setGlobalSignalHandler): New function.
  14549. * src/UrlRequestInfo.cc:
  14550. setSignalHander -> Util::setGlobalSignalHandler
  14551. Reset peer status in order to exit gracefully:
  14552. * src/PeerAbstractCommand.cc
  14553. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14554. To fix the bug that causes the number of bytes uploaded is not saved
  14555. to .aria2 file:
  14556. * src/DefaultPeerStorage.h
  14557. (removedPeerSessionDownloadLength): New variable.
  14558. (removedPeerSessionUploadLength): New variable.
  14559. * src/DefaultPeerStorage.cc
  14560. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14561. removedPeerSessionUploadLength(0).
  14562. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14563. through all peers, and then add removedPeerSessionDownloadLength(
  14564. removedPeerSessionUploadLength) to it.
  14565. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14566. (to) the peer to removedPeerSessionDownloadLength
  14567. (removedPeerSessionUploadLength).
  14568. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14569. To add Metalink location option:
  14570. * src/MetalinkRequestInfo.cc
  14571. (execute): Call MetalinkEntry::setLocationPreference()
  14572. * src/main.cc
  14573. (showUsage): Added the help message for --metalink-location option.
  14574. (main): Added --metalink-location option.
  14575. * src/prefs.h
  14576. (PREF_METALINK_LOCATION): New definition.
  14577. * src/MetalinkEntry.cc
  14578. (AddLocationPreference): New function object.
  14579. (setLocationPreference): New function.
  14580. * src/Xml2MetalinkProcessor.cc
  14581. (getResource): Set location attribute to MetalinkResource
  14582. To show URLs to download
  14583. * src/UrlRequestInfo.h
  14584. (printUrls): New function.
  14585. To add multiple <file> Metalink support:
  14586. * src/MetalinkEntry.h
  14587. (MetalinkResources): Removed.
  14588. (setLocationPreference): New function.
  14589. (MetalinkEntryHandle): New type definition.
  14590. (MetalinkEntries): New type definition.
  14591. * src/Xml2MetalinkProcessor.h
  14592. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14593. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14594. (parseFile): Metalinker* -> MetalinkerHandle
  14595. * src/UrlRequestInfo.h
  14596. (execute): RequestInfo* -> RequestInfos
  14597. * src/MetalinkRequestInfo.cc
  14598. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14599. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14600. (execute): RequestInfo* -> RequestInfos
  14601. Added multiple <file> support. Print filename when it is queued.
  14602. * src/MetalinkRequestInfo.h
  14603. (execute): RequestInfo* -> RequestInfos
  14604. (getDownloadEngine): Removed.
  14605. * src/RequestInfo.h
  14606. (RequestInfoHandle): New type definition.
  14607. (RequestInfos): New type definition.
  14608. (execute): RequestInfo* -> RequestInfos
  14609. (getDownloadEngine): Removed.
  14610. * src/MetalinkResource.h
  14611. (MetalinkResourceHandle): New type definition.
  14612. (MetalinkResources): New type definition.
  14613. * src/MetalinkEntry.cc
  14614. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14615. because the element is now of type MetalinkResourceHandle.
  14616. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14617. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14618. (dropUnsupportedResource): Removed the deletion of the elements of
  14619. resources because the element is now of type MetalinkResourceHandle.
  14620. * src/Xml2MetalinkProcessor.cc
  14621. (parseFile): Metalinker* -> MetalinkerHandle
  14622. MetalinkEntry* -> MetalinkEntryHandle
  14623. Removed try-catch block.
  14624. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14625. MetalinkResource* -> MetalinkResourceHandle
  14626. Removed try-catch block.
  14627. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14628. Free result by using xmlXPathFreeObject()
  14629. * src/Metalinker.cc
  14630. (~Metalinker): Removed the deletion of entries.
  14631. MetalinkEntry* -> MetalinkEntryHandle
  14632. (queryEntry): Add multiple <file> Metalink support.
  14633. * src/Metalinker.h
  14634. (MetalinkEntries): Removed.
  14635. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14636. * src/MetalinkProcessor.h
  14637. (parseFile): Metalinker* -> MetalinkerHandle
  14638. Bug fixes:
  14639. * src/PeerChokeCommand.cc
  14640. (execute): cat01->cat02
  14641. * src/DefaultPieceStorage.cc
  14642. (DefaultPieceStorage): Added diskAdaptor(0)
  14643. * src/TrackerWatcherComand.cc:
  14644. (execute): Use btAnnounce->noMoreAnnounce()
  14645. to determin whether the function returns true or not.
  14646. * src/TrackerUpdateCommand.cc:
  14647. (execute): Use btAnnounce->noMoreAnnounce()
  14648. to determin whether the function returns true or not.
  14649. * src/FtpConnection.cc
  14650. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14651. This is the fix of the busy loop bug.
  14652. * src/DownloadCommand.cc
  14653. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14654. cached PeerStat.
  14655. The value of "name" entry in torrent file is now set by
  14656. *DiskAdaptor::setTopDir(...) methods.
  14657. * src/MultiDiskAdaptor.h
  14658. (topDir): New variable.
  14659. (setTopDir): New function.
  14660. (getTopDir): New function.
  14661. * src/MultiDiskAdaptor.cc
  14662. (getFilePath): Concat storDir, "/" and topDir.
  14663. (mkdir): Use getFilePath() to get the directory path for output.
  14664. * src/DefaultPieceStorage.cc
  14665. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14666. CopyDiskAdaptor.
  14667. * src/CopyDiskAdaptor.h
  14668. (topDir): New variable.
  14669. (setTopDir): New function.
  14670. (getTopDir): New function.
  14671. * src/CopyDiskAdaptor.cc
  14672. (fixFilename): Updated.
  14673. Misc
  14674. * src/UrlRequestInfo.h
  14675. (e): Removed.
  14676. (UrlRequestInfo): Removed e.
  14677. (getDownloadEngine): Removed.
  14678. * src/UrlRequestInfo.cc
  14679. (handler): Rewritten.
  14680. (printUrls): New function.
  14681. (execute): Call printUrls().
  14682. * src/HandshakeMessage.cc
  14683. (check): peerinteraction->getBtContext() -> btContext
  14684. * src/PeerInteraction.h
  14685. (getBtContext): Removed.
  14686. * src/TorrentRequestInfo.h
  14687. (execute): RequestInfo* -> RequestInfos
  14688. (getDownloadEngine): Removed.
  14689. * src/TorrentRequestInfo.cc
  14690. (haltRequested): Removed.
  14691. (btHaltRequested): New variable.
  14692. (torrentHandler): haltRequested -> btHaltRequested
  14693. (execute): RequestInfo* -> RequestInfos
  14694. * src/TorrentConsoleDownloadEngine.cc
  14695. (afterEachIteration): haltRequested -> btHaltRequested.
  14696. * src/ConsoleDownloadEngine.h
  14697. (initStatistics): Added virtual.
  14698. (calculateStatistics): Added virtual.
  14699. (onEndOfRun): Added virtual.
  14700. (afterEachIteration): Added virtual.
  14701. * src/ConsoleDownloadEngine.cc
  14702. (haltRequested): New variable.
  14703. (afterEachIteration): New function.
  14704. * src/main.cc
  14705. (requestInfo): Removed.
  14706. * src/SegmentMan.cc
  14707. (findSlowerSegmentEntry): Refactored.
  14708. * Release 0.9.0
  14709. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14710. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14711. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14712. * src/TorrentMan.h: Removed.
  14713. * src/TorrentMan.cc: Removed.
  14714. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14715. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14716. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14717. * src/PeerAbstractCommand.cc: Use btRuntime.
  14718. * src/BtContextAwareCommand.h: New class.
  14719. * src/FileEntry.h: Added accessor methods for following variables.
  14720. (path): Made private.
  14721. (length): Made private.
  14722. (offset): Made private.
  14723. (extracted): Made private.
  14724. (requested): Made private.
  14725. (FileEntries): New definition.
  14726. (FileEntryHandle): New definition.
  14727. * src/FileEntry.cc: New file.
  14728. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14729. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14730. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14731. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14732. * src/PieceStorage.h: New file.
  14733. * src/PeerInteractionCommand.h: Use btContext.
  14734. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14735. btRuntime.
  14736. * src/DefaultBtProgressInfoFile.h: New file.
  14737. * src/DefaultBtProgressInfoFile.cc: New file.
  14738. * src/File.cc
  14739. (Util.h): New include.
  14740. (mkdirs): New function.
  14741. * src/MultiDiskAdaptor.h
  14742. (mkdir): New function.
  14743. * src/PeerListProcessor.h
  14744. (Peers): Removed.
  14745. * src/PeerInteraction.h
  14746. (torrentMan): Removed.
  14747. (btContext): New variable.
  14748. (peerStorage): New variable.
  14749. (pieceStorage): New variable.
  14750. (btAnnounce): New variable.
  14751. (getTorrentMan): Removed.
  14752. (getBtContext): New function.
  14753. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14754. btAnnounce.
  14755. * src/HandshakeMessage.h
  14756. (TorrentMan.h): Removed.
  14757. * src/HandshakeMessage.cc: Use btContext.
  14758. * src/DefaultBtAnnounce.cc: New file.
  14759. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14760. * src/DefaultPieceStorage.cc: New file.
  14761. * src/DefaultBtContext.h: New file.
  14762. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14763. Use the accessor methods of FileEntry.
  14764. * src/CookieBox.cc: Updated to use Util::slice().
  14765. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14766. * src/common.h (SharedHandle.h): New include.
  14767. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14768. pieceStorage.
  14769. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14770. * src/DiskAdaptor.h
  14771. (topDir): Removed.
  14772. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14773. (setTopDir): Removed.
  14774. (getTopDir): Removed.
  14775. * src/BtContext.h: New file.
  14776. * src/DefaultPeerStorage.h: New file.
  14777. * src/PieceMessage.h (TorrentMan.h): Removed.
  14778. * src/RequestMessage.h (TorrentMan.h): Removed.
  14779. * src/TorrentDownloadEngine.h
  14780. (uploadLength): New variable.
  14781. (btContext): New variable.
  14782. (btRuntime): New variable.
  14783. (pieceStorage): New variable.
  14784. (peerStorage): New variable.
  14785. (btAnnounce): New variable.
  14786. (btProgressInfoFile): New variable.
  14787. (torrentMan): Removed.
  14788. (setBtContext): New function.
  14789. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14790. peerStorage, btAnnounce, btProgressInfoFile.
  14791. * src/Piece.h
  14792. (toString): New function.
  14793. (Pieces): New type definition.
  14794. * src/Peer.h
  14795. (active): New variable.
  14796. (Peer): Added active.
  14797. (activate): Set active to true.
  14798. (deactivate): Set active to false.
  14799. (isActive): New function.
  14800. (Peers): New type definition.
  14801. * src/DirectDiskAdaptor.cc
  14802. (getFilePath): Use the accessor methods of FileEntry.
  14803. * src/TorrentConsoleDownloadEngine.h
  14804. (afterEachIteration): New function.
  14805. * src/TorrentConsoleDownloadEngine.cc
  14806. (haltRequested): New variable.
  14807. (sendStatistics): Use pieceStorage, btRuntime.
  14808. (afterEachIteration): New function.
  14809. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14810. * src/Directry.h
  14811. (Directory): New function.
  14812. (DirectoryHandle): New type definition.
  14813. * src/BtProgressInfoFile.h: New file.
  14814. * src/RequestMessage.cc: Use pieceStorage.
  14815. * src/BtRuntime.h: New file.
  14816. * src/DefaultBtContext.cc: New file.
  14817. * src/BitfieldMan.h
  14818. (getCompletedLength): New function(private).
  14819. (getCompletedLength): New function.
  14820. (getFilteredCompletedLength): New function.
  14821. * src/BitfieldMan.h
  14822. (getCompletedLength): New function(private).
  14823. (getCompletedLength): New function.
  14824. (getFilteredCompletedLength): New function.
  14825. * src/MultiDiskAdaptor.cc
  14826. (mkdir): New function.
  14827. (openFile): Call mkdir().
  14828. (initAndOpenFile): Call mkdir().
  14829. * src/CancelMessage.h
  14830. (TorrentMan.h): Removed.
  14831. * src/RejectMessage.h
  14832. (TorrentMan.h): Removed.
  14833. * src/DownloadEngineFactory.cc
  14834. (DefaultPieceStorage.h): New include.
  14835. (DefaultPeerStorage.h): New include.
  14836. (DefaultBtAnnounce.h): New include.
  14837. (DefaultBtProgressInfoFile.h): New include.
  14838. (newTorrentConsoleEngine): Rewritten.
  14839. * src/ShareRatioSeedCriteria.h
  14840. (torrentMan): Removed.
  14841. (btContext): New variable.
  14842. (peerStorage): New variable.
  14843. (btRuntime): New variable.
  14844. (evaluate): Use btContext, btRuntime, peerStorage.
  14845. * src/AnnounceTier.h: New file.
  14846. * src/BtAnnounce.h: New file.
  14847. * src/BtRegistry.h: New file.
  14848. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14849. * src/PeerConnection.h (TorrentMan.h): Removed.
  14850. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14851. * src/Util.h
  14852. (slice): Added an argument.
  14853. * src/Util.cc
  14854. (slice): Added an argument to control whether trim is made or not.
  14855. * src/PeerStorage.h: New file.
  14856. * src/BtRegistry.cc: New file.
  14857. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14858. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14859. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14860. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14861. * src/TorrentRequestInfo.h
  14862. (e): Removed.
  14863. (showFileEntry): Added an argument.
  14864. (getDownloadEngine): Return 0.
  14865. * src/DefaultBtAnnounce.h: New file.
  14866. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14867. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14868. * src/PeerMessageFactory.h
  14869. (btContext): New variable.
  14870. (pieceStorage): New variable.
  14871. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14872. btAnnounce.
  14873. * src/DiskAdaptor.cc
  14874. (DiskAdaptor): Removed topDir.
  14875. (~DiskAdaptor): Removed topDir.
  14876. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14877. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14878. * src/File.h (mkdirs): New function.
  14879. * src/DefaultPeerStorage): New file.
  14880. * src/DownloadEngineFactory.h
  14881. (newTorrentConsoleEngine): Use btContext.
  14882. * src/BtContextAwareCommand.cc: New file.
  14883. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14884. * src/PeerMessage.h
  14885. (btContext): New variable.
  14886. (peerStorage): New variable.
  14887. (pieceStorage): New variable.
  14888. (setBtContext): New function.
  14889. * src/Directry.cc
  14890. (Directory): New function.
  14891. (createDir): Do nothing if name.size() == 0.
  14892. * src/AnnounceList.h
  14893. (AnnounceTier): Removed.
  14894. (AnnounceTiers): Removed.
  14895. * src/DefaultPieceStorage.h: New file.
  14896. * src/Piece.cc (toString): New function.
  14897. To fix typo:
  14898. * src/main.cc (showVersion): Fixed typo.
  14899. To fix compile warning:
  14900. * src/DelegatingPeerListProcessor.cc
  14901. (canHandle): Added "return false".
  14902. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14903. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14904. make the process of announce request testable.
  14905. * src/TrackerWatcherCommand.h
  14906. (TimeA2.h): Removed.
  14907. (interval): Removed.
  14908. (checkPoint): Removed.
  14909. (createRequestCommand): Added an argument 'url'.
  14910. (TrackerWatherCommand): Removed interval.
  14911. (createCommand): New function.
  14912. * src/DownloadEngineFactory.cc
  14913. (newTorrentConsoleEngine): Updated according to the changes in
  14914. TrackerWatherCommand.
  14915. * src/TorrentMan.cc
  14916. (DelegatingPeerListProcessor.h): New includes.
  14917. (TorrentMan): Added the initialization of announceInterval.
  14918. (isStoppedAnnounceReady): New function.
  14919. (isCompletedAnnounceReady): New function.
  14920. (isDefaultAnnounceReady): New function.
  14921. (isAnnounceReady): New function.
  14922. (getAnnounceUrl): New function.
  14923. (announceStart): New function.
  14924. (announceFailure): New function.
  14925. (announceSuccess): New function.
  14926. (isAllAnnounceFailed): New function.
  14927. (resetAnnounce): New function.
  14928. (processAnnounceResponse): New function.
  14929. (needMorePeerConnection): New function.
  14930. (noMoreAnnounce): New function.
  14931. * src/TrackerUpdateCommand.h
  14932. (getTrackerResponse): int->size_t
  14933. * src/TorrentMan.h
  14934. (isStoppedAnnounceReady): New function.
  14935. (isCompletedAnnounceReady): New function.
  14936. (isDefaultAnnounceReady): New function.
  14937. (announceInterval): New variable.
  14938. (isAnnounceReady): New function.
  14939. (getAnnounceUrl): New function.
  14940. (announceStart): New function.
  14941. (announceFailure): New function.
  14942. (announceSuccess): New function.
  14943. (isAllAnnounceFailed): New function.
  14944. (resetAnnounce): New function.
  14945. (processAnnounceResponse): New function.
  14946. (needMorePeerConnection): New function.
  14947. (noMoreAnnounce): New function.
  14948. * src/TrackerWatcherCommand.cc
  14949. (TrackerWatherCommand): Removed interval and checkPoint.
  14950. (execute): Rewritten.
  14951. (createCommand): New function.
  14952. (createRequestCommand): Rewritten.
  14953. * src/TrackerUpdateCommand.cc
  14954. (MetaFileUtil.h): Removed.
  14955. (DelegatingPeerListProcessor.h): Removed.
  14956. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14957. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14958. Request -> RequestHandle:
  14959. * src/HttpResponseCommand.h: Request->RequestHandle
  14960. * src/AbstractCommand.cc: Request->RequestHandle
  14961. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14962. * src/HttpRequestCommand.cc: Request->RequestHandle
  14963. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14964. * src/AbstractCommand.h: Request->RequestHandle
  14965. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14966. * src/HttpResponseCommand.cc: Request->RequestHandle
  14967. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14968. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14969. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14970. * src/HttpConnection.h: Request->RequestHandle
  14971. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14972. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14973. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14974. * src/DownloadCommand.h: Request->RequestHandle
  14975. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14976. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14977. * src/HttpRequestCommand.h: Request->RequestHandle
  14978. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14979. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14980. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14981. * src/HttpDownloadCommand.h: Request->RequestHandle
  14982. * src/FtpConnection.cc: Request->RequestHandle
  14983. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14984. * src/UrlRequestInfo.cc: Request->RequestHandle
  14985. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14986. * src/HttpConnection.h: Request->RequestHandle
  14987. * src/DownloadCommand.cc: Request->RequestHandle
  14988. * src/FtpConnection.h: Request->RequestHandle
  14989. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14990. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14991. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14992. * src/Request.h
  14993. (SharedHandle.h): New include.
  14994. (RequestHandle): New type definition.
  14995. (Requests): Redefined.
  14996. To add MULTITRACKER support:
  14997. * src/TrackerWatcherCommand.h
  14998. (createRequestCommand): New function.
  14999. * src/DownloadEngineFactory.cc
  15000. (newTorrentConsoleEngine): Removed req.
  15001. * src/prefs.h
  15002. (PREF_TRACKER_MAX_TRIES): New definition.
  15003. * src/TorrentMan.cc
  15004. (TorrentMan): Removed req. Added trackerNumTry.
  15005. (~TorrentMan): Removed req.
  15006. (setupInternal1): Added announceList.
  15007. * src/TorrentRequestInfo.cc
  15008. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15009. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15010. * src/main.cc
  15011. (main): Added PREF_TRACKER_MAX_TRIES.
  15012. * src/TorrentMan.h
  15013. (Request.h): Removed.
  15014. (AnnounceList.h): New include.
  15015. (trackerNumTry): New variable.
  15016. (req): Removed.
  15017. (announceList): New variable.
  15018. * src/TrackerWatcherCommand.cc
  15019. (execute): Rewritten.
  15020. (createRequestCommand): New function.
  15021. * src/TrackerUpdateCommand.cc
  15022. (execute): Updated with the use of AnnounceList.
  15023. * src/AnnounceList.cc: New class.
  15024. * src/AnnounceList.h: New class.
  15025. To fix typo:
  15026. * src/prefs.h
  15027. (PREF_MAX_TRIES): max_try->max_tries
  15028. To not to decode "+" as space in URL decode:
  15029. * src/Util.cc
  15030. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15031. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15032. To add timeout to async name resolution:
  15033. * src/AbstractCommand.h
  15034. (nameResolveFinished): New function. This is not elegant way. It needs
  15035. to be more refined.
  15036. (nameResolverCheck): New variable.
  15037. * src/AbstractCommand.cc
  15038. (AbstractCommand): Added nameResolverCheck.
  15039. (execute): Added the check whether the name resolution has finished.
  15040. (setNameResolverCheck): Set nameResolverCheck to true.
  15041. (disableNameResolverCheck): Set nameResolverCheck to false.
  15042. (nameResolverFinished): New function.
  15043. * src/FtpInitiateConnectionCommand.h
  15044. (nameResolverFinished): New function.
  15045. * src/FtpInitiateConnectionCommand.cc
  15046. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15047. * src/HttpInitiateConnectionCommand.h
  15048. (nameResolverFinished): New function.
  15049. * src/HttpInitiateConnectionCommand.cc
  15050. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15051. * src/prefs.h
  15052. (PREF_DNS_TIMEOUT): New definition.
  15053. * src/main.cc
  15054. (main): Added PREF_DNS_TIMEOUT.
  15055. To add the support for a non-compact response from a tracker:
  15056. * src/PeerListProcessor.h: New class.
  15057. * src/DefaultPeerListProcessor.h: New class.
  15058. * src/DefaultPeerListProcessor.cc: New class.
  15059. * src/CompactPeerListProcessor.h: New class.
  15060. * src/CompactPeerListProcessor.cc: New class.
  15061. * src/DelegatingPeerListProcessor.h: New class.
  15062. * src/DelegatingPeerListProcessor.cc: New class.
  15063. * src/TorrentMan.cc
  15064. (addPeer): New function(overload).
  15065. (addPeer): Delete unused peers only when new peer is added.
  15066. * src/TorrentMan.h
  15067. (PeerListProcessor.h): Included.
  15068. (Peers): Removed.
  15069. (addPeer): New function(overload).
  15070. * src/TrackerUpdateCommand.cc
  15071. (netinet/in.h): Removed.
  15072. (DelegatingPeerListProcessor.h): Included.
  15073. (execute): Updated to use DelegatingPeerListProcessor.
  15074. To fix the memory leak in TorrentMan::peers:
  15075. * src/PeerAbstractCommand.cc
  15076. (onAbort): Added peer->resetStatus().
  15077. * src/Peer.h
  15078. (resetStatus): Made public.
  15079. To improve the precision of the speed calculation:
  15080. * src/SpeedCalc.h
  15081. (nextInterval): New variable.
  15082. * src/SpeedCalc.cc
  15083. (reset): Added nextInterval.
  15084. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15085. (changeSw): Set nextInterval to 15 seconds relative to the current
  15086. instant time.
  15087. * src/main.cc
  15088. (showVersion): Updated.
  15089. (showUsage): Updated.
  15090. * Release 0.8.1
  15091. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15092. * src/main.cc
  15093. (showUsage): Commented out --min-segment-size option.
  15094. (main): Commented out --min-segment-size option.
  15095. * Release 0.8.0
  15096. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15097. * src/*.{h,cc}:
  15098. Added an exception to the license which allows linking with OpenSSL.
  15099. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15100. * src/AbstractCommand.cc
  15101. (execute): Check whether the download has finished before checking
  15102. socket status.
  15103. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15104. Do not exit even if no segment is available.
  15105. * src/prefs.h
  15106. (PREF_STARTUP_IDLE_TIME): New definition.
  15107. * src/PeerInteractionCommand.cc
  15108. (executeInternal): Removed max speed limit. Because it performs bad.
  15109. (receiveMessages): Added max speed limit. This was better than above,
  15110. but still a little bit to be desired. Sometimes the download speed
  15111. became much faster than I specified.
  15112. * src/SpeedCalc.h
  15113. (start): New variable.
  15114. (accumulatedLength): New variable.
  15115. (getAvgSpeed): New function.
  15116. * src/SpeedCalc.cc
  15117. (reset): Added start, accumulatedLength.
  15118. (update): Added calculation of an average speed.
  15119. (getAvgSpeed): New function.
  15120. * src/DownloadCommand.h
  15121. (sw): Removed.
  15122. * src/main.cc
  15123. (main): Added PREF_STARTUP_IDLE_TIME.
  15124. * src/PeerStat.h
  15125. (STATUS): Added REQUEST_IDLE.
  15126. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15127. (getAvgDownloadSpeed): New function
  15128. (requestIdle): New function.
  15129. * src/SegmentMan.h
  15130. (SegmentEntryHandle): New type definition.
  15131. (SegmentEntries): Now holds SegmentEntryHandle.
  15132. (findSlowerSegmentEntry): New funtion.
  15133. * src/SegmentMan.cc
  15134. (save): Updated according to the changes in SegmentEntries.
  15135. (read): Updated according to the changes in SegmentEntries.
  15136. (FindSegmentEntryByIndex): Updated according to the changes in
  15137. SegmentEntries.
  15138. (FindSegmentEntryByCuid): Updated according to the changes in
  15139. SegmentEntries.
  15140. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15141. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15142. Renamed uitr as itr.
  15143. (findSlowerSegmentEntry): New function.
  15144. (getSegment): Updated according to the changes in SegmentEntries.
  15145. Added the feature that cancels the segment with slow server and fast
  15146. one takes it over.
  15147. (cancelSegment): Updated according to the changes in SegmentEntries.
  15148. (getDownloadLength): Updated according to the changes in
  15149. SegmentEntries.
  15150. (init): Assigned 0 to bitfield after deleting it.
  15151. * src/DownloadCommand.cc
  15152. (STARTUP_IDLE_TIME): Removed.
  15153. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15154. * src/PeerChokeCommand.cc
  15155. (optUnchokingPeer): Updated according to the changes in Peer.
  15156. (ResetDelta): Removed.
  15157. (UploadFaster): Updated according to the changes in Peer.
  15158. (DownloadFaster): Updated according to the changes in Peer.
  15159. (execute): I clarify the meaning of "upload" and "download" here.
  15160. "upload" means the transfer from localhost to remote host.
  15161. "download" means the transfer from remote host to localhost.
  15162. Based on this rule, I swapped orderByUploadRate and
  15163. orderByDownloadRate.
  15164. * src/PeerInteractionCommand.cc
  15165. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15166. (executeInternal): Removed the argument of
  15167. peerInteraction->sendMessages().
  15168. (receiveMessages): Rewritten download speed limit.
  15169. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15170. * src/HttpResponseCommand.cc
  15171. (handleDefaultEncoding): If file size is unknown in torrent request,
  15172. do not call segmentMan->initBitfield() here.
  15173. Disabled persistent connection feature in torrent request.
  15174. * src/UrlRequestInfo.h
  15175. (UrlRequestInfo): Removed const qualifier from option.
  15176. * src/TorrentMan.h
  15177. (TransferStat): New class.
  15178. (deltaDownloadLength): Removed.
  15179. (deltaUploadLength): Removed.
  15180. (addDeltaDownloadLength): Removed.
  15181. (getDeltaDownloadLength): Removed.
  15182. (resetDeltaDownloadLength): Removed.
  15183. (addDeltaUploadLength): Removed.
  15184. (getDeltaUploadLength): Removed.
  15185. (resetDeltaUploadLength): Removed.
  15186. (addActivePeer): Added peer->activate().
  15187. (deleteActivePeer): Added peer->deactivate().
  15188. (calculateStat): New function.
  15189. * src/TorrentMan.cc
  15190. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15191. (calculateStat): New function.
  15192. * src/PeerInteraction.h
  15193. (uploadLimit): Removed.
  15194. (option): New variable.
  15195. (setUploadLimit): Removed.
  15196. (getUploadSpeed): Removed.
  15197. (sendMessages): Removed the argument "currentUploadSpeed".
  15198. * src/PeerInteraction.cc
  15199. (prefs.h): Included.
  15200. (PeerInteraction): Removed uploadLimit. Added option.
  15201. (sendMessages): Rewritten upload speed limit.
  15202. (sendHandshake): Removed the argument from sendMessages().
  15203. (sendBitfield): Removed the argument from sendMessages().
  15204. * src/PeerAbstractCommand.cc
  15205. (execute): Commented out the portion of upload limit.
  15206. (onAbort): Removed peer->resetStatus().
  15207. * src/TorrentRequestInfo.cc
  15208. (timeoutSpecified): Declared extern.
  15209. (execute): Set timeout to 180 if timeout is not specified by.
  15210. command-line.
  15211. * src/PieceMessage.cc
  15212. (receivedAction): Added peer->updateDownloadLength().
  15213. Removed peer->addPeerUpload().
  15214. Removed torrentMan->addDeltaDownloadLength().
  15215. (send): Added peer->updateUploadLength().
  15216. Removed peer->addPeerDownload().
  15217. Removed torrentMan->addDeltaUploadLength().
  15218. * src/main.cc
  15219. (timeoutSpecified): New variable.
  15220. (main): Set timeoutSpecified to false.
  15221. If the command-line option "--upload-limit" is specified, then
  15222. timeoutSpecified is set to true. This option will remain in the next
  15223. release, but be deprecated in the future release.
  15224. * src/TorrentRequestInfo.h
  15225. (TorrentRequestInfo): Removed const qualifier from op.
  15226. * src/PeerStat.h
  15227. (uploadSpeed): New variable.
  15228. (PeerStat): Added default value to cuid.
  15229. (calculateUploadSpeed): New function.
  15230. (updateUploadLength): New function.
  15231. (getMaxUploadSpeed): New function.
  15232. (getAvgUploadSpeed): New function.
  15233. (reset): Added uploadSpeed. Set status to IDLE.
  15234. * src/TorrentDownloadEngine.h
  15235. (cp): Declared as Time.
  15236. (sessionDownloadLengthArray): Removed.
  15237. (sessionUploadLengthArray): Removed.
  15238. (currentCp): Removed.
  15239. (lastCalcStat): New variable
  15240. (lastElapsed): Removed.
  15241. (sessionDownloadLength): Removed.
  15242. (calculateStat): New function.
  15243. * src/TorrentDownloadEngine.cc
  15244. (initStatistics): Removed lastElapsed, cp[],
  15245. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15246. currentCp, sessionDownloadLength.
  15247. Added cp.reset() and lastCalcStat.reset().
  15248. (calculateSpeed): Changed the name of the argument.
  15249. (calculateStatistics): Rewritten.
  15250. (calculateStat): New function.
  15251. * src/Peer.h
  15252. (PeerStat.h): Included.
  15253. (peerUpload): Removed.
  15254. (peerDownload): Removed.
  15255. (peerStat): New variable.
  15256. (sessionUploadLength): New variable.
  15257. (sessionDownloadLength): New variable.
  15258. (deltaUpload): Removed.
  15259. (deltaDownload): Removed.
  15260. (resetStatus): Made private.
  15261. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15262. Removed peerUpload, peerDownload.
  15263. (updateUploadLength): New function.
  15264. (addDeltaUpload): Removed.
  15265. (updateDownloadLength): New function.
  15266. (resetDeltaUpload): Removed.
  15267. (getDeltaUpload): Removed.
  15268. (addDeltaDownload): Removed.
  15269. (calculateUploadSpeed): New function.
  15270. (resetDeltaDownload): Removed.
  15271. (getDeltaDownload): Removed.
  15272. (calculateDownloadSpeed): New function.
  15273. (getSessionUploadLength): New function.
  15274. (getSessionDownloadLength): New function.
  15275. (activate): New function.
  15276. (deactivate): New function.
  15277. (addPeerUpload): Removed.
  15278. (setPeerUpload): Removed.
  15279. (getPeerUpload): Removed.
  15280. (addPeerDownload): Removed.
  15281. (setPeerDownload): Removed.
  15282. (getPeerDownload): Removed.
  15283. * src/Peer.cc
  15284. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15285. * src/MetalinkRequestInfo.h
  15286. (MetalinkRequestInfo): Removed const qualifier from op.
  15287. * src/RequestInfo.h
  15288. (op): Removed const qualifier.
  15289. (RequestInfo): Removed const qualifier from op.
  15290. * src/prefs.h
  15291. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15292. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15293. * src/PeerInteractionCommand.cc
  15294. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15295. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15296. * src/PeerInteraction.cc
  15297. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15298. * src/main.cc
  15299. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15300. Added the description of "--max-download-limit" option.
  15301. Removed the description of "--upload-limit" option.
  15302. Added the description of "--max-upload-limit" option.
  15303. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15304. Added "--max-download-limit" option and "--max-upload-limit" option.
  15305. Added the warning message if "--upload-limit" option is used.
  15306. * src/DownloadCommand.cc
  15307. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15308. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15309. To rewrite segment download mechanism for HTTP/FTP download.
  15310. Use BitfieldMan to manage segment download.
  15311. * src/HttpResponseCommand.h
  15312. (executeInternal): Pass the reference of segment.
  15313. * src/AbstractCommand.cc
  15314. (prepareForRetry): Call segmentMan->cancelSegment here.
  15315. (onAbort): Call segmentMan->cancelSegment here.
  15316. * src/HttpDownloadCommand.cc
  15317. (prepareForNextSegment): New function.
  15318. * src/DownloadEngineFactory.cc
  15319. (newConsoleEngine): Removed splitter.
  15320. (newTorrentConsoleEngine): Removed splitter.
  15321. * src/Request.h
  15322. (segment): Renamed from seg.
  15323. * src/FtpInitiateConnectionCommand.h
  15324. (executeInternal): Pass the reference of segment.
  15325. * src/AbstractCommand.h
  15326. (executeInternal): Pass the reference of segment.
  15327. * src/pref.h
  15328. (PREF_SEGMENT_SIZE): New definition.
  15329. * src/HttpProxyRequestCommand.h
  15330. (executeInternal): Pass the reference of segment.
  15331. * src/HttpResponseCommand.cc
  15332. (checkResponse): Allowed status 206 when a request range starts 0.
  15333. (handleDefaultEncoding): Rewritten the code related to Segment.
  15334. (handleOtherEncoding): Rewritten the code related to Segment.
  15335. * src/SegmentMan.h
  15336. (SegmentEntry): New class.
  15337. (SegmentEntries): New type definition.
  15338. (bitfield): New variable.
  15339. (usedSegmentEntries): New variable.
  15340. (onNullBitfield): New function.
  15341. (checkoutSegment): New function.
  15342. (segments): Removed.
  15343. (splitter): Removed.
  15344. (unregisterId): Removed.
  15345. (getSegment): New function(overload)
  15346. (getDownloadedSize): Removed.
  15347. (cancelSegment): New function.
  15348. (completeSegment): New function.
  15349. (initBitfield): New function.
  15350. (hasSegment): New function.
  15351. (getDownloadLength): New function.
  15352. * src/BitfieldMan.h
  15353. (getStartIndex): New function.
  15354. (getEndIndex): New function.
  15355. (getMissingUnusedIndex): New function(overload).
  15356. (getSparseMissingUnusedIndex): New function.
  15357. * src/BitfieldMan.cc
  15358. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15359. (getMissingUnusedIndex): New function(overload).
  15360. (Range): New class.
  15361. (getStartIndex): New function.
  15362. (getEndIndex): New function.
  15363. (getSparseMissingUnusedIndex): New function.
  15364. (isBitSetInternal): Return false if the given index is less than 0.
  15365. * src/HttpInitiateConnectionCommand.h
  15366. (executeInternal): Pass the reference of segment.
  15367. * src/FtpNegotiateCommand.h
  15368. (executeInternal): Pass the reference of segment.
  15369. * src/FtpNegotiateCommand.cc
  15370. (recvSize): Initialize bitfield here.
  15371. * src/FtpTunnelResponseCommand.h
  15372. (executeInternal): Pass the reference of segment.
  15373. * src/HttpConnection.cc
  15374. (createRequest): Rewritten range header processing.
  15375. * src/DownloadCommand.h
  15376. (executeInternal): Pass the reference of segment.
  15377. (prepareForRetry): Removed.
  15378. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15379. function.
  15380. * src/main.cc
  15381. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15382. * src/SegmentMan.cc
  15383. (SegmentMan): Added bitfield. Removed splitter.
  15384. (~SegmentMan): Added bitfield. Removed splitter.
  15385. (unregisterId): Removed.
  15386. (getSegment): Rewritten.
  15387. (updateSegment): Rewritten.
  15388. (save): Rewritten.
  15389. (read): Rewritten.
  15390. (finished): Rewritten.
  15391. (getDownloadedSize): Removed.
  15392. (initBitfield): New function.
  15393. (FindSegmentEntryByIndex): New function object.
  15394. (FindSegmentEntryByCuid): New function object.
  15395. (checkoutSegment): New function.
  15396. (onNullBitfield): New function.
  15397. (getSegment): New function(overload).
  15398. (CancelSegment): New function object.
  15399. (cancelSegment): New function.
  15400. (completeSegment): New function.
  15401. (hasSegment): New function.
  15402. (getDownloadLength): New function.
  15403. * src/FtpInitiateConnectionCommand.cc
  15404. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15405. * src/Segment.h: Rewritten.
  15406. * src/Segment.cc (operator<<): New function.
  15407. * src/HttpDownloadCommand.h
  15408. (prepareForNextSegment): New function.
  15409. * src/Request.cc
  15410. (resetUrl): Made segment null.
  15411. * src/DownloadEngine.cc
  15412. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15413. * src/HttpProxyRequestCommand.h
  15414. (executeInternal): Pass the reference of segment.
  15415. * src/DownloadCommand.cc
  15416. (executeInternal): Rewritten the code related to Segment.
  15417. (prepareForRetry): Removed.
  15418. (prepareForNextSegment): Rewritten.
  15419. * src/FtpTunnelResponseCommand.h
  15420. (executeInternal): Pass the reference of segment.
  15421. To add HTTP 1.1 persistent connection support(experimental)
  15422. * src/HttpRequestCommand.cc
  15423. (executeInternal): Disable keep alive if it is disabled by
  15424. configuration.
  15425. * src/Request.h
  15426. (keepAlive): New variable.
  15427. (isKeepAlive): New function.
  15428. (setKeepAlive): New function.
  15429. * src/pref.h
  15430. (PREF_HTTP_KEEP_ALIVE): New definition.
  15431. * src/HttpResponseCommand.cc
  15432. (executeInternal): Check the remote server supports keep alive.
  15433. * src/HttpConnection.cc
  15434. (createRequest): Send "Connection: close" only if keep alive is
  15435. disabled.
  15436. * src/main.cc
  15437. (main):
  15438. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15439. To add max download speed limit:
  15440. * src/pref.h
  15441. (PREF_MAX_SPEED_LIMIT): New definition.
  15442. * src/PeerInteractionCommand.cc
  15443. (executeInternal): Added max download speed limit. Not tested yet.
  15444. * src/SegmentMan.h
  15445. (PeerStats): New type definition.
  15446. (peerStats): New variable.
  15447. (registerPeerStat): New function.
  15448. (FindPeerStat): New function object.
  15449. (getPeerStat): New function.
  15450. (calculateDownloadSpeed): New function.
  15451. * src/SpeedCalc.h: New class.
  15452. * src/SpeedCalc.cc: New class.
  15453. * src/main.cc
  15454. (main):
  15455. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15456. download speed is not restricted).
  15457. * src/PeerStat.h: New class.
  15458. * src/SegmentMan.cc
  15459. (registerPeerStat): New function.
  15460. (calculateDownloadSpeed): New function.
  15461. * src/DownloadCommand.cc
  15462. (STARTUP_IDLE_TIME): New definition.
  15463. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15464. downloadStart.
  15465. (~DownloadCommand): Call peerStat->downloadStop.
  15466. (executeInternal): Added download speed limitter. Rewritten lowest
  15467. speed limitter.
  15468. * src/HttpConnection.cc
  15469. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15470. * src/AbstractCommand.cc
  15471. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15472. Added hostname to the error message.
  15473. * src/ConsoleDownloadEngine.cc
  15474. (calculateStatistics): Initialize psize with dlSize.
  15475. * src/PieceMessage.cc
  15476. (receivedAction): Do not call peerInteraction->abortPiece here.
  15477. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15478. * src/BitfieldMan.h
  15479. (clearAllUseBit): New function.
  15480. (setAllUseBit): New function.
  15481. * src/BitfieldMan.cc
  15482. (clearAllBit): Do not clear useBitfield here.
  15483. (clearAllUseBit): New function.
  15484. (setAllUseBit): New function.
  15485. * src/Piece.cc
  15486. (clearAllBlock): Call bitfield->clearAllUseBit().
  15487. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15488. To make filename URL-decoded:
  15489. * src/HttpResponseCommand.h: Updated doc.
  15490. * src/HttpResponseCommand.cc
  15491. (determinFilename): Made filename URL-decoded.
  15492. * src/FtpInitiateConnectionCommand.cc
  15493. (executeInternal): Made filename URL-decoded.
  15494. * src/Util.h (urldecode): New function.
  15495. * src/Util.cc (urldecode): New function.
  15496. To fix a bug that caused assertion failure in ares_strerror:
  15497. * src/NameResolver.cc (callback): Fixed the bug.
  15498. * Release 0.7.3
  15499. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15500. To add --seed-time and --seed-ratio command-line option:
  15501. * src/Option.h (getAsDouble): New function.
  15502. * src/Option.cc (getAsDouble): New function.
  15503. * src/SeedCheckCommand.h: New class.
  15504. * src/SeedCheckCommand.cc: New class.
  15505. * src/DownloadEngineFactory.cc
  15506. (SeedCheckCommand.h): Included.
  15507. (UnionSeedCriteria.h): Included.
  15508. (TimeSeedCriteria.h): Included.
  15509. (ShareRatioSeedCriteria.h): Included.
  15510. (newTorrentConsoleEngine): Added the processing of seed option.
  15511. * src/SeedCriteria.h: New class.
  15512. * src/ShareRatioSeedCriteria.h: New class.
  15513. * src/TimeSeedCriteria.h: New class.
  15514. * src/UnionSeedCriteria.h: New class.
  15515. * src/prefs.h
  15516. (PREF_SEED_TIME): New definition.
  15517. (PREF_SEED_RATIO): New definition.
  15518. * src/main.cc
  15519. (showUsage): Added --seed-time and --seed-ratio option.
  15520. (main): Added --seed-time and --seed-ratio option.
  15521. Made default log file name "/dev/null".
  15522. * src/SharedHandle.h
  15523. (SharedHandle): Copy constructor. Made it assignable from the
  15524. SharedHandle of the subclasses.
  15525. (operator=): Made it assignable from the SharedHandle of the
  15526. subclasses.
  15527. (getRefCount): New function.
  15528. To add notice log level and the switch to write log to stdout. This
  15529. switch is configurable per log level.
  15530. * src/Logger.h
  15531. (notice): New function.
  15532. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15533. constant.
  15534. * src/LogFactory.cc
  15535. (getInstance): The use of NullLogger was removed. A log message with
  15536. notice log level was made written to stdout along with log file.
  15537. * src/NullLogger.h
  15538. (notice): New function.
  15539. * src/SimpleLogger.h
  15540. (writeHeader): Added the 'file' argument.
  15541. (writeLog): Added the 'file' argument.
  15542. (writeFile): New function.
  15543. (stdoutField): New variable.
  15544. (SimpleLogger): Removed the default constructor.
  15545. (SimpleLogger): Made the default value of logfile 0.
  15546. (debug): Added 'virtual' keyword.
  15547. (info): Added 'virtual' keyword.
  15548. (warn): Added 'virtual' keyword.
  15549. (error): Added 'virtual' keyword.
  15550. (notice): New function.
  15551. (setStdout): New function.
  15552. * src/SimpleLogger.cc
  15553. (WRITE_LOG): Replaced writeLog with writeFile.
  15554. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15555. (SimpleLogger): Removed the default constructor.
  15556. (setStdout): New function.
  15557. (writeLog): Added the handling of NOTICE log level.
  15558. (writeFile): New function.
  15559. (notice): New function.
  15560. * src/TorrentMan.h: Updated doc.
  15561. * src/BitfieldMan.h: Updated doc.
  15562. * src/TrackerWatcherCommand.cc
  15563. (execute): Return true if error occurred in the request to the tracker
  15564. and halt is requested.
  15565. * src/TrackerUpdateCommand.cc
  15566. (execute): Return true if error occurred in the request to the tracker
  15567. and halt is requested.
  15568. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15569. DownloadEngine:
  15570. * src/TorrentConsoleDownloadEngine.h
  15571. (onSelectiveDownloadingCompletes): Removed.
  15572. * src/TorrentConsoleDownloadEngine.cc
  15573. (onSelectiveDownloadingCompletes): Removed.
  15574. * src/TorrentDownloadEngine.h
  15575. (onEndOfRun): Added 'virtual' keyword.
  15576. (afterEachIteration): Removed.
  15577. (onSelectiveDownloadingCompletes): Removed.
  15578. * src/TorrentDownloadEngine.cc
  15579. (onEndOfRun): Removed filenameFixed.
  15580. (afterEachIteration): Removed.
  15581. * src/TorrentMan.cc
  15582. (completePiece): Call onDownloadComplete here.
  15583. (onDownloadComplete): Added 2 log messages.
  15584. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15585. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15586. * src/NameResolver.h: Added the prototype declaration of callback().
  15587. To support c-ares library:
  15588. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15589. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15590. * src/FtpInitiateConnectionCommand.h:
  15591. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15592. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15593. * src/HttpInitiateConnectionCommand.h:
  15594. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15595. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15596. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15597. #1542285 by tizianomueller)
  15598. * src/HttpInitiateConnectionCommand.cc:
  15599. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15600. * src/FtpInitiateConnectionCommand.cc:
  15601. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15602. * src/DownloadEngine.h:
  15603. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15604. * src/DownloadEngine.cc:
  15605. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15606. To fix the bug that causes compilation failure with metalink-support
  15607. disabled(bug#1543587):
  15608. * src/main.cc: Fixed with the patch by tizianomueller.
  15609. * Release 0.7.2
  15610. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15611. * src/main.cc
  15612. (main): Added a message to inform users that aria2 is starting to
  15613. verify checksum.
  15614. * src/RequestInfo.cc
  15615. (printDownloadAbortMessage): Added a message to inform users that
  15616. transfer can be resumed.
  15617. * src/FeatureConfig.cc
  15618. (FEATURE_ASYNC_DNS): New definition.
  15619. (FeatureConfig): Added aysnc DNS entry.
  15620. To replace CommandUuid with Command* in SocketEntry and
  15621. NameResolverEntry:
  15622. * src/DownloadEngine.h
  15623. (CommandUuids): Removed.
  15624. (SocketEntry::commandUuid): Removed.
  15625. (SocketEntry::command): New variable.
  15626. (SocketEntry::SocketEntry): Updated.
  15627. (SocketEntry::operator==): Updated.
  15628. (NameResolverEntry::commandUuid): Removed.
  15629. (NameResolverEntry::command): New variable.
  15630. (NameResolverEntry::NameResolverEntry): Updated.
  15631. (NameResolverEntry::operator==): Updated.
  15632. (waitData): Changed the argument type.
  15633. (addSocketForReadCheck): Changed the argument type.
  15634. (deleteSocketForReadCheck): Changed the argument type.
  15635. (addSocketForWriteCheck): Changed the argument type.
  15636. (deleteSocketForWriteCheck): Changed the argument type.
  15637. (addNameResolverCheck): Changed the argument type.
  15638. (deleteNameResolverCheck): Changed the argument type.
  15639. * src/DownloadEngine.cc
  15640. (FindCommand): Removed.
  15641. (run): Removed activeUuid. Added activeCommands instead.
  15642. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15643. (AccumulateActiveCommand): New function object.
  15644. (waitData): Use AccumulateActiveCommand.
  15645. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15646. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15647. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15648. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15649. (addNameResolverCheck): Use Command instead of CommandUuid.
  15650. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15651. * src/AbstractCommand.cc
  15652. (disableReadCheckSocket): Updated according to the changes in
  15653. DownloadEngine.
  15654. (setReadCheckSocket): Updated according to the changes in
  15655. DownloadEngine.
  15656. (disableWriteCheckSocket): Updated according to the changes in
  15657. DownloadEngine.
  15658. (setWriteCheckSocket): Updated according to the changes in
  15659. DownloadEngine.
  15660. (setNameResolverCheck): Updated according to the changes in
  15661. DownloadEngine.
  15662. (disableNameResolverCheck): Updated according to the changes in
  15663. DownloadEngine.
  15664. * src/AbstractCommand.cc
  15665. (disableReadCheckSocket): Updated according to the changes in
  15666. DownloadEngine.
  15667. (setReadCheckSocket): Updated according to the changes in
  15668. DownloadEngine.
  15669. (disableWriteCheckSocket): Updated according to the changes in
  15670. DownloadEngine.
  15671. (setWriteCheckSocket): Updated according to the changes in
  15672. DownloadEngine.
  15673. * release 0.7.1
  15674. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15675. To handle the case where some BitTorrent tracker requires all letters
  15676. except for [A-Za-z0-9] is URL encoded.
  15677. * src/Util.h
  15678. (torrentUrlencode): New function.
  15679. * src/Util.cc
  15680. (ctype.h): Included.
  15681. (torrentUrlencode): New function.
  15682. * src/TrackerWatcherCommand.cc
  15683. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15684. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15685. To add asynchronous DNS support(libares):
  15686. * src/AbstractCommand.h
  15687. (setNameResolverCheck): New function.
  15688. (disableNameResolverCheck): New function
  15689. (resolveHostname): New function.
  15690. * src/AbstractCommand.cc
  15691. (setNameResolverCheck): New function.
  15692. (disableNameResolverCheck): New function
  15693. (resolveHostname): New function.
  15694. * src/FtpInitiateConnectionCommand.h
  15695. (nameResolver): New function.
  15696. * src/FtpInitiateConnectionCommand.cc
  15697. (Util.h): Included.
  15698. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15699. disableWriteCheckSocket.
  15700. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15701. (executeInternal): Added async DNS support.
  15702. * src/HttpInitiateConnectionCommand.h
  15703. (nameResolver): New function.
  15704. * src/HttpInitiateConnectionCommand.cc
  15705. (DlRetryEx.h): Included.
  15706. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15707. disableWriteCheckSocket.
  15708. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15709. (executeInternal): Added async DNS support.
  15710. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15711. by extern "C" declaration.
  15712. * src/NameResolver.cc: New class.
  15713. * src/Util.h:
  15714. (isNumberAndDotsNotation): New function
  15715. * src/Util.cc
  15716. (isNumberAndDotsNotation): New function.
  15717. * src/DownloadEngine.h
  15718. (NameResolver.h): Included.
  15719. (NameResolverEntry): New class.
  15720. (NameResolverEntries): New type definition.
  15721. (addNameResolverCheck): New function.
  15722. (deleteNameResolverCheck): New function.
  15723. * src/DownloadEngine.cc
  15724. (run): Initialize cp with 0.
  15725. (SetDescriptor::operator()): Added for NameResolverEntry.
  15726. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15727. (waitData): Check nameResolver entries.
  15728. (updateFdSet): Update fds in nameResolver entries.
  15729. (addNameResolverCheck): New function.
  15730. (deleteNameResolverCheck): new function.
  15731. * src/PeerInteractionCommand.cc
  15732. (executeInternal): Fixed wrong socket handling.
  15733. * src/main.cc
  15734. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15735. * src/Util.cc
  15736. (fileChecksum): Removed the call to ctx.digestReset().
  15737. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15738. * po/ru.po: Azamat sent me Russian translation.
  15739. * src/FtpNegotiateCommand.cc
  15740. (recvGreeting): Call disableWriteCheckSocket just after
  15741. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15742. (recvRetr): Recognized status code 125 as a acceptable response code.
  15743. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15744. case-insesitive filesystem(BUG#1531057).
  15745. * src/Time.h: Renamed as TimeA2.h.
  15746. * src/Time.cc: Renamed as TimeA2.cc.
  15747. * src/TimeA2.h: New class.
  15748. * src/TimeA2.cc: New class.
  15749. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15750. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15751. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15752. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15753. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15754. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15755. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15756. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15757. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15758. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15759. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15760. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15761. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15762. * release 0.7.0
  15763. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15764. * src/PeerChokeCommand.h
  15765. (PeerChokeCommand): Rearranged the arguments.
  15766. * src/PeerChokeCommand.cc
  15767. (PeerChokeCommand): Rearranged the arguments.
  15768. * src/MetalinkEntry.h
  15769. (Checksum.h): Included.
  15770. (md5): Removed.
  15771. (sha1): Removed.
  15772. (checksum): New variable.
  15773. (operator=): Updated.
  15774. (check): Removed.
  15775. * src/prefs.h
  15776. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15777. (PREF_FOLLOW_TORRENT): New definition.
  15778. (PREF_SELECT_FILE): New definition.
  15779. (PREF_FOLLOW_METALINK): New definition.
  15780. * src/MetalinkResource.h
  15781. (TYPE_HTTPS): Added to enum TYPE.
  15782. * src/TorrentMan.cc
  15783. (~TorrentMan): Rewritten.
  15784. * src/MultiDiskWriter.cc
  15785. (MultiDiskAdaptor): Updated according to the changes in
  15786. MessageDigestContext.
  15787. (~MultiDiskAdaptor): Updated according to the changes in
  15788. MessageDigestContext.
  15789. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15790. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15791. * src/Util.h
  15792. (fileChecksum): Updated according to the changes in
  15793. MessageDigestContext.
  15794. * src/Util.cc
  15795. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15796. (fileChecksum): Updated according to the changes in
  15797. MessageDigestContext.
  15798. * src/messageDigest.h: Rewritten.
  15799. * src/MetalinkEntry.cc
  15800. (check): Removed.
  15801. (Supported): Updated.
  15802. (dropUnsupportedResource): Fixed a memory leak.
  15803. * src/ShaVisitor.cc
  15804. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15805. (~ShaVisitor): Updated according to the changes in
  15806. MessageDigestContext.
  15807. (visit): Updated according to the changes in MessageDigestContext.
  15808. * src/main.cc
  15809. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15810. command-line option added.
  15811. * src/DownloadEngine.h
  15812. (SocketEntry): New class.
  15813. (SocketEntries): New definition.
  15814. (PairFind): Removed.
  15815. (SockCmdMap): Removed.
  15816. * src/DownloadEngine.cc
  15817. (DownloadEngine): Rewritten.
  15818. (~DownloadEngine): Rewritten.
  15819. (run): Renamed activeCommandUuids as activeUuids.
  15820. (SetDescriptor): Rewritten.
  15821. (AccumulateActiveCommandUuid): Removed.
  15822. (AccumulateActiveUuid): New function object.
  15823. (waitData): Rewritten.
  15824. (updateFdSet): Rewritten.
  15825. (addSocket): Rewritten.
  15826. (deleteSocket): Rewritten.
  15827. (addSocketForReadCheck): Rewritten.
  15828. (deleteSocketForReadCheck): Rewritten.
  15829. (addSocketForWriteCheck): Rewritten.
  15830. (deleteSocketForWriteCheck): Rewritten.
  15831. * src/Xml2MetalinkProcessor.cc
  15832. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15833. * src/DownloadCommand.cc
  15834. (executeInternal): Added the check routine for lowest speed limit.
  15835. * src/AbstractDiskWriter.cc
  15836. (AbstractDiskWriter): Updated according to the changes in
  15837. MessageDigestContext.
  15838. (~AbstractDiskWriter): Updated according to the changes in
  15839. MessageDigestContext.
  15840. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15841. * src/RequestInfo.h: New class.
  15842. * src/UrlRequestInfo.h: New class.
  15843. * src/UrlRequestInfo.cc: New class.
  15844. * src/TorrentRequestInfo.h: New class.
  15845. * src/TorrentRequestInfo.cc: New class.
  15846. * src/MetalinkRequestInfo.h: New class.
  15847. * src/MetalinkRequestInfo.cc: New class.
  15848. * src/Checksum.h: New class.
  15849. * src/DownloadEngineFactory.h: New class.
  15850. * src/DownloadEngineFactory.cc: New class.
  15851. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15852. * src/Option.h
  15853. (getAsBool): New function.
  15854. * src/Option.cc
  15855. (prefs.h): Included.
  15856. (defined): 0-length value is now recognized as undefined.
  15857. (getAsInt): Rewritten.
  15858. (getAsLLInt): Rewritten.
  15859. (getAsBool): New function.
  15860. * src/FeatureConfig.h: Rewritten.
  15861. * src/FeatureConfig.cc: Rewritten.
  15862. * src/prefs.h
  15863. (PREF_STDOUT_LOG): New definition.
  15864. (PREF_LOG): New definition.
  15865. (PREF_DIR): New definition.
  15866. (PREF_OUT): New definition.
  15867. (PREF_SPLIT): New definition.
  15868. (PREF_DAEMON): New definition.
  15869. (PREF_REFERER): New definition.
  15870. (PREF_TORRENT_FILE): New definition.
  15871. (PREF_LISTEN_PORT): New definition.
  15872. (PREF_METALINK_FILE): New definition.
  15873. (PREF_METALINK_VERSION): New definition.
  15874. (PREF_METALINK_LANGUAGE): New definition.
  15875. (PREF_METALINK_OS): New definition.
  15876. (PREF_METALINK_SERVERS): New definition.
  15877. * src/main.cc
  15878. (main): Following command-line parameters are now put into Option
  15879. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15880. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15881. metalinkLanguage, metalinkOs, metalinkServers
  15882. To fix the bug that aria2 can not handle http response header properly.
  15883. * src/HttpHeader.cc
  15884. (put): Made name lowercased.
  15885. (defined): Made name lowercased.
  15886. (getFirst): Made name lowercased.
  15887. (get): Made name lowercased.
  15888. (getFirstAsInt): Rewritten.
  15889. (getFirstAsLLInt): Rewritten.
  15890. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15891. * src/TorrentMan.h:
  15892. (advertisePiece): Updated doc.
  15893. (getAdvertisedPieceIndexes): Updated doc.
  15894. (removeAdvertisedPiece); New function.
  15895. * src/TorrentMan.cc
  15896. (FindElapsedHave): New function object.
  15897. (removeAdvertisedPiece): New function.
  15898. * src/HaveEraseCommand.h: New class.
  15899. * src/HaveEraseCommand.cc: New class.
  15900. * src/FeatureConfig.h: New class.
  15901. * src/FeatureConfig.cc: New class.
  15902. * src/Request.h
  15903. (defaultPorts): Removed.
  15904. * src/Request.cc
  15905. (FeatureConfig.h): Included.
  15906. (Request): Removed the statements related to defaultPorts.
  15907. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15908. A default port number is now retrieved from FeatureConfig.
  15909. * src/main.cc
  15910. (HaveEraseCommand.h): Included.
  15911. (showVersion): Added the output of feature list.
  15912. (main): Added HaveEraseCommand to command queue in BitTorrent
  15913. downloading.
  15914. * src/PeerInteractionCommand.h
  15915. (chokeCheckPoint): Commented out.
  15916. (periodicExecPoint): New variable.
  15917. * src/PeerInteractionCommand.cc
  15918. (executeInternal): Following methods are now called in at least every
  15919. 0.5 seconds to reduce CPU usage:
  15920. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15921. checkHave(), sendKeepAlive().
  15922. (checkLongTimePeerChoking): Commented out.
  15923. * src/BitfieldMan.h
  15924. (getNthBitIndex): Changed the method signature.
  15925. (getMissingIndexRandomly): Changed the method signature.
  15926. * src/BitfieldMan.cc
  15927. (getNthBitIndex): Rewritten
  15928. (getMissingIndexRandomly): Rewritten.
  15929. (hasMissingPiece): Rewritten.
  15930. (getMissingIndex): Refactored.
  15931. (getMissingUnusedIndex); Refactored.
  15932. (getMissingIndex): Refactored.
  15933. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15934. * src/PeerMessage.h
  15935. (Piece.h): Included.
  15936. (SharedHandle.h): Included.
  15937. (invalidate): New variable.
  15938. (uploading): New variable.
  15939. (isInvalidate): New function.
  15940. (isUploading): New function.
  15941. (onPush): New function.
  15942. (onChoked): New function.
  15943. (onCanceled): New function.
  15944. (onAbortPiece): New function.
  15945. (PeerMessageHandle): New type definition.
  15946. * src/PeerMessage.cc
  15947. (PeerMessage): Added the initialization for invalidate and uploading.
  15948. * src/CancelMessage.h
  15949. (CancelMessage): Rewritten.
  15950. * src/RejectMessage.h
  15951. (RejectMessage): Rewritten.
  15952. * src/Metalinker.h
  15953. (operator=): Defined.
  15954. * src/MetaEntry.h
  15955. (operator=): Defined.
  15956. * src/MetalinkResource.h
  15957. (operator=): Defined.
  15958. * src/AllowedFastMessage.h
  15959. (AllowedFastMessage): Rewritten.
  15960. * src/HandshakeMessage.h
  15961. (HandshakeMessage): New function(overload).
  15962. * src/HandshakeMessage.cc
  15963. (HandshakeMessage): Rewritten.
  15964. (init): New function.
  15965. * src/HaveMessage.h
  15966. (HaveMessage): Rewritten.
  15967. * src/Time.h
  15968. (operator=): Defined the function body here.
  15969. * src/Time.cc
  15970. (operator=): Removed.
  15971. * src/SocketCore.h
  15972. (operator==): Defined here.
  15973. (operator!=): Defined here.
  15974. (operator<): Defined here.
  15975. * src/SocketCore.cc
  15976. (operator==): Removed.
  15977. (operator<): Removed.
  15978. * src/BitfieldMan.h
  15979. (operator=): Defined the function body here.
  15980. * src/BitfieldMan.cc
  15981. (operator=): Removed.
  15982. * src/TorrentMan.h
  15983. (deleteErrorPeer): Removed.
  15984. (deleteUnusedPeer); New function.
  15985. * src/TorrentMan.cc
  15986. (addPeer): Call deleteUnusedPeer.
  15987. (deleteErrorPeer): Removed.
  15988. (deleteUnusedPeer): New function.
  15989. * src/PeerAbstractCommand.h
  15990. (setNoCheck): New function.
  15991. (noCheck): New variable.
  15992. * src/PeerAbstractCommand.cc
  15993. (PeerAbstractCommand): Added the initialization of noCheck.
  15994. (execute): Added a check for noCheck.
  15995. (setNoCheck): New function.
  15996. * src/Util.h
  15997. (stdio.h): Included.
  15998. * src/Util.cc
  15999. (unistd.h): Included.
  16000. * src/DefaultDiskWriter.cc
  16001. (unistd.h): Included.
  16002. * src/Peer.h
  16003. (operator==): Defined the function body here.
  16004. (operator!=): Defined the function body here.
  16005. * src/Peer.cc
  16006. (operator==): Removed.
  16007. (operator!=): Removed.
  16008. * src/Piece.h
  16009. (Piece): Defined the function body here(copy constructor).
  16010. (operator=): Defined the function body here.
  16011. (operator==): Defined the function body here.
  16012. * src/Piece.cc
  16013. (Piece): Removed(copy constructor).
  16014. (operator=): Removed.
  16015. (operator==): Removed.
  16016. * src/PeerMessageUtil.h
  16017. (ChokeMessage.h): Removed.
  16018. (UnchokeMessage.h): Removed.
  16019. (InterestedMessage.h): Removed.
  16020. (NotInterestedMessage.h): Removed.
  16021. (HaveMessage.h): Removed.
  16022. (BitfieldMessage.h): Removed.
  16023. (RequestMessage.h): Removed.
  16024. (CancelMessage.h): Removed.
  16025. (PieceMessage.h): Removed.
  16026. (HandshakeMessage.h): Removed.
  16027. (KeepAliveMessage.h): Removed.
  16028. (PortMessage.h): Removed.
  16029. (HaveAllMessage.h): Removed.
  16030. (HaveNoneMessage.h): Removed.
  16031. (PeerConnection.h): Removed.
  16032. (HandshakeMessage.h): Included.
  16033. * src/BitfieldMessage.h
  16034. (init): New function.
  16035. (BitfieldMessage): Rewritten.
  16036. (BitfieldMessage): New function(overload).
  16037. * src/RequestSlot.h
  16038. (operator=): Defined the function body here.
  16039. (operator==): Defined the function body here.
  16040. * src/RequestSlot.cc
  16041. (operator=): Removed.
  16042. (operator==): Removed.
  16043. To remove the dependency on the PeerMessage subclass from
  16044. PeerInteraction:
  16045. * src/PeerMessageFactory.h: New class.
  16046. * src/PeerMessageFactory.cc: New class.
  16047. * src/SimplePeerMessage.cc
  16048. (send): If invalidate is true then do nothing.
  16049. * src/PeerInteractionCommand.cc
  16050. (HandshakeMessage.h): Included.
  16051. (KeepAliveMessage.h): Included.
  16052. (ChokeMessage.h): Included.
  16053. (UnchokeMessage.h): Included.
  16054. (HaveMessage.h): Included.
  16055. (executeInternal): Call setNoCheck().
  16056. Removed setWriteCheckSocket(socket).
  16057. * src/PeerInteraction.h
  16058. (ChokeMessage.h): Removed.
  16059. (UnchokeMessage.h): Removed.
  16060. (InterestedMessage.h): Removed.
  16061. (NotInterestedMessage.h): Removed.
  16062. (HaveMessage.h): Removed.
  16063. (BitfieldMessage.h): Removed.
  16064. (RequestMessage.h): Removed.
  16065. (CancelMessage.h): Removed.
  16066. (PieceMessage.h): Removed.
  16067. (HandshakeMessage.h): Removed.
  16068. (KeepAliveMessage.h): Removed.
  16069. (PortMessage.h): Removed.
  16070. (HaveAllMessage.h): Removed.
  16071. (HaveNoneMessage.h): Removed.
  16072. (RejectMessage.h): Removed.
  16073. (AllowedFastMessage.h): Removed.
  16074. (SuggestPieceMessage.h): Removed.
  16075. (PeerMessageFactory.h): Included.
  16076. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16077. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16078. (PeerMessageFactory): New variable.
  16079. (createPeerMessage): Removed.
  16080. (createHandshakeMessage): Removed.
  16081. (setPeerMessageCommonProperty): Removed.
  16082. (addRequestSlot): New function.
  16083. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16084. (getPeerMessageFactory): New function.
  16085. (createRequestMessage): Removed.
  16086. (createCancelMessage): Removed.
  16087. (createPieceMessage): Removed.
  16088. (createHaveMessage): Removed.
  16089. (createChokeMessage): Removed.
  16090. (createUnchokeMessage): Removed.
  16091. (createInterestedMessage): Removed.
  16092. (createNotInterestedMessage): Removed.
  16093. (createBitfieldMessage): Removed.
  16094. (createKeepAliveMessage): Removed.
  16095. (createHaveAllMessage): Removed.
  16096. (createHaveNoneMessage): Removed.
  16097. (createRejectMessage): Removed.
  16098. (createAllowedFastMessage): Removed.
  16099. * src/PeerInteraction.cc
  16100. (PeerInteraction): Allocate PeerMessageFactory here.
  16101. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16102. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16103. PieceMessage::ID.
  16104. (addMessage): Simplified by using PeerMessage::onPush().
  16105. (addRequestSlot): New function.
  16106. (rejectAllPieceMessageInQueue): Simplified by using
  16107. PeerMessage::onChoked().
  16108. (rejectPieceMessageInQueue): Simplified by using
  16109. PeerMessage::onCanceled().
  16110. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16111. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16112. (createHandshakeMessage): Removed.
  16113. (createPeerMessage): Removed.
  16114. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16115. (setPeerMessageCommonProperty): Removed.
  16116. (createRequestMessage): Removed.
  16117. (createCancelMessage): Removed.
  16118. (createPieceMessage): Removed.
  16119. (createHaveMessage): Removed.
  16120. (createChokeMessage): Removed.
  16121. (createUnchokeMessage): Removed.
  16122. (createInterestedMessage): Removed.
  16123. (createNotInterestedMessage): Removed.
  16124. (createBitfieldMessage): Removed.
  16125. (createKeepAliveMessage): Removed.
  16126. (createHaveAllMessage): Removed.
  16127. (createHaveNoneMessage): Removed.
  16128. (createRejectMessage): Removed.
  16129. (createAllowedFastMessage): Removed.
  16130. * src/PieceMessage.h
  16131. (createRejectMessage): New function.
  16132. (PieceMessage): Rewritten.
  16133. (onChoked): New function.
  16134. (onCanceled): New function.
  16135. * src/PieceMessage.cc
  16136. (send): If invalidate is true then do nothing, just return.
  16137. (createRejectMessage): New function.
  16138. (onChoked): New function.
  16139. (onCanceled): New function.
  16140. * src/RequestMessage.h
  16141. (RequestMessage): Rewritten.
  16142. (onPush): New function.
  16143. (onAbortPiece): New function.
  16144. * src/RequestMessage.cc
  16145. (onPush): New function.
  16146. (onAbortPiece): New function.
  16147. Update fd_set when a socket is added or deleted in order to improve
  16148. performance:
  16149. * src/DownloadEngine.h
  16150. (rfdset): New variable.
  16151. (wfdset): New variable.
  16152. (updateFdSet): New function.
  16153. * src/DownloadEngine.cc
  16154. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16155. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16156. (waitData): Copy rfdset and wfdset.
  16157. (updateFdSet): New function.
  16158. (addSocket): Call updateFdSet.
  16159. (deleteSocket): Call updateFdSet.
  16160. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16161. To add the support for Metalink3.0 backward compatible links:
  16162. * src/Request.h
  16163. (SAFE_CHARS): Added '#'.
  16164. (METALINK_MARK): New definition.
  16165. * src/Request.cc
  16166. (parseUrl): Added the support for Metalink3.0 backward compatible
  16167. links.
  16168. etc
  16169. * src/PeerInteraction.cc
  16170. (MsgPushBack): Removed.
  16171. (sendMessages): Use STL copy and back_inserter.
  16172. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16173. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16174. * src/TorrentMan.h
  16175. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16176. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16177. * src/SharedHandle.h: New class.
  16178. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16179. * src/HttpResponseCommand.h
  16180. (HttpResponseCommand): Wrapped Socket.
  16181. * src/SocketCore.h
  16182. (operator==): New function.
  16183. (operator!=): New function.
  16184. (operator<): New function.
  16185. (getSockfd): New function.
  16186. (isOpen): New function.
  16187. (writeData): New function.
  16188. * src/SocketCore.cc
  16189. (operator==): New function.
  16190. (operator!=): New function.
  16191. (operator<): New function.
  16192. * src/AbstractCommand.h
  16193. (socket): Changed its type to SocketHandle.
  16194. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16195. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16196. (disableReadCheckSocket): New function.
  16197. (disableWriteCheckSocket): New function.
  16198. (readCheckTarget): Changed its type to SocketHandle.
  16199. (writeCheckTarget): Changed its type to SocketHandle.
  16200. (AbstractCommand): Replaced Socket with SocketHandle.
  16201. * src/AbstractCommand.cc
  16202. (AbstractCommand): Replaced Socket with SocketHandle.
  16203. (~AbstractCommand): Removed the deallocation for Socket object.
  16204. (disableReadCheckSocket): New function.
  16205. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16206. (disableWriteCheckSocket): New function.
  16207. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16208. * src/HttpDownloadCommand.cc
  16209. (DownloadCommand): Replaced Socket with SocketHandle.
  16210. * src/PeerAbstractCommand.h
  16211. (socket): Changed its type to SocketHandle.
  16212. (peer): Changed its type to PeerHandle.
  16213. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16214. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16215. (disableReadCheckSocket): New function.
  16216. (disableWriteCheckSocket): New function.
  16217. (readCheckTarget): Changed its type to SocketHandle.
  16218. (writeCheckTarget): Changed its type to SocketHandle.
  16219. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16220. Replaced Peer with PeerHandle.
  16221. * src/HttpRequestCommand.cc
  16222. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16223. Use disableReadCheckSocket.
  16224. * src/PeerInitiateConnectionCommand.h
  16225. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16226. * src/PeerChokeCommand.cc
  16227. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16228. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16229. (execute): Use PeerHandle.
  16230. * src/PeerConnection.h
  16231. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16232. (socket): Changed its type to SocketHandle.
  16233. (PeerConnection): Replaced Socket with SocketHandle.
  16234. * src/PeerConnection.cc
  16235. (PeerConnection): Replaced Socket with SocketHandle.
  16236. * src/PeerInteractionCommand.h
  16237. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16238. Replaced Peer with PeerHandle.
  16239. * src/PeerInteractionCommand.cc
  16240. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16241. Replaced Peer with PeerHandle.
  16242. (executeInternal): Use disableWriteCheckSocket.
  16243. Use HandshakeMessageHandle.
  16244. (receiveMessages): Use PeerMessageHandle.
  16245. (prepareForNextPeer): Use PeerHandle.
  16246. * src/HttpProxyRequestCommand.h
  16247. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16248. * src/HttpResponseCommand.cc
  16249. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16250. * src/TorrentMan.cc
  16251. (nullPeer): Added external reference.
  16252. (~TorrentMan): Removed the deallocation of the elements of peers.
  16253. (addPeer): Rewritten.
  16254. (isPeerAvailable): Use nullPeer.
  16255. (deleteOldpeers): Replaced with deleteErrorPeer.
  16256. (deleteErrorPeer): New function.
  16257. (getPeer): Use PeerHandle and nullPeer.
  16258. (hasMissingPiece): Replaced Peer with PeerHandle.
  16259. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16260. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16261. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16262. (getMissingPiece): Replaced Peer with PeerHandle.
  16263. * src/FtpNegotiateCommand.cc
  16264. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16265. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16266. (recvGreeting): Use disableWriteCheckSocket.
  16267. (recvPasv): Removed the allocation of Socket.
  16268. Use disableReadCheckSocket.
  16269. (sendRestPasv): Use disableWriteCheckSocket.
  16270. (recvRetr): Changed assertion.
  16271. * src/PeerInteraction.h
  16272. (SharedHandle.h): Included SharedHandle.h.
  16273. (PeerMessageHandle): New type definition.
  16274. (HandshakeMessageHandle): New type definition.
  16275. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16276. (peer): Changed its type to PeerHandle.
  16277. (createHandshakeMessage): Replaced HandshakeMessage with
  16278. HandshakeMessageHandle.
  16279. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16280. (PeerInteraction): Replaced Peer with PeerHandle.
  16281. Replaced Socket with SocketHandle.
  16282. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16283. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16284. (receiveHandshake): Replaced HandshakeMessage with
  16285. HandshakeMessageHandle.
  16286. * src/PeerInteraction.cc
  16287. (PeerInteraction): Replaced Peer with PeerHandle.
  16288. Replaced Socket with SocketHandle.
  16289. (~PeerInteraction): Removed the deallocation of the elements of
  16290. messageQueue.
  16291. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16292. (isSendingMessageInProgress): Replaced PeerMessage with
  16293. PeerMessageHandle.
  16294. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16295. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16296. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16297. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16298. (abortPiece): Use PeerMessageHandle.
  16299. (receiveHandshake): Replaced HandshakeMessage with
  16300. HandshakeMessageHandle. Removed try-catch block.
  16301. (createHandshakeMessage): Replaced HandshakeMessage with
  16302. HandshakeMessageHandle.
  16303. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16304. Removed try-catch block.
  16305. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16306. * src/HttpProxyResponseCommand.cc
  16307. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16308. * src/FtpTunnelResponseCommand.h
  16309. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16310. * src/HttpConnection.cc
  16311. (HttpConnection): Replaced Socket with SocketHandle.
  16312. * src/PeerAbstractCommand.cc
  16313. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16314. (~PeerAbstractCommand): Removed the deallocation of socket.
  16315. Use disableReadCheckSocket, disableWriteCheckSocket.
  16316. (disableReadCheckSocket): New function.
  16317. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16318. (disableWriteCheckSocket): New function.
  16319. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16320. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16321. * src/FtpTunnelRequestCommand.cc
  16322. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16323. (~FtpTunnelRequestCommand): Corrected indentation.
  16324. * src/DownloadCommand.h
  16325. (DownloadCommand): Replaced Socket with SocketHandle.
  16326. * src/PeerListenCommand.cc
  16327. (PeerListenCommand): Removed the initialization of socket.
  16328. (~PeerListenCommand): Removed the deallocation of socket.
  16329. (bindPort): Use SocketHandle.
  16330. (execute): Use SocketHandle and PeerHandle.
  16331. * src/FtpDowndloadCommand.cc
  16332. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16333. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16334. * src/main.cc
  16335. (main): Corrected indentation.
  16336. * src/HttpInitiateConnectionCommand.cc
  16337. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16338. (executeInternal): Removed the allocation of socket.
  16339. * src/HttpRequestCommand.h
  16340. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16341. * src/FtpNegotiationCommand.h
  16342. (dataSocket): Changed its type to SocketHandle.
  16343. (serverSocket): Changed its type to SocketHandle.
  16344. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16345. * src/TorrentMan.h
  16346. (MAX_PEER_UPDATE): Removed.
  16347. (MAX_PEERS): New definition.
  16348. (Peers): The element is now of type PeerHandle.
  16349. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16350. (getPeer): Replaced Peer with PeerHandle.
  16351. (deleteOldErrorPeers): Removed.
  16352. (deleteErrorPeer): New function.
  16353. (hasMissingPiece): Replaced Peer with PeerHandle.
  16354. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16355. (getMissingPiece): Replaced Peer with PeerHandle.
  16356. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16357. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16358. (addActivePeer): Replaced Peer with PeerHandle.
  16359. (deleteActivePeer): Replaced Peer with PeerHandle.
  16360. Added a check for the return value of find.
  16361. * src/FtpTunnelResponseCommand.cc
  16362. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16363. * src/FtpInitiateConnectionCommand.cc
  16364. (executeInternal): Removed the allocation of socket.
  16365. * src/DownloadEngine.h
  16366. (Sockets): An element is now of type SocketHandle.
  16367. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16368. (CommandUuids): New type definition.
  16369. (rsockets): Changed its type to SockCmdMap.
  16370. (wsockets): Changed its type to SockCmdMap.
  16371. (addSocket): Rewritten.
  16372. (deleteSocket): Rewritten.
  16373. (addSocketForReadCheck): Rewritten.
  16374. (deleteSocketForReadCheck): Rewritten.
  16375. (addSocketForWriteCheck): Rewritten.
  16376. (deleteSocketForWriteCheck): Rewritten.
  16377. (PairFind): New template class.
  16378. * src/HttpDownloadCommand.h
  16379. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16380. * src/FtpConnection.cc
  16381. (FtpConnection): Replaced Socket with SocketHandle.
  16382. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16383. block.
  16384. * src/InitiateConnectionCommandFactory.cc
  16385. (DlAbortEx.h): Included DlAbortEx.h.
  16386. (createInitiateConnectionCommand): Throw exception if the protocol of
  16387. requested URI is not supported.
  16388. * src/Peer.cc
  16389. (nullPeer): Changed its type to PeerHandle.
  16390. (operator==): New function.
  16391. (operator!=): New function.
  16392. * src/Peer.h
  16393. (SharedHandle.h): Included SharedHandle.h.
  16394. (operator==): New function.
  16395. (operator!=): New function.
  16396. (Peer): Added the default constructor.
  16397. Use resetStatus() to initialize member variables.
  16398. (nullPeer): Removed.
  16399. * src/TrackerUpdateCommand.cc
  16400. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16401. with MIN_PEERS.
  16402. * src/PeerListenCommand.h
  16403. (socket): Changed its type to SocketHandle.
  16404. * src/Command.h
  16405. (CommandUuid): New type definition.
  16406. (uuid): New variable.
  16407. (uuidGen): New variable.
  16408. (Command): Added the initialization of uuid.
  16409. (getUuid): New function.
  16410. * src/Socket.h
  16411. (Socket): Removed.
  16412. (SocketHandle): New type definition.
  16413. * src/DownloadEngine.h
  16414. (FindCommand): New function object.
  16415. (run): The portion of socket check was rewritten.
  16416. (SetDescriptor): New function object.
  16417. (AccumulateActiveCommandUuid): New function object.
  16418. (waitData): Rewritten.
  16419. (addSocket): Rewritten.
  16420. (deleteSocket): Rewritten.
  16421. (addSocketForReadCheck): Rewritten.
  16422. (addSocketForWriteCheck): Rewritten.
  16423. (deleteSocketForReadCheck): Rewritten.
  16424. (deleteSocketForWriteCheck): Rewritten.
  16425. * src/HttpProxyResponseCommand.h
  16426. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16427. * src/HttpConnection.h
  16428. (socket): Changed its type to SocketHandle.
  16429. (HttpConnection): Replaced Socket with SocketHandle.
  16430. * src/PeerInitiateConnectionCommand.cc
  16431. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16432. (executeInternal): Removed the allocation of socket.
  16433. (prepareForNextPeer): Use PeerHandle.
  16434. * src/PeerMessage.h
  16435. (peer): Changed its type to PeerHandle.
  16436. (getPeer): Replaced Peer with PeerHandle.
  16437. (setPeer): Replaced Peer with PeerHandle.
  16438. * src/DownloadCommand.cc
  16439. (DownloadCommand): Replaced Socket with SocketHandle.
  16440. * src/FtpConnection.h
  16441. (socket): Changed its type to SocketHandle.
  16442. (FtpConnection): Replaced Socket with SocketHandle.
  16443. (sendPort); Replaced Socket with SocketHandle.
  16444. * src/FtpDowndloadCommand.h
  16445. (ctrlSocket): Changed its type to SocketHandle.
  16446. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16447. * src/HttpProxyRequestCommand.cc
  16448. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16449. * src/FtpTunnelRequestCommand.h
  16450. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16451. etc
  16452. * src/PeerChokeCommand.h
  16453. (setAllPeerChoked): Removed.
  16454. (setAllPeerResetDelta): Removed.
  16455. * src/PeerChokeCommand.cc
  16456. (setAllPeerChoked): Removed.
  16457. (ChokePeer): New function object.
  16458. (setAllPeerResetDelta): Removed.
  16459. (ResetDelta): New function object.
  16460. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16461. (execute): Show download speed when the local node is a seeder.
  16462. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16463. using STL.
  16464. * src/TrackerWatcherCommand.h
  16465. (MIN_PEERS): Removed.
  16466. * src/TorrentMan.cc
  16467. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16468. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16469. To fix the bug that .aria2 file is not saved if downloading is stopped
  16470. by the errors:it results that aria2 can not resume downloading:
  16471. * src/main.cc
  16472. (normalDownload): Added the call to save().
  16473. (main): Added the deletion of the elements in 'reserved'.
  16474. To fix log:
  16475. * src/PeerInteraction.cc
  16476. (receiveHandshake): Fixed log.
  16477. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16478. To improve download performance in BitTorrent:
  16479. * src/TorrentMan.cc
  16480. (getPeer): Check the number of connections. Return nullPeer if
  16481. it is greater than MAX_PEER_UPDATE.
  16482. This code was originally here, but was removed in 0.5.1.
  16483. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16484. To improve the conditional compilation:
  16485. * src/MultiDiskWriter.h:
  16486. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16487. * src/MultiDiskWriter.cc:
  16488. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16489. * src/Util.h:
  16490. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16491. Added ENABLE_BITTORRENT around computeFastSet().
  16492. * src/Util.cc:
  16493. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16494. Added ENABLE_BITTORRENT around computeFastSet().
  16495. * src/messageDigest.h:
  16496. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16497. * src/ShaVisitor.h:
  16498. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16499. * src/ShaVisitor.cc:
  16500. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16501. * src/main.cc:
  16502. Added ENABLE_BITTORRENT around includes and blocks related to
  16503. BitTorrent.
  16504. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16505. digest support is not available.
  16506. * src/AbstractDiskWriter.h:
  16507. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16508. * src/AbstractDiskWriter.cc:
  16509. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16510. * src/MetalinkEntry.cc
  16511. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16512. support is not available.
  16513. To add command-line options for Metalink:
  16514. * src/main.cc:
  16515. Added metalink-version, metalink-language, metalink-os,
  16516. follow-metalink.
  16517. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16518. * src/main.cc: Use these definition.
  16519. * Release 0.6.0
  16520. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16521. To add Metalink support(http/ftp only):
  16522. * src/AbstractCommand.h
  16523. (tryReserved): New function.
  16524. * src/AbstractCommand.cc
  16525. (execute): Call tryReserved().
  16526. (tryReserved): New function.
  16527. * src/Request.h
  16528. (Requests): New type definition.
  16529. * src/SegmentMan.h
  16530. (reserved): New variable.
  16531. * src/Util.h
  16532. (fileChecksum): New function.
  16533. (toUpper): New function.
  16534. (toLower): New function.
  16535. * src/Util.cc
  16536. (messageDigest.h): Included.
  16537. (trim): Trim \r\n\t.
  16538. (fileChecksum): New function.
  16539. (toUpper): New function.
  16540. (toLower): New function.
  16541. * src/main.cc
  16542. (normalDownload): New function.
  16543. (main): Added 2 command-line options: metalink-file,
  16544. metalink-connection. Their usage has not been written yet.
  16545. * src/MetalinkProcessor.h: New class.
  16546. * src/Xml2MetalinkProcessor.h: New class.
  16547. * src/Xml2MetalinkProcessor.cc: New class.
  16548. * src/MetalinkEntry.h: New class.
  16549. * src/MetalinkEntry.cc: New class.
  16550. * src/MetalinkResource.h: New class.
  16551. * src/MetalinkResource.cc: New class.
  16552. To add md5 message digest checking:
  16553. * src/messageDigest.h: Rewritten.
  16554. * src/MultiDiskWriter.cc: Updated according to the changes in
  16555. messageDigest.h.
  16556. * src/ShaVisitor.cc: Updated according to the changes in
  16557. messageDigest.h.
  16558. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16559. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16560. messageDigest.h.
  16561. To fix a bug that causes segfault when the payload length in peer
  16562. message is less than 0:
  16563. * src/PeerConnection.cc:
  16564. (receiveMessage): Fixed the bug.
  16565. * src/PeerMessageUtil.cc
  16566. (checkLength): Throw an exception if length is less than or equals to
  16567. 0.
  16568. To add new interfaces to Base64 encoding/decoding:
  16569. * src/Base64.h
  16570. (part_encode): Changed the method signature.
  16571. (encode): New function(overload).
  16572. (decode): New function(overload).
  16573. * src/Base64.cc
  16574. (part_encode): Rewritten.
  16575. (encode): Rewritten.
  16576. (encode): New function(overload).
  16577. To prevent a peer to download same piece if there is an error in
  16578. checksum:
  16579. * src/PieceMessage.cc
  16580. (receivedAction): Call peerInteraction->abortPiece().
  16581. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16582. To fix the bug that causes same have message is sent many times to
  16583. a single peer.
  16584. * src/Time.cc
  16585. (isNewer): Use Util::difftv().
  16586. * src/Util.cc
  16587. (difftv): Added a cast to (long long int).
  16588. * src/TorrentMan.cc
  16589. (advertisePiece): Use push_front.
  16590. (getAdvertisedPieceIndexes): A performance improvement was made.
  16591. To fix the bug that sends tracker requests without a sleep interval
  16592. when the number of connections is less than 15.
  16593. * src/TrackerWatcherCommand.cc
  16594. (execute): Now the number of connections is not a factor to decide
  16595. whether or not a tracker request should be sent or not.
  16596. * src/Time.h
  16597. (setTimeInSec): New function.
  16598. * src/Time.cc
  16599. (setTimeInSec): New function.
  16600. etc.
  16601. * src/ChokeMessage.cc
  16602. (receivedAction): Removed peer->snubbing = false
  16603. * src/PeerConnection.h
  16604. (receiveHandshake): Updated doc.
  16605. * src/TorrentMan.h
  16606. (getAdvertisedPieceIndexes): Updated the method signature.
  16607. * src/TorrentMan.cc
  16608. (getAdvertisedPieceIndexes): Updated the method signature.
  16609. * src/Time.h
  16610. (getTimeInMicros): Added a cast to (long long int).
  16611. (getTimeInMillis): Added a cast to (long long int).
  16612. * Release 0.5.2
  16613. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16614. To make a listening socket non-block:
  16615. * src/SocketCore.h
  16616. (setNonBlockingMode): New function.
  16617. * src/SocketCore.cc
  16618. (setNonBlockingMode): New function.
  16619. (beginListen): Added a call to setNonBlockingMode().
  16620. (acceptConnection): Call setNonBlockingMode().
  16621. (setBlockingMode): Updated.
  16622. To handle tracker's NAT-checking:
  16623. * src/PeerConnection.cc
  16624. (receiveHandshake): 'msg' param is filled with received data and
  16625. its length is assigned to 'length' param, even if all handshake
  16626. message is not yet received.
  16627. * src/PeerInteractionCommand.cc
  16628. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16629. a new peer connects to localhost.
  16630. A call to peerInteraction->sendHandshake() was removed because
  16631. it is called from peerInteraction->receiveHandshake(true).
  16632. * src/PeerInteraction.h
  16633. (quickReplied): New variable.
  16634. (receiveHandshake): Added an argument.
  16635. * src/PeerInteraction.cc
  16636. (PeerInteraction): Added the initialization of quickReplied.
  16637. (receiveHandshake): Send handshake message as soon as the info hash
  16638. in a handshake message from a peer is correct.
  16639. To change the random part of peer id and key parameter:
  16640. * src/TorrentMan.h
  16641. (key): New variable.
  16642. * src/TorrentMan.cc
  16643. (setupInternal1): Use Util::randomAlpha() to generate random part
  16644. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16645. key is also generated by Util::randomAlpha() and it is now 8 character
  16646. long.
  16647. * src/Util.h
  16648. (randomAlpha): New function.
  16649. * src/Util.cc
  16650. (randomAlpha): New function.
  16651. * src/TrackerWatcherCommand.cc
  16652. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16653. Added no_peer_id=1.
  16654. Set snubbing flag to false when a choke message is received from a
  16655. snubbed peer.
  16656. * src/ChokeMessage.cc
  16657. (receivedAction): Set snubbing flag to false.
  16658. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16659. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16660. * src/SimpleLogger.h (writeHeader): New function.
  16661. * src/SimpleLogger.cc (writeHeader): New function.
  16662. (writeLog): Fixed the bug that causes segfaults if exception message
  16663. contains an unescaped "%" character.
  16664. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16665. when a tracker request fails.
  16666. * src/Request.cc (parseUrl): Query string is now handled properly.
  16667. * Release 0.5.1
  16668. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16669. To add Time class which represents a specific instant in time and
  16670. its precision is microseconds. Time checking procedures were rewritten
  16671. using this object.
  16672. * src/Time.h: New class.
  16673. * src/Time.cc: New class.
  16674. * src/AbstractCommand.h
  16675. (updateCheckPoint): Removed.
  16676. (isTimeoutDetected): Removed.
  16677. (checkPoint): Changed the type to Time.
  16678. (timeout): New variable.
  16679. (setTimeout): New function.
  16680. * src/AbstractCommand.cc
  16681. (AbstractCommand): Removed the initialization of checkPoint.
  16682. Added the initialization of timeout.
  16683. (updateCheckPoint): Removed.
  16684. (isTimeoutDetected): Removed.
  16685. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16686. * src/PeerChokeCommand.h
  16687. (checkPoint): Changed the type to Time.
  16688. * src/PeerChokeCommand.cc
  16689. (PeerChokeCommand): Removed the initialization of checkPoint.
  16690. (execute): Rewritten using Time object.
  16691. * src/TrackerWatcherCommand.h
  16692. (checkPoint): Changed the type to Time.
  16693. * src/TrackerWatcherCommand.cc
  16694. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16695. (execute): Rewritten.
  16696. * src/ConsoleDownloadEngine.h
  16697. (cp): Changed the type to Time.
  16698. (startup): Changed the type to Time.
  16699. * src/ConsoleDownloadEngine.cc
  16700. (initStatistics): Use cp.reset(), startup.reset().
  16701. (calculateStatistics): Rewritten using Time object.
  16702. * src/PeerAbstractCommand.h
  16703. (updateCheckPoint): Removed.
  16704. (isTimeoutDetected): Removed.
  16705. (checkPoint): Changed the type to Time.
  16706. * src/PeerAbstractCommand.cc
  16707. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16708. (updateCheckPoint): Removed.
  16709. (isTimeoutDetected): Removed.
  16710. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16711. * src/PeerInteractionCommand.cc
  16712. (PeerInteractionCommand): Removed the initializations of struct
  16713. timeval variables.
  16714. * src/PeerInteractionCommand.h
  16715. (keepAliveCheckPoint): Changed the type to Time.
  16716. (chokeCheckPoint): Changed the type to Time.
  16717. (freqCheckPoint): Changed the type to Time.
  16718. (haveCheckTime): Changed the type to Time.
  16719. * src/PeerInteractionCommand.cc
  16720. (executeInternal): Rewritten using Time object.
  16721. (detectMessageFlooding): Rewritten using Time object.
  16722. (checkLongTimePeerChoking): Rewritten using Time object.
  16723. (sendKeepAlive): Rewritten using Time object.
  16724. (checkHave): Rewritten using Time object.
  16725. * src/SleepCommand.h
  16726. (checkPoint): Changed the type to Time.
  16727. * src/SleepCommand.cc
  16728. (SleepCommand): Removed the initialization of checkPoint.
  16729. (execute): Rewritten using Time object.
  16730. * src/TorrentAutoSaveCommand.h
  16731. (checkPoint): Changed the type to Time.
  16732. * src/TorrentAutoSaveCommand.cc
  16733. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16734. (execute): Rewritten.
  16735. * src/DownloadCommand.h
  16736. (sw): Changed the type to Time.
  16737. * src/DownloadCommand.cc
  16738. (DownloadCommand): Removed the initialization of sw.
  16739. (executeInternal): Rewritten.
  16740. * src/RequestSlot.h
  16741. (dispatchedTime): Changed the type to Time.
  16742. * src/RequestSlot.cc
  16743. (RequestSlot): Removed the call to setDispatchedTime().
  16744. (setDispatchedTime): Rewirtten.
  16745. (isTimeout): Rewritten.
  16746. (getLatencyInMillis): Rewritten.
  16747. * src/TorrentDownloadEngine.h
  16748. (cp): Changed the type to Time[2].
  16749. (startup): Changed the type to Time.
  16750. * src/TorrentDownloadEngine.cc
  16751. (initStatistics): Rewritten.
  16752. (calculateStatistics): Rewritten.
  16753. * src/DownloadEngine.cc
  16754. (run): Rewritten.
  16755. To detect all attempts to connect to the tracker are failed:
  16756. * src/AbstractCommand.cc
  16757. (execute): Increment e->segmentMan->errors if a command aborted.
  16758. * src/SegmentMan.h
  16759. (errors): New variable.
  16760. * src/SegmentMan.cc
  16761. (SegmentMan): Added the initialization of errors.
  16762. (init): Added the initialization of errors.
  16763. * src/TrackerWatcherCommand.cc
  16764. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16765. request was failed.
  16766. To handle snubbed peers:
  16767. * src/PeerChokeCommand.cc
  16768. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16769. (execute): Snubbed peers don't get unchoked.
  16770. * src/PeerInteraction.h
  16771. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16772. * src/PeerInteraction.cc
  16773. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16774. back the requested 16k block in 60 seconds.
  16775. * src/PieceMessage.cc
  16776. (receivedAction): A peer's snubbed state is cleard if it sends
  16777. the requested 16k block in 60 seconds.
  16778. * src/Peer.h
  16779. (snubbing): New variable.
  16780. * src/Peer.cc
  16781. (resetStatus): Added snubbed = false.
  16782. To fix the bug that causes have message is not sent:
  16783. * src/PeerInteractionCommand.cc
  16784. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16785. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16786. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16787. * src/TorrentMan.h
  16788. (HaveEntry): New class.
  16789. (advertisePiece): Rewritten.
  16790. (getAdvertisedPieceIndexes): Rewritten.
  16791. (Haves): Changed the type.
  16792. (getAdvertisedPieceIndexes): Added an argument.
  16793. Others:
  16794. * src/TorrentMan.h
  16795. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16796. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16797. * src/TorrentMan.cc
  16798. (getPeer): Don't check the number of connections here.
  16799. (setupInternal1): Changed peerId.
  16800. * src/PeerInteractionCommand.h
  16801. (KEEP_ALIVE_INTERVAL): New definition.
  16802. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16803. * src/main.cc
  16804. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16805. * src/DownloadEngine.h: Removed unnecessary header includes.
  16806. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16807. To fix the bug that causes segfaults if a tracker returns a zero-length
  16808. list as "peers":
  16809. * src/TrackerUpdateCommand.cc
  16810. (execute): Added a check to see wether the type of peers is Data*.
  16811. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16812. * Release 0.5.0
  16813. To fix compile issue with gcc3:
  16814. * src/CancelMessage.h
  16815. (ID): Renamed as ID_t
  16816. (ID_t): New enum.
  16817. * src/RejectMessage.h
  16818. (ID): Renamed as ID_t
  16819. (ID_t): New enum.
  16820. * src/SuggestPieceMessage.h
  16821. (ID): Renamed as ID_t
  16822. (ID_t): New enum.
  16823. * src/AllowedFastMessage.h
  16824. (ID): Renamed as ID_t
  16825. (ID_t): New enum.
  16826. * src/PortMessage.h
  16827. (ID): Renamed as ID_t
  16828. (ID_t): New enum.
  16829. * src/HaveNoneMessage.h
  16830. (ID): Renamed as ID_t
  16831. (ID_t): New enum.
  16832. * src/KeepAliveMessage.h
  16833. (ID): Renamed as ID_t
  16834. (ID_t): New enum.
  16835. * src/HaveAllMessage.h
  16836. (ID): Renamed as ID_t
  16837. (ID_t): New enum.
  16838. * src/UnchokeMessage.h
  16839. (ID): Renamed as ID_t
  16840. (ID_t): New enum.
  16841. * src/BitfieldMessage.h
  16842. (ID): Renamed as ID_t
  16843. (ID_t): New enum.
  16844. * src/PieceMessage.h
  16845. (ID): Renamed as ID_t
  16846. (ID_t): New enum.
  16847. * src/RequestMessage.h
  16848. (ID): Renamed as ID_t
  16849. (ID_t): New enum.
  16850. * src/NotInterestedMessage.h
  16851. (ID): Renamed as ID_t
  16852. (ID_t): New enum.
  16853. * src/ChokeMessage.h
  16854. (ID): Renamed as ID_t
  16855. (ID_t): New enum.
  16856. * src/InterestedMessage.h
  16857. (ID): Renamed as ID_t
  16858. (ID_t): New enum.
  16859. * src/HaveMessage.h
  16860. (ID): Renamed as ID_t
  16861. (ID_t): New enum.
  16862. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16863. * src/PeerAbstractCommand.h
  16864. (beforeSocketCheck): Removed.
  16865. * src/PeerAbstractCommand.cc
  16866. Modified in order to call executeInternal() even if socket check
  16867. and upload limit check fail.
  16868. * src/PeerInteractionCommand.h
  16869. (keepAlive): Removed.
  16870. (sendKeepAlive): New function.
  16871. (checkHave): New function.
  16872. (beforeSocketCheck): Removed.
  16873. * src/PeerInteractionCommand.cc
  16874. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16875. calls to checkHave() and sendKeepAlive().
  16876. (keepAlive): Renamed to sendKeepAlive().
  16877. (sendKeepAlive): New function.
  16878. (beforeSocketCheck): Removed.
  16879. (checkHave): New function.
  16880. * src/BitfieldMan.cc
  16881. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16882. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16883. 0.
  16884. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16885. * src/TorrentMan.h
  16886. (UsedPieces): Removed.
  16887. (Pieces): New type definition.
  16888. * src/Piece.h: Updated doc.
  16889. * src/Peer.h
  16890. (totalLength): Removed.
  16891. * src/Peer.cc
  16892. (updateLatency): Fixed the latency calculation.
  16893. * src/TorrentMan.cc
  16894. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16895. than or equal to MAX_PEER_LIST_SIZE.
  16896. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16897. then return false.
  16898. (deleteOldErrorPeers): Rewritten.
  16899. (deleteUsedPiece): Fixed the miss use of STL remove.
  16900. * src/PeerInteraction.h
  16901. (Pieces): Removed.
  16902. (deleteTimeoutRequestSlot): Removed.
  16903. (deleteCompletedRequestSlot): Removed.
  16904. (checkRequestSlot): New function.
  16905. * src/PeerInteraction.cc
  16906. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16907. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16908. (checkRequestSlot): New function.
  16909. * src/DownloadEngine.cc
  16910. (run): Clear activeSockets before calling waitData().
  16911. (waitData): Removed a call to activeSockets.clear().
  16912. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16913. To attempt to handle EINTR:
  16914. * src/SocketCore.cc
  16915. (isReadable): Added EINTR handling.
  16916. (isWritable): Added EINTR handling.
  16917. To improve the performance:
  16918. * src/AbstractCommand.cc
  16919. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16920. * src/PeerInteractionCommand.h
  16921. (receiveMessage): Renamed as receiveMessages().
  16922. (receiveMessages): New function.
  16923. * src/PeerInteractionCommand.cc
  16924. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16925. () function. detectMessageFlooding() is moved here.
  16926. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16927. (). The flooding detection for have message is comment out.
  16928. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16929. Util::difftv().
  16930. (receiveMessage): Renamed as receiveMessages().
  16931. (receiveMessages): New function.
  16932. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16933. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16934. * src/SleepCommand.cc
  16935. (execute): Use Util::difftvsec() instead of Util::difftv().
  16936. * src/BitfieldMan.h
  16937. (getNthBitIndex): New function.
  16938. (hasMissingPiece): New function.
  16939. (getAllMissingIndexes): New function.
  16940. * src/BitfieldMan.cc
  16941. (countSetBit): Rewritten.
  16942. (getNthBitIndex): New function.
  16943. (getMissingIndexRandomly): Rewritten.
  16944. (hasMissingPiece): New function.
  16945. (getAllMissingIndexes): New function.
  16946. * src/TorrentMan.cc
  16947. (hasMissingPiece): New function.
  16948. (deleteUsedPiece): Rewritten using STL.
  16949. * src/PeerInteraction.cc
  16950. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16951. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16952. (addRequests): Updated the number of pending requests.
  16953. * src/PeerAbstractCommand.cc
  16954. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16955. (execute): Returns true if TorrentMan::isHalt() is true.
  16956. Corrected the condition of upload limit checking.
  16957. * src/Util.h
  16958. (countBit): New function.
  16959. * src/Util.cc
  16960. (nbits): New variable.
  16961. (countBit): New function.
  16962. * src/DownloadEngine.h
  16963. (SockCmdMap): New type definition.
  16964. (waitData): Added an argument.
  16965. (addSocket): Added an argument.
  16966. (addSocketForReadCheck): Added an argument.
  16967. (addSocketForWriteCheck): Added an argument.
  16968. * src/DownloadEngine.cc
  16969. (run): Executes only commands whose sockets are ready to read or write.
  16970. All commands are executed in every 1 second.
  16971. (waitData): Calls select() again if it returned
  16972. EINTR.
  16973. (addSocket): Saves socket and command object pair to the map.
  16974. (deleteSocket): Deletes socket and command object pair from the map.
  16975. (addSocketForReadCheck): Added an argument.
  16976. (addSocketForWriteCheck): Added an argument.
  16977. * src/DownloadCommand.cc
  16978. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16979. To send "event=stopped" to the tracker when the application finishes:
  16980. * src/PeerChokeCommand.h
  16981. (checkPoint): New variable.
  16982. * src/PeerChokeCommand.cc
  16983. (PeerChokeCommand): Added the initialization of checkPoint.
  16984. (execute): The interval check is now done by checkPoint, not
  16985. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16986. * src/TorrentMan.h
  16987. (halt): New function.
  16988. (hasMissingPiece): New function.
  16989. (isHalt): New function.
  16990. (setHalt): New function.
  16991. * src/TorrentMan.cc
  16992. (TorrentMan): Added the initialization of halt.
  16993. * src/TorrentAutoSaveCommand.h
  16994. (checkPoint): New variable.
  16995. * src/PeerListenCommand.cc
  16996. (execute): Returns true if TorrentMan::isHalt() is true.
  16997. * src/main.cc
  16998. (setSignalHander): Added flags argument.
  16999. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17000. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17001. Removed printDownloadAbortMessage() after torrent downloading loop.
  17002. * src/TorrentAutoSaveCommand.cc
  17003. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17004. (execute): Returns true if TorrentMan::isHalt() is true.
  17005. The interval check is now done by checkPoint, not SleepCommand.
  17006. * src/TrackerWatcherCommand.cc
  17007. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17008. event=stopped.
  17009. * src/TrackerUpdateCommand.cc
  17010. (prepareForRetry): Do not use SleepCommand here.
  17011. (execute): Returns true if TorrentMan::isHalt() is true.
  17012. Others:
  17013. * src/TorrentMan.cc
  17014. (getMissingPieceIndex): Updated log message.
  17015. * src/PeerInteraction.cc
  17016. (createPeerMessag): Updated log message.
  17017. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17018. To add the ability to download several pieces in mix in a command and
  17019. increase the number of request slots according to request-cancel
  17020. latency:
  17021. * src/PeerInteractionCommand.cc
  17022. (executeInternal): The number of messages to be received at a time
  17023. is increased from 10 to 50.
  17024. * src/LogFactory
  17025. (getInstance): Added NullLogger.
  17026. * src/NullLogger.h: New class.
  17027. * src/BitfieldMan.h
  17028. (getMissingIndex): New function.
  17029. * src/BitfieldMan.cc
  17030. (getMissingIndex): New function.
  17031. * src/TorrentMan.h
  17032. (checkOutPiece): New function.
  17033. (getMissingPieceIndex): New function.
  17034. (getMissingFastPieceIndex): New function.
  17035. (getMissingFastPiece): New function.
  17036. * src/TorrentMan.cc
  17037. (updatePiece): Rewritten using STL.
  17038. (syncPiece): Rewritten using STL.
  17039. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17040. checkOutPiece().
  17041. (getMissingPieceIndex): New function.
  17042. (getMissingFastPieceIndex): New function.
  17043. (getMissingFastPiece): New function.
  17044. (checkOutPiece): New function.
  17045. * src/PeerInteraction.h
  17046. (Pieces): New type definition.
  17047. (piece): Removed.
  17048. (pieces): New variable.
  17049. (getNewPieceAndSendInterest): Added the "piece" argument.
  17050. (abortPiece): Added the "piece" argument.
  17051. (abortAllPieces): New function.
  17052. (isInRequestSlot): New function.
  17053. (hasDownloadPiece): Added the "index" argument.
  17054. (setDownloadPiece): Removed.
  17055. (getDownloadPiece): Added the "index" argument.
  17056. (updatePiece): New function.
  17057. (createRequestMessage): Added the "index" argument.
  17058. * src/PeerInteraction.cc
  17059. (onChoked): Rewritten.
  17060. (abortPiece): Rewirtten.
  17061. (abortAllPieces): New function.
  17062. (deleteTimeoutRequestSlot): Rewritten.
  17063. Clarified code a little bit.
  17064. (deleteCompletedRequestSlot): Rewritten.
  17065. (isInRequestSlot): New function.
  17066. (syncPiece): Rewritten.
  17067. (updatePiece): New function.
  17068. (getNewPieceAndSendInterest): Rewritten.
  17069. (addRequests): Rewritten.
  17070. (getDownloadPiece): Rewritten.
  17071. (hasDownloadPiece): Rewritten.
  17072. (createRequestMessage): Added the "index" argument.
  17073. * src/common.h
  17074. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17075. (DIV_FLOOR): New definition.
  17076. * src/PieceMessage.cc
  17077. (receivedAction): Update request-piece latency here.
  17078. * src/RequestSlot.h
  17079. (getLatencyInMillis): New function.
  17080. * src/RequestSlot.cc
  17081. (isTimeout): Rewritten using getLatencyInMillis.
  17082. (getLatencyInMillis): New function.
  17083. * src/Piece.h
  17084. (operator==): New function.
  17085. (getMissingBlockIndex): New function.
  17086. * src/Piece.cc
  17087. (operator==): New function.
  17088. (getMissingBlockIndex): New function.
  17089. * src/Peer.h
  17090. (DEFAULT_LATENCY): New definition.
  17091. (latency): New variable.
  17092. (updateLatency): New function.
  17093. (getLatency): New function.
  17094. * src/Peer.cc
  17095. (resetStatus): Reset latecy.
  17096. (updateLatency): New function.
  17097. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17098. * src/SocketCore.cc
  17099. (isReadable): Added secure to the condition.
  17100. * src/HttpConnection.cc
  17101. (receiveResponse): Fixed a bug that causes no response header
  17102. exception.
  17103. * src/Peer.h
  17104. (getFastSet): Fixed the return value type.
  17105. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17106. To remove a wait from download loop:
  17107. * src/DownloadEngine.cc
  17108. (run): Comment out shortSleep.
  17109. To rewrite the message handling:
  17110. * src/SimplePeerMessage.h: New class.
  17111. * src/SimplePeerMessage.cc: New class.
  17112. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17113. (msg): New variable.
  17114. (create): New function.
  17115. (send): Removed.
  17116. (getMessage): New function.
  17117. (getMessageLength): New function.
  17118. * src/CancelMessage.cc
  17119. (create): New function.
  17120. (receivedAction): Replaced deleteRequestMessageInQueue with
  17121. rejectPieceMessageInQueue.
  17122. (send): Removed.
  17123. (getMessage): New function.
  17124. (getMessageLength): New function.
  17125. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17126. (msg): New variable.
  17127. (msgLength): New variable.
  17128. (~BitfieldMessage): Deleted msg.
  17129. (send): Removed.
  17130. (getMessage): New function.
  17131. (getMessageLength): New function.
  17132. * src/BitfieldMessage.cc
  17133. (create): New function.
  17134. (send): Removed.
  17135. (getMessage): New function.
  17136. (getMessageLength): New function.
  17137. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17138. (msg): New variable.
  17139. (sendPredicate): New function.
  17140. (onSendComplete): New function.
  17141. (send): Removed.
  17142. (getMessage): New function.
  17143. (getMessageLength): New function.
  17144. (create): New function.
  17145. * src/ChokeMessage.cc
  17146. (create): New function.
  17147. (send): Removed.
  17148. (sendPredicate): New function.
  17149. (getMessage): New function.
  17150. (getMessageLength): New function.
  17151. (onSendComplete): New function.
  17152. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17153. (msg): New variable.
  17154. (send): Removed.
  17155. (getMessage): New function.
  17156. (getMessageLength): New function.
  17157. * src/KeepAliveMessage.cc
  17158. (send): Removed.
  17159. (getMessage): New function.
  17160. (getMessageLength): New function.
  17161. * src/PortMessage.h
  17162. (create): New function.
  17163. (receivedAction): Updated log message.
  17164. * src/PortMessage.cc: New file.
  17165. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17166. (msg): New variable.
  17167. (sendPredicate): New function.
  17168. (onSendComplete): New function.
  17169. (create): New function.
  17170. (send): Removed.
  17171. (getMessage): New function.
  17172. (getMessageLength): New function.
  17173. * src/UnchokeMessage.cc
  17174. (create): New function.
  17175. (send): Removed.
  17176. (sendPredicate): New function.
  17177. (getMessage): New function.
  17178. (getMessageLength): New function.
  17179. (onSendComplete): New function.
  17180. * src/PieceMessage.h
  17181. (leftPieceDataLength): Removed.
  17182. (leftDataLength): New variable.
  17183. (headerSend): New variable.
  17184. (pendingCount): New variable.
  17185. (msgHeader): New variable.
  17186. (sendPieceData): New function.
  17187. (incrementPendingCount): New function.
  17188. (isPendingCountMax): New function.
  17189. (create): New function.
  17190. (getMessageHeader): New function.
  17191. (getMessageHeaderLength): New function.
  17192. * src/PieceMessage.cc
  17193. (create): New function.
  17194. (getMessageHeader): New function.
  17195. (getMessageHeaderLength): New function.
  17196. (send): Rewritten.
  17197. (sendPieceData): New function.
  17198. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17199. (msg): New variable.
  17200. (create): New function.
  17201. (getMessage): New function.
  17202. (getMessageLength): New function.
  17203. * src/HaveMessage.cc
  17204. (create): New function.
  17205. (send): Removed.
  17206. (sendPieceData): New function.
  17207. (getMessage): New function.
  17208. (getMessageLength): New function.
  17209. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17210. (msg): New variable.
  17211. (create): New function.
  17212. (send): Removed.
  17213. (getMessage): New function.
  17214. (getMessageLength): New function.
  17215. * src/RequestMessage.cc
  17216. (create): New function.
  17217. (receivedAction): Added the handling of fast extension.
  17218. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17219. (send): Removed.
  17220. (getMessage): New function.
  17221. (getMessageLength): New function.
  17222. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17223. (msg): New variable.
  17224. (sendPredicate): New function.
  17225. (onSendComplete): New function.
  17226. (create): New function.
  17227. (getMessage): New function.
  17228. (getMessageLength): New function.
  17229. * src/InterestedMessage.cc
  17230. (create): New function.
  17231. (send): Removed.
  17232. (sendPieceData): New function.
  17233. (getMessage): New function.
  17234. (getMessageLength): New function.
  17235. (onSendComplete): New function.
  17236. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17237. (msg): New variable.
  17238. (sendPieceData): New function.
  17239. (onSendComplete): New function.
  17240. (create): New function.
  17241. (send): Removed.
  17242. (getMessage): New function.
  17243. (getMessageLength): New function.
  17244. * src/NotInterestedMessage.cc
  17245. (create): New function.
  17246. (send): Removed.
  17247. (sendPredicate): New function.
  17248. (getMessage): New function.
  17249. (getMessageLength): New function.
  17250. (onSendComplete): New function.
  17251. * src/AllowedFastMessage.h: New class.
  17252. * src/AllowedFastMessage.cc: New class.
  17253. * src/RejectMessage.h: New class.
  17254. * src/RejectMessage.cc: New class.
  17255. * src/SuggestPieceMessage.h: New class.
  17256. * src/SuggestPieceMessage.cc: New class.
  17257. * src/HaveAllMessage.h: New class.
  17258. * src/HaveAllMessage.cc: New class.
  17259. * src/HaveNoneMessage.h: New class.
  17260. * src/HaveNoneMessage.cc: New class.
  17261. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17262. (msg): New variable.
  17263. (reserved): New variable.
  17264. (create): New function.
  17265. (getId): New function.
  17266. (receivedAction): New function.
  17267. (getMessage): New function.
  17268. (getMessageLength): New function.
  17269. (isFastExtensionSupported): New function.
  17270. * src/HandshakeMessage.cc
  17271. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17272. (create): New function.
  17273. (getMessage): New function.
  17274. (getMessageLength): New function.
  17275. (toString): Added the output of reserved field.
  17276. (check): Added const qualifier.
  17277. (isFastExtensionSupported): New function.
  17278. * src/PeerMessageUtil.h
  17279. (createChokeMessage): Removed.
  17280. (createUnchokeMessage): Removed.
  17281. (createInterestedMessage): Removed.
  17282. (createNotInterestedMessage): Removed.
  17283. (createHaveMessage): Removed.
  17284. (createBitfieldMessage): Removed.
  17285. (createRequestMessage): Removed.
  17286. (createCancelMessage): Removed.
  17287. (createPieceMessage): Removed.
  17288. (createPortMessage): Removed.
  17289. (createChokeMessage): Removed.
  17290. (createUnchokeMessage): Removed.
  17291. (createInterestedMessage): Removed.
  17292. (createNotInterestedMessage): Removed.
  17293. (createHaveMessage): Removed.
  17294. (createBitfieldMessage): Removed.
  17295. (createRequestMessage): Removed.
  17296. (createCancelMessage): Removed.
  17297. (createPieceMessage): Removed.
  17298. (createKeepAliveMessage): Removed.
  17299. (createHandshakeMessage): Removed.
  17300. (setIntParam): New function.
  17301. (createPeerMessageString): New function.
  17302. * src/PeerMessageUtil.cc
  17303. (createChokeMessage): Removed.
  17304. (createUnchokeMessage): Removed.
  17305. (createInterestedMessage): Removed.
  17306. (createNotInterestedMessage): Removed.
  17307. (createHaveMessage): Removed.
  17308. (createBitfieldMessage): Removed.
  17309. (createRequestMessage): Removed.
  17310. (createCancelMessage): Removed.
  17311. (createPieceMessage): Removed.
  17312. (createPortMessage): Removed.
  17313. (createRequestMessage): Removed.
  17314. (createCancelMessage): Removed.
  17315. (createPieceMessage): Removed.
  17316. (createHaveMessage): Removed.
  17317. (createChokeMessage): Removed.
  17318. (createUnchokeMessage): Removed.
  17319. (createInterestedMessage): Removed.
  17320. (createNotInterestedMessage): Removed.
  17321. (createBitfieldMessage): Removed.
  17322. (createKeepAliveMessage): Removed.
  17323. (createHandshakeMessage): Removed.
  17324. (setIntParam): New function.
  17325. (createPeerMessageString): New function.
  17326. * src/PeerConnection.h
  17327. (peer): Removed.
  17328. (torrentMan): Removed.
  17329. (createNLengthMessage): Removed.
  17330. (setIntParam): Removed.
  17331. (writeOutgoingMessageLog): Removed all overloaded functions.
  17332. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17333. (sendMessage): New function.
  17334. (sendHandshake): Removed.
  17335. (sendKeepAlive): Removed.
  17336. (sendChoke): Removed.
  17337. (sendUnchoke): Removed.
  17338. (sendInterested): Removed.
  17339. (sendNotInterested): Removed.
  17340. (sendHave): Removed.
  17341. (sendBitfield): Removed.
  17342. (sendRequest): Removed.
  17343. (sendPiece): Removed.
  17344. (sendPieceHeader): Removed.
  17345. (sendPieceData): Removed.
  17346. (sendCancel): Removed.
  17347. (getPeer): Removed.
  17348. * src/PeerConnection.cc
  17349. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17350. (sendHandshake): Removed.
  17351. (sendKeepAlive): Removed.
  17352. (createNLengthMessage): Removed.
  17353. (setIntParam): Removed.
  17354. (writeOutgoingMessageLog): Removed all overloaded functions.
  17355. (sendChoke): Removed.
  17356. (sendUnchoke): Removed.
  17357. (sendInterested): Removed.
  17358. (sendNotInterested): Removed.
  17359. (sendHave): Removed.
  17360. (sendBitfield): Removed.
  17361. (sendRequest): Removed.
  17362. (sendPiece): Removed.
  17363. (sendPieceHeader): Removed.
  17364. (sendPieceData): Removed.
  17365. (sendMessage): New function.
  17366. (sendCancel): Removed.
  17367. * src/PeerInteractionCommand.cc
  17368. (PeerInteractionCommand): Call setUploadLimit.
  17369. (executeInternal): Call setUploadLimit.
  17370. Added the handling of "inProgress" state of handshake message.
  17371. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17372. sendNow().
  17373. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17374. sendNow().
  17375. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17376. * src/TorrentMan.h
  17377. (PEER_ID_LENGTH): New definition.
  17378. (hasAllPieces): New function.
  17379. * src/TorrentMan.cc
  17380. (getMissingPiece): Added the handling of fast extension.
  17381. (cancelPiece): Call updatePiece().
  17382. (hasAllPieces): New function.
  17383. * src/PeerInteraction.h
  17384. (fastSet): New variable.
  17385. (getNewPieceAndSendInterest): Changed the return type to void.
  17386. (send): Renamed as sendMessages.
  17387. (deleteAllRequestSlot): Removed.
  17388. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17389. (cancelAllRequest): Removed all overloaded functions.
  17390. (deleteAllRequestSlot): Removed.
  17391. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17392. (rejectPieceMessageInQueue): New function.
  17393. (rejectAllPieceMessageInQueue): New function.
  17394. (onChoked): New function.
  17395. (isSendingMessageInProgress): New function.
  17396. (getCorrespondingRequestSlot): Changed its arguments.
  17397. (isInFastSet): New function.
  17398. (addFastSetIndex): New function.
  17399. (addRequests): New function.
  17400. (sendNow): Removed.
  17401. (trySendNow): Removed.
  17402. (sendBitfield): New function.
  17403. (sendAllowdFast): New function.
  17404. (createHaveAllMessage): New function.
  17405. (createHaveNoneMessage): New function.
  17406. (createRejectMessage): New function.
  17407. (createAllowedFastMessage): New function.
  17408. * src/PeerInteraction.cc
  17409. (send): Renamed as sendMessages.
  17410. (sendMessages): New function.
  17411. (MsgPushBack): New class.
  17412. (isSendingMessageInProgress): New function.
  17413. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17414. (rejectAllPieceMessageInQueue): New function.
  17415. Added the handling of fast extension.
  17416. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17417. (rejectPieceMessageInQueue): New function.
  17418. Added the handling of fast extension.
  17419. (deleteRequestSlot): Replaced for loop with std::find.
  17420. (onChoked): New function.
  17421. (deleteAllRequestSlot): Removed.
  17422. (abortPiece): Rewirtten.
  17423. (deleteTimeoutRequestSlot): Updated log messages.
  17424. (getCorrespondingRequestSlot): Changed its arguments.
  17425. (cancelAllRequest): Removed all overloaded functions.
  17426. (receiveHandshake): Added the check to see whether an incoming peer
  17427. supports fast extension.
  17428. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17429. PeerMessageUtil.
  17430. (createPeerMessage): Use create() of each message class instead of
  17431. PeerMessageUtil.
  17432. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17433. AllowedFastMessage were added.
  17434. (getNewPieceAndSendInterest): Changed its return value type to void.
  17435. Added the handling of fast extension.
  17436. (addRequests): New function.
  17437. (sendNow): Removed.
  17438. (sendHandshake): Rewritten.
  17439. (trySendNow): Removed.
  17440. (sendBitfield): New function.
  17441. (sendAllowdFast): New function.
  17442. (isInFastSet): New function.
  17443. (addFastSetIndex): New function.
  17444. (createRequestMessage): Use RequestMessage::create instead of
  17445. PeerMessageUtil.
  17446. (createCancelMessage): Use CancelMessage::create instead of
  17447. PeerMessageUtil.
  17448. (createPieceMessage): Use PieceMessage::create instead of
  17449. PeerMessageUtil.
  17450. (createHaveMessage): Use HaveMessage::create instead of
  17451. PeerMessageUtil.
  17452. (createChokeMessage): Use ChokeMessage::create instead of
  17453. PeerMessageUtil.
  17454. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17455. PeerMessageUtil.
  17456. (createInterestedMessage): Use InterestedMessage::create instead of
  17457. PeerMessageUtil.
  17458. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17459. of PeerMessageUtil.
  17460. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17461. PeerMessageUtil.
  17462. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17463. PeerMessageUtil.
  17464. (createHaveAllMessage): New function.
  17465. (createHaveNoneMessage): New function.
  17466. (createRejectMessage): New function.
  17467. (createAllowedFastMessage: New function.
  17468. * src/Util.h
  17469. (sha1Sum): New function.
  17470. (computeFastSet): New function.
  17471. * src/Util.cc
  17472. (sha1Sum): New function.
  17473. (computeFastSet): New function.
  17474. * src/Peer.h
  17475. (fastExtensionEnabled): New variable.
  17476. (fastSet): New variable.
  17477. (setAllBitfield): New function.
  17478. (setFastExtensionEnabled): New function.
  17479. (isFastExtensionEnabled): New function.
  17480. (addFastSetIndex): New function.
  17481. (getFastSet): New function.
  17482. (isInFastSet): New function.
  17483. (countFastSet): New function.
  17484. * src/Peer.cc
  17485. (isInFastSet): New function.
  17486. (addFastSetIndex): New function.
  17487. (setAllBitfield): New function.
  17488. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17489. sockets.
  17490. * src/PeerAbstractCommand.cc
  17491. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17492. and uploadLimit.
  17493. (execute): Changed the procedure of checking sockets. The upload speed
  17494. checking were added.
  17495. (setUploadLimit): New function.
  17496. (setUploadLimitCheck): New function.
  17497. * src/PeerAbstractCommand.h
  17498. (setUploadLimit): New function.
  17499. (setUploadLimitCheck): New function.
  17500. (uploadLimit): New variable.
  17501. (uploadLimitCheck): New variable.
  17502. To contact a tracker regularly:
  17503. * src/TrackerWatcherCommand.h (interval): New variable.
  17504. (checkPoint): New variable.
  17505. (TrackerWatcherCommand): Added interval argument.
  17506. * src/TrackerWatcherCommand.cc
  17507. (TrackerWatcherCommand): Initialized checkPoint.
  17508. (execute): Now a tracker is contacted in every specified period.
  17509. If peer list is not needed, send request with numwant=0.
  17510. * src/TrackerUpdateCommand.cc
  17511. (execute): Updated log messages.
  17512. * src/DownloadEngine.cc
  17513. (~DownloadEngine): Removed two asserts.
  17514. (waitData): Uncommented wfds. May be a bug fix.
  17515. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17516. * src/PeerInteractionCommand.h
  17517. (checkInactiveConnection): Removed.
  17518. * src/PeerInteractionCommand.cc
  17519. (executeInternal): Removed following function calls:
  17520. detectMessageFlooding(), checkLongTimePeerChoking and
  17521. checkInactiveConnection().
  17522. (checkInactiveConnection): Removed.
  17523. (detectMessageFlooding): Removed function call to
  17524. checkInactiveConnection().
  17525. * src/PeerMessageUtil.h
  17526. (createChokeMessage): New function. Overload.
  17527. (createUnchokeMessage): New function. Overload.
  17528. (createInterestedMessage): New function. Overload.
  17529. (createNotInterestedMessage): New function. Overload.
  17530. (createHaveMessage): New function. Overload.
  17531. (createBitfieldMessage): New function. Overload.
  17532. (createRequestMessage): New function. Overload.
  17533. (createCancelMessage): New function. Overload.
  17534. (createPieceMessage): New function. Overload.
  17535. (createKeepAliveMessage): New function. Overload.
  17536. * src/PeerMessageUtil.cc
  17537. (createChokeMessage): New function. Overload.
  17538. (createUnchokeMessage): New function. Overload.
  17539. (createInterestedMessage): New function. Overload.
  17540. (createNotInterestedMessage): New function. Overload.
  17541. (createHaveMessage): New function. Overload.
  17542. (createBitfieldMessage): New function. Overload.
  17543. (createRequestMessage): New function. Overload.
  17544. (createCancelMessage): New function. Overload.
  17545. (createPieceMessage): New function. Overload.
  17546. (createKeepAliveMessage): New function. Overload.
  17547. * src/SendMessageQueue.cc
  17548. (createRequestMessage): Use PeerMessageUtil.
  17549. (createCancelMessage): Use PeerMessageUtil.
  17550. (createPieceMessage): Use PeerMessageUtil.
  17551. (createHaveMessage): Use PeerMessageUtil.
  17552. (createChokeMessage): Use PeerMessageUtil.
  17553. (createUnchokeMessage): Use PeerMessageUtil.
  17554. (createInterestedMessage): Use PeerMessageUtil.
  17555. (createNotInterestedMessage): Use PeerMessageUtil.
  17556. (createBitfieldMessage): Use PeerMessageUtil.
  17557. (createKeepAliveMessage): Use PeerMessageUtil.
  17558. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17559. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17560. * src/PeerInteraction.h: New class.
  17561. * src/PeerInteraction.cc: New class.
  17562. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17563. Each peer message has its own class.
  17564. * src/PendingMessages.h: Removed.
  17565. * src/PendingMessages.cc: Removed. The sending process was moved to
  17566. each message class.
  17567. * src/RequestSlotMan.h: Removed.
  17568. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17569. SendMessageQueue.
  17570. * src/RequestMessage.h: New class.
  17571. * src/RequestMessage.cc: New class.
  17572. * src/CancelMessage.h: New class.
  17573. * src/CancelMessage.cc: New class.
  17574. * src/BitfieldMessage.h: New class.
  17575. * src/BitfieldMessage.cc: New class.
  17576. * src/ChokeMessage.h: New class.
  17577. * src/ChokeMessage.cc: New class.
  17578. * src/KeepAliveMessage.h: New class.
  17579. * src/KeepAliveMessage.cc: New class.
  17580. * src/PortMessage.h: New class.
  17581. * src/UnchokeMessage.h: New class.
  17582. * src/UnchokeMessage.cc: New class.
  17583. * src/PieceMessage.h: New class.
  17584. * src/PieceMessage.cc: New class.
  17585. * src/HaveMessage.h: New class.
  17586. * src/HaveMessage.cc: New class.
  17587. * src/BitfieldMessage.h: New class.
  17588. * src/BitfieldMessage.cc: New class.
  17589. * src/NotInterestedMessage.h: New class.
  17590. * src/NotInterestedMessage.cc: New class.
  17591. * src/InterestedMessage.h: New class.
  17592. * src/InterestedMessage.cc: New class.
  17593. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17594. (getSendMessageQueue): New function.
  17595. (setSendMessageQueue): New function.
  17596. * src/HandshakeMessage.cc: New class.
  17597. * src/PeerConnection.h (receiveMessage): Changed return value and
  17598. arguments.
  17599. (receiveHandshake): Changed return value and arguments.
  17600. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17601. here.
  17602. (receiveHandshake): Do not create handshake class here.
  17603. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17604. (piece): Removed.
  17605. (syncPiece): Removed.
  17606. (sendInterest): Removed.
  17607. (sendMessages): Removed.
  17608. (createRequestPendingMessage): Removed.
  17609. (checkPieceHash): Removed.
  17610. (erasePieceOnDisk): Removed.
  17611. (getNewPieceAndSendInterest): Removed.
  17612. (onGotNewPice): Removed.
  17613. (onGotWrongPiece): Removed.
  17614. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17615. Removed peerConnection, piece.
  17616. (~PeerInteractionCommand): Removed peerConnection.
  17617. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17618. (syncPiece): Moved to SendMessageQueue.
  17619. (decideChoking): Removed PendingMessage.
  17620. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17621. The action after receiving peer message was moved to each message
  17622. class.
  17623. (onGotNewPice): Moved to SendMessageQueue.
  17624. (onGotWrongPiece): Moved to SendMessageQueue.
  17625. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17626. (sendInterest): Moved to SendMessageQueue.
  17627. (createRequestPendingMessage): Removed.
  17628. (sendMessages): Moved to SendMessageQueue.
  17629. (onAbort): Use SendMessageQueue::abortPiece()
  17630. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17631. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17632. (checkPieceHash): Moved to SendMessageQueue.
  17633. (erasePieceOnDisk): Moved to SendMessageQueue.
  17634. * src/PeerMessageUtil.h
  17635. (createBitfieldMessage): Removed.
  17636. (createHaveMessage): Changed return value and arguments.
  17637. (createBitfieldMessage): Changed return value and arguments.
  17638. (createRequestCancelMessage): Removed.
  17639. (createPieceMessage): Changed return value and arguments.
  17640. (getShortIntParam): New function.
  17641. (checkIndex): Changed arguments.
  17642. (checkBegin): Changed arguments.
  17643. (checkLength): Changed arguments.
  17644. (checkPieceOffset): Removed.
  17645. (checkRange): New function.
  17646. (checkBitfield): Changed arguments.
  17647. (createPeerMessage): Removed.
  17648. (checkIntegrity): Removed.
  17649. (createHandshakeMessage): Changed arguments.
  17650. (createChokeMessage): New function.
  17651. (createUnchokeMessage): New function.
  17652. (createInterestedMessage): New function.
  17653. (createNotInterestedMessage): New function.
  17654. (createRequestMessage): New function.
  17655. (createCancelMessage): New function.
  17656. (createPortMessage): New function.
  17657. * src/PeerMessageUtil.cc
  17658. (createBitfieldMessage): Removed.
  17659. (createHaveMessage): Changed return value and arguments.
  17660. (createBitfieldMessage): Changed return value and arguments.
  17661. (createRequestCancelMessage): Removed.
  17662. (createPieceMessage): Changed return value and arguments.
  17663. (getShortIntParam): New function.
  17664. (checkIndex): Changed arguments.
  17665. (checkBegin): Changed arguments.
  17666. (checkLength): Changed arguments.
  17667. (checkPieceOffset): Removed.
  17668. (checkRange): New function.
  17669. (checkBitfield): Changed arguments.
  17670. (createPeerMessage): Removed.
  17671. (checkIntegrity): Removed.
  17672. (createHandshakeMessage): Changed arguments.
  17673. (createChokeMessage): New function.
  17674. (createUnchokeMessage): New function.
  17675. (createInterestedMessage): New function.
  17676. (createNotInterestedMessage): New function.
  17677. (createRequestMessage): New function.
  17678. (createCancelMessage): New function.
  17679. (createPortMessage): New function.
  17680. * src/PeerMessage.h
  17681. (id): Removed.
  17682. (index): Removed.
  17683. (begin): Removed.
  17684. (length): Removed.
  17685. (bitfield): Removed.
  17686. (bitfieldLength): Removed.
  17687. (block): Removed.
  17688. (blockLength): Removed.
  17689. (inProgress): New variable.
  17690. (cuid): New variable.
  17691. (peer): New variable.
  17692. (sendMessageQueue): New variable.
  17693. (logger): New variable.
  17694. (setBitfield): Removed.
  17695. (getBitfield): Removed.
  17696. (setBlock): Removed.
  17697. (getBlock): Removed.
  17698. (getBitfieldLength): Removed.
  17699. (getBlockLength): Removed.
  17700. (isInProgress): New function.
  17701. (toString): Made pure virtual.
  17702. (check): New function.
  17703. (send): New function.
  17704. (receivedAction): New function.
  17705. (getId): Made pure virtual.
  17706. (setId): Removed.
  17707. (getIndex): Removed.
  17708. (setIndex): Removed.
  17709. (getBegin): Removed.
  17710. (setBegin): Removed.
  17711. (getLength): Removed.
  17712. (setLength): Removed.
  17713. (getCuid): New function.
  17714. (setCuid): New function.
  17715. (getPeer): New function.
  17716. (setPeer): New function.
  17717. (getSendMessageQueue): New function.
  17718. (setSendMessageQueue): New function.
  17719. (ID): Removed.
  17720. * src/PeerMessage.cc
  17721. (setBitfield): Removed.
  17722. (setBlock): Removed.
  17723. (toString): Removed.
  17724. * src/TorrentMan.h
  17725. (getPieceLength): New function.
  17726. (getPieceLength): New function.
  17727. * src/SendMessageQueue.h
  17728. (REQUEST_TIME_OUT): New definition.
  17729. (RequestSlots): New definition.
  17730. (MessageQueue): New definition.
  17731. (requestSlotMan): Removed.
  17732. (pendingMessages): Removed.
  17733. (requestSlots): New variable.
  17734. (messageQueue): New variable.
  17735. (torrentMan): New variable.
  17736. (peerConnection): New variable.
  17737. (peer): New variable.
  17738. (piece): New variable.
  17739. (getNewPieceAndSendInterest): New function.
  17740. (createPeerMessage): New function.
  17741. (createHandshakeMessage): New function.
  17742. (send): Made private.
  17743. (setPeerMessageCommonProperty): New function.
  17744. (deleteAllRequestSlot): New function.
  17745. (deleteRequestMessageInQueue): New function.
  17746. (cancelAllRequest): Made private.
  17747. (cancelAllRequest): Made private.
  17748. (countRequestSlot): Made private.
  17749. (addPendingMessage): Removed.
  17750. (deletePendingPieceMessage): Removed.
  17751. (deletePendingRequestMessage): Removed.
  17752. (addMessage): New function.
  17753. (deletePieceMessageInQueue): New function.
  17754. (deleteTimeoutRequestSlot): Changed argument.
  17755. (deleteCompletedRequestSlot): Changed argument.
  17756. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17757. (getCorrespondingRequestSlot): New function.
  17758. (countPendingMessage): Removed.
  17759. (countMessageInQueue): New function.
  17760. (getTorrentMan): New function.
  17761. (getPeerConnection): New function.
  17762. (hasDownloadPiece): New function.
  17763. (getDownloadPiece): New function.
  17764. (setDownloadPiece): New function.
  17765. (syncPiece): New function.
  17766. (sendMessages): New function.
  17767. (sendNow): New function.
  17768. (trySendNow): New function.
  17769. (abortPiece): New function.
  17770. (sendHandshake): New function.
  17771. (receiveMessage): New function.
  17772. (receiveHandshake): New function.
  17773. (createRequestMessage): New function.
  17774. (createCancelMessage): New function.
  17775. (createPieceMessage): New function.
  17776. (createHaveMessage): New function.
  17777. (createChokeMessage): New function.
  17778. (createUnchokeMessage): New function.
  17779. (createInterestedMessage): New function.
  17780. (createNotInterestedMessage): New function.
  17781. (createBitfieldMessage): New function.
  17782. (createKeepAliveMessage): New function.
  17783. * src/SendMessageQueue.cc
  17784. (SendMessageQueue): Removed requestSlotMan.
  17785. Instantiated peerConnection here.
  17786. (~SendMessageQueue): Removed requestSlotMan.
  17787. Added deletion of peerConnection and the contents of messageQueue.
  17788. (send): Updated according to the change of messageQueue.
  17789. (addPendingMessage): Renamed to addMessage.
  17790. (addMessage): New function.
  17791. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17792. (deletePieceMessageInQueue): New function.
  17793. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17794. (deleteRequestMessageInQueue): New function.
  17795. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17796. here.
  17797. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17798. (...) was moved here.
  17799. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17800. moved here.
  17801. (deleteCompletedRequestSlot):
  17802. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17803. (getCorrespondingRequestSlot):
  17804. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17805. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17806. (countPendingMessage): Renamed to countMessageInQueue.
  17807. (countMessageInQueue): New function.
  17808. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17809. (receiveHandshake): New function.
  17810. (createHandshakeMessage): New function.
  17811. (receiveMessage): New function.
  17812. (createPeerMessage): New function.
  17813. (syncPiece): New function.
  17814. (getNewPieceAndSendInterest): New function.
  17815. (sendMessages): New function.
  17816. (sendNow): New function.
  17817. (trySendNow): New function.
  17818. (sendHandshake): New function.
  17819. (abortPiece): New function.
  17820. (getDownloadPiece): New function.
  17821. (getPeerMessageCommonProperty): New function.
  17822. (createRequestMessage): New function.
  17823. (createCancelMessage): New function.
  17824. (createPieceMessage): New function.
  17825. (createHaveMessage): New function.
  17826. (createChokeMessage): New function.
  17827. (createUnchokeMessage): New function.
  17828. (createInterestedMessage): New function.
  17829. (createNotInterestedMessage): New function.
  17830. (createBitfieldMessage): New function.
  17831. (createKeepAliveMessage): New function.
  17832. To add simple Content-Disposition support:
  17833. * src/HttpResponseCommand.h (determinFilename): New function.
  17834. * src/HttpResponseCommand.cc (executeInternal):
  17835. Use determinFilename(headers) instead of req->getFile() when comparing
  17836. filename.
  17837. (determinFilename): New function.
  17838. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17839. req->getFile().
  17840. (handleOtherEncoding): Use determinFilename(headers) instead of
  17841. req->getFile().
  17842. * src/Util.h (getContentDispositionFilename): New function.
  17843. * src/Util.cc (getContentDispositionFilename): New function.
  17844. * src/LogFactory.h (release): New function.
  17845. * src/LogFactory.cc (release): New function.
  17846. To fix a bug that causes out-of-bound exception when HTTP status
  17847. line is wrong:
  17848. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17849. size.
  17850. * src/common.h (Deleter): New class.
  17851. * src/SegmentMan.cc
  17852. (~SegmentMan): Added deletion of splitter and diskWriter.
  17853. * src/DownloadEngine.h
  17854. (Commands): Use deque.
  17855. (clearQueue): New function.
  17856. * src/DownloadEngine.cc
  17857. (~DownloadEngine): Added deletion of segmentMan.
  17858. (cleanQueue): New function.
  17859. * src/TorrentDownloadEngine.h
  17860. (TorrentDownloadEngine): The implementation was moved to
  17861. TorrentDownloadEngine.cc.
  17862. (~TorrentDownloadEngine): The implementation was moved to
  17863. TorrentDownloadEngine.cc.
  17864. * src/TorrentDownloadEngine.cc
  17865. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17866. * src/main.cc
  17867. (clearRequest): Removed.
  17868. (handler): Added deletion of e.
  17869. (torrentHandler): Added deletion of te.
  17870. (main): Do not share splitter.
  17871. Use Deleter instead of clearRequest.
  17872. Deletion of classes were updated.
  17873. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17874. * src/main.cc (main): Fixed typo.
  17875. * src/message.h: Fixed typo.
  17876. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17877. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17878. To add --select-file command-line option:
  17879. * src/Util.cc
  17880. (unfoldRange): New function.
  17881. (getNum): New function.
  17882. (unfoldSubRange): New function
  17883. * src/main.cc
  17884. (showUsage): Added help message.
  17885. (main): Added --select-file command-line option. Updated the layout of
  17886. file listing.
  17887. * src/common.h
  17888. (Integers): New definition.
  17889. * src/SocketCore.cc
  17890. (writeData): Removed timeout argument.
  17891. (readData): Removed timeout argument.
  17892. (peekData): Removed timeout argument.
  17893. * src/Socket.cc
  17894. (writeData): Removed timeout argument.
  17895. (readData): Removed timeout argument.
  17896. (peekData): Removed timeout argument.
  17897. * Release 0.4.1
  17898. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17899. To deploy upload rate based choking algorithm:
  17900. * src/PeerInteractionCommand.cc
  17901. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17902. peer currently used.
  17903. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17904. download completes. Simplified.
  17905. (receiveMessage): Updated.
  17906. * src/TorrentMan.h
  17907. (activePeers): New variable.
  17908. (addActivePeer): New function.
  17909. (getActivePeers): New function.
  17910. (deleteActivePeer): New function.
  17911. * src/TorrentMan.cc
  17912. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17913. * src/PeerAbstractCommand.cc
  17914. (onAbort): Use peer->resetStatus().
  17915. * src/main.cc
  17916. (PeerChokeCommand.h): Included.
  17917. (main): Added the instance of ChokingCommand to the command queue.
  17918. * src/Peer.h
  17919. (amChoking): Renamed from amChocking
  17920. (chokingRequired): New variable.
  17921. (optUnchoking): New variable.
  17922. (deltaUpload): New variable.
  17923. (deltaDownload): New variable.
  17924. (addDeltaUpload): New function.
  17925. (resetDeltaUpload): New function.
  17926. (addDeltaDownload): New function.
  17927. (resetDeltaDownload): New function.
  17928. (addPeerUpload): Added a call to addDeltaUpload.
  17929. (addPeerDownload): Added a call to addDeltaDownload.
  17930. * src/Peer.cc
  17931. (shouldBeChoking): Renamed from shouldChoke.
  17932. (resetStatus): New function.
  17933. * src/PeerChokeCommand.h: New class.
  17934. * src/PeerChokeCommand.cc: New class.
  17935. To add lazy upload speed limiter:
  17936. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17937. statistics calculation to TorrentDownloadEngine.
  17938. * src/TorrentConsoleDownloadEngine.cc
  17939. (sendStatistics): Renamed from printStatistics.
  17940. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17941. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17942. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17943. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17944. calculation.
  17945. (sendStatistics): New function as pure virtual function.
  17946. (getUploadSpeed): New function.
  17947. * src/TorrentDownloadEngine.cc
  17948. (initStatistics): New function.
  17949. (calculateSpeed): New function.
  17950. (calculateStatistics): New function.
  17951. * src/SendMessageQueue.h
  17952. (uploadLength): New variable.
  17953. (send): Added an argument.
  17954. (setUploadLimit): New function.
  17955. (getUploadLimit): New function.
  17956. * src/SendMessageQueue.cc
  17957. (send): Added upload speed limiter.
  17958. * src/prefs.h
  17959. (PREF_UPLOAD_LIMIT): New definition.
  17960. * src/PeerInteractionCommand.cc
  17961. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17962. * src/main.cc
  17963. (main): Added --upload-limit option
  17964. For bug fixes:
  17965. * src/main.cc
  17966. (showUsage): Corrected --listen-port help
  17967. Other changes:
  17968. * src/TorrentMan.cc
  17969. (getPeer): Return nullPeer if connection is grather than
  17970. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17971. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17972. To add some useful information to the exception message:
  17973. * src/SocketCore.cc : Updated messages.
  17974. * src/SegmentMan.cc :
  17975. * src/TorrentMan.cc : Updated messages.
  17976. * src/MultiDiskWriter.cc : Updated messages.
  17977. * src/Util.cc : Updated messages.
  17978. * src/AbstractDiskWriter.cc : Updated messages.
  17979. * src/PreAllocationDiskWriter.cc : Updated messages.
  17980. * src/message.cc : Added new messages. Updated some messages.
  17981. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17982. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17983. Updated threshold from 30 to 15.
  17984. * src/AbstractDiskWriter.h (filename): New variable.
  17985. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17986. (createFile): Assigned filename.
  17987. * src/main.cc: Updated the help message for http-auth-scheme.
  17988. * Release 0.4.0
  17989. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17990. To add TrackerUpdateCommand with which replaces
  17991. CompactTrackerResponseProcessor:
  17992. * src/TrackerWatcherCommand.h (req): Removed.
  17993. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17994. if the number of peer connections are less than 30.
  17995. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17996. * src/SegmentMan.h (diskWriter): New function.
  17997. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17998. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17999. (main): Use TrackerUpdateCommand.
  18000. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18001. (req): New variable.
  18002. (setTrackerResponseProcessor): Removed.
  18003. (getTrackerResponseProcessor): Removed.
  18004. (processTrackerResponse): Removed.
  18005. * src/DownloadEngine.h (diskWriter): Removed.
  18006. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18007. to torrentMan->processTrackerResponse().
  18008. To add Util::expandBuffer:
  18009. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18010. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18011. * src/Util.h (expandBuffer): New function.
  18012. To fix the bug that causes segmentation fault when "-l ." is specified
  18013. in command-line option:
  18014. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18015. (openFile): New function.
  18016. (closeFile): New function.
  18017. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18018. (~SimpleLogger): Call closeFile();
  18019. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18020. * src/main.cc (main): Added a check to see logger is configured
  18021. properly.
  18022. To enable HTTP authentication without specifying "--http-auth-scheme"
  18023. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18024. * src/HttpConnection.cc (createRequest): Send Authorization header
  18025. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18026. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18027. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18028. * src/Peer.cc (shouldChoke): Updated algorithm.
  18029. * src/message.h (EX_AUTH_FAILED): New definition.
  18030. (EX_FILE_OPEN): New definition.
  18031. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18032. if status == 401.
  18033. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18034. if req->isTorrent == true.
  18035. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18036. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18037. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18038. (createFile): Updated message.
  18039. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18040. To add a readout of estimated remaining time to normal HTTP/FTP
  18041. downloads:
  18042. * src/ConsoleDownloadEngine.h (startup): New variable.
  18043. (startupLength): New variable.
  18044. (isStartupLengthSet): New variable.
  18045. (avgSpeed): New variable.
  18046. (eta): New variable.
  18047. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18048. estimated remaining time.
  18049. (initStatistics): Initialized newly added variables.
  18050. (calculateStatistics): Calculate average speed and estimated remaining
  18051. time.
  18052. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18053. * src/TrackerDownloadCommand.h: Removed.
  18054. * src/TrackerDownloadCommand.cc: Removed.
  18055. * src/TrackerInitCommand.h: Removed.
  18056. * src/TrackerInitCommand.cc: Removed.
  18057. * src/TrackerUpdateCommand.h: Removed.
  18058. * src/TrackerUpdateCommand.cc: Removed.
  18059. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18060. url written in TrackerInitCommand was moved here. Do not create
  18061. tracker request command if torrentMan->trackers != 0.
  18062. * src/CompactTrackerResponseProcessor.h: New class.
  18063. * src/CompactTrackerResponseProcessor.cc: New class.
  18064. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18065. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18066. Decoupled TorrentDownloadEngine from this.
  18067. * src/SegmentMan.h (init): New function.
  18068. * src/SegmentMan.cc (init): New function.
  18069. * src/TorrentMan.h (responseProcessor): New variable.
  18070. (trackers): New variable.
  18071. (setTrackerResponseProcessor): New function.
  18072. (getTrackerResponseProcessor): New function.
  18073. (processTrackerResponse): New function.
  18074. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18075. (processTrackerResponse): New function.
  18076. * src/main.cc (main): Use ByteArrayDiskWriter and
  18077. CompactTrackerResponseProcessor.
  18078. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18079. processTrackerResponse().
  18080. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18081. readout.
  18082. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18083. which indicates download has completed.
  18084. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18085. (closeFile): fd >= 0, not fd > 0
  18086. * src/main.cc (main): Added short cut for show-files.
  18087. Added short cut for torrent-file.
  18088. Added new command-line option listen-port.
  18089. Updated i18n messages.
  18090. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18091. To add LogFactory which creates singleton logger:
  18092. * src/LogFactory.h: New class.
  18093. * src/LogFactory.cc: New class.
  18094. * src/Command.h (logger): New variable.
  18095. (Constructor): Use LogFactory.
  18096. * src/AbstractCommand.cc: Use Command::logger
  18097. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18098. Use LogFactory.
  18099. * src/SegmentSplitter.h : Made logger protected.
  18100. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18101. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18102. * src/DownloadEngine.h : Made logger protected.
  18103. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18104. * src/PeerInteractionCommand.cc : Use Command::logger.
  18105. * src/HttpResponseCommand.cc : Use Command::logger.
  18106. * src/SegmentMan.h : Made logger private.
  18107. * src/TorrentMan.h : Made logger private.
  18108. * src/TorrentMan.cc : Use LogFactory.
  18109. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18110. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18111. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18112. Use LogFactory.
  18113. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18114. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18115. Use LogFactory.
  18116. * src/DownloadCommand.cc : Use Command::logger.
  18117. * src/PeerAbstractCommand.cc : Use Command::logger.
  18118. * src/PeerListenCommand.cc : Use Command::logger.
  18119. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18120. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18121. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18122. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18123. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18124. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18125. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18126. Use LogFactory.
  18127. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18128. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18129. Use LogFactory.
  18130. * src/main.cc (main): Use LogFactory.
  18131. * src/DiskAdaptor.h (logger): New variable.
  18132. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18133. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18134. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18135. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18136. parameter to a tracker request.
  18137. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18138. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18139. * src/main.cc (setSignalHander): New function.
  18140. (main): Added a handler for SIGTERM.
  18141. (handler): Updated message.
  18142. (torrentHandler): Updated message.
  18143. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18144. * src/TorrentConsoleDownloadEngine.cc
  18145. (onPartialDownloadingCompletes): Renamed as
  18146. onSelectiveDownloadingCompletes.
  18147. (onSelectiveDownloadingCompletes): Updated message.
  18148. To add DiskAdaptor which abstract DiskWriter family:
  18149. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18150. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18151. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18152. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18153. MultiDiskAdaptor.h.
  18154. (readFileEntry): Changed its arguments.
  18155. (setup): setupDiskWriter is merged into this function.
  18156. (setupDiskWriter): Removed.
  18157. (setFileFilter): New function.
  18158. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18159. made in readFileEntry.
  18160. (getFilePath): Removed.
  18161. (getTempFilePath): Removed.
  18162. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18163. (fixFilename): Removed.
  18164. (copySingleFile): Removed.
  18165. (splitMultiFile): Removed.
  18166. (deleteTempFile): Removed.
  18167. (setFileEntriesToDownload): Removed.
  18168. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18169. (isSelectiveDownloadingMode): New function.
  18170. (setAllMultiFileRequestedState): Removed.
  18171. (finishPartialDownloadingMode): Renamed as
  18172. finishSelectiveDownloadingMode.
  18173. (finishSelectiveDownloadingMode): New function.
  18174. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18175. (getSelectedTotalLength): New function.
  18176. (onDownloadComplete): Use diskAdaptor.
  18177. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18178. (Range): Removed.
  18179. (setMultiFileEntries): Renamed as setFileEntries.
  18180. (setFileEntries): New function.
  18181. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18182. (pieceLength): New variable.
  18183. * src/main.cc (printDownloadCompeleteMessage): New function.
  18184. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18185. (main): Renamed torrent-show-files to show-files.
  18186. Rewritten file contents listing.
  18187. * src/TorrentMan.h (FileEntry): Removed.
  18188. (multiFileTopDir): Removed.
  18189. (multiFileEntries): Removed.
  18190. (diskWriter): Removed.
  18191. (diskAdaptor): New variable.
  18192. * src/DefaultDiskWriter.h (totalLength): New variable.
  18193. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18194. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18195. diskWriter.
  18196. * src/TorrentConsoleDownloadEngine.h
  18197. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18198. (partialTotalLength): Renamed as selectedTotalLength.
  18199. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18200. openExistingFile, otherwise call initAndOpenFile.
  18201. (closeFile): fd > 0, not fd != 0.
  18202. * src/DirectDiskAdaptor.h: New class.
  18203. * src/DirectDiskAdaptor.cc: New class.
  18204. * src/MultiDiskAdaptor.h: New class.
  18205. * src/MultiDiskAdaptor.cc: New class.
  18206. * src/CopyDiskAdaptor.h: New class.
  18207. * src/CopyDiskAdaptor.cc: New class.
  18208. * src/DiskAdaptor.h: New class.
  18209. * src/DiskAdaptor.cc: New class.
  18210. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18211. (PREF_SHOW_FILES): New definition.
  18212. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18213. To add the ability to download multi torrent into respective files
  18214. directly:
  18215. * src/DiskWriter.h (openFile): New function.
  18216. (seek): Removed.
  18217. * src/MultiDiskWriter.h: New class.
  18218. * src/MultiDiskWriter.cc: New class.
  18219. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18220. protected.
  18221. (openFile): New function.
  18222. * src/AbstractDiskWriter.cc (openFile): New function.
  18223. * src/prefs.h (V_FALSE): New definition.
  18224. (PREF_DIRECT_FILE_MAPPING): New definition.
  18225. * src/TorrentMan.h (setupDiskWriter): New function.
  18226. (setAllMultiFileRequestedState): New function.
  18227. (onDownloadComplete): New function.
  18228. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18229. (setupDiskWriter): New function.
  18230. (getFilePath): Updated.
  18231. (getTempFilePath): Updated.
  18232. (getSegmentFilePath): Updated.
  18233. (fixFilename): Updated.
  18234. (deleteTempFile): Updated.
  18235. (setAllMultiFileRequestedState): New function.
  18236. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18237. (finishPartialDownloadingMode): Reset requested flags.
  18238. (onDownloadComplete): New function.
  18239. * src/main.cc: Added --direct-file-mapping option.
  18240. Use TorrentMan::setupDiskWriter().
  18241. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18242. onDownloadComplete().
  18243. To fix ETA bug:
  18244. * src/Util.h (difftvsec): New function.
  18245. * src/Util.cc (difftvsec): New function.
  18246. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18247. type of "elapsed" instead of long long int.
  18248. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18249. The updates of statistics takes place every 1 seconds.
  18250. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18251. (calculateSpeed): Changed its argument signature.
  18252. * src/PeerMessage.cc (toString): Fixed message.
  18253. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18254. To print ETA:
  18255. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18256. completion handling when dealing with
  18257. TorrentMan::isPartialDownloadingMode() == true.
  18258. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18259. New function.
  18260. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18261. (sessionDownloadLength): New variable.
  18262. (avgSpeed): New variable.
  18263. (eta): New variable.
  18264. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18265. new variables: eta, avgSpeed, startup.
  18266. (calculateSpeed): Calculate average speed and ETA.
  18267. (printStatistics): Added ETA.
  18268. * src/Util.h (secfmt): New function.
  18269. * src/Util.cc (secfmt): New function.
  18270. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18271. To detect "keep alive" flooding:
  18272. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18273. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18274. variable: keepAliveCount.
  18275. (detectMessageFlooding): Added "keep alive" flooding detection.
  18276. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18277. received.
  18278. To add the ability to download only specified files in multi-file
  18279. torrent:
  18280. * src/BitfieldMan.h (filterBitfield): New variable.
  18281. (filterEnabled): New variable.
  18282. (setFilterBit): New function.
  18283. (enableFilter): New function.
  18284. (disableFilter): New function.
  18285. (isFilterEnabled): New function.
  18286. (getFilteredTotalLength): New function.
  18287. (getCompletedLength): New function.
  18288. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18289. filterBitfield, filterEnabled.
  18290. (CopyConstructor): Added filterBitfield and filterEnabled.
  18291. (operator==): Added filterBitfield and filterEnabled.
  18292. (Destructor): Added filterBitfield.
  18293. (getMissingIndex): Use filterBitfield.
  18294. (getMissingUnusedIndex): Use filterBitfield.
  18295. (getFirstMissingUnusedIndex): Use filterBitfield.
  18296. (getFirstMissingUnusedIndex): Use filterBitfield.
  18297. (getAllMissingIndexes): Use filterBitfield.
  18298. (countMissingBlock): Use filterBitfield.
  18299. (countBlock): Use filterBitfield.
  18300. (setBitInternal): Added new argument on.
  18301. (setUseBit): Use setBitInternal.
  18302. (unsetUseBit): Use setBitInternal.
  18303. (setBit): Use setBitInternal.
  18304. (unsetBit): Use setBitInternal.
  18305. (isAllBitSet): Use filterBitfield.
  18306. (setFilterBit): New function.
  18307. (addFilter): New function.
  18308. (enableFilter): New function.
  18309. (disableFilter): New function.
  18310. (clearFilter): New function.
  18311. (isFilterEnabled): New function.
  18312. (getFilteredTotalLength): New function.
  18313. (getCompletedLength): New function.
  18314. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18315. Initalized newly added variables.
  18316. [FileEntry](offset): New variable.
  18317. [FileEntry](extracted): New variable.
  18318. [FileEntry](requested): New variable.
  18319. (readFileEntry): New function.
  18320. (option): New variable.
  18321. (splitMultiFile): Removed const qualifier.
  18322. (fixFilename): Removed const qualifier.
  18323. (readFileEntryFromMetaInfoFile): New function.
  18324. (finishPartialDownloadingMode): New function.
  18325. (isPartialDownloadingMode): New function.
  18326. (setFileEntriesToDownload): New function.
  18327. (getCompletedLength): New function.
  18328. (getPartialTotalLength): New function.
  18329. * src/TorrentMan.cc (readFileEntry): New function.
  18330. (setup): Use readFileEntry. If no-preallocation option is specified,
  18331. use DefaultDiskWriter.
  18332. (readFileEntryFromMetaInfoFile): New function.
  18333. (fixFilename): Removed const qualifier.
  18334. (splitMultiFile): Removed const qualifier.
  18335. (setFileEntriesToDownload): New function.
  18336. (isPartialDownloadingMode): New function.
  18337. (finishPartialDownloadingMode): New function.
  18338. (getCompletedLength): New function.
  18339. (getPartialTotalLength): New function.
  18340. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18341. New variable.
  18342. (partialTotalLength): New variable.
  18343. (downloadLength): New variable.
  18344. (totalLength): New variable.
  18345. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18346. Added log.
  18347. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18348. partialTotalLength, downloadLength, totalLength.
  18349. (calculate): Calculate downloadLength and totalLength.
  18350. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18351. * src/main.cc (addCommand): Changed argument signature.
  18352. (main): Added new variable: args. Added new option "torrent-show-files"
  18353. "no-preallocation". Usage is not updated yet.
  18354. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18355. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18356. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18357. Attempt to add the ability to listing file entries in a .torrent file.
  18358. This feature is not yet complete.
  18359. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18360. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18361. (getName): New function.
  18362. * src/TorrentMan.h (getMultiFileEntries): New function.
  18363. (getName): New function.
  18364. * src/main.cc (main): Use above 2 funtion.
  18365. * Release 0.3.2
  18366. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18367. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18368. (detectMessageFlooding): Updated threshold value.
  18369. (checkLongTimePeerChoking): Updated timeout value.
  18370. (getNewPieceAndSendInterest): Added debug log.
  18371. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18372. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18373. (getPeer): Updated.
  18374. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18375. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18376. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18377. is localhost.
  18378. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18379. * src/PendingMessage.cc (processMessage): Not to send piece message
  18380. if peer is not interested in the pieces localhost has.
  18381. * src/Peer.cc (shouldChoke): Updated.
  18382. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18383. * src/Util.cc (isPowerOf): New function.
  18384. * src/Util.h (isPowerOf): New function.
  18385. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18386. whether or not it is power of 2.
  18387. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18388. Added new class SendMessageQueue that includes PendingMessages and
  18389. RequestSlotMan.
  18390. * src/SendMessageQueue.h: New class.
  18391. * src/SendMessageQueue.cc: New class.
  18392. * src/PendingMessage.h: Added new member variable blockIndex and its
  18393. accessors.
  18394. (createRequestMessage): Updated.
  18395. * src/PendingMessage.cc (createRequestMessage): Updated.
  18396. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18397. SendMessageQueue.
  18398. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18399. (receiveMessage): Updated with SendMessageQueue.
  18400. (deletePendingPieceMessage): Removed.
  18401. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18402. (sendInterest): Updated with SendMessageQueue.
  18403. (createRequestPendingMessage): Updated with SendMessageQueue.
  18404. (sendMessages): Updated with SendMessageQueue.
  18405. (onAbort): Updated with SendMessageQueue.
  18406. (keepAlive): Updated with SendMessageQueue.
  18407. (beforeSocketCheck): Updated SendMessageQueue.
  18408. * src/PeerInteractionCommand (sendMessages): Shuffle
  18409. missingBLockIndexes before using it.
  18410. Added its own timeout for peer connection.
  18411. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18412. setter.
  18413. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18414. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18415. Added setTimeout() call.
  18416. (executeInternal): Added setTimeout() call.
  18417. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18418. Added timeout.
  18419. (isTimeoutDetected): Updated.
  18420. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18421. option.
  18422. Added *simple* message flooding checker.
  18423. * src/PeerInteractionCommand.cc (executeInternal):
  18424. Added detectMessageFlooding() call.
  18425. (detectMessageFlooding): New function.
  18426. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18427. (beforeSocketCheck): Added detectMessageFlooding() call.
  18428. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18429. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18430. Removed deletePendingPieceMessage(), getRequestSlot(),
  18431. deleteRequestSlot(), deleteAllRequestSlot().
  18432. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18433. Added checkLongTimePeerChoking() call.
  18434. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18435. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18436. if duplicate == false.
  18437. The parameter "uploaded" and "downloaded" in the tracker request are
  18438. the size since the client sent the "started" event to the tracker.
  18439. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18440. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18441. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18442. getSessionDownloadedSize(), getSessionUploadedSize().
  18443. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18444. getSessionUploadedSize() instead of getDownloadedSize(),
  18445. getUploadedSize().
  18446. * src/PendingMessage.cc (processMessage): Do not send request message
  18447. if the peer is choking the client.
  18448. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18449. less than interval.
  18450. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18451. * configure.in: Added gnutls support. Added several CPP macros.
  18452. * m4/openssl.m4: Added.
  18453. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18454. readData(), peekData(). Added gnutls support.
  18455. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18456. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18457. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18458. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18459. Instead, added a check for whether setup method has executed
  18460. successfully.
  18461. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18462. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18463. * src/Makefile.am: Updated.
  18464. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18465. using whether OpenSSL or gcrypt, depending on the result of configure
  18466. script.
  18467. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18468. messageDigest.h.
  18469. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18470. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18471. Fixed memory leak.
  18472. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18473. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18474. Removed instantiation of TrackerInitCommand. Instead,
  18475. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18476. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18477. ENABLE_SSL.
  18478. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18479. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18480. If a piece is already acquired by another command, delete the request
  18481. slots for the piece.
  18482. * src/TrackerUpdateCommand.cc (execute):
  18483. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18484. Added a check whether peer list is null.
  18485. Fixed the bug that causes sending completed event to the tracker
  18486. several times.
  18487. * src/TrackerInitCommand.cc (execute):
  18488. Fixed the bug that causes sending completed event to the tracker
  18489. several times.
  18490. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18491. by using messageDigest.h.
  18492. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18493. * PeerConnection.cc: Replaced log message "keep-alive" with
  18494. "keep alive".
  18495. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18496. localhost long time.
  18497. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18498. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18499. at most 100 failure entry from the list. If with duplicate = false,
  18500. MAX_PEER_LIST is not checked.
  18501. * PeerListenCommand.cc: Fixed the argument order of log message.
  18502. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18503. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18504. Added warn().
  18505. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18506. Implemented warn().
  18507. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18508. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18509. * Request.h: Added AFTER_COMPLETED event.
  18510. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18511. instead of downloaded size and progress(%) after download completes.
  18512. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18513. message to the peer if it is interested in what localhost has
  18514. downloaded.
  18515. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18516. destination instead of just renaming it.
  18517. * TorrentMan.cc: Added deleteTempFile().
  18518. * PeerAbstractCommand.cc: do not stop execution after download
  18519. completes. This makes localhost a seeder.
  18520. * Util.{h,cc}: Added fileCopy().
  18521. * PeerListenCommand.cc: do not stop execution after download completes.
  18522. This makes localhost a seeder.
  18523. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18524. Added TorrentMan::deleteTempFile() to torrentHandler.
  18525. Initialized the variable dir as ".".
  18526. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18527. Deleted renameSingleFile().
  18528. Added copySingleFile(), deleteTempFile().
  18529. * DownloadEngine.h: Added virtual function afterEachIteration().
  18530. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18531. in onEndOfRun() to afterEachIteration().
  18532. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18533. true.
  18534. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18535. In rangedFileCopy(), added try-catch block to properly close file
  18536. descriptors.
  18537. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18538. Added afterEachIteration(), isFilenameFixed().
  18539. * Peer.cc: Changed choking strategy.
  18540. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18541. * TrackerInitCommand.cc: Send completed event only once.
  18542. * DownloadEngine.cc: Added a call to afterEachIteration().
  18543. * TrackerUpdateCommand.cc: Do not stop execution after download
  18544. completes.
  18545. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18546. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18547. received from a tracker.
  18548. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18549. Decreased the number of failure peers to delete to 0(just comment out
  18550. the line).
  18551. * Release 0.3.1
  18552. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18553. * PeerInteractionCommand.cc: added a call to
  18554. TorrentMan::unadvertisePiece in Destructor.
  18555. * PeerInteractionCommand.cc: make have message sent immediately
  18556. if the size of pending message queue is zero.
  18557. * TorrentMan.cc: set the maximum size of peer list to 250.
  18558. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18559. to deque.
  18560. * Util.cc: fixed rangedFileCopy.
  18561. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18562. to Constructor. Also, moved digest cleanup to Destructor.
  18563. * MetaFileUtil.cc: fixed memory leak
  18564. * replaced std::vector with std::deque.
  18565. * AbstractCommand.cc: casted timeout value to long long int.
  18566. * ChunkedEncoding.cc: fixed memory leak.
  18567. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18568. * SleepCommand.cc: casted timeout value to long long int.
  18569. * Data.cc: fixed memory leak.
  18570. * Data.cc: fixed toLLInt().
  18571. * BitfieldMan.cc: fixed memory leak.
  18572. * TorrentMan.cc: initialized storeDir to ".".
  18573. * TorrentMan.cc: fixed memory leak.
  18574. * TorrentMan.cc: corrected file paths of splitted files.
  18575. * PeerAbstractCommand.cc: casted timeout to long long int.
  18576. * main.cc: added delete(req) and delete(te->diskWriter).
  18577. * RequestSlot.cc: casted timeout value to long long int.
  18578. * Request.cc: fixed memory leak.
  18579. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18580. have the piece.
  18581. * Peer.{h,cc}: added hasPiece(int index).
  18582. * main.cc: corrected addCommand.
  18583. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18584. * BitTorrent protocol support added.
  18585. * Release 0.3.0
  18586. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18587. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18588. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18589. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18590. decoding did not work properly.
  18591. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18592. * DownloadEngine.h: included sys/time.h
  18593. * DownloadEngine.cc: remove sys/time.h
  18594. * Makefile.am (SUBDIRS): Add intl.
  18595. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18596. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18597. * main.cc: correct help message for --http-auth-scheme.
  18598. * main.cc: changed e-mail address for bug reports.
  18599. * ja.po: added japanese translation.
  18600. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18601. * SimpleLogger.cc: flush log file instead of stdout.
  18602. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18603. * main.cc: Fixed command-line option: max-tries
  18604. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18605. does not equal to seg.sp.
  18606. * DownloadCommand.cc: If EOF is got from the server and the total size
  18607. of file is not zero, then throw DlRetryEx.
  18608. * main.cc: Set the minium value of min-segment-size to 1024.
  18609. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18610. fails because of a regression since 0.2.0 release.
  18611. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18612. * HttpConnection.cc:
  18613. * common.h: defined the user agent name as macro
  18614. * DownloadEngine.{h, cc}:
  18615. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18616. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18617. * main.cc: Download complete/abort message is now generated by main.
  18618. * Makefile.am (SUBDIRS): Add m4.
  18619. (ACLOCAL_AMFLAGS): New variable.
  18620. (EXTRA_DIST): New variable.
  18621. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18622. * gettext: added gettext functionality
  18623. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18624. * AbstractCommand.cc:
  18625. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18626. unregister its cuid from SegmentMan.
  18627. * DownloadEngine.cc: .aria2 file was written when a downloading
  18628. failed with errors.
  18629. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18630. Added "User-Agent" header to CONNECT proxy request.
  18631. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18632. properly.
  18633. * Logger.h:
  18634. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18635. * ChunkedEncoding.cc: Added #include directive for strings.h
  18636. * Release 0.2.1
  18637. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18638. * Util.{h,cc}: added startsWith().
  18639. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18640. Util::endsWith().
  18641. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18642. * common.h: added #include directive of limit.h.
  18643. * DownloadEngine.cc: added #include directive of sys/time.h and
  18644. algorithm.
  18645. * Exception.h: added #include directive of stdio.h.
  18646. * AbstractCommand.h: added #include directive of sys/time.h.
  18647. * DownloadCommand.h: added #include directive of sys/time.h.
  18648. * *.h: added #include directive of common.h to all base classes.
  18649. subclasses' one was removed.
  18650. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18651. does not define these macros.
  18652. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18653. * Release 0.2.0
  18654. * main.cc:
  18655. * HttpInitiateConnectionCommand.{h,cc}:
  18656. * prefs.h:
  18657. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18658. We can now use GET command in http proxy.
  18659. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18660. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18661. that splits slowest segment of SegmentMan::commands vector.
  18662. This is the default split algorithm of aria2.
  18663. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18664. that splits first segment of SegmentMan::commands vector.
  18665. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18666. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18667. * Segment.h:
  18668. * SegmentMan.cc: Added speed field to Segment.h
  18669. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18670. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18671. * message.h: Change file size related %d to %lld.
  18672. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18673. * FtpInitiateConnectionCommand.{h,cc}:
  18674. * FtpNegotiationCommand.{h,cc}:
  18675. * FtpDownloadCommand.{h,cc}:
  18676. * FtpConnection.{h,cc}: Added FTP support
  18677. * SimpleLogger.cc: Log message now includes time information.
  18678. * main.cc: The value of --http-auth-scheme option is chagned from
  18679. 'BASIC' to 'basic'
  18680. * main.cc: Added --timeout command-line option.
  18681. * main.cc: Added --min-segment-size command-line option.
  18682. * main.cc: Added --max-retries command-line option.
  18683. * prefs.h: option string constants are now defined in prefs.h
  18684. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18685. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18686. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18687. with version 0.1.0's one.
  18688. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18689. * configure.in: Added --enable-ssl option to configure script.
  18690. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18691. cannot permit absoluteURI as Request-URI.
  18692. * HttpConnection.cc: Added Referer support.
  18693. * main.cc: Added referer command-line option.
  18694. * main.cc: Added rety-wait command-line option.
  18695. * Exception.h: Fixed formating bug in Exception::setMsg()
  18696. * SocketCore.{h,cc}:
  18697. * Socket.{h, cc}:
  18698. * Request.cc:
  18699. * InitiateConnectionCommandFactory.cc:
  18700. * HttpRequestCommand.cc: Added HTTPS support.
  18701. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18702. for SocketCore.
  18703. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18704. size is wrong
  18705. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18706. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18707. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18708. * Release 0.1.0